Salome HOME
Add possibility to build the module without VISU if it is abcent.
[samples/sierpinsky.git] / build_configure
index eff071dcd79c5f9644a252c5b9e4ee7beb69a1b5..36c2605143a44048b88fd1d714e53c42ac8cb6a0 100755 (executable)
@@ -59,14 +59,6 @@ if test ! -d "${RANDOMIZER_ROOT_DIR}"; then
     exit
 fi
 
-########################################################################
-# Test if the VISU_ROOT_DIR is set correctly
-
-if test ! -d "${VISU_ROOT_DIR}"; then
-    echo "failed : VISU_ROOT_DIR variable is not correct !"
-    exit
-fi
-
 cd ${CONF_DIR}
 ABS_CONF_DIR=`pwd`
 
@@ -81,12 +73,21 @@ ABS_CONF_DIR=`pwd`
 #   autom4te.cache (directory)
 echo "======================================================= aclocal"
 
-aclocal -I adm_local/unix/config_files \
-        -I ${KERNEL_ROOT_DIR}/salome_adm/unix/config_files \
-       -I ${GUI_ROOT_DIR}/adm_local/unix/config_files \
-       -I ${MED_ROOT_DIR}/adm_local/unix/config_files \
-       -I ${VISU_ROOT_DIR}/adm_local/unix/config_files \
-       -I ${RANDOMIZER_ROOT_DIR}/adm_local/unix/config_files || exit 1
+if test -d "${VISU_ROOT_DIR}"; then
+    aclocal -I adm_local/unix/config_files \
+           -I ${KERNEL_ROOT_DIR}/salome_adm/unix/config_files \
+           -I ${GUI_ROOT_DIR}/adm_local/unix/config_files \
+           -I ${MED_ROOT_DIR}/adm_local/unix/config_files \
+           -I ${VISU_ROOT_DIR}/adm_local/unix/config_files \
+           -I ${RANDOMIZER_ROOT_DIR}/adm_local/unix/config_files || exit 1
+else
+    echo "warning : VISU_ROOT_DIR variable is not correct! SIERPINSKY will be configured without VISU module."
+    aclocal -I adm_local/unix/config_files \
+           -I ${KERNEL_ROOT_DIR}/salome_adm/unix/config_files \
+           -I ${GUI_ROOT_DIR}/adm_local/unix/config_files \
+           -I ${MED_ROOT_DIR}/adm_local/unix/config_files \
+           -I ${RANDOMIZER_ROOT_DIR}/adm_local/unix/config_files || exit 1
+fi
 
 # ____________________________________________________________________
 # libtoolize creates some configuration files (ltmain.sh,