소스 검색

Support new versions of GNU m4

Richard Laager 15 년 전
부모
커밋
aa3e46c52a
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      configure.in

+ 1 - 2
configure.in

@@ -16,8 +16,7 @@ if test "x$M4" = "xnotfound"; then
   AC_MSG_ERROR([M4 is required])
 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
+  if echo "$ac_m4_vers" | grep -q GNU; then
 	AC_MSG_RESULT([   found $ac_m4_vers at $M4 ])
   else
 	AC_MSG_ERROR([ GNU M4 is needed	])