2013-05-08 19:57:29 +01:00
|
|
|
AC_INIT([jq], [1.2], [mu@netsoc.tcd.ie],
|
2012-11-27 16:02:59 -06:00
|
|
|
[jq], [http://stedolan.github.com/jq/])
|
|
|
|
|
|
|
|
dnl Created autoconf implementation thompson@dtosolutions, 26NOV12
|
|
|
|
AC_PREREQ([2.61])
|
|
|
|
AC_CONFIG_AUX_DIR([config])
|
2013-05-08 18:55:10 +01:00
|
|
|
AM_INIT_AUTOMAKE([parallel-tests foreign])
|
2013-02-03 00:09:47 -06:00
|
|
|
AM_SILENT_RULES([yes])
|
2012-11-27 16:02:59 -06:00
|
|
|
AC_PROG_CC
|
|
|
|
AC_PROG_CC_STDC
|
|
|
|
AC_PROG_CPP_WERROR
|
2012-11-28 01:08:23 -06:00
|
|
|
AC_PROG_YACC
|
2012-11-27 16:02:59 -06:00
|
|
|
|
|
|
|
AM_PROG_CC_C_O
|
|
|
|
|
2012-11-28 01:08:23 -06:00
|
|
|
dnl couldn't use AM_PROG_LEX as it doesn't support header files like the
|
|
|
|
dnl AC_PROG_YACC macros...
|
|
|
|
|
|
|
|
dnl
|
|
|
|
dnl these program checks should probably be deleted
|
|
|
|
dnl
|
|
|
|
|
2012-11-27 16:02:59 -06:00
|
|
|
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
|
|
|
|
|
|
|
|
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])
|
2012-11-28 01:08:23 -06:00
|
|
|
AC_CONFIG_HEADERS(config.h)
|
2012-11-27 16:02:59 -06:00
|
|
|
AM_INIT_AUTOMAKE([-Wall dist-bzip2 dist-zip])
|
|
|
|
AC_CONFIG_FILES([Makefile])
|
|
|
|
AC_OUTPUT
|
2013-05-08 02:30:08 +01:00
|
|
|
|
|
|
|
|