summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure289
1 files changed, 277 insertions, 12 deletions
diff --git a/configure b/configure
index da12c42..a20a406 100755
--- a/configure
+++ b/configure
@@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.69 for ptunnel-ng 1.3.
+# Generated by GNU Autoconf 2.69 for ptunnel-ng 1.32.
#
#
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
@@ -577,8 +577,8 @@ MAKEFLAGS=
# Identity of this package.
PACKAGE_NAME='ptunnel-ng'
PACKAGE_TARNAME='ptunnel-ng'
-PACKAGE_VERSION='1.3'
-PACKAGE_STRING='ptunnel-ng 1.3'
+PACKAGE_VERSION='1.32'
+PACKAGE_STRING='ptunnel-ng 1.32'
PACKAGE_BUGREPORT=''
PACKAGE_URL=''
@@ -622,6 +622,12 @@ ac_includes_default="\
ac_subst_vars='am__EXEEXT_FALSE
am__EXEEXT_TRUE
LTLIBOBJS
+HAVE_ARC4RANDOM_FALSE
+HAVE_ARC4RANDOM_TRUE
+HAVE_RANDOM_FALSE
+HAVE_RANDOM_TRUE
+HAVE_ICMPFILTER_FALSE
+HAVE_ICMPFILTER_TRUE
IS_WINDOWS_FALSE
IS_WINDOWS_TRUE
HAVE_SELINUX_FALSE
@@ -1291,7 +1297,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 ptunnel-ng 1.3 to adapt to many kinds of systems.
+\`configure' configures ptunnel-ng 1.32 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
@@ -1362,7 +1368,7 @@ fi
if test -n "$ac_init_help"; then
case $ac_init_help in
- short | recursive ) echo "Configuration of ptunnel-ng 1.3:";;
+ short | recursive ) echo "Configuration of ptunnel-ng 1.32:";;
esac
cat <<\_ACEOF
@@ -1455,7 +1461,7 @@ fi
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
-ptunnel-ng configure 1.3
+ptunnel-ng configure 1.32
generated by GNU Autoconf 2.69
Copyright (C) 2012 Free Software Foundation, Inc.
@@ -2114,7 +2120,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 ptunnel-ng $as_me 1.3, which was
+It was created by ptunnel-ng $as_me 1.32, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ $0 $@
@@ -2571,6 +2577,9 @@ case x"${host}" in
use_msw=yes
PROGRAM_EXT=".exe"
;;
+ *-androideabi)
+ use_android=yes
+ ;;
esac
# Check whether --enable-silent-rules was given.
@@ -3059,7 +3068,7 @@ fi
# Define the identity of the package.
PACKAGE='ptunnel-ng'
- VERSION='1.3'
+ VERSION='1.32'
cat >>confdefs.h <<_ACEOF
@@ -5266,7 +5275,19 @@ fi
done
if test x"${use_msw}" != x"yes"; then
- for ac_header in sys/unistd.h sys/types.h sys/socket.h netinet/in.h arpa/inet.h netdb.h pthread.h errno.h net/ethernet.h syslog.h pwd.h grp.h
+ for ac_header in sys/unistd.h
+do :
+ ac_fn_c_check_header_mongrel "$LINENO" "sys/unistd.h" "ac_cv_header_sys_unistd_h" "$ac_includes_default"
+if test "x$ac_cv_header_sys_unistd_h" = xyes; then :
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_SYS_UNISTD_H 1
+_ACEOF
+
+fi
+
+done
+
+ for ac_header in sys/types.h sys/socket.h netinet/in.h arpa/inet.h netdb.h pthread.h errno.h net/ethernet.h syslog.h pwd.h grp.h
do :
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
@@ -5339,6 +5360,21 @@ else
as_fn_error $? "Missing pthread library." "$LINENO" 5
fi
+ if test x"${use_android}" != x"yes"; then
+ for ac_func in signal
+do :
+ ac_fn_c_check_func "$LINENO" "signal" "ac_cv_func_signal"
+if test "x$ac_cv_func_signal" = xyes; then :
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_SIGNAL 1
+_ACEOF
+
+else
+ as_fn_error $? "Missing essential non-Android std functions." "$LINENO" 5
+fi
+done
+
+ fi
for ac_func in pthread_mutex_init pthread_mutex_lock pthread_mutex_unlock syslog getaddrinfo freeaddrinfo gai_strerror
do :
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
@@ -5759,7 +5795,7 @@ else
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-for ac_func in malloc calloc free memcpy memset signal printf sprintf vsnprintf strerror strlen strncmp strstr strtol strtoul fopen fprintf gettimeofday close fclose exit getopt_long
+for ac_func in malloc calloc free memcpy memset printf sprintf vsnprintf strerror strlen strncmp strstr strtol strtoul fopen fprintf gettimeofday close fclose exit getopt_long
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"
@@ -5892,6 +5928,106 @@ done
fi
+for ac_header in bsd/stdlib.h
+do :
+ ac_fn_c_check_header_mongrel "$LINENO" "bsd/stdlib.h" "ac_cv_header_bsd_stdlib_h" "$ac_includes_default"
+if test "x$ac_cv_header_bsd_stdlib_h" = xyes; then :
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_BSD_STDLIB_H 1
+_ACEOF
+
+else
+ random_enabled=yes
+fi
+
+done
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing arc4random" >&5
+$as_echo_n "checking for library containing arc4random... " >&6; }
+if ${ac_cv_search_arc4random+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_func_search_save_LIBS=$LIBS
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char arc4random ();
+int
+main ()
+{
+return arc4random ();
+ ;
+ return 0;
+}
+_ACEOF
+for ac_lib in '' bsd; do
+ if test -z "$ac_lib"; then
+ ac_res="none required"
+ else
+ ac_res=-l$ac_lib
+ LIBS="-l$ac_lib $ac_func_search_save_LIBS"
+ fi
+ if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_search_arc4random=$ac_res
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext
+ if ${ac_cv_search_arc4random+:} false; then :
+ break
+fi
+done
+if ${ac_cv_search_arc4random+:} false; then :
+
+else
+ ac_cv_search_arc4random=no
+fi
+rm conftest.$ac_ext
+LIBS=$ac_func_search_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_arc4random" >&5
+$as_echo "$ac_cv_search_arc4random" >&6; }
+ac_res=$ac_cv_search_arc4random
+if test "$ac_res" != no; then :
+ test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
+
+fi
+
+for ac_func in arc4random
+do :
+ ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random"
+if test "x$ac_cv_func_arc4random" = xyes; then :
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_ARC4RANDOM 1
+_ACEOF
+ random_enabled=
+fi
+done
+
+if test x"${random_enabled}" != x; then
+ for ac_func in timespec_get srandom random
+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"
+if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
+ cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
+_ACEOF
+ random_enabled=yes
+else
+ random_enabled=
+fi
+done
+
+else
+ arc4random_enabled=yes
+fi
+
if test x"${selinux_enabled}" != x; then
for ac_header in selinux/selinux.h
do :
@@ -5967,6 +6103,99 @@ fi
fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working ICMP_FILTER" >&5
+$as_echo_n "checking for working ICMP_FILTER... " >&6; }
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+#include <netinet/in.h>
+#include <sys/socket.h>
+#include <linux/icmp.h>
+void foo() {
+ struct icmp_filter filt;
+ int sockfd = socket(AF_INET, SOCK_RAW, IPPROTO_ICMP);
+ filt.data = ~((1<<ICMP_ECHO) | (1<<ICMP_ECHOREPLY));
+ setsockopt(sockfd, SOL_RAW, ICMP_FILTER, &filt, sizeof filt);
+}
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ with_icmp_filter="yes"
+
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ with_icmp_filter="no"
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __android_log_vprint" >&5
+$as_echo_n "checking for library containing __android_log_vprint... " >&6; }
+if ${ac_cv_search___android_log_vprint+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_func_search_save_LIBS=$LIBS
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char __android_log_vprint ();
+int
+main ()
+{
+return __android_log_vprint ();
+ ;
+ return 0;
+}
+_ACEOF
+for ac_lib in '' log; do
+ if test -z "$ac_lib"; then
+ ac_res="none required"
+ else
+ ac_res=-l$ac_lib
+ LIBS="-l$ac_lib $ac_func_search_save_LIBS"
+ fi
+ if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_search___android_log_vprint=$ac_res
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext
+ if ${ac_cv_search___android_log_vprint+:} false; then :
+ break
+fi
+done
+if ${ac_cv_search___android_log_vprint+:} false; then :
+
+else
+ ac_cv_search___android_log_vprint=no
+fi
+rm conftest.$ac_ext
+LIBS=$ac_func_search_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___android_log_vprint" >&5
+$as_echo "$ac_cv_search___android_log_vprint" >&6; }
+ac_res=$ac_cv_search___android_log_vprint
+if test "$ac_res" != no; then :
+ test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
+
+fi
+
+
if test x"${pcap_enabled}" = xyes; then
HAVE_PCAP_TRUE=
HAVE_PCAP_FALSE='#'
@@ -5991,6 +6220,30 @@ else
IS_WINDOWS_FALSE=
fi
+ if test x"${with_icmp_filter}" = xyes; then
+ HAVE_ICMPFILTER_TRUE=
+ HAVE_ICMPFILTER_FALSE='#'
+else
+ HAVE_ICMPFILTER_TRUE='#'
+ HAVE_ICMPFILTER_FALSE=
+fi
+
+ if test x"${random_enabled}" = xyes; then
+ HAVE_RANDOM_TRUE=
+ HAVE_RANDOM_FALSE='#'
+else
+ HAVE_RANDOM_TRUE='#'
+ HAVE_RANDOM_FALSE=
+fi
+
+ if test x"${arc4random_enabled}" = xyes; then
+ HAVE_ARC4RANDOM_TRUE=
+ HAVE_ARC4RANDOM_FALSE='#'
+else
+ HAVE_ARC4RANDOM_TRUE='#'
+ HAVE_ARC4RANDOM_FALSE=
+fi
+
ac_config_headers="$ac_config_headers src/config.h:src/config.h.in"
@@ -6139,6 +6392,18 @@ if test -z "${IS_WINDOWS_TRUE}" && test -z "${IS_WINDOWS_FALSE}"; then
as_fn_error $? "conditional \"IS_WINDOWS\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
+if test -z "${HAVE_ICMPFILTER_TRUE}" && test -z "${HAVE_ICMPFILTER_FALSE}"; then
+ as_fn_error $? "conditional \"HAVE_ICMPFILTER\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
+fi
+if test -z "${HAVE_RANDOM_TRUE}" && test -z "${HAVE_RANDOM_FALSE}"; then
+ as_fn_error $? "conditional \"HAVE_RANDOM\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
+fi
+if test -z "${HAVE_ARC4RANDOM_TRUE}" && test -z "${HAVE_ARC4RANDOM_FALSE}"; then
+ as_fn_error $? "conditional \"HAVE_ARC4RANDOM\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
+fi
: "${CONFIG_STATUS=./config.status}"
ac_write_fail=0
@@ -6536,7 +6801,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 ptunnel-ng $as_me 1.3, which was
+This file was extended by ptunnel-ng $as_me 1.32, which was
generated by GNU Autoconf 2.69. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
@@ -6602,7 +6867,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="\\
-ptunnel-ng config.status 1.3
+ptunnel-ng config.status 1.32
configured by $0, generated by GNU Autoconf 2.69,
with options \\"\$ac_cs_config\\"