From 6b4bfb60db8262d4321b729bab46f726157c02e7 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Tue, 23 Apr 2002 17:02:46 -0500 Subject: [svn-r5239] Purpose: Fix Description: Needed to test if the test programs LINK not just COMPILE... Solution: Changed the macro from COMPILE to LINK. --- fortran/configure | 20 ++++++++++---------- fortran/configure.in | 4 ++-- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/fortran/configure b/fortran/configure index f4da7f4..69a35ca 100755 --- a/fortran/configure +++ b/fortran/configure @@ -8355,13 +8355,13 @@ MPI_Comm_c2f(); return 0; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' + { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? @@ -8381,7 +8381,7 @@ echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi -rm -f conftest.$ac_objext conftest.$ac_ext +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext echo "$as_me:$LINENO: checking for MPI_Info_c2f and MPI_Info_f2c functions" >&5 echo $ECHO_N "checking for MPI_Info_c2f and MPI_Info_f2c functions... $ECHO_C" >&6 @@ -8405,13 +8405,13 @@ MPI_Info_c2f(); return 0; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' + { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? @@ -8431,7 +8431,7 @@ echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi -rm -f conftest.$ac_objext conftest.$ac_ext +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ac_ext=f90 ac_compile='${F9X-f90} -c $FFLAGS conftest.$ac_ext 1>&5' diff --git a/fortran/configure.in b/fortran/configure.in index 62533ed..4ce66dc 100644 --- a/fortran/configure.in +++ b/fortran/configure.in @@ -549,7 +549,7 @@ if test -n "$PARALLEL"; then dnl Change to the C language AC_LANG_C - AC_TRY_COMPILE([ + AC_TRY_LINK([ #include ], [MPI_Comm_c2f(); return 0;], @@ -560,7 +560,7 @@ if test -n "$PARALLEL"; then ) AC_MSG_CHECKING([for MPI_Info_c2f and MPI_Info_f2c functions]) - AC_TRY_COMPILE([ + AC_TRY_LINK([ #include ], [MPI_Info_c2f(); return 0;], -- cgit v0.12