summaryrefslogtreecommitdiff
path: root/lib/replace
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-04-05 08:25:32 +1000
committerAndrew Bartlett <abartlet@samba.org>2012-04-05 02:39:08 +0200
commit813d31183dfba7ac702e93b26640ce4d5d0d9918 (patch)
tree86123871bdbdb8c64068f6414217393d617f7d53 /lib/replace
parent704ea4729b499ae2716cfe6ad5d952bcb1251a3b (diff)
downloadsamba-813d31183dfba7ac702e93b26640ce4d5d0d9918.tar.gz
samba-813d31183dfba7ac702e93b26640ce4d5d0d9918.tar.bz2
samba-813d31183dfba7ac702e93b26640ce4d5d0d9918.zip
lib/replace: Add getconf LFS_CFLAGS support to autoconf build
Diffstat (limited to 'lib/replace')
-rw-r--r--lib/replace/libreplace_cc.m48
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/replace/libreplace_cc.m4 b/lib/replace/libreplace_cc.m4
index 7ddc19f14b..c7550473dd 100644
--- a/lib/replace/libreplace_cc.m4
+++ b/lib/replace/libreplace_cc.m4
@@ -50,6 +50,14 @@ AC_PROG_INSTALL
AC_ISC_POSIX
AC_N_DEFINE(_XOPEN_SOURCE_EXTENDED)
+AC_MSG_CHECKING(checking getconf LFS_CFLAGS for large file support flags)
+LFS_CFLAGS=`(getconf LFS_CFLAGS) 2>/dev/null` || LFS_CFLAGS=""
+
+AC_MSG_RESULT(${LFS_CFLAGS})
+if test "x$LFS_CFLAGS" != 'x-1' || test "x$LFS_CFLAGS" != "xundefined"; then
+ CFLAGS="$CFLAGS $LFS_CFLAGS"
+fi
+
AC_SYS_LARGEFILE
dnl Add #include for broken IRIX header files