git.samba.org
/
amitay
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
704ea47
)
lib/replace: Add getconf LFS_CFLAGS support to autoconf build
author
Andrew Bartlett
<abartlet@samba.org>
Wed, 4 Apr 2012 22:25:32 +0000
(08:25 +1000)
committer
Andrew Bartlett
<abartlet@samba.org>
Thu, 5 Apr 2012 00:39:08 +0000
(
02:39
+0200)
lib/replace/libreplace_cc.m4
patch
|
blob
|
history
diff --git
a/lib/replace/libreplace_cc.m4
b/lib/replace/libreplace_cc.m4
index 7ddc19f14bb47d4c9690e73a48f1923c42f52600..c7550473ddad7c6573128ed2878138eeafef814f 100644
(file)
--- 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