]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
4515. [port] FreeBSD: Find readline headers when they are in
authorckb <ckb@freebsd11.local>
Fri, 18 Nov 2016 19:08:06 +0000 (11:08 -0800)
committerckb <ckb@freebsd11.local>
Fri, 18 Nov 2016 19:08:06 +0000 (11:08 -0800)
                        edit/readline/ instead of readline/. [RT #43658]

CHANGES
acconfig.h
bin/dig/nslookup.c
bin/nsupdate/nsupdate.c
config.h.in
configure
configure.in

diff --git a/CHANGES b/CHANGES
index 3661ac40c72cdf3734cdb563252ac41d518980fb..1d31872be8cfb87d38efd5f7812f02538bea3451 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,6 @@
+4515.  [port]          FreeBSD: Find readline headers when they are in
+                        edit/readline/ instead of readline/. [RT #43658]
+
 4514.  [port]          NetBSD: strip -WL, from ld command line. [RT #43204]
 
 4513.  [cleanup]       Minimum Python versions are now 2.7 and 3.2.
index 9089edb4097eb4e6601cb23db58924626623a633..3d22ded74bc391126d6b3c9dc18fe4d6099f22ca 100644 (file)
 /** define if gai_strerror() exists */
 #undef HAVE_GAISTRERROR
 
-/** define if arc4random() exists */
-#undef HAVE_ARC4RANDOM
-
-/** define if arc4random_addrandom() exists */
-#undef HAVE_ARC4RANDOM_ADDRANDOM
-
 /**
  * define if pthread_setconcurrency() should be called to tell the
  * OS how many threads we might want to run.
index b4e4979764ebb574cf781e00ee5d5b9e4a51a9d0..aa012979f48cd0705359383e4743f0a1c5edd36e 100644 (file)
 #include <dig/dig.h>
 
 #if defined(HAVE_READLINE)
-#if defined(HAVE_EDITLINE_READLINE_H)
+#if defined(HAVE_EDIT_READLINE_READLINE_H)
+#include <edit/readline/readline.h>
+#if defined(HAVE_EDIT_READLINE_HISTORY_H)
+#include <edit/readline/history.h>
+#endif
+#elif defined(HAVE_EDITLINE_READLINE_H)
 #include <editline/readline.h>
 #elif defined(HAVE_READLINE_READLINE_H)
 #include <readline/readline.h>
index c0e12414fb80d8e7737cfaf2cdba66846304c0ba..44451263b97245c7fb25382dc22f4713e6cd99ff 100644 (file)
 #include <bind9/getaddresses.h>
 
 #if defined(HAVE_READLINE)
-#if defined(HAVE_EDITLINE_READLINE_H)
+#if defined(HAVE_EDIT_READLINE_READLINE_H)
+#include <edit/readline/readline.h>
+#if defined(HAVE_EDIT_READLINE_HISTORY_H)
+#include <edit/readline/history.h>
+#endif
+#elif defined(HAVE_EDITLINE_READLINE_H)
 #include <editline/readline.h>
 #else
 #include <readline/readline.h>
index 6cca9ce5d016fc586c28bea5d23db7cfd55d9e79..c4ecebf3e890e04a5addb6c449d72809719670fd 100644 (file)
 /** define if gai_strerror() exists */
 #undef HAVE_GAISTRERROR
 
-/** define if arc4random() exists */
-#undef HAVE_ARC4RANDOM
-
-/** define if arc4random_stir() exists */
-#undef HAVE_ARC4RANDOM_STIR
-
-/** define if arc4random_addrandom() exists */
-#undef HAVE_ARC4RANDOM_ADDRANDOM
-
 /**
  * define if pthread_setconcurrency() should be called to tell the
  * OS how many threads we might want to run.
@@ -188,6 +179,15 @@ int sigwait(const unsigned int *set, int *sig);
    MSVC and with C++ compilers. */
 #undef FLEXIBLE_ARRAY_MEMBER
 
+/* Define to 1 if you have the `arc4random' function. */
+#undef HAVE_ARC4RANDOM
+
+/* Define to 1 if you have the `arc4random_addrandom' function. */
+#undef HAVE_ARC4RANDOM_ADDRANDOM
+
+/* Define to 1 if you have the `arc4random_stir' function. */
+#undef HAVE_ARC4RANDOM_STIR
+
 /* Define to 1 if the compiler supports __builtin_clz. */
 #undef HAVE_BUILTIN_CLZ
 
@@ -221,6 +221,12 @@ int sigwait(const unsigned int *set, int *sig);
 /* Define to 1 if you have the <editline/readline.h> header file. */
 #undef HAVE_EDITLINE_READLINE_H
 
+/* Define to 1 if you have the <edit/readline/history.h> header file. */
+#undef HAVE_EDIT_READLINE_HISTORY_H
+
+/* Define to 1 if you have the <edit/readline/readline.h> header file. */
+#undef HAVE_EDIT_READLINE_READLINE_H
+
 /* Define to 1 if you have the `EVP_sha256' function. */
 #undef HAVE_EVP_SHA256
 
@@ -479,9 +485,6 @@ int sigwait(const unsigned int *set, int *sig);
 /* Define if zlib was found */
 #undef HAVE_ZLIB
 
-/* HMAC_*() return ints */
-#undef HMAC_RETURN_INT
-
 /* Use HMAC-SHA1 for Client Cookie generation */
 #undef HMAC_SHA1_CC
 
index 74e15d7b6c40f38bcdda1920fe0e23a2b9b5ef92..c3eedb81fe92c74953f0f1cc9197bb6a613e2c5f 100755 (executable)
--- a/configure
+++ b/configure
 # Do we have arc4random(), etc ?
 # Will use stir and if not exist addrandom
 #
-ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random"
+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 :
-  $as_echo "#define HAVE_ARC4RANDOM 1" >>confdefs.h
+  cat >>confdefs.h <<_ACEOF
+#define HAVE_ARC4RANDOM 1
+_ACEOF
 
 fi
+done
 
-ac_fn_c_check_func "$LINENO" "arc4random_stir" "ac_cv_func_arc4random_stir"
+for ac_func in arc4random_stir
+do :
+  ac_fn_c_check_func "$LINENO" "arc4random_stir" "ac_cv_func_arc4random_stir"
 if test "x$ac_cv_func_arc4random_stir" = xyes; then :
-  $as_echo "#define HAVE_ARC4RANDOM_STIR 1" >>confdefs.h
+  cat >>confdefs.h <<_ACEOF
+#define HAVE_ARC4RANDOM_STIR 1
+_ACEOF
 
 fi
+done
 
-ac_fn_c_check_func "$LINENO" "arc4random_addrandom" "ac_cv_func_arc4random_addrandom"
+for ac_func in arc4random_addrandom
+do :
+  ac_fn_c_check_func "$LINENO" "arc4random_addrandom" "ac_cv_func_arc4random_addrandom"
 if test "x$ac_cv_func_arc4random_addrandom" = xyes; then :
-  $as_echo "#define HAVE_ARC4RANDOM_ADDRANDOM 1" >>confdefs.h
+  cat >>confdefs.h <<_ACEOF
+#define HAVE_ARC4RANDOM_ADDRANDOM 1
+_ACEOF
 
 fi
+done
 
 
 #
@@ -19194,6 +19209,30 @@ _ACEOF
 
 fi
 
+done
+
+               for ac_header in edit/readline/readline.h
+do :
+  ac_fn_c_check_header_mongrel "$LINENO" "edit/readline/readline.h" "ac_cv_header_edit_readline_readline_h" "$ac_includes_default"
+if test "x$ac_cv_header_edit_readline_readline_h" = xyes; then :
+  cat >>confdefs.h <<_ACEOF
+#define HAVE_EDIT_READLINE_READLINE_H 1
+_ACEOF
+
+fi
+
+done
+
+               for ac_header in edit/readline/history.h
+do :
+  ac_fn_c_check_header_mongrel "$LINENO" "edit/readline/history.h" "ac_cv_header_edit_readline_history_h" "$ac_includes_default"
+if test "x$ac_cv_header_edit_readline_history_h" = xyes; then :
+  cat >>confdefs.h <<_ACEOF
+#define HAVE_EDIT_READLINE_HISTORY_H 1
+_ACEOF
+
+fi
+
 done
 
                ;;
index 5a4d0d2b900ea0a972dff4403bd0650a367a46be..097a6f8013a75fa18036ecf2eb3c63e72591081d 100644 (file)
@@ -1178,9 +1178,9 @@ AC_SUBST(CHECK_DSA)
 # Do we have arc4random(), etc ?
 # Will use stir and if not exist addrandom
 #
-AC_CHECK_FUNC(arc4random, AC_DEFINE(HAVE_ARC4RANDOM))
-AC_CHECK_FUNC(arc4random_stir, AC_DEFINE(HAVE_ARC4RANDOM_STIR))
-AC_CHECK_FUNC(arc4random_addrandom, AC_DEFINE(HAVE_ARC4RANDOM_ADDRANDOM))
+AC_CHECK_FUNCS(arc4random)
+AC_CHECK_FUNCS(arc4random_stir)
+AC_CHECK_FUNCS(arc4random_addrandom)
 
 sinclude(config.threads.in)dnl
 
@@ -3531,6 +3531,8 @@ then
        case "$READLINE_LIB" in
        *edit*)
                AC_CHECK_HEADERS(editline/readline.h)
+               AC_CHECK_HEADERS(edit/readline/readline.h)
+               AC_CHECK_HEADERS(edit/readline/history.h)
                ;;
        esac
        AC_CHECK_HEADERS(readline/readline.h)