[svn-r4956]

Purpose:
    Bug Fix
Description:
    On some systems, doing the shell command:

        if test -z $DEBUG_PKG; then

    doesn't work if $DEBUG_PKG is null..
Solution:
    Changed to "if test "X$DEBUG_PKG" = "X"; then" which will do the same
    thing but without the error...
Platforms tested:
    Linux
This commit is contained in:
Bill Wendling 2002-02-13 15:53:07 -05:00
parent 807207079a
commit 530133a9f4
2 changed files with 830 additions and 535 deletions

1283
configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -774,6 +774,69 @@ case $withval in
;;
esac
dnl ----------------------------------------------------------------------
dnl Pablo Configuration
dnl
AC_SUBST(PABLO) PABLO=""
AC_SUBST(HAVE_PABLO) HAVE_PABLO="no"
AC_ARG_WITH(pablo,
[ --with-pablo[=DIR] Use the Pablo library [default=no]],,
withval=no)
case "$withval" in
yes)
failed="no"
AC_CHECK_LIB(PabloTraceExt, initIOTrace,, failed="yes")
if test "$failed" != "yes"; then
HAVE_PABLO="yes"
PABLO="pablo"
fi
;;
no)
AC_MSG_CHECKING(for Pablo)
AC_MSG_RESULT(suppressed)
;;
*)
case "$withval" in
*,*)
pablo_inc="`echo $withval | cut -f1 -d,`"
pablo_lib="`echo $withval | cut -f2 -d, -s`"
;;
*)
if test -n "$withval"; then
pablo_inc="$withval/include"
pablo_lib="$withval/lib"
fi
;;
esac
saved_CPPFLAGS="$CPPFLAGS"
saved_LDFLAGS="$LDFLAGS"
if test -n "$pablo_inc"; then
CPPFLAGS="$CPPFLAGS -I$pablo_inc"
fi
if test -n "$pablo_lib"; then
LDFLAGS="$LDFLAGS -L$pablo_lib"
fi
failed="no"
AC_CHECK_HEADERS(IOTrace.h,
AC_CHECK_LIB(PabloTraceExt, initIOTrace,, failed="yes"),
failed="yes")
if test "$failed" = "yes"; then
dnl Reset flags if failed
CPPFLAGS="$saved_CPPFLAGS"
LDFLAGS="$saved_LDFLAGS"
else
HAVE_PABLO="yes"
PABLO="pablo"
fi
;;
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
@ -1759,6 +1822,18 @@ if test -n "$TESTPARALLEL"; then
PARALLEL_MAKE="$TESTPARALLEL/Makefile"
fi
PABLO_MAKE=""
AC_SUBST(PARALLEL_PABLO) PARALLEL_PABLO=""
if test -n "$HAVE_PABLO"; then
PABLO_MAKE="pablo/Makefile"
if test -n "$TESTPARALLEL"; then
PARALLEL_PABLO="yes"
fi
fi
EXTRA_H4_MAKEFILES=""
if test -n "$H4TOH5"; then
@ -1779,7 +1854,7 @@ AC_OUTPUT(src/libhdf5.settings
config/conclude
Makefile
src/Makefile
pablo/Makefile
$PABLO_MAKE
test/Makefile
$PARALLEL_MAKE
perform/Makefile
@ -1883,7 +1958,7 @@ PRINT_N " Debug Mode"
if test "X$DEBUG_PKG" = "X$all_packages"; then
PRINT "All"
elif test -z $DEBUG_PKG; then
elif test "X$DEBUG_PKG" = "X"; then
PRINT "None"
else
PRINT $DEBUG_PKG
@ -1931,6 +2006,9 @@ esac
PRINT_N " Linux Large File Support (LFS)"
IF_ENABLED_DISABLED "$LINUX_LFS"
PRINT_N " Pablo"
IF_YES_NO "$HAVE_PABLO"
PRINT_N " Parallel HDF5"
if test "$PARALLEL" != "no"; then
PRINT "Yes"