diff options
author | Bill Wendling <wendling@ncsa.uiuc.edu> | 2003-05-17 19:38:50 (GMT) |
---|---|---|
committer | Bill Wendling <wendling@ncsa.uiuc.edu> | 2003-05-17 19:38:50 (GMT) |
commit | cf40356535007234c9395134ade1f5fb7ebee0c6 (patch) | |
tree | 76520e9cba8c54025f6658eafe4580290cda8a8a /fortran/configure.in | |
parent | 3edbf40ed20587c9ad742e51657047836967e4b5 (diff) | |
download | hdf5-cf40356535007234c9395134ade1f5fb7ebee0c6.zip hdf5-cf40356535007234c9395134ade1f5fb7ebee0c6.tar.gz hdf5-cf40356535007234c9395134ade1f5fb7ebee0c6.tar.bz2 |
[svn-r6886] Purpose:
Update
Description:
GPFS should only be checked for if the --enable-gpfs flag is used.
Otherwise, it shouldn't.
Platforms tested:
Linux (Configure only fix so only needed to test it to make sure the
configure does the right thing and that the build won't
break. I need to test it on a machine that has GPFS to make
sure it works there...)
Diffstat (limited to 'fortran/configure.in')
-rw-r--r-- | fortran/configure.in | 49 |
1 files changed, 31 insertions, 18 deletions
diff --git a/fortran/configure.in b/fortran/configure.in index 25a01b8..306d9b3 100644 --- a/fortran/configure.in +++ b/fortran/configure.in @@ -960,25 +960,38 @@ fi dnl ---------------------------------------------------------------------- dnl Checking to see if GPFS is available on this filesystem dnl +AC_ARG_ENABLE([gpfs], + [AC_HELP_STRING([--enable-gpfs], + [Enable GPFS hints for the MPI/POSIX file + driver. [default=no]])],, + [enableval=no]) -dnl Change to the C language -AC_LANG_C - -AC_CHECK_HEADERS([gpfs.h], - AC_MSG_CHECKING([for GPFS support]) - AC_TRY_COMPILE([#include <gpfs.h>], - [int fd = 0; gpfs_fcntl(fd, (void *)0);], - AC_DEFINE(HAVE_GPFS, 1, - [Define if we have GPFS support]) - AC_MSG_RESULT(yes) - LIBS="$LIBS -lgpfs" - GPFS="yes", - AC_MSG_RESULT(no) - GPFS="no")) - -dnl Change back to the Fortran 90 language -AC_LANG_FORTRAN9X - +case "X-$enableval" in + X-yes) + dnl Change to the C language + AC_LANG_C + + AC_CHECK_HEADERS([gpfs.h], + AC_MSG_CHECKING([for GPFS support]) + AC_TRY_COMPILE([#include <gpfs.h>], + [int fd = 0; gpfs_fcntl(fd, (void *)0);], + AC_DEFINE(HAVE_GPFS, 1, + [Define if we have GPFS support]) + AC_MSG_RESULT(yes) + LIBS="$LIBS -lgpfs" + GPFS="yes", + AC_MSG_RESULT(no) + GPFS="no")) + + dnl Change back to the Fortran 90 language + AC_LANG_FORTRAN9X + ;; + X-no|*) + AC_MSG_CHECKING([for gpfs]) + AC_MSG_RESULT([suppressed]) + ;; +esac + dnl Some cleanup stuff rm -f conftest core core.* *.core conftest.o conftest.c dummy.o $ac_clean_files |