< prev index next >

closed/autoconf/generated-configure.sh

Print this page




 722 USE_EXTERNAL_LCMS
 723 LCMS_LIBS
 724 LCMS_CFLAGS
 725 USE_EXTERNAL_LIBGIF
 726 USE_EXTERNAL_LIBJPEG
 727 ALSA_LIBS
 728 ALSA_CFLAGS
 729 FREETYPE_BUNDLE_LIB_PATH
 730 FREETYPE_LIBS
 731 FREETYPE_CFLAGS
 732 CUPS_CFLAGS
 733 X_EXTRA_LIBS
 734 X_LIBS
 735 X_PRE_LIBS
 736 X_CFLAGS
 737 XMKMF
 738 FIXPATH
 739 ZIP_DEBUGINFO_FILES
 740 ENABLE_DEBUG_SYMBOLS
 741 CFLAGS_WARNINGS_ARE_ERRORS

 742 COMPILER_SUPPORTS_TARGET_BITS_FLAG
 743 ZERO_ARCHFLAG
 744 LDFLAGS_CXX_JDK
 745 LDFLAGS_JDKEXE_SUFFIX
 746 LDFLAGS_JDKLIB_SUFFIX
 747 LDFLAGS_JDKEXE
 748 LDFLAGS_JDKLIB
 749 CXXFLAGS_JDKEXE
 750 CXXFLAGS_JDKLIB
 751 CFLAGS_JDKEXE
 752 CFLAGS_JDKLIB
 753 MACOSX_VERSION_MIN
 754 LEGACY_EXTRA_LDFLAGS
 755 LEGACY_EXTRA_CXXFLAGS
 756 LEGACY_EXTRA_CFLAGS
 757 CXX_O_FLAG_NONE
 758 CXX_O_FLAG_DEBUG
 759 CXX_O_FLAG_NORM
 760 CXX_O_FLAG_HI
 761 CXX_O_FLAG_HIGHEST


3891 
3892 
3893 
3894 
3895 
3896 
3897 
3898 
3899 
3900 
3901 
3902 
3903 
3904 
3905 
3906 
3907 
3908 
3909 
3910 #
3911 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
3912 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3913 #
3914 # This code is free software; you can redistribute it and/or modify it
3915 # under the terms of the GNU General Public License version 2 only, as
3916 # published by the Free Software Foundation.  Oracle designates this
3917 # particular file as subject to the "Classpath" exception as provided
3918 # by Oracle in the LICENSE file that accompanied this code.
3919 #
3920 # This code is distributed in the hope that it will be useful, but WITHOUT
3921 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3922 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3923 # version 2 for more details (a copy is included in the LICENSE file that
3924 # accompanied this code).
3925 #
3926 # You should have received a copy of the GNU General Public License version
3927 # 2 along with this work; if not, write to the Free Software Foundation,
3928 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3929 #
3930 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3931 # or visit www.oracle.com if you need additional information or have any


4701 #
4702 
4703 
4704 
4705 
4706 
4707 
4708 ###############################################################################
4709 #
4710 # Status and warnings for the custom bits of the configuration.
4711 #
4712 
4713 
4714 
4715 
4716 
4717 
4718 
4719 
4720 # Do not change or remove the following line, it is needed for consistency checks:
4721 DATE_WHEN_GENERATED=1425462435
4722 
4723 ###############################################################################
4724 #
4725 # Initialization / Boot-strapping
4726 #
4727 # The bootstrapping process needs to solve the "chicken or the egg" problem,
4728 # thus it jumps back and forth, each time gaining something needed later on.
4729 #
4730 ###############################################################################
4731 
4732 # If we are requested to print additional help, do that and then exit.
4733 # This must be the very first call.
4734 
4735   if test "x$CONFIGURE_PRINT_TOOLCHAIN_LIST" != x; then
4736     $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
4737     $PRINTF "Which are valid to use depends on the build platform.\n"
4738     for toolchain in $VALID_TOOLCHAINS_all; do
4739       # Use indirect variable referencing
4740       toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain
4741       TOOLCHAIN_DESCRIPTION=${!toolchain_var_name}


