(gl_FUNC_MMAP_ANON): Check for message, not for MAP_ANON.
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 2 May 2005 05:04:12 +0000 (05:04 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 2 May 2005 05:04:12 +0000 (05:04 +0000)
m4/mmap-anon.m4

index d0fefeb68e38026712b38ffa5a4d8c3d3197fd99..fd8a5370b37ab9e71867d34148d8c505298c1358 100644 (file)
@@ -1,4 +1,4 @@
-# mmap-anon.m4 serial 2
+# mmap-anon.m4 serial 3
 dnl Copyright (C) 2005 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -27,8 +27,8 @@ AC_DEFUN([gl_FUNC_MMAP_ANON],
 #endif
 ],
       [gl_have_mmap_anonymous=yes])
-    if test $gl_have_mmap_anonymous = no; then
-      AC_EGREP_HEADER([MAP_ANON], [
+    if test $gl_have_mmap_anonymous != yes; then
+      AC_EGREP_CPP([I cant identify this map.], [
 #include <sys/mman.h>
 #ifdef MAP_ANON
     I cant identify this map.