Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(553)

Side by Side Diff: configure

Issue 1435813002: build: detect the right `ar` tool (Closed) Base URL: https://chromium.googlesource.com/breakpad/breakpad.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « autotools/ar-lib ('k') | configure.ac » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #! /bin/sh 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles. 2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for breakpad 0.1. 3 # Generated by GNU Autoconf 2.69 for breakpad 0.1.
4 # 4 #
5 # Report bugs to <google-breakpad-dev@googlegroups.com>. 5 # Report bugs to <google-breakpad-dev@googlegroups.com>.
6 # 6 #
7 # 7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # 9 #
10 # 10 #
(...skipping 656 matching lines...) Expand 10 before | Expand all | Expand 10 after
667 am__quote 667 am__quote
668 am__include 668 am__include
669 DEPDIR 669 DEPDIR
670 OBJEXT 670 OBJEXT
671 EXEEXT 671 EXEEXT
672 ac_ct_CC 672 ac_ct_CC
673 CPPFLAGS 673 CPPFLAGS
674 LDFLAGS 674 LDFLAGS
675 CFLAGS 675 CFLAGS
676 CC 676 CC
677 ac_ct_AR
678 AR
677 MAINT 679 MAINT
678 MAINTAINER_MODE_FALSE 680 MAINTAINER_MODE_FALSE
679 MAINTAINER_MODE_TRUE 681 MAINTAINER_MODE_TRUE
680 AM_BACKSLASH 682 AM_BACKSLASH
681 AM_DEFAULT_VERBOSITY 683 AM_DEFAULT_VERBOSITY
682 AM_DEFAULT_V 684 AM_DEFAULT_V
683 AM_V 685 AM_V
684 am__untar 686 am__untar
685 am__tar 687 am__tar
686 AMTAR 688 AMTAR
(...skipping 3347 matching lines...) Expand 10 before | Expand all | Expand 10 after
4034 test "x$enable_dependency_tracking" != xno \ 4036 test "x$enable_dependency_tracking" != xno \
4035 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4037 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4036 am__fastdepCC_TRUE= 4038 am__fastdepCC_TRUE=
4037 am__fastdepCC_FALSE='#' 4039 am__fastdepCC_FALSE='#'
4038 else 4040 else
4039 am__fastdepCC_TRUE='#' 4041 am__fastdepCC_TRUE='#'
4040 am__fastdepCC_FALSE= 4042 am__fastdepCC_FALSE=
4041 fi 4043 fi
4042 4044
4043 4045
4046
4047 if test -n "$ac_tool_prefix"; then
4048 for ac_prog in ar lib "link -lib"
4049 do
4050 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a progra m name with args.
4051 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4053 $as_echo_n "checking for $ac_word... " >&6; }
4054 if ${ac_cv_prog_AR+:} false; then :
4055 $as_echo_n "(cached) " >&6
4056 else
4057 if test -n "$AR"; then
4058 ac_cv_prog_AR="$AR" # Let the user override the test.
4059 else
4060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4061 for as_dir in $PATH
4062 do
4063 IFS=$as_save_IFS
4064 test -z "$as_dir" && as_dir=.
4065 for ac_exec_ext in '' $ac_executable_extensions; do
4066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4067 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
4069 break 2
4070 fi
4071 done
4072 done
4073 IFS=$as_save_IFS
4074
4075 fi
4076 fi
4077 AR=$ac_cv_prog_AR
4078 if test -n "$AR"; then
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4080 $as_echo "$AR" >&6; }
4081 else
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4083 $as_echo "no" >&6; }
4084 fi
4085
4086
4087 test -n "$AR" && break
4088 done
4089 fi
4090 if test -z "$AR"; then
4091 ac_ct_AR=$AR
4092 for ac_prog in ar lib "link -lib"
4093 do
4094 # Extract the first word of "$ac_prog", so it can be a program name with args.
4095 set dummy $ac_prog; ac_word=$2
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4097 $as_echo_n "checking for $ac_word... " >&6; }
4098 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4099 $as_echo_n "(cached) " >&6
4100 else
4101 if test -n "$ac_ct_AR"; then
4102 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4103 else
4104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4105 for as_dir in $PATH
4106 do
4107 IFS=$as_save_IFS
4108 test -z "$as_dir" && as_dir=.
4109 for ac_exec_ext in '' $ac_executable_extensions; do
4110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4111 ac_cv_prog_ac_ct_AR="$ac_prog"
4112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
4113 break 2
4114 fi
4115 done
4116 done
4117 IFS=$as_save_IFS
4118
4119 fi
4120 fi
4121 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4122 if test -n "$ac_ct_AR"; then
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4124 $as_echo "$ac_ct_AR" >&6; }
4125 else
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4127 $as_echo "no" >&6; }
4128 fi
4129
4130
4131 test -n "$ac_ct_AR" && break
4132 done
4133
4134 if test "x$ac_ct_AR" = x; then
4135 AR="false"
4136 else
4137 case $cross_compiling:$ac_tool_warned in
4138 yes:)
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4140 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2 ;}
4141 ac_tool_warned=yes ;;
4142 esac
4143 AR=$ac_ct_AR
4144 fi
4145 fi
4146
4147 : ${AR=ar}
4148
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4150 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4151 if ${am_cv_ar_interface+:} false; then :
4152 $as_echo_n "(cached) " >&6
4153 else
4154 ac_ext=c
4155 ac_cpp='$CPP $CPPFLAGS'
4156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5'
4158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4159
4160 am_cv_ar_interface=ar
4161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4162 /* end confdefs.h. */
4163 int some_variable = 0;
4164 _ACEOF
4165 if ac_fn_c_try_compile "$LINENO"; then :
4166 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4167 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4168 (eval $am_ar_try) 2>&5
4169 ac_status=$?
4170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4171 test $ac_status = 0; }
4172 if test "$ac_status" -eq 0; then
4173 am_cv_ar_interface=ar
4174 else
4175 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4176 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4177 (eval $am_ar_try) 2>&5
4178 ac_status=$?
4179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4180 test $ac_status = 0; }
4181 if test "$ac_status" -eq 0; then
4182 am_cv_ar_interface=lib
4183 else
4184 am_cv_ar_interface=unknown
4185 fi
4186 fi
4187 rm -f conftest.lib libconftest.a
4188
4189 fi
4190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4191 ac_ext=c
4192 ac_cpp='$CPP $CPPFLAGS'
4193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5'
4195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4196
4197 fi
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4199 $as_echo "$am_cv_ar_interface" >&6; }
4200
4201 case $am_cv_ar_interface in
4202 ar)
4203 ;;
4204 lib)
4205 # Microsoft lib, so override with the ar-lib wrapper script.
4206 # FIXME: It is wrong to rewrite AR.
4207 # But if we don't then we get into trouble of one sort or another.
4208 # A longer-term fix would be to have automake use am__AR in this case,
4209 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4210 # similar.
4211 AR="$am_aux_dir/ar-lib $AR"
4212 ;;
4213 unknown)
4214 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4215 ;;
4216 esac
4217
4044 # By default we simply use the C compiler to build assembly code. 4218 # By default we simply use the C compiler to build assembly code.
4045 4219
4046 test "${CCAS+set}" = set || CCAS=$CC 4220 test "${CCAS+set}" = set || CCAS=$CC
4047 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS 4221 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4048 4222
4049 4223
4050 4224
4051 depcc="$CCAS" am_compiler_list= 4225 depcc="$CCAS" am_compiler_list=
4052 4226
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >& 5 4227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >& 5
(...skipping 1484 matching lines...) Expand 10 before | Expand all | Expand 10 after
5538 *) 5712 *)
5539 as_fn_error $? "bad value ${enableval} for --enable-m32" "$LI NENO" 5 5713 as_fn_error $? "bad value ${enableval} for --enable-m32" "$LI NENO" 5
5540 ;; 5714 ;;
5541 esac 5715 esac
5542 else 5716 else
5543 usem32=false 5717 usem32=false
5544 fi 5718 fi
5545 5719
5546 5720
5547 5721
5548
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lin es and -e" >&5 5722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lin es and -e" >&5
5550 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 5723 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5551 if ${ac_cv_path_GREP+:} false; then : 5724 if ${ac_cv_path_GREP+:} false; then :
5552 $as_echo_n "(cached) " >&6 5725 $as_echo_n "(cached) " >&6
5553 else 5726 else
5554 if test -z "$GREP"; then 5727 if test -z "$GREP"; then
5555 ac_path_GREP_found=false 5728 ac_path_GREP_found=false
5556 # Loop through the user's path and test for each of PROGNAME-LIST 5729 # Loop through the user's path and test for each of PROGNAME-LIST
5557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5558 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5731 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
(...skipping 2515 matching lines...) Expand 10 before | Expand all | Expand 10 after
8074 exec 5>>config.log 8247 exec 5>>config.log
8075 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 8248 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8076 # would make configure fail if this is the last instruction. 8249 # would make configure fail if this is the last instruction.
8077 $ac_cs_success || as_fn_exit 1 8250 $ac_cs_success || as_fn_exit 1
8078 fi 8251 fi
8079 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 8252 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_un recognized_opts" >&5 8253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_un recognized_opts" >&5
8081 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 8254 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8082 fi 8255 fi
8083 8256
OLDNEW
« no previous file with comments | « autotools/ar-lib ('k') | configure.ac » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698