common/autoconf/generated-configure.sh

changeset 2203
28b247535e18
parent 2198
67122a315e79
child 2204
0e87966d7ff1
equal deleted inserted replaced
2198:67122a315e79 2203:28b247535e18
1747 --enable-sjavac use sjavac to do fast incremental compiles 1747 --enable-sjavac use sjavac to do fast incremental compiles
1748 [disabled] 1748 [disabled]
1749 --disable-precompiled-headers 1749 --disable-precompiled-headers
1750 disable using precompiled headers when compiling C++ 1750 disable using precompiled headers when compiling C++
1751 [enabled] 1751 [enabled]
1752 --disable-ccache disable using ccache to speed up recompilations 1752 --enable-ccache enable using ccache to speed up recompilations
1753 [enabled] 1753 [disabled]
1754 1754
1755 Optional Packages: 1755 Optional Packages:
1756 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1756 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1757 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1757 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1758 --with-custom-make-dir use this directory for custom build/make files 1758 --with-custom-make-dir use this directory for custom build/make files
3774 3774
3775 3775
3776 3776
3777 3777
3778 # 3778 #
3779 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 3779 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
3780 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3780 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3781 # 3781 #
3782 # This code is free software; you can redistribute it and/or modify it 3782 # This code is free software; you can redistribute it and/or modify it
3783 # under the terms of the GNU General Public License version 2 only, as 3783 # under the terms of the GNU General Public License version 2 only, as
3784 # published by the Free Software Foundation. Oracle designates this 3784 # published by the Free Software Foundation. Oracle designates this
3910 # definitions. It is replaced with custom functionality when building 3910 # definitions. It is replaced with custom functionality when building
3911 # custom sources. 3911 # custom sources.
3912 #CUSTOM_AUTOCONF_INCLUDE 3912 #CUSTOM_AUTOCONF_INCLUDE
3913 3913
3914 # Do not change or remove the following line, it is needed for consistency checks: 3914 # Do not change or remove the following line, it is needed for consistency checks:
3915 DATE_WHEN_GENERATED=1515659624 3915 DATE_WHEN_GENERATED=1521218818
3916 3916
3917 ############################################################################### 3917 ###############################################################################
3918 # 3918 #
3919 # Initialization / Boot-strapping 3919 # Initialization / Boot-strapping
3920 # 3920 #
36390 36390
36391 # Setup use of ccache, if available 36391 # Setup use of ccache, if available
36392 36392
36393 # Check whether --enable-ccache was given. 36393 # Check whether --enable-ccache was given.
36394 if test "${enable_ccache+set}" = set; then : 36394 if test "${enable_ccache+set}" = set; then :
36395 enableval=$enable_ccache; ENABLE_CCACHE=${enable_ccache} 36395 enableval=$enable_ccache;
36396 else 36396 fi
36397 ENABLE_CCACHE=yes 36397
36398 fi 36398
36399 36399 CCACHE=
36400 if test "x$ENABLE_CCACHE" = xyes; then 36400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking is ccache enabled" >&5
36401 $as_echo_n "checking is ccache enabled... " >&6; }
36402 ENABLE_CCACHE=$enable_ccache
36403 if test "x$enable_ccache" = xyes; then
36404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36405 $as_echo "yes" >&6; }
36401 OLD_PATH="$PATH" 36406 OLD_PATH="$PATH"
36402 if test "x$TOOLS_DIR" != x; then 36407 if test "x$TOOLS_DIR" != x; then
36403 PATH=$TOOLS_DIR:$PATH 36408 PATH=$TOOLS_DIR:$PATH
36404 fi 36409 fi
36405 # Extract the first word of "ccache", so it can be a program name with args. 36410
36406 set dummy ccache; ac_word=$2 36411 for ac_prog in ccache
36412 do
36413 # Extract the first word of "$ac_prog", so it can be a program name with args.
36414 set dummy $ac_prog; ac_word=$2
36407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36408 $as_echo_n "checking for $ac_word... " >&6; } 36416 $as_echo_n "checking for $ac_word... " >&6; }
36409 if ${ac_cv_path_CCACHE+:} false; then : 36417 if ${ac_cv_path_CCACHE+:} false; then :
36410 $as_echo_n "(cached) " >&6 36418 $as_echo_n "(cached) " >&6
36411 else 36419 else
36440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36441 $as_echo "no" >&6; } 36449 $as_echo "no" >&6; }
36442 fi 36450 fi
36443 36451
36444 36452
36453 test -n "$CCACHE" && break
36454 done
36455
36456
36457 if test "x$CCACHE" = x; then
36458 if test "xccache" = x; then
36459 PROG_NAME=ccache
36460 else
36461 PROG_NAME=ccache
36462 fi
36463 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
36464 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
36465 as_fn_error $? "Cannot continue" "$LINENO" 5
36466 fi
36467
36468
36469 CCACHE_STATUS="enabled"
36445 PATH="$OLD_PATH" 36470 PATH="$OLD_PATH"
36471 elif test "x$enable_ccache" = xno; then
36472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, explicitly disabled" >&5
36473 $as_echo "no, explicitly disabled" >&6; }
36474 elif test "x$enable_ccache" = x; then
36475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36476 $as_echo "no" >&6; }
36446 else 36477 else
36447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccache" >&5 36478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
36448 $as_echo_n "checking for ccache... " >&6; } 36479 $as_echo "unknown" >&6; }
36449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: explicitly disabled" >&5 36480 as_fn_error $? "--enable-ccache does not accept any parameters" "$LINENO" 5
36450 $as_echo "explicitly disabled" >&6; }
36451 CCACHE=
36452 fi 36481 fi
36453 36482
36454 36483
36455 36484
36456 # Check whether --with-ccache-dir was given. 36485 # Check whether --with-ccache-dir was given.
36461 36490
36462 if test "x$with_ccache_dir" != x; then 36491 if test "x$with_ccache_dir" != x; then
36463 # When using a non home ccache directory, assume the use is to share ccache files 36492 # When using a non home ccache directory, assume the use is to share ccache files
36464 # with other users. Thus change the umask. 36493 # with other users. Thus change the umask.
36465 SET_CCACHE_DIR="CCACHE_DIR=$with_ccache_dir CCACHE_UMASK=002" 36494 SET_CCACHE_DIR="CCACHE_DIR=$with_ccache_dir CCACHE_UMASK=002"
36466 fi 36495 if test "x$CCACHE" = x; then
36467 CCACHE_FOUND="" 36496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&5
36497 $as_echo "$as_me: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&2;}
36498 fi
36499 fi
36500
36468 if test "x$CCACHE" != x; then 36501 if test "x$CCACHE" != x; then
36469 36502
36470 if test "x$CCACHE" != x; then 36503 if test "x$CCACHE" != x; then
36471 CCACHE_FOUND="true"
36472 # Only use ccache if it is 3.1.4 or later, which supports 36504 # Only use ccache if it is 3.1.4 or later, which supports
36473 # precompiled headers. 36505 # precompiled headers.
36474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ccache supports precompiled headers" >&5 36506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ccache supports precompiled headers" >&5
36475 $as_echo_n "checking if ccache supports precompiled headers... " >&6; } 36507 $as_echo_n "checking if ccache supports precompiled headers... " >&6; }
36476 HAS_GOOD_CCACHE=`($CCACHE --version | head -n 1 | grep -E 3.1.[456789]) 2> /dev/null` 36508 HAS_GOOD_CCACHE=`($CCACHE --version | head -n 1 | grep -E 3.1.[456789]) 2> /dev/null`
36477 if test "x$HAS_GOOD_CCACHE" = x; then 36509 if test "x$HAS_GOOD_CCACHE" = x; then
36478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, disabling ccache" >&5 36510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, disabling ccache" >&5
36479 $as_echo "no, disabling ccache" >&6; } 36511 $as_echo "no, disabling ccache" >&6; }
36480 CCACHE= 36512 CCACHE=
36513 CCACHE_STATUS="disabled"
36481 else 36514 else
36482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36483 $as_echo "yes" >&6; } 36516 $as_echo "yes" >&6; }
36484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C-compiler supports ccache precompiled headers" >&5 36517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C-compiler supports ccache precompiled headers" >&5
36485 $as_echo_n "checking if C-compiler supports ccache precompiled headers... " >&6; } 36518 $as_echo_n "checking if C-compiler supports ccache precompiled headers... " >&6; }
36508 $as_echo "yes" >&6; } 36541 $as_echo "yes" >&6; }
36509 else 36542 else
36510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, disabling ccaching of precompiled headers" >&5 36543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, disabling ccaching of precompiled headers" >&5
36511 $as_echo "no, disabling ccaching of precompiled headers" >&6; } 36544 $as_echo "no, disabling ccaching of precompiled headers" >&6; }
36512 CCACHE= 36545 CCACHE=
36546 CCACHE_STATUS="disabled"
36513 fi 36547 fi
36514 fi 36548 fi
36515 fi 36549 fi
36516 36550
36517 if test "x$CCACHE" != x; then 36551 if test "x$CCACHE" != x; then
36582 # Since we can't properly handle the dependencies for this, warn the user about the situation 36616 # Since we can't properly handle the dependencies for this, warn the user about the situation
36583 if test -e $OUTPUT_ROOT/spec.gmk; then 36617 if test -e $OUTPUT_ROOT/spec.gmk; then
36584 IS_RECONFIGURE=yes 36618 IS_RECONFIGURE=yes
36585 else 36619 else
36586 IS_RECONFIGURE=no 36620 IS_RECONFIGURE=no
36587 fi
36588
36589 if test -e $SRC_ROOT/build/.hide-configure-performance-hints; then
36590 HIDE_PERFORMANCE_HINTS=yes
36591 else
36592 HIDE_PERFORMANCE_HINTS=no
36593 # Hide it the next time around...
36594 $TOUCH $SRC_ROOT/build/.hide-configure-performance-hints > /dev/null 2>&1
36595 fi 36621 fi
36596 36622
36597 36623
36598 # At the end, call the custom hook. (Dummy macro if no custom sources available) 36624 # At the end, call the custom hook. (Dummy macro if no custom sources available)
36599 36625
37894 37920
37895 # Finally output some useful information to the user 37921 # Finally output some useful information to the user
37896 37922
37897 # Finally output some useful information to the user 37923 # Finally output some useful information to the user
37898 37924
37899 if test "x$CCACHE_FOUND" != x; then
37900 if test "x$HAS_GOOD_CCACHE" = x; then
37901 CCACHE_STATUS="installed, but disabled (version older than 3.1.4)"
37902 CCACHE_HELP_MSG="You have ccache installed, but it is a version prior to 3.1.4. Try upgrading."
37903 else
37904 CCACHE_STATUS="installed and in use"
37905 fi
37906 else
37907 if test "x$GCC" = xyes; then
37908 CCACHE_STATUS="not installed (consider installing)"
37909 CCACHE_HELP_MSG="You do not have ccache installed. Try installing it."
37910 else
37911 CCACHE_STATUS="not available for your system"
37912 fi
37913 fi
37914
37915 printf "\n" 37925 printf "\n"
37916 printf "====================================================\n" 37926 printf "====================================================\n"
37917 printf "A new configuration has been successfully created in\n" 37927 printf "A new configuration has been successfully created in\n"
37918 printf "$OUTPUT_ROOT\n" 37928 printf "$OUTPUT_ROOT\n"
37919 if test "x$CONFIGURE_COMMAND_LINE" != x; then 37929 if test "x$CONFIGURE_COMMAND_LINE" != x; then
37940 37950
37941 printf "\n" 37951 printf "\n"
37942 printf "Build performance summary:\n" 37952 printf "Build performance summary:\n"
37943 printf "* Cores to use: $JOBS\n" 37953 printf "* Cores to use: $JOBS\n"
37944 printf "* Memory limit: $MEMORY_SIZE MB\n" 37954 printf "* Memory limit: $MEMORY_SIZE MB\n"
37945 printf "* ccache status: $CCACHE_STATUS\n" 37955 if test "x$CCACHE_STATUS" != "x"; then
37956 printf "* ccache status: $CCACHE_STATUS\n"
37957 fi
37946 printf "\n" 37958 printf "\n"
37947
37948 if test "x$CCACHE_HELP_MSG" != x && test "x$HIDE_PERFORMANCE_HINTS" = "xno"; then
37949 printf "Build performance tip: ccache gives a tremendous speedup for C++ recompilations.\n"
37950 printf "$CCACHE_HELP_MSG\n"
37951
37952 # Print a helpful message on how to acquire the necessary build dependency.
37953 # ccache is the help tag: freetype, cups, pulse, alsa etc
37954 MISSING_DEPENDENCY=ccache
37955
37956 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
37957 cygwin_help $MISSING_DEPENDENCY
37958 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
37959 msys_help $MISSING_DEPENDENCY
37960 else
37961 PKGHANDLER_COMMAND=
37962
37963 case $PKGHANDLER in
37964 apt-get)
37965 apt_help $MISSING_DEPENDENCY ;;
37966 yum)
37967 yum_help $MISSING_DEPENDENCY ;;
37968 port)
37969 port_help $MISSING_DEPENDENCY ;;
37970 pkgutil)
37971 pkgutil_help $MISSING_DEPENDENCY ;;
37972 pkgadd)
37973 pkgadd_help $MISSING_DEPENDENCY ;;
37974 esac
37975
37976 if test "x$PKGHANDLER_COMMAND" != x; then
37977 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
37978 fi
37979 fi
37980
37981 printf "$HELP_MSG\n"
37982 printf "\n"
37983 fi
37984 37959
37985 if test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = "xyes"; then 37960 if test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = "xyes"; then
37986 printf "NOTE: You have requested to build more than one version of the JVM, which\n" 37961 printf "NOTE: You have requested to build more than one version of the JVM, which\n"
37987 printf "will result in longer build times.\n" 37962 printf "will result in longer build times.\n"
37988 printf "\n" 37963 printf "\n"

mercurial