From 813d31183dfba7ac702e93b26640ce4d5d0d9918 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Thu, 5 Apr 2012 08:25:32 +1000 Subject: lib/replace: Add getconf LFS_CFLAGS support to autoconf build --- lib/replace/libreplace_cc.m4 | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib') 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 -- cgit