Module Name:    src
Committed By:   apb
Date:           Sun Aug 14 20:22:42 UTC 2011

Modified Files:
        src/tools/compat: configure.ac defs.mk.in

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


To generate a diff of this commit:
cvs rdiff -u -r1.72 -r1.73 src/tools/compat/configure.ac
cvs rdiff -u -r1.9 -r1.10 src/tools/compat/defs.mk.in

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/tools/compat/configure.ac
diff -u src/tools/compat/configure.ac:1.72 src/tools/compat/configure.ac:1.73
--- src/tools/compat/configure.ac:1.72	Sun Aug 14 20:20:59 2011
+++ src/tools/compat/configure.ac	Sun Aug 14 20:22:42 2011
@@ -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

Index: src/tools/compat/defs.mk.in
diff -u src/tools/compat/defs.mk.in:1.9 src/tools/compat/defs.mk.in:1.10
--- src/tools/compat/defs.mk.in:1.9	Sun Jun 20 22:20:15 2004
+++ src/tools/compat/defs.mk.in	Sun Aug 14 20:22:42 2011
@@ -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@

Reply via email to