Deleted Added
full compact
configure.ac (266114) configure.ac (276605)
1# -*- Autoconf -*-
2# Process this file with autoconf to produce a configure script.
3AC_PREREQ(2.56)
4sinclude(acx_nlnetlabs.m4)
5sinclude(ax_pthread.m4)
6sinclude(acx_python.m4)
7sinclude(ac_pkg_swig.m4)
1# -*- Autoconf -*-
2# Process this file with autoconf to produce a configure script.
3AC_PREREQ(2.56)
4sinclude(acx_nlnetlabs.m4)
5sinclude(ax_pthread.m4)
6sinclude(acx_python.m4)
7sinclude(ac_pkg_swig.m4)
8sinclude(dnstap/dnstap.m4)
8
9# must be numbers. ac_defun because of later processing
10m4_define([VERSION_MAJOR],[1])
9
10# must be numbers. ac_defun because of later processing
11m4_define([VERSION_MAJOR],[1])
11m4_define([VERSION_MINOR],[4])
12m4_define([VERSION_MICRO],[22])
12m4_define([VERSION_MINOR],[5])
13m4_define([VERSION_MICRO],[1])
13AC_INIT(unbound, m4_defn([VERSION_MAJOR]).m4_defn([VERSION_MINOR]).m4_defn([VERSION_MICRO]), unbound-bugs@nlnetlabs.nl, unbound)
14AC_SUBST(UNBOUND_VERSION_MAJOR, [VERSION_MAJOR])
15AC_SUBST(UNBOUND_VERSION_MINOR, [VERSION_MINOR])
16AC_SUBST(UNBOUND_VERSION_MICRO, [VERSION_MICRO])
17
14AC_INIT(unbound, m4_defn([VERSION_MAJOR]).m4_defn([VERSION_MINOR]).m4_defn([VERSION_MICRO]), unbound-bugs@nlnetlabs.nl, unbound)
15AC_SUBST(UNBOUND_VERSION_MAJOR, [VERSION_MAJOR])
16AC_SUBST(UNBOUND_VERSION_MINOR, [VERSION_MINOR])
17AC_SUBST(UNBOUND_VERSION_MICRO, [VERSION_MICRO])
18
18LIBUNBOUND_CURRENT=4
19LIBUNBOUND_REVISION=1
20LIBUNBOUND_AGE=2
19LIBUNBOUND_CURRENT=5
20LIBUNBOUND_REVISION=3
21LIBUNBOUND_AGE=3
21# 1.0.0 had 0:12:0
22# 1.0.1 had 0:13:0
23# 1.0.2 had 0:14:0
24# 1.1.0 had 0:15:0
25# 1.1.1 had 0:16:0
26# 1.2.0 had 0:17:0
27# 1.2.1 had 0:18:0
28# 1.3.0 had 1:0:0 # ub_cancel and -export-symbols.

--- 20 unchanged lines hidden (view full) ---

49# 1.4.14 had 2:14:0
50# 1.4.15 had 3:0:1 # adds ub_version()
51# 1.4.16 had 3:1:1
52# 1.4.17 had 3:2:1
53# 1.4.18 had 3:3:1
54# 1.4.19 had 3:4:1
55# 1.4.20 had 4:0:2 # adds libunbound.ttl # but shipped 3:5:1
56# 1.4.21 had 4:1:2
22# 1.0.0 had 0:12:0
23# 1.0.1 had 0:13:0
24# 1.0.2 had 0:14:0
25# 1.1.0 had 0:15:0
26# 1.1.1 had 0:16:0
27# 1.2.0 had 0:17:0
28# 1.2.1 had 0:18:0
29# 1.3.0 had 1:0:0 # ub_cancel and -export-symbols.

--- 20 unchanged lines hidden (view full) ---

50# 1.4.14 had 2:14:0
51# 1.4.15 had 3:0:1 # adds ub_version()
52# 1.4.16 had 3:1:1
53# 1.4.17 had 3:2:1
54# 1.4.18 had 3:3:1
55# 1.4.19 had 3:4:1
56# 1.4.20 had 4:0:2 # adds libunbound.ttl # but shipped 3:5:1
57# 1.4.21 had 4:1:2
58# 1.4.22 had 4:1:2
59# 1.5.0 had 5:3:3 # adds ub_ctx_add_ta_autr
60# 1.5.1 had 5:4:3
57
58# Current -- the number of the binary API that we're implementing
59# Revision -- which iteration of the implementation of the binary
60# API are we supplying?
61# Age -- How many previous binary API versions do we also
62# support?
63#
64# If we release a new version that does not change the binary API,

