update for compatibility with recent nobug
[acogc.git] / configure.ac
blobeced92db151e20324f3e6b5f2ebfec63bb1247b8
1 AC_INIT(libacogc, 0.2pre)
2 AC_CONFIG_SRCDIR(lib/acogc.h)
3 AC_CONFIG_AUX_DIR(scripts)
4 dnl AC_CONFIG_MACRO_DIR(m4)
5 AM_INIT_AUTOMAKE
6 AC_PREREQ(2.59)
8 AC_COPYRIGHT([
9 Copyright (C) 2006, 2007, Christian Thaeter <ct@pipapo.org>
11 This file is part of the acogc garbage collector.
13 This program is free software; you can redistribute it and/or modify
14 it under the terms of the GNU General Public License version 2 as
15 published by the Free Software Foundation.
17 This program is distributed in the hope that it will be useful,
18 but WITHOUT ANY WARRANTY; without even the implied warranty of
19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20 GNU General Public License for more details.
22 You should have received a copy of the GNU General Public License
23 along with this program; if not, contact me.
26 AC_PROG_CC
27 AC_STDC_HEADERS
28 AC_PROG_RANLIB
31 AC_ARG_ENABLE(alpha, AC_HELP_STRING([--enable-alpha], [select NoBug ALPHA build level]),
32               AC_DEFINE(EBUG_ALPHA),
34 AC_ARG_ENABLE(beta, AC_HELP_STRING([--enable-beta], [select NoBug BETA build level]),
35               AC_DEFINE(EBUG_BETA),
37 AC_ARG_ENABLE(release, AC_HELP_STRING([--enable-release], [select NoBug RELEASE build level]),
38               AC_DEFINE(NDEBUG),
40 dnl default case
41               AC_DEFINE(EBUG_ALPHA)
42 )])])
44 AC_CHECK_HEADER(nobug.h, break, AC_MSG_ERROR(nobug.h required))
46 dnl TODO install supplied llist.h if not available
47 AC_CHECK_HEADER(llist.h, break, AC_MSG_ERROR(llist.h required))
49 dnl AC_HAVE_HEADERS(string.h fcntl.h sys/file.h sys/param.h)
53 AC_CONFIG_FILES(Makefile lib/Makefile tests/Makefile)
54 dnl doc/Makefile
55 AC_OUTPUT