Skip to content

Commit

Permalink
Update configure
Browse files Browse the repository at this point in the history
  • Loading branch information
sjoelund committed May 3, 2015
1 parent 9a08f0d commit d6652d4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion m4/omhome.m4
@@ -1,3 +1,4 @@
AC_SUBST(OPENMODELICAHOME)
AC_ARG_WITH(openmodelicahome, [ --with-openmodelicahome=[$OPENMODELICAHOME|$prefix] (Find OPENMODELICAHOME - the directory where all OpenModelica dependencies are installed.)],[OMHOME="$withval"],[OMHOME=no])

test "$prefix" = NONE && prefix=$ac_default_prefix
Expand Down Expand Up @@ -58,7 +59,9 @@ define(FIND_LIBOPENMODELICACOMPILER, [
# Note: This does not do a full link. autoconf messes with some env
# and the rpath of the resulting executable is wrong with the
# exact same command running outside of autoconf
LIBS="$LIBS -L$OPENMODELICAHOME/lib/$host_short/omc -lOpenModelicaCompiler"
LDFLAGS_SAVE="$LDFLAGS"
LDFLAGS="$LDFLAGS -L$OPENMODELICAHOME/lib/$host_short/omc -lOpenModelicaCompiler"
AC_TRY_LINK([], [], [AC_MSG_RESULT([ok])], [AC_MSG_ERROR([failed])])
LDFLAGS="$LDFLAGS_SAVE"
AC_LANG_POP([C])
])

0 comments on commit d6652d4

Please sign in to comment.