--- 192 unchanged lines hidden (view full) ---

257AC_PROG_LEX
258ACX_YYLEX_DESTROY
259AC_PROG_YACC
260AC_CHECK_PROG(doxygen, doxygen, doxygen)
261AC_CHECK_TOOL(STRIP, strip)
262ACX_LIBTOOL_C_ONLY
263
264# Checks for header files.
61
62# Current -- the number of the binary API that we're implementing
63# Revision -- which iteration of the implementation of the binary
64# API are we supplying?
65# Age -- How many previous binary API versions do we also
66# support?
67#
68# If we release a new version that does not change the binary API,

--- 192 unchanged lines hidden (view full) ---

261AC_PROG_LEX
262ACX_YYLEX_DESTROY
263AC_PROG_YACC
264AC_CHECK_PROG(doxygen, doxygen, doxygen)
265AC_CHECK_TOOL(STRIP, strip)
266ACX_LIBTOOL_C_ONLY
267
268# Checks for header files.
265AC_CHECK_HEADERS([stdarg.h stdbool.h netinet/in.h sys/param.h sys/socket.h sys/uio.h sys/resource.h arpa/inet.h syslog.h netdb.h sys/wait.h pwd.h glob.h grp.h login_cap.h winsock2.h ws2tcpip.h],,, [AC_INCLUDES_DEFAULT])
269AC_CHECK_HEADERS([stdarg.h stdbool.h netinet/in.h sys/param.h sys/socket.h sys/uio.h sys/resource.h arpa/inet.h syslog.h netdb.h sys/wait.h pwd.h glob.h grp.h login_cap.h winsock2.h ws2tcpip.h endian.h],,, [AC_INCLUDES_DEFAULT])
266
267# check for types.
268# Using own tests for int64* because autoconf builtin only give 32bit.
269AC_CHECK_TYPE(int8_t, signed char)
270AC_CHECK_TYPE(int16_t, short)
271AC_CHECK_TYPE(int32_t, int)
272AC_CHECK_TYPE(int64_t, long long)
273AC_CHECK_TYPE(uint8_t, unsigned char)

--- 35 unchanged lines hidden (view full) ---

