Skip to content

Commit

Permalink
- configure searches also for omniidl in the specified place
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@5840 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Jul 10, 2010
1 parent 51a8829 commit 61e8401
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
14 changes: 12 additions & 2 deletions configure
Expand Up @@ -4452,6 +4452,7 @@ if test "${with_MICO+set}" = set; then :
withval=$with_MICO; WANT_MICO="$withval"
fi

WANT_ORBIT2="no"

# Check whether --with-omniORB was given.
if test "${with_omniORB+set}" = set; then :
Expand Down Expand Up @@ -4546,14 +4547,23 @@ fi
elif test ! "$WANT_OMNIORB" = "no"; then
if test "$WANT_OMNIORB" = "yes"; then
WANT_OMNIORB="/usr";
IDLCMD="omniidl -bcxx -Wbh=.h -Wbs=.cc";
else
CORBA_QMAKE_INCLUDES="-I$WANT_OMNIORB/include";
CORBA_QMAKE_INCLUDES="$WANT_OMNIORB/include";
CORBACFLAGS="-I$CORBA_QMAKE_INCLUDES";
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $WANT_OMNIORB/bin/omniidl" >&5
$as_echo_n "checking for $WANT_OMNIORB/bin/omniidl... " >&6; };
if test -f "$WANT_OMNIORB/bin/omniidl"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
$as_echo "ok" >&6; }
else
as_fn_error "not found" "$LINENO" 5
fi
IDLCMD="$WANT_OMNIORB/bin/omniidl -bcxx -Wbh=.h -Wbs=.cc";
fi
USE_CORBA="-DUSE_CORBA -DUSE_OMNIORB";
QT_USE_CORBA="USE_OMNIORB"
CORBALIBS="-lomniORB4 -lomnithread -lpthread";
IDLCMD="omniidl -bcxx -Wbh=.h -Wbs=.cc";
DESIRED_CORBA="omniorb"
else
USE_CORBA="";
Expand Down
12 changes: 10 additions & 2 deletions configure.in
Expand Up @@ -229,6 +229,7 @@ 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"],[])
dnl AC_ARG_WITH(ORBIT2, [ --with-ORBIT2=DIR use orbit2 installed in DIR (or use orbit2-config)],[WANT_ORBIT2="$withval"],[WANT_ORBIT2="no"])
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
Expand Down Expand Up @@ -276,14 +277,21 @@ elif test ! "$WANT_ORBIT2" = "no"; then
elif test ! "$WANT_OMNIORB" = "no"; then
if test "$WANT_OMNIORB" = "yes"; then
WANT_OMNIORB="/usr";
IDLCMD="omniidl -bcxx -Wbh=.h -Wbs=.cc";
else
CORBA_QMAKE_INCLUDES="-I$WANT_OMNIORB/include";
CORBA_QMAKE_INCLUDES="$WANT_OMNIORB/include";
CORBACFLAGS="-I$CORBA_QMAKE_INCLUDES";
AC_MSG_CHECKING([for $WANT_OMNIORB/bin/omniidl]);
if test -f "$WANT_OMNIORB/bin/omniidl"; then
AC_MSG_RESULT([ok])
else
AC_MSG_ERROR([not found])
fi
IDLCMD="$WANT_OMNIORB/bin/omniidl -bcxx -Wbh=.h -Wbs=.cc";
fi
USE_CORBA="-DUSE_CORBA -DUSE_OMNIORB";
QT_USE_CORBA="USE_OMNIORB"
CORBALIBS="-lomniORB4 -lomnithread -lpthread";
IDLCMD="omniidl -bcxx -Wbh=.h -Wbs=.cc";
DESIRED_CORBA="omniorb"
else
USE_CORBA="";
Expand Down

0 comments on commit 61e8401

Please sign in to comment.