AC_DEFINE_UNQUOTED(SENDMAIL,"$ac_cv_path_SENDMAIL")
else
AC_MSG_ERROR([
-Cannot determine path to sendmail: try option with-sendmail=PATH])
+Cannot determine path to sendmail: try option --with-sendmail=PATH])
fi
;;
*)
AC_DEFINE_UNQUOTED(SENDMAIL,"$ac_cv_path_SENDMAIL")
else
AC_MSG_ERROR([
-Cannot determine path to sendmail: try option with-sendmail=PATH])
+Cannot determine path to sendmail: try option --with-sendmail=PATH])
fi ]
)
AC_DEFINE_UNQUOTED(SHELL,"$ac_cv_path_SHELL")
else
AC_MSG_ERROR([
-Cannot determine path to sh: try option with-shell=PATH])
+Cannot determine path to sh: try option --with-shell=PATH])
fi
;;
*)
AC_DEFINE_UNQUOTED(SHELL,"$ac_cv_path_SHELL")
else
AC_MSG_ERROR([
-Cannot determine path to sh: try option with-shell=PATH])
+Cannot determine path to sh: try option --with-shell=PATH])
fi ]
)
AC_DEFINE_UNQUOTED(EDITOR,"$ac_cv_path_EDITOR")
else
AC_MSG_ERROR([
-Cannot determine path to vi: try option with-editor=PATH])
+Cannot determine path to vi: try option --with-editor=PATH])
fi
;;
*)
AC_DEFINE_UNQUOTED(EDITOR,"$ac_cv_path_EDITOR")
else
AC_MSG_ERROR([
-Cannot determine path to vi: try option with-editor=PATH])
+Cannot determine path to vi: try option --with-editor=PATH])
fi ]
)
AC_MSG_ERROR(Need ETCDIR.)
;;
yes)
- etcdir=/etc
- AC_MSG_RESULT(/etc)
+ if test -d "/etc"; then
+ etcdir=/etc
+ AC_MSG_RESULT(/etc)
+ else
+ AC_MSG_ERROR(directory /etc does not exist: try option --with-etcdir=PATH)
+ fi
;;
*)
if test -d "$withval"; then
etcdir="/etc"
AC_MSG_RESULT(/etc)
else
- AC_MSG_ERROR(directory $withval does not exist)
+ AC_MSG_ERROR(directory /etc does not exist: try option --with-etcdir=PATH)
fi
)
ETC="$etcdir"
yes)
if test -d /var/spool/fcron ; then
sp=/var/spool/fcron
- AC_DEFINE(FCRONTABS, "/var/spool/fcron")
AC_MSG_RESULT(Using existing /var/spool/fcron)
elif test -d /var/spool/ ; then
sp=/var/spool/fcron
- AC_DEFINE(FCRONTABS, "/var/spool/fcron")
AC_MSG_RESULT(/var/spool/fcron)
elif test -d /usr/spool/ ; then
sp=/usr/spool/fcron
- AC_DEFINE(FCRONTABS, "/usr/spool/fcron")
AC_MSG_RESULT(/usr/spool/fcron)
else
- AC_MSG_ERROR(Cannot determine value for spool directory)
+ AC_MSG_ERROR(Cannot determine value for spool directory: try option --with-spooldir=PATH)
fi
;;
*)
if test -d "$withval"; then
- AC_DEFINE_UNQUOTED(FCRONTABS, "$withval")
+ sp="$withval"
AC_MSG_RESULT($withval)
else
AC_MSG_ERROR(directory $withval does not exist)
esac ],
if test -d /var/spool/fcron ; then
sp=/var/spool/fcron
- AC_DEFINE(FCRONTABS, "/var/spool/fcron")
AC_MSG_RESULT(Using existing /var/spool/fcron)
elif test -d /var/spool/ ; then
sp=/var/spool/fcron
- AC_DEFINE(FCRONTABS, "/var/spool/fcron")
AC_MSG_RESULT(/var/spool/fcron)
elif test -d /usr/spool/ ; then
sp=/usr/spool/fcron
- AC_DEFINE(FCRONTABS, "/usr/spool/fcron")
AC_MSG_RESULT(/usr/spool/fcron)
else
- AC_MSG_ERROR(Cannot determine value for spool directory)
+ AC_MSG_ERROR(Cannot determine value for spool directory: try option --with-spooldir=PATH)
fi
)
FCRONTABS="$sp"
+AC_DEFINE(FCRONTABS, "$sp")
AC_SUBST(FCRONTABS)
if test $getloadavg -eq 0 ; then
AC_MSG_CHECKING(proc directory)
AC_ARG_WITH(proc,
-[ --with-proc=PATH Directory where procfs is mounted (default /proc).],
+[ --with-proc=PATH Directory where linux procfs is mounted (default /proc).],
[ case "$withval" in
no)
AC_MSG_WARN([
yes)
if test -f /proc/loadavg ; then
proc="/proc"
- AC_DEFINE(PROC, "/proc")
AC_MSG_RESULT(/proc)
else
- AC_MSG_ERROR(Cannot determine value for proc directory)
+ AC_MSG_ERROR(Cannot determine value for proc directory: try option --with-proc=PATH)
fi
;;
*)
if test -f "$withval/loadavg"; then
- AC_DEFINE_UNQUOTED(PROC, "$withval")
+ proc="$withval"
AC_MSG_RESULT($withval)
else
AC_MSG_ERROR(directory $withval does not exist)
esac ],
if test -f "/proc/loadavg" ; then
proc="/proc"
- AC_DEFINE(PROC, "/proc")
AC_MSG_RESULT(/proc)
else
- AC_MSG_ERROR(Cannot determine value for proc directory)
+ AC_MSG_ERROR(Cannot determine value for proc directory try option --with-proc=PATH)
fi
)
PROC="$proc"
+AC_DEFINE(PROC, "$proc")
AC_SUBST(PROC)
fi
CFLAGS="-O2 -Wall"
)
+
AC_OUTPUT(Makefile)