309AC_SEARCH_LIBS([socket], [socket])
310
311# check wether strptime also works
312AC_DEFUN([AC_CHECK_STRPTIME_WORKS],
313[AC_REQUIRE([AC_PROG_CC])
314AC_MSG_CHECKING(whether strptime works)
315if test c${cross_compiling} = cno; then
316AC_RUN_IFELSE([AC_LANG_SOURCE([[
270
271# check for types.
272# Using own tests for int64* because autoconf builtin only give 32bit.
273AC_CHECK_TYPE(int8_t, signed char)
274AC_CHECK_TYPE(int16_t, short)
275AC_CHECK_TYPE(int32_t, int)
276AC_CHECK_TYPE(int64_t, long long)
277AC_CHECK_TYPE(uint8_t, unsigned char)

--- 35 unchanged lines hidden (view full) ---

313AC_SEARCH_LIBS([socket], [socket])
314
315# check wether strptime also works
316AC_DEFUN([AC_CHECK_STRPTIME_WORKS],
317[AC_REQUIRE([AC_PROG_CC])
318AC_MSG_CHECKING(whether strptime works)
319if test c${cross_compiling} = cno; then
320AC_RUN_IFELSE([AC_LANG_SOURCE([[
317#define _XOPEN_SOURCE
321#define _XOPEN_SOURCE 600
318#include <time.h>
319int main(void) { struct tm tm; char *res;
320res = strptime("2010-07-15T00:00:00+00:00", "%t%Y%t-%t%m%t-%t%d%tT%t%H%t:%t%M%t:%t%S%t", &tm);
321if (!res) return 2;
322res = strptime("20070207111842", "%Y%m%d%H%M%S", &tm);
323if (!res) return 1; return 0; }
324]])] , [eval "ac_cv_c_strptime_works=yes"], [eval "ac_cv_c_strptime_works=no"])
325else

--- 131 unchanged lines hidden (view full) ---

457# Check for Python & SWIG only on PyUnbound or PyModule
458if test x_$ub_test_python != x_no; then
459
460 # Check for Python
461 ub_have_python=no
462 ac_save_LIBS="$LIBS" dnl otherwise AC_PYTHON_DEVEL thrashes $LIBS
463 AC_PYTHON_DEVEL
464 if test ! -z "$PYTHON_VERSION"; then
322#include <time.h>
323int main(void) { struct tm tm; char *res;
324res = strptime("2010-07-15T00:00:00+00:00", "%t%Y%t-%t%m%t-%t%d%tT%t%H%t:%t%M%t:%t%S%t", &tm);
325if (!res) return 2;
326res = strptime("20070207111842", "%Y%m%d%H%M%S", &tm);
327if (!res) return 1; return 0; }
328]])] , [eval "ac_cv_c_strptime_works=yes"], [eval "ac_cv_c_strptime_works=no"])
329else

--- 131 unchanged lines hidden (view full) ---

461# Check for Python & SWIG only on PyUnbound or PyModule
462if test x_$ub_test_python != x_no; then
463
464 # Check for Python
465 ub_have_python=no
466 ac_save_LIBS="$LIBS" dnl otherwise AC_PYTHON_DEVEL thrashes $LIBS
467 AC_PYTHON_DEVEL
468 if test ! -z "$PYTHON_VERSION"; then
465 if test `$PYTHON -c "print '$PYTHON_VERSION' >= '2.4.0'"` = "False"; then
469 if test `$PYTHON -c "print('$PYTHON_VERSION' >= '2.4.0')"` = "False"; then
466 AC_ERROR([Python version >= 2.4.0 is required])
467 fi
468
469 # Have Python
470 AC_DEFINE(HAVE_PYTHON,1,[Define if you have Python libraries and header files.])
471 LIBS="$PYTHON_LDFLAGS $LIBS"
472 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
473 ub_have_python=yes

--- 75 unchanged lines hidden (view full) ---

549 LIBS="$LIBS -lnss3 -lnspr4"
550 ]
551)
552
553# openssl
554if test $USE_NSS = "no"; then
555ACX_WITH_SSL
556ACX_LIB_SSL
470 AC_ERROR([Python version >= 2.4.0 is required])
471 fi
472
473 # Have Python
474 AC_DEFINE(HAVE_PYTHON,1,[Define if you have Python libraries and header files.])
475 LIBS="$PYTHON_LDFLAGS $LIBS"
476 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
477 ub_have_python=yes

--- 75 unchanged lines hidden (view full) ---

553 LIBS="$LIBS -lnss3 -lnspr4"
554 ]
555)
556
557# openssl
558if test $USE_NSS = "no"; then
559ACX_WITH_SSL
560ACX_LIB_SSL
561AC_MSG_CHECKING([for LibreSSL])
562if grep OPENSSL_VERSION_TEXT $ssldir/include/openssl/opensslv.h | grep "LibreSSL" >/dev/null; then
563 AC_MSG_RESULT([yes])
564 AC_DEFINE([HAVE_LIBRESSL], [1], [Define if we have LibreSSL])
565 # libressl provides these compat functions, but they may also be
566 # declared by the OS in libc. See if they have been declared.
567 AC_CHECK_DECLS([strlcpy,strlcat,arc4random,arc4random_uniform])
568else
569 AC_MSG_RESULT([no])
570fi
557AC_CHECK_HEADERS([openssl/conf.h],,, [AC_INCLUDES_DEFAULT])
558AC_CHECK_HEADERS([openssl/engine.h],,, [AC_INCLUDES_DEFAULT])
559AC_CHECK_FUNCS([OPENSSL_config EVP_sha1 EVP_sha256 EVP_sha512 FIPS_mode])
560AC_CHECK_DECLS([SSL_COMP_get_compression_methods,sk_SSL_COMP_pop_free], [], [], [
561AC_INCLUDES_DEFAULT
562#ifdef HAVE_OPENSSL_ERR_H
563#include <openssl/err.h>
564#endif

--- 149 unchanged lines hidden (view full) ---

714 if test $USE_NSS = "no"; then
715 AC_CHECK_FUNC(ECDSA_sign, [], [AC_MSG_ERROR([OpenSSL does not support ECDSA: please upgrade or rerun with --disable-ecdsa])])
716 AC_CHECK_FUNC(SHA384_Init, [], [AC_MSG_ERROR([OpenSSL does not support SHA384: please upgrade or rerun with --disable-ecdsa])])
717 AC_CHECK_DECLS([NID_X9_62_prime256v1, NID_secp384r1], [], [AC_MSG_ERROR([OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa])], [AC_INCLUDES_DEFAULT
718#include <openssl/evp.h>
719 ])
720 # see if OPENSSL 1.0.0 or later (has EVP MD and Verify independency)
721 AC_MSG_CHECKING([if openssl supports SHA2 and ECDSA with EVP])
571AC_CHECK_HEADERS([openssl/conf.h],,, [AC_INCLUDES_DEFAULT])
572AC_CHECK_HEADERS([openssl/engine.h],,, [AC_INCLUDES_DEFAULT])
573AC_CHECK_FUNCS([OPENSSL_config EVP_sha1 EVP_sha256 EVP_sha512 FIPS_mode])
574AC_CHECK_DECLS([SSL_COMP_get_compression_methods,sk_SSL_COMP_pop_free], [], [], [
575AC_INCLUDES_DEFAULT
576#ifdef HAVE_OPENSSL_ERR_H
577#include <openssl/err.h>
578#endif

--- 149 unchanged lines hidden (view full) ---

728 if test $USE_NSS = "no"; then
729 AC_CHECK_FUNC(ECDSA_sign, [], [AC_MSG_ERROR([OpenSSL does not support ECDSA: please upgrade or rerun with --disable-ecdsa])])
730 AC_CHECK_FUNC(SHA384_Init, [], [AC_MSG_ERROR([OpenSSL does not support SHA384: please upgrade or rerun with --disable-ecdsa])])
731 AC_CHECK_DECLS([NID_X9_62_prime256v1, NID_secp384r1], [], [AC_MSG_ERROR([OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa])], [AC_INCLUDES_DEFAULT
732#include <openssl/evp.h>
733 ])
734 # see if OPENSSL 1.0.0 or later (has EVP MD and Verify independency)
735 AC_MSG_CHECKING([if openssl supports SHA2 and ECDSA with EVP])
722 if grep OPENSSL_VERSION_NUMBER $ssldir/include/openssl/opensslv.h | grep 0x0 >/dev/null; then
723 AC_MSG_RESULT([no])
724 AC_DEFINE_UNQUOTED([USE_ECDSA_EVP_WORKAROUND], [1], [Define this to enable an EVP workaround for older openssl])
736 if grep OPENSSL_VERSION_TEXT $ssldir/include/openssl/opensslv.h | grep "OpenSSL" >/dev/null; then
737 if grep OPENSSL_VERSION_NUMBER $ssldir/include/openssl/opensslv.h | grep 0x0 >/dev/null; then
738 AC_MSG_RESULT([no])
739 AC_DEFINE_UNQUOTED([USE_ECDSA_EVP_WORKAROUND], [1], [Define this to enable an EVP workaround for older openssl])
740 else
741 AC_MSG_RESULT([yes])
742 fi
725 else
743 else
744 # not OpenSSL, thus likely LibreSSL, which supports it
726 AC_MSG_RESULT([yes])
727 fi
728 fi
729 # we now know we have ECDSA and the required curves.
730 AC_DEFINE_UNQUOTED([USE_ECDSA], [1], [Define this to enable ECDSA support.])
731 use_ecdsa="yes"
732 ;;
733esac

--- 227 unchanged lines hidden (view full) ---

961AC_REPLACE_FUNCS(inet_aton)
962AC_REPLACE_FUNCS(inet_pton)
963AC_REPLACE_FUNCS(inet_ntop)
964AC_REPLACE_FUNCS(snprintf)
965AC_REPLACE_FUNCS(strlcat)
966AC_REPLACE_FUNCS(strlcpy)
967AC_REPLACE_FUNCS(memmove)
968AC_REPLACE_FUNCS(gmtime_r)
745 AC_MSG_RESULT([yes])
746 fi
747 fi
748 # we now know we have ECDSA and the required curves.
749 AC_DEFINE_UNQUOTED([USE_ECDSA], [1], [Define this to enable ECDSA support.])
750 use_ecdsa="yes"
751 ;;
752esac

--- 227 unchanged lines hidden (view full) ---

980AC_REPLACE_FUNCS(inet_aton)
981AC_REPLACE_FUNCS(inet_pton)
982AC_REPLACE_FUNCS(inet_ntop)
983AC_REPLACE_FUNCS(snprintf)
984AC_REPLACE_FUNCS(strlcat)
985AC_REPLACE_FUNCS(strlcpy)
986AC_REPLACE_FUNCS(memmove)
987AC_REPLACE_FUNCS(gmtime_r)
988LIBOBJ_WITHOUT_CTIMEARC4="$LIBOBJS"
989AC_SUBST(LIBOBJ_WITHOUT_CTIMEARC4)
990if test "$USE_NSS" = "no"; then
991 AC_REPLACE_FUNCS(arc4random)
992 AC_REPLACE_FUNCS(arc4random_uniform)
993 if test "$ac_cv_func_arc4random" = "no"; then
994 AC_LIBOBJ(explicit_bzero)
995 AC_LIBOBJ(arc4_lock)
996 AC_CHECK_FUNCS([getentropy],,[
997 if test "$USE_WINSOCK" = 1; then
998 AC_LIBOBJ(getentropy_win)
999 else
1000 case `uname` in
1001 Darwin)
1002 AC_LIBOBJ(getentropy_osx)
1003 ;;
1004 SunOS)
1005 AC_LIBOBJ(getentropy_solaris)
1006 AC_CHECK_HEADERS([sys/sha2.h],, [
1007 AC_CHECK_FUNCS([SHA512_Update],,[
1008 AC_LIBOBJ(sha512)
1009 ])
1010 ], [AC_INCLUDES_DEFAULT])
1011 if test "$ac_cv_header_sys_sha2_h" = "yes"; then
1012 # this lib needed for sha2 on solaris
1013 LIBS="$LIBS -lmd"
1014 fi
1015 ;;
1016 Linux|*)
1017 AC_LIBOBJ(getentropy_linux)
1018 AC_CHECK_FUNCS([SHA512_Update],,[
1019 AC_DEFINE([COMPAT_SHA512], [1], [Do sha512 definitions in config.h])
1020 AC_LIBOBJ(sha512)
1021 ])
1022 AC_CHECK_HEADERS([sys/sysctl.h],,, [AC_INCLUDES_DEFAULT])
1023 AC_SEARCH_LIBS([clock_gettime], [rt])
1024 ;;
1025 esac
1026 fi
1027 ])
1028 fi
1029fi
969LIBOBJ_WITHOUT_CTIME="$LIBOBJS"
970AC_SUBST(LIBOBJ_WITHOUT_CTIME)
971AC_REPLACE_FUNCS(ctime_r)
972
973AC_ARG_ENABLE(allsymbols, AC_HELP_STRING([--enable-allsymbols], [export all symbols from libunbound and link binaries to it, smaller install size but libunbound export table is polluted by internal symbols]))
974case "$enable_allsymbols" in
975 yes)
976 COMMON_OBJ_ALL_SYMBOLS=""

