stdlib: favor compiler check of random.h
authorEric Blake <ebb9@byu.net>
Thu, 26 Feb 2009 17:00:28 +0000 (10:00 -0700)
committerEric Blake <ebb9@byu.net>
Thu, 26 Feb 2009 17:05:39 +0000 (10:05 -0700)
* m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
to avoid an ObjC random.h installed by Swarm.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
m4/stdlib_h.m4

index 3aa297e..a34e3f8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-02-26  Eric Blake  <ebb9@byu.net>
+
+       stdlib: favor compiler check of random.h
+       * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
+       to avoid an ObjC random.h installed by Swarm.
+
 2009-02-26  Bruno Haible  <bruno@clisp.org>
 
        Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
index 515befe..b295f16 100644 (file)
@@ -1,4 +1,4 @@
-# stdlib_h.m4 serial 14
+# stdlib_h.m4 serial 15
 dnl Copyright (C) 2007-2009 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -8,7 +8,7 @@ AC_DEFUN([gl_STDLIB_H],
 [
   AC_REQUIRE([gl_STDLIB_H_DEFAULTS])
   gl_CHECK_NEXT_HEADERS([stdlib.h])
-  AC_CHECK_HEADERS([random.h])
+  AC_CHECK_HEADERS([random.h], [], [], [AC_INCLUDES_DEFAULT])
   if test $ac_cv_header_random_h = yes; then
     HAVE_RANDOM_H=1
   else