Skip to content
Snippets Groups Projects
Commit 57b43d14 authored by Oliver Sander's avatar Oliver Sander Committed by sander
Browse files

[[Imported from SVN: r4815]]
parent dc1d71f8
No related branches found
No related tags found
No related merge requests found
...@@ -46,14 +46,13 @@ CPPFLAGS="$IPOPT_CPPFLAGS" ...@@ -46,14 +46,13 @@ CPPFLAGS="$IPOPT_CPPFLAGS"
# if header is found... # if header is found...
if test x$HAVE_IPOPT = x1 ; then if test x$HAVE_IPOPT = x1 ; then
LIBS="$LIBS -lipopt -llapack -lblas -lgfortran" LIBS="$LIBS `PKG_CONFIG_PATH=$IPOPT_LIB_PATH/pkgconfig $PKG_CONFIG --libs ipopt`"
AC_LINK_IFELSE(AC_LANG_PROGRAM( AC_LINK_IFELSE(AC_LANG_PROGRAM(
[#include "coin/IpIpoptApplication.hpp"], [#include "coin/IpIpoptApplication.hpp"],
[Ipopt::SmartPtr<Ipopt::IpoptApplication> app = new Ipopt::IpoptApplication();]), [Ipopt::SmartPtr<Ipopt::IpoptApplication> app = new Ipopt::IpoptApplication();]),
[IPOPT_LIBS="-lipopt -llapack -lblas -lgfortran" [IPOPT_LIBS="`PKG_CONFIG_PATH=$IPOPT_LIB_PATH/pkgconfig $PKG_CONFIG --libs-only-l ipopt`"
IPOPT_LDFLAGS="-L$IPOPT_LIB_PATH" IPOPT_LDFLAGS="`PKG_CONFIG_PATH=$IPOPT_LIB_PATH/pkgconfig $PKG_CONFIG --libs-only-L ipopt`"],
LIBS="$LIBS $IPOPT_LIBS"],
[HAVE_IPOPT="0" [HAVE_IPOPT="0"
AC_MSG_WARN(IPOpt not found!)]) AC_MSG_WARN(IPOpt not found!)])
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment