1 dnl $Id: configure.ac,v 1.18 2003-02-07 19:27:39 bjk Exp $
2 dnl Process this file with autoconf to produce a configure script.
4 AC_INIT(libchess, 0.2, [Ben Kibbey bjk@luxsci.net])
5 AC_CONFIG_AUX_DIR(build)
7 AM_INIT_AUTOMAKE([foreign])
11 AC_CONFIG_SRCDIR([pgn.c])
12 AM_CONFIG_HEADER([config.h])
16 LDFLAGS="$LDFLAGS -flat_namespace -L/sw/lib"
17 CPPFLAGS="$CPPFLAGS -I/sw/include -L/sw/lib"
23 CFLAGS="$CFLAGS -D_GNU_SOURCE"
25 dnl Checks for programs.
28 dnl Checks for header files.
31 AC_CHECK_HEADERS([fcntl.h limits.h stdlib.h string.h unistd.h])
33 dnl Checks for typedefs, structures, and compiler characteristics.
38 dnl Checks for library functions.
42 AC_CHECK_FUNCS([bzero isascii memset strcasecmp strdup])
50 AC_CACHE_CHECK([if debugging is wanted], [ac_cv_sys_debug],
53 if test "$ac_cv_sys_debug" = "yes"; then
54 CPPFLAGS="$CPPFLAGS -DDEBUG"
58 AC_ARG_ENABLE(debug, AC_HELP_STRING([--enable-debug], [Enable debugging.]),
59 AC_DEBUG([$enableval]), AC_DEBUG)
63 AC_CONFIG_FILES([Makefile])