]> granicus.if.org Git - jq/commitdiff
Fix --without-oniguruma build
authorNicolas Williams <nico@cryptonector.com>
Mon, 27 Feb 2017 00:22:23 +0000 (18:22 -0600)
committerNicolas Williams <nico@cryptonector.com>
Mon, 27 Feb 2017 00:22:23 +0000 (18:22 -0600)
configure.ac

index 871900f32c6be410027cf55895fb550a5110e00c..1edb4d8e9f939d7984f21a87c468287f5757b706 100644 (file)
@@ -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])