From: Nicolas Williams Date: Mon, 27 Feb 2017 00:22:23 +0000 (-0600) Subject: Fix --without-oniguruma build X-Git-Tag: jq-1.6rc1~47 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9a0d79629881b157ed2158bfe187d05ecff486cd;p=jq Fix --without-oniguruma build --- diff --git a/configure.ac b/configure.ac index 871900f..1edb4d8 100644 --- a/configure.ac +++ b/configure.ac @@ -256,7 +256,7 @@ AS_IF([test "x$with_oniguruma" != xno], [ AC_MSG_NOTICE([Oniguruma was not found. Will use the packaged oniguruma.]) ]) ]) - AS_IF([test "x$build_oniguruma" = xyes], [ + AS_IF([test "x$build_oniguruma" = xyes -a -f "${srcdir}/modules/oniguruma/configure.ac" ], [ onig_CFLAGS="-I${srcdir}/modules/oniguruma/src" onig_LDFLAGS="-L${srcdir}/modules/oniguruma/src -Wl,-rpath,${libdir}" AC_CONFIG_SUBDIRS([modules/oniguruma])