From dd389dce8730340435d7a8ce283791fb1372f027 Mon Sep 17 00:00:00 2001 From: gdd Date: Wed, 2 Nov 2011 13:35:51 +0000 Subject: [PATCH] Fix m4 macro in case of non existence of /usr/bin/arch --- adm_local/unix/config_files/check_BLSURF.m4 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/adm_local/unix/config_files/check_BLSURF.m4 b/adm_local/unix/config_files/check_BLSURF.m4 index e96e425..cf519a3 100644 --- a/adm_local/unix/config_files/check_BLSURF.m4 +++ b/adm_local/unix/config_files/check_BLSURF.m4 @@ -61,7 +61,11 @@ if test "$with_blsurf" != "no" ; then LOCAL_INCLUDES="-I$BLSURF_HOME/include" LOCAL_LIBS="-L$BLSURF_HOME/lib/Linux" - if test $(`which arch`) = x86_64 ; then + archtest="$(`which arch`)" + if test "x$archtest" = "x" ; then + archtest="`uname -m`" + fi + if test $archtest = "x86_64" ; then LOCAL_LIBS="-L$BLSURF_HOME/lib/Linux_64" fi LOCAL_LIBS="${LOCAL_LIBS} -ldistene -lBLSurf -lPreCAD" -- 2.39.2