Skip to content

Commit

Permalink
- configure for mico in custom directory, not on path
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@5839 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Jul 10, 2010
1 parent 6d9af77 commit 51a8829
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
22 changes: 9 additions & 13 deletions configure
Expand Up @@ -679,7 +679,6 @@ enable_option_checking
with_static_lpsolve
with_CORBA
with_MICO
with_ORBIT2
with_omniORB
with_sendData_Qt
with_Coin
Expand Down Expand Up @@ -1305,7 +1304,6 @@ Optional Packages:
--with-static-lpsolve=DIR (default to dynamic linking; searches /usr if no other directory is provided)
--with-CORBA=DIR use mico corba installed in DIR (or use mico-config)
--with-MICO=DIR use mico corba installed in DIR (or use mico-config)
--with-ORBIT2=DIR use orbit2 installed in DIR (or use orbit2-config)
--with-omniORB=DIR use omniORB installed in DIR
--with-sendData-Qt Compile with support for plot().
--with-Coin Compile with support for plotting in 3D.
Expand Down Expand Up @@ -4455,14 +4453,6 @@ if test "${with_MICO+set}" = set; then :
fi


# Check whether --with-ORBIT2 was given.
if test "${with_ORBIT2+set}" = set; then :
withval=$with_ORBIT2; WANT_ORBIT2="$withval"
else
WANT_ORBIT2="no"
fi


# Check whether --with-omniORB was given.
if test "${with_omniORB+set}" = set; then :
withval=$with_omniORB; WANT_OMNIORB="$withval"
Expand All @@ -4474,8 +4464,10 @@ fi
if test ! "$WANT_MICO" = "no"; then
if test "$WANT_MICO" = "yes"; then
MICO="mico-config";
IDLCMD="idl";
else
MICO="$WANT_MICO/bin/mico-config";
IDLCMD="$WANT_MICO/bin/idl";
fi
if test "$USE_CORBA" = "no"; then
as_fn_error "failed to find mico-corba" "$LINENO" 5
Expand All @@ -4487,9 +4479,13 @@ $as_echo_n "checking mico version... " >&6; }
fi
USE_CORBA="-DUSE_CORBA -DUSE_MICO"
QT_USE_CORBA="USE_MICO"
CORBA_QMAKE_INCLUDES="`mico-config --prefix`/include";
CORBALIBS=`mico-config --libs`;
IDLCMD="idl";
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking mico settings" >&5
$as_echo_n "checking mico settings... " >&6; }
CORBACFLAGS=-I`$MICO --prefix`/include;
CORBA_QMAKE_INCLUDES=`$MICO --prefix`/include;
CORBALIBS=`$MICO --libs`;
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CORBACFLAGS $USE_CORBA $QT_USE_CORBA" >&5
$as_echo "$CORBACFLAGS $USE_CORBA $QT_USE_CORBA" >&6; }
DESIRED_CORBA="mico"
elif test ! "$WANT_ORBIT2" = "no"; then
if test "$WANT_ORBIT2" = "yes"; then
Expand Down
12 changes: 8 additions & 4 deletions configure.in
Expand Up @@ -228,14 +228,16 @@ dnl should we use corba?

AC_ARG_WITH(CORBA, [ --with-CORBA=DIR use mico corba installed in DIR (or use mico-config)],[WANT_MICO="$withval"],[WANT_MICO="no"])
AC_ARG_WITH(MICO, [ --with-MICO=DIR use mico corba installed in DIR (or use mico-config)],[WANT_MICO="$withval"],[])
AC_ARG_WITH(ORBIT2, [ --with-ORBIT2=DIR use orbit2 installed in DIR (or use orbit2-config)],[WANT_ORBIT2="$withval"],[WANT_ORBIT2="no"])
dnl AC_ARG_WITH(ORBIT2, [ --with-ORBIT2=DIR use orbit2 installed in DIR (or use orbit2-config)],[WANT_ORBIT2="$withval"],[WANT_ORBIT2="no"])
AC_ARG_WITH(omniORB,[ --with-omniORB=DIR use omniORB installed in DIR],[WANT_OMNIORB="$withval"],[WANT_OMNIORB="no"])

if test ! "$WANT_MICO" = "no"; then
if test "$WANT_MICO" = "yes"; then
MICO="mico-config";
IDLCMD="idl";
else
MICO="$WANT_MICO/bin/mico-config";
IDLCMD="$WANT_MICO/bin/idl";
fi
if test "$USE_CORBA" = "no"; then
AC_MSG_ERROR([failed to find mico-corba])
Expand All @@ -246,9 +248,11 @@ if test ! "$WANT_MICO" = "no"; then
fi
USE_CORBA="-DUSE_CORBA -DUSE_MICO"
QT_USE_CORBA="USE_MICO"
CORBA_QMAKE_INCLUDES="`mico-config --prefix`/include";
CORBALIBS=`mico-config --libs`;
IDLCMD="idl";
AC_MSG_CHECKING([mico settings])
CORBACFLAGS=-I`$MICO --prefix`/include;
CORBA_QMAKE_INCLUDES=`$MICO --prefix`/include;
CORBALIBS=`$MICO --libs`;
AC_MSG_RESULT([$CORBACFLAGS $USE_CORBA $QT_USE_CORBA])
DESIRED_CORBA="mico"
elif test ! "$WANT_ORBIT2" = "no"; then
if test "$WANT_ORBIT2" = "yes"; then
Expand Down

0 comments on commit 51a8829

Please sign in to comment.