ossp-pkg/as/as-gui/aclocal.m4 1.7 -> 1.8
--- aclocal.m4 2003/01/16 08:32:31 1.7
+++ aclocal.m4 2003/01/16 08:37:40 1.8
@@ -158,6 +158,42 @@
dnl ##
+dnl ## Test for the presence of the MICO ORB
+dnl ##
+dnl ## configure.in:
+dnl ## AC_TEST_MICO
+dnl ##
+
+AC_DEFUN(AC_TEST_MICO,[dnl
+AC_ARG_WITH(micodir,dnl
+[ --with-micodir=[DIR] prefix where MICO is installed], micodir=$withval,)
+AC_MSG_CHECKING(the MICO installation path)
+
+dnl ## Ensure that we have a basic path to start searching
+if test -x "$micodir";
+then
+ CORBABASE=$micodir
+ AC_MSG_RESULT(${CORBABASE})
+elif test -x "${MICODIR}";
+then
+ CORBABASE="${MICODIR}"
+ AC_MSG_RESULT(${CORBABASE})
+else
+ AC_MSG_RESULT(not found)
+ AC_MSG_ERROR([Neither \$MICODIR nor --with-micodir=[DIR] paths exist])
+fi
+
+dnl ## Append paths of libs and headers
+LIBS="$LIBS -lmico -lmicocoss -lssl -lcrypto"
+LDFLAGS="$LDFLAGS -L${CORBABASE}/lib -R${CORBABASE}/lib"
+CPPFLAGS="$CPPFLAGS -I${CORBABASE}/include"
+CXXCPP="$CXXCPP -I${CORBABASE}/include"
+CXXFLAGS="$CXXFLAGS"
+AC_DEFINE(HAVE_MICO, 1, [Define to 1 if building with the MICO ORB.])
+])
+
+
+dnl ##
dnl ## Test for the presence of EasySOAP
dnl ##
dnl ## configure.in:
|
|