summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in10
1 files changed, 6 insertions, 4 deletions
diff --git a/configure.in b/configure.in
index 6ab2633..b3ecf3d 100644
--- a/configure.in
+++ b/configure.in
@@ -37,7 +37,7 @@ dnl
dnl Process this file with autoconf to produce a configure script.
AC_INIT(httpauth, 0.1, nielsen@memberwebs.com)
-AM_INIT_AUTOMAKE(httpauth, 0.8.1)
+AM_INIT_AUTOMAKE(httpauth, 0.1)
LDFLAGS="$LDFLAGS -L/usr/local/lib"
CFLAGS="$CFLAGS -I/usr/local/include -g -O0"
@@ -65,9 +65,11 @@ fi
# TODO: Make SMB support an option
# TODO: Make LDAP support an option
-# Check for libraries
-AC_CHECK_LIB([pthread], [pthread_create], ,
- [ echo "ERROR: Pthread libraries required."; exit 1] )
+# TODO: Figure out why we need this wierd hack
+ACX_PTHREAD( , [echo "ERROR: Pthread support not found."; exit 1] )
+
+LIBS="$PTHREAD_LIBS $LIBS"
+CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
AC_CHECK_LIB([crypt], [crypt], ,
[ echo "ERROR: Crypt library required."; exit 1] )