From 43885833e7092cb85a349a49277b3bdfa97eeae5 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Mon, 5 Dec 2005 12:41:11 +0000 Subject: [PATCH] added --enable-wchar-support option [r7049] --- config.h.in | 3 +++ configure | 19 +++++++++++++++++-- configure.in | 10 ++++++++++ 3 files changed, 30 insertions(+), 2 deletions(-) diff --git a/config.h.in b/config.h.in index db55620fb..a6df31c4c 100644 --- a/config.h.in +++ b/config.h.in @@ -95,6 +95,9 @@ /* define to 1 to use the libcore */ #undef WITH_LIBCORE +/* define to 1 to have wchar_t support for identifiers */ +#define FIRM_ENABLE_WCHAR + /* Define to disable assertion checking. */ #undef NDEBUG diff --git a/configure b/configure index 72029ba58..ae8aaeeb3 100755 --- a/configure +++ b/configure @@ -1,5 +1,5 @@ #! /bin/sh -# From configure.in Id: configure.in 2 2005-10-20 14:40:41Z boesler . +# From configure.in Id: configure.in. # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.59 for libfirm 1.3.0. # @@ -309,7 +309,7 @@ ac_includes_default="\ # include #endif" -ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS libfirm_conf_env plugin_subdirs XML2CONFIG enable_debug_libfirm enable_profile_libfirm enable_auto_documentation enable_firm_jni enable_heapanalysis disable_libiberty enable_statistics enable_libcore enable_external_effects CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT AWK LD ac_ct_LD libfirm_cv_prog_ld_r AR TAR RANLIB ac_ct_RANLIB INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S DOXYGEN DOT JAVAC JAVAH CPP EGREP LIBOBJS LTLIBOBJS' +ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS libfirm_conf_env plugin_subdirs XML2CONFIG enable_debug_libfirm enable_profile_libfirm enable_auto_documentation enable_firm_jni enable_heapanalysis disable_libiberty enable_statistics enable_libcore enable_wchar_support enable_external_effects CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT AWK LD ac_ct_LD libfirm_cv_prog_ld_r AR TAR RANLIB ac_ct_RANLIB INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S DOXYGEN DOT JAVAC JAVAH CPP EGREP LIBOBJS LTLIBOBJS' ac_subst_files='' # Initialize some variables set by options. @@ -853,6 +853,7 @@ Optional Features: --disable-inplace-edges disable Firm inplace edges --enable-statistics enable Firm statistics --enable-libcore enable libcore debugging + --enable-wchar-support enable wchar_t support for identifiers (needed for java) --disable-external-effects disable descriptions of external effects in XML Optional Packages: @@ -1586,6 +1587,19 @@ fi fi; +# Check whether --enable-wchar_support or --disable-wchar_support was given. +if test "${enable_wchar_support+set}" = set; then + enableval="$enable_wchar_support" + if test "$enableval"=yes; then + cat >>confdefs.h <<\_ACEOF +#define FIRM_ENABLE_WCHAR 1 +_ACEOF + +fi +fi; + + + echo "$as_me:$LINENO: checking for using external effects in xml2" >&5 echo $ECHO_N "checking for using external effects in xml2... $ECHO_C" >&6 # Check whether --enable-external-effects or --disable-external-effects was given. @@ -5900,6 +5914,7 @@ s,@enable_heapanalysis@,$enable_heapanalysis,;t t s,@disable_libiberty@,$disable_libiberty,;t t s,@enable_statistics@,$enable_statistics,;t t s,@enable_libcore@,$enable_libcore,;t t +s,@enable_wchar_support@,$enable_wchar_support,;t t s,@enable_external_effects@,$enable_external_effects,;t t s,@CC@,$CC,;t t s,@CFLAGS@,$CFLAGS,;t t diff --git a/configure.in b/configure.in index ebc201685..94534326f 100644 --- a/configure.in +++ b/configure.in @@ -197,6 +197,16 @@ AC_ARG_ENABLE(libcore, fi]) AC_SUBST(enable_libcore) +dnl enable wchar_t support for identifiers +dnl -------------------------------- +AC_ARG_ENABLE(wchar_support, +[ --enable-wchar-support enable wchar_t support for identifiers (needed for java)], +[if test "$enableval"=yes; then + AC_DEFINE(FIRM_ENABLE_WCHAR) +fi]) +AC_SUBST(enable_wchar_support) + + dnl disable external effects in XML dnl ------------------------------- AC_MSG_CHECKING([for using external effects in xml2]) -- 2.20.1