diff options
author | Larry Knox <lrknox@hdfgroup.org> | 2010-06-04 16:01:39 (GMT) |
---|---|---|
committer | Larry Knox <lrknox@hdfgroup.org> | 2010-06-04 16:01:39 (GMT) |
commit | 7d1adc1f35507e44716f3c2351c202e61d684123 (patch) | |
tree | 4fd048716df6480111c7086d35195c21ba990133 /configure.in | |
parent | c09abb325060bc8543769e5119adea114dbfa4af (diff) | |
download | hdf5-7d1adc1f35507e44716f3c2351c202e61d684123.zip hdf5-7d1adc1f35507e44716f3c2351c202e61d684123.tar.gz hdf5-7d1adc1f35507e44716f3c2351c202e61d684123.tar.bz2 |
[svn-r18976] Added comments regarding the -D_POSIX_SOURCE flag including a reference to a discussion of the _POSIX_SOURCE, BSD_SOURCE, and _POSIX_C_SOURCE Macros and their intersaction at http://www.gnu.org/s/libc/manual/html_node/Feature-Test-Macros.html.
Comment text only - not tested.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/configure.in b/configure.in index 98ef3db..435b229 100644 --- a/configure.in +++ b/configure.in @@ -1365,7 +1365,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 |