Commit d5d7159c authored by Matthias Braun's avatar Matthias Braun
Browse files

update automake stuff for release

parent 6834cc9e
SUBDIRS = include/libfirm ir
EXTRA_DIST = README COPYING NEWS acinclude.m4
EXTRA_DIST = README COPYING NEWS m4/pkg.m4 m4/ax_cflags_gcc_option.m4
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libfirm.pc
......@@ -8,3 +8,5 @@ pkgconfig_DATA = libfirm.pc
LIBTOOL_DEPS = @LIBTOOL_DEPS@
libtool: $(LIBTOOL_DEPS)
$(SHELL) ./config.status --recheck
ACLOCAL_AMFLAGS = -I m4
......@@ -30,7 +30,9 @@ m4_define([lt_release], [firm_major_version])
AC_INIT([libfirm], [firm_version], [firm@ipd.info.uni-karlsruhe.de])
AC_CONFIG_SRCDIR([ir/common/firm.c])
AM_INIT_AUTOMAKE([foreign dist-bzip2 1.9])
AM_INIT_AUTOMAKE([foreign dist-bzip2 silent-rules 1.11])
AM_SILENT_RULES([yes])
AC_DEFINE([libfirm_VERSION_MAJOR], [firm_major_version], [Firms major version number])
AC_DEFINE([libfirm_VERSION_MINOR], [firm_minor_version], [Firms minor version number])
......@@ -51,6 +53,8 @@ AC_CONFIG_HEADER([config.h])
AC_DEFINE([FIRM_BUILD], [], [Defined when firm library is built])
AC_DEFINE([FIRM_DLL], [], [Define when a dynamically loadable shared library is built])
AC_CONFIG_MACRO_DIR([m4])
dnl Package options
dnl ===============
......@@ -79,24 +83,6 @@ if test "$enable_assert" = no; then
fi
AC_SUBST([enable_assert])
dnl enable ILP solver support
dnl --------------------------------
AC_ARG_ENABLE([ilp],
[AS_HELP_STRING([--enable-ilp], [enable ilp solver])],
[enable_ilp="$enableval"], [enable_ilp="no"])
if test "$enable_ilp" = yes; then
AC_DEFINE([WITH_ILP], [], [enable to build code using ilp solvers])
fi
dnl disable backend
dnl ---------------
AC_ARG_ENABLE([backend],
[AS_HELP_STRING([--disable-backend], [disable backends])],
[enable_backend="$enableval"], [enable_backend="yes"])
AC_SUBST(enable_backend)
dnl Checks for programs.
dnl ====================
......@@ -148,20 +134,4 @@ AC_CONFIG_FILES([
libfirm.pc
])
BACKENDS=""
if test "$enable_backend" = yes; then
BACKENDS="arm ia32 sparc amd64"
fi
AC_SUBST([BACKENDS])
AC_OUTPUT
dnl output summary of firm configuration
echo ""
echo "firm configuration summary:"
echo " backends $BACKENDS"
echo " profiling $enable_profile_libfirm"
echo " debug/verifiers $enable_debug_libfirm"
echo " assertions $enable_assert"
echo " ilp $enable_ilp"
echo ""
libfirmincludedir=$(includedir)/libfirm
libfirminclude_HEADERS = \
analyze_irg_args.h \
be.h \
begin.h \
be.h \
callgraph.h \
cdep.h \
cgana.h \
......@@ -16,11 +16,10 @@ libfirminclude_HEADERS = \
firm.h \
firmstat.h \
firm_types.h \
height.h \
heights.h \
ident.h \
interval_analysis.h \
irarch.h \
ircgcons.h \
ircgopt.h \
irconsconfirm.h \
ircons.h \
......@@ -47,12 +46,12 @@ libfirminclude_HEADERS = \
irpass.h \
irprintf.h \
irprog.h \
irsimpletype.h \
irtypeinfo.h \
irverify.h \
lowering.h \
nodeops.h \
opcodes.h \
rta.h \
seqnumbers.h \
structure.h \
timing.h \
trouts.h \
......
......@@ -14,6 +14,7 @@ INCLUDES += \
-I$(top_srcdir)/ir/debug \
-I$(top_srcdir)/ir/ident \
-I$(top_srcdir)/ir/ir \
-I$(top_srcdir)/ir/kaps \
-I$(top_srcdir)/ir/libcore \
-I$(top_srcdir)/ir/lower \
-I$(top_srcdir)/ir/net \
......@@ -49,8 +50,7 @@ libfirm_la_SOURCES = \
ana/dfs.c \
ana/execfreq.c \
ana/execution_frequency.c \
ana/field_temperature.c \
ana/height.c \
ana/heights.c \
ana/interval_analysis.c \
ana/irbackedge.c \
ana/ircfscc.c \
......@@ -63,13 +63,13 @@ libfirm_la_SOURCES = \
ana/irmemory.c \
ana/irouts.c \
ana/irscc.c \
ana/irsimpletype.c \
ana/irtypeinfo.c \
ana/rta.c \
ana/structure.c \
ana/trouts.c \
ana/vrp.c \
be/beabi.c \
be/beabihelper.c \
be/bearch.c \
be/beblocksched.c \
be/bechordal.c \
......@@ -79,21 +79,17 @@ libfirm_la_SOURCES = \
be/becopyheur2.c \
be/becopyheur4.c \
be/becopyheur.c \
be/becopyilp1.c \
be/becopyilp2.c \
be/becopyilp.c \
be/becopyopt.c \
be/becopypbqp.c \
be/becopystat.c \
be/bedbgout.c \
be/bedomfront.c \
be/bedump_minir.c \
be/beemitter_binary.c \
be/beemitter.c \
be/beflags.c \
be/begnuas.c \
be/beifg.c \
be/beilpsched.c \
be/beinfo.c \
be/beinsn.c \
be/beirg.c \
......@@ -109,18 +105,13 @@ libfirm_la_SOURCES = \
be/bepbqpcoloring.c \
be/bepeephole.c \
be/beprefalloc.c \
be/bepressurestat.c \
be/bera.c \
be/besched.c \
be/beschedmris.c \
be/beschednormal.c \
be/beschedrand.c \
be/beschedregpress.c \
be/beschedrss.c \
be/beschedtrace.c \
be/beschedtrivial.c \
be/bespillbelady2.c \
be/bespillbelady3.c \
be/bespillbelady.c \
be/bespill.c \
be/bespilldaemel.c \
......@@ -129,6 +120,7 @@ libfirm_la_SOURCES = \
be/bessaconstr.c \
be/bessadestr.c \
be/bestabs.c \
be/bestack.c \
be/bestat.c \
be/bestate.c \
be/betranshlp.c \
......@@ -143,13 +135,11 @@ libfirm_la_SOURCES = \
common/timing.c \
debug/dbginfo.c \
debug/debugger.c \
debug/seqnumbers.c \
ident/ident.c \
ident/mangle.c \
ir/instrument.c \
ir/irarch.c \
ir/irargs.c \
ir/ircgcons.c \
ir/ircons.c \
ir/irdump.c \
ir/irdumptxt.c \
......@@ -176,11 +166,9 @@ libfirm_la_SOURCES = \
ir/irprofile.c \
ir/irprog.c \
ir/irssacons.c \
ir/irvrfy.c \
ir/irverify.c \
ir/valueset.c \
libcore/lc_appendable.c \
libcore/lc_config_lexer.c \
libcore/lc_config_parser.c \
libcore/lc_opts.c \
libcore/lc_opts_enum.c \
libcore/lc_printf.c \
......@@ -233,19 +221,30 @@ libfirm_la_SOURCES = \
stat/pattern_dmp.c \
stat/stat_dmp.c \
stat/statev.c \
stat/stat_liveness.c \
stat/stat_timing.c \
tr/compound_path.c \
tr/entity.c \
tr/tpop.c \
tr/tr_inheritance.c \
tr/trvrfy.c \
tr/trverify.c \
tr/type.c \
tr/type_finalization.c \
tr/typewalk.c \
tv/fltcalc.c \
tv/strcalc.c \
tv/tv.c
tv/tv.c \
kaps/brute_force.c \
kaps/bucket.c \
kaps/heuristical.c \
kaps/heuristical_co.c \
kaps/heuristical_co_ld.c \
kaps/html_dumper.c \
kaps/kaps.c \
kaps/matrix.c \
kaps/optimal.c \
kaps/pbqp_edge.c \
kaps/pbqp_node.c \
kaps/vector.c
EXTRA_DIST = \
adt/array_t.h \
......@@ -268,6 +267,7 @@ EXTRA_DIST = \
be/be_t.h \
be/be_types.h \
be/beabi.h \
be/beabihelper.h \
be/bearch.h \
be/beblocksched.h \
be/bechordal.h \
......@@ -277,16 +277,13 @@ EXTRA_DIST = \
be/becopyilp_t.h \
be/becopyopt.h \
be/becopyopt_t.h \
be/becopypbqp.h \
be/becopystat.h \
be/bedomfront.h \
be/bedump_minir.h \
be/beemitter.h \
be/beemitter_binary.h \
be/beflags.h \
be/begnuas.h \
be/beifg.h \
be/beilpsched.h \
be/beinfo.h \
be/beinsn_t.h \
be/beintlive_t.h \
......@@ -298,27 +295,25 @@ EXTRA_DIST = \
be/beloopana.h \
be/belower.h \
be/bemachine.h \
be/benode.h \
be/bemodule.h \
be/bemodule_t.h \
be/besched.h \
be/benode.h \
be/bepbqpcoloring.h \
be/bepeephole.h \
be/bepressurestat.h \
be/bera.h \
be/beschedmris.h \
be/beutil.h \
be/beschedrss.h \
be/besched.h \
be/bespill.h \
be/bespillslots.h \
be/bespillutil.h \
be/bessaconstr.h \
be/bessadestr.h \
be/bestack.h \
be/bestat.h \
be/bestate.h \
be/bestatevent.h \
be/betranshlp.h \
be/beuses.h \
be/beutil.h \
be/beverify.h \
common/debug.h \
common/error.h \
......@@ -336,44 +331,38 @@ EXTRA_DIST = \
ir/irflag_t.def \
ir/irflag_t.h \
ir/irgraph_t.h \
ir/irlinkednodemap.h \
ir/irlinkednodeset.h \
ir/irmode_t.h \
ir/irnode_t.h \
ir/irnodemap.h \
ir/irnodeset.h \
ir/irop_t.h \
ir/iropt_t.h \
ir/irpass_t.h \
ir/irphase.h \
ir/irphase_t.h \
ir/irprintf_t.h \
ir/irprofile.h \
ir/irprog_t.h \
ir/irlinkednodemap.h \
ir/irlinkednodeset.h \
ir/irnodemap.h \
ir/irnodeset.h \
ir/irpass_t.h \
ir/irphase.h \
ir/irprofile.h \
ir/irtypes.h \
ir/irvrfy_t.h \
ir/irverify_t.h \
ir/valueset.h \
ir/gen_irnode.h \
libcore/do_bisonflex.sh \
libcore/lc_appendable.h \
libcore/lc_common_t.h \
libcore/lc_config.h \
libcore/lc_config_lexer.l \
libcore/lc_config_parser.h \
libcore/lc_config_parser.y \
libcore/lc_defines.h \
libcore/lc_opts.h \
libcore/lc_defines.h \
libcore/lc_opts_enum.h \
libcore/lc_opts_t.h \
libcore/lc_parser_t.h \
libcore/lc_printf.h \
libcore/lc_printf_arg_types.def \
opt/iropt_dbg.h \
opt/opt_confirms.h \
opt/opt_init.h \
opt/opt_polymorphy.h \
opt/reassoc_t.h \
opt/scalar_replace.h \
opt/iropt_dbg.h \
opt/opt_init.h \
stat/counter.h \
stat/dags.h \
stat/firmstat_t.h \
......@@ -389,6 +378,24 @@ EXTRA_DIST = \
tv/fltcalc.h \
tv/strcalc.h \
tv/tv_t.h \
kaps/brute_force.h \
kaps/bucket.h \
kaps/bucket_t.h \
kaps/heuristical.h \
kaps/heuristical_co.h \
kaps/heuristical_co_ld.h \
kaps/html_dumper.h \
kaps/kaps.h \
kaps/matrix.h \
kaps/matrix_t.h \
kaps/optimal.h \
kaps/pbqp_edge.h \
kaps/pbqp_edge_t.h \
kaps/pbqp_node.h \
kaps/pbqp_node_t.h \
kaps/pbqp_t.h \
kaps/vector.h \
kaps/vector_t.h \
ir/gen_ir_cons.c.inl \
ir/gen_irnode.c.inl \
ir/gen_irop.c.inl \
......@@ -402,7 +409,6 @@ EXTRA_DIST = \
be/scripts/generate_regalloc_if.pl
# ia32 backend
ia32_sources = \
be/ia32/bearch_ia32.c \
be/ia32/ia32_address_mode.c \
......@@ -412,11 +418,9 @@ ia32_sources = \
be/ia32/ia32_finish.c \
be/ia32/ia32_fpu.c \
be/ia32/ia32_intrinsics.c \
be/ia32/ia32_map_regs.c \
be/ia32/ia32_new_nodes.c \
be/ia32/ia32_optimize.c \
be/ia32/ia32_transform.c \
be/ia32/ia32_util.c \
be/ia32/ia32_x87.c
ia32_built_sources = \
......@@ -441,13 +445,11 @@ EXTRA_DIST += \
be/ia32/ia32_emitter.h \
be/ia32/ia32_finish.h \
be/ia32/ia32_fpu.h \
be/ia32/ia32_map_regs.h \
be/ia32/ia32_new_nodes.h \
be/ia32/ia32_nodes_attr.h \
be/ia32/ia32_optimize.h \
be/ia32/ia32_spec.pl \
be/ia32/ia32_transform.h \
be/ia32/ia32_util.h \
be/ia32/ia32_x87.h
$(srcdir)/be/ia32/gen_ia32_new_nodes.c.inl $(srcdir)/be/ia32/gen_ia32_new_nodes.h: \
......@@ -470,10 +472,11 @@ $(srcdir)/be/ia32/gen_ia32_regalloc_if.c $(srcdir)/be/ia32/gen_ia32_regalloc_if.
arm_sources = \
be/arm/arm_emitter.c \
be/arm/arm_map_regs.c \
be/arm/arm_new_nodes.c \
be/arm/arm_optimize.c \
be/arm/arm_transform.c \
be/arm/arm_map_regs.c \
be/arm/arm_cconv.c \
be/arm/bearch_arm.c
arm_built_sources = \
be/arm/gen_arm_emitter.c \
......@@ -491,13 +494,13 @@ libfirm_la_SOURCES += $(arm_sources) $(arm_built_sources)
EXTRA_DIST += \
be/arm/arm_emitter.h \
be/arm/arm_map_regs.h \
be/arm/arm_new_nodes.h \
be/arm/arm_nodes_attr.h \
be/arm/arm_optimize.h \
be/arm/arm_spec.pl \
be/arm/arm_transform.h \
be/arm/bearch_arm.h \
be/arm/arm_map_regs.h \
be/arm/arm_cconv.h \
be/arm/bearch_arm_t.h
$(srcdir)/be/arm/gen_arm_new_nodes.c.inl $(srcdir)/be/arm/gen_arm_new_nodes.h: \
......@@ -520,9 +523,10 @@ $(srcdir)/be/arm/gen_arm_regalloc_if.c $(srcdir)/be/arm/gen_arm_regalloc_if.h: \
sparc_sources = \
be/sparc/sparc_emitter.c \
be/sparc/sparc_map_regs.c \
be/sparc/sparc_new_nodes.c \
be/sparc/sparc_transform.c \
be/sparc/sparc_cconv.c \
be/sparc/sparc_finish.c \
be/sparc/bearch_sparc.c
sparc_built_sources = \
be/sparc/gen_sparc_emitter.c \
......@@ -539,12 +543,11 @@ libfirm_la_SOURCES += $(sparc_sources) $(sparc_built_sources)
EXTRA_DIST += \
be/sparc/sparc_emitter.h \
be/sparc/sparc_map_regs.h \
be/sparc/sparc_new_nodes.h \
be/sparc/sparc_nodes_attr.h \
be/sparc/sparc_spec.pl \
be/sparc/sparc_cconv.h \
be/sparc/sparc_transform.h \
be/sparc/bearch_sparc.h \
be/sparc/bearch_sparc_t.h
$(srcdir)/be/sparc/gen_sparc_new_nodes.c.inl $(srcdir)/be/sparc/gen_sparc_new_nodes.h: \
......
......@@ -3,7 +3,7 @@
# Little helper script used to create the file list for Makefile.am
# automatically
DIRS="adt ana be common debug ident ir libcore lower obstack opt stat tr tv"
DIRS="adt ana be common debug ident ir libcore lower obstack opt stat tr tv kaps"
echo "libfirm_la_SOURCES = \\" > FILELIST
for dir in $DIRS; do
......
# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
#
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a
# configuration script generated by Autoconf, you may include it under
# the same distribution terms that you use for the rest of that program.
# PKG_PROG_PKG_CONFIG([MIN-VERSION])
# ----------------------------------
AC_DEFUN([PKG_PROG_PKG_CONFIG],
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
fi
if test -n "$PKG_CONFIG"; then
_pkg_min_version=m4_default([$1], [0.9.0])
AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
AC_MSG_RESULT([yes])
else
AC_MSG_RESULT([no])
PKG_CONFIG=""
fi
fi[]dnl
])# PKG_PROG_PKG_CONFIG
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
#
# Check to see whether a particular set of modules exists. Similar
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
#
#
# Similar to PKG_CHECK_MODULES, make sure that the first instance of
# this or PKG_CHECK_MODULES is called, or make sure to call
# PKG_CHECK_EXISTS manually
# --------------------------------------------------------------
AC_DEFUN([PKG_CHECK_EXISTS],
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
if test -n "$PKG_CONFIG" && \
AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
m4_ifval([$2], [$2], [:])
m4_ifvaln([$3], [else
$3])dnl
fi])
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
# ---------------------------------------------
m4_define([_PKG_CONFIG],
[if test -n "$PKG_CONFIG"; then
if test -n "$$1"; then
pkg_cv_[]$1="$$1"
else
PKG_CHECK_EXISTS([$3],
[pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
[pkg_failed=yes])
fi
else
pkg_failed=untried
fi[]dnl
])# _PKG_CONFIG
# _PKG_SHORT_ERRORS_SUPPORTED
# -----------------------------
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
_pkg_short_errors_supported=yes
else
_pkg_short_errors_supported=no
fi[]dnl
])# _PKG_SHORT_ERRORS_SUPPORTED
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
# [ACTION-IF-NOT-FOUND])
#
#
# Note that if there is a possibility the first call to
# PKG_CHECK_MODULES might not happen, you should be sure to include an
# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
#
#
# --------------------------------------------------------------
AC_DEFUN([PKG_CHECK_MODULES],
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
pkg_failed=no
AC_MSG_CHECKING([for $1])
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
and $1[]_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.])
if test $pkg_failed = yes; then
_PKG_SHORT_ERRORS_SUPPORTED
if test $_pkg_short_errors_supported = yes; then
$1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"`
else
$1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
fi
# Put the nasty error message in config.log where it belongs
echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
ifelse([$4], , [AC_MSG_ERROR(dnl
[Package requirements ($2) were not met:
$$1_PKG_ERRORS
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
_PKG_TEXT
])],
[$4])
elif test $pkg_failed = untried; then
ifelse([$4], , [AC_MSG_FAILURE(dnl
[The pkg-config script could not be found or is too old. Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.
_PKG_TEXT
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.])],
[$4])
else
$1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
$1[]_LIBS=$pkg_cv_[]$1[]_LIBS
AC_MSG_RESULT([yes])
ifelse([$3], , :, [$3])
fi[]dnl
])# PKG_CHECK_MODULES
# ===========================================================================
# http://www.gnu.org/software/autoconf-archive/ax_cflags_gcc_option.html
# ===========================================================================
......@@ -165,11 +8,11 @@ fi[]dnl
#
# DESCRIPTION
#
# AX_CFLAGS_GCC_OPTION(-fvomit-frame) would show a message as like
# "checking CFLAGS for gcc -fvomit-frame ... yes" and adds the optionflag
# to CFLAGS if it is understood. You can override the shellvar-default of
# CFLAGS of course. The order of arguments stems from the explicit macros
# like AX_CFLAGS_WARN_ALL.
# AX_CFLAGS_GCC_OPTION(-fomit-frame-pointer) would show a message like
# "checking CFLAGS for gcc -fomit-frame-pointer ... yes" and add the
# optionflag to CFLAGS if it is understood. You can override the
# shellvar-default of CFLAGS of course. The order of arguments stems from
# the explicit macros like AX_CFLAGS_WARN_ALL.
#
# The cousin AX_CXXFLAGS_GCC_OPTION would check for an option to add to
# CXXFLAGS - and it uses the autoconf setup for C++ instead of C (since it
......@@ -205,7 +48,7 @@ fi[]dnl
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# Free Software Foundation; either version 3 of the License, or (at your
# option) any later version.