--- configure.ac 2002/01/31 09:09:43 1.3
+++ configure.ac 2002/03/13 18:19:38 1.4
@@ -28,27 +28,29 @@
dnl ## configure.ac: GNU Autoconf source script
dnl ##
-AC_PREREQ(2.52)
-AC_REVISION(1.0)
-AC_INIT(README)
-
-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 val%b (Value Access), Version %B${V}%b"
-AC_DIVERT_POP()
+./shtool echo -e "Configuring %BOSSP val%b (Value Access), version %B${V}%b"
+AC_CONFIG_SRCDIR(val.h)
-AC_SET_MAKE
-AC_PROG_CC
+dnl # checks for build programs
+AC_PROG_MAKE_SET
+EN_PROG_CC
AC_CHECK_DEBUGGING
-
sinclude(libtool.m4)
AC_PROG_LIBTOOL
-AC_CHECK_EXTLIB([OSSP ex], ex, __ex_ctx, ex.h, [AC_DEFINE(WITH_EX)])
+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 val-config)
+AC_CONFIG_FILES([Makefile val-config])
+AC_CONFIG_COMMANDS([adjustment], [chmod a+x val-config])
AC_OUTPUT
-chmod a+x val-config
-
|