< prev index next >

common/autoconf/generated-configure.sh

Print this page




 666 USE_EXTERNAL_LCMS
 667 LCMS_LIBS
 668 LCMS_CFLAGS
 669 USE_EXTERNAL_LIBGIF
 670 USE_EXTERNAL_LIBJPEG
 671 ALSA_LIBS
 672 ALSA_CFLAGS
 673 FREETYPE_BUNDLE_LIB_PATH
 674 FREETYPE_LIBS
 675 FREETYPE_CFLAGS
 676 CUPS_CFLAGS
 677 X_EXTRA_LIBS
 678 X_LIBS
 679 X_PRE_LIBS
 680 X_CFLAGS
 681 XMKMF
 682 FIXPATH
 683 ZIP_DEBUGINFO_FILES
 684 ENABLE_DEBUG_SYMBOLS
 685 CFLAGS_WARNINGS_ARE_ERRORS

 686 COMPILER_SUPPORTS_TARGET_BITS_FLAG
 687 ZERO_ARCHFLAG
 688 LDFLAGS_CXX_JDK
 689 LDFLAGS_JDKEXE_SUFFIX
 690 LDFLAGS_JDKLIB_SUFFIX
 691 LDFLAGS_JDKEXE
 692 LDFLAGS_JDKLIB
 693 CXXFLAGS_JDKEXE
 694 CXXFLAGS_JDKLIB
 695 CFLAGS_JDKEXE
 696 CFLAGS_JDKLIB
 697 MACOSX_VERSION_MIN
 698 LEGACY_EXTRA_LDFLAGS
 699 LEGACY_EXTRA_CXXFLAGS
 700 LEGACY_EXTRA_CFLAGS
 701 CXX_O_FLAG_NONE
 702 CXX_O_FLAG_DEBUG
 703 CXX_O_FLAG_NORM
 704 CXX_O_FLAG_HI
 705 CXX_O_FLAG_HIGHEST


3719 
3720 
3721 
3722 
3723 
3724 
3725 
3726 
3727 
3728 
3729 
3730 
3731 
3732 
3733 
3734 
3735 
3736 
3737 
3738 #
3739 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
3740 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3741 #
3742 # This code is free software; you can redistribute it and/or modify it
3743 # under the terms of the GNU General Public License version 2 only, as
3744 # published by the Free Software Foundation.  Oracle designates this
3745 # particular file as subject to the "Classpath" exception as provided
3746 # by Oracle in the LICENSE file that accompanied this code.
3747 #
3748 # This code is distributed in the hope that it will be useful, but WITHOUT
3749 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3750 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3751 # version 2 for more details (a copy is included in the LICENSE file that
3752 # accompanied this code).
3753 #
3754 # You should have received a copy of the GNU General Public License version
3755 # 2 along with this work; if not, write to the Free Software Foundation,
3756 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3757 #
3758 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3759 # or visit www.oracle.com if you need additional information or have any


4331 # the set env variables into the spec file.
4332 
4333 
4334 
4335 
4336 
4337 
4338 
4339 
4340 
4341 
4342 
4343 
4344 
4345 # This line needs to be here, verbatim, after all includes and the dummy hook
4346 # definitions. It is replaced with custom functionality when building
4347 # custom sources.
4348 #CUSTOM_AUTOCONF_INCLUDE
4349 
4350 # Do not change or remove the following line, it is needed for consistency checks:
4351 DATE_WHEN_GENERATED=1425462435
4352 
4353 ###############################################################################
4354 #
4355 # Initialization / Boot-strapping
4356 #
4357 # The bootstrapping process needs to solve the "chicken or the egg" problem,
4358 # thus it jumps back and forth, each time gaining something needed later on.
4359 #
4360 ###############################################################################
4361 
4362 # If we are requested to print additional help, do that and then exit.
4363 # This must be the very first call.
4364 
4365   if test "x$CONFIGURE_PRINT_TOOLCHAIN_LIST" != x; then
4366     $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
4367     $PRINTF "Which are valid to use depends on the build platform.\n"
4368     for toolchain in $VALID_TOOLCHAINS_all; do
4369       # Use indirect variable referencing
4370       toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain
4371       TOOLCHAIN_DESCRIPTION=${!toolchain_var_name}


