From d67edb78b98c3fb9911bcddafcb185083b959e4a Mon Sep 17 00:00:00 2001 From: eschnett Date: Wed, 17 Aug 2011 18:39:36 +0000 Subject: When checking for particular compiler names on AIX, remove the path, and check only the file names themselves. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4717 17b73243-c579-4c4c-a9d2-2d5706c11dac --- lib/make/known-architectures/aix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/make') diff --git a/lib/make/known-architectures/aix b/lib/make/known-architectures/aix index ed4f7a09..0e058472 100644 --- a/lib/make/known-architectures/aix +++ b/lib/make/known-architectures/aix @@ -82,7 +82,7 @@ else # work best if this option is also supplied at link time. --SW # C/C++ compilers - case "$CC" in + case $(basename "$CC") in gcc) : ${C_DEPEND_OUT=' > $@'} CC_VERSION="`$CC -v 2>&1 | grep -i version | tail -n1`" @@ -99,7 +99,7 @@ else ;; esac - case "$CXX" in + case $(basename "$CXX") in 'g++'|'c++') : ${CXX_DEPEND_OUT=' > $@'} CXX_VERSION="`$CXX -v 2>&1 | grep -i version | tail -n1`" @@ -116,7 +116,7 @@ else ;; esac - case "$F90" in + case $(basename "$F90") in xlf|xlf_r|xlf90|xlf90_r|xlf95|xlf95_r) : ${F90FLAGS="-q$AIX_BITS"} : ${F90_OPTIMISE_FLAGS="-O3 -qarch=auto -qtune=auto -qcache=auto -qhot"} @@ -127,7 +127,7 @@ else ;; esac - case "$F77" in + case $(basename "$F77") in xlf|xlf_r|xlf77|xlf77_r|xlf90|xlf90_r|xlf95|xlf95_r) : ${FF77LAGS="-q$AIX_BITS"} : ${F77_OPTIMISE_FLAGS="-O3 -qarch=auto -qtune=auto -qcache=auto -qhot"} -- cgit v1.2.3