diff configure.in @ 8607:08331c2fb00f

add -lregex to REGEX_LIBS at configure stage, add ARPACK_LIBS, REGEX_LIBS to liboctave's link deps
author Benjamin Lindner <lindnerb@users.sourceforge.net>
date Tue, 27 Jan 2009 22:44:38 -0500
parents dee5d60257e4
children f8b3ece45bda
line wrap: on
line diff
--- a/configure.in
+++ b/configure.in
@@ -473,10 +473,8 @@
   AC_CHECK_LIB(regex, regexec, WITH_REGEX=yes, WITH_REGEX=no)])
 if test $WITH_REGEX = yes ; then
   AC_DEFINE(HAVE_REGEX, 1, [Define if regex is available.])
-  if test $WITH_PCRE = no ; then
     AC_CHECK_FUNCS(regexec, REGEX_LIBS= , [
-      AC_CHECK_LIB(regex, regexec, REGEX_LIBS="-lregex")])
-  fi
+      AC_CHECK_LIB(regex, regexec, REGEX_LIBS="$REGEX_LIBS -lregex")])
 fi
 if test $WITH_REGEX = no; then
   warn_regex="regular expression functions not found.  The regular expression matching functions will be disabled."