42332   esac
42333 
42334 
42335 
42336 
42337 
42338 
42339 
42340 
42341 
42342 
42343 
42344 
42345 
42346   # Special extras...
42347   if test "x$TOOLCHAIN_TYPE" = xsolstudio; then
42348     if test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then
42349       CFLAGS_JDKLIB_EXTRA="${CFLAGS_JDKLIB_EXTRA} -xregs=no%appl"
42350       CXXFLAGS_JDKLIB_EXTRA="${CXXFLAGS_JDKLIB_EXTRA} -xregs=no%appl"
42351     fi


42352   elif test "x$TOOLCHAIN_TYPE" = xxlc; then
42353     LDFLAGS_JDK="${LDFLAGS_JDK} -q64 -brtl -bnolibpath -liconv -bexpall"
42354     CFLAGS_JDK="${CFLAGS_JDK} -qchars=signed -q64 -qfullpath -qsaveopt"
42355     CXXFLAGS_JDK="${CXXFLAGS_JDK} -qchars=signed -q64 -qfullpath -qsaveopt"
42356   fi
42357 
42358   if test "x$CFLAGS" != "x${ADDED_CFLAGS}"; then
42359     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&5
42360 $as_echo "$as_me: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&2;}
42361   fi
42362 
42363   if test "x$CXXFLAGS" != "x${ADDED_CXXFLAGS}"; then
42364     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&5
42365 $as_echo "$as_me: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&2;}
42366   fi
42367 
42368   if test "x$LDFLAGS" != "x${ADDED_LDFLAGS}"; then
42369     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&5
42370 $as_echo "$as_me: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&2;}
42371   fi


42398   # Hotspot needs these set in their legacy form
42399   LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $with_extra_cflags"
42400   LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $with_extra_cxxflags"
42401   LEGACY_EXTRA_LDFLAGS="$LEGACY_EXTRA_LDFLAGS $with_extra_ldflags"
42402 
42403 
42404 
42405 
42406 
42407   ###############################################################################
42408   #
42409   # Now setup the CFLAGS and LDFLAGS for the JDK build.
42410   # Later we will also have CFLAGS and LDFLAGS for the hotspot subrepo build.
42411   #
42412 
42413   # Setup compiler/platform specific flags into
42414   #    CFLAGS_JDK    - C Compiler flags
42415   #    CXXFLAGS_JDK  - C++ Compiler flags
42416   #    COMMON_CCXXFLAGS_JDK - common to C and C++
42417   if test "x$TOOLCHAIN_TYPE" = xgcc; then
42418     COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -Wall -Wno-parentheses -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \
42419         -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE"
42420     case $OPENJDK_TARGET_CPU_ARCH in
42421       arm )
42422         # on arm we don't prevent gcc to omit frame pointer but do prevent strict aliasing
42423         CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing"
42424         ;;
42425       ppc )
42426         # on ppc we don't prevent gcc to omit frame pointer but do prevent strict aliasing
42427         CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing"
42428         ;;
42429       * )
42430         COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer"
42431         CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing"
42432         ;;
42433     esac
42434   elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then
42435     COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -DTRACING -DMACRO_MEMSYS_OPS -DBREAKPTS"
42436     if test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then
42437       COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DcpuIntel -Di586 -D$OPENJDK_TARGET_CPU_LEGACY_LIB"
42438       CFLAGS_JDK="$CFLAGS_JDK -erroff=E_BAD_PRAGMA_PACK_VALUE"
42439     fi
42440 
42441     CFLAGS_JDK="$CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa -v -mt -W0,-noglobal"
42442     CXXFLAGS_JDK="$CXXFLAGS_JDK -errtags=yes +w -mt -features=no%except -DCC_NOEX -norunpath -xnolib"
42443   elif test "x$TOOLCHAIN_TYPE" = xxlc; then
42444     CFLAGS_JDK="$CFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC"
42445     CXXFLAGS_JDK="$CXXFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC"
42446   elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
42447     COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK \
42448         -Zi -MD -Zc:wchar_t- -W3 -wd4800 \
42449         -DWIN32_LEAN_AND_MEAN \
42450         -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE \
42451         -DWIN32 -DIAL"
42452     if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
42453       COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_AMD64_ -Damd64"
42454     else
42455       COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_X86_ -Dx86"
42456     fi
42457     # If building with Visual Studio 2010, we can still use _STATIC_CPPLIB to
42458     # avoid bundling msvcpNNN.dll. Doesn't work with newer versions of visual


