]>
Commit | Line | Data |
---|---|---|
671aa708 | 1 | #! /bin/sh |
671aa708 | 2 | # Guess values for system-dependent variables and create Makefiles. |
2aeb72e9 | 3 | # Generated by GNU Autoconf 2.59. |
671aa708 | 4 | # |
2aeb72e9 | 5 | # Copyright (C) 2003 Free Software Foundation, Inc. |
671aa708 NN |
6 | # This configure script is free software; the Free Software Foundation |
7 | # gives unlimited permission to copy, distribute and modify it. | |
1c710c3c DJ |
8 | ## --------------------- ## |
9 | ## M4sh Initialization. ## | |
10 | ## --------------------- ## | |
11 | ||
2aeb72e9 | 12 | # Be Bourne compatible |
1c710c3c DJ |
13 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
14 | emulate sh | |
15 | NULLCMD=: | |
16 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
17 | # is contrary to our usage. Disable this feature. | |
18 | alias -g '${1+"$@"}'='"$@"' | |
2aeb72e9 DD |
19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
20 | set -o posix | |
1c710c3c | 21 | fi |
2aeb72e9 | 22 | DUALCASE=1; export DUALCASE # for MKS sh |
1c710c3c DJ |
23 | |
24 | # Support unset when possible. | |
25 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
26 | as_unset=unset | |
27 | else | |
28 | as_unset=false | |
29 | fi | |
30 | ||
31 | ||
32 | # Work around bugs in pre-3.0 UWIN ksh. | |
2aeb72e9 | 33 | $as_unset ENV MAIL MAILPATH |
1c710c3c DJ |
34 | PS1='$ ' |
35 | PS2='> ' | |
36 | PS4='+ ' | |
37 | ||
38 | # NLS nuisances. | |
39 | for as_var in \ | |
40 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
41 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
42 | LC_TELEPHONE LC_TIME | |
43 | do | |
44 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
45 | eval $as_var=C; export $as_var | |
46 | else | |
2aeb72e9 | 47 | $as_unset $as_var |
1c710c3c DJ |
48 | fi |
49 | done | |
50 | ||
51 | # Required to use basename. | |
2aeb72e9 | 52 | if expr a : '\(a\)' >/dev/null 2>&1; then |
1c710c3c DJ |
53 | as_expr=expr |
54 | else | |
55 | as_expr=false | |
56 | fi | |
57 | ||
2aeb72e9 | 58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
1c710c3c DJ |
59 | as_basename=basename |
60 | else | |
61 | as_basename=false | |
62 | fi | |
63 | ||
64 | ||
65 | # Name of the executable. | |
2aeb72e9 | 66 | as_me=`$as_basename "$0" || |
1c710c3c DJ |
67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
68 | X"$0" : 'X\(//\)$' \| \ | |
2aeb72e9 DD |
69 | X"$0" : 'X\(/\)$' \| \ |
70 | . : '\(.\)' 2>/dev/null || | |
1c710c3c | 71 | echo X/"$0" | |
2aeb72e9 DD |
72 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
73 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
74 | /^X\/\(\/\).*/{ s//\1/; q; } | |
75 | s/.*/./; q'` | |
1c710c3c | 76 | |
1c710c3c | 77 | |
2aeb72e9 DD |
78 | # PATH needs CR, and LINENO needs CR and PATH. |
79 | # Avoid depending upon Character Ranges. | |
80 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
81 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
82 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
83 | as_cr_digits='0123456789' | |
84 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
11a67599 | 85 | |
2aeb72e9 DD |
86 | # The user is always right. |
87 | if test "${PATH_SEPARATOR+set}" != set; then | |
88 | echo "#! /bin/sh" >conf$$.sh | |
89 | echo "exit 0" >>conf$$.sh | |
90 | chmod +x conf$$.sh | |
91 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
92 | PATH_SEPARATOR=';' | |
93 | else | |
94 | PATH_SEPARATOR=: | |
95 | fi | |
96 | rm -f conf$$.sh | |
11a67599 ZW |
97 | fi |
98 | ||
11a67599 | 99 | |
2aeb72e9 DD |
100 | as_lineno_1=$LINENO |
101 | as_lineno_2=$LINENO | |
102 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
103 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
104 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
105 | # Find who we are. Look in the path if we contain no path at all | |
106 | # relative or not. | |
107 | case $0 in | |
108 | *[\\/]* ) as_myself=$0 ;; | |
109 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
110 | for as_dir in $PATH | |
111 | do | |
112 | IFS=$as_save_IFS | |
113 | test -z "$as_dir" && as_dir=. | |
114 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
115 | done | |
11a67599 | 116 | |
2aeb72e9 DD |
117 | ;; |
118 | esac | |
119 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
120 | # in which case we are not to be found in the path. | |
121 | if test "x$as_myself" = x; then | |
122 | as_myself=$0 | |
123 | fi | |
124 | if test ! -f "$as_myself"; then | |
125 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 | |
126 | { (exit 1); exit 1; }; } | |
127 | fi | |
128 | case $CONFIG_SHELL in | |
129 | '') | |
1c710c3c DJ |
130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
131 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
132 | do | |
133 | IFS=$as_save_IFS | |
134 | test -z "$as_dir" && as_dir=. | |
2aeb72e9 DD |
135 | for as_base in sh bash ksh sh5; do |
136 | case $as_dir in | |
1c710c3c | 137 | /*) |
2aeb72e9 | 138 | if ("$as_dir/$as_base" -c ' |
11a67599 ZW |
139 | as_lineno_1=$LINENO |
140 | as_lineno_2=$LINENO | |
2aeb72e9 | 141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
11a67599 | 142 | test "x$as_lineno_1" != "x$as_lineno_2" && |
2aeb72e9 DD |
143 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
144 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
145 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
146 | CONFIG_SHELL=$as_dir/$as_base | |
147 | export CONFIG_SHELL | |
148 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
149 | fi;; | |
150 | esac | |
151 | done | |
152 | done | |
153 | ;; | |
154 | esac | |
1c710c3c DJ |
155 | |
156 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
157 | # uniformly replaced by the line number. The first 'sed' inserts a | |
2aeb72e9 DD |
158 | # line-number line before each line; the second 'sed' does the real |
159 | # work. The second script uses 'N' to pair each line-number line | |
160 | # with the numbered line, and appends trailing '-' during | |
161 | # substitution so that $LINENO is not a special case at line end. | |
1c710c3c | 162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
2aeb72e9 DD |
163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
164 | sed '=' <$as_myself | | |
1c710c3c DJ |
165 | sed ' |
166 | N | |
2aeb72e9 DD |
167 | s,$,-, |
168 | : loop | |
169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
1c710c3c | 170 | t loop |
2aeb72e9 DD |
171 | s,-$,, |
172 | s,^['$as_cr_digits']*\n,, | |
1c710c3c | 173 | ' >$as_me.lineno && |
2aeb72e9 | 174 | chmod +x $as_me.lineno || |
1c710c3c DJ |
175 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
176 | { (exit 1); exit 1; }; } | |
177 | ||
178 | # Don't try to exec as it changes $[0], causing all sort of problems | |
179 | # (the dirname of $[0] is not the place where we might find the | |
2aeb72e9 DD |
180 | # original and so on. Autoconf is especially sensible to this). |
181 | . ./$as_me.lineno | |
1c710c3c DJ |
182 | # Exit status is that of the last command. |
183 | exit | |
184 | } | |
185 | ||
186 | ||
2aeb72e9 DD |
187 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
188 | *c*,-n*) ECHO_N= ECHO_C=' | |
189 | ' ECHO_T=' ' ;; | |
190 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
191 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
1c710c3c DJ |
192 | esac |
193 | ||
2aeb72e9 | 194 | if expr a : '\(a\)' >/dev/null 2>&1; then |
1c710c3c DJ |
195 | as_expr=expr |
196 | else | |
197 | as_expr=false | |
198 | fi | |
199 | ||
200 | rm -f conf$$ conf$$.exe conf$$.file | |
201 | echo >conf$$.file | |
202 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
2aeb72e9 DD |
203 | # We could just check for DJGPP; but this test a) works b) is more generic |
204 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
205 | if test -f conf$$.exe; then | |
206 | # Don't use ln at all; we don't have any links | |
1c710c3c | 207 | as_ln_s='cp -p' |
2aeb72e9 DD |
208 | else |
209 | as_ln_s='ln -s' | |
210 | fi | |
1c710c3c DJ |
211 | elif ln conf$$.file conf$$ 2>/dev/null; then |
212 | as_ln_s=ln | |
213 | else | |
214 | as_ln_s='cp -p' | |
215 | fi | |
2aeb72e9 | 216 | rm -f conf$$ conf$$.exe conf$$.file |
1c710c3c DJ |
217 | |
218 | if mkdir -p . 2>/dev/null; then | |
219 | as_mkdir_p=: | |
220 | else | |
221 | test -d ./-p && rmdir ./-p | |
222 | as_mkdir_p=false | |
223 | fi | |
224 | ||
2aeb72e9 | 225 | as_executable_p="test -f" |
0b0dc272 | 226 | |
1c710c3c DJ |
227 | # Sed expression to map a string onto a valid CPP name. |
228 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
229 | ||
230 | # Sed expression to map a string onto a valid variable name. | |
231 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
232 | ||
233 | ||
2aeb72e9 DD |
234 | # IFS |
235 | # We need space, tab and new line, in precisely that order. | |
236 | as_nl=' | |
237 | ' | |
238 | IFS=" $as_nl" | |
239 | ||
240 | # CDPATH. | |
241 | $as_unset CDPATH | |
1c710c3c DJ |
242 | |
243 | ||
244 | # Name of the host. | |
245 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
246 | # so uname gets run too. | |
247 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
248 | ||
2aeb72e9 DD |
249 | exec 6>&1 |
250 | ||
1c710c3c DJ |
251 | # |
252 | # Initializations. | |
253 | # | |
671aa708 | 254 | ac_default_prefix=/usr/local |
1c710c3c DJ |
255 | ac_config_libobj_dir=. |
256 | cross_compiling=no | |
257 | subdirs= | |
258 | MFLAGS= | |
259 | MAKEFLAGS= | |
260 | SHELL=${CONFIG_SHELL-/bin/sh} | |
261 | ||
2aeb72e9 DD |
262 | # Maximum number of lines to put in a shell here document. |
263 | # This variable seems obsolete. It should probably be removed, and | |
264 | # only ac_max_sed_lines should be used. | |
265 | : ${ac_max_here_lines=38} | |
266 | ||
1c710c3c DJ |
267 | # Identity of this package. |
268 | PACKAGE_NAME= | |
269 | PACKAGE_TARNAME= | |
270 | PACKAGE_VERSION= | |
271 | PACKAGE_STRING= | |
272 | PACKAGE_BUGREPORT= | |
273 | ||
274 | ac_unique_file="move-if-change" | |
901119ae | 275 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os build_noncanonical host_noncanonical target_noncanonical host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN LN_S TOPLEVEL_CONFIGURE_ARGUMENTS build_libsubdir build_subdir host_subdir target_subdir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX GNATBIND ac_ct_GNATBIND GNATMAKE ac_ct_GNATMAKE do_compare gmplibs gmpinc stage1_languages SYSROOT_CFLAGS_FOR_TARGET RPATH_ENVVAR tooldir build_tooldir CONFIGURE_GDB_TK GDB_TK INSTALL_GDB_TK build_configargs build_configdirs host_configargs configdirs target_configargs CC_FOR_BUILD config_shell YACC BISON M4 LEX FLEX MAKEINFO EXPECT RUNTEST AR AS DLLTOOL LD LIPO NM RANLIB STRIP WINDRES WINDMC OBJCOPY OBJDUMP CFLAGS_FOR_BUILD CC_FOR_TARGET CXX_FOR_TARGET GCC_FOR_TARGET GCJ_FOR_TARGET GFORTRAN_FOR_TARGET AR_FOR_TARGET AS_FOR_TARGET DLLTOOL_FOR_TARGET LD_FOR_TARGET LIPO_FOR_TARGET NM_FOR_TARGET OBJDUMP_FOR_TARGET RANLIB_FOR_TARGET STRIP_FOR_TARGET WINDRES_FOR_TARGET WINDMC_FOR_TARGET RAW_CXX_FOR_TARGET FLAGS_FOR_TARGET COMPILER_AS_FOR_TARGET COMPILER_LD_FOR_TARGET COMPILER_NM_FOR_TARGET MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT stage1_cflags stage1_checking stage2_werror_flag datarootdir docdir pdfdir htmldir LIBOBJS LTLIBOBJS' |
2aeb72e9 | 276 | ac_subst_files='serialization_dependencies host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag' |
671aa708 NN |
277 | |
278 | # Initialize some variables set by options. | |
1c710c3c DJ |
279 | ac_init_help= |
280 | ac_init_version=false | |
671aa708 NN |
281 | # The variables have the same names as the options, with |
282 | # dashes changed to underlines. | |
1c710c3c | 283 | cache_file=/dev/null |
671aa708 | 284 | exec_prefix=NONE |
671aa708 | 285 | no_create= |
671aa708 NN |
286 | no_recursion= |
287 | prefix=NONE | |
288 | program_prefix=NONE | |
289 | program_suffix=NONE | |
290 | program_transform_name=s,x,x, | |
291 | silent= | |
292 | site= | |
293 | srcdir= | |
671aa708 NN |
294 | verbose= |
295 | x_includes=NONE | |
296 | x_libraries=NONE | |
1c710c3c DJ |
297 | |
298 | # Installation directory options. | |
299 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
300 | # and all the variables that are supposed to be based on exec_prefix | |
301 | # by default will actually change. | |
302 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
671aa708 NN |
303 | bindir='${exec_prefix}/bin' |
304 | sbindir='${exec_prefix}/sbin' | |
305 | libexecdir='${exec_prefix}/libexec' | |
2aeb72e9 | 306 | datadir='${prefix}/share' |
671aa708 NN |
307 | sysconfdir='${prefix}/etc' |
308 | sharedstatedir='${prefix}/com' | |
309 | localstatedir='${prefix}/var' | |
2aeb72e9 | 310 | libdir='${exec_prefix}/lib' |
671aa708 NN |
311 | includedir='${prefix}/include' |
312 | oldincludedir='/usr/include' | |
2aeb72e9 DD |
313 | infodir='${prefix}/info' |
314 | mandir='${prefix}/man' | |
79c06341 | 315 | |
671aa708 NN |
316 | ac_prev= |
317 | for ac_option | |
318 | do | |
671aa708 NN |
319 | # If the previous option needs an argument, assign it. |
320 | if test -n "$ac_prev"; then | |
2aeb72e9 | 321 | eval "$ac_prev=\$ac_option" |
671aa708 NN |
322 | ac_prev= |
323 | continue | |
324 | fi | |
79c06341 | 325 | |
2aeb72e9 | 326 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
671aa708 NN |
327 | |
328 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
329 | ||
2aeb72e9 | 330 | case $ac_option in |
671aa708 NN |
331 | |
332 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
333 | ac_prev=bindir ;; | |
334 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
1c710c3c | 335 | bindir=$ac_optarg ;; |
671aa708 NN |
336 | |
337 | -build | --build | --buil | --bui | --bu) | |
1c710c3c | 338 | ac_prev=build_alias ;; |
671aa708 | 339 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
1c710c3c | 340 | build_alias=$ac_optarg ;; |
671aa708 NN |
341 | |
342 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
343 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
344 | ac_prev=cache_file ;; | |
345 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
346 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
1c710c3c DJ |
347 | cache_file=$ac_optarg ;; |
348 | ||
349 | --config-cache | -C) | |
350 | cache_file=config.cache ;; | |
671aa708 | 351 | |
2aeb72e9 | 352 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
671aa708 | 353 | ac_prev=datadir ;; |
2aeb72e9 DD |
354 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
355 | | --da=*) | |
1c710c3c | 356 | datadir=$ac_optarg ;; |
671aa708 NN |
357 | |
358 | -disable-* | --disable-*) | |
1c710c3c | 359 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
671aa708 | 360 | # Reject names that are not valid shell variable names. |
2aeb72e9 | 361 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
1c710c3c DJ |
362 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
363 | { (exit 1); exit 1; }; } | |
2aeb72e9 DD |
364 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
365 | eval "enable_$ac_feature=no" ;; | |
671aa708 NN |
366 | |
367 | -enable-* | --enable-*) | |
1c710c3c | 368 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
671aa708 | 369 | # Reject names that are not valid shell variable names. |
2aeb72e9 | 370 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
1c710c3c DJ |
371 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
372 | { (exit 1); exit 1; }; } | |
2aeb72e9 DD |
373 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
374 | case $ac_option in | |
375 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
376 | *) ac_optarg=yes ;; | |
377 | esac | |
378 | eval "enable_$ac_feature='$ac_optarg'" ;; | |
671aa708 NN |
379 | |
380 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
381 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
382 | | --exec | --exe | --ex) | |
383 | ac_prev=exec_prefix ;; | |
384 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
385 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
386 | | --exec=* | --exe=* | --ex=*) | |
1c710c3c | 387 | exec_prefix=$ac_optarg ;; |
671aa708 NN |
388 | |
389 | -gas | --gas | --ga | --g) | |
390 | # Obsolete; use --with-gas. | |
391 | with_gas=yes ;; | |
392 | ||
1c710c3c DJ |
393 | -help | --help | --hel | --he | -h) |
394 | ac_init_help=long ;; | |
395 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
396 | ac_init_help=recursive ;; | |
397 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
398 | ac_init_help=short ;; | |
671aa708 NN |
399 | |
400 | -host | --host | --hos | --ho) | |
1c710c3c | 401 | ac_prev=host_alias ;; |
671aa708 | 402 | -host=* | --host=* | --hos=* | --ho=*) |
1c710c3c | 403 | host_alias=$ac_optarg ;; |
671aa708 NN |
404 | |
405 | -includedir | --includedir | --includedi | --included | --include \ | |
406 | | --includ | --inclu | --incl | --inc) | |
407 | ac_prev=includedir ;; | |
408 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
409 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1c710c3c | 410 | includedir=$ac_optarg ;; |
671aa708 NN |
411 | |
412 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
413 | ac_prev=infodir ;; | |
414 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1c710c3c | 415 | infodir=$ac_optarg ;; |
671aa708 NN |
416 | |
417 | -libdir | --libdir | --libdi | --libd) | |
418 | ac_prev=libdir ;; | |
419 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1c710c3c | 420 | libdir=$ac_optarg ;; |
671aa708 NN |
421 | |
422 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
423 | | --libexe | --libex | --libe) | |
424 | ac_prev=libexecdir ;; | |
425 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
426 | | --libexe=* | --libex=* | --libe=*) | |
1c710c3c | 427 | libexecdir=$ac_optarg ;; |
671aa708 NN |
428 | |
429 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
2aeb72e9 DD |
430 | | --localstate | --localstat | --localsta | --localst \ |
431 | | --locals | --local | --loca | --loc | --lo) | |
671aa708 NN |
432 | ac_prev=localstatedir ;; |
433 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
2aeb72e9 DD |
434 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
435 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
1c710c3c | 436 | localstatedir=$ac_optarg ;; |
671aa708 NN |
437 | |
438 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
439 | ac_prev=mandir ;; | |
440 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1c710c3c | 441 | mandir=$ac_optarg ;; |
671aa708 NN |
442 | |
443 | -nfp | --nfp | --nf) | |
444 | # Obsolete; use --without-fp. | |
445 | with_fp=no ;; | |
446 | ||
447 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1c710c3c | 448 | | --no-cr | --no-c | -n) |
671aa708 NN |
449 | no_create=yes ;; |
450 | ||
451 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
452 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
453 | no_recursion=yes ;; | |
454 | ||
455 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
456 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
457 | | --oldin | --oldi | --old | --ol | --o) | |
458 | ac_prev=oldincludedir ;; | |
459 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
460 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
461 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1c710c3c | 462 | oldincludedir=$ac_optarg ;; |
671aa708 NN |
463 | |
464 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
465 | ac_prev=prefix ;; | |
466 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1c710c3c | 467 | prefix=$ac_optarg ;; |
671aa708 NN |
468 | |
469 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
470 | | --program-pre | --program-pr | --program-p) | |
471 | ac_prev=program_prefix ;; | |
472 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
473 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1c710c3c | 474 | program_prefix=$ac_optarg ;; |
671aa708 NN |
475 | |
476 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
477 | | --program-suf | --program-su | --program-s) | |
478 | ac_prev=program_suffix ;; | |
479 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
480 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1c710c3c | 481 | program_suffix=$ac_optarg ;; |
671aa708 NN |
482 | |
483 | -program-transform-name | --program-transform-name \ | |
484 | | --program-transform-nam | --program-transform-na \ | |
485 | | --program-transform-n | --program-transform- \ | |
486 | | --program-transform | --program-transfor \ | |
487 | | --program-transfo | --program-transf \ | |
488 | | --program-trans | --program-tran \ | |
489 | | --progr-tra | --program-tr | --program-t) | |
490 | ac_prev=program_transform_name ;; | |
491 | -program-transform-name=* | --program-transform-name=* \ | |
492 | | --program-transform-nam=* | --program-transform-na=* \ | |
493 | | --program-transform-n=* | --program-transform-=* \ | |
494 | | --program-transform=* | --program-transfor=* \ | |
495 | | --program-transfo=* | --program-transf=* \ | |
496 | | --program-trans=* | --program-tran=* \ | |
497 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1c710c3c | 498 | program_transform_name=$ac_optarg ;; |
671aa708 NN |
499 | |
500 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
501 | | -silent | --silent | --silen | --sile | --sil) | |
502 | silent=yes ;; | |
503 | ||
504 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
505 | ac_prev=sbindir ;; | |
506 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
507 | | --sbi=* | --sb=*) | |
1c710c3c | 508 | sbindir=$ac_optarg ;; |
671aa708 NN |
509 | |
510 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
511 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
512 | | --sharedst | --shareds | --shared | --share | --shar \ | |
513 | | --sha | --sh) | |
514 | ac_prev=sharedstatedir ;; | |
515 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
516 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
517 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
518 | | --sha=* | --sh=*) | |
1c710c3c | 519 | sharedstatedir=$ac_optarg ;; |
671aa708 NN |
520 | |
521 | -site | --site | --sit) | |
522 | ac_prev=site ;; | |
523 | -site=* | --site=* | --sit=*) | |
1c710c3c | 524 | site=$ac_optarg ;; |
671aa708 NN |
525 | |
526 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
527 | ac_prev=srcdir ;; | |
528 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1c710c3c | 529 | srcdir=$ac_optarg ;; |
671aa708 NN |
530 | |
531 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
532 | | --syscon | --sysco | --sysc | --sys | --sy) | |
533 | ac_prev=sysconfdir ;; | |
534 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
535 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1c710c3c | 536 | sysconfdir=$ac_optarg ;; |
671aa708 NN |
537 | |
538 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1c710c3c | 539 | ac_prev=target_alias ;; |
671aa708 | 540 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
1c710c3c | 541 | target_alias=$ac_optarg ;; |
671aa708 NN |
542 | |
543 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
544 | verbose=yes ;; | |
545 | ||
1c710c3c DJ |
546 | -version | --version | --versio | --versi | --vers | -V) |
547 | ac_init_version=: ;; | |
671aa708 NN |
548 | |
549 | -with-* | --with-*) | |
1c710c3c | 550 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
671aa708 | 551 | # Reject names that are not valid shell variable names. |
2aeb72e9 | 552 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
1c710c3c DJ |
553 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
554 | { (exit 1); exit 1; }; } | |
2aeb72e9 DD |
555 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
556 | case $ac_option in | |
557 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
558 | *) ac_optarg=yes ;; | |
559 | esac | |
560 | eval "with_$ac_package='$ac_optarg'" ;; | |
671aa708 NN |
561 | |
562 | -without-* | --without-*) | |
1c710c3c | 563 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
671aa708 | 564 | # Reject names that are not valid shell variable names. |
2aeb72e9 | 565 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
1c710c3c DJ |
566 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
567 | { (exit 1); exit 1; }; } | |
2aeb72e9 DD |
568 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
569 | eval "with_$ac_package=no" ;; | |
671aa708 NN |
570 | |
571 | --x) | |
572 | # Obsolete; use --with-x. | |
573 | with_x=yes ;; | |
574 | ||
575 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
576 | | --x-incl | --x-inc | --x-in | --x-i) | |
577 | ac_prev=x_includes ;; | |
578 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
579 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1c710c3c | 580 | x_includes=$ac_optarg ;; |
671aa708 NN |
581 | |
582 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
583 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
584 | ac_prev=x_libraries ;; | |
585 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
586 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1c710c3c | 587 | x_libraries=$ac_optarg ;; |
671aa708 | 588 | |
1c710c3c DJ |
589 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
590 | Try \`$0 --help' for more information." >&2 | |
591 | { (exit 1); exit 1; }; } | |
671aa708 NN |
592 | ;; |
593 | ||
1c710c3c DJ |
594 | *=*) |
595 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
596 | # Reject names that are not valid shell variable names. | |
597 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
598 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
599 | { (exit 1); exit 1; }; } | |
2aeb72e9 DD |
600 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
601 | eval "$ac_envvar='$ac_optarg'" | |
1c710c3c DJ |
602 | export $ac_envvar ;; |
603 | ||
671aa708 | 604 | *) |
1c710c3c DJ |
605 | # FIXME: should be removed in autoconf 3.0. |
606 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
607 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
608 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
609 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
671aa708 NN |
610 | ;; |
611 | ||
612 | esac | |
613 | done | |
614 | ||
615 | if test -n "$ac_prev"; then | |
1c710c3c DJ |
616 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
617 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
618 | { (exit 1); exit 1; }; } | |
af71363e | 619 | fi |
af71363e | 620 | |
2aeb72e9 DD |
621 | # Be sure to have absolute paths. |
622 | for ac_var in exec_prefix prefix | |
671aa708 | 623 | do |
2aeb72e9 | 624 | eval ac_val=$`echo $ac_var` |
1c710c3c | 625 | case $ac_val in |
2aeb72e9 DD |
626 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
627 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
628 | { (exit 1); exit 1; }; };; | |
629 | esac | |
630 | done | |
631 | ||
632 | # Be sure to have absolute paths. | |
633 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
634 | localstatedir libdir includedir oldincludedir infodir mandir | |
635 | do | |
636 | eval ac_val=$`echo $ac_var` | |
637 | case $ac_val in | |
638 | [\\/$]* | ?:[\\/]* ) ;; | |
639 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
640 | { (exit 1); exit 1; }; };; | |
671aa708 NN |
641 | esac |
642 | done | |
643 | ||
1c710c3c DJ |
644 | # There might be people who depend on the old broken behavior: `$host' |
645 | # used to hold the argument of --host etc. | |
646 | # FIXME: To remove some day. | |
647 | build=$build_alias | |
648 | host=$host_alias | |
649 | target=$target_alias | |
0b0dc272 | 650 | |
1c710c3c DJ |
651 | # FIXME: To remove some day. |
652 | if test "x$host_alias" != x; then | |
653 | if test "x$build_alias" = x; then | |
654 | cross_compiling=maybe | |
655 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
656 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
657 | elif test "x$build_alias" != "x$host_alias"; then | |
658 | cross_compiling=yes | |
659 | fi | |
660 | fi | |
661 | ||
662 | ac_tool_prefix= | |
663 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
664 | ||
665 | test "$silent" = yes && exec 6>/dev/null | |
671aa708 | 666 | |
671aa708 NN |
667 | |
668 | # Find the source files, if location was not specified. | |
669 | if test -z "$srcdir"; then | |
670 | ac_srcdir_defaulted=yes | |
2aeb72e9 DD |
671 | # Try the directory containing this script, then its parent. |
672 | ac_confdir=`(dirname "$0") 2>/dev/null || | |
1c710c3c DJ |
673 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
674 | X"$0" : 'X\(//\)[^/]' \| \ | |
675 | X"$0" : 'X\(//\)$' \| \ | |
2aeb72e9 DD |
676 | X"$0" : 'X\(/\)' \| \ |
677 | . : '\(.\)' 2>/dev/null || | |
1c710c3c | 678 | echo X"$0" | |
2aeb72e9 DD |
679 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
680 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
681 | /^X\(\/\/\)$/{ s//\1/; q; } | |
682 | /^X\(\/\).*/{ s//\1/; q; } | |
683 | s/.*/./; q'` | |
671aa708 | 684 | srcdir=$ac_confdir |
2aeb72e9 | 685 | if test ! -r $srcdir/$ac_unique_file; then |
671aa708 NN |
686 | srcdir=.. |
687 | fi | |
688 | else | |
689 | ac_srcdir_defaulted=no | |
690 | fi | |
2aeb72e9 DD |
691 | if test ! -r $srcdir/$ac_unique_file; then |
692 | if test "$ac_srcdir_defaulted" = yes; then | |
693 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 | |
694 | { (exit 1); exit 1; }; } | |
695 | else | |
696 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
1c710c3c | 697 | { (exit 1); exit 1; }; } |
2aeb72e9 | 698 | fi |
1c710c3c | 699 | fi |
2aeb72e9 DD |
700 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
701 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
1c710c3c | 702 | { (exit 1); exit 1; }; } |
2aeb72e9 DD |
703 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
704 | ac_env_build_alias_set=${build_alias+set} | |
705 | ac_env_build_alias_value=$build_alias | |
706 | ac_cv_env_build_alias_set=${build_alias+set} | |
707 | ac_cv_env_build_alias_value=$build_alias | |
708 | ac_env_host_alias_set=${host_alias+set} | |
709 | ac_env_host_alias_value=$host_alias | |
710 | ac_cv_env_host_alias_set=${host_alias+set} | |
711 | ac_cv_env_host_alias_value=$host_alias | |
712 | ac_env_target_alias_set=${target_alias+set} | |
713 | ac_env_target_alias_value=$target_alias | |
714 | ac_cv_env_target_alias_set=${target_alias+set} | |
715 | ac_cv_env_target_alias_value=$target_alias | |
716 | ac_env_CC_set=${CC+set} | |
717 | ac_env_CC_value=$CC | |
718 | ac_cv_env_CC_set=${CC+set} | |
719 | ac_cv_env_CC_value=$CC | |
720 | ac_env_CFLAGS_set=${CFLAGS+set} | |
721 | ac_env_CFLAGS_value=$CFLAGS | |
722 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
723 | ac_cv_env_CFLAGS_value=$CFLAGS | |
724 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
725 | ac_env_LDFLAGS_value=$LDFLAGS | |
726 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
727 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
728 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
729 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
730 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
731 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
732 | ac_env_CXX_set=${CXX+set} | |
733 | ac_env_CXX_value=$CXX | |
734 | ac_cv_env_CXX_set=${CXX+set} | |
735 | ac_cv_env_CXX_value=$CXX | |
736 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} | |
737 | ac_env_CXXFLAGS_value=$CXXFLAGS | |
738 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} | |
739 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS | |
740 | ac_env_AR_set=${AR+set} | |
741 | ac_env_AR_value=$AR | |
742 | ac_cv_env_AR_set=${AR+set} | |
743 | ac_cv_env_AR_value=$AR | |
744 | ac_env_AS_set=${AS+set} | |
745 | ac_env_AS_value=$AS | |
746 | ac_cv_env_AS_set=${AS+set} | |
747 | ac_cv_env_AS_value=$AS | |
748 | ac_env_DLLTOOL_set=${DLLTOOL+set} | |
749 | ac_env_DLLTOOL_value=$DLLTOOL | |
750 | ac_cv_env_DLLTOOL_set=${DLLTOOL+set} | |
751 | ac_cv_env_DLLTOOL_value=$DLLTOOL | |
752 | ac_env_LD_set=${LD+set} | |
753 | ac_env_LD_value=$LD | |
754 | ac_cv_env_LD_set=${LD+set} | |
755 | ac_cv_env_LD_value=$LD | |
756 | ac_env_LIPO_set=${LIPO+set} | |
757 | ac_env_LIPO_value=$LIPO | |
758 | ac_cv_env_LIPO_set=${LIPO+set} | |
759 | ac_cv_env_LIPO_value=$LIPO | |
760 | ac_env_NM_set=${NM+set} | |
761 | ac_env_NM_value=$NM | |
762 | ac_cv_env_NM_set=${NM+set} | |
763 | ac_cv_env_NM_value=$NM | |
764 | ac_env_RANLIB_set=${RANLIB+set} | |
765 | ac_env_RANLIB_value=$RANLIB | |
766 | ac_cv_env_RANLIB_set=${RANLIB+set} | |
767 | ac_cv_env_RANLIB_value=$RANLIB | |
768 | ac_env_STRIP_set=${STRIP+set} | |
769 | ac_env_STRIP_value=$STRIP | |
770 | ac_cv_env_STRIP_set=${STRIP+set} | |
771 | ac_cv_env_STRIP_value=$STRIP | |
772 | ac_env_WINDRES_set=${WINDRES+set} | |
773 | ac_env_WINDRES_value=$WINDRES | |
774 | ac_cv_env_WINDRES_set=${WINDRES+set} | |
775 | ac_cv_env_WINDRES_value=$WINDRES | |
901119ae KT |
776 | ac_env_WINDMC_set=${WINDMC+set} |
777 | ac_env_WINDMC_value=$WINDMC | |
778 | ac_cv_env_WINDMC_set=${WINDMC+set} | |
779 | ac_cv_env_WINDMC_value=$WINDMC | |
2aeb72e9 DD |
780 | ac_env_OBJCOPY_set=${OBJCOPY+set} |
781 | ac_env_OBJCOPY_value=$OBJCOPY | |
782 | ac_cv_env_OBJCOPY_set=${OBJCOPY+set} | |
783 | ac_cv_env_OBJCOPY_value=$OBJCOPY | |
784 | ac_env_OBJDUMP_set=${OBJDUMP+set} | |
785 | ac_env_OBJDUMP_value=$OBJDUMP | |
786 | ac_cv_env_OBJDUMP_set=${OBJDUMP+set} | |
787 | ac_cv_env_OBJDUMP_value=$OBJDUMP | |
788 | ac_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set} | |
789 | ac_env_CC_FOR_TARGET_value=$CC_FOR_TARGET | |
790 | ac_cv_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set} | |
791 | ac_cv_env_CC_FOR_TARGET_value=$CC_FOR_TARGET | |
792 | ac_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set} | |
793 | ac_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET | |
794 | ac_cv_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set} | |
795 | ac_cv_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET | |
796 | ac_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set} | |
797 | ac_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET | |
798 | ac_cv_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set} | |
799 | ac_cv_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET | |
800 | ac_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set} | |
801 | ac_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET | |
802 | ac_cv_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set} | |
803 | ac_cv_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET | |
804 | ac_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set} | |
805 | ac_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET | |
806 | ac_cv_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set} | |
807 | ac_cv_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET | |
808 | ac_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set} | |
809 | ac_env_AR_FOR_TARGET_value=$AR_FOR_TARGET | |
810 | ac_cv_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set} | |
811 | ac_cv_env_AR_FOR_TARGET_value=$AR_FOR_TARGET | |
812 | ac_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set} | |
813 | ac_env_AS_FOR_TARGET_value=$AS_FOR_TARGET | |
814 | ac_cv_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set} | |
815 | ac_cv_env_AS_FOR_TARGET_value=$AS_FOR_TARGET | |
816 | ac_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set} | |
817 | ac_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET | |
818 | ac_cv_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set} | |
819 | ac_cv_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET | |
820 | ac_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set} | |
821 | ac_env_LD_FOR_TARGET_value=$LD_FOR_TARGET | |
822 | ac_cv_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set} | |
823 | ac_cv_env_LD_FOR_TARGET_value=$LD_FOR_TARGET | |
824 | ac_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set} | |
825 | ac_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET | |
826 | ac_cv_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set} | |
827 | ac_cv_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET | |
828 | ac_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set} | |
829 | ac_env_NM_FOR_TARGET_value=$NM_FOR_TARGET | |
830 | ac_cv_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set} | |
831 | ac_cv_env_NM_FOR_TARGET_value=$NM_FOR_TARGET | |
832 | ac_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set} | |
833 | ac_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET | |
834 | ac_cv_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set} | |
835 | ac_cv_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET | |
836 | ac_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set} | |
837 | ac_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET | |
838 | ac_cv_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set} | |
839 | ac_cv_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET | |
840 | ac_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set} | |
841 | ac_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET | |
842 | ac_cv_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set} | |
843 | ac_cv_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET | |
844 | ac_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set} | |
845 | ac_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET | |
846 | ac_cv_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set} | |
847 | ac_cv_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET | |
901119ae KT |
848 | ac_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set} |
849 | ac_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET | |
850 | ac_cv_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set} | |
851 | ac_cv_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET | |
1c710c3c DJ |
852 | |
853 | # | |
854 | # Report the --help message. | |
855 | # | |
856 | if test "$ac_init_help" = "long"; then | |
857 | # Omit some internal or obsolete options to make the list less imposing. | |
858 | # This message is too long to be a string in the A/UX 3.1 sh. | |
859 | cat <<_ACEOF | |
860 | \`configure' configures this package to adapt to many kinds of systems. | |
861 | ||
862 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
863 | ||
864 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
865 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
866 | ||
867 | Defaults for the options are specified in brackets. | |
868 | ||
869 | Configuration: | |
870 | -h, --help display this help and exit | |
871 | --help=short display options specific to this package | |
872 | --help=recursive display the short help of all the included packages | |
873 | -V, --version display version information and exit | |
874 | -q, --quiet, --silent do not print \`checking...' messages | |
875 | --cache-file=FILE cache test results in FILE [disabled] | |
876 | -C, --config-cache alias for \`--cache-file=config.cache' | |
877 | -n, --no-create do not create output files | |
878 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
879 | ||
2aeb72e9 DD |
880 | _ACEOF |
881 | ||
882 | cat <<_ACEOF | |
1c710c3c DJ |
883 | Installation directories: |
884 | --prefix=PREFIX install architecture-independent files in PREFIX | |
885 | [$ac_default_prefix] | |
886 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
887 | [PREFIX] | |
888 | ||
889 | By default, \`make install' will install all the files in | |
890 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
891 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
892 | for instance \`--prefix=\$HOME'. | |
893 | ||
894 | For better control, use the options below. | |
895 | ||
896 | Fine tuning of the installation directories: | |
897 | --bindir=DIR user executables [EPREFIX/bin] | |
898 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
899 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
2aeb72e9 | 900 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
1c710c3c DJ |
901 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
902 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
903 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
904 | --libdir=DIR object code libraries [EPREFIX/lib] | |
905 | --includedir=DIR C header files [PREFIX/include] | |
906 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
2aeb72e9 DD |
907 | --infodir=DIR info documentation [PREFIX/info] |
908 | --mandir=DIR man documentation [PREFIX/man] | |
1c710c3c DJ |
909 | _ACEOF |
910 | ||
911 | cat <<\_ACEOF | |
912 | ||
913 | Program names: | |
914 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
915 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
916 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
917 | ||
918 | System types: | |
919 | --build=BUILD configure for building on BUILD [guessed] | |
920 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
921 | --target=TARGET configure for building compilers for TARGET [HOST] | |
922 | _ACEOF | |
923 | fi | |
924 | ||
925 | if test -n "$ac_init_help"; then | |
926 | ||
927 | cat <<\_ACEOF | |
928 | ||
929 | Optional Features: | |
930 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
931 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
932 | --enable-libada Builds libada directory | |
933 | --enable-libssp Builds libssp directory | |
934 | --enable-stage1-languages=all choose additional languages to build during | |
935 | stage1. Mostly useful for compiler development. | |
936 | --enable-objc-gc enable the use of Boehm's garbage collector with | |
937 | the GNU Objective-C runtime. | |
938 | --enable-bootstrap Enable bootstrapping yes if native build | |
939 | --enable-serial-{host,target,build}-configure | |
940 | Force sequential configuration of | |
941 | sub-packages for the host, target or build | |
942 | machine, or all sub-packages | |
943 | --enable-maintainer-mode enable make rules and dependencies not useful | |
944 | (and sometimes confusing) to the casual installer | |
945 | --enable-stage1-checking=all choose additional checking for stage1 | |
946 | of the compiler. | |
947 | --enable-werror enable -Werror in bootstrap stage2 and later | |
948 | ||
949 | Optional Packages: | |
950 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
951 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
952 | --with-build-libsubdir=DIR Directory where to find libraries for build system | |
953 | --with-mpfr-dir=PATH This option has been REMOVED | |
954 | --with-mpfr=PATH Specify prefix directory for installed MPFR package | |
955 | Equivalent to --with-mpfr-include=PATH/include | |
956 | plus --with-mpfr-lib=PATH/lib | |
957 | --with-mpfr-include=PATH | |
958 | Specify directory for installed MPFR include files | |
959 | --with-mpfr-lib=PATH Specify the directory for the installed MPFR library | |
960 | --with-gmp-dir=PATH This option has been REMOVED | |
961 | --with-gmp=PATH Specify prefix directory for the installed GMP package | |
962 | Equivalent to --with-gmp-include=PATH/include | |
963 | plus --with-gmp-lib=PATH/lib | |
964 | --with-gmp-include=PATH Specify directory for installed GMP include files | |
965 | --with-gmp-lib=PATH Specify the directory for the installed GMP library | |
966 | --with-build-sysroot=sysroot | |
967 | use sysroot as the system root during the build | |
968 | --with-build-time-tools=path | |
969 | use given path to find target tools during the build | |
970 | --with-datarootdir Use datarootdir as the data root directory. | |
971 | --with-docdir Install documentation in this directory. | |
9c4d2493 | 972 | --with-pdfdir Install pdf in this directory. |
1c710c3c DJ |
973 | --with-htmldir Install html in this directory. |
974 | ||
975 | Some influential environment variables: | |
976 | CC C compiler command | |
977 | CFLAGS C compiler flags | |
978 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
979 | nonstandard directory <lib dir> | |
2aeb72e9 DD |
980 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
981 | headers in a nonstandard directory <include dir> | |
c3a86da9 DJ |
982 | CXX C++ compiler command |
983 | CXXFLAGS C++ compiler flags | |
278a7a38 AO |
984 | AR AR for the host |
985 | AS AS for the host | |
986 | DLLTOOL DLLTOOL for the host | |
987 | LD LD for the host | |
988 | LIPO LIPO for the host | |
989 | NM NM for the host | |
990 | RANLIB RANLIB for the host | |
991 | STRIP STRIP for the host | |
992 | WINDRES WINDRES for the host | |
901119ae | 993 | WINDMC WINDMC for the host |
278a7a38 AO |
994 | OBJCOPY OBJCOPY for the host |
995 | OBJDUMP OBJDUMP for the host | |
996 | CC_FOR_TARGET | |
997 | CC for the target | |
998 | CXX_FOR_TARGET | |
999 | CXX for the target | |
1000 | GCC_FOR_TARGET | |
1001 | GCC for the target | |
1002 | GCJ_FOR_TARGET | |
1003 | GCJ for the target | |
1004 | GFORTRAN_FOR_TARGET | |
1005 | GFORTRAN for the target | |
1006 | AR_FOR_TARGET | |
1007 | AR for the target | |
1008 | AS_FOR_TARGET | |
1009 | AS for the target | |
1010 | DLLTOOL_FOR_TARGET | |
1011 | DLLTOOL for the target | |
1012 | LD_FOR_TARGET | |
1013 | LD for the target | |
1014 | LIPO_FOR_TARGET | |
1015 | LIPO for the target | |
1016 | NM_FOR_TARGET | |
1017 | NM for the target | |
1018 | OBJDUMP_FOR_TARGET | |
1019 | OBJDUMP for the target | |
1020 | RANLIB_FOR_TARGET | |
1021 | RANLIB for the target | |
1022 | STRIP_FOR_TARGET | |
1023 | STRIP for the target | |
1024 | WINDRES_FOR_TARGET | |
1025 | WINDRES for the target | |
901119ae KT |
1026 | WINDMC_FOR_TARGET |
1027 | WINDMC for the target | |
1c710c3c DJ |
1028 | |
1029 | Use these variables to override the choices made by `configure' or to help | |
1030 | it to find libraries and programs with nonstandard names/locations. | |
1031 | ||
1032 | _ACEOF | |
1033 | fi | |
1034 | ||
1035 | if test "$ac_init_help" = "recursive"; then | |
1036 | # If there are subdirs, report their specific --help. | |
2aeb72e9 | 1037 | ac_popdir=`pwd` |
1c710c3c | 1038 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
2aeb72e9 | 1039 | test -d $ac_dir || continue |
1c710c3c DJ |
1040 | ac_builddir=. |
1041 | ||
2aeb72e9 | 1042 | if test "$ac_dir" != .; then |
1c710c3c | 1043 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
2aeb72e9 DD |
1044 | # A "../" for each directory in $ac_dir_suffix. |
1045 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
1046 | else | |
1047 | ac_dir_suffix= ac_top_builddir= | |
1048 | fi | |
1c710c3c DJ |
1049 | |
1050 | case $srcdir in | |
2aeb72e9 | 1051 | .) # No --srcdir option. We are building in place. |
1c710c3c | 1052 | ac_srcdir=. |
2aeb72e9 DD |
1053 | if test -z "$ac_top_builddir"; then |
1054 | ac_top_srcdir=. | |
1055 | else | |
1056 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
1057 | fi ;; | |
1058 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
1c710c3c | 1059 | ac_srcdir=$srcdir$ac_dir_suffix; |
2aeb72e9 DD |
1060 | ac_top_srcdir=$srcdir ;; |
1061 | *) # Relative path. | |
1062 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
1063 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
1064 | esac | |
1065 | ||
1066 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
1067 | # the directories may not exist. | |
1068 | case `pwd` in | |
1069 | .) ac_abs_builddir="$ac_dir";; | |
1070 | *) | |
1071 | case "$ac_dir" in | |
1072 | .) ac_abs_builddir=`pwd`;; | |
1073 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
1074 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
1075 | esac;; | |
1076 | esac | |
1077 | case $ac_abs_builddir in | |
1078 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1079 | *) | |
1080 | case ${ac_top_builddir}. in | |
1081 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
1082 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1083 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
1084 | esac;; | |
1085 | esac | |
1086 | case $ac_abs_builddir in | |
1087 | .) ac_abs_srcdir=$ac_srcdir;; | |
1088 | *) | |
1089 | case $ac_srcdir in | |
1090 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
1091 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
1092 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
1093 | esac;; | |
1094 | esac | |
1095 | case $ac_abs_builddir in | |
1096 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1097 | *) | |
1098 | case $ac_top_srcdir in | |
1099 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
1100 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1101 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
1102 | esac;; | |
1c710c3c | 1103 | esac |
2aeb72e9 DD |
1104 | |
1105 | cd $ac_dir | |
1106 | # Check for guested configure; otherwise get Cygnus style configure. | |
1107 | if test -f $ac_srcdir/configure.gnu; then | |
1108 | echo | |
1109 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
1110 | elif test -f $ac_srcdir/configure; then | |
1111 | echo | |
1112 | $SHELL $ac_srcdir/configure --help=recursive | |
1113 | elif test -f $ac_srcdir/configure.ac || | |
1114 | test -f $ac_srcdir/configure.in; then | |
1115 | echo | |
1116 | $ac_configure --help | |
1c710c3c DJ |
1117 | else |
1118 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
2aeb72e9 DD |
1119 | fi |
1120 | cd $ac_popdir | |
1c710c3c DJ |
1121 | done |
1122 | fi | |
1123 | ||
2aeb72e9 | 1124 | test -n "$ac_init_help" && exit 0 |
1c710c3c DJ |
1125 | if $ac_init_version; then |
1126 | cat <<\_ACEOF | |
1127 | ||
2aeb72e9 | 1128 | Copyright (C) 2003 Free Software Foundation, Inc. |
1c710c3c DJ |
1129 | This configure script is free software; the Free Software Foundation |
1130 | gives unlimited permission to copy, distribute and modify it. | |
1131 | _ACEOF | |
2aeb72e9 | 1132 | exit 0 |
0b0dc272 | 1133 | fi |
2aeb72e9 DD |
1134 | exec 5>config.log |
1135 | cat >&5 <<_ACEOF | |
1c710c3c DJ |
1136 | This file contains any messages produced by compilers while |
1137 | running configure, to aid debugging if configure makes a mistake. | |
1138 | ||
1139 | It was created by $as_me, which was | |
2aeb72e9 | 1140 | generated by GNU Autoconf 2.59. Invocation command line was |
1c710c3c DJ |
1141 | |
1142 | $ $0 $@ | |
1143 | ||
1144 | _ACEOF | |
1145 | { | |
1146 | cat <<_ASUNAME | |
1147 | ## --------- ## | |
1148 | ## Platform. ## | |
1149 | ## --------- ## | |
1150 | ||
1151 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1152 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1153 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1154 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1155 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1156 | ||
1157 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1158 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1159 | ||
1160 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1161 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1162 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2aeb72e9 | 1163 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
1c710c3c DJ |
1164 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1165 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1166 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1167 | ||
1168 | _ASUNAME | |
1169 | ||
1170 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1171 | for as_dir in $PATH | |
1172 | do | |
1173 | IFS=$as_save_IFS | |
1174 | test -z "$as_dir" && as_dir=. | |
1175 | echo "PATH: $as_dir" | |
1176 | done | |
1177 | ||
1178 | } >&5 | |
1179 | ||
1180 | cat >&5 <<_ACEOF | |
1181 | ||
1182 | ||
1183 | ## ----------- ## | |
1184 | ## Core tests. ## | |
1185 | ## ----------- ## | |
1186 | ||
1187 | _ACEOF | |
1188 | ||
1189 | ||
1190 | # Keep a trace of the command line. | |
1191 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1192 | # Strip out --silent because we don't want to record it for future runs. | |
1193 | # Also quote any args containing shell meta-characters. | |
1194 | # Make two passes to allow for proper duplicate-argument suppression. | |
1195 | ac_configure_args= | |
1196 | ac_configure_args0= | |
1197 | ac_configure_args1= | |
2aeb72e9 | 1198 | ac_sep= |
1c710c3c DJ |
1199 | ac_must_keep_next=false |
1200 | for ac_pass in 1 2 | |
1201 | do | |
1202 | for ac_arg | |
1203 | do | |
1204 | case $ac_arg in | |
1205 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1206 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1207 | | -silent | --silent | --silen | --sile | --sil) | |
1208 | continue ;; | |
2aeb72e9 | 1209 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
1c710c3c DJ |
1210 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1211 | esac | |
1212 | case $ac_pass in | |
1213 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1214 | 2) | |
1215 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1216 | if test $ac_must_keep_next = true; then | |
1217 | ac_must_keep_next=false # Got value, back to normal. | |
1218 | else | |
1219 | case $ac_arg in | |
1220 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1221 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1222 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1223 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1224 | case "$ac_configure_args0 " in | |
1225 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1226 | esac | |
1227 | ;; | |
1228 | -* ) ac_must_keep_next=true ;; | |
1229 | esac | |
1230 | fi | |
2aeb72e9 DD |
1231 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
1232 | # Get rid of the leading space. | |
1233 | ac_sep=" " | |
1c710c3c DJ |
1234 | ;; |
1235 | esac | |
1236 | done | |
1237 | done | |
1238 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1239 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1240 | ||
1241 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1242 | # config.log. We remove comments because anyway the quotes in there | |
1243 | # would cause problems or look ugly. | |
2aeb72e9 DD |
1244 | # WARNING: Be sure not to use single quotes in there, as some shells, |
1245 | # such as our DU 5.0 friend, will then `close' the trap. | |
1c710c3c DJ |
1246 | trap 'exit_status=$? |
1247 | # Save into config.log some information that might help in debugging. | |
1248 | { | |
1249 | echo | |
1250 | ||
1251 | cat <<\_ASBOX | |
1252 | ## ---------------- ## | |
1253 | ## Cache variables. ## | |
1254 | ## ---------------- ## | |
1255 | _ASBOX | |
1256 | echo | |
1257 | # The following way of writing the cache mishandles newlines in values, | |
2aeb72e9 | 1258 | { |
1c710c3c | 1259 | (set) 2>&1 | |
2aeb72e9 DD |
1260 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
1261 | *ac_space=\ *) | |
1c710c3c | 1262 | sed -n \ |
2aeb72e9 DD |
1263 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1264 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1265 | ;; | |
1c710c3c | 1266 | *) |
2aeb72e9 DD |
1267 | sed -n \ |
1268 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
1c710c3c | 1269 | ;; |
2aeb72e9 DD |
1270 | esac; |
1271 | } | |
1c710c3c DJ |
1272 | echo |
1273 | ||
1274 | cat <<\_ASBOX | |
1275 | ## ----------------- ## | |
1276 | ## Output variables. ## | |
1277 | ## ----------------- ## | |
1278 | _ASBOX | |
1279 | echo | |
1280 | for ac_var in $ac_subst_vars | |
1281 | do | |
2aeb72e9 DD |
1282 | eval ac_val=$`echo $ac_var` |
1283 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1c710c3c DJ |
1284 | done | sort |
1285 | echo | |
1286 | ||
1287 | if test -n "$ac_subst_files"; then | |
1288 | cat <<\_ASBOX | |
2aeb72e9 DD |
1289 | ## ------------- ## |
1290 | ## Output files. ## | |
1291 | ## ------------- ## | |
1c710c3c DJ |
1292 | _ASBOX |
1293 | echo | |
1294 | for ac_var in $ac_subst_files | |
1295 | do | |
2aeb72e9 DD |
1296 | eval ac_val=$`echo $ac_var` |
1297 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1c710c3c DJ |
1298 | done | sort |
1299 | echo | |
1300 | fi | |
1301 | ||
1302 | if test -s confdefs.h; then | |
1303 | cat <<\_ASBOX | |
1304 | ## ----------- ## | |
1305 | ## confdefs.h. ## | |
1306 | ## ----------- ## | |
1307 | _ASBOX | |
1308 | echo | |
2aeb72e9 | 1309 | sed "/^$/d" confdefs.h | sort |
1c710c3c DJ |
1310 | echo |
1311 | fi | |
1312 | test "$ac_signal" != 0 && | |
1313 | echo "$as_me: caught signal $ac_signal" | |
1314 | echo "$as_me: exit $exit_status" | |
1315 | } >&5 | |
2aeb72e9 DD |
1316 | rm -f core *.core && |
1317 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
1c710c3c | 1318 | exit $exit_status |
2aeb72e9 | 1319 | ' 0 |
1c710c3c DJ |
1320 | for ac_signal in 1 2 13 15; do |
1321 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1322 | done | |
1323 | ac_signal=0 | |
1324 | ||
1325 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2aeb72e9 DD |
1326 | rm -rf conftest* confdefs.h |
1327 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1328 | echo >confdefs.h | |
1c710c3c DJ |
1329 | |
1330 | # Predefined preprocessor variables. | |
1331 | ||
1332 | cat >>confdefs.h <<_ACEOF | |
1333 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1334 | _ACEOF | |
1335 | ||
1336 | ||
1337 | cat >>confdefs.h <<_ACEOF | |
1338 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1339 | _ACEOF | |
1340 | ||
1341 | ||
1342 | cat >>confdefs.h <<_ACEOF | |
1343 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1344 | _ACEOF | |
0b0dc272 | 1345 | |
1c710c3c DJ |
1346 | |
1347 | cat >>confdefs.h <<_ACEOF | |
1348 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1349 | _ACEOF | |
1350 | ||
1351 | ||
1352 | cat >>confdefs.h <<_ACEOF | |
1353 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1354 | _ACEOF | |
1355 | ||
1356 | ||
1357 | # Let the site file select an alternate cache file if it wants to. | |
671aa708 | 1358 | # Prefer explicitly selected file to automatically selected ones. |
2aeb72e9 DD |
1359 | if test -z "$CONFIG_SITE"; then |
1360 | if test "x$prefix" != xNONE; then | |
1361 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1362 | else | |
1363 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1364 | fi | |
671aa708 | 1365 | fi |
2aeb72e9 | 1366 | for ac_site_file in $CONFIG_SITE; do |
671aa708 | 1367 | if test -r "$ac_site_file"; then |
1c710c3c DJ |
1368 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1369 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1370 | sed 's/^/| /' "$ac_site_file" >&5 | |
671aa708 NN |
1371 | . "$ac_site_file" |
1372 | fi | |
1373 | done | |
1374 | ||
1375 | if test -r "$cache_file"; then | |
1c710c3c DJ |
1376 | # Some versions of bash will fail to source /dev/null (special |
1377 | # files actually), so we avoid doing that. | |
1378 | if test -f "$cache_file"; then | |
1379 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1380 | echo "$as_me: loading cache $cache_file" >&6;} | |
1381 | case $cache_file in | |
2aeb72e9 DD |
1382 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
1383 | *) . ./$cache_file;; | |
1c710c3c DJ |
1384 | esac |
1385 | fi | |
671aa708 | 1386 | else |
1c710c3c DJ |
1387 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1388 | echo "$as_me: creating cache $cache_file" >&6;} | |
1389 | >$cache_file | |
1390 | fi | |
1391 | ||
1392 | # Check that the precious variables saved in the cache have kept the same | |
1393 | # value. | |
1394 | ac_cache_corrupted=false | |
2aeb72e9 DD |
1395 | for ac_var in `(set) 2>&1 | |
1396 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
1c710c3c DJ |
1397 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1398 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2aeb72e9 DD |
1399 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
1400 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1c710c3c DJ |
1401 | case $ac_old_set,$ac_new_set in |
1402 | set,) | |
1403 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1404 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1405 | ac_cache_corrupted=: ;; | |
1406 | ,set) | |
1407 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1408 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1409 | ac_cache_corrupted=: ;; | |
1410 | ,);; | |
1411 | *) | |
1412 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1413 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1414 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1415 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1416 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1417 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1418 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1419 | ac_cache_corrupted=: | |
1420 | fi;; | |
1421 | esac | |
1422 | # Pass precious variables to config.status. | |
1423 | if test "$ac_new_set" = set; then | |
1424 | case $ac_new_val in | |
2aeb72e9 DD |
1425 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
1426 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1c710c3c DJ |
1427 | *) ac_arg=$ac_var=$ac_new_val ;; |
1428 | esac | |
1429 | case " $ac_configure_args " in | |
1430 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1431 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1432 | esac | |
1433 | fi | |
1434 | done | |
1435 | if $ac_cache_corrupted; then | |
1436 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1437 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1438 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1439 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1440 | { (exit 1); exit 1; }; } | |
671aa708 NN |
1441 | fi |
1442 | ||
2aeb72e9 DD |
1443 | ac_ext=c |
1444 | ac_cpp='$CPP $CPPFLAGS' | |
1445 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1446 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1447 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1448 | ||
1c710c3c DJ |
1449 | |
1450 | ||
1451 | ||
1452 | ||
671aa708 NN |
1453 | |
1454 | ||
d02c69be | 1455 | |
1c710c3c DJ |
1456 | |
1457 | ||
1458 | ||
1459 | ||
1460 | ||
1461 | ||
1462 | ||
1463 | ||
1464 | ||
1465 | ||
1466 | ||
1467 | ||
1468 | ||
1469 | # Find the build, host, and target systems. | |
671aa708 | 1470 | ac_aux_dir= |
2aeb72e9 DD |
1471 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
1472 | if test -f $ac_dir/install-sh; then | |
671aa708 NN |
1473 | ac_aux_dir=$ac_dir |
1474 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1475 | break | |
2aeb72e9 | 1476 | elif test -f $ac_dir/install.sh; then |
671aa708 NN |
1477 | ac_aux_dir=$ac_dir |
1478 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1479 | break | |
2aeb72e9 | 1480 | elif test -f $ac_dir/shtool; then |
1c710c3c DJ |
1481 | ac_aux_dir=$ac_dir |
1482 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1483 | break | |
671aa708 NN |
1484 | fi |
1485 | done | |
1486 | if test -z "$ac_aux_dir"; then | |
2aeb72e9 DD |
1487 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
1488 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1c710c3c | 1489 | { (exit 1); exit 1; }; } |
671aa708 | 1490 | fi |
2aeb72e9 DD |
1491 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
1492 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1493 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
671aa708 | 1494 | |
1c710c3c | 1495 | # Make sure we can run config.sub. |
2aeb72e9 DD |
1496 | $ac_config_sub sun4 >/dev/null 2>&1 || |
1497 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1498 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1c710c3c DJ |
1499 | { (exit 1); exit 1; }; } |
1500 | ||
2aeb72e9 DD |
1501 | echo "$as_me:$LINENO: checking build system type" >&5 |
1502 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1c710c3c DJ |
1503 | if test "${ac_cv_build+set}" = set; then |
1504 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1505 | else | |
2aeb72e9 DD |
1506 | ac_cv_build_alias=$build_alias |
1507 | test -z "$ac_cv_build_alias" && | |
1508 | ac_cv_build_alias=`$ac_config_guess` | |
1509 | test -z "$ac_cv_build_alias" && | |
1c710c3c DJ |
1510 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
1511 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1512 | { (exit 1); exit 1; }; } | |
2aeb72e9 DD |
1513 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
1514 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1515 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1c710c3c DJ |
1516 | { (exit 1); exit 1; }; } |
1517 | ||
1518 | fi | |
2aeb72e9 DD |
1519 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
1520 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1c710c3c | 1521 | build=$ac_cv_build |
2aeb72e9 DD |
1522 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
1523 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1524 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
671aa708 | 1525 | |
671aa708 | 1526 | |
1c710c3c DJ |
1527 | case ${build_alias} in |
1528 | "") build_noncanonical=${build} ;; | |
1529 | *) build_noncanonical=${build_alias} ;; | |
af71363e AS |
1530 | esac |
1531 | ||
1532 | ||
af71363e | 1533 | |
1c710c3c DJ |
1534 | case ${host_alias} in |
1535 | "") host_noncanonical=${build_noncanonical} ;; | |
1536 | *) host_noncanonical=${host_alias} ;; | |
af71363e AS |
1537 | esac |
1538 | ||
af71363e | 1539 | |
1c710c3c DJ |
1540 | |
1541 | case ${target_alias} in | |
1542 | "") target_noncanonical=${host_noncanonical} ;; | |
1543 | *) target_noncanonical=${target_alias} ;; | |
af71363e AS |
1544 | esac |
1545 | ||
af71363e | 1546 | |
1c710c3c DJ |
1547 | |
1548 | ||
1549 | test "$host_noncanonical" = "$target_noncanonical" && | |
671aa708 NN |
1550 | test "$program_prefix$program_suffix$program_transform_name" = \ |
1551 | NONENONEs,x,x, && | |
1c710c3c | 1552 | program_transform_name=s,y,y, |
af71363e | 1553 | |
2aeb72e9 DD |
1554 | echo "$as_me:$LINENO: checking host system type" >&5 |
1555 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1c710c3c DJ |
1556 | if test "${ac_cv_host+set}" = set; then |
1557 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
af71363e | 1558 | else |
2aeb72e9 DD |
1559 | ac_cv_host_alias=$host_alias |
1560 | test -z "$ac_cv_host_alias" && | |
1561 | ac_cv_host_alias=$ac_cv_build_alias | |
1562 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1563 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1564 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1c710c3c DJ |
1565 | { (exit 1); exit 1; }; } |
1566 | ||
af71363e | 1567 | fi |
2aeb72e9 DD |
1568 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
1569 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1c710c3c | 1570 | host=$ac_cv_host |
2aeb72e9 DD |
1571 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
1572 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1573 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1574 | ||
1575 | ||
1576 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1577 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1c710c3c DJ |
1578 | if test "${ac_cv_target+set}" = set; then |
1579 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1580 | else | |
2aeb72e9 DD |
1581 | ac_cv_target_alias=$target_alias |
1582 | test "x$ac_cv_target_alias" = "x" && | |
1583 | ac_cv_target_alias=$ac_cv_host_alias | |
1584 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1585 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1586 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1c710c3c DJ |
1587 | { (exit 1); exit 1; }; } |
1588 | ||
1589 | fi | |
2aeb72e9 DD |
1590 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
1591 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1c710c3c | 1592 | target=$ac_cv_target |
2aeb72e9 DD |
1593 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
1594 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1595 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1c710c3c DJ |
1596 | |
1597 | ||
1598 | # The aliases save the names the user supplied, while $host etc. | |
1599 | # will get canonicalized. | |
1600 | test -n "$target_alias" && | |
1601 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1602 | NONENONEs,x,x, && | |
1603 | program_prefix=${target_alias}- | |
671aa708 | 1604 | test "$program_prefix" != NONE && |
2aeb72e9 | 1605 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
671aa708 NN |
1606 | # Use a double $ so make ignores it. |
1607 | test "$program_suffix" != NONE && | |
2aeb72e9 | 1608 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
1c710c3c DJ |
1609 | # Double any \ or $. echo might interpret backslashes. |
1610 | # By default was `s,x,x', remove it if useless. | |
1611 | cat <<\_ACEOF >conftest.sed | |
1612 | s/[\\$]/&&/g;s/;s,x,x,$// | |
1613 | _ACEOF | |
1614 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
2aeb72e9 | 1615 | rm conftest.sed |
af71363e | 1616 | |
671aa708 NN |
1617 | |
1618 | ||
775956d0 NN |
1619 | # Get 'install' or 'install-sh' and its variants. |
1620 | # Find a good install program. We prefer a C program (faster), | |
1621 | # so one script is as good as another. But avoid the broken or | |
1622 | # incompatible versions: | |
1623 | # SysV /etc/install, /usr/sbin/install | |
1624 | # SunOS /usr/etc/install | |
1625 | # IRIX /sbin/install | |
1626 | # AIX /bin/install | |
1c710c3c | 1627 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
775956d0 NN |
1628 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
1629 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1630 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1c710c3c | 1631 | # OS/2's system install, which has a completely different semantic |
775956d0 | 1632 | # ./install, which can be erroneously created by make from ./install.sh. |
2aeb72e9 DD |
1633 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
1634 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
775956d0 | 1635 | if test -z "$INSTALL"; then |
1c710c3c DJ |
1636 | if test "${ac_cv_path_install+set}" = set; then |
1637 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1638 | else | |
1639 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1640 | for as_dir in $PATH | |
1641 | do | |
1642 | IFS=$as_save_IFS | |
1643 | test -z "$as_dir" && as_dir=. | |
1644 | # Account for people who put trailing slashes in PATH elements. | |
1645 | case $as_dir/ in | |
1646 | ./ | .// | /cC/* | \ | |
1647 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
1648 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
1649 | /usr/ucb/* ) ;; | |
1650 | *) | |
1651 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
1652 | # Don't use installbsd from OSF since it installs stuff as root | |
1653 | # by default. | |
1654 | for ac_prog in ginstall scoinst install; do | |
1655 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 1656 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
775956d0 | 1657 | if test $ac_prog = install && |
1c710c3c | 1658 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
775956d0 NN |
1659 | # AIX install. It has an incompatible calling convention. |
1660 | : | |
1c710c3c DJ |
1661 | elif test $ac_prog = install && |
1662 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1663 | # program-specific install script used by HP pwplus--don't use. | |
1664 | : | |
775956d0 | 1665 | else |
1c710c3c DJ |
1666 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
1667 | break 3 | |
775956d0 NN |
1668 | fi |
1669 | fi | |
1670 | done | |
1c710c3c DJ |
1671 | done |
1672 | ;; | |
1673 | esac | |
1674 | done | |
1675 | ||
775956d0 NN |
1676 | |
1677 | fi | |
1678 | if test "${ac_cv_path_install+set}" = set; then | |
1c710c3c | 1679 | INSTALL=$ac_cv_path_install |
775956d0 | 1680 | else |
2aeb72e9 DD |
1681 | # As a last resort, use the slow shell script. We don't cache a |
1682 | # path for INSTALL within a source directory, because that will | |
775956d0 | 1683 | # break other packages using the cache if that directory is |
2aeb72e9 | 1684 | # removed, or if the path is relative. |
1c710c3c | 1685 | INSTALL=$ac_install_sh |
775956d0 NN |
1686 | fi |
1687 | fi | |
2aeb72e9 DD |
1688 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
1689 | echo "${ECHO_T}$INSTALL" >&6 | |
775956d0 NN |
1690 | |
1691 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1692 | # It thinks the first close brace ends the variable substitution. | |
1693 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1694 | ||
1c710c3c | 1695 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
775956d0 NN |
1696 | |
1697 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1698 | ||
2aeb72e9 DD |
1699 | echo "$as_me:$LINENO: checking whether ln works" >&5 |
1700 | echo $ECHO_N "checking whether ln works... $ECHO_C" >&6 | |
1c710c3c DJ |
1701 | if test "${acx_cv_prog_LN+set}" = set; then |
1702 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ad6717df PB |
1703 | else |
1704 | rm -f conftestdata_t | |
1705 | echo >conftestdata_f | |
1706 | if ln conftestdata_f conftestdata_t 2>/dev/null | |
1707 | then | |
1708 | acx_cv_prog_LN=ln | |
1709 | else | |
1710 | acx_cv_prog_LN=no | |
1711 | fi | |
1712 | rm -f conftestdata_f conftestdata_t | |
1713 | ||
1714 | fi | |
1715 | if test $acx_cv_prog_LN = no; then | |
1716 | LN="cp" | |
2aeb72e9 DD |
1717 | echo "$as_me:$LINENO: result: no, using $LN" >&5 |
1718 | echo "${ECHO_T}no, using $LN" >&6 | |
ad6717df PB |
1719 | else |
1720 | LN="$acx_cv_prog_LN" | |
2aeb72e9 DD |
1721 | echo "$as_me:$LINENO: result: yes" >&5 |
1722 | echo "${ECHO_T}yes" >&6 | |
ad6717df PB |
1723 | fi |
1724 | ||
2aeb72e9 DD |
1725 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
1726 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
1c710c3c DJ |
1727 | LN_S=$as_ln_s |
1728 | if test "$LN_S" = "ln -s"; then | |
2aeb72e9 DD |
1729 | echo "$as_me:$LINENO: result: yes" >&5 |
1730 | echo "${ECHO_T}yes" >&6 | |
fb0103e5 | 1731 | else |
2aeb72e9 DD |
1732 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
1733 | echo "${ECHO_T}no, using $LN_S" >&6 | |
148907ea PB |
1734 | fi |
1735 | ||
775956d0 | 1736 | |
79c06341 | 1737 | ### we might need to use some other shell than /bin/sh for running subshells |
79c06341 JL |
1738 | ### If we are on Windows, search for the shell. This will permit people |
1739 | ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure | |
1740 | ### without also having to set CONFIG_SHELL. This code will work when | |
1741 | ### using bash, which sets OSTYPE. | |
1742 | case "${OSTYPE}" in | |
1743 | *win32*) | |
671aa708 NN |
1744 | if test x${CONFIG_SHELL} = x ; then |
1745 | if test ! -f /bin/sh ; then | |
1746 | if test x${SHELL} != x && test -f ${SHELL} ; then | |
79c06341 JL |
1747 | CONFIG_SHELL=${SHELL} |
1748 | export CONFIG_SHELL | |
1749 | else | |
1750 | for prog in sh sh.exe bash bash.exe; do | |
1751 | IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:" | |
1752 | for dir in $PATH; do | |
1753 | test -z "$dir" && dir=. | |
1754 | if test -f $dir/$prog; then | |
1755 | CONFIG_SHELL=$dir/$prog | |
1756 | export CONFIG_SHELL | |
1757 | break | |
1758 | fi | |
1759 | done | |
1760 | IFS="$save_ifs" | |
1761 | test -n "${CONFIG_SHELL}" && break | |
1762 | done | |
1763 | fi | |
1764 | fi | |
1765 | fi | |
1766 | ;; | |
1767 | esac | |
1768 | ||
1769 | config_shell=${CONFIG_SHELL-/bin/sh} | |
1770 | ||
79c06341 JL |
1771 | progname=$0 |
1772 | # if PWD already has a value, it is probably wrong. | |
671aa708 | 1773 | if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi |
79c06341 | 1774 | |
beeaf216 MM |
1775 | # Export original configure arguments for use by sub-configures. |
1776 | # Quote arguments with shell meta charatcers. | |
1777 | TOPLEVEL_CONFIGURE_ARGUMENTS= | |
1778 | set -- "$progname" "$@" | |
9f8c6739 JM |
1779 | for ac_arg |
1780 | do | |
beeaf216 | 1781 | case "$ac_arg" in |
8c79f3c4 | 1782 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*) |
beeaf216 MM |
1783 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` |
1784 | # if the argument is of the form -foo=baz, quote the baz part only | |
1785 | ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;; | |
1786 | *) ;; | |
1787 | esac | |
1788 | # Add the quoted argument to the list. | |
1789 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg" | |
1790 | done | |
1791 | # Remove the initial space we just introduced and, as these will be | |
1792 | # expanded by make, quote '$'. | |
1793 | TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
3dfabf63 | 1794 | |
cc1e60ea | 1795 | |
671aa708 | 1796 | moveifchange=${srcdir}/move-if-change |
79c06341 | 1797 | |
ee6a22df L |
1798 | srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}` |
1799 | ||
1800 | # We pass INSTALL explicitly to sub-makes. Make sure that it is not | |
1801 | # a relative path. | |
1802 | if test "$INSTALL" = "${srcdir}/install-sh -c"; then | |
1803 | INSTALL="${srcpwd}/install-sh -c" | |
1804 | fi | |
1805 | ||
671aa708 NN |
1806 | # Set srcdir to "." if that's what it is. |
1807 | # This is important for multilib support. | |
1808 | pwd=`${PWDCMD-pwd}` | |
671aa708 NN |
1809 | if test "${pwd}" = "${srcpwd}" ; then |
1810 | srcdir=. | |
79c06341 JL |
1811 | fi |
1812 | ||
671aa708 | 1813 | topsrcdir=$srcpwd |
5d4a5ee6 | 1814 | |
671aa708 | 1815 | extra_host_args= |
afabd8e6 | 1816 | |
671aa708 NN |
1817 | ### To add a new directory to the tree, first choose whether it is a target |
1818 | ### or a host dependent tool. Then put it into the appropriate list | |
1819 | ### (library or tools, host or target), doing a dependency sort. | |
79c06341 | 1820 | |
1c710c3c | 1821 | # Subdirs will be configured in the order listed in build_configdirs, |
671aa708 | 1822 | # configdirs, or target_configdirs; see the serialization section below. |
79c06341 | 1823 | |
1c710c3c DJ |
1824 | # Dependency sorting is only needed when *configuration* must be done in |
1825 | # a particular order. In all cases a dependency should be specified in | |
671aa708 | 1826 | # the Makefile, whether or not it's implicitly specified here. |
79c06341 | 1827 | |
671aa708 NN |
1828 | # Double entries in build_configdirs, configdirs, or target_configdirs may |
1829 | # cause circular dependencies and break everything horribly. | |
79c06341 | 1830 | |
23f6b2f9 PB |
1831 | # these library is used by various programs built for the build |
1832 | # environment | |
1833 | # | |
1834 | build_libs="build-libiberty" | |
1835 | ||
1836 | # these tools are built for the build environment | |
71b5d516 | 1837 | build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes" |
23f6b2f9 | 1838 | |
671aa708 NN |
1839 | # these libraries are used by various programs built for the host environment |
1840 | # | |
e69bf64b | 1841 | host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr" |
671aa708 | 1842 | |
671aa708 NN |
1843 | # these tools are built for the host environment |
1844 | # Note, the powerpc-eabi build depends on sim occurring before gdb in order to | |
1845 | # know that we are building the simulator. | |
1846 | # binutils, gas and ld appear in that order because it makes sense to run | |
1847 | # "make check" in that particular order. | |
5395b47b | 1848 | host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools" |
671aa708 NN |
1849 | |
1850 | # libgcj represents the runtime libraries only used by gcj. | |
1851 | libgcj="target-libffi \ | |
671aa708 NN |
1852 | target-zlib \ |
1853 | target-qthreads \ | |
1854 | target-libjava" | |
1855 | ||
1856 | # these libraries are built for the target environment, and are built after | |
1857 | # the host libraries and the host tools (which may be a cross compiler) | |
1858 | # | |
291f172e DJ |
1859 | target_libraries="target-libgcc \ |
1860 | target-libiberty \ | |
671aa708 NN |
1861 | target-libgloss \ |
1862 | target-newlib \ | |
cb543528 | 1863 | target-libstdc++-v3 \ |
6de9cd9a | 1864 | target-libmudflap \ |
77008252 | 1865 | target-libssp \ |
6de9cd9a | 1866 | target-libgfortran \ |
7cd0cf9c | 1867 | target-boehm-gc \ |
77d187bc | 1868 | ${libgcj} \ |
d9cdb878 | 1869 | target-libobjc \ |
953ff289 DN |
1870 | target-libada \ |
1871 | target-libgomp" | |
671aa708 | 1872 | |
4dbda6f0 NN |
1873 | # these tools are built using the target libraries, and are intended to |
1874 | # run only in the target environment | |
671aa708 | 1875 | # |
4dbda6f0 | 1876 | # note: any program that *uses* libraries that are in the "target_libraries" |
671aa708 NN |
1877 | # list belongs in this list. those programs are also very likely |
1878 | # candidates for the "native_only" list which follows | |
1879 | # | |
97286f7f | 1880 | target_tools="target-examples target-groff target-gperf target-rda" |
79c06341 | 1881 | |
671aa708 | 1882 | ################################################################################ |
79c06341 | 1883 | |
671aa708 NN |
1884 | ## All tools belong in one of the four categories, and are assigned above |
1885 | ## We assign ${configdirs} this way to remove all embedded newlines. This | |
1886 | ## is important because configure will choke if they ever get through. | |
1887 | ## ${configdirs} is directories we build using the host tools. | |
1888 | ## ${target_configdirs} is directories we build using the target tools. | |
671aa708 | 1889 | configdirs=`echo ${host_libs} ${host_tools}` |
4dbda6f0 | 1890 | target_configdirs=`echo ${target_libraries} ${target_tools}` |
71b5d516 | 1891 | build_configdirs=`echo ${build_libs} ${build_tools}` |
8b87bb96 | 1892 | |
671aa708 | 1893 | ################################################################################ |
79c06341 | 1894 | |
671aa708 | 1895 | srcname="gnu development package" |
79c06341 | 1896 | |
671aa708 NN |
1897 | # This gets set non-empty for some net releases of packages. |
1898 | appdirs="" | |
79c06341 | 1899 | |
671aa708 NN |
1900 | # Define is_cross_compiler to save on calls to 'test'. |
1901 | is_cross_compiler= | |
1902 | if test x"${host}" = x"${target}" ; then | |
1903 | is_cross_compiler=no | |
79c06341 | 1904 | else |
671aa708 | 1905 | is_cross_compiler=yes |
1c710c3c | 1906 | fi |
79c06341 | 1907 | |
b4acb5ef | 1908 | # Find the build and target subdir names. |
8b87bb96 | 1909 | |
2e9e6f68 DJ |
1910 | # post-stage1 host modules use a different CC_FOR_BUILD so, in order to |
1911 | # have matching libraries, they should use host libraries: Makefile.tpl | |
1912 | # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). | |
1913 | # However, they still use the build modules, because the corresponding | |
1914 | # host modules (e.g. bison) are only built for the host when bootstrap | |
1915 | # finishes. So: | |
1916 | # - build_subdir is where we find build modules, and never changes. | |
1917 | # - build_libsubdir is where we find build libraries, and can be overridden. | |
1918 | ||
1919 | # Prefix 'build-' so this never conflicts with target_subdir. | |
8b87bb96 | 1920 | build_subdir="build-${build_noncanonical}" |
1c710c3c | 1921 | |
2aeb72e9 | 1922 | # Check whether --with-build-libsubdir or --without-build-libsubdir was given. |
2e9e6f68 | 1923 | if test "${with_build_libsubdir+set}" = set; then |
2aeb72e9 DD |
1924 | withval="$with_build_libsubdir" |
1925 | build_libsubdir="$withval" | |
2e9e6f68 DJ |
1926 | else |
1927 | build_libsubdir="$build_subdir" | |
2aeb72e9 | 1928 | fi; |
215c351a PB |
1929 | # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories |
1930 | if ( test $srcdir = . && test -d gcc ) \ | |
1931 | || test -d $srcdir/../host-${host_noncanonical}; then | |
1932 | host_subdir="host-${host_noncanonical}" | |
1933 | else | |
1934 | host_subdir=. | |
1935 | fi | |
8b87bb96 NN |
1936 | # No prefix. |
1937 | target_subdir=${target_noncanonical} | |
1c710c3c | 1938 | |
79c06341 | 1939 | |
671aa708 NN |
1940 | # Skipdirs are removed silently. |
1941 | skipdirs= | |
1942 | # Noconfigdirs are removed loudly. | |
1943 | noconfigdirs="" | |
79c06341 | 1944 | |
671aa708 NN |
1945 | use_gnu_ld= |
1946 | # Make sure we don't let GNU ld be added if we didn't want it. | |
1947 | if test x$with_gnu_ld = xno ; then | |
1948 | use_gnu_ld=no | |
1949 | noconfigdirs="$noconfigdirs ld" | |
79c06341 JL |
1950 | fi |
1951 | ||
671aa708 NN |
1952 | use_gnu_as= |
1953 | # Make sure we don't let GNU as be added if we didn't want it. | |
1954 | if test x$with_gnu_as = xno ; then | |
1955 | use_gnu_as=no | |
1956 | noconfigdirs="$noconfigdirs gas" | |
79c06341 JL |
1957 | fi |
1958 | ||
1c710c3c | 1959 | # some tools are so dependent upon X11 that if we're not building with X, |
671aa708 | 1960 | # it's not even worth trying to configure, much less build, that tool. |
79c06341 | 1961 | |
671aa708 NN |
1962 | case ${with_x} in |
1963 | yes | "") ;; # the default value for this tree is that X11 is available | |
1964 | no) | |
b4f96efe | 1965 | skipdirs="${skipdirs} tk itcl libgui" |
671aa708 | 1966 | # We won't be able to build gdbtk without X. |
1c710c3c | 1967 | enable_gdbtk=no |
671aa708 NN |
1968 | ;; |
1969 | *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;; | |
1970 | esac | |
79c06341 | 1971 | |
671aa708 | 1972 | # Some tools are only suitable for building in a "native" situation. |
1c710c3c | 1973 | # Remove these if host!=target. |
9e299237 | 1974 | native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf" |
79c06341 | 1975 | |
671aa708 NN |
1976 | # Similarly, some are only suitable for cross toolchains. |
1977 | # Remove these if host=target. | |
1978 | cross_only="target-libgloss target-newlib target-opcodes" | |
1979 | ||
1980 | case $is_cross_compiler in | |
1981 | no) skipdirs="${skipdirs} ${cross_only}" ;; | |
1982 | yes) skipdirs="${skipdirs} ${native_only}" ;; | |
1983 | esac | |
79c06341 | 1984 | |
671aa708 NN |
1985 | # If both --with-headers and --with-libs are specified, default to |
1986 | # --without-newlib. | |
ee6a22df L |
1987 | if test x"${with_headers}" != x && test x"${with_headers}" != xno \ |
1988 | && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
671aa708 NN |
1989 | if test x"${with_newlib}" = x ; then |
1990 | with_newlib=no | |
1991 | fi | |
79c06341 JL |
1992 | fi |
1993 | ||
671aa708 NN |
1994 | # Recognize --with-newlib/--without-newlib. |
1995 | case ${with_newlib} in | |
1996 | no) skipdirs="${skipdirs} target-newlib" ;; | |
1997 | yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;; | |
1998 | esac | |
79c06341 | 1999 | |
671aa708 | 2000 | # Configure extra directories which are host specific |
79c06341 | 2001 | |
671aa708 NN |
2002 | case "${host}" in |
2003 | *-cygwin*) | |
2004 | configdirs="$configdirs libtermcap" ;; | |
2005 | esac | |
79c06341 | 2006 | |
4fab7234 HPN |
2007 | # A target can indicate whether a language isn't supported for some reason. |
2008 | # Only spaces may be used in this macro; not newlines or tabs. | |
2009 | unsupported_languages= | |
2010 | ||
1c710c3c | 2011 | # Remove more programs from consideration, based on the host or |
671aa708 NN |
2012 | # target this usually means that a port of the program doesn't |
2013 | # exist yet. | |
ec8d6ddc | 2014 | |
671aa708 NN |
2015 | case "${host}" in |
2016 | hppa*64*-*-*) | |
2017 | noconfigdirs="$noconfigdirs byacc" | |
2018 | ;; | |
f2a0e225 | 2019 | i[3456789]86-*-vsta) |
b4f96efe | 2020 | noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext" |
671aa708 | 2021 | ;; |
f2a0e225 | 2022 | i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*) |
b4f96efe | 2023 | noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi" |
3aa83176 | 2024 | ;; |
95af8923 KT |
2025 | x86_64-*-mingw*) |
2026 | noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib" | |
2027 | ;; | |
f2a0e225 | 2028 | i[3456789]86-*-mingw32*) |
b4f96efe | 2029 | # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv" |
b91f0a41 | 2030 | noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib" |
3aa83176 | 2031 | ;; |
f2a0e225 | 2032 | i[3456789]86-*-beos*) |
b4f96efe | 2033 | noconfigdirs="$noconfigdirs tk itcl libgui gdb" |
3aa83176 | 2034 | ;; |
671aa708 | 2035 | *-*-cygwin*) |
a22c2d8d | 2036 | noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl" |
671aa708 NN |
2037 | ;; |
2038 | *-*-netbsd*) | |
a22c2d8d | 2039 | noconfigdirs="$noconfigdirs rcs" |
671aa708 NN |
2040 | ;; |
2041 | ppc*-*-pe) | |
b4f96efe | 2042 | noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv" |
671aa708 NN |
2043 | ;; |
2044 | powerpc-*-beos*) | |
b4f96efe | 2045 | noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline" |
671aa708 | 2046 | ;; |
671aa708 | 2047 | esac |
ec8d6ddc | 2048 | |
6de9cd9a | 2049 | |
2aeb72e9 | 2050 | # Check whether --enable-libada or --disable-libada was given. |
d9cdb878 | 2051 | if test "${enable_libada+set}" = set; then |
2aeb72e9 DD |
2052 | enableval="$enable_libada" |
2053 | ENABLE_LIBADA=$enableval | |
d9cdb878 AC |
2054 | else |
2055 | ENABLE_LIBADA=yes | |
2aeb72e9 | 2056 | fi; |
d9cdb878 | 2057 | if test "${ENABLE_LIBADA}" != "yes" ; then |
5395b47b | 2058 | noconfigdirs="$noconfigdirs gnattools" |
d9cdb878 AC |
2059 | fi |
2060 | ||
2aeb72e9 | 2061 | # Check whether --enable-libssp or --disable-libssp was given. |
ef0087a7 | 2062 | if test "${enable_libssp+set}" = set; then |
2aeb72e9 DD |
2063 | enableval="$enable_libssp" |
2064 | ENABLE_LIBSSP=$enableval | |
ef0087a7 KH |
2065 | else |
2066 | ENABLE_LIBSSP=yes | |
2aeb72e9 | 2067 | fi; |
ef0087a7 | 2068 | |
671aa708 NN |
2069 | # Save it here so that, even in case of --enable-libgcj, if the Java |
2070 | # front-end isn't enabled, we still get libgcj disabled. | |
2071 | libgcj_saved=$libgcj | |
2072 | case $enable_libgcj in | |
2073 | yes) | |
2074 | # If we reset it here, it won't get added to noconfigdirs in the | |
2075 | # target-specific build rules, so it will be forcibly enabled | |
2076 | # (unless the Java language itself isn't enabled). | |
2077 | libgcj= | |
2078 | ;; | |
2079 | no) | |
2080 | # Make sure we get it printed in the list of not supported target libs. | |
2081 | noconfigdirs="$noconfigdirs ${libgcj}" | |
2082 | ;; | |
2083 | esac | |
ec8d6ddc | 2084 | |
6de9cd9a | 2085 | |
27079765 AH |
2086 | # Disable libmudflap on some systems. |
2087 | if test x$enable_libmudflap = x ; then | |
dfcada9a | 2088 | case "${target}" in |
901119ae | 2089 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu) |
98a5bb3b | 2090 | # Enable libmudflap by default in GNU and friends. |
dfcada9a | 2091 | ;; |
a3e8d8b4 LR |
2092 | *-*-freebsd*) |
2093 | # Enable libmudflap by default in FreeBSD. | |
2094 | ;; | |
dfcada9a MM |
2095 | *) |
2096 | # Disable it by default everywhere else. | |
2097 | noconfigdirs="$noconfigdirs target-libmudflap" | |
2098 | ;; | |
2099 | esac | |
27079765 | 2100 | fi |
6de9cd9a | 2101 | |
27079765 AH |
2102 | # Disable libgomp on non POSIX hosted systems. |
2103 | if test x$enable_libgomp = x ; then | |
953ff289 DN |
2104 | # Enable libgomp by default on hosted POSIX systems. |
2105 | case "${target}" in | |
670cbfcf | 2106 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu) |
953ff289 DN |
2107 | ;; |
2108 | *-*-netbsd* | *-*-freebsd* | *-*-openbsd*) | |
2109 | ;; | |
04879af3 | 2110 | *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*) |
953ff289 | 2111 | ;; |
cac90078 | 2112 | *-*-darwin* | *-*-aix*) |
953ff289 DN |
2113 | ;; |
2114 | *) | |
2115 | noconfigdirs="$noconfigdirs target-libgomp" | |
2116 | ;; | |
2117 | esac | |
27079765 | 2118 | fi |
953ff289 | 2119 | |
6de9cd9a | 2120 | |
671aa708 NN |
2121 | case "${target}" in |
2122 | *-*-chorusos) | |
cb253473 | 2123 | noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}" |
671aa708 | 2124 | ;; |
42c1cd8a | 2125 | powerpc-*-darwin* | i[3456789]86-*-darwin*) |
55eb837d | 2126 | noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof" |
9c8f9ec2 | 2127 | noconfigdirs="$noconfigdirs sim target-rda" |
940cde4d | 2128 | ;; |
42c1cd8a AT |
2129 | *-*-darwin*) |
2130 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
2131 | noconfigdirs="$noconfigdirs sim target-rda" | |
2132 | noconfigdirs="$noconfigdirs ${libgcj}" | |
2133 | ;; | |
671aa708 | 2134 | *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*) |
cb253473 | 2135 | noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}" |
671aa708 | 2136 | ;; |
c3f84f61 | 2137 | *-*-freebsd*) |
6de9cd9a DN |
2138 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
2139 | if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \ | |
2140 | && test -f /usr/local/include/gmp.h; then | |
2141 | with_gmp=/usr/local | |
2142 | fi | |
2143 | ||
2144 | # Skip some stuff that's unsupported on some FreeBSD configurations. | |
2145 | case "${target}" in | |
2146 | i*86-*-*) ;; | |
2147 | alpha*-*-*) ;; | |
2148 | *) | |
cb253473 | 2149 | noconfigdirs="$noconfigdirs ${libgcj}" |
6de9cd9a DN |
2150 | ;; |
2151 | esac | |
2152 | ;; | |
ef4e7569 US |
2153 | *-*-kaos*) |
2154 | # Remove unsupported stuff on all kaOS configurations. | |
cb253473 | 2155 | skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx" |
ef4e7569 US |
2156 | skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf" |
2157 | skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib" | |
2158 | noconfigdirs="$noconfigdirs target-libgloss" | |
2159 | ;; | |
671aa708 NN |
2160 | *-*-netbsd*) |
2161 | # Skip some stuff on all NetBSD configurations. | |
2162 | noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss" | |
2163 | ||
2164 | # Skip some stuff that's unsupported on some NetBSD configurations. | |
2165 | case "${target}" in | |
2166 | i*86-*-netbsdelf*) ;; | |
0590b963 | 2167 | arm*-*-netbsdelf*) ;; |
671aa708 | 2168 | *) |
cb253473 | 2169 | noconfigdirs="$noconfigdirs ${libgcj}" |
671aa708 NN |
2170 | ;; |
2171 | esac | |
2172 | ;; | |
61fec9ff | 2173 | *-*-netware*) |
cb253473 | 2174 | noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap" |
671aa708 NN |
2175 | ;; |
2176 | *-*-rtems*) | |
cb253473 | 2177 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" |
671aa708 | 2178 | ;; |
a8ba31f2 EC |
2179 | # The tpf target doesn't support gdb yet. |
2180 | *-*-tpf*) | |
cb253473 | 2181 | noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl" |
a8ba31f2 | 2182 | ;; |
5785c0ed | 2183 | *-*-uclinux*) |
cb253473 | 2184 | noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}" |
5785c0ed | 2185 | ;; |
671aa708 | 2186 | *-*-vxworks*) |
cb253473 | 2187 | noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}" |
671aa708 NN |
2188 | ;; |
2189 | alpha*-dec-osf*) | |
2190 | # ld works, but does not support shared libraries. | |
2191 | # newlib is not 64 bit ready. I'm not sure about fileutils. | |
2192 | # gas doesn't generate exception information. | |
2193 | noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss" | |
2194 | ;; | |
2195 | alpha*-*-*vms*) | |
cb253473 | 2196 | noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}" |
671aa708 NN |
2197 | ;; |
2198 | alpha*-*-linux*) | |
2199 | # newlib is not 64 bit ready | |
2200 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
2201 | ;; | |
671aa708 NN |
2202 | alpha*-*-*) |
2203 | # newlib is not 64 bit ready | |
cb253473 | 2204 | noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}" |
671aa708 | 2205 | ;; |
33952f6f | 2206 | am33_2.0-*-linux*) |
cb253473 | 2207 | noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss" |
33952f6f | 2208 | ;; |
671aa708 | 2209 | sh-*-linux*) |
cb253473 | 2210 | noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss" |
1c710c3c | 2211 | ;; |
671aa708 | 2212 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) |
cb253473 | 2213 | noconfigdirs="$noconfigdirs ${libgcj}" |
671aa708 NN |
2214 | noconfigdirs="$noconfigdirs target-examples" |
2215 | noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr" | |
b4f96efe | 2216 | noconfigdirs="$noconfigdirs tcl tk itcl libgui sim" |
671aa708 NN |
2217 | noconfigdirs="$noconfigdirs expect dejagnu" |
2218 | # the C++ libraries don't build on top of CE's C libraries | |
cb543528 | 2219 | noconfigdirs="$noconfigdirs target-libstdc++-v3" |
671aa708 NN |
2220 | noconfigdirs="$noconfigdirs target-newlib" |
2221 | case "${host}" in | |
2222 | *-*-cygwin*) ;; # keep gdb and readline | |
aa9c3ab4 | 2223 | *) noconfigdirs="$noconfigdirs gdb readline" |
671aa708 NN |
2224 | ;; |
2225 | esac | |
2226 | ;; | |
2227 | arc-*-*) | |
cb253473 | 2228 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" |
671aa708 | 2229 | ;; |
ee6a22df | 2230 | arm-semi-aof ) |
ee6a22df | 2231 | ;; |
671aa708 | 2232 | arm-*-coff | strongarm-*-coff | xscale-*-coff) |
cb253473 | 2233 | noconfigdirs="$noconfigdirs ${libgcj}" |
671aa708 | 2234 | ;; |
b3f8d95d | 2235 | arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* ) |
671aa708 NN |
2236 | noconfigdirs="$noconfigdirs target-libffi target-qthreads" |
2237 | ;; | |
077fc835 KH |
2238 | arm*-*-linux-gnueabi) |
2239 | noconfigdirs="$noconfigdirs target-libffi target-qthreads" | |
2240 | noconfigdirs="$noconfigdirs target-libjava target-libobjc" | |
2241 | ;; | |
972974fc | 2242 | arm*-*-symbianelf*) |
cb253473 | 2243 | noconfigdirs="$noconfigdirs ${libgcj} target-libiberty" |
972974fc | 2244 | ;; |
671aa708 | 2245 | arm-*-pe*) |
cb253473 | 2246 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" |
671aa708 | 2247 | ;; |
671aa708 | 2248 | thumb-*-coff) |
cb253473 | 2249 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" |
671aa708 NN |
2250 | ;; |
2251 | thumb-*-elf) | |
cb253473 | 2252 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" |
671aa708 | 2253 | ;; |
671aa708 | 2254 | thumb-*-pe) |
cb253473 | 2255 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" |
671aa708 NN |
2256 | ;; |
2257 | arm-*-riscix*) | |
cb253473 | 2258 | noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}" |
671aa708 NN |
2259 | ;; |
2260 | avr-*-*) | |
cb253473 | 2261 | noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}" |
671aa708 | 2262 | ;; |
6b65a26d | 2263 | bfin-*-*) |
8b3c6c5a | 2264 | noconfigdirs="$noconfigdirs gdb" |
61efc800 | 2265 | if test x${is_cross_compiler} != xno ; then |
6b65a26d CM |
2266 | target_configdirs="${target_configdirs} target-bsp target-cygmon" |
2267 | fi | |
2268 | ;; | |
671aa708 | 2269 | c4x-*-* | tic4x-*-*) |
cb253473 | 2270 | noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}" |
671aa708 NN |
2271 | ;; |
2272 | c54x*-*-* | tic54x-*-*) | |
cb253473 | 2273 | noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib" |
671aa708 | 2274 | ;; |
40d64b5a | 2275 | cris-*-* | crisv32-*-*) |
4fab7234 | 2276 | unsupported_languages="$unsupported_languages java" |
40d64b5a | 2277 | case "${target}" in |
c2e0d3a9 | 2278 | *-*-aout) |
7f26dfa3 | 2279 | unsupported_languages="$unsupported_languages fortran" |
4fab7234 | 2280 | noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";; |
c2e0d3a9 | 2281 | *-*-elf) |
7f26dfa3 | 2282 | unsupported_languages="$unsupported_languages fortran" |
789ec619 | 2283 | noconfigdirs="$noconfigdirs target-boehm-gc";; |
c2e0d3a9 | 2284 | *-*-linux*) |
789ec619 | 2285 | noconfigdirs="$noconfigdirs target-newlib target-libgloss";; |
40d64b5a | 2286 | *) |
7f26dfa3 | 2287 | unsupported_languages="$unsupported_languages fortran" |
cb253473 | 2288 | noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";; |
40d64b5a | 2289 | esac |
671aa708 | 2290 | ;; |
25b656e7 | 2291 | crx-*-*) |
cb253473 | 2292 | noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}" |
25b656e7 | 2293 | ;; |
671aa708 | 2294 | d10v-*-*) |
cb253473 | 2295 | noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}" |
671aa708 NN |
2296 | ;; |
2297 | d30v-*-*) | |
cb253473 | 2298 | noconfigdirs="$noconfigdirs ${libgcj} gdb" |
671aa708 NN |
2299 | ;; |
2300 | fr30-*-elf*) | |
cb253473 | 2301 | noconfigdirs="$noconfigdirs ${libgcj} gdb" |
671aa708 NN |
2302 | ;; |
2303 | frv-*-*) | |
cb253473 | 2304 | noconfigdirs="$noconfigdirs ${libgcj}" |
671aa708 NN |
2305 | ;; |
2306 | h8300*-*-*) | |
cb253473 | 2307 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" |
671aa708 NN |
2308 | ;; |
2309 | h8500-*-*) | |
cb253473 | 2310 | noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}" |
671aa708 | 2311 | ;; |
ee6a22df | 2312 | hppa1.1-*-osf* | hppa1.1-*-bsd* ) |
ee6a22df | 2313 | ;; |
671aa708 NN |
2314 | hppa*64*-*-linux* | parisc*64*-*-linux*) |
2315 | # In this case, it's because the hppa64-linux target is for | |
2316 | # the kernel only at this point and has no libc, and thus no | |
2317 | # headers, crt*.o, etc., all of which are needed by these. | |
2318 | noconfigdirs="$noconfigdirs target-zlib" | |
2319 | ;; | |
3e732ba0 JDA |
2320 | parisc*-*-linux* | hppa*-*-linux*) |
2321 | ;; | |
671aa708 | 2322 | hppa*-*-*elf* | \ |
671aa708 NN |
2323 | hppa*-*-lites* | \ |
2324 | hppa*-*-openbsd* | \ | |
2325 | hppa*64*-*-*) | |
cb253473 | 2326 | noconfigdirs="$noconfigdirs ${libgcj}" |
671aa708 | 2327 | ;; |
2a332582 JDA |
2328 | hppa*-hp-hpux11*) |
2329 | noconfigdirs="$noconfigdirs ld shellutils" | |
2330 | ;; | |
671aa708 NN |
2331 | hppa*-*-*) |
2332 | # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't | |
2333 | # build on HP-UX 10.20. | |
cb253473 | 2334 | noconfigdirs="$noconfigdirs ld shellutils ${libgcj}" |
671aa708 | 2335 | ;; |
fb87ad5d | 2336 | i960-*-*) |
cb253473 | 2337 | noconfigdirs="$noconfigdirs ${libgcj} gdb" |
fb87ad5d | 2338 | ;; |
671aa708 NN |
2339 | ia64*-*-elf*) |
2340 | # No gdb support yet. | |
b4f96efe | 2341 | noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb" |
671aa708 NN |
2342 | ;; |
2343 | ia64*-**-hpux*) | |
2344 | # No gdb or ld support yet. | |
cb253473 | 2345 | noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld" |
671aa708 | 2346 | ;; |
ee6a22df | 2347 | i370-*-opened*) |
ee6a22df | 2348 | ;; |
f2a0e225 | 2349 | i[3456789]86-*-coff | i[3456789]86-*-elf) |
cb253473 | 2350 | noconfigdirs="$noconfigdirs ${libgcj}" |
671aa708 | 2351 | ;; |
f2a0e225 | 2352 | i[3456789]86-*-linux*) |
671aa708 NN |
2353 | # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's |
2354 | # not build java stuff by default. | |
2355 | case "${target}" in | |
2356 | *-*-*libc1*) | |
cb253473 | 2357 | noconfigdirs="$noconfigdirs ${libgcj}";; |
671aa708 NN |
2358 | esac |
2359 | ||
2360 | # This section makes it possible to build newlib natively on linux. | |
2361 | # If we are using a cross compiler then don't configure newlib. | |
2362 | if test x${is_cross_compiler} != xno ; then | |
3aa83176 | 2363 | noconfigdirs="$noconfigdirs target-newlib" |
671aa708 NN |
2364 | fi |
2365 | noconfigdirs="$noconfigdirs target-libgloss" | |
2366 | # If we are not using a cross compiler, do configure newlib. | |
2367 | # Note however, that newlib will only be configured in this situation | |
2368 | # if the --with-newlib option has been given, because otherwise | |
2369 | # 'target-newlib' will appear in skipdirs. | |
2370 | ;; | |
f2a0e225 | 2371 | i[3456789]86-*-mingw32*) |
b91f0a41 CV |
2372 | target_configdirs="$target_configdirs target-winsup" |
2373 | noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}" | |
1c710c3c | 2374 | ;; |
95af8923 KT |
2375 | x86_64-*-mingw*) |
2376 | target_configdirs="$target_configdirs target-winsup" | |
2377 | noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}" | |
1c710c3c | 2378 | ;; |
671aa708 NN |
2379 | *-*-cygwin*) |
2380 | target_configdirs="$target_configdirs target-libtermcap target-winsup" | |
cb253473 | 2381 | noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}" |
801e2270 | 2382 | # always build newlib if winsup directory is present. |
b91f0a41 | 2383 | if test -d "$srcdir/winsup/cygwin"; then |
801e2270 | 2384 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` |
ee6a22df | 2385 | elif test -d "$srcdir/newlib"; then |
b91f0a41 | 2386 | echo "Warning: winsup/cygwin is missing so newlib can't be built." |
801e2270 | 2387 | fi |
1c710c3c | 2388 | ;; |
ee6a22df L |
2389 | i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \ |
2390 | i[3456789]86-*-uwin* | i[3456789]86-*-interix* ) | |
ee6a22df | 2391 | ;; |
f2a0e225 | 2392 | i[3456789]86-*-pe) |
cb253473 | 2393 | noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}" |
671aa708 | 2394 | ;; |
f2a0e225 | 2395 | i[3456789]86-*-sco3.2v5*) |
671aa708 NN |
2396 | # The linker does not yet know about weak symbols in COFF, |
2397 | # and is not configured to handle mixed ELF and COFF. | |
cb253473 | 2398 | noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}" |
671aa708 | 2399 | ;; |
f2a0e225 | 2400 | i[3456789]86-*-sco*) |
cb253473 | 2401 | noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}" |
671aa708 | 2402 | ;; |
f2a0e225 | 2403 | i[3456789]86-*-solaris2*) |
671aa708 NN |
2404 | noconfigdirs="$noconfigdirs target-libgloss" |
2405 | ;; | |
f2a0e225 | 2406 | i[3456789]86-*-sysv4*) |
cb253473 | 2407 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" |
671aa708 | 2408 | ;; |
f2a0e225 | 2409 | i[3456789]86-*-beos*) |
cb253473 | 2410 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}" |
3aa83176 | 2411 | ;; |
d1f8db0c PB |
2412 | i[3456789]86-*-rdos*) |
2413 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" | |
2414 | ;; | |
fb87ad5d | 2415 | m32r-*-*) |
cb253473 | 2416 | noconfigdirs="$noconfigdirs ${libgcj}" |
fb87ad5d | 2417 | ;; |
671aa708 | 2418 | m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*) |
cb253473 | 2419 | noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}" |
671aa708 NN |
2420 | ;; |
2421 | m68k-*-elf*) | |
cb253473 | 2422 | noconfigdirs="$noconfigdirs ${libgcj}" |
671aa708 NN |
2423 | ;; |
2424 | m68k-*-coff*) | |
cb253473 | 2425 | noconfigdirs="$noconfigdirs ${libgcj}" |
671aa708 NN |
2426 | ;; |
2427 | mcore-*-pe*) | |
2428 | # The EPOC C++ environment does not support exceptions or rtti, | |
2429 | # and so building libstdc++-v3 tends not to always work. | |
2430 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
2431 | ;; | |
2432 | mmix-*-*) | |
4fab7234 | 2433 | noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss" |
7f26dfa3 | 2434 | unsupported_languages="$unsupported_languages fortran java" |
671aa708 NN |
2435 | ;; |
2436 | mn10200-*-*) | |
cb253473 | 2437 | noconfigdirs="$noconfigdirs ${libgcj}" |
671aa708 NN |
2438 | ;; |
2439 | mn10300-*-*) | |
cb253473 | 2440 | noconfigdirs="$noconfigdirs ${libgcj}" |
671aa708 | 2441 | ;; |
ab34901f | 2442 | mt-*-*) |
79dd769c AH |
2443 | noconfigdirs="$noconfigdirs sim" |
2444 | ;; | |
671aa708 NN |
2445 | powerpc-*-aix*) |
2446 | # copied from rs6000-*-* entry | |
cb253473 | 2447 | noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}" |
671aa708 NN |
2448 | ;; |
2449 | powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe) | |
2450 | target_configdirs="$target_configdirs target-winsup" | |
cb253473 | 2451 | noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}" |
671aa708 NN |
2452 | # always build newlib. |
2453 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` | |
2454 | ;; | |
2455 | # This is temporary until we can link against shared libraries | |
2456 | powerpcle-*-solaris*) | |
cb253473 | 2457 | noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}" |
671aa708 NN |
2458 | ;; |
2459 | powerpc-*-beos*) | |
cb253473 | 2460 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}" |
671aa708 | 2461 | ;; |
671aa708 | 2462 | powerpc-*-eabi) |
cb253473 | 2463 | noconfigdirs="$noconfigdirs ${libgcj}" |
ee6a22df L |
2464 | ;; |
2465 | powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* ) | |
671aa708 | 2466 | ;; |
671aa708 | 2467 | rs6000-*-lynxos*) |
cb253473 | 2468 | noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}" |
671aa708 NN |
2469 | ;; |
2470 | rs6000-*-aix*) | |
cb253473 | 2471 | noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}" |
671aa708 NN |
2472 | ;; |
2473 | rs6000-*-*) | |
cb253473 | 2474 | noconfigdirs="$noconfigdirs gprof ${libgcj}" |
671aa708 NN |
2475 | ;; |
2476 | m68k-apollo-*) | |
cb253473 | 2477 | noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}" |
671aa708 NN |
2478 | ;; |
2479 | mips*-*-irix5*) | |
cb253473 | 2480 | noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}" |
671aa708 NN |
2481 | ;; |
2482 | mips*-*-irix6*) | |
671aa708 NN |
2483 | # Linking libjava exceeds command-line length limits on at least |
2484 | # IRIX 6.2, but not on IRIX 6.5. | |
2485 | # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham | |
2486 | # <oldham@codesourcery.com> | |
cb253473 | 2487 | noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}" |
671aa708 | 2488 | ;; |
671aa708 | 2489 | mips*-*-bsd*) |
cb253473 | 2490 | noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}" |
671aa708 | 2491 | ;; |
d0fe5ad3 | 2492 | mips64*-*-linux*) |
1ee4c5a0 | 2493 | noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}" |
d0fe5ad3 | 2494 | ;; |
671aa708 NN |
2495 | mips*-*-linux*) |
2496 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
2497 | ;; | |
2498 | mips*-*-*) | |
cb253473 | 2499 | noconfigdirs="$noconfigdirs gprof ${libgcj}" |
671aa708 NN |
2500 | ;; |
2501 | romp-*-*) | |
cb253473 | 2502 | noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}" |
671aa708 | 2503 | ;; |
669f01d8 | 2504 | sh-*-* | sh64-*-*) |
671aa708 | 2505 | case "${host}" in |
f2a0e225 KC |
2506 | i[3456789]86-*-vsta) ;; # don't add gprof back in |
2507 | i[3456789]86-*-go32*) ;; # don't add gprof back in | |
2508 | i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in | |
671aa708 NN |
2509 | *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;; |
2510 | esac | |
cb253473 | 2511 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" |
671aa708 | 2512 | ;; |
671aa708 | 2513 | sparc-*-elf*) |
cb253473 | 2514 | noconfigdirs="$noconfigdirs ${libgcj}" |
671aa708 NN |
2515 | ;; |
2516 | sparc64-*-elf*) | |
cb253473 | 2517 | noconfigdirs="$noconfigdirs ${libgcj}" |
671aa708 NN |
2518 | ;; |
2519 | sparclite-*-*) | |
cb253473 | 2520 | noconfigdirs="$noconfigdirs ${libgcj}" |
671aa708 NN |
2521 | ;; |
2522 | sparc-*-sunos4*) | |
cb253473 | 2523 | noconfigdirs="$noconfigdirs ${libgcj}" |
671aa708 NN |
2524 | if test x${is_cross_compiler} != xno ; then |
2525 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" | |
2526 | else | |
2527 | use_gnu_ld=no | |
2528 | fi | |
2529 | ;; | |
bba5e0ca | 2530 | sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*) |
cb253473 | 2531 | noconfigdirs="$noconfigdirs ${libgcj}" |
bba5e0ca | 2532 | ;; |
671aa708 NN |
2533 | sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*) |
2534 | ;; | |
85d9c13c | 2535 | spu-*-*) |
ea6f5c57 | 2536 | skipdirs="target-libssp" |
85d9c13c | 2537 | ;; |
671aa708 | 2538 | v810-*-*) |
cb253473 | 2539 | noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}" |
671aa708 NN |
2540 | ;; |
2541 | v850-*-*) | |
cb253473 | 2542 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" |
671aa708 NN |
2543 | ;; |
2544 | v850e-*-*) | |
cb253473 | 2545 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" |
671aa708 NN |
2546 | ;; |
2547 | v850ea-*-*) | |
cb253473 | 2548 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" |
671aa708 NN |
2549 | ;; |
2550 | vax-*-vms) | |
cb253473 | 2551 | noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}" |
671aa708 NN |
2552 | ;; |
2553 | vax-*-*) | |
cb253473 | 2554 | noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}" |
671aa708 | 2555 | ;; |
0d4f1b4e | 2556 | xtensa-*-*) |
cb253473 | 2557 | noconfigdirs="$noconfigdirs ${libgcj}" |
0d4f1b4e | 2558 | ;; |
671aa708 | 2559 | ip2k-*-*) |
cb253473 | 2560 | noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}" |
671aa708 | 2561 | ;; |
c3f84f61 | 2562 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu) |
671aa708 NN |
2563 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
2564 | ;; | |
2565 | *-*-lynxos*) | |
cb253473 | 2566 | noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}" |
1c710c3c | 2567 | ;; |
671aa708 | 2568 | *-*-*) |
cb253473 | 2569 | noconfigdirs="$noconfigdirs ${libgcj}" |
671aa708 NN |
2570 | ;; |
2571 | esac | |
79c06341 | 2572 | |
671aa708 NN |
2573 | # If we aren't building newlib, then don't build libgloss, since libgloss |
2574 | # depends upon some newlib header files. | |
2575 | case "${noconfigdirs}" in | |
2576 | *target-libgloss*) ;; | |
2577 | *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;; | |
2578 | esac | |
2579 | ||
671aa708 NN |
2580 | # Work in distributions that contain no compiler tools, like Autoconf. |
2581 | tentative_cc="" | |
2582 | host_makefile_frag=/dev/null | |
2583 | if test -d ${srcdir}/config ; then | |
2584 | case "${host}" in | |
2585 | m68k-hp-hpux*) | |
2586 | # Avoid "too much defining" errors from HPUX compiler. | |
2587 | tentative_cc="cc -Wp,-H256000" | |
2588 | # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding. | |
2589 | # If it's HP/UX ar, this should be harmless. | |
2590 | RANLIB="ar ts" | |
2591 | ;; | |
2592 | m68k-apollo-sysv*) | |
2593 | tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG" | |
2594 | ;; | |
2595 | m68k-apollo-bsd*) | |
2596 | #None of the Apollo compilers can compile gas or binutils. The preprocessor | |
2597 | # chokes on bfd, the compiler won't let you assign integers to enums, and | |
2598 | # other problems. Defining CC to gcc is a questionable way to say "don't use | |
2599 | # the apollo compiler" (the preferred version of GCC could be called cc, | |
2600 | # or whatever), but I'm not sure leaving CC as cc is any better... | |
2601 | #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG | |
2602 | # Used to have BISON=yacc. | |
2603 | tentative_cc=gcc | |
2604 | ;; | |
2605 | m88k-dg-dgux*) | |
2606 | tentative_cc="gcc -Wall -ansi -D__using_DGUX" | |
671aa708 NN |
2607 | ;; |
2608 | m88k-harris-cxux*) | |
2609 | # Under CX/UX, we want to tell the compiler to use ANSI mode. | |
2610 | tentative_cc="cc -Xa" | |
2611 | host_makefile_frag="config/mh-cxux" | |
2612 | ;; | |
2613 | m88k-motorola-sysv*) | |
2614 | ;; | |
2615 | mips*-dec-ultrix*) | |
2616 | tentative_cc="cc -Wf,-XNg1000" | |
2617 | host_makefile_frag="config/mh-decstation" | |
2618 | ;; | |
2619 | mips*-nec-sysv4*) | |
2620 | # The C compiler on NEC MIPS SVR4 needs bigger tables. | |
2621 | tentative_cc="cc -ZXNd=5000 -ZXNg=1000" | |
2622 | host_makefile_frag="config/mh-necv4" | |
2623 | ;; | |
2624 | mips*-sgi-irix4*) | |
2625 | # Tell compiler to use K&R C. We can't compile under the SGI Ansi | |
2626 | # environment. Also bump switch table size so that cp-parse will | |
2627 | # compile. Bump string length limit so linker builds. | |
2628 | tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192" | |
2629 | ;; | |
2630 | mips*-*-sysv4*) | |
2631 | host_makefile_frag="config/mh-sysv4" | |
2632 | ;; | |
2633 | mips*-*-sysv*) | |
2634 | # This is for a MIPS running RISC/os 4.52C. | |
2635 | ||
2636 | # This is needed for GDB, but needs to be in the top-level make because | |
2637 | # if a library is compiled with the bsd headers and gets linked with the | |
2638 | # sysv system libraries all hell can break loose (e.g. a jmp_buf might be | |
2639 | # a different size). | |
2640 | # ptrace(2) apparently has problems in the BSD environment. No workaround is | |
2641 | # known except to select the sysv environment. Could we use /proc instead? | |
2642 | # These "sysv environments" and "bsd environments" often end up being a pain. | |
2643 | # | |
2644 | # This is not part of CFLAGS because perhaps not all C compilers have this | |
2645 | # option. | |
2646 | tentative_cc="cc -systype sysv" | |
2647 | ;; | |
2648 | i370-ibm-opened*) | |
2649 | tentative_cc="c89" | |
2650 | ;; | |
f2a0e225 | 2651 | i[3456789]86-*-sysv5*) |
671aa708 NN |
2652 | host_makefile_frag="config/mh-sysv5" |
2653 | ;; | |
f2a0e225 | 2654 | i[3456789]86-*-dgux*) |
671aa708 NN |
2655 | tentative_cc="gcc -Wall -ansi -D__using_DGUX" |
2656 | host_makefile_frag="config/mh-dgux386" | |
2657 | ;; | |
f2a0e225 | 2658 | i[3456789]86-ncr-sysv4.3*) |
671aa708 NN |
2659 | # The MetaWare compiler will generate a copyright message unless you |
2660 | # turn it off by adding the -Hnocopyr flag. | |
2661 | tentative_cc="cc -Hnocopyr" | |
2662 | ;; | |
f2a0e225 | 2663 | i[3456789]86-ncr-sysv4*) |
671aa708 NN |
2664 | # for an NCR 3000 (i486/SVR4) system. |
2665 | # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc. | |
2666 | # This compiler not only emits obnoxious copyright messages every time | |
2667 | # you run it, but it chokes and dies on a whole bunch of GNU source | |
2668 | # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc. | |
2669 | tentative_cc="/usr/ccs/ATT/cc" | |
2670 | host_makefile_frag="config/mh-ncr3000" | |
2671 | ;; | |
f2a0e225 | 2672 | i[3456789]86-*-sco3.2v5*) |
671aa708 | 2673 | ;; |
f2a0e225 | 2674 | i[3456789]86-*-sco*) |
671aa708 NN |
2675 | # The native C compiler botches some simple uses of const. Unfortunately, |
2676 | # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h. | |
2677 | tentative_cc="cc -Dconst=" | |
2678 | host_makefile_frag="config/mh-sco" | |
2679 | ;; | |
f2a0e225 | 2680 | i[3456789]86-*-udk*) |
671aa708 NN |
2681 | host_makefile_frag="config/mh-sysv5" |
2682 | ;; | |
f2a0e225 | 2683 | i[3456789]86-*-solaris2*) |
671aa708 NN |
2684 | host_makefile_frag="config/mh-sysv4" |
2685 | ;; | |
f2a0e225 | 2686 | i[3456789]86-*-msdosdjgpp*) |
671aa708 NN |
2687 | host_makefile_frag="config/mh-djgpp" |
2688 | ;; | |
2689 | *-cygwin*) | |
2690 | host_makefile_frag="config/mh-cygwin" | |
2691 | ;; | |
2692 | *-mingw32*) | |
671aa708 | 2693 | ;; |
95af8923 KT |
2694 | *-mingw64*) |
2695 | ;; | |
671aa708 NN |
2696 | *-interix*) |
2697 | host_makefile_frag="config/mh-interix" | |
2698 | ;; | |
2699 | vax-*-ultrix2*) | |
2700 | # The old BSD pcc isn't up to compiling parts of gdb so use gcc | |
2701 | tentative_cc=gcc | |
2702 | ;; | |
2703 | *-*-solaris2*) | |
2704 | host_makefile_frag="config/mh-solaris" | |
2705 | ;; | |
2706 | m68k-sun-sunos*) | |
2707 | # Sun's C compiler needs the -J flag to be able to compile cp-parse.c | |
2708 | # without overflowing the jump tables (-J says to use a 32 bit table) | |
2709 | tentative_cc="cc -J" | |
2710 | ;; | |
2711 | *-hp-hpux*) | |
2712 | tentative_cc="cc -Wp,-H256000" | |
2713 | ;; | |
2714 | *-*-hiux*) | |
2715 | tentative_cc="cc -Wp,-H256000" | |
2716 | ;; | |
2717 | rs6000-*-lynxos*) | |
2718 | # /bin/cc is less than useful for our purposes. Always use GCC | |
2719 | tentative_cc="/usr/cygnus/progressive/bin/gcc" | |
2720 | host_makefile_frag="config/mh-lynxrs6k" | |
2721 | ;; | |
45f366ab | 2722 | powerpc-*-darwin*) |
be8fff81 RB |
2723 | host_makefile_frag="config/mh-ppc-darwin" |
2724 | ;; | |
d19bca38 PB |
2725 | powerpc-*-aix*) |
2726 | host_makefile_frag="config/mh-ppc-aix" | |
2727 | ;; | |
2728 | rs6000-*-aix*) | |
2729 | host_makefile_frag="config/mh-ppc-aix" | |
2730 | ;; | |
671aa708 NN |
2731 | *-*-lynxos*) |
2732 | # /bin/cc is less than useful for our purposes. Always use GCC | |
2733 | tentative_cc="/bin/gcc" | |
2734 | ;; | |
2735 | *-*-sysv4*) | |
2736 | host_makefile_frag="config/mh-sysv4" | |
2737 | ;; | |
95c53c62 RS |
2738 | # This is placed last to prevent interfering with the cases above. |
2739 | i[3456789]86-*-*) | |
2740 | # Build the stage2 and stage3 compilers with -fomit-frame-pointer. | |
2741 | host_makefile_frag="config/mh-x86omitfp" | |
2742 | ;; | |
671aa708 NN |
2743 | esac |
2744 | fi | |
2745 | ||
55ffb5ed NN |
2746 | # If we aren't going to be using gcc, see if we can extract a definition |
2747 | # of CC from the fragment. | |
2748 | # Actually, use the 'pre-extracted' version above. | |
2749 | if test -z "${CC}" && test "${build}" = "${host}" ; then | |
2750 | IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:" | |
2751 | found= | |
2752 | for dir in $PATH; do | |
2753 | test -z "$dir" && dir=. | |
2754 | if test -f $dir/gcc; then | |
2755 | found=yes | |
2756 | break | |
2757 | fi | |
2758 | done | |
2759 | IFS="$save_ifs" | |
2760 | if test -z "${found}" && test -n "${tentative_cc}" ; then | |
2761 | CC=$tentative_cc | |
2762 | fi | |
2763 | fi | |
2764 | ||
2765 | if test "${build}" != "${host}" ; then | |
55ffb5ed | 2766 | CC_FOR_BUILD=${CC_FOR_BUILD-gcc} |
55ffb5ed | 2767 | else |
fb0103e5 | 2768 | CC_FOR_BUILD="\$(CC)" |
c3a86da9 DJ |
2769 | fi |
2770 | ||
2771 | ac_ext=c | |
1c710c3c DJ |
2772 | ac_cpp='$CPP $CPPFLAGS' |
2773 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2774 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2775 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2776 | if test -n "$ac_tool_prefix"; then | |
2777 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2778 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2aeb72e9 DD |
2779 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2780 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
2781 | if test "${ac_cv_prog_CC+set}" = set; then |
2782 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2783 | else | |
2784 | if test -n "$CC"; then | |
2785 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2786 | else | |
2787 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2788 | for as_dir in $PATH | |
2789 | do | |
2790 | IFS=$as_save_IFS | |
2791 | test -z "$as_dir" && as_dir=. | |
2792 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 2793 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
2794 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
2795 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2796 | break 2 | |
2797 | fi | |
2798 | done | |
2799 | done | |
2800 | ||
2801 | fi | |
2802 | fi | |
2803 | CC=$ac_cv_prog_CC | |
2804 | if test -n "$CC"; then | |
2aeb72e9 DD |
2805 | echo "$as_me:$LINENO: result: $CC" >&5 |
2806 | echo "${ECHO_T}$CC" >&6 | |
1c710c3c | 2807 | else |
2aeb72e9 DD |
2808 | echo "$as_me:$LINENO: result: no" >&5 |
2809 | echo "${ECHO_T}no" >&6 | |
1c710c3c DJ |
2810 | fi |
2811 | ||
2812 | fi | |
2813 | if test -z "$ac_cv_prog_CC"; then | |
2814 | ac_ct_CC=$CC | |
fb0103e5 RG |
2815 | # Extract the first word of "gcc", so it can be a program name with args. |
2816 | set dummy gcc; ac_word=$2 | |
2aeb72e9 DD |
2817 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2818 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
2819 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2820 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2821 | else | |
2822 | if test -n "$ac_ct_CC"; then | |
2823 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2824 | else | |
2825 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2826 | for as_dir in $PATH | |
2827 | do | |
2828 | IFS=$as_save_IFS | |
2829 | test -z "$as_dir" && as_dir=. | |
2830 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 2831 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
2832 | ac_cv_prog_ac_ct_CC="gcc" |
2833 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2834 | break 2 | |
2835 | fi | |
2836 | done | |
2837 | done | |
2838 | ||
2839 | fi | |
2840 | fi | |
2841 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2842 | if test -n "$ac_ct_CC"; then | |
2aeb72e9 DD |
2843 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2844 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1c710c3c | 2845 | else |
2aeb72e9 DD |
2846 | echo "$as_me:$LINENO: result: no" >&5 |
2847 | echo "${ECHO_T}no" >&6 | |
1c710c3c DJ |
2848 | fi |
2849 | ||
2aeb72e9 | 2850 | CC=$ac_ct_CC |
1c710c3c DJ |
2851 | else |
2852 | CC="$ac_cv_prog_CC" | |
2853 | fi | |
2854 | ||
2855 | if test -z "$CC"; then | |
2aeb72e9 DD |
2856 | if test -n "$ac_tool_prefix"; then |
2857 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1c710c3c | 2858 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
2aeb72e9 DD |
2859 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2860 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
2861 | if test "${ac_cv_prog_CC+set}" = set; then |
2862 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
55ffb5ed NN |
2863 | else |
2864 | if test -n "$CC"; then | |
2865 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2866 | else | |
1c710c3c DJ |
2867 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2868 | for as_dir in $PATH | |
2869 | do | |
2870 | IFS=$as_save_IFS | |
2871 | test -z "$as_dir" && as_dir=. | |
2872 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 2873 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
2874 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
2875 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2876 | break 2 | |
2877 | fi | |
2878 | done | |
2879 | done | |
2880 | ||
0b0dc272 | 2881 | fi |
0b0dc272 | 2882 | fi |
1c710c3c | 2883 | CC=$ac_cv_prog_CC |
af71363e | 2884 | if test -n "$CC"; then |
2aeb72e9 DD |
2885 | echo "$as_me:$LINENO: result: $CC" >&5 |
2886 | echo "${ECHO_T}$CC" >&6 | |
0b0dc272 | 2887 | else |
2aeb72e9 DD |
2888 | echo "$as_me:$LINENO: result: no" >&5 |
2889 | echo "${ECHO_T}no" >&6 | |
0b0dc272 AM |
2890 | fi |
2891 | ||
2aeb72e9 DD |
2892 | fi |
2893 | if test -z "$ac_cv_prog_CC"; then | |
2894 | ac_ct_CC=$CC | |
2895 | # Extract the first word of "cc", so it can be a program name with args. | |
2896 | set dummy cc; ac_word=$2 | |
2897 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2898 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2899 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2900 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2901 | else | |
2902 | if test -n "$ac_ct_CC"; then | |
2903 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2904 | else | |
2905 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2906 | for as_dir in $PATH | |
2907 | do | |
2908 | IFS=$as_save_IFS | |
2909 | test -z "$as_dir" && as_dir=. | |
2910 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2911 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2912 | ac_cv_prog_ac_ct_CC="cc" | |
2913 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2914 | break 2 | |
11a67599 | 2915 | fi |
2aeb72e9 DD |
2916 | done |
2917 | done | |
2918 | ||
2919 | fi | |
2920 | fi | |
2921 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2922 | if test -n "$ac_ct_CC"; then | |
2923 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2924 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
2925 | else | |
2926 | echo "$as_me:$LINENO: result: no" >&5 | |
2927 | echo "${ECHO_T}no" >&6 | |
2928 | fi | |
2929 | ||
2930 | CC=$ac_ct_CC | |
2931 | else | |
2932 | CC="$ac_cv_prog_CC" | |
2933 | fi | |
2934 | ||
1c710c3c | 2935 | fi |
55ffb5ed NN |
2936 | if test -z "$CC"; then |
2937 | # Extract the first word of "cc", so it can be a program name with args. | |
2938 | set dummy cc; ac_word=$2 | |
2aeb72e9 DD |
2939 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2940 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
2941 | if test "${ac_cv_prog_CC+set}" = set; then |
2942 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
55ffb5ed NN |
2943 | else |
2944 | if test -n "$CC"; then | |
2945 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2946 | else | |
0b0dc272 | 2947 | ac_prog_rejected=no |
1c710c3c DJ |
2948 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2949 | for as_dir in $PATH | |
2950 | do | |
2951 | IFS=$as_save_IFS | |
2952 | test -z "$as_dir" && as_dir=. | |
2953 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 2954 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
2955 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2956 | ac_prog_rejected=yes | |
2957 | continue | |
2958 | fi | |
2959 | ac_cv_prog_CC="cc" | |
2960 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2961 | break 2 | |
2962 | fi | |
2963 | done | |
2964 | done | |
2965 | ||
55ffb5ed NN |
2966 | if test $ac_prog_rejected = yes; then |
2967 | # We found a bogon in the path, so make sure we never use it. | |
2968 | set dummy $ac_cv_prog_CC | |
2969 | shift | |
1c710c3c | 2970 | if test $# != 0; then |
55ffb5ed NN |
2971 | # We chose a different compiler from the bogus one. |
2972 | # However, it has the same basename, so the bogon will be chosen | |
2973 | # first if we set CC to just the basename; use the full file name. | |
2974 | shift | |
1c710c3c | 2975 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
55ffb5ed NN |
2976 | fi |
2977 | fi | |
2978 | fi | |
2979 | fi | |
1c710c3c | 2980 | CC=$ac_cv_prog_CC |
55ffb5ed | 2981 | if test -n "$CC"; then |
2aeb72e9 DD |
2982 | echo "$as_me:$LINENO: result: $CC" >&5 |
2983 | echo "${ECHO_T}$CC" >&6 | |
55ffb5ed | 2984 | else |
2aeb72e9 DD |
2985 | echo "$as_me:$LINENO: result: no" >&5 |
2986 | echo "${ECHO_T}no" >&6 | |
55ffb5ed NN |
2987 | fi |
2988 | ||
1c710c3c DJ |
2989 | fi |
2990 | if test -z "$CC"; then | |
2991 | if test -n "$ac_tool_prefix"; then | |
2aeb72e9 | 2992 | for ac_prog in cl |
1c710c3c DJ |
2993 | do |
2994 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2995 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2aeb72e9 DD |
2996 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2997 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
2998 | if test "${ac_cv_prog_CC+set}" = set; then |
2999 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
55ffb5ed NN |
3000 | else |
3001 | if test -n "$CC"; then | |
3002 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3003 | else | |
1c710c3c DJ |
3004 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3005 | for as_dir in $PATH | |
3006 | do | |
3007 | IFS=$as_save_IFS | |
3008 | test -z "$as_dir" && as_dir=. | |
3009 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 3010 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
3011 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
3012 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3013 | break 2 | |
3014 | fi | |
3015 | done | |
3016 | done | |
3017 | ||
55ffb5ed NN |
3018 | fi |
3019 | fi | |
1c710c3c | 3020 | CC=$ac_cv_prog_CC |
55ffb5ed | 3021 | if test -n "$CC"; then |
2aeb72e9 DD |
3022 | echo "$as_me:$LINENO: result: $CC" >&5 |
3023 | echo "${ECHO_T}$CC" >&6 | |
a4b9e93e | 3024 | else |
2aeb72e9 DD |
3025 | echo "$as_me:$LINENO: result: no" >&5 |
3026 | echo "${ECHO_T}no" >&6 | |
fb0103e5 | 3027 | fi |
af71363e | 3028 | |
1c710c3c DJ |
3029 | test -n "$CC" && break |
3030 | done | |
af71363e | 3031 | fi |
1c710c3c DJ |
3032 | if test -z "$CC"; then |
3033 | ac_ct_CC=$CC | |
2aeb72e9 | 3034 | for ac_prog in cl |
1c710c3c DJ |
3035 | do |
3036 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3037 | set dummy $ac_prog; ac_word=$2 | |
2aeb72e9 DD |
3038 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3039 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
3040 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
3041 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
0b0dc272 | 3042 | else |
1c710c3c DJ |
3043 | if test -n "$ac_ct_CC"; then |
3044 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
0b0dc272 | 3045 | else |
1c710c3c DJ |
3046 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3047 | for as_dir in $PATH | |
3048 | do | |
3049 | IFS=$as_save_IFS | |
3050 | test -z "$as_dir" && as_dir=. | |
3051 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 3052 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
3053 | ac_cv_prog_ac_ct_CC="$ac_prog" |
3054 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3055 | break 2 | |
3056 | fi | |
3057 | done | |
3058 | done | |
3059 | ||
af71363e AS |
3060 | fi |
3061 | fi | |
1c710c3c DJ |
3062 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3063 | if test -n "$ac_ct_CC"; then | |
2aeb72e9 DD |
3064 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
3065 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
fb0103e5 | 3066 | else |
2aeb72e9 DD |
3067 | echo "$as_me:$LINENO: result: no" >&5 |
3068 | echo "${ECHO_T}no" >&6 | |
af71363e | 3069 | fi |
0b0dc272 | 3070 | |
1c710c3c DJ |
3071 | test -n "$ac_ct_CC" && break |
3072 | done | |
3073 | ||
2aeb72e9 | 3074 | CC=$ac_ct_CC |
1c710c3c DJ |
3075 | fi |
3076 | ||
3077 | fi | |
3078 | ||
3079 | ||
3080 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
3081 | See \`config.log' for more details." >&5 | |
3082 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
3083 | See \`config.log' for more details." >&2;} | |
3084 | { (exit 1); exit 1; }; } | |
3085 | ||
3086 | # Provide some information about the compiler. | |
2aeb72e9 DD |
3087 | echo "$as_me:$LINENO:" \ |
3088 | "checking for C compiler version" >&5 | |
1c710c3c | 3089 | ac_compiler=`set X $ac_compile; echo $2` |
2aeb72e9 DD |
3090 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
3091 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
1c710c3c DJ |
3092 | ac_status=$? |
3093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3094 | (exit $ac_status); } | |
2aeb72e9 DD |
3095 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
3096 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
1c710c3c DJ |
3097 | ac_status=$? |
3098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3099 | (exit $ac_status); } | |
2aeb72e9 DD |
3100 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
3101 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
1c710c3c DJ |
3102 | ac_status=$? |
3103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3104 | (exit $ac_status); } | |
3105 | ||
3106 | cat >conftest.$ac_ext <<_ACEOF | |
3107 | /* confdefs.h. */ | |
3108 | _ACEOF | |
3109 | cat confdefs.h >>conftest.$ac_ext | |
3110 | cat >>conftest.$ac_ext <<_ACEOF | |
3111 | /* end confdefs.h. */ | |
3112 | ||
3113 | int | |
3114 | main () | |
3115 | { | |
3116 | ||
3117 | ; | |
3118 | return 0; | |
3119 | } | |
3120 | _ACEOF | |
3121 | ac_clean_files_save=$ac_clean_files | |
3122 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
3123 | # Try to create an executable without -o first, disregard a.out. | |
3124 | # It will help us diagnose broken compilers, and finding out an intuition | |
3125 | # of exeext. | |
2aeb72e9 DD |
3126 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
3127 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
1c710c3c | 3128 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
2aeb72e9 DD |
3129 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
3130 | (eval $ac_link_default) 2>&5 | |
1c710c3c DJ |
3131 | ac_status=$? |
3132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3133 | (exit $ac_status); }; then | |
2aeb72e9 DD |
3134 | # Find the output, starting from the most likely. This scheme is |
3135 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
3136 | # resort. | |
3137 | ||
3138 | # Be careful to initialize this variable, since it used to be cached. | |
3139 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
3140 | ac_cv_exeext= | |
3141 | # b.out is created by i960 compilers. | |
3142 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
1c710c3c DJ |
3143 | do |
3144 | test -f "$ac_file" || continue | |
3145 | case $ac_file in | |
2aeb72e9 DD |
3146 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
3147 | ;; | |
3148 | conftest.$ac_ext ) | |
3149 | # This is the source file. | |
1c710c3c DJ |
3150 | ;; |
3151 | [ab].out ) | |
3152 | # We found the default executable, but exeext='' is most | |
3153 | # certainly right. | |
3154 | break;; | |
3155 | *.* ) | |
2aeb72e9 DD |
3156 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
3157 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
3158 | # but it would be cool to find out if it's true. Does anybody | |
3159 | # maintain Libtool? --akim. | |
3160 | export ac_cv_exeext | |
1c710c3c DJ |
3161 | break;; |
3162 | * ) | |
3163 | break;; | |
3164 | esac | |
3165 | done | |
3166 | else | |
3167 | echo "$as_me: failed program was:" >&5 | |
3168 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3169 | ||
3170 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
3171 | See \`config.log' for more details." >&5 | |
3172 | echo "$as_me: error: C compiler cannot create executables | |
3173 | See \`config.log' for more details." >&2;} | |
3174 | { (exit 77); exit 77; }; } | |
3175 | fi | |
3176 | ||
3177 | ac_exeext=$ac_cv_exeext | |
2aeb72e9 DD |
3178 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
3179 | echo "${ECHO_T}$ac_file" >&6 | |
1c710c3c | 3180 | |
2aeb72e9 | 3181 | # Check the compiler produces executables we can run. If not, either |
1c710c3c | 3182 | # the compiler is broken, or we cross compile. |
2aeb72e9 DD |
3183 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
3184 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
1c710c3c DJ |
3185 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
3186 | # If not cross compiling, check that we can run a simple program. | |
3187 | if test "$cross_compiling" != yes; then | |
3188 | if { ac_try='./$ac_file' | |
2aeb72e9 DD |
3189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3190 | (eval $ac_try) 2>&5 | |
1c710c3c DJ |
3191 | ac_status=$? |
3192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3193 | (exit $ac_status); }; }; then | |
3194 | cross_compiling=no | |
3195 | else | |
3196 | if test "$cross_compiling" = maybe; then | |
3197 | cross_compiling=yes | |
3198 | else | |
3199 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
3200 | If you meant to cross compile, use \`--host'. | |
3201 | See \`config.log' for more details." >&5 | |
3202 | echo "$as_me: error: cannot run C compiled programs. | |
3203 | If you meant to cross compile, use \`--host'. | |
3204 | See \`config.log' for more details." >&2;} | |
3205 | { (exit 1); exit 1; }; } | |
3206 | fi | |
3207 | fi | |
3208 | fi | |
2aeb72e9 DD |
3209 | echo "$as_me:$LINENO: result: yes" >&5 |
3210 | echo "${ECHO_T}yes" >&6 | |
1c710c3c DJ |
3211 | |
3212 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
3213 | ac_clean_files=$ac_clean_files_save | |
2aeb72e9 | 3214 | # Check the compiler produces executables we can run. If not, either |
1c710c3c | 3215 | # the compiler is broken, or we cross compile. |
2aeb72e9 DD |
3216 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
3217 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
3218 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
3219 | echo "${ECHO_T}$cross_compiling" >&6 | |
3220 | ||
3221 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
3222 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
3223 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3224 | (eval $ac_link) 2>&5 | |
1c710c3c DJ |
3225 | ac_status=$? |
3226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3227 | (exit $ac_status); }; then | |
3228 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3229 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3230 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3231 | # `rm'. | |
3232 | for ac_file in conftest.exe conftest conftest.*; do | |
3233 | test -f "$ac_file" || continue | |
3234 | case $ac_file in | |
2aeb72e9 | 3235 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
1c710c3c | 3236 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2aeb72e9 | 3237 | export ac_cv_exeext |
1c710c3c DJ |
3238 | break;; |
3239 | * ) break;; | |
3240 | esac | |
3241 | done | |
af71363e | 3242 | else |
1c710c3c DJ |
3243 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
3244 | See \`config.log' for more details." >&5 | |
3245 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
3246 | See \`config.log' for more details." >&2;} | |
3247 | { (exit 1); exit 1; }; } | |
3248 | fi | |
3249 | ||
3250 | rm -f conftest$ac_cv_exeext | |
2aeb72e9 DD |
3251 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
3252 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
1c710c3c DJ |
3253 | |
3254 | rm -f conftest.$ac_ext | |
3255 | EXEEXT=$ac_cv_exeext | |
3256 | ac_exeext=$EXEEXT | |
2aeb72e9 DD |
3257 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
3258 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
1c710c3c DJ |
3259 | if test "${ac_cv_objext+set}" = set; then |
3260 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3261 | else | |
3262 | cat >conftest.$ac_ext <<_ACEOF | |
3263 | /* confdefs.h. */ | |
3264 | _ACEOF | |
3265 | cat confdefs.h >>conftest.$ac_ext | |
3266 | cat >>conftest.$ac_ext <<_ACEOF | |
3267 | /* end confdefs.h. */ | |
3268 | ||
3269 | int | |
3270 | main () | |
3271 | { | |
3272 | ||
3273 | ; | |
3274 | return 0; | |
3275 | } | |
3276 | _ACEOF | |
3277 | rm -f conftest.o conftest.obj | |
2aeb72e9 DD |
3278 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3279 | (eval $ac_compile) 2>&5 | |
1c710c3c DJ |
3280 | ac_status=$? |
3281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3282 | (exit $ac_status); }; then | |
2aeb72e9 | 3283 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
1c710c3c | 3284 | case $ac_file in |
2aeb72e9 | 3285 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
1c710c3c DJ |
3286 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3287 | break;; | |
3288 | esac | |
3289 | done | |
3290 | else | |
3291 | echo "$as_me: failed program was:" >&5 | |
3292 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3293 | ||
3294 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
3295 | See \`config.log' for more details." >&5 | |
3296 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
3297 | See \`config.log' for more details." >&2;} | |
3298 | { (exit 1); exit 1; }; } | |
3299 | fi | |
3300 | ||
3301 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3302 | fi | |
2aeb72e9 DD |
3303 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
3304 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
1c710c3c DJ |
3305 | OBJEXT=$ac_cv_objext |
3306 | ac_objext=$OBJEXT | |
2aeb72e9 DD |
3307 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
3308 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
1c710c3c DJ |
3309 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
3310 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3311 | else | |
3312 | cat >conftest.$ac_ext <<_ACEOF | |
3313 | /* confdefs.h. */ | |
3314 | _ACEOF | |
3315 | cat confdefs.h >>conftest.$ac_ext | |
3316 | cat >>conftest.$ac_ext <<_ACEOF | |
3317 | /* end confdefs.h. */ | |
3318 | ||
3319 | int | |
3320 | main () | |
3321 | { | |
3322 | #ifndef __GNUC__ | |
3323 | choke me | |
3324 | #endif | |
3325 | ||
3326 | ; | |
3327 | return 0; | |
3328 | } | |
3329 | _ACEOF | |
3330 | rm -f conftest.$ac_objext | |
2aeb72e9 DD |
3331 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3332 | (eval $ac_compile) 2>conftest.er1 | |
1c710c3c DJ |
3333 | ac_status=$? |
3334 | grep -v '^ *+' conftest.er1 >conftest.err | |
3335 | rm -f conftest.er1 | |
3336 | cat conftest.err >&5 | |
3337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2aeb72e9 DD |
3338 | (exit $ac_status); } && |
3339 | { ac_try='test -z "$ac_c_werror_flag" | |
3340 | || test ! -s conftest.err' | |
3341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3342 | (eval $ac_try) 2>&5 | |
3343 | ac_status=$? | |
3344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3345 | (exit $ac_status); }; } && | |
3346 | { ac_try='test -s conftest.$ac_objext' | |
3347 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3348 | (eval $ac_try) 2>&5 | |
3349 | ac_status=$? | |
3350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3351 | (exit $ac_status); }; }; then | |
1c710c3c DJ |
3352 | ac_compiler_gnu=yes |
3353 | else | |
3354 | echo "$as_me: failed program was:" >&5 | |
3355 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3356 | ||
2aeb72e9 | 3357 | ac_compiler_gnu=no |
1c710c3c | 3358 | fi |
2aeb72e9 | 3359 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
1c710c3c DJ |
3360 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3361 | ||
3362 | fi | |
2aeb72e9 DD |
3363 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
3364 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
1c710c3c DJ |
3365 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
3366 | ac_test_CFLAGS=${CFLAGS+set} | |
3367 | ac_save_CFLAGS=$CFLAGS | |
2aeb72e9 DD |
3368 | CFLAGS="-g" |
3369 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
3370 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
1c710c3c DJ |
3371 | if test "${ac_cv_prog_cc_g+set}" = set; then |
3372 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3373 | else | |
2aeb72e9 | 3374 | cat >conftest.$ac_ext <<_ACEOF |
1c710c3c DJ |
3375 | /* confdefs.h. */ |
3376 | _ACEOF | |
3377 | cat confdefs.h >>conftest.$ac_ext | |
3378 | cat >>conftest.$ac_ext <<_ACEOF | |
3379 | /* end confdefs.h. */ | |
3380 | ||
3381 | int | |
3382 | main () | |
3383 | { | |
3384 | ||
3385 | ; | |
3386 | return 0; | |
3387 | } | |
3388 | _ACEOF | |
3389 | rm -f conftest.$ac_objext | |
2aeb72e9 DD |
3390 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3391 | (eval $ac_compile) 2>conftest.er1 | |
1c710c3c DJ |
3392 | ac_status=$? |
3393 | grep -v '^ *+' conftest.er1 >conftest.err | |
3394 | rm -f conftest.er1 | |
3395 | cat conftest.err >&5 | |
3396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2aeb72e9 DD |
3397 | (exit $ac_status); } && |
3398 | { ac_try='test -z "$ac_c_werror_flag" | |
3399 | || test ! -s conftest.err' | |
3400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3401 | (eval $ac_try) 2>&5 | |
1c710c3c DJ |
3402 | ac_status=$? |
3403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2aeb72e9 DD |
3404 | (exit $ac_status); }; } && |
3405 | { ac_try='test -s conftest.$ac_objext' | |
3406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3407 | (eval $ac_try) 2>&5 | |
1c710c3c DJ |
3408 | ac_status=$? |
3409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2aeb72e9 | 3410 | (exit $ac_status); }; }; then |
55ffb5ed NN |
3411 | ac_cv_prog_cc_g=yes |
3412 | else | |
1c710c3c DJ |
3413 | echo "$as_me: failed program was:" >&5 |
3414 | sed 's/^/| /' conftest.$ac_ext >&5 | |
af71363e | 3415 | |
2aeb72e9 | 3416 | ac_cv_prog_cc_g=no |
0b0dc272 | 3417 | fi |
2aeb72e9 | 3418 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
1c710c3c | 3419 | fi |
2aeb72e9 DD |
3420 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
3421 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
55ffb5ed | 3422 | if test "$ac_test_CFLAGS" = set; then |
1c710c3c | 3423 | CFLAGS=$ac_save_CFLAGS |
55ffb5ed NN |
3424 | elif test $ac_cv_prog_cc_g = yes; then |
3425 | if test "$GCC" = yes; then | |
3426 | CFLAGS="-g -O2" | |
3427 | else | |
3428 | CFLAGS="-g" | |
3429 | fi | |
3430 | else | |
3431 | if test "$GCC" = yes; then | |
3432 | CFLAGS="-O2" | |
3433 | else | |
3434 | CFLAGS= | |
3435 | fi | |
3436 | fi | |
2aeb72e9 DD |
3437 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
3438 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
3439 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
1c710c3c DJ |
3440 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3441 | else | |
2aeb72e9 | 3442 | ac_cv_prog_cc_stdc=no |
1c710c3c DJ |
3443 | ac_save_CC=$CC |
3444 | cat >conftest.$ac_ext <<_ACEOF | |
3445 | /* confdefs.h. */ | |
3446 | _ACEOF | |
3447 | cat confdefs.h >>conftest.$ac_ext | |
3448 | cat >>conftest.$ac_ext <<_ACEOF | |
3449 | /* end confdefs.h. */ | |
3450 | #include <stdarg.h> | |
3451 | #include <stdio.h> | |
3452 | #include <sys/types.h> | |
3453 | #include <sys/stat.h> | |
3454 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3455 | struct buf { int x; }; | |
3456 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3457 | static char *e (p, i) | |
3458 | char **p; | |
3459 | int i; | |
3460 | { | |
3461 | return p[i]; | |
3462 | } | |
3463 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3464 | { | |
3465 | char *s; | |
3466 | va_list v; | |
3467 | va_start (v,p); | |
3468 | s = g (p, va_arg (v,int)); | |
3469 | va_end (v); | |
3470 | return s; | |
3471 | } | |
3472 | ||
3473 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3474 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3475 | These don't provoke an error unfortunately, instead are silently treated | |
2aeb72e9 | 3476 | as 'x'. The following induces an error, until -std1 is added to get |
1c710c3c DJ |
3477 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3478 | array size at least. It's necessary to write '\x00'==0 to get something | |
2aeb72e9 | 3479 | that's true only with -std1. */ |
1c710c3c DJ |
3480 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3481 | ||
3482 | int test (int i, double x); | |
3483 | struct s1 {int (*f) (int a);}; | |
3484 | struct s2 {int (*f) (double a);}; | |
3485 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3486 | int argc; | |
3487 | char **argv; | |
3488 | int | |
3489 | main () | |
3490 | { | |
3491 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3492 | ; | |
3493 | return 0; | |
3494 | } | |
3495 | _ACEOF | |
2aeb72e9 DD |
3496 | # Don't try gcc -ansi; that turns off useful extensions and |
3497 | # breaks some systems' header files. | |
3498 | # AIX -qlanglvl=ansi | |
3499 | # Ultrix and OSF/1 -std1 | |
3500 | # HP-UX 10.20 and later -Ae | |
3501 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
3502 | # SVR4 -Xc -D__EXTENSIONS__ | |
3503 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
1c710c3c DJ |
3504 | do |
3505 | CC="$ac_save_CC $ac_arg" | |
3506 | rm -f conftest.$ac_objext | |
2aeb72e9 DD |
3507 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3508 | (eval $ac_compile) 2>conftest.er1 | |
1c710c3c DJ |
3509 | ac_status=$? |
3510 | grep -v '^ *+' conftest.er1 >conftest.err | |
3511 | rm -f conftest.er1 | |
3512 | cat conftest.err >&5 | |
3513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2aeb72e9 DD |
3514 | (exit $ac_status); } && |
3515 | { ac_try='test -z "$ac_c_werror_flag" | |
3516 | || test ! -s conftest.err' | |
3517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3518 | (eval $ac_try) 2>&5 | |
3519 | ac_status=$? | |
3520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3521 | (exit $ac_status); }; } && | |
3522 | { ac_try='test -s conftest.$ac_objext' | |
3523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3524 | (eval $ac_try) 2>&5 | |
3525 | ac_status=$? | |
3526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3527 | (exit $ac_status); }; }; then | |
3528 | ac_cv_prog_cc_stdc=$ac_arg | |
3529 | break | |
1c710c3c DJ |
3530 | else |
3531 | echo "$as_me: failed program was:" >&5 | |
3532 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3533 | ||
3534 | fi | |
2aeb72e9 | 3535 | rm -f conftest.err conftest.$ac_objext |
1c710c3c | 3536 | done |
2aeb72e9 | 3537 | rm -f conftest.$ac_ext conftest.$ac_objext |
1c710c3c DJ |
3538 | CC=$ac_save_CC |
3539 | ||
3540 | fi | |
2aeb72e9 DD |
3541 | |
3542 | case "x$ac_cv_prog_cc_stdc" in | |
3543 | x|xno) | |
3544 | echo "$as_me:$LINENO: result: none needed" >&5 | |
3545 | echo "${ECHO_T}none needed" >&6 ;; | |
1c710c3c | 3546 | *) |
2aeb72e9 DD |
3547 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
3548 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
3549 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
1c710c3c DJ |
3550 | esac |
3551 | ||
2aeb72e9 DD |
3552 | # Some people use a C++ compiler to compile C. Since we use `exit', |
3553 | # in C++ we need to declare it. In case someone uses the same compiler | |
3554 | # for both compiling C and C++ we need to have the C++ compiler decide | |
3555 | # the declaration of exit, since it's the most demanding environment. | |
3556 | cat >conftest.$ac_ext <<_ACEOF | |
3557 | #ifndef __cplusplus | |
3558 | choke me | |
3559 | #endif | |
3560 | _ACEOF | |
3561 | rm -f conftest.$ac_objext | |
3562 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3563 | (eval $ac_compile) 2>conftest.er1 | |
3564 | ac_status=$? | |
3565 | grep -v '^ *+' conftest.er1 >conftest.err | |
3566 | rm -f conftest.er1 | |
3567 | cat conftest.err >&5 | |
3568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3569 | (exit $ac_status); } && | |
3570 | { ac_try='test -z "$ac_c_werror_flag" | |
3571 | || test ! -s conftest.err' | |
3572 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3573 | (eval $ac_try) 2>&5 | |
3574 | ac_status=$? | |
3575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3576 | (exit $ac_status); }; } && | |
3577 | { ac_try='test -s conftest.$ac_objext' | |
3578 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3579 | (eval $ac_try) 2>&5 | |
3580 | ac_status=$? | |
3581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3582 | (exit $ac_status); }; }; then | |
3583 | for ac_declaration in \ | |
3584 | '' \ | |
3585 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
3586 | 'extern "C" void std::exit (int); using std::exit;' \ | |
3587 | 'extern "C" void exit (int) throw ();' \ | |
3588 | 'extern "C" void exit (int);' \ | |
3589 | 'void exit (int);' | |
3590 | do | |
3591 | cat >conftest.$ac_ext <<_ACEOF | |
3592 | /* confdefs.h. */ | |
3593 | _ACEOF | |
3594 | cat confdefs.h >>conftest.$ac_ext | |
3595 | cat >>conftest.$ac_ext <<_ACEOF | |
3596 | /* end confdefs.h. */ | |
3597 | $ac_declaration | |
3598 | #include <stdlib.h> | |
3599 | int | |
3600 | main () | |
3601 | { | |
3602 | exit (42); | |
3603 | ; | |
3604 | return 0; | |
3605 | } | |
3606 | _ACEOF | |
3607 | rm -f conftest.$ac_objext | |
3608 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3609 | (eval $ac_compile) 2>conftest.er1 | |
3610 | ac_status=$? | |
3611 | grep -v '^ *+' conftest.er1 >conftest.err | |
3612 | rm -f conftest.er1 | |
3613 | cat conftest.err >&5 | |
3614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3615 | (exit $ac_status); } && | |
3616 | { ac_try='test -z "$ac_c_werror_flag" | |
3617 | || test ! -s conftest.err' | |
3618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3619 | (eval $ac_try) 2>&5 | |
3620 | ac_status=$? | |
3621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3622 | (exit $ac_status); }; } && | |
3623 | { ac_try='test -s conftest.$ac_objext' | |
3624 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3625 | (eval $ac_try) 2>&5 | |
3626 | ac_status=$? | |
3627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3628 | (exit $ac_status); }; }; then | |
3629 | : | |
3630 | else | |
3631 | echo "$as_me: failed program was:" >&5 | |
3632 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3633 | ||
3634 | continue | |
3635 | fi | |
3636 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3637 | cat >conftest.$ac_ext <<_ACEOF | |
3638 | /* confdefs.h. */ | |
3639 | _ACEOF | |
3640 | cat confdefs.h >>conftest.$ac_ext | |
3641 | cat >>conftest.$ac_ext <<_ACEOF | |
3642 | /* end confdefs.h. */ | |
3643 | $ac_declaration | |
3644 | int | |
3645 | main () | |
3646 | { | |
3647 | exit (42); | |
3648 | ; | |
3649 | return 0; | |
3650 | } | |
3651 | _ACEOF | |
3652 | rm -f conftest.$ac_objext | |
3653 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3654 | (eval $ac_compile) 2>conftest.er1 | |
3655 | ac_status=$? | |
3656 | grep -v '^ *+' conftest.er1 >conftest.err | |
3657 | rm -f conftest.er1 | |
3658 | cat conftest.err >&5 | |
3659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3660 | (exit $ac_status); } && | |
3661 | { ac_try='test -z "$ac_c_werror_flag" | |
3662 | || test ! -s conftest.err' | |
3663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3664 | (eval $ac_try) 2>&5 | |
3665 | ac_status=$? | |
3666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3667 | (exit $ac_status); }; } && | |
3668 | { ac_try='test -s conftest.$ac_objext' | |
3669 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3670 | (eval $ac_try) 2>&5 | |
3671 | ac_status=$? | |
3672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3673 | (exit $ac_status); }; }; then | |
3674 | break | |
3675 | else | |
3676 | echo "$as_me: failed program was:" >&5 | |
3677 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3678 | ||
3679 | fi | |
3680 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3681 | done | |
3682 | rm -f conftest* | |
3683 | if test -n "$ac_declaration"; then | |
3684 | echo '#ifdef __cplusplus' >>confdefs.h | |
3685 | echo $ac_declaration >>confdefs.h | |
3686 | echo '#endif' >>confdefs.h | |
3687 | fi | |
3688 | ||
3689 | else | |
3690 | echo "$as_me: failed program was:" >&5 | |
3691 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3692 | ||
3693 | fi | |
3694 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3695 | ac_ext=c | |
3696 | ac_cpp='$CPP $CPPFLAGS' | |
3697 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3698 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3699 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3700 | ||
3701 | ac_ext=cc | |
3702 | ac_cpp='$CXXCPP $CPPFLAGS' | |
3703 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3704 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3705 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
3706 | if test -n "$ac_tool_prefix"; then | |
3707 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
3708 | do | |
3709 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3710 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3711 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3712 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3713 | if test "${ac_cv_prog_CXX+set}" = set; then | |
3714 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3715 | else | |
3716 | if test -n "$CXX"; then | |
3717 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
3718 | else | |
3719 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3720 | for as_dir in $PATH | |
3721 | do | |
3722 | IFS=$as_save_IFS | |
3723 | test -z "$as_dir" && as_dir=. | |
3724 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3725 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3726 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
3727 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3728 | break 2 | |
3729 | fi | |
3730 | done | |
3731 | done | |
55ffb5ed | 3732 | |
c3a86da9 DJ |
3733 | fi |
3734 | fi | |
3735 | CXX=$ac_cv_prog_CXX | |
3736 | if test -n "$CXX"; then | |
2aeb72e9 DD |
3737 | echo "$as_me:$LINENO: result: $CXX" >&5 |
3738 | echo "${ECHO_T}$CXX" >&6 | |
c3a86da9 | 3739 | else |
2aeb72e9 DD |
3740 | echo "$as_me:$LINENO: result: no" >&5 |
3741 | echo "${ECHO_T}no" >&6 | |
c3a86da9 DJ |
3742 | fi |
3743 | ||
3744 | test -n "$CXX" && break | |
3745 | done | |
3746 | fi | |
3747 | if test -z "$CXX"; then | |
3748 | ac_ct_CXX=$CXX | |
2aeb72e9 | 3749 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
c3a86da9 DJ |
3750 | do |
3751 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3752 | set dummy $ac_prog; ac_word=$2 | |
2aeb72e9 DD |
3753 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3754 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
c3a86da9 DJ |
3755 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
3756 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3757 | else | |
3758 | if test -n "$ac_ct_CXX"; then | |
3759 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
3760 | else | |
3761 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3762 | for as_dir in $PATH | |
3763 | do | |
3764 | IFS=$as_save_IFS | |
3765 | test -z "$as_dir" && as_dir=. | |
3766 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 3767 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c3a86da9 DJ |
3768 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
3769 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3770 | break 2 | |
3771 | fi | |
3772 | done | |
3773 | done | |
3774 | ||
3775 | fi | |
3776 | fi | |
3777 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
3778 | if test -n "$ac_ct_CXX"; then | |
2aeb72e9 DD |
3779 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
3780 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
c3a86da9 | 3781 | else |
2aeb72e9 DD |
3782 | echo "$as_me:$LINENO: result: no" >&5 |
3783 | echo "${ECHO_T}no" >&6 | |
c3a86da9 DJ |
3784 | fi |
3785 | ||
3786 | test -n "$ac_ct_CXX" && break | |
3787 | done | |
2aeb72e9 | 3788 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
c3a86da9 | 3789 | |
2aeb72e9 | 3790 | CXX=$ac_ct_CXX |
c3a86da9 DJ |
3791 | fi |
3792 | ||
2aeb72e9 | 3793 | |
c3a86da9 | 3794 | # Provide some information about the compiler. |
2aeb72e9 DD |
3795 | echo "$as_me:$LINENO:" \ |
3796 | "checking for C++ compiler version" >&5 | |
c3a86da9 | 3797 | ac_compiler=`set X $ac_compile; echo $2` |
2aeb72e9 DD |
3798 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
3799 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
c3a86da9 DJ |
3800 | ac_status=$? |
3801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3802 | (exit $ac_status); } | |
2aeb72e9 DD |
3803 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
3804 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
c3a86da9 DJ |
3805 | ac_status=$? |
3806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3807 | (exit $ac_status); } | |
2aeb72e9 DD |
3808 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
3809 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
c3a86da9 DJ |
3810 | ac_status=$? |
3811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3812 | (exit $ac_status); } | |
3813 | ||
2aeb72e9 DD |
3814 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
3815 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
c3a86da9 DJ |
3816 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
3817 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3818 | else | |
3819 | cat >conftest.$ac_ext <<_ACEOF | |
3820 | /* confdefs.h. */ | |
3821 | _ACEOF | |
3822 | cat confdefs.h >>conftest.$ac_ext | |
3823 | cat >>conftest.$ac_ext <<_ACEOF | |
3824 | /* end confdefs.h. */ | |
3825 | ||
3826 | int | |
3827 | main () | |
3828 | { | |
3829 | #ifndef __GNUC__ | |
3830 | choke me | |
3831 | #endif | |
3832 | ||
3833 | ; | |
3834 | return 0; | |
3835 | } | |
3836 | _ACEOF | |
3837 | rm -f conftest.$ac_objext | |
2aeb72e9 DD |
3838 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3839 | (eval $ac_compile) 2>conftest.er1 | |
c3a86da9 DJ |
3840 | ac_status=$? |
3841 | grep -v '^ *+' conftest.er1 >conftest.err | |
3842 | rm -f conftest.er1 | |
3843 | cat conftest.err >&5 | |
3844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2aeb72e9 DD |
3845 | (exit $ac_status); } && |
3846 | { ac_try='test -z "$ac_cxx_werror_flag" | |
3847 | || test ! -s conftest.err' | |
3848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3849 | (eval $ac_try) 2>&5 | |
3850 | ac_status=$? | |
3851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3852 | (exit $ac_status); }; } && | |
3853 | { ac_try='test -s conftest.$ac_objext' | |
3854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3855 | (eval $ac_try) 2>&5 | |
3856 | ac_status=$? | |
3857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3858 | (exit $ac_status); }; }; then | |
c3a86da9 DJ |
3859 | ac_compiler_gnu=yes |
3860 | else | |
3861 | echo "$as_me: failed program was:" >&5 | |
3862 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3863 | ||
2aeb72e9 | 3864 | ac_compiler_gnu=no |
c3a86da9 | 3865 | fi |
2aeb72e9 | 3866 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c3a86da9 DJ |
3867 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
3868 | ||
3869 | fi | |
2aeb72e9 DD |
3870 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
3871 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
c3a86da9 DJ |
3872 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
3873 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
3874 | ac_save_CXXFLAGS=$CXXFLAGS | |
2aeb72e9 DD |
3875 | CXXFLAGS="-g" |
3876 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
3877 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
c3a86da9 DJ |
3878 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
3879 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3880 | else | |
2aeb72e9 | 3881 | cat >conftest.$ac_ext <<_ACEOF |
c3a86da9 DJ |
3882 | /* confdefs.h. */ |
3883 | _ACEOF | |
3884 | cat confdefs.h >>conftest.$ac_ext | |
3885 | cat >>conftest.$ac_ext <<_ACEOF | |
3886 | /* end confdefs.h. */ | |
3887 | ||
3888 | int | |
3889 | main () | |
3890 | { | |
3891 | ||
3892 | ; | |
3893 | return 0; | |
3894 | } | |
3895 | _ACEOF | |
3896 | rm -f conftest.$ac_objext | |
2aeb72e9 DD |
3897 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3898 | (eval $ac_compile) 2>conftest.er1 | |
c3a86da9 DJ |
3899 | ac_status=$? |
3900 | grep -v '^ *+' conftest.er1 >conftest.err | |
3901 | rm -f conftest.er1 | |
3902 | cat conftest.err >&5 | |
3903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2aeb72e9 DD |
3904 | (exit $ac_status); } && |
3905 | { ac_try='test -z "$ac_cxx_werror_flag" | |
3906 | || test ! -s conftest.err' | |
3907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3908 | (eval $ac_try) 2>&5 | |
3909 | ac_status=$? | |
3910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3911 | (exit $ac_status); }; } && | |
3912 | { ac_try='test -s conftest.$ac_objext' | |
3913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3914 | (eval $ac_try) 2>&5 | |
3915 | ac_status=$? | |
3916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3917 | (exit $ac_status); }; }; then | |
c3a86da9 DJ |
3918 | ac_cv_prog_cxx_g=yes |
3919 | else | |
3920 | echo "$as_me: failed program was:" >&5 | |
3921 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3922 | ||
2aeb72e9 DD |
3923 | ac_cv_prog_cxx_g=no |
3924 | fi | |
3925 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3926 | fi | |
3927 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
3928 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
3929 | if test "$ac_test_CXXFLAGS" = set; then | |
3930 | CXXFLAGS=$ac_save_CXXFLAGS | |
3931 | elif test $ac_cv_prog_cxx_g = yes; then | |
3932 | if test "$GXX" = yes; then | |
3933 | CXXFLAGS="-g -O2" | |
3934 | else | |
3935 | CXXFLAGS="-g" | |
3936 | fi | |
3937 | else | |
3938 | if test "$GXX" = yes; then | |
3939 | CXXFLAGS="-O2" | |
3940 | else | |
3941 | CXXFLAGS= | |
3942 | fi | |
3943 | fi | |
3944 | for ac_declaration in \ | |
3945 | '' \ | |
3946 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
3947 | 'extern "C" void std::exit (int); using std::exit;' \ | |
3948 | 'extern "C" void exit (int) throw ();' \ | |
3949 | 'extern "C" void exit (int);' \ | |
3950 | 'void exit (int);' | |
3951 | do | |
3952 | cat >conftest.$ac_ext <<_ACEOF | |
c3a86da9 DJ |
3953 | /* confdefs.h. */ |
3954 | _ACEOF | |
3955 | cat confdefs.h >>conftest.$ac_ext | |
3956 | cat >>conftest.$ac_ext <<_ACEOF | |
3957 | /* end confdefs.h. */ | |
2aeb72e9 DD |
3958 | $ac_declaration |
3959 | #include <stdlib.h> | |
c3a86da9 DJ |
3960 | int |
3961 | main () | |
3962 | { | |
2aeb72e9 | 3963 | exit (42); |
c3a86da9 DJ |
3964 | ; |
3965 | return 0; | |
3966 | } | |
3967 | _ACEOF | |
3968 | rm -f conftest.$ac_objext | |
2aeb72e9 DD |
3969 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3970 | (eval $ac_compile) 2>conftest.er1 | |
c3a86da9 DJ |
3971 | ac_status=$? |
3972 | grep -v '^ *+' conftest.er1 >conftest.err | |
3973 | rm -f conftest.er1 | |
3974 | cat conftest.err >&5 | |
3975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2aeb72e9 DD |
3976 | (exit $ac_status); } && |
3977 | { ac_try='test -z "$ac_cxx_werror_flag" | |
3978 | || test ! -s conftest.err' | |
3979 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3980 | (eval $ac_try) 2>&5 | |
3981 | ac_status=$? | |
3982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3983 | (exit $ac_status); }; } && | |
3984 | { ac_try='test -s conftest.$ac_objext' | |
3985 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3986 | (eval $ac_try) 2>&5 | |
3987 | ac_status=$? | |
3988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3989 | (exit $ac_status); }; }; then | |
c3a86da9 DJ |
3990 | : |
3991 | else | |
3992 | echo "$as_me: failed program was:" >&5 | |
3993 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23f6b2f9 | 3994 | |
2aeb72e9 DD |
3995 | continue |
3996 | fi | |
3997 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3998 | cat >conftest.$ac_ext <<_ACEOF | |
c3a86da9 DJ |
3999 | /* confdefs.h. */ |
4000 | _ACEOF | |
4001 | cat confdefs.h >>conftest.$ac_ext | |
4002 | cat >>conftest.$ac_ext <<_ACEOF | |
4003 | /* end confdefs.h. */ | |
2aeb72e9 | 4004 | $ac_declaration |
c3a86da9 DJ |
4005 | int |
4006 | main () | |
4007 | { | |
2aeb72e9 | 4008 | exit (42); |
c3a86da9 DJ |
4009 | ; |
4010 | return 0; | |
4011 | } | |
4012 | _ACEOF | |
4013 | rm -f conftest.$ac_objext | |
2aeb72e9 DD |
4014 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4015 | (eval $ac_compile) 2>conftest.er1 | |
c3a86da9 DJ |
4016 | ac_status=$? |
4017 | grep -v '^ *+' conftest.er1 >conftest.err | |
4018 | rm -f conftest.er1 | |
4019 | cat conftest.err >&5 | |
4020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2aeb72e9 DD |
4021 | (exit $ac_status); } && |
4022 | { ac_try='test -z "$ac_cxx_werror_flag" | |
4023 | || test ! -s conftest.err' | |
4024 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4025 | (eval $ac_try) 2>&5 | |
4026 | ac_status=$? | |
4027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4028 | (exit $ac_status); }; } && | |
4029 | { ac_try='test -s conftest.$ac_objext' | |
4030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4031 | (eval $ac_try) 2>&5 | |
4032 | ac_status=$? | |
4033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4034 | (exit $ac_status); }; }; then | |
4035 | break | |
c3a86da9 DJ |
4036 | else |
4037 | echo "$as_me: failed program was:" >&5 | |
4038 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4039 | ||
11a67599 | 4040 | fi |
2aeb72e9 DD |
4041 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4042 | done | |
4043 | rm -f conftest* | |
4044 | if test -n "$ac_declaration"; then | |
4045 | echo '#ifdef __cplusplus' >>confdefs.h | |
4046 | echo $ac_declaration >>confdefs.h | |
4047 | echo '#endif' >>confdefs.h | |
c3a86da9 DJ |
4048 | fi |
4049 | ||
4050 | ac_ext=c | |
4051 | ac_cpp='$CPP $CPPFLAGS' | |
4052 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4053 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4054 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4055 | ||
4056 | ||
4057 | # We must set the default linker to the linker used by gcc for the correct | |
4058 | # operation of libtool. If LD is not defined and we are using gcc, try to | |
4059 | # set the LD default to the ld used by gcc. | |
4060 | if test -z "$LD"; then | |
4061 | if test "$GCC" = yes; then | |
4062 | case $build in | |
4063 | *-*-mingw*) | |
4064 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;; | |
4065 | *) | |
4066 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;; | |
4067 | esac | |
4068 | case $gcc_prog_ld in | |
4069 | # Accept absolute paths. | |
4070 | [\\/]* | [A-Za-z]:[\\/]*) | |
4071 | LD="$gcc_prog_ld" ;; | |
4072 | esac | |
4073 | fi | |
23f6b2f9 PB |
4074 | fi |
4075 | ||
23f6b2f9 PB |
4076 | |
4077 | ||
55ffb5ed | 4078 | |
1c710c3c DJ |
4079 | if test -n "$ac_tool_prefix"; then |
4080 | # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args. | |
55ffb5ed | 4081 | set dummy ${ac_tool_prefix}gnatbind; ac_word=$2 |
2aeb72e9 DD |
4082 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4083 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
4084 | if test "${ac_cv_prog_GNATBIND+set}" = set; then |
4085 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
55ffb5ed NN |
4086 | else |
4087 | if test -n "$GNATBIND"; then | |
4088 | ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test. | |
4089 | else | |
1c710c3c DJ |
4090 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4091 | for as_dir in $PATH | |
4092 | do | |
4093 | IFS=$as_save_IFS | |
4094 | test -z "$as_dir" && as_dir=. | |
4095 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 4096 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
4097 | ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind" |
4098 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4099 | break 2 | |
4100 | fi | |
4101 | done | |
4102 | done | |
4103 | ||
55ffb5ed NN |
4104 | fi |
4105 | fi | |
1c710c3c | 4106 | GNATBIND=$ac_cv_prog_GNATBIND |
55ffb5ed | 4107 | if test -n "$GNATBIND"; then |
2aeb72e9 DD |
4108 | echo "$as_me:$LINENO: result: $GNATBIND" >&5 |
4109 | echo "${ECHO_T}$GNATBIND" >&6 | |
55ffb5ed | 4110 | else |
2aeb72e9 DD |
4111 | echo "$as_me:$LINENO: result: no" >&5 |
4112 | echo "${ECHO_T}no" >&6 | |
55ffb5ed NN |
4113 | fi |
4114 | ||
1c710c3c | 4115 | fi |
55ffb5ed | 4116 | if test -z "$ac_cv_prog_GNATBIND"; then |
1c710c3c | 4117 | ac_ct_GNATBIND=$GNATBIND |
55ffb5ed NN |
4118 | # Extract the first word of "gnatbind", so it can be a program name with args. |
4119 | set dummy gnatbind; ac_word=$2 | |
2aeb72e9 DD |
4120 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4121 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
4122 | if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then |
4123 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
55ffb5ed | 4124 | else |
1c710c3c DJ |
4125 | if test -n "$ac_ct_GNATBIND"; then |
4126 | ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test. | |
55ffb5ed | 4127 | else |
1c710c3c DJ |
4128 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4129 | for as_dir in $PATH | |
4130 | do | |
4131 | IFS=$as_save_IFS | |
4132 | test -z "$as_dir" && as_dir=. | |
4133 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 4134 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
4135 | ac_cv_prog_ac_ct_GNATBIND="gnatbind" |
4136 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4137 | break 2 | |
4138 | fi | |
4139 | done | |
4140 | done | |
4141 | ||
2aeb72e9 | 4142 | test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no" |
55ffb5ed NN |
4143 | fi |
4144 | fi | |
1c710c3c DJ |
4145 | ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND |
4146 | if test -n "$ac_ct_GNATBIND"; then | |
2aeb72e9 DD |
4147 | echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5 |
4148 | echo "${ECHO_T}$ac_ct_GNATBIND" >&6 | |
55ffb5ed | 4149 | else |
2aeb72e9 DD |
4150 | echo "$as_me:$LINENO: result: no" >&5 |
4151 | echo "${ECHO_T}no" >&6 | |
55ffb5ed NN |
4152 | fi |
4153 | ||
2aeb72e9 | 4154 | GNATBIND=$ac_ct_GNATBIND |
55ffb5ed | 4155 | else |
1c710c3c | 4156 | GNATBIND="$ac_cv_prog_GNATBIND" |
55ffb5ed NN |
4157 | fi |
4158 | ||
1c710c3c DJ |
4159 | if test -n "$ac_tool_prefix"; then |
4160 | # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args. | |
5305be7e | 4161 | set dummy ${ac_tool_prefix}gnatmake; ac_word=$2 |
2aeb72e9 DD |
4162 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4163 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
4164 | if test "${ac_cv_prog_GNATMAKE+set}" = set; then |
4165 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5305be7e RG |
4166 | else |
4167 | if test -n "$GNATMAKE"; then | |
4168 | ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test. | |
4169 | else | |
1c710c3c DJ |
4170 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4171 | for as_dir in $PATH | |
4172 | do | |
4173 | IFS=$as_save_IFS | |
4174 | test -z "$as_dir" && as_dir=. | |
4175 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 4176 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
4177 | ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake" |
4178 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4179 | break 2 | |
4180 | fi | |
4181 | done | |
4182 | done | |
4183 | ||
5305be7e RG |
4184 | fi |
4185 | fi | |
1c710c3c | 4186 | GNATMAKE=$ac_cv_prog_GNATMAKE |
5305be7e | 4187 | if test -n "$GNATMAKE"; then |
2aeb72e9 DD |
4188 | echo "$as_me:$LINENO: result: $GNATMAKE" >&5 |
4189 | echo "${ECHO_T}$GNATMAKE" >&6 | |
5305be7e | 4190 | else |
2aeb72e9 DD |
4191 | echo "$as_me:$LINENO: result: no" >&5 |
4192 | echo "${ECHO_T}no" >&6 | |
5305be7e RG |
4193 | fi |
4194 | ||
1c710c3c | 4195 | fi |
5305be7e | 4196 | if test -z "$ac_cv_prog_GNATMAKE"; then |
1c710c3c | 4197 | ac_ct_GNATMAKE=$GNATMAKE |
5305be7e RG |
4198 | # Extract the first word of "gnatmake", so it can be a program name with args. |
4199 | set dummy gnatmake; ac_word=$2 | |
2aeb72e9 DD |
4200 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4201 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
4202 | if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then |
4203 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5305be7e | 4204 | else |
1c710c3c DJ |
4205 | if test -n "$ac_ct_GNATMAKE"; then |
4206 | ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test. | |
5305be7e | 4207 | else |
1c710c3c DJ |
4208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4209 | for as_dir in $PATH | |
4210 | do | |
4211 | IFS=$as_save_IFS | |
4212 | test -z "$as_dir" && as_dir=. | |
4213 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 4214 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
4215 | ac_cv_prog_ac_ct_GNATMAKE="gnatmake" |
4216 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4217 | break 2 | |
4218 | fi | |
4219 | done | |
4220 | done | |
4221 | ||
2aeb72e9 | 4222 | test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no" |
5305be7e RG |
4223 | fi |
4224 | fi | |
1c710c3c DJ |
4225 | ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE |
4226 | if test -n "$ac_ct_GNATMAKE"; then | |
2aeb72e9 DD |
4227 | echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5 |
4228 | echo "${ECHO_T}$ac_ct_GNATMAKE" >&6 | |
5305be7e | 4229 | else |
2aeb72e9 DD |
4230 | echo "$as_me:$LINENO: result: no" >&5 |
4231 | echo "${ECHO_T}no" >&6 | |
5305be7e RG |
4232 | fi |
4233 | ||
2aeb72e9 | 4234 | GNATMAKE=$ac_ct_GNATMAKE |
5305be7e | 4235 | else |
1c710c3c | 4236 | GNATMAKE="$ac_cv_prog_GNATMAKE" |
5305be7e RG |
4237 | fi |
4238 | ||
2aeb72e9 DD |
4239 | echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5 |
4240 | echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6 | |
1c710c3c DJ |
4241 | if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then |
4242 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
55ffb5ed NN |
4243 | else |
4244 | cat >conftest.adb <<EOF | |
4245 | procedure conftest is begin null; end conftest; | |
4246 | EOF | |
4247 | acx_cv_cc_gcc_supports_ada=no | |
4248 | # There is a bug in old released versions of GCC which causes the | |
4249 | # driver to exit successfully when the appropriate language module | |
4250 | # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1. | |
4251 | # Therefore we must check for the error message as well as an | |
4252 | # unsuccessful exit. | |
1db673ca RO |
4253 | # Other compilers, like HP Tru64 UNIX cc, exit successfully when |
4254 | # given a .adb file, but produce no object file. So we must check | |
4255 | # if an object file was really produced to guard against this. | |
55ffb5ed | 4256 | errors=`(${CC} -c conftest.adb) 2>&1 || echo failure` |
1db673ca | 4257 | if test x"$errors" = x && test -f conftest.$ac_objext; then |
55ffb5ed | 4258 | acx_cv_cc_gcc_supports_ada=yes |
55ffb5ed NN |
4259 | fi |
4260 | rm -f conftest.* | |
4261 | fi | |
2aeb72e9 DD |
4262 | echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5 |
4263 | echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6 | |
55ffb5ed | 4264 | |
5305be7e | 4265 | if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then |
55ffb5ed NN |
4266 | have_gnat=yes |
4267 | else | |
4268 | have_gnat=no | |
4269 | fi | |
4270 | ||
2aeb72e9 DD |
4271 | echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5 |
4272 | echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6 | |
1c710c3c DJ |
4273 | if test "${gcc_cv_prog_cmp_skip+set}" = set; then |
4274 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a76494aa PB |
4275 | else |
4276 | echo abfoo >t1 | |
4277 | echo cdfoo >t2 | |
4278 | gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' | |
6cf1ac42 PB |
4279 | if cmp t1 t2 2 2 > /dev/null 2>&1; then |
4280 | if cmp t1 t2 1 1 > /dev/null 2>&1; then | |
4281 | : | |
4282 | else | |
4283 | gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16' | |
4284 | fi | |
4285 | fi | |
a76494aa PB |
4286 | if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then |
4287 | if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then | |
6cf1ac42 | 4288 | : |
a76494aa PB |
4289 | else |
4290 | gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2' | |
4291 | fi | |
4292 | fi | |
4293 | rm t1 t2 | |
4294 | ||
4295 | fi | |
2aeb72e9 DD |
4296 | echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5 |
4297 | echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6 | |
a76494aa PB |
4298 | do_compare="$gcc_cv_prog_cmp_skip" |
4299 | ||
4300 | ||
55ffb5ed | 4301 | |
bebf829d | 4302 | # Check for GMP and MPFR |
e69bf64b | 4303 | gmplibs="-lmpfr -lgmp" |
6de9cd9a | 4304 | gmpinc= |
e69bf64b PB |
4305 | have_gmp=no |
4306 | ||
bebf829d PB |
4307 | # Specify a location for mpfr |
4308 | # check for this first so it ends up on the link line before gmp. | |
1c710c3c | 4309 | |
2aeb72e9 | 4310 | # Check whether --with-mpfr-dir or --without-mpfr-dir was given. |
bebf829d | 4311 | if test "${with_mpfr_dir+set}" = set; then |
2aeb72e9 DD |
4312 | withval="$with_mpfr_dir" |
4313 | { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed. | |
1c710c3c DJ |
4314 | Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5 |
4315 | echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed. | |
4316 | Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;} | |
4317 | { (exit 1); exit 1; }; } | |
2aeb72e9 | 4318 | fi; |
bebf829d PB |
4319 | |
4320 | ||
2aeb72e9 | 4321 | # Check whether --with-mpfr or --without-mpfr was given. |
bebf829d | 4322 | if test "${with_mpfr+set}" = set; then |
2aeb72e9 | 4323 | withval="$with_mpfr" |
1c710c3c | 4324 | |
2aeb72e9 | 4325 | fi; |
bebf829d | 4326 | |
2aeb72e9 | 4327 | # Check whether --with-mpfr_include or --without-mpfr_include was given. |
8a877c9c | 4328 | if test "${with_mpfr_include+set}" = set; then |
2aeb72e9 | 4329 | withval="$with_mpfr_include" |
1c710c3c | 4330 | |
2aeb72e9 | 4331 | fi; |
8a877c9c | 4332 | |
2aeb72e9 | 4333 | # Check whether --with-mpfr_lib or --without-mpfr_lib was given. |
8a877c9c | 4334 | if test "${with_mpfr_lib+set}" = set; then |
2aeb72e9 | 4335 | withval="$with_mpfr_lib" |
8a877c9c | 4336 | |
2aeb72e9 | 4337 | fi; |
bebf829d PB |
4338 | |
4339 | if test "x$with_mpfr" != x; then | |
4340 | gmplibs="-L$with_mpfr/lib $gmplibs" | |
4341 | gmpinc="-I$with_mpfr/include" | |
4342 | fi | |
8a877c9c KG |
4343 | if test "x$with_mpfr_include" != x; then |
4344 | gmpinc="-I$with_mpfr_include" | |
4345 | fi | |
4346 | if test "x$with_mpfr_lib" != x; then | |
4347 | gmplibs="-L$with_mpfr_lib $gmplibs" | |
4348 | fi | |
e69bf64b PB |
4349 | if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then |
4350 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs" | |
4351 | gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc" | |
4352 | # Do not test the mpfr version. Assume that it is sufficient, since | |
4353 | # it is in the source tree, and the library has not been built yet | |
4354 | # but it would be included on the link line in the version check below | |
4355 | # hence making the test fail. | |
4356 | have_gmp=yes | |
4357 | fi | |
bebf829d | 4358 | |
6de9cd9a | 4359 | # Specify a location for gmp |
1c710c3c | 4360 | |
2aeb72e9 | 4361 | # Check whether --with-gmp-dir or --without-gmp-dir was given. |
6de9cd9a | 4362 | if test "${with_gmp_dir+set}" = set; then |
2aeb72e9 DD |
4363 | withval="$with_gmp_dir" |
4364 | { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed. | |
1c710c3c DJ |
4365 | Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5 |
4366 | echo "$as_me: error: The --with-gmp-dir=PATH option has been removed. | |
4367 | Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;} | |
4368 | { (exit 1); exit 1; }; } | |
2aeb72e9 | 4369 | fi; |
6de9cd9a | 4370 | |
6de9cd9a | 4371 | |
2aeb72e9 | 4372 | # Check whether --with-gmp or --without-gmp was given. |
6de9cd9a | 4373 | if test "${with_gmp+set}" = set; then |
2aeb72e9 | 4374 | withval="$with_gmp" |
1c710c3c | 4375 | |
2aeb72e9 | 4376 | fi; |
6de9cd9a | 4377 | |
2aeb72e9 | 4378 | # Check whether --with-gmp_include or --without-gmp_include was given. |
8a877c9c | 4379 | if test "${with_gmp_include+set}" = set; then |
2aeb72e9 | 4380 | withval="$with_gmp_include" |
1c710c3c | 4381 | |
2aeb72e9 | 4382 | fi; |
8a877c9c | 4383 | |
2aeb72e9 | 4384 | # Check whether --with-gmp_lib or --without-gmp_lib was given. |
8a877c9c | 4385 | if test "${with_gmp_lib+set}" = set; then |
2aeb72e9 | 4386 | withval="$with_gmp_lib" |
8a877c9c | 4387 | |
2aeb72e9 | 4388 | fi; |
8a877c9c | 4389 | |
6de9cd9a | 4390 | |
bebf829d PB |
4391 | if test "x$with_gmp" != x; then |
4392 | gmplibs="-L$with_gmp/lib $gmplibs" | |
4393 | gmpinc="-I$with_gmp/include $gmpinc" | |
6de9cd9a | 4394 | fi |
8a877c9c KG |
4395 | if test "x$with_gmp_include" != x; then |
4396 | gmpinc="-I$with_gmp_include $gmpinc" | |
4397 | fi | |
4398 | if test "x$with_gmp_lib" != x; then | |
4399 | gmplibs="-L$with_gmp_lib $gmplibs" | |
4400 | fi | |
e69bf64b PB |
4401 | if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then |
4402 | gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs" | |
4403 | gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc" | |
4404 | # Do not test the gmp version. Assume that it is sufficient, since | |
4405 | # it is in the source tree, and the library has not been built yet | |
4406 | # but it would be included on the link line in the version check below | |
4407 | # hence making the test fail. | |
4408 | have_gmp=yes | |
4409 | fi | |
6de9cd9a | 4410 | |
d943d7c4 | 4411 | if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then |
e69bf64b PB |
4412 | have_gmp=yes |
4413 | saved_CFLAGS="$CFLAGS" | |
4414 | CFLAGS="$CFLAGS $gmpinc" | |
4415 | # Check GMP actually works | |
2aeb72e9 DD |
4416 | echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5 |
4417 | echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6 | |
1c710c3c DJ |
4418 | |
4419 | cat >conftest.$ac_ext <<_ACEOF | |
4420 | /* confdefs.h. */ | |
4421 | _ACEOF | |
4422 | cat confdefs.h >>conftest.$ac_ext | |
4423 | cat >>conftest.$ac_ext <<_ACEOF | |
4424 | /* end confdefs.h. */ | |
6de9cd9a | 4425 | #include "gmp.h" |
1c710c3c DJ |
4426 | int |
4427 | main () | |
4428 | { | |
6de9cd9a | 4429 | |
e69bf64b PB |
4430 | #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1) |
4431 | choke me | |
4432 | #endif | |
1c710c3c DJ |
4433 | |
4434 | ; | |
4435 | return 0; | |
4436 | } | |
4437 | _ACEOF | |
4438 | rm -f conftest.$ac_objext | |
2aeb72e9 DD |
4439 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4440 | (eval $ac_compile) 2>conftest.er1 | |
1c710c3c DJ |
4441 | ac_status=$? |
4442 | grep -v '^ *+' conftest.er1 >conftest.err | |
4443 | rm -f conftest.er1 | |
4444 | cat conftest.err >&5 | |
4445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2aeb72e9 DD |
4446 | (exit $ac_status); } && |
4447 | { ac_try='test -z "$ac_c_werror_flag" | |
4448 | || test ! -s conftest.err' | |
4449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4450 | (eval $ac_try) 2>&5 | |
4451 | ac_status=$? | |
4452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4453 | (exit $ac_status); }; } && | |
4454 | { ac_try='test -s conftest.$ac_objext' | |
4455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4456 | (eval $ac_try) 2>&5 | |
4457 | ac_status=$? | |
4458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4459 | (exit $ac_status); }; }; then | |
4460 | echo "$as_me:$LINENO: result: yes" >&5 | |
4461 | echo "${ECHO_T}yes" >&6 | |
1c710c3c DJ |
4462 | else |
4463 | echo "$as_me: failed program was:" >&5 | |
4464 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4465 | ||
2aeb72e9 DD |
4466 | echo "$as_me:$LINENO: result: no" >&5 |
4467 | echo "${ECHO_T}no" >&6; have_gmp=no | |
1c710c3c | 4468 | fi |
2aeb72e9 | 4469 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6de9cd9a | 4470 | |
e69bf64b PB |
4471 | if test x"$have_gmp" = xyes; then |
4472 | saved_LIBS="$LIBS" | |
4473 | LIBS="$LIBS $gmplibs" | |
2aeb72e9 DD |
4474 | echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5 |
4475 | echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6 | |
1c710c3c DJ |
4476 | cat >conftest.$ac_ext <<_ACEOF |
4477 | /* confdefs.h. */ | |
4478 | _ACEOF | |
4479 | cat confdefs.h >>conftest.$ac_ext | |
4480 | cat >>conftest.$ac_ext <<_ACEOF | |
4481 | /* end confdefs.h. */ | |
70ec446f | 4482 | #include <gmp.h> |
e69bf64b | 4483 | #include <mpfr.h> |
1c710c3c DJ |
4484 | int |
4485 | main () | |
4486 | { | |
e48d66a9 | 4487 | |
e69bf64b PB |
4488 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,0) |
4489 | choke me | |
4490 | #endif | |
54e433bc MK |
4491 | mpfr_t n; |
4492 | mpfr_t x; | |
e69bf64b | 4493 | int t; |
54e433bc MK |
4494 | mpfr_init (n); |
4495 | mpfr_init (x); | |
e69bf64b PB |
4496 | mpfr_atan2 (n, n, x, GMP_RNDN); |
4497 | mpfr_erfc (n, x, GMP_RNDN); | |
4498 | mpfr_subnormalize (x, t, GMP_RNDN); | |
1c710c3c DJ |
4499 | |
4500 | ; | |
4501 | return 0; | |
4502 | } | |
4503 | _ACEOF | |
4504 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2aeb72e9 DD |
4505 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
4506 | (eval $ac_link) 2>conftest.er1 | |
1c710c3c DJ |
4507 | ac_status=$? |
4508 | grep -v '^ *+' conftest.er1 >conftest.err | |
4509 | rm -f conftest.er1 | |
4510 | cat conftest.err >&5 | |
4511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2aeb72e9 DD |
4512 | (exit $ac_status); } && |
4513 | { ac_try='test -z "$ac_c_werror_flag" | |
4514 | || test ! -s conftest.err' | |
4515 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4516 | (eval $ac_try) 2>&5 | |
4517 | ac_status=$? | |
4518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4519 | (exit $ac_status); }; } && | |
4520 | { ac_try='test -s conftest$ac_exeext' | |
4521 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4522 | (eval $ac_try) 2>&5 | |
4523 | ac_status=$? | |
4524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4525 | (exit $ac_status); }; }; then | |
1c710c3c DJ |
4526 | cat >conftest.$ac_ext <<_ACEOF |
4527 | /* confdefs.h. */ | |
4528 | _ACEOF | |
4529 | cat confdefs.h >>conftest.$ac_ext | |
4530 | cat >>conftest.$ac_ext <<_ACEOF | |
4531 | /* end confdefs.h. */ | |
a3993f33 | 4532 | #include <gmp.h> |
e69bf64b | 4533 | #include <mpfr.h> |
1c710c3c DJ |
4534 | int |
4535 | main () | |
4536 | { | |
a3993f33 | 4537 | |
e69bf64b PB |
4538 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1) |
4539 | choke me | |
4540 | #endif | |
4541 | mpfr_t n; mpfr_init(n); | |
1c710c3c DJ |
4542 | |
4543 | ; | |
4544 | return 0; | |
4545 | } | |
4546 | _ACEOF | |
4547 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2aeb72e9 DD |
4548 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
4549 | (eval $ac_link) 2>conftest.er1 | |
1c710c3c DJ |
4550 | ac_status=$? |
4551 | grep -v '^ *+' conftest.er1 >conftest.err | |
4552 | rm -f conftest.er1 | |
4553 | cat conftest.err >&5 | |
4554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2aeb72e9 DD |
4555 | (exit $ac_status); } && |
4556 | { ac_try='test -z "$ac_c_werror_flag" | |
4557 | || test ! -s conftest.err' | |
4558 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4559 | (eval $ac_try) 2>&5 | |
4560 | ac_status=$? | |
4561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4562 | (exit $ac_status); }; } && | |
4563 | { ac_try='test -s conftest$ac_exeext' | |
4564 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4565 | (eval $ac_try) 2>&5 | |
4566 | ac_status=$? | |
4567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4568 | (exit $ac_status); }; }; then | |
4569 | echo "$as_me:$LINENO: result: yes" >&5 | |
4570 | echo "${ECHO_T}yes" >&6 | |
1c710c3c DJ |
4571 | else |
4572 | echo "$as_me: failed program was:" >&5 | |
4573 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4574 | ||
2aeb72e9 DD |
4575 | echo "$as_me:$LINENO: result: buggy but acceptable" >&5 |
4576 | echo "${ECHO_T}buggy but acceptable" >&6 | |
1c710c3c | 4577 | fi |
2aeb72e9 | 4578 | rm -f conftest.err conftest.$ac_objext \ |
1c710c3c DJ |
4579 | conftest$ac_exeext conftest.$ac_ext |
4580 | else | |
4581 | echo "$as_me: failed program was:" >&5 | |
4582 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4583 | ||
2aeb72e9 DD |
4584 | echo "$as_me:$LINENO: result: no" >&5 |
4585 | echo "${ECHO_T}no" >&6; have_gmp=no | |
1c710c3c | 4586 | fi |
2aeb72e9 | 4587 | rm -f conftest.err conftest.$ac_objext \ |
1c710c3c | 4588 | conftest$ac_exeext conftest.$ac_ext |
e69bf64b PB |
4589 | LIBS="$saved_LIBS" |
4590 | fi | |
4591 | CFLAGS="$saved_CFLAGS" | |
6de9cd9a | 4592 | |
e69bf64b | 4593 | if test x$have_gmp != xyes; then |
1c710c3c DJ |
4594 | { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+. |
4595 | Try the --with-gmp and/or --with-mpfr options to specify their locations. | |
4596 | Copies of these libraries' source code can be found at their respective | |
4597 | hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/. | |
4598 | See also http://gcc.gnu.org/install/prerequisites.html for additional info. | |
4599 | If you obtained GMP and/or MPFR from a vendor distribution package, make | |
4600 | sure that you have installed both the libraries and the header files. | |
4601 | They may be located in separate packages." >&5 | |
4602 | echo "$as_me: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+. | |
ca558912 KG |
4603 | Try the --with-gmp and/or --with-mpfr options to specify their locations. |
4604 | Copies of these libraries' source code can be found at their respective | |
4605 | hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/. | |
dbee1fb3 KG |
4606 | See also http://gcc.gnu.org/install/prerequisites.html for additional info. |
4607 | If you obtained GMP and/or MPFR from a vendor distribution package, make | |
4608 | sure that you have installed both the libraries and the header files. | |
1c710c3c DJ |
4609 | They may be located in separate packages." >&2;} |
4610 | { (exit 1); exit 1; }; } | |
e69bf64b | 4611 | fi |
70ec446f KG |
4612 | fi |
4613 | ||
bebf829d | 4614 | # Flags needed for both GMP and/or MPFR |
6de9cd9a DN |
4615 | |
4616 | ||
4617 | ||
1e0f07d3 | 4618 | # By default, C is the only stage 1 language. |
e1888513 | 4619 | stage1_languages=,c, |
2805b53a | 4620 | |
55ffb5ed NN |
4621 | # Figure out what language subdirectories are present. |
4622 | # Look if the user specified --enable-languages="..."; if not, use | |
4623 | # the environment variable $LANGUAGES if defined. $LANGUAGES might | |
4624 | # go away some day. | |
4625 | # NB: embedded tabs in this IF block -- do not untabify | |
4626 | if test -d ${srcdir}/gcc; then | |
4627 | if test x"${enable_languages+set}" != xset; then | |
4628 | if test x"${LANGUAGES+set}" = xset; then | |
4629 | enable_languages="${LANGUAGES}" | |
4630 | echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2 | |
4631 | else | |
4632 | enable_languages=all | |
4633 | fi | |
4634 | else | |
4635 | if test x"${enable_languages}" = x || | |
4636 | test x"${enable_languages}" = xyes; | |
4637 | then | |
4638 | echo configure.in: --enable-languages needs at least one language argument 1>&2 | |
4639 | exit 1 | |
4640 | fi | |
4641 | fi | |
4642 | enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'` | |
4643 | ||
7f26dfa3 FXC |
4644 | # 'f95' is the old name for the 'fortran' language. We issue a warning |
4645 | # and make the substitution. | |
4646 | case ,${enable_languages}, in | |
4647 | *,f95,*) | |
4648 | echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2 | |
4649 | enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'` | |
4650 | ;; | |
4651 | esac | |
4652 | ||
55ffb5ed NN |
4653 | # First scan to see if an enabled language requires some other language. |
4654 | # We assume that a given config-lang.in will list all the language | |
4655 | # front ends it requires, even if some are required indirectly. | |
4656 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do | |
4657 | case ${lang_frag} in | |
4658 | ..) ;; | |
4659 | # The odd quoting in the next line works around | |
4660 | # an apparent bug in bash 1.12 on linux. | |
4661 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
4662 | *) | |
4663 | # From the config-lang.in, get $language, $lang_requires | |
4664 | language= | |
4665 | lang_requires= | |
4666 | . ${lang_frag} | |
4667 | for other in ${lang_requires} ; do | |
4668 | case ,${enable_languages}, in | |
4669 | *,$other,*) ;; | |
4670 | *,all,*) ;; | |
4671 | *,$language,*) | |
4672 | echo " \`$other' language required by \`$language'; enabling" 1>&2 | |
4673 | enable_languages="${enable_languages},${other}" | |
4674 | ;; | |
4675 | esac | |
4676 | done | |
4677 | ;; | |
4678 | esac | |
4679 | done | |
4680 | ||
e1888513 | 4681 | new_enable_languages=,c, |
55ffb5ed | 4682 | missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ ` |
e1888513 | 4683 | potential_languages=,c, |
55ffb5ed NN |
4684 | |
4685 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do | |
4686 | case ${lang_frag} in | |
4687 | ..) ;; | |
4688 | # The odd quoting in the next line works around | |
4689 | # an apparent bug in bash 1.12 on linux. | |
4690 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
4691 | *) | |
1c710c3c | 4692 | # From the config-lang.in, get $language, $target_libs, |
2805b53a | 4693 | # $lang_dirs, $boot_language, and $build_by_default |
55ffb5ed NN |
4694 | language= |
4695 | target_libs= | |
4696 | lang_dirs= | |
1546bb64 | 4697 | subdir_requires= |
e1888513 PB |
4698 | boot_language=no |
4699 | build_by_default=yes | |
55ffb5ed | 4700 | . ${lang_frag} |
e1888513 PB |
4701 | if test x${language} = x; then |
4702 | echo "${lang_frag} doesn't set \$language." 1>&2 | |
4703 | exit 1 | |
4704 | fi | |
4705 | ||
4706 | case ,${enable_languages}, in | |
4707 | *,${language},*) | |
55ffb5ed NN |
4708 | # Language was explicitly selected; include it. |
4709 | add_this_lang=yes | |
4710 | ;; | |
e1888513 PB |
4711 | *,all,*) |
4712 | # 'all' was selected, select it if it is a default language | |
4713 | add_this_lang=${build_by_default} | |
55ffb5ed NN |
4714 | ;; |
4715 | *) | |
4716 | add_this_lang=no | |
4717 | ;; | |
4718 | esac | |
6de9cd9a | 4719 | |
1546bb64 | 4720 | # Disable languages that need other directories if these aren't available. |
95695ad3 | 4721 | for i in $subdir_requires; do |
b6348cb3 | 4722 | test -f "$srcdir/gcc/$i/config-lang.in" && continue |
1546bb64 PB |
4723 | case ,${enable_languages}, in |
4724 | *,${language},*) | |
4725 | # Specifically requested language; tell them. | |
1c710c3c DJ |
4726 | { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5 |
4727 | echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;} | |
4728 | { (exit 1); exit 1; }; } | |
1546bb64 PB |
4729 | ;; |
4730 | *) | |
4731 | # Silently disable. | |
e1888513 | 4732 | add_this_lang=unsupported |
1546bb64 PB |
4733 | ;; |
4734 | esac | |
4735 | done | |
4736 | ||
e1888513 PB |
4737 | # Disable Ada if no preexisting GNAT is available. |
4738 | case ,${enable_languages},:${language}:${have_gnat} in | |
4739 | *,${language},*:ada:no) | |
4740 | # Specifically requested language; tell them. | |
1c710c3c DJ |
4741 | { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5 |
4742 | echo "$as_me: error: GNAT is required to build $language" >&2;} | |
4743 | { (exit 1); exit 1; }; } | |
e1888513 PB |
4744 | ;; |
4745 | *:ada:no) | |
4746 | # Silently disable. | |
4747 | add_this_lang=unsupported | |
4748 | ;; | |
4749 | esac | |
4750 | ||
4fab7234 HPN |
4751 | # Disable a language that is unsupported by the target. |
4752 | case " $unsupported_languages " in | |
4753 | *" $language "*) | |
e1888513 | 4754 | add_this_lang=unsupported |
4fab7234 HPN |
4755 | ;; |
4756 | esac | |
4757 | ||
6de9cd9a | 4758 | case $add_this_lang in |
e1888513 | 4759 | unsupported) |
55ffb5ed | 4760 | # Remove language-dependent dirs. |
2805b53a NN |
4761 | eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\" |
4762 | ;; | |
e1888513 PB |
4763 | no) |
4764 | # Remove language-dependent dirs; still show language as supported. | |
4765 | eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\" | |
4766 | potential_languages="${potential_languages}${language}," | |
4767 | ;; | |
4768 | yes) | |
4769 | new_enable_languages="${new_enable_languages}${language}," | |
4770 | potential_languages="${potential_languages}${language}," | |
2805b53a NN |
4771 | missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"` |
4772 | case ${boot_language} in | |
4773 | yes) | |
340de83f | 4774 | # Add to (comma-separated) list of stage 1 languages. |
e1888513 | 4775 | stage1_languages="${stage1_languages}${language}," |
2805b53a NN |
4776 | ;; |
4777 | esac | |
4778 | ;; | |
55ffb5ed NN |
4779 | esac |
4780 | ;; | |
4781 | esac | |
4782 | done | |
4783 | ||
2aeb72e9 | 4784 | # Check whether --enable-stage1-languages or --disable-stage1-languages was given. |
e1888513 | 4785 | if test "${enable_stage1_languages+set}" = set; then |
2aeb72e9 DD |
4786 | enableval="$enable_stage1_languages" |
4787 | case ,${enable_stage1_languages}, in | |
e1888513 PB |
4788 | ,no,|,,) |
4789 | # Set it to something that will have no effect in the loop below | |
4790 | enable_stage1_languages=c ;; | |
4791 | ,yes,) | |
4792 | enable_stage1_languages=`echo $new_enable_languages | \ | |
4793 | sed -e "s/^,//" -e "s/,$//" ` ;; | |
4794 | *,all,*) | |
4795 | enable_stage1_languages=`echo ,$enable_stage1_languages, | \ | |
4796 | sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;; | |
4797 | esac | |
4798 | ||
4799 | # Add "good" languages from enable_stage1_languages to stage1_languages, | |
4800 | # while "bad" languages go in missing_languages. Leave no duplicates. | |
4801 | for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do | |
4802 | case $potential_languages in | |
4803 | *,$i,*) | |
4804 | case $stage1_languages in | |
4805 | *,$i,*) ;; | |
4806 | *) stage1_languages="$stage1_languages$i," ;; | |
4807 | esac ;; | |
4808 | *) | |
4809 | case $missing_languages in | |
4810 | *,$i,*) ;; | |
4811 | *) missing_languages="$missing_languages$i," ;; | |
4812 | esac ;; | |
4813 | esac | |
4814 | done | |
2aeb72e9 | 4815 | fi; |
e1888513 PB |
4816 | |
4817 | # Remove leading/trailing commas that were added for simplicity | |
4818 | potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"` | |
79b4b7d2 | 4819 | missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"` |
e1888513 PB |
4820 | stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"` |
4821 | new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"` | |
4822 | ||
55ffb5ed | 4823 | if test "x$missing_languages" != x; then |
1c710c3c | 4824 | { { echo "$as_me:$LINENO: error: |
0cf085e4 | 4825 | The following requested languages could not be built: ${missing_languages} |
1c710c3c DJ |
4826 | Supported languages are: ${potential_languages}" >&5 |
4827 | echo "$as_me: error: | |
4828 | The following requested languages could not be built: ${missing_languages} | |
4829 | Supported languages are: ${potential_languages}" >&2;} | |
4830 | { (exit 1); exit 1; }; } | |
55ffb5ed | 4831 | fi |
55ffb5ed NN |
4832 | if test "x$new_enable_languages" != "x$enable_languages"; then |
4833 | echo The following languages will be built: ${new_enable_languages} | |
e1888513 | 4834 | enable_languages="$new_enable_languages" |
55ffb5ed | 4835 | fi |
e1888513 | 4836 | |
1c710c3c | 4837 | |
b2eaac4a | 4838 | ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" ` |
55ffb5ed NN |
4839 | fi |
4840 | ||
27079765 AH |
4841 | # Handle --disable-<component> generically. |
4842 | for dir in $configdirs $build_configdirs $target_configdirs ; do | |
4843 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g` | |
4844 | if eval test x\${enable_${dirname}} "=" xno ; then | |
4845 | noconfigdirs="$noconfigdirs $dir" | |
4846 | fi | |
4847 | done | |
4848 | ||
7cd0cf9c | 4849 | # Check for Boehm's garbage collector |
2aeb72e9 | 4850 | # Check whether --enable-objc-gc or --disable-objc-gc was given. |
7cd0cf9c | 4851 | if test "${enable_objc_gc+set}" = set; then |
2aeb72e9 DD |
4852 | enableval="$enable_objc_gc" |
4853 | case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in | |
7cd0cf9c | 4854 | *,objc,*:*:yes:*target-boehm-gc*) |
1c710c3c DJ |
4855 | { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5 |
4856 | echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;} | |
4857 | { (exit 1); exit 1; }; } | |
7cd0cf9c DA |
4858 | ;; |
4859 | esac | |
2aeb72e9 | 4860 | fi; |
7cd0cf9c DA |
4861 | |
4862 | # Make sure we only build Boehm's garbage collector if required. | |
2a79fd67 DA |
4863 | case ,${enable_languages},:${enable_objc_gc} in |
4864 | *,objc,*:yes) | |
7cd0cf9c DA |
4865 | # Keep target-boehm-gc if requested for Objective-C. |
4866 | ;; | |
7cd0cf9c | 4867 | *) |
2a79fd67 DA |
4868 | # Otherwise remove target-boehm-gc depending on target-libjava. |
4869 | if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then | |
4870 | noconfigdirs="$noconfigdirs target-boehm-gc" | |
4871 | fi | |
7cd0cf9c DA |
4872 | ;; |
4873 | esac | |
4874 | ||
ee6a22df L |
4875 | # Remove the entries in $skipdirs and $noconfigdirs from $configdirs, |
4876 | # $build_configdirs and $target_configdirs. | |
55ffb5ed NN |
4877 | # If we have the source for $noconfigdirs entries, add them to $notsupp. |
4878 | ||
4879 | notsupp="" | |
4880 | for dir in . $skipdirs $noconfigdirs ; do | |
ee6a22df | 4881 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g` |
55ffb5ed NN |
4882 | if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
4883 | configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"` | |
4884 | if test -r $srcdir/$dirname/configure ; then | |
4885 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
4886 | true | |
4887 | else | |
4888 | notsupp="$notsupp $dir" | |
4889 | fi | |
4890 | fi | |
4891 | fi | |
ee6a22df L |
4892 | if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
4893 | build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"` | |
4894 | if test -r $srcdir/$dirname/configure ; then | |
4895 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
4896 | true | |
4897 | else | |
4898 | notsupp="$notsupp $dir" | |
4899 | fi | |
4900 | fi | |
4901 | fi | |
55ffb5ed NN |
4902 | if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
4903 | target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"` | |
4904 | if test -r $srcdir/$dirname/configure ; then | |
4905 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
4906 | true | |
4907 | else | |
4908 | notsupp="$notsupp $dir" | |
4909 | fi | |
4910 | fi | |
4911 | fi | |
4912 | done | |
4913 | ||
4914 | # Sometimes the tools are distributed with libiberty but with no other | |
4915 | # libraries. In that case, we don't want to build target-libiberty. | |
54fdc474 | 4916 | # Don't let libgcc imply libiberty either. |
55ffb5ed | 4917 | if test -n "${target_configdirs}" ; then |
54fdc474 | 4918 | libgcc= |
55ffb5ed NN |
4919 | others= |
4920 | for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do | |
54fdc474 DJ |
4921 | if test "$i" = "libgcc"; then |
4922 | libgcc=target-libgcc | |
4923 | elif test "$i" != "libiberty" ; then | |
55ffb5ed NN |
4924 | if test -r $srcdir/$i/configure ; then |
4925 | others=yes; | |
4926 | break; | |
4927 | fi | |
4928 | fi | |
4929 | done | |
4930 | if test -z "${others}" ; then | |
54fdc474 | 4931 | target_configdirs=$libgcc |
55ffb5ed NN |
4932 | fi |
4933 | fi | |
4934 | ||
4935 | # Quietly strip out all directories which aren't configurable in this tree. | |
4936 | # This relies on all configurable subdirectories being autoconfiscated, which | |
4937 | # is now the case. | |
23f6b2f9 PB |
4938 | build_configdirs_all="$build_configdirs" |
4939 | build_configdirs= | |
4940 | for i in ${build_configdirs_all} ; do | |
1c710c3c | 4941 | j=`echo $i | sed -e s/build-//g` |
23f6b2f9 PB |
4942 | if test -f ${srcdir}/$j/configure ; then |
4943 | build_configdirs="${build_configdirs} $i" | |
4944 | fi | |
4945 | done | |
4946 | ||
55ffb5ed NN |
4947 | configdirs_all="$configdirs" |
4948 | configdirs= | |
4949 | for i in ${configdirs_all} ; do | |
4950 | if test -f ${srcdir}/$i/configure ; then | |
4951 | configdirs="${configdirs} $i" | |
4952 | fi | |
4953 | done | |
23f6b2f9 | 4954 | |
55ffb5ed NN |
4955 | target_configdirs_all="$target_configdirs" |
4956 | target_configdirs= | |
4957 | for i in ${target_configdirs_all} ; do | |
1c710c3c | 4958 | j=`echo $i | sed -e s/target-//g` |
55ffb5ed NN |
4959 | if test -f ${srcdir}/$j/configure ; then |
4960 | target_configdirs="${target_configdirs} $i" | |
4961 | fi | |
4962 | done | |
4963 | ||
4964 | # Produce a warning message for the subdirs we can't configure. | |
4965 | # This isn't especially interesting in the Cygnus tree, but in the individual | |
4966 | # FSF releases, it's important to let people know when their machine isn't | |
4967 | # supported by the one or two programs in a package. | |
4968 | ||
4969 | if test -n "${notsupp}" && test -z "${norecursion}" ; then | |
4970 | # If $appdirs is non-empty, at least one of those directories must still | |
4971 | # be configured, or we error out. (E.g., if the gas release supports a | |
4972 | # specified target in some subdirs but not the gas subdir, we shouldn't | |
4973 | # pretend that all is well.) | |
4974 | if test -n "$appdirs" ; then | |
4975 | for dir in $appdirs ; do | |
4976 | if test -r $dir/Makefile.in ; then | |
4977 | if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
4978 | appdirs="" | |
4979 | break | |
4980 | fi | |
23f6b2f9 | 4981 | if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then |
55ffb5ed NN |
4982 | appdirs="" |
4983 | break | |
4984 | fi | |
4985 | fi | |
4986 | done | |
4987 | if test -n "$appdirs" ; then | |
4988 | echo "*** This configuration is not supported by this package." 1>&2 | |
4989 | exit 1 | |
4990 | fi | |
4991 | fi | |
4992 | # Okay, some application will build, or we don't care to check. Still | |
4993 | # notify of subdirs not getting built. | |
4994 | echo "*** This configuration is not supported in the following subdirectories:" 1>&2 | |
4995 | echo " ${notsupp}" 1>&2 | |
4996 | echo " (Any other directories should still work fine.)" 1>&2 | |
4997 | fi | |
4998 | ||
4999 | case "$host" in | |
5000 | *msdosdjgpp*) | |
5001 | enable_gdbtk=no ;; | |
5002 | esac | |
5003 | ||
c3a86da9 DJ |
5004 | # To find our prefix, in gcc_cv_tool_prefix. |
5005 | ||
5006 | # The user is always right. | |
5007 | if test "${PATH_SEPARATOR+set}" != set; then | |
5008 | echo "#! /bin/sh" >conf$$.sh | |
5009 | echo "exit 0" >>conf$$.sh | |
5010 | chmod +x conf$$.sh | |
5011 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
5012 | PATH_SEPARATOR=';' | |
5013 | else | |
5014 | PATH_SEPARATOR=: | |
5015 | fi | |
5016 | rm -f conf$$.sh | |
5017 | fi | |
5018 | ||
5019 | ||
5020 | ||
5021 | if test "x$exec_prefix" = xNONE; then | |
5022 | if test "x$prefix" = xNONE; then | |
5023 | gcc_cv_tool_prefix=$ac_default_prefix | |
5024 | else | |
5025 | gcc_cv_tool_prefix=$prefix | |
5026 | fi | |
5027 | else | |
5028 | gcc_cv_tool_prefix=$exec_prefix | |
5029 | fi | |
5030 | ||
5031 | # If there is no compiler in the tree, use the PATH only. In any | |
5032 | # case, if there is no compiler in the tree nobody should use | |
5033 | # AS_FOR_TARGET and LD_FOR_TARGET. | |
5034 | if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then | |
5035 | gcc_version=`cat $srcdir/gcc/BASE-VER` | |
5036 | gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
5037 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR" | |
5038 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
5039 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR" | |
5040 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
5041 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR" | |
5042 | else | |
5043 | gcc_cv_tool_dirs= | |
5044 | fi | |
5045 | ||
5046 | if test x$build = x$target && test -n "$md_exec_prefix"; then | |
5047 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR" | |
5048 | fi | |
5049 | ||
5050 | ||
5051 | ||
55ffb5ed NN |
5052 | copy_dirs= |
5053 | ||
1c710c3c | 5054 | |
2aeb72e9 | 5055 | # Check whether --with-build-sysroot or --without-build-sysroot was given. |
526635cb | 5056 | if test "${with_build_sysroot+set}" = set; then |
2aeb72e9 DD |
5057 | withval="$with_build_sysroot" |
5058 | if test x"$withval" != x ; then | |
526635cb MM |
5059 | SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval" |
5060 | fi | |
5061 | else | |
5062 | SYSROOT_CFLAGS_FOR_TARGET= | |
2aeb72e9 | 5063 | fi; |
526635cb MM |
5064 | |
5065 | ||
55ffb5ed NN |
5066 | # Handle --with-headers=XXX. If the value is not "yes", the contents of |
5067 | # the named directory are copied to $(tooldir)/sys-include. | |
5068 | if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then | |
5069 | if test x${is_cross_compiler} = xno ; then | |
5070 | echo 1>&2 '***' --with-headers is only supported when cross compiling | |
5071 | exit 1 | |
5072 | fi | |
5073 | if test x"${with_headers}" != xyes ; then | |
c3a86da9 | 5074 | x=${gcc_cv_tool_prefix} |
1c710c3c | 5075 | copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include" |
55ffb5ed NN |
5076 | fi |
5077 | fi | |
5078 | ||
5079 | # Handle --with-libs=XXX. If the value is not "yes", the contents of | |
5080 | # the name directories are copied to $(tooldir)/lib. Multiple directories | |
5081 | # are permitted. | |
5082 | if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
5083 | if test x${is_cross_compiler} = xno ; then | |
5084 | echo 1>&2 '***' --with-libs is only supported when cross compiling | |
5085 | exit 1 | |
5086 | fi | |
5087 | if test x"${with_libs}" != xyes ; then | |
5088 | # Copy the libraries in reverse order, so that files in the first named | |
5089 | # library override files in subsequent libraries. | |
c3a86da9 | 5090 | x=${gcc_cv_tool_prefix} |
55ffb5ed | 5091 | for l in ${with_libs}; do |
1c710c3c | 5092 | copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}" |
55ffb5ed NN |
5093 | done |
5094 | fi | |
5095 | fi | |
5096 | ||
e8b05380 PB |
5097 | # Set with_gnu_as and with_gnu_ld as appropriate. |
5098 | # | |
5099 | # This is done by determining whether or not the appropriate directory | |
5100 | # is available, and by checking whether or not specific configurations | |
5101 | # have requested that this magic not happen. | |
1c710c3c DJ |
5102 | # |
5103 | # The command line options always override the explicit settings in | |
e8b05380 PB |
5104 | # configure.in, and the settings in configure.in override this magic. |
5105 | # | |
1c710c3c | 5106 | # If the default for a toolchain is to use GNU as and ld, and you don't |
e8b05380 PB |
5107 | # want to do that, then you should use the --without-gnu-as and |
5108 | # --without-gnu-ld options for the configure script. | |
5109 | ||
5110 | if test x${use_gnu_as} = x && | |
5111 | echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then | |
5112 | with_gnu_as=yes | |
5113 | extra_host_args="$extra_host_args --with-gnu-as" | |
5114 | fi | |
5115 | ||
5116 | if test x${use_gnu_ld} = x && | |
5117 | echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then | |
5118 | with_gnu_ld=yes | |
5119 | extra_host_args="$extra_host_args --with-gnu-ld" | |
5120 | fi | |
5121 | ||
5122 | # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure | |
5123 | # can detect this case. | |
5124 | ||
5125 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then | |
5126 | with_newlib=yes | |
5127 | extra_host_args="$extra_host_args --with-newlib" | |
5128 | fi | |
5129 | ||
55ffb5ed NN |
5130 | # Handle ${copy_dirs} |
5131 | set fnord ${copy_dirs} | |
5132 | shift | |
5133 | while test $# != 0 ; do | |
5134 | if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then | |
5135 | : | |
5136 | else | |
5137 | echo Copying $1 to $2 | |
5138 | ||
5139 | # Use the install script to create the directory and all required | |
5140 | # parent directories. | |
5141 | if test -d $2 ; then | |
5142 | : | |
5143 | else | |
5144 | echo >config.temp | |
5145 | ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED | |
5146 | fi | |
5147 | ||
5148 | # Copy the directory, assuming we have tar. | |
5149 | # FIXME: Should we use B in the second tar? Not all systems support it. | |
5150 | (cd $1; tar -cf - .) | (cd $2; tar -xpf -) | |
5151 | ||
5152 | # It is the responsibility of the user to correctly adjust all | |
5153 | # symlinks. If somebody can figure out how to handle them correctly | |
5154 | # here, feel free to add the code. | |
5155 | ||
5156 | echo $1 > $2/COPIED | |
5157 | fi | |
5158 | shift; shift | |
5159 | done | |
5160 | ||
e8b05380 PB |
5161 | # Determine a target-dependent exec_prefix that the installed |
5162 | # gcc will search in. Keep this list sorted by triplet, with | |
5163 | # the *-*-osname triplets last. | |
5164 | md_exec_prefix= | |
5165 | case "${target}" in | |
5166 | alpha*-*-*vms*) | |
5167 | md_exec_prefix=/gnu/lib/gcc-lib | |
5168 | ;; | |
5169 | i3456786-pc-msdosdjgpp*) | |
5170 | md_exec_prefix=/dev/env/DJDIR/bin | |
5171 | ;; | |
5172 | i3456786-*-sco3.2v5*) | |
5173 | if test $with_gnu_as = yes; then | |
5174 | md_exec_prefix=/usr/gnu/bin | |
5175 | else | |
5176 | md_exec_prefix=/usr/ccs/bin/elf | |
5177 | fi | |
5178 | ;; | |
5179 | ||
5180 | mn10300-*-* | \ | |
5181 | powerpc-*-chorusos* | \ | |
5182 | powerpc*-*-eabi* | \ | |
5183 | powerpc*-*-sysv* | \ | |
5184 | powerpc*-*-kaos* | \ | |
5185 | s390x-ibm-tpf*) | |
5186 | md_exec_prefix=/usr/ccs/bin | |
5187 | ;; | |
5188 | sparc64-*-elf*) | |
5189 | ;; | |
5190 | v850*-*-*) | |
5191 | md_exec_prefix=/usr/ccs/bin | |
5192 | ;; | |
5193 | xtensa-*-elf*) | |
5194 | ;; | |
5195 | ||
5196 | *-*-beos* | \ | |
5197 | *-*-elf* | \ | |
5198 | *-*-hpux* | \ | |
5199 | *-*-netware* | \ | |
5200 | *-*-nto-qnx* | \ | |
5201 | *-*-rtems* | \ | |
5202 | *-*-solaris2* | \ | |
5203 | *-*-sysv45* | \ | |
5204 | *-*-vxworks* | \ | |
5205 | *-wrs-windiss) | |
5206 | md_exec_prefix=/usr/ccs/bin | |
5207 | ;; | |
5208 | esac | |
5209 | ||
671aa708 NN |
5210 | extra_arflags_for_target= |
5211 | extra_nmflags_for_target= | |
5212 | extra_ranlibflags_for_target= | |
5213 | target_makefile_frag=/dev/null | |
5214 | case "${target}" in | |
3e19841a PB |
5215 | mep*-*-*) |
5216 | target_makefile_frag="config/mt-mep" | |
5217 | ;; | |
58e24147 AM |
5218 | spu-*-*) |
5219 | target_makefile_frag="config/mt-spu" | |
5220 | ;; | |
61fec9ff | 5221 | *-*-netware*) |
671aa708 NN |
5222 | target_makefile_frag="config/mt-netware" |
5223 | ;; | |
98a5bb3b RM |
5224 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu) |
5225 | target_makefile_frag="config/mt-gnu" | |
671aa708 NN |
5226 | ;; |
5227 | *-*-aix4.[3456789]* | *-*-aix[56789].*) | |
1c710c3c | 5228 | # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm |
671aa708 NN |
5229 | # commands to handle both 32-bit and 64-bit objects. These flags are |
5230 | # harmless if we're using GNU nm or ar. | |
5231 | extra_arflags_for_target=" -X32_64" | |
5232 | extra_nmflags_for_target=" -B -X32_64" | |
5233 | ;; | |
5234 | *-*-darwin*) | |
5235 | # ranlib from Darwin requires the -c flag to look at common symbols. | |
5236 | extra_ranlibflags_for_target=" -c" | |
5237 | ;; | |
5238 | mips*-*-pe | sh*-*-pe | *arm-wince-pe) | |
5239 | target_makefile_frag="config/mt-wince" | |
5240 | ;; | |
5241 | esac | |
5242 | ||
5243 | alphaieee_frag=/dev/null | |
5244 | case $target in | |
5245 | alpha*-*-*) | |
5246 | # This just makes sure to use the -mieee option to build target libs. | |
5247 | # This should probably be set individually by each library. | |
5248 | alphaieee_frag="config/mt-alphaieee" | |
5249 | ;; | |
5250 | esac | |
5251 | ||
5252 | # If --enable-target-optspace always use -Os instead of -O2 to build | |
5253 | # the target libraries, similarly if it is not specified, use -Os | |
5254 | # on selected platforms. | |
5255 | ospace_frag=/dev/null | |
5256 | case "${enable_target_optspace}:${target}" in | |
5257 | yes:*) | |
5258 | ospace_frag="config/mt-ospace" | |
5259 | ;; | |
5260 | :d30v-*) | |
5261 | ospace_frag="config/mt-d30v" | |
5262 | ;; | |
5263 | :m32r-* | :d10v-* | :fr30-*) | |
5264 | ospace_frag="config/mt-ospace" | |
5265 | ;; | |
5266 | no:* | :*) | |
5267 | ;; | |
5268 | *) | |
5269 | echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2 | |
5270 | ;; | |
5271 | esac | |
5272 | ||
671aa708 NN |
5273 | # Default to using --with-stabs for certain targets. |
5274 | if test x${with_stabs} = x ; then | |
5275 | case "${target}" in | |
89a95129 | 5276 | mips*-*-irix[56]*) |
671aa708 NN |
5277 | ;; |
5278 | mips*-*-* | alpha*-*-osf*) | |
5279 | with_stabs=yes; | |
5280 | extra_host_args="${extra_host_args} --with-stabs" | |
5281 | ;; | |
5282 | esac | |
5283 | fi | |
5284 | ||
5285 | # hpux11 in 64bit mode has libraries in a weird place. Arrange to find | |
5286 | # them automatically. | |
5287 | case "${host}" in | |
1c710c3c | 5288 | hppa*64*-*-hpux11*) |
671aa708 NN |
5289 | extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include" |
5290 | ;; | |
5291 | esac | |
5292 | ||
671aa708 NN |
5293 | # Some systems (e.g., one of the i386-aix systems the gas testers are |
5294 | # using) don't handle "\$" correctly, so don't use it here. | |
1c710c3c | 5295 | tooldir='${exec_prefix}'/${target_noncanonical} |
671aa708 NN |
5296 | build_tooldir=${tooldir} |
5297 | ||
671aa708 NN |
5298 | # Create a .gdbinit file which runs the one in srcdir |
5299 | # and tells GDB to look there for source files. | |
5300 | ||
5301 | if test -r ${srcdir}/.gdbinit ; then | |
5302 | case ${srcdir} in | |
5303 | .) ;; | |
5304 | *) cat > ./.gdbinit <<EOF | |
5305 | # ${NO_EDIT} | |
5306 | dir ${srcdir} | |
5307 | dir . | |
5308 | source ${srcdir}/.gdbinit | |
5309 | EOF | |
5310 | ;; | |
5311 | esac | |
5312 | fi | |
5313 | ||
671aa708 NN |
5314 | # Make sure that the compiler is able to generate an executable. If it |
5315 | # can't, we are probably in trouble. We don't care whether we can run the | |
5316 | # executable--we might be using a cross compiler--we only care whether it | |
5317 | # can be created. At this point the main configure script has set CC. | |
5318 | we_are_ok=no | |
5319 | echo "int main () { return 0; }" > conftest.c | |
5320 | ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
5321 | if test $? = 0 ; then | |
5322 | if test -s conftest || test -s conftest.exe ; then | |
5323 | we_are_ok=yes | |
5324 | fi | |
1c710c3c | 5325 | fi |
671aa708 NN |
5326 | case $we_are_ok in |
5327 | no) | |
5328 | echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed." | |
5329 | echo 1>&2 "*** You must set the environment variable CC to a working compiler." | |
5330 | rm -f conftest* | |
5331 | exit 1 | |
5332 | ;; | |
5333 | esac | |
5334 | rm -f conftest* | |
5335 | ||
5336 | # The Solaris /usr/ucb/cc compiler does not appear to work. | |
5337 | case "${host}" in | |
5338 | sparc-sun-solaris2*) | |
5339 | CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`" | |
5340 | if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then | |
5341 | could_use= | |
5342 | test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin" | |
5343 | if test -d /opt/cygnus/bin ; then | |
5344 | if test "$could_use" = "" ; then | |
5345 | could_use="/opt/cygnus/bin" | |
5346 | else | |
5347 | could_use="$could_use or /opt/cygnus/bin" | |
5348 | fi | |
5349 | fi | |
5350 | if test "$could_use" = "" ; then | |
5351 | echo "Warning: compilation may fail because you're using" | |
5352 | echo "/usr/ucb/cc. You should change your PATH or CC " | |
5353 | echo "variable and rerun configure." | |
5354 | else | |
5355 | echo "Warning: compilation may fail because you're using" | |
5356 | echo "/usr/ucb/cc, when you should use the C compiler from" | |
5357 | echo "$could_use. You should change your" | |
5358 | echo "PATH or CC variable and rerun configure." | |
5359 | fi | |
5360 | fi | |
5361 | ;; | |
5362 | esac | |
5363 | ||
671aa708 NN |
5364 | case "${host}" in |
5365 | *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;; | |
256f7136 | 5366 | *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;; |
671aa708 NN |
5367 | *) RPATH_ENVVAR=LD_LIBRARY_PATH ;; |
5368 | esac | |
5369 | ||
5370 | # Record target_configdirs and the configure arguments for target and | |
5371 | # build configuration in Makefile. | |
5372 | target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'` | |
23f6b2f9 | 5373 | build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'` |
671aa708 | 5374 | |
671aa708 NN |
5375 | # Determine whether gdb needs tk/tcl or not. |
5376 | # Use 'maybe' since enable_gdbtk might be true even if tk isn't available | |
5377 | # and in that case we want gdb to be built without tk. Ugh! | |
5378 | # In fact I believe gdb is the *only* package directly dependent on tk, | |
5379 | # so we should be able to put the 'maybe's in unconditionally and | |
5380 | # leave out the maybe dependencies when enable_gdbtk is false. I'm not | |
5381 | # 100% sure that that's safe though. | |
e914a571 | 5382 | |
b4f96efe | 5383 | gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui" |
671aa708 NN |
5384 | case "$enable_gdbtk" in |
5385 | no) | |
5386 | GDB_TK="" ;; | |
e914a571 AC |
5387 | yes) |
5388 | GDB_TK="${gdb_tk}" ;; | |
671aa708 | 5389 | *) |
e914a571 AC |
5390 | # Only add the dependency on gdbtk when GDBtk is part of the gdb |
5391 | # distro. Eventually someone will fix this and move Insight, nee | |
5392 | # gdbtk to a separate directory. | |
5393 | if test -d ${srcdir}/gdb/gdbtk ; then | |
5394 | GDB_TK="${gdb_tk}" | |
5395 | else | |
5396 | GDB_TK="" | |
5397 | fi | |
5398 | ;; | |
671aa708 | 5399 | esac |
ef9db8d5 DJ |
5400 | CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g` |
5401 | INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g` | |
671aa708 | 5402 | |
60975492 | 5403 | # Strip out unwanted targets. |
8b87bb96 NN |
5404 | |
5405 | # While at that, we remove Makefiles if we were started for recursive | |
5406 | # configuration, so that the top-level Makefile reconfigures them, | |
5407 | # like we used to do when configure itself was recursive. | |
8b87bb96 | 5408 | |
60975492 PB |
5409 | # Loop over modules. $extrasub must be used with care, limiting as |
5410 | # much as possible the usage of range addresses. That's because autoconf | |
5411 | # splits the sed script to overcome limits in the number of commands, | |
5412 | # and relying on carefully-timed sed passes may turn out to be very hard | |
5413 | # to maintain later. In this particular case, you just have to be careful | |
5414 | # not to nest @if/@endif pairs, because configure will not warn you at all. | |
8b87bb96 | 5415 | |
2aeb72e9 | 5416 | # Check whether --enable-bootstrap or --disable-bootstrap was given. |
f516a7da | 5417 | if test "${enable_bootstrap+set}" = set; then |
2aeb72e9 DD |
5418 | enableval="$enable_bootstrap" |
5419 | ||
f516a7da | 5420 | else |
ce521a9c | 5421 | enable_bootstrap=default |
2aeb72e9 | 5422 | fi; |
f516a7da | 5423 | |
ce521a9c PB |
5424 | # Issue errors and warnings for invalid/strange bootstrap combinations. |
5425 | case "$configdirs" in | |
5426 | *gcc*) have_compiler=yes ;; | |
5427 | *) have_compiler=no ;; | |
5428 | esac | |
5429 | ||
5430 | case "$have_compiler:$host:$target:$enable_bootstrap" in | |
5431 | *:*:*:no) ;; | |
5432 | ||
1ca26cd2 | 5433 | # Default behavior. Enable bootstrap if we have a compiler |
ce521a9c PB |
5434 | # and we are in a native configuration. |
5435 | yes:$build:$build:default) | |
1ca26cd2 | 5436 | enable_bootstrap=yes ;; |
ce521a9c PB |
5437 | |
5438 | *:*:*:default) | |
5439 | enable_bootstrap=no ;; | |
5440 | ||
5441 | # We have a compiler and we are in a native configuration, bootstrap is ok | |
2d309510 | 5442 | yes:$build:$build:yes) |
ce521a9c PB |
5443 | ;; |
5444 | ||
5445 | # Other configurations, but we have a compiler. Assume the user knows | |
5446 | # what he's doing. | |
2d309510 | 5447 | yes:*:*:yes) |
1c710c3c DJ |
5448 | { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5 |
5449 | echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;} | |
ce521a9c PB |
5450 | ;; |
5451 | ||
5452 | # No compiler: if they passed --enable-bootstrap explicitly, fail | |
2d309510 | 5453 | no:*:*:yes) |
1c710c3c DJ |
5454 | { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5 |
5455 | echo "$as_me: error: cannot bootstrap without a compiler" >&2;} | |
5456 | { (exit 1); exit 1; }; } ;; | |
ce521a9c PB |
5457 | |
5458 | # Fail if wrong command line | |
5459 | *) | |
1c710c3c DJ |
5460 | { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5 |
5461 | echo "$as_me: error: invalid option for --enable-bootstrap" >&2;} | |
5462 | { (exit 1); exit 1; }; } | |
ce521a9c PB |
5463 | ;; |
5464 | esac | |
5465 | ||
5466 | # Adjust the toplevel makefile according to whether bootstrap was selected. | |
f516a7da PB |
5467 | case "$enable_bootstrap" in |
5468 | yes) | |
5607edfd | 5469 | bootstrap_suffix=bootstrap ;; |
f516a7da | 5470 | no) |
5607edfd | 5471 | bootstrap_suffix=no-bootstrap ;; |
f516a7da PB |
5472 | esac |
5473 | ||
23f6b2f9 | 5474 | for module in ${build_configdirs} ; do |
5607edfd PB |
5475 | if test -z "${no_recursion}" \ |
5476 | && test -f ${build_subdir}/${module}/Makefile; then | |
5477 | echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure" | |
5478 | rm -f ${build_subdir}/${module}/Makefile | |
5479 | fi | |
5480 | extrasub="$extrasub | |
5481 | /^@if build-$module\$/d | |
5482 | /^@endif build-$module\$/d | |
5483 | /^@if build-$module-$bootstrap_suffix\$/d | |
5484 | /^@endif build-$module-$bootstrap_suffix\$/d" | |
5485 | done | |
5486 | for module in ${configdirs} ; do | |
a6fbc1e2 | 5487 | if test -z "${no_recursion}"; then |
f063a9ed | 5488 | for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do |
a6fbc1e2 AS |
5489 | if test -f ${file}; then |
5490 | echo 1>&2 "*** removing ${file} to force reconfigure" | |
5491 | rm -f ${file} | |
5492 | fi | |
5493 | done | |
5607edfd PB |
5494 | fi |
5495 | extrasub="$extrasub | |
5496 | /^@if $module\$/d | |
5497 | /^@endif $module\$/d | |
5498 | /^@if $module-$bootstrap_suffix\$/d | |
5499 | /^@endif $module-$bootstrap_suffix\$/d" | |
5500 | done | |
5501 | for module in ${target_configdirs} ; do | |
5502 | if test -z "${no_recursion}" \ | |
5503 | && test -f ${target_subdir}/${module}/Makefile; then | |
5504 | echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure" | |
5505 | rm -f ${target_subdir}/${module}/Makefile | |
5506 | fi | |
5507 | extrasub="$extrasub | |
5508 | /^@if target-$module\$/d | |
5509 | /^@endif target-$module\$/d | |
5510 | /^@if target-$module-$bootstrap_suffix\$/d | |
5511 | /^@endif target-$module-$bootstrap_suffix\$/d" | |
5512 | done | |
5513 | ||
60975492 PB |
5514 | extrasub="$extrasub |
5515 | /^@if /,/^@endif /d" | |
671aa708 NN |
5516 | |
5517 | # Create the serialization dependencies. This uses a temporary file. | |
5518 | ||
2aeb72e9 | 5519 | # Check whether --enable-serial-configure or --disable-serial-configure was given. |
ade82b16 | 5520 | if test "${enable_serial_configure+set}" = set; then |
2aeb72e9 | 5521 | enableval="$enable_serial_configure" |
ade82b16 | 5522 | |
2aeb72e9 | 5523 | fi; |
ade82b16 | 5524 | |
bf1d3e81 NN |
5525 | case ${enable_serial_configure} in |
5526 | yes) | |
5527 | enable_serial_build_configure=yes | |
5528 | enable_serial_host_configure=yes | |
5529 | enable_serial_target_configure=yes | |
5530 | ;; | |
5531 | esac | |
5532 | ||
671aa708 NN |
5533 | # These force 'configure's to be done one at a time, to avoid problems |
5534 | # with contention over a shared config.cache. | |
5535 | rm -f serdep.tmp | |
ade82b16 | 5536 | echo '# serdep.tmp' > serdep.tmp |
671aa708 | 5537 | olditem= |
bf1d3e81 | 5538 | test "x${enable_serial_build_configure}" = xyes && |
671aa708 NN |
5539 | for item in ${build_configdirs} ; do |
5540 | case ${olditem} in | |
5541 | "") ;; | |
ade82b16 | 5542 | *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;; |
671aa708 NN |
5543 | esac |
5544 | olditem=${item} | |
5545 | done | |
5546 | olditem= | |
bf1d3e81 | 5547 | test "x${enable_serial_host_configure}" = xyes && |
671aa708 NN |
5548 | for item in ${configdirs} ; do |
5549 | case ${olditem} in | |
5550 | "") ;; | |
ade82b16 | 5551 | *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;; |
671aa708 NN |
5552 | esac |
5553 | olditem=${item} | |
5554 | done | |
5555 | olditem= | |
bf1d3e81 | 5556 | test "x${enable_serial_target_configure}" = xyes && |
671aa708 NN |
5557 | for item in ${target_configdirs} ; do |
5558 | case ${olditem} in | |
5559 | "") ;; | |
ade82b16 | 5560 | *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;; |
671aa708 NN |
5561 | esac |
5562 | olditem=${item} | |
5563 | done | |
5564 | serialization_dependencies=serdep.tmp | |
5565 | ||
5566 | ||
ade82b16 | 5567 | # Base args. Strip norecursion, cache-file, srcdir, host, build, |
1c710c3c DJ |
5568 | # target, nonopt, and variable assignments. These are the ones we |
5569 | # might not want to pass down to subconfigures. Also strip | |
5570 | # program-prefix, program-suffix, and program-transform-name, so that | |
5571 | # we can pass down a consistent program-transform-name. | |
5572 | baseargs= | |
5573 | keep_next=no | |
5574 | skip_next=no | |
5575 | eval "set -- $ac_configure_args" | |
44bfc3ac DJ |
5576 | for ac_arg |
5577 | do | |
1c710c3c DJ |
5578 | if test X"$skip_next" = X"yes"; then |
5579 | skip_next=no | |
5580 | continue | |
5581 | fi | |
5582 | if test X"$keep_next" = X"yes"; then | |
5583 | case $ac_arg in | |
5584 | *\'*) | |
5585 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
5586 | esac | |
5587 | baseargs="$baseargs '$ac_arg'" | |
5588 | keep_next=no | |
5589 | continue | |
5590 | fi | |
5591 | ||
5592 | # Handle separated arguments. Based on the logic generated by | |
5593 | # autoconf 2.59. | |
5594 | case $ac_arg in | |
5595 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
5596 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
5597 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
5598 | | -with-* | --with-* | -without-* | --without-* | --x) | |
5599 | separate_arg=no | |
5600 | ;; | |
5601 | -*) | |
5602 | separate_arg=yes | |
5603 | ;; | |
5604 | *) | |
5605 | separate_arg=no | |
5606 | ;; | |
5607 | esac | |
5608 | ||
5609 | case "$ac_arg" in | |
5610 | --no*) | |
5611 | continue | |
5612 | ;; | |
5613 | --c* | \ | |
5614 | --sr* | \ | |
5615 | --ho* | \ | |
5616 | --bu* | \ | |
5617 | --t* | \ | |
5618 | --program-* | \ | |
5619 | -cache_file* | \ | |
5620 | -srcdir* | \ | |
5621 | -host* | \ | |
5622 | -build* | \ | |
5623 | -target* | \ | |
5624 | -program-prefix* | \ | |
5625 | -program-suffix* | \ | |
5626 | -program-transform-name* ) | |
5627 | skip_next=$separate_arg | |
5628 | continue | |
5629 | ;; | |
5630 | -*) | |
5631 | # An option. Add it. | |
5632 | case $ac_arg in | |
5633 | *\'*) | |
5634 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
5635 | esac | |
5636 | baseargs="$baseargs '$ac_arg'" | |
5637 | keep_next=$separate_arg | |
5638 | ;; | |
5639 | *) | |
5640 | # Either a variable assignment, or a nonopt (triplet). Don't | |
5641 | # pass it down; let the Makefile handle this. | |
5642 | continue | |
5643 | ;; | |
5644 | esac | |
5645 | done | |
5646 | # Remove the initial space we just introduced and, as these will be | |
5647 | # expanded by make, quote '$'. | |
5648 | baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
671aa708 | 5649 | |
43bb47c2 DJ |
5650 | # Add in --program-transform-name, after --program-prefix and |
5651 | # --program-suffix have been applied to it. Autoconf has already | |
5652 | # doubled dollar signs and backslashes in program_transform_name; we want | |
5653 | # the backslashes un-doubled, and then the entire thing wrapped in single | |
1c710c3c | 5654 | # quotes, because this will be expanded first by make and then by the shell. |
43bb47c2 DJ |
5655 | # Also, because we want to override the logic in subdir configure scripts to |
5656 | # choose program_transform_name, replace any s,x,x, with s,y,y,. | |
5657 | sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out | |
5658 | ${program_transform_name} | |
5659 | EOF_SED | |
5660 | gcc_transform_name=`cat conftestsed.out` | |
5661 | rm -f conftestsed.out | |
5662 | baseargs="$baseargs --program-transform-name='${gcc_transform_name}'" | |
5663 | ||
671aa708 NN |
5664 | # For the build-side libraries, we just need to pretend we're native, |
5665 | # and not use the same cache file. Multilibs are neither needed nor | |
5666 | # desired. | |
e69bf64b | 5667 | build_configargs="--cache-file=../config.cache ${baseargs}" |
671aa708 NN |
5668 | |
5669 | # For host modules, accept cache file option, or specification as blank. | |
5670 | case "${cache_file}" in | |
5671 | "") # empty | |
5672 | cache_file_option="" ;; | |
5673 | /* | [A-Za-z]:[\\/]* ) # absolute path | |
5674 | cache_file_option="--cache-file=${cache_file}" ;; | |
5675 | *) # relative path | |
5676 | cache_file_option="--cache-file=../${cache_file}" ;; | |
5677 | esac | |
5678 | ||
09438bde NN |
5679 | # Host dirs don't like to share a cache file either, horribly enough. |
5680 | # This seems to be due to autoconf 2.5x stupidity. | |
e69bf64b | 5681 | host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}" |
671aa708 NN |
5682 | |
5683 | target_configargs=${baseargs} | |
5684 | ||
5685 | # Passing a --with-cross-host argument lets the target libraries know | |
5686 | # whether they are being built with a cross-compiler or being built | |
5687 | # native. However, it would be better to use other mechanisms to make the | |
5688 | # sorts of decisions they want to make on this basis. Please consider | |
5689 | # this option to be deprecated. FIXME. | |
5690 | if test x${is_cross_compiler} = xyes ; then | |
1c710c3c | 5691 | target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}" |
671aa708 NN |
5692 | fi |
5693 | ||
5694 | # Default to --enable-multilib. | |
5695 | if test x${enable_multilib} = x ; then | |
5696 | target_configargs="--enable-multilib ${target_configargs}" | |
5697 | fi | |
5698 | ||
5699 | # Pass --with-newlib if appropriate. Note that target_configdirs has | |
5700 | # changed from the earlier setting of with_newlib. | |
5701 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then | |
5702 | target_configargs="--with-newlib ${target_configargs}" | |
5703 | fi | |
5704 | ||
6b9eb62c NN |
5705 | # Different target subdirs use different values of certain variables |
5706 | # (notably CXX). Worse, multilibs use *lots* of different values. | |
5707 | # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that | |
5708 | # it doesn't automatically accept command-line overrides of them. | |
5709 | # This means it's not safe for target subdirs to share a cache file, | |
5710 | # which is disgusting, but there you have it. Hopefully this can be | |
5711 | # fixed in future. It's still worthwhile to use a cache file for each | |
5712 | # directory. I think. | |
5713 | ||
bebcd931 MS |
5714 | # Pass the appropriate --build, --host, --target and --cache-file arguments. |
5715 | # We need to pass --target, as newer autoconf's requires consistency | |
5716 | # for target_alias and gcc doesn't manage it consistently. | |
e69bf64b | 5717 | target_configargs="--cache-file=./config.cache ${target_configargs}" |
671aa708 | 5718 | |
671aa708 NN |
5719 | FLAGS_FOR_TARGET= |
5720 | case " $target_configdirs " in | |
5721 | *" newlib "*) | |
5722 | case " $target_configargs " in | |
5723 | *" --with-newlib "*) | |
5724 | case "$target" in | |
5725 | *-cygwin*) | |
aa8f1f57 | 5726 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/include -isystem $$s/winsup/cygwin/include -isystem $$s/winsup/w32api/include' ;; |
671aa708 NN |
5727 | esac |
5728 | ||
5729 | # If we're not building GCC, don't discard standard headers. | |
5730 | if test -d ${srcdir}/gcc; then | |
5731 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc' | |
5732 | ||
5733 | if test "${build}" != "${host}"; then | |
5734 | # On Canadian crosses, CC_FOR_TARGET will have already been set | |
5735 | # by `configure', so we won't have an opportunity to add -Bgcc/ | |
5736 | # to it. This is right: we don't want to search that directory | |
5737 | # for binaries, but we want the header files in there, so add | |
5738 | # them explicitly. | |
215c351a | 5739 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include' |
671aa708 NN |
5740 | |
5741 | # Someone might think of using the pre-installed headers on | |
5742 | # Canadian crosses, in case the installed compiler is not fully | |
5743 | # compatible with the compiler being built. In this case, it | |
5744 | # would be better to flag an error than risking having | |
5745 | # incompatible object files being constructed. We can't | |
5746 | # guarantee that an error will be flagged, but let's hope the | |
5747 | # compiler will do it, when presented with incompatible header | |
5748 | # files. | |
5749 | fi | |
5750 | fi | |
5751 | ||
5752 | case "${target}-${is_cross_compiler}" in | |
f2a0e225 | 5753 | i[3456789]86-*-linux*-no) |
671aa708 NN |
5754 | # Here host == target, so we don't need to build gcc, |
5755 | # so we don't want to discard standard headers. | |
5756 | FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'` | |
5757 | ;; | |
5758 | *) | |
5759 | # If we're building newlib, use its generic headers last, but search | |
5760 | # for any libc-related directories first (so make it the last -B | |
5761 | # switch). | |
5762 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include' | |
5763 | ;; | |
5764 | esac | |
5765 | ;; | |
5766 | esac | |
5767 | ;; | |
5768 | esac | |
b91f0a41 CV |
5769 | case "$target" in |
5770 | *-mingw*) | |
5771 | # Can't be handled as Cygwin above since Mingw does not use newlib. | |
5772 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/mingw -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/mingw/include -isystem $$s/winsup/w32api/include' ;; | |
5773 | esac | |
671aa708 | 5774 | |
6691a79e ME |
5775 | # Allow the user to override the flags for |
5776 | # our build compiler if desired. | |
5777 | CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}} | |
5778 | ||
671aa708 NN |
5779 | # On Canadian crosses, we'll be searching the right directories for |
5780 | # the previously-installed cross compiler, so don't bother to add | |
5781 | # flags for directories within the install tree of the compiler | |
5782 | # being built; programs in there won't even run. | |
5783 | if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then | |
5784 | # Search for pre-installed headers if nothing else fits. | |
9124bc53 | 5785 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include' |
671aa708 NN |
5786 | fi |
5787 | ||
5788 | if test "x${use_gnu_ld}" = x && | |
5789 | echo " ${configdirs} " | grep " ld " > /dev/null ; then | |
5790 | # Arrange for us to find uninstalled linker scripts. | |
215c351a | 5791 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld' |
671aa708 NN |
5792 | fi |
5793 | ||
e88a2c09 DD |
5794 | # Search for other target-specific linker scripts and such. |
5795 | case "${target}" in | |
5796 | m32c-*-* ) | |
5797 | if test -d ${srcdir}/libgloss/m32c; then | |
5798 | # This is for crt0.o | |
5799 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/m32c' | |
5800 | # This is for r8c.ld | |
5801 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/m32c' | |
5802 | # This is for libnosys.a | |
5803 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys' | |
5804 | fi | |
5805 | ;; | |
3e19841a PB |
5806 | mep*) |
5807 | FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary" | |
5808 | ;; | |
e88a2c09 DD |
5809 | esac |
5810 | ||
671aa708 | 5811 | # Makefile fragments. |
7b61653a PE |
5812 | for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag; |
5813 | do | |
5814 | eval fragval=\$$frag | |
5815 | if test $fragval != /dev/null; then | |
5816 | eval $frag=${srcdir}/$fragval | |
5817 | fi | |
5818 | done | |
671aa708 NN |
5819 | |
5820 | ||
5821 | ||
5822 | ||
5823 | ||
5824 | # Miscellanea: directories, flags, etc. | |
5825 | ||
5826 | ||
5827 | ||
5828 | ||
5829 | ||
5830 | ||
5831 | ||
23f6b2f9 | 5832 | # Build module lists & subconfigure args. |
671aa708 NN |
5833 | |
5834 | ||
5835 | ||
2abefe3d PB |
5836 | # Host module lists & subconfigure args. |
5837 | ||
5838 | ||
5839 | ||
5840 | # Target module lists & subconfigure args. | |
5841 | ||
5842 | ||
5843 | ||
5844 | # Build tools. | |
5845 | ||
5846 | ||
5847 | ||
5848 | # Generate default definitions for YACC, M4, LEX and other programs that run | |
5849 | # on the build machine. These are used if the Makefile can't locate these | |
5850 | # programs in objdir. | |
5851 | MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing | |
5852 | ||
5853 | for ac_prog in 'bison -y' byacc yacc | |
5854 | do | |
1c710c3c | 5855 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 5856 | set dummy $ac_prog; ac_word=$2 |
2aeb72e9 DD |
5857 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5858 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
5859 | if test "${ac_cv_prog_YACC+set}" = set; then |
5860 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2abefe3d PB |
5861 | else |
5862 | if test -n "$YACC"; then | |
5863 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
5864 | else | |
1c710c3c DJ |
5865 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5866 | for as_dir in $PATH | |
5867 | do | |
5868 | IFS=$as_save_IFS | |
5869 | test -z "$as_dir" && as_dir=. | |
5870 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 5871 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
5872 | ac_cv_prog_YACC="$ac_prog" |
5873 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5874 | break 2 | |
5875 | fi | |
5876 | done | |
5877 | done | |
5878 | ||
2abefe3d PB |
5879 | fi |
5880 | fi | |
1c710c3c | 5881 | YACC=$ac_cv_prog_YACC |
2abefe3d | 5882 | if test -n "$YACC"; then |
2aeb72e9 DD |
5883 | echo "$as_me:$LINENO: result: $YACC" >&5 |
5884 | echo "${ECHO_T}$YACC" >&6 | |
2abefe3d | 5885 | else |
2aeb72e9 DD |
5886 | echo "$as_me:$LINENO: result: no" >&5 |
5887 | echo "${ECHO_T}no" >&6 | |
2abefe3d PB |
5888 | fi |
5889 | ||
1c710c3c | 5890 | test -n "$YACC" && break |
2abefe3d PB |
5891 | done |
5892 | test -n "$YACC" || YACC="$MISSING bison -y" | |
5893 | ||
5894 | case " $build_configdirs " in | |
5895 | *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;; | |
5896 | *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;; | |
5897 | esac | |
5898 | ||
5899 | for ac_prog in bison | |
5900 | do | |
1c710c3c | 5901 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 5902 | set dummy $ac_prog; ac_word=$2 |
2aeb72e9 DD |
5903 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5904 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
5905 | if test "${ac_cv_prog_BISON+set}" = set; then |
5906 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2abefe3d PB |
5907 | else |
5908 | if test -n "$BISON"; then | |
5909 | ac_cv_prog_BISON="$BISON" # Let the user override the test. | |
5910 | else | |
1c710c3c DJ |
5911 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5912 | for as_dir in $PATH | |
5913 | do | |
5914 | IFS=$as_save_IFS | |
5915 | test -z "$as_dir" && as_dir=. | |
5916 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 5917 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
5918 | ac_cv_prog_BISON="$ac_prog" |
5919 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5920 | break 2 | |
5921 | fi | |
5922 | done | |
5923 | done | |
5924 | ||
2abefe3d PB |
5925 | fi |
5926 | fi | |
1c710c3c | 5927 | BISON=$ac_cv_prog_BISON |
2abefe3d | 5928 | if test -n "$BISON"; then |
2aeb72e9 DD |
5929 | echo "$as_me:$LINENO: result: $BISON" >&5 |
5930 | echo "${ECHO_T}$BISON" >&6 | |
2abefe3d | 5931 | else |
2aeb72e9 DD |
5932 | echo "$as_me:$LINENO: result: no" >&5 |
5933 | echo "${ECHO_T}no" >&6 | |
2abefe3d PB |
5934 | fi |
5935 | ||
1c710c3c | 5936 | test -n "$BISON" && break |
2abefe3d PB |
5937 | done |
5938 | test -n "$BISON" || BISON="$MISSING bison" | |
5939 | ||
5940 | case " $build_configdirs " in | |
5941 | *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;; | |
5942 | esac | |
5943 | ||
5944 | for ac_prog in gm4 gnum4 m4 | |
5945 | do | |
1c710c3c | 5946 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 5947 | set dummy $ac_prog; ac_word=$2 |
2aeb72e9 DD |
5948 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5949 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
5950 | if test "${ac_cv_prog_M4+set}" = set; then |
5951 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2abefe3d PB |
5952 | else |
5953 | if test -n "$M4"; then | |
5954 | ac_cv_prog_M4="$M4" # Let the user override the test. | |
5955 | else | |
1c710c3c DJ |
5956 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5957 | for as_dir in $PATH | |
5958 | do | |
5959 | IFS=$as_save_IFS | |
5960 | test -z "$as_dir" && as_dir=. | |
5961 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 5962 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
5963 | ac_cv_prog_M4="$ac_prog" |
5964 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5965 | break 2 | |
5966 | fi | |
5967 | done | |
5968 | done | |
5969 | ||
2abefe3d PB |
5970 | fi |
5971 | fi | |
1c710c3c | 5972 | M4=$ac_cv_prog_M4 |
2abefe3d | 5973 | if test -n "$M4"; then |
2aeb72e9 DD |
5974 | echo "$as_me:$LINENO: result: $M4" >&5 |
5975 | echo "${ECHO_T}$M4" >&6 | |
2abefe3d | 5976 | else |
2aeb72e9 DD |
5977 | echo "$as_me:$LINENO: result: no" >&5 |
5978 | echo "${ECHO_T}no" >&6 | |
2abefe3d PB |
5979 | fi |
5980 | ||
1c710c3c | 5981 | test -n "$M4" && break |
2abefe3d PB |
5982 | done |
5983 | test -n "$M4" || M4="$MISSING m4" | |
5984 | ||
5985 | case " $build_configdirs " in | |
5986 | *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;; | |
5987 | esac | |
5988 | ||
5989 | for ac_prog in flex lex | |
5990 | do | |
1c710c3c | 5991 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 5992 | set dummy $ac_prog; ac_word=$2 |
2aeb72e9 DD |
5993 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5994 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
5995 | if test "${ac_cv_prog_LEX+set}" = set; then |
5996 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2abefe3d PB |
5997 | else |
5998 | if test -n "$LEX"; then | |
5999 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
6000 | else | |
1c710c3c DJ |
6001 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6002 | for as_dir in $PATH | |
6003 | do | |
6004 | IFS=$as_save_IFS | |
6005 | test -z "$as_dir" && as_dir=. | |
6006 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 6007 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
6008 | ac_cv_prog_LEX="$ac_prog" |
6009 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6010 | break 2 | |
6011 | fi | |
6012 | done | |
6013 | done | |
6014 | ||
2abefe3d PB |
6015 | fi |
6016 | fi | |
1c710c3c | 6017 | LEX=$ac_cv_prog_LEX |
2abefe3d | 6018 | if test -n "$LEX"; then |
2aeb72e9 DD |
6019 | echo "$as_me:$LINENO: result: $LEX" >&5 |
6020 | echo "${ECHO_T}$LEX" >&6 | |
2abefe3d | 6021 | else |
2aeb72e9 DD |
6022 | echo "$as_me:$LINENO: result: no" >&5 |
6023 | echo "${ECHO_T}no" >&6 | |
2abefe3d PB |
6024 | fi |
6025 | ||
1c710c3c | 6026 | test -n "$LEX" && break |
2abefe3d PB |
6027 | done |
6028 | test -n "$LEX" || LEX="$MISSING flex" | |
6029 | ||
6030 | case " $build_configdirs " in | |
6031 | *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
6032 | *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;; | |
6033 | esac | |
6034 | ||
6035 | for ac_prog in flex | |
6036 | do | |
1c710c3c | 6037 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 6038 | set dummy $ac_prog; ac_word=$2 |
2aeb72e9 DD |
6039 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6040 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
6041 | if test "${ac_cv_prog_FLEX+set}" = set; then |
6042 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2abefe3d PB |
6043 | else |
6044 | if test -n "$FLEX"; then | |
6045 | ac_cv_prog_FLEX="$FLEX" # Let the user override the test. | |
6046 | else | |
1c710c3c DJ |
6047 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6048 | for as_dir in $PATH | |
6049 | do | |
6050 | IFS=$as_save_IFS | |
6051 | test -z "$as_dir" && as_dir=. | |
6052 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 6053 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
6054 | ac_cv_prog_FLEX="$ac_prog" |
6055 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6056 | break 2 | |
6057 | fi | |
6058 | done | |
6059 | done | |
6060 | ||
2abefe3d PB |
6061 | fi |
6062 | fi | |
1c710c3c | 6063 | FLEX=$ac_cv_prog_FLEX |
2abefe3d | 6064 | if test -n "$FLEX"; then |
2aeb72e9 DD |
6065 | echo "$as_me:$LINENO: result: $FLEX" >&5 |
6066 | echo "${ECHO_T}$FLEX" >&6 | |
2abefe3d | 6067 | else |
2aeb72e9 DD |
6068 | echo "$as_me:$LINENO: result: no" >&5 |
6069 | echo "${ECHO_T}no" >&6 | |
2abefe3d PB |
6070 | fi |
6071 | ||
1c710c3c | 6072 | test -n "$FLEX" && break |
2abefe3d PB |
6073 | done |
6074 | test -n "$FLEX" || FLEX="$MISSING flex" | |
6075 | ||
6076 | case " $build_configdirs " in | |
6077 | *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
6078 | esac | |
6079 | ||
6080 | for ac_prog in makeinfo | |
6081 | do | |
1c710c3c | 6082 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 6083 | set dummy $ac_prog; ac_word=$2 |
2aeb72e9 DD |
6084 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6085 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
6086 | if test "${ac_cv_prog_MAKEINFO+set}" = set; then |
6087 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2abefe3d PB |
6088 | else |
6089 | if test -n "$MAKEINFO"; then | |
6090 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
6091 | else | |
1c710c3c DJ |
6092 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6093 | for as_dir in $PATH | |
6094 | do | |
6095 | IFS=$as_save_IFS | |
6096 | test -z "$as_dir" && as_dir=. | |
6097 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 6098 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
6099 | ac_cv_prog_MAKEINFO="$ac_prog" |
6100 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6101 | break 2 | |
6102 | fi | |
6103 | done | |
6104 | done | |
6105 | ||
2abefe3d PB |
6106 | fi |
6107 | fi | |
1c710c3c | 6108 | MAKEINFO=$ac_cv_prog_MAKEINFO |
2abefe3d | 6109 | if test -n "$MAKEINFO"; then |
2aeb72e9 DD |
6110 | echo "$as_me:$LINENO: result: $MAKEINFO" >&5 |
6111 | echo "${ECHO_T}$MAKEINFO" >&6 | |
2abefe3d | 6112 | else |
2aeb72e9 DD |
6113 | echo "$as_me:$LINENO: result: no" >&5 |
6114 | echo "${ECHO_T}no" >&6 | |
2abefe3d PB |
6115 | fi |
6116 | ||
1c710c3c | 6117 | test -n "$MAKEINFO" && break |
2abefe3d PB |
6118 | done |
6119 | test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo" | |
6120 | ||
6121 | case " $build_configdirs " in | |
6122 | *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;; | |
6123 | *) | |
6124 | ||
27b6c940 | 6125 | # For an installed makeinfo, we require it to be from texinfo 4.4 or |
2abefe3d PB |
6126 | # higher, else we use the "missing" dummy. |
6127 | if ${MAKEINFO} --version \ | |
27b6c940 | 6128 | | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[4-9]|[5-9])' >/dev/null 2>&1; then |
2abefe3d PB |
6129 | : |
6130 | else | |
6131 | MAKEINFO="$MISSING makeinfo" | |
6132 | fi | |
6133 | ;; | |
6134 | ||
6135 | esac | |
671aa708 | 6136 | |
2abefe3d | 6137 | # FIXME: expect and dejagnu may become build tools? |
671aa708 | 6138 | |
2abefe3d PB |
6139 | for ac_prog in expect |
6140 | do | |
1c710c3c | 6141 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 6142 | set dummy $ac_prog; ac_word=$2 |
2aeb72e9 DD |
6143 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6144 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
6145 | if test "${ac_cv_prog_EXPECT+set}" = set; then |
6146 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2abefe3d PB |
6147 | else |
6148 | if test -n "$EXPECT"; then | |
6149 | ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test. | |
6150 | else | |
1c710c3c DJ |
6151 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6152 | for as_dir in $PATH | |
6153 | do | |
6154 | IFS=$as_save_IFS | |
6155 | test -z "$as_dir" && as_dir=. | |
6156 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 6157 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
6158 | ac_cv_prog_EXPECT="$ac_prog" |
6159 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6160 | break 2 | |
6161 | fi | |
6162 | done | |
6163 | done | |
6164 | ||
2abefe3d PB |
6165 | fi |
6166 | fi | |
1c710c3c | 6167 | EXPECT=$ac_cv_prog_EXPECT |
2abefe3d | 6168 | if test -n "$EXPECT"; then |
2aeb72e9 DD |
6169 | echo "$as_me:$LINENO: result: $EXPECT" >&5 |
6170 | echo "${ECHO_T}$EXPECT" >&6 | |
2abefe3d | 6171 | else |
2aeb72e9 DD |
6172 | echo "$as_me:$LINENO: result: no" >&5 |
6173 | echo "${ECHO_T}no" >&6 | |
2abefe3d | 6174 | fi |
671aa708 | 6175 | |
1c710c3c | 6176 | test -n "$EXPECT" && break |
2abefe3d PB |
6177 | done |
6178 | test -n "$EXPECT" || EXPECT="expect" | |
671aa708 | 6179 | |
2abefe3d PB |
6180 | case " $configdirs " in |
6181 | *" expect "*) | |
6182 | test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect' | |
6183 | ;; | |
6184 | esac | |
671aa708 | 6185 | |
2abefe3d PB |
6186 | for ac_prog in runtest |
6187 | do | |
1c710c3c | 6188 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 6189 | set dummy $ac_prog; ac_word=$2 |
2aeb72e9 DD |
6190 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6191 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
6192 | if test "${ac_cv_prog_RUNTEST+set}" = set; then |
6193 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2abefe3d PB |
6194 | else |
6195 | if test -n "$RUNTEST"; then | |
6196 | ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test. | |
fb0103e5 | 6197 | else |
1c710c3c DJ |
6198 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6199 | for as_dir in $PATH | |
6200 | do | |
6201 | IFS=$as_save_IFS | |
6202 | test -z "$as_dir" && as_dir=. | |
6203 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 6204 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
6205 | ac_cv_prog_RUNTEST="$ac_prog" |
6206 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6207 | break 2 | |
6208 | fi | |
6209 | done | |
6210 | done | |
6211 | ||
2abefe3d PB |
6212 | fi |
6213 | fi | |
1c710c3c | 6214 | RUNTEST=$ac_cv_prog_RUNTEST |
2abefe3d | 6215 | if test -n "$RUNTEST"; then |
2aeb72e9 DD |
6216 | echo "$as_me:$LINENO: result: $RUNTEST" >&5 |
6217 | echo "${ECHO_T}$RUNTEST" >&6 | |
2abefe3d | 6218 | else |
2aeb72e9 DD |
6219 | echo "$as_me:$LINENO: result: no" >&5 |
6220 | echo "${ECHO_T}no" >&6 | |
2abefe3d | 6221 | fi |
671aa708 | 6222 | |
1c710c3c | 6223 | test -n "$RUNTEST" && break |
2abefe3d PB |
6224 | done |
6225 | test -n "$RUNTEST" || RUNTEST="runtest" | |
671aa708 | 6226 | |
2abefe3d PB |
6227 | case " $configdirs " in |
6228 | *" dejagnu "*) | |
c394e891 | 6229 | test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest' |
2abefe3d PB |
6230 | ;; |
6231 | esac | |
671aa708 NN |
6232 | |
6233 | ||
671aa708 | 6234 | # Host tools. |
ca9f4b81 AO |
6235 | ncn_tool_prefix= |
6236 | test -n "$host_alias" && ncn_tool_prefix=$host_alias- | |
6237 | ncn_target_tool_prefix= | |
6238 | test -n "$target_alias" && ncn_target_tool_prefix=$target_alias- | |
6239 | ||
278a7a38 AO |
6240 | |
6241 | ||
6242 | if test -n "$AR"; then | |
6243 | ac_cv_prog_AR=$AR | |
6244 | elif test -n "$ac_cv_prog_AR"; then | |
6245 | AR=$ac_cv_prog_AR | |
6246 | fi | |
6247 | ||
6248 | if test -n "$ac_cv_prog_AR"; then | |
6249 | for ncn_progname in ar; do | |
6250 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
6251 | set dummy ${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
6252 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6253 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
278a7a38 AO |
6254 | if test "${ac_cv_prog_AR+set}" = set; then |
6255 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6256 | else | |
6257 | if test -n "$AR"; then | |
6258 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
6259 | else | |
6260 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6261 | for as_dir in $PATH | |
6262 | do | |
6263 | IFS=$as_save_IFS | |
6264 | test -z "$as_dir" && as_dir=. | |
6265 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 6266 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 AO |
6267 | ac_cv_prog_AR="${ncn_progname}" |
6268 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6269 | break 2 | |
6270 | fi | |
6271 | done | |
6272 | done | |
6273 | ||
6274 | fi | |
6275 | fi | |
6276 | AR=$ac_cv_prog_AR | |
6277 | if test -n "$AR"; then | |
2aeb72e9 DD |
6278 | echo "$as_me:$LINENO: result: $AR" >&5 |
6279 | echo "${ECHO_T}$AR" >&6 | |
278a7a38 | 6280 | else |
2aeb72e9 DD |
6281 | echo "$as_me:$LINENO: result: no" >&5 |
6282 | echo "${ECHO_T}no" >&6 | |
278a7a38 AO |
6283 | fi |
6284 | ||
6285 | done | |
6286 | fi | |
6287 | ||
6288 | for ncn_progname in ar; do | |
2693c0b0 PB |
6289 | if test -n "$ncn_tool_prefix"; then |
6290 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
6291 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
6292 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6293 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
6294 | if test "${ac_cv_prog_AR+set}" = set; then |
6295 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 AO |
6296 | else |
6297 | if test -n "$AR"; then | |
6298 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
6299 | else | |
1c710c3c DJ |
6300 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6301 | for as_dir in $PATH | |
6302 | do | |
6303 | IFS=$as_save_IFS | |
6304 | test -z "$as_dir" && as_dir=. | |
6305 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 6306 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
6307 | ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}" |
6308 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6309 | break 2 | |
6310 | fi | |
6311 | done | |
6312 | done | |
6313 | ||
ca9f4b81 AO |
6314 | fi |
6315 | fi | |
1c710c3c | 6316 | AR=$ac_cv_prog_AR |
ca9f4b81 | 6317 | if test -n "$AR"; then |
2aeb72e9 DD |
6318 | echo "$as_me:$LINENO: result: $AR" >&5 |
6319 | echo "${ECHO_T}$AR" >&6 | |
ca9f4b81 | 6320 | else |
2aeb72e9 DD |
6321 | echo "$as_me:$LINENO: result: no" >&5 |
6322 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 AO |
6323 | fi |
6324 | ||
2693c0b0 PB |
6325 | fi |
6326 | if test -z "$ac_cv_prog_AR" && test $build = $host ; then | |
6327 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
6328 | set dummy ${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
6329 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6330 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
6331 | if test "${ac_cv_prog_AR+set}" = set; then |
6332 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 | 6333 | else |
2693c0b0 | 6334 | if test -n "$AR"; then |
af71363e AS |
6335 | ac_cv_prog_AR="$AR" # Let the user override the test. |
6336 | else | |
1c710c3c DJ |
6337 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6338 | for as_dir in $PATH | |
6339 | do | |
6340 | IFS=$as_save_IFS | |
6341 | test -z "$as_dir" && as_dir=. | |
6342 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 6343 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
6344 | ac_cv_prog_AR="${ncn_progname}" |
6345 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6346 | break 2 | |
6347 | fi | |
6348 | done | |
6349 | done | |
6350 | ||
ca9f4b81 AO |
6351 | fi |
6352 | fi | |
1c710c3c | 6353 | AR=$ac_cv_prog_AR |
2693c0b0 | 6354 | if test -n "$AR"; then |
2aeb72e9 DD |
6355 | echo "$as_me:$LINENO: result: $AR" >&5 |
6356 | echo "${ECHO_T}$AR" >&6 | |
ca9f4b81 | 6357 | else |
2aeb72e9 DD |
6358 | echo "$as_me:$LINENO: result: no" >&5 |
6359 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 | 6360 | fi |
1c710c3c | 6361 | |
2693c0b0 PB |
6362 | fi |
6363 | test -n "$ac_cv_prog_AR" && break | |
6364 | done | |
6365 | ||
6366 | if test -z "$ac_cv_prog_AR" ; then | |
6367 | set dummy ar | |
6368 | if test $build = $host ; then | |
6369 | AR="$2" | |
ca9f4b81 | 6370 | else |
2693c0b0 | 6371 | AR="${ncn_tool_prefix}$2" |
ca9f4b81 | 6372 | fi |
ca9f4b81 AO |
6373 | fi |
6374 | ||
278a7a38 AO |
6375 | |
6376 | ||
6377 | if test -n "$AS"; then | |
6378 | ac_cv_prog_AS=$AS | |
6379 | elif test -n "$ac_cv_prog_AS"; then | |
6380 | AS=$ac_cv_prog_AS | |
6381 | fi | |
6382 | ||
6383 | if test -n "$ac_cv_prog_AS"; then | |
6384 | for ncn_progname in as; do | |
6385 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
6386 | set dummy ${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
6387 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6388 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
278a7a38 AO |
6389 | if test "${ac_cv_prog_AS+set}" = set; then |
6390 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6391 | else | |
6392 | if test -n "$AS"; then | |
6393 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
6394 | else | |
6395 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6396 | for as_dir in $PATH | |
6397 | do | |
6398 | IFS=$as_save_IFS | |
6399 | test -z "$as_dir" && as_dir=. | |
6400 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 6401 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 AO |
6402 | ac_cv_prog_AS="${ncn_progname}" |
6403 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6404 | break 2 | |
6405 | fi | |
6406 | done | |
6407 | done | |
6408 | ||
6409 | fi | |
6410 | fi | |
6411 | AS=$ac_cv_prog_AS | |
6412 | if test -n "$AS"; then | |
2aeb72e9 DD |
6413 | echo "$as_me:$LINENO: result: $AS" >&5 |
6414 | echo "${ECHO_T}$AS" >&6 | |
278a7a38 | 6415 | else |
2aeb72e9 DD |
6416 | echo "$as_me:$LINENO: result: no" >&5 |
6417 | echo "${ECHO_T}no" >&6 | |
278a7a38 AO |
6418 | fi |
6419 | ||
6420 | done | |
6421 | fi | |
6422 | ||
6423 | for ncn_progname in as; do | |
2693c0b0 PB |
6424 | if test -n "$ncn_tool_prefix"; then |
6425 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
6426 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
6427 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6428 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
6429 | if test "${ac_cv_prog_AS+set}" = set; then |
6430 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 AO |
6431 | else |
6432 | if test -n "$AS"; then | |
6433 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
0b0dc272 | 6434 | else |
1c710c3c DJ |
6435 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6436 | for as_dir in $PATH | |
6437 | do | |
6438 | IFS=$as_save_IFS | |
6439 | test -z "$as_dir" && as_dir=. | |
6440 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 6441 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
6442 | ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}" |
6443 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6444 | break 2 | |
6445 | fi | |
6446 | done | |
6447 | done | |
6448 | ||
ca9f4b81 AO |
6449 | fi |
6450 | fi | |
1c710c3c | 6451 | AS=$ac_cv_prog_AS |
ca9f4b81 | 6452 | if test -n "$AS"; then |
2aeb72e9 DD |
6453 | echo "$as_me:$LINENO: result: $AS" >&5 |
6454 | echo "${ECHO_T}$AS" >&6 | |
ca9f4b81 | 6455 | else |
2aeb72e9 DD |
6456 | echo "$as_me:$LINENO: result: no" >&5 |
6457 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 AO |
6458 | fi |
6459 | ||
2693c0b0 PB |
6460 | fi |
6461 | if test -z "$ac_cv_prog_AS" && test $build = $host ; then | |
6462 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
6463 | set dummy ${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
6464 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6465 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
6466 | if test "${ac_cv_prog_AS+set}" = set; then |
6467 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 | 6468 | else |
2693c0b0 PB |
6469 | if test -n "$AS"; then |
6470 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
ca9f4b81 | 6471 | else |
1c710c3c DJ |
6472 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6473 | for as_dir in $PATH | |
6474 | do | |
6475 | IFS=$as_save_IFS | |
6476 | test -z "$as_dir" && as_dir=. | |
6477 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 6478 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
6479 | ac_cv_prog_AS="${ncn_progname}" |
6480 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6481 | break 2 | |
6482 | fi | |
6483 | done | |
6484 | done | |
6485 | ||
ca9f4b81 AO |
6486 | fi |
6487 | fi | |
1c710c3c | 6488 | AS=$ac_cv_prog_AS |
2693c0b0 | 6489 | if test -n "$AS"; then |
2aeb72e9 DD |
6490 | echo "$as_me:$LINENO: result: $AS" >&5 |
6491 | echo "${ECHO_T}$AS" >&6 | |
ca9f4b81 | 6492 | else |
2aeb72e9 DD |
6493 | echo "$as_me:$LINENO: result: no" >&5 |
6494 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 | 6495 | fi |
1c710c3c | 6496 | |
2693c0b0 PB |
6497 | fi |
6498 | test -n "$ac_cv_prog_AS" && break | |
6499 | done | |
6500 | ||
6501 | if test -z "$ac_cv_prog_AS" ; then | |
6502 | set dummy as | |
6503 | if test $build = $host ; then | |
6504 | AS="$2" | |
ca9f4b81 | 6505 | else |
2693c0b0 | 6506 | AS="${ncn_tool_prefix}$2" |
ca9f4b81 | 6507 | fi |
ca9f4b81 AO |
6508 | fi |
6509 | ||
278a7a38 AO |
6510 | |
6511 | ||
6512 | if test -n "$DLLTOOL"; then | |
6513 | ac_cv_prog_DLLTOOL=$DLLTOOL | |
6514 | elif test -n "$ac_cv_prog_DLLTOOL"; then | |
6515 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
6516 | fi | |
6517 | ||
6518 | if test -n "$ac_cv_prog_DLLTOOL"; then | |
6519 | for ncn_progname in dlltool; do | |
6520 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
6521 | set dummy ${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
6522 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6523 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
278a7a38 AO |
6524 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then |
6525 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6526 | else | |
6527 | if test -n "$DLLTOOL"; then | |
6528 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
6529 | else | |
6530 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6531 | for as_dir in $PATH | |
6532 | do | |
6533 | IFS=$as_save_IFS | |
6534 | test -z "$as_dir" && as_dir=. | |
6535 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 6536 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 AO |
6537 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
6538 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6539 | break 2 | |
6540 | fi | |
6541 | done | |
6542 | done | |
6543 | ||
6544 | fi | |
6545 | fi | |
6546 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
6547 | if test -n "$DLLTOOL"; then | |
2aeb72e9 DD |
6548 | echo "$as_me:$LINENO: result: $DLLTOOL" >&5 |
6549 | echo "${ECHO_T}$DLLTOOL" >&6 | |
278a7a38 | 6550 | else |
2aeb72e9 DD |
6551 | echo "$as_me:$LINENO: result: no" >&5 |
6552 | echo "${ECHO_T}no" >&6 | |
278a7a38 AO |
6553 | fi |
6554 | ||
6555 | done | |
6556 | fi | |
6557 | ||
6558 | for ncn_progname in dlltool; do | |
2693c0b0 PB |
6559 | if test -n "$ncn_tool_prefix"; then |
6560 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
6561 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
6562 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6563 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
6564 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then |
6565 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 AO |
6566 | else |
6567 | if test -n "$DLLTOOL"; then | |
6568 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
6569 | else | |
1c710c3c DJ |
6570 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6571 | for as_dir in $PATH | |
6572 | do | |
6573 | IFS=$as_save_IFS | |
6574 | test -z "$as_dir" && as_dir=. | |
6575 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 6576 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
6577 | ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}" |
6578 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6579 | break 2 | |
6580 | fi | |
6581 | done | |
6582 | done | |
6583 | ||
ca9f4b81 AO |
6584 | fi |
6585 | fi | |
1c710c3c | 6586 | DLLTOOL=$ac_cv_prog_DLLTOOL |
ca9f4b81 | 6587 | if test -n "$DLLTOOL"; then |
2aeb72e9 DD |
6588 | echo "$as_me:$LINENO: result: $DLLTOOL" >&5 |
6589 | echo "${ECHO_T}$DLLTOOL" >&6 | |
ca9f4b81 | 6590 | else |
2aeb72e9 DD |
6591 | echo "$as_me:$LINENO: result: no" >&5 |
6592 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 AO |
6593 | fi |
6594 | ||
2693c0b0 PB |
6595 | fi |
6596 | if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then | |
6597 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
6598 | set dummy ${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
6599 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6600 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
6601 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then |
6602 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 | 6603 | else |
2693c0b0 PB |
6604 | if test -n "$DLLTOOL"; then |
6605 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
ca9f4b81 | 6606 | else |
1c710c3c DJ |
6607 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6608 | for as_dir in $PATH | |
6609 | do | |
6610 | IFS=$as_save_IFS | |
6611 | test -z "$as_dir" && as_dir=. | |
6612 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 6613 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
6614 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
6615 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6616 | break 2 | |
6617 | fi | |
6618 | done | |
6619 | done | |
6620 | ||
ca9f4b81 AO |
6621 | fi |
6622 | fi | |
1c710c3c | 6623 | DLLTOOL=$ac_cv_prog_DLLTOOL |
2693c0b0 | 6624 | if test -n "$DLLTOOL"; then |
2aeb72e9 DD |
6625 | echo "$as_me:$LINENO: result: $DLLTOOL" >&5 |
6626 | echo "${ECHO_T}$DLLTOOL" >&6 | |
ca9f4b81 | 6627 | else |
2aeb72e9 DD |
6628 | echo "$as_me:$LINENO: result: no" >&5 |
6629 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 | 6630 | fi |
1c710c3c | 6631 | |
2693c0b0 PB |
6632 | fi |
6633 | test -n "$ac_cv_prog_DLLTOOL" && break | |
6634 | done | |
6635 | ||
6636 | if test -z "$ac_cv_prog_DLLTOOL" ; then | |
6637 | set dummy dlltool | |
6638 | if test $build = $host ; then | |
6639 | DLLTOOL="$2" | |
ca9f4b81 | 6640 | else |
2693c0b0 | 6641 | DLLTOOL="${ncn_tool_prefix}$2" |
ca9f4b81 | 6642 | fi |
ca9f4b81 AO |
6643 | fi |
6644 | ||
278a7a38 AO |
6645 | |
6646 | ||
6647 | if test -n "$LD"; then | |
6648 | ac_cv_prog_LD=$LD | |
6649 | elif test -n "$ac_cv_prog_LD"; then | |
6650 | LD=$ac_cv_prog_LD | |
6651 | fi | |
6652 | ||
6653 | if test -n "$ac_cv_prog_LD"; then | |
6654 | for ncn_progname in ld; do | |
6655 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
6656 | set dummy ${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
6657 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6658 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
278a7a38 AO |
6659 | if test "${ac_cv_prog_LD+set}" = set; then |
6660 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6661 | else | |
6662 | if test -n "$LD"; then | |
6663 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
6664 | else | |
6665 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6666 | for as_dir in $PATH | |
6667 | do | |
6668 | IFS=$as_save_IFS | |
6669 | test -z "$as_dir" && as_dir=. | |
6670 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 6671 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 AO |
6672 | ac_cv_prog_LD="${ncn_progname}" |
6673 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6674 | break 2 | |
6675 | fi | |
6676 | done | |
6677 | done | |
6678 | ||
6679 | fi | |
6680 | fi | |
6681 | LD=$ac_cv_prog_LD | |
6682 | if test -n "$LD"; then | |
2aeb72e9 DD |
6683 | echo "$as_me:$LINENO: result: $LD" >&5 |
6684 | echo "${ECHO_T}$LD" >&6 | |
278a7a38 | 6685 | else |
2aeb72e9 DD |
6686 | echo "$as_me:$LINENO: result: no" >&5 |
6687 | echo "${ECHO_T}no" >&6 | |
278a7a38 AO |
6688 | fi |
6689 | ||
6690 | done | |
6691 | fi | |
6692 | ||
6693 | for ncn_progname in ld; do | |
2693c0b0 PB |
6694 | if test -n "$ncn_tool_prefix"; then |
6695 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
6696 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
6697 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6698 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
6699 | if test "${ac_cv_prog_LD+set}" = set; then |
6700 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 AO |
6701 | else |
6702 | if test -n "$LD"; then | |
6703 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
6704 | else | |
1c710c3c DJ |
6705 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6706 | for as_dir in $PATH | |
6707 | do | |
6708 | IFS=$as_save_IFS | |
6709 | test -z "$as_dir" && as_dir=. | |
6710 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 6711 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
6712 | ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}" |
6713 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6714 | break 2 | |
6715 | fi | |
6716 | done | |
6717 | done | |
6718 | ||
ca9f4b81 AO |
6719 | fi |
6720 | fi | |
1c710c3c | 6721 | LD=$ac_cv_prog_LD |
ca9f4b81 | 6722 | if test -n "$LD"; then |
2aeb72e9 DD |
6723 | echo "$as_me:$LINENO: result: $LD" >&5 |
6724 | echo "${ECHO_T}$LD" >&6 | |
ca9f4b81 | 6725 | else |
2aeb72e9 DD |
6726 | echo "$as_me:$LINENO: result: no" >&5 |
6727 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 AO |
6728 | fi |
6729 | ||
2693c0b0 PB |
6730 | fi |
6731 | if test -z "$ac_cv_prog_LD" && test $build = $host ; then | |
6732 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
6733 | set dummy ${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
6734 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6735 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
6736 | if test "${ac_cv_prog_LD+set}" = set; then |
6737 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 | 6738 | else |
2693c0b0 PB |
6739 | if test -n "$LD"; then |
6740 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
6b65a26d | 6741 | else |
1c710c3c DJ |
6742 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6743 | for as_dir in $PATH | |
6744 | do | |
6745 | IFS=$as_save_IFS | |
6746 | test -z "$as_dir" && as_dir=. | |
6747 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 6748 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
6749 | ac_cv_prog_LD="${ncn_progname}" |
6750 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6751 | break 2 | |
6752 | fi | |
6753 | done | |
6754 | done | |
6755 | ||
ca9f4b81 AO |
6756 | fi |
6757 | fi | |
1c710c3c | 6758 | LD=$ac_cv_prog_LD |
2693c0b0 | 6759 | if test -n "$LD"; then |
2aeb72e9 DD |
6760 | echo "$as_me:$LINENO: result: $LD" >&5 |
6761 | echo "${ECHO_T}$LD" >&6 | |
ca9f4b81 | 6762 | else |
2aeb72e9 DD |
6763 | echo "$as_me:$LINENO: result: no" >&5 |
6764 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 | 6765 | fi |
1c710c3c | 6766 | |
2693c0b0 PB |
6767 | fi |
6768 | test -n "$ac_cv_prog_LD" && break | |
6769 | done | |
6770 | ||
6771 | if test -z "$ac_cv_prog_LD" ; then | |
6772 | set dummy ld | |
6773 | if test $build = $host ; then | |
6774 | LD="$2" | |
ca9f4b81 | 6775 | else |
2693c0b0 | 6776 | LD="${ncn_tool_prefix}$2" |
ca9f4b81 | 6777 | fi |
ca9f4b81 AO |
6778 | fi |
6779 | ||
278a7a38 AO |
6780 | |
6781 | ||
6782 | if test -n "$LIPO"; then | |
6783 | ac_cv_prog_LIPO=$LIPO | |
6784 | elif test -n "$ac_cv_prog_LIPO"; then | |
6785 | LIPO=$ac_cv_prog_LIPO | |
6786 | fi | |
6787 | ||
6788 | if test -n "$ac_cv_prog_LIPO"; then | |
6789 | for ncn_progname in lipo; do | |
6790 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
6791 | set dummy ${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
6792 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6793 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
278a7a38 AO |
6794 | if test "${ac_cv_prog_LIPO+set}" = set; then |
6795 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6796 | else | |
6797 | if test -n "$LIPO"; then | |
6798 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
6799 | else | |
6800 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6801 | for as_dir in $PATH | |
6802 | do | |
6803 | IFS=$as_save_IFS | |
6804 | test -z "$as_dir" && as_dir=. | |
6805 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 6806 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 AO |
6807 | ac_cv_prog_LIPO="${ncn_progname}" |
6808 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6809 | break 2 | |
6810 | fi | |
6811 | done | |
6812 | done | |
6813 | ||
6814 | fi | |
6815 | fi | |
6816 | LIPO=$ac_cv_prog_LIPO | |
6817 | if test -n "$LIPO"; then | |
2aeb72e9 DD |
6818 | echo "$as_me:$LINENO: result: $LIPO" >&5 |
6819 | echo "${ECHO_T}$LIPO" >&6 | |
278a7a38 | 6820 | else |
2aeb72e9 DD |
6821 | echo "$as_me:$LINENO: result: no" >&5 |
6822 | echo "${ECHO_T}no" >&6 | |
278a7a38 AO |
6823 | fi |
6824 | ||
6825 | done | |
6826 | fi | |
6827 | ||
6828 | for ncn_progname in lipo; do | |
2abefe3d PB |
6829 | if test -n "$ncn_tool_prefix"; then |
6830 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
6831 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
6832 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6833 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
6834 | if test "${ac_cv_prog_LIPO+set}" = set; then |
6835 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2abefe3d PB |
6836 | else |
6837 | if test -n "$LIPO"; then | |
6838 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
6839 | else | |
1c710c3c DJ |
6840 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6841 | for as_dir in $PATH | |
6842 | do | |
6843 | IFS=$as_save_IFS | |
6844 | test -z "$as_dir" && as_dir=. | |
6845 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 6846 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
6847 | ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}" |
6848 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6849 | break 2 | |
6850 | fi | |
6851 | done | |
6852 | done | |
6853 | ||
2abefe3d PB |
6854 | fi |
6855 | fi | |
1c710c3c | 6856 | LIPO=$ac_cv_prog_LIPO |
2abefe3d | 6857 | if test -n "$LIPO"; then |
2aeb72e9 DD |
6858 | echo "$as_me:$LINENO: result: $LIPO" >&5 |
6859 | echo "${ECHO_T}$LIPO" >&6 | |
2abefe3d | 6860 | else |
2aeb72e9 DD |
6861 | echo "$as_me:$LINENO: result: no" >&5 |
6862 | echo "${ECHO_T}no" >&6 | |
2abefe3d PB |
6863 | fi |
6864 | ||
6865 | fi | |
6866 | if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then | |
6867 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
6868 | set dummy ${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
6869 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6870 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
6871 | if test "${ac_cv_prog_LIPO+set}" = set; then |
6872 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2abefe3d PB |
6873 | else |
6874 | if test -n "$LIPO"; then | |
6875 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
6876 | else | |
1c710c3c DJ |
6877 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6878 | for as_dir in $PATH | |
6879 | do | |
6880 | IFS=$as_save_IFS | |
6881 | test -z "$as_dir" && as_dir=. | |
6882 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 6883 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
6884 | ac_cv_prog_LIPO="${ncn_progname}" |
6885 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6886 | break 2 | |
6887 | fi | |
6888 | done | |
6889 | done | |
6890 | ||
2abefe3d PB |
6891 | fi |
6892 | fi | |
1c710c3c | 6893 | LIPO=$ac_cv_prog_LIPO |
2abefe3d | 6894 | if test -n "$LIPO"; then |
2aeb72e9 DD |
6895 | echo "$as_me:$LINENO: result: $LIPO" >&5 |
6896 | echo "${ECHO_T}$LIPO" >&6 | |
2abefe3d | 6897 | else |
2aeb72e9 DD |
6898 | echo "$as_me:$LINENO: result: no" >&5 |
6899 | echo "${ECHO_T}no" >&6 | |
2abefe3d | 6900 | fi |
1c710c3c | 6901 | |
2abefe3d PB |
6902 | fi |
6903 | test -n "$ac_cv_prog_LIPO" && break | |
6904 | done | |
6905 | ||
6906 | if test -z "$ac_cv_prog_LIPO" ; then | |
6907 | set dummy lipo | |
6908 | if test $build = $host ; then | |
6909 | LIPO="$2" | |
6910 | else | |
6911 | LIPO="${ncn_tool_prefix}$2" | |
6912 | fi | |
6913 | fi | |
6914 | ||
278a7a38 AO |
6915 | |
6916 | ||
6917 | if test -n "$NM"; then | |
6918 | ac_cv_prog_NM=$NM | |
6919 | elif test -n "$ac_cv_prog_NM"; then | |
6920 | NM=$ac_cv_prog_NM | |
6921 | fi | |
6922 | ||
6923 | if test -n "$ac_cv_prog_NM"; then | |
6924 | for ncn_progname in nm; do | |
6925 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
6926 | set dummy ${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
6927 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6928 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
6929 | if test "${ac_cv_prog_NM+set}" = set; then |
6930 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 AO |
6931 | else |
6932 | if test -n "$NM"; then | |
6933 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
6934 | else | |
1c710c3c DJ |
6935 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6936 | for as_dir in $PATH | |
6937 | do | |
6938 | IFS=$as_save_IFS | |
6939 | test -z "$as_dir" && as_dir=. | |
6940 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 6941 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 6942 | ac_cv_prog_NM="${ncn_progname}" |
1c710c3c DJ |
6943 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6944 | break 2 | |
6945 | fi | |
6946 | done | |
6947 | done | |
6948 | ||
ca9f4b81 AO |
6949 | fi |
6950 | fi | |
1c710c3c | 6951 | NM=$ac_cv_prog_NM |
ca9f4b81 | 6952 | if test -n "$NM"; then |
2aeb72e9 DD |
6953 | echo "$as_me:$LINENO: result: $NM" >&5 |
6954 | echo "${ECHO_T}$NM" >&6 | |
ca9f4b81 | 6955 | else |
2aeb72e9 DD |
6956 | echo "$as_me:$LINENO: result: no" >&5 |
6957 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 AO |
6958 | fi |
6959 | ||
278a7a38 AO |
6960 | done |
6961 | fi | |
6962 | ||
6963 | for ncn_progname in nm; do | |
6964 | if test -n "$ncn_tool_prefix"; then | |
6965 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
6966 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
6967 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6968 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
6969 | if test "${ac_cv_prog_NM+set}" = set; then |
6970 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 | 6971 | else |
2693c0b0 PB |
6972 | if test -n "$NM"; then |
6973 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
ca9f4b81 | 6974 | else |
1c710c3c DJ |
6975 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6976 | for as_dir in $PATH | |
6977 | do | |
6978 | IFS=$as_save_IFS | |
6979 | test -z "$as_dir" && as_dir=. | |
6980 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 6981 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 6982 | ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}" |
1c710c3c DJ |
6983 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6984 | break 2 | |
6985 | fi | |
6986 | done | |
6987 | done | |
6988 | ||
ca9f4b81 AO |
6989 | fi |
6990 | fi | |
1c710c3c | 6991 | NM=$ac_cv_prog_NM |
2693c0b0 | 6992 | if test -n "$NM"; then |
2aeb72e9 DD |
6993 | echo "$as_me:$LINENO: result: $NM" >&5 |
6994 | echo "${ECHO_T}$NM" >&6 | |
ca9f4b81 | 6995 | else |
2aeb72e9 DD |
6996 | echo "$as_me:$LINENO: result: no" >&5 |
6997 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 | 6998 | fi |
1c710c3c | 6999 | |
2693c0b0 | 7000 | fi |
278a7a38 AO |
7001 | if test -z "$ac_cv_prog_NM" && test $build = $host ; then |
7002 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7003 | set dummy ${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
7004 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7005 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
278a7a38 AO |
7006 | if test "${ac_cv_prog_NM+set}" = set; then |
7007 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7008 | else | |
7009 | if test -n "$NM"; then | |
7010 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
7011 | else | |
7012 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7013 | for as_dir in $PATH | |
7014 | do | |
7015 | IFS=$as_save_IFS | |
7016 | test -z "$as_dir" && as_dir=. | |
7017 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 7018 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 AO |
7019 | ac_cv_prog_NM="${ncn_progname}" |
7020 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7021 | break 2 | |
7022 | fi | |
7023 | done | |
7024 | done | |
7025 | ||
7026 | fi | |
7027 | fi | |
7028 | NM=$ac_cv_prog_NM | |
7029 | if test -n "$NM"; then | |
2aeb72e9 DD |
7030 | echo "$as_me:$LINENO: result: $NM" >&5 |
7031 | echo "${ECHO_T}$NM" >&6 | |
278a7a38 | 7032 | else |
2aeb72e9 DD |
7033 | echo "$as_me:$LINENO: result: no" >&5 |
7034 | echo "${ECHO_T}no" >&6 | |
278a7a38 AO |
7035 | fi |
7036 | ||
7037 | fi | |
7038 | test -n "$ac_cv_prog_NM" && break | |
7039 | done | |
7040 | ||
7041 | if test -z "$ac_cv_prog_NM" ; then | |
7042 | set dummy nm | |
7043 | if test $build = $host ; then | |
7044 | NM="$2" | |
7045 | else | |
7046 | NM="${ncn_tool_prefix}$2" | |
7047 | fi | |
7048 | fi | |
7049 | ||
7050 | ||
7051 | ||
7052 | if test -n "$RANLIB"; then | |
7053 | ac_cv_prog_RANLIB=$RANLIB | |
7054 | elif test -n "$ac_cv_prog_RANLIB"; then | |
7055 | RANLIB=$ac_cv_prog_RANLIB | |
7056 | fi | |
7057 | ||
7058 | if test -n "$ac_cv_prog_RANLIB"; then | |
7059 | for ncn_progname in ranlib; do | |
7060 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7061 | set dummy ${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
7062 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7063 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
278a7a38 AO |
7064 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
7065 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7066 | else | |
7067 | if test -n "$RANLIB"; then | |
7068 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
7069 | else | |
7070 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7071 | for as_dir in $PATH | |
7072 | do | |
7073 | IFS=$as_save_IFS | |
7074 | test -z "$as_dir" && as_dir=. | |
7075 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 7076 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 AO |
7077 | ac_cv_prog_RANLIB="${ncn_progname}" |
7078 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7079 | break 2 | |
7080 | fi | |
7081 | done | |
7082 | done | |
7083 | ||
7084 | fi | |
7085 | fi | |
7086 | RANLIB=$ac_cv_prog_RANLIB | |
7087 | if test -n "$RANLIB"; then | |
2aeb72e9 DD |
7088 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
7089 | echo "${ECHO_T}$RANLIB" >&6 | |
278a7a38 | 7090 | else |
2aeb72e9 DD |
7091 | echo "$as_me:$LINENO: result: no" >&5 |
7092 | echo "${ECHO_T}no" >&6 | |
278a7a38 AO |
7093 | fi |
7094 | ||
7095 | done | |
7096 | fi | |
ca9f4b81 | 7097 | |
278a7a38 | 7098 | for ncn_progname in ranlib; do |
2693c0b0 PB |
7099 | if test -n "$ncn_tool_prefix"; then |
7100 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7101 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
7102 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7103 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
7104 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
7105 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 AO |
7106 | else |
7107 | if test -n "$RANLIB"; then | |
7108 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
7109 | else | |
1c710c3c DJ |
7110 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7111 | for as_dir in $PATH | |
7112 | do | |
7113 | IFS=$as_save_IFS | |
7114 | test -z "$as_dir" && as_dir=. | |
7115 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 7116 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
7117 | ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}" |
7118 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7119 | break 2 | |
7120 | fi | |
7121 | done | |
7122 | done | |
7123 | ||
ca9f4b81 AO |
7124 | fi |
7125 | fi | |
1c710c3c | 7126 | RANLIB=$ac_cv_prog_RANLIB |
ca9f4b81 | 7127 | if test -n "$RANLIB"; then |
2aeb72e9 DD |
7128 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
7129 | echo "${ECHO_T}$RANLIB" >&6 | |
ca9f4b81 | 7130 | else |
2aeb72e9 DD |
7131 | echo "$as_me:$LINENO: result: no" >&5 |
7132 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 AO |
7133 | fi |
7134 | ||
2693c0b0 PB |
7135 | fi |
7136 | if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then | |
7137 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7138 | set dummy ${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
7139 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7140 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
7141 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
7142 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 | 7143 | else |
2693c0b0 PB |
7144 | if test -n "$RANLIB"; then |
7145 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
ca9f4b81 | 7146 | else |
1c710c3c DJ |
7147 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7148 | for as_dir in $PATH | |
7149 | do | |
7150 | IFS=$as_save_IFS | |
7151 | test -z "$as_dir" && as_dir=. | |
7152 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 7153 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
7154 | ac_cv_prog_RANLIB="${ncn_progname}" |
7155 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7156 | break 2 | |
7157 | fi | |
7158 | done | |
7159 | done | |
7160 | ||
ca9f4b81 AO |
7161 | fi |
7162 | fi | |
1c710c3c | 7163 | RANLIB=$ac_cv_prog_RANLIB |
2693c0b0 | 7164 | if test -n "$RANLIB"; then |
2aeb72e9 DD |
7165 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
7166 | echo "${ECHO_T}$RANLIB" >&6 | |
ca9f4b81 | 7167 | else |
2aeb72e9 DD |
7168 | echo "$as_me:$LINENO: result: no" >&5 |
7169 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 | 7170 | fi |
1c710c3c | 7171 | |
ca9f4b81 | 7172 | fi |
2693c0b0 PB |
7173 | test -n "$ac_cv_prog_RANLIB" && break |
7174 | done | |
7175 | ||
7176 | if test -z "$ac_cv_prog_RANLIB" ; then | |
7177 | RANLIB=":" | |
ca9f4b81 AO |
7178 | fi |
7179 | ||
278a7a38 AO |
7180 | |
7181 | ||
7182 | if test -n "$STRIP"; then | |
7183 | ac_cv_prog_STRIP=$STRIP | |
7184 | elif test -n "$ac_cv_prog_STRIP"; then | |
7185 | STRIP=$ac_cv_prog_STRIP | |
7186 | fi | |
7187 | ||
7188 | if test -n "$ac_cv_prog_STRIP"; then | |
7189 | for ncn_progname in strip; do | |
7190 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7191 | set dummy ${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
7192 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7193 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
278a7a38 AO |
7194 | if test "${ac_cv_prog_STRIP+set}" = set; then |
7195 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7196 | else | |
7197 | if test -n "$STRIP"; then | |
7198 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
7199 | else | |
7200 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7201 | for as_dir in $PATH | |
7202 | do | |
7203 | IFS=$as_save_IFS | |
7204 | test -z "$as_dir" && as_dir=. | |
7205 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 7206 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 AO |
7207 | ac_cv_prog_STRIP="${ncn_progname}" |
7208 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7209 | break 2 | |
7210 | fi | |
7211 | done | |
7212 | done | |
7213 | ||
7214 | fi | |
7215 | fi | |
7216 | STRIP=$ac_cv_prog_STRIP | |
7217 | if test -n "$STRIP"; then | |
2aeb72e9 DD |
7218 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
7219 | echo "${ECHO_T}$STRIP" >&6 | |
278a7a38 | 7220 | else |
2aeb72e9 DD |
7221 | echo "$as_me:$LINENO: result: no" >&5 |
7222 | echo "${ECHO_T}no" >&6 | |
278a7a38 AO |
7223 | fi |
7224 | ||
7225 | done | |
7226 | fi | |
7227 | ||
7228 | for ncn_progname in strip; do | |
2abefe3d PB |
7229 | if test -n "$ncn_tool_prefix"; then |
7230 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7231 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
7232 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7233 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
7234 | if test "${ac_cv_prog_STRIP+set}" = set; then |
7235 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2abefe3d PB |
7236 | else |
7237 | if test -n "$STRIP"; then | |
7238 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
7239 | else | |
1c710c3c DJ |
7240 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7241 | for as_dir in $PATH | |
7242 | do | |
7243 | IFS=$as_save_IFS | |
7244 | test -z "$as_dir" && as_dir=. | |
7245 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 7246 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
7247 | ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}" |
7248 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7249 | break 2 | |
7250 | fi | |
7251 | done | |
7252 | done | |
7253 | ||
2abefe3d PB |
7254 | fi |
7255 | fi | |
1c710c3c | 7256 | STRIP=$ac_cv_prog_STRIP |
2abefe3d | 7257 | if test -n "$STRIP"; then |
2aeb72e9 DD |
7258 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
7259 | echo "${ECHO_T}$STRIP" >&6 | |
2abefe3d | 7260 | else |
2aeb72e9 DD |
7261 | echo "$as_me:$LINENO: result: no" >&5 |
7262 | echo "${ECHO_T}no" >&6 | |
2abefe3d PB |
7263 | fi |
7264 | ||
7265 | fi | |
7266 | if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then | |
7267 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7268 | set dummy ${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
7269 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7270 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
7271 | if test "${ac_cv_prog_STRIP+set}" = set; then |
7272 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2abefe3d PB |
7273 | else |
7274 | if test -n "$STRIP"; then | |
7275 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
7276 | else | |
1c710c3c DJ |
7277 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7278 | for as_dir in $PATH | |
7279 | do | |
7280 | IFS=$as_save_IFS | |
7281 | test -z "$as_dir" && as_dir=. | |
7282 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 7283 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
7284 | ac_cv_prog_STRIP="${ncn_progname}" |
7285 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7286 | break 2 | |
7287 | fi | |
7288 | done | |
7289 | done | |
7290 | ||
2abefe3d PB |
7291 | fi |
7292 | fi | |
1c710c3c | 7293 | STRIP=$ac_cv_prog_STRIP |
2abefe3d | 7294 | if test -n "$STRIP"; then |
2aeb72e9 DD |
7295 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
7296 | echo "${ECHO_T}$STRIP" >&6 | |
2abefe3d | 7297 | else |
2aeb72e9 DD |
7298 | echo "$as_me:$LINENO: result: no" >&5 |
7299 | echo "${ECHO_T}no" >&6 | |
2abefe3d | 7300 | fi |
1c710c3c | 7301 | |
2abefe3d PB |
7302 | fi |
7303 | test -n "$ac_cv_prog_STRIP" && break | |
7304 | done | |
7305 | ||
7306 | if test -z "$ac_cv_prog_STRIP" ; then | |
7307 | STRIP=":" | |
7308 | fi | |
7309 | ||
278a7a38 AO |
7310 | |
7311 | ||
7312 | if test -n "$WINDRES"; then | |
7313 | ac_cv_prog_WINDRES=$WINDRES | |
7314 | elif test -n "$ac_cv_prog_WINDRES"; then | |
7315 | WINDRES=$ac_cv_prog_WINDRES | |
7316 | fi | |
7317 | ||
7318 | if test -n "$ac_cv_prog_WINDRES"; then | |
7319 | for ncn_progname in windres; do | |
7320 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7321 | set dummy ${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
7322 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7323 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
278a7a38 AO |
7324 | if test "${ac_cv_prog_WINDRES+set}" = set; then |
7325 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7326 | else | |
7327 | if test -n "$WINDRES"; then | |
7328 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
7329 | else | |
7330 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7331 | for as_dir in $PATH | |
7332 | do | |
7333 | IFS=$as_save_IFS | |
7334 | test -z "$as_dir" && as_dir=. | |
7335 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 7336 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 AO |
7337 | ac_cv_prog_WINDRES="${ncn_progname}" |
7338 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7339 | break 2 | |
7340 | fi | |
7341 | done | |
7342 | done | |
7343 | ||
7344 | fi | |
7345 | fi | |
7346 | WINDRES=$ac_cv_prog_WINDRES | |
7347 | if test -n "$WINDRES"; then | |
2aeb72e9 DD |
7348 | echo "$as_me:$LINENO: result: $WINDRES" >&5 |
7349 | echo "${ECHO_T}$WINDRES" >&6 | |
278a7a38 | 7350 | else |
2aeb72e9 DD |
7351 | echo "$as_me:$LINENO: result: no" >&5 |
7352 | echo "${ECHO_T}no" >&6 | |
278a7a38 AO |
7353 | fi |
7354 | ||
7355 | done | |
7356 | fi | |
7357 | ||
7358 | for ncn_progname in windres; do | |
2693c0b0 PB |
7359 | if test -n "$ncn_tool_prefix"; then |
7360 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7361 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
7362 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7363 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
7364 | if test "${ac_cv_prog_WINDRES+set}" = set; then |
7365 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 AO |
7366 | else |
7367 | if test -n "$WINDRES"; then | |
7368 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
7369 | else | |
1c710c3c DJ |
7370 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7371 | for as_dir in $PATH | |
7372 | do | |
7373 | IFS=$as_save_IFS | |
7374 | test -z "$as_dir" && as_dir=. | |
7375 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 7376 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
7377 | ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}" |
7378 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7379 | break 2 | |
7380 | fi | |
7381 | done | |
7382 | done | |
7383 | ||
ca9f4b81 AO |
7384 | fi |
7385 | fi | |
1c710c3c | 7386 | WINDRES=$ac_cv_prog_WINDRES |
ca9f4b81 | 7387 | if test -n "$WINDRES"; then |
2aeb72e9 DD |
7388 | echo "$as_me:$LINENO: result: $WINDRES" >&5 |
7389 | echo "${ECHO_T}$WINDRES" >&6 | |
ca9f4b81 | 7390 | else |
2aeb72e9 DD |
7391 | echo "$as_me:$LINENO: result: no" >&5 |
7392 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 AO |
7393 | fi |
7394 | ||
2693c0b0 PB |
7395 | fi |
7396 | if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then | |
7397 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7398 | set dummy ${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
7399 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7400 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
7401 | if test "${ac_cv_prog_WINDRES+set}" = set; then |
7402 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 | 7403 | else |
2693c0b0 PB |
7404 | if test -n "$WINDRES"; then |
7405 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
ca9f4b81 | 7406 | else |
1c710c3c DJ |
7407 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7408 | for as_dir in $PATH | |
7409 | do | |
7410 | IFS=$as_save_IFS | |
7411 | test -z "$as_dir" && as_dir=. | |
7412 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 7413 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
7414 | ac_cv_prog_WINDRES="${ncn_progname}" |
7415 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7416 | break 2 | |
7417 | fi | |
7418 | done | |
7419 | done | |
7420 | ||
ca9f4b81 AO |
7421 | fi |
7422 | fi | |
1c710c3c | 7423 | WINDRES=$ac_cv_prog_WINDRES |
2693c0b0 | 7424 | if test -n "$WINDRES"; then |
2aeb72e9 DD |
7425 | echo "$as_me:$LINENO: result: $WINDRES" >&5 |
7426 | echo "${ECHO_T}$WINDRES" >&6 | |
ca9f4b81 | 7427 | else |
2aeb72e9 DD |
7428 | echo "$as_me:$LINENO: result: no" >&5 |
7429 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 | 7430 | fi |
1c710c3c | 7431 | |
2693c0b0 PB |
7432 | fi |
7433 | test -n "$ac_cv_prog_WINDRES" && break | |
7434 | done | |
7435 | ||
7436 | if test -z "$ac_cv_prog_WINDRES" ; then | |
7437 | set dummy windres | |
7438 | if test $build = $host ; then | |
7439 | WINDRES="$2" | |
ca9f4b81 | 7440 | else |
2693c0b0 | 7441 | WINDRES="${ncn_tool_prefix}$2" |
ca9f4b81 | 7442 | fi |
ca9f4b81 AO |
7443 | fi |
7444 | ||
278a7a38 AO |
7445 | |
7446 | ||
901119ae KT |
7447 | if test -n "$WINDMC"; then |
7448 | ac_cv_prog_WINDMC=$WINDMC | |
7449 | elif test -n "$ac_cv_prog_WINDMC"; then | |
7450 | WINDMC=$ac_cv_prog_WINDMC | |
7451 | fi | |
7452 | ||
7453 | if test -n "$ac_cv_prog_WINDMC"; then | |
7454 | for ncn_progname in windmc; do | |
7455 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7456 | set dummy ${ncn_progname}; ac_word=$2 | |
7457 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7458 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7459 | if test "${ac_cv_prog_WINDMC+set}" = set; then | |
7460 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7461 | else | |
7462 | if test -n "$WINDMC"; then | |
7463 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
7464 | else | |
7465 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7466 | for as_dir in $PATH | |
7467 | do | |
7468 | IFS=$as_save_IFS | |
7469 | test -z "$as_dir" && as_dir=. | |
7470 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7471 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7472 | ac_cv_prog_WINDMC="${ncn_progname}" | |
7473 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7474 | break 2 | |
7475 | fi | |
7476 | done | |
7477 | done | |
7478 | ||
7479 | fi | |
7480 | fi | |
7481 | WINDMC=$ac_cv_prog_WINDMC | |
7482 | if test -n "$WINDMC"; then | |
7483 | echo "$as_me:$LINENO: result: $WINDMC" >&5 | |
7484 | echo "${ECHO_T}$WINDMC" >&6 | |
7485 | else | |
7486 | echo "$as_me:$LINENO: result: no" >&5 | |
7487 | echo "${ECHO_T}no" >&6 | |
7488 | fi | |
7489 | ||
7490 | done | |
7491 | fi | |
7492 | ||
7493 | for ncn_progname in windmc; do | |
7494 | if test -n "$ncn_tool_prefix"; then | |
7495 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7496 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
7497 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7498 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7499 | if test "${ac_cv_prog_WINDMC+set}" = set; then | |
7500 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7501 | else | |
7502 | if test -n "$WINDMC"; then | |
7503 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
7504 | else | |
7505 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7506 | for as_dir in $PATH | |
7507 | do | |
7508 | IFS=$as_save_IFS | |
7509 | test -z "$as_dir" && as_dir=. | |
7510 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7511 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7512 | ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}" | |
7513 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7514 | break 2 | |
7515 | fi | |
7516 | done | |
7517 | done | |
7518 | ||
7519 | fi | |
7520 | fi | |
7521 | WINDMC=$ac_cv_prog_WINDMC | |
7522 | if test -n "$WINDMC"; then | |
7523 | echo "$as_me:$LINENO: result: $WINDMC" >&5 | |
7524 | echo "${ECHO_T}$WINDMC" >&6 | |
7525 | else | |
7526 | echo "$as_me:$LINENO: result: no" >&5 | |
7527 | echo "${ECHO_T}no" >&6 | |
7528 | fi | |
7529 | ||
7530 | fi | |
7531 | if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then | |
7532 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7533 | set dummy ${ncn_progname}; ac_word=$2 | |
7534 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7535 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7536 | if test "${ac_cv_prog_WINDMC+set}" = set; then | |
7537 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7538 | else | |
7539 | if test -n "$WINDMC"; then | |
7540 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
7541 | else | |
7542 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7543 | for as_dir in $PATH | |
7544 | do | |
7545 | IFS=$as_save_IFS | |
7546 | test -z "$as_dir" && as_dir=. | |
7547 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7548 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7549 | ac_cv_prog_WINDMC="${ncn_progname}" | |
7550 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7551 | break 2 | |
7552 | fi | |
7553 | done | |
7554 | done | |
7555 | ||
7556 | fi | |
7557 | fi | |
7558 | WINDMC=$ac_cv_prog_WINDMC | |
7559 | if test -n "$WINDMC"; then | |
7560 | echo "$as_me:$LINENO: result: $WINDMC" >&5 | |
7561 | echo "${ECHO_T}$WINDMC" >&6 | |
7562 | else | |
7563 | echo "$as_me:$LINENO: result: no" >&5 | |
7564 | echo "${ECHO_T}no" >&6 | |
7565 | fi | |
7566 | ||
7567 | fi | |
7568 | test -n "$ac_cv_prog_WINDMC" && break | |
7569 | done | |
7570 | ||
7571 | if test -z "$ac_cv_prog_WINDMC" ; then | |
7572 | set dummy windmc | |
7573 | if test $build = $host ; then | |
7574 | WINDMC="$2" | |
7575 | else | |
7576 | WINDMC="${ncn_tool_prefix}$2" | |
7577 | fi | |
7578 | fi | |
7579 | ||
7580 | ||
7581 | ||
278a7a38 AO |
7582 | if test -n "$OBJCOPY"; then |
7583 | ac_cv_prog_OBJCOPY=$OBJCOPY | |
7584 | elif test -n "$ac_cv_prog_OBJCOPY"; then | |
7585 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
7586 | fi | |
7587 | ||
7588 | if test -n "$ac_cv_prog_OBJCOPY"; then | |
7589 | for ncn_progname in objcopy; do | |
7590 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7591 | set dummy ${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
7592 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7593 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
278a7a38 AO |
7594 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then |
7595 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7596 | else | |
7597 | if test -n "$OBJCOPY"; then | |
7598 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
7599 | else | |
7600 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7601 | for as_dir in $PATH | |
7602 | do | |
7603 | IFS=$as_save_IFS | |
7604 | test -z "$as_dir" && as_dir=. | |
7605 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 7606 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 AO |
7607 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
7608 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7609 | break 2 | |
7610 | fi | |
7611 | done | |
7612 | done | |
7613 | ||
7614 | fi | |
7615 | fi | |
7616 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
7617 | if test -n "$OBJCOPY"; then | |
2aeb72e9 DD |
7618 | echo "$as_me:$LINENO: result: $OBJCOPY" >&5 |
7619 | echo "${ECHO_T}$OBJCOPY" >&6 | |
278a7a38 | 7620 | else |
2aeb72e9 DD |
7621 | echo "$as_me:$LINENO: result: no" >&5 |
7622 | echo "${ECHO_T}no" >&6 | |
278a7a38 AO |
7623 | fi |
7624 | ||
7625 | done | |
7626 | fi | |
7627 | ||
7628 | for ncn_progname in objcopy; do | |
2693c0b0 PB |
7629 | if test -n "$ncn_tool_prefix"; then |
7630 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7631 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
7632 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7633 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
7634 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then |
7635 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 AO |
7636 | else |
7637 | if test -n "$OBJCOPY"; then | |
7638 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
7639 | else | |
1c710c3c DJ |
7640 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7641 | for as_dir in $PATH | |
7642 | do | |
7643 | IFS=$as_save_IFS | |
7644 | test -z "$as_dir" && as_dir=. | |
7645 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 7646 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
7647 | ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}" |
7648 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7649 | break 2 | |
7650 | fi | |
7651 | done | |
7652 | done | |
7653 | ||
ca9f4b81 AO |
7654 | fi |
7655 | fi | |
1c710c3c | 7656 | OBJCOPY=$ac_cv_prog_OBJCOPY |
ca9f4b81 | 7657 | if test -n "$OBJCOPY"; then |
2aeb72e9 DD |
7658 | echo "$as_me:$LINENO: result: $OBJCOPY" >&5 |
7659 | echo "${ECHO_T}$OBJCOPY" >&6 | |
ca9f4b81 | 7660 | else |
2aeb72e9 DD |
7661 | echo "$as_me:$LINENO: result: no" >&5 |
7662 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 AO |
7663 | fi |
7664 | ||
2693c0b0 PB |
7665 | fi |
7666 | if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then | |
7667 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7668 | set dummy ${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
7669 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7670 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
7671 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then |
7672 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 | 7673 | else |
2693c0b0 PB |
7674 | if test -n "$OBJCOPY"; then |
7675 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
ca9f4b81 | 7676 | else |
1c710c3c DJ |
7677 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7678 | for as_dir in $PATH | |
7679 | do | |
7680 | IFS=$as_save_IFS | |
7681 | test -z "$as_dir" && as_dir=. | |
7682 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 7683 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
7684 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
7685 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7686 | break 2 | |
7687 | fi | |
7688 | done | |
7689 | done | |
7690 | ||
ca9f4b81 AO |
7691 | fi |
7692 | fi | |
1c710c3c | 7693 | OBJCOPY=$ac_cv_prog_OBJCOPY |
2693c0b0 | 7694 | if test -n "$OBJCOPY"; then |
2aeb72e9 DD |
7695 | echo "$as_me:$LINENO: result: $OBJCOPY" >&5 |
7696 | echo "${ECHO_T}$OBJCOPY" >&6 | |
ca9f4b81 | 7697 | else |
2aeb72e9 DD |
7698 | echo "$as_me:$LINENO: result: no" >&5 |
7699 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 | 7700 | fi |
1c710c3c | 7701 | |
2693c0b0 PB |
7702 | fi |
7703 | test -n "$ac_cv_prog_OBJCOPY" && break | |
7704 | done | |
7705 | ||
7706 | if test -z "$ac_cv_prog_OBJCOPY" ; then | |
7707 | set dummy objcopy | |
7708 | if test $build = $host ; then | |
7709 | OBJCOPY="$2" | |
ca9f4b81 | 7710 | else |
2693c0b0 | 7711 | OBJCOPY="${ncn_tool_prefix}$2" |
ca9f4b81 | 7712 | fi |
ca9f4b81 AO |
7713 | fi |
7714 | ||
278a7a38 AO |
7715 | |
7716 | ||
7717 | if test -n "$OBJDUMP"; then | |
7718 | ac_cv_prog_OBJDUMP=$OBJDUMP | |
7719 | elif test -n "$ac_cv_prog_OBJDUMP"; then | |
7720 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
7721 | fi | |
7722 | ||
7723 | if test -n "$ac_cv_prog_OBJDUMP"; then | |
7724 | for ncn_progname in objdump; do | |
7725 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7726 | set dummy ${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
7727 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7728 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
278a7a38 AO |
7729 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then |
7730 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7731 | else | |
7732 | if test -n "$OBJDUMP"; then | |
7733 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
7734 | else | |
7735 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7736 | for as_dir in $PATH | |
7737 | do | |
7738 | IFS=$as_save_IFS | |
7739 | test -z "$as_dir" && as_dir=. | |
7740 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 7741 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 AO |
7742 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
7743 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7744 | break 2 | |
7745 | fi | |
7746 | done | |
7747 | done | |
7748 | ||
7749 | fi | |
7750 | fi | |
7751 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
7752 | if test -n "$OBJDUMP"; then | |
2aeb72e9 DD |
7753 | echo "$as_me:$LINENO: result: $OBJDUMP" >&5 |
7754 | echo "${ECHO_T}$OBJDUMP" >&6 | |
278a7a38 | 7755 | else |
2aeb72e9 DD |
7756 | echo "$as_me:$LINENO: result: no" >&5 |
7757 | echo "${ECHO_T}no" >&6 | |
278a7a38 AO |
7758 | fi |
7759 | ||
7760 | done | |
7761 | fi | |
7762 | ||
7763 | for ncn_progname in objdump; do | |
2693c0b0 PB |
7764 | if test -n "$ncn_tool_prefix"; then |
7765 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7766 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
7767 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7768 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
7769 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then |
7770 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 AO |
7771 | else |
7772 | if test -n "$OBJDUMP"; then | |
7773 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
7774 | else | |
1c710c3c DJ |
7775 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7776 | for as_dir in $PATH | |
7777 | do | |
7778 | IFS=$as_save_IFS | |
7779 | test -z "$as_dir" && as_dir=. | |
7780 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 7781 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
7782 | ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}" |
7783 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7784 | break 2 | |
7785 | fi | |
7786 | done | |
7787 | done | |
7788 | ||
ca9f4b81 AO |
7789 | fi |
7790 | fi | |
1c710c3c | 7791 | OBJDUMP=$ac_cv_prog_OBJDUMP |
ca9f4b81 | 7792 | if test -n "$OBJDUMP"; then |
2aeb72e9 DD |
7793 | echo "$as_me:$LINENO: result: $OBJDUMP" >&5 |
7794 | echo "${ECHO_T}$OBJDUMP" >&6 | |
ca9f4b81 | 7795 | else |
2aeb72e9 DD |
7796 | echo "$as_me:$LINENO: result: no" >&5 |
7797 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 AO |
7798 | fi |
7799 | ||
2693c0b0 PB |
7800 | fi |
7801 | if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then | |
7802 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7803 | set dummy ${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
7804 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7805 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
7806 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then |
7807 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 | 7808 | else |
2693c0b0 PB |
7809 | if test -n "$OBJDUMP"; then |
7810 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
ca9f4b81 | 7811 | else |
1c710c3c DJ |
7812 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7813 | for as_dir in $PATH | |
7814 | do | |
7815 | IFS=$as_save_IFS | |
7816 | test -z "$as_dir" && as_dir=. | |
7817 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 7818 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
7819 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
7820 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7821 | break 2 | |
7822 | fi | |
7823 | done | |
7824 | done | |
7825 | ||
ca9f4b81 AO |
7826 | fi |
7827 | fi | |
1c710c3c | 7828 | OBJDUMP=$ac_cv_prog_OBJDUMP |
2693c0b0 | 7829 | if test -n "$OBJDUMP"; then |
2aeb72e9 DD |
7830 | echo "$as_me:$LINENO: result: $OBJDUMP" >&5 |
7831 | echo "${ECHO_T}$OBJDUMP" >&6 | |
ca9f4b81 | 7832 | else |
2aeb72e9 DD |
7833 | echo "$as_me:$LINENO: result: no" >&5 |
7834 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 | 7835 | fi |
1c710c3c | 7836 | |
2693c0b0 PB |
7837 | fi |
7838 | test -n "$ac_cv_prog_OBJDUMP" && break | |
7839 | done | |
7840 | ||
7841 | if test -z "$ac_cv_prog_OBJDUMP" ; then | |
7842 | set dummy objdump | |
7843 | if test $build = $host ; then | |
7844 | OBJDUMP="$2" | |
ca9f4b81 | 7845 | else |
2693c0b0 | 7846 | OBJDUMP="${ncn_tool_prefix}$2" |
ca9f4b81 | 7847 | fi |
ca9f4b81 AO |
7848 | fi |
7849 | ||
671aa708 NN |
7850 | |
7851 | ||
7852 | ||
7853 | ||
7854 | ||
7855 | ||
2abefe3d | 7856 | # Target tools. |
1c710c3c | 7857 | |
2aeb72e9 | 7858 | # Check whether --with-build-time-tools or --without-build-time-tools was given. |
e8b05380 | 7859 | if test "${with_build_time_tools+set}" = set; then |
2aeb72e9 DD |
7860 | withval="$with_build_time_tools" |
7861 | case x"$withval" in | |
e8b05380 PB |
7862 | x/*) ;; |
7863 | *) | |
7864 | with_build_time_tools= | |
1c710c3c DJ |
7865 | { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5 |
7866 | echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;} | |
e8b05380 PB |
7867 | ;; |
7868 | esac | |
ca9f4b81 | 7869 | else |
e8b05380 | 7870 | with_build_time_tools= |
2aeb72e9 | 7871 | fi; |
ca9f4b81 | 7872 | |
278a7a38 AO |
7873 | |
7874 | ||
7875 | if test -n "$CC_FOR_TARGET"; then | |
7876 | ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET | |
7877 | elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
7878 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
7879 | fi | |
7880 | ||
7881 | if test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
7882 | for ncn_progname in cc gcc; do | |
7883 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7884 | set dummy ${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
7885 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7886 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
278a7a38 AO |
7887 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then |
7888 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7889 | else | |
7890 | if test -n "$CC_FOR_TARGET"; then | |
7891 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
7892 | else | |
7893 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7894 | for as_dir in $PATH | |
7895 | do | |
7896 | IFS=$as_save_IFS | |
7897 | test -z "$as_dir" && as_dir=. | |
7898 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 7899 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 AO |
7900 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
7901 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7902 | break 2 | |
7903 | fi | |
7904 | done | |
7905 | done | |
7906 | ||
7907 | fi | |
7908 | fi | |
7909 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
7910 | if test -n "$CC_FOR_TARGET"; then | |
2aeb72e9 DD |
7911 | echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5 |
7912 | echo "${ECHO_T}$CC_FOR_TARGET" >&6 | |
278a7a38 | 7913 | else |
2aeb72e9 DD |
7914 | echo "$as_me:$LINENO: result: no" >&5 |
7915 | echo "${ECHO_T}no" >&6 | |
278a7a38 AO |
7916 | fi |
7917 | ||
7918 | done | |
7919 | fi | |
7920 | ||
7921 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 7922 | for ncn_progname in cc gcc; do |
2aeb72e9 DD |
7923 | echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
7924 | echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6 | |
d1f8db0c PB |
7925 | if test -x $with_build_time_tools/${ncn_progname}; then |
7926 | ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
2aeb72e9 DD |
7927 | echo "$as_me:$LINENO: result: yes" >&5 |
7928 | echo "${ECHO_T}yes" >&6 | |
72a7ab82 | 7929 | break |
e8b05380 | 7930 | else |
2aeb72e9 DD |
7931 | echo "$as_me:$LINENO: result: no" >&5 |
7932 | echo "${ECHO_T}no" >&6 | |
72a7ab82 AP |
7933 | fi |
7934 | done | |
4de997d1 PB |
7935 | fi |
7936 | ||
e8b05380 PB |
7937 | if test -z "$ac_cv_prog_CC_FOR_TARGET"; then |
7938 | for ncn_progname in cc gcc; do | |
7939 | if test -n "$ncn_target_tool_prefix"; then | |
7940 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 7941 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
2aeb72e9 DD |
7942 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7943 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
7944 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then |
7945 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4de997d1 PB |
7946 | else |
7947 | if test -n "$CC_FOR_TARGET"; then | |
7948 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
7949 | else | |
1c710c3c DJ |
7950 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7951 | for as_dir in $PATH | |
7952 | do | |
7953 | IFS=$as_save_IFS | |
7954 | test -z "$as_dir" && as_dir=. | |
7955 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 7956 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
7957 | ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
7958 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7959 | break 2 | |
7960 | fi | |
7961 | done | |
7962 | done | |
7963 | ||
4de997d1 PB |
7964 | fi |
7965 | fi | |
1c710c3c | 7966 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
4de997d1 | 7967 | if test -n "$CC_FOR_TARGET"; then |
2aeb72e9 DD |
7968 | echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5 |
7969 | echo "${ECHO_T}$CC_FOR_TARGET" >&6 | |
4de997d1 | 7970 | else |
2aeb72e9 DD |
7971 | echo "$as_me:$LINENO: result: no" >&5 |
7972 | echo "${ECHO_T}no" >&6 | |
4de997d1 PB |
7973 | fi |
7974 | ||
e8b05380 PB |
7975 | fi |
7976 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then | |
7977 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 7978 | set dummy ${ncn_progname}; ac_word=$2 |
2aeb72e9 DD |
7979 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7980 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
7981 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then |
7982 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4de997d1 | 7983 | else |
2693c0b0 PB |
7984 | if test -n "$CC_FOR_TARGET"; then |
7985 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 7986 | else |
1c710c3c DJ |
7987 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7988 | for as_dir in $PATH | |
7989 | do | |
7990 | IFS=$as_save_IFS | |
7991 | test -z "$as_dir" && as_dir=. | |
7992 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 7993 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
7994 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
7995 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7996 | break 2 | |
7997 | fi | |
7998 | done | |
7999 | done | |
8000 | ||
4de997d1 PB |
8001 | fi |
8002 | fi | |
1c710c3c | 8003 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
2693c0b0 | 8004 | if test -n "$CC_FOR_TARGET"; then |
2aeb72e9 DD |
8005 | echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5 |
8006 | echo "${ECHO_T}$CC_FOR_TARGET" >&6 | |
4de997d1 | 8007 | else |
2aeb72e9 DD |
8008 | echo "$as_me:$LINENO: result: no" >&5 |
8009 | echo "${ECHO_T}no" >&6 | |
4de997d1 | 8010 | fi |
1c710c3c | 8011 | |
e8b05380 PB |
8012 | fi |
8013 | test -n "$ac_cv_prog_CC_FOR_TARGET" && break | |
8014 | done | |
8015 | fi | |
1c710c3c | 8016 | |
2693c0b0 PB |
8017 | if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then |
8018 | set dummy cc gcc | |
8019 | if test $build = $target ; then | |
8020 | CC_FOR_TARGET="$2" | |
4de997d1 | 8021 | else |
2693c0b0 | 8022 | CC_FOR_TARGET="${ncn_target_tool_prefix}$2" |
4de997d1 | 8023 | fi |
4de997d1 PB |
8024 | fi |
8025 | ||
278a7a38 AO |
8026 | |
8027 | ||
8028 | if test -n "$CXX_FOR_TARGET"; then | |
8029 | ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET | |
8030 | elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
8031 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
8032 | fi | |
8033 | ||
8034 | if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
8035 | for ncn_progname in c++ g++ cxx gxx; do | |
8036 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8037 | set dummy ${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
8038 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8039 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
278a7a38 AO |
8040 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then |
8041 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8042 | else | |
8043 | if test -n "$CXX_FOR_TARGET"; then | |
8044 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
8045 | else | |
8046 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8047 | for as_dir in $PATH | |
8048 | do | |
8049 | IFS=$as_save_IFS | |
8050 | test -z "$as_dir" && as_dir=. | |
8051 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 8052 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 AO |
8053 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
8054 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8055 | break 2 | |
8056 | fi | |
8057 | done | |
8058 | done | |
8059 | ||
8060 | fi | |
8061 | fi | |
8062 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
8063 | if test -n "$CXX_FOR_TARGET"; then | |
2aeb72e9 DD |
8064 | echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5 |
8065 | echo "${ECHO_T}$CXX_FOR_TARGET" >&6 | |
278a7a38 | 8066 | else |
2aeb72e9 DD |
8067 | echo "$as_me:$LINENO: result: no" >&5 |
8068 | echo "${ECHO_T}no" >&6 | |
278a7a38 AO |
8069 | fi |
8070 | ||
8071 | done | |
8072 | fi | |
8073 | ||
8074 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 8075 | for ncn_progname in c++ g++ cxx gxx; do |
2aeb72e9 DD |
8076 | echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
8077 | echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6 | |
d1f8db0c PB |
8078 | if test -x $with_build_time_tools/${ncn_progname}; then |
8079 | ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
2aeb72e9 DD |
8080 | echo "$as_me:$LINENO: result: yes" >&5 |
8081 | echo "${ECHO_T}yes" >&6 | |
e8b05380 PB |
8082 | break |
8083 | else | |
2aeb72e9 DD |
8084 | echo "$as_me:$LINENO: result: no" >&5 |
8085 | echo "${ECHO_T}no" >&6 | |
e8b05380 PB |
8086 | fi |
8087 | done | |
8088 | fi | |
8089 | ||
8090 | if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then | |
8091 | for ncn_progname in c++ g++ cxx gxx; do | |
8092 | if test -n "$ncn_target_tool_prefix"; then | |
8093 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 8094 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
2aeb72e9 DD |
8095 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8096 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
8097 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then |
8098 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4de997d1 PB |
8099 | else |
8100 | if test -n "$CXX_FOR_TARGET"; then | |
8101 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
8102 | else | |
1c710c3c DJ |
8103 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8104 | for as_dir in $PATH | |
8105 | do | |
8106 | IFS=$as_save_IFS | |
8107 | test -z "$as_dir" && as_dir=. | |
8108 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 8109 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
8110 | ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
8111 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8112 | break 2 | |
8113 | fi | |
8114 | done | |
8115 | done | |
8116 | ||
4de997d1 PB |
8117 | fi |
8118 | fi | |
1c710c3c | 8119 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
4de997d1 | 8120 | if test -n "$CXX_FOR_TARGET"; then |
2aeb72e9 DD |
8121 | echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5 |
8122 | echo "${ECHO_T}$CXX_FOR_TARGET" >&6 | |
4de997d1 | 8123 | else |
2aeb72e9 DD |
8124 | echo "$as_me:$LINENO: result: no" >&5 |
8125 | echo "${ECHO_T}no" >&6 | |
4de997d1 PB |
8126 | fi |
8127 | ||
e8b05380 PB |
8128 | fi |
8129 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then | |
8130 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 8131 | set dummy ${ncn_progname}; ac_word=$2 |
2aeb72e9 DD |
8132 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8133 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
8134 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then |
8135 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4de997d1 | 8136 | else |
2693c0b0 PB |
8137 | if test -n "$CXX_FOR_TARGET"; then |
8138 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 8139 | else |
1c710c3c DJ |
8140 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8141 | for as_dir in $PATH | |
8142 | do | |
8143 | IFS=$as_save_IFS | |
8144 | test -z "$as_dir" && as_dir=. | |
8145 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 8146 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
8147 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
8148 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8149 | break 2 | |
8150 | fi | |
8151 | done | |
8152 | done | |
8153 | ||
4de997d1 PB |
8154 | fi |
8155 | fi | |
1c710c3c | 8156 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
2693c0b0 | 8157 | if test -n "$CXX_FOR_TARGET"; then |
2aeb72e9 DD |
8158 | echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5 |
8159 | echo "${ECHO_T}$CXX_FOR_TARGET" >&6 | |
4de997d1 | 8160 | else |
2aeb72e9 DD |
8161 | echo "$as_me:$LINENO: result: no" >&5 |
8162 | echo "${ECHO_T}no" >&6 | |
4de997d1 | 8163 | fi |
1c710c3c | 8164 | |
e8b05380 PB |
8165 | fi |
8166 | test -n "$ac_cv_prog_CXX_FOR_TARGET" && break | |
8167 | done | |
8168 | fi | |
1c710c3c | 8169 | |
2693c0b0 PB |
8170 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then |
8171 | set dummy c++ g++ cxx gxx | |
8172 | if test $build = $target ; then | |
8173 | CXX_FOR_TARGET="$2" | |
4de997d1 | 8174 | else |
2693c0b0 | 8175 | CXX_FOR_TARGET="${ncn_target_tool_prefix}$2" |
4de997d1 | 8176 | fi |
ca9f4b81 AO |
8177 | fi |
8178 | ||
278a7a38 AO |
8179 | |
8180 | ||
8181 | if test -n "$GCC_FOR_TARGET"; then | |
8182 | ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET | |
8183 | elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
8184 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
8185 | fi | |
8186 | ||
8187 | if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
8188 | for ncn_progname in gcc; do | |
8189 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8190 | set dummy ${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
8191 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8192 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
278a7a38 AO |
8193 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then |
8194 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8195 | else | |
8196 | if test -n "$GCC_FOR_TARGET"; then | |
8197 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
8198 | else | |
8199 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8200 | for as_dir in $PATH | |
8201 | do | |
8202 | IFS=$as_save_IFS | |
8203 | test -z "$as_dir" && as_dir=. | |
8204 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 8205 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 AO |
8206 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
8207 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8208 | break 2 | |
8209 | fi | |
8210 | done | |
8211 | done | |
8212 | ||
8213 | fi | |
8214 | fi | |
8215 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
8216 | if test -n "$GCC_FOR_TARGET"; then | |
2aeb72e9 DD |
8217 | echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5 |
8218 | echo "${ECHO_T}$GCC_FOR_TARGET" >&6 | |
278a7a38 | 8219 | else |
2aeb72e9 DD |
8220 | echo "$as_me:$LINENO: result: no" >&5 |
8221 | echo "${ECHO_T}no" >&6 | |
278a7a38 AO |
8222 | fi |
8223 | ||
8224 | done | |
8225 | fi | |
8226 | ||
8227 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 8228 | for ncn_progname in gcc; do |
2aeb72e9 DD |
8229 | echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
8230 | echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6 | |
d1f8db0c PB |
8231 | if test -x $with_build_time_tools/${ncn_progname}; then |
8232 | ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
2aeb72e9 DD |
8233 | echo "$as_me:$LINENO: result: yes" >&5 |
8234 | echo "${ECHO_T}yes" >&6 | |
e8b05380 PB |
8235 | break |
8236 | else | |
2aeb72e9 DD |
8237 | echo "$as_me:$LINENO: result: no" >&5 |
8238 | echo "${ECHO_T}no" >&6 | |
e8b05380 PB |
8239 | fi |
8240 | done | |
8241 | fi | |
8242 | ||
8243 | if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then | |
8244 | for ncn_progname in gcc; do | |
8245 | if test -n "$ncn_target_tool_prefix"; then | |
8246 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 8247 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
2aeb72e9 DD |
8248 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8249 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
8250 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then |
8251 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 | 8252 | else |
e8b05380 PB |
8253 | if test -n "$GCC_FOR_TARGET"; then |
8254 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 8255 | else |
1c710c3c DJ |
8256 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8257 | for as_dir in $PATH | |
8258 | do | |
8259 | IFS=$as_save_IFS | |
8260 | test -z "$as_dir" && as_dir=. | |
8261 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 8262 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
8263 | ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
8264 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8265 | break 2 | |
8266 | fi | |
8267 | done | |
8268 | done | |
8269 | ||
ca9f4b81 AO |
8270 | fi |
8271 | fi | |
1c710c3c | 8272 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
e8b05380 | 8273 | if test -n "$GCC_FOR_TARGET"; then |
2aeb72e9 DD |
8274 | echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5 |
8275 | echo "${ECHO_T}$GCC_FOR_TARGET" >&6 | |
ca9f4b81 | 8276 | else |
2aeb72e9 DD |
8277 | echo "$as_me:$LINENO: result: no" >&5 |
8278 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 AO |
8279 | fi |
8280 | ||
e8b05380 PB |
8281 | fi |
8282 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then | |
8283 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 8284 | set dummy ${ncn_progname}; ac_word=$2 |
2aeb72e9 DD |
8285 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8286 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
8287 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then |
8288 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 | 8289 | else |
e8b05380 PB |
8290 | if test -n "$GCC_FOR_TARGET"; then |
8291 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 8292 | else |
1c710c3c DJ |
8293 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8294 | for as_dir in $PATH | |
8295 | do | |
8296 | IFS=$as_save_IFS | |
8297 | test -z "$as_dir" && as_dir=. | |
8298 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 8299 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
8300 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
8301 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8302 | break 2 | |
8303 | fi | |
8304 | done | |
8305 | done | |
8306 | ||
ca9f4b81 AO |
8307 | fi |
8308 | fi | |
1c710c3c | 8309 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
e8b05380 | 8310 | if test -n "$GCC_FOR_TARGET"; then |
2aeb72e9 DD |
8311 | echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5 |
8312 | echo "${ECHO_T}$GCC_FOR_TARGET" >&6 | |
ca9f4b81 | 8313 | else |
2aeb72e9 DD |
8314 | echo "$as_me:$LINENO: result: no" >&5 |
8315 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 | 8316 | fi |
1c710c3c | 8317 | |
e8b05380 PB |
8318 | fi |
8319 | test -n "$ac_cv_prog_GCC_FOR_TARGET" && break | |
8320 | done | |
8321 | fi | |
1c710c3c | 8322 | |
e8b05380 PB |
8323 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then |
8324 | GCC_FOR_TARGET="${CC_FOR_TARGET}" | |
8325 | fi | |
8326 | ||
278a7a38 AO |
8327 | |
8328 | ||
8329 | if test -n "$GCJ_FOR_TARGET"; then | |
8330 | ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET | |
8331 | elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
8332 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
8333 | fi | |
8334 | ||
8335 | if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
8336 | for ncn_progname in gcj; do | |
8337 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8338 | set dummy ${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
8339 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8340 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
278a7a38 AO |
8341 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then |
8342 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8343 | else | |
8344 | if test -n "$GCJ_FOR_TARGET"; then | |
8345 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
8346 | else | |
8347 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8348 | for as_dir in $PATH | |
8349 | do | |
8350 | IFS=$as_save_IFS | |
8351 | test -z "$as_dir" && as_dir=. | |
8352 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 8353 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 AO |
8354 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}" |
8355 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8356 | break 2 | |
8357 | fi | |
8358 | done | |
8359 | done | |
8360 | ||
8361 | fi | |
8362 | fi | |
8363 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
8364 | if test -n "$GCJ_FOR_TARGET"; then | |
2aeb72e9 DD |
8365 | echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5 |
8366 | echo "${ECHO_T}$GCJ_FOR_TARGET" >&6 | |
278a7a38 | 8367 | else |
2aeb72e9 DD |
8368 | echo "$as_me:$LINENO: result: no" >&5 |
8369 | echo "${ECHO_T}no" >&6 | |
278a7a38 AO |
8370 | fi |
8371 | ||
8372 | done | |
8373 | fi | |
8374 | ||
8375 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 8376 | for ncn_progname in gcj; do |
2aeb72e9 DD |
8377 | echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
8378 | echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6 | |
d1f8db0c PB |
8379 | if test -x $with_build_time_tools/${ncn_progname}; then |
8380 | ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
2aeb72e9 DD |
8381 | echo "$as_me:$LINENO: result: yes" >&5 |
8382 | echo "${ECHO_T}yes" >&6 | |
e8b05380 PB |
8383 | break |
8384 | else | |
2aeb72e9 DD |
8385 | echo "$as_me:$LINENO: result: no" >&5 |
8386 | echo "${ECHO_T}no" >&6 | |
e8b05380 PB |
8387 | fi |
8388 | done | |
8389 | fi | |
8390 | ||
8391 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
8392 | for ncn_progname in gcj; do | |
8393 | if test -n "$ncn_target_tool_prefix"; then | |
8394 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8395 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
8396 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8397 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
8398 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then |
8399 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
e8b05380 | 8400 | else |
fb0103e5 RG |
8401 | if test -n "$GCJ_FOR_TARGET"; then |
8402 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
8403 | else | |
1c710c3c DJ |
8404 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8405 | for as_dir in $PATH | |
8406 | do | |
8407 | IFS=$as_save_IFS | |
8408 | test -z "$as_dir" && as_dir=. | |
8409 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 8410 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
8411 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
8412 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8413 | break 2 | |
8414 | fi | |
8415 | done | |
8416 | done | |
8417 | ||
e8b05380 PB |
8418 | fi |
8419 | fi | |
278a7a38 AO |
8420 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET |
8421 | if test -n "$GCJ_FOR_TARGET"; then | |
2aeb72e9 DD |
8422 | echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5 |
8423 | echo "${ECHO_T}$GCJ_FOR_TARGET" >&6 | |
278a7a38 | 8424 | else |
2aeb72e9 DD |
8425 | echo "$as_me:$LINENO: result: no" >&5 |
8426 | echo "${ECHO_T}no" >&6 | |
278a7a38 AO |
8427 | fi |
8428 | ||
8429 | fi | |
8430 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then | |
8431 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8432 | set dummy ${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
8433 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8434 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
278a7a38 AO |
8435 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then |
8436 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8437 | else | |
8438 | if test -n "$GCJ_FOR_TARGET"; then | |
8439 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
8440 | else | |
8441 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8442 | for as_dir in $PATH | |
8443 | do | |
8444 | IFS=$as_save_IFS | |
8445 | test -z "$as_dir" && as_dir=. | |
8446 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 8447 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 AO |
8448 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}" |
8449 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8450 | break 2 | |
8451 | fi | |
8452 | done | |
8453 | done | |
8454 | ||
8455 | fi | |
8456 | fi | |
8457 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
8458 | if test -n "$GCJ_FOR_TARGET"; then | |
2aeb72e9 DD |
8459 | echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5 |
8460 | echo "${ECHO_T}$GCJ_FOR_TARGET" >&6 | |
278a7a38 | 8461 | else |
2aeb72e9 DD |
8462 | echo "$as_me:$LINENO: result: no" >&5 |
8463 | echo "${ECHO_T}no" >&6 | |
278a7a38 AO |
8464 | fi |
8465 | ||
8466 | fi | |
8467 | test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break | |
8468 | done | |
8469 | fi | |
8470 | ||
8471 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then | |
8472 | set dummy gcj | |
8473 | if test $build = $target ; then | |
8474 | GCJ_FOR_TARGET="$2" | |
8475 | else | |
8476 | GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
8477 | fi | |
8478 | fi | |
8479 | ||
8480 | ||
8481 | ||
8482 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
8483 | ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET | |
8484 | elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
8485 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET | |
e8b05380 PB |
8486 | fi |
8487 | ||
278a7a38 AO |
8488 | if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then |
8489 | for ncn_progname in gfortran; do | |
8490 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
e8b05380 | 8491 | set dummy ${ncn_progname}; ac_word=$2 |
2aeb72e9 DD |
8492 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8493 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
278a7a38 | 8494 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then |
1c710c3c | 8495 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
e8b05380 | 8496 | else |
278a7a38 AO |
8497 | if test -n "$GFORTRAN_FOR_TARGET"; then |
8498 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
e8b05380 | 8499 | else |
1c710c3c DJ |
8500 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8501 | for as_dir in $PATH | |
8502 | do | |
8503 | IFS=$as_save_IFS | |
8504 | test -z "$as_dir" && as_dir=. | |
8505 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 8506 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 8507 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
1c710c3c DJ |
8508 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8509 | break 2 | |
8510 | fi | |
8511 | done | |
8512 | done | |
8513 | ||
e8b05380 PB |
8514 | fi |
8515 | fi | |
278a7a38 AO |
8516 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
8517 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
2aeb72e9 DD |
8518 | echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5 |
8519 | echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6 | |
e8b05380 | 8520 | else |
2aeb72e9 DD |
8521 | echo "$as_me:$LINENO: result: no" >&5 |
8522 | echo "${ECHO_T}no" >&6 | |
e8b05380 | 8523 | fi |
1c710c3c | 8524 | |
e8b05380 PB |
8525 | done |
8526 | fi | |
1c710c3c | 8527 | |
278a7a38 | 8528 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then |
e8b05380 | 8529 | for ncn_progname in gfortran; do |
2aeb72e9 DD |
8530 | echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
8531 | echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6 | |
d1f8db0c PB |
8532 | if test -x $with_build_time_tools/${ncn_progname}; then |
8533 | ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
2aeb72e9 DD |
8534 | echo "$as_me:$LINENO: result: yes" >&5 |
8535 | echo "${ECHO_T}yes" >&6 | |
e8b05380 PB |
8536 | break |
8537 | else | |
2aeb72e9 DD |
8538 | echo "$as_me:$LINENO: result: no" >&5 |
8539 | echo "${ECHO_T}no" >&6 | |
e8b05380 PB |
8540 | fi |
8541 | done | |
8542 | fi | |
8543 | ||
8544 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
8545 | for ncn_progname in gfortran; do | |
8546 | if test -n "$ncn_target_tool_prefix"; then | |
8547 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8548 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
8549 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8550 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
8551 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then |
8552 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
e8b05380 PB |
8553 | else |
8554 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
1c710c3c DJ |
8555 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. |
8556 | else | |
8557 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8558 | for as_dir in $PATH | |
8559 | do | |
8560 | IFS=$as_save_IFS | |
8561 | test -z "$as_dir" && as_dir=. | |
8562 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 8563 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
8564 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
8565 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8566 | break 2 | |
8567 | fi | |
8568 | done | |
8569 | done | |
8570 | ||
e8b05380 PB |
8571 | fi |
8572 | fi | |
1c710c3c | 8573 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
e8b05380 | 8574 | if test -n "$GFORTRAN_FOR_TARGET"; then |
2aeb72e9 DD |
8575 | echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5 |
8576 | echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6 | |
e8b05380 | 8577 | else |
2aeb72e9 DD |
8578 | echo "$as_me:$LINENO: result: no" >&5 |
8579 | echo "${ECHO_T}no" >&6 | |
e8b05380 PB |
8580 | fi |
8581 | ||
8582 | fi | |
8583 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then | |
8584 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8585 | set dummy ${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
8586 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8587 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
8588 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then |
8589 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
e8b05380 PB |
8590 | else |
8591 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
8592 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
8593 | else | |
1c710c3c DJ |
8594 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8595 | for as_dir in $PATH | |
8596 | do | |
8597 | IFS=$as_save_IFS | |
8598 | test -z "$as_dir" && as_dir=. | |
8599 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 8600 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
8601 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
8602 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8603 | break 2 | |
8604 | fi | |
8605 | done | |
8606 | done | |
8607 | ||
e8b05380 PB |
8608 | fi |
8609 | fi | |
1c710c3c | 8610 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
e8b05380 | 8611 | if test -n "$GFORTRAN_FOR_TARGET"; then |
2aeb72e9 DD |
8612 | echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5 |
8613 | echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6 | |
e8b05380 | 8614 | else |
2aeb72e9 DD |
8615 | echo "$as_me:$LINENO: result: no" >&5 |
8616 | echo "${ECHO_T}no" >&6 | |
e8b05380 | 8617 | fi |
1c710c3c | 8618 | |
e8b05380 PB |
8619 | fi |
8620 | test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break | |
8621 | done | |
8622 | fi | |
1c710c3c | 8623 | |
e8b05380 PB |
8624 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then |
8625 | set dummy gfortran | |
2693c0b0 | 8626 | if test $build = $target ; then |
e8b05380 | 8627 | GFORTRAN_FOR_TARGET="$2" |
ca9f4b81 | 8628 | else |
e8b05380 PB |
8629 | GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2" |
8630 | fi | |
8631 | fi | |
8632 | ||
8633 | ||
8634 | ||
e8b05380 PB |
8635 | cat > conftest.c << \EOF |
8636 | #ifdef __GNUC__ | |
8637 | gcc_yay; | |
8638 | #endif | |
8639 | EOF | |
8640 | if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then | |
8641 | have_gcc_for_target=yes | |
8642 | else | |
8643 | GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc | |
8644 | have_gcc_for_target=no | |
8645 | fi | |
8646 | rm conftest.c | |
8647 | ||
8648 | ||
8649 | ||
8650 | ||
8651 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
8652 | if test -n "$with_build_time_tools"; then | |
2aeb72e9 DD |
8653 | echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5 |
8654 | echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6 | |
d1f8db0c PB |
8655 | if test -x $with_build_time_tools/ar; then |
8656 | AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar | |
8657 | ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
2aeb72e9 DD |
8658 | echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5 |
8659 | echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6 | |
d1f8db0c | 8660 | else |
2aeb72e9 DD |
8661 | echo "$as_me:$LINENO: result: no" >&5 |
8662 | echo "${ECHO_T}no" >&6 | |
d1f8db0c | 8663 | fi |
e8b05380 PB |
8664 | elif test $build != $host && test $have_gcc_for_target = yes; then |
8665 | AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar` | |
901119ae KT |
8666 | test $AR_FOR_TARGET=ar && AR_FOR_TARGET= |
8667 | ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
e8b05380 PB |
8668 | fi |
8669 | fi | |
3e19841a | 8670 | if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
8671 | # Extract the first word of "ar", so it can be a program name with args. |
8672 | set dummy ar; ac_word=$2 | |
2aeb72e9 DD |
8673 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8674 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
8675 | if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then |
8676 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
e8b05380 | 8677 | else |
1c710c3c DJ |
8678 | case $AR_FOR_TARGET in |
8679 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
8680 | ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path. |
8681 | ;; | |
e8b05380 | 8682 | *) |
1c710c3c DJ |
8683 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8684 | for as_dir in $gcc_cv_tool_dirs | |
8685 | do | |
8686 | IFS=$as_save_IFS | |
8687 | test -z "$as_dir" && as_dir=. | |
8688 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 8689 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
8690 | ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
8691 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8692 | break 2 | |
8693 | fi | |
8694 | done | |
8695 | done | |
8696 | ||
e8b05380 PB |
8697 | ;; |
8698 | esac | |
8699 | fi | |
1c710c3c | 8700 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET |
2aeb72e9 | 8701 | |
e8b05380 | 8702 | if test -n "$AR_FOR_TARGET"; then |
2aeb72e9 DD |
8703 | echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5 |
8704 | echo "${ECHO_T}$AR_FOR_TARGET" >&6 | |
e8b05380 | 8705 | else |
2aeb72e9 DD |
8706 | echo "$as_me:$LINENO: result: no" >&5 |
8707 | echo "${ECHO_T}no" >&6 | |
4de997d1 PB |
8708 | fi |
8709 | ||
e8b05380 PB |
8710 | fi |
8711 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
278a7a38 AO |
8712 | |
8713 | ||
8714 | if test -n "$AR_FOR_TARGET"; then | |
8715 | ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET | |
8716 | elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
8717 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
8718 | fi | |
8719 | ||
8720 | if test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
8721 | for ncn_progname in ar; do | |
8722 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8723 | set dummy ${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
8724 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8725 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
278a7a38 AO |
8726 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then |
8727 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8728 | else | |
8729 | if test -n "$AR_FOR_TARGET"; then | |
8730 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
8731 | else | |
8732 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8733 | for as_dir in $PATH | |
8734 | do | |
8735 | IFS=$as_save_IFS | |
8736 | test -z "$as_dir" && as_dir=. | |
8737 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 8738 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 AO |
8739 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
8740 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8741 | break 2 | |
8742 | fi | |
8743 | done | |
8744 | done | |
8745 | ||
8746 | fi | |
8747 | fi | |
8748 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
8749 | if test -n "$AR_FOR_TARGET"; then | |
2aeb72e9 DD |
8750 | echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5 |
8751 | echo "${ECHO_T}$AR_FOR_TARGET" >&6 | |
278a7a38 | 8752 | else |
2aeb72e9 DD |
8753 | echo "$as_me:$LINENO: result: no" >&5 |
8754 | echo "${ECHO_T}no" >&6 | |
278a7a38 AO |
8755 | fi |
8756 | ||
8757 | done | |
8758 | fi | |
8759 | ||
8760 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 8761 | for ncn_progname in ar; do |
2aeb72e9 DD |
8762 | echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
8763 | echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6 | |
d1f8db0c PB |
8764 | if test -x $with_build_time_tools/${ncn_progname}; then |
8765 | ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
2aeb72e9 DD |
8766 | echo "$as_me:$LINENO: result: yes" >&5 |
8767 | echo "${ECHO_T}yes" >&6 | |
e8b05380 PB |
8768 | break |
8769 | else | |
2aeb72e9 DD |
8770 | echo "$as_me:$LINENO: result: no" >&5 |
8771 | echo "${ECHO_T}no" >&6 | |
e8b05380 PB |
8772 | fi |
8773 | done | |
8774 | fi | |
8775 | ||
8776 | if test -z "$ac_cv_prog_AR_FOR_TARGET"; then | |
8777 | for ncn_progname in ar; do | |
8778 | if test -n "$ncn_target_tool_prefix"; then | |
8779 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 8780 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
2aeb72e9 DD |
8781 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8782 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
8783 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then |
8784 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4de997d1 | 8785 | else |
e8b05380 PB |
8786 | if test -n "$AR_FOR_TARGET"; then |
8787 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 8788 | else |
1c710c3c DJ |
8789 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8790 | for as_dir in $PATH | |
8791 | do | |
8792 | IFS=$as_save_IFS | |
8793 | test -z "$as_dir" && as_dir=. | |
8794 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 8795 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
8796 | ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
8797 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8798 | break 2 | |
8799 | fi | |
8800 | done | |
8801 | done | |
8802 | ||
4de997d1 PB |
8803 | fi |
8804 | fi | |
1c710c3c | 8805 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
e8b05380 | 8806 | if test -n "$AR_FOR_TARGET"; then |
2aeb72e9 DD |
8807 | echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5 |
8808 | echo "${ECHO_T}$AR_FOR_TARGET" >&6 | |
4de997d1 | 8809 | else |
2aeb72e9 DD |
8810 | echo "$as_me:$LINENO: result: no" >&5 |
8811 | echo "${ECHO_T}no" >&6 | |
4de997d1 PB |
8812 | fi |
8813 | ||
e8b05380 PB |
8814 | fi |
8815 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then | |
8816 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8817 | set dummy ${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
8818 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8819 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
8820 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then |
8821 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
e8b05380 PB |
8822 | else |
8823 | if test -n "$AR_FOR_TARGET"; then | |
8824 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
8825 | else | |
1c710c3c DJ |
8826 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8827 | for as_dir in $PATH | |
8828 | do | |
8829 | IFS=$as_save_IFS | |
8830 | test -z "$as_dir" && as_dir=. | |
8831 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 8832 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
8833 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
8834 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8835 | break 2 | |
8836 | fi | |
8837 | done | |
8838 | done | |
8839 | ||
e8b05380 PB |
8840 | fi |
8841 | fi | |
1c710c3c | 8842 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
e8b05380 | 8843 | if test -n "$AR_FOR_TARGET"; then |
2aeb72e9 DD |
8844 | echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5 |
8845 | echo "${ECHO_T}$AR_FOR_TARGET" >&6 | |
e8b05380 | 8846 | else |
2aeb72e9 DD |
8847 | echo "$as_me:$LINENO: result: no" >&5 |
8848 | echo "${ECHO_T}no" >&6 | |
e8b05380 | 8849 | fi |
1c710c3c | 8850 | |
e8b05380 PB |
8851 | fi |
8852 | test -n "$ac_cv_prog_AR_FOR_TARGET" && break | |
8853 | done | |
8854 | fi | |
1c710c3c | 8855 | |
e8b05380 PB |
8856 | if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then |
8857 | set dummy ar | |
8858 | if test $build = $target ; then | |
8859 | AR_FOR_TARGET="$2" | |
8860 | else | |
8861 | AR_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
2693c0b0 | 8862 | fi |
e8b05380 PB |
8863 | fi |
8864 | ||
d1f8db0c PB |
8865 | else |
8866 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET | |
e8b05380 PB |
8867 | fi |
8868 | ||
8869 | ||
8870 | ||
8871 | ||
8872 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
8873 | if test -n "$with_build_time_tools"; then | |
2aeb72e9 DD |
8874 | echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5 |
8875 | echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6 | |
d1f8db0c PB |
8876 | if test -x $with_build_time_tools/as; then |
8877 | AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as | |
8878 | ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
2aeb72e9 DD |
8879 | echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5 |
8880 | echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6 | |
d1f8db0c | 8881 | else |
2aeb72e9 DD |
8882 | echo "$as_me:$LINENO: result: no" >&5 |
8883 | echo "${ECHO_T}no" >&6 | |
d1f8db0c | 8884 | fi |
e8b05380 PB |
8885 | elif test $build != $host && test $have_gcc_for_target = yes; then |
8886 | AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as` | |
901119ae KT |
8887 | test $AS_FOR_TARGET=as && AS_FOR_TARGET= |
8888 | ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
e8b05380 PB |
8889 | fi |
8890 | fi | |
3e19841a | 8891 | if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
8892 | # Extract the first word of "as", so it can be a program name with args. |
8893 | set dummy as; ac_word=$2 | |
2aeb72e9 DD |
8894 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8895 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
8896 | if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then |
8897 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
e8b05380 | 8898 | else |
1c710c3c DJ |
8899 | case $AS_FOR_TARGET in |
8900 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
8901 | ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path. |
8902 | ;; | |
e8b05380 | 8903 | *) |
1c710c3c DJ |
8904 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8905 | for as_dir in $gcc_cv_tool_dirs | |
8906 | do | |
8907 | IFS=$as_save_IFS | |
8908 | test -z "$as_dir" && as_dir=. | |
8909 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 8910 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
8911 | ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
8912 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8913 | break 2 | |
8914 | fi | |
8915 | done | |
8916 | done | |
8917 | ||
e8b05380 PB |
8918 | ;; |
8919 | esac | |
8920 | fi | |
1c710c3c | 8921 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET |
2aeb72e9 | 8922 | |
e8b05380 | 8923 | if test -n "$AS_FOR_TARGET"; then |
2aeb72e9 DD |
8924 | echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5 |
8925 | echo "${ECHO_T}$AS_FOR_TARGET" >&6 | |
e8b05380 | 8926 | else |
2aeb72e9 DD |
8927 | echo "$as_me:$LINENO: result: no" >&5 |
8928 | echo "${ECHO_T}no" >&6 | |
e8b05380 PB |
8929 | fi |
8930 | ||
8931 | fi | |
8932 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
278a7a38 AO |
8933 | |
8934 | ||
8935 | if test -n "$AS_FOR_TARGET"; then | |
8936 | ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET | |
8937 | elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
8938 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
8939 | fi | |
8940 | ||
8941 | if test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
8942 | for ncn_progname in as; do | |
8943 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8944 | set dummy ${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
8945 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8946 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
278a7a38 AO |
8947 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then |
8948 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8949 | else | |
8950 | if test -n "$AS_FOR_TARGET"; then | |
8951 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
8952 | else | |
8953 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8954 | for as_dir in $PATH | |
8955 | do | |
8956 | IFS=$as_save_IFS | |
8957 | test -z "$as_dir" && as_dir=. | |
8958 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 8959 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 AO |
8960 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
8961 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8962 | break 2 | |
8963 | fi | |
8964 | done | |
8965 | done | |
8966 | ||
8967 | fi | |
8968 | fi | |
8969 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
8970 | if test -n "$AS_FOR_TARGET"; then | |
2aeb72e9 DD |
8971 | echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5 |
8972 | echo "${ECHO_T}$AS_FOR_TARGET" >&6 | |
278a7a38 | 8973 | else |
2aeb72e9 DD |
8974 | echo "$as_me:$LINENO: result: no" >&5 |
8975 | echo "${ECHO_T}no" >&6 | |
278a7a38 AO |
8976 | fi |
8977 | ||
8978 | done | |
8979 | fi | |
8980 | ||
8981 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 8982 | for ncn_progname in as; do |
2aeb72e9 DD |
8983 | echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
8984 | echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6 | |
d1f8db0c PB |
8985 | if test -x $with_build_time_tools/${ncn_progname}; then |
8986 | ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
2aeb72e9 DD |
8987 | echo "$as_me:$LINENO: result: yes" >&5 |
8988 | echo "${ECHO_T}yes" >&6 | |
e8b05380 PB |
8989 | break |
8990 | else | |
2aeb72e9 DD |
8991 | echo "$as_me:$LINENO: result: no" >&5 |
8992 | echo "${ECHO_T}no" >&6 | |
e8b05380 PB |
8993 | fi |
8994 | done | |
8995 | fi | |
8996 | ||
8997 | if test -z "$ac_cv_prog_AS_FOR_TARGET"; then | |
8998 | for ncn_progname in as; do | |
8999 | if test -n "$ncn_target_tool_prefix"; then | |
9000 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9001 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
9002 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9003 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
9004 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then |
9005 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
e8b05380 PB |
9006 | else |
9007 | if test -n "$AS_FOR_TARGET"; then | |
9008 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
9009 | else | |
1c710c3c DJ |
9010 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9011 | for as_dir in $PATH | |
9012 | do | |
9013 | IFS=$as_save_IFS | |
9014 | test -z "$as_dir" && as_dir=. | |
9015 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 9016 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
9017 | ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
9018 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9019 | break 2 | |
9020 | fi | |
9021 | done | |
9022 | done | |
9023 | ||
e8b05380 PB |
9024 | fi |
9025 | fi | |
1c710c3c | 9026 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
e8b05380 | 9027 | if test -n "$AS_FOR_TARGET"; then |
2aeb72e9 DD |
9028 | echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5 |
9029 | echo "${ECHO_T}$AS_FOR_TARGET" >&6 | |
e8b05380 | 9030 | else |
2aeb72e9 DD |
9031 | echo "$as_me:$LINENO: result: no" >&5 |
9032 | echo "${ECHO_T}no" >&6 | |
e8b05380 PB |
9033 | fi |
9034 | ||
9035 | fi | |
9036 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then | |
9037 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 9038 | set dummy ${ncn_progname}; ac_word=$2 |
2aeb72e9 DD |
9039 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9040 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
9041 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then |
9042 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4de997d1 | 9043 | else |
e8b05380 PB |
9044 | if test -n "$AS_FOR_TARGET"; then |
9045 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 9046 | else |
1c710c3c DJ |
9047 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9048 | for as_dir in $PATH | |
9049 | do | |
9050 | IFS=$as_save_IFS | |
9051 | test -z "$as_dir" && as_dir=. | |
9052 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 9053 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
9054 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
9055 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9056 | break 2 | |
9057 | fi | |
9058 | done | |
9059 | done | |
9060 | ||
4de997d1 PB |
9061 | fi |
9062 | fi | |
1c710c3c | 9063 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
e8b05380 | 9064 | if test -n "$AS_FOR_TARGET"; then |
2aeb72e9 DD |
9065 | echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5 |
9066 | echo "${ECHO_T}$AS_FOR_TARGET" >&6 | |
4de997d1 | 9067 | else |
2aeb72e9 DD |
9068 | echo "$as_me:$LINENO: result: no" >&5 |
9069 | echo "${ECHO_T}no" >&6 | |
4de997d1 | 9070 | fi |
1c710c3c | 9071 | |
e8b05380 PB |
9072 | fi |
9073 | test -n "$ac_cv_prog_AS_FOR_TARGET" && break | |
9074 | done | |
9075 | fi | |
1c710c3c | 9076 | |
e8b05380 PB |
9077 | if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then |
9078 | set dummy as | |
9079 | if test $build = $target ; then | |
9080 | AS_FOR_TARGET="$2" | |
9081 | else | |
9082 | AS_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
4de997d1 | 9083 | fi |
e8b05380 | 9084 | fi |
2693c0b0 | 9085 | |
d1f8db0c PB |
9086 | else |
9087 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET | |
4de997d1 PB |
9088 | fi |
9089 | ||
e8b05380 PB |
9090 | |
9091 | ||
9092 | ||
9093 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
9094 | if test -n "$with_build_time_tools"; then | |
2aeb72e9 DD |
9095 | echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5 |
9096 | echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6 | |
d1f8db0c PB |
9097 | if test -x $with_build_time_tools/dlltool; then |
9098 | DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool | |
9099 | ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
2aeb72e9 DD |
9100 | echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5 |
9101 | echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6 | |
d1f8db0c | 9102 | else |
2aeb72e9 DD |
9103 | echo "$as_me:$LINENO: result: no" >&5 |
9104 | echo "${ECHO_T}no" >&6 | |
d1f8db0c | 9105 | fi |
e8b05380 PB |
9106 | elif test $build != $host && test $have_gcc_for_target = yes; then |
9107 | DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool` | |
901119ae KT |
9108 | test $DLLTOOL_FOR_TARGET=dlltool && DLLTOOL_FOR_TARGET= |
9109 | ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
e8b05380 PB |
9110 | fi |
9111 | fi | |
3e19841a | 9112 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
9113 | # Extract the first word of "dlltool", so it can be a program name with args. |
9114 | set dummy dlltool; ac_word=$2 | |
2aeb72e9 DD |
9115 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9116 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
9117 | if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then |
9118 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4de997d1 | 9119 | else |
1c710c3c DJ |
9120 | case $DLLTOOL_FOR_TARGET in |
9121 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
9122 | ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path. |
9123 | ;; | |
e8b05380 | 9124 | *) |
1c710c3c DJ |
9125 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9126 | for as_dir in $gcc_cv_tool_dirs | |
9127 | do | |
9128 | IFS=$as_save_IFS | |
9129 | test -z "$as_dir" && as_dir=. | |
9130 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 9131 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
9132 | ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
9133 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9134 | break 2 | |
9135 | fi | |
9136 | done | |
9137 | done | |
9138 | ||
e8b05380 PB |
9139 | ;; |
9140 | esac | |
4de997d1 | 9141 | fi |
1c710c3c | 9142 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET |
2aeb72e9 | 9143 | |
e8b05380 | 9144 | if test -n "$DLLTOOL_FOR_TARGET"; then |
2aeb72e9 DD |
9145 | echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5 |
9146 | echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6 | |
4de997d1 | 9147 | else |
2aeb72e9 DD |
9148 | echo "$as_me:$LINENO: result: no" >&5 |
9149 | echo "${ECHO_T}no" >&6 | |
4de997d1 PB |
9150 | fi |
9151 | ||
e8b05380 PB |
9152 | fi |
9153 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
278a7a38 AO |
9154 | |
9155 | ||
9156 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
9157 | ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
9158 | elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
9159 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
9160 | fi | |
9161 | ||
9162 | if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
9163 | for ncn_progname in dlltool; do | |
9164 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9165 | set dummy ${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
9166 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9167 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
278a7a38 AO |
9168 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then |
9169 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9170 | else | |
9171 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
9172 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
9173 | else | |
9174 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9175 | for as_dir in $PATH | |
9176 | do | |
9177 | IFS=$as_save_IFS | |
9178 | test -z "$as_dir" && as_dir=. | |
9179 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 9180 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 AO |
9181 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
9182 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9183 | break 2 | |
9184 | fi | |
9185 | done | |
9186 | done | |
9187 | ||
9188 | fi | |
9189 | fi | |
9190 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
9191 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
2aeb72e9 DD |
9192 | echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5 |
9193 | echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6 | |
278a7a38 | 9194 | else |
2aeb72e9 DD |
9195 | echo "$as_me:$LINENO: result: no" >&5 |
9196 | echo "${ECHO_T}no" >&6 | |
278a7a38 AO |
9197 | fi |
9198 | ||
9199 | done | |
9200 | fi | |
9201 | ||
9202 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 9203 | for ncn_progname in dlltool; do |
2aeb72e9 DD |
9204 | echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
9205 | echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6 | |
d1f8db0c PB |
9206 | if test -x $with_build_time_tools/${ncn_progname}; then |
9207 | ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
2aeb72e9 DD |
9208 | echo "$as_me:$LINENO: result: yes" >&5 |
9209 | echo "${ECHO_T}yes" >&6 | |
e8b05380 PB |
9210 | break |
9211 | else | |
2aeb72e9 DD |
9212 | echo "$as_me:$LINENO: result: no" >&5 |
9213 | echo "${ECHO_T}no" >&6 | |
e8b05380 PB |
9214 | fi |
9215 | done | |
9216 | fi | |
9217 | ||
9218 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
9219 | for ncn_progname in dlltool; do | |
9220 | if test -n "$ncn_target_tool_prefix"; then | |
9221 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9222 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
9223 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9224 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
9225 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then |
9226 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4de997d1 | 9227 | else |
e8b05380 PB |
9228 | if test -n "$DLLTOOL_FOR_TARGET"; then |
9229 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 9230 | else |
1c710c3c DJ |
9231 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9232 | for as_dir in $PATH | |
9233 | do | |
9234 | IFS=$as_save_IFS | |
9235 | test -z "$as_dir" && as_dir=. | |
9236 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 9237 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
9238 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
9239 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9240 | break 2 | |
9241 | fi | |
9242 | done | |
9243 | done | |
9244 | ||
4de997d1 PB |
9245 | fi |
9246 | fi | |
1c710c3c | 9247 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
e8b05380 | 9248 | if test -n "$DLLTOOL_FOR_TARGET"; then |
2aeb72e9 DD |
9249 | echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5 |
9250 | echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6 | |
4de997d1 | 9251 | else |
2aeb72e9 DD |
9252 | echo "$as_me:$LINENO: result: no" >&5 |
9253 | echo "${ECHO_T}no" >&6 | |
4de997d1 | 9254 | fi |
4de997d1 | 9255 | |
e8b05380 PB |
9256 | fi |
9257 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then | |
9258 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9259 | set dummy ${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
9260 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9261 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
9262 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then |
9263 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4de997d1 | 9264 | else |
e8b05380 PB |
9265 | if test -n "$DLLTOOL_FOR_TARGET"; then |
9266 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 9267 | else |
1c710c3c DJ |
9268 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9269 | for as_dir in $PATH | |
9270 | do | |
9271 | IFS=$as_save_IFS | |
9272 | test -z "$as_dir" && as_dir=. | |
9273 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 9274 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
9275 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
9276 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9277 | break 2 | |
9278 | fi | |
9279 | done | |
9280 | done | |
9281 | ||
4de997d1 PB |
9282 | fi |
9283 | fi | |
1c710c3c | 9284 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
e8b05380 | 9285 | if test -n "$DLLTOOL_FOR_TARGET"; then |
2aeb72e9 DD |
9286 | echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5 |
9287 | echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6 | |
4de997d1 | 9288 | else |
2aeb72e9 DD |
9289 | echo "$as_me:$LINENO: result: no" >&5 |
9290 | echo "${ECHO_T}no" >&6 | |
4de997d1 | 9291 | fi |
1c710c3c | 9292 | |
e8b05380 PB |
9293 | fi |
9294 | test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break | |
9295 | done | |
9296 | fi | |
1c710c3c | 9297 | |
e8b05380 PB |
9298 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then |
9299 | set dummy dlltool | |
9300 | if test $build = $target ; then | |
9301 | DLLTOOL_FOR_TARGET="$2" | |
9302 | else | |
9303 | DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
9304 | fi | |
9305 | fi | |
9306 | ||
d1f8db0c PB |
9307 | else |
9308 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET | |
e8b05380 PB |
9309 | fi |
9310 | ||
4de997d1 | 9311 | |
e8b05380 PB |
9312 | |
9313 | ||
9314 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
9315 | if test -n "$with_build_time_tools"; then | |
2aeb72e9 DD |
9316 | echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5 |
9317 | echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6 | |
d1f8db0c PB |
9318 | if test -x $with_build_time_tools/ld; then |
9319 | LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld | |
9320 | ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
2aeb72e9 DD |
9321 | echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5 |
9322 | echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6 | |
d1f8db0c | 9323 | else |
2aeb72e9 DD |
9324 | echo "$as_me:$LINENO: result: no" >&5 |
9325 | echo "${ECHO_T}no" >&6 | |
d1f8db0c | 9326 | fi |
e8b05380 PB |
9327 | elif test $build != $host && test $have_gcc_for_target = yes; then |
9328 | LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld` | |
901119ae KT |
9329 | test $LD_FOR_TARGET=ld && LD_FOR_TARGET= |
9330 | ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
2693c0b0 | 9331 | fi |
e8b05380 | 9332 | fi |
3e19841a | 9333 | if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
9334 | # Extract the first word of "ld", so it can be a program name with args. |
9335 | set dummy ld; ac_word=$2 | |
2aeb72e9 DD |
9336 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9337 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
9338 | if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then |
9339 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4de997d1 | 9340 | else |
1c710c3c DJ |
9341 | case $LD_FOR_TARGET in |
9342 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
9343 | ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path. |
9344 | ;; | |
e8b05380 | 9345 | *) |
1c710c3c DJ |
9346 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9347 | for as_dir in $gcc_cv_tool_dirs | |
9348 | do | |
9349 | IFS=$as_save_IFS | |
9350 | test -z "$as_dir" && as_dir=. | |
9351 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 9352 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
9353 | ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
9354 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9355 | break 2 | |
9356 | fi | |
9357 | done | |
9358 | done | |
9359 | ||
e8b05380 PB |
9360 | ;; |
9361 | esac | |
4de997d1 | 9362 | fi |
1c710c3c | 9363 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET |
2aeb72e9 | 9364 | |
e8b05380 | 9365 | if test -n "$LD_FOR_TARGET"; then |
2aeb72e9 DD |
9366 | echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5 |
9367 | echo "${ECHO_T}$LD_FOR_TARGET" >&6 | |
4de997d1 | 9368 | else |
2aeb72e9 DD |
9369 | echo "$as_me:$LINENO: result: no" >&5 |
9370 | echo "${ECHO_T}no" >&6 | |
4de997d1 | 9371 | fi |
2693c0b0 | 9372 | |
e8b05380 PB |
9373 | fi |
9374 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
278a7a38 AO |
9375 | |
9376 | ||
9377 | if test -n "$LD_FOR_TARGET"; then | |
9378 | ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET | |
9379 | elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
9380 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
9381 | fi | |
9382 | ||
9383 | if test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
9384 | for ncn_progname in ld; do | |
9385 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9386 | set dummy ${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
9387 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9388 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
278a7a38 AO |
9389 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then |
9390 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9391 | else | |
9392 | if test -n "$LD_FOR_TARGET"; then | |
9393 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
9394 | else | |
9395 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9396 | for as_dir in $PATH | |
9397 | do | |
9398 | IFS=$as_save_IFS | |
9399 | test -z "$as_dir" && as_dir=. | |
9400 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 9401 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 AO |
9402 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
9403 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9404 | break 2 | |
9405 | fi | |
9406 | done | |
9407 | done | |
9408 | ||
9409 | fi | |
9410 | fi | |
9411 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
9412 | if test -n "$LD_FOR_TARGET"; then | |
2aeb72e9 DD |
9413 | echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5 |
9414 | echo "${ECHO_T}$LD_FOR_TARGET" >&6 | |
278a7a38 | 9415 | else |
2aeb72e9 DD |
9416 | echo "$as_me:$LINENO: result: no" >&5 |
9417 | echo "${ECHO_T}no" >&6 | |
278a7a38 AO |
9418 | fi |
9419 | ||
9420 | done | |
9421 | fi | |
9422 | ||
9423 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 9424 | for ncn_progname in ld; do |
2aeb72e9 DD |
9425 | echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
9426 | echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6 | |
d1f8db0c PB |
9427 | if test -x $with_build_time_tools/${ncn_progname}; then |
9428 | ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
2aeb72e9 DD |
9429 | echo "$as_me:$LINENO: result: yes" >&5 |
9430 | echo "${ECHO_T}yes" >&6 | |
e8b05380 PB |
9431 | break |
9432 | else | |
2aeb72e9 DD |
9433 | echo "$as_me:$LINENO: result: no" >&5 |
9434 | echo "${ECHO_T}no" >&6 | |
e8b05380 PB |
9435 | fi |
9436 | done | |
ca9f4b81 AO |
9437 | fi |
9438 | ||
e8b05380 PB |
9439 | if test -z "$ac_cv_prog_LD_FOR_TARGET"; then |
9440 | for ncn_progname in ld; do | |
9441 | if test -n "$ncn_target_tool_prefix"; then | |
9442 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 9443 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
2aeb72e9 DD |
9444 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9445 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
9446 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then |
9447 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 | 9448 | else |
4de997d1 PB |
9449 | if test -n "$LD_FOR_TARGET"; then |
9450 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 9451 | else |
1c710c3c DJ |
9452 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9453 | for as_dir in $PATH | |
9454 | do | |
9455 | IFS=$as_save_IFS | |
9456 | test -z "$as_dir" && as_dir=. | |
9457 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 9458 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
9459 | ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
9460 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9461 | break 2 | |
9462 | fi | |
9463 | done | |
9464 | done | |
9465 | ||
ca9f4b81 AO |
9466 | fi |
9467 | fi | |
1c710c3c | 9468 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
4de997d1 | 9469 | if test -n "$LD_FOR_TARGET"; then |
2aeb72e9 DD |
9470 | echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5 |
9471 | echo "${ECHO_T}$LD_FOR_TARGET" >&6 | |
ca9f4b81 | 9472 | else |
2aeb72e9 DD |
9473 | echo "$as_me:$LINENO: result: no" >&5 |
9474 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 AO |
9475 | fi |
9476 | ||
e8b05380 PB |
9477 | fi |
9478 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then | |
9479 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 9480 | set dummy ${ncn_progname}; ac_word=$2 |
2aeb72e9 DD |
9481 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9482 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
9483 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then |
9484 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 | 9485 | else |
2693c0b0 PB |
9486 | if test -n "$LD_FOR_TARGET"; then |
9487 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 9488 | else |
1c710c3c DJ |
9489 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9490 | for as_dir in $PATH | |
9491 | do | |
9492 | IFS=$as_save_IFS | |
9493 | test -z "$as_dir" && as_dir=. | |
9494 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 9495 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
9496 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
9497 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9498 | break 2 | |
9499 | fi | |
9500 | done | |
9501 | done | |
9502 | ||
ca9f4b81 AO |
9503 | fi |
9504 | fi | |
1c710c3c | 9505 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
2693c0b0 | 9506 | if test -n "$LD_FOR_TARGET"; then |
2aeb72e9 DD |
9507 | echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5 |
9508 | echo "${ECHO_T}$LD_FOR_TARGET" >&6 | |
ca9f4b81 | 9509 | else |
2aeb72e9 DD |
9510 | echo "$as_me:$LINENO: result: no" >&5 |
9511 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 | 9512 | fi |
1c710c3c | 9513 | |
e8b05380 PB |
9514 | fi |
9515 | test -n "$ac_cv_prog_LD_FOR_TARGET" && break | |
9516 | done | |
9517 | fi | |
1c710c3c | 9518 | |
2693c0b0 PB |
9519 | if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then |
9520 | set dummy ld | |
9521 | if test $build = $target ; then | |
9522 | LD_FOR_TARGET="$2" | |
ca9f4b81 | 9523 | else |
2693c0b0 | 9524 | LD_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ca9f4b81 | 9525 | fi |
ca9f4b81 AO |
9526 | fi |
9527 | ||
d1f8db0c PB |
9528 | else |
9529 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET | |
e8b05380 PB |
9530 | fi |
9531 | ||
9532 | ||
9533 | ||
9534 | ||
9535 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
9536 | if test -n "$with_build_time_tools"; then | |
2aeb72e9 DD |
9537 | echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5 |
9538 | echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6 | |
d1f8db0c PB |
9539 | if test -x $with_build_time_tools/lipo; then |
9540 | LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo | |
9541 | ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
2aeb72e9 DD |
9542 | echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5 |
9543 | echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6 | |
d1f8db0c | 9544 | else |
2aeb72e9 DD |
9545 | echo "$as_me:$LINENO: result: no" >&5 |
9546 | echo "${ECHO_T}no" >&6 | |
d1f8db0c | 9547 | fi |
e8b05380 PB |
9548 | elif test $build != $host && test $have_gcc_for_target = yes; then |
9549 | LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo` | |
901119ae KT |
9550 | test $LIPO_FOR_TARGET=lipo && LIPO_FOR_TARGET= |
9551 | ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
e8b05380 PB |
9552 | fi |
9553 | fi | |
278a7a38 AO |
9554 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
9555 | # Extract the first word of "lipo", so it can be a program name with args. | |
9556 | set dummy lipo; ac_word=$2 | |
2aeb72e9 DD |
9557 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9558 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
278a7a38 AO |
9559 | if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then |
9560 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9561 | else | |
9562 | case $LIPO_FOR_TARGET in | |
9563 | [\\/]* | ?:[\\/]*) | |
9564 | ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path. | |
9565 | ;; | |
9566 | *) | |
9567 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9568 | for as_dir in $gcc_cv_tool_dirs | |
9569 | do | |
9570 | IFS=$as_save_IFS | |
9571 | test -z "$as_dir" && as_dir=. | |
9572 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 9573 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 AO |
9574 | ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
9575 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9576 | break 2 | |
9577 | fi | |
9578 | done | |
9579 | done | |
9580 | ||
9581 | ;; | |
9582 | esac | |
9583 | fi | |
9584 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
2aeb72e9 | 9585 | |
278a7a38 | 9586 | if test -n "$LIPO_FOR_TARGET"; then |
2aeb72e9 DD |
9587 | echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5 |
9588 | echo "${ECHO_T}$LIPO_FOR_TARGET" >&6 | |
278a7a38 | 9589 | else |
2aeb72e9 DD |
9590 | echo "$as_me:$LINENO: result: no" >&5 |
9591 | echo "${ECHO_T}no" >&6 | |
278a7a38 AO |
9592 | fi |
9593 | ||
9594 | fi | |
9595 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
9596 | ||
9597 | ||
9598 | if test -n "$LIPO_FOR_TARGET"; then | |
9599 | ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
9600 | elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
9601 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
9602 | fi | |
9603 | ||
9604 | if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
9605 | for ncn_progname in lipo; do | |
9606 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9607 | set dummy ${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
9608 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9609 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
278a7a38 | 9610 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then |
1c710c3c | 9611 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
e8b05380 | 9612 | else |
278a7a38 AO |
9613 | if test -n "$LIPO_FOR_TARGET"; then |
9614 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
9615 | else | |
9616 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9617 | for as_dir in $PATH | |
1c710c3c DJ |
9618 | do |
9619 | IFS=$as_save_IFS | |
9620 | test -z "$as_dir" && as_dir=. | |
9621 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 9622 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 9623 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
1c710c3c DJ |
9624 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9625 | break 2 | |
9626 | fi | |
9627 | done | |
9628 | done | |
9629 | ||
e8b05380 | 9630 | fi |
278a7a38 AO |
9631 | fi |
9632 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
e8b05380 | 9633 | if test -n "$LIPO_FOR_TARGET"; then |
2aeb72e9 DD |
9634 | echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5 |
9635 | echo "${ECHO_T}$LIPO_FOR_TARGET" >&6 | |
e8b05380 | 9636 | else |
2aeb72e9 DD |
9637 | echo "$as_me:$LINENO: result: no" >&5 |
9638 | echo "${ECHO_T}no" >&6 | |
e8b05380 PB |
9639 | fi |
9640 | ||
278a7a38 | 9641 | done |
e8b05380 | 9642 | fi |
278a7a38 AO |
9643 | |
9644 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 9645 | for ncn_progname in lipo; do |
2aeb72e9 DD |
9646 | echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
9647 | echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6 | |
d1f8db0c PB |
9648 | if test -x $with_build_time_tools/${ncn_progname}; then |
9649 | ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
2aeb72e9 DD |
9650 | echo "$as_me:$LINENO: result: yes" >&5 |
9651 | echo "${ECHO_T}yes" >&6 | |
e8b05380 PB |
9652 | break |
9653 | else | |
2aeb72e9 DD |
9654 | echo "$as_me:$LINENO: result: no" >&5 |
9655 | echo "${ECHO_T}no" >&6 | |
e8b05380 PB |
9656 | fi |
9657 | done | |
9658 | fi | |
9659 | ||
9660 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
9661 | for ncn_progname in lipo; do | |
9662 | if test -n "$ncn_target_tool_prefix"; then | |
9663 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 9664 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
2aeb72e9 DD |
9665 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9666 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
9667 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then |
9668 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
040b1c5a GK |
9669 | else |
9670 | if test -n "$LIPO_FOR_TARGET"; then | |
9671 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
9672 | else | |
1c710c3c DJ |
9673 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9674 | for as_dir in $PATH | |
9675 | do | |
9676 | IFS=$as_save_IFS | |
9677 | test -z "$as_dir" && as_dir=. | |
9678 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 9679 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
9680 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
9681 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9682 | break 2 | |
9683 | fi | |
9684 | done | |
9685 | done | |
9686 | ||
040b1c5a GK |
9687 | fi |
9688 | fi | |
1c710c3c | 9689 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
040b1c5a | 9690 | if test -n "$LIPO_FOR_TARGET"; then |
2aeb72e9 DD |
9691 | echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5 |
9692 | echo "${ECHO_T}$LIPO_FOR_TARGET" >&6 | |
040b1c5a | 9693 | else |
2aeb72e9 DD |
9694 | echo "$as_me:$LINENO: result: no" >&5 |
9695 | echo "${ECHO_T}no" >&6 | |
040b1c5a GK |
9696 | fi |
9697 | ||
e8b05380 PB |
9698 | fi |
9699 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then | |
9700 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 9701 | set dummy ${ncn_progname}; ac_word=$2 |
2aeb72e9 DD |
9702 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9703 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
9704 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then |
9705 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
040b1c5a GK |
9706 | else |
9707 | if test -n "$LIPO_FOR_TARGET"; then | |
72a7ab82 AP |
9708 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. |
9709 | else | |
1c710c3c DJ |
9710 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9711 | for as_dir in $PATH | |
9712 | do | |
9713 | IFS=$as_save_IFS | |
9714 | test -z "$as_dir" && as_dir=. | |
9715 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 9716 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
9717 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
9718 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9719 | break 2 | |
9720 | fi | |
9721 | done | |
9722 | done | |
9723 | ||
040b1c5a GK |
9724 | fi |
9725 | fi | |
1c710c3c | 9726 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
040b1c5a | 9727 | if test -n "$LIPO_FOR_TARGET"; then |
2aeb72e9 DD |
9728 | echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5 |
9729 | echo "${ECHO_T}$LIPO_FOR_TARGET" >&6 | |
040b1c5a | 9730 | else |
2aeb72e9 DD |
9731 | echo "$as_me:$LINENO: result: no" >&5 |
9732 | echo "${ECHO_T}no" >&6 | |
040b1c5a | 9733 | fi |
1c710c3c | 9734 | |
e8b05380 PB |
9735 | fi |
9736 | test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break | |
9737 | done | |
9738 | fi | |
1c710c3c | 9739 | |
040b1c5a GK |
9740 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then |
9741 | set dummy lipo | |
9742 | if test $build = $target ; then | |
9743 | LIPO_FOR_TARGET="$2" | |
9744 | else | |
9745 | LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
9746 | fi | |
9747 | fi | |
9748 | ||
d1f8db0c PB |
9749 | else |
9750 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
e8b05380 PB |
9751 | fi |
9752 | ||
9753 | ||
9754 | ||
9755 | ||
9756 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
9757 | if test -n "$with_build_time_tools"; then | |
2aeb72e9 DD |
9758 | echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5 |
9759 | echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6 | |
d1f8db0c PB |
9760 | if test -x $with_build_time_tools/nm; then |
9761 | NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm | |
9762 | ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
2aeb72e9 DD |
9763 | echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5 |
9764 | echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6 | |
d1f8db0c | 9765 | else |
2aeb72e9 DD |
9766 | echo "$as_me:$LINENO: result: no" >&5 |
9767 | echo "${ECHO_T}no" >&6 | |
d1f8db0c | 9768 | fi |
e8b05380 PB |
9769 | elif test $build != $host && test $have_gcc_for_target = yes; then |
9770 | NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm` | |
901119ae KT |
9771 | test $NM_FOR_TARGET=nm && NM_FOR_TARGET= |
9772 | ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
e8b05380 PB |
9773 | fi |
9774 | fi | |
3e19841a | 9775 | if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
9776 | # Extract the first word of "nm", so it can be a program name with args. |
9777 | set dummy nm; ac_word=$2 | |
2aeb72e9 DD |
9778 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9779 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
9780 | if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then |
9781 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
e8b05380 | 9782 | else |
1c710c3c DJ |
9783 | case $NM_FOR_TARGET in |
9784 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
9785 | ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path. |
9786 | ;; | |
e8b05380 | 9787 | *) |
1c710c3c DJ |
9788 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9789 | for as_dir in $gcc_cv_tool_dirs | |
9790 | do | |
9791 | IFS=$as_save_IFS | |
9792 | test -z "$as_dir" && as_dir=. | |
9793 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 9794 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
9795 | ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
9796 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9797 | break 2 | |
9798 | fi | |
9799 | done | |
9800 | done | |
9801 | ||
e8b05380 PB |
9802 | ;; |
9803 | esac | |
9804 | fi | |
1c710c3c | 9805 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET |
2aeb72e9 | 9806 | |
e8b05380 | 9807 | if test -n "$NM_FOR_TARGET"; then |
2aeb72e9 DD |
9808 | echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5 |
9809 | echo "${ECHO_T}$NM_FOR_TARGET" >&6 | |
e8b05380 | 9810 | else |
2aeb72e9 DD |
9811 | echo "$as_me:$LINENO: result: no" >&5 |
9812 | echo "${ECHO_T}no" >&6 | |
e8b05380 PB |
9813 | fi |
9814 | ||
9815 | fi | |
9816 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
278a7a38 AO |
9817 | |
9818 | ||
9819 | if test -n "$NM_FOR_TARGET"; then | |
9820 | ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET | |
9821 | elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
9822 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
9823 | fi | |
9824 | ||
9825 | if test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
9826 | for ncn_progname in nm; do | |
9827 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9828 | set dummy ${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
9829 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9830 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
278a7a38 AO |
9831 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then |
9832 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9833 | else | |
9834 | if test -n "$NM_FOR_TARGET"; then | |
9835 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
9836 | else | |
9837 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9838 | for as_dir in $PATH | |
9839 | do | |
9840 | IFS=$as_save_IFS | |
9841 | test -z "$as_dir" && as_dir=. | |
9842 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 9843 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 AO |
9844 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
9845 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9846 | break 2 | |
9847 | fi | |
9848 | done | |
9849 | done | |
9850 | ||
9851 | fi | |
9852 | fi | |
9853 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
9854 | if test -n "$NM_FOR_TARGET"; then | |
2aeb72e9 DD |
9855 | echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5 |
9856 | echo "${ECHO_T}$NM_FOR_TARGET" >&6 | |
278a7a38 | 9857 | else |
2aeb72e9 DD |
9858 | echo "$as_me:$LINENO: result: no" >&5 |
9859 | echo "${ECHO_T}no" >&6 | |
278a7a38 AO |
9860 | fi |
9861 | ||
9862 | done | |
9863 | fi | |
9864 | ||
9865 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 9866 | for ncn_progname in nm; do |
2aeb72e9 DD |
9867 | echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
9868 | echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6 | |
d1f8db0c PB |
9869 | if test -x $with_build_time_tools/${ncn_progname}; then |
9870 | ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
2aeb72e9 DD |
9871 | echo "$as_me:$LINENO: result: yes" >&5 |
9872 | echo "${ECHO_T}yes" >&6 | |
e8b05380 PB |
9873 | break |
9874 | else | |
2aeb72e9 DD |
9875 | echo "$as_me:$LINENO: result: no" >&5 |
9876 | echo "${ECHO_T}no" >&6 | |
e8b05380 PB |
9877 | fi |
9878 | done | |
9879 | fi | |
9880 | ||
9881 | if test -z "$ac_cv_prog_NM_FOR_TARGET"; then | |
9882 | for ncn_progname in nm; do | |
9883 | if test -n "$ncn_target_tool_prefix"; then | |
9884 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 9885 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
2aeb72e9 DD |
9886 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9887 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
9888 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then |
9889 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 | 9890 | else |
4de997d1 PB |
9891 | if test -n "$NM_FOR_TARGET"; then |
9892 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 9893 | else |
1c710c3c DJ |
9894 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9895 | for as_dir in $PATH | |
9896 | do | |
9897 | IFS=$as_save_IFS | |
9898 | test -z "$as_dir" && as_dir=. | |
9899 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 9900 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
9901 | ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
9902 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9903 | break 2 | |
9904 | fi | |
9905 | done | |
9906 | done | |
9907 | ||
ca9f4b81 AO |
9908 | fi |
9909 | fi | |
1c710c3c | 9910 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
4de997d1 | 9911 | if test -n "$NM_FOR_TARGET"; then |
2aeb72e9 DD |
9912 | echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5 |
9913 | echo "${ECHO_T}$NM_FOR_TARGET" >&6 | |
ca9f4b81 | 9914 | else |
2aeb72e9 DD |
9915 | echo "$as_me:$LINENO: result: no" >&5 |
9916 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 AO |
9917 | fi |
9918 | ||
e8b05380 PB |
9919 | fi |
9920 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then | |
9921 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 9922 | set dummy ${ncn_progname}; ac_word=$2 |
2aeb72e9 DD |
9923 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9924 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
9925 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then |
9926 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 | 9927 | else |
2693c0b0 PB |
9928 | if test -n "$NM_FOR_TARGET"; then |
9929 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 9930 | else |
1c710c3c DJ |
9931 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9932 | for as_dir in $PATH | |
9933 | do | |
9934 | IFS=$as_save_IFS | |
9935 | test -z "$as_dir" && as_dir=. | |
9936 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 9937 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
9938 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
9939 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9940 | break 2 | |
9941 | fi | |
9942 | done | |
9943 | done | |
9944 | ||
ca9f4b81 AO |
9945 | fi |
9946 | fi | |
1c710c3c | 9947 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
2693c0b0 | 9948 | if test -n "$NM_FOR_TARGET"; then |
2aeb72e9 DD |
9949 | echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5 |
9950 | echo "${ECHO_T}$NM_FOR_TARGET" >&6 | |
ca9f4b81 | 9951 | else |
2aeb72e9 DD |
9952 | echo "$as_me:$LINENO: result: no" >&5 |
9953 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 | 9954 | fi |
1c710c3c | 9955 | |
e8b05380 PB |
9956 | fi |
9957 | test -n "$ac_cv_prog_NM_FOR_TARGET" && break | |
9958 | done | |
9959 | fi | |
1c710c3c | 9960 | |
2693c0b0 PB |
9961 | if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then |
9962 | set dummy nm | |
9963 | if test $build = $target ; then | |
9964 | NM_FOR_TARGET="$2" | |
ca9f4b81 | 9965 | else |
2693c0b0 | 9966 | NM_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ca9f4b81 | 9967 | fi |
ca9f4b81 AO |
9968 | fi |
9969 | ||
d1f8db0c PB |
9970 | else |
9971 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET | |
e8b05380 PB |
9972 | fi |
9973 | ||
9974 | ||
9975 | ||
9976 | ||
9977 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then | |
9978 | if test -n "$with_build_time_tools"; then | |
2aeb72e9 DD |
9979 | echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5 |
9980 | echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6 | |
d1f8db0c PB |
9981 | if test -x $with_build_time_tools/objdump; then |
9982 | OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump | |
9983 | ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
2aeb72e9 DD |
9984 | echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5 |
9985 | echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6 | |
d1f8db0c | 9986 | else |
2aeb72e9 DD |
9987 | echo "$as_me:$LINENO: result: no" >&5 |
9988 | echo "${ECHO_T}no" >&6 | |
d1f8db0c | 9989 | fi |
e8b05380 PB |
9990 | elif test $build != $host && test $have_gcc_for_target = yes; then |
9991 | OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump` | |
901119ae KT |
9992 | test $OBJDUMP_FOR_TARGET=objdump && OBJDUMP_FOR_TARGET= |
9993 | ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
e8b05380 PB |
9994 | fi |
9995 | fi | |
3e19841a | 9996 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
9997 | # Extract the first word of "objdump", so it can be a program name with args. |
9998 | set dummy objdump; ac_word=$2 | |
2aeb72e9 DD |
9999 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10000 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
10001 | if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then |
10002 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
e8b05380 | 10003 | else |
1c710c3c DJ |
10004 | case $OBJDUMP_FOR_TARGET in |
10005 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
10006 | ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path. |
10007 | ;; | |
e8b05380 | 10008 | *) |
1c710c3c DJ |
10009 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10010 | for as_dir in $gcc_cv_tool_dirs | |
10011 | do | |
10012 | IFS=$as_save_IFS | |
10013 | test -z "$as_dir" && as_dir=. | |
10014 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 10015 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
10016 | ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
10017 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10018 | break 2 | |
10019 | fi | |
10020 | done | |
10021 | done | |
10022 | ||
e8b05380 PB |
10023 | ;; |
10024 | esac | |
10025 | fi | |
1c710c3c | 10026 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET |
2aeb72e9 | 10027 | |
e8b05380 | 10028 | if test -n "$OBJDUMP_FOR_TARGET"; then |
2aeb72e9 DD |
10029 | echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5 |
10030 | echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6 | |
e8b05380 | 10031 | else |
2aeb72e9 DD |
10032 | echo "$as_me:$LINENO: result: no" >&5 |
10033 | echo "${ECHO_T}no" >&6 | |
e8b05380 PB |
10034 | fi |
10035 | ||
10036 | fi | |
10037 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then | |
278a7a38 AO |
10038 | |
10039 | ||
10040 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
10041 | ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
10042 | elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
10043 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
10044 | fi | |
10045 | ||
10046 | if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
10047 | for ncn_progname in objdump; do | |
10048 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10049 | set dummy ${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
10050 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10051 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
278a7a38 AO |
10052 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then |
10053 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10054 | else | |
10055 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
10056 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
10057 | else | |
10058 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10059 | for as_dir in $PATH | |
10060 | do | |
10061 | IFS=$as_save_IFS | |
10062 | test -z "$as_dir" && as_dir=. | |
10063 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 10064 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 AO |
10065 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
10066 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10067 | break 2 | |
10068 | fi | |
10069 | done | |
10070 | done | |
10071 | ||
10072 | fi | |
10073 | fi | |
10074 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
10075 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
2aeb72e9 DD |
10076 | echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5 |
10077 | echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6 | |
278a7a38 | 10078 | else |
2aeb72e9 DD |
10079 | echo "$as_me:$LINENO: result: no" >&5 |
10080 | echo "${ECHO_T}no" >&6 | |
278a7a38 AO |
10081 | fi |
10082 | ||
10083 | done | |
10084 | fi | |
10085 | ||
10086 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 10087 | for ncn_progname in objdump; do |
2aeb72e9 DD |
10088 | echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10089 | echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6 | |
d1f8db0c PB |
10090 | if test -x $with_build_time_tools/${ncn_progname}; then |
10091 | ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
2aeb72e9 DD |
10092 | echo "$as_me:$LINENO: result: yes" >&5 |
10093 | echo "${ECHO_T}yes" >&6 | |
e8b05380 PB |
10094 | break |
10095 | else | |
2aeb72e9 DD |
10096 | echo "$as_me:$LINENO: result: no" >&5 |
10097 | echo "${ECHO_T}no" >&6 | |
e8b05380 PB |
10098 | fi |
10099 | done | |
10100 | fi | |
10101 | ||
10102 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
10103 | for ncn_progname in objdump; do | |
10104 | if test -n "$ncn_target_tool_prefix"; then | |
10105 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 10106 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
2aeb72e9 DD |
10107 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10108 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
10109 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then |
10110 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d739199a DJ |
10111 | else |
10112 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
10113 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
10114 | else | |
1c710c3c DJ |
10115 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10116 | for as_dir in $PATH | |
10117 | do | |
10118 | IFS=$as_save_IFS | |
10119 | test -z "$as_dir" && as_dir=. | |
10120 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 10121 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
10122 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
10123 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10124 | break 2 | |
10125 | fi | |
10126 | done | |
10127 | done | |
10128 | ||
d739199a DJ |
10129 | fi |
10130 | fi | |
1c710c3c | 10131 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
d739199a | 10132 | if test -n "$OBJDUMP_FOR_TARGET"; then |
2aeb72e9 DD |
10133 | echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5 |
10134 | echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6 | |
d739199a | 10135 | else |
2aeb72e9 DD |
10136 | echo "$as_me:$LINENO: result: no" >&5 |
10137 | echo "${ECHO_T}no" >&6 | |
d739199a DJ |
10138 | fi |
10139 | ||
e8b05380 PB |
10140 | fi |
10141 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then | |
10142 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
d739199a | 10143 | set dummy ${ncn_progname}; ac_word=$2 |
2aeb72e9 DD |
10144 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10145 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
10146 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then |
10147 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d739199a DJ |
10148 | else |
10149 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
10150 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
10151 | else | |
1c710c3c DJ |
10152 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10153 | for as_dir in $PATH | |
10154 | do | |
10155 | IFS=$as_save_IFS | |
10156 | test -z "$as_dir" && as_dir=. | |
10157 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 10158 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
10159 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
10160 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10161 | break 2 | |
10162 | fi | |
10163 | done | |
10164 | done | |
10165 | ||
d739199a DJ |
10166 | fi |
10167 | fi | |
1c710c3c | 10168 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
d739199a | 10169 | if test -n "$OBJDUMP_FOR_TARGET"; then |
2aeb72e9 DD |
10170 | echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5 |
10171 | echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6 | |
d739199a | 10172 | else |
2aeb72e9 DD |
10173 | echo "$as_me:$LINENO: result: no" >&5 |
10174 | echo "${ECHO_T}no" >&6 | |
d739199a | 10175 | fi |
1c710c3c | 10176 | |
e8b05380 PB |
10177 | fi |
10178 | test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break | |
10179 | done | |
10180 | fi | |
1c710c3c | 10181 | |
d739199a DJ |
10182 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then |
10183 | set dummy objdump | |
10184 | if test $build = $target ; then | |
10185 | OBJDUMP_FOR_TARGET="$2" | |
10186 | else | |
10187 | OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
10188 | fi | |
10189 | fi | |
10190 | ||
d1f8db0c PB |
10191 | else |
10192 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET | |
e8b05380 PB |
10193 | fi |
10194 | ||
10195 | ||
10196 | ||
10197 | ||
10198 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
10199 | if test -n "$with_build_time_tools"; then | |
2aeb72e9 DD |
10200 | echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5 |
10201 | echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6 | |
d1f8db0c PB |
10202 | if test -x $with_build_time_tools/ranlib; then |
10203 | RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib | |
10204 | ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
2aeb72e9 DD |
10205 | echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5 |
10206 | echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6 | |
d1f8db0c | 10207 | else |
2aeb72e9 DD |
10208 | echo "$as_me:$LINENO: result: no" >&5 |
10209 | echo "${ECHO_T}no" >&6 | |
d1f8db0c | 10210 | fi |
e8b05380 PB |
10211 | elif test $build != $host && test $have_gcc_for_target = yes; then |
10212 | RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib` | |
901119ae KT |
10213 | test $RANLIB_FOR_TARGET=ranlib && RANLIB_FOR_TARGET= |
10214 | ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
e8b05380 PB |
10215 | fi |
10216 | fi | |
3e19841a | 10217 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
10218 | # Extract the first word of "ranlib", so it can be a program name with args. |
10219 | set dummy ranlib; ac_word=$2 | |
2aeb72e9 DD |
10220 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10221 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
10222 | if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then |
10223 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
e8b05380 | 10224 | else |
1c710c3c DJ |
10225 | case $RANLIB_FOR_TARGET in |
10226 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
10227 | ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path. |
10228 | ;; | |
e8b05380 | 10229 | *) |
1c710c3c DJ |
10230 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10231 | for as_dir in $gcc_cv_tool_dirs | |
10232 | do | |
10233 | IFS=$as_save_IFS | |
10234 | test -z "$as_dir" && as_dir=. | |
10235 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 10236 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
10237 | ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
10238 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10239 | break 2 | |
10240 | fi | |
10241 | done | |
10242 | done | |
10243 | ||
e8b05380 PB |
10244 | ;; |
10245 | esac | |
10246 | fi | |
1c710c3c | 10247 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET |
2aeb72e9 | 10248 | |
e8b05380 | 10249 | if test -n "$RANLIB_FOR_TARGET"; then |
2aeb72e9 DD |
10250 | echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5 |
10251 | echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6 | |
e8b05380 | 10252 | else |
2aeb72e9 DD |
10253 | echo "$as_me:$LINENO: result: no" >&5 |
10254 | echo "${ECHO_T}no" >&6 | |
e8b05380 PB |
10255 | fi |
10256 | ||
10257 | fi | |
10258 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
278a7a38 AO |
10259 | |
10260 | ||
10261 | if test -n "$RANLIB_FOR_TARGET"; then | |
10262 | ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
10263 | elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
10264 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
10265 | fi | |
10266 | ||
10267 | if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
10268 | for ncn_progname in ranlib; do | |
10269 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10270 | set dummy ${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
10271 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10272 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
278a7a38 AO |
10273 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then |
10274 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10275 | else | |
10276 | if test -n "$RANLIB_FOR_TARGET"; then | |
10277 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
10278 | else | |
10279 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10280 | for as_dir in $PATH | |
10281 | do | |
10282 | IFS=$as_save_IFS | |
10283 | test -z "$as_dir" && as_dir=. | |
10284 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 10285 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 AO |
10286 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
10287 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10288 | break 2 | |
10289 | fi | |
10290 | done | |
10291 | done | |
10292 | ||
10293 | fi | |
10294 | fi | |
10295 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
10296 | if test -n "$RANLIB_FOR_TARGET"; then | |
2aeb72e9 DD |
10297 | echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5 |
10298 | echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6 | |
278a7a38 | 10299 | else |
2aeb72e9 DD |
10300 | echo "$as_me:$LINENO: result: no" >&5 |
10301 | echo "${ECHO_T}no" >&6 | |
278a7a38 AO |
10302 | fi |
10303 | ||
10304 | done | |
10305 | fi | |
10306 | ||
10307 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 10308 | for ncn_progname in ranlib; do |
2aeb72e9 DD |
10309 | echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10310 | echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6 | |
d1f8db0c PB |
10311 | if test -x $with_build_time_tools/${ncn_progname}; then |
10312 | ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
2aeb72e9 DD |
10313 | echo "$as_me:$LINENO: result: yes" >&5 |
10314 | echo "${ECHO_T}yes" >&6 | |
e8b05380 PB |
10315 | break |
10316 | else | |
2aeb72e9 DD |
10317 | echo "$as_me:$LINENO: result: no" >&5 |
10318 | echo "${ECHO_T}no" >&6 | |
e8b05380 PB |
10319 | fi |
10320 | done | |
10321 | fi | |
10322 | ||
10323 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
10324 | for ncn_progname in ranlib; do | |
10325 | if test -n "$ncn_target_tool_prefix"; then | |
10326 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
d739199a | 10327 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
2aeb72e9 DD |
10328 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10329 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
10330 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then |
10331 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 | 10332 | else |
4de997d1 PB |
10333 | if test -n "$RANLIB_FOR_TARGET"; then |
10334 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 10335 | else |
1c710c3c DJ |
10336 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10337 | for as_dir in $PATH | |
10338 | do | |
10339 | IFS=$as_save_IFS | |
10340 | test -z "$as_dir" && as_dir=. | |
10341 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 10342 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
10343 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
10344 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10345 | break 2 | |
10346 | fi | |
10347 | done | |
10348 | done | |
10349 | ||
ca9f4b81 AO |
10350 | fi |
10351 | fi | |
1c710c3c | 10352 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
4de997d1 | 10353 | if test -n "$RANLIB_FOR_TARGET"; then |
2aeb72e9 DD |
10354 | echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5 |
10355 | echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6 | |
ca9f4b81 | 10356 | else |
2aeb72e9 DD |
10357 | echo "$as_me:$LINENO: result: no" >&5 |
10358 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 AO |
10359 | fi |
10360 | ||
e8b05380 PB |
10361 | fi |
10362 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then | |
10363 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 10364 | set dummy ${ncn_progname}; ac_word=$2 |
2aeb72e9 DD |
10365 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10366 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
10367 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then |
10368 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 | 10369 | else |
2693c0b0 PB |
10370 | if test -n "$RANLIB_FOR_TARGET"; then |
10371 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 10372 | else |
1c710c3c DJ |
10373 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10374 | for as_dir in $PATH | |
10375 | do | |
10376 | IFS=$as_save_IFS | |
10377 | test -z "$as_dir" && as_dir=. | |
10378 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 10379 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
10380 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
10381 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10382 | break 2 | |
10383 | fi | |
10384 | done | |
10385 | done | |
10386 | ||
ca9f4b81 AO |
10387 | fi |
10388 | fi | |
1c710c3c | 10389 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
2693c0b0 | 10390 | if test -n "$RANLIB_FOR_TARGET"; then |
2aeb72e9 DD |
10391 | echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5 |
10392 | echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6 | |
ca9f4b81 | 10393 | else |
2aeb72e9 DD |
10394 | echo "$as_me:$LINENO: result: no" >&5 |
10395 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 | 10396 | fi |
1c710c3c | 10397 | |
e8b05380 PB |
10398 | fi |
10399 | test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break | |
10400 | done | |
10401 | fi | |
1c710c3c | 10402 | |
e8b05380 PB |
10403 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then |
10404 | set dummy ranlib | |
10405 | if test $build = $target ; then | |
10406 | RANLIB_FOR_TARGET="$2" | |
10407 | else | |
10408 | RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
ca9f4b81 | 10409 | fi |
e8b05380 | 10410 | fi |
2693c0b0 | 10411 | |
d1f8db0c PB |
10412 | else |
10413 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET | |
ca9f4b81 AO |
10414 | fi |
10415 | ||
e8b05380 PB |
10416 | |
10417 | ||
10418 | ||
10419 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then | |
10420 | if test -n "$with_build_time_tools"; then | |
2aeb72e9 DD |
10421 | echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5 |
10422 | echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6 | |
d1f8db0c PB |
10423 | if test -x $with_build_time_tools/strip; then |
10424 | STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip | |
10425 | ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
2aeb72e9 DD |
10426 | echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5 |
10427 | echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6 | |
d1f8db0c | 10428 | else |
2aeb72e9 DD |
10429 | echo "$as_me:$LINENO: result: no" >&5 |
10430 | echo "${ECHO_T}no" >&6 | |
d1f8db0c | 10431 | fi |
e8b05380 PB |
10432 | elif test $build != $host && test $have_gcc_for_target = yes; then |
10433 | STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip` | |
901119ae KT |
10434 | test $STRIP_FOR_TARGET=strip && STRIP_FOR_TARGET= |
10435 | ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
e8b05380 PB |
10436 | fi |
10437 | fi | |
3e19841a | 10438 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
10439 | # Extract the first word of "strip", so it can be a program name with args. |
10440 | set dummy strip; ac_word=$2 | |
2aeb72e9 DD |
10441 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10442 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
10443 | if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then |
10444 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
e8b05380 | 10445 | else |
1c710c3c DJ |
10446 | case $STRIP_FOR_TARGET in |
10447 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
10448 | ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path. |
10449 | ;; | |
e8b05380 | 10450 | *) |
1c710c3c DJ |
10451 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10452 | for as_dir in $gcc_cv_tool_dirs | |
10453 | do | |
10454 | IFS=$as_save_IFS | |
10455 | test -z "$as_dir" && as_dir=. | |
10456 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 10457 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
10458 | ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
10459 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10460 | break 2 | |
10461 | fi | |
10462 | done | |
10463 | done | |
10464 | ||
e8b05380 PB |
10465 | ;; |
10466 | esac | |
10467 | fi | |
1c710c3c | 10468 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET |
2aeb72e9 | 10469 | |
e8b05380 | 10470 | if test -n "$STRIP_FOR_TARGET"; then |
2aeb72e9 DD |
10471 | echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5 |
10472 | echo "${ECHO_T}$STRIP_FOR_TARGET" >&6 | |
e8b05380 | 10473 | else |
2aeb72e9 DD |
10474 | echo "$as_me:$LINENO: result: no" >&5 |
10475 | echo "${ECHO_T}no" >&6 | |
e8b05380 PB |
10476 | fi |
10477 | ||
10478 | fi | |
10479 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then | |
278a7a38 AO |
10480 | |
10481 | ||
10482 | if test -n "$STRIP_FOR_TARGET"; then | |
10483 | ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
10484 | elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
10485 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
10486 | fi | |
10487 | ||
10488 | if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
10489 | for ncn_progname in strip; do | |
10490 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10491 | set dummy ${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
10492 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10493 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
278a7a38 AO |
10494 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then |
10495 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10496 | else | |
10497 | if test -n "$STRIP_FOR_TARGET"; then | |
10498 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
10499 | else | |
10500 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10501 | for as_dir in $PATH | |
10502 | do | |
10503 | IFS=$as_save_IFS | |
10504 | test -z "$as_dir" && as_dir=. | |
10505 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 10506 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 AO |
10507 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
10508 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10509 | break 2 | |
10510 | fi | |
10511 | done | |
10512 | done | |
10513 | ||
10514 | fi | |
10515 | fi | |
10516 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
10517 | if test -n "$STRIP_FOR_TARGET"; then | |
2aeb72e9 DD |
10518 | echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5 |
10519 | echo "${ECHO_T}$STRIP_FOR_TARGET" >&6 | |
278a7a38 | 10520 | else |
2aeb72e9 DD |
10521 | echo "$as_me:$LINENO: result: no" >&5 |
10522 | echo "${ECHO_T}no" >&6 | |
278a7a38 AO |
10523 | fi |
10524 | ||
10525 | done | |
10526 | fi | |
10527 | ||
10528 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 10529 | for ncn_progname in strip; do |
2aeb72e9 DD |
10530 | echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10531 | echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6 | |
d1f8db0c PB |
10532 | if test -x $with_build_time_tools/${ncn_progname}; then |
10533 | ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
2aeb72e9 DD |
10534 | echo "$as_me:$LINENO: result: yes" >&5 |
10535 | echo "${ECHO_T}yes" >&6 | |
e8b05380 PB |
10536 | break |
10537 | else | |
2aeb72e9 DD |
10538 | echo "$as_me:$LINENO: result: no" >&5 |
10539 | echo "${ECHO_T}no" >&6 | |
e8b05380 PB |
10540 | fi |
10541 | done | |
10542 | fi | |
10543 | ||
10544 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
10545 | for ncn_progname in strip; do | |
10546 | if test -n "$ncn_target_tool_prefix"; then | |
10547 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 10548 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
2aeb72e9 DD |
10549 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10550 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
10551 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then |
10552 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
af71363e AS |
10553 | else |
10554 | if test -n "$STRIP_FOR_TARGET"; then | |
1c710c3c DJ |
10555 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. |
10556 | else | |
10557 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10558 | for as_dir in $PATH | |
10559 | do | |
10560 | IFS=$as_save_IFS | |
10561 | test -z "$as_dir" && as_dir=. | |
10562 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 10563 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
10564 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
10565 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10566 | break 2 | |
10567 | fi | |
10568 | done | |
10569 | done | |
10570 | ||
040b1c5a GK |
10571 | fi |
10572 | fi | |
1c710c3c | 10573 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
040b1c5a | 10574 | if test -n "$STRIP_FOR_TARGET"; then |
2aeb72e9 DD |
10575 | echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5 |
10576 | echo "${ECHO_T}$STRIP_FOR_TARGET" >&6 | |
040b1c5a | 10577 | else |
2aeb72e9 DD |
10578 | echo "$as_me:$LINENO: result: no" >&5 |
10579 | echo "${ECHO_T}no" >&6 | |
040b1c5a GK |
10580 | fi |
10581 | ||
e8b05380 PB |
10582 | fi |
10583 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then | |
10584 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 10585 | set dummy ${ncn_progname}; ac_word=$2 |
2aeb72e9 DD |
10586 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10587 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
10588 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then |
10589 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
040b1c5a GK |
10590 | else |
10591 | if test -n "$STRIP_FOR_TARGET"; then | |
10592 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
10593 | else | |
1c710c3c DJ |
10594 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10595 | for as_dir in $PATH | |
10596 | do | |
10597 | IFS=$as_save_IFS | |
10598 | test -z "$as_dir" && as_dir=. | |
10599 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 10600 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
10601 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
10602 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10603 | break 2 | |
10604 | fi | |
10605 | done | |
10606 | done | |
10607 | ||
040b1c5a GK |
10608 | fi |
10609 | fi | |
1c710c3c | 10610 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
040b1c5a | 10611 | if test -n "$STRIP_FOR_TARGET"; then |
2aeb72e9 DD |
10612 | echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5 |
10613 | echo "${ECHO_T}$STRIP_FOR_TARGET" >&6 | |
040b1c5a | 10614 | else |
2aeb72e9 DD |
10615 | echo "$as_me:$LINENO: result: no" >&5 |
10616 | echo "${ECHO_T}no" >&6 | |
040b1c5a | 10617 | fi |
1c710c3c | 10618 | |
e8b05380 PB |
10619 | fi |
10620 | test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break | |
10621 | done | |
10622 | fi | |
1c710c3c | 10623 | |
040b1c5a GK |
10624 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then |
10625 | set dummy strip | |
10626 | if test $build = $target ; then | |
10627 | STRIP_FOR_TARGET="$2" | |
10628 | else | |
10629 | STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
10630 | fi | |
10631 | fi | |
10632 | ||
d1f8db0c PB |
10633 | else |
10634 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET | |
e8b05380 PB |
10635 | fi |
10636 | ||
10637 | ||
10638 | ||
10639 | ||
10640 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
10641 | if test -n "$with_build_time_tools"; then | |
2aeb72e9 DD |
10642 | echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5 |
10643 | echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6 | |
d1f8db0c PB |
10644 | if test -x $with_build_time_tools/windres; then |
10645 | WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres | |
10646 | ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
2aeb72e9 DD |
10647 | echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5 |
10648 | echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6 | |
d1f8db0c | 10649 | else |
2aeb72e9 DD |
10650 | echo "$as_me:$LINENO: result: no" >&5 |
10651 | echo "${ECHO_T}no" >&6 | |
d1f8db0c | 10652 | fi |
e8b05380 PB |
10653 | elif test $build != $host && test $have_gcc_for_target = yes; then |
10654 | WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres` | |
901119ae KT |
10655 | test $WINDRES_FOR_TARGET=windres && WINDRES_FOR_TARGET= |
10656 | ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
e8b05380 PB |
10657 | fi |
10658 | fi | |
3e19841a | 10659 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
10660 | # Extract the first word of "windres", so it can be a program name with args. |
10661 | set dummy windres; ac_word=$2 | |
2aeb72e9 DD |
10662 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10663 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
10664 | if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then |
10665 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
e8b05380 | 10666 | else |
1c710c3c DJ |
10667 | case $WINDRES_FOR_TARGET in |
10668 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
10669 | ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path. |
10670 | ;; | |
e8b05380 | 10671 | *) |
1c710c3c DJ |
10672 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10673 | for as_dir in $gcc_cv_tool_dirs | |
10674 | do | |
10675 | IFS=$as_save_IFS | |
10676 | test -z "$as_dir" && as_dir=. | |
10677 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 10678 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
10679 | ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
10680 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10681 | break 2 | |
10682 | fi | |
10683 | done | |
10684 | done | |
10685 | ||
e8b05380 PB |
10686 | ;; |
10687 | esac | |
10688 | fi | |
1c710c3c | 10689 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET |
2aeb72e9 | 10690 | |
e8b05380 | 10691 | if test -n "$WINDRES_FOR_TARGET"; then |
2aeb72e9 DD |
10692 | echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5 |
10693 | echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6 | |
e8b05380 | 10694 | else |
2aeb72e9 DD |
10695 | echo "$as_me:$LINENO: result: no" >&5 |
10696 | echo "${ECHO_T}no" >&6 | |
e8b05380 PB |
10697 | fi |
10698 | ||
10699 | fi | |
10700 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
278a7a38 AO |
10701 | |
10702 | ||
10703 | if test -n "$WINDRES_FOR_TARGET"; then | |
10704 | ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
10705 | elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
10706 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
10707 | fi | |
10708 | ||
10709 | if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
10710 | for ncn_progname in windres; do | |
10711 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10712 | set dummy ${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
10713 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10714 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
278a7a38 AO |
10715 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then |
10716 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10717 | else | |
10718 | if test -n "$WINDRES_FOR_TARGET"; then | |
10719 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
10720 | else | |
10721 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10722 | for as_dir in $PATH | |
10723 | do | |
10724 | IFS=$as_save_IFS | |
10725 | test -z "$as_dir" && as_dir=. | |
10726 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 10727 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 AO |
10728 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
10729 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10730 | break 2 | |
10731 | fi | |
10732 | done | |
10733 | done | |
10734 | ||
10735 | fi | |
10736 | fi | |
10737 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
10738 | if test -n "$WINDRES_FOR_TARGET"; then | |
2aeb72e9 DD |
10739 | echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5 |
10740 | echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6 | |
278a7a38 | 10741 | else |
2aeb72e9 DD |
10742 | echo "$as_me:$LINENO: result: no" >&5 |
10743 | echo "${ECHO_T}no" >&6 | |
278a7a38 AO |
10744 | fi |
10745 | ||
10746 | done | |
10747 | fi | |
10748 | ||
10749 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 10750 | for ncn_progname in windres; do |
2aeb72e9 DD |
10751 | echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10752 | echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6 | |
d1f8db0c PB |
10753 | if test -x $with_build_time_tools/${ncn_progname}; then |
10754 | ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
2aeb72e9 DD |
10755 | echo "$as_me:$LINENO: result: yes" >&5 |
10756 | echo "${ECHO_T}yes" >&6 | |
e8b05380 PB |
10757 | break |
10758 | else | |
2aeb72e9 DD |
10759 | echo "$as_me:$LINENO: result: no" >&5 |
10760 | echo "${ECHO_T}no" >&6 | |
e8b05380 PB |
10761 | fi |
10762 | done | |
10763 | fi | |
10764 | ||
10765 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
10766 | for ncn_progname in windres; do | |
10767 | if test -n "$ncn_target_tool_prefix"; then | |
10768 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 10769 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
2aeb72e9 DD |
10770 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10771 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
10772 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then |
10773 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 | 10774 | else |
4de997d1 PB |
10775 | if test -n "$WINDRES_FOR_TARGET"; then |
10776 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 10777 | else |
1c710c3c DJ |
10778 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10779 | for as_dir in $PATH | |
10780 | do | |
10781 | IFS=$as_save_IFS | |
10782 | test -z "$as_dir" && as_dir=. | |
10783 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 10784 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
10785 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
10786 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10787 | break 2 | |
10788 | fi | |
10789 | done | |
10790 | done | |
10791 | ||
ca9f4b81 AO |
10792 | fi |
10793 | fi | |
1c710c3c | 10794 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
4de997d1 | 10795 | if test -n "$WINDRES_FOR_TARGET"; then |
2aeb72e9 DD |
10796 | echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5 |
10797 | echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6 | |
ca9f4b81 | 10798 | else |
2aeb72e9 DD |
10799 | echo "$as_me:$LINENO: result: no" >&5 |
10800 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 AO |
10801 | fi |
10802 | ||
e8b05380 PB |
10803 | fi |
10804 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then | |
10805 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 10806 | set dummy ${ncn_progname}; ac_word=$2 |
2aeb72e9 DD |
10807 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10808 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
10809 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then |
10810 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 | 10811 | else |
2693c0b0 PB |
10812 | if test -n "$WINDRES_FOR_TARGET"; then |
10813 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 10814 | else |
1c710c3c DJ |
10815 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10816 | for as_dir in $PATH | |
10817 | do | |
10818 | IFS=$as_save_IFS | |
10819 | test -z "$as_dir" && as_dir=. | |
10820 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 10821 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
10822 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
10823 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10824 | break 2 | |
10825 | fi | |
10826 | done | |
10827 | done | |
10828 | ||
ca9f4b81 AO |
10829 | fi |
10830 | fi | |
1c710c3c | 10831 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
2693c0b0 | 10832 | if test -n "$WINDRES_FOR_TARGET"; then |
2aeb72e9 DD |
10833 | echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5 |
10834 | echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6 | |
ca9f4b81 | 10835 | else |
2aeb72e9 DD |
10836 | echo "$as_me:$LINENO: result: no" >&5 |
10837 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 | 10838 | fi |
1c710c3c | 10839 | |
e8b05380 PB |
10840 | fi |
10841 | test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break | |
10842 | done | |
10843 | fi | |
1c710c3c | 10844 | |
2693c0b0 PB |
10845 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then |
10846 | set dummy windres | |
10847 | if test $build = $target ; then | |
10848 | WINDRES_FOR_TARGET="$2" | |
ca9f4b81 | 10849 | else |
2693c0b0 | 10850 | WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ca9f4b81 | 10851 | fi |
ca9f4b81 AO |
10852 | fi |
10853 | ||
d1f8db0c PB |
10854 | else |
10855 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET | |
e8b05380 PB |
10856 | fi |
10857 | ||
4977bab6 | 10858 | |
901119ae KT |
10859 | |
10860 | ||
10861 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
10862 | if test -n "$with_build_time_tools"; then | |
10863 | echo "$as_me:$LINENO: checking for windmc in $with_build_time_tools" >&5 | |
10864 | echo $ECHO_N "checking for windmc in $with_build_time_tools... $ECHO_C" >&6 | |
10865 | if test -x $with_build_time_tools/windmc; then | |
10866 | WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc | |
10867 | ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
10868 | echo "$as_me:$LINENO: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5 | |
10869 | echo "${ECHO_T}$ac_cv_path_WINDMC_FOR_TARGET" >&6 | |
10870 | else | |
10871 | echo "$as_me:$LINENO: result: no" >&5 | |
10872 | echo "${ECHO_T}no" >&6 | |
10873 | fi | |
10874 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
10875 | WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc` | |
10876 | test $WINDMC_FOR_TARGET=windmc && WINDMC_FOR_TARGET= | |
10877 | ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
10878 | fi | |
10879 | fi | |
10880 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
10881 | # Extract the first word of "windmc", so it can be a program name with args. | |
10882 | set dummy windmc; ac_word=$2 | |
10883 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10884 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10885 | if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then | |
10886 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10887 | else | |
10888 | case $WINDMC_FOR_TARGET in | |
10889 | [\\/]* | ?:[\\/]*) | |
10890 | ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path. | |
10891 | ;; | |
10892 | *) | |
10893 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10894 | for as_dir in $gcc_cv_tool_dirs | |
10895 | do | |
10896 | IFS=$as_save_IFS | |
10897 | test -z "$as_dir" && as_dir=. | |
10898 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10899 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10900 | ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" | |
10901 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10902 | break 2 | |
10903 | fi | |
10904 | done | |
10905 | done | |
10906 | ||
10907 | ;; | |
10908 | esac | |
10909 | fi | |
10910 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
10911 | ||
10912 | if test -n "$WINDMC_FOR_TARGET"; then | |
10913 | echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5 | |
10914 | echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6 | |
10915 | else | |
10916 | echo "$as_me:$LINENO: result: no" >&5 | |
10917 | echo "${ECHO_T}no" >&6 | |
10918 | fi | |
10919 | ||
10920 | fi | |
10921 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
10922 | ||
10923 | ||
10924 | if test -n "$WINDMC_FOR_TARGET"; then | |
10925 | ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
10926 | elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
10927 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
10928 | fi | |
10929 | ||
10930 | if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
10931 | for ncn_progname in windmc; do | |
10932 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10933 | set dummy ${ncn_progname}; ac_word=$2 | |
10934 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10935 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10936 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then | |
10937 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10938 | else | |
10939 | if test -n "$WINDMC_FOR_TARGET"; then | |
10940 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
10941 | else | |
10942 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10943 | for as_dir in $PATH | |
10944 | do | |
10945 | IFS=$as_save_IFS | |
10946 | test -z "$as_dir" && as_dir=. | |
10947 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10948 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10949 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" | |
10950 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10951 | break 2 | |
10952 | fi | |
10953 | done | |
10954 | done | |
10955 | ||
10956 | fi | |
10957 | fi | |
10958 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
10959 | if test -n "$WINDMC_FOR_TARGET"; then | |
10960 | echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5 | |
10961 | echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6 | |
10962 | else | |
10963 | echo "$as_me:$LINENO: result: no" >&5 | |
10964 | echo "${ECHO_T}no" >&6 | |
10965 | fi | |
10966 | ||
10967 | done | |
10968 | fi | |
10969 | ||
10970 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
10971 | for ncn_progname in windmc; do | |
10972 | echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
10973 | echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6 | |
10974 | if test -x $with_build_time_tools/${ncn_progname}; then | |
10975 | ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
10976 | echo "$as_me:$LINENO: result: yes" >&5 | |
10977 | echo "${ECHO_T}yes" >&6 | |
10978 | break | |
10979 | else | |
10980 | echo "$as_me:$LINENO: result: no" >&5 | |
10981 | echo "${ECHO_T}no" >&6 | |
10982 | fi | |
10983 | done | |
10984 | fi | |
10985 | ||
10986 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
10987 | for ncn_progname in windmc; do | |
10988 | if test -n "$ncn_target_tool_prefix"; then | |
10989 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10990 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
10991 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10992 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10993 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then | |
10994 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10995 | else | |
10996 | if test -n "$WINDMC_FOR_TARGET"; then | |
10997 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
10998 | else | |
10999 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11000 | for as_dir in $PATH | |
11001 | do | |
11002 | IFS=$as_save_IFS | |
11003 | test -z "$as_dir" && as_dir=. | |
11004 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11005 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11006 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
11007 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11008 | break 2 | |
11009 | fi | |
11010 | done | |
11011 | done | |
11012 | ||
11013 | fi | |
11014 | fi | |
11015 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
11016 | if test -n "$WINDMC_FOR_TARGET"; then | |
11017 | echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5 | |
11018 | echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6 | |
11019 | else | |
11020 | echo "$as_me:$LINENO: result: no" >&5 | |
11021 | echo "${ECHO_T}no" >&6 | |
11022 | fi | |
11023 | ||
11024 | fi | |
11025 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then | |
11026 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11027 | set dummy ${ncn_progname}; ac_word=$2 | |
11028 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11029 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11030 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then | |
11031 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11032 | else | |
11033 | if test -n "$WINDMC_FOR_TARGET"; then | |
11034 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
11035 | else | |
11036 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11037 | for as_dir in $PATH | |
11038 | do | |
11039 | IFS=$as_save_IFS | |
11040 | test -z "$as_dir" && as_dir=. | |
11041 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11042 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11043 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" | |
11044 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11045 | break 2 | |
11046 | fi | |
11047 | done | |
11048 | done | |
11049 | ||
11050 | fi | |
11051 | fi | |
11052 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
11053 | if test -n "$WINDMC_FOR_TARGET"; then | |
11054 | echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5 | |
11055 | echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6 | |
11056 | else | |
11057 | echo "$as_me:$LINENO: result: no" >&5 | |
11058 | echo "${ECHO_T}no" >&6 | |
11059 | fi | |
11060 | ||
11061 | fi | |
11062 | test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break | |
11063 | done | |
11064 | fi | |
11065 | ||
11066 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then | |
11067 | set dummy windmc | |
11068 | if test $build = $target ; then | |
11069 | WINDMC_FOR_TARGET="$2" | |
11070 | else | |
11071 | WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11072 | fi | |
11073 | fi | |
11074 | ||
11075 | else | |
11076 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
11077 | fi | |
11078 | ||
11079 | ||
2abefe3d PB |
11080 | RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET" |
11081 | ||
2aeb72e9 DD |
11082 | echo "$as_me:$LINENO: checking where to find the target ar" >&5 |
11083 | echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6 | |
2abefe3d | 11084 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
11085 | if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
11086 | # We already found the complete path | |
172e41aa | 11087 | ac_dir=`dirname $AR_FOR_TARGET` |
2aeb72e9 DD |
11088 | echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
11089 | echo "${ECHO_T}pre-installed in $ac_dir" >&6 | |
e8b05380 PB |
11090 | else |
11091 | # Canadian cross, just use what we found | |
2aeb72e9 DD |
11092 | echo "$as_me:$LINENO: result: pre-installed" >&5 |
11093 | echo "${ECHO_T}pre-installed" >&6 | |
e8b05380 | 11094 | fi |
2abefe3d PB |
11095 | else |
11096 | ok=yes | |
11097 | case " ${configdirs} " in | |
11098 | *" binutils "*) ;; | |
11099 | *) ok=no ;; | |
11100 | esac | |
1c710c3c | 11101 | |
2abefe3d PB |
11102 | if test $ok = yes; then |
11103 | # An in-tree tool is available and we can use it | |
11104 | AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar' | |
2aeb72e9 DD |
11105 | echo "$as_me:$LINENO: result: just compiled" >&5 |
11106 | echo "${ECHO_T}just compiled" >&6 | |
e8b05380 PB |
11107 | elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
11108 | # We already found the complete path | |
172e41aa | 11109 | ac_dir=`dirname $AR_FOR_TARGET` |
2aeb72e9 DD |
11110 | echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
11111 | echo "${ECHO_T}pre-installed in $ac_dir" >&6 | |
2abefe3d PB |
11112 | elif test "x$target" = "x$host"; then |
11113 | # We can use an host tool | |
11114 | AR_FOR_TARGET='$(AR)' | |
2aeb72e9 DD |
11115 | echo "$as_me:$LINENO: result: host tool" >&5 |
11116 | echo "${ECHO_T}host tool" >&6 | |
2abefe3d PB |
11117 | else |
11118 | # We need a cross tool | |
2aeb72e9 DD |
11119 | echo "$as_me:$LINENO: result: pre-installed" >&5 |
11120 | echo "${ECHO_T}pre-installed" >&6 | |
2abefe3d PB |
11121 | fi |
11122 | fi | |
0b0dc272 | 11123 | |
2aeb72e9 DD |
11124 | echo "$as_me:$LINENO: checking where to find the target as" >&5 |
11125 | echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6 | |
2abefe3d | 11126 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
11127 | if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
11128 | # We already found the complete path | |
172e41aa | 11129 | ac_dir=`dirname $AS_FOR_TARGET` |
2aeb72e9 DD |
11130 | echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
11131 | echo "${ECHO_T}pre-installed in $ac_dir" >&6 | |
e8b05380 PB |
11132 | else |
11133 | # Canadian cross, just use what we found | |
2aeb72e9 DD |
11134 | echo "$as_me:$LINENO: result: pre-installed" >&5 |
11135 | echo "${ECHO_T}pre-installed" >&6 | |
e8b05380 | 11136 | fi |
2abefe3d PB |
11137 | else |
11138 | ok=yes | |
11139 | case " ${configdirs} " in | |
11140 | *" gas "*) ;; | |
11141 | *) ok=no ;; | |
11142 | esac | |
1c710c3c | 11143 | |
2abefe3d PB |
11144 | if test $ok = yes; then |
11145 | # An in-tree tool is available and we can use it | |
11146 | AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new' | |
2aeb72e9 DD |
11147 | echo "$as_me:$LINENO: result: just compiled" >&5 |
11148 | echo "${ECHO_T}just compiled" >&6 | |
e8b05380 PB |
11149 | elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
11150 | # We already found the complete path | |
172e41aa | 11151 | ac_dir=`dirname $AS_FOR_TARGET` |
2aeb72e9 DD |
11152 | echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
11153 | echo "${ECHO_T}pre-installed in $ac_dir" >&6 | |
2abefe3d PB |
11154 | elif test "x$target" = "x$host"; then |
11155 | # We can use an host tool | |
11156 | AS_FOR_TARGET='$(AS)' | |
2aeb72e9 DD |
11157 | echo "$as_me:$LINENO: result: host tool" >&5 |
11158 | echo "${ECHO_T}host tool" >&6 | |
2abefe3d PB |
11159 | else |
11160 | # We need a cross tool | |
2aeb72e9 DD |
11161 | echo "$as_me:$LINENO: result: pre-installed" >&5 |
11162 | echo "${ECHO_T}pre-installed" >&6 | |
2abefe3d PB |
11163 | fi |
11164 | fi | |
0b0dc272 | 11165 | |
2aeb72e9 DD |
11166 | echo "$as_me:$LINENO: checking where to find the target cc" >&5 |
11167 | echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6 | |
2abefe3d | 11168 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
11169 | if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
11170 | # We already found the complete path | |
172e41aa | 11171 | ac_dir=`dirname $CC_FOR_TARGET` |
2aeb72e9 DD |
11172 | echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
11173 | echo "${ECHO_T}pre-installed in $ac_dir" >&6 | |
e8b05380 PB |
11174 | else |
11175 | # Canadian cross, just use what we found | |
2aeb72e9 DD |
11176 | echo "$as_me:$LINENO: result: pre-installed" >&5 |
11177 | echo "${ECHO_T}pre-installed" >&6 | |
e8b05380 | 11178 | fi |
2abefe3d PB |
11179 | else |
11180 | ok=yes | |
11181 | case " ${configdirs} " in | |
11182 | *" gcc "*) ;; | |
11183 | *) ok=no ;; | |
11184 | esac | |
1c710c3c | 11185 | |
2abefe3d PB |
11186 | if test $ok = yes; then |
11187 | # An in-tree tool is available and we can use it | |
11188 | CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
2aeb72e9 DD |
11189 | echo "$as_me:$LINENO: result: just compiled" >&5 |
11190 | echo "${ECHO_T}just compiled" >&6 | |
e8b05380 PB |
11191 | elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
11192 | # We already found the complete path | |
172e41aa | 11193 | ac_dir=`dirname $CC_FOR_TARGET` |
2aeb72e9 DD |
11194 | echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
11195 | echo "${ECHO_T}pre-installed in $ac_dir" >&6 | |
2abefe3d PB |
11196 | elif test "x$target" = "x$host"; then |
11197 | # We can use an host tool | |
11198 | CC_FOR_TARGET='$(CC)' | |
2aeb72e9 DD |
11199 | echo "$as_me:$LINENO: result: host tool" >&5 |
11200 | echo "${ECHO_T}host tool" >&6 | |
2abefe3d PB |
11201 | else |
11202 | # We need a cross tool | |
2aeb72e9 DD |
11203 | echo "$as_me:$LINENO: result: pre-installed" >&5 |
11204 | echo "${ECHO_T}pre-installed" >&6 | |
2abefe3d PB |
11205 | fi |
11206 | fi | |
0b0dc272 | 11207 | |
2aeb72e9 DD |
11208 | echo "$as_me:$LINENO: checking where to find the target c++" >&5 |
11209 | echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6 | |
2abefe3d | 11210 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
11211 | if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
11212 | # We already found the complete path | |
172e41aa | 11213 | ac_dir=`dirname $CXX_FOR_TARGET` |
2aeb72e9 DD |
11214 | echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
11215 | echo "${ECHO_T}pre-installed in $ac_dir" >&6 | |
e8b05380 PB |
11216 | else |
11217 | # Canadian cross, just use what we found | |
2aeb72e9 DD |
11218 | echo "$as_me:$LINENO: result: pre-installed" >&5 |
11219 | echo "${ECHO_T}pre-installed" >&6 | |
e8b05380 | 11220 | fi |
2abefe3d PB |
11221 | else |
11222 | ok=yes | |
11223 | case " ${configdirs} " in | |
11224 | *" gcc "*) ;; | |
11225 | *) ok=no ;; | |
11226 | esac | |
11227 | case ,${enable_languages}, in | |
11228 | *,c++,*) ;; | |
11229 | *) ok=no ;; | |
11230 | esac | |
11231 | if test $ok = yes; then | |
11232 | # An in-tree tool is available and we can use it | |
11233 | CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `test ! -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags || $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs' | |
2aeb72e9 DD |
11234 | echo "$as_me:$LINENO: result: just compiled" >&5 |
11235 | echo "${ECHO_T}just compiled" >&6 | |
e8b05380 PB |
11236 | elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
11237 | # We already found the complete path | |
172e41aa | 11238 | ac_dir=`dirname $CXX_FOR_TARGET` |
2aeb72e9 DD |
11239 | echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
11240 | echo "${ECHO_T}pre-installed in $ac_dir" >&6 | |
2abefe3d PB |
11241 | elif test "x$target" = "x$host"; then |
11242 | # We can use an host tool | |
11243 | CXX_FOR_TARGET='$(CXX)' | |
2aeb72e9 DD |
11244 | echo "$as_me:$LINENO: result: host tool" >&5 |
11245 | echo "${ECHO_T}host tool" >&6 | |
2abefe3d PB |
11246 | else |
11247 | # We need a cross tool | |
2aeb72e9 DD |
11248 | echo "$as_me:$LINENO: result: pre-installed" >&5 |
11249 | echo "${ECHO_T}pre-installed" >&6 | |
2abefe3d PB |
11250 | fi |
11251 | fi | |
0b0dc272 | 11252 | |
2aeb72e9 DD |
11253 | echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5 |
11254 | echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6 | |
2abefe3d | 11255 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
11256 | if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
11257 | # We already found the complete path | |
172e41aa | 11258 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
2aeb72e9 DD |
11259 | echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
11260 | echo "${ECHO_T}pre-installed in $ac_dir" >&6 | |
e8b05380 PB |
11261 | else |
11262 | # Canadian cross, just use what we found | |
2aeb72e9 DD |
11263 | echo "$as_me:$LINENO: result: pre-installed" >&5 |
11264 | echo "${ECHO_T}pre-installed" >&6 | |
e8b05380 | 11265 | fi |
2abefe3d PB |
11266 | else |
11267 | ok=yes | |
11268 | case " ${configdirs} " in | |
11269 | *" gcc "*) ;; | |
11270 | *) ok=no ;; | |
11271 | esac | |
11272 | case ,${enable_languages}, in | |
11273 | *,c++,*) ;; | |
11274 | *) ok=no ;; | |
11275 | esac | |
11276 | if test $ok = yes; then | |
11277 | # An in-tree tool is available and we can use it | |
11278 | RAW_CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs' | |
2aeb72e9 DD |
11279 | echo "$as_me:$LINENO: result: just compiled" >&5 |
11280 | echo "${ECHO_T}just compiled" >&6 | |
e8b05380 PB |
11281 | elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
11282 | # We already found the complete path | |
172e41aa | 11283 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
2aeb72e9 DD |
11284 | echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
11285 | echo "${ECHO_T}pre-installed in $ac_dir" >&6 | |
2abefe3d PB |
11286 | elif test "x$target" = "x$host"; then |
11287 | # We can use an host tool | |
11288 | RAW_CXX_FOR_TARGET='$(CXX)' | |
2aeb72e9 DD |
11289 | echo "$as_me:$LINENO: result: host tool" >&5 |
11290 | echo "${ECHO_T}host tool" >&6 | |
2abefe3d PB |
11291 | else |
11292 | # We need a cross tool | |
2aeb72e9 DD |
11293 | echo "$as_me:$LINENO: result: pre-installed" >&5 |
11294 | echo "${ECHO_T}pre-installed" >&6 | |
2abefe3d PB |
11295 | fi |
11296 | fi | |
0b0dc272 | 11297 | |
2aeb72e9 DD |
11298 | echo "$as_me:$LINENO: checking where to find the target dlltool" >&5 |
11299 | echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6 | |
2abefe3d | 11300 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
11301 | if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
11302 | # We already found the complete path | |
172e41aa | 11303 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
2aeb72e9 DD |
11304 | echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
11305 | echo "${ECHO_T}pre-installed in $ac_dir" >&6 | |
e8b05380 PB |
11306 | else |
11307 | # Canadian cross, just use what we found | |
2aeb72e9 DD |
11308 | echo "$as_me:$LINENO: result: pre-installed" >&5 |
11309 | echo "${ECHO_T}pre-installed" >&6 | |
e8b05380 | 11310 | fi |
2abefe3d PB |
11311 | else |
11312 | ok=yes | |
11313 | case " ${configdirs} " in | |
11314 | *" binutils "*) ;; | |
11315 | *) ok=no ;; | |
11316 | esac | |
1c710c3c | 11317 | |
2abefe3d PB |
11318 | if test $ok = yes; then |
11319 | # An in-tree tool is available and we can use it | |
11320 | DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool' | |
2aeb72e9 DD |
11321 | echo "$as_me:$LINENO: result: just compiled" >&5 |
11322 | echo "${ECHO_T}just compiled" >&6 | |
e8b05380 PB |
11323 | elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
11324 | # We already found the complete path | |
172e41aa | 11325 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
2aeb72e9 DD |
11326 | echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
11327 | echo "${ECHO_T}pre-installed in $ac_dir" >&6 | |
2abefe3d PB |
11328 | elif test "x$target" = "x$host"; then |
11329 | # We can use an host tool | |
11330 | DLLTOOL_FOR_TARGET='$(DLLTOOL)' | |
2aeb72e9 DD |
11331 | echo "$as_me:$LINENO: result: host tool" >&5 |
11332 | echo "${ECHO_T}host tool" >&6 | |
2abefe3d PB |
11333 | else |
11334 | # We need a cross tool | |
2aeb72e9 DD |
11335 | echo "$as_me:$LINENO: result: pre-installed" >&5 |
11336 | echo "${ECHO_T}pre-installed" >&6 | |
2abefe3d PB |
11337 | fi |
11338 | fi | |
0b0dc272 | 11339 | |
2aeb72e9 DD |
11340 | echo "$as_me:$LINENO: checking where to find the target gcc" >&5 |
11341 | echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6 | |
2abefe3d | 11342 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
11343 | if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
11344 | # We already found the complete path | |
172e41aa | 11345 | ac_dir=`dirname $GCC_FOR_TARGET` |
2aeb72e9 DD |
11346 | echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
11347 | echo "${ECHO_T}pre-installed in $ac_dir" >&6 | |
e8b05380 PB |
11348 | else |
11349 | # Canadian cross, just use what we found | |
2aeb72e9 DD |
11350 | echo "$as_me:$LINENO: result: pre-installed" >&5 |
11351 | echo "${ECHO_T}pre-installed" >&6 | |
e8b05380 | 11352 | fi |
2abefe3d PB |
11353 | else |
11354 | ok=yes | |
11355 | case " ${configdirs} " in | |
11356 | *" gcc "*) ;; | |
11357 | *) ok=no ;; | |
11358 | esac | |
1c710c3c | 11359 | |
2abefe3d PB |
11360 | if test $ok = yes; then |
11361 | # An in-tree tool is available and we can use it | |
11362 | GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
2aeb72e9 DD |
11363 | echo "$as_me:$LINENO: result: just compiled" >&5 |
11364 | echo "${ECHO_T}just compiled" >&6 | |
e8b05380 PB |
11365 | elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
11366 | # We already found the complete path | |
172e41aa | 11367 | ac_dir=`dirname $GCC_FOR_TARGET` |
2aeb72e9 DD |
11368 | echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
11369 | echo "${ECHO_T}pre-installed in $ac_dir" >&6 | |
2abefe3d PB |
11370 | elif test "x$target" = "x$host"; then |
11371 | # We can use an host tool | |
11372 | GCC_FOR_TARGET='$()' | |
2aeb72e9 DD |
11373 | echo "$as_me:$LINENO: result: host tool" >&5 |
11374 | echo "${ECHO_T}host tool" >&6 | |
2abefe3d PB |
11375 | else |
11376 | # We need a cross tool | |
2aeb72e9 DD |
11377 | echo "$as_me:$LINENO: result: pre-installed" >&5 |
11378 | echo "${ECHO_T}pre-installed" >&6 | |
2abefe3d PB |
11379 | fi |
11380 | fi | |
0b0dc272 | 11381 | |
2aeb72e9 DD |
11382 | echo "$as_me:$LINENO: checking where to find the target gcj" >&5 |
11383 | echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6 | |
2abefe3d | 11384 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
11385 | if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then |
11386 | # We already found the complete path | |
172e41aa | 11387 | ac_dir=`dirname $GCJ_FOR_TARGET` |
2aeb72e9 DD |
11388 | echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
11389 | echo "${ECHO_T}pre-installed in $ac_dir" >&6 | |
e8b05380 PB |
11390 | else |
11391 | # Canadian cross, just use what we found | |
2aeb72e9 DD |
11392 | echo "$as_me:$LINENO: result: pre-installed" >&5 |
11393 | echo "${ECHO_T}pre-installed" >&6 | |
e8b05380 | 11394 | fi |
2abefe3d PB |
11395 | else |
11396 | ok=yes | |
11397 | case " ${configdirs} " in | |
11398 | *" gcc "*) ;; | |
11399 | *) ok=no ;; | |
11400 | esac | |
11401 | case ,${enable_languages}, in | |
11402 | *,java,*) ;; | |
11403 | *) ok=no ;; | |
11404 | esac | |
11405 | if test $ok = yes; then | |
11406 | # An in-tree tool is available and we can use it | |
11407 | GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/' | |
2aeb72e9 DD |
11408 | echo "$as_me:$LINENO: result: just compiled" >&5 |
11409 | echo "${ECHO_T}just compiled" >&6 | |
e8b05380 PB |
11410 | elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then |
11411 | # We already found the complete path | |
172e41aa | 11412 | ac_dir=`dirname $GCJ_FOR_TARGET` |
2aeb72e9 DD |
11413 | echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
11414 | echo "${ECHO_T}pre-installed in $ac_dir" >&6 | |
2abefe3d PB |
11415 | elif test "x$target" = "x$host"; then |
11416 | # We can use an host tool | |
11417 | GCJ_FOR_TARGET='$(GCJ)' | |
2aeb72e9 DD |
11418 | echo "$as_me:$LINENO: result: host tool" >&5 |
11419 | echo "${ECHO_T}host tool" >&6 | |
2abefe3d PB |
11420 | else |
11421 | # We need a cross tool | |
2aeb72e9 DD |
11422 | echo "$as_me:$LINENO: result: pre-installed" >&5 |
11423 | echo "${ECHO_T}pre-installed" >&6 | |
2abefe3d PB |
11424 | fi |
11425 | fi | |
0b0dc272 | 11426 | |
2aeb72e9 DD |
11427 | echo "$as_me:$LINENO: checking where to find the target gfortran" >&5 |
11428 | echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6 | |
2abefe3d | 11429 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
11430 | if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
11431 | # We already found the complete path | |
172e41aa | 11432 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
2aeb72e9 DD |
11433 | echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
11434 | echo "${ECHO_T}pre-installed in $ac_dir" >&6 | |
e8b05380 PB |
11435 | else |
11436 | # Canadian cross, just use what we found | |
2aeb72e9 DD |
11437 | echo "$as_me:$LINENO: result: pre-installed" >&5 |
11438 | echo "${ECHO_T}pre-installed" >&6 | |
e8b05380 | 11439 | fi |
2abefe3d PB |
11440 | else |
11441 | ok=yes | |
11442 | case " ${configdirs} " in | |
11443 | *" gcc "*) ;; | |
11444 | *) ok=no ;; | |
11445 | esac | |
11446 | case ,${enable_languages}, in | |
11447 | *,fortran,*) ;; | |
11448 | *) ok=no ;; | |
11449 | esac | |
11450 | if test $ok = yes; then | |
11451 | # An in-tree tool is available and we can use it | |
11452 | GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/' | |
2aeb72e9 DD |
11453 | echo "$as_me:$LINENO: result: just compiled" >&5 |
11454 | echo "${ECHO_T}just compiled" >&6 | |
e8b05380 PB |
11455 | elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
11456 | # We already found the complete path | |
172e41aa | 11457 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
2aeb72e9 DD |
11458 | echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
11459 | echo "${ECHO_T}pre-installed in $ac_dir" >&6 | |
2abefe3d PB |
11460 | elif test "x$target" = "x$host"; then |
11461 | # We can use an host tool | |
11462 | GFORTRAN_FOR_TARGET='$(GFORTRAN)' | |
2aeb72e9 DD |
11463 | echo "$as_me:$LINENO: result: host tool" >&5 |
11464 | echo "${ECHO_T}host tool" >&6 | |
2abefe3d PB |
11465 | else |
11466 | # We need a cross tool | |
2aeb72e9 DD |
11467 | echo "$as_me:$LINENO: result: pre-installed" >&5 |
11468 | echo "${ECHO_T}pre-installed" >&6 | |
2abefe3d PB |
11469 | fi |
11470 | fi | |
0b0dc272 | 11471 | |
2aeb72e9 DD |
11472 | echo "$as_me:$LINENO: checking where to find the target ld" >&5 |
11473 | echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6 | |
2abefe3d | 11474 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
11475 | if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
11476 | # We already found the complete path | |
172e41aa | 11477 | ac_dir=`dirname $LD_FOR_TARGET` |
2aeb72e9 DD |
11478 | echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
11479 | echo "${ECHO_T}pre-installed in $ac_dir" >&6 | |
e8b05380 PB |
11480 | else |
11481 | # Canadian cross, just use what we found | |
2aeb72e9 DD |
11482 | echo "$as_me:$LINENO: result: pre-installed" >&5 |
11483 | echo "${ECHO_T}pre-installed" >&6 | |
e8b05380 | 11484 | fi |
2abefe3d PB |
11485 | else |
11486 | ok=yes | |
11487 | case " ${configdirs} " in | |
11488 | *" ld "*) ;; | |
11489 | *) ok=no ;; | |
11490 | esac | |
1c710c3c | 11491 | |
2abefe3d PB |
11492 | if test $ok = yes; then |
11493 | # An in-tree tool is available and we can use it | |
11494 | LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new' | |
2aeb72e9 DD |
11495 | echo "$as_me:$LINENO: result: just compiled" >&5 |
11496 | echo "${ECHO_T}just compiled" >&6 | |
e8b05380 PB |
11497 | elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
11498 | # We already found the complete path | |
172e41aa | 11499 | ac_dir=`dirname $LD_FOR_TARGET` |
2aeb72e9 DD |
11500 | echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
11501 | echo "${ECHO_T}pre-installed in $ac_dir" >&6 | |
2abefe3d PB |
11502 | elif test "x$target" = "x$host"; then |
11503 | # We can use an host tool | |
11504 | LD_FOR_TARGET='$(LD)' | |
2aeb72e9 DD |
11505 | echo "$as_me:$LINENO: result: host tool" >&5 |
11506 | echo "${ECHO_T}host tool" >&6 | |
2abefe3d PB |
11507 | else |
11508 | # We need a cross tool | |
2aeb72e9 DD |
11509 | echo "$as_me:$LINENO: result: pre-installed" >&5 |
11510 | echo "${ECHO_T}pre-installed" >&6 | |
2abefe3d PB |
11511 | fi |
11512 | fi | |
0b0dc272 | 11513 | |
2aeb72e9 DD |
11514 | echo "$as_me:$LINENO: checking where to find the target lipo" >&5 |
11515 | echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6 | |
2abefe3d | 11516 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
11517 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
11518 | # We already found the complete path | |
172e41aa | 11519 | ac_dir=`dirname $LIPO_FOR_TARGET` |
2aeb72e9 DD |
11520 | echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
11521 | echo "${ECHO_T}pre-installed in $ac_dir" >&6 | |
e8b05380 PB |
11522 | else |
11523 | # Canadian cross, just use what we found | |
2aeb72e9 DD |
11524 | echo "$as_me:$LINENO: result: pre-installed" >&5 |
11525 | echo "${ECHO_T}pre-installed" >&6 | |
e8b05380 | 11526 | fi |
2abefe3d | 11527 | else |
e8b05380 PB |
11528 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
11529 | # We already found the complete path | |
172e41aa | 11530 | ac_dir=`dirname $LIPO_FOR_TARGET` |
2aeb72e9 DD |
11531 | echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
11532 | echo "${ECHO_T}pre-installed in $ac_dir" >&6 | |
e8b05380 | 11533 | elif test "x$target" = "x$host"; then |
2abefe3d PB |
11534 | # We can use an host tool |
11535 | LIPO_FOR_TARGET='$(LIPO)' | |
2aeb72e9 DD |
11536 | echo "$as_me:$LINENO: result: host tool" >&5 |
11537 | echo "${ECHO_T}host tool" >&6 | |
2abefe3d PB |
11538 | else |
11539 | # We need a cross tool | |
2aeb72e9 DD |
11540 | echo "$as_me:$LINENO: result: pre-installed" >&5 |
11541 | echo "${ECHO_T}pre-installed" >&6 | |
2abefe3d PB |
11542 | fi |
11543 | fi | |
0b0dc272 | 11544 | |
2aeb72e9 DD |
11545 | echo "$as_me:$LINENO: checking where to find the target nm" >&5 |
11546 | echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6 | |
2abefe3d | 11547 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
11548 | if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
11549 | # We already found the complete path | |
172e41aa | 11550 | ac_dir=`dirname $NM_FOR_TARGET` |
2aeb72e9 DD |
11551 | echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
11552 | echo "${ECHO_T}pre-installed in $ac_dir" >&6 | |
e8b05380 PB |
11553 | else |
11554 | # Canadian cross, just use what we found | |
2aeb72e9 DD |
11555 | echo "$as_me:$LINENO: result: pre-installed" >&5 |
11556 | echo "${ECHO_T}pre-installed" >&6 | |
e8b05380 | 11557 | fi |
2abefe3d PB |
11558 | else |
11559 | ok=yes | |
11560 | case " ${configdirs} " in | |
11561 | *" binutils "*) ;; | |
11562 | *) ok=no ;; | |
11563 | esac | |
1c710c3c | 11564 | |
2abefe3d PB |
11565 | if test $ok = yes; then |
11566 | # An in-tree tool is available and we can use it | |
11567 | NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new' | |
2aeb72e9 DD |
11568 | echo "$as_me:$LINENO: result: just compiled" >&5 |
11569 | echo "${ECHO_T}just compiled" >&6 | |
e8b05380 PB |
11570 | elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
11571 | # We already found the complete path | |
172e41aa | 11572 | ac_dir=`dirname $NM_FOR_TARGET` |
2aeb72e9 DD |
11573 | echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
11574 | echo "${ECHO_T}pre-installed in $ac_dir" >&6 | |
2abefe3d PB |
11575 | elif test "x$target" = "x$host"; then |
11576 | # We can use an host tool | |
11577 | NM_FOR_TARGET='$(NM)' | |
2aeb72e9 DD |
11578 | echo "$as_me:$LINENO: result: host tool" >&5 |
11579 | echo "${ECHO_T}host tool" >&6 | |
2abefe3d PB |
11580 | else |
11581 | # We need a cross tool | |
2aeb72e9 DD |
11582 | echo "$as_me:$LINENO: result: pre-installed" >&5 |
11583 | echo "${ECHO_T}pre-installed" >&6 | |
2abefe3d PB |
11584 | fi |
11585 | fi | |
0b0dc272 | 11586 | |
2aeb72e9 DD |
11587 | echo "$as_me:$LINENO: checking where to find the target objdump" >&5 |
11588 | echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6 | |
2abefe3d | 11589 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
11590 | if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
11591 | # We already found the complete path | |
172e41aa | 11592 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
2aeb72e9 DD |
11593 | echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
11594 | echo "${ECHO_T}pre-installed in $ac_dir" >&6 | |
e8b05380 PB |
11595 | else |
11596 | # Canadian cross, just use what we found | |
2aeb72e9 DD |
11597 | echo "$as_me:$LINENO: result: pre-installed" >&5 |
11598 | echo "${ECHO_T}pre-installed" >&6 | |
e8b05380 | 11599 | fi |
2abefe3d PB |
11600 | else |
11601 | ok=yes | |
11602 | case " ${configdirs} " in | |
11603 | *" binutils "*) ;; | |
11604 | *) ok=no ;; | |
11605 | esac | |
1c710c3c | 11606 | |
2abefe3d PB |
11607 | if test $ok = yes; then |
11608 | # An in-tree tool is available and we can use it | |
11609 | OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump' | |
2aeb72e9 DD |
11610 | echo "$as_me:$LINENO: result: just compiled" >&5 |
11611 | echo "${ECHO_T}just compiled" >&6 | |
e8b05380 PB |
11612 | elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
11613 | # We already found the complete path | |
172e41aa | 11614 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
2aeb72e9 DD |
11615 | echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
11616 | echo "${ECHO_T}pre-installed in $ac_dir" >&6 | |
2abefe3d PB |
11617 | elif test "x$target" = "x$host"; then |
11618 | # We can use an host tool | |
11619 | OBJDUMP_FOR_TARGET='$(OBJDUMP)' | |
2aeb72e9 DD |
11620 | echo "$as_me:$LINENO: result: host tool" >&5 |
11621 | echo "${ECHO_T}host tool" >&6 | |
2abefe3d PB |
11622 | else |
11623 | # We need a cross tool | |
2aeb72e9 DD |
11624 | echo "$as_me:$LINENO: result: pre-installed" >&5 |
11625 | echo "${ECHO_T}pre-installed" >&6 | |
2abefe3d PB |
11626 | fi |
11627 | fi | |
0b0dc272 | 11628 | |
2aeb72e9 DD |
11629 | echo "$as_me:$LINENO: checking where to find the target ranlib" >&5 |
11630 | echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6 | |
2abefe3d | 11631 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
11632 | if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
11633 | # We already found the complete path | |
172e41aa | 11634 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
2aeb72e9 DD |
11635 | echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
11636 | echo "${ECHO_T}pre-installed in $ac_dir" >&6 | |
e8b05380 PB |
11637 | else |
11638 | # Canadian cross, just use what we found | |
2aeb72e9 DD |
11639 | echo "$as_me:$LINENO: result: pre-installed" >&5 |
11640 | echo "${ECHO_T}pre-installed" >&6 | |
e8b05380 | 11641 | fi |
2abefe3d PB |
11642 | else |
11643 | ok=yes | |
11644 | case " ${configdirs} " in | |
11645 | *" binutils "*) ;; | |
11646 | *) ok=no ;; | |
11647 | esac | |
1c710c3c | 11648 | |
2abefe3d PB |
11649 | if test $ok = yes; then |
11650 | # An in-tree tool is available and we can use it | |
11651 | RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib' | |
2aeb72e9 DD |
11652 | echo "$as_me:$LINENO: result: just compiled" >&5 |
11653 | echo "${ECHO_T}just compiled" >&6 | |
e8b05380 PB |
11654 | elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
11655 | # We already found the complete path | |
172e41aa | 11656 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
2aeb72e9 DD |
11657 | echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
11658 | echo "${ECHO_T}pre-installed in $ac_dir" >&6 | |
2abefe3d PB |
11659 | elif test "x$target" = "x$host"; then |
11660 | # We can use an host tool | |
11661 | RANLIB_FOR_TARGET='$(RANLIB)' | |
2aeb72e9 DD |
11662 | echo "$as_me:$LINENO: result: host tool" >&5 |
11663 | echo "${ECHO_T}host tool" >&6 | |
2abefe3d PB |
11664 | else |
11665 | # We need a cross tool | |
2aeb72e9 DD |
11666 | echo "$as_me:$LINENO: result: pre-installed" >&5 |
11667 | echo "${ECHO_T}pre-installed" >&6 | |
2abefe3d PB |
11668 | fi |
11669 | fi | |
0b0dc272 | 11670 | |
2aeb72e9 DD |
11671 | echo "$as_me:$LINENO: checking where to find the target strip" >&5 |
11672 | echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6 | |
2abefe3d | 11673 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
11674 | if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
11675 | # We already found the complete path | |
172e41aa | 11676 | ac_dir=`dirname $STRIP_FOR_TARGET` |
2aeb72e9 DD |
11677 | echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
11678 | echo "${ECHO_T}pre-installed in $ac_dir" >&6 | |
e8b05380 PB |
11679 | else |
11680 | # Canadian cross, just use what we found | |
2aeb72e9 DD |
11681 | echo "$as_me:$LINENO: result: pre-installed" >&5 |
11682 | echo "${ECHO_T}pre-installed" >&6 | |
e8b05380 | 11683 | fi |
2abefe3d PB |
11684 | else |
11685 | ok=yes | |
11686 | case " ${configdirs} " in | |
11687 | *" binutils "*) ;; | |
11688 | *) ok=no ;; | |
11689 | esac | |
1c710c3c | 11690 | |
2abefe3d PB |
11691 | if test $ok = yes; then |
11692 | # An in-tree tool is available and we can use it | |
11693 | STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip' | |
2aeb72e9 DD |
11694 | echo "$as_me:$LINENO: result: just compiled" >&5 |
11695 | echo "${ECHO_T}just compiled" >&6 | |
e8b05380 PB |
11696 | elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
11697 | # We already found the complete path | |
172e41aa | 11698 | ac_dir=`dirname $STRIP_FOR_TARGET` |
2aeb72e9 DD |
11699 | echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
11700 | echo "${ECHO_T}pre-installed in $ac_dir" >&6 | |
2abefe3d PB |
11701 | elif test "x$target" = "x$host"; then |
11702 | # We can use an host tool | |
11703 | STRIP_FOR_TARGET='$(STRIP)' | |
2aeb72e9 DD |
11704 | echo "$as_me:$LINENO: result: host tool" >&5 |
11705 | echo "${ECHO_T}host tool" >&6 | |
2abefe3d PB |
11706 | else |
11707 | # We need a cross tool | |
2aeb72e9 DD |
11708 | echo "$as_me:$LINENO: result: pre-installed" >&5 |
11709 | echo "${ECHO_T}pre-installed" >&6 | |
2abefe3d PB |
11710 | fi |
11711 | fi | |
0b0dc272 | 11712 | |
2aeb72e9 DD |
11713 | echo "$as_me:$LINENO: checking where to find the target windres" >&5 |
11714 | echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6 | |
2abefe3d | 11715 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
11716 | if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
11717 | # We already found the complete path | |
172e41aa | 11718 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
2aeb72e9 DD |
11719 | echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
11720 | echo "${ECHO_T}pre-installed in $ac_dir" >&6 | |
e8b05380 PB |
11721 | else |
11722 | # Canadian cross, just use what we found | |
2aeb72e9 DD |
11723 | echo "$as_me:$LINENO: result: pre-installed" >&5 |
11724 | echo "${ECHO_T}pre-installed" >&6 | |
e8b05380 | 11725 | fi |
2abefe3d PB |
11726 | else |
11727 | ok=yes | |
11728 | case " ${configdirs} " in | |
11729 | *" binutils "*) ;; | |
11730 | *) ok=no ;; | |
11731 | esac | |
1c710c3c | 11732 | |
2abefe3d PB |
11733 | if test $ok = yes; then |
11734 | # An in-tree tool is available and we can use it | |
11735 | WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres' | |
2aeb72e9 DD |
11736 | echo "$as_me:$LINENO: result: just compiled" >&5 |
11737 | echo "${ECHO_T}just compiled" >&6 | |
e8b05380 PB |
11738 | elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
11739 | # We already found the complete path | |
172e41aa | 11740 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
2aeb72e9 DD |
11741 | echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
11742 | echo "${ECHO_T}pre-installed in $ac_dir" >&6 | |
2abefe3d PB |
11743 | elif test "x$target" = "x$host"; then |
11744 | # We can use an host tool | |
11745 | WINDRES_FOR_TARGET='$(WINDRES)' | |
2aeb72e9 DD |
11746 | echo "$as_me:$LINENO: result: host tool" >&5 |
11747 | echo "${ECHO_T}host tool" >&6 | |
2abefe3d PB |
11748 | else |
11749 | # We need a cross tool | |
2aeb72e9 DD |
11750 | echo "$as_me:$LINENO: result: pre-installed" >&5 |
11751 | echo "${ECHO_T}pre-installed" >&6 | |
2abefe3d | 11752 | fi |
671aa708 | 11753 | fi |
be912515 | 11754 | |
901119ae KT |
11755 | echo "$as_me:$LINENO: checking where to find the target windmc" >&5 |
11756 | echo $ECHO_N "checking where to find the target windmc... $ECHO_C" >&6 | |
11757 | if test "x${build}" != "x${host}" ; then | |
11758 | if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then | |
11759 | # We already found the complete path | |
11760 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
11761 | echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 | |
11762 | echo "${ECHO_T}pre-installed in $ac_dir" >&6 | |
11763 | else | |
11764 | # Canadian cross, just use what we found | |
11765 | echo "$as_me:$LINENO: result: pre-installed" >&5 | |
11766 | echo "${ECHO_T}pre-installed" >&6 | |
11767 | fi | |
11768 | else | |
11769 | ok=yes | |
11770 | case " ${configdirs} " in | |
11771 | *" binutils "*) ;; | |
11772 | *) ok=no ;; | |
11773 | esac | |
11774 | ||
11775 | if test $ok = yes; then | |
11776 | # An in-tree tool is available and we can use it | |
11777 | WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc' | |
11778 | echo "$as_me:$LINENO: result: just compiled" >&5 | |
11779 | echo "${ECHO_T}just compiled" >&6 | |
11780 | elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then | |
11781 | # We already found the complete path | |
11782 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
11783 | echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 | |
11784 | echo "${ECHO_T}pre-installed in $ac_dir" >&6 | |
11785 | elif test "x$target" = "x$host"; then | |
11786 | # We can use an host tool | |
11787 | WINDMC_FOR_TARGET='$(WINDMC)' | |
11788 | echo "$as_me:$LINENO: result: host tool" >&5 | |
11789 | echo "${ECHO_T}host tool" >&6 | |
11790 | else | |
11791 | # We need a cross tool | |
11792 | echo "$as_me:$LINENO: result: pre-installed" >&5 | |
11793 | echo "${ECHO_T}pre-installed" >&6 | |
11794 | fi | |
11795 | fi | |
11796 | ||
be912515 NN |
11797 | |
11798 | ||
2abefe3d | 11799 | |
0b0dc272 | 11800 | |
671aa708 NN |
11801 | # Certain tools may need extra flags. |
11802 | AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target} | |
11803 | RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target} | |
11804 | NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target} | |
11805 | ||
2abefe3d PB |
11806 | # When building target libraries, except in a Canadian cross, we use |
11807 | # the same toolchain as the compiler we just built. | |
11808 | COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)' | |
11809 | COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)' | |
11810 | COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)' | |
11811 | if test $host = $build; then | |
11812 | case " $configdirs " in | |
11813 | *" gcc "*) | |
11814 | COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as' | |
11815 | COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld' | |
11816 | COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target} | |
11817 | ;; | |
11818 | esac | |
11819 | fi | |
11820 | ||
11821 | ||
11822 | ||
11823 | ||
11824 | ||
2aeb72e9 DD |
11825 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
11826 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 | |
11827 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. | |
ee03dc5e | 11828 | if test "${enable_maintainer_mode+set}" = set; then |
2aeb72e9 DD |
11829 | enableval="$enable_maintainer_mode" |
11830 | USE_MAINTAINER_MODE=$enableval | |
ee03dc5e AO |
11831 | else |
11832 | USE_MAINTAINER_MODE=no | |
2aeb72e9 DD |
11833 | fi; |
11834 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 | |
11835 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 | |
ee03dc5e AO |
11836 | |
11837 | ||
11838 | if test "$USE_MAINTAINER_MODE" = yes; then | |
11839 | MAINTAINER_MODE_TRUE= | |
11840 | MAINTAINER_MODE_FALSE='#' | |
11841 | else | |
11842 | MAINTAINER_MODE_TRUE='#' | |
11843 | MAINTAINER_MODE_FALSE= | |
1c710c3c | 11844 | fi |
ee03dc5e AO |
11845 | MAINT=$MAINTAINER_MODE_TRUE |
11846 | ||
2805b53a NN |
11847 | # --------------------- |
11848 | # GCC bootstrap support | |
11849 | # --------------------- | |
11850 | ||
11851 | # Stage specific cflags for build. | |
11852 | stage1_cflags="-g" | |
11853 | case $build in | |
11854 | vax-*-*) | |
11855 | case ${GCC} in | |
11856 | yes) stage1_cflags="-g -Wa,-J" ;; | |
11857 | *) stage1_cflags="-g -J" ;; | |
11858 | esac ;; | |
2805b53a NN |
11859 | esac |
11860 | ||
0b50988a EB |
11861 | # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems. |
11862 | if test "$GCC" = yes; then | |
11863 | saved_CFLAGS="$CFLAGS" | |
11864 | ||
11865 | # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it. | |
11866 | CFLAGS="$CFLAGS -fkeep-inline-functions" | |
2aeb72e9 DD |
11867 | echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5 |
11868 | echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6 | |
1c710c3c DJ |
11869 | cat >conftest.$ac_ext <<_ACEOF |
11870 | /* confdefs.h. */ | |
11871 | _ACEOF | |
11872 | cat confdefs.h >>conftest.$ac_ext | |
11873 | cat >>conftest.$ac_ext <<_ACEOF | |
11874 | /* end confdefs.h. */ | |
11875 | ||
9cc1244e JJ |
11876 | #if (__GNUC__ < 3) \ |
11877 | || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \ | |
11878 | || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1))) | |
11879 | #error http://gcc.gnu.org/PR29382 | |
11880 | #endif | |
11881 | ||
1c710c3c DJ |
11882 | int |
11883 | main () | |
11884 | { | |
11885 | ||
11886 | ; | |
11887 | return 0; | |
11888 | } | |
11889 | _ACEOF | |
11890 | rm -f conftest.$ac_objext | |
2aeb72e9 DD |
11891 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
11892 | (eval $ac_compile) 2>conftest.er1 | |
1c710c3c DJ |
11893 | ac_status=$? |
11894 | grep -v '^ *+' conftest.er1 >conftest.err | |
11895 | rm -f conftest.er1 | |
11896 | cat conftest.err >&5 | |
11897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2aeb72e9 DD |
11898 | (exit $ac_status); } && |
11899 | { ac_try='test -z "$ac_c_werror_flag" | |
11900 | || test ! -s conftest.err' | |
11901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11902 | (eval $ac_try) 2>&5 | |
11903 | ac_status=$? | |
11904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11905 | (exit $ac_status); }; } && | |
11906 | { ac_try='test -s conftest.$ac_objext' | |
11907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11908 | (eval $ac_try) 2>&5 | |
11909 | ac_status=$? | |
11910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11911 | (exit $ac_status); }; }; then | |
11912 | echo "$as_me:$LINENO: result: yes" >&5 | |
11913 | echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions" | |
1c710c3c DJ |
11914 | else |
11915 | echo "$as_me: failed program was:" >&5 | |
11916 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11917 | ||
2aeb72e9 DD |
11918 | echo "$as_me:$LINENO: result: no" >&5 |
11919 | echo "${ECHO_T}no" >&6 | |
1c710c3c | 11920 | fi |
2aeb72e9 | 11921 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
0b50988a EB |
11922 | |
11923 | CFLAGS="$saved_CFLAGS" | |
11924 | fi | |
11925 | ||
11926 | ||
2805b53a | 11927 | |
8efea775 | 11928 | # Enable --enable-checking in stage1 of the compiler. |
2aeb72e9 | 11929 | # Check whether --enable-stage1-checking or --disable-stage1-checking was given. |
8efea775 | 11930 | if test "${enable_stage1_checking+set}" = set; then |
2aeb72e9 DD |
11931 | enableval="$enable_stage1_checking" |
11932 | stage1_checking=--enable-checking=${enable_stage1_checking} | |
8efea775 PB |
11933 | else |
11934 | if test "x$enable_checking" = xno; then | |
11935 | stage1_checking=--enable-checking | |
11936 | else | |
11937 | stage1_checking=--enable-checking${enable_checking+=}$enable_checking | |
11938 | fi | |
2aeb72e9 | 11939 | fi; |
8efea775 PB |
11940 | |
11941 | ||
2805b53a | 11942 | # Enable -Werror in bootstrap stage2 and later. |
2aeb72e9 | 11943 | # Check whether --enable-werror or --disable-werror was given. |
2805b53a | 11944 | if test "${enable_werror+set}" = set; then |
2aeb72e9 DD |
11945 | enableval="$enable_werror" |
11946 | ||
2805b53a | 11947 | else |
416cfb5e | 11948 | if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then |
2805b53a | 11949 | enable_werror=yes |
88fceb68 PB |
11950 | else |
11951 | enable_werror=no | |
11952 | fi | |
2aeb72e9 | 11953 | fi; |
09a9c095 NN |
11954 | case ${enable_werror} in |
11955 | yes) stage2_werror_flag="--enable-werror-always" ;; | |
11956 | *) stage2_werror_flag="" ;; | |
2805b53a NN |
11957 | esac |
11958 | ||
11959 | ||
32845532 | 11960 | # Flags needed to enable html installing and building |
1c710c3c | 11961 | |
2aeb72e9 | 11962 | # Check whether --with-datarootdir or --without-datarootdir was given. |
32845532 | 11963 | if test "${with_datarootdir+set}" = set; then |
2aeb72e9 DD |
11964 | withval="$with_datarootdir" |
11965 | datarootdir="\${prefix}/${withval}" | |
32845532 CD |
11966 | else |
11967 | datarootdir="\${prefix}/share" | |
2aeb72e9 | 11968 | fi; |
32845532 CD |
11969 | |
11970 | ||
2aeb72e9 | 11971 | # Check whether --with-docdir or --without-docdir was given. |
32845532 | 11972 | if test "${with_docdir+set}" = set; then |
2aeb72e9 DD |
11973 | withval="$with_docdir" |
11974 | docdir="\${prefix}/${withval}" | |
32845532 CD |
11975 | else |
11976 | docdir="\${datarootdir}/doc" | |
2aeb72e9 | 11977 | fi; |
32845532 CD |
11978 | |
11979 | ||
2aeb72e9 | 11980 | # Check whether --with-pdfdir or --without-pdfdir was given. |
9c4d2493 | 11981 | if test "${with_pdfdir+set}" = set; then |
2aeb72e9 DD |
11982 | withval="$with_pdfdir" |
11983 | pdfdir="\${prefix}/${withval}" | |
9c4d2493 BM |
11984 | else |
11985 | pdfdir="\${docdir}" | |
2aeb72e9 | 11986 | fi; |
9c4d2493 BM |
11987 | |
11988 | ||
2aeb72e9 | 11989 | # Check whether --with-htmldir or --without-htmldir was given. |
32845532 | 11990 | if test "${with_htmldir+set}" = set; then |
2aeb72e9 DD |
11991 | withval="$with_htmldir" |
11992 | htmldir="\${prefix}/${withval}" | |
32845532 CD |
11993 | else |
11994 | htmldir="\${docdir}" | |
2aeb72e9 | 11995 | fi; |
32845532 CD |
11996 | |
11997 | ||
11998 | ||
11999 | ||
172e41aa | 12000 | |
11a67599 | 12001 | |
2aeb72e9 | 12002 | ac_config_files="$ac_config_files Makefile" |
1c710c3c | 12003 | cat >confcache <<\_ACEOF |
671aa708 NN |
12004 | # This file is a shell script that caches the results of configure |
12005 | # tests run on this system so they can be shared between configure | |
1c710c3c DJ |
12006 | # scripts and configure runs, see configure's option --config-cache. |
12007 | # It is not useful on other systems. If it contains results you don't | |
12008 | # want to keep, you may remove or edit it. | |
671aa708 | 12009 | # |
1c710c3c DJ |
12010 | # config.status only pays attention to the cache file if you give it |
12011 | # the --recheck option to rerun configure. | |
671aa708 | 12012 | # |
1c710c3c DJ |
12013 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
12014 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
12015 | # following values. | |
12016 | ||
12017 | _ACEOF | |
12018 | ||
671aa708 NN |
12019 | # The following way of writing the cache mishandles newlines in values, |
12020 | # but we know of no workaround that is simple, portable, and efficient. | |
2aeb72e9 | 12021 | # So, don't put newlines in cache variables' values. |
671aa708 NN |
12022 | # Ultrix sh set writes to stderr and can't be redirected directly, |
12023 | # and sets the high bit in the cache file unless we assign to the vars. | |
2aeb72e9 | 12024 | { |
1c710c3c | 12025 | (set) 2>&1 | |
2aeb72e9 DD |
12026 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
12027 | *ac_space=\ *) | |
1c710c3c DJ |
12028 | # `set' does not quote correctly, so add quotes (double-quote |
12029 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
12030 | sed -n \ | |
12031 | "s/'/'\\\\''/g; | |
12032 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
2aeb72e9 | 12033 | ;; |
1c710c3c DJ |
12034 | *) |
12035 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
2aeb72e9 DD |
12036 | sed -n \ |
12037 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
1c710c3c | 12038 | ;; |
2aeb72e9 DD |
12039 | esac; |
12040 | } | | |
1c710c3c DJ |
12041 | sed ' |
12042 | t clear | |
2aeb72e9 | 12043 | : clear |
1c710c3c DJ |
12044 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
12045 | t end | |
2aeb72e9 DD |
12046 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
12047 | : end' >>confcache | |
12048 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
12049 | if test -w $cache_file; then | |
12050 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
1c710c3c | 12051 | cat confcache >$cache_file |
671aa708 | 12052 | else |
2aeb72e9 | 12053 | echo "not updating unwritable cache $cache_file" |
671aa708 | 12054 | fi |
4977bab6 | 12055 | fi |
671aa708 | 12056 | rm -f confcache |
79c06341 | 12057 | |
671aa708 NN |
12058 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
12059 | # Let make expand exec_prefix. | |
12060 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
4e77e8f1 | 12061 | |
2aeb72e9 DD |
12062 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
12063 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
12064 | # trailing colons and then remove the whole line if VPATH becomes empty | |
12065 | # (actually we leave an empty line to preserve line numbers). | |
12066 | if test "x$srcdir" = x.; then | |
12067 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
12068 | s/:*\$(srcdir):*/:/; | |
12069 | s/:*\${srcdir}:*/:/; | |
12070 | s/:*@srcdir@:*/:/; | |
12071 | s/^\([^=]*=[ ]*\):*/\1/; | |
12072 | s/:*$//; | |
12073 | s/^[^=]*=[ ]*$//; | |
12074 | }' | |
12075 | fi | |
12076 | ||
671aa708 NN |
12077 | # Transform confdefs.h into DEFS. |
12078 | # Protect against shell expansion while executing Makefile rules. | |
12079 | # Protect against Makefile macro expansion. | |
1c710c3c DJ |
12080 | # |
12081 | # If the first sed substitution is executed (which looks for macros that | |
2aeb72e9 | 12082 | # take arguments), then we branch to the quote section. Otherwise, |
1c710c3c | 12083 | # look for a macro that doesn't take arguments. |
2aeb72e9 | 12084 | cat >confdef2opt.sed <<\_ACEOF |
1c710c3c | 12085 | t clear |
2aeb72e9 DD |
12086 | : clear |
12087 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g | |
1c710c3c | 12088 | t quote |
2aeb72e9 | 12089 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g |
1c710c3c | 12090 | t quote |
2aeb72e9 DD |
12091 | d |
12092 | : quote | |
12093 | s,[ `~#$^&*(){}\\|;'"<>?],\\&,g | |
12094 | s,\[,\\&,g | |
12095 | s,\],\\&,g | |
12096 | s,\$,$$,g | |
12097 | p | |
12098 | _ACEOF | |
12099 | # We use echo to avoid assuming a particular line-breaking character. | |
12100 | # The extra dot is to prevent the shell from consuming trailing | |
12101 | # line-breaks from the sub-command output. A line-break within | |
12102 | # single-quotes doesn't work because, if this script is created in a | |
12103 | # platform that uses two characters for line-breaks (e.g., DOS), tr | |
12104 | # would break. | |
12105 | ac_LF_and_DOT=`echo; echo .` | |
12106 | DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` | |
12107 | rm -f confdef2opt.sed | |
1c710c3c DJ |
12108 | |
12109 | ||
12110 | ac_libobjs= | |
12111 | ac_ltlibobjs= | |
12112 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
12113 | # 1. Remove the extension, and $U if already installed. | |
2aeb72e9 DD |
12114 | ac_i=`echo "$ac_i" | |
12115 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
12116 | # 2. Add them. | |
12117 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
12118 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
1c710c3c DJ |
12119 | done |
12120 | LIBOBJS=$ac_libobjs | |
fb0103e5 | 12121 | |
1c710c3c | 12122 | LTLIBOBJS=$ac_ltlibobjs |
0b0dc272 | 12123 | |
af71363e | 12124 | |
1c710c3c DJ |
12125 | |
12126 | : ${CONFIG_STATUS=./config.status} | |
12127 | ac_clean_files_save=$ac_clean_files | |
12128 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
12129 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
12130 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
12131 | cat >$CONFIG_STATUS <<_ACEOF | |
12132 | #! $SHELL | |
12133 | # Generated by $as_me. | |
671aa708 | 12134 | # Run this file to recreate the current configuration. |
671aa708 | 12135 | # Compiler output produced by configure, useful for debugging |
1c710c3c | 12136 | # configure, is in config.log if it exists. |
0b0dc272 | 12137 | |
1c710c3c DJ |
12138 | debug=false |
12139 | ac_cs_recheck=false | |
12140 | ac_cs_silent=false | |
12141 | SHELL=\${CONFIG_SHELL-$SHELL} | |
12142 | _ACEOF | |
12143 | ||
12144 | cat >>$CONFIG_STATUS <<\_ACEOF | |
12145 | ## --------------------- ## | |
12146 | ## M4sh Initialization. ## | |
12147 | ## --------------------- ## | |
12148 | ||
2aeb72e9 | 12149 | # Be Bourne compatible |
1c710c3c DJ |
12150 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
12151 | emulate sh | |
12152 | NULLCMD=: | |
12153 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
12154 | # is contrary to our usage. Disable this feature. | |
12155 | alias -g '${1+"$@"}'='"$@"' | |
2aeb72e9 DD |
12156 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
12157 | set -o posix | |
1c710c3c | 12158 | fi |
2aeb72e9 | 12159 | DUALCASE=1; export DUALCASE # for MKS sh |
1c710c3c DJ |
12160 | |
12161 | # Support unset when possible. | |
12162 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
12163 | as_unset=unset | |
12164 | else | |
12165 | as_unset=false | |
12166 | fi | |
12167 | ||
12168 | ||
12169 | # Work around bugs in pre-3.0 UWIN ksh. | |
2aeb72e9 | 12170 | $as_unset ENV MAIL MAILPATH |
1c710c3c DJ |
12171 | PS1='$ ' |
12172 | PS2='> ' | |
12173 | PS4='+ ' | |
12174 | ||
12175 | # NLS nuisances. | |
12176 | for as_var in \ | |
12177 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
12178 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
12179 | LC_TELEPHONE LC_TIME | |
12180 | do | |
12181 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
12182 | eval $as_var=C; export $as_var | |
12183 | else | |
2aeb72e9 | 12184 | $as_unset $as_var |
1c710c3c DJ |
12185 | fi |
12186 | done | |
12187 | ||
12188 | # Required to use basename. | |
2aeb72e9 | 12189 | if expr a : '\(a\)' >/dev/null 2>&1; then |
1c710c3c DJ |
12190 | as_expr=expr |
12191 | else | |
12192 | as_expr=false | |
12193 | fi | |
12194 | ||
2aeb72e9 | 12195 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
1c710c3c DJ |
12196 | as_basename=basename |
12197 | else | |
12198 | as_basename=false | |
12199 | fi | |
12200 | ||
12201 | ||
12202 | # Name of the executable. | |
2aeb72e9 | 12203 | as_me=`$as_basename "$0" || |
1c710c3c DJ |
12204 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
12205 | X"$0" : 'X\(//\)$' \| \ | |
2aeb72e9 DD |
12206 | X"$0" : 'X\(/\)$' \| \ |
12207 | . : '\(.\)' 2>/dev/null || | |
1c710c3c | 12208 | echo X/"$0" | |
2aeb72e9 DD |
12209 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
12210 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
12211 | /^X\/\(\/\).*/{ s//\1/; q; } | |
12212 | s/.*/./; q'` | |
1c710c3c | 12213 | |
2aeb72e9 DD |
12214 | |
12215 | # PATH needs CR, and LINENO needs CR and PATH. | |
12216 | # Avoid depending upon Character Ranges. | |
12217 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
12218 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
12219 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
12220 | as_cr_digits='0123456789' | |
12221 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
12222 | ||
12223 | # The user is always right. | |
12224 | if test "${PATH_SEPARATOR+set}" != set; then | |
12225 | echo "#! /bin/sh" >conf$$.sh | |
12226 | echo "exit 0" >>conf$$.sh | |
12227 | chmod +x conf$$.sh | |
12228 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
12229 | PATH_SEPARATOR=';' | |
12230 | else | |
12231 | PATH_SEPARATOR=: | |
12232 | fi | |
12233 | rm -f conf$$.sh | |
12234 | fi | |
1c710c3c DJ |
12235 | |
12236 | ||
2aeb72e9 DD |
12237 | as_lineno_1=$LINENO |
12238 | as_lineno_2=$LINENO | |
12239 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
12240 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
12241 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
12242 | # Find who we are. Look in the path if we contain no path at all | |
12243 | # relative or not. | |
12244 | case $0 in | |
12245 | *[\\/]* ) as_myself=$0 ;; | |
12246 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12247 | for as_dir in $PATH | |
12248 | do | |
12249 | IFS=$as_save_IFS | |
12250 | test -z "$as_dir" && as_dir=. | |
12251 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
12252 | done | |
1c710c3c | 12253 | |
2aeb72e9 DD |
12254 | ;; |
12255 | esac | |
12256 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
12257 | # in which case we are not to be found in the path. | |
12258 | if test "x$as_myself" = x; then | |
12259 | as_myself=$0 | |
12260 | fi | |
12261 | if test ! -f "$as_myself"; then | |
12262 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
12263 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
12264 | { (exit 1); exit 1; }; } | |
12265 | fi | |
12266 | case $CONFIG_SHELL in | |
12267 | '') | |
12268 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12269 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
12270 | do | |
12271 | IFS=$as_save_IFS | |
12272 | test -z "$as_dir" && as_dir=. | |
12273 | for as_base in sh bash ksh sh5; do | |
12274 | case $as_dir in | |
12275 | /*) | |
12276 | if ("$as_dir/$as_base" -c ' | |
1c710c3c DJ |
12277 | as_lineno_1=$LINENO |
12278 | as_lineno_2=$LINENO | |
2aeb72e9 | 12279 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
1c710c3c | 12280 | test "x$as_lineno_1" != "x$as_lineno_2" && |
2aeb72e9 DD |
12281 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
12282 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
12283 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
12284 | CONFIG_SHELL=$as_dir/$as_base | |
12285 | export CONFIG_SHELL | |
12286 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
12287 | fi;; | |
12288 | esac | |
12289 | done | |
12290 | done | |
12291 | ;; | |
12292 | esac | |
1c710c3c DJ |
12293 | |
12294 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
12295 | # uniformly replaced by the line number. The first 'sed' inserts a | |
2aeb72e9 DD |
12296 | # line-number line before each line; the second 'sed' does the real |
12297 | # work. The second script uses 'N' to pair each line-number line | |
12298 | # with the numbered line, and appends trailing '-' during | |
12299 | # substitution so that $LINENO is not a special case at line end. | |
1c710c3c | 12300 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
2aeb72e9 DD |
12301 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
12302 | sed '=' <$as_myself | | |
1c710c3c DJ |
12303 | sed ' |
12304 | N | |
2aeb72e9 DD |
12305 | s,$,-, |
12306 | : loop | |
12307 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
1c710c3c | 12308 | t loop |
2aeb72e9 DD |
12309 | s,-$,, |
12310 | s,^['$as_cr_digits']*\n,, | |
1c710c3c | 12311 | ' >$as_me.lineno && |
2aeb72e9 DD |
12312 | chmod +x $as_me.lineno || |
12313 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
12314 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
1c710c3c DJ |
12315 | { (exit 1); exit 1; }; } |
12316 | ||
12317 | # Don't try to exec as it changes $[0], causing all sort of problems | |
12318 | # (the dirname of $[0] is not the place where we might find the | |
2aeb72e9 DD |
12319 | # original and so on. Autoconf is especially sensible to this). |
12320 | . ./$as_me.lineno | |
1c710c3c DJ |
12321 | # Exit status is that of the last command. |
12322 | exit | |
12323 | } | |
12324 | ||
12325 | ||
2aeb72e9 DD |
12326 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
12327 | *c*,-n*) ECHO_N= ECHO_C=' | |
12328 | ' ECHO_T=' ' ;; | |
12329 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
12330 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
1c710c3c DJ |
12331 | esac |
12332 | ||
2aeb72e9 | 12333 | if expr a : '\(a\)' >/dev/null 2>&1; then |
1c710c3c DJ |
12334 | as_expr=expr |
12335 | else | |
12336 | as_expr=false | |
12337 | fi | |
12338 | ||
12339 | rm -f conf$$ conf$$.exe conf$$.file | |
12340 | echo >conf$$.file | |
12341 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
2aeb72e9 DD |
12342 | # We could just check for DJGPP; but this test a) works b) is more generic |
12343 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
12344 | if test -f conf$$.exe; then | |
12345 | # Don't use ln at all; we don't have any links | |
1c710c3c | 12346 | as_ln_s='cp -p' |
2aeb72e9 DD |
12347 | else |
12348 | as_ln_s='ln -s' | |
12349 | fi | |
1c710c3c DJ |
12350 | elif ln conf$$.file conf$$ 2>/dev/null; then |
12351 | as_ln_s=ln | |
12352 | else | |
12353 | as_ln_s='cp -p' | |
12354 | fi | |
2aeb72e9 | 12355 | rm -f conf$$ conf$$.exe conf$$.file |
1c710c3c DJ |
12356 | |
12357 | if mkdir -p . 2>/dev/null; then | |
12358 | as_mkdir_p=: | |
12359 | else | |
12360 | test -d ./-p && rmdir ./-p | |
12361 | as_mkdir_p=false | |
12362 | fi | |
12363 | ||
2aeb72e9 | 12364 | as_executable_p="test -f" |
1c710c3c DJ |
12365 | |
12366 | # Sed expression to map a string onto a valid CPP name. | |
12367 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
12368 | ||
12369 | # Sed expression to map a string onto a valid variable name. | |
12370 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
12371 | ||
12372 | ||
2aeb72e9 DD |
12373 | # IFS |
12374 | # We need space, tab and new line, in precisely that order. | |
12375 | as_nl=' | |
12376 | ' | |
12377 | IFS=" $as_nl" | |
12378 | ||
12379 | # CDPATH. | |
12380 | $as_unset CDPATH | |
12381 | ||
1c710c3c DJ |
12382 | exec 6>&1 |
12383 | ||
2aeb72e9 | 12384 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
1c710c3c | 12385 | # report actual input values of CONFIG_FILES etc. instead of their |
2aeb72e9 DD |
12386 | # values after options handling. Logging --version etc. is OK. |
12387 | exec 5>>config.log | |
12388 | { | |
12389 | echo | |
12390 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
12391 | ## Running $as_me. ## | |
12392 | _ASBOX | |
12393 | } >&5 | |
12394 | cat >&5 <<_CSEOF | |
12395 | ||
1c710c3c | 12396 | This file was extended by $as_me, which was |
2aeb72e9 | 12397 | generated by GNU Autoconf 2.59. Invocation command line was |
1c710c3c DJ |
12398 | |
12399 | CONFIG_FILES = $CONFIG_FILES | |
12400 | CONFIG_HEADERS = $CONFIG_HEADERS | |
12401 | CONFIG_LINKS = $CONFIG_LINKS | |
12402 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
12403 | $ $0 $@ | |
12404 | ||
2aeb72e9 DD |
12405 | _CSEOF |
12406 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
12407 | echo >&5 | |
1c710c3c DJ |
12408 | _ACEOF |
12409 | ||
12410 | # Files that config.status was made for. | |
2aeb72e9 DD |
12411 | if test -n "$ac_config_files"; then |
12412 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
12413 | fi | |
1c710c3c | 12414 | |
2aeb72e9 DD |
12415 | if test -n "$ac_config_headers"; then |
12416 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
12417 | fi | |
12418 | ||
12419 | if test -n "$ac_config_links"; then | |
12420 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
12421 | fi | |
12422 | ||
12423 | if test -n "$ac_config_commands"; then | |
12424 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
12425 | fi | |
1c710c3c DJ |
12426 | |
12427 | cat >>$CONFIG_STATUS <<\_ACEOF | |
2aeb72e9 | 12428 | |
1c710c3c DJ |
12429 | ac_cs_usage="\ |
12430 | \`$as_me' instantiates files from templates according to the | |
12431 | current configuration. | |
12432 | ||
12433 | Usage: $0 [OPTIONS] [FILE]... | |
12434 | ||
12435 | -h, --help print this help, then exit | |
2aeb72e9 | 12436 | -V, --version print version number, then exit |
1c710c3c DJ |
12437 | -q, --quiet do not print progress messages |
12438 | -d, --debug don't remove temporary files | |
12439 | --recheck update $as_me by reconfiguring in the same conditions | |
12440 | --file=FILE[:TEMPLATE] | |
12441 | instantiate the configuration file FILE | |
12442 | ||
12443 | Configuration files: | |
12444 | $config_files | |
12445 | ||
12446 | Report bugs to <bug-autoconf@gnu.org>." | |
11a67599 | 12447 | _ACEOF |
2aeb72e9 | 12448 | |
1c710c3c DJ |
12449 | cat >>$CONFIG_STATUS <<_ACEOF |
12450 | ac_cs_version="\\ | |
12451 | config.status | |
2aeb72e9 DD |
12452 | configured by $0, generated by GNU Autoconf 2.59, |
12453 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
1c710c3c | 12454 | |
2aeb72e9 | 12455 | Copyright (C) 2003 Free Software Foundation, Inc. |
1c710c3c DJ |
12456 | This config.status script is free software; the Free Software Foundation |
12457 | gives unlimited permission to copy, distribute and modify it." | |
2aeb72e9 DD |
12458 | srcdir=$srcdir |
12459 | INSTALL="$INSTALL" | |
1c710c3c DJ |
12460 | _ACEOF |
12461 | ||
12462 | cat >>$CONFIG_STATUS <<\_ACEOF | |
12463 | # If no file are specified by the user, then we need to provide default | |
12464 | # value. By we need to know if files were specified by the user. | |
12465 | ac_need_defaults=: | |
12466 | while test $# != 0 | |
a4b9e93e | 12467 | do |
1c710c3c DJ |
12468 | case $1 in |
12469 | --*=*) | |
2aeb72e9 DD |
12470 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
12471 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
1c710c3c DJ |
12472 | ac_shift=: |
12473 | ;; | |
2aeb72e9 | 12474 | -*) |
1c710c3c DJ |
12475 | ac_option=$1 |
12476 | ac_optarg=$2 | |
12477 | ac_shift=shift | |
12478 | ;; | |
2aeb72e9 DD |
12479 | *) # This is not an option, so the user has probably given explicit |
12480 | # arguments. | |
12481 | ac_option=$1 | |
12482 | ac_need_defaults=false;; | |
1c710c3c DJ |
12483 | esac |
12484 | ||
12485 | case $ac_option in | |
12486 | # Handling of the options. | |
2aeb72e9 DD |
12487 | _ACEOF |
12488 | cat >>$CONFIG_STATUS <<\_ACEOF | |
671aa708 | 12489 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
1c710c3c | 12490 | ac_cs_recheck=: ;; |
2aeb72e9 DD |
12491 | --version | --vers* | -V ) |
12492 | echo "$ac_cs_version"; exit 0 ;; | |
12493 | --he | --h) | |
12494 | # Conflict between --help and --header | |
12495 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
12496 | Try \`$0 --help' for more information." >&5 | |
12497 | echo "$as_me: error: ambiguous option: $1 | |
12498 | Try \`$0 --help' for more information." >&2;} | |
12499 | { (exit 1); exit 1; }; };; | |
12500 | --help | --hel | -h ) | |
12501 | echo "$ac_cs_usage"; exit 0 ;; | |
12502 | --debug | --d* | -d ) | |
1c710c3c DJ |
12503 | debug=: ;; |
12504 | --file | --fil | --fi | --f ) | |
12505 | $ac_shift | |
12506 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
12507 | ac_need_defaults=false;; | |
2aeb72e9 DD |
12508 | --header | --heade | --head | --hea ) |
12509 | $ac_shift | |
12510 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
12511 | ac_need_defaults=false;; | |
1c710c3c DJ |
12512 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
12513 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
12514 | ac_cs_silent=: ;; | |
12515 | ||
12516 | # This is an error. | |
2aeb72e9 DD |
12517 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
12518 | Try \`$0 --help' for more information." >&5 | |
12519 | echo "$as_me: error: unrecognized option: $1 | |
12520 | Try \`$0 --help' for more information." >&2;} | |
1c710c3c DJ |
12521 | { (exit 1); exit 1; }; } ;; |
12522 | ||
2aeb72e9 | 12523 | *) ac_config_targets="$ac_config_targets $1" ;; |
1c710c3c | 12524 | |
0b0dc272 | 12525 | esac |
1c710c3c | 12526 | shift |
0b0dc272 AM |
12527 | done |
12528 | ||
1c710c3c | 12529 | ac_configure_extra_args= |
0b0dc272 | 12530 | |
1c710c3c DJ |
12531 | if $ac_cs_silent; then |
12532 | exec 6>/dev/null | |
12533 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
12534 | fi | |
0b0dc272 | 12535 | |
1c710c3c DJ |
12536 | _ACEOF |
12537 | cat >>$CONFIG_STATUS <<_ACEOF | |
12538 | if \$ac_cs_recheck; then | |
2aeb72e9 DD |
12539 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
12540 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
1c710c3c DJ |
12541 | fi |
12542 | ||
12543 | _ACEOF | |
12544 | ||
1c710c3c | 12545 | |
11a67599 | 12546 | |
2aeb72e9 DD |
12547 | |
12548 | ||
12549 | cat >>$CONFIG_STATUS <<\_ACEOF | |
1c710c3c DJ |
12550 | for ac_config_target in $ac_config_targets |
12551 | do | |
2aeb72e9 DD |
12552 | case "$ac_config_target" in |
12553 | # Handling of arguments. | |
12554 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
1c710c3c DJ |
12555 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
12556 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
12557 | { (exit 1); exit 1; }; };; | |
12558 | esac | |
12559 | done | |
12560 | ||
12561 | # If the user did not use the arguments to specify the items to instantiate, | |
12562 | # then the envvar interface is used. Set only those that are not. | |
12563 | # We use the long form for the default assignment because of an extremely | |
12564 | # bizarre bug on SunOS 4.1.3. | |
12565 | if $ac_need_defaults; then | |
12566 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
12567 | fi | |
12568 | ||
12569 | # Have a temporary directory for convenience. Make it in the build tree | |
2aeb72e9 | 12570 | # simply because there is no reason to put it here, and in addition, |
1c710c3c | 12571 | # creating and moving files from /tmp can sometimes cause problems. |
2aeb72e9 | 12572 | # Create a temporary directory, and hook for its removal unless debugging. |
1c710c3c DJ |
12573 | $debug || |
12574 | { | |
2aeb72e9 | 12575 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
1c710c3c DJ |
12576 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
12577 | } | |
2aeb72e9 | 12578 | |
1c710c3c DJ |
12579 | # Create a (secure) tmp directory for tmp files. |
12580 | ||
12581 | { | |
2aeb72e9 | 12582 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
1c710c3c DJ |
12583 | test -n "$tmp" && test -d "$tmp" |
12584 | } || | |
12585 | { | |
2aeb72e9 DD |
12586 | tmp=./confstat$$-$RANDOM |
12587 | (umask 077 && mkdir $tmp) | |
1c710c3c DJ |
12588 | } || |
12589 | { | |
12590 | echo "$me: cannot create a temporary directory in ." >&2 | |
12591 | { (exit 1); exit 1; } | |
12592 | } | |
12593 | ||
2aeb72e9 DD |
12594 | _ACEOF |
12595 | ||
12596 | cat >>$CONFIG_STATUS <<_ACEOF | |
12597 | ||
1c710c3c | 12598 | # |
2aeb72e9 | 12599 | # CONFIG_FILES section. |
1c710c3c DJ |
12600 | # |
12601 | ||
12602 | # No need to generate the scripts if there are no CONFIG_FILES. | |
12603 | # This happens for instance when ./config.status config.h | |
2aeb72e9 DD |
12604 | if test -n "\$CONFIG_FILES"; then |
12605 | # Protect against being on the right side of a sed subst in config.status. | |
12606 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
12607 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
12608 | s,@SHELL@,$SHELL,;t t | |
12609 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
12610 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
12611 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
12612 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
12613 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
12614 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
12615 | s,@exec_prefix@,$exec_prefix,;t t | |
12616 | s,@prefix@,$prefix,;t t | |
12617 | s,@program_transform_name@,$program_transform_name,;t t | |
12618 | s,@bindir@,$bindir,;t t | |
12619 | s,@sbindir@,$sbindir,;t t | |
12620 | s,@libexecdir@,$libexecdir,;t t | |
12621 | s,@datadir@,$datadir,;t t | |
12622 | s,@sysconfdir@,$sysconfdir,;t t | |
12623 | s,@sharedstatedir@,$sharedstatedir,;t t | |
12624 | s,@localstatedir@,$localstatedir,;t t | |
12625 | s,@libdir@,$libdir,;t t | |
12626 | s,@includedir@,$includedir,;t t | |
12627 | s,@oldincludedir@,$oldincludedir,;t t | |
12628 | s,@infodir@,$infodir,;t t | |
12629 | s,@mandir@,$mandir,;t t | |
12630 | s,@build_alias@,$build_alias,;t t | |
12631 | s,@host_alias@,$host_alias,;t t | |
12632 | s,@target_alias@,$target_alias,;t t | |
12633 | s,@DEFS@,$DEFS,;t t | |
12634 | s,@ECHO_C@,$ECHO_C,;t t | |
12635 | s,@ECHO_N@,$ECHO_N,;t t | |
12636 | s,@ECHO_T@,$ECHO_T,;t t | |
12637 | s,@LIBS@,$LIBS,;t t | |
12638 | s,@build@,$build,;t t | |
12639 | s,@build_cpu@,$build_cpu,;t t | |
12640 | s,@build_vendor@,$build_vendor,;t t | |
12641 | s,@build_os@,$build_os,;t t | |
12642 | s,@build_noncanonical@,$build_noncanonical,;t t | |
12643 | s,@host_noncanonical@,$host_noncanonical,;t t | |
12644 | s,@target_noncanonical@,$target_noncanonical,;t t | |
12645 | s,@host@,$host,;t t | |
12646 | s,@host_cpu@,$host_cpu,;t t | |
12647 | s,@host_vendor@,$host_vendor,;t t | |
12648 | s,@host_os@,$host_os,;t t | |
12649 | s,@target@,$target,;t t | |
12650 | s,@target_cpu@,$target_cpu,;t t | |
12651 | s,@target_vendor@,$target_vendor,;t t | |
12652 | s,@target_os@,$target_os,;t t | |
12653 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
12654 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
12655 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
12656 | s,@LN@,$LN,;t t | |
12657 | s,@LN_S@,$LN_S,;t t | |
12658 | s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t | |
12659 | s,@build_libsubdir@,$build_libsubdir,;t t | |
12660 | s,@build_subdir@,$build_subdir,;t t | |
12661 | s,@host_subdir@,$host_subdir,;t t | |
12662 | s,@target_subdir@,$target_subdir,;t t | |
12663 | s,@CC@,$CC,;t t | |
12664 | s,@CFLAGS@,$CFLAGS,;t t | |
12665 | s,@LDFLAGS@,$LDFLAGS,;t t | |
12666 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
12667 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
12668 | s,@EXEEXT@,$EXEEXT,;t t | |
12669 | s,@OBJEXT@,$OBJEXT,;t t | |
12670 | s,@CXX@,$CXX,;t t | |
12671 | s,@CXXFLAGS@,$CXXFLAGS,;t t | |
12672 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | |
12673 | s,@GNATBIND@,$GNATBIND,;t t | |
12674 | s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t | |
12675 | s,@GNATMAKE@,$GNATMAKE,;t t | |
12676 | s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t | |
12677 | s,@do_compare@,$do_compare,;t t | |
12678 | s,@gmplibs@,$gmplibs,;t t | |
12679 | s,@gmpinc@,$gmpinc,;t t | |
12680 | s,@stage1_languages@,$stage1_languages,;t t | |
12681 | s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t | |
12682 | s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t | |
12683 | s,@tooldir@,$tooldir,;t t | |
12684 | s,@build_tooldir@,$build_tooldir,;t t | |
12685 | s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t | |
12686 | s,@GDB_TK@,$GDB_TK,;t t | |
12687 | s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t | |
12688 | s,@build_configargs@,$build_configargs,;t t | |
12689 | s,@build_configdirs@,$build_configdirs,;t t | |
12690 | s,@host_configargs@,$host_configargs,;t t | |
12691 | s,@configdirs@,$configdirs,;t t | |
12692 | s,@target_configargs@,$target_configargs,;t t | |
12693 | s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t | |
12694 | s,@config_shell@,$config_shell,;t t | |
12695 | s,@YACC@,$YACC,;t t | |
12696 | s,@BISON@,$BISON,;t t | |
12697 | s,@M4@,$M4,;t t | |
12698 | s,@LEX@,$LEX,;t t | |
12699 | s,@FLEX@,$FLEX,;t t | |
12700 | s,@MAKEINFO@,$MAKEINFO,;t t | |
12701 | s,@EXPECT@,$EXPECT,;t t | |
12702 | s,@RUNTEST@,$RUNTEST,;t t | |
12703 | s,@AR@,$AR,;t t | |
12704 | s,@AS@,$AS,;t t | |
12705 | s,@DLLTOOL@,$DLLTOOL,;t t | |
12706 | s,@LD@,$LD,;t t | |
12707 | s,@LIPO@,$LIPO,;t t | |
12708 | s,@NM@,$NM,;t t | |
12709 | s,@RANLIB@,$RANLIB,;t t | |
12710 | s,@STRIP@,$STRIP,;t t | |
12711 | s,@WINDRES@,$WINDRES,;t t | |
901119ae | 12712 | s,@WINDMC@,$WINDMC,;t t |
2aeb72e9 DD |
12713 | s,@OBJCOPY@,$OBJCOPY,;t t |
12714 | s,@OBJDUMP@,$OBJDUMP,;t t | |
12715 | s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t | |
12716 | s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t | |
12717 | s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t | |
12718 | s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t | |
12719 | s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t | |
12720 | s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t | |
12721 | s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t | |
12722 | s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t | |
12723 | s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t | |
12724 | s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t | |
12725 | s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t | |
12726 | s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t | |
12727 | s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t | |
12728 | s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t | |
12729 | s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t | |
12730 | s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t | |
901119ae | 12731 | s,@WINDMC_FOR_TARGET@,$WINDMC_FOR_TARGET,;t t |
2aeb72e9 DD |
12732 | s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t |
12733 | s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t | |
12734 | s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t | |
12735 | s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t | |
12736 | s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t | |
12737 | s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t | |
12738 | s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t | |
12739 | s,@MAINT@,$MAINT,;t t | |
12740 | s,@stage1_cflags@,$stage1_cflags,;t t | |
12741 | s,@stage1_checking@,$stage1_checking,;t t | |
12742 | s,@stage2_werror_flag@,$stage2_werror_flag,;t t | |
12743 | s,@datarootdir@,$datarootdir,;t t | |
12744 | s,@docdir@,$docdir,;t t | |
12745 | s,@pdfdir@,$pdfdir,;t t | |
12746 | s,@htmldir@,$htmldir,;t t | |
12747 | s,@LIBOBJS@,$LIBOBJS,;t t | |
12748 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
12749 | /@serialization_dependencies@/r $serialization_dependencies | |
12750 | s,@serialization_dependencies@,,;t t | |
12751 | /@host_makefile_frag@/r $host_makefile_frag | |
12752 | s,@host_makefile_frag@,,;t t | |
12753 | /@target_makefile_frag@/r $target_makefile_frag | |
12754 | s,@target_makefile_frag@,,;t t | |
12755 | /@alphaieee_frag@/r $alphaieee_frag | |
12756 | s,@alphaieee_frag@,,;t t | |
12757 | /@ospace_frag@/r $ospace_frag | |
12758 | s,@ospace_frag@,,;t t | |
12759 | CEOF | |
79c06341 | 12760 | |
1c710c3c DJ |
12761 | _ACEOF |
12762 | ||
2aeb72e9 DD |
12763 | cat >>$CONFIG_STATUS <<\_ACEOF |
12764 | # Split the substitutions into bite-sized pieces for seds with | |
12765 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
12766 | ac_max_sed_lines=48 | |
12767 | ac_sed_frag=1 # Number of current file. | |
12768 | ac_beg=1 # First line for current file. | |
12769 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
12770 | ac_more_lines=: | |
12771 | ac_sed_cmds= | |
12772 | while $ac_more_lines; do | |
12773 | if test $ac_beg -gt 1; then | |
12774 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
12775 | else | |
12776 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
12777 | fi | |
12778 | if test ! -s $tmp/subs.frag; then | |
12779 | ac_more_lines=false | |
12780 | else | |
12781 | # The purpose of the label and of the branching condition is to | |
12782 | # speed up the sed processing (if there are no `@' at all, there | |
12783 | # is no need to browse any of the substitutions). | |
12784 | # These are the two extra sed commands mentioned above. | |
12785 | (echo ':t | |
12786 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
12787 | if test -z "$ac_sed_cmds"; then | |
12788 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
12789 | else | |
12790 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
12791 | fi | |
12792 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
12793 | ac_beg=$ac_end | |
12794 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
12795 | fi | |
12796 | done | |
12797 | if test -z "$ac_sed_cmds"; then | |
12798 | ac_sed_cmds=cat | |
11a67599 | 12799 | fi |
2aeb72e9 | 12800 | fi # test -n "$CONFIG_FILES" |
11a67599 | 12801 | |
11a67599 | 12802 | _ACEOF |
1c710c3c | 12803 | cat >>$CONFIG_STATUS <<\_ACEOF |
2aeb72e9 DD |
12804 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
12805 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
12806 | case $ac_file in | |
12807 | - | *:- | *:-:* ) # input from stdin | |
12808 | cat >$tmp/stdin | |
12809 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
12810 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
12811 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
12812 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
12813 | * ) ac_file_in=$ac_file.in ;; | |
11a67599 ZW |
12814 | esac |
12815 | ||
2aeb72e9 DD |
12816 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
12817 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
1c710c3c DJ |
12818 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
12819 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
12820 | X"$ac_file" : 'X\(//\)$' \| \ | |
2aeb72e9 DD |
12821 | X"$ac_file" : 'X\(/\)' \| \ |
12822 | . : '\(.\)' 2>/dev/null || | |
1c710c3c | 12823 | echo X"$ac_file" | |
2aeb72e9 DD |
12824 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
12825 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
12826 | /^X\(\/\/\)$/{ s//\1/; q; } | |
12827 | /^X\(\/\).*/{ s//\1/; q; } | |
12828 | s/.*/./; q'` | |
12829 | { if $as_mkdir_p; then | |
12830 | mkdir -p "$ac_dir" | |
12831 | else | |
12832 | as_dir="$ac_dir" | |
1c710c3c | 12833 | as_dirs= |
2aeb72e9 DD |
12834 | while test ! -d "$as_dir"; do |
12835 | as_dirs="$as_dir $as_dirs" | |
12836 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
1c710c3c DJ |
12837 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
12838 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
12839 | X"$as_dir" : 'X\(//\)$' \| \ | |
2aeb72e9 DD |
12840 | X"$as_dir" : 'X\(/\)' \| \ |
12841 | . : '\(.\)' 2>/dev/null || | |
1c710c3c | 12842 | echo X"$as_dir" | |
2aeb72e9 DD |
12843 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
12844 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
12845 | /^X\(\/\/\)$/{ s//\1/; q; } | |
12846 | /^X\(\/\).*/{ s//\1/; q; } | |
12847 | s/.*/./; q'` | |
1c710c3c | 12848 | done |
2aeb72e9 DD |
12849 | test ! -n "$as_dirs" || mkdir $as_dirs |
12850 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
12851 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
1c710c3c | 12852 | { (exit 1); exit 1; }; }; } |
2aeb72e9 | 12853 | |
1c710c3c | 12854 | ac_builddir=. |
0b0dc272 | 12855 | |
2aeb72e9 | 12856 | if test "$ac_dir" != .; then |
1c710c3c | 12857 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
2aeb72e9 DD |
12858 | # A "../" for each directory in $ac_dir_suffix. |
12859 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
12860 | else | |
12861 | ac_dir_suffix= ac_top_builddir= | |
12862 | fi | |
1c710c3c DJ |
12863 | |
12864 | case $srcdir in | |
2aeb72e9 | 12865 | .) # No --srcdir option. We are building in place. |
1c710c3c | 12866 | ac_srcdir=. |
2aeb72e9 DD |
12867 | if test -z "$ac_top_builddir"; then |
12868 | ac_top_srcdir=. | |
12869 | else | |
12870 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
12871 | fi ;; | |
12872 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
1c710c3c | 12873 | ac_srcdir=$srcdir$ac_dir_suffix; |
2aeb72e9 DD |
12874 | ac_top_srcdir=$srcdir ;; |
12875 | *) # Relative path. | |
12876 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
12877 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
1c710c3c | 12878 | esac |
a4b9e93e | 12879 | |
2aeb72e9 DD |
12880 | # Do not use `cd foo && pwd` to compute absolute paths, because |
12881 | # the directories may not exist. | |
12882 | case `pwd` in | |
12883 | .) ac_abs_builddir="$ac_dir";; | |
12884 | *) | |
12885 | case "$ac_dir" in | |
12886 | .) ac_abs_builddir=`pwd`;; | |
12887 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
12888 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
12889 | esac;; | |
12890 | esac | |
12891 | case $ac_abs_builddir in | |
12892 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
12893 | *) | |
12894 | case ${ac_top_builddir}. in | |
12895 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
12896 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
12897 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
12898 | esac;; | |
12899 | esac | |
12900 | case $ac_abs_builddir in | |
12901 | .) ac_abs_srcdir=$ac_srcdir;; | |
12902 | *) | |
12903 | case $ac_srcdir in | |
12904 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
12905 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
12906 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
12907 | esac;; | |
12908 | esac | |
12909 | case $ac_abs_builddir in | |
12910 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
12911 | *) | |
12912 | case $ac_top_srcdir in | |
12913 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
12914 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
12915 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
12916 | esac;; | |
12917 | esac | |
0b0dc272 | 12918 | |
1c710c3c DJ |
12919 | |
12920 | case $INSTALL in | |
12921 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
2aeb72e9 | 12922 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
671aa708 | 12923 | esac |
11a67599 | 12924 | |
2aeb72e9 DD |
12925 | if test x"$ac_file" != x-; then |
12926 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
12927 | echo "$as_me: creating $ac_file" >&6;} | |
12928 | rm -f "$ac_file" | |
12929 | fi | |
12930 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
12931 | # use $as_me), people would be surprised to read: | |
12932 | # /* config.h. Generated by config.status. */ | |
12933 | if test x"$ac_file" = x-; then | |
12934 | configure_input= | |
12935 | else | |
12936 | configure_input="$ac_file. " | |
12937 | fi | |
12938 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
12939 | sed 's,.*/,,'` by configure." | |
12940 | ||
12941 | # First look for the input files in the build tree, otherwise in the | |
12942 | # src tree. | |
12943 | ac_file_inputs=`IFS=: | |
12944 | for f in $ac_file_in; do | |
12945 | case $f in | |
12946 | -) echo $tmp/stdin ;; | |
12947 | [\\/$]*) | |
12948 | # Absolute (can't be DOS-style, as IFS=:) | |
12949 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
12950 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
12951 | { (exit 1); exit 1; }; } | |
12952 | echo "$f";; | |
12953 | *) # Relative | |
12954 | if test -f "$f"; then | |
12955 | # Build tree | |
12956 | echo "$f" | |
12957 | elif test -f "$srcdir/$f"; then | |
12958 | # Source tree | |
12959 | echo "$srcdir/$f" | |
12960 | else | |
12961 | # /dev/null tree | |
12962 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
12963 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
12964 | { (exit 1); exit 1; }; } | |
12965 | fi;; | |
12966 | esac | |
12967 | done` || { (exit 1); exit 1; } | |
11a67599 | 12968 | _ACEOF |
1c710c3c DJ |
12969 | cat >>$CONFIG_STATUS <<_ACEOF |
12970 | sed "$ac_vpsub | |
12971 | $extrasub | |
12972 | _ACEOF | |
12973 | cat >>$CONFIG_STATUS <<\_ACEOF | |
12974 | :t | |
12975 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
2aeb72e9 DD |
12976 | s,@configure_input@,$configure_input,;t t |
12977 | s,@srcdir@,$ac_srcdir,;t t | |
12978 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
12979 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
12980 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
12981 | s,@builddir@,$ac_builddir,;t t | |
12982 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
12983 | s,@top_builddir@,$ac_top_builddir,;t t | |
12984 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
12985 | s,@INSTALL@,$ac_INSTALL,;t t | |
12986 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
12987 | rm -f $tmp/stdin | |
12988 | if test x"$ac_file" != x-; then | |
12989 | mv $tmp/out $ac_file | |
12990 | else | |
12991 | cat $tmp/out | |
12992 | rm -f $tmp/out | |
12993 | fi | |
11a67599 | 12994 | |
2aeb72e9 DD |
12995 | done |
12996 | _ACEOF | |
11a67599 | 12997 | |
2aeb72e9 | 12998 | cat >>$CONFIG_STATUS <<\_ACEOF |
79c06341 | 12999 | |
1c710c3c DJ |
13000 | { (exit 0); exit 0; } |
13001 | _ACEOF | |
671aa708 | 13002 | chmod +x $CONFIG_STATUS |
1c710c3c DJ |
13003 | ac_clean_files=$ac_clean_files_save |
13004 | ||
13005 | ||
13006 | # configure is writing to config.log, and then calls config.status. | |
13007 | # config.status does its own redirection, appending to config.log. | |
13008 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
13009 | # by configure, so config.status won't be able to write to it; its | |
13010 | # output is simply discarded. So we exec the FD to /dev/null, | |
13011 | # effectively closing config.log, so it can be properly (re)opened and | |
13012 | # appended to by config.status. When coming back to configure, we | |
13013 | # need to make the FD available again. | |
13014 | if test "$no_create" != yes; then | |
13015 | ac_cs_success=: | |
13016 | ac_config_status_args= | |
13017 | test "$silent" = yes && | |
13018 | ac_config_status_args="$ac_config_status_args --quiet" | |
13019 | exec 5>/dev/null | |
13020 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
13021 | exec 5>>config.log | |
13022 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
13023 | # would make configure fail if this is the last instruction. | |
13024 | $ac_cs_success || { (exit 1); exit 1; } | |
13025 | fi | |
79c06341 | 13026 |