Properly use AC_ARG_WITH

2000-04-11  Miguel de Icaza  <miguel@gnu.org>

	* configure.in (have_pthread): Properly use AC_ARG_WITH

svn path=/trunk/; revision=2403
This commit is contained in:
Miguel de Icaza
2000-04-12 02:41:07 +00:00
committed by Miguel de Icaza
parent 9bee8001c4
commit 7dbd2430de
2 changed files with 21 additions and 5 deletions

View File

@ -1,3 +1,7 @@
2000-04-11 Miguel de Icaza <miguel@gnu.org>
* configure.in (have_pthread): Properly use AC_ARG_WITH
2000-04-11 Chris Toshok <toshok@helixcode.com>
* wombat/Makefile.am (wombat_LDADD): add LDAP_LIBS here.

View File

@ -109,13 +109,25 @@ dnl **************************************************
have_pthread=false
AC_ARG_WITH(threads, [--with-threads include threads support],
[GNOME_PTHREAD_CHECK])
AC_ARG_WITH(threads, [--with-threads include threads support],[
if test x$withval = xyes; then
test_thread=true
else
test_thread=false
fi
],[
test_thread=false
])
if test "x$PTHREAD_LIB" = "x" ; then
have_pthread=false
if $test_thread; then
GNOME_PTHREAD_CHECK
if test "x$PTHREAD_LIB" = "x" ; then
have_pthread=false
else
have_pthread=true
fi
else
have_pthread=true
have_pthread=false
fi
AM_CONDITIONAL(ENABLE_THREADS, $have_pthread)