diff aclocal.m4 @ 7244:5a9561046b89

[project @ 2007-12-04 02:27:27 by jwe]
author jwe
date Tue, 04 Dec 2007 02:27:27 +0000
parents 58102cc15ddf
children a2870fd8ac58 bc2ead6b4d6c
line wrap: on
line diff
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -817,8 +817,18 @@
   AC_DEFINE(MKDIR_TAKES_ONE_ARG, 1, [Define if host mkdir takes a single argument.])
 fi
 ])
-# OCTAVE_PROG_SED
-# --------------
+dnl
+dnl Find find.
+dnl
+# Prefer GNU find if found.
+AN_MAKEVAR([FIND],  [OCTAVE_PROG_FIND])
+AN_PROGRAM([gfind], [OCTAVE_PROG_FIND])
+AN_PROGRAM([find],  [OCTAVE_PROG_FIND])
+AC_DEFUN([OCTAVE_PROG_FIND],
+[AC_CHECK_PROGS(FIND, gfind find, )])
+dnl
+dnl Find sed.
+dnl
 # Check for a fully-functional sed program, that truncates
 # as few characters as possible and that supports "\(X\|Y\)"
 # style regular expression alternation.  Prefer GNU sed if found.