diff options
author | Bertrand Marc <beberking@gmail.com> | 2012-06-06 20:47:48 +0200 |
---|---|---|
committer | Bertrand Marc <beberking@gmail.com> | 2012-06-06 20:47:48 +0200 |
commit | 740b30688bd745a527f96f9116c19acb3480971a (patch) | |
tree | 2709a3f4dba11c174aa9e1ba3612e30c578e76a9 /configure | |
parent | 2b81464a43485fcc8ce079fafdee7b7a171835f4 (diff) |
Imported Upstream version 0.9.3upstream/0.9.3
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 585 |
1 files changed, 542 insertions, 43 deletions
@@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.67 for gnunet 0.9.2. +# Generated by GNU Autoconf 2.67 for gnunet 0.9.3. # # Report bugs to <bug-gnunet@gnu.org>. # @@ -705,8 +705,8 @@ MAKEFLAGS= # Identity of this package. PACKAGE_NAME='gnunet' PACKAGE_TARNAME='gnunet' -PACKAGE_VERSION='0.9.2' -PACKAGE_STRING='gnunet 0.9.2' +PACKAGE_VERSION='0.9.3' +PACKAGE_STRING='gnunet 0.9.3' PACKAGE_BUGREPORT='bug-gnunet@gnu.org' PACKAGE_URL='' @@ -759,11 +759,17 @@ HAVE_EXPERIMENTAL_FALSE HAVE_EXPERIMENTAL_TRUE HAVE_BENCHMARKS_FALSE HAVE_BENCHMARKS_TRUE +JAVAPORT HAVE_EXPENSIVE_TESTS_FALSE HAVE_EXPENSIVE_TESTS_TRUE +MONKEYPREFIX +ENABLE_MONKEY_FALSE +ENABLE_MONKEY_TRUE ENABLE_TEST_RUN_FALSE ENABLE_TEST_RUN_TRUE GNUNETDNS_GROUP +HAVE_SUDO_FALSE +HAVE_SUDO_TRUE SUDO_BINARY DLLDIR LIBPREFIX @@ -828,6 +834,8 @@ LIBUNISTRING HAVE_LIBUNISTRING LTLIBICONV LIBICONV +HAVE_GLIBCNSS_FALSE +HAVE_GLIBCNSS_TRUE HAVE_LIBGLPK_FALSE HAVE_LIBGLPK_TRUE LIBCURL @@ -1043,7 +1051,9 @@ enable_framework with_sudo with_gnunetdns enable_testruns +enable_monkey enable_expensivetests +enable_javaports enable_benchmarks enable_experimental enable_windows_workarounds @@ -1607,7 +1617,7 @@ if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures gnunet 0.9.2 to adapt to many kinds of systems. +\`configure' configures gnunet 0.9.3 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1682,7 +1692,7 @@ fi if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of gnunet 0.9.2:";; + short | recursive ) echo "Configuration of gnunet 0.9.3:";; esac cat <<\_ACEOF @@ -1712,8 +1722,10 @@ Optional Features: --disable-nls do not use Native Language Support --enable-framework enable Mac OS X framework build helpers --disable-testruns disable running tests on make check (default is YES) - --enable-expensive-tests - enable running expensive testcases + --enable-monkey enable running with monkey + --enable-expensivetests enable running expensive testcases + --enable-javaports use non-zero ports for services with Java bindings + (default is NO) --enable-benchmarks enable running benchmarks during make check --enable-experimental enable compiling experimental code --enable-windows_workarounds @@ -1838,7 +1850,7 @@ fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -gnunet configure 0.9.2 +gnunet configure 0.9.3 generated by GNU Autoconf 2.67 Copyright (C) 2010 Free Software Foundation, Inc. @@ -2701,7 +2713,7 @@ cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by gnunet $as_me 0.9.2, which was +It was created by gnunet $as_me 0.9.3, which was generated by GNU Autoconf 2.67. Invocation command line was $ $0 $@ @@ -3631,7 +3643,7 @@ fi # Define the identity of the package. PACKAGE=gnunet - VERSION=0.9.2 + VERSION=0.9.3 cat >>confdefs.h <<_ACEOF @@ -6383,13 +6395,13 @@ if test "${lt_cv_nm_interface+set}" = set; then : else lt_cv_nm_interface="BSD nm" echo "int some_variable = 0;" > conftest.$ac_ext - (eval echo "\"\$as_me:6386: $ac_compile\"" >&5) + (eval echo "\"\$as_me:6398: $ac_compile\"" >&5) (eval "$ac_compile" 2>conftest.err) cat conftest.err >&5 - (eval echo "\"\$as_me:6389: $NM \\\"conftest.$ac_objext\\\"\"" >&5) + (eval echo "\"\$as_me:6401: $NM \\\"conftest.$ac_objext\\\"\"" >&5) (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) cat conftest.err >&5 - (eval echo "\"\$as_me:6392: output\"" >&5) + (eval echo "\"\$as_me:6404: output\"" >&5) cat conftest.out >&5 if $GREP 'External.*some_variable' conftest.out > /dev/null; then lt_cv_nm_interface="MS dumpbin" @@ -7581,7 +7593,7 @@ ia64-*-hpux*) ;; *-*-irix6*) # Find out which ABI we are using. - echo '#line 7584 "configure"' > conftest.$ac_ext + echo '#line 7596 "configure"' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? @@ -9796,11 +9808,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:9799: $lt_compile\"" >&5) + (eval echo "\"\$as_me:9811: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:9803: \$? = $ac_status" >&5 + echo "$as_me:9815: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. @@ -10135,11 +10147,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:10138: $lt_compile\"" >&5) + (eval echo "\"\$as_me:10150: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:10142: \$? = $ac_status" >&5 + echo "$as_me:10154: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. @@ -10240,11 +10252,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:10243: $lt_compile\"" >&5) + (eval echo "\"\$as_me:10255: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 - echo "$as_me:10247: \$? = $ac_status" >&5 + echo "$as_me:10259: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized @@ -10295,11 +10307,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:10298: $lt_compile\"" >&5) + (eval echo "\"\$as_me:10310: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 - echo "$as_me:10302: \$? = $ac_status" >&5 + echo "$as_me:10314: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized @@ -12679,7 +12691,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 12682 "configure" +#line 12694 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -12775,7 +12787,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 12778 "configure" +#line 12790 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -14731,11 +14743,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:14734: $lt_compile\"" >&5) + (eval echo "\"\$as_me:14746: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:14738: \$? = $ac_status" >&5 + echo "$as_me:14750: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. @@ -14830,11 +14842,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:14833: $lt_compile\"" >&5) + (eval echo "\"\$as_me:14845: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 - echo "$as_me:14837: \$? = $ac_status" >&5 + echo "$as_me:14849: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized @@ -14882,11 +14894,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:14885: $lt_compile\"" >&5) + (eval echo "\"\$as_me:14897: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 - echo "$as_me:14889: \$? = $ac_status" >&5 + echo "$as_me:14901: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized @@ -16294,7 +16306,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 16297 "configure" +#line 16309 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -17191,6 +17203,8 @@ fi # Use Linux interface name unless the OS has a different preference DEFAULT_INTERFACE="\"eth0\"" +funcstocheck="socket select inet_ntoa getnameinfo gethostname gethostbyname gethostbyaddr getaddrinfo" + # Check system type case "$host_os" in *darwin* | *rhapsody* | *macosx*) @@ -18581,7 +18595,7 @@ fi LDFLAGS="$LDFLAGS -Wl,-no-undefined -Wl,--export-all-symbols" LIBS="$LIBS -lws2_32 -lplibc -lgnurx -lole32" CFLAGS="-mms-bitfields $CFLAGS" - CPPFLAGS="-D_WIN32_WINNT=0x0501 $CPPFLAGS" + CPPFLAGS="-D_WIN32_WINNT=0x0501 -DHAVE_STAT64=1 $CPPFLAGS" build_target="mingw" ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' @@ -18970,6 +18984,7 @@ fi LIBPREFIX=lib DLLDIR=bin UNIXONLY="" + funcstocheck="" ;; *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Unrecognised OS $host_os" >&5 @@ -18993,6 +19008,7 @@ _ACEOF # sockets in default configuratin: + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build target" >&5 $as_echo_n "checking for build target... " >&6; } if test "$build_target" = "darwin"; then @@ -20160,6 +20176,46 @@ $as_echo "#define HAVE_LIBGLPK 1" >>confdefs.h fi + +for ac_header in nss.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "nss.h" "ac_cv_header_nss_h" "$ac_includes_default" +if test "x$ac_cv_header_nss_h" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_NSS_H 1 +_ACEOF + nss=true +else + nss=false +fi + +done + +if test x$nss = xfalse +then + if false; then + HAVE_GLIBCNSS_TRUE= + HAVE_GLIBCNSS_FALSE='#' +else + HAVE_GLIBCNSS_TRUE='#' + HAVE_GLIBCNSS_FALSE= +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No GNU libc nss header, will not build NSS plugin" >&5 +$as_echo "$as_me: WARNING: No GNU libc nss header, will not build NSS plugin" >&2;} +else + if true; then + HAVE_GLIBCNSS_TRUE= + HAVE_GLIBCNSS_FALSE='#' +else + HAVE_GLIBCNSS_TRUE='#' + HAVE_GLIBCNSS_FALSE= +fi + +fi + + + # test for kvm and kstat (for CPU stats under BSD/Solaris) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5 $as_echo_n "checking for kvm_open in -lkvm... " >&6; } @@ -23523,13 +23579,13 @@ $as_echo "$with_microhttpd" >&6; } yes) for ac_header in microhttpd.h do : - ac_fn_c_check_header_compile "$LINENO" "microhttpd.h" "ac_cv_header_microhttpd_h" "#include \"src/include/platform.h\" + ac_fn_c_check_header_compile "$LINENO" "microhttpd.h" "ac_cv_header_microhttpd_h" "#include \"$srcdir/src/include/platform.h\" " if test "x$ac_cv_header_microhttpd_h" = x""yes; then : cat >>confdefs.h <<_ACEOF #define HAVE_MICROHTTPD_H 1 _ACEOF - ac_fn_c_check_decl "$LINENO" "MHD_OPTION_PER_IP_CONNECTION_LIMIT" "ac_cv_have_decl_MHD_OPTION_PER_IP_CONNECTION_LIMIT" "#include \"src/include/platform.h\" + ac_fn_c_check_decl "$LINENO" "MHD_OPTION_PER_IP_CONNECTION_LIMIT" "ac_cv_have_decl_MHD_OPTION_PER_IP_CONNECTION_LIMIT" "#include \"$srcdir/src/include/platform.h\" #include <microhttpd.h> " if test "x$ac_cv_have_decl_MHD_OPTION_PER_IP_CONNECTION_LIMIT" = x""yes; then : @@ -23570,7 +23626,32 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_microhttpd_MHD_start_daemon" >&5 $as_echo "$ac_cv_lib_microhttpd_MHD_start_daemon" >&6; } if test "x$ac_cv_lib_microhttpd_MHD_start_daemon" = x""yes; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmicrohttpd >= 0.9.18" >&5 +$as_echo_n "checking for libmicrohttpd >= 0.9.18... " >&6; } + if test "$cross_compiling" = yes; then : lmhd=1 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include "$srcdir/src/include/platform.h" + #include <microhttpd.h> + int main () { return MHD_VERSION >= 0x0091200 ? 0 : 1; } + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 +$as_echo "ok" >&6; } + lmhd=1 +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 +$as_echo "failed" >&6; } +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + fi fi @@ -23585,13 +23666,13 @@ done CPPFLAGS="-I$with_microhttpd/include $CPPFLAGS" for ac_header in microhttpd.h do : - ac_fn_c_check_header_compile "$LINENO" "microhttpd.h" "ac_cv_header_microhttpd_h" "#include \"src/include/platform.h\" + ac_fn_c_check_header_compile "$LINENO" "microhttpd.h" "ac_cv_header_microhttpd_h" "#include \"$srcdir/src/include/platform.h\" " if test "x$ac_cv_header_microhttpd_h" = x""yes; then : cat >>confdefs.h <<_ACEOF #define HAVE_MICROHTTPD_H 1 _ACEOF - ac_fn_c_check_decl "$LINENO" "MHD_OPTION_PER_IP_CONNECTION_LIMIT" "ac_cv_have_decl_MHD_OPTION_PER_IP_CONNECTION_LIMIT" "#include \"src/include/platform.h\" + ac_fn_c_check_decl "$LINENO" "MHD_OPTION_PER_IP_CONNECTION_LIMIT" "ac_cv_have_decl_MHD_OPTION_PER_IP_CONNECTION_LIMIT" "#include \"$srcdir/src/include/platform.h\" #include <microhttpd.h> " if test "x$ac_cv_have_decl_MHD_OPTION_PER_IP_CONNECTION_LIMIT" = x""yes; then : @@ -23633,7 +23714,32 @@ fi $as_echo "$ac_cv_lib_microhttpd_MHD_start_daemon" >&6; } if test "x$ac_cv_lib_microhttpd_MHD_start_daemon" = x""yes; then : EXT_LIB_PATH="-L$with_microhttpd/lib $EXT_LIB_PATH" - lmhd=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmicrohttpd >= 0.9.18" >&5 +$as_echo_n "checking for libmicrohttpd >= 0.9.18... " >&6; } + if test "$cross_compiling" = yes; then : + lmhd=1 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include "$srcdir/src/include/platform.h" + #include <microhttpd.h> + int main () { return MHD_VERSION >= 0x0091200 ? 0 : 1; } + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 +$as_echo "ok" >&6; } + lmhd=1 +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 +$as_echo "failed" >&6; } +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + fi fi @@ -23650,13 +23756,13 @@ else $as_echo "--with-microhttpd not specified" >&6; } for ac_header in microhttpd.h do : - ac_fn_c_check_header_compile "$LINENO" "microhttpd.h" "ac_cv_header_microhttpd_h" "#include \"src/include/platform.h\" + ac_fn_c_check_header_compile "$LINENO" "microhttpd.h" "ac_cv_header_microhttpd_h" "#include \"$srcdir/src/include/platform.h\" " if test "x$ac_cv_header_microhttpd_h" = x""yes; then : cat >>confdefs.h <<_ACEOF #define HAVE_MICROHTTPD_H 1 _ACEOF - ac_fn_c_check_decl "$LINENO" "MHD_OPTION_PER_IP_CONNECTION_LIMIT" "ac_cv_have_decl_MHD_OPTION_PER_IP_CONNECTION_LIMIT" "#include \"src/include/platform.h\" + ac_fn_c_check_decl "$LINENO" "MHD_OPTION_PER_IP_CONNECTION_LIMIT" "ac_cv_have_decl_MHD_OPTION_PER_IP_CONNECTION_LIMIT" "#include \"$srcdir/src/include/platform.h\" #include <microhttpd.h> " if test "x$ac_cv_have_decl_MHD_OPTION_PER_IP_CONNECTION_LIMIT" = x""yes; then : @@ -23697,7 +23803,32 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_microhttpd_MHD_start_daemon" >&5 $as_echo "$ac_cv_lib_microhttpd_MHD_start_daemon" >&6; } if test "x$ac_cv_lib_microhttpd_MHD_start_daemon" = x""yes; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmicrohttpd >= 0.9.18" >&5 +$as_echo_n "checking for libmicrohttpd >= 0.9.18... " >&6; } + if test "$cross_compiling" = yes; then : lmhd=1 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include "$srcdir/src/include/platform.h" + #include <microhttpd.h> + int main () { return MHD_VERSION >= 0x0091200 ? 0 : 1; } + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 +$as_echo "ok" >&6; } + lmhd=1 +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 +$as_echo "failed" >&6; } +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + fi fi @@ -26392,7 +26523,7 @@ $as_echo "#define gid_t int" >>confdefs.h fi -for ac_func in floor gethostname memmove rmdir strncasecmp strrchr strtol atoll dup2 fdatasync ftruncate gettimeofday memset mkdir mkfifo select socket strcasecmp strchr strdup strerror strstr clock_gettime getrusage rand uname setlocale getcwd mktime gmtime_r gmtime strlcpy strlcat ftruncate stat64 sbrk mmap mremap setrlimit sysconf gethostbyaddr initgroups getifaddrs freeifaddrs getnameinfo getaddrinfo inet_ntoa localtime_r nl_langinfo putenv realpath strndup gethostbyname2 gethostbyname getpeerucred getpeereid setresuid +for ac_func in floor memmove rmdir strncasecmp strrchr strtol atoll dup2 fdatasync ftruncate gettimeofday memset mkdir mkfifo strcasecmp strchr strdup strerror strstr clock_gettime getrusage rand uname setlocale getcwd mktime gmtime_r gmtime strlcpy strlcat ftruncate stat64 sbrk mmap mremap setrlimit sysconf initgroups getifaddrs freeifaddrs localtime_r nl_langinfo putenv realpath strndup gethostbyname2 gethostbyname getpeerucred getpeereid setresuid $funcstocheck do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" @@ -26528,6 +26659,13 @@ $as_echo "no" >&6; } fi + if test "x$SUDO_BINARY" != "x" -o -w /; then + HAVE_SUDO_TRUE= + HAVE_SUDO_FALSE='#' +else + HAVE_SUDO_TRUE='#' + HAVE_SUDO_FALSE= +fi # test for gnunetdns group name @@ -26580,6 +26718,36 @@ else fi + +# should monkey be used when running (certain) services? +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to run with monkey" >&5 +$as_echo_n "checking whether to run with monkey... " >&6; } +# Check whether --enable-monkey was given. +if test "${enable_monkey+set}" = set; then : + enableval=$enable_monkey; enable_monkey=${enableval} +else + enable_monkey=no +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_monkey" >&5 +$as_echo "$enable_monkey" >&6; } + if test "x$enable_monkey" = "xyes"; then + ENABLE_MONKEY_TRUE= + ENABLE_MONKEY_FALSE='#' +else + ENABLE_MONKEY_TRUE='#' + ENABLE_MONKEY_FALSE= +fi + +if test "x$enable_monkey" = "xyes" +then + MONKEYPREFIX="monkey" +else + MONKEYPREFIX="" +fi + + + # should expensive tests be run? { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to run expensive tests" >&5 $as_echo_n "checking whether to run expensive tests... " >&6; } @@ -26601,6 +26769,26 @@ else fi +# should ports be open for Java services? +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ports for gnunet-java" >&5 +$as_echo_n "checking whether to enable ports for gnunet-java... " >&6; } +# Check whether --enable-javaports was given. +if test "${enable_javaports+set}" = set; then : + enableval=$enable_javaports; enable_java_ports=${enableval} +else + enable_java_ports=no +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_java_ports" >&5 +$as_echo "$enable_java_ports" >&6; } +if test "x$enable_java_ports" = "xyes" +then + JAVAPORT="" +else + JAVAPORT="$UNIXONLY" +fi + + # should benchmarks be run? { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to run benchmarks during make check" >&5 $as_echo_n "checking whether to run benchmarks during make check... " >&6; } @@ -26648,6 +26836,280 @@ fi if test $build_target = "mingw" then workarounds=1 + +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include <ws2tcpip.h> + +int +main () +{ + + int s = socket (0, 0, 0); + ; + return 0; +} + +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + +cat >>confdefs.h <<_ACEOF +#define HAVE_SOCKET 1 +_ACEOF + + +else + + +cat >>confdefs.h <<_ACEOF +#define HAVE_SOCKET 0 +_ACEOF + + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include <ws2tcpip.h> + +int +main () +{ + + int s = select (0, NULL, NULL, NULL, NULL); + ; + return 0; +} + +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + +cat >>confdefs.h <<_ACEOF +#define HAVE_SELECT 1 +_ACEOF + + +else + + +cat >>confdefs.h <<_ACEOF +#define HAVE_SELECT 0 +_ACEOF + + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include <ws2tcpip.h> + +int +main () +{ + + struct in_addr i; + char *s = inet_ntoa (i); + ; + return 0; +} + +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + +cat >>confdefs.h <<_ACEOF +#define HAVE_INET_NTOA 1 +_ACEOF + + +else + + +cat >>confdefs.h <<_ACEOF +#define HAVE_INET_NTOA 0 +_ACEOF + + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include <ws2tcpip.h> + +int +main () +{ + + int s = getnameinfo (NULL, 0, NULL, 0, NULL, 0, 0); + ; + return 0; +} + +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + +cat >>confdefs.h <<_ACEOF +#define HAVE_GETNAMEINFO 1 +_ACEOF + + +else + + +cat >>confdefs.h <<_ACEOF +#define HAVE_GETNAMEINFO 0 +_ACEOF + + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include <ws2tcpip.h> + +int +main () +{ + + int s = gethostname (NULL, 0); + ; + return 0; +} + +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + +cat >>confdefs.h <<_ACEOF +#define HAVE_GETHOSTNAME 1 +_ACEOF + + +else + + +cat >>confdefs.h <<_ACEOF +#define HAVE_GETHOSTNAME 0 +_ACEOF + + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include <ws2tcpip.h> + +int +main () +{ + + void *s = gethostbyname (NULL); + ; + return 0; +} + +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + +cat >>confdefs.h <<_ACEOF +#define HAVE_GETHOSTBYNAME 1 +_ACEOF + + +else + + +cat >>confdefs.h <<_ACEOF +#define HAVE_GETHOSTBYNAME 0 +_ACEOF + + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include <ws2tcpip.h> + +int +main () +{ + + void *s = gethostbyaddr (NULL, 0, 0); + ; + return 0; +} + +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + +cat >>confdefs.h <<_ACEOF +#define HAVE_GETHOSTBYADDR 1 +_ACEOF + + +else + + +cat >>confdefs.h <<_ACEOF +#define HAVE_GETHOSTBYADDR 0 +_ACEOF + + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include <ws2tcpip.h> + +int +main () +{ + + int s = getaddrinfo (NULL, NULL, NULL, NULL); + ; + return 0; +} + +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + +cat >>confdefs.h <<_ACEOF +#define HAVE_GETADDRINFO 1 +_ACEOF + + +else + + +cat >>confdefs.h <<_ACEOF +#define HAVE_GETADDRINFO 1 +_ACEOF + + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + else { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable windows workarounds" >&5 $as_echo_n "checking whether to enable windows workarounds... " >&6; } @@ -26695,7 +27157,7 @@ fi -ac_config_files="$ac_config_files Makefile contrib/Makefile doc/Makefile doc/man/Makefile m4/Makefile po/Makefile.in src/Makefile src/arm/Makefile src/arm/arm.conf src/ats/Makefile src/ats/ats.conf src/block/Makefile src/chat/Makefile src/chat/chat.conf src/core/Makefile src/core/core.conf src/datacache/Makefile src/datastore/Makefile src/datastore/datastore.conf src/dht/Makefile src/dht/dht.conf src/dns/Makefile src/dns/dns.conf src/dv/Makefile src/dv/dv.conf src/exit/Makefile src/fragmentation/Makefile src/fs/Makefile src/fs/fs.conf src/gns/Makefile src/gns/gns.conf src/hello/Makefile src/include/Makefile src/include/gnunet_directories.h src/hostlist/Makefile src/mesh/Makefile src/mesh/mesh.conf src/namestore/Makefile src/namestore/namestore.conf src/nat/Makefile src/nse/Makefile src/nse/nse.conf src/peerinfo/Makefile src/peerinfo/peerinfo.conf src/peerinfo-tool/Makefile src/pt/Makefile src/statistics/Makefile src/statistics/statistics.conf src/stream/Makefile src/template/Makefile src/testing/Makefile src/topology/Makefile src/transport/Makefile src/transport/transport.conf src/tun/Makefile src/util/Makefile src/util/resolver.conf src/vpn/Makefile src/vpn/vpn.conf src/integration-tests/Makefile pkgconfig/Makefile pkgconfig/gnunetarm.pc pkgconfig/gnunetblock.pc pkgconfig/gnunetcore.pc pkgconfig/gnunetdatacache.pc pkgconfig/gnunetdatastore.pc pkgconfig/gnunetdht.pc pkgconfig/gnunetdhtlog.pc pkgconfig/gnunetdv.pc pkgconfig/gnunetfragmentation.pc pkgconfig/gnunetfs.pc pkgconfig/gnunethello.pc pkgconfig/gnunetnat.pc pkgconfig/gnunetnse.pc pkgconfig/gnunetpeerinfo.pc pkgconfig/gnunetstatistics.pc pkgconfig/gnunettesting.pc pkgconfig/gnunettransport.pc pkgconfig/gnunetutil.pc" +ac_config_files="$ac_config_files Makefile contrib/Makefile doc/Makefile doc/man/Makefile m4/Makefile po/Makefile.in src/Makefile src/arm/Makefile src/arm/arm.conf src/ats/Makefile src/ats/ats.conf src/block/Makefile src/chat/Makefile src/chat/chat.conf src/core/Makefile src/core/core.conf src/datacache/Makefile src/datastore/Makefile src/datastore/datastore.conf src/dht/Makefile src/dht/dht.conf src/dns/Makefile src/dns/dns.conf src/dv/Makefile src/dv/dv.conf src/exit/Makefile src/fragmentation/Makefile src/fs/Makefile src/fs/fs.conf src/gns/Makefile src/gns/gns.conf src/gns/nss/Makefile src/hello/Makefile src/include/Makefile src/include/gnunet_directories.h src/hostlist/Makefile src/lockmanager/Makefile src/lockmanager/lockmanager.conf src/mesh/Makefile src/mesh/mesh.conf src/mysql/Makefile src/namestore/Makefile src/namestore/namestore.conf src/nat/Makefile src/nse/Makefile src/nse/nse.conf src/peerinfo/Makefile src/peerinfo/peerinfo.conf src/peerinfo-tool/Makefile src/postgres/Makefile src/pt/Makefile src/regex/Makefile src/statistics/Makefile src/statistics/statistics.conf src/stream/Makefile src/template/Makefile src/testbed/Makefile src/testing/Makefile src/topology/Makefile src/transport/Makefile src/transport/transport.conf src/tun/Makefile src/util/Makefile src/util/resolver.conf src/vpn/Makefile src/vpn/vpn.conf src/integration-tests/Makefile pkgconfig/Makefile pkgconfig/gnunetarm.pc pkgconfig/gnunetblock.pc pkgconfig/gnunetcore.pc pkgconfig/gnunetdatacache.pc pkgconfig/gnunetdatastore.pc pkgconfig/gnunetdht.pc pkgconfig/gnunetdhtlog.pc pkgconfig/gnunetdv.pc pkgconfig/gnunetfragmentation.pc pkgconfig/gnunetfs.pc pkgconfig/gnunethello.pc pkgconfig/gnunetnat.pc pkgconfig/gnunetnse.pc pkgconfig/gnunetpeerinfo.pc pkgconfig/gnunetregex.pc pkgconfig/gnunetstatistics.pc pkgconfig/gnunettesting.pc pkgconfig/gnunettransport.pc pkgconfig/gnunetutil.pc" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure @@ -26896,6 +27358,14 @@ if test -z "${HAVE_LIBGLPK_TRUE}" && test -z "${HAVE_LIBGLPK_FALSE}"; then as_fn_error $? "conditional \"HAVE_LIBGLPK\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi +if test -z "${HAVE_GLIBCNSS_TRUE}" && test -z "${HAVE_GLIBCNSS_FALSE}"; then + as_fn_error $? "conditional \"HAVE_GLIBCNSS\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_GLIBCNSS_TRUE}" && test -z "${HAVE_GLIBCNSS_FALSE}"; then + as_fn_error $? "conditional \"HAVE_GLIBCNSS\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi if test -z "${HAVE_SQLITE_TRUE}" && test -z "${HAVE_SQLITE_FALSE}"; then as_fn_error $? "conditional \"HAVE_SQLITE\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 @@ -26936,10 +27406,18 @@ if test -z "${WANT_FRAMEWORK_TRUE}" && test -z "${WANT_FRAMEWORK_FALSE}"; then as_fn_error $? "conditional \"WANT_FRAMEWORK\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi +if test -z "${HAVE_SUDO_TRUE}" && test -z "${HAVE_SUDO_FALSE}"; then + as_fn_error $? "conditional \"HAVE_SUDO\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi if test -z "${ENABLE_TEST_RUN_TRUE}" && test -z "${ENABLE_TEST_RUN_FALSE}"; then as_fn_error $? "conditional \"ENABLE_TEST_RUN\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi +if test -z "${ENABLE_MONKEY_TRUE}" && test -z "${ENABLE_MONKEY_FALSE}"; then + as_fn_error $? "conditional \"ENABLE_MONKEY\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi if test -z "${HAVE_EXPENSIVE_TESTS_TRUE}" && test -z "${HAVE_EXPENSIVE_TESTS_FALSE}"; then as_fn_error $? "conditional \"HAVE_EXPENSIVE_TESTS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 @@ -27364,7 +27842,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by gnunet $as_me 0.9.2, which was +This file was extended by gnunet $as_me 0.9.3, which was generated by GNU Autoconf 2.67. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -27430,7 +27908,7 @@ _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ -gnunet config.status 0.9.2 +gnunet config.status 0.9.3 configured by $0, generated by GNU Autoconf 2.67, with options \\"\$ac_cs_config\\" @@ -27953,12 +28431,16 @@ do "src/fs/fs.conf") CONFIG_FILES="$CONFIG_FILES src/fs/fs.conf" ;; "src/gns/Makefile") CONFIG_FILES="$CONFIG_FILES src/gns/Makefile" ;; "src/gns/gns.conf") CONFIG_FILES="$CONFIG_FILES src/gns/gns.conf" ;; + "src/gns/nss/Makefile") CONFIG_FILES="$CONFIG_FILES src/gns/nss/Makefile" ;; "src/hello/Makefile") CONFIG_FILES="$CONFIG_FILES src/hello/Makefile" ;; "src/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;; "src/include/gnunet_directories.h") CONFIG_FILES="$CONFIG_FILES src/include/gnunet_directories.h" ;; "src/hostlist/Makefile") CONFIG_FILES="$CONFIG_FILES src/hostlist/Makefile" ;; + "src/lockmanager/Makefile") CONFIG_FILES="$CONFIG_FILES src/lockmanager/Makefile" ;; + "src/lockmanager/lockmanager.conf") CONFIG_FILES="$CONFIG_FILES src/lockmanager/lockmanager.conf" ;; "src/mesh/Makefile") CONFIG_FILES="$CONFIG_FILES src/mesh/Makefile" ;; "src/mesh/mesh.conf") CONFIG_FILES="$CONFIG_FILES src/mesh/mesh.conf" ;; + "src/mysql/Makefile") CONFIG_FILES="$CONFIG_FILES src/mysql/Makefile" ;; "src/namestore/Makefile") CONFIG_FILES="$CONFIG_FILES src/namestore/Makefile" ;; "src/namestore/namestore.conf") CONFIG_FILES="$CONFIG_FILES src/namestore/namestore.conf" ;; "src/nat/Makefile") CONFIG_FILES="$CONFIG_FILES src/nat/Makefile" ;; @@ -27967,11 +28449,14 @@ do "src/peerinfo/Makefile") CONFIG_FILES="$CONFIG_FILES src/peerinfo/Makefile" ;; "src/peerinfo/peerinfo.conf") CONFIG_FILES="$CONFIG_FILES src/peerinfo/peerinfo.conf" ;; "src/peerinfo-tool/Makefile") CONFIG_FILES="$CONFIG_FILES src/peerinfo-tool/Makefile" ;; + "src/postgres/Makefile") CONFIG_FILES="$CONFIG_FILES src/postgres/Makefile" ;; "src/pt/Makefile") CONFIG_FILES="$CONFIG_FILES src/pt/Makefile" ;; + "src/regex/Makefile") CONFIG_FILES="$CONFIG_FILES src/regex/Makefile" ;; "src/statistics/Makefile") CONFIG_FILES="$CONFIG_FILES src/statistics/Makefile" ;; "src/statistics/statistics.conf") CONFIG_FILES="$CONFIG_FILES src/statistics/statistics.conf" ;; "src/stream/Makefile") CONFIG_FILES="$CONFIG_FILES src/stream/Makefile" ;; "src/template/Makefile") CONFIG_FILES="$CONFIG_FILES src/template/Makefile" ;; + "src/testbed/Makefile") CONFIG_FILES="$CONFIG_FILES src/testbed/Makefile" ;; "src/testing/Makefile") CONFIG_FILES="$CONFIG_FILES src/testing/Makefile" ;; "src/topology/Makefile") CONFIG_FILES="$CONFIG_FILES src/topology/Makefile" ;; "src/transport/Makefile") CONFIG_FILES="$CONFIG_FILES src/transport/Makefile" ;; @@ -27997,6 +28482,7 @@ do "pkgconfig/gnunetnat.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/gnunetnat.pc" ;; "pkgconfig/gnunetnse.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/gnunetnse.pc" ;; "pkgconfig/gnunetpeerinfo.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/gnunetpeerinfo.pc" ;; + "pkgconfig/gnunetregex.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/gnunetregex.pc" ;; "pkgconfig/gnunetstatistics.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/gnunetstatistics.pc" ;; "pkgconfig/gnunettesting.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/gnunettesting.pc" ;; "pkgconfig/gnunettransport.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/gnunettransport.pc" ;; @@ -29809,6 +30295,13 @@ then $as_echo "$as_me: NOTICE: sqlite not found. sqLite support will not be compiled." >&6;} fi +# java ports +if test "x$enable_java_ports" = "xyes" +then + { $as_echo "$as_me:${as_lineno-$LINENO}: NOTICE: opening ports for gnunet-java bindings by default." >&5 +$as_echo "$as_me: NOTICE: opening ports for gnunet-java bindings by default." >&6;} +fi + if test "x$lmhd" != "x1" then { $as_echo "$as_me:${as_lineno-$LINENO}: NOTICE: libmicrohttpd not found, http transport will not be installed." >&5 @@ -29824,6 +30317,12 @@ then $as_echo "$as_me: NOTICE: Mac OS X framework build enabled." >&6;} fi +if test "x$SUDO_BINARY" = "x" -a ! -w / +then + { $as_echo "$as_me:${as_lineno-$LINENO}: NOTICE: --with-sudo not specified and not running as 'root', will not install GNS NSS library" >&5 +$as_echo "$as_me: NOTICE: --with-sudo not specified and not running as 'root', will not install GNS NSS library" >&6;} +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: ******************************************** You can compile GNUnet with make |