summaryrefslogtreecommitdiff
path: root/source4/lib/replace/repdir/config.m4
blob: b2a20ccee6e933aa7b516efc1a490ebf50c43a86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
AC_CACHE_CHECK([for broken readdir],samba_cv_HAVE_BROKEN_READDIR,[
	AC_TRY_RUN([#include "$libreplacedir/test/os2_delete.c"],
        	   [samba_cv_HAVE_BROKEN_READDIR=no],
			   [samba_cv_HAVE_BROKEN_READDIR=yes],
			   [samba_cv_HAVE_BROKEN_READDIR="assuming not"])])

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 "$libreplacedir/repdir/repdir.c"
#include "$libreplacedir/test/os2_delete.c"],
       	   samba_cv_REPLACE_READDIR=yes,samba_cv_REPLACE_READDIR=no)])
fi

SMB_ENABLE(REPLACE_READDIR, NO)
if test x"$samba_cv_REPLACE_READDIR" = x"yes"; then
	AC_DEFINE(REPLACE_READDIR,1,[replace readdir])
	SMB_ENABLE(REPLACE_READDIR, YES)
fi