--enable-statistics option and stat directory added
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Mon, 19 Apr 2004 13:09:55 +0000 (13:09 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Mon, 19 Apr 2004 13:09:55 +0000 (13:09 +0000)
[r2680]

Makefile.in
config.h.in
configure
configure.in

index 6dc97d6..81b0510 100644 (file)
@@ -20,7 +20,7 @@ topdir := .
 # subdirectory under topdir
 subdir := .
 
 # subdirectory under topdir
 subdir := .
 
-subdirs := ir/adt ir/debug ir/tv ir/common ir/ident ir/ir ir/tr ir/ana ir/st
+subdirs := ir/adt ir/debug ir/tv ir/common ir/ident ir/ir ir/tr ir/ana ir/st ir/stat
 
 SOURCES := Makefile.in MakeRules.in MakeTargets\
           aclocal.m4 config.h.in\
 
 SOURCES := Makefile.in MakeRules.in MakeTargets\
           aclocal.m4 config.h.in\
index 6a01e95..3d0c350 100644 (file)
@@ -84,3 +84,6 @@
 /* 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 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 statistics are activated */
+#undef FIRM_STATISTICS
index 9bd10be..981bbdf 100755 (executable)
--- a/configure
+++ b/configure
@@ -829,7 +829,8 @@ Optional Features:
   --enable-profile        enable profiling
   --enable-autodoc        enable auto documentation
   --enable-firmjni        check for tools necesarry to construct a java native interface for Firm
   --enable-profile        enable profiling
   --enable-autodoc        enable auto documentation
   --enable-firmjni        check for tools necesarry to construct a java native interface for Firm
-  --disable-libiberty        disable own libiberty parts
+  --disable-libiberty     disable own libiberty parts
+  --enable-statistics     enable Firm statistics
 
 Optional Packages:
   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
 Optional Packages:
   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
@@ -1207,8 +1208,9 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
 ac_output_file="Makefile MakeRules ir/Makefile ir/adt/Makefile ir/debug/Makefile \
                ir/tv/Makefile ir/common/Makefile ir/ident/Makefile ir/ir/Makefile \
 
 ac_output_file="Makefile MakeRules ir/Makefile ir/adt/Makefile ir/debug/Makefile \
                ir/tv/Makefile ir/common/Makefile ir/ident/Makefile ir/ir/Makefile \
-               ir/ana/Makefile ir/tr/Makefile ir/st/Makefile testprograms/Makefile \
-               firmjni/Makefile firmjni/testprograms/Makefile libfirm.doxygen"
+               ir/ana/Makefile ir/tr/Makefile ir/st/Makefile ir/stat/Makefile \
+               testprograms/Makefile firmjni/Makefile firmjni/testprograms/Makefile \
+               libfirm.doxygen"
 
 ac_config_headers="$ac_config_headers config.h"
 
 
 ac_config_headers="$ac_config_headers config.h"
 
@@ -1311,6 +1313,17 @@ else
 fi;
 
 
 fi;
 
 
+# Check whether --enable-statistics or --disable-statistics was given.
+if test "${enable_statistics+set}" = set; then
+  enableval="$enable_statistics"
+  if test "$enableval"=yes; then
+  cat >>confdefs.h <<\_ACEOF
+#define FIRM_STATISTICS 1
+_ACEOF
+
+fi
+fi;
+
 
 
 ac_ext=c
 
 
 ac_ext=c
@@ -4544,6 +4557,7 @@ s,@enable_profile_libfirm@,$enable_profile_libfirm,;t t
 s,@enable_auto_documentation@,$enable_auto_documentation,;t t
 s,@enable_firm_jni@,$enable_firm_jni,;t t
 s,@disable_libiberty@,$disable_libiberty,;t t
 s,@enable_auto_documentation@,$enable_auto_documentation,;t t
 s,@enable_firm_jni@,$enable_firm_jni,;t t
 s,@disable_libiberty@,$disable_libiberty,;t t
+s,@enable_statistics@,$enable_statistics,;t t
 s,@CC@,$CC,;t t
 s,@CFLAGS@,$CFLAGS,;t t
 s,@LDFLAGS@,$LDFLAGS,;t t
 s,@CC@,$CC,;t t
 s,@CFLAGS@,$CFLAGS,;t t
 s,@LDFLAGS@,$LDFLAGS,;t t
index b7e75b8..af6b976 100644 (file)
@@ -20,8 +20,9 @@ AC_PREREQ(2.50)
 dnl if other files should be generated just add them to ac_output_files
 ac_output_file="Makefile MakeRules ir/Makefile ir/adt/Makefile ir/debug/Makefile \
                ir/tv/Makefile ir/common/Makefile ir/ident/Makefile ir/ir/Makefile \
 dnl if other files should be generated just add them to ac_output_files
 ac_output_file="Makefile MakeRules ir/Makefile ir/adt/Makefile ir/debug/Makefile \
                ir/tv/Makefile ir/common/Makefile ir/ident/Makefile ir/ir/Makefile \
-               ir/ana/Makefile ir/tr/Makefile ir/st/Makefile testprograms/Makefile \
-               firmjni/Makefile firmjni/testprograms/Makefile libfirm.doxygen"
+               ir/ana/Makefile ir/tr/Makefile ir/st/Makefile ir/stat/Makefile \
+               testprograms/Makefile firmjni/Makefile firmjni/testprograms/Makefile \
+               libfirm.doxygen"
 
 dnl generate the config header file
 AC_CONFIG_HEADER(config.h)
 
 dnl generate the config header file
 AC_CONFIG_HEADER(config.h)
@@ -94,13 +95,21 @@ AC_SUBST(enable_firm_jni)
 dnl disable linking of libiberty parts (xmalloc, xprintf, obstack, ...)
 dnl ----------------------
 AC_ARG_ENABLE(libiberty,
 dnl disable linking of libiberty parts (xmalloc, xprintf, obstack, ...)
 dnl ----------------------
 AC_ARG_ENABLE(libiberty,
-[  --disable-libiberty        disable own libiberty parts],
+[  --disable-libiberty     disable own libiberty parts],
 [if test "$enableval"=yes; then
   disable_libiberty_=yes
 fi],
 [disable_libiberty=no])
 AC_SUBST(disable_libiberty)
 
 [if test "$enableval"=yes; then
   disable_libiberty_=yes
 fi],
 [disable_libiberty=no])
 AC_SUBST(disable_libiberty)
 
+dnl enable Firm statistics
+dnl -------------
+AC_ARG_ENABLE(statistics,
+[  --enable-statistics     enable Firm statistics],
+[if test "$enableval"=yes; then
+  AC_DEFINE(FIRM_STATISTICS)
+fi])
+AC_SUBST(enable_statistics)
 
 dnl Checks for programs.
 dnl ====================
 
 dnl Checks for programs.
 dnl ====================