aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2010-01-13 20:56:21 +0000
committerEugene Sandulenko2010-01-13 20:56:21 +0000
commit286d18b423509dbc57982975afa21b1056f4566c (patch)
tree4cb8be8037dbd011d623d659ccbc6d87c8af5731
parentb59eebfea80e6c218bf04e64c74a07f41d85ba7d (diff)
downloadscummvm-rg350-286d18b423509dbc57982975afa21b1056f4566c.tar.gz
scummvm-rg350-286d18b423509dbc57982975afa21b1056f4566c.tar.bz2
scummvm-rg350-286d18b423509dbc57982975afa21b1056f4566c.zip
Fix bug #2924680: "Large file support" with patch from same bugreport. Thanks to wjp.
svn-id: r47293
-rwxr-xr-xconfigure10
1 files changed, 9 insertions, 1 deletions
diff --git a/configure b/configure
index 146a120ade..7e36d62994 100755
--- a/configure
+++ b/configure
@@ -1236,7 +1236,15 @@ echo "$_have_x86"
echo_n "Checking hosttype... "
echo $_host_os
case $_host_os in
- linux* | uclinux* | openbsd* | netbsd* | bsd* | sunos* | hpux*)
+ linux* | uclinux*)
+ # When not cross-compiling, enable large file support, but don't
+ # care if getconf doesn't exist or doesn't recognize LFS_CFLAGS.
+ if test -z "$_host"; then
+ CXXFLAGS="$CXXFLAGS $(getconf LFS_CFLAGS 2>/dev/null)"
+ fi
+ DEFINES="$DEFINES -DUNIX"
+ ;;
+ openbsd* | netbsd* | bsd* | sunos* | hpux*)
DEFINES="$DEFINES -DUNIX"
;;
freebsd*)