Salome HOME
Join modifications from branch BR_DEBUG_3_2_0b1
[modules/superv.git] / adm_local / unix / config_files / check_SUPERV.m4
index 0ac2ba066fa463c621c53ec8dbf439b9d3ac87a1..589649f66674b4dd15e643e3512f1a0b6bf21b09 100755 (executable)
@@ -9,6 +9,9 @@ AC_CHECKING(for Superv)
 
 Superv_ok=no
 
+SUPERV_LDFLAGS=""
+SUPERV_CXXFLAGS=""
+
 AC_ARG_WITH(superv,
            --with-superv=DIR root directory path of SUPERV installation,
            SUPERV_DIR="$withval",SUPERV_DIR="")
@@ -43,6 +46,13 @@ if test -f ${SUPERV_DIR}/lib/salome/libSUPERV.so  ; then
     SUPERV_ROOT_DIR=${SUPERV_DIR}
   fi
   AC_SUBST(SUPERV_ROOT_DIR)
+
+  SUPERV_LDFLAGS=-L${SUPERV_DIR}/lib${LIB_LOCATION_SUFFIX}/salome
+  SUPERV_CXXFLAGS=-I${SUPERV_DIR}/include/salome
+
+  AC_SUBST(SUPERV_LDFLAGS)
+  AC_SUBST(SUPERV_CXXFLAGS)
+
 else
   AC_MSG_WARN("Cannot find compiled SUPERV distribution")
 fi