43020   esac
43021 
43022 
43023 
43024 
43025 
43026 
43027 
43028 
43029 
43030 
43031 
43032 
43033 
43034   # Special extras...
43035   if test "x$TOOLCHAIN_TYPE" = xsolstudio; then
43036     if test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then
43037       CFLAGS_JDKLIB_EXTRA="${CFLAGS_JDKLIB_EXTRA} -xregs=no%appl"
43038       CXXFLAGS_JDKLIB_EXTRA="${CXXFLAGS_JDKLIB_EXTRA} -xregs=no%appl"
43039     fi


43040   elif test "x$TOOLCHAIN_TYPE" = xxlc; then
43041     LDFLAGS_JDK="${LDFLAGS_JDK} -q64 -brtl -bnolibpath -liconv -bexpall"
43042     CFLAGS_JDK="${CFLAGS_JDK} -qchars=signed -q64 -qfullpath -qsaveopt"
43043     CXXFLAGS_JDK="${CXXFLAGS_JDK} -qchars=signed -q64 -qfullpath -qsaveopt"
43044   fi
43045 
43046   if test "x$CFLAGS" != "x${ADDED_CFLAGS}"; then
43047     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&5
43048 $as_echo "$as_me: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&2;}
43049   fi
43050 
43051   if test "x$CXXFLAGS" != "x${ADDED_CXXFLAGS}"; then
43052     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&5
43053 $as_echo "$as_me: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&2;}
43054   fi
43055 
43056   if test "x$LDFLAGS" != "x${ADDED_LDFLAGS}"; then
43057     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&5
43058 $as_echo "$as_me: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&2;}
43059   fi


43086   # Hotspot needs these set in their legacy form
43087   LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $with_extra_cflags"
43088   LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $with_extra_cxxflags"
43089   LEGACY_EXTRA_LDFLAGS="$LEGACY_EXTRA_LDFLAGS $with_extra_ldflags"
43090 
43091 
43092 
43093 
43094 
43095   ###############################################################################
43096   #
43097   # Now setup the CFLAGS and LDFLAGS for the JDK build.
43098   # Later we will also have CFLAGS and LDFLAGS for the hotspot subrepo build.
43099   #
43100 
43101   # Setup compiler/platform specific flags into
43102   #    CFLAGS_JDK    - C Compiler flags
43103   #    CXXFLAGS_JDK  - C++ Compiler flags
43104   #    COMMON_CCXXFLAGS_JDK - common to C and C++
43105   if test "x$TOOLCHAIN_TYPE" = xgcc; then
43106     COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -Wall -Wno-parentheses -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \
43107         -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE"
43108     case $OPENJDK_TARGET_CPU_ARCH in
43109       arm )
43110         # on arm we don't prevent gcc to omit frame pointer but do prevent strict aliasing
43111         CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing"
43112         ;;
43113       ppc )
43114         # on ppc we don't prevent gcc to omit frame pointer but do prevent strict aliasing
43115         CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing"
43116         ;;
43117       * )
43118         COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer"
43119         CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing"
43120         ;;
43121     esac
43122   elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then
43123     COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -DTRACING -DMACRO_MEMSYS_OPS -DBREAKPTS"
43124     if test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then
43125       COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DcpuIntel -Di586 -D$OPENJDK_TARGET_CPU_LEGACY_LIB"
43126       CFLAGS_JDK="$CFLAGS_JDK -erroff=E_BAD_PRAGMA_PACK_VALUE"
43127     fi
43128 
43129     CFLAGS_JDK="$CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa -v -mt -W0,-noglobal"
43130     CXXFLAGS_JDK="$CXXFLAGS_JDK -errtags=yes +w -mt -features=no%except -DCC_NOEX -norunpath -xnolib"
43131   elif test "x$TOOLCHAIN_TYPE" = xxlc; then
43132     CFLAGS_JDK="$CFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC"
43133     CXXFLAGS_JDK="$CXXFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC"
43134   elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
43135     COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK \
43136         -Zi -MD -Zc:wchar_t- -W3 -wd4800 \
43137         -DWIN32_LEAN_AND_MEAN \
43138         -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE \
43139         -DWIN32 -DIAL"
43140     if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
43141       COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_AMD64_ -Damd64"
43142     else
43143       COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_X86_ -Dx86"
43144     fi
43145     # If building with Visual Studio 2010, we can still use _STATIC_CPPLIB to
43146     # avoid bundling msvcpNNN.dll. Doesn't work with newer versions of visual