--- 20 unchanged lines hidden (view full) ---

997 echo checklock_stop >> clubsyms.def
998 echo checklock_lock >> clubsyms.def
999 echo checklock_unlock >> clubsyms.def
1000 echo checklock_init >> clubsyms.def
1001 echo checklock_thrcreate >> clubsyms.def
1002 echo checklock_thrjoin >> clubsyms.def
1003fi
1004
1030LIBOBJ_WITHOUT_CTIME="$LIBOBJS"
1031AC_SUBST(LIBOBJ_WITHOUT_CTIME)
1032AC_REPLACE_FUNCS(ctime_r)
1033
1034AC_ARG_ENABLE(allsymbols, AC_HELP_STRING([--enable-allsymbols], [export all symbols from libunbound and link binaries to it, smaller install size but libunbound export table is polluted by internal symbols]))
1035case "$enable_allsymbols" in
1036 yes)
1037 COMMON_OBJ_ALL_SYMBOLS=""

--- 20 unchanged lines hidden (view full) ---

1058 echo checklock_stop >> clubsyms.def
1059 echo checklock_lock >> clubsyms.def
1060 echo checklock_unlock >> clubsyms.def
1061 echo checklock_init >> clubsyms.def
1062 echo checklock_thrcreate >> clubsyms.def
1063 echo checklock_thrjoin >> clubsyms.def
1064fi
1065
1066# check for dnstap if requested
1067dt_DNSTAP([$UNBOUND_RUN_DIR/dnstap.sock],
1068 [
1069 AC_DEFINE([USE_DNSTAP], [1], [Define to 1 to enable dnstap support])
1070 AC_SUBST([ENABLE_DNSTAP], [1])
1071
1072 AC_SUBST([opt_dnstap_socket_path])
1073 ACX_ESCAPE_BACKSLASH($opt_dnstap_socket_path, hdr_dnstap_socket_path)
1074 AC_DEFINE_UNQUOTED(DNSTAP_SOCKET_PATH,
1075 ["$hdr_dnstap_socket_path"], [default dnstap socket path])
1076
1077 AC_SUBST([DNSTAP_SRC], ["dnstap/dnstap.c dnstap/dnstap.pb-c.c"])
1078 AC_SUBST([DNSTAP_OBJ], ["dnstap.lo dnstap.pb-c.lo"])
1079 ],
1080 [
1081 AC_SUBST([ENABLE_DNSTAP], [0])
1082 ]
1083)
1084
1005AC_MSG_CHECKING([if ${MAKE:-make} supports $< with implicit rule in scope])
1006# on openBSD, the implicit rule make $< work.
1007# on Solaris, it does not work ($? is changed sources, $^ lists dependencies).
1008# gmake works.
1009cat >conftest.make <<EOF
1010all: conftest.lo
1011
1012conftest.lo foo.lo bla.lo:

