diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2001-10-16 21:08:38 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2001-10-16 21:08:38 (GMT) |
commit | 585bef6575262ac4873322cd669585fe1dbba5d1 (patch) | |
tree | 4ec5d536f2e0f750c6b2e91fab5cb7c80f8e71f4 /configure.in | |
parent | 384a324c3f77280eb4323d371cdedb74923a296d (diff) | |
download | hdf5-585bef6575262ac4873322cd669585fe1dbba5d1.zip hdf5-585bef6575262ac4873322cd669585fe1dbba5d1.tar.gz hdf5-585bef6575262ac4873322cd669585fe1dbba5d1.tar.bz2 |
[svn-r4549] Purpose:
Bug fix
Description:
GASS nor gridstorage worked any more because SSL library testing
was moved after them.
Solution:
Moved SSL library to be tested before GASS or Gridstorage options
are tested. Also make the testing of SSL libraries default to
no testing, so that it won't get activated unnecessarily.
Platforms tested:
IRIX64 -64, serial and parallel. (GASS driver needs globus
software which is available in modi4 only.)
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 36 |
1 files changed, 23 insertions, 13 deletions
diff --git a/configure.in b/configure.in index 975ec2f..fc04ad3 100644 --- a/configure.in +++ b/configure.in @@ -730,6 +730,29 @@ case $withval in ;; esac +dnl Is SSL library present? It is needed by GLOBUS-GASS and Grid Storage +dnl driver. SSL must be tested before them. +AC_SUBST(SSL) SSL=yes +AC_ARG_WITH(ssl,[ --with-ssl=LIB Use SSL libs from LIB [default=no]], + ,withval=no) +case "$withval" in + yes) + AC_CHECK_LIB(crypto,main,,unset SSL) + AC_CHECK_LIB(ssl,SSL_get_version,,unset SSL) + ;; + no) + AC_MSG_CHECKING(for SSL) + AC_MSG_RESULT(suppressed) + unset SSL + ;; + *) + saved_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS -L$with_ssl" + AC_CHECK_LIB(crypto,main,, LDFLAGS="$saved_LDFLAGS"; unset SSL) + AC_CHECK_LIB(ssl,SSL_get_version,, LDFLAGS="$saved_LDFLAGS"; unset SSL) + ;; +esac + dnl ---------------------------------------------------------------------- dnl Is GLOBUS-GASS(1.1.0 or 1.1.1) Library present? It is also needed by dnl the Grid Storage driver. @@ -905,19 +928,6 @@ if test -n "$GRIDSTORAGE"; then AC_DEFINE(HAVE_GRIDSTORAGE) fi -if test -n "$GRIDSTORAGE" -o -n "$GASS"; then - dnl Is SSL library present? It is needed by GLOBUS-GASS and Grid - dnl Storage driver. - AC_SUBST(SSL) SSL=yes - AC_ARG_WITH(ssl,[ --with-ssl=LIB Use SSL libs from LIB ],,) - if test -n "$with_ssl"; then - LDFLAGS="$LDFLAGS -L$with_ssl" - fi - - AC_CHECK_LIB(crypto,main,,unset SSL) - AC_CHECK_LIB(ssl,SSL_get_version,,unset SSL) -fi - dnl ---------------------------------------------------------------------- dnl Is LLNL's PDB present? If so then we'll compile the PDB-to-HDF5 dnl translator. |