43506   ac_ext=cpp
43507 ac_cpp='$CXXCPP $CPPFLAGS'
43508 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43509 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43510 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43511 
43512   CXXFLAGS="$saved_cxxflags"
43513 
43514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5
43515 $as_echo "$supports" >&6; }
43516   if test "x$supports" = "xyes" ; then
43517     COMPILER_SUPPORTS_TARGET_BITS_FLAG=true
43518   else
43519     COMPILER_SUPPORTS_TARGET_BITS_FLAG=false
43520   fi
43521 
43522 
43523 
43524   case "${TOOLCHAIN_TYPE}" in
43525     microsoft)

43526       CFLAGS_WARNINGS_ARE_ERRORS="-WX"
43527       ;;
43528     solstudio)

43529       CFLAGS_WARNINGS_ARE_ERRORS="-errtags -errwarn=%all"
43530       ;;
43531     gcc)








































































43532       CFLAGS_WARNINGS_ARE_ERRORS="-Werror"
43533       ;;
43534     clang)

43535       CFLAGS_WARNINGS_ARE_ERRORS="-Werror"
43536       ;;
43537   esac

43538 
43539 
43540 
43541 # Setup debug symbols (need objcopy from the toolchain for that)
43542 
43543   #
43544   # ENABLE_DEBUG_SYMBOLS
43545   # This must be done after the toolchain is setup, since we're looking at objcopy.
43546   #
43547   # Check whether --enable-debug-symbols was given.
43548 if test "${enable_debug_symbols+set}" = set; then :
43549   enableval=$enable_debug_symbols;
43550 fi
43551 
43552 
43553   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should generate debug symbols" >&5
43554 $as_echo_n "checking if we should generate debug symbols... " >&6; }
43555 
43556   if test "x$enable_debug_symbols" = "xyes" && test "x$OBJCOPY" = x; then
43557     # explicit enabling of enable-debug-symbols and can't find objcopy




 722 USE_EXTERNAL_LCMS
 723 LCMS_LIBS
 724 LCMS_CFLAGS
 725 USE_EXTERNAL_LIBGIF
 726 USE_EXTERNAL_LIBJPEG
 727 ALSA_LIBS
 728 ALSA_CFLAGS
 729 FREETYPE_BUNDLE_LIB_PATH
 730 FREETYPE_LIBS
 731 FREETYPE_CFLAGS
 732 CUPS_CFLAGS
 733 X_EXTRA_LIBS
 734 X_LIBS
 735 X_PRE_LIBS
 736 X_CFLAGS
 737 XMKMF
 738 FIXPATH
 739 ZIP_DEBUGINFO_FILES
 740 ENABLE_DEBUG_SYMBOLS
 741 CFLAGS_WARNINGS_ARE_ERRORS
 742 DISABLE_WARNING_PREFIX
 743 COMPILER_SUPPORTS_TARGET_BITS_FLAG
 744 ZERO_ARCHFLAG
 745 LDFLAGS_CXX_JDK
 746 LDFLAGS_JDKEXE_SUFFIX
 747 LDFLAGS_JDKLIB_SUFFIX
 748 LDFLAGS_JDKEXE
 749 LDFLAGS_JDKLIB
 750 CXXFLAGS_JDKEXE
 751 CXXFLAGS_JDKLIB
 752 CFLAGS_JDKEXE
 753 CFLAGS_JDKLIB
 754 MACOSX_VERSION_MIN
 755 LEGACY_EXTRA_LDFLAGS
 756 LEGACY_EXTRA_CXXFLAGS
 757 LEGACY_EXTRA_CFLAGS
 758 CXX_O_FLAG_NONE
 759 CXX_O_FLAG_DEBUG
 760 CXX_O_FLAG_NORM
 761 CXX_O_FLAG_HI
 762 CXX_O_FLAG_HIGHEST


