From d547520098aec126e2ff13c4d316a178468c8318 Mon Sep 17 00:00:00 2001 From: Boris Boesler Date: Tue, 6 Mar 2001 10:13:53 +0000 Subject: [PATCH] autoconf stuff [r115] --- acconfig.h | 11 +++++++++++ config.h.in | 14 ++++++++------ configure | 4 ++-- configure.in | 7 ++++--- 4 files changed, 25 insertions(+), 11 deletions(-) create mode 100644 acconfig.h diff --git a/acconfig.h b/acconfig.h new file mode 100644 index 000000000..31620d304 --- /dev/null +++ b/acconfig.h @@ -0,0 +1,11 @@ +/* + * libFIRM Project + * + * $Id$ + */ + +/* define to enable debugging stuff. */ +#undef DEBUG_libfirm + +/* Define to disable assertion checking. */ +#undef NDEBUG diff --git a/config.h.in b/config.h.in index 2351f674a..7e66521b8 100644 --- a/config.h.in +++ b/config.h.in @@ -1,11 +1,13 @@ -/* - * libFIRM Project - * - * $Id$ - */ +/* config.h.in. Generated automatically from configure.in by autoheader. */ -/* Define to enable debugging stuff. */ +/* Define if you have the ANSI C header files. */ +#undef STDC_HEADERS + +/* define to enable debugging stuff. */ #undef DEBUG_libfirm /* Define to disable assertion checking. */ #undef NDEBUG + +/* Define if you have the header file. */ +#undef HAVE_GMP_H diff --git a/configure b/configure index 6d26feaff..1c57e2248 100755 --- a/configure +++ b/configure @@ -572,18 +572,18 @@ libfirm_conf_env="${CC+CC='$CC'} ${CFLAGS+CFLAGS='$CFLAGS'} ${CPP+CPP='$CPP'} ${ # Check whether --enable-debug or --disable-debug was given. if test "${enable_debug+set}" = set; then enableval="$enable_debug" - if test "$enableval"=yes; then + if test "$enableval" = yes; then cat >> confdefs.h <<\EOF #define DEBUG_libfirm 1 EOF -fi else cat >> confdefs.h <<\EOF #define NDEBUG 1 EOF fi +fi diff --git a/configure.in b/configure.in index 419494493..3378d20e2 100644 --- a/configure.in +++ b/configure.in @@ -29,10 +29,11 @@ dnl set debugging AC_ARG_ENABLE(debug, [ --enable-debug enable assertions and additional debugging routines], -[if test "$enableval"=yes; then +[if test "$enableval" = yes; then AC_DEFINE(DEBUG_libfirm) -fi], -AC_DEFINE(NDEBUG)) +else + AC_DEFINE(NDEBUG) +fi]) AC_SUBST(enable_debug_libfirm) -- 2.20.1