233 # and later options override earlier.
234 conf_processed_arguments=("--enable-option-checking=fatal" "${conf_processed_arguments[@]}")
235
236 ###
237 ### Call the configure script
238 ###
239 if test -e $conf_custom_script_dir/generated-configure.sh; then
240 # Custom source configure available; run that instead
241 echo "Running custom generated-configure.sh"
242 conf_script_to_run=$conf_custom_script_dir/generated-configure.sh
243 else
244 echo "Running generated-configure.sh"
245 conf_script_to_run=$conf_script_dir/generated-configure.sh
246 fi
247
248 if test "x$conf_debug_configure" != x; then
249 # Turn on shell debug output if requested (initial or recursive)
250 set -x
251 fi
252
253 if test "x$conf_debug_configure" = xtrue; then
254 # Turn on logging, but don't turn on twice when called recursive
255 conf_debug_logfile=./debug-configure.log
256 (exec 3>&1 ; (. $conf_script_to_run "${conf_processed_arguments[@]}" 2>&1 1>&3 ) | tee -a $conf_debug_logfile 1>&2 ; exec 3>&-) | tee -a $conf_debug_logfile
257 else
258 ( . $conf_script_to_run "${conf_processed_arguments[@]}" )
259 fi
260
261 conf_result_code=$?
262 ###
263 ### Post-processing
264 ###
265
266 if test $conf_result_code -eq 0; then
267 if test "x$conf_print_help" = xtrue; then
268 cat <<EOT
269
270 Additional (non-autoconf) OpenJDK Options:
271 --openjdk-target=TARGET cross-compile with TARGET as target platform
272 (i.e. the one you will run the resulting binary on).
273 Equivalent to --host=TARGET --target=TARGET
274 --build=<current platform>
275 --debug-configure Run the configure script with additional debug
276 logging enabled.
277
278 EOT
279
|
233 # and later options override earlier.
234 conf_processed_arguments=("--enable-option-checking=fatal" "${conf_processed_arguments[@]}")
235
236 ###
237 ### Call the configure script
238 ###
239 if test -e $conf_custom_script_dir/generated-configure.sh; then
240 # Custom source configure available; run that instead
241 echo "Running custom generated-configure.sh"
242 conf_script_to_run=$conf_custom_script_dir/generated-configure.sh
243 else
244 echo "Running generated-configure.sh"
245 conf_script_to_run=$conf_script_dir/generated-configure.sh
246 fi
247
248 if test "x$conf_debug_configure" != x; then
249 # Turn on shell debug output if requested (initial or recursive)
250 set -x
251 fi
252
253 # Now transfer control to the script generated by autoconf. This is where the
254 # main work is done.
255 conf_logfile=./configure.log
256 (exec 3>&1 ; (. $conf_script_to_run "${conf_processed_arguments[@]}" 2>&1 1>&3 ) | tee -a $conf_logfile 1>&2 ; exec 3>&-) | tee -a $conf_logfile
257
258 conf_result_code=$?
259 ###
260 ### Post-processing
261 ###
262
263 if test $conf_result_code -eq 0; then
264 if test "x$conf_print_help" = xtrue; then
265 cat <<EOT
266
267 Additional (non-autoconf) OpenJDK Options:
268 --openjdk-target=TARGET cross-compile with TARGET as target platform
269 (i.e. the one you will run the resulting binary on).
270 Equivalent to --host=TARGET --target=TARGET
271 --build=<current platform>
272 --debug-configure Run the configure script with additional debug
273 logging enabled.
274
275 EOT
276
|