42818   ac_ext=cpp
42819 ac_cpp='$CXXCPP $CPPFLAGS'
42820 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42821 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42822 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42823 
42824   CXXFLAGS="$saved_cxxflags"
42825 
42826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5
42827 $as_echo "$supports" >&6; }
42828   if test "x$supports" = "xyes" ; then
42829     COMPILER_SUPPORTS_TARGET_BITS_FLAG=true
42830   else
42831     COMPILER_SUPPORTS_TARGET_BITS_FLAG=false
42832   fi
42833 
42834 
42835 
42836   case "${TOOLCHAIN_TYPE}" in
42837     microsoft)

42838       CFLAGS_WARNINGS_ARE_ERRORS="-WX"
42839       ;;
42840     solstudio)

42841       CFLAGS_WARNINGS_ARE_ERRORS="-errtags -errwarn=%all"
42842       ;;
42843     gcc)








































































42844       CFLAGS_WARNINGS_ARE_ERRORS="-Werror"
42845       ;;
42846     clang)

42847       CFLAGS_WARNINGS_ARE_ERRORS="-Werror"
42848       ;;
42849   esac

42850 
42851 
42852 
42853 # Setup debug symbols (need objcopy from the toolchain for that)
42854 
42855   #
42856   # ENABLE_DEBUG_SYMBOLS
42857   # This must be done after the toolchain is setup, since we're looking at objcopy.
42858   #
42859   # Check whether --enable-debug-symbols was given.
42860 if test "${enable_debug_symbols+set}" = set; then :
42861   enableval=$enable_debug_symbols;
42862 fi
42863 
42864 
42865   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should generate debug symbols" >&5
42866 $as_echo_n "checking if we should generate debug symbols... " >&6; }
42867 
42868   if test "x$enable_debug_symbols" = "xyes" && test "x$OBJCOPY" = x; then
42869     # explicit enabling of enable-debug-symbols and can't find objcopy




 666 USE_EXTERNAL_LCMS
 667 LCMS_LIBS
 668 LCMS_CFLAGS
 669 USE_EXTERNAL_LIBGIF
 670 USE_EXTERNAL_LIBJPEG
 671 ALSA_LIBS
 672 ALSA_CFLAGS
 673 FREETYPE_BUNDLE_LIB_PATH
 674 FREETYPE_LIBS
 675 FREETYPE_CFLAGS
 676 CUPS_CFLAGS
 677 X_EXTRA_LIBS
 678 X_LIBS
 679 X_PRE_LIBS
 680 X_CFLAGS
 681 XMKMF
 682 FIXPATH
 683 ZIP_DEBUGINFO_FILES
 684 ENABLE_DEBUG_SYMBOLS
 685 CFLAGS_WARNINGS_ARE_ERRORS
 686 DISABLE_WARNING_PREFIX
 687 COMPILER_SUPPORTS_TARGET_BITS_FLAG
 688 ZERO_ARCHFLAG
 689 LDFLAGS_CXX_JDK
 690 LDFLAGS_JDKEXE_SUFFIX
 691 LDFLAGS_JDKLIB_SUFFIX
 692 LDFLAGS_JDKEXE
 693 LDFLAGS_JDKLIB
 694 CXXFLAGS_JDKEXE
 695 CXXFLAGS_JDKLIB
 696 CFLAGS_JDKEXE
 697 CFLAGS_JDKLIB
 698 MACOSX_VERSION_MIN
 699 LEGACY_EXTRA_LDFLAGS
 700 LEGACY_EXTRA_CXXFLAGS
 701 LEGACY_EXTRA_CFLAGS
 702 CXX_O_FLAG_NONE
 703 CXX_O_FLAG_DEBUG
 704 CXX_O_FLAG_NORM
 705 CXX_O_FLAG_HI
 706 CXX_O_FLAG_HIGHEST


