From 7dedb28137dd5c08c30ca27f4e576fd8f9f3b593 Mon Sep 17 00:00:00 2001 From: Richard Nyberg Date: Fri, 10 Feb 2006 15:35:55 +0000 Subject: Put the ACX_PTHREAD macro from the Autoconf macro archive in acinclude.m4. Build btpd with pthreads. --- configure.ac | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'configure.ac') 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 -- cgit 1.4.1