aboutsummaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2008-07-20 20:42:21 +0000
committerChristian Grothoff <christian@grothoff.org>2008-07-20 20:42:21 +0000
commit075c3c42032e2e279987d21fb646c4f8302e1f93 (patch)
treecf7d7fc8f7e426f717440ed781e9f9f3d0f896c6 /acinclude.m4
parent5ed0d3c8717e714c605ebd00c91ab53b7fdc01a6 (diff)
downloadlibmicrohttpd-075c3c42032e2e279987d21fb646c4f8302e1f93.tar.gz
libmicrohttpd-075c3c42032e2e279987d21fb646c4f8302e1f93.zip
fixing z/OS build issues
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m415
1 files changed, 15 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index c9aa0f60..652d4357 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -1,6 +1,19 @@
1# See: http://gcc.gnu.org/ml/gcc/2000-05/msg01141.html 1# See: http://gcc.gnu.org/ml/gcc/2000-05/msg01141.html
2AC_DEFUN([CHECK_PTHREAD], 2AC_DEFUN([CHECK_PTHREAD],
3[ 3[
4 # first try without -pthread
5 AC_TRY_LINK(
6 [
7 #include <pthread.h>
8 ],[
9 pthread_create(0,0,0,0);
10 ],[
11 AC_MSG_RESULT(yes)
12 PTHREAD_CPPFLAGS=
13 PTHREAD_LDFLAGS=
14 PTHREAD_LIBS=
15 ],[
16 # now with -pthread
4 AC_CHECK_LIB(pthread,pthread_create, 17 AC_CHECK_LIB(pthread,pthread_create,
5 [ 18 [
6 PTHREAD_CPPFLAGS= 19 PTHREAD_CPPFLAGS=
@@ -57,4 +70,6 @@ AC_DEFUN([CHECK_PTHREAD],
57 ]) 70 ])
58 CPPFLAGS="$save_CPPFLAGS" 71 CPPFLAGS="$save_CPPFLAGS"
59 ]) 72 ])
73
74 ])
60]) 75])