]> arthur.barton.de Git - netatalk.git/blobdiff - macros/ps-check.m4
Add macros to check for grep and ps.
[netatalk.git] / macros / ps-check.m4
diff --git a/macros/ps-check.m4 b/macros/ps-check.m4
new file mode 100644 (file)
index 0000000..b433079
--- /dev/null
@@ -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)