Skip to content

Commit

Permalink
#2316 Add -lblas to compilation command in order to work on OSX 10.6 …
Browse files Browse the repository at this point in the history
…and earlier

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@16864 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Aug 20, 2013
1 parent 5cee30a commit 8fef82b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ AC_MSG_CHECKING([LAPACK flags])
AC_LINK_IFELSE([AC_LANG_CALL([], [dgesv_])],[AC_MSG_RESULT([ok])],[AC_MSG_ERROR([failed using $LD_LAPACK])])

AC_CHECK_HEADERS(kinsol/kinsol.h kinsol/kinsol_dense.h nvector/nvector_serial.h sundials/sundials_types.h sundials/sundials_math.h,[],[NO_SUNDIALS="yes"])
SUNDIALS_LDFLAGS="-lsundials_kinsol -lsundials_nvecserial -llapack"
SUNDIALS_LDFLAGS="-lsundials_kinsol -lsundials_nvecserial $LD_LAPACK"
LIBS="$SUNDIALS_LDFLAGS -lm"
AC_MSG_CHECKING([Sundials linking])
AC_LINK_IFELSE([AC_LANG_CALL([], [KINInit])],
Expand All @@ -361,7 +361,7 @@ else
FINAL_MESSAGES="$FINAL_MESSAGES\nSimulations may use sundials suite: No"
WITH_SUNDIALS="/* Without Sundials */"
# We need -llapack regardless if we use Sundials or not
SUNDIALS_LDFLAGS="-llapack"
SUNDIALS_LDFLAGS="$LD_LAPACK"
fi

AC_CHECK_HEADERS(locale.h libintl.h,[],[AC_MSG_ERROR([gettext headers not found])])
Expand Down

0 comments on commit 8fef82b

Please sign in to comment.