From 006357f954c72bf4212bbc16e869efbfe9d06eda Mon Sep 17 00:00:00 2001 From: Lee Thompson Date: Tue, 27 Nov 2012 16:02:59 -0600 Subject: initial attempt at autoconf implementation, removed all generated code from git --- configure.ac | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 configure.ac (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac new file mode 100644 index 00000000..09997385 --- /dev/null +++ b/configure.ac @@ -0,0 +1,66 @@ +AC_INIT([jq], m4_esyscmd([tr -d '\n' @], + [Enable the same CFLAGS used by jq developers @<:@default=yes@:>@])], + [enable_devcflags=$enableval], + [enable_devcflags=yes]) +AC_MSG_RESULT($enable_devcflags) +dnl AM_CONDITIONAL(DEVCFLAGS, test x$enable_devcflags = xyes) +if test "$enable_devcflags" = "yes"; then + AM_CONDITIONAL(DEVCFLAGS_ENABLED, true) +fi + +dnl Check for sed +AC_CHECK_PROGS(regex_cmd, sed) +if test x$regex_cmd = "x" ; then + AC_MSG_NOTICE([sed is required to patch jq.]) +fi + +dnl Check for flex +AC_CHECK_PROGS(flex_cmd, flex) +if test x$flex_cmd = "x" ; then + AC_MSG_NOTICE([flex is required to patch jq.]) +fi + +dnl Check for bison +AC_CHECK_PROGS(bison_cmd, bison) +if test x$bison_cmd = "x" ; then + AC_MSG_NOTICE([bison is required to patch jq.]) +fi + + AC_CONFIG_HEADERS(config.h) + +dnl Check for python +AC_CHECK_PROGS(python_cmd, python) +if test x$python_cmd = "x" ; then + AC_MSG_NOTICE([python is required to patch jq.]) +fi + +dnl Check for valgrind +AC_CHECK_PROGS(valgrind_cmd, valgrind) +if test x$valgrind_cmd = "x" ; then + AC_MSG_NOTICE([valgrind is required to test jq.]) +fi + +dnl AC_CONFIG_MACRO_DIR([m4]) +AM_INIT_AUTOMAKE([-Wall dist-bzip2 dist-zip]) +AC_CONFIG_FILES([Makefile]) +AC_OUTPUT -- cgit v1.2.3