Fixing for new autotools.
[become] / configure.in
index d673178..5c62051 100644 (file)
@@ -1,6 +1,6 @@
 dnl -*-m4-*-
 dnl
-dnl $Id: configure.in,v 1.22 2004/04/17 10:46:08 mdw Exp $
+dnl $Id$
 dnl
 dnl Source for auto configuration for `become'
 dnl
@@ -50,14 +50,15 @@ AC_ARG_ENABLE([style],
      ;;
 esac],
 [style="l_preserve"])
-AC_DEFINE_UNQUOTED(DEFAULT_LOGIN_STYLE, $style)
+AC_DEFINE_UNQUOTED([DEFAULT_LOGIN_STYLE], [$style],
+                   [Default login style: l_preserve, l_setuser or l_login.])
 
 dnl --- Choose networking options ---
 
 AC_ARG_ENABLE([network],
 [  --disable-network      disable the client-server bits of the program],
   [if test "$enableval" = "no"; then
-    AC_DEFINE(NONETWORK)
+    AC_DEFINE([NONETWORK], [1], [Define to disable network support.])
   fi])
 
 dnl --- Set configuration directory ---
@@ -80,6 +81,8 @@ AC_ARG_WITH([htmldir],
 [htmldir="$withval"], [htmldir='${prefix}/html/become'])
 AC_SUBST(htmldir)
 
+AH_TEMPLATE([ETCDIR], [Where Become should look for its configuration.])
+AH_TEMPLATE([file_PID], [Where Become should write its process-id.])
 mdw_DEFINE_PATHS([
   mdw_DEFINE_PATH([ETCDIR], [$etcdir])
   mdw_DEFINE_PATH([file_PID], [$pidfile])
@@ -97,16 +100,18 @@ mdw_MLIB(2.0.1)
 mdw_CATACOMB(2.1.0)
 
 mdw_CHECK_MANYLIBS(socket, socket,,
-  [AC_MSG_ERROR([Socket library not found])])
+  [AC_MSG_ERROR([Socket library not found.])])
 
 mdw_CHECK_MANYLIBS(gethostbyname, resolv nsl,,
-  [AC_MSG_ERROR([Resolver library not found])])
+  [AC_MSG_ERROR([Resolver library not found.])])
 
-mdw_CHECK_MANYLIBS(yp_all, nsl, AC_DEFINE(HAVE_YP))
+mdw_CHECK_MANYLIBS([yp_all], [nsl], 
+  [AC_DEFINE([HAVE_YP], [1], 
+             [Define if you have (and want to use) the Yellow Peril.])])
 
 dnl --- Other functions ---
 
-AC_CHECK_FUNCS(sigprocmask)
+AC_CHECK_FUNCS([sigprocmask])
 
 dnl --- Types ---
 
@@ -116,7 +121,7 @@ mdw_TYPE_SSIZE_T
 
 dnl --- Set the path separator ---
 
-AC_DEFINE(PATHSEP, '/')
+AC_DEFINE([PATHSEP], ['/'], [Your operating system's path separator.])
 
 dnl --- Check for some useful functions ---