1 # Check availability of Qt's msg2qm tool binary distribution
3 # Author : Jerome Roy (CEA, 2003)
6 AC_DEFUN([CHECK_MSG2QM],[
8 AC_CHECKING(for msg2qm)
13 [ --with-msg2qm=DIR root directory path of MSG2QM installation],
14 MSG2QM_DIR="$withval",MSG2QM_DIR="")
16 if test "x$MSG2QM_DIR" == "x" ; then
18 # no --with-MSG2QM-dir option used
20 if test "x$MSG2QM_ROOT" != "x" ; then
22 # MSG2QM_ROOT environment variable defined
23 MSG2QM_DIR=$MSG2QM_ROOT
27 # search MSG2QM binaries in PATH variable
28 AC_PATH_PROG(TEMP, msg2qm)
29 if test "x$TEMP" != "x" ; then
30 MSG2QM_DIR=`dirname $TEMP`
37 # look for msg2qm in ${MSG2QM_DIR} directory
38 if test -f ${MSG2QM_DIR}/msg2qm ; then
40 MSG2QM="${MSG2QM_DIR}/msg2qm"
41 AC_MSG_RESULT(Using MSG2QM executable in ${MSG2QM_DIR})
43 # if not found, look for msg2qm in ${MSG2QM_DIR}/bin directory
44 if test -f ${MSG2QM_DIR}/bin/msg2qm ; then
46 MSG2QM="${MSG2QM_DIR}/bin/msg2qm"
47 AC_MSG_RESULT(Using MSG2QM executable in ${MSG2QM_DIR}/bin)
49 AC_MSG_WARN("Cannot find MSG2QM executable")
54 AC_MSG_RESULT(for MSG2QM: $msg2qm_ok)