ossp-pkg/fsl/fsl.ac 1.2 -> 1.3
--- fsl.ac 2002/07/27 15:37:21 1.2
+++ fsl.ac 2002/08/01 10:18:06 1.3
@@ -28,11 +28,52 @@
dnl ## fsl.ac: OSSP fsl Autoconf checks
dnl ##
-dnl # Check for anything OSSP SA wants to know
+dnl # Check for anything OSSP fsl wants to know
dnl # configure.in:
dnl # FSL_CHECK_ALL
AC_DEFUN(FSL_CHECK_ALL,[
- AC_CHECK_HEADERS(syslog.h)
+
+dnl # header checking
+AC_CHECK_HEADERS(syslog.h)
+
+dnl # platform specific hacks
+AC_MSG_CHECKING(for platform)
+PLATFORM=`sh ./config.guess`
+if test ".$PLATFORM" != .; then
+ PLATFORM=`sh ./config.sub $PLATFORM`
+fi
+AC_MSG_RESULT([$PLATFORM])
+case $PLATFORM in
+ *-*-solaris2.[[6-9]]* )
+ AC_DEFINE(HAVE_VSYSLOG_USVALIST, 1, [vsyslog(3) uses __va_list])
+ ;;
+ *-*-osf* )
+ CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
+ ;;
+esac
+
+dnl # built-time configuration parameter --with-cfgdir
+AC_MSG_CHECKING(for configuration directory)
+AC_ARG_WITH(fsl-cfgdir,dnl
+[ --with-fsl-cfgdir=PATH set configuration directory (default=PREFIX/etc/fsl)],
+[ fsl_cfgdir=$withval ],
+[ fsl_cfgdir="${prefix}/etc/fsl" ]
+)dnl
+AC_DEFINE_UNQUOTED(FSL_CFGDIR, "$fsl_cfgdir", [Define for OSSP fsl configuration directory])
+FSL_CFGDIR="$fsl_cfgdir"
+AC_SUBST(FSL_CFGDIR)
+AC_MSG_RESULT([$fsl_cfgdir])
+
+dnl # built-time configuration parameter --with-debug
+AC_MSG_CHECKING(for debugging using a l2spec)
+AC_ARG_WITH(fsl-debug,dnl
+[ --with-fsl-debug=L2SPEC set internal debugging (default="")],
+[ fsl_debug=$withval ],
+[ fsl_debug="" ]
+)dnl
+AC_DEFINE_UNQUOTED(FSL_DEBUG, "$fsl_debug", [Define for OSSP fsl debugging])
+AC_MSG_RESULT([$fsl_debug])
+
])
|
|