Macro: ac_prog_crontab

Back to the Main Page. | # ac_prog_crontab | Download the M4 Source.

Synopsis

  `AC_PROG_CRONTAB`

Version

  1.1 (2002/09/12) Installed_Packages @ ac-archive-0.5.39

Author

  Gleen Salmon <gleensalmon@yahoo.com>

Description

  Check for the program crontab, if exists let script continue, else pops an error message

  Besides checking existence, this macro also set these environment variables upon completion:

  `CRONTAB = which crontab`

M4 Source Code

      AC_DEFUN([AC_PROG_CRONTAB],[
      AC_REQUIRE([AC_EXEEXT])dnl
      AC_PATH_PROG(CRONTAB, crontab$EXEEXT, nocommand)
      if test "$CRONTAB" = nocommand; then
              AC_MSG_ERROR([crontab (needed for scheduled job) not found in $PATH])
      fi;dnl
      ])