From 20c0d0bc6ee1998d750dc7e7129fff2bd8dcc677 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Mon, 14 Feb 2005 15:50:37 +0000 Subject: [PATCH] Added support for libcore [r5118] --- config.h.in | 3 +++ configure | 14 ++++++++++++++ configure.in | 9 +++++++++ 3 files changed, 26 insertions(+) diff --git a/config.h.in b/config.h.in index bae0e8c44..b9c3bf541 100644 --- a/config.h.in +++ b/config.h.in @@ -92,6 +92,9 @@ /* define to 1 to enable debugging stuff. */ #undef DEBUG_libfirm +/* define to 1 to use the libcore */ +#undef WITH_LIBCORE + /* Define to disable assertion checking. */ #undef NDEBUG diff --git a/configure b/configure index 2abfb048e..1bf99f8f9 100755 --- a/configure +++ b/configure @@ -834,6 +834,7 @@ Optional Features: --disable-libiberty disable own libiberty parts --disable-hooks disable Firm hooks --enable-statistics enable Firm statistics + --enable-libcore enable libcore debugging --disable-external-effects disable descriptions of external effects in XML Optional Packages: @@ -1394,6 +1395,18 @@ fi fi; +# Check whether --enable-libcore or --disable-libcore was given. +if test "${enable_libcore+set}" = set; then + enableval="$enable_libcore" + if test "$enableval"=yes; then + cat >>confdefs.h <<\_ACEOF +#define WITH_LIBCORE 1 +_ACEOF + +fi +fi; + + echo "$as_me:$LINENO: checking for using external effects in xml2" >&5 echo $ECHO_N "checking for using external effects in xml2... $ECHO_C" >&6 # Check whether --enable-external-effects or --disable-external-effects was given. @@ -5146,6 +5159,7 @@ s,@enable_heapanalysis@,$enable_heapanalysis,;t t s,@enable_backend@,$enable_backend,;t t s,@disable_libiberty@,$disable_libiberty,;t t s,@enable_statistics@,$enable_statistics,;t t +s,@enable_libcore@,$enable_libcore,;t t s,@enable_external_effects@,$enable_external_effects,;t t s,@CC@,$CC,;t t s,@CFLAGS@,$CFLAGS,;t t diff --git a/configure.in b/configure.in index 6680f5b43..cae51fa8a 100644 --- a/configure.in +++ b/configure.in @@ -154,6 +154,15 @@ AC_ARG_ENABLE(statistics, fi]) AC_SUBST(enable_statistics) +dnl enable libcore debugging support +dnl -------------------------------- +AC_ARG_ENABLE(libcore, +[ --enable-libcore enable libcore debugging], +[if test "$enableval"=yes; then + AC_DEFINE(WITH_LIBCORE) +fi]) +AC_SUBST(enable_libcore) + dnl disable external effects in XML dnl ------------------------------- AC_MSG_CHECKING([for using external effects in xml2]) -- 2.20.1