From 7d1adc1f35507e44716f3c2351c202e61d684123 Mon Sep 17 00:00:00 2001 From: Larry Knox Date: Fri, 4 Jun 2010 11:01:39 -0500 Subject: [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. --- configure.in | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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 defines dnl __USE_POSIX, which is required to get the prototype for fdopen - dnl defined correctly in + dnl defined correctly in . + 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 defines -- cgit v0.12