3892 
3893 
3894 
3895 
3896 
3897 
3898 
3899 
3900 
3901 
3902 
3903 
3904 
3905 
3906 
3907 
3908 
3909 
3910 
3911 #
3912 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
3913 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3914 #
3915 # This code is free software; you can redistribute it and/or modify it
3916 # under the terms of the GNU General Public License version 2 only, as
3917 # published by the Free Software Foundation.  Oracle designates this
3918 # particular file as subject to the "Classpath" exception as provided
3919 # by Oracle in the LICENSE file that accompanied this code.
3920 #
3921 # This code is distributed in the hope that it will be useful, but WITHOUT
3922 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3923 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3924 # version 2 for more details (a copy is included in the LICENSE file that
3925 # accompanied this code).
3926 #
3927 # You should have received a copy of the GNU General Public License version
3928 # 2 along with this work; if not, write to the Free Software Foundation,
3929 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3930 #
3931 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3932 # or visit www.oracle.com if you need additional information or have any


4702 #
4703 
4704 
4705 
4706 
4707 
4708 
4709 ###############################################################################
4710 #
4711 # Status and warnings for the custom bits of the configuration.
4712 #
4713 
4714 
4715 
4716 
4717 
4718 
4719 
4720 
4721 # Do not change or remove the following line, it is needed for consistency checks:
4722 DATE_WHEN_GENERATED=1425658225
4723 
4724 ###############################################################################
4725 #
4726 # Initialization / Boot-strapping
4727 #
4728 # The bootstrapping process needs to solve the "chicken or the egg" problem,
4729 # thus it jumps back and forth, each time gaining something needed later on.
4730 #
4731 ###############################################################################
4732 
4733 # If we are requested to print additional help, do that and then exit.
4734 # This must be the very first call.
4735 
4736   if test "x$CONFIGURE_PRINT_TOOLCHAIN_LIST" != x; then
4737     $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
4738     $PRINTF "Which are valid to use depends on the build platform.\n"
4739     for toolchain in $VALID_TOOLCHAINS_all; do
4740       # Use indirect variable referencing
4741       toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain
4742       TOOLCHAIN_DESCRIPTION=${!toolchain_var_name}


43021   esac
43022 
43023 
43024 
43025 
43026 
43027 
43028 
43029 
43030 
43031 
43032 
43033 
43034 
43035   # Special extras...
43036   if test "x$TOOLCHAIN_TYPE" = xsolstudio; then
43037     if test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then
43038       CFLAGS_JDKLIB_EXTRA="${CFLAGS_JDKLIB_EXTRA} -xregs=no%appl"
43039       CXXFLAGS_JDKLIB_EXTRA="${CXXFLAGS_JDKLIB_EXTRA} -xregs=no%appl"
43040     fi
43041     CFLAGS_JDKLIB_EXTRA="${CFLAGS_JDKLIB_EXTRA} -errtags=yes -errfmt"
43042     CXXFLAGS_JDKLIB_EXTRA="${CXXFLAGS_JDKLIB_EXTRA} -errtags=yes -errfmt"
43043   elif test "x$TOOLCHAIN_TYPE" = xxlc; then
43044     LDFLAGS_JDK="${LDFLAGS_JDK} -q64 -brtl -bnolibpath -liconv -bexpall"
43045     CFLAGS_JDK="${CFLAGS_JDK} -qchars=signed -q64 -qfullpath -qsaveopt"
43046     CXXFLAGS_JDK="${CXXFLAGS_JDK} -qchars=signed -q64 -qfullpath -qsaveopt"
43047   fi
43048 
43049   if test "x$CFLAGS" != "x${ADDED_CFLAGS}"; then
43050     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&5
43051 $as_echo "$as_me: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&2;}
43052   fi
43053 
43054   if test "x$CXXFLAGS" != "x${ADDED_CXXFLAGS}"; then
43055     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&5
43056 $as_echo "$as_me: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&2;}
43057   fi
43058 
43059   if test "x$LDFLAGS" != "x${ADDED_LDFLAGS}"; then
43060     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&5
43061 $as_echo "$as_me: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&2;}
43062   fi


