From 8c65c51bf9fd64c19805bbe62fbce97a2878716f Mon Sep 17 00:00:00 2001 From: Ralf Wildenhues Date: Sun, 28 May 2006 12:51:49 +0000 Subject: [PATCH] * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Do not use `grep' on the output file in the `${datarootdir}' test. --- ChangeLog | 5 +++++ lib/autoconf/status.m4 | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 179ba29d..065eaf1c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-05-28 Ralf Wildenhues + + * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Do not use `grep' on + the output file in the `${datarootdir}' test. + 2005-05-28 Stepan Kasal and Ralf Wildenhues diff --git a/lib/autoconf/status.m4 b/lib/autoconf/status.m4 index cfa0090b..76a4fb99 100644 --- a/lib/autoconf/status.m4 +++ b/lib/autoconf/status.m4 @@ -552,7 +552,7 @@ $ac_datarootdir_hack " $ac_file_inputs m4_defn([_AC_SED_CMDS])>$tmp/out test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && - grep '\${datarootdir}' "$tmp/out" && + { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && AC_MSG_WARN([$ac_file contains a reference to the variable `datarootdir' which seems to be undefined. Please make sure it is defined.])