summary refs log tree commit diff
path: root/configure.ac
diff options
context:
space:
mode:
authorRichard Nyberg <rnyberg@murmeldjur.se>2006-02-10 15:35:55 +0000
committerRichard Nyberg <rnyberg@murmeldjur.se>2006-02-10 15:35:55 +0000
commit7dedb28137dd5c08c30ca27f4e576fd8f9f3b593 (patch)
tree2ce402653caf87989d30764ced3f0d1501cfe66c /configure.ac
parent59c62b3eb0f5edd02642fc9ddfa09a92076c402a (diff)
downloadbtpd-7dedb28137dd5c08c30ca27f4e576fd8f9f3b593.tar.gz
btpd-7dedb28137dd5c08c30ca27f4e576fd8f9f3b593.zip
Put the ACX_PTHREAD macro from the Autoconf macro archive in acinclude.m4.
Build btpd with pthreads. 

Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac16
1 files changed, 9 insertions, 7 deletions
diff --git a/configure.ac b/configure.ac
index af85fe1..0f51bab 100644
--- a/configure.ac
+++ b/configure.ac
@@ -10,16 +10,18 @@ AC_PROG_RANLIB
 CFLAGS="$CFLAGS -std=c99"
 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64"
 
-AC_ARG_WITH(event,
-[  --with-event=dir        use libevent installed in dir],
+ACX_PTHREAD([], [echo Must have pthread support; exit 1])
+
+AC_ARG_WITH(libevent,
+[  --with-libevent=dir     use libevent installed in dir],
 [
         AC_SUBST(event_LDFLAGS,["-L${withval}/lib -Wl,-rpath=${withval}/lib"])
         AC_SUBST(event_CPPFLAGS,"-I${withval}/include")
 ],
 [])
 
-AC_ARG_WITH(ssl,
-[  --with-ssl=dir          use openssl installed in dir],
+AC_ARG_WITH(openssl,
+[  --with-openssl=dir      use openssl installed in dir],
 [
         AC_SUBST(openssl_LDFLAGS,["-L${withval}/lib -Wl,-rpath=${withval}/lib"])
         AC_SUBST(openssl_CPPFLAGS,"-I${withval}/include")
@@ -71,12 +73,12 @@ if test x$CURLCONF = x -o \! \( -r "$CURLCONF" -a -x "$CURLCONF" \); then
    echo Must have the curl-config script
    exit 1
 else
-   AC_SUBST(CURL_CFLAGS, `$CURLCONF --cflags`)
-   AC_SUBST(CURL_LDFLAGS, `$CURLCONF --libs`)
+   AC_SUBST(curl_CFLAGS, `$CURLCONF --cflags`)
+   AC_SUBST(curl_LDFLAGS, `$CURLCONF --libs`)
 fi
 
 old_LDFLAGS="$LDFLAGS"
-LDFLAGS="$LDFLAGS $CURL_LDFLAGS"
+LDFLAGS="$LDFLAGS $curl_LDFLAGS"
 AC_CHECK_LIB(curl, curl_easy_strerror, :, echo Must have recent curl; exit 1)
 LDFLAGS=$old_LDFLAGS