]> SALOME platform Git repositories - plugins/blsurfplugin.git/commitdiff
Salome HOME
Fix m4 macro in case of non existence of /usr/bin/arch
authorgdd <gdd>
Wed, 2 Nov 2011 13:35:51 +0000 (13:35 +0000)
committergdd <gdd>
Wed, 2 Nov 2011 13:35:51 +0000 (13:35 +0000)
adm_local/unix/config_files/check_BLSURF.m4

index e96e4250fe3f9e2b0139ff09306e8005afe2d6de..cf519a3b561771b1800ce543f844842dcc8e211e 100644 (file)
@@ -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"