$NetBSD: patch-ac,v 1.1 2007/06/12 22:20:09 joerg Exp $ --- configure.orig 2007-06-12 22:06:24.000000000 +0000 +++ configure @@ -19510,15 +19510,17 @@ echo "$as_me: error: M4 is required" >&2 { (exit 1); exit 1; }; } else ac_m4_vers=`$M4 --version 2>/dev/null | head -1` ; - ac_is_gnu_m4=`echo $ac_m4_vers | cut -d' ' -f1`; - if test "x$ac_is_gnu_m4" = "xGNU"; then + case ${ac_m4_vers} in + *GNU*) echo "$as_me:$LINENO: result: found $ac_m4_vers at $M4 " >&5 -echo "${ECHO_T} found $ac_m4_vers at $M4 " >&6 - else + echo "${ECHO_T} found $ac_m4_vers at $M4 " >&6 + ;; + *) { { echo "$as_me:$LINENO: error: GNU M4 is needed " >&5 echo "$as_me: error: GNU M4 is needed " >&2;} { (exit 1); exit 1; }; } - fi + ;; + esac fi