< prev index next >

common/autoconf/configure

Print this page




 108     run_autogen_or_fail
 109   fi
 110 fi
 111 
 112 # Autoconf calls the configure script recursively sometimes.
 113 # Don't start logging twice in that case
 114 if test "x$conf_debug_configure" = xtrue; then
 115   conf_debug_configure=recursive
 116 fi
 117 ###
 118 ### Process command-line arguments
 119 ###
 120 conf_processed_arguments=()
 121 conf_openjdk_target=
 122 
 123 for conf_option
 124 do
 125   case $conf_option in
 126     --openjdk-target=*)
 127       conf_openjdk_target=`expr "X$conf_option" : '[^=]*=\(.*\)'`
 128       continue ;;
 129     --debug-configure)
 130       if test "x$conf_debug_configure" != xrecursive; then
 131         conf_debug_configure=true
 132         export conf_debug_configure
 133       fi
 134       continue ;;







 135     *)
 136       conf_processed_arguments=("${conf_processed_arguments[@]}" "$conf_option") ;;

 137   esac
 138 
 139   case $conf_option in
 140     -build | --build | --buil | --bui | --bu |-build=* | --build=* | --buil=* | --bui=* | --bu=*)
 141       conf_legacy_crosscompile="$conf_legacy_crosscompile $conf_option" ;;
 142     -target | --target | --targe | --targ | --tar | --ta | --t | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 143       conf_legacy_crosscompile="$conf_legacy_crosscompile $conf_option" ;;
 144     -host | --host | --hos | --ho | -host=* | --host=* | --hos=* | --ho=*)
 145       conf_legacy_crosscompile="$conf_legacy_crosscompile $conf_option" ;;
 146     -help | --help | --hel | --he | -h)
 147       conf_print_help=true ;;
 148   esac
 149 done
 150 
 151 if test "x$conf_legacy_crosscompile" != "x"; then
 152   if test "x$conf_openjdk_target" != "x"; then
 153     echo "Error: Specifying --openjdk-target together with autoconf"
 154     echo "legacy cross-compilation flags is not supported."
 155     echo "You specified: --openjdk-target=$conf_openjdk_target and $conf_legacy_crosscompile."
 156     echo "The recommended use is just --openjdk-target."


 199 
 200 conf_result_code=$?
 201 ###
 202 ### Post-processing
 203 ###
 204 
 205 if test $conf_result_code -eq 0; then
 206   if test "x$conf_print_help" = xtrue; then
 207     cat <<EOT
 208 
 209 Additional (non-autoconf) OpenJDK Options:
 210   --openjdk-target=TARGET cross-compile with TARGET as target platform
 211                           (i.e. the one you will run the resulting binary on).
 212                           Equivalent to --host=TARGET --target=TARGET
 213                           --build=<current platform>
 214   --debug-configure       Run the configure script with additional debug
 215                           logging enabled.
 216 
 217 Please be aware that, when cross-compiling, the OpenJDK configure script will
 218 generally use 'target' where autoconf traditionally uses 'host'.



 219 EOT
 220   fi
 221 else
 222   echo configure exiting with result code $conf_result_code
 223 fi
 224 
 225 exit $conf_result_code


 108     run_autogen_or_fail
 109   fi
 110 fi
 111 
 112 # Autoconf calls the configure script recursively sometimes.
 113 # Don't start logging twice in that case
 114 if test "x$conf_debug_configure" = xtrue; then
 115   conf_debug_configure=recursive
 116 fi
 117 ###
 118 ### Process command-line arguments
 119 ###
 120 conf_processed_arguments=()
 121 conf_openjdk_target=
 122 
 123 for conf_option
 124 do
 125   case $conf_option in
 126     --openjdk-target=*)
 127       conf_openjdk_target=`expr "X$conf_option" : '[^=]*=\(.*\)'`
 128       ;;
 129     --debug-configure)
 130       if test "x$conf_debug_configure" != xrecursive; then
 131         conf_debug_configure=true
 132         export conf_debug_configure
 133       fi
 134       ;;
 135     [^-]*=*)
 136       # Add name of variable to CONFIGURE_OVERRIDDEN_VARIABLES list inside !...!.
 137       conf_env_var=`expr "x$conf_option" : 'x\([^=]*\)='`
 138       CONFIGURE_OVERRIDDEN_VARIABLES="$CONFIGURE_OVERRIDDEN_VARIABLES!$conf_env_var!"
 139       # ... and then process argument as usual
 140       conf_processed_arguments=("${conf_processed_arguments[@]}" "$conf_option")
 141       ;;
 142     *)
 143       conf_processed_arguments=("${conf_processed_arguments[@]}" "$conf_option")
 144       ;;
 145   esac
 146 
 147   case $conf_option in
 148     -build | --build | --buil | --bui | --bu |-build=* | --build=* | --buil=* | --bui=* | --bu=*)
 149       conf_legacy_crosscompile="$conf_legacy_crosscompile $conf_option" ;;
 150     -target | --target | --targe | --targ | --tar | --ta | --t | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 151       conf_legacy_crosscompile="$conf_legacy_crosscompile $conf_option" ;;
 152     -host | --host | --hos | --ho | -host=* | --host=* | --hos=* | --ho=*)
 153       conf_legacy_crosscompile="$conf_legacy_crosscompile $conf_option" ;;
 154     -help | --help | --hel | --he | -h)
 155       conf_print_help=true ;;
 156   esac
 157 done
 158 
 159 if test "x$conf_legacy_crosscompile" != "x"; then
 160   if test "x$conf_openjdk_target" != "x"; then
 161     echo "Error: Specifying --openjdk-target together with autoconf"
 162     echo "legacy cross-compilation flags is not supported."
 163     echo "You specified: --openjdk-target=$conf_openjdk_target and $conf_legacy_crosscompile."
 164     echo "The recommended use is just --openjdk-target."


 207 
 208 conf_result_code=$?
 209 ###
 210 ### Post-processing
 211 ###
 212 
 213 if test $conf_result_code -eq 0; then
 214   if test "x$conf_print_help" = xtrue; then
 215     cat <<EOT
 216 
 217 Additional (non-autoconf) OpenJDK Options:
 218   --openjdk-target=TARGET cross-compile with TARGET as target platform
 219                           (i.e. the one you will run the resulting binary on).
 220                           Equivalent to --host=TARGET --target=TARGET
 221                           --build=<current platform>
 222   --debug-configure       Run the configure script with additional debug
 223                           logging enabled.
 224 
 225 Please be aware that, when cross-compiling, the OpenJDK configure script will
 226 generally use 'target' where autoconf traditionally uses 'host'.
 227 
 228 Also note that variables must be passed on the command line. Variables in the
 229 environment will generally be ignored, unlike traditional autoconf scripts.
 230 EOT
 231   fi
 232 else
 233   echo configure exiting with result code $conf_result_code
 234 fi
 235 
 236 exit $conf_result_code
< prev index next >