1 dnl Process this file with autoconf to produce a configure script.
4 dnl ---------------------------------------------------------------------
6 dnl ---------------------------------------------------------------------
9 AC_CONFIG_HEADER(config.h)
11 m4_include([m4/ax_lib_readline.m4])
14 vers_quoted="\"$vers\""
15 AC_DEFINE_UNQUOTED(VERSION, $vers)
16 AC_DEFINE_UNQUOTED(VERSION_QUOTED, $vers_quoted)
20 copyright_quoted="\"2000-2014\""
21 AC_DEFINE_UNQUOTED(COPYRIGHT_QUOTED, $copyright_quoted)
24 dnl ---------------------------------------------------------------------
25 dnl Check for programs, header files, types, etc (autoconf builtins)
26 dnl ---------------------------------------------------------------------
28 dnl Checks for programs.
30 AC_PATH_PROGS(MAKE, $MAKE gmake make, $PATH:/local/bin:/usr/local/bin:/opt/TWWfsw/bin:/opt/sfw/bin)
31 AC_MSG_CHECKING(if make is actually GNU Make)
32 if test x"$MAKE" = x; then
33 AC_MSG_ERROR(Cannot locate a make utility, 1)
34 elif $MAKE --version 2>/dev/null |grep "^GNU Make" >/dev/null; then
38 AC_MSG_ERROR($MAKE is not GNU Make.
39 Please install GNU Make or adjust your PATH so that GNU make can be found
40 before any others., 1)
44 AC_PATH_PROGS(STRIP, $STRIP strip, /usr/css/bin:$PATH:/local/bin:/usr/local/bin:/opt/TWWfsw/bin:/opt/sfw/bin)
46 dnl Checks for libraries.
48 dnl Checks for header files.
52 AC_CHECK_HEADERS(fcntl.h sys/file.h sys/ioctl.h sys/time.h syslog.h unistd.h)
53 AC_CHECK_HEADERS(errno.h sys/fcntl.h getopt.h limits.h)
54 AC_CHECK_HEADERS(stdarg.h)
55 AC_CHECK_HEADERS(termios.h)
56 AC_CHECK_HEADERS(strings.h)
57 AC_CHECK_HEADERS(sys/types.h sys/socket.h sys/un.h)
58 AC_CHECK_HEADERS(security/pam_appl.h pam/pam_appl.h crypt.h shadow.h libaudit.h)
59 AC_CHECK_HEADERS(sys/resource.h)
60 AC_CHECK_HEADERS(grp.h)
62 dnl Checks for typedefs, structures, and compiler characteristics.
70 dnl Check exitence of types
71 AC_CHECK_TYPE(ssize_t, int)
73 dnl Define sizeof constants
74 AC_CHECK_SIZEOF(time_t)
75 AC_CHECK_SIZEOF(pid_t)
76 AC_CHECK_SIZEOF(time_t)
77 AC_CHECK_SIZEOF(short int)
79 AC_CHECK_SIZEOF(long int)
80 AC_CHECK_SIZEOF(long long int)
82 dnl Checks for library functions.
83 AC_PROG_GCC_TRADITIONAL
88 AC_CHECK_LIB(xnet, shutdown)
89 AC_CHECK_LIB(selinux, getcon, [selinuxavail=1], [selinuxavail=0])
90 AC_CHECK_LIB(audit, audit_open, [auditavail=1], [auditavail=0])
92 AC_CHECK_FUNC(getloadavg, [getloadavg=1], [getloadavg=0])
93 AC_CHECK_LIB(kstat, kstat_open, [kstat=1], [kstat=0])
94 if test $getloadavg -eq 1; then
97 AC_MSG_CHECKING(function to use for lavg* options)
98 AC_MSG_RESULT(getloadavg())
99 elif test $kstat -eq 1; then
100 AC_MSG_CHECKING(function to use for lavg* options)
102 AC_LIBOBJ([getloadavg])
103 AC_DEFINE_UNQUOTED(HAVE_KSTAT, 1)
106 dnl Try to use the /proc/loadavg file ...
108 AC_MSG_CHECKING(function to use for lavg* options)
109 AC_MSG_RESULT(/proc/loadavg)
111 AC_CHECK_FUNCS(getcwd gettimeofday mktime putenv strerror setenv unsetenv gethostname)
112 AC_CHECK_FUNCS(getopt_long)
113 AC_CHECK_FUNCS(mkstemp)
114 AC_CHECK_FUNCS(flock lockf)
115 AC_CHECK_FUNCS(setlinebuf)
116 AC_CHECK_FUNCS(signal)
117 AC_CHECK_FUNCS(sigset)
119 AC_CHECK_FUNCS(seteuid, [seteuid=1], [seteuid=0])
120 AC_CHECK_FUNCS(setegid, [setegid=1], [setegid=0])
121 AC_CHECK_FUNCS(setresuid, [setresuid=1], [setresuid=0])
122 AC_CHECK_FUNCS(setresgid, [setresgid=1], [setresgid=0])
123 if test \( \( $seteuid -eq 1 \) -a \( $setegid -eq 1 \) \) -o \( \( "$setresuid" -eq 1 \) -a \( "$setresgid" -eq 1 \) \) ; then
129 AC_CHECK_FUNCS(setpriority)
131 AC_SEARCH_LIBS([getspnam],[shadow sec], [AC_DEFINE_UNQUOTED(HAVE_GETSPNAM, 1)], [])
133 AC_CHECK_FUNCS(crypt, [crypt=1], [crypt=0])
134 if test "$crypt" -eq "0"; then
135 AC_CHECK_LIB(crypt, crypt, [crypt=1], [crypt=0])
136 if test "$crypt" -eq "1"; then
140 if test "$crypt" -eq "1"; then
141 AC_DEFINE_UNQUOTED(HAVE_CRYPT, 1)
146 dnl Check for post-Reno style struct sockaddr
147 AC_CACHE_CHECK([for sa_len],
149 [AC_TRY_COMPILE([#include <sys/types.h>
150 #include <sys/socket.h>], [int main(void) {
151 struct sockaddr t;t.sa_len = 0;}],
152 ac_cv_sa_len=yes,ac_cv_sa_len=no)])
153 if test $ac_cv_sa_len = yes; then
154 AC_DEFINE(HAVE_SA_LEN)
157 dnl --- Socket authentication
158 AC_CHECK_HEADERS(cred.h sys/cred.h ucred.h sys/ucred.h)
159 AC_CHECK_FUNCS(getpeerucred) dnl Solaris 10 onward
160 AC_CHECK_FUNCS(getpeereid) dnl OpenBSD/FreeBSD
162 dnl ---------------------------------------------------------------------
163 dnl Check for fcron more specific stuffs (paths, progs, ...)
164 dnl ---------------------------------------------------------------------
166 fcron_enable_checks=yes
167 AC_ARG_ENABLE(checks,
168 [ --disable-checks Don't verify that programs exist on the host ], dnl '
169 [ case "$enableval" in
171 fcron_enable_checks=no
174 fcron_enable_checks=yes
177 AC_MSG_WARN([Bad value for --disable-checks])
183 dnl ---------------------------------------------------------------------
186 AC_PATH_PROG(FOUND_SENDMAIL, sendmail, , $PATH:/usr/lib:/usr/sbin )
189 AC_MSG_CHECKING([actual sendmail to use])
190 AC_ARG_WITH(sendmail, [ --with-sendmail=PATH Path to sendmail.],
192 no) USE_SENDMAIL=0 ;;
194 *) SENDMAIL=$withval ;;
198 if test "$USE_SENDMAIL" != "1" ; then
199 AC_MSG_RESULT([disabled])
200 AC_MSG_WARN([Without sendmail you will not get the output of the jobs by mail])
201 elif test -n "$SENDMAIL" ; then
202 dnl The user defined a sendmail program to use:
203 if test ! -x "$SENDMAIL" ; then
204 dnl ... but it is not an executable file!
205 AC_MSG_RESULT([$SENDMAIL])
206 AC_MSG_ERROR([File $SENDMAIL is not an executable file])
208 dnl ... and it is valid
209 AC_MSG_RESULT([$SENDMAIL])
211 elif test -z "$FOUND_SENDMAIL" ; then
212 dnl The user didn't defined a program to use, and we didn't find one automatically
213 AC_MSG_RESULT([not found])
214 AC_MSG_ERROR([Empty sendmail path or cannot determine path to sendmail: try option --with-sendmail=PATH])
216 dnl Use the automatically found sendmail program:
217 SENDMAIL="$FOUND_SENDMAIL"
218 AC_MSG_RESULT([$SENDMAIL])
222 if test "$USE_SENDMAIL" = "1"; then
223 AC_DEFINE([USE_SENDMAIL])
226 AC_PATH_PROG(FOUND_FCRON_SHELL, sh, , $PATH)
228 AC_MSG_CHECKING([default shell to use to run a job])
230 [ --with-shell=PATH Path to default shell (by default, path to sh).],
233 AC_MSG_ERROR(Need a default shell)
239 if test $fcron_enable_checks = 'yes' -a ! -x "$withval"; then
241 File $withval is not an executable file])
246 if test x"$FCRON_SHELL" = x ; then
247 FCRON_SHELL=$FOUND_FCRON_SHELL
248 if test "$FOUND_FCRON_SHELL" = "" ; then
250 Cannot determine path to sh: try option --with-shell=PATH])
254 AC_MSG_RESULT([$FCRON_SHELL])
255 AC_SUBST([FCRON_SHELL])
257 AC_PATH_PROG(FOUND_FCRON_EDITOR, vi)
259 AC_MSG_CHECKING([editor to use for fcrontab])
261 [ --with-editor=PATH Path to default editor (by default, path to vi).],
264 AC_MSG_ERROR([Need a default editor])
269 FCRON_EDITOR=$withval
270 if test $fcron_enable_checks = 'yes' -a ! -x "$withval"; then
272 File $withval is not an executable file])
278 if test x"$FCRON_EDITOR" = x; then
279 FCRON_EDITOR=$FOUND_FCRON_EDITOR
280 if test x"$FCRON_EDITOR" = x ; then
282 Cannot determine path to vi: try option --with-editor=PATH])
286 AC_MSG_RESULT([$FCRON_EDITOR])
287 AC_SUBST([FCRON_EDITOR])
289 dnl ---------------------------------------------------------------------
292 PIDDIR="${localstatedir}/run"
293 AC_MSG_CHECKING(location of pid files)
295 [ --with-piddir=PATH Directory containing pid files.],
298 AC_MSG_ERROR([Need PIDDIR.])
307 AC_MSG_RESULT([$PIDDIR])
308 PIDFILE="${PIDDIR}/fcron.pid"
309 REBOOT_LOCK="${PIDDIR}/fcron.reboot"
312 AC_SUBST(REBOOT_LOCK)
314 FIFODIR="${localstatedir}/run"
315 AC_MSG_CHECKING(location of fifo files)
317 [ --with-fifodir=PATH Directory containing fifo files.],
320 AC_MSG_ERROR(Need FIFODIR.)
329 AC_MSG_RESULT([$FIFODIR])
330 FIFOFILE="${FIFODIR}/fcron.fifo"
334 sp="${localstatedir}/spool/fcron"
335 AC_MSG_CHECKING(location of spool directory)
336 AC_ARG_WITH(spooldir,
337 [ --with-spooldir=PATH Directory containing fcron spool (default PREFIX/var/spool/fcron).],
340 AC_MSG_ERROR(Need SPOOLDIR.)
351 AC_DEFINE_UNQUOTED(FCRONTABS, "$sp")
354 if test \( $getloadavg -eq 0 \) -a \( $kstat -eq 0 \); then
356 AC_MSG_CHECKING(proc directory)
358 [ --with-proc=PATH Directory where linux procfs is mounted (default /proc).],
362 Without proc, you won't be able to use the lavg* options
374 if test "$withval" != "no" -a $fcron_enable_checks = 'yes'; then
375 if test -f "$proc/loadavg"; then :
378 Cannot determine value for proc directory: try option --with-proc=PATH])
379 AC_MSG_ERROR(Use --with-proc=no to disable the lavg* options)
385 AC_DEFINE_UNQUOTED(PROC, "$proc")
388 docdir="${datadir}/doc"
389 AC_MSG_CHECKING(location of doc directory)
391 [ --with-docdir=PATH Directory containing documentation.],
394 AC_MSG_ERROR(Need DOCDIR.)
403 AC_MSG_RESULT($docdir)
408 dnl systemd init system
411 AC_CHECK_PROGS(PKG_CONFIG, $PKG_CONFIG pkg-config, , $PATH:/local/bin:/usr/local/bin:/opt/sfw/bin)
412 AC_MSG_CHECKING(for systemd)
413 AC_ARG_WITH([systemdsystemunitdir],
414 [ --with-systemdsystemunitdir=DIR Directory for systemd service files.],
415 [], [ if test "x" != "x$PKG_CONFIG"; then
416 with_systemdsystemunitdir=`$PKG_CONFIG --variable=systemdsystemunitdir systemd`
418 if test "x$with_systemdsystemunitdir" != xno; then
419 if test "x" != "x$with_systemdsystemunitdir"; then
420 SYSTEMD_DIR="$with_systemdsystemunitdir"
426 AC_MSG_RESULT(disabled)
428 AC_SUBST(SYSTEMD_DIR)
431 dnl ---------------------------------------------------------------------
432 dnl Users and groups ...
434 AC_MSG_CHECKING(run non-privileged)
435 AC_ARG_WITH(run-non-privileged,
436 [ --with-run-non-privileged=[yes|no] Run fcron without root's rights (see FAQ !)],
447 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
449 This option allows a non privileged user to run fcron. When used,
450 fcron does not change its rights before running a job (i.e.,
451 if joe runs fcron, every job will run as joe).
452 It means that YOU SHOULD NOT RUN FCRON AS A PRIVILEGED USER WHEN
453 COMPILED WITH THIS OPTION or you'll have a serious security hole.
454 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
457 AC_DEFINE(RUN_NON_PRIVILEGED)
459 AC_SUBST(RUN_NON_PRIVILEGED)
467 AC_MSG_ERROR(Invalid argument : please use 'yes' or 'no'.)
475 if test "$fcrondyn" = ""; then
478 AC_MSG_CHECKING(if fcrondyn should be compiled)
479 AC_ARG_WITH(fcrondyn,
480 [ --with-fcrondyn=[yes|no] Compile (or not) fcrondyn (default: yes).],
487 if test "$crypt" -eq 1; then
491 AC_MSG_ERROR(Need a crypt() function.)
495 AC_MSG_ERROR(Must be set to either "yes" or "no".)
498 if test "$fcrondyn" = "1" && test "$crypt" -eq 1; then
506 if test "$fcrondyn" = 1; then
507 AC_DEFINE_UNQUOTED(FCRONDYN, "$fcrondyn")
511 AC_MSG_CHECKING([root's username])
513 AC_ARG_WITH(rootname,
514 [ --with-rootname=USERNAME Root's username (default root) ],
517 AC_MSG_ERROR([Need rootname.])
527 if test $fcron_enable_checks = 'yes'; then
529 rootuid=`$srcdir/script/has_usrgrp.pl -user $rootname -printuid`
530 if test "x$rootuid" = "x"; then
532 Invalid root's username or cannot determine root's username: try option --with-rootname=USERNAME])
535 AC_MSG_RESULT([$rootname])
538 AC_MSG_CHECKING([root's groupname])
539 AC_ARG_WITH(rootgroup,
540 [ --with-rootgroup=GROUPNAME Root's groupname (default root (or wheel)) ],
543 AC_MSG_ERROR(Need rootgroup.)
553 if test $fcron_enable_checks = 'yes'; then
555 if test x"$rootgroup" = x; then
556 # rootgroup not defined: test a few possibilities
557 rgid=`$srcdir/script/has_usrgrp.pl -group root -printgid`
558 wgid=`$srcdir/script/has_usrgrp.pl -group wheel -printgid`
559 if test "x$rgid" != "x"; then
562 elif test "x$wgid" != "x"; then
567 Cannot determine root's groupname: try option --with-rootgroup=GROUPNAME])
570 # rootgroup defined: check it
571 rootgid=`$srcdir/script/has_usrgrp.pl -group $rootgroup -printgid`
572 if test "x$rootgid" = "x"; then
574 Cannot determine root's groupname: try option --with-rootgroup=GROUPNAME])
579 # no check: use values given by user or default values
580 if test x"$rootgroup" = x ; then
586 AC_MSG_RESULT([$rootgroup])
590 AC_DEFINE_UNQUOTED(ROOTNAME, "$rootname")
591 ROOTGROUP="$rootgroup"
593 AC_DEFINE_UNQUOTED(ROOTGROUP, "$rootgroup")
597 groupname="$rootgroup"
599 AC_MSG_CHECKING(username to run fcrontab under)
600 AC_ARG_WITH(username,
601 [ --with-username=USERNAME Username to run fcrontab under (default fcron) ],
604 AC_MSG_ERROR(Need USERNAME.)
607 if test "$has_euid" -eq 1 ; then
610 AC_MSG_RESULT($username)
613 if test "$has_euid" -eq 1 ; then
615 AC_MSG_RESULT($username)
616 if test "$withval" = "$rootname" && test "$RUN_NON_PRIVILEGED" != "1"; then
619 Running fcrontab setuid root is NOT secure and would completely break
620 the security model of fcron. You must use a different user name.
625 AC_MSG_RESULT($username)
626 AC_MSG_WARN(username must be $rootname as your system has no seteuid)
630 if test "$has_euid" -eq 1 ; then
633 AC_MSG_RESULT($username)
636 AC_MSG_CHECKING(groupname to run fcrontab under)
637 AC_ARG_WITH(groupname,
638 [ --with-groupname=GROUPNAME Groupname to run fcrontab under (default fcron) ],
641 AC_MSG_ERROR(Need GROUPNAME.)
644 if test "$has_euid" -eq 1 ; then
647 AC_MSG_RESULT($groupname)
650 if test "$has_euid" -eq 1 ; then
651 groupname="$withval";
652 AC_MSG_RESULT($groupname)
654 AC_MSG_RESULT($groupname)
655 AC_MSG_WARN(groupname must be $rootgroup as username is $username)
659 if test "$has_euid" -eq 1 ; then
662 AC_MSG_RESULT($groupname)
667 AC_DEFINE_UNQUOTED(USERNAME, "$username")
668 GROUPNAME="$groupname"
670 AC_DEFINE_UNQUOTED(GROUPNAME, "$groupname")
673 if test "$has_euid" -eq 1 ; then
674 AC_DEFINE(USE_SETE_ID)
681 AC_MSG_CHECKING(use a system fcrontab)
682 AC_ARG_WITH(sysfcrontab,
683 [ --with-sysfcrontab=NAME Use (or not) a system fcrontab (default: yes)],
693 sysfcrontab="$withval"
694 AC_MSG_RESULT($sysfcrontab)
698 if test "$use_sysfcrontab" -eq 1 ; then
699 AC_DEFINE_UNQUOTED(SYSFCRONTAB, "$sysfcrontab")
700 SYSFCRONTAB="$sysfcrontab"
701 AC_SUBST(SYSFCRONTAB)
705 dnl ---------------------------------------------------------------------
709 [ --with-debug=CFLAGS Use default debug flags or CFLAGS if given to compile fcron in debug mode.],
716 cflags="-DDEBUG -DCHECKRUNJOB -g -Wall -DFOREGROUND -DMALLOC_CHECK_=2 -Wpointer-arith -Wstrict-prototypes"
732 if test "$bootinstall" = ""; then
735 AC_MSG_CHECKING(install interactively a boot script)
736 AC_ARG_WITH(boot-install,
737 [ --with-boot-install=[yes|no] Install (interactively) a boot script (default: yes).],
748 AC_MSG_ERROR(Must be set to either "yes" or "no".)
751 if test "$bootinstall" = "1"; then
757 BOOTINSTALL="$bootinstall"
758 AC_DEFINE_UNQUOTED(BOOTINSTALL, "$bootinstall")
759 AC_SUBST(BOOTINSTALL)
763 [ --with-cflags=CFLAGS Use CFLAGS flags to compile fcron.],
766 AC_MSG_ERROR(Need an explicit value for --with-cflags.)
769 AC_MSG_ERROR(Need an explicit value for --with-cflags.)
777 AC_DEFINE_UNQUOTED(CFLAGS, "$cflags")
780 AC_MSG_CHECKING(automatic answer to make install's questions)
781 AC_ARG_WITH(answer-all,
782 [ --with-answer-all=[yes|no] Answer the argument to every make install's questions.],
786 AC_MSG_RESULT(yes (answer "no"))
790 AC_MSG_RESULT(yes (answer "yes"))
793 AC_MSG_ERROR(Must be set to either "yes" or "no".)
799 ANSWERALL="$answerall"
800 AC_DEFINE_UNQUOTED(ANSWERALL, "$answerall")
804 AC_MSG_CHECKING(if audit trails should be enabled if available)
806 [ --with-audit=[yes|no] Enable (or not) audit trails if available (default: yes).],
815 AC_MSG_ERROR(Must be set to either "yes" or "no".)
819 if test useaudit = "0"; then
821 elif test "$useaudit" = "1" && test "$auditavail" != 1; then
823 AC_MSG_RESULT(not available)
825 You requested audit trails to be enabled, but libaudit was not found.
827 elif test "$auditavail" = 1; then
831 AC_DEFINE(WITH_AUDIT)
838 if test "$usepam" = ""; then
841 AC_MSG_CHECKING(if pam should be used if available)
843 [ --with-pam=[yes|no] Use (or not) PAM if available (default: yes).],
851 AC_CHECK_LIB(pam, pam_acct_mgmt)
854 AC_MSG_ERROR(Must be set to either "yes" or "no".)
857 if test "$usepam" = "1"; then
859 AC_CHECK_LIB(pam, pam_acct_mgmt)
865 if test "$usepam" != "0" && echo "$LIBS" | grep -- "-lpam" > /dev/null ; then
874 if test "$useselinux" = ""; then
877 AC_MSG_CHECKING(if SELinux should be used)
879 [ --with-selinux=[yes|no] Use (or not) SELinux (default: yes).],
886 if test "$selinuxavail" -eq 1; then
890 AC_MSG_RESULT(not available)
892 You requested the use of SELinux, but SELinux is considered
893 as not available by configure script.
898 AC_MSG_ERROR(Must be set to either "yes" or "no".)
901 if test "$useselinux" != "0" && test "$selinuxavail" -eq 1; then
906 AC_MSG_RESULT(not available)
909 if test "$useselinux" -eq 1; then
910 LIBS="$LIBS -lselinux"
911 AC_DEFINE(WITH_SELINUX)
912 CFLAGS="$CFLAGS -I/usr/include/selinux"
916 dnl ---------------------------------------------------------------------
919 AC_PATH_PROG(JADE,openjade)
920 if test -z "$JADE"; then
921 AC_PATH_PROG(JADE,jade)
924 AC_PATH_PROG(DB2MAN,docbook2man)
925 if test -z "$DB2MAN"; then
926 AC_PATH_PROG(DB2MAN,db2man)
928 AC_MSG_CHECKING(Looking for docbook2man converter)
930 [ --with-db2man=PATH(or 'no') set PATH to a docbook2man converter.],
937 AC_MSG_ERROR(Must be set to PATH or "no".)
940 if test ! -x "$withval"; then
941 AC_MSG_ERROR($withval is not an exe file.)
944 AC_MSG_RESULT($withval)
947 AC_MSG_RESULT(default: $DB2MAN)
951 AC_PATH_PROG(NSGMLS, nsgmls)
952 AC_PATH_PROG(SGMLSPL, sgmlspl)
954 DB2MAN_SPEC="/usr/share/sgml/docbook/utils-0.6.9/helpers/docbook2man-spec.pl"
956 AC_MSG_CHECKING(Looking for docbook2man-spec file)
957 AC_ARG_WITH(db2man-spec,
958 [ --with-db2man-spec=PATH set the PATH to docbook2man-spec file
959 (needed if no db2man converter is set).],
966 AC_MSG_ERROR(Must be set to PATH or "no".)
969 if test ! -f "$withval"; then
970 AC_MSG_ERROR($withval is not a file.)
972 DB2MAN_SPEC="$withval"
973 AC_MSG_RESULT($withval)
976 AC_MSG_RESULT(default)
978 AC_SUBST(DB2MAN_SPEC)
980 if test -x "$DB2MAN"; then
981 DB2MAN_BEFORE="$DB2MAN"
984 if test \( \( -f "$DB2MAN_SPEC" \) -a \( -x "$NSGMLS" \) \
985 -a \( -x "$SGMLSPL" \) \); then
986 DB2MAN_BEFORE="$NSGMLS"
987 DB2MAN_AFTER="2> /dev/null | $SGMLSPL $DB2MAN_SPEC"
993 AC_SUBST(DB2MAN_BEFORE)
994 AC_SUBST(DB2MAN_AFTER)
997 DSSSL_DIR="/usr/share/sgml/docbook/stylesheet/dsssl/modular"
999 AC_MSG_CHECKING(Looking for dsssl stylsheets)
1000 AC_ARG_WITH(dsssl-dir,
1001 [ --with-dsssl-dir=DIR change the default location of DSSSL stylesheets.],
1002 [ case "$withval" in
1008 AC_MSG_ERROR(Must be set to DIR or "no".)
1011 if test ! -f "$withval/html/docbook.dsl"; then
1012 AC_MSG_ERROR($withval/html/docbook.dsl does not exist.)
1014 DSSSL_DIR="$withval"
1015 AC_MSG_RESULT($withval)
1018 AC_MSG_RESULT(default)
1019 if test ! -f "$DSSSL_DIR/html/docbook.dsl"; then
1022 $DSSSL_DIR/html/docbook.dsl does not exist. You will probably not be able to generate the documentation from the DocBook source files.])
1023 AC_MSG_WARN([Use --with-dsssl-dir to specify a directory.
1030 dnl ---------------------------------------------------------------------
1032 dnl ---------------------------------------------------------------------
1035 AC_OUTPUT(Makefile doc/Makefile doc/stylesheets/fcron-doc.dsl)
1038 dnl ---------------------------------------------------------------------
1040 dnl ---------------------------------------------------------------------
1046 echo -n "run in debug mode by default : "
1047 if test "$debug" -eq "1"; then
1053 echo -n "Audit trails : "
1054 if test "$useaudit" -eq 1; then
1061 if test "$usepam" -eq 1; then
1067 echo -n "SELinux : "
1068 if test "$useselinux" -eq 1; then
1074 echo -n "Readline : "
1075 if test "$ax_cv_lib_readline" = "no"; then
1082 echo -n "Run without root's rights : "
1083 if test "$run_non_privileged" -eq 1; then
1089 echo -n "Load average support : "
1090 if test "$getloadavg" -eq 1 -o -n "$proc"; then
1096 echo -n "compile fcrondyn : "
1097 if test "$fcrondyn" -eq 1; then
1103 echo "fcron's user (resp. group) name : $username (resp. $groupname)"
1105 echo -n "sysfcrontab : "
1106 if test "$use_sysfcrontab" -eq 1; then
1107 echo "yes ($sysfcrontab)"
1112 echo "prefix: $prefix"
1113 echo "exec_prefix: $exec_prefix"
1114 echo "datarootdir: $datarootdir"
1115 echo "bin dir: $bindir"
1116 echo "sbin dir: $sbindir"
1117 echo "spool dir: $sp"
1118 echo "etc dir: $sysconfdir"
1119 echo "doc dir: $docdir"
1120 echo "man dir: $mandir "
1124 echo "You can now run '$MAKE' to compile"
1125 echo "and then (as root) '$MAKE install' to install fcron."