summaryrefslogtreecommitdiff
path: root/source4/lib/replace/repdir.m4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-09-27 14:47:00 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:20:24 -0500
commit3f96df61dadb107867c174880029838c5c850cd3 (patch)
tree6500e8a5cf208423a5242ef595f123b28d8bb2b2 /source4/lib/replace/repdir.m4
parentc0c135c774fccc9a1ac6b6a40817ff4207df9478 (diff)
downloadsamba-3f96df61dadb107867c174880029838c5c850cd3.tar.gz
samba-3f96df61dadb107867c174880029838c5c850cd3.tar.bz2
samba-3f96df61dadb107867c174880029838c5c850cd3.zip
r18960: fix caching of some configure tests AC_CACHE_CHECK()
*needs* '_cv_' in the shell var to do caching... metze (This used to be commit cb334632fae28bff107200a7b5643289f383eaad)
Diffstat (limited to 'source4/lib/replace/repdir.m4')
-rw-r--r--source4/lib/replace/repdir.m434
1 files changed, 17 insertions, 17 deletions
diff --git a/source4/lib/replace/repdir.m4 b/source4/lib/replace/repdir.m4
index 93bf4ec911..81025d618a 100644
--- a/source4/lib/replace/repdir.m4
+++ b/source4/lib/replace/repdir.m4
@@ -1,38 +1,38 @@
-AC_CACHE_CHECK([for broken readdir],libreplace_READDIR_NEEDED,[
+AC_CACHE_CHECK([for broken readdir],libreplace_cv_READDIR_NEEDED,[
AC_TRY_RUN([
#define test_readdir_os2_delete main
#include "$libreplacedir/test/os2_delete.c"],
- [libreplace_READDIR_NEEDED=no],
- [libreplace_READDIR_NEEDED=yes],
- [libreplace_READDIR_NEEDED="assuming not"])
+ [libreplace_cv_READDIR_NEEDED=no],
+ [libreplace_cv_READDIR_NEEDED=yes],
+ [libreplace_cv_READDIR_NEEDED="assuming not"])
])
#
# try to replace with getdents() if needed
#
-if test x"$libreplace_READDIR_NEEDED" = x"yes"; then
+if test x"$libreplace_cv_READDIR_NEEDED" = x"yes"; then
AC_CHECK_FUNCS(getdents)
-AC_CACHE_CHECK([for replacing readdir using getdents()],libreplace_READDIR_GETDENTS,[
+AC_CACHE_CHECK([for replacing readdir using getdents()],libreplace_cv_READDIR_GETDENTS,[
AC_TRY_RUN([
#define _LIBREPLACE_REPLACE_H
#include "$libreplacedir/repdir_getdents.c"
#define test_readdir_os2_delete main
#include "$libreplacedir/test/os2_delete.c"],
- [libreplace_READDIR_GETDENTS=yes],
- [libreplace_READDIR_GETDENTS=no])
+ [libreplace_cv_READDIR_GETDENTS=yes],
+ [libreplace_cv_READDIR_GETDENTS=no])
])
fi
-if test x"$libreplace_READDIR_GETDENTS" = x"yes"; then
+if test x"$libreplace_cv_READDIR_GETDENTS" = x"yes"; then
AC_DEFINE(REPLACE_READDIR,1,[replace readdir])
AC_DEFINE(REPLACE_READDIR_GETDENTS,1,[replace readdir using getdents()])
LIBREPLACEOBJ="${LIBREPLACEOBJ} repdir_getdents.o"
- libreplace_READDIR_NEEDED=no
+ libreplace_cv_READDIR_NEEDED=no
fi
#
# try to replace with getdirentries() if needed
#
-if test x"$libreplace_READDIR_NEEDED" = x"yes"; then
+if test x"$libreplace_cv_READDIR_NEEDED" = x"yes"; then
AC_CHECK_FUNCS(getdirentries)
AC_VERIFY_C_PROTOTYPE([long telldir(const DIR *dir)],
[
@@ -51,25 +51,25 @@ AC_VERIFY_C_PROTOTYPE([int seekdir(DIR *dir, long ofs)],
],[],[
#include <dirent.h>
])
-AC_CACHE_CHECK([for replacing readdir using getdirentries()],libreplace_READDIR_GETDIRENTRIES,[
+AC_CACHE_CHECK([for replacing readdir using getdirentries()],libreplace_cv_READDIR_GETDIRENTRIES,[
AC_TRY_RUN([
#define _LIBREPLACE_REPLACE_H
#include "$libreplacedir/repdir_getdirentries.c"
#define test_readdir_os2_delete main
#include "$libreplacedir/test/os2_delete.c"],
- [libreplace_READDIR_GETDIRENTRIES=yes],
- [libreplace_READDIR_GETDIRENTRIES=no])
+ [libreplace_cv_READDIR_GETDIRENTRIES=yes],
+ [libreplace_cv_READDIR_GETDIRENTRIES=no])
])
fi
-if test x"$libreplace_READDIR_GETDIRENTRIES" = x"yes"; then
+if test x"$libreplace_cv_READDIR_GETDIRENTRIES" = x"yes"; then
AC_DEFINE(REPLACE_READDIR,1,[replace readdir])
AC_DEFINE(REPLACE_READDIR_GETDIRENTRIES,1,[replace readdir using getdirentries()])
LIBREPLACEOBJ="${LIBREPLACEOBJ} repdir_getdirentries.o"
- libreplace_READDIR_NEEDED=no
+ libreplace_cv_READDIR_NEEDED=no
fi
AC_MSG_CHECKING([a usable readdir()])
-if test x"$libreplace_READDIR_NEEDED" = x"yes"; then
+if test x"$libreplace_cv_READDIR_NEEDED" = x"yes"; then
AC_MSG_RESULT(no)
AC_MSG_WARN([the provided readdir() is broken])
else