Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 439892 | Differences between
and this patch

Collapse All | Expand All

(-)icu.orig/source/configure.in (-36 lines)
Lines 955-996 Link Here
955
    ;;
955
    ;;
956
esac
956
esac
957
957
958
# GCC >= 4.4 supports UTF16 string literals. The CFLAGS and CXXFLAGS may change in the future.
959
if test "$CHECK_UTF16_STRING_RESULT" = "unknown"; then
960
    if test "$GCC" = yes; then
961
        OLD_CFLAGS="${CFLAGS}"
962
        CFLAGS="${CFLAGS} -std=gnu99"
963
        AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
964
static const char16_t test[] = u"This is a UTF16 literal string.";
965
        ]], [[]])],[CC_UTF16_STRING=1],[CC_UTF16_STRING=0])
966
        if test "$CC_UTF16_STRING" = 1; then
967
            CHECK_UTF16_STRING_RESULT="C only";
968
        else
969
            CFLAGS="${OLD_CFLAGS}"
970
        fi
971
    fi
972
    if test "$GXX" = yes; then
973
        OLD_CXXFLAGS="${CXXFLAGS}"
974
        # -Wno-return-type-c-linkage is desired so that stable ICU API is not warned about.
975
        CXXFLAGS="${CXXFLAGS} -std=c++11"
976
        AC_LANG_PUSH([C++])
977
        AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
978
static const char16_t test[] = u"This is a UTF16 literal string.";
979
        ]], [[]])],[CXX_UTF16_STRING=1],[CXX_UTF16_STRING=0])
980
        AC_LANG_POP([C++])
981
        if test "$CXX_UTF16_STRING" = 1; then
982
            if test "$CC_UTF16_STRING" = 1; then
983
                CHECK_UTF16_STRING_RESULT="available";
984
            else
985
                CHECK_UTF16_STRING_RESULT="C++ only";
986
            fi
987
        else
988
            CXXFLAGS="${OLD_CXXFLAGS}"
989
        fi
990
    fi
991
fi
992
AC_MSG_RESULT($CHECK_UTF16_STRING_RESULT)
993
994
# Enable/disable extras
958
# Enable/disable extras
995
AC_ARG_ENABLE(extras,
959
AC_ARG_ENABLE(extras,
996
	[  --enable-extras         build ICU extras [default=yes]],
960
	[  --enable-extras         build ICU extras [default=yes]],

Return to bug 439892