Skip to content

Commit

Permalink
Allow configure --without-corba at top-level
Browse files Browse the repository at this point in the history
  • Loading branch information
sjoelund authored and OpenModelica-Hudson committed Aug 5, 2015
1 parent a1372c2 commit 95a1292
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions configure.ac
Expand Up @@ -72,8 +72,13 @@ if echo $host | grep -i darwin; then
CMAKE_LDFLAGS="-Wl,-undefined -Wl,dynamic_lookup"
fi

m4_include([common/m4/corba.m4])
AC_SUBST(ALL_TARGETS)
for dir_target in OMCompiler-omc OMPlot-omplot OMEdit-omedit OMNotebook-omnotebook OMOptim-omoptim OMShell-omshell; do
if test ! -z "$USE_CORBA"; then
CORBA_TARGETS="OMNotebook-omnotebook OMOptim-omoptim OMShell-omshell"
fi

for dir_target in OMCompiler-omc OMPlot-omplot OMEdit-omedit $CORBA_TARGETS; do
dir=`echo $dir_target | cut -d- -f1`
if test ! -f "$dir/configure.ac"; then
AC_MSG_NOTICE("Subproject $dir does not exist")
Expand All @@ -90,6 +95,10 @@ if test -f testsuite/Makefile; then
ALL_TARGETS="$ALL_TARGETS testsuite-depends"
fi

AC_CONFIG_SUBDIRS([OMCompiler OMPlot OMEdit OMNotebook OMOptim OMShell])

AC_CONFIG_SUBDIRS([OMCompiler OMPlot OMEdit])
if test ! -z "$USE_CORBA"; then
AC_CONFIG_SUBDIRS([OMShell OMNotebook OMOptim])
fi

AC_OUTPUT(Makefile)

0 comments on commit 95a1292

Please sign in to comment.