1 dnl Process this file with autoconf to produce a configure script.
4 HELMPOT_MAJOR_VERSION=0
5 HELMPOT_MINOR_VERSION=1
6 HELMPOT_MICRO_VERSION=0
7 HELMPOT_VERSION=$HELMPOT_MAJOR_VERSION.$HELMPOT_MINOR_VERSION.$HELMPOT_MICRO_VERSION
8 VERSION=$HELMPOT_VERSION
10 AC_SUBST(HELMPOT_VERSION)
14 [ --enable-checks[=ARG] include debugging checks [default=yes]],
16 if test $enableval = yes; then
17 AC_DEFINE(ENABLE_CHECKS)
20 AC_DEFINE(ENABLE_CHECKS)
23 dnl Automake configuration
24 AM_CONFIG_HEADER(config.h)
25 AM_INIT_AUTOMAKE(helmpot, $HELMPOT_VERSION)
27 dnl Checks for programs.
31 AC_CHECK_PROG(HAVE_COLORGCC, colorgcc, yes, no)
33 dnl Checks for header files.
35 AC_CHECK_HEADERS(unistd.h)
38 dnl Checks for typedefs, structures, and compiler characteristics.
41 dnl Check for iconv with const pointer as second argument
44 dnl Checks for libraries
45 AM_PATH_GTK(1.2.0, gtklib="yes", gtklib="no")
47 if test $gtklib = "no"; then
48 AC_MSG_ERROR(GTK is needed in order to use helmpot)
51 CFLAGS="$CFLAGS @GTKMATHVIEW_CFLAGS@"
52 CXXFLAGS="$CXXFLAGS @GTKMATHVIEW_CFLAGS@"
53 LIBS="$LIBS @GTKMATHVIEW_LIBS@"
55 PKG_CHECK_MODULES(GTKMATHVIEW, gtkmathview >= 0.3.0,, AC_MSG_ERROR(could not find gtkmathview))
56 AC_SUBST(GTKMATHVIEW_CFLAGS)
57 AC_SUBST(GTKMATHVIEW_LIBS)
59 if test $HAVE_COLORGCC = "yes"; then
64 CFLAGS="$CFLAGS -W -Wall"
65 CXXFLAGS="$CXXFLAGS -W -Wall"