From 5c94457a645dde4a4726115882d37e223e661463 Mon Sep 17 00:00:00 2001 From: jmarcus Date: Thu, 7 Feb 2002 05:09:01 +0000 Subject: [PATCH 1/1] Add macros to check for grep and ps. --- macros/grep-check.m4 | 10 ++++++++++ macros/ps-check.m4 | 10 ++++++++++ 2 files changed, 20 insertions(+) create mode 100644 macros/grep-check.m4 create mode 100644 macros/ps-check.m4 diff --git a/macros/grep-check.m4 b/macros/grep-check.m4 new file mode 100644 index 00000000..35b33759 --- /dev/null +++ b/macros/grep-check.m4 @@ -0,0 +1,10 @@ +dnl Autoconf macro to check for the existence of Perl +dnl $Id: grep-check.m4,v 1.1 2002-02-07 05:09:01 jmarcus Exp $ + +AC_DEFUN([AC_PROG_GREP], [ +AC_REQUIRE([AC_EXEEXT])dnl +test x$GREP = x && AC_PATH_PROG(GREP, grep$EXEEXT, grep$EXEEXT) +test x$GREP = x && AC_MSG_ERROR([no acceptable grep found in \$PATH]) +]) + +AC_SUBST(GREP) diff --git a/macros/ps-check.m4 b/macros/ps-check.m4 new file mode 100644 index 00000000..b433079f --- /dev/null +++ b/macros/ps-check.m4 @@ -0,0 +1,10 @@ +dnl Autoconf macro to check for the existence of Perl +dnl $Id: ps-check.m4,v 1.1 2002-02-07 05:09:01 jmarcus Exp $ + +AC_DEFUN([AC_PROG_PS], [ +AC_REQUIRE([AC_EXEEXT])dnl +test x$PS = x && AC_PATH_PROG(PS, ps$EXEEXT, ps$EXEEXT) +test x$PS = x && AC_MSG_ERROR([no acceptable ps found in \$PATH]) +]) + +AC_SUBST(PS) -- 2.39.2