Fix configure.ac wrt. pthread_np.h
Gerald Pfeifer
gerald at pfeifer.com
Mon Aug 21 13:00:20 CDT 2006
After the following change to configure.ac
revision 1.530
date: 2006-08-07 12:14:41 +0000; author: julliard; state: Exp; lines: +2 -0
Tijl Coosemans <tijl at ulyssis.org>
loader/pthread: Added pthread_attr_get_np support.
I have been seeing the following warning. Indeed, pthread_np.h by itself
cannot be compiled on FreeBSD 5.x:
configure: WARNING: pthread_np.h: present but cannot be compiled
configure: WARNING: pthread_np.h: check for missing prerequisite headers?
configure: WARNING: pthread_np.h: see the Autoconf documentation
configure: WARNING: pthread_np.h: section "Present But Cannot Be Compiled"
configure: WARNING: pthread_np.h: proceeding with the preprocessor's result
configure: WARNING: pthread_np.h: in the future, the compiler will take precedence
configure: WARNING: ## ------------------------------------ ##
configure: WARNING: ## Report this to wine-devel at winehq.org ##
configure: WARNING: ## ------------------------------------ ##
The following should address this, I hope.
Gerald
ChangeLog:
Try to #include <pthread.h> before checking for pthread_np.h.
Index: configure.ac
===================================================================
RCS file: /home/wine/wine/configure.ac,v
retrieving revision 1.542
diff -u -3 -p -r1.542 configure.ac
--- configure.ac 16 Aug 2006 15:18:30 -0000 1.542
+++ configure.ac 21 Aug 2006 17:56:59 -0000
@@ -203,7 +203,6 @@ AC_CHECK_HEADERS(\
poll.h \
process.h \
pthread.h \
- pthread_np.h \
pwd.h \
regex.h \
sched.h \
@@ -298,6 +297,11 @@ AC_CHECK_HEADERS([resolv.h],,,
AC_CHECK_HEADERS(ucontext.h,,,[#include <signal.h>])
+AC_CHECK_HEADERS([pthread_np.h],,,
+ [#ifdef HAVE_PTHREAD_H
+ #include <pthread.h.h>
+ #endif])
+
AC_CHECK_HEADERS([linux/videodev.h],,,
[#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
More information about the wine-patches
mailing list