diff options
-rw-r--r-- | aclocal.m4 | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/aclocal.m4 b/aclocal.m4 index ac6b6684a..25ecc49a2 100644 --- a/aclocal.m4 +++ b/aclocal.m4 | |||
@@ -25,7 +25,7 @@ int main(int argc, char **argv) { | |||
25 | } | 25 | } |
26 | ]])], | 26 | ]])], |
27 | [ | 27 | [ |
28 | if `grep -i "unrecognized option" conftest.err >/dev/null` | 28 | if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null |
29 | then | 29 | then |
30 | AC_MSG_RESULT([no]) | 30 | AC_MSG_RESULT([no]) |
31 | CFLAGS="$saved_CFLAGS" | 31 | CFLAGS="$saved_CFLAGS" |
@@ -63,7 +63,7 @@ int main(int argc, char **argv) { | |||
63 | } | 63 | } |
64 | ]])], | 64 | ]])], |
65 | [ | 65 | [ |
66 | if `grep -i "unrecognized option" conftest.err >/dev/null` | 66 | if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null |
67 | then | 67 | then |
68 | AC_MSG_RESULT([no]) | 68 | AC_MSG_RESULT([no]) |
69 | CFLAGS="$saved_CFLAGS" | 69 | CFLAGS="$saved_CFLAGS" |
@@ -100,8 +100,15 @@ int main(int argc, char **argv) { | |||
100 | exit(0); | 100 | exit(0); |
101 | } | 101 | } |
102 | ]])], | 102 | ]])], |
103 | [ AC_MSG_RESULT([yes]) | 103 | [ |
104 | LDFLAGS="$saved_LDFLAGS $_define_flag"], | 104 | if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null |
105 | then | ||
106 | AC_MSG_RESULT([no]) | ||
107 | LDFLAGS="$saved_LDFLAGS" | ||
108 | else | ||
109 | AC_MSG_RESULT([yes]) | ||
110 | LDFLAGS="$saved_LDFLAGS $_define_flag" | ||
111 | fi ], | ||
105 | [ AC_MSG_RESULT([no]) | 112 | [ AC_MSG_RESULT([no]) |
106 | LDFLAGS="$saved_LDFLAGS" ] | 113 | LDFLAGS="$saved_LDFLAGS" ] |
107 | ) | 114 | ) |