Skip to content

Commit

Permalink
Fix configure on Ubuntu (ipopt on ubuntu is not linked against metis)
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@17127 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Sep 7, 2013
1 parent c600872 commit a949c35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions configure.in
Expand Up @@ -416,12 +416,12 @@ AC_ARG_WITH(ipopt, [ --with-ipopt=DIR use ipopt for initializat
])

if test "$WANT_IPOPT" = "yes"; then
AC_CHECK_HEADERS(coin/IpStdCInterface.h, [IPOPT_LDFLAGS="-lipopt -lcoinmumps -lcoinmetis"; IPOPT_CFLAGS=""], [NO_IPOPT="yes"])
AC_CHECK_HEADERS(coin/IpStdCInterface.h, [IPOPT_LDFLAGS="-lipopt"; IPOPT_CFLAGS=""], [NO_IPOPT="yes"])
elif test "$WANT_IPOPT" = "no"; then
NO_IPOPT="yes"
else
IPOPT_DIR="$withval"
AC_CHECK_HEADERS($IPOPT_DIR/include/coin/IpStdCInterface.h, [AC_MSG_RESULT(ipopt directory: $IPOPT_DIR); IPOPT_LDFLAGS="-L'"$IPOPT_DIR"/lib' -lipopt -lcoinmumps -lcoinmetis"; IPOPT_CFLAGS="-I'"$IPOPT_DIR"/include'"], [NO_IPOPT="yes"])
AC_CHECK_HEADERS($IPOPT_DIR/include/coin/IpStdCInterface.h, [AC_MSG_RESULT(ipopt directory: $IPOPT_DIR); IPOPT_LDFLAGS="-L'"$IPOPT_DIR"/lib' -lipopt"; IPOPT_CFLAGS="-I'"$IPOPT_DIR"/include'"], [NO_IPOPT="yes"])
fi


Expand Down

0 comments on commit a949c35

Please sign in to comment.