summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorLarry Knox <lrknox@hdfgroup.org>2015-04-17 22:24:47 (GMT)
committerLarry Knox <lrknox@hdfgroup.org>2015-04-17 22:24:47 (GMT)
commitcf98752566a33067a5737e8a008dc5daa1f4c59c (patch)
treef173ff0f0159db1d4e37826f5f203e996d5da2e2 /configure.ac
parent7bf3a426e8634c851d9c550fd980f07d3e29fc1b (diff)
downloadhdf5-cf98752566a33067a5737e8a008dc5daa1f4c59c.zip
hdf5-cf98752566a33067a5737e8a008dc5daa1f4c59c.tar.gz
hdf5-cf98752566a33067a5737e8a008dc5daa1f4c59c.tar.bz2
[svn-r26840] configure
configure.ac hl/src/H5LTparse.c hl/src/H5LTparse.h Address HDFFV-9010: configure issue with gcc 4.9.2 "-l ". Change default to disable_shared on CYGWIN. release_docs/INSTALL_Cygwin.txt release_docs/RELEASE.txt Update for changed default and no CYGWIN szip binary. c++/src/cpp_doc_config bin/h5vers AddressHDFFV-9010: Add cpp_doc_config to h5vers Tested with h5committest, on CYGWIN.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac21
1 files changed, 21 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 9fd3817..5bcd530 100644
--- a/configure.ac
+++ b/configure.ac
@@ -637,6 +637,19 @@ AC_SUBST([RUNPARALLEL])
AC_SUBST([TESTPARALLEL])
## ----------------------------------------------------------------------
+## Disable shared libraries on CYGWIN. (LK - 04/16/15)
+## A number of tests run by "make check" fail on CYGWIN, so for HDF5 v1.8.15
+## we will change the default for shared libraries to disabled.
+
+
+case "`uname`" in
+ CYGWIN*)
+ enable_shared="no"
+ CHECK_WARN="Shared libraries are not currently supported on CYGWIN."
+ ;;
+esac
+
+## ----------------------------------------------------------------------
## Fortran libraries are not currently supported on Mac. Disable them.
## (this is overridable with --enable-unsupported).
##
@@ -687,6 +700,8 @@ LT_PREREQ([2.2])
## win32-dll - This will build clean dlls on win32 platforms.
LT_INIT([dlopen,win32-dll])
+
+
## ----------------------------------------------------------------------
## Check if we should install only statically linked executables.
## This check needs to occur after libtool is initialized because
@@ -2899,5 +2914,11 @@ cat >> src/H5config.h <<EOF
#endif
EOF
+## HDF5 configure code created by autotools with gcc 4.9.2 is adding problematic
+## linker flags: -l with no library name; -l <libname>, specifically gfortran or m.
+## This sed script corrects "-l <libname>" first and then "-l " with no library name.
+## If the order is not preserved, all instances of "-l " will be removed.
+sed -e '/^postdeps/ s/-l \([a-zA-Z]\)/-l\1/g' -e '/^postdeps/ s/-l //g' -i libtool
+
## show the configure settings
cat src/libhdf5.settings