]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
fix pthread_np.h detection
authorCurtis Blackburn <ckb@isc.org>
Fri, 4 Aug 2017 01:02:04 +0000 (18:02 -0700)
committerCurtis Blackburn <ckb@isc.org>
Fri, 4 Aug 2017 01:02:04 +0000 (18:02 -0700)
    [rt45680]

configure
configure.in

index 640d9aa6c310824dc64f8efb6b83f745a52bc2dc..d8b47fd9202a145523944e849a69e0174073afda 100755 (executable)
--- a/configure
+++ b/configure
@@ -960,6 +960,7 @@ infodir
 docdir
 oldincludedir
 includedir
+runstatedir
 localstatedir
 sharedstatedir
 sysconfdir
@@ -1116,6 +1117,7 @@ datadir='${datarootdir}'
 sysconfdir='${prefix}/etc'
 sharedstatedir='${prefix}/com'
 localstatedir='${prefix}/var'
+runstatedir='${localstatedir}/run'
 includedir='${prefix}/include'
 oldincludedir='/usr/include'
 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
@@ -1368,6 +1370,15 @@ do
   | -silent | --silent | --silen | --sile | --sil)
     silent=yes ;;
 
+  -runstatedir | --runstatedir | --runstatedi | --runstated \
+  | --runstate | --runstat | --runsta | --runst | --runs \
+  | --run | --ru | --r)
+    ac_prev=runstatedir ;;
+  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
+  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
+  | --run=* | --ru=* | --r=*)
+    runstatedir=$ac_optarg ;;
+
   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
     ac_prev=sbindir ;;
   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
@@ -1505,7 +1516,7 @@ fi
 for ac_var in  exec_prefix prefix bindir sbindir libexecdir datarootdir \
                datadir sysconfdir sharedstatedir localstatedir includedir \
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
-               libdir localedir mandir
+               libdir localedir mandir runstatedir
 do
   eval ac_val=\$$ac_var
   # Remove trailing slashes.
@@ -1658,6 +1669,7 @@ Fine tuning of the installation directories:
   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
+  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
   --libdir=DIR            object code libraries [EPREFIX/lib]
   --includedir=DIR        C header files [PREFIX/include]
   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
@@ -15674,7 +15686,8 @@ done
 
        for ac_header in pthread_np.h
 do :
-  ac_fn_c_check_header_mongrel "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "$ac_includes_default"
+  ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#include <pthread.h>
+"
 if test "x$ac_cv_header_pthread_np_h" = xyes; then :
   cat >>confdefs.h <<_ACEOF
 #define HAVE_PTHREAD_NP_H 1
index 50dbd40231b75926d9d11d7de54d0d42eb7b24f7..f2fcf7ea7c47a8ffd262433c2b46daae44dde3b1 100644 (file)
@@ -1353,7 +1353,7 @@ then
 
        # Look for functions relating to thread naming
        AC_CHECK_FUNCS(pthread_setname_np pthread_set_name_np)
-       AC_CHECK_HEADERS(pthread_np.h)
+       AC_CHECK_HEADERS([pthread_np.h], [], [], [#include <pthread.h>])
 
        #
        # Look for sysconf to allow detection of the number of processors.