diff -r 54eb4c29ece4 -r 7ba4e17574e0 common/autoconf/configure.ac --- a/common/autoconf/configure.ac Wed Mar 21 09:19:00 2018 -0700 +++ b/common/autoconf/configure.ac Thu Apr 05 07:59:52 2018 -0700 @@ -1,5 +1,5 @@ # -# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it @@ -43,6 +43,7 @@ # ... then the rest m4_include([boot-jdk.m4]) m4_include([build-performance.m4]) +m4_include([flags.m4]) m4_include([help.m4]) m4_include([jdk-options.m4]) m4_include([libraries.m4]) @@ -72,7 +73,11 @@ # ############################################################################### -# Basic initialization that must happen first of all +# If we are requested to print additional help, do that and then exit. +# This must be the very first call. +HELP_PRINT_ADDITIONAL_HELP_AND_EXIT + +# Basic initialization that must happen first of all in the normal process. BASIC_INIT BASIC_SETUP_FUNDAMENTAL_TOOLS @@ -149,26 +154,41 @@ ############################################################################### # -# Setup the toolchain (compilers etc), i.e. the tools that need to be -# cross-compilation aware. +# Setup the toolchain (compilers etc), i.e. tools used to compile and process +# native code. # ############################################################################### -TOOLCHAIN_SETUP_SYSROOT_AND_OUT_OPTIONS -# Locate the actual tools -TOOLCHAIN_SETUP_PATHS +# First determine the toolchain type (compiler family) +TOOLCHAIN_DETERMINE_TOOLCHAIN_TYPE -# FIXME: Currently we must test this after paths but before flags. Fix! +# Then detect the actual binaries needed +TOOLCHAIN_PRE_DETECTION +TOOLCHAIN_DETECT_TOOLCHAIN_CORE +TOOLCHAIN_DETECT_TOOLCHAIN_EXTRA +TOOLCHAIN_POST_DETECTION -# And we can test some aspects on the target using configure macros. +# Finally do some processing after the detection phase +TOOLCHAIN_SETUP_BUILD_COMPILERS +TOOLCHAIN_SETUP_LEGACY +TOOLCHAIN_MISC_CHECKS + +# Setup the JTReg Regression Test Harness. +TOOLCHAIN_SETUP_JTREG + +FLAGS_SETUP_INIT_FLAGS + +# FIXME: Currently we must test this after toolchain but before flags. Fix! + +# Now we can test some aspects on the target using configure macros. PLATFORM_SETUP_OPENJDK_TARGET_BITS PLATFORM_SETUP_OPENJDK_TARGET_ENDIANNESS # Configure flags for the tools -TOOLCHAIN_SETUP_COMPILER_FLAGS_FOR_LIBS -TOOLCHAIN_SETUP_COMPILER_FLAGS_FOR_OPTIMIZATION -TOOLCHAIN_SETUP_COMPILER_FLAGS_FOR_JDK -TOOLCHAIN_SETUP_COMPILER_FLAGS_MISC +FLAGS_SETUP_COMPILER_FLAGS_FOR_LIBS +FLAGS_SETUP_COMPILER_FLAGS_FOR_OPTIMIZATION +FLAGS_SETUP_COMPILER_FLAGS_FOR_JDK +FLAGS_SETUP_COMPILER_FLAGS_MISC # Setup debug symbols (need objcopy from the toolchain for that) JDKOPT_SETUP_DEBUG_SYMBOLS @@ -189,7 +209,7 @@ LIB_SETUP_ALSA LIB_SETUP_MISC_LIBS LIB_SETUP_STATIC_LINK_LIBSTDCPP - +LIB_SETUP_ON_WINDOWS ############################################################################### #