From 804fb6bd7df06d47341ba360f7ea4f3705d29a64 Mon Sep 17 00:00:00 2001 From: dos-reis Date: Mon, 1 Jun 2015 04:05:15 +0000 Subject: Fix typos in configration scripts. --- configure | 75 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 74 insertions(+), 1 deletion(-) (limited to 'configure') diff --git a/configure b/configure index 02910c2f..3b6023da 100755 --- a/configure +++ b/configure @@ -710,6 +710,7 @@ OA_DELAYED_FFI_FALSE OA_DELAYED_FFI_TRUE OA_BUILD_GCL_FALSE OA_BUILD_GCL_TRUE +oa_extra_cxxflags OA_USE_LLVM_FALSE OA_USE_LLVM_TRUE oa_use_llvm @@ -6660,7 +6661,79 @@ else fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -OPENAXIOM_CXX_EXTRA_OPTIONS + +oa_extra_cxxflags= + +opt=-Wno-mismatch-tags # mandatory +accumulator=oa_extra_cxxflags # optional +if test -z $accumulator; then + accumulator=CXXFLAGS +fi +current_options=\$${accumulator} +oa_saved_cxxflags="$CXXFLAGS" +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports \"$opt\"" >&5 +$as_echo_n "checking whether $CXX supports \"$opt\"... " >&6; } +CXXFLAGS="$CXXFLAGS $opt" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + CXXFLAGS=$oa_saved_cxxflags + eval "$accumulator=\"$current_options $opt\"" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + CXXFLAGS=$oa_saved_cxxflags +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + +opt=-Wno-string-plus-int # mandatory +accumulator=oa_extra_cxxflags # optional +if test -z $accumulator; then + accumulator=CXXFLAGS +fi +current_options=\$${accumulator} +oa_saved_cxxflags="$CXXFLAGS" +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports \"$opt\"" >&5 +$as_echo_n "checking whether $CXX supports \"$opt\"... " >&6; } +CXXFLAGS="$CXXFLAGS $opt" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + CXXFLAGS=$oa_saved_cxxflags + eval "$accumulator=\"$current_options $opt\"" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + CXXFLAGS=$oa_saved_cxxflags +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + + + if test x$oa_include_gcl = xyes; then OA_BUILD_GCL_TRUE= OA_BUILD_GCL_FALSE='#' -- cgit v1.2.3