Fix oniguruma detection logic

At the moment, a failed oniguruma header check would leave
HAVE_ONIGURUMA set to 1 still, resulting in a compiler error
in builtin.c.
This commit is contained in:
Sebastian Freundt committed 2015-02-16 09:01:08 +00:00
1 parent ebc090ad15
commit 10e8d34fd3
1 file changed
+1 -1
+1 -1
View File
@@ -61,7 +61,7 @@ if test $ONIGURUMAPATHSET == 1; then
fi
# check for ONIGURUMA library
HAVE_ONIGURUMA=1
HAVE_ONIGURUMA=0
AC_CHECK_HEADER("oniguruma.h",
AC_CHECK_LIB([onig],[onig_version],[LIBS="$LIBS -lonig"; HAVE_ONIGURUMA=1;]))