--- configure.ac 2002/01/30 13:15:50 1.2
+++ configure.ac 2002/07/01 12:54:54 1.3
@@ -268,7 +268,7 @@
*-*-isc* ) msg="no" ;; # on ISC the compiler test doesn't work
esac
if test ".$msg" = .yes; then
- AC_DEFINE(HAVE_GETTIMEOFDAY_ARGS1)
+ AC_DEFINE(HAVE_GETTIMEOFDAY_ARGS1, 1, [define if gettimeofday(2) wants a single-argument only])
fi
AC_MSG_RESULT([$msg])
@@ -286,7 +286,7 @@
msg="no"
)
if test ".$msg" = .yes; then
- AC_DEFINE(HAVE_STRUCT_TIMESPEC)
+ AC_DEFINE(HAVE_STRUCT_TIMESPEC, 1, [define if exists "struct timespec"])
fi
AC_MSG_RESULT([$msg])
@@ -323,7 +323,7 @@
dnl #
dnl # check for MCSC method
-AC_CHECK_HEADERS(ucontext.h)
+AC_CHECK_HEADER(ucontext.h,,, [#include <sys/types.h>])
AC_CHECK_FUNCS(makecontext swapcontext getcontext setcontext)
AC_CHECK_MCSC(mcsc=yes, mcsc=no)
@@ -440,9 +440,9 @@
dnl # 5. export the results
dnl #
-AC_DEFINE_UNQUOTED(PTH_MCTX_MTH_use, [PTH_MCTX_MTH_$mctx_mth])
-AC_DEFINE_UNQUOTED(PTH_MCTX_DSP_use, [PTH_MCTX_DSP_$mctx_dsp])
-AC_DEFINE_UNQUOTED(PTH_MCTX_STK_use, [PTH_MCTX_STK_$mctx_stk])
+AC_DEFINE_UNQUOTED(PTH_MCTX_MTH_use, [PTH_MCTX_MTH_$mctx_mth], [define for machine context method])
+AC_DEFINE_UNQUOTED(PTH_MCTX_DSP_use, [PTH_MCTX_DSP_$mctx_dsp], [define for machine context dispatching])
+AC_DEFINE_UNQUOTED(PTH_MCTX_STK_use, [PTH_MCTX_STK_$mctx_stk], [define for machine context stack])
PTH_MCTX_ID="$mctx_mth/$mctx_dsp/$mctx_stk"
AC_MSG_RESULT([decision on mctx implementation... ${TB}${PTH_MCTX_ID}${TN}])
@@ -575,7 +575,8 @@
AC_SUBST(TEST_PTHREAD)
dnl # whether to build against OSSP ex library
-AC_CHECK_EXTLIB(OSSP ex, ex, __ex_ctx, ex.h, AC_DEFINE(PTH_EX))
+AC_CHECK_EXTLIB(OSSP ex, ex, __ex_ctx, ex.h,
+ AC_DEFINE(PTH_EX, 1, [define if using OSSP ex in GNU pth]))
dnl # whether to build against Sfio library
PTH_EXT_SFIO=0
@@ -583,7 +584,8 @@
AC_SUBST(PTH_EXT_SFIO)
dnl # whether to build against Dmalloc library
-AC_CHECK_EXTLIB(Dmalloc, dmalloc, dmalloc_debug, dmalloc.h, AC_DEFINE(PTH_DMALLOC))
+AC_CHECK_EXTLIB(Dmalloc, dmalloc, dmalloc_debug, dmalloc.h,
+ AC_DEFINE(PTH_DMALLOC, 1, [define if using Dmalloc in GNU pth]))
dnl ##
dnl ## OUTPUT SUBSTITUTION
|