3720 
3721 
3722 
3723 
3724 
3725 
3726 
3727 
3728 
3729 
3730 
3731 
3732 
3733 
3734 
3735 
3736 
3737 
3738 
3739 #
3740 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
3741 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3742 #
3743 # This code is free software; you can redistribute it and/or modify it
3744 # under the terms of the GNU General Public License version 2 only, as
3745 # published by the Free Software Foundation.  Oracle designates this
3746 # particular file as subject to the "Classpath" exception as provided
3747 # by Oracle in the LICENSE file that accompanied this code.
3748 #
3749 # This code is distributed in the hope that it will be useful, but WITHOUT
3750 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3751 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3752 # version 2 for more details (a copy is included in the LICENSE file that
3753 # accompanied this code).
3754 #
3755 # You should have received a copy of the GNU General Public License version
3756 # 2 along with this work; if not, write to the Free Software Foundation,
3757 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3758 #
3759 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3760 # or visit www.oracle.com if you need additional information or have any


4332 # the set env variables into the spec file.
4333 
4334 
4335 
4336 
4337 
4338 
4339 
4340 
4341 
4342 
4343 
4344 
4345 
4346 # This line needs to be here, verbatim, after all includes and the dummy hook
4347 # definitions. It is replaced with custom functionality when building
4348 # custom sources.
4349 #CUSTOM_AUTOCONF_INCLUDE
4350 
4351 # Do not change or remove the following line, it is needed for consistency checks:
4352 DATE_WHEN_GENERATED=1425658225
4353 
4354 ###############################################################################
4355 #
4356 # Initialization / Boot-strapping
4357 #
4358 # The bootstrapping process needs to solve the "chicken or the egg" problem,
4359 # thus it jumps back and forth, each time gaining something needed later on.
4360 #
4361 ###############################################################################
4362 
4363 # If we are requested to print additional help, do that and then exit.
4364 # This must be the very first call.
4365 
4366   if test "x$CONFIGURE_PRINT_TOOLCHAIN_LIST" != x; then
4367     $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
4368     $PRINTF "Which are valid to use depends on the build platform.\n"
4369     for toolchain in $VALID_TOOLCHAINS_all; do
4370       # Use indirect variable referencing
4371       toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain
4372       TOOLCHAIN_DESCRIPTION=${!toolchain_var_name}


42333   esac
42334 
42335 
42336 
42337 
42338 
42339 
42340 
42341 
42342 
42343 
42344 
42345 
42346 
42347   # Special extras...
42348   if test "x$TOOLCHAIN_TYPE" = xsolstudio; then
42349     if test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then
42350       CFLAGS_JDKLIB_EXTRA="${CFLAGS_JDKLIB_EXTRA} -xregs=no%appl"
42351       CXXFLAGS_JDKLIB_EXTRA="${CXXFLAGS_JDKLIB_EXTRA} -xregs=no%appl"
42352     fi
42353     CFLAGS_JDKLIB_EXTRA="${CFLAGS_JDKLIB_EXTRA} -errtags=yes -errfmt"
42354     CXXFLAGS_JDKLIB_EXTRA="${CXXFLAGS_JDKLIB_EXTRA} -errtags=yes -errfmt"
42355   elif test "x$TOOLCHAIN_TYPE" = xxlc; then
42356     LDFLAGS_JDK="${LDFLAGS_JDK} -q64 -brtl -bnolibpath -liconv -bexpall"
42357     CFLAGS_JDK="${CFLAGS_JDK} -qchars=signed -q64 -qfullpath -qsaveopt"
42358     CXXFLAGS_JDK="${CXXFLAGS_JDK} -qchars=signed -q64 -qfullpath -qsaveopt"
42359   fi
42360 
42361   if test "x$CFLAGS" != "x${ADDED_CFLAGS}"; then
42362     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&5
42363 $as_echo "$as_me: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&2;}
42364   fi
42365 
42366   if test "x$CXXFLAGS" != "x${ADDED_CXXFLAGS}"; then
42367     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&5
42368 $as_echo "$as_me: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&2;}
42369   fi
42370 
42371   if test "x$LDFLAGS" != "x${ADDED_LDFLAGS}"; then
42372     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&5
42373 $as_echo "$as_me: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&2;}
42374   fi