--- 141 unchanged lines hidden (view full) ---

1154#endif
1155
1156#if !defined(HAVE_STRPTIME) || !defined(STRPTIME_WORKS)
1157#define strptime unbound_strptime
1158struct tm;
1159char *strptime(const char *s, const char *format, struct tm *tm);
1160#endif
1161
1085AC_MSG_CHECKING([if ${MAKE:-make} supports $< with implicit rule in scope])
1086# on openBSD, the implicit rule make $< work.
1087# on Solaris, it does not work ($? is changed sources, $^ lists dependencies).
1088# gmake works.
1089cat >conftest.make <<EOF
1090all: conftest.lo
1091
1092conftest.lo foo.lo bla.lo:

--- 141 unchanged lines hidden (view full) ---

1234#endif
1235
1236#if !defined(HAVE_STRPTIME) || !defined(STRPTIME_WORKS)
1237#define strptime unbound_strptime
1238struct tm;
1239char *strptime(const char *s, const char *format, struct tm *tm);
1240#endif
1241
1242#ifdef HAVE_LIBRESSL
1243# if !HAVE_DECL_STRLCPY
1244size_t strlcpy(char *dst, const char *src, size_t siz);
1245# endif
1246# if !HAVE_DECL_STRLCAT
1247size_t strlcat(char *dst, const char *src, size_t siz);
1248# endif
1249# if !HAVE_DECL_ARC4RANDOM && defined(HAVE_ARC4RANDOM)
1250uint32_t arc4random(void);
1251# endif
1252# if !HAVE_DECL_ARC4RANDOM_UNIFORM && defined(HAVE_ARC4RANDOM_UNIFORM)
1253uint32_t arc4random_uniform(uint32_t upper_bound);
1254# endif
1255#endif /* HAVE_LIBRESSL */
1256#ifndef HAVE_ARC4RANDOM
1257void explicit_bzero(void* buf, size_t len);
1258int getentropy(void* buf, size_t len);
1259uint32_t arc4random(void);
1260void arc4random_buf(void* buf, size_t n);
1261void _ARC4_LOCK(void);
1262void _ARC4_UNLOCK(void);
1263#endif
1264#ifndef HAVE_ARC4RANDOM_UNIFORM
1265uint32_t arc4random_uniform(uint32_t upper_bound);
1266#endif
1267#ifdef COMPAT_SHA512
1268#ifndef SHA512_DIGEST_LENGTH
1269#define SHA512_BLOCK_LENGTH 128
1270#define SHA512_DIGEST_LENGTH 64
1271#define SHA512_DIGEST_STRING_LENGTH (SHA512_DIGEST_LENGTH * 2 + 1)
1272typedef struct _SHA512_CTX {
1273 uint64_t state[8];
1274 uint64_t bitcount[2];
1275 uint8_t buffer[SHA512_BLOCK_LENGTH];
1276} SHA512_CTX;
1277#endif /* SHA512_DIGEST_LENGTH */
1278void SHA512_Init(SHA512_CTX*);
1279void SHA512_Update(SHA512_CTX*, void*, size_t);
1280void SHA512_Final(uint8_t[SHA512_DIGEST_LENGTH], SHA512_CTX*);
1281unsigned char *SHA512(void* data, unsigned int data_len, unsigned char *digest);
1282#endif /* COMPAT_SHA512 */
1283
1284
1285
1162#if defined(HAVE_EVENT_H) && !defined(HAVE_EVENT_BASE_ONCE) && !(defined(HAVE_EV_LOOP) || defined(HAVE_EV_DEFAULT_LOOP)) && (defined(HAVE_PTHREAD) || defined(HAVE_SOLARIS_THREADS))
1163 /* using version of libevent that is not threadsafe. */
1164# define LIBEVENT_SIGNAL_PROBLEM 1
1165#endif
1166
1167#ifndef CHECKED_INET6
1168# define CHECKED_INET6
1169# ifdef AF_INET6

