Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tools/compat Detect the presence of <pthread.h>, and add a H...



details:   https://anonhg.NetBSD.org/src/rev/96503dd489b9
branches:  trunk
changeset: 768339:96503dd489b9
user:      apb <apb%NetBSD.org@localhost>
date:      Sun Aug 14 20:22:42 2011 +0000

description:
Detect the presence of <pthread.h>, and add a HAVE_PTHREAD_H
variable in defs.mk.

diffstat:

 tools/compat/configure.ac |  7 +++++--
 tools/compat/defs.mk.in   |  4 +++-
 2 files changed, 8 insertions(+), 3 deletions(-)

diffs (41 lines):

diff -r 0babd4cd8e8f -r 96503dd489b9 tools/compat/configure.ac
--- a/tools/compat/configure.ac Sun Aug 14 20:20:59 2011 +0000
+++ b/tools/compat/configure.ac Sun Aug 14 20:22:42 2011 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: configure.ac,v 1.72 2011/08/14 20:20:59 apb Exp $
+#      $NetBSD: configure.ac,v 1.73 2011/08/14 20:22:42 apb Exp $
 #
 # Autoconf definition file for libnbcompat.
 #
@@ -79,7 +79,7 @@
 # Find headers that may not be available.
 AC_HEADER_DIRENT
 AC_CHECK_HEADERS(sys/mtio.h sys/sysmacros.h sys/syslimits.h \
-       getopt.h features.h malloc.h sys/poll.h stddef.h)
+       getopt.h features.h malloc.h sys/poll.h pthread.h stddef.h)
 AC_CHECK_HEADERS(sys/bswap.h machine/bswap.h sys/cdefs.h machine/endian.h \
        sys/endian.h sys/featuretest.h err.h inttypes.h libgen.h paths.h \
        stdint.h util.h resolv.h arpa/nameser.h,,
@@ -230,4 +230,7 @@
     )
 ])
 
+# Variables substituted via @VARNAME@ in defs.mk.in
+AC_SUBST(HAVE_PTHREAD_H, $ac_cv_header_pthread_h)
+
 AC_OUTPUT
diff -r 0babd4cd8e8f -r 96503dd489b9 tools/compat/defs.mk.in
--- a/tools/compat/defs.mk.in   Sun Aug 14 20:20:59 2011 +0000
+++ b/tools/compat/defs.mk.in   Sun Aug 14 20:22:42 2011 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: defs.mk.in,v 1.9 2004/06/20 22:20:15 jmc Exp $
+#      $NetBSD: defs.mk.in,v 1.10 2011/08/14 20:22:42 apb Exp $
 
 COMPATOBJ:=    ${.PARSEDIR}
 HOSTEXEEXT=    @EXEEXT@
@@ -18,3 +18,5 @@
 
 DPADD+=                ${COMPATOBJ}/libnbcompat.a
 LDADD+=                -L${COMPATOBJ} -lnbcompat @LIBS@
+
+HAVE_PTHREAD_H=        @HAVE_PTHREAD_H@



Home | Main Index | Thread Index | Old Index