summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorMike McGreevy <mamcgree@hdfgroup.org>2010-05-05 17:35:04 (GMT)
committerMike McGreevy <mamcgree@hdfgroup.org>2010-05-05 17:35:04 (GMT)
commite984ec4948e97b5ed3bb4eff293570d1b9ec5e96 (patch)
tree4c47a024a95b2d0a7c94f73fd895a0f4c8ed94ad /config
parentc8ec7a14bcebd842768b53df8b1e3843c752d04e (diff)
downloadhdf5-e984ec4948e97b5ed3bb4eff293570d1b9ec5e96.zip
hdf5-e984ec4948e97b5ed3bb4eff293570d1b9ec5e96.tar.gz
hdf5-e984ec4948e97b5ed3bb4eff293570d1b9ec5e96.tar.bz2
[svn-r18710] Purpose:
Improve configure's large-file support control. Description: Modified configure to now attempt to add defines necessary for supporting largefiles on all systems, instead of solely on linux. This is in response to user requests to enable largefile support on Solaris by default, as well as to give extra control on AIX (instead of just jamming the necessary flag into the config files). The old --enable-linux-lfs flag is being deprecated in favor of the --enable-largefile flag (enabled by default), which can be used on all platforms. --disable-linux-lfs can still be used to disable largefile support (on linux) when the --enable-largefile flag is not specified. On systems where large files cannot be supported in this manner, configure will report as such. Tested: h5committest AIX (NCSA's blue_print machine) duty, liberty, and linew.
Diffstat (limited to 'config')
-rw-r--r--config/ibm-aix11
-rw-r--r--config/powerpc-ibm-aix5.x11
2 files changed, 4 insertions, 18 deletions
diff --git a/config/ibm-aix b/config/ibm-aix
index 954dc7f..a884593 100644
--- a/config/ibm-aix
+++ b/config/ibm-aix
@@ -19,7 +19,6 @@
# the various compile modes.
# Use AIX supplied C compiler by default, xlc for serial, mpcc_r for parallel.
-# Use -D_LARGE_FILES by default to support large file size.
# Make sure this is applied to other API compile options such as C++.
if test "X-" = "X-$CC"; then
if test "X-$enable_parallel" = "X-yes"; then
@@ -46,9 +45,8 @@ case $CC_BASENAME in
xlc|xlc-*|mpcc_r|mpcc_r-*)
# Turn off shared lib option. It causes some test suite to fail.
enable_shared="${enable_shared:-no}"
- # Use -D_LARGE_FILES by default to support large file size.
# Make sure this is applied to other API compile options such as C++.
- AM_CFLAGS="-D_LARGE_FILES $AM_CFLAGS"
+ AM_CFLAGS="$AM_CFLAGS"
H5_CFLAGS="-qlanglvl=stdc99 $H5_CFLAGS"
DEBUG_CFLAGS="-g -qfullpath"
DEBUG_CPPFLAGS=
@@ -122,10 +120,6 @@ ac_cv_sizeof_uint_fast64_t=${ac_cv_sizeof_uint_fast64_t=8}
# Don't cache long since it varies between 32 and 64 bits
#ac_cv_sizeof_long=${ac_cv_sizeof_long=4}
-# Don't cache size_t and off_t because they depend on if -D_LARGE_FILES is used
-#ac_cv_sizeof_size_t=${ac_cv_sizeof_size_t=4}
-#ac_cv_sizeof_off_t=${ac_cv_sizeof_off_t=8}
-
# The default Fortran 90 compiler
if test "X-" = "X-$FC"; then
@@ -164,8 +158,7 @@ CXX=${CXX=xlC}
# Added -qweaksymbol to suppress linker messages warning of duplicate
# symbols; these warnings are harmless. - BMR
-# Use -D_LARGE_FILES by default to support large file size.
H5_CXXFLAGS="$H5_CXXFLAGS -qweaksymbol"
-AM_CXXFLAGS="$AM_CXXFLAGS -D_LARGE_FILES"
+AM_CXXFLAGS="$AM_CXXFLAGS"
diff --git a/config/powerpc-ibm-aix5.x b/config/powerpc-ibm-aix5.x
index 96ad26a..aecbf33 100644
--- a/config/powerpc-ibm-aix5.x
+++ b/config/powerpc-ibm-aix5.x
@@ -19,7 +19,6 @@
# the various compile modes.
# Use AIX supplied C compiler by default, xlc for serial, mpcc_r for parallel.
-# Use -D_LARGE_FILES by default to support large file size.
# Make sure this is applied to other API compile options such as C++.
if test "X-" = "X-$CC"; then
if test "X-$enable_parallel" = "X-yes"; then
@@ -46,9 +45,8 @@ case $CC_BASENAME in
xlc|xlc-*|mpcc_r|mpcc_r-*)
# Turn off shared lib option. It causes some test suite to fail.
enable_shared="${enable_shared:-no}"
- # Use -D_LARGE_FILES by default to support large file size.
# Make sure this is applied to other API compile options such as C++.
- AM_CFLAGS="-D_LARGE_FILES $AM_CFLAGS"
+ AM_CFLAGS="$AM_CFLAGS"
H5_CFLAGS="-qlanglvl=stdc99 $H5_CFLAGS"
DEBUG_CFLAGS="-g -qfullpath"
DEBUG_CPPFLAGS=
@@ -121,10 +119,6 @@ ac_cv_sizeof_uint_fast64_t=${ac_cv_sizeof_uint_fast64_t=8}
# Don't cache long since it varies between 32 and 64 bits
#ac_cv_sizeof_long=${ac_cv_sizeof_long=4}
-# Don't cache size_t and off_t because they depend on if -D_LARGE_FILES is used
-#ac_cv_sizeof_size_t=${ac_cv_sizeof_size_t=4}
-#ac_cv_sizeof_off_t=${ac_cv_sizeof_off_t=8}
-
# The default Fortran 90 compiler
if test "X-" = "X-$FC"; then
@@ -163,8 +157,7 @@ CXX=${CXX=xlC}
# Added -qweaksymbol to suppress linker messages warning of duplicate
# symbols; these warnings are harmless. - BMR
-# Use -D_LARGE_FILES by default to support large file size.
H5_CXXFLAGS="$H5_CXXFLAGS -qweaksymbol"
-AM_CXXFLAGS="$AM_CXXFLAGS -D_LARGE_FILES"
+AM_CXXFLAGS="$AM_CXXFLAGS"