]> granicus.if.org Git - php/commitdiff
Enable LFS (large file support) for Linux. Support for other operating
authorEdin Kadribasic <edink@php.net>
Thu, 21 Oct 2004 23:47:59 +0000 (23:47 +0000)
committerEdin Kadribasic <edink@php.net>
Thu, 21 Oct 2004 23:47:59 +0000 (23:47 +0000)
systems can be added later. FreeBSD does not seem to require any
special compile flags to enable LFS.
Fixes #27792.

configure.in

index b282d7e6e053df699735342280f74d304aafa3cb..f60068ba64702ad592fa0e45b770fa3e4eb7eec2 100644 (file)
@@ -196,6 +196,13 @@ case $host_alias in
     LIBS="$LIBS -lbe -lroot";;
 *mips*)
     CPPFLAGS="$CPPFLAGS -D_XPG_IV";;
+*linux*)
+    AC_MSG_CHECKING([for Linux LFS_CFLAGS])
+    LFS_LINUX_CFLAGS=`getconf LFS_CFLAGS`
+    if test "x$LFS_LINUX_CFLAGS" != "x"; then
+        CFLAGS="$CFLAGS $LFS_LINUX_CFLAGS"
+    fi
+    AC_MSG_RESULT([$LFS_LINUX_CFLAGS])
 esac