42401   # Hotspot needs these set in their legacy form
42402   LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $with_extra_cflags"
42403   LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $with_extra_cxxflags"
42404   LEGACY_EXTRA_LDFLAGS="$LEGACY_EXTRA_LDFLAGS $with_extra_ldflags"
42405 
42406 
42407 
42408 
42409 
42410   ###############################################################################
42411   #
42412   # Now setup the CFLAGS and LDFLAGS for the JDK build.
42413   # Later we will also have CFLAGS and LDFLAGS for the hotspot subrepo build.
42414   #
42415 
42416   # Setup compiler/platform specific flags into
42417   #    CFLAGS_JDK    - C Compiler flags
42418   #    CXXFLAGS_JDK  - C++ Compiler flags
42419   #    COMMON_CCXXFLAGS_JDK - common to C and C++
42420   if test "x$TOOLCHAIN_TYPE" = xgcc; then
42421     COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -Wall -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \
42422         -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE"
42423     case $OPENJDK_TARGET_CPU_ARCH in
42424       arm )
42425         # on arm we don't prevent gcc to omit frame pointer but do prevent strict aliasing
42426         CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing"
42427         ;;
42428       ppc )
42429         # on ppc we don't prevent gcc to omit frame pointer but do prevent strict aliasing
42430         CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing"
42431         ;;
42432       * )
42433         COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer"
42434         CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing"
42435         ;;
42436     esac
42437   elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then
42438     COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -DTRACING -DMACRO_MEMSYS_OPS -DBREAKPTS"
42439     if test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then
42440       COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DcpuIntel -Di586 -D$OPENJDK_TARGET_CPU_LEGACY_LIB"

42441     fi
42442 
42443     CFLAGS_JDK="$CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa -v -mt -W0,-noglobal"
42444     CXXFLAGS_JDK="$CXXFLAGS_JDK -errtags=yes +w -mt -features=no%except -DCC_NOEX -norunpath -xnolib"
42445   elif test "x$TOOLCHAIN_TYPE" = xxlc; then
42446     CFLAGS_JDK="$CFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC"
42447     CXXFLAGS_JDK="$CXXFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC"
42448   elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
42449     COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK \
42450         -Zi -MD -Zc:wchar_t- -W3 -wd4800 \
42451         -DWIN32_LEAN_AND_MEAN \
42452         -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE \
42453         -DWIN32 -DIAL"
42454     if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
42455       COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_AMD64_ -Damd64"
42456     else
42457       COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_X86_ -Dx86"
42458     fi
42459     # If building with Visual Studio 2010, we can still use _STATIC_CPPLIB to
42460     # avoid bundling msvcpNNN.dll. Doesn't work with newer versions of visual


42820   ac_ext=cpp
42821 ac_cpp='$CXXCPP $CPPFLAGS'
42822 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42823 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42824 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42825 
42826   CXXFLAGS="$saved_cxxflags"
42827 
42828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5
42829 $as_echo "$supports" >&6; }
42830   if test "x$supports" = "xyes" ; then
42831     COMPILER_SUPPORTS_TARGET_BITS_FLAG=true
42832   else
42833     COMPILER_SUPPORTS_TARGET_BITS_FLAG=false
42834   fi
42835 
42836 
42837 
42838   case "${TOOLCHAIN_TYPE}" in
42839     microsoft)
42840       DISABLE_WARNING_PREFIX="-wd"
42841       CFLAGS_WARNINGS_ARE_ERRORS="-WX"
42842       ;;
42843     solstudio)
42844       DISABLE_WARNING_PREFIX="-erroff="
42845       CFLAGS_WARNINGS_ARE_ERRORS="-errtags -errwarn=%all"
42846       ;;
42847     gcc)
42848       # Prior to gcc 4.4, a -Wno-X where X is unknown for that version of gcc will cause an error
42849 
42850   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5
42851 $as_echo_n "checking if compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; }
42852   supports=yes
42853 
42854   saved_cflags="$CFLAGS"
42855   CFLAGS="$CFLAGS -Wno-this-is-a-warning-that-do-not-exist"
42856   ac_ext=c
42857 ac_cpp='$CPP $CPPFLAGS'
42858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42861 
42862   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42863 /* end confdefs.h.  */
42864 int i;
42865 _ACEOF
42866 if ac_fn_c_try_compile "$LINENO"; then :
42867 
42868 else
42869   supports=no
42870 fi
42871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42872   ac_ext=cpp
42873 ac_cpp='$CXXCPP $CPPFLAGS'
42874 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42875 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42876 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42877 
42878   CFLAGS="$saved_cflags"
42879 
42880   saved_cxxflags="$CXXFLAGS"
42881   CXXFLAGS="$CXXFLAG -Wno-this-is-a-warning-that-do-not-exist"
42882   ac_ext=cpp
42883 ac_cpp='$CXXCPP $CPPFLAGS'
42884 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42885 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42886 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42887 
42888   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42889 /* end confdefs.h.  */
42890 int i;
42891 _ACEOF
42892 if ac_fn_cxx_try_compile "$LINENO"; then :
42893 
42894 else
42895   supports=no
42896 fi
42897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42898   ac_ext=cpp
42899 ac_cpp='$CXXCPP $CPPFLAGS'
42900 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42901 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42902 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42903 
42904   CXXFLAGS="$saved_cxxflags"
42905 
42906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5
42907 $as_echo "$supports" >&6; }
42908   if test "x$supports" = "xyes" ; then
42909     GCC_CAN_DISABLE_WARNINGS=true
42910   else
42911     GCC_CAN_DISABLE_WARNINGS=false
42912 
42913   fi
42914 
42915       if test "x$GCC_CAN_DISABLE_WARNINGS" = "xtrue"; then
42916         DISABLE_WARNING_PREFIX="-Wno-"
42917       else
42918         DISABLE_WARNING_PREFIX=
42919       fi
42920       CFLAGS_WARNINGS_ARE_ERRORS="-Werror"
42921       ;;
42922     clang)
42923       DISABLE_WARNING_PREFIX="-Wno-"
42924       CFLAGS_WARNINGS_ARE_ERRORS="-Werror"
42925       ;;
42926   esac
42927 
42928 
42929 
42930 
42931 # Setup debug symbols (need objcopy from the toolchain for that)
42932 
42933   #
42934   # ENABLE_DEBUG_SYMBOLS
42935   # This must be done after the toolchain is setup, since we're looking at objcopy.
42936   #
42937   # Check whether --enable-debug-symbols was given.
42938 if test "${enable_debug_symbols+set}" = set; then :
42939   enableval=$enable_debug_symbols;
42940 fi
42941 
42942 
42943   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should generate debug symbols" >&5
42944 $as_echo_n "checking if we should generate debug symbols... " >&6; }
42945 
42946   if test "x$enable_debug_symbols" = "xyes" && test "x$OBJCOPY" = x; then
42947     # explicit enabling of enable-debug-symbols and can't find objcopy


< prev index next >