X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=sidebyside;f=configure.in;h=5abc16fde932a6d18e14530ea180f15e286773a8;hb=b4e508eccf76d11287a40698c2484ab592446cee;hp=76f6c553aec83bd6e0f7ac52fb253b00db3f4915;hpb=bf73c9814a0c6f019fe113eb6d4eb278cd420ad9;p=libfirm diff --git a/configure.in b/configure.in index 76f6c553a..5abc16fde 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([]) @@ -134,19 +134,6 @@ if test "$enable_heapanalysis" = "yes"; then fi AC_SUBST([enable_heapanalysis]) -dnl disable linking of libiberty parts (xmalloc, xprintf, obstack, ...) -dnl ---------------------- -AC_ARG_ENABLE([libiberty], -[AS_HELP_STRING([--disable-libiberty], [disable own libiberty parts])], -[enable_libiberty="$enableval"], [enable_libiberty="yes"]) - -if test "$enable_libiberty"=yes; then - disable_libiberty=no -else - disable_libiberty=yes -fi -AC_SUBST(disable_libiberty) - dnl enable Firm hooks dnl ------------- AC_ARG_ENABLE([hooks], @@ -163,7 +150,7 @@ AC_ARG_ENABLE([statistics], [AS_HELP_STRING([--enable-statistics], [enable Firm statistics])], [enable_statistics="$enableval"], [enable_statistics="no"]) -if test "$enable_statistics"=yes; then +if test "$enable_statistics" = yes; then AC_DEFINE([FIRM_STATISTICS], [], [enable statistics code]) fi AC_SUBST([enable_statistics]) @@ -174,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 @@ -193,7 +169,7 @@ AC_ARG_ENABLE([ilp], [AS_HELP_STRING([--enable-ilp], [enable ilp solver])], [enable_ilp="$enableval"], [enable_ilp="no"]) -if test "$enable_ilpd"=yes; then +if test "$enable_ilp" = yes; then AC_DEFINE([WITH_ILP], [], [compile with ilp solver support]) fi AC_SUBST(enable_ilp) @@ -204,7 +180,7 @@ AC_ARG_ENABLE([jvm], [AS_HELP_STRING([--enable-jvm], [enable to call the jvm])], [enable_jvm="$enableval"], [enable_jvm="no"]) -if test "$enable_jvm"=yes; then +if test "$enable_jvm" = yes; then AC_DEFINE([WITH_JVM], [], [compile with jvm support]) fi AC_SUBST(enable_jvm) @@ -215,7 +191,7 @@ AC_ARG_ENABLE([wchar_support], [AS_HELP_STRING([--enable-wchar-support], [enable wchar_t support for identifiers (needed for java)])], [enable_wchar_support="$enableval"], [enable_wchar_support="no"]) -if test "$enable_wchar_support"=yes; then +if test "$enable_wchar_support" = yes; then AC_DEFINE([FIRM_ENABLE_WCHAR], [], [enable wchar_t support for identifiers]) fi AC_SUBST([enable_wchar_support]) @@ -228,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 ==================== @@ -303,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 ======================== @@ -386,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 @@ -413,6 +405,7 @@ dnl Error messaging dnl =============== +dnl Output results AC_CONFIG_FILES([ Makefile MakeRules @@ -437,16 +430,32 @@ AC_CONFIG_FILES([ firmjni/Makefile firmjni/testprograms/Makefile libfirm.doxygen + libfirm.pc ]) 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" @@ -457,6 +466,7 @@ echo " ilp $enable_ilp" echo " jvm $enable_jvm" echo " wide char support $enable_wchar_support" echo " external effects xml $enable_external_effects" +echo " plugins $plugin_subdirs" echo "" dnl FIXME: this is bad