[Box Backup-commit] COMMIT r2495 - box/trunk

boxbackup-dev@boxbackup.org boxbackup-dev@boxbackup.org
Sat, 4 Apr 2009 15:05:17 +0100 (BST)


Author: chris
Date: 2009-04-04 15:05:14 +0100 (Sat, 04 Apr 2009)
New Revision: 2495

Modified:
   box/trunk/configure.ac
Log:
Hopefully fix another autoconf problem caused by attempt to support
cross-compiling.


Modified: box/trunk/configure.ac
===================================================================
--- box/trunk/configure.ac	2009-04-04 14:02:57 UTC (rev 2494)
+++ box/trunk/configure.ac	2009-04-04 14:05:14 UTC (rev 2495)
@@ -241,14 +241,20 @@
 
 ## Check for large file support active. AC_SYS_LARGEFILE has already worked
 ## out how to enable it if necessary, we just use this to report to the user
-AC_CACHE_CHECK([if we have large file support enabled], [box_cv_have_large_file_support],
-  [AC_TRY_RUN([AC_LANG_PROGRAM([[$ac_includes_default]], [[
+AC_CACHE_CHECK([if we have large file support enabled],
+  [box_cv_have_large_file_support],
+  [AC_TRY_RUN([
+    $ac_includes_default
+    int main()
+    {
       return sizeof(off_t)==4;
-    ]])],
+    }
+    ],
     [box_cv_have_large_file_support=yes],
     [box_cv_have_large_file_support=no],
     [box_cv_have_large_file_support=no # safe for cross-compile]
-  )])
+    )
+  ])
 
 if test "x$box_cv_have_large_file_support" = "xyes"; then
 	AC_DEFINE([HAVE_LARGE_FILE_SUPPORT], [1],