]> mj.ucw.cz Git - libucw.git/commitdiff
auto-detect CONFIG_LFS
authorRobert Spalek <robert@ucw.cz>
Sat, 28 Oct 2006 00:54:26 +0000 (17:54 -0700)
committerRobert Spalek <robert@ucw.cz>
Sat, 28 Oct 2006 00:54:26 +0000 (17:54 -0700)
lib/autoconf.cfg

index 664b8153cab79a990a98801f8441e680d7bc3235..a6430e72c6ba5841ff4961efe7edc40ed5ee9a47 100644 (file)
@@ -216,15 +216,14 @@ if (IsSet("CONFIG_DARWIN")) {
        # Directory hierarchy of the fink project
        Append("LIBS" => "-L/sw/lib");
        Append("COPT" => "-I/sw/include");
-       # LFS is not supported, but all file functions are automatically 64-bit
-       UnSet("CONFIG_LFS");
        # Fill in some constants not found in the system header files
        Set("PAGE_SIZE" => `sysctl -n hw.pagesize`);
        Set("SOL_TCP" => 6);            #missing in /usr/include/netinet/tcp.h
 }
 
-if (!IsSet("CONFIG_LARGE_FILES")) {
-       UnSet("CONFIG_LFS");
+if (IsSet("CONFIG_LARGE_FILES") && IsSet("CONFIG_LINUX")) {
+       # Use 64-bit versions of file functions
+       Set("CONFIG_LFS");
 }
 
 # Decide how will lib/partmap.c work