summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorJohn Mainzer <mainzer@hdfgroup.org>2010-03-05 15:49:33 (GMT)
committerJohn Mainzer <mainzer@hdfgroup.org>2010-03-05 15:49:33 (GMT)
commit356b2bd5c49631ff25a7f1f990e19897be41a487 (patch)
tree15d4d80501ff460936b2169e56776eb12379e8a1 /config
parent9f85fd57d2b5c7b6bf8245af942907c7d222a156 (diff)
downloadhdf5-356b2bd5c49631ff25a7f1f990e19897be41a487.zip
hdf5-356b2bd5c49631ff25a7f1f990e19897be41a487.tar.gz
hdf5-356b2bd5c49631ff25a7f1f990e19897be41a487.tar.bz2
[svn-r18371] Interim checkin of AIO journal write code.
Added code allowing async journal entry writes for metadata journaling, along with associated test code. At present, the code compiles and passes tests under Linux and Solaris. code compiles under MacOS, but usually locks up the host machine under test. code fails to compile under BSD. no other platforms tested.
Diffstat (limited to 'config')
-rw-r--r--config/gnu-flags2
-rw-r--r--config/linux-gnulibc18
-rw-r--r--config/solaris2.x5
3 files changed, 12 insertions, 3 deletions
diff --git a/config/gnu-flags b/config/gnu-flags
index c1990e0..170bdf8 100644
--- a/config/gnu-flags
+++ b/config/gnu-flags
@@ -140,7 +140,7 @@ case "$cc_vendor-$cc_version" in
esac
# General
- H5_CFLAGS="$H5_CFLAGS $arch -ansi -pedantic -Wall -W -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Wconversion -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs -Winline"
+ H5_CFLAGS="$H5_CFLAGS $arch -D_POSIX_C_SOURCE=199309L -ansi -pedantic -Wall -W -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Wconversion -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs -Winline"
# Production
case "$cc_vendor-$cc_version" in
diff --git a/config/linux-gnulibc1 b/config/linux-gnulibc1
index 015d079..776e39b 100644
--- a/config/linux-gnulibc1
+++ b/config/linux-gnulibc1
@@ -126,6 +126,14 @@ if test $CC_BASENAME = cmpicc; then
hdf5_mpi_complex_derived_datatype_works=${hdf5_mpi_complex_derived_datatype_works='no'}
fi
+# Link in real time library to support use of AIO.
+#
+# Note that while the following is correct for gcc, it is may be wrong for
+# other compilers used under Linux. Will have to test for this and change
+# it if necessary.
+# JRM -- 2/3/10
+LIBS="$LIBS -lrt"
+
#Comment out the following line if your system supports collective IO when some processes
#don't have any contributions to IOs.
#hdf5_mpi_special_collective_io_works=${hdf5_mpi_special_collective_io_works='no'}
diff --git a/config/solaris2.x b/config/solaris2.x
index c81fd61..148ec03 100644
--- a/config/solaris2.x
+++ b/config/solaris2.x
@@ -56,8 +56,9 @@ if test "X-" = "X-$cc_flags_set"; then
&& PROD_CFLAGS="`echo $PROD_CFLAGS | sed -e 's/-O//'`"
fi
-# Add socket lib for the Stream Virtual File Driver
-LIBS="$LIBS -lsocket"
+# Add socket lib for the Stream Virtual File Driver and the real time
+# lib for AIO
+LIBS="$LIBS -lsocket -lrt"
# The default Fortran 90 compiler