summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArturo Espinosa <unammx@src.gnome.org>1999-01-06 01:10:15 +0000
committerArturo Espinosa <unammx@src.gnome.org>1999-01-06 01:10:15 +0000
commitdab27d3876045f818ad3840a6bdc58f0a15294d8 (patch)
tree51adbb4dd7f88d46746a329c48a10e983b91105c
parent614c9bede8a5ec1017c5695bfee70a08458d38aa (diff)
downloadgnome-common-dab27d3876045f818ad3840a6bdc58f0a15294d8.tar.gz
Fix the scandir detection
svn path=/trunk/; revision=561
-rw-r--r--macros/gnome-support.m42
-rw-r--r--macros/need-declaration.m43
2 files changed, 4 insertions, 1 deletions
diff --git a/macros/gnome-support.m4 b/macros/gnome-support.m4
index df25cb9..4123449 100644
--- a/macros/gnome-support.m4
+++ b/macros/gnome-support.m4
@@ -49,7 +49,7 @@ AC_DEFUN([GNOME_SUPPORT_CHECKS],[
# see if we need to declare some functions. Solaris is notorious for
# putting functions into the `libc' but not listing them in the headers
- AC_CHECK_HEADERS(string.h strings.h stdlib.h unistd.h)
+ AC_CHECK_HEADERS(string.h strings.h stdlib.h unistd.h dirent.h)
GCC_NEED_DECLARATIONS(gethostname setreuid setregid getpagesize scandir)
# Turn our LIBOBJS into libtool objects. This is gross, but it
diff --git a/macros/need-declaration.m4 b/macros/need-declaration.m4
index d5b7bc6..eea5bcd 100644
--- a/macros/need-declaration.m4
+++ b/macros/need-declaration.m4
@@ -18,6 +18,9 @@ AC_CACHE_VAL(gcc_cv_decl_needed_$1,
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
+#ifdef HAVE_DIRENT_H
+#include <dirent.h>
+#endif
$2],
[char *(*pfn) = (char *(*)) $1],
eval "gcc_cv_decl_needed_$1=no", eval "gcc_cv_decl_needed_$1=yes")])