Lines Matching +full:python +full:- +full:packaging

1 #                                               -*- Autoconf -*-
18 # ---------------
20 # (binary-api-number):(which-binary-api-version):(how-many-nrs-backwardscompat)
28 # ldns-1.6.17 and before had a .so with version same as VERSION_INFO
29 # ldns-1.7.0 had libversion 2:0:0
30 # ldns-1.7.1 had libversion 3:0:0 (though it should have had 3:0:1)
31 # ldns-1.8.0 had libversion 4:0:2 (though it should have had 4:0:1)
32 # ldns-1.8.1 had libversion 5:0:2
33 # ldns-1.8.1 had libversion 6:0:3
34 # ldns-1.8.2 had libversion 7:0:4
35 # ldns-1.8.3 has libversion 8:0:5
47 CPPFLAGS=${CPPFLAGS:-${OURCPPFLAGS}}
58 netbsd*) LINTFLAGS="'-D__RENAME(x)=' -D_NETINET_IN_H_ $LINTFLAGS"
67 ACX_CHECK_COMPILER_FLAG(std=c99, [C99FLAG="-std=c99"])
68 ACX_CHECK_COMPILER_FLAG(xc99, [C99FLAG="-xc99"])
77 sh $srcdir/install-sh -m 644 $file $2
94 ACX_CHECK_COMPILER_FLAG(g, [CFLAGS="-g"])
95 ACX_CHECK_COMPILER_FLAG(O2, [CFLAGS="-O2 $CFLAGS"])
97 ACX_CHECK_COMPILER_FLAG(Wall, [CFLAGS="-Wall $CFLAGS"])
98 ACX_CHECK_COMPILER_FLAG(W, [CFLAGS="-W $CFLAGS"])
99 ACX_CHECK_COMPILER_FLAG(Wwrite-strings, [CFLAGS="-Wwrite-strings $CFLAGS"])
100 ACX_CHECK_COMPILER_FLAG(Wstrict-prototypes, [CFLAGS="-Wstrict-prototypes $CFLAGS"])
101 #ACX_CHECK_COMPILER_FLAG(Wshadow, [CFLAGS="-Wshadow $CFLAGS"])
102 ACX_CHECK_COMPILER_FLAG(Wunused-function, [CFLAGS="-Wunused-function $CFLAGS"])
103 ACX_CHECK_COMPILER_FLAG(Wmissing-prototypes, [CFLAGS="-Wmissing-prototypes $CFLAGS"])
104 ACX_CHECK_COMPILER_FLAG(fno-strict-aliasing, [CFLAGS="-fno-strict-aliasing $CFLAGS"])
136 # modern Linux provides inet_ntop in -lsocket.
137 # modern OS X provides inet_ntop in -lc.
138 # modern Solaris provides inet_ntop in -lsocket -lnsl.
139 # older Solaris provides inet_ntop in -lresolv.
145 # modern Linux provides inet_pton in -lsocket.
146 # modern OS X provides inet_pton in -lc.
147 # modern Solaris provides inet_pton in -lsocket -lnsl.
148 # older Solaris provides inet_pton in -lresolv.
155 AC_ARG_WITH(drill, AC_HELP_STRING([--with-drill],
160 AC_SUBST(INSTALL_DRILL,[install-drill])
161 AC_SUBST(UNINSTALL_DRILL,[uninstall-drill])
162 AC_SUBST(CLEAN_DRILL,[clean-drill])
163 AC_SUBST(LINT_DRILL,[lint-drill])
164 if test -e $srcdir/drill/config.h -o -e drill/config.h ; then
167 This does not work with the --with-drill option.
169 or do not use the --with-drill option.])
180 AC_ARG_WITH(examples, AC_HELP_STRING([--with-examples],
185 AC_SUBST(INSTALL_EXAMPLES,[install-examples])
186 AC_SUBST(UNINSTALL_EXAMPLES,[uninstall-examples])
187 AC_SUBST(CLEAN_EXAMPLES,[clean-examples])
188 AC_SUBST(LINT_EXAMPLES,[lint-examples])
189 if test -e $srcdir/examples/config.h -o -e examples/config.h ; then
192 This does not work with the --with-examples option.
194 or do not use the --with-examples option.])
204 # add option to disable installation of ldns-config script
205 AC_ARG_ENABLE(ldns-config, AC_HELP_STRING([--disable-ldns-config], [disable installation of ldns-co…
208 AC_SUBST(INSTALL_CONFIG, [install-config])
209 AC_SUBST(INSTALL_CONFIG_MANPAGE, [install-config-manpage])
210 AC_SUBST(UNINSTALL_CONFIG, [uninstall-config])
211 AC_SUBST(UNINSTALL_CONFIG_MANPAGE, [uninstall-config-manpage])
220 AC_ARG_ENABLE(stderr-msgs, AC_HELP_STRING([--enable-stderr-msgs], [Enable printing to stderr (defau…
236 # check for python
240 AC_ARG_WITH(pyldns, AC_HELP_STRING([--with-pyldns],
241 [generate python library, or --without-pyldns to disable Python support.]),
249 if test ! -z "$ac_python_version"; then
253 # pass additional Python 3 option to SWIG
254 if test `$PYTHON -c "import sys; \
257 AC_SUBST(SWIGPY3, ["-py3 -DPY3"])
264 # check for >=SWIG-2.0.4 if Python 3.2 used
265 if test `$PYTHON -c "import sys; \
268 …AX_PKG_SWIG(2.0.4, [], [AC_MSG_ERROR([SWIG-2.0.4 is required to build pyldns for Python 3.2 and gr…
273 if test ! -x "$SWIG"; then
282 AC_MSG_RESULT([*** don't have Python, skipping SWIG, no pyldns ***]) # '
287 ACX_CHECK_COMPILER_FLAG(fno-strict-aliasing, [PYTHON_X_CFLAGS="-fno-strict-aliasing"])
288 …ACX_CHECK_COMPILER_FLAG(Wno-missing-field-initializers, [PYTHON_X_CFLAGS="-Wno-missing-field-initi…
289 …ACX_CHECK_COMPILER_FLAG(Wno-unused-parameter, [PYTHON_X_CFLAGS="-Wno-unused-parameter $PYTHON_X_CF…
290 …ACX_CHECK_COMPILER_FLAG(Wno-unused-variable, [PYTHON_X_CFLAGS="-Wno-unused-variable $PYTHON_X_CFLA…
296 AC_ARG_WITH(pyldnsx, AC_HELP_STRING([--without-pyldnsx],
297 [Do not install the ldnsx python module, or --with-pyldnsx to install it.]),
305 AC_MSG_ERROR([--with-pyldns is needed for the ldnsx python module])
311 AC_SUBST(PYLDNSINST, "install-pyldns")dnl
312 AC_SUBST(PYLDNSUNINST, "uninstall-pyldns")
318 AC_SUBST(PYLDNSXINST, "install-pyldnsx")dnl
319 AC_SUBST(PYLDNSXUNINST, "uninstall-pyldnsx")
327 AC_ARG_WITH(p5-dns-ldns, AC_HELP_STRING([--with-p5-dns-ldns],
333 if test -z "$PERL"; then
336 AC_SUBST(P5_DNS_LDNS, "p5-dns-ldns")dnl
337 AC_SUBST(TEST_P5_DNS_LDNS, "test-p5-dns-ldns")dnl
338 AC_SUBST(INSTALL_P5_DNS_LDNS, "install-p5-dns-ldns")dnl
339 AC_SUBST(UNINSTALL_P5_DNS_LDNS, "uninstall-p5-dns-ldns")dnl
340 AC_SUBST(CLEAN_P5_DNS_LDNS, "clean-p5-dns-ldns")
383 CFLAGS="-DOPENSSL_API_COMPAT=10100 $CFLAGS"
393 AC_ARG_ENABLE(sha2, AC_HELP_STRING([--disable-sha2], [Disable SHA256 and SHA512 RRSIG support]))
403 …AC_MSG_ERROR([No SHA2 functions found in OpenSSL: please upgrade OpenSSL or rerun with --disable-s…
415 if test -n "$ssldir"; then
416 if test ! -d "$ssldir/lib" -a -d "$ssldir/lib64"; then
417 CFLAGS="$CFLAGS -Wl,-rpath,$ssldir/lib64"
419 CFLAGS="$CFLAGS -Wl,-rpath,$ssldir/lib"
446 meth = EVP_PKEY_asn1_find_str(NULL, "gost2001", -1);
470 meth = EVP_PKEY_asn1_find_str(&e, "gost2001", -1);
483 unsigned char digest[64]; /* its a 256-bit digest, so uses 32 bytes */
518 AC_ARG_ENABLE(gost, AC_HELP_STRING([--disable-gost], [Disable GOST support]))
527 …str, [],[AC_MSG_ERROR([OpenSSL >= 1.0.0 is needed for GOST support or rerun with --disable-gost])])
528 …G_ERROR([No ECC functions found in OpenSSL: please upgrade OpenSSL or rerun with --disable-gost])])
530 …AC_ARG_ENABLE(gost-anyway, AC_HELP_STRING([--enable-gost-anyway], [Enable GOST even without a GOST…
531 if test "$ac_cv_c_gost_works" != "no" -o "$enable_gost_anyway" = "yes"; then
542 …AC_MSG_WARN([Install gost-engine first or use the --enable-gost-anyway to compile with GOST suppor…
543 …AC_MSG_WARN([See also https://github.com/gost-engine/engine/wiki for information about gost-engine…
548 AC_ARG_ENABLE(ecdsa, AC_HELP_STRING([--disable-ecdsa], [Disable ECDSA support]))
556 …MSG_ERROR([OpenSSL does not support ECDSA: please upgrade OpenSSL or rerun with --disable-ecdsa])])
557 …SG_ERROR([OpenSSL does not support SHA384: please upgrade OpenSSL or rerun with --disable-ecdsa])])
558 …oes not support the ECDSA curves: please upgrade OpenSSL or rerun with --disable-ecdsa])], [AC_INC…
566 AC_ARG_ENABLE(dsa, AC_HELP_STRING([--disable-dsa], [Disable DSA support]))
576 …$enable_dsa" = "xyes"; then AC_MSG_ERROR([OpenSSL does not support DSA and you used --enable-dsa.])
582 AC_ARG_ENABLE(ed25519, AC_HELP_STRING([--disable-ed25519], [Disable (experimental) ED25519 support.…
591 …519" = "xyes"; then AC_MSG_ERROR([OpenSSL does not support ED25519 and you used --enable-ed25519.])
599 AC_ARG_ENABLE(ed448, AC_HELP_STRING([--disable-ed448], [Disable (experimental) ED448 support. Defau…
608 …e_ed448" = "xyes"; then AC_MSG_ERROR([OpenSSL does not support ED448 and you used --enable-ed448.])
616 AC_ARG_ENABLE(dane, AC_HELP_STRING([--disable-dane], [Disable DANE support]))
617 AC_ARG_ENABLE(dane-verify, AC_HELP_STRING([--disable-dane-verify], [Disable DANE verify support]))
618 AC_ARG_ENABLE(dane-ta-usage, AC_HELP_STRING([--disable-dane-ta-usage], [Disable DANE-TA usage type …
620 AC_ARG_ENABLE(full-dane,, [
625 AC_ARG_ENABLE(no-dane-ta-usage,, [
630 AC_ARG_ENABLE(no-dane-verify,, [
645 …C_MSG_ERROR([OpenSSL does not support DANE: please upgrade OpenSSL or rerun with --disable-dane])])
662 LIBS="-lssl -lcrypto $LIBS"
663 …eded for the DANE-TA usage type). Please upgrade OpenSSL to version >= 1.1.0 or rerun with --disa…
664 LIBSSL_LIBS="-lssl $LIBSSL_LIBS"
667 … AC_DEFINE_UNQUOTED([USE_DANE_TA_USAGE], [1], [Define this to enable DANE-TA usage type support.])
674 AC_ARG_ENABLE(rrtype-ninfo, AC_HELP_STRING([--enable-rrtype-ninfo], [Enable draft RR type ninfo.]))
682 AC_ARG_ENABLE(rrtype-rkey, AC_HELP_STRING([--enable-rrtype-rkey], [Enable draft RR type rkey.]))
690 AC_ARG_ENABLE(rrtype-openpgpkey, AC_HELP_STRING([--disable-rrtype-openpgpkey], [Disable openpgpkey …
698 AC_ARG_ENABLE(rrtype-ta, AC_HELP_STRING([--enable-rrtype-ta], [Enable draft RR type ta.]))
706 AC_ARG_ENABLE(rrtype-avc, AC_HELP_STRING([--enable-rrtype-avc], [Enable draft RR type avc.]))
714 AC_ARG_ENABLE(rrtype-doa, AC_HELP_STRING([--enable-rrtype-doa], [Enable draft RR type DOA.]))
722 AC_ARG_ENABLE(rrtype-amtrelay, AC_HELP_STRING([--enable-rrtype-amtrelay], [Enable draft RR type AMT…
730 AC_ARG_ENABLE(rrtype-svcb-https, AC_HELP_STRING([--disable-rrtype-svcb-https], [Disable RR types SV…
745 if echo "$LIBSSL_LIBS" | grep -- "-lssl" >/dev/null 2>&1; then
748 LIBSSL_SSL_LIBS="-lssl $LIBSSL_LIBS"
772 #AC_DEFINE(CONFCHECK_LITTLE_ENDIAN, 1, [system appears to be little-endian])
775 # should define WORDS_BIGENDIAN if the system is big-endian
783 # do the very minimum - we can always extend this
854 AC_DEFINE([HAVE_LIBPCAP], [1], [Define to 1 if you have the `pcap' library (-lpcap).])dnl`
855 AC_SUBST([LIBPCAP_LIBS], [-lpcap])
857 AC_MSG_WARN([Can't find pcap library (needed for ldns-dpa, will not build dpa now.)])dnl'
947 AC_LIBOBJ([fake-rfc2553])
959 AC_ARG_WITH(xcode-sdk, AC_HELP_STRING([--with-xcode-sdk],
965 sdk_p=`xcode-select -print-path`;
967 sdk_v="$( /usr/bin/xcrun --show-sdk-version 2>/dev/null )"
972 if test -z "$sdk_v" ; then
976 SYSROOT="$( find ${sdk_p} -name MacOSX${sdk_v}.sdk )"
982 export CFLAGS="$CFLAGS -mmacosx-version-min=${sdk_c} -isysroot ${SYSROOT}"
988 AC_ARG_WITH(trust-anchor, AC_HELP_STRING([--with-trust-anchor=KEYFILE], [Default location of the tr…
995 AC_ARG_WITH(ca-file, AC_HELP_STRING([--with-ca-file=CAFILE], [File containing CA certificates for l…
1005 AC_ARG_WITH(ca-path, AC_HELP_STRING([--with-ca-path=CAPATH], [Directory containing CA certificate f…
1149 #define close_socket(_s) do { if (_s != SOCK_INVALID) {closesocket(_s); _s = -1;} } while(0)
1151 #define SOCK_INVALID -1
1152 #define close_socket(_s) do { if (_s != SOCK_INVALID) {close(_s); _s = -1;} } while(0)
1159 #include "compat/fake-rfc2553.h"
1182 …efile libdns.doxygen ldns/common.h ldns/net.h ldns/util.h packaging/libldns.pc packaging/ldns-conf…