take care of that.
error out if we're using threads, and there's not <pthread.h>
RADIR = @radacctdir@
BUILDDBM = @BUILDDBM@
-
-MODULE_LIBS = @MODULE_LIBS@
-MODULE_LDFLAGS = @MODULE_LDFLAGS@
-STATIC_MODULES = @STATIC_MODULES@
PTHREADLIB=
if test "$WITH_THREADS" = "yes"; then
AC_CHECK_HEADERS(pthread.h)
+
+ if text "X$ac_cv_header_pthread_h" = "X"; then
+ AC_MSG_ERROR("You are trying to use threads without a POSIX <pthread.h>")
+ fi
+
AC_CHECK_LIB(pthread, pthread_create,
PTHREADLIB="-lpthread"
)
AC_CHECK_FUNC(crypt, AC_DEFINE(HAVE_CRYPT))
fi
-AC_SUBST(MODULE_LIBS)
-AC_SUBST(MODULE_CFLAGS)
-AC_SUBST(MODULE_LDFLAGS)
-
dnl #############################################################
dnl #
dnl # 8. Checks for system services