43089   # Hotspot needs these set in their legacy form
43090   LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $with_extra_cflags"
43091   LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $with_extra_cxxflags"
43092   LEGACY_EXTRA_LDFLAGS="$LEGACY_EXTRA_LDFLAGS $with_extra_ldflags"
43093 
43094 
43095 
43096 
43097 
43098   ###############################################################################
43099   #
43100   # Now setup the CFLAGS and LDFLAGS for the JDK build.
43101   # Later we will also have CFLAGS and LDFLAGS for the hotspot subrepo build.
43102   #
43103 
43104   # Setup compiler/platform specific flags into
43105   #    CFLAGS_JDK    - C Compiler flags
43106   #    CXXFLAGS_JDK  - C++ Compiler flags
43107   #    COMMON_CCXXFLAGS_JDK - common to C and C++
43108   if test "x$TOOLCHAIN_TYPE" = xgcc; then
43109     COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -Wall -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \
43110         -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE"
43111     case $OPENJDK_TARGET_CPU_ARCH in
43112       arm )
43113         # on arm we don't prevent gcc to omit frame pointer but do prevent strict aliasing
43114         CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing"
43115         ;;
43116       ppc )
43117         # on ppc we don't prevent gcc to omit frame pointer but do prevent strict aliasing
43118         CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing"
43119         ;;
43120       * )
43121         COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer"
43122         CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing"
43123         ;;
43124     esac
43125   elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then
43126     COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -DTRACING -DMACRO_MEMSYS_OPS -DBREAKPTS"
43127     if test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then
43128       COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DcpuIntel -Di586 -D$OPENJDK_TARGET_CPU_LEGACY_LIB"

43129     fi
43130 
43131     CFLAGS_JDK="$CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa -v -mt -W0,-noglobal"
43132     CXXFLAGS_JDK="$CXXFLAGS_JDK -errtags=yes +w -mt -features=no%except -DCC_NOEX -norunpath -xnolib"
43133   elif test "x$TOOLCHAIN_TYPE" = xxlc; then
43134     CFLAGS_JDK="$CFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC"
43135     CXXFLAGS_JDK="$CXXFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC"
43136   elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
43137     COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK \
43138         -Zi -MD -Zc:wchar_t- -W3 -wd4800 \
43139         -DWIN32_LEAN_AND_MEAN \
43140         -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE \
43141         -DWIN32 -DIAL"
43142     if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
43143       COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_AMD64_ -Damd64"
43144     else
43145       COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_X86_ -Dx86"
43146     fi
43147     # If building with Visual Studio 2010, we can still use _STATIC_CPPLIB to
43148     # avoid bundling msvcpNNN.dll. Doesn't work with newer versions of visual


