1 dnl Process this file with autoconf to produce a configure script.
2 AC_INIT(flower/lib/choleski.cc)
5 AC_ARG_ENABLE(printing,
6 [ --enable-printing set debug printing],
7 [DEFINES="$DEFINES -DNPRINT"])
8 AC_ARG_ENABLE(checking,
9 [ --enable-checking set debug checks],
10 [DEFINES="$DEFINES -DNDEBUG"])
12 [ --enable-debug set debug info],
13 [DEFINES="$DEFINES -g"], [DEFINES="$DEFINES -O2"])
15 dnl COMPILEINFO="$HOST $host $TARGET $target"
16 AUTOHEADER="This file was automatically generated by configure"
26 AC_CHECK_PROGS(BISON, bison, error)
27 AC_CHECK_PROGS(FLEX, flex, error)
28 AC_CHECK_PROGS(MAKE, make, error)
29 AC_CHECK_PROGS(PODMAN, pod2man, error)
31 if test $MAKE = "error"
33 echo Please install GNU make
38 AC_MSG_ERROR(Please install *GNU* make)
42 if test $BISON = "error"
44 AC_MSG_ERROR(can't find bison. Please install Bison (1.24 or better))
47 if test $PODMAN = "error"
49 AC_MSG_WARN(can't find pod. You should install Perl (version 5 or better))
52 if test $FLEX = "error"
54 AC_MSG_ERROR(can't find flex. Please install Flex (2.5 or better))
57 if $CXX --version | grep -q '2\.7'
61 AC_MSG_ERROR(can't find g++ 2.7)
64 AC_CHECK_HEADER(FlexLexer.h, true,
65 AC_MSG_ERROR(can't find flex header. Please install Flex headers correctly))
69 AC_OUTPUT(make/out/ACVariables.make)
70 dnl AC_OUTPUT(config.hh)