From: bangerth Date: Sun, 17 Aug 2008 20:22:55 +0000 (+0000) Subject: Not only test whether we can include mpi.h, but also whether we can link. On charm... X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e67e178c6cc574d797cf81ee067fd6b8438da665;p=dealii-svn.git Not only test whether we can include mpi.h, but also whether we can link. On charm, for example, the former succeeds, but the latter fails with plaen g++. git-svn-id: https://svn.dealii.org/trunk@16579 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/aclocal.m4 b/deal.II/aclocal.m4 index b61c30b406..ec08ea1a6b 100644 --- a/deal.II/aclocal.m4 +++ b/deal.II/aclocal.m4 @@ -387,7 +387,7 @@ dnl ------------------------------------------------------------- AC_DEFUN(DEAL_II_DETERMINE_IF_SUPPORTS_MPI, dnl [ AC_MSG_CHECKING(if the compiler is built for MPI) - AC_TRY_COMPILE( + AC_TRY_LINK( [ #include ], diff --git a/deal.II/configure b/deal.II/configure index 8040d13359..b5b6c8cd18 100755 --- a/deal.II/configure +++ b/deal.II/configure @@ -1,5 +1,5 @@ #! /bin/sh -# From configure.in Revision: 16223 . +# From configure.in Revision: 16569 . # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.60 for deal.II 6.2.pre. # @@ -3899,14 +3899,14 @@ main () return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" +rm -f conftest.$ac_objext conftest$ac_exeext +if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 + (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 @@ -3923,7 +3923,7 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; @@ -3952,7 +3952,8 @@ echo "${ECHO_T}no" >&6; } fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext if test "$GXX" = yes ; then