Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
08bee9fa
Commit
08bee9fa
authored
Apr 19, 2004
by
Michael Beck
Browse files
--enable-statistics option and stat directory added
[r2680]
parent
10d9351d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Makefile.in
View file @
08bee9fa
...
...
@@ -20,7 +20,7 @@ topdir := .
# 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
\
...
...
config.h.in
View file @
08bee9fa
...
...
@@ -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 Firm statistics are activated */
#undef FIRM_STATISTICS
configure
View file @
08bee9fa
...
...
@@ -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
--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]
...
...
@@ -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
\
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"
...
...
@@ -1311,6 +1313,17 @@ else
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
...
...
@@ -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_statistics@,
$enable_statistics
,;t t
s,@CC@,
$CC
,;t t
s,@CFLAGS@,
$CFLAGS
,;t t
s,@LDFLAGS@,
$LDFLAGS
,;t t
...
...
configure.in
View file @
08bee9fa
...
...
@@ -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 \
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)
...
...
@@ -94,13 +95,21 @@ AC_SUBST(enable_firm_jni)
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)
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 ====================
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment