Merge with master. Conflicts:
[libradsec.git] / configure
index 2bd964c..6e0953b 100755 (executable)
--- a/configure
+++ b/configure
@@ -568,6 +568,9 @@ TARGET_CFLAGS
 HAVE_DOCBOOK2X_MAN_FALSE
 HAVE_DOCBOOK2X_MAN_TRUE
 DOCBOOK2X_MAN
+WANT_FTICKS_FALSE
+WANT_FTICKS_TRUE
+RANLIB
 am__fastdepCC_FALSE
 am__fastdepCC_TRUE
 CCDEPMODE
@@ -665,6 +668,7 @@ enable_udp
 enable_tcp
 enable_tls
 enable_dtls
+enable_fticks
 with_ssl
 '
       ac_precious_vars='build_alias
@@ -1303,6 +1307,7 @@ Optional Features:
   --enable-tcp whether to enable TCP transport: yes/no; default yes
   --enable-tls whether to enable TLS (RadSec) transport: yes/no; default yes
   --enable-dtls whether to enable DTLS transport: yes/no; default yes
+  --enable-fticks         build with F-Ticks support [default=no]
 
 Optional Packages:
   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
@@ -3557,6 +3562,98 @@ if test "$am_t" != yes; then
 fi
 
 
+if test -n "$ac_tool_prefix"; then
+  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
+set dummy ${ac_tool_prefix}ranlib; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_RANLIB+set}" = set; then :
+  $as_echo_n "(cached) " >&6
+else
+  if test -n "$RANLIB"; then
+  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+    for ac_exec_ext in '' $ac_executable_extensions; do
+  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
+    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+  done
+IFS=$as_save_IFS
+
+fi
+fi
+RANLIB=$ac_cv_prog_RANLIB
+if test -n "$RANLIB"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
+$as_echo "$RANLIB" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_RANLIB"; then
+  ac_ct_RANLIB=$RANLIB
+  # Extract the first word of "ranlib", so it can be a program name with args.
+set dummy ranlib; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
+  $as_echo_n "(cached) " >&6
+else
+  if test -n "$ac_ct_RANLIB"; then
+  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+    for ac_exec_ext in '' $ac_executable_extensions; do
+  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+    ac_cv_prog_ac_ct_RANLIB="ranlib"
+    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+  done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
+if test -n "$ac_ct_RANLIB"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
+$as_echo "$ac_ct_RANLIB" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+  if test "x$ac_ct_RANLIB" = x; then
+    RANLIB=":"
+  else
+    case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+    RANLIB=$ac_ct_RANLIB
+  fi
+else
+  RANLIB="$ac_cv_prog_RANLIB"
+fi
+
 udp=yes
 # Check whether --enable-udp was given.
 if test "${enable_udp+set}" = set; then :
@@ -3609,6 +3706,18 @@ if test "${enable_dtls+set}" = set; then :
 fi
 
 
+# Check whether --enable-fticks was given.
+if test "${enable_fticks+set}" = set; then :
+  enableval=$enable_fticks; case $enableval in
+yes|no) ;;
+*) as_fn_error $? "bad value $enableval for --enable-fticks, need yes or no" "$LINENO" 5  ;;
+esac
+else
+  enable_fticks=no
+fi
+
+
+if test "$enable_fticks" = "yes"; then
 
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_sha256_init in -lnettle" >&5
 $as_echo_n "checking for nettle_sha256_init in -lnettle... " >&6; }
@@ -3654,7 +3763,23 @@ _ACEOF
   LIBS="-lnettle $LIBS"
 
 else
-  as_fn_error $? "required library nettle not found" "$LINENO" 5
+  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: required library nettle not found, fticks support disabled" >&5
+$as_echo "$as_me: WARNING: required library nettle not found, fticks support disabled" >&2;}
+     enable_fticks=no
+fi
+
+fi
+
+if test "$enable_fticks" = "yes"; then
+$as_echo "#define WANT_FTICKS 1" >>confdefs.h
+
+fi
+ if test "$enable_fticks" = "yes"; then
+  WANT_FTICKS_TRUE=
+  WANT_FTICKS_FALSE='#'
+else
+  WANT_FTICKS_TRUE='#'
+  WANT_FTICKS_FALSE=
 fi
 
 
@@ -3791,7 +3916,7 @@ _ACEOF
 
 fi
 
-ac_config_files="$ac_config_files Makefile"
+ac_config_files="$ac_config_files Makefile tests/Makefile"
 
 cat >confcache <<\_ACEOF
 # This file is a shell script that caches the results of configure
@@ -3943,6 +4068,10 @@ if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
 Usually this means the macro was only invoked conditionally." "$LINENO" 5
 fi
+if test -z "${WANT_FTICKS_TRUE}" && test -z "${WANT_FTICKS_FALSE}"; then
+  as_fn_error $? "conditional \"WANT_FTICKS\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
+fi
 if test -z "${HAVE_DOCBOOK2X_MAN_TRUE}" && test -z "${HAVE_DOCBOOK2X_MAN_FALSE}"; then
   as_fn_error $? "conditional \"HAVE_DOCBOOK2X_MAN\" was never defined.
 Usually this means the macro was only invoked conditionally." "$LINENO" 5
@@ -4532,6 +4661,7 @@ do
   case $ac_config_target in
     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
+    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
 
   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
   esac