--- 34 unchanged lines hidden (view full) ---

1204/** default port for unbound control traffic, registered port with IANA,
1205 ub-dns-control 8953/tcp unbound dns nameserver control */
1206#define UNBOUND_CONTROL_PORT 8953
1207/** the version of unbound-control that this software implements */
1208#define UNBOUND_CONTROL_VERSION 1
1209
1210])
1211
1286#if defined(HAVE_EVENT_H) && !defined(HAVE_EVENT_BASE_ONCE) && !(defined(HAVE_EV_LOOP) || defined(HAVE_EV_DEFAULT_LOOP)) && (defined(HAVE_PTHREAD) || defined(HAVE_SOLARIS_THREADS))
1287 /* using version of libevent that is not threadsafe. */
1288# define LIBEVENT_SIGNAL_PROBLEM 1
1289#endif
1290
1291#ifndef CHECKED_INET6
1292# define CHECKED_INET6
1293# ifdef AF_INET6

--- 34 unchanged lines hidden (view full) ---

1328/** default port for unbound control traffic, registered port with IANA,
1329 ub-dns-control 8953/tcp unbound dns nameserver control */
1330#define UNBOUND_CONTROL_PORT 8953
1331/** the version of unbound-control that this software implements */
1332#define UNBOUND_CONTROL_VERSION 1
1333
1334])
1335
1212AC_CONFIG_FILES([Makefile doc/example.conf doc/libunbound.3 doc/unbound.8 doc/unbound-anchor.8 doc/unbound-checkconf.8 doc/unbound.conf.5 doc/unbound-control.8 smallapp/unbound-control-setup.sh])
1336dnl if we build from source tree, the man pages need @date@ and @version@
1337dnl if this is a distro tarball, that was already done by makedist.sh
1338AC_SUBST(version, [VERSION_MAJOR.VERSION_MINOR.VERSION_MICRO])
1339AC_SUBST(date, [`date +'%b %e, %Y'`])
1340
1341AC_CONFIG_FILES([Makefile doc/example.conf doc/libunbound.3 doc/unbound.8 doc/unbound-anchor.8 doc/unbound-checkconf.8 doc/unbound.conf.5 doc/unbound-control.8 doc/unbound-host.1 smallapp/unbound-control-setup.sh dnstap/dnstap_config.h])
1213AC_CONFIG_HEADER([config.h])
1214AC_OUTPUT
1342AC_CONFIG_HEADER([config.h])
1343AC_OUTPUT