diff options
author | Larry Knox <lrknox@hdfgroup.org> | 2010-06-04 19:22:09 (GMT) |
---|---|---|
committer | Larry Knox <lrknox@hdfgroup.org> | 2010-06-04 19:22:09 (GMT) |
commit | f827580d235fa984b43c8ff695e041f1f86e0775 (patch) | |
tree | a292fea4a94c4bf4fd25102f7609d7db41f503a1 | |
parent | d10df9b8ae3ce017ef79af36554dc6d2b793b083 (diff) | |
download | hdf5-f827580d235fa984b43c8ff695e041f1f86e0775.zip hdf5-f827580d235fa984b43c8ff695e041f1f86e0775.tar.gz hdf5-f827580d235fa984b43c8ff695e041f1f86e0775.tar.bz2 |
[svn-r18979] Added comments regarding the -D_POSIX_SOURCE flag including a reference to a dis
cussion of the _POSIX_SOURCE, BSD_SOURCE, and _POSIX_C_SOURCE Macros and their i
ntersaction at http://www.gnu.org/s/libc/manual/html_node/Feature-Test-Macros.ht
ml.
Comment text only - not tested.
-rw-r--r-- | configure.in | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/configure.in b/configure.in index bbdaab0..8c6f539 100644 --- a/configure.in +++ b/configure.in @@ -1394,7 +1394,18 @@ case "$host_cpu-$host_vendor-$host_os" in dnl Add POSIX support on Linux systems, so <features.h> defines dnl __USE_POSIX, which is required to get the prototype for fdopen - dnl defined correctly in <stdio.h> + dnl defined correctly in <stdio.h>. + dnl This flag was removed from h5cc as of 2009-10-17 when it was found + dnl that the flag broke compiling netCDF-4 code with h5cc, but kept in + dnl H5_CPPFLAGS because fdopen and HDfdopen fail without it. HDfdopen + dnl is used only by H5_debug_mask which is used only when debugging in + dnl H5_init_library (all in H5.c). When the flag was removed this was + dnl the only compile failure noted; however, defining the Macro + dnl makes available the functionality from the POSIX.1 standard as well + dnl as all or the ISO C facilities, according to a discussion of + dnl defining the _POSIX_SOURCE, _BSD_SOURCE, and _POSIX_C_SOURCE Macros + dnl and their interaction found at + dnl http://www.gnu.org/s/libc/manual/html_node/Feature-Test-Macros.html. H5_CPPFLAGS="-D_POSIX_SOURCE $H5_CPPFLAGS" dnl Also add BSD support on Linux systems, so <features.h> defines |