--- configure.ac 2002/03/08 12:55:52 1.10
+++ configure.ac 2002/03/09 19:23:37 1.11
@@ -28,27 +28,32 @@
dnl ## configure.ac: GNU Autoconf source script
dnl ##
-AC_PREREQ(2.52)
-AC_REVISION(1.0)
-AC_INIT(var.h)
-
-AC_DIVERT_PUSH(NOTICE)
+dnl # prerequisites, initialization and input control
+AC_PREREQ(2.53)
+AC_INIT
V=`./shtool version -l txt -d long VERSION`
-./shtool echo -e "Configuring %BOSSP var%b (Variable Expansion), Version %B${V}%b"
-AC_DIVERT_POP()
+./shtool echo -e "Configuring %BOSSP var%b (Variable Expansion), version %B${V}%b"
+AC_CONFIG_SRCDIR(var.h)
-AC_SET_MAKE
+dnl # checks for build programs
+AC_PROG_MAKE_SET
AC_PROG_CC
AC_CHECK_DEBUGGING
-
sinclude(libtool.m4)
AC_PROG_LIBTOOL
+dnl # checks for platform environment
AC_CHECK_FUNCS(snprintf)
-AC_CHECK_EXTLIB([OSSP ex], ex, __ex_ctx, ex.h, [AC_DEFINE(WITH_EX)])
-AC_CHECK_EXTLIB([Dmalloc], dmalloc, dmalloc_debug, dmalloc.h, AC_DEFINE(WITH_DMALLOC))
+dnl # checks for external libraries
+AC_CHECK_EXTLIB([OSSP ex], ex, __ex_ctx, ex.h,
+ [AC_DEFINE(WITH_EX, 1, [Define to 1 if building with OSSP ex])])
+AC_CHECK_EXTLIB([Dmalloc], dmalloc, dmalloc_debug, dmalloc.h,
+ [AC_DEFINE(WITH_DMALLOC, 1, [Define to 1 if building with Dmalloc])])
+
+dnl # output generation
AC_CONFIG_HEADERS(config.h)
-AC_CONFIG_FILES(Makefile var-config)
+AC_CONFIG_FILES([Makefile var-config])
+AC_CONFIG_COMMANDS([adjustment], [chmod a+x var-config])
AC_OUTPUT
|