summary refs log tree commit diff
diff options
context:
space:
mode:
authorRichard Nyberg <rnyberg@murmeldjur.se>2009-02-09 00:52:59 +0100
committerRichard Nyberg <rnyberg@murmeldjur.se>2009-02-09 00:52:59 +0100
commit030cc0fb9a7a76e48be2ac1bc6752a5112bdaa71 (patch)
tree511d9f2338e8d8609d6b704d505b659f3717af9b
parent9f4d2b0662ba9f8756413a9ba46ec588c0242154 (diff)
downloadbtpd-030cc0fb9a7a76e48be2ac1bc6752a5112bdaa71.tar.gz
btpd-030cc0fb9a7a76e48be2ac1bc6752a5112bdaa71.zip
Add test case for compiling with pthreads.
On some systems no extra flags or libs are needed.
-rw-r--r--configure.ac5
1 files changed, 3 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 2ee95da..5739ad6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -115,7 +115,7 @@ else
     AC_MSG_NOTICE(selected evloop method $EVLOOP_METHOD)
 fi
 
-for i in 0 1 2 3 4 5 6; do
+for i in 0 1 2 3 4 5 6 7; do
     case $i in
     0) if test x"$TD_CFLAGS$TD_LIBS" == x; then continue; fi;;
     1) TD_CFLAGS=-pthread;;
@@ -123,7 +123,8 @@ for i in 0 1 2 3 4 5 6; do
     3) TD_CFLAGS=-kthread;;
     4) TD_CFLAGS=-mt;;
     5) TD_LIBS=-lpthread;;
-    6) AC_MSG_FAILURE(how do you build with pthreads on this system?);;
+    6) ;;
+    7) AC_MSG_FAILURE(how do you build with pthreads on this system?);;
     esac
     AC_MSG_CHECKING(whether pthreads compiles with flags \"$TD_CFLAGS $TD_LIBS\")
     CC_ARGS_OK_IFELSE($TD_CFLAGS $CFLAGS $TD_LIBS $LIBS,,