1 dnl Process this file with autoconf to produce a configure script.
4 dnl Specify the autoconf file.
5 AC_CONFIG_HEADER(autoconfig.h)
7 dnl Check the page size
9 AC_ARG_ENABLE(us-paper,
10 [ --enable-us-paper use US paper instead of A4],
11 [if test "$enableval" = "yes"; then PAGE=US; fi])
14 dnl Check if we are forced to use the cxref-cpp
16 AC_ARG_WITH(cxref-cpp,
17 [ --with-cxref-cpp use the supplied cpp instead of trying to use gcc],
18 [if test "$withval" = "yes"; then WITH_CXREF_CPP=yes; fi])
20 dnl Checks for programs.
29 AC_CHECK_PROG(PERL, perl, perl, )
30 AC_CHECK_PROG(LATEX, latex, latex, )
31 AC_CHECK_PROG(DVIPS, dvips, dvips, )
33 dnl Checks for libraries.
35 dnl Checks for header files.
38 AC_CHECK_HEADERS(malloc.h unistd.h)
40 dnl Checks for typedefs, structures, and compiler characteristics.
44 dnl Checks for library functions.
46 AC_CHECK_FUNCS(getcwd mkdir strerror strstr)
60 AC_DEFINE_UNQUOTED(USE_STD_ARG,$USE_STD_ARG)
65 dnl Check the cpp directory
66 AC_CONFIG_SUBDIRS(cpp)
68 dnl Create the output files.
69 AC_OUTPUT(Makefile doc/Makefile query/Makefile)