43508   ac_ext=cpp
43509 ac_cpp='$CXXCPP $CPPFLAGS'
43510 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43511 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43512 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43513 
43514   CXXFLAGS="$saved_cxxflags"
43515 
43516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5
43517 $as_echo "$supports" >&6; }
43518   if test "x$supports" = "xyes" ; then
43519     COMPILER_SUPPORTS_TARGET_BITS_FLAG=true
43520   else
43521     COMPILER_SUPPORTS_TARGET_BITS_FLAG=false
43522   fi
43523 
43524 
43525 
43526   case "${TOOLCHAIN_TYPE}" in
43527     microsoft)
43528       DISABLE_WARNING_PREFIX="-wd"
43529       CFLAGS_WARNINGS_ARE_ERRORS="-WX"
43530       ;;
43531     solstudio)
43532       DISABLE_WARNING_PREFIX="-erroff="
43533       CFLAGS_WARNINGS_ARE_ERRORS="-errtags -errwarn=%all"
43534       ;;
43535     gcc)
43536       # Prior to gcc 4.4, a -Wno-X where X is unknown for that version of gcc will cause an error
43537 
43538   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5
43539 $as_echo_n "checking if compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; }
43540   supports=yes
43541 
43542   saved_cflags="$CFLAGS"
43543   CFLAGS="$CFLAGS -Wno-this-is-a-warning-that-do-not-exist"
43544   ac_ext=c
43545 ac_cpp='$CPP $CPPFLAGS'
43546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43549 
43550   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43551 /* end confdefs.h.  */
43552 int i;
43553 _ACEOF
43554 if ac_fn_c_try_compile "$LINENO"; then :
43555 
43556 else
43557   supports=no
43558 fi
43559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43560   ac_ext=cpp
43561 ac_cpp='$CXXCPP $CPPFLAGS'
43562 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43563 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43564 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43565 
43566   CFLAGS="$saved_cflags"
43567 
43568   saved_cxxflags="$CXXFLAGS"
43569   CXXFLAGS="$CXXFLAG -Wno-this-is-a-warning-that-do-not-exist"
43570   ac_ext=cpp
43571 ac_cpp='$CXXCPP $CPPFLAGS'
43572 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43573 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43574 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43575 
43576   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43577 /* end confdefs.h.  */
43578 int i;
43579 _ACEOF
43580 if ac_fn_cxx_try_compile "$LINENO"; then :
43581 
43582 else
43583   supports=no
43584 fi
43585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43586   ac_ext=cpp
43587 ac_cpp='$CXXCPP $CPPFLAGS'
43588 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43589 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43590 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43591 
43592   CXXFLAGS="$saved_cxxflags"
43593 
43594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5
43595 $as_echo "$supports" >&6; }
43596   if test "x$supports" = "xyes" ; then
43597     GCC_CAN_DISABLE_WARNINGS=true
43598   else
43599     GCC_CAN_DISABLE_WARNINGS=false
43600 
43601   fi
43602 
43603       if test "x$GCC_CAN_DISABLE_WARNINGS" = "xtrue"; then
43604         DISABLE_WARNING_PREFIX="-Wno-"
43605       else
43606         DISABLE_WARNING_PREFIX=
43607       fi
43608       CFLAGS_WARNINGS_ARE_ERRORS="-Werror"
43609       ;;
43610     clang)
43611       DISABLE_WARNING_PREFIX="-Wno-"
43612       CFLAGS_WARNINGS_ARE_ERRORS="-Werror"
43613       ;;
43614   esac
43615 
43616 
43617 
43618 
43619 # Setup debug symbols (need objcopy from the toolchain for that)
43620 
43621   #
43622   # ENABLE_DEBUG_SYMBOLS
43623   # This must be done after the toolchain is setup, since we're looking at objcopy.
43624   #
43625   # Check whether --enable-debug-symbols was given.
43626 if test "${enable_debug_symbols+set}" = set; then :
43627   enableval=$enable_debug_symbols;
43628 fi
43629 
43630 
43631   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should generate debug symbols" >&5
43632 $as_echo_n "checking if we should generate debug symbols... " >&6; }
43633 
43634   if test "x$enable_debug_symbols" = "xyes" && test "x$OBJCOPY" = x; then
43635     # explicit enabling of enable-debug-symbols and can't find objcopy


< prev index next >