<commit_before>package require critcl 3

namespace eval ::zmq {
}

critcl::license {<NAME>} {LGPLv3 / BSD}
critcl::summary {A Tcl wrapper for the ZeroMQ messaging library}
critcl::description {
    zmq is a Tcl binding for the zeromq library (http://www.zeromq.org/)
    for interprocess communication.
}
critcl::subject ZeroMQ ZMQ 0MQ ;#\u2205MQ
critcl::subject {messaging} {inter process communication} RPC
critcl::subject {message queue} {queue} broadcast communication
critcl::subject {producer - consumer} {publish - subscribe}

critcl::meta origin https://github.com/jdc8/tclzmq

critcl::userconfig define mode {choose mode of ZMQ to build and link against.} {static dynamic}

if {[string match "win32*" [::critcl::targetplatform]]} {
    critcl::clibraries -llibzmq -luuid -lws2_32 -lcomctl32 -lrpcrt4
    switch -exact -- [critcl::userconfig query mode] {
	static {
	    critcl::cflags /DDLL_EXPORT
	}
	dynamic {
	}
    }
} else {
    switch -exact -- [critcl::userconfig query mode] {
	static {
	    critcl::clibraries -l:libzmq.a -lstdc++
	}
	dynamic {
	    critcl::clibraries -lzmq
	}
    }

    critcl::clibraries -lpthread -lm

    if {[string match "macosx*" [::critcl::targetplatform]]} {
	critcl::clibraries -lgcc_eh
    } else {
	critcl::clibraries -lrt -luuid
    }
}
#critcl::cflags -ansi -pedantic -Wall


# Get local build configuration<commit_msg>librt is  not available (and needed) with mingw32<commit_after>package require critcl 3

namespace eval ::zmq {
}

critcl::license {<NAME>} {LGPLv3 / BSD}
critcl::summary {A Tcl wrapper for the ZeroMQ messaging library}
critcl::description {
    zmq is a Tcl binding for the zeromq library (http://www.zeromq.org/)
    for interprocess communication.
}
critcl::subject ZeroMQ ZMQ 0MQ ;#\u2205MQ
critcl::subject {messaging} {inter process communication} RPC
critcl::subject {message queue} {queue} broadcast communication
critcl::subject {producer - consumer} {publish - subscribe}

critcl::meta origin https://github.com/jdc8/tclzmq

critcl::userconfig define mode {choose mode of ZMQ to build and link against.} {static dynamic}

if {[string match "win32*" [::critcl::targetplatform]]} {
    critcl::clibraries -llibzmq -luuid -lws2_32 -lcomctl32 -lrpcrt4
    switch -exact -- [critcl::userconfig query mode] {
	static {
	    critcl::cflags /DDLL_EXPORT
	}
	dynamic {
	}
    }
} else {
    switch -exact -- [critcl::userconfig query mode] {
	static {
	    critcl::clibraries -l:libzmq.a -lstdc++
	}
	dynamic {
	    critcl::clibraries -lzmq
	}
    }

    critcl::clibraries -lpthread -lm

    if {[string match "macosx*" [::critcl::targetplatform]]} {
	critcl::clibraries -lgcc_eh
    } elseif {[string match "*mingw32*" [::critcl::targetplatform]]} {
	critcl::clibraries -luuid
    } else {
	critcl::clibraries -lrt -luuid
    }
}
#critcl::cflags -ansi -pedantic -Wall


# Get local build configuration
{'fraction_non_alphanumeric': 0.1270891364902507, 'fraction_numerical': 0.012534818941504178, 'mean_word_length': 4.005226480836237, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '428340', 'n_tokens_mistral': 1036, 'n_tokens_neox': 981, 'n_words': 269}