X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=configure.in;h=14c2cc83c45a3e341e6919d24b8beeadc908c233;hb=77758e667d95420460ae94756f64a56171a518f3;hp=5629cbbdb35fb3a0783217e8094c3e69b7fb928a;hpb=cb14acd644837875f5606b68336db6b71aca6962;p=libfirm diff --git a/configure.in b/configure.in index 5629cbbdb..14c2cc83c 100644 --- a/configure.in +++ b/configure.in @@ -2,17 +2,17 @@ dnl \ dnl Project: libFIRM dnl File name: configure.in dnl Purpose: -dnl Author: Till Riedel, Matthias Braun +dnl Author: Matthias Braun dnl CVS-ID: $Id$ dnl Copyright: (c) 2002-2007 University of Karlsruhe dnl Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE. dnl AC_PREREQ([2.54]) AC_REVISION([$Id$]) -AC_INIT([libfirm],[1.3.0],[firm@info.uni-karlsruhe.de]) +AC_INIT([libfirm],[1.9.0],[firm@ipd.info.uni-karlsruhe.de]) dnl generate the config header file -AC_CONFIG_HEADER(config.h) +AC_CONFIG_HEADER([config.h]) AH_TOP([]) @@ -161,17 +161,6 @@ AC_ARG_ENABLE([libcore], [AS_HELP_STRING([--disable-libcore], [disable libcore support])], [enable_libcore="$enableval"],[enable_libcore="yes"]) -if test "$enable_libcore" = yes; then - AC_MSG_CHECKING([for libcore]) - LIBS="$LIBS -lcore" - AC_LINK_IFELSE( - AC_LANG_PROGRAM([#include ], - [lc_opts_init("", 0, "", 1, 0)]), - [], - [AC_MSG_ERROR( - [Couldn't build libcore testprogramm. Check config.log for details])]) - AC_DEFINE([WITH_LIBCORE], [], [compile with libcore support]) -fi AC_SUBST([enable_libcore]) dnl enable ILP solver support @@ -215,6 +204,14 @@ AC_ARG_ENABLE([external-effects], AC_SUBST(enable_external_effects) +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 ==================== @@ -290,6 +287,9 @@ if test "$enable_firm_jni" = yes; then fi fi +dnl check for availability of pkg-config +PKG_PROG_PKG_CONFIG + dnl Checks for header files. dnl ======================== @@ -373,6 +373,11 @@ if test "$enable_external_effects" == "yes"; then fi fi +if test "$enable_libcore" == "yes"; then + PKG_CHECK_MODULES([LIBCORE], [libcore]) + AC_DEFINE([WITH_LIBCORE], [], [define to 1 to use the libcore]) +fi + dnl Checks for typedefs, structures, and compiler characteristics. dnl ============================================================== AC_C_CONST @@ -400,6 +405,7 @@ dnl Error messaging dnl =============== +dnl Output results AC_CONFIG_FILES([ Makefile MakeRules @@ -413,7 +419,6 @@ AC_CONFIG_FILES([ ir/ir/Makefile ir/ana/Makefile ir/tr/Makefile - ir/ana2/Makefile ir/stat/Makefile ir/opt/Makefile ir/external/Makefile @@ -423,6 +428,7 @@ AC_CONFIG_FILES([ testprograms/Makefile firmjni/Makefile firmjni/testprograms/Makefile + include/libfirm/Makefile libfirm.doxygen libfirm.pc ]) @@ -430,11 +436,26 @@ AC_CONFIG_COMMANDS([stamp-h], [touch stamp-h]) dnl snip the lower part of config.h and put it to ir/config/firm_config.h AC_CONFIG_COMMANDS([firm_config.h], [awk -f ${ac_top_srcdir}/filter.awk < ${ac_top_builddir}config.h > ${ac_top_builddir}ir/config/firm_config.h]) + +BACKENDS="" +if test "$enable_backend" == yes; then + BACKENDS="arm ia32 mips ppc32" +fi +AC_SUBST([BACKENDS]) + +if test "$BACKENDS"; then + AC_CONFIG_FILES([ir/be/Makefile]) + for backend in $BACKENDS; do + AC_CONFIG_FILES([ir/be/$backend/Makefile]) + done +fi + 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"