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/configure | |
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/configure')
-rwxr-xr-x | fortran/configure | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/fortran/configure b/fortran/configure index bb32a65..aa08f1b 100755 --- a/fortran/configure +++ b/fortran/configure @@ -8075,6 +8075,48 @@ ac_link='${F9X-f90} -o conftest${ac_exeext} $FFLAGS conftest.$ac_ext $LDFLAGS $L cross_compiling=$ac_cv_prog_f9x_cross +FFLAGS_saved=$FFLAGS +FFLAGS="$FFLAGS -I." + +echo "$as_me:$LINENO: checking if compiler supports -I. option" >&5 +echo $ECHO_N "checking if compiler supports -I. option... $ECHO_C" >&6 + + +ac_ext=f90 +ac_compile='${F9X-f90} -c $FFLAGS conftest.$ac_ext 1>&5' +ac_link='${F9X-f90} -o conftest${ac_exeext} $FFLAGS conftest.$ac_ext $LDFLAGS $LIBS 1>&5' +cross_compiling=$ac_cv_prog_f9x_cross + + +test -d conftestdir || mkdir conftestdir +cd conftestdir +rm -rf * + +cat >conftest.$ac_ext <<EOF + + program conftest + end + +EOF + +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; then + : + echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6 +else + : + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 + FFLAGS="$FFLAGS_saved" +fi +cd .. +rm -rf conftest* + + |