AC_CHECK_TOOL(RANLIB, ranlib, true)
dnl AC_PATH_PROG(PERL_PATH, perl)
-REENTRANCY_FLAGS
+#
+# Play with CPPFLAGS given what was learned from APR_PRELOAD.
+#
+# XXX: APR only sets this if threads are enabled. Either APR should be
+# fixed to always set it (most likely), or we should test for threads.
+#
+if test -n "$THREAD_CPPFLAGS"; then
+ CPPFLAGS="$CPPFLAGS $THREAD_CPPFLAGS"
+fi
dnl various OS checks that apparently set required flags
AC_AIX
dnl ## APRVARS before Apache generates it's Makefiles and the related files.
dnl ## This allows APR to detect libraries like dl and tell Apache that it
dnl ## needs to include or not include them.
-RUN_SUBDIR_CONFIG_NOW(srclib/apr, "$apache_apr_flags --disable-shared")
-RUN_SUBDIR_CONFIG_NOW(srclib/apr-util, "--with-apr=../apr --disable-shared")
-RUN_SUBDIR_CONFIG_NOW(srclib/pcre)
+APR_SUBDIR_CONFIG(srclib/apr, "$apache_apr_flags --disable-shared")
+APR_SUBDIR_CONFIG(srclib/apr-util, "--with-apr=../apr --disable-shared")
+APR_SUBDIR_CONFIG(srclib/pcre)
. ./srclib/apr/APRVARS
dnl get the exported vars from APRUTIL
apache_cv_mpm=$APACHE_MPM
if test "$apache_cv_mpm" = "threaded" -o "$apache_cv_mpm" = "perchild"; then
- PTHREADS_CHECK
+ APR_PTHREADS_CHECK
AC_MSG_CHECKING([for which threading library to use])
AC_MSG_RESULT($threads_result)