From e1d4644d7aabf26ce94fff9696d85af489d4e9c5 Mon Sep 17 00:00:00 2001 From: "Steven R. Loomis" Date: Tue, 6 Dec 2011 18:25:40 +0000 Subject: [PATCH] ICU-8743 fix configure macro X-SVN-Rev: 31042 --- icu4c/source/configure | 87 +++++++++++++++++++-------------------- icu4c/source/configure.in | 2 +- 2 files changed, 44 insertions(+), 45 deletions(-) diff --git a/icu4c/source/configure b/icu4c/source/configure index 7e18f58c3fa..0908c88d064 100755 --- a/icu4c/source/configure +++ b/icu4c/source/configure @@ -651,6 +651,10 @@ U_ENABLE_DYLOAD U_ENABLE_TRACING U_DISABLE_RENAMING AR +target_os +target_vendor +target_cpu +target RANLIB U_DEFAULT_SHOW_DRAFT UCLN_NO_AUTO_CLEANUP @@ -681,10 +685,6 @@ CC ENABLE_RELEASE ENABLE_DEBUG CPPFLAGS -target_os -target_vendor -target_cpu -target host_os host_vendor host_cpu @@ -2702,46 +2702,6 @@ IFS=$ac_save_IFS case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 -$as_echo_n "checking target system type... " >&6; } -if ${ac_cv_target+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "x$target_alias" = x; then - ac_cv_target=$ac_cv_host -else - ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || - as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 -fi - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 -$as_echo "$ac_cv_target" >&6; } -case $ac_cv_target in -*-*-*) ;; -*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; -esac -target=$ac_cv_target -ac_save_IFS=$IFS; IFS='-' -set x $ac_cv_target -shift -target_cpu=$1 -target_vendor=$2 -shift; shift -# Remember, the first character of IFS is used to create $*, -# except with old shells: -target_os=$* -IFS=$ac_save_IFS -case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac - - -# The aliases save the names the user supplied, while $host etc. -# will get canonicalized. -test -n "$target_alias" && - test "$program_prefix$program_suffix$program_transform_name" = \ - NONENONEs,x,x, && - program_prefix=${target_alias}- - @@ -5499,6 +5459,45 @@ fi # look for 'ar' the proper way +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 +$as_echo_n "checking target system type... " >&6; } +if ${ac_cv_target+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$target_alias" = x; then + ac_cv_target=$ac_cv_host +else + ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 +$as_echo "$ac_cv_target" >&6; } +case $ac_cv_target in +*-*-*) ;; +*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; +esac +target=$ac_cv_target +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_target +shift +target_cpu=$1 +target_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +target_os=$* +IFS=$ac_save_IFS +case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac + + +# The aliases save the names the user supplied, while $host etc. +# will get canonicalized. +test -n "$target_alias" && + test "$program_prefix$program_suffix$program_transform_name" = \ + NONENONEs,x,x, && + program_prefix=${target_alias}- # Extract the first word of "$target_alias-ar", so it can be a program name with args. set dummy $target_alias-ar; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 diff --git a/icu4c/source/configure.in b/icu4c/source/configure.in index 0ebd05fefd2..b4a8e36d7ce 100644 --- a/icu4c/source/configure.in +++ b/icu4c/source/configure.in @@ -76,7 +76,7 @@ AC_MSG_RESULT([release $VERSION, library $LIB_VERSION, unicode version $UNICODE_ AC_SUBST(UNICODE_VERSION) # Determine the host system -AC_CANONICAL_SYSTEM +AC_CANONICAL_HOST AC_SUBST(CPPFLAGS) -- 2.40.0