summaryrefslogtreecommitdiff
path: root/source4/lib/replace/libreplace.m4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2006-09-09 02:12:09 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:18:00 -0500
commitc2387587cb9c43c5f642554be9f08cc4ab0badc9 (patch)
treee7474bfd920f8f8bde04dc1507288d3255151cea /source4/lib/replace/libreplace.m4
parentd09ef0e8467c154844407a8e115c8ab070ed8a5f (diff)
downloadsamba-c2387587cb9c43c5f642554be9f08cc4ab0badc9.tar.gz
samba-c2387587cb9c43c5f642554be9f08cc4ab0badc9.tar.bz2
samba-c2387587cb9c43c5f642554be9f08cc4ab0badc9.zip
r18280: more portability tidyups, ensuring we use libreplace everywhere
(This used to be commit 4860d0256547b33709cdc109bdf7bb0310c2a5b6)
Diffstat (limited to 'source4/lib/replace/libreplace.m4')
-rw-r--r--source4/lib/replace/libreplace.m420
1 files changed, 12 insertions, 8 deletions
diff --git a/source4/lib/replace/libreplace.m4 b/source4/lib/replace/libreplace.m4
index 2fe58bf1e8..6a24c053e3 100644
--- a/source4/lib/replace/libreplace.m4
+++ b/source4/lib/replace/libreplace.m4
@@ -1,11 +1,3 @@
-dnl needed before AC_TRY_COMPILE
-AC_ISC_POSIX
-AC_USE_SYSTEM_EXTENSIONS
-
-AC_C_INLINE
-
-LIBREPLACE_C99_STRUCT_INIT([],[])
-
dnl find the libreplace sources. This is meant to work both for
dnl libreplace standalone builds, and builds of packages using libreplace
libreplacedir=""
@@ -19,6 +11,14 @@ done
LIBREPLACEOBJ="dlfcn.o getpass.o replace.o snprintf.o timegm.o"
AC_SUBST(LIBREPLACEOBJ)
+dnl needed before AC_TRY_COMPILE
+AC_ISC_POSIX
+AC_USE_SYSTEM_EXTENSIONS
+AC_C_INLINE
+AC_PROG_CC
+
+LIBREPLACE_C99_STRUCT_INIT([],[])
+
AC_SYS_LARGEFILE
dnl Add #include for broken IRIX header files
@@ -30,6 +30,10 @@ esac
AC_C_BIGENDIAN
AC_HEADER_STDC
+AC_CHECK_SIZEOF(off_t,cross)
+AC_CHECK_SIZEOF(size_t,cross)
+AC_CHECK_SIZEOF(ssize_t,cross)
+AC_FUNC_MMAP
AC_CHECK_HEADERS([stdint.h inttypes.h])
AC_CHECK_TYPE(uint_t, unsigned int)