]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Additional change to previous patch to properly detect tbb
authorvsr <vsr@opencascade.com>
Mon, 18 Mar 2013 10:45:32 +0000 (10:45 +0000)
committervsr <vsr@opencascade.com>
Mon, 18 Mar 2013 10:45:32 +0000 (10:45 +0000)
salome_adm/unix/config_files/check_tbb.m4

index 5c3410d68064b43bb2a226f379da3cbf8622439e..4ba8e511994c468b2fc46fba026d5a2344ce7d32 100644 (file)
@@ -76,10 +76,11 @@ if test "x$TBBHOME" != "xno"; then
             else
                 INTEL_LOCAL_LIB="$TBBHOME/lib/ia32/$TBBKERNEL"
             fi
-           if test ! -z ${INTEL_LOCAL_LIB}; then
+           if test ! -d ${INTEL_LOCAL_LIB} ; then
+               INTEL_LOCAL_LIB="${TBBHOME}/lib"
+           fi
+           if test -d ${INTEL_LOCAL_LIB} ; then
                 LOCAL_LIBS="-L${INTEL_LOCAL_LIB} $LOCAL_LIBS"
-           else
-                LOCAL_LIBS="-L${TBBHOME}/lib $LOCAL_LIBS"
            fi
         fi
     fi