AC_SUBST(LIBSASL)
fi
- dnl Disable "unlinkd" code
+ # Disable "unlinkd" code
+ squid_opt_enable_unlinkd=yes
AC_ARG_ENABLE(unlinkd,
-- AS_HELP_STRING([--disable-unlinkd],[Do not use unlinkd]),
- [ if test "$enableval" = "no" ; then
- use_unlinkd=no
- else
- use_unlinkd=yes
- fi
- ],[
- # Here we should probably use some magic depending on the selected
- # storage models
- use_unlinkd=yes
-[ SQUID_YESNO([$enableval],[unrecognized argument to --disable-unlinkd: $enableval])
++ AS_HELP_STRING([--disable-unlinkd],[Do not use unlinkd]), [
++SQUID_YESNO([$enableval],[unrecognized argument to --disable-unlinkd: $enableval])
+ squid_opt_enable_unlinkd=$enableval
])
- if test "$use_unlinkd" = "yes"; then
- AC_MSG_NOTICE([unlinkd enabled])
- AC_DEFINE(USE_UNLINKD,1,[Define this if unlinkd is required (strongly recommended for ufs storage type)])
- AM_CONDITIONAL(ENABLE_UNLINKD, true)
- else
- AC_MSG_NOTICE([unlinkd disabled])
- AM_CONDITIONAL(ENABLE_UNLINKD, false)
- fi
+ AC_MSG_NOTICE([unlinkd enabled: $squid_opt_enable_unlinkd])
+ SQUID_DEFINE_UNQUOTED([USE_UNLINKD],$squid_opt_enable_unlinkd,[Enable useage of unlinkd])
+ AM_CONDITIONAL(ENABLE_UNLINKD,test $squid_opt_enable_unlinkd = "yes")
dnl Enable backtraces on fatal errors
++squid_opt_enable_stacktraces=no
AC_ARG_ENABLE(stacktraces,
-- AS_HELP_STRING([--enable-stacktraces],[Enable automatic call backtrace on fatal errors]),
--[ if test "$enableval" = "yes" ; then
-- AC_MSG_NOTICE([Enabling automatic stack backtraces on fatal errors])
-- AC_DEFINE(PRINT_STACK_TRACE, 1,[Print stacktraces on fatal errors])
-- fi
++ AS_HELP_STRING([--enable-stacktraces],[Enable automatic call backtrace on fatal errors]), [
++SQUID_YESNO([$enableval],[unrecognized argument to --enable-stacktraces: $enableval])
++squid_opt_enable_stacktraces=$enableval
])
++AC_MSG_NOTICE([Automatically print stack trace on fatal errors: $squid_opt_enable_stacktraces])
++SQUID_DEFINE_UNQUOTED([PRINT_STACK_TRACE],$squid_opt_enable_stacktraces,[Print stack traces on fatal errors])
++
AM_CONDITIONAL(ENABLE_XPROF_STATS, false)
dnl Enable USE_XPROF_STATS