summaryrefslogtreecommitdiffstats
path: root/source/configure.in
diff options
context:
space:
mode:
authorJames Peach <jpeach@samba.org>2007-04-20 21:31:04 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:19:34 -0500
commite5dd3bbf29f206090d64134eb808e5f627317804 (patch)
treef9a1facbac06ac8fc03d8f18b174469abe51c5d1 /source/configure.in
parentfc8589a3371d396197fae508e563f814899c2beb (diff)
downloadsamba-e5dd3bbf29f206090d64134eb808e5f627317804.tar.gz
samba-e5dd3bbf29f206090d64134eb808e5f627317804.tar.xz
samba-e5dd3bbf29f206090d64134eb808e5f627317804.zip
r22419: Update configure so that we only need one copy of os2_delete.c
Diffstat (limited to 'source/configure.in')
-rw-r--r--source/configure.in12
1 files changed, 10 insertions, 2 deletions
diff --git a/source/configure.in b/source/configure.in
index b4673889471..bc5d5184a43 100644
--- a/source/configure.in
+++ b/source/configure.in
@@ -2813,7 +2813,12 @@ if test x"$samba_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
fi
AC_CACHE_CHECK([for broken readdir],samba_cv_HAVE_BROKEN_READDIR,[
- AC_TRY_RUN([#include "${srcdir-.}/tests/os2_delete.c"],
+ AC_TRY_RUN([
+#include "${srcdir-.}/lib/replace/test/os2_delete.c"
+int main(void) {
+ return test_readdir_os2_delete();
+}
+],
[samba_cv_HAVE_BROKEN_READDIR=no],
[samba_cv_HAVE_BROKEN_READDIR=yes],
[samba_cv_HAVE_BROKEN_READDIR="assuming not"])])
@@ -2822,7 +2827,10 @@ if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
AC_CACHE_CHECK([for replacing readdir],samba_cv_REPLACE_READDIR,[
AC_TRY_RUN([
#include "${srcdir-.}/lib/repdir.c"
-#include "${srcdir-.}/tests/os2_delete.c"],
+#include "${srcdir-.}/lib/replace/test/os2_delete.c"
+int main(void) {
+ return test_readdir_os2_delete();
+],
samba_cv_REPLACE_READDIR=yes,samba_cv_REPLACE_READDIR=no)])
fi