1 ###########################################################
3 # Author : Vadim SANDLER (OCN)
5 # Copyright (C) 2005 Open CASCADE
6 # Check availability of MED binary distribution
7 ###########################################################
16 [ --with-med=DIR root directory path of MED installation ],
17 MED_DIR="$withval",MED_DIR="")
19 if test "x$MED_DIR" == "x" ; then
20 # no --with-med-dir option used
21 if test "x$MED_ROOT_DIR" != "x" ; then
22 # MED_ROOT_DIR environment variable defined
27 if test -f ${MED_DIR}/idl/salome/MED.idl ; then
29 AC_MSG_RESULT(Using Med module distribution in ${MED_DIR})
31 if test "x$MED_ROOT_DIR" == "x" ; then
32 MED_ROOT_DIR=${MED_DIR}
34 AC_SUBST(MED_ROOT_DIR)
37 AC_MSG_WARN("Cannot find Med module sources")
40 AC_MSG_RESULT(for Med: $Med_ok)