From d35e1d190db2773afd249cb50782ebfb6bf5eabf Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Fri, 15 Dec 2006 12:17:42 +0000 Subject: [PATCH] - add descriptions to AC_DEFINE macros in configure.in\n- define _GNU_SOURCE so that the gnu extension obstack_printf is available [r8462] --- config.h.in | 99 ++++++++++++++++++++++++++-------------------------- configure.in | 21 ++++++----- 2 files changed, 62 insertions(+), 58 deletions(-) diff --git a/config.h.in b/config.h.in index f9d0276b3..9fe115ee2 100644 --- a/config.h.in +++ b/config.h.in @@ -1,3 +1,4 @@ +/* config.h.in. Generated from configure.in by autoheader. */ /* * Project: libFIRM * File name: acconfig.h @@ -10,6 +11,27 @@ * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE. */ +/* define to enable debugging stuff. */ +#undef DEBUG_libfirm + +/* Define to disable assertion checking. */ +#undef NDEBUG + +/* Define to value "inline" for gcc inlineing. */ +#undef USE_GCC_INLINE + +/* enable heap analysis */ +#undef DO_HEAPANALYSIS + +/* enable firm hooks */ +#undef FIRM_ENABLE_HOOKS + +/* enable wchar_t support for identifiers */ +#undef FIRM_ENABLE_WCHAR + +/* enable statistics code */ +#undef FIRM_STATISTICS + /* Define to 1 if you have the header file. */ #undef HAVE_ALLOCA_H @@ -19,6 +41,13 @@ /* Define to 1 if you have the header file. */ #undef HAVE_JNI_H +/* Define to 1 if you have the header file. */ +#undef HAVE_LIBXML_PARSER_H + +/* Define to 1 if long double works and has more range or precision than + double. */ +#undef HAVE_LONG_DOUBLE + /* Define to 1 if you have the header file. */ #undef HAVE_MATH_H @@ -67,64 +96,34 @@ /* Define to 1 if you have the ANSI C header files. */ #undef STDC_HEADERS -/* ---------------snip, snip ---------------------- */ - -/* Define to 1 if your processor stores words with the most significant byte - first (like Motorola and SPARC, unlike Intel and VAX). */ -#undef WORDS_BIGENDIAN - -/* Define to 1 if long double works and has more range or precision than - double. */ -#undef HAVE_LONG_DOUBLE - -/* Define to 1 for heap analysis support */ -#undef DO_HEAPANALYSIS - -/* Define the right volatile token */ -#undef volatile - -/* Define the right inline token */ -#undef inline - -/* Define the right const token */ -#undef const - -/* define to 1 to enable debugging stuff. */ -#undef DEBUG_libfirm - -/* define to 1 to use the libcore */ -#undef WITH_LIBCORE +/* use inlining */ +#undef USE_INLINING -/* define to 1 to use the ILP solver */ +/* compile with ilp solver support */ #undef WITH_ILP -/* define to 1 to enable Firm to call the JVM */ +/* compile with jvm support */ #undef WITH_JVM -/* define to 1 to have wchar_t support for identifiers */ -#define FIRM_ENABLE_WCHAR - -/* Define to disable assertion checking. */ -#undef NDEBUG +/* compile with libcore support */ +#undef WITH_LIBCORE -/* undef to disable inlining */ -#undef USE_INLINING +/* Define to 1 if your processor stores words with the most significant byte + first (like Motorola and SPARC, unlike Intel and VAX). */ +#undef WORDS_BIGENDIAN -/* Define to 1 if Firm hooks are activated */ -#undef FIRM_ENABLE_HOOKS +/* we use gnu extensions */ +#undef _GNU_SOURCE -/* Define to 1 if Firm statistics are activated */ -#undef FIRM_STATISTICS +/* Define to empty if `const' does not conform to ANSI C. */ +#undef const -#ifdef USE_INLINING -#define INLINE inline -#else -#define INLINE +/* Define to `__inline__' or `__inline' if that's what the C compiler + calls it, or to nothing if 'inline' is not supported under any name. */ +#ifndef __cplusplus +#undef inline #endif -/* Firm statistics need hooks */ -#ifdef FIRM_STATISTICS -#ifndef FIRM_ENABLE_HOOKS -#define FIRM_ENABLE_HOOKS -#endif -#endif +/* Define to empty if the keyword `volatile' does not work. Warning: valid + code using `volatile' can become incorrect without. Disable with care. */ +#undef volatile diff --git a/configure.in b/configure.in index dbc4d5e53..2919b2f8d 100644 --- a/configure.in +++ b/configure.in @@ -100,7 +100,7 @@ dnl ---------------- AC_ARG_ENABLE(inlining, [ --disable-inlining disable inline C-extension], [if test "$enableval" = yes; then - AC_DEFINE(USE_INLINING) + AC_DEFINE([USE_INLINING], [], [use inlining]) fi], AC_DEFINE(USE_INLINING) ) @@ -144,7 +144,7 @@ AC_ARG_ENABLE(heapanalysis, [ --enable-heapanalysis Compile with heap analysi if test "$enable_heapanalysis" = "no"; then AC_MSG_RESULT([disabled]) else - AC_DEFINE(DO_HEAPANALYSIS) + AC_DEFINE([DO_HEAPANALYSIS], [], [enable heap analysis]) AC_MSG_RESULT([enabled]) fi AC_SUBST(enable_heapanalysis) @@ -164,7 +164,7 @@ dnl ------------- AC_ARG_ENABLE(hooks, [ --disable-hooks disable Firm hooks], [if test "$enableval" = yes; then - AC_DEFINE(FIRM_ENABLE_HOOKS) + AC_DEFINE([FIRM_ENABLE_HOOKS], [], [enable firm hooks]) fi], AC_DEFINE(FIRM_ENABLE_HOOKS) ) @@ -174,7 +174,7 @@ dnl ------------- AC_ARG_ENABLE(statistics, [ --enable-statistics enable Firm statistics], [if test "$enableval"=yes; then - AC_DEFINE(FIRM_STATISTICS) + AC_DEFINE([FIRM_STATISTICS], [], [enable statistics code]) fi]) AC_SUBST(enable_statistics) @@ -183,7 +183,7 @@ dnl -------------------------------- AC_ARG_ENABLE(libcore, [ --enable-libcore enable libcore debugging], [if test "$enableval"=yes; then - AC_DEFINE(WITH_LIBCORE) + AC_DEFINE([WITH_LIBCORE], [], [compile with libcore support]) fi]) AC_SUBST(enable_libcore) @@ -193,7 +193,7 @@ AC_MSG_CHECKING([for ilp solver support]) AC_ARG_ENABLE(ilp, [ --enable-ilp enable ilp solver], [if test "$enableval"=yes; then - AC_DEFINE(WITH_ILP) + AC_DEFINE([WITH_ILP], [], [compile with ilp solver support]) fi]) AC_SUBST(enable_ilp) if test "$enable_ilp" == yes; then @@ -208,7 +208,7 @@ AC_MSG_CHECKING([for jvm support]) AC_ARG_ENABLE(jvm, [ --enable-jvm enable to call the jvm], [if test "$enableval"=yes; then - AC_DEFINE(WITH_JVM) + AC_DEFINE([WITH_JVM], [], [compile with jvm support]) fi]) AC_SUBST(enable_jvm) if test "$enable_jvm" == yes; then @@ -223,7 +223,7 @@ dnl -------------------------------- AC_ARG_ENABLE(wchar_support, [ --enable-wchar-support enable wchar_t support for identifiers (needed for java)], [if test "$enableval"=yes; then - AC_DEFINE(FIRM_ENABLE_WCHAR) + AC_DEFINE([FIRM_ENABLE_WCHAR], [], [enable wchar_t support for identifiers]) fi]) AC_SUBST(enable_wchar_support) @@ -429,6 +429,11 @@ AC_CHECK_FUNC(strerror,, AC_MSG_ERROR("need strerror function") ) +dnl we use the gnu extension obstack_printf +AC_DEFINE([_GNU_SOURCE], [], [we use gnu extensions]) +AC_CHECK_FUNC(strerror,, + AC_MSG_ERROR("need obstack_printf function") +) dnl Error messaging dnl =============== -- 2.20.1