]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Replace custom HAVE_CATGETS define with AC_CHECK_FUNCS call
authorOndřej Surý <ondrej@sury.org>
Wed, 5 Sep 2018 11:34:44 +0000 (13:34 +0200)
committerOndřej Surý <ondrej@sury.org>
Fri, 7 Sep 2018 10:17:40 +0000 (12:17 +0200)
acconfig.h
config.h.in
configure
configure.in

index 6cc24a4b3b173cf94b87fd3e219df18c601d1758..43c2eace177add0ca9e6a6a6525ef6fa32a91e13 100644 (file)
@@ -17,9 +17,6 @@
  ***/
 @TOP@
 
-/** define if catgets() is available */
-#undef HAVE_CATGETS
-
 /** define if getifaddrs() exists */
 #undef HAVE_GETIFADDRS
 
index d0a1eda1bdc1e364b3660d313540ef2bae633b86..f50291852a3a6cd1fa18f7a9254a764ad9a54ef8 100644 (file)
@@ -17,9 +17,6 @@
  *** it does not get installed.
  ***/
 
-/** define if catgets() is available */
-#undef HAVE_CATGETS
-
 /** define if getifaddrs() exists */
 #undef HAVE_GETIFADDRS
 
 /* Define to 1 if the compiler supports __builtin_expect. */
 #undef HAVE_BUILTIN_EXPECT
 
+/* Define to 1 if you have the `catgets' function. */
+#undef HAVE_CATGETS
+
 /* Define to 1 if you have the `chroot' function. */
 #undef HAVE_CHROOT
 
index 8d87d716ee7dc6c31f2d6b01556fcc292103cc96..193423fb7fdee0b7d2d9c4d8d2fb08969761f8ac 100755 (executable)
--- a/configure
+++ b/configure
 #
 # NLS
 #
-ac_fn_c_check_func "$LINENO" "catgets" "ac_cv_func_catgets"
+for ac_func in catgets
+do :
+  ac_fn_c_check_func "$LINENO" "catgets" "ac_cv_func_catgets"
 if test "x$ac_cv_func_catgets" = xyes; then :
-  $as_echo "#define HAVE_CATGETS 1" >>confdefs.h
+  cat >>confdefs.h <<_ACEOF
+#define HAVE_CATGETS 1
+_ACEOF
 
 fi
+done
 
 
 #
index 9a673fe0734237ee36a480fb5f2d194f1f0199fc..c6e1489964645565508c74239c7506aa7f39c9e4 100644 (file)
@@ -1603,7 +1603,7 @@ AC_SUBST(MKDEPPROG)
 #
 # NLS
 #
-AC_CHECK_FUNC(catgets, AC_DEFINE(HAVE_CATGETS),)
+AC_CHECK_FUNCS([catgets])
 
 #
 # -lxnet buys us one big porting headache...  standards, gotta love 'em.