diff options
author | Bill Wendling <wendling@ncsa.uiuc.edu> | 2002-09-09 21:51:35 (GMT) |
---|---|---|
committer | Bill Wendling <wendling@ncsa.uiuc.edu> | 2002-09-09 21:51:35 (GMT) |
commit | e5d5634456062b7a55700534fe7985d3ec3bd4fc (patch) | |
tree | 028004c84e3ee7c96342cf3af3fc55432c16a78c /fortran/acsite.m4 | |
parent | 85ebef607feb03b8e33deca2dce09a378a67963b (diff) | |
download | hdf5-e5d5634456062b7a55700534fe7985d3ec3bd4fc.zip hdf5-e5d5634456062b7a55700534fe7985d3ec3bd4fc.tar.gz hdf5-e5d5634456062b7a55700534fe7985d3ec3bd4fc.tar.bz2 |
[svn-r5916] Purpose:
Bug Fix
Description:
Sometimes, we needed to pick up a header file in the current build
directory.
Solution:
Added a test to see if the compiler can handle the "-I." option so
that it will get that header file.
Platforms tested:
Modi4
Diffstat (limited to 'fortran/acsite.m4')
-rw-r--r-- | fortran/acsite.m4 | 46 |
1 files changed, 43 insertions, 3 deletions
diff --git a/fortran/acsite.m4 b/fortran/acsite.m4 index 940a584..74da0dc 100644 --- a/fortran/acsite.m4 +++ b/fortran/acsite.m4 @@ -1,11 +1,20 @@ dnl ------------------------------------------------------------------------- dnl ------------------------------------------------------------------------- dnl +dnl Copyright by the Board of Trustees of the University of Illinois. +dnl All rights reserved. +dnl +dnl This file is part of HDF5. The full HDF5 copyright notice, including +dnl terms governing use, modification, and redistribution, is contained in +dnl the files COPYING and Copyright.html. COPYING can be found at the root +dnl of the source code distribution tree; Copyright.html can be found at the +dnl root level of an installed copy of the electronic HDF5 document set and +dnl is linked from the top-level documents page. It can also be found at +dnl http://hdf.ncsa.uiuc.edu/HDF5/doc/Copyright.html. If you do not have +dnl access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu. +dnl dnl Macros for HDF5 Fortran dnl -dnl Copyright (C) 2000, 2002 -dnl National Center for Supercomputing Applications. -dnl All rights reserved. dnl ------------------------------------------------------------------------- dnl ------------------------------------------------------------------------- @@ -262,6 +271,37 @@ rm -rf conftest* ]) dnl ------------------------------------------------------------------------- +dnl AC_TRY_FCOMPILE() +dnl +dnl Check if we can compile a simple Fortran 90 program. +dnl +dnl AC_TRY_FCOMPILE(FUNCTION-BODY, +dnl [ACTION-IF-SUCCESS], [ACTION-IF-NOT-SUCCESS]) +dnl +AC_DEFUN([AC_TRY_FCOMPILE], +[AC_LANG_SAVE +AC_LANG_FORTRAN9X + +test -d conftestdir || mkdir conftestdir +cd conftestdir +rm -rf * + +cat >conftest.$ac_ext <<EOF + $1 +EOF + +if AC_TRY_EVAL(ac_compile); then + : + [$2] +else + : + [$3] +fi +cd .. +rm -rf conftest* +]) + +dnl ------------------------------------------------------------------------- dnl AC_TRY_FLINK() dnl dnl Check if we can link a simple Fortran 90 program. |