| 
									
										
										
										
											2016-07-18 17:25:27 +02:00
										 |  |  | ## Process this file with autoconf to produce a configure script. | 
					
						
							| 
									
										
										
										
											2020-04-13 11:42:39 +01:00
										 |  |  | # | 
					
						
							|  |  |  | # Copyright © 2003, 2005, 2012, 2014 Dale Mellor <mcron-lsfnyl@rdmp.org> | 
					
						
							| 
									
										
										
										
											2020-05-08 19:24:00 +02:00
										 |  |  | # Copyright © 2015, 2016, 2017, 2018, 2020 Mathieu Lirzin <mthl@gnu.org> | 
					
						
							| 
									
										
										
										
											2018-10-01 14:07:48 +08:00
										 |  |  | # Copyright © 2018 宋文武 <iyzsong@member.fsf.org> | 
					
						
							| 
									
										
										
										
											2016-07-18 17:25:27 +02:00
										 |  |  | # | 
					
						
							|  |  |  | # This file is part of GNU Mcron. | 
					
						
							|  |  |  | # | 
					
						
							|  |  |  | # GNU Mcron is free software: you can redistribute it and/or modify | 
					
						
							|  |  |  | # it under the terms of the GNU General Public License as published by | 
					
						
							|  |  |  | # the Free Software Foundation, either version 3 of the License, or | 
					
						
							|  |  |  | # (at your option) any later version. | 
					
						
							|  |  |  | # | 
					
						
							|  |  |  | # GNU Mcron is distributed in the hope that it will be useful, | 
					
						
							|  |  |  | # but WITHOUT ANY WARRANTY; without even the implied warranty of | 
					
						
							|  |  |  | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | 
					
						
							|  |  |  | # GNU General Public License for more details. | 
					
						
							|  |  |  | # | 
					
						
							|  |  |  | # You should have received a copy of the GNU General Public License | 
					
						
							|  |  |  | # along with GNU Mcron.  If not, see <http://www.gnu.org/licenses/>. | 
					
						
							| 
									
										
										
										
											2005-10-23 12:29:19 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-02-21 19:11:23 +00:00
										 |  |  | AC_PREREQ(2.61) | 
					
						
							| 
									
										
										
										
											2020-04-22 20:45:35 +02:00
										 |  |  | AC_INIT([GNU Mcron], [1.2.0], [bug-mcron@gnu.org]) | 
					
						
							| 
									
										
										
										
											2020-04-13 11:42:39 +01:00
										 |  |  | AC_CONFIG_SRCDIR([src/mcron/scripts/mcron.scm]) | 
					
						
							| 
									
										
										
										
											2016-04-20 01:21:43 +02:00
										 |  |  | AC_CONFIG_AUX_DIR([build-aux]) | 
					
						
							| 
									
										
										
										
											2016-05-10 01:06:10 +02:00
										 |  |  | AC_REQUIRE_AUX_FILE([test-driver.scm]) | 
					
						
							| 
									
										
										
										
											2020-04-13 11:42:39 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | dnl We're fine with GNU make constructs, hence '-Wno-portability'. | 
					
						
							|  |  |  | AM_INIT_AUTOMAKE([1.11 gnu silent-rules subdir-objects color-tests | 
					
						
							|  |  |  |                   -Wall -Wno-override -Wno-portability std-options]) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | AM_SILENT_RULES([yes])		# Enables silent rules by default. | 
					
						
							| 
									
										
										
										
											2003-07-04 08:09:04 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-08-16 15:55:35 +02:00
										 |  |  | AC_CANONICAL_HOST | 
					
						
							| 
									
										
										
										
											2004-01-22 13:54:21 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-05-08 19:24:00 +02:00
										 |  |  | dnl We require pkg.m4 (from pkg-config) and guile.m4 (from Guile.) | 
					
						
							|  |  |  | dnl Make sure they are available when generating the configure script. | 
					
						
							|  |  |  | m4_pattern_forbid([^PKG_PROG]) | 
					
						
							|  |  |  | m4_pattern_forbid([^PKG_CHECK]) | 
					
						
							|  |  |  | m4_pattern_forbid([^GUILE_P]) | 
					
						
							|  |  |  | m4_pattern_allow([^GUILE_PKG_ERRORS]) | 
					
						
							| 
									
										
										
										
											2020-08-13 16:25:05 +02:00
										 |  |  | m4_pattern_allow([^GUILE_PKG]) | 
					
						
							|  |  |  | m4_pattern_allow([^GUILE_PROGS]) | 
					
						
							| 
									
										
										
										
											2020-05-08 19:24:00 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-02-23 18:49:51 +01:00
										 |  |  | # Check for Guile development files. | 
					
						
							|  |  |  | GUILE_PKG([3.0 2.2 2.0]) | 
					
						
							| 
									
										
										
										
											2015-08-16 15:55:35 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2003-07-04 08:09:04 +00:00
										 |  |  | # Checks for programs. | 
					
						
							| 
									
										
										
										
											2017-01-14 17:24:25 +01:00
										 |  |  | GUILE_PROGS | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-05-25 14:57:37 +01:00
										 |  |  | AM_MISSING_PROG(HELP2MAN, help2man, $missing_dir) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-10-01 14:07:48 +08:00
										 |  |  | # Let users choose the Mail Transfert Agent (MTA) of their choice.  Default to | 
					
						
							|  |  |  | # a non-absolute program name to make it a loose dependency resolved at | 
					
						
							|  |  |  | # runtime. | 
					
						
							|  |  |  | AC_ARG_WITH([sendmail], | 
					
						
							|  |  |  |   [AS_HELP_STRING([--with-sendmail=COMMAND], | 
					
						
							|  |  |  |     [command to read an email message from standard input, and send it])], | 
					
						
							|  |  |  |   [SENDMAIL="$withval"], | 
					
						
							|  |  |  |   [SENDMAIL="sendmail -t"]) | 
					
						
							|  |  |  | AC_SUBST([SENDMAIL]) | 
					
						
							| 
									
										
										
										
											2003-07-04 08:09:04 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-02-22 15:49:18 +01:00
										 |  |  | AC_ARG_ENABLE([multi-user], | 
					
						
							|  |  |  |   [AS_HELP_STRING([--disable-multi-user], | 
					
						
							|  |  |  |     [Don't Install legacy cron and crontab programs])], | 
					
						
							|  |  |  |   [enable_multi_user="$enableval"], | 
					
						
							|  |  |  |   [enable_multi_user="yes"]) | 
					
						
							| 
									
										
										
										
											2018-03-19 23:01:09 +01:00
										 |  |  | AM_CONDITIONAL([MULTI_USER], [test "x$enable_multi_user" = xyes]) | 
					
						
							| 
									
										
										
										
											2010-06-13 03:49:39 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2004-01-22 13:54:21 +00:00
										 |  |  | # Configure the various files that mcron uses at runtime. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | AC_MSG_CHECKING([which spool directory to use]) | 
					
						
							|  |  |  | AC_ARG_WITH(spool-dir, | 
					
						
							| 
									
										
										
										
											2005-10-23 12:29:19 +00:00
										 |  |  |             AC_HELP_STRING([--with-spool-dir], | 
					
						
							|  |  |  |                            [the crontab spool directory (/var/cron/tabs)]), | 
					
						
							| 
									
										
										
										
											2020-04-13 11:42:39 +01:00
										 |  |  |             CONFIG_SPOOL_DIR=$withval, | 
					
						
							|  |  |  |             CONFIG_SPOOL_DIR=[/var/cron/tabs]) | 
					
						
							| 
									
										
										
										
											2004-01-22 13:54:21 +00:00
										 |  |  | AC_MSG_RESULT($CONFIG_SPOOL_DIR) | 
					
						
							|  |  |  | AC_SUBST(CONFIG_SPOOL_DIR) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | AC_MSG_CHECKING([name of socket]) | 
					
						
							|  |  |  | AC_ARG_WITH(socket-file, | 
					
						
							| 
									
										
										
										
											2005-10-23 12:29:19 +00:00
										 |  |  |             AC_HELP_STRING([--with-socket-file], | 
					
						
							|  |  |  |                            [unix pathname for cron socket (/var/cron/socket)]), | 
					
						
							| 
									
										
										
										
											2020-04-13 11:42:39 +01:00
										 |  |  |             CONFIG_SOCKET_FILE=$withval, | 
					
						
							|  |  |  |             CONFIG_SOCKET_FILE=[/var/cron/socket]) | 
					
						
							| 
									
										
										
										
											2004-01-22 13:54:21 +00:00
										 |  |  | AC_MSG_RESULT($CONFIG_SOCKET_FILE) | 
					
						
							|  |  |  | AC_SUBST(CONFIG_SOCKET_FILE) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | AC_MSG_CHECKING([name of allow file]) | 
					
						
							|  |  |  | AC_ARG_WITH(allow-file, | 
					
						
							| 
									
										
										
										
											2005-10-23 12:29:19 +00:00
										 |  |  |             AC_HELP_STRING([--with-allow-file], | 
					
						
							|  |  |  |                            [the file of allowed users (/var/cron/allow)]), | 
					
						
							| 
									
										
										
										
											2020-04-13 11:42:39 +01:00
										 |  |  |             CONFIG_ALLOW_FILE=$withval, | 
					
						
							|  |  |  |             CONFIG_ALLOW_FILE=[/var/cron/allow]) | 
					
						
							| 
									
										
										
										
											2004-01-22 13:54:21 +00:00
										 |  |  | AC_MSG_RESULT($CONFIG_ALLOW_FILE) | 
					
						
							|  |  |  | AC_SUBST(CONFIG_ALLOW_FILE) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | AC_MSG_CHECKING([name of deny file]) | 
					
						
							|  |  |  | AC_ARG_WITH(deny-file, | 
					
						
							| 
									
										
										
										
											2005-10-23 12:29:19 +00:00
										 |  |  |             AC_HELP_STRING([--with-deny-file], | 
					
						
							|  |  |  |                            [the file of barred users (/var/cron/deny)]), | 
					
						
							| 
									
										
										
										
											2020-04-13 11:42:39 +01:00
										 |  |  |             CONFIG_DENY_FILE=$withval, | 
					
						
							|  |  |  |             CONFIG_DENY_FILE=[/var/cron/deny]) | 
					
						
							| 
									
										
										
										
											2004-01-22 13:54:21 +00:00
										 |  |  | AC_MSG_RESULT($CONFIG_DENY_FILE) | 
					
						
							|  |  |  | AC_SUBST(CONFIG_DENY_FILE) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | AC_MSG_CHECKING([name of PID file]) | 
					
						
							|  |  |  | AC_ARG_WITH(pid-file, | 
					
						
							| 
									
										
										
										
											2005-10-23 12:29:19 +00:00
										 |  |  |             AC_HELP_STRING([--with-pid-file], | 
					
						
							|  |  |  |                            [the file to record cron's PID (/var/run/cron.pid)]), | 
					
						
							| 
									
										
										
										
											2020-04-13 11:42:39 +01:00
										 |  |  |             CONFIG_PID_FILE=$withval, | 
					
						
							|  |  |  |             CONFIG_PID_FILE=[/var/run/cron.pid]) | 
					
						
							| 
									
										
										
										
											2004-01-22 13:54:21 +00:00
										 |  |  | AC_MSG_RESULT($CONFIG_PID_FILE) | 
					
						
							|  |  |  | AC_SUBST(CONFIG_PID_FILE) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | AC_MSG_CHECKING([directory to hold temporary files]) | 
					
						
							|  |  |  | AC_ARG_WITH(tmp-dir, | 
					
						
							| 
									
										
										
										
											2005-10-23 12:29:19 +00:00
										 |  |  |             AC_HELP_STRING([--with-tmp-dir], | 
					
						
							|  |  |  |                            [directory to hold temporary files (/tmp)]), | 
					
						
							| 
									
										
										
										
											2020-04-13 11:42:39 +01:00
										 |  |  |             CONFIG_TMP_DIR=$withval, | 
					
						
							|  |  |  |             CONFIG_TMP_DIR=[/tmp]) | 
					
						
							| 
									
										
										
										
											2004-01-22 13:54:21 +00:00
										 |  |  | AC_MSG_RESULT($CONFIG_TMP_DIR) | 
					
						
							|  |  |  | AC_SUBST(CONFIG_TMP_DIR) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-03-25 22:36:18 +02:00
										 |  |  | # Include the Maintainer's Makefile fragment, if it's here. | 
					
						
							|  |  |  | MAINT_MAKEFILE=/dev/null | 
					
						
							|  |  |  | AS_IF([test -r "$srcdir/maint.mk"], | 
					
						
							| 
									
										
										
										
											2020-04-13 11:42:39 +01:00
										 |  |  |       [MAINT_MAKEFILE="$srcdir/maint.mk"]) | 
					
						
							| 
									
										
										
										
											2018-03-25 22:36:18 +02:00
										 |  |  | AC_SUBST_FILE([MAINT_MAKEFILE]) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-10-17 20:05:08 +02:00
										 |  |  | AC_CONFIG_FILES([pre-inst-env:build-aux/pre-inst-env.in], | 
					
						
							| 
									
										
										
										
											2020-04-13 11:42:39 +01:00
										 |  |  |                 [chmod +x pre-inst-env]) | 
					
						
							| 
									
										
										
										
											2015-06-26 23:17:01 +02:00
										 |  |  | AC_CONFIG_FILES([doc/config.texi | 
					
						
							| 
									
										
										
										
											2015-10-17 19:56:03 +02:00
										 |  |  |                  Makefile | 
					
						
							| 
									
										
										
										
											2016-05-07 11:09:44 +02:00
										 |  |  |                  src/mcron/config.scm]) | 
					
						
							| 
									
										
										
										
											2003-07-04 08:09:04 +00:00
										 |  |  | AC_OUTPUT |