summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2011-05-23 19:15:39 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2011-05-23 19:15:39 (GMT)
commit0418b80b226e22db0b8ddbfcd3754a90c8eb54f9 (patch)
tree0cb1388b845ecd5ca21f8c29da1bb711739bb65a /configure
parent3cfec078a6d5305657380b68558900d8aa955470 (diff)
downloadhdf5-0418b80b226e22db0b8ddbfcd3754a90c8eb54f9.zip
hdf5-0418b80b226e22db0b8ddbfcd3754a90c8eb54f9.tar.gz
hdf5-0418b80b226e22db0b8ddbfcd3754a90c8eb54f9.tar.bz2
[svn-r20894] Purpose:
Updates configure definitions on linux. Description: We only define _POSIX_SOURCE which only allows for the lowest level of POSIX support (IEEE 1003.1), which is unsuitable for clock_gettime() functionality on modern linux systems. This symbol was changed to _POSIX_C_SOURCE=199506L, which gives the 1996 version of POSIX support and allows clock_gettime() and CLOCK_MONOTONIC to be found. We do not link to the BSD compatibility library, even though we define _BSD_SOURCE. -lbsd-compat was added to AM_LDFLAGS in accordance with GNU recommendations. This does not appear to change anything in the current library. Tested on: jam(linux32-LE) This was tested with various configure settings including parallel, threadsafe, C++ and FORTRAN enabled.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure7
1 files changed, 4 insertions, 3 deletions
diff --git a/configure b/configure
index 2aaf8ba..a1ef9a7 100755
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
#! /bin/sh
-# From configure.in Id: configure.in 20891 2011-05-23 17:02:39Z derobins .
+# From configure.in Id: configure.in 20892 2011-05-23 17:29:14Z derobins .
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.68 for HDF5 1.9.82.
#
@@ -22506,9 +22506,10 @@ case "$host_cpu-$host_vendor-$host_os" in
AM_CPPFLAGS="-D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE $AM_CPPFLAGS"
fi
- H5_CPPFLAGS="-D_POSIX_SOURCE $H5_CPPFLAGS"
+ H5_CPPFLAGS="-D_POSIX_C_SOURCE=199506L $H5_CPPFLAGS"
- AM_CPPFLAGS="-D_BSD_SOURCE $AM_CPPFLAGS"
+ AM_CPPFLAGS="-D_BSD_SOURCE $AM_CPPFLAGS"
+ AM_LDFLAGS="-lbsd-compat $AM_LDFLAGS"
;;
esac