Added support for libcore
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Mon, 14 Feb 2005 15:50:37 +0000 (15:50 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Mon, 14 Feb 2005 15:50:37 +0000 (15:50 +0000)
[r5118]

config.h.in
configure
configure.in

index bae0e8c..b9c3bf5 100644 (file)
@@ -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
 
index 2abfb04..1bf99f8 100755 (executable)
--- 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
index 6680f5b..cae51fa 100644 (file)
@@ -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])