Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  - Search /lib/ instead of /lib in case lib is a symlink.


git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@5373 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Apr 24, 2010
1 parent d37d25d commit a3ad983
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions configure
Expand Up @@ -3597,7 +3597,7 @@ fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for antlr headers" >&5
$as_echo_n "checking for antlr headers... " >&6; }
antlrinc=`find $antlrhome/include -type f -name TreeParser.hpp -print | head -1 | awk -F/ '{ total="";for (i = 1 ; i < NF-1; i++) total= total $i "/"; print total}'`
antlrinc=`find $antlrhome/include/ -type f -name TreeParser.hpp -print | head -1 | awk -F/ '{ total="";for (i = 1 ; i < NF-1; i++) total= total $i "/"; print total}'`
if test -z "$antlrinc" ; then
as_fn_error "Could not find antlr include files$antlrmsg" "$LINENO" 5
else
Expand All @@ -3607,7 +3607,7 @@ fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for antlr libs" >&5
$as_echo_n "checking for antlr libs... " >&6; }
antlrlib=`find $antlrhome/lib -type f -name libantlr.a -print | head -1 | awk -F/ '{ total="";for (i = 1 ; i < NF; i++) total= total $i "/"; print total}'`
antlrlib=`find $antlrhome/lib/ -type f -name libantlr.a -print | head -1 | awk -F/ '{ total="";for (i = 1 ; i < NF; i++) total= total $i "/"; print total}'`
if test -z "$antlrlib" ; then
as_fn_error "Could not find antlr lib file$antlrmsg" "$LINENO" 5
else
Expand Down
4 changes: 2 additions & 2 deletions configure.in
Expand Up @@ -69,15 +69,15 @@ else
fi

AC_MSG_CHECKING([for antlr headers])
antlrinc=`find $antlrhome/include -type f -name TreeParser.hpp -print | head -1 | awk -F/ '{ total="";for (i = 1 ; i < NF-1; i++) total= total $i "/"; print total}'`
antlrinc=`find $antlrhome/include/ -type f -name TreeParser.hpp -print | head -1 | awk -F/ '{ total="";for (i = 1 ; i < NF-1; i++) total= total $i "/"; print total}'`
if test -z "$antlrinc" ; then
AC_MSG_ERROR([Could not find antlr include files$antlrmsg])
else
AC_MSG_RESULT([yes])
fi

AC_MSG_CHECKING([for antlr libs])
antlrlib=`find $antlrhome/lib -type f -name libantlr.a -print | head -1 | awk -F/ '{ total="";for (i = 1 ; i < NF; i++) total= total $i "/"; print total}'`
antlrlib=`find $antlrhome/lib/ -type f -name libantlr.a -print | head -1 | awk -F/ '{ total="";for (i = 1 ; i < NF; i++) total= total $i "/"; print total}'`
if test -z "$antlrlib" ; then
AC_MSG_ERROR([Could not find antlr lib file$antlrmsg])
else
Expand Down

0 comments on commit a3ad983

Please sign in to comment.