]>
Commit | Line | Data |
---|---|---|
b2dad0e3 | 1 | #! /bin/sh |
b2dad0e3 | 2 | # Guess values for system-dependent variables and create Makefiles. |
8a165db0 | 3 | # Generated by GNU Autoconf 2.61 for package-unused version-unused. |
b2dad0e3 | 4 | # |
8a165db0 BK |
5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
6 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | |
b2dad0e3 BK |
7 | # This configure script is free software; the Free Software Foundation |
8 | # gives unlimited permission to copy, distribute and modify it. | |
ff66d28f PE |
9 | ## --------------------- ## |
10 | ## M4sh Initialization. ## | |
11 | ## --------------------- ## | |
12 | ||
8a165db0 BK |
13 | # Be more Bourne compatible |
14 | DUALCASE=1; export DUALCASE # for MKS sh | |
ff66d28f PE |
15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
16 | emulate sh | |
17 | NULLCMD=: | |
18 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
19 | # is contrary to our usage. Disable this feature. | |
20 | alias -g '${1+"$@"}'='"$@"' | |
8a165db0 BK |
21 | setopt NO_GLOB_SUBST |
22 | else | |
23 | case `(set -o) 2>/dev/null` in | |
24 | *posix*) set -o posix ;; | |
25 | esac | |
26 | ||
27 | fi | |
28 | ||
29 | ||
30 | ||
31 | ||
32 | # PATH needs CR | |
33 | # Avoid depending upon Character Ranges. | |
34 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
35 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
36 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
37 | as_cr_digits='0123456789' | |
38 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
39 | ||
40 | # The user is always right. | |
41 | if test "${PATH_SEPARATOR+set}" != set; then | |
42 | echo "#! /bin/sh" >conf$$.sh | |
43 | echo "exit 0" >>conf$$.sh | |
44 | chmod +x conf$$.sh | |
45 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
46 | PATH_SEPARATOR=';' | |
47 | else | |
48 | PATH_SEPARATOR=: | |
49 | fi | |
50 | rm -f conf$$.sh | |
ff66d28f PE |
51 | fi |
52 | ||
53 | # Support unset when possible. | |
ec2075e9 | 54 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
ff66d28f PE |
55 | as_unset=unset |
56 | else | |
57 | as_unset=false | |
58 | fi | |
59 | ||
60 | ||
8a165db0 BK |
61 | # IFS |
62 | # We need space, tab and new line, in precisely that order. Quoting is | |
63 | # there to prevent editors from complaining about space-tab. | |
64 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
65 | # splitting by setting IFS to empty value.) | |
66 | as_nl=' | |
67 | ' | |
68 | IFS=" "" $as_nl" | |
69 | ||
70 | # Find who we are. Look in the path if we contain no directory separator. | |
71 | case $0 in | |
72 | *[\\/]* ) as_myself=$0 ;; | |
73 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
74 | for as_dir in $PATH | |
75 | do | |
76 | IFS=$as_save_IFS | |
77 | test -z "$as_dir" && as_dir=. | |
78 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
79 | done | |
80 | IFS=$as_save_IFS | |
81 | ||
82 | ;; | |
83 | esac | |
84 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
85 | # in which case we are not to be found in the path. | |
86 | if test "x$as_myself" = x; then | |
87 | as_myself=$0 | |
88 | fi | |
89 | if test ! -f "$as_myself"; then | |
90 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
91 | { (exit 1); exit 1; } | |
92 | fi | |
93 | ||
ff66d28f | 94 | # Work around bugs in pre-3.0 UWIN ksh. |
8a165db0 BK |
95 | for as_var in ENV MAIL MAILPATH |
96 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
97 | done | |
ff66d28f PE |
98 | PS1='$ ' |
99 | PS2='> ' | |
100 | PS4='+ ' | |
101 | ||
102 | # NLS nuisances. | |
103 | for as_var in \ | |
104 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
105 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
106 | LC_TELEPHONE LC_TIME | |
107 | do | |
ec2075e9 | 108 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
ff66d28f PE |
109 | eval $as_var=C; export $as_var |
110 | else | |
8a165db0 | 111 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
ff66d28f PE |
112 | fi |
113 | done | |
114 | ||
115 | # Required to use basename. | |
8a165db0 BK |
116 | if expr a : '\(a\)' >/dev/null 2>&1 && |
117 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ff66d28f PE |
118 | as_expr=expr |
119 | else | |
120 | as_expr=false | |
121 | fi | |
122 | ||
8a165db0 | 123 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
ff66d28f PE |
124 | as_basename=basename |
125 | else | |
126 | as_basename=false | |
127 | fi | |
128 | ||
129 | ||
130 | # Name of the executable. | |
8a165db0 | 131 | as_me=`$as_basename -- "$0" || |
ff66d28f PE |
132 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
133 | X"$0" : 'X\(//\)$' \| \ | |
8a165db0 | 134 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
ff66d28f | 135 | echo X/"$0" | |
8a165db0 BK |
136 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
137 | s//\1/ | |
138 | q | |
139 | } | |
140 | /^X\/\(\/\/\)$/{ | |
141 | s//\1/ | |
142 | q | |
143 | } | |
144 | /^X\/\(\/\).*/{ | |
145 | s//\1/ | |
146 | q | |
147 | } | |
148 | s/.*/./; q'` | |
ff66d28f | 149 | |
8a165db0 BK |
150 | # CDPATH. |
151 | $as_unset CDPATH | |
ff66d28f | 152 | |
4312e020 | 153 | |
8a165db0 BK |
154 | if test "x$CONFIG_SHELL" = x; then |
155 | if (eval ":") 2>/dev/null; then | |
156 | as_have_required=yes | |
157 | else | |
158 | as_have_required=no | |
4312e020 BK |
159 | fi |
160 | ||
8a165db0 BK |
161 | if test $as_have_required = yes && (eval ": |
162 | (as_func_return () { | |
163 | (exit \$1) | |
164 | } | |
165 | as_func_success () { | |
166 | as_func_return 0 | |
167 | } | |
168 | as_func_failure () { | |
169 | as_func_return 1 | |
170 | } | |
171 | as_func_ret_success () { | |
172 | return 0 | |
173 | } | |
174 | as_func_ret_failure () { | |
175 | return 1 | |
176 | } | |
4312e020 | 177 | |
8a165db0 BK |
178 | exitcode=0 |
179 | if as_func_success; then | |
180 | : | |
181 | else | |
182 | exitcode=1 | |
183 | echo as_func_success failed. | |
184 | fi | |
4312e020 | 185 | |
8a165db0 BK |
186 | if as_func_failure; then |
187 | exitcode=1 | |
188 | echo as_func_failure succeeded. | |
189 | fi | |
190 | ||
191 | if as_func_ret_success; then | |
192 | : | |
193 | else | |
194 | exitcode=1 | |
195 | echo as_func_ret_success failed. | |
196 | fi | |
197 | ||
198 | if as_func_ret_failure; then | |
199 | exitcode=1 | |
200 | echo as_func_ret_failure succeeded. | |
201 | fi | |
202 | ||
203 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
204 | : | |
205 | else | |
206 | exitcode=1 | |
207 | echo positional parameters were not saved. | |
208 | fi | |
209 | ||
210 | test \$exitcode = 0) || { (exit 1); exit 1; } | |
211 | ||
212 | ( | |
213 | as_lineno_1=\$LINENO | |
214 | as_lineno_2=\$LINENO | |
215 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && | |
216 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } | |
217 | ") 2> /dev/null; then | |
218 | : | |
219 | else | |
220 | as_candidate_shells= | |
ff66d28f PE |
221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
222 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
223 | do | |
224 | IFS=$as_save_IFS | |
225 | test -z "$as_dir" && as_dir=. | |
8a165db0 | 226 | case $as_dir in |
ff66d28f | 227 | /*) |
8a165db0 BK |
228 | for as_base in sh bash ksh sh5; do |
229 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" | |
230 | done;; | |
231 | esac | |
232 | done | |
233 | IFS=$as_save_IFS | |
234 | ||
235 | ||
236 | for as_shell in $as_candidate_shells $SHELL; do | |
237 | # Try only shells that exist, to save several forks. | |
238 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
239 | { ("$as_shell") 2> /dev/null <<\_ASEOF | |
240 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
241 | emulate sh | |
242 | NULLCMD=: | |
243 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
244 | # is contrary to our usage. Disable this feature. | |
245 | alias -g '${1+"$@"}'='"$@"' | |
246 | setopt NO_GLOB_SUBST | |
247 | else | |
248 | case `(set -o) 2>/dev/null` in | |
249 | *posix*) set -o posix ;; | |
250 | esac | |
251 | ||
252 | fi | |
253 | ||
254 | ||
255 | : | |
256 | _ASEOF | |
257 | }; then | |
258 | CONFIG_SHELL=$as_shell | |
259 | as_have_required=yes | |
260 | if { "$as_shell" 2> /dev/null <<\_ASEOF | |
261 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
262 | emulate sh | |
263 | NULLCMD=: | |
264 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
265 | # is contrary to our usage. Disable this feature. | |
266 | alias -g '${1+"$@"}'='"$@"' | |
267 | setopt NO_GLOB_SUBST | |
268 | else | |
269 | case `(set -o) 2>/dev/null` in | |
270 | *posix*) set -o posix ;; | |
271 | esac | |
272 | ||
273 | fi | |
274 | ||
275 | ||
276 | : | |
277 | (as_func_return () { | |
278 | (exit $1) | |
279 | } | |
280 | as_func_success () { | |
281 | as_func_return 0 | |
282 | } | |
283 | as_func_failure () { | |
284 | as_func_return 1 | |
285 | } | |
286 | as_func_ret_success () { | |
287 | return 0 | |
288 | } | |
289 | as_func_ret_failure () { | |
290 | return 1 | |
291 | } | |
292 | ||
293 | exitcode=0 | |
294 | if as_func_success; then | |
295 | : | |
296 | else | |
297 | exitcode=1 | |
298 | echo as_func_success failed. | |
299 | fi | |
300 | ||
301 | if as_func_failure; then | |
302 | exitcode=1 | |
303 | echo as_func_failure succeeded. | |
304 | fi | |
305 | ||
306 | if as_func_ret_success; then | |
307 | : | |
308 | else | |
309 | exitcode=1 | |
310 | echo as_func_ret_success failed. | |
311 | fi | |
312 | ||
313 | if as_func_ret_failure; then | |
314 | exitcode=1 | |
315 | echo as_func_ret_failure succeeded. | |
316 | fi | |
317 | ||
318 | if ( set x; as_func_ret_success y && test x = "$1" ); then | |
319 | : | |
320 | else | |
321 | exitcode=1 | |
322 | echo positional parameters were not saved. | |
323 | fi | |
324 | ||
325 | test $exitcode = 0) || { (exit 1); exit 1; } | |
326 | ||
327 | ( | |
4312e020 BK |
328 | as_lineno_1=$LINENO |
329 | as_lineno_2=$LINENO | |
330 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
8a165db0 BK |
331 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
332 | ||
333 | _ASEOF | |
334 | }; then | |
335 | break | |
336 | fi | |
337 | ||
338 | fi | |
339 | ||
340 | done | |
341 | ||
342 | if test "x$CONFIG_SHELL" != x; then | |
343 | for as_var in BASH_ENV ENV | |
344 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
345 | done | |
346 | export CONFIG_SHELL | |
347 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
348 | fi | |
349 | ||
350 | ||
351 | if test $as_have_required = no; then | |
352 | echo This script requires a shell more modern than all the | |
353 | echo shells that I found on your system. Please install a | |
354 | echo modern shell, or manually run the script under such a | |
355 | echo shell if you do have one. | |
356 | { (exit 1); exit 1; } | |
357 | fi | |
358 | ||
359 | ||
360 | fi | |
361 | ||
362 | fi | |
363 | ||
364 | ||
365 | ||
366 | (eval "as_func_return () { | |
367 | (exit \$1) | |
368 | } | |
369 | as_func_success () { | |
370 | as_func_return 0 | |
371 | } | |
372 | as_func_failure () { | |
373 | as_func_return 1 | |
374 | } | |
375 | as_func_ret_success () { | |
376 | return 0 | |
377 | } | |
378 | as_func_ret_failure () { | |
379 | return 1 | |
380 | } | |
381 | ||
382 | exitcode=0 | |
383 | if as_func_success; then | |
384 | : | |
385 | else | |
386 | exitcode=1 | |
387 | echo as_func_success failed. | |
388 | fi | |
389 | ||
390 | if as_func_failure; then | |
391 | exitcode=1 | |
392 | echo as_func_failure succeeded. | |
393 | fi | |
394 | ||
395 | if as_func_ret_success; then | |
396 | : | |
397 | else | |
398 | exitcode=1 | |
399 | echo as_func_ret_success failed. | |
400 | fi | |
401 | ||
402 | if as_func_ret_failure; then | |
403 | exitcode=1 | |
404 | echo as_func_ret_failure succeeded. | |
405 | fi | |
406 | ||
407 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
408 | : | |
409 | else | |
410 | exitcode=1 | |
411 | echo positional parameters were not saved. | |
412 | fi | |
413 | ||
414 | test \$exitcode = 0") || { | |
415 | echo No shell found that supports shell functions. | |
416 | echo Please tell autoconf@gnu.org about your system, | |
417 | echo including any error possibly output before this | |
418 | echo message | |
419 | } | |
420 | ||
421 | ||
422 | ||
423 | as_lineno_1=$LINENO | |
424 | as_lineno_2=$LINENO | |
425 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
426 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
ff66d28f PE |
427 | |
428 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
429 | # uniformly replaced by the line number. The first 'sed' inserts a | |
8a165db0 BK |
430 | # line-number line after each line using $LINENO; the second 'sed' |
431 | # does the real work. The second script uses 'N' to pair each | |
432 | # line-number line with the line containing $LINENO, and appends | |
433 | # trailing '-' during substitution so that $LINENO is not a special | |
434 | # case at line end. | |
ff66d28f | 435 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
8a165db0 BK |
436 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
437 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
438 | sed -n ' | |
439 | p | |
440 | /[$]LINENO/= | |
441 | ' <$as_myself | | |
ff66d28f | 442 | sed ' |
8a165db0 BK |
443 | s/[$]LINENO.*/&-/ |
444 | t lineno | |
445 | b | |
446 | :lineno | |
ff66d28f | 447 | N |
8a165db0 BK |
448 | :loop |
449 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
ff66d28f | 450 | t loop |
8a165db0 | 451 | s/-\n.*// |
ff66d28f | 452 | ' >$as_me.lineno && |
8a165db0 | 453 | chmod +x "$as_me.lineno" || |
ff66d28f PE |
454 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
455 | { (exit 1); exit 1; }; } | |
456 | ||
457 | # Don't try to exec as it changes $[0], causing all sort of problems | |
458 | # (the dirname of $[0] is not the place where we might find the | |
8a165db0 BK |
459 | # original and so on. Autoconf is especially sensitive to this). |
460 | . "./$as_me.lineno" | |
ff66d28f PE |
461 | # Exit status is that of the last command. |
462 | exit | |
463 | } | |
464 | ||
465 | ||
8a165db0 BK |
466 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
467 | as_dirname=dirname | |
468 | else | |
469 | as_dirname=false | |
470 | fi | |
471 | ||
472 | ECHO_C= ECHO_N= ECHO_T= | |
473 | case `echo -n x` in | |
474 | -n*) | |
475 | case `echo 'x\c'` in | |
476 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
477 | *) ECHO_C='\c';; | |
478 | esac;; | |
479 | *) | |
480 | ECHO_N='-n';; | |
ff66d28f PE |
481 | esac |
482 | ||
8a165db0 BK |
483 | if expr a : '\(a\)' >/dev/null 2>&1 && |
484 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ff66d28f PE |
485 | as_expr=expr |
486 | else | |
487 | as_expr=false | |
488 | fi | |
489 | ||
490 | rm -f conf$$ conf$$.exe conf$$.file | |
8a165db0 BK |
491 | if test -d conf$$.dir; then |
492 | rm -f conf$$.dir/conf$$.file | |
493 | else | |
494 | rm -f conf$$.dir | |
495 | mkdir conf$$.dir | |
496 | fi | |
ff66d28f PE |
497 | echo >conf$$.file |
498 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
8a165db0 BK |
499 | as_ln_s='ln -s' |
500 | # ... but there are two gotchas: | |
501 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
502 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
503 | # In both cases, we have to default to `cp -p'. | |
504 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
ff66d28f | 505 | as_ln_s='cp -p' |
ff66d28f PE |
506 | elif ln conf$$.file conf$$ 2>/dev/null; then |
507 | as_ln_s=ln | |
508 | else | |
509 | as_ln_s='cp -p' | |
510 | fi | |
8a165db0 BK |
511 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
512 | rmdir conf$$.dir 2>/dev/null | |
ff66d28f PE |
513 | |
514 | if mkdir -p . 2>/dev/null; then | |
515 | as_mkdir_p=: | |
516 | else | |
ec2075e9 | 517 | test -d ./-p && rmdir ./-p |
ff66d28f PE |
518 | as_mkdir_p=false |
519 | fi | |
520 | ||
8a165db0 BK |
521 | if test -x / >/dev/null 2>&1; then |
522 | as_test_x='test -x' | |
523 | else | |
524 | if ls -dL / >/dev/null 2>&1; then | |
525 | as_ls_L_option=L | |
526 | else | |
527 | as_ls_L_option= | |
528 | fi | |
529 | as_test_x=' | |
530 | eval sh -c '\'' | |
531 | if test -d "$1"; then | |
532 | test -d "$1/."; | |
533 | else | |
534 | case $1 in | |
535 | -*)set "./$1";; | |
536 | esac; | |
537 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
538 | ???[sx]*):;;*)false;;esac;fi | |
539 | '\'' sh | |
540 | ' | |
541 | fi | |
542 | as_executable_p=$as_test_x | |
ff66d28f PE |
543 | |
544 | # Sed expression to map a string onto a valid CPP name. | |
ec2075e9 | 545 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
ff66d28f PE |
546 | |
547 | # Sed expression to map a string onto a valid variable name. | |
ec2075e9 | 548 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
ff66d28f PE |
549 | |
550 | ||
ff66d28f | 551 | |
1cf3d07d SE |
552 | |
553 | # Check that we are running under the correct shell. | |
554 | SHELL=${CONFIG_SHELL-/bin/sh} | |
555 | ||
556 | case X$lt_ECHO in | |
557 | X*--fallback-echo) | |
558 | # Remove one level of quotation (which was required for Make). | |
559 | ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` | |
560 | ;; | |
561 | esac | |
562 | ||
563 | ECHO=${lt_ECHO-echo} | |
564 | if test "X$1" = X--no-reexec; then | |
565 | # Discard the --no-reexec flag, and continue. | |
566 | shift | |
567 | elif test "X$1" = X--fallback-echo; then | |
568 | # Avoid inline document here, it may be left over | |
569 | : | |
570 | elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then | |
571 | # Yippee, $ECHO works! | |
572 | : | |
573 | else | |
574 | # Restart under the correct shell. | |
575 | exec $SHELL "$0" --no-reexec ${1+"$@"} | |
576 | fi | |
577 | ||
578 | if test "X$1" = X--fallback-echo; then | |
579 | # used as fallback echo | |
580 | shift | |
581 | cat <<_LT_EOF | |
582 | $* | |
583 | _LT_EOF | |
584 | exit 0 | |
585 | fi | |
586 | ||
587 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
588 | # if CDPATH is set. | |
589 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
590 | ||
591 | if test -z "$lt_ECHO"; then | |
592 | if test "X${echo_test_string+set}" != Xset; then | |
593 | # find a string as large as possible, as long as the shell can cope with it | |
594 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do | |
595 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | |
596 | if { echo_test_string=`eval $cmd`; } 2>/dev/null && | |
597 | { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null | |
598 | then | |
599 | break | |
600 | fi | |
601 | done | |
602 | fi | |
603 | ||
604 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | |
605 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | |
606 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
607 | : | |
608 | else | |
609 | # The Solaris, AIX, and Digital Unix default echo programs unquote | |
610 | # backslashes. This makes it impossible to quote backslashes using | |
611 | # echo "$something" | sed 's/\\/\\\\/g' | |
612 | # | |
613 | # So, first we look for a working echo in the user's PATH. | |
614 | ||
615 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
616 | for dir in $PATH /usr/ucb; do | |
617 | IFS="$lt_save_ifs" | |
618 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | |
619 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | |
620 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | |
621 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
622 | ECHO="$dir/echo" | |
623 | break | |
624 | fi | |
625 | done | |
626 | IFS="$lt_save_ifs" | |
627 | ||
628 | if test "X$ECHO" = Xecho; then | |
629 | # We didn't find a better echo, so look for alternatives. | |
630 | if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && | |
631 | echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && | |
632 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
633 | # This shell has a builtin print -r that does the trick. | |
634 | ECHO='print -r' | |
635 | elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && | |
636 | test "X$CONFIG_SHELL" != X/bin/ksh; then | |
637 | # If we have ksh, try running configure again with it. | |
638 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
639 | export ORIGINAL_CONFIG_SHELL | |
640 | CONFIG_SHELL=/bin/ksh | |
641 | export CONFIG_SHELL | |
642 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} | |
643 | else | |
644 | # Try using printf. | |
645 | ECHO='printf %s\n' | |
646 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | |
647 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | |
648 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
649 | # Cool, printf works | |
650 | : | |
651 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
652 | test "X$echo_testing_string" = 'X\t' && | |
653 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
654 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
655 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | |
656 | export CONFIG_SHELL | |
657 | SHELL="$CONFIG_SHELL" | |
658 | export SHELL | |
659 | ECHO="$CONFIG_SHELL $0 --fallback-echo" | |
660 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
661 | test "X$echo_testing_string" = 'X\t' && | |
662 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
663 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
664 | ECHO="$CONFIG_SHELL $0 --fallback-echo" | |
665 | else | |
666 | # maybe with a smaller string... | |
667 | prev=: | |
668 | ||
669 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do | |
670 | if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null | |
671 | then | |
672 | break | |
673 | fi | |
674 | prev="$cmd" | |
675 | done | |
676 | ||
677 | if test "$prev" != 'sed 50q "$0"'; then | |
678 | echo_test_string=`eval $prev` | |
679 | export echo_test_string | |
680 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} | |
681 | else | |
682 | # Oops. We lost completely, so just stick with echo. | |
683 | ECHO=echo | |
684 | fi | |
685 | fi | |
686 | fi | |
687 | fi | |
688 | fi | |
689 | fi | |
690 | ||
691 | # Copy echo and quote the copy suitably for passing to libtool from | |
692 | # the Makefile, instead of quoting the original, which is used later. | |
693 | lt_ECHO=$ECHO | |
694 | if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then | |
695 | lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" | |
696 | fi | |
697 | ||
698 | ||
699 | ||
700 | ||
8a165db0 BK |
701 | exec 7<&0 </dev/null 6>&1 |
702 | ||
ff66d28f PE |
703 | # Name of the host. |
704 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
705 | # so uname gets run too. | |
706 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
707 | ||
ff66d28f PE |
708 | # |
709 | # Initializations. | |
710 | # | |
b2dad0e3 | 711 | ac_default_prefix=/usr/local |
8a165db0 | 712 | ac_clean_files= |
ff66d28f | 713 | ac_config_libobj_dir=. |
8a165db0 | 714 | LIBOBJS= |
ff66d28f PE |
715 | cross_compiling=no |
716 | subdirs= | |
717 | MFLAGS= | |
718 | MAKEFLAGS= | |
719 | SHELL=${CONFIG_SHELL-/bin/sh} | |
720 | ||
ff66d28f | 721 | # Identity of this package. |
fbe057bb PE |
722 | PACKAGE_NAME='package-unused' |
723 | PACKAGE_TARNAME='libstdc++' | |
ff66d28f | 724 | PACKAGE_VERSION='version-unused' |
fbe057bb | 725 | PACKAGE_STRING='package-unused version-unused' |
ff66d28f PE |
726 | PACKAGE_BUGREPORT='' |
727 | ||
728 | ac_unique_file="src/ios.cc" | |
729 | # Factoring default headers for most tests. | |
730 | ac_includes_default="\ | |
731 | #include <stdio.h> | |
8a165db0 | 732 | #ifdef HAVE_SYS_TYPES_H |
ff66d28f PE |
733 | # include <sys/types.h> |
734 | #endif | |
8a165db0 | 735 | #ifdef HAVE_SYS_STAT_H |
ff66d28f PE |
736 | # include <sys/stat.h> |
737 | #endif | |
8a165db0 | 738 | #ifdef STDC_HEADERS |
ff66d28f PE |
739 | # include <stdlib.h> |
740 | # include <stddef.h> | |
741 | #else | |
8a165db0 | 742 | # ifdef HAVE_STDLIB_H |
ff66d28f PE |
743 | # include <stdlib.h> |
744 | # endif | |
745 | #endif | |
8a165db0 BK |
746 | #ifdef HAVE_STRING_H |
747 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
ff66d28f PE |
748 | # include <memory.h> |
749 | # endif | |
750 | # include <string.h> | |
751 | #endif | |
8a165db0 | 752 | #ifdef HAVE_STRINGS_H |
ff66d28f PE |
753 | # include <strings.h> |
754 | #endif | |
8a165db0 | 755 | #ifdef HAVE_INTTYPES_H |
ff66d28f | 756 | # include <inttypes.h> |
ff66d28f | 757 | #endif |
8a165db0 BK |
758 | #ifdef HAVE_STDINT_H |
759 | # include <stdint.h> | |
760 | #endif | |
761 | #ifdef HAVE_UNISTD_H | |
ff66d28f PE |
762 | # include <unistd.h> |
763 | #endif" | |
764 | ||
8a165db0 BK |
765 | ac_subst_vars='SHELL |
766 | PATH_SEPARATOR | |
767 | PACKAGE_NAME | |
768 | PACKAGE_TARNAME | |
769 | PACKAGE_VERSION | |
770 | PACKAGE_STRING | |
771 | PACKAGE_BUGREPORT | |
772 | exec_prefix | |
773 | prefix | |
774 | program_transform_name | |
775 | bindir | |
776 | sbindir | |
777 | libexecdir | |
778 | datarootdir | |
779 | datadir | |
780 | sysconfdir | |
781 | sharedstatedir | |
782 | localstatedir | |
783 | includedir | |
784 | oldincludedir | |
785 | docdir | |
786 | infodir | |
787 | htmldir | |
788 | dvidir | |
789 | pdfdir | |
790 | psdir | |
791 | libdir | |
792 | localedir | |
793 | mandir | |
794 | DEFS | |
795 | ECHO_C | |
796 | ECHO_N | |
797 | ECHO_T | |
798 | LIBS | |
799 | build_alias | |
800 | host_alias | |
801 | target_alias | |
802 | libtool_VERSION | |
803 | multi_basedir | |
804 | build | |
805 | build_cpu | |
806 | build_vendor | |
807 | build_os | |
808 | host | |
809 | host_cpu | |
810 | host_vendor | |
811 | host_os | |
812 | target | |
813 | target_cpu | |
814 | target_vendor | |
815 | target_os | |
816 | INSTALL_PROGRAM | |
817 | INSTALL_SCRIPT | |
818 | INSTALL_DATA | |
819 | am__isrc | |
820 | CYGPATH_W | |
821 | PACKAGE | |
822 | VERSION | |
823 | ACLOCAL | |
824 | AUTOCONF | |
825 | AUTOMAKE | |
826 | AUTOHEADER | |
827 | MAKEINFO | |
828 | install_sh | |
829 | STRIP | |
830 | INSTALL_STRIP_PROGRAM | |
831 | mkdir_p | |
832 | AWK | |
833 | SET_MAKE | |
834 | am__leading_dot | |
835 | AMTAR | |
836 | am__tar | |
837 | am__untar | |
838 | glibcxx_builddir | |
839 | glibcxx_srcdir | |
840 | toplevel_srcdir | |
841 | CC | |
842 | CFLAGS | |
843 | LDFLAGS | |
844 | CPPFLAGS | |
845 | ac_ct_CC | |
846 | EXEEXT | |
847 | OBJEXT | |
848 | CXX | |
849 | CXXFLAGS | |
850 | ac_ct_CXX | |
851 | LN_S | |
852 | AS | |
853 | AR | |
854 | RANLIB | |
855 | MAINTAINER_MODE_TRUE | |
856 | MAINTAINER_MODE_FALSE | |
857 | MAINT | |
858 | CPP | |
859 | GREP | |
860 | EGREP | |
861 | LIBTOOL | |
862 | SED | |
863 | FGREP | |
864 | LD | |
865 | DUMPBIN | |
866 | ac_ct_DUMPBIN | |
867 | NM | |
868 | lt_ECHO | |
869 | CXXCPP | |
870 | enable_shared | |
871 | enable_static | |
872 | GLIBCXX_HOSTED_TRUE | |
873 | GLIBCXX_HOSTED_FALSE | |
874 | GLIBCXX_BUILD_PCH_TRUE | |
875 | GLIBCXX_BUILD_PCH_FALSE | |
876 | glibcxx_PCHFLAGS | |
877 | CSTDIO_H | |
878 | BASIC_FILE_H | |
879 | BASIC_FILE_CC | |
880 | check_msgfmt | |
881 | glibcxx_MOFILES | |
882 | glibcxx_POFILES | |
883 | glibcxx_localedir | |
884 | USE_NLS | |
885 | CLOCALE_H | |
886 | CMESSAGES_H | |
887 | CCODECVT_CC | |
888 | CCOLLATE_CC | |
889 | CCTYPE_CC | |
890 | CMESSAGES_CC | |
891 | CMONEY_CC | |
892 | CNUMERIC_CC | |
893 | CTIME_H | |
894 | CTIME_CC | |
895 | CLOCALE_CC | |
896 | CLOCALE_INTERNAL_H | |
897 | ALLOCATOR_H | |
898 | ALLOCATOR_NAME | |
899 | C_INCLUDE_DIR | |
900 | GLIBCXX_C_HEADERS_C_TRUE | |
901 | GLIBCXX_C_HEADERS_C_FALSE | |
902 | GLIBCXX_C_HEADERS_C_STD_TRUE | |
903 | GLIBCXX_C_HEADERS_C_STD_FALSE | |
904 | GLIBCXX_C_HEADERS_C_GLOBAL_TRUE | |
905 | GLIBCXX_C_HEADERS_C_GLOBAL_FALSE | |
906 | GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE | |
907 | GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE | |
908 | GLIBCXX_C_HEADERS_EXTRA_TRUE | |
909 | GLIBCXX_C_HEADERS_EXTRA_FALSE | |
910 | DEBUG_FLAGS | |
911 | GLIBCXX_BUILD_DEBUG_TRUE | |
912 | GLIBCXX_BUILD_DEBUG_FALSE | |
913 | ENABLE_PARALLEL_TRUE | |
914 | ENABLE_PARALLEL_FALSE | |
915 | EXTRA_CXX_FLAGS | |
916 | glibcxx_thread_h | |
917 | WERROR | |
918 | SECTION_FLAGS | |
919 | SECTION_LDFLAGS | |
920 | OPT_LDFLAGS | |
921 | LIBMATHOBJS | |
922 | LIBICONV | |
923 | LTLIBICONV | |
924 | SYMVER_FILE | |
925 | port_specific_symbol_files | |
926 | ENABLE_SYMVERS_TRUE | |
927 | ENABLE_SYMVERS_FALSE | |
928 | ENABLE_SYMVERS_GNU_TRUE | |
929 | ENABLE_SYMVERS_GNU_FALSE | |
930 | ENABLE_SYMVERS_GNU_NAMESPACE_TRUE | |
931 | ENABLE_SYMVERS_GNU_NAMESPACE_FALSE | |
932 | ENABLE_SYMVERS_DARWIN_TRUE | |
933 | ENABLE_SYMVERS_DARWIN_FALSE | |
934 | ENABLE_VISIBILITY_TRUE | |
935 | ENABLE_VISIBILITY_FALSE | |
936 | GLIBCXX_LDBL_COMPAT_TRUE | |
937 | GLIBCXX_LDBL_COMPAT_FALSE | |
938 | baseline_dir | |
939 | ATOMICITY_SRCDIR | |
940 | ATOMIC_WORD_SRCDIR | |
941 | ATOMIC_FLAGS | |
942 | CPU_DEFINES_SRCDIR | |
943 | ABI_TWEAKS_SRCDIR | |
944 | OS_INC_SRCDIR | |
945 | ERROR_CONSTANTS_SRCDIR | |
946 | glibcxx_prefixdir | |
947 | gxx_include_dir | |
948 | glibcxx_toolexecdir | |
949 | glibcxx_toolexeclibdir | |
950 | GLIBCXX_INCLUDES | |
951 | TOPLEVEL_INCLUDES | |
952 | OPTIMIZE_CXXFLAGS | |
953 | WARN_FLAGS | |
954 | LIBSUPCXX_PICFLAGS | |
955 | LIBOBJS | |
956 | LTLIBOBJS' | |
ff66d28f | 957 | ac_subst_files='' |
8a165db0 BK |
958 | ac_precious_vars='build_alias |
959 | host_alias | |
960 | target_alias | |
961 | CPP | |
962 | CPPFLAGS | |
963 | CXX | |
964 | CXXFLAGS | |
965 | LDFLAGS | |
966 | LIBS | |
967 | CCC | |
968 | CXXCPP' | |
969 | ||
b2dad0e3 BK |
970 | |
971 | # Initialize some variables set by options. | |
ff66d28f PE |
972 | ac_init_help= |
973 | ac_init_version=false | |
b2dad0e3 BK |
974 | # The variables have the same names as the options, with |
975 | # dashes changed to underlines. | |
ff66d28f | 976 | cache_file=/dev/null |
b2dad0e3 | 977 | exec_prefix=NONE |
b2dad0e3 | 978 | no_create= |
b2dad0e3 BK |
979 | no_recursion= |
980 | prefix=NONE | |
981 | program_prefix=NONE | |
982 | program_suffix=NONE | |
983 | program_transform_name=s,x,x, | |
984 | silent= | |
985 | site= | |
986 | srcdir= | |
b2dad0e3 BK |
987 | verbose= |
988 | x_includes=NONE | |
989 | x_libraries=NONE | |
ff66d28f PE |
990 | |
991 | # Installation directory options. | |
992 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
993 | # and all the variables that are supposed to be based on exec_prefix | |
994 | # by default will actually change. | |
995 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
8a165db0 | 996 | # (The list follows the same order as the GNU Coding Standards.) |
b2dad0e3 BK |
997 | bindir='${exec_prefix}/bin' |
998 | sbindir='${exec_prefix}/sbin' | |
999 | libexecdir='${exec_prefix}/libexec' | |
8a165db0 BK |
1000 | datarootdir='${prefix}/share' |
1001 | datadir='${datarootdir}' | |
b2dad0e3 BK |
1002 | sysconfdir='${prefix}/etc' |
1003 | sharedstatedir='${prefix}/com' | |
1004 | localstatedir='${prefix}/var' | |
b2dad0e3 BK |
1005 | includedir='${prefix}/include' |
1006 | oldincludedir='/usr/include' | |
8a165db0 BK |
1007 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
1008 | infodir='${datarootdir}/info' | |
1009 | htmldir='${docdir}' | |
1010 | dvidir='${docdir}' | |
1011 | pdfdir='${docdir}' | |
1012 | psdir='${docdir}' | |
1013 | libdir='${exec_prefix}/lib' | |
1014 | localedir='${datarootdir}/locale' | |
1015 | mandir='${datarootdir}/man' | |
b2dad0e3 | 1016 | |
b2dad0e3 | 1017 | ac_prev= |
8a165db0 | 1018 | ac_dashdash= |
b2dad0e3 BK |
1019 | for ac_option |
1020 | do | |
b2dad0e3 BK |
1021 | # If the previous option needs an argument, assign it. |
1022 | if test -n "$ac_prev"; then | |
8a165db0 | 1023 | eval $ac_prev=\$ac_option |
b2dad0e3 BK |
1024 | ac_prev= |
1025 | continue | |
1026 | fi | |
1027 | ||
8a165db0 BK |
1028 | case $ac_option in |
1029 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
1030 | *) ac_optarg=yes ;; | |
1031 | esac | |
b2dad0e3 BK |
1032 | |
1033 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
1034 | ||
8a165db0 BK |
1035 | case $ac_dashdash$ac_option in |
1036 | --) | |
1037 | ac_dashdash=yes ;; | |
b2dad0e3 BK |
1038 | |
1039 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
1040 | ac_prev=bindir ;; | |
1041 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
ff66d28f | 1042 | bindir=$ac_optarg ;; |
b2dad0e3 BK |
1043 | |
1044 | -build | --build | --buil | --bui | --bu) | |
ff66d28f | 1045 | ac_prev=build_alias ;; |
b2dad0e3 | 1046 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
ff66d28f | 1047 | build_alias=$ac_optarg ;; |
b2dad0e3 BK |
1048 | |
1049 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
1050 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
1051 | ac_prev=cache_file ;; | |
1052 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
1053 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
ff66d28f PE |
1054 | cache_file=$ac_optarg ;; |
1055 | ||
1056 | --config-cache | -C) | |
1057 | cache_file=config.cache ;; | |
b2dad0e3 | 1058 | |
8a165db0 | 1059 | -datadir | --datadir | --datadi | --datad) |
b2dad0e3 | 1060 | ac_prev=datadir ;; |
8a165db0 | 1061 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
ff66d28f | 1062 | datadir=$ac_optarg ;; |
b2dad0e3 | 1063 | |
8a165db0 BK |
1064 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
1065 | | --dataroo | --dataro | --datar) | |
1066 | ac_prev=datarootdir ;; | |
1067 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
1068 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
1069 | datarootdir=$ac_optarg ;; | |
1070 | ||
b2dad0e3 | 1071 | -disable-* | --disable-*) |
ff66d28f | 1072 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
b2dad0e3 | 1073 | # Reject names that are not valid shell variable names. |
8a165db0 | 1074 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
ff66d28f PE |
1075 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
1076 | { (exit 1); exit 1; }; } | |
8a165db0 BK |
1077 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
1078 | eval enable_$ac_feature=no ;; | |
1079 | ||
1080 | -docdir | --docdir | --docdi | --doc | --do) | |
1081 | ac_prev=docdir ;; | |
1082 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1083 | docdir=$ac_optarg ;; | |
1084 | ||
1085 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1086 | ac_prev=dvidir ;; | |
1087 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1088 | dvidir=$ac_optarg ;; | |
b2dad0e3 BK |
1089 | |
1090 | -enable-* | --enable-*) | |
ff66d28f | 1091 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
b2dad0e3 | 1092 | # Reject names that are not valid shell variable names. |
8a165db0 | 1093 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
ff66d28f PE |
1094 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
1095 | { (exit 1); exit 1; }; } | |
8a165db0 BK |
1096 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
1097 | eval enable_$ac_feature=\$ac_optarg ;; | |
b2dad0e3 BK |
1098 | |
1099 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1100 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1101 | | --exec | --exe | --ex) | |
1102 | ac_prev=exec_prefix ;; | |
1103 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1104 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1105 | | --exec=* | --exe=* | --ex=*) | |
ff66d28f | 1106 | exec_prefix=$ac_optarg ;; |
b2dad0e3 BK |
1107 | |
1108 | -gas | --gas | --ga | --g) | |
1109 | # Obsolete; use --with-gas. | |
1110 | with_gas=yes ;; | |
1111 | ||
ff66d28f PE |
1112 | -help | --help | --hel | --he | -h) |
1113 | ac_init_help=long ;; | |
1114 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1115 | ac_init_help=recursive ;; | |
1116 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1117 | ac_init_help=short ;; | |
b2dad0e3 BK |
1118 | |
1119 | -host | --host | --hos | --ho) | |
ff66d28f | 1120 | ac_prev=host_alias ;; |
b2dad0e3 | 1121 | -host=* | --host=* | --hos=* | --ho=*) |
ff66d28f | 1122 | host_alias=$ac_optarg ;; |
b2dad0e3 | 1123 | |
8a165db0 BK |
1124 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1125 | ac_prev=htmldir ;; | |
1126 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1127 | | --ht=*) | |
1128 | htmldir=$ac_optarg ;; | |
1129 | ||
b2dad0e3 BK |
1130 | -includedir | --includedir | --includedi | --included | --include \ |
1131 | | --includ | --inclu | --incl | --inc) | |
1132 | ac_prev=includedir ;; | |
1133 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1134 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
ff66d28f | 1135 | includedir=$ac_optarg ;; |
b2dad0e3 BK |
1136 | |
1137 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1138 | ac_prev=infodir ;; | |
1139 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
ff66d28f | 1140 | infodir=$ac_optarg ;; |
b2dad0e3 BK |
1141 | |
1142 | -libdir | --libdir | --libdi | --libd) | |
1143 | ac_prev=libdir ;; | |
1144 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
ff66d28f | 1145 | libdir=$ac_optarg ;; |
b2dad0e3 BK |
1146 | |
1147 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1148 | | --libexe | --libex | --libe) | |
1149 | ac_prev=libexecdir ;; | |
1150 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1151 | | --libexe=* | --libex=* | --libe=*) | |
ff66d28f | 1152 | libexecdir=$ac_optarg ;; |
b2dad0e3 | 1153 | |
8a165db0 BK |
1154 | -localedir | --localedir | --localedi | --localed | --locale) |
1155 | ac_prev=localedir ;; | |
1156 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1157 | localedir=$ac_optarg ;; | |
1158 | ||
b2dad0e3 | 1159 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
8a165db0 | 1160 | | --localstate | --localstat | --localsta | --localst | --locals) |
b2dad0e3 BK |
1161 | ac_prev=localstatedir ;; |
1162 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
8a165db0 | 1163 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
ff66d28f | 1164 | localstatedir=$ac_optarg ;; |
b2dad0e3 BK |
1165 | |
1166 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1167 | ac_prev=mandir ;; | |
1168 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
ff66d28f | 1169 | mandir=$ac_optarg ;; |
b2dad0e3 BK |
1170 | |
1171 | -nfp | --nfp | --nf) | |
1172 | # Obsolete; use --without-fp. | |
1173 | with_fp=no ;; | |
1174 | ||
1175 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
ff66d28f | 1176 | | --no-cr | --no-c | -n) |
b2dad0e3 BK |
1177 | no_create=yes ;; |
1178 | ||
1179 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1180 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1181 | no_recursion=yes ;; | |
1182 | ||
1183 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1184 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1185 | | --oldin | --oldi | --old | --ol | --o) | |
1186 | ac_prev=oldincludedir ;; | |
1187 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1188 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1189 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
ff66d28f | 1190 | oldincludedir=$ac_optarg ;; |
b2dad0e3 BK |
1191 | |
1192 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1193 | ac_prev=prefix ;; | |
1194 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
ff66d28f | 1195 | prefix=$ac_optarg ;; |
b2dad0e3 BK |
1196 | |
1197 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1198 | | --program-pre | --program-pr | --program-p) | |
1199 | ac_prev=program_prefix ;; | |
1200 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1201 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
ff66d28f | 1202 | program_prefix=$ac_optarg ;; |
b2dad0e3 BK |
1203 | |
1204 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1205 | | --program-suf | --program-su | --program-s) | |
1206 | ac_prev=program_suffix ;; | |
1207 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1208 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
ff66d28f | 1209 | program_suffix=$ac_optarg ;; |
b2dad0e3 BK |
1210 | |
1211 | -program-transform-name | --program-transform-name \ | |
1212 | | --program-transform-nam | --program-transform-na \ | |
1213 | | --program-transform-n | --program-transform- \ | |
1214 | | --program-transform | --program-transfor \ | |
1215 | | --program-transfo | --program-transf \ | |
1216 | | --program-trans | --program-tran \ | |
1217 | | --progr-tra | --program-tr | --program-t) | |
1218 | ac_prev=program_transform_name ;; | |
1219 | -program-transform-name=* | --program-transform-name=* \ | |
1220 | | --program-transform-nam=* | --program-transform-na=* \ | |
1221 | | --program-transform-n=* | --program-transform-=* \ | |
1222 | | --program-transform=* | --program-transfor=* \ | |
1223 | | --program-transfo=* | --program-transf=* \ | |
1224 | | --program-trans=* | --program-tran=* \ | |
1225 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
ff66d28f | 1226 | program_transform_name=$ac_optarg ;; |
b2dad0e3 | 1227 | |
8a165db0 BK |
1228 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1229 | ac_prev=pdfdir ;; | |
1230 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1231 | pdfdir=$ac_optarg ;; | |
1232 | ||
1233 | -psdir | --psdir | --psdi | --psd | --ps) | |
1234 | ac_prev=psdir ;; | |
1235 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1236 | psdir=$ac_optarg ;; | |
1237 | ||
b2dad0e3 BK |
1238 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1239 | | -silent | --silent | --silen | --sile | --sil) | |
1240 | silent=yes ;; | |
1241 | ||
1242 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1243 | ac_prev=sbindir ;; | |
1244 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1245 | | --sbi=* | --sb=*) | |
ff66d28f | 1246 | sbindir=$ac_optarg ;; |
b2dad0e3 BK |
1247 | |
1248 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1249 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1250 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1251 | | --sha | --sh) | |
1252 | ac_prev=sharedstatedir ;; | |
1253 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1254 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1255 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1256 | | --sha=* | --sh=*) | |
ff66d28f | 1257 | sharedstatedir=$ac_optarg ;; |
b2dad0e3 BK |
1258 | |
1259 | -site | --site | --sit) | |
1260 | ac_prev=site ;; | |
1261 | -site=* | --site=* | --sit=*) | |
ff66d28f | 1262 | site=$ac_optarg ;; |
b2dad0e3 BK |
1263 | |
1264 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1265 | ac_prev=srcdir ;; | |
1266 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
ff66d28f | 1267 | srcdir=$ac_optarg ;; |
b2dad0e3 BK |
1268 | |
1269 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1270 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1271 | ac_prev=sysconfdir ;; | |
1272 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1273 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
ff66d28f | 1274 | sysconfdir=$ac_optarg ;; |
b2dad0e3 BK |
1275 | |
1276 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
ff66d28f | 1277 | ac_prev=target_alias ;; |
b2dad0e3 | 1278 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
ff66d28f | 1279 | target_alias=$ac_optarg ;; |
b2dad0e3 BK |
1280 | |
1281 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1282 | verbose=yes ;; | |
1283 | ||
ff66d28f PE |
1284 | -version | --version | --versio | --versi | --vers | -V) |
1285 | ac_init_version=: ;; | |
b2dad0e3 BK |
1286 | |
1287 | -with-* | --with-*) | |
ff66d28f | 1288 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
b2dad0e3 | 1289 | # Reject names that are not valid shell variable names. |
8a165db0 | 1290 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
ff66d28f PE |
1291 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
1292 | { (exit 1); exit 1; }; } | |
8a165db0 BK |
1293 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1294 | eval with_$ac_package=\$ac_optarg ;; | |
b2dad0e3 BK |
1295 | |
1296 | -without-* | --without-*) | |
ff66d28f | 1297 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
b2dad0e3 | 1298 | # Reject names that are not valid shell variable names. |
8a165db0 | 1299 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
ff66d28f PE |
1300 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
1301 | { (exit 1); exit 1; }; } | |
8a165db0 BK |
1302 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1303 | eval with_$ac_package=no ;; | |
b2dad0e3 BK |
1304 | |
1305 | --x) | |
1306 | # Obsolete; use --with-x. | |
1307 | with_x=yes ;; | |
1308 | ||
1309 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1310 | | --x-incl | --x-inc | --x-in | --x-i) | |
1311 | ac_prev=x_includes ;; | |
1312 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1313 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
ff66d28f | 1314 | x_includes=$ac_optarg ;; |
b2dad0e3 BK |
1315 | |
1316 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1317 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1318 | ac_prev=x_libraries ;; | |
1319 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1320 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
ff66d28f | 1321 | x_libraries=$ac_optarg ;; |
b2dad0e3 | 1322 | |
ff66d28f PE |
1323 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
1324 | Try \`$0 --help' for more information." >&2 | |
1325 | { (exit 1); exit 1; }; } | |
b2dad0e3 BK |
1326 | ;; |
1327 | ||
ff66d28f PE |
1328 | *=*) |
1329 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1330 | # Reject names that are not valid shell variable names. | |
1331 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
1332 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
1333 | { (exit 1); exit 1; }; } | |
8a165db0 | 1334 | eval $ac_envvar=\$ac_optarg |
ff66d28f PE |
1335 | export $ac_envvar ;; |
1336 | ||
b2dad0e3 | 1337 | *) |
ff66d28f PE |
1338 | # FIXME: should be removed in autoconf 3.0. |
1339 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1340 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1341 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1342 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
b2dad0e3 BK |
1343 | ;; |
1344 | ||
1345 | esac | |
1346 | done | |
1347 | ||
1348 | if test -n "$ac_prev"; then | |
ff66d28f PE |
1349 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
1350 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
1351 | { (exit 1); exit 1; }; } | |
b2dad0e3 | 1352 | fi |
b2dad0e3 | 1353 | |
8a165db0 BK |
1354 | # Be sure to have absolute directory names. |
1355 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1356 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1357 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1358 | libdir localedir mandir | |
ff66d28f | 1359 | do |
8a165db0 | 1360 | eval ac_val=\$$ac_var |
ff66d28f | 1361 | case $ac_val in |
8a165db0 BK |
1362 | [\\/$]* | ?:[\\/]* ) continue;; |
1363 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
b2dad0e3 | 1364 | esac |
8a165db0 BK |
1365 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
1366 | { (exit 1); exit 1; }; } | |
b2dad0e3 BK |
1367 | done |
1368 | ||
ff66d28f PE |
1369 | # There might be people who depend on the old broken behavior: `$host' |
1370 | # used to hold the argument of --host etc. | |
1371 | # FIXME: To remove some day. | |
1372 | build=$build_alias | |
1373 | host=$host_alias | |
1374 | target=$target_alias | |
b2dad0e3 | 1375 | |
ff66d28f PE |
1376 | # FIXME: To remove some day. |
1377 | if test "x$host_alias" != x; then | |
1378 | if test "x$build_alias" = x; then | |
1379 | cross_compiling=maybe | |
1380 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
1381 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
1382 | elif test "x$build_alias" != "x$host_alias"; then | |
1383 | cross_compiling=yes | |
1384 | fi | |
1385 | fi | |
1386 | ||
1387 | ac_tool_prefix= | |
1388 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1389 | ||
1390 | test "$silent" = yes && exec 6>/dev/null | |
b2dad0e3 | 1391 | |
b2dad0e3 | 1392 | |
8a165db0 BK |
1393 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1394 | ac_ls_di=`ls -di .` && | |
1395 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1396 | { echo "$as_me: error: Working directory cannot be determined" >&2 | |
1397 | { (exit 1); exit 1; }; } | |
1398 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1399 | { echo "$as_me: error: pwd does not report name of working directory" >&2 | |
1400 | { (exit 1); exit 1; }; } | |
1401 | ||
1402 | ||
b2dad0e3 BK |
1403 | # Find the source files, if location was not specified. |
1404 | if test -z "$srcdir"; then | |
1405 | ac_srcdir_defaulted=yes | |
8a165db0 BK |
1406 | # Try the directory containing this script, then the parent directory. |
1407 | ac_confdir=`$as_dirname -- "$0" || | |
ff66d28f | 1408 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
ec2075e9 BK |
1409 | X"$0" : 'X\(//\)[^/]' \| \ |
1410 | X"$0" : 'X\(//\)$' \| \ | |
8a165db0 | 1411 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
ff66d28f | 1412 | echo X"$0" | |
8a165db0 BK |
1413 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1414 | s//\1/ | |
1415 | q | |
1416 | } | |
1417 | /^X\(\/\/\)[^/].*/{ | |
1418 | s//\1/ | |
1419 | q | |
1420 | } | |
1421 | /^X\(\/\/\)$/{ | |
1422 | s//\1/ | |
1423 | q | |
1424 | } | |
1425 | /^X\(\/\).*/{ | |
1426 | s//\1/ | |
1427 | q | |
1428 | } | |
1429 | s/.*/./; q'` | |
b2dad0e3 | 1430 | srcdir=$ac_confdir |
8a165db0 | 1431 | if test ! -r "$srcdir/$ac_unique_file"; then |
b2dad0e3 BK |
1432 | srcdir=.. |
1433 | fi | |
1434 | else | |
1435 | ac_srcdir_defaulted=no | |
1436 | fi | |
8a165db0 BK |
1437 | if test ! -r "$srcdir/$ac_unique_file"; then |
1438 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1439 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
ff66d28f | 1440 | { (exit 1); exit 1; }; } |
8a165db0 BK |
1441 | fi |
1442 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1443 | ac_abs_confdir=`( | |
1444 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 | |
1445 | { (exit 1); exit 1; }; } | |
1446 | pwd)` | |
1447 | # When building in place, set srcdir=. | |
1448 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1449 | srcdir=. | |
1450 | fi | |
1451 | # Remove unnecessary trailing slashes from srcdir. | |
1452 | # Double slashes in file names in object file debugging info | |
1453 | # mess up M-x gdb in Emacs. | |
1454 | case $srcdir in | |
1455 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1456 | esac | |
1457 | for ac_var in $ac_precious_vars; do | |
1458 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1459 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1460 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1461 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1462 | done | |
ff66d28f PE |
1463 | |
1464 | # | |
1465 | # Report the --help message. | |
1466 | # | |
1467 | if test "$ac_init_help" = "long"; then | |
1468 | # Omit some internal or obsolete options to make the list less imposing. | |
1469 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1470 | cat <<_ACEOF | |
fbe057bb | 1471 | \`configure' configures package-unused version-unused to adapt to many kinds of systems. |
ff66d28f PE |
1472 | |
1473 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1474 | ||
1475 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1476 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1477 | ||
1478 | Defaults for the options are specified in brackets. | |
1479 | ||
1480 | Configuration: | |
1481 | -h, --help display this help and exit | |
1482 | --help=short display options specific to this package | |
1483 | --help=recursive display the short help of all the included packages | |
1484 | -V, --version display version information and exit | |
1485 | -q, --quiet, --silent do not print \`checking...' messages | |
1486 | --cache-file=FILE cache test results in FILE [disabled] | |
1487 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1488 | -n, --no-create do not create output files | |
1489 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1490 | ||
ff66d28f PE |
1491 | Installation directories: |
1492 | --prefix=PREFIX install architecture-independent files in PREFIX | |
ec2075e9 | 1493 | [$ac_default_prefix] |
ff66d28f | 1494 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
ec2075e9 | 1495 | [PREFIX] |
ff66d28f PE |
1496 | |
1497 | By default, \`make install' will install all the files in | |
1498 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1499 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1500 | for instance \`--prefix=\$HOME'. | |
1501 | ||
1502 | For better control, use the options below. | |
1503 | ||
1504 | Fine tuning of the installation directories: | |
1505 | --bindir=DIR user executables [EPREFIX/bin] | |
1506 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1507 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
ff66d28f PE |
1508 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1509 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1510 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1511 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1512 | --includedir=DIR C header files [PREFIX/include] | |
1513 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
8a165db0 BK |
1514 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
1515 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1516 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1517 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1518 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1519 | --docdir=DIR documentation root [DATAROOTDIR/doc/libstdc++] | |
1520 | --htmldir=DIR html documentation [DOCDIR] | |
1521 | --dvidir=DIR dvi documentation [DOCDIR] | |
1522 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1523 | --psdir=DIR ps documentation [DOCDIR] | |
ff66d28f PE |
1524 | _ACEOF |
1525 | ||
1526 | cat <<\_ACEOF | |
1527 | ||
1528 | Program names: | |
1529 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1530 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1531 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1532 | ||
1533 | System types: | |
1534 | --build=BUILD configure for building on BUILD [guessed] | |
1535 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1536 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1537 | _ACEOF | |
1538 | fi | |
1539 | ||
1540 | if test -n "$ac_init_help"; then | |
1541 | case $ac_init_help in | |
fbe057bb | 1542 | short | recursive ) echo "Configuration of package-unused version-unused:";; |
ff66d28f PE |
1543 | esac |
1544 | cat <<\_ACEOF | |
1545 | ||
1546 | Optional Features: | |
1547 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1548 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
7eaf73d7 KC |
1549 | --enable-multilib build many library versions (default) |
1550 | --enable-maintainer-mode enable make rules and dependencies not useful | |
1551 | (and sometimes confusing) to the casual installer | |
8a165db0 BK |
1552 | --enable-shared[=PKGS] build shared libraries [default=yes] |
1553 | --enable-static[=PKGS] build static libraries [default=yes] | |
1cf3d07d SE |
1554 | --enable-fast-install[=PKGS] |
1555 | optimize for fast installation [default=yes] | |
ff66d28f | 1556 | --disable-libtool-lock avoid locking (might break parallel builds) |
92eabea2 PE |
1557 | --disable-hosted-libstdcxx |
1558 | only build freestanding C++ runtime support | |
ff66d28f | 1559 | --enable-sjlj-exceptions |
517da0ce MM |
1560 | force use of builtin_setjmp for exceptions |
1561 | [default=auto] | |
1562 | --enable-libstdcxx-pch build pre-compiled libstdc++ headers | |
1563 | [default=$is_hosted] | |
8a165db0 | 1564 | --enable-cstdio=PACKAGE use target-specific I/O package [default=stdio] |
ff66d28f | 1565 | --enable-clocale[=MODEL] |
8a165db0 | 1566 | use MODEL for target locale package [default=auto] |
517da0ce | 1567 | --enable-nls use Native Language Support (default) |
8b0d6051 BK |
1568 | --enable-libstdcxx-allocator=KIND |
1569 | use KIND for target std::allocator base | |
1570 | [default=auto] | |
8a165db0 | 1571 | --enable-cheaders=KIND construct "C" headers for g++ [default=$c_model] |
347669a0 BK |
1572 | --enable-long-long enable template specializations for 'long long' |
1573 | [default=yes] | |
1574 | --enable-wchar_t enable template specializations for 'wchar_t' | |
517da0ce | 1575 | [default=yes] |
8a165db0 | 1576 | --enable-c99 turns on ISO/IEC 9899:1999 support [default=yes] |
517da0ce | 1577 | --enable-concept-checks use Boost-derived template checks [default=no] |
ff66d28f | 1578 | --enable-libstdcxx-debug-flags=FLAGS |
517da0ce MM |
1579 | pass compiler FLAGS when building debug library |
1580 | [default="-g3 -O0"] | |
ff66d28f PE |
1581 | --enable-libstdcxx-debug |
1582 | build extra debug library [default=no] | |
1583 | --enable-cxx-flags=FLAGS | |
8a165db0 | 1584 | pass compiler FLAGS when building library [default=] |
1165dc50 PC |
1585 | --enable-fully-dynamic-string |
1586 | do not put empty strings in per-process static | |
1587 | memory [default=no] | |
2fb31455 | 1588 | --enable-tls Use thread-local storage [default=yes] |
5f34ed87 | 1589 | --disable-rpath do not hardcode runtime library paths |
8a165db0 | 1590 | --enable-linux-futex use the Linux futex system call [default=default] |
517da0ce MM |
1591 | --enable-symvers=STYLE enables symbol versioning of the shared library |
1592 | [default=yes] | |
98e615b4 | 1593 | --enable-visibility enables visibility safe usage [default=yes] |
ff66d28f | 1594 | --enable-version-specific-runtime-libs |
517da0ce MM |
1595 | Specify that runtime libraries should be installed |
1596 | in a compiler-specific directory | |
ff66d28f PE |
1597 | |
1598 | Optional Packages: | |
1599 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1600 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1601 | --with-target-subdir=SUBDIR | |
1602 | configuring in a subdirectory | |
517da0ce MM |
1603 | --with-cross-host=HOST configuring with a cross compiler |
1604 | --with-newlib assume newlib as a system C library | |
1cf3d07d SE |
1605 | --with-pic try to use only PIC/non-PIC objects [default=use |
1606 | both] | |
1607 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
ff66d28f | 1608 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
4ffe6e87 BK |
1609 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib |
1610 | --without-libiconv-prefix don't search for libiconv in includedir and libdir | |
ff66d28f PE |
1611 | --with-gxx-include-dir=DIR |
1612 | installation directory for include files | |
1613 | ||
1614 | Some influential environment variables: | |
517da0ce MM |
1615 | CC C compiler command |
1616 | CFLAGS C compiler flags | |
1617 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1618 | nonstandard directory <lib dir> | |
8a165db0 BK |
1619 | LIBS libraries to pass to the linker, e.g. -l<library> |
1620 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1621 | you have headers in a nonstandard directory <include dir> | |
517da0ce MM |
1622 | CXX C++ compiler command |
1623 | CXXFLAGS C++ compiler flags | |
517da0ce | 1624 | CPP C preprocessor |
464aea98 | 1625 | CXXCPP C++ preprocessor |
ff66d28f PE |
1626 | |
1627 | Use these variables to override the choices made by `configure' or to help | |
1628 | it to find libraries and programs with nonstandard names/locations. | |
1629 | ||
1630 | _ACEOF | |
8a165db0 | 1631 | ac_status=$? |
ff66d28f PE |
1632 | fi |
1633 | ||
1634 | if test "$ac_init_help" = "recursive"; then | |
1635 | # If there are subdirs, report their specific --help. | |
ff66d28f | 1636 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
8a165db0 | 1637 | test -d "$ac_dir" || continue |
ff66d28f PE |
1638 | ac_builddir=. |
1639 | ||
8a165db0 BK |
1640 | case "$ac_dir" in |
1641 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1642 | *) | |
ff66d28f | 1643 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
8a165db0 BK |
1644 | # A ".." for each directory in $ac_dir_suffix. |
1645 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | |
1646 | case $ac_top_builddir_sub in | |
1647 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1648 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1649 | esac ;; | |
1650 | esac | |
1651 | ac_abs_top_builddir=$ac_pwd | |
1652 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1653 | # for backward compatibility: | |
1654 | ac_top_builddir=$ac_top_build_prefix | |
ff66d28f PE |
1655 | |
1656 | case $srcdir in | |
8a165db0 | 1657 | .) # We are building in place. |
ff66d28f | 1658 | ac_srcdir=. |
8a165db0 BK |
1659 | ac_top_srcdir=$ac_top_builddir_sub |
1660 | ac_abs_top_srcdir=$ac_pwd ;; | |
1661 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ff66d28f | 1662 | ac_srcdir=$srcdir$ac_dir_suffix; |
8a165db0 BK |
1663 | ac_top_srcdir=$srcdir |
1664 | ac_abs_top_srcdir=$srcdir ;; | |
1665 | *) # Relative name. | |
1666 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1667 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1668 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
ec2075e9 | 1669 | esac |
8a165db0 BK |
1670 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1671 | ||
1672 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1673 | # Check for guested configure. | |
1674 | if test -f "$ac_srcdir/configure.gnu"; then | |
1675 | echo && | |
1676 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1677 | elif test -f "$ac_srcdir/configure"; then | |
1678 | echo && | |
1679 | $SHELL "$ac_srcdir/configure" --help=recursive | |
ff66d28f PE |
1680 | else |
1681 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
8a165db0 BK |
1682 | fi || ac_status=$? |
1683 | cd "$ac_pwd" || { ac_status=$?; break; } | |
ff66d28f PE |
1684 | done |
1685 | fi | |
1686 | ||
8a165db0 | 1687 | test -n "$ac_init_help" && exit $ac_status |
ff66d28f PE |
1688 | if $ac_init_version; then |
1689 | cat <<\_ACEOF | |
fbe057bb | 1690 | package-unused configure version-unused |
8a165db0 | 1691 | generated by GNU Autoconf 2.61 |
ff66d28f | 1692 | |
8a165db0 BK |
1693 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
1694 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | |
ff66d28f PE |
1695 | This configure script is free software; the Free Software Foundation |
1696 | gives unlimited permission to copy, distribute and modify it. | |
1697 | _ACEOF | |
8a165db0 | 1698 | exit |
b2dad0e3 | 1699 | fi |
8a165db0 | 1700 | cat >config.log <<_ACEOF |
ff66d28f PE |
1701 | This file contains any messages produced by compilers while |
1702 | running configure, to aid debugging if configure makes a mistake. | |
1703 | ||
fbe057bb | 1704 | It was created by package-unused $as_me version-unused, which was |
8a165db0 | 1705 | generated by GNU Autoconf 2.61. Invocation command line was |
ff66d28f PE |
1706 | |
1707 | $ $0 $@ | |
1708 | ||
1709 | _ACEOF | |
8a165db0 | 1710 | exec 5>>config.log |
ff66d28f PE |
1711 | { |
1712 | cat <<_ASUNAME | |
1713 | ## --------- ## | |
1714 | ## Platform. ## | |
1715 | ## --------- ## | |
1716 | ||
1717 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1718 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1719 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1720 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1721 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1722 | ||
1723 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1724 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1725 | ||
1726 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1727 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1728 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
8a165db0 | 1729 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
ff66d28f PE |
1730 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1731 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1732 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1733 | ||
1734 | _ASUNAME | |
1735 | ||
1736 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1737 | for as_dir in $PATH | |
1738 | do | |
1739 | IFS=$as_save_IFS | |
1740 | test -z "$as_dir" && as_dir=. | |
1741 | echo "PATH: $as_dir" | |
1742 | done | |
8a165db0 | 1743 | IFS=$as_save_IFS |
ff66d28f PE |
1744 | |
1745 | } >&5 | |
1746 | ||
1747 | cat >&5 <<_ACEOF | |
1748 | ||
1749 | ||
1750 | ## ----------- ## | |
1751 | ## Core tests. ## | |
1752 | ## ----------- ## | |
1753 | ||
1754 | _ACEOF | |
1755 | ||
1756 | ||
1757 | # Keep a trace of the command line. | |
1758 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1759 | # Strip out --silent because we don't want to record it for future runs. | |
1760 | # Also quote any args containing shell meta-characters. | |
1761 | # Make two passes to allow for proper duplicate-argument suppression. | |
1762 | ac_configure_args= | |
1763 | ac_configure_args0= | |
1764 | ac_configure_args1= | |
ff66d28f PE |
1765 | ac_must_keep_next=false |
1766 | for ac_pass in 1 2 | |
1767 | do | |
1768 | for ac_arg | |
1769 | do | |
1770 | case $ac_arg in | |
1771 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1772 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1773 | | -silent | --silent | --silen | --sile | --sil) | |
1774 | continue ;; | |
8a165db0 | 1775 | *\'*) |
ff66d28f PE |
1776 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1777 | esac | |
1778 | case $ac_pass in | |
1779 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1780 | 2) | |
1781 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1782 | if test $ac_must_keep_next = true; then | |
ec2075e9 | 1783 | ac_must_keep_next=false # Got value, back to normal. |
ff66d28f | 1784 | else |
ec2075e9 BK |
1785 | case $ac_arg in |
1786 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1787 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1788 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1789 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1790 | case "$ac_configure_args0 " in | |
1791 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1792 | esac | |
1793 | ;; | |
1794 | -* ) ac_must_keep_next=true ;; | |
1795 | esac | |
ff66d28f | 1796 | fi |
8a165db0 | 1797 | ac_configure_args="$ac_configure_args '$ac_arg'" |
ff66d28f PE |
1798 | ;; |
1799 | esac | |
1800 | done | |
1801 | done | |
1802 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1803 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1804 | ||
1805 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1806 | # config.log. We remove comments because anyway the quotes in there | |
1807 | # would cause problems or look ugly. | |
8a165db0 BK |
1808 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1809 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
ff66d28f PE |
1810 | trap 'exit_status=$? |
1811 | # Save into config.log some information that might help in debugging. | |
1812 | { | |
1813 | echo | |
1814 | ||
1815 | cat <<\_ASBOX | |
1816 | ## ---------------- ## | |
1817 | ## Cache variables. ## | |
1818 | ## ---------------- ## | |
1819 | _ASBOX | |
1820 | echo | |
1821 | # The following way of writing the cache mishandles newlines in values, | |
8a165db0 BK |
1822 | ( |
1823 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1824 | eval ac_val=\$$ac_var | |
1825 | case $ac_val in #( | |
1826 | *${as_nl}*) | |
1827 | case $ac_var in #( | |
1828 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | |
1829 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
1830 | esac | |
1831 | case $ac_var in #( | |
1832 | _ | IFS | as_nl) ;; #( | |
1833 | *) $as_unset $ac_var ;; | |
1834 | esac ;; | |
1835 | esac | |
1836 | done | |
ff66d28f | 1837 | (set) 2>&1 | |
8a165db0 BK |
1838 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1839 | *${as_nl}ac_space=\ *) | |
ff66d28f | 1840 | sed -n \ |
8a165db0 BK |
1841 | "s/'\''/'\''\\\\'\'''\''/g; |
1842 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1843 | ;; #( | |
ff66d28f | 1844 | *) |
8a165db0 | 1845 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ff66d28f | 1846 | ;; |
8a165db0 BK |
1847 | esac | |
1848 | sort | |
1849 | ) | |
ff66d28f PE |
1850 | echo |
1851 | ||
1852 | cat <<\_ASBOX | |
1853 | ## ----------------- ## | |
1854 | ## Output variables. ## | |
1855 | ## ----------------- ## | |
1856 | _ASBOX | |
1857 | echo | |
1858 | for ac_var in $ac_subst_vars | |
1859 | do | |
8a165db0 BK |
1860 | eval ac_val=\$$ac_var |
1861 | case $ac_val in | |
1862 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1863 | esac | |
1864 | echo "$ac_var='\''$ac_val'\''" | |
ff66d28f PE |
1865 | done | sort |
1866 | echo | |
1867 | ||
1868 | if test -n "$ac_subst_files"; then | |
1869 | cat <<\_ASBOX | |
8a165db0 BK |
1870 | ## ------------------- ## |
1871 | ## File substitutions. ## | |
1872 | ## ------------------- ## | |
ff66d28f PE |
1873 | _ASBOX |
1874 | echo | |
1875 | for ac_var in $ac_subst_files | |
1876 | do | |
8a165db0 BK |
1877 | eval ac_val=\$$ac_var |
1878 | case $ac_val in | |
1879 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1880 | esac | |
1881 | echo "$ac_var='\''$ac_val'\''" | |
ff66d28f PE |
1882 | done | sort |
1883 | echo | |
1884 | fi | |
1885 | ||
1886 | if test -s confdefs.h; then | |
1887 | cat <<\_ASBOX | |
1888 | ## ----------- ## | |
1889 | ## confdefs.h. ## | |
1890 | ## ----------- ## | |
1891 | _ASBOX | |
1892 | echo | |
8a165db0 | 1893 | cat confdefs.h |
ff66d28f PE |
1894 | echo |
1895 | fi | |
1896 | test "$ac_signal" != 0 && | |
1897 | echo "$as_me: caught signal $ac_signal" | |
1898 | echo "$as_me: exit $exit_status" | |
1899 | } >&5 | |
8a165db0 BK |
1900 | rm -f core *.core core.conftest.* && |
1901 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
ff66d28f | 1902 | exit $exit_status |
8a165db0 | 1903 | ' 0 |
ff66d28f PE |
1904 | for ac_signal in 1 2 13 15; do |
1905 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1906 | done | |
1907 | ac_signal=0 | |
1908 | ||
1909 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
8a165db0 | 1910 | rm -f -r conftest* confdefs.h |
ff66d28f PE |
1911 | |
1912 | # Predefined preprocessor variables. | |
1913 | ||
1914 | cat >>confdefs.h <<_ACEOF | |
1915 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1916 | _ACEOF | |
1917 | ||
1918 | ||
1919 | cat >>confdefs.h <<_ACEOF | |
1920 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1921 | _ACEOF | |
1922 | ||
1923 | ||
1924 | cat >>confdefs.h <<_ACEOF | |
1925 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1926 | _ACEOF | |
1927 | ||
b2dad0e3 | 1928 | |
ff66d28f PE |
1929 | cat >>confdefs.h <<_ACEOF |
1930 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1931 | _ACEOF | |
1932 | ||
1933 | ||
1934 | cat >>confdefs.h <<_ACEOF | |
1935 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1936 | _ACEOF | |
1937 | ||
1938 | ||
1939 | # Let the site file select an alternate cache file if it wants to. | |
b2dad0e3 | 1940 | # Prefer explicitly selected file to automatically selected ones. |
8a165db0 BK |
1941 | if test -n "$CONFIG_SITE"; then |
1942 | set x "$CONFIG_SITE" | |
1943 | elif test "x$prefix" != xNONE; then | |
1944 | set x "$prefix/share/config.site" "$prefix/etc/config.site" | |
1945 | else | |
1946 | set x "$ac_default_prefix/share/config.site" \ | |
1947 | "$ac_default_prefix/etc/config.site" | |
b2dad0e3 | 1948 | fi |
8a165db0 BK |
1949 | shift |
1950 | for ac_site_file | |
1951 | do | |
b2dad0e3 | 1952 | if test -r "$ac_site_file"; then |
ff66d28f PE |
1953 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1954 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1955 | sed 's/^/| /' "$ac_site_file" >&5 | |
b2dad0e3 BK |
1956 | . "$ac_site_file" |
1957 | fi | |
1958 | done | |
1959 | ||
1960 | if test -r "$cache_file"; then | |
ff66d28f PE |
1961 | # Some versions of bash will fail to source /dev/null (special |
1962 | # files actually), so we avoid doing that. | |
1963 | if test -f "$cache_file"; then | |
1964 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1965 | echo "$as_me: loading cache $cache_file" >&6;} | |
1966 | case $cache_file in | |
8a165db0 BK |
1967 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1968 | *) . "./$cache_file";; | |
ff66d28f PE |
1969 | esac |
1970 | fi | |
b2dad0e3 | 1971 | else |
ff66d28f PE |
1972 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1973 | echo "$as_me: creating cache $cache_file" >&6;} | |
1974 | >$cache_file | |
1975 | fi | |
1976 | ||
1977 | # Check that the precious variables saved in the cache have kept the same | |
1978 | # value. | |
1979 | ac_cache_corrupted=false | |
8a165db0 | 1980 | for ac_var in $ac_precious_vars; do |
ff66d28f PE |
1981 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1982 | eval ac_new_set=\$ac_env_${ac_var}_set | |
8a165db0 BK |
1983 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1984 | eval ac_new_val=\$ac_env_${ac_var}_value | |
ff66d28f PE |
1985 | case $ac_old_set,$ac_new_set in |
1986 | set,) | |
1987 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1988 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1989 | ac_cache_corrupted=: ;; | |
1990 | ,set) | |
1991 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1992 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1993 | ac_cache_corrupted=: ;; | |
1994 | ,);; | |
1995 | *) | |
1996 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
ec2075e9 | 1997 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
ff66d28f | 1998 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
ec2075e9 | 1999 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
ff66d28f | 2000 | echo "$as_me: former value: $ac_old_val" >&2;} |
ec2075e9 | 2001 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
ff66d28f | 2002 | echo "$as_me: current value: $ac_new_val" >&2;} |
ec2075e9 | 2003 | ac_cache_corrupted=: |
ff66d28f PE |
2004 | fi;; |
2005 | esac | |
2006 | # Pass precious variables to config.status. | |
2007 | if test "$ac_new_set" = set; then | |
2008 | case $ac_new_val in | |
8a165db0 | 2009 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
ff66d28f PE |
2010 | *) ac_arg=$ac_var=$ac_new_val ;; |
2011 | esac | |
2012 | case " $ac_configure_args " in | |
2013 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2014 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
2015 | esac | |
2016 | fi | |
2017 | done | |
2018 | if $ac_cache_corrupted; then | |
2019 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
2020 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2021 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
2022 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
2023 | { (exit 1); exit 1; }; } | |
b2dad0e3 BK |
2024 | fi |
2025 | ||
b2dad0e3 | 2026 | |
e2c20fae | 2027 | |
6706f116 | 2028 | |
33590f13 BK |
2029 | |
2030 | ||
2031 | ||
aebb8c22 | 2032 | |
aebb8c22 | 2033 | |
ff66d28f PE |
2034 | |
2035 | ||
2036 | ||
2037 | ||
2038 | ||
2039 | ||
2040 | ||
2041 | ||
2042 | ||
2043 | ||
2044 | ||
2045 | ||
2046 | ||
2047 | ||
2048 | ||
2049 | ||
8a165db0 BK |
2050 | ac_ext=c |
2051 | ac_cpp='$CPP $CPPFLAGS' | |
2052 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2053 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2054 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ff66d28f PE |
2055 | |
2056 | ||
2057 | ||
8a165db0 | 2058 | ac_config_headers="$ac_config_headers config.h" |
ff66d28f PE |
2059 | |
2060 | ||
2061 | # This works around the fact that libtool configuration may change LD | |
2062 | # for this particular configuration, but some shells, instead of | |
2063 | # keeping the changes in LD private, export them just because LD is | |
2064 | # exported. Only used at the end of this file. | |
2065 | ### am handles this now? ORIGINAL_LD_FOR_MULTILIBS=$LD | |
2066 | ||
2067 | # For libtool versioning info, format is CURRENT:REVISION:AGE | |
5dddb7e5 | 2068 | libtool_VERSION=6:10:0 |
ff66d28f PE |
2069 | |
2070 | ||
2071 | # Find the rest of the source tree framework. | |
076e5443 | 2072 | # Default to --enable-multilib |
8a165db0 | 2073 | # Check whether --enable-multilib was given. |
ff66d28f | 2074 | if test "${enable_multilib+set}" = set; then |
8a165db0 | 2075 | enableval=$enable_multilib; case "$enableval" in |
ff66d28f PE |
2076 | yes) multilib=yes ;; |
2077 | no) multilib=no ;; | |
2078 | *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5 | |
2079 | echo "$as_me: error: bad value $enableval for multilib option" >&2;} | |
2080 | { (exit 1); exit 1; }; } ;; | |
2081 | esac | |
2082 | else | |
2083 | multilib=yes | |
8a165db0 BK |
2084 | fi |
2085 | ||
ff66d28f PE |
2086 | |
2087 | # We may get other options which we leave undocumented: | |
2088 | # --with-target-subdir, --with-multisrctop, --with-multisubdir | |
2089 | # See config-ml.in if you want the gory details. | |
2090 | ||
2091 | if test "$srcdir" = "."; then | |
2092 | if test "$with_target_subdir" != "."; then | |
2093 | multi_basedir="$srcdir/$with_multisrctop../.." | |
2094 | else | |
2095 | multi_basedir="$srcdir/$with_multisrctop.." | |
2096 | fi | |
2097 | else | |
2098 | multi_basedir="$srcdir/.." | |
2099 | fi | |
2100 | ||
2101 | ||
5b043f08 GK |
2102 | # Even if the default multilib is not a cross compilation, |
2103 | # it may be that some of the other multilibs are. | |
2104 | if test $cross_compiling = no && test $multilib = yes \ | |
2105 | && test "x${with_multisubdir}" != x ; then | |
2106 | cross_compiling=maybe | |
2107 | fi | |
2108 | ||
8a165db0 | 2109 | ac_config_commands="$ac_config_commands default-1" |
ff66d28f PE |
2110 | |
2111 | ||
076e5443 PB |
2112 | # Gets build, host, target, *_vendor, *_cpu, *_os, etc. |
2113 | # | |
2114 | # You will slowly go insane if you do not grok the following fact: when | |
2115 | # building v3 as part of the compiler, the top-level /target/ becomes the | |
2116 | # library's /host/. configure then causes --target to default to --host, | |
2117 | # exactly like any other package using autoconf. Therefore, 'target' and | |
2118 | # 'host' will always be the same. This makes sense both for native and | |
2119 | # cross compilers, just think about it for a little while. :-) | |
2120 | # | |
2121 | # Also, if v3 is being configured as part of a cross compiler, the top-level | |
2122 | # configure script will pass the "real" host as $with_cross_host. | |
2123 | # | |
2124 | # Do not delete or change the following two lines. For why, see | |
2125 | # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html | |
2126 | ac_aux_dir= | |
8a165db0 BK |
2127 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
2128 | if test -f "$ac_dir/install-sh"; then | |
ff66d28f PE |
2129 | ac_aux_dir=$ac_dir |
2130 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2131 | break | |
8a165db0 | 2132 | elif test -f "$ac_dir/install.sh"; then |
ff66d28f | 2133 | ac_aux_dir=$ac_dir |
b2dad0e3 BK |
2134 | ac_install_sh="$ac_aux_dir/install.sh -c" |
2135 | break | |
8a165db0 | 2136 | elif test -f "$ac_dir/shtool"; then |
ff66d28f PE |
2137 | ac_aux_dir=$ac_dir |
2138 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2139 | break | |
b2dad0e3 BK |
2140 | fi |
2141 | done | |
2142 | if test -z "$ac_aux_dir"; then | |
8a165db0 BK |
2143 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
2144 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} | |
ff66d28f | 2145 | { (exit 1); exit 1; }; } |
b2dad0e3 | 2146 | fi |
8a165db0 BK |
2147 | |
2148 | # These three variables are undocumented and unsupported, | |
2149 | # and are intended to be withdrawn in a future Autoconf release. | |
2150 | # They can cause serious problems if a builder's source tree is in a directory | |
2151 | # whose full name contains unusual characters. | |
2152 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2153 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2154 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2155 | ||
ff66d28f | 2156 | |
ff66d28f | 2157 | # Make sure we can run config.sub. |
8a165db0 BK |
2158 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
2159 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 | |
2160 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | |
ff66d28f PE |
2161 | { (exit 1); exit 1; }; } |
2162 | ||
8a165db0 BK |
2163 | { echo "$as_me:$LINENO: checking build system type" >&5 |
2164 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } | |
ff66d28f PE |
2165 | if test "${ac_cv_build+set}" = set; then |
2166 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2167 | else | |
8a165db0 BK |
2168 | ac_build_alias=$build_alias |
2169 | test "x$ac_build_alias" = x && | |
2170 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2171 | test "x$ac_build_alias" = x && | |
ff66d28f PE |
2172 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
2173 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
2174 | { (exit 1); exit 1; }; } | |
8a165db0 BK |
2175 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
2176 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 | |
2177 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | |
ff66d28f PE |
2178 | { (exit 1); exit 1; }; } |
2179 | ||
2180 | fi | |
8a165db0 BK |
2181 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
2182 | echo "${ECHO_T}$ac_cv_build" >&6; } | |
2183 | case $ac_cv_build in | |
2184 | *-*-*) ;; | |
2185 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 | |
2186 | echo "$as_me: error: invalid value of canonical build" >&2;} | |
2187 | { (exit 1); exit 1; }; };; | |
2188 | esac | |
ff66d28f | 2189 | build=$ac_cv_build |
8a165db0 BK |
2190 | ac_save_IFS=$IFS; IFS='-' |
2191 | set x $ac_cv_build | |
2192 | shift | |
2193 | build_cpu=$1 | |
2194 | build_vendor=$2 | |
2195 | shift; shift | |
2196 | # Remember, the first character of IFS is used to create $*, | |
2197 | # except with old shells: | |
2198 | build_os=$* | |
2199 | IFS=$ac_save_IFS | |
2200 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
2201 | ||
2202 | ||
2203 | { echo "$as_me:$LINENO: checking host system type" >&5 | |
2204 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } | |
ff66d28f PE |
2205 | if test "${ac_cv_host+set}" = set; then |
2206 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2207 | else | |
8a165db0 BK |
2208 | if test "x$host_alias" = x; then |
2209 | ac_cv_host=$ac_cv_build | |
2210 | else | |
2211 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2212 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 | |
2213 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | |
ff66d28f | 2214 | { (exit 1); exit 1; }; } |
8a165db0 | 2215 | fi |
ff66d28f PE |
2216 | |
2217 | fi | |
8a165db0 BK |
2218 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
2219 | echo "${ECHO_T}$ac_cv_host" >&6; } | |
2220 | case $ac_cv_host in | |
2221 | *-*-*) ;; | |
2222 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 | |
2223 | echo "$as_me: error: invalid value of canonical host" >&2;} | |
2224 | { (exit 1); exit 1; }; };; | |
2225 | esac | |
ff66d28f | 2226 | host=$ac_cv_host |
8a165db0 BK |
2227 | ac_save_IFS=$IFS; IFS='-' |
2228 | set x $ac_cv_host | |
2229 | shift | |
2230 | host_cpu=$1 | |
2231 | host_vendor=$2 | |
2232 | shift; shift | |
2233 | # Remember, the first character of IFS is used to create $*, | |
2234 | # except with old shells: | |
2235 | host_os=$* | |
2236 | IFS=$ac_save_IFS | |
2237 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
2238 | ||
2239 | ||
2240 | { echo "$as_me:$LINENO: checking target system type" >&5 | |
2241 | echo $ECHO_N "checking target system type... $ECHO_C" >&6; } | |
ff66d28f PE |
2242 | if test "${ac_cv_target+set}" = set; then |
2243 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2244 | else | |
8a165db0 BK |
2245 | if test "x$target_alias" = x; then |
2246 | ac_cv_target=$ac_cv_host | |
2247 | else | |
2248 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
2249 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 | |
2250 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} | |
ff66d28f | 2251 | { (exit 1); exit 1; }; } |
8a165db0 | 2252 | fi |
ff66d28f PE |
2253 | |
2254 | fi | |
8a165db0 BK |
2255 | { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
2256 | echo "${ECHO_T}$ac_cv_target" >&6; } | |
2257 | case $ac_cv_target in | |
2258 | *-*-*) ;; | |
2259 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 | |
2260 | echo "$as_me: error: invalid value of canonical target" >&2;} | |
2261 | { (exit 1); exit 1; }; };; | |
2262 | esac | |
ff66d28f | 2263 | target=$ac_cv_target |
8a165db0 BK |
2264 | ac_save_IFS=$IFS; IFS='-' |
2265 | set x $ac_cv_target | |
2266 | shift | |
2267 | target_cpu=$1 | |
2268 | target_vendor=$2 | |
2269 | shift; shift | |
2270 | # Remember, the first character of IFS is used to create $*, | |
2271 | # except with old shells: | |
2272 | target_os=$* | |
2273 | IFS=$ac_save_IFS | |
2274 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
b2dad0e3 | 2275 | |
b2dad0e3 BK |
2276 | |
2277 | # The aliases save the names the user supplied, while $host etc. | |
2278 | # will get canonicalized. | |
ff66d28f PE |
2279 | test -n "$target_alias" && |
2280 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2281 | NONENONEs,x,x, && | |
2282 | program_prefix=${target_alias}- | |
2283 | target_alias=${target_alias-$host_alias} | |
2284 | ||
2285 | # Handy for debugging: | |
2286 | #AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5 | |
2287 | ||
0df3f383 PE |
2288 | if test "$build" != "$host"; then |
2289 | # We are being configured with some form of cross compiler. | |
2290 | GLIBCXX_IS_NATIVE=false | |
0646b059 GK |
2291 | case "$host","$target" in |
2292 | # Darwin crosses can use the host system's libraries and headers, | |
2293 | # because of the fat library support. Of course, it must be the | |
2294 | # same version of Darwin on both sides. Allow the user to | |
2295 | # just say --target=foo-darwin without a version number to mean | |
2296 | # "the version on this system". | |
2297 | *-*-darwin*,*-*-darwin*) | |
2298 | hostos=`echo $host | sed 's/.*-darwin/darwin/'` | |
2299 | targetos=`echo $target | sed 's/.*-darwin/darwin/'` | |
2300 | if test $hostos = $targetos -o $targetos = darwin ; then | |
2301 | GLIBCXX_IS_NATIVE=true | |
2302 | fi | |
2303 | ;; | |
2304 | ||
2305 | *) | |
3a24bf5d | 2306 | |
0646b059 GK |
2307 | ;; |
2308 | esac | |
0df3f383 PE |
2309 | else |
2310 | GLIBCXX_IS_NATIVE=true | |
2311 | fi | |
2312 | ||
ff66d28f PE |
2313 | # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the |
2314 | # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am. | |
2315 | # 1.x: minimum required version | |
2316 | # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch | |
2317 | # of other PACKAGE_* variables will, however, and there's nothing | |
fbe057bb | 2318 | # we can do about that; they come from AC_INIT). |
ff66d28f PE |
2319 | # foreign: we don't follow the normal rules for GNU packages (no COPYING |
2320 | # file in the top srcdir, etc, etc), so stop complaining. | |
2321 | # no-dependencies: turns off auto dependency generation (just for now) | |
2d52e9e3 PE |
2322 | # -Wall: turns on all automake warnings... |
2323 | # -Wno-portability: ...except this one, since GNU make is now required. | |
8a165db0 BK |
2324 | am__api_version='1.10' |
2325 | ||
ff66d28f PE |
2326 | # Find a good install program. We prefer a C program (faster), |
2327 | # so one script is as good as another. But avoid the broken or | |
2328 | # incompatible versions: | |
2329 | # SysV /etc/install, /usr/sbin/install | |
2330 | # SunOS /usr/etc/install | |
2331 | # IRIX /sbin/install | |
2332 | # AIX /bin/install | |
2333 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2334 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2335 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2336 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ec2075e9 | 2337 | # OS/2's system install, which has a completely different semantic |
ff66d28f | 2338 | # ./install, which can be erroneously created by make from ./install.sh. |
8a165db0 BK |
2339 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
2340 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } | |
ff66d28f PE |
2341 | if test -z "$INSTALL"; then |
2342 | if test "${ac_cv_path_install+set}" = set; then | |
2343 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2344 | else | |
2345 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2346 | for as_dir in $PATH | |
2347 | do | |
2348 | IFS=$as_save_IFS | |
2349 | test -z "$as_dir" && as_dir=. | |
2350 | # Account for people who put trailing slashes in PATH elements. | |
2351 | case $as_dir/ in | |
2352 | ./ | .// | /cC/* | \ | |
2353 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ec2075e9 | 2354 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
ff66d28f PE |
2355 | /usr/ucb/* ) ;; |
2356 | *) | |
2357 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2358 | # Don't use installbsd from OSF since it installs stuff as root | |
2359 | # by default. | |
2360 | for ac_prog in ginstall scoinst install; do | |
2361 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8a165db0 | 2362 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
ec2075e9 BK |
2363 | if test $ac_prog = install && |
2364 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2365 | # AIX install. It has an incompatible calling convention. | |
2366 | : | |
2367 | elif test $ac_prog = install && | |
2368 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2369 | # program-specific install script used by HP pwplus--don't use. | |
2370 | : | |
2371 | else | |
2372 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2373 | break 3 | |
2374 | fi | |
2375 | fi | |
ff66d28f PE |
2376 | done |
2377 | done | |
2378 | ;; | |
b2dad0e3 | 2379 | esac |
ff66d28f | 2380 | done |
8a165db0 | 2381 | IFS=$as_save_IFS |
b2dad0e3 BK |
2382 | |
2383 | ||
b2dad0e3 | 2384 | fi |
ff66d28f PE |
2385 | if test "${ac_cv_path_install+set}" = set; then |
2386 | INSTALL=$ac_cv_path_install | |
2387 | else | |
8a165db0 BK |
2388 | # As a last resort, use the slow shell script. Don't cache a |
2389 | # value for INSTALL within a source directory, because that will | |
ff66d28f | 2390 | # break other packages using the cache if that directory is |
8a165db0 | 2391 | # removed, or if the value is a relative name. |
ff66d28f PE |
2392 | INSTALL=$ac_install_sh |
2393 | fi | |
2394 | fi | |
8a165db0 BK |
2395 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
2396 | echo "${ECHO_T}$INSTALL" >&6; } | |
b2dad0e3 | 2397 | |
ff66d28f PE |
2398 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
2399 | # It thinks the first close brace ends the variable substitution. | |
2400 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
b2dad0e3 | 2401 | |
ff66d28f | 2402 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
b2dad0e3 | 2403 | |
ff66d28f | 2404 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
b2dad0e3 | 2405 | |
8a165db0 BK |
2406 | { echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
2407 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } | |
ff66d28f PE |
2408 | # Just in case |
2409 | sleep 1 | |
2410 | echo timestamp > conftest.file | |
2411 | # Do `set' in a subshell so we don't clobber the current shell's | |
2412 | # arguments. Must try -L first in case configure is actually a | |
2413 | # symlink; some systems play weird games with the mod time of symlinks | |
2414 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2415 | # directory). | |
2416 | if ( | |
2417 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` | |
2418 | if test "$*" = "X"; then | |
2419 | # -L didn't work. | |
2420 | set X `ls -t $srcdir/configure conftest.file` | |
2421 | fi | |
2422 | rm -f conftest.file | |
2423 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2424 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
b2dad0e3 | 2425 | |
ff66d28f PE |
2426 | # If neither matched, then we have a broken ls. This can happen |
2427 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2428 | # broken ls alias from the environment. This has actually | |
2429 | # happened. Such a system could not be considered "sane". | |
2430 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken | |
2431 | alias in your environment" >&5 | |
2432 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
2433 | alias in your environment" >&2;} | |
2434 | { (exit 1); exit 1; }; } | |
2435 | fi | |
b2dad0e3 | 2436 | |
ff66d28f PE |
2437 | test "$2" = conftest.file |
2438 | ) | |
2439 | then | |
2440 | # Ok. | |
2441 | : | |
33590f13 | 2442 | else |
ff66d28f PE |
2443 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
2444 | Check your system clock" >&5 | |
2445 | echo "$as_me: error: newly created file is older than distributed files! | |
2446 | Check your system clock" >&2;} | |
2447 | { (exit 1); exit 1; }; } | |
33590f13 | 2448 | fi |
8a165db0 BK |
2449 | { echo "$as_me:$LINENO: result: yes" >&5 |
2450 | echo "${ECHO_T}yes" >&6; } | |
ff66d28f | 2451 | test "$program_prefix" != NONE && |
8a165db0 | 2452 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
ff66d28f PE |
2453 | # Use a double $ so make ignores it. |
2454 | test "$program_suffix" != NONE && | |
8a165db0 | 2455 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
ff66d28f PE |
2456 | # Double any \ or $. echo might interpret backslashes. |
2457 | # By default was `s,x,x', remove it if useless. | |
2458 | cat <<\_ACEOF >conftest.sed | |
2459 | s/[\\$]/&&/g;s/;s,x,x,$// | |
2460 | _ACEOF | |
2461 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
8a165db0 | 2462 | rm -f conftest.sed |
b2dad0e3 | 2463 | |
ff66d28f PE |
2464 | # expand $ac_aux_dir to an absolute path |
2465 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
33590f13 | 2466 | |
ff66d28f PE |
2467 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
2468 | # Use eval to expand $SHELL | |
2469 | if eval "$MISSING --run true"; then | |
2470 | am_missing_run="$MISSING --run " | |
b2dad0e3 | 2471 | else |
ff66d28f PE |
2472 | am_missing_run= |
2473 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 | |
2474 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
33590f13 BK |
2475 | fi |
2476 | ||
8a165db0 BK |
2477 | { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 |
2478 | echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } | |
2479 | if test -z "$MKDIR_P"; then | |
2480 | if test "${ac_cv_path_mkdir+set}" = set; then | |
2481 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2482 | else | |
2483 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2484 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
2485 | do | |
2486 | IFS=$as_save_IFS | |
2487 | test -z "$as_dir" && as_dir=. | |
2488 | for ac_prog in mkdir gmkdir; do | |
2489 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2490 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
2491 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
2492 | 'mkdir (GNU coreutils) '* | \ | |
2493 | 'mkdir (coreutils) '* | \ | |
2494 | 'mkdir (fileutils) '4.1*) | |
2495 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
2496 | break 3;; | |
2497 | esac | |
2498 | done | |
2499 | done | |
2500 | done | |
2501 | IFS=$as_save_IFS | |
2502 | ||
2503 | fi | |
2504 | ||
2505 | if test "${ac_cv_path_mkdir+set}" = set; then | |
2506 | MKDIR_P="$ac_cv_path_mkdir -p" | |
7eaf73d7 | 2507 | else |
8a165db0 BK |
2508 | # As a last resort, use the slow shell script. Don't cache a |
2509 | # value for MKDIR_P within a source directory, because that will | |
2510 | # break other packages using the cache if that directory is | |
2511 | # removed, or if the value is a relative name. | |
2512 | test -d ./--version && rmdir ./--version | |
2513 | MKDIR_P="$ac_install_sh -d" | |
7eaf73d7 KC |
2514 | fi |
2515 | fi | |
8a165db0 BK |
2516 | { echo "$as_me:$LINENO: result: $MKDIR_P" >&5 |
2517 | echo "${ECHO_T}$MKDIR_P" >&6; } | |
2518 | ||
2519 | mkdir_p="$MKDIR_P" | |
2520 | case $mkdir_p in | |
2521 | [\\/$]* | ?:[\\/]*) ;; | |
2522 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
2523 | esac | |
7eaf73d7 | 2524 | |
ff66d28f | 2525 | for ac_prog in gawk mawk nawk awk |
c98b201b | 2526 | do |
ff66d28f | 2527 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
c98b201b | 2528 | set dummy $ac_prog; ac_word=$2 |
8a165db0 BK |
2529 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2530 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ff66d28f PE |
2531 | if test "${ac_cv_prog_AWK+set}" = set; then |
2532 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c98b201b PE |
2533 | else |
2534 | if test -n "$AWK"; then | |
2535 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2536 | else | |
ff66d28f PE |
2537 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2538 | for as_dir in $PATH | |
2539 | do | |
2540 | IFS=$as_save_IFS | |
2541 | test -z "$as_dir" && as_dir=. | |
2542 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8a165db0 | 2543 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ff66d28f PE |
2544 | ac_cv_prog_AWK="$ac_prog" |
2545 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2546 | break 2 | |
2547 | fi | |
2548 | done | |
2549 | done | |
8a165db0 | 2550 | IFS=$as_save_IFS |
ff66d28f | 2551 | |
c98b201b PE |
2552 | fi |
2553 | fi | |
ff66d28f | 2554 | AWK=$ac_cv_prog_AWK |
c98b201b | 2555 | if test -n "$AWK"; then |
8a165db0 BK |
2556 | { echo "$as_me:$LINENO: result: $AWK" >&5 |
2557 | echo "${ECHO_T}$AWK" >&6; } | |
c98b201b | 2558 | else |
8a165db0 BK |
2559 | { echo "$as_me:$LINENO: result: no" >&5 |
2560 | echo "${ECHO_T}no" >&6; } | |
c98b201b PE |
2561 | fi |
2562 | ||
8a165db0 | 2563 | |
ff66d28f | 2564 | test -n "$AWK" && break |
c98b201b PE |
2565 | done |
2566 | ||
8a165db0 BK |
2567 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
2568 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } | |
2569 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
2570 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then | |
ff66d28f PE |
2571 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2572 | else | |
2573 | cat >conftest.make <<\_ACEOF | |
8a165db0 | 2574 | SHELL = /bin/sh |
ff66d28f | 2575 | all: |
8a165db0 | 2576 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
ff66d28f PE |
2577 | _ACEOF |
2578 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
8a165db0 BK |
2579 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
2580 | *@@@%%%=?*=@@@%%%*) | |
2581 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2582 | *) | |
2583 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
2584 | esac | |
ff66d28f | 2585 | rm -f conftest.make |
33590f13 | 2586 | fi |
8a165db0 BK |
2587 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
2588 | { echo "$as_me:$LINENO: result: yes" >&5 | |
2589 | echo "${ECHO_T}yes" >&6; } | |
ff66d28f | 2590 | SET_MAKE= |
33590f13 | 2591 | else |
8a165db0 BK |
2592 | { echo "$as_me:$LINENO: result: no" >&5 |
2593 | echo "${ECHO_T}no" >&6; } | |
ff66d28f | 2594 | SET_MAKE="MAKE=${MAKE-make}" |
33590f13 BK |
2595 | fi |
2596 | ||
ff66d28f PE |
2597 | rm -rf .tst 2>/dev/null |
2598 | mkdir .tst 2>/dev/null | |
2599 | if test -d .tst; then | |
2600 | am__leading_dot=. | |
2601 | else | |
2602 | am__leading_dot=_ | |
2603 | fi | |
2604 | rmdir .tst 2>/dev/null | |
33590f13 | 2605 | |
8a165db0 BK |
2606 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
2607 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
2608 | # is not polluted with repeated "-I." | |
2609 | am__isrc=' -I$(srcdir)' | |
2610 | # test to see if srcdir already configured | |
2611 | if test -f $srcdir/config.status; then | |
2612 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 | |
ff66d28f PE |
2613 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
2614 | { (exit 1); exit 1; }; } | |
8a165db0 | 2615 | fi |
33590f13 BK |
2616 | fi |
2617 | ||
ff66d28f PE |
2618 | # test whether we have cygpath |
2619 | if test -z "$CYGPATH_W"; then | |
2620 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
2621 | CYGPATH_W='cygpath -w' | |
2622 | else | |
2623 | CYGPATH_W=echo | |
2624 | fi | |
33590f13 BK |
2625 | fi |
2626 | ||
2627 | ||
ff66d28f | 2628 | # Define the identity of the package. |
fbe057bb | 2629 | PACKAGE='libstdc++' |
ff66d28f | 2630 | VERSION='version-unused' |
b731048b BK |
2631 | |
2632 | ||
ff66d28f | 2633 | # Some tools Automake needs. |
33590f13 | 2634 | |
ff66d28f | 2635 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
33590f13 | 2636 | |
33590f13 | 2637 | |
ff66d28f | 2638 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
33590f13 | 2639 | |
ff66d28f PE |
2640 | |
2641 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
2642 | ||
2643 | ||
2644 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
2645 | ||
2646 | ||
2647 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
2648 | ||
8a165db0 | 2649 | install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} |
ff66d28f PE |
2650 | |
2651 | # Installed binaries are usually stripped using `strip' when the user | |
2652 | # run `make install-strip'. However `strip' might not be the right | |
2653 | # tool to use in cross-compilation environments, therefore Automake | |
2654 | # will honor the `STRIP' environment variable to overrule this program. | |
2655 | if test "$cross_compiling" != no; then | |
2656 | if test -n "$ac_tool_prefix"; then | |
2657 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2658 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
8a165db0 BK |
2659 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2660 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ff66d28f PE |
2661 | if test "${ac_cv_prog_STRIP+set}" = set; then |
2662 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33590f13 | 2663 | else |
ff66d28f PE |
2664 | if test -n "$STRIP"; then |
2665 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
33590f13 | 2666 | else |
ff66d28f PE |
2667 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2668 | for as_dir in $PATH | |
2669 | do | |
2670 | IFS=$as_save_IFS | |
2671 | test -z "$as_dir" && as_dir=. | |
2672 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8a165db0 | 2673 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ff66d28f PE |
2674 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
2675 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2676 | break 2 | |
2677 | fi | |
2678 | done | |
2679 | done | |
8a165db0 | 2680 | IFS=$as_save_IFS |
ff66d28f | 2681 | |
33590f13 BK |
2682 | fi |
2683 | fi | |
ff66d28f PE |
2684 | STRIP=$ac_cv_prog_STRIP |
2685 | if test -n "$STRIP"; then | |
8a165db0 BK |
2686 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
2687 | echo "${ECHO_T}$STRIP" >&6; } | |
33590f13 | 2688 | else |
8a165db0 BK |
2689 | { echo "$as_me:$LINENO: result: no" >&5 |
2690 | echo "${ECHO_T}no" >&6; } | |
33590f13 BK |
2691 | fi |
2692 | ||
8a165db0 | 2693 | |
ff66d28f PE |
2694 | fi |
2695 | if test -z "$ac_cv_prog_STRIP"; then | |
2696 | ac_ct_STRIP=$STRIP | |
2697 | # Extract the first word of "strip", so it can be a program name with args. | |
2698 | set dummy strip; ac_word=$2 | |
8a165db0 BK |
2699 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2700 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ff66d28f PE |
2701 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
2702 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33590f13 | 2703 | else |
ff66d28f PE |
2704 | if test -n "$ac_ct_STRIP"; then |
2705 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
33590f13 | 2706 | else |
ff66d28f PE |
2707 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2708 | for as_dir in $PATH | |
2709 | do | |
2710 | IFS=$as_save_IFS | |
2711 | test -z "$as_dir" && as_dir=. | |
2712 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8a165db0 | 2713 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ff66d28f PE |
2714 | ac_cv_prog_ac_ct_STRIP="strip" |
2715 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2716 | break 2 | |
b2dad0e3 | 2717 | fi |
ff66d28f PE |
2718 | done |
2719 | done | |
8a165db0 | 2720 | IFS=$as_save_IFS |
ff66d28f | 2721 | |
b2dad0e3 BK |
2722 | fi |
2723 | fi | |
ff66d28f PE |
2724 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
2725 | if test -n "$ac_ct_STRIP"; then | |
8a165db0 BK |
2726 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
2727 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } | |
b2dad0e3 | 2728 | else |
8a165db0 BK |
2729 | { echo "$as_me:$LINENO: result: no" >&5 |
2730 | echo "${ECHO_T}no" >&6; } | |
b2dad0e3 BK |
2731 | fi |
2732 | ||
8a165db0 BK |
2733 | if test "x$ac_ct_STRIP" = x; then |
2734 | STRIP=":" | |
2735 | else | |
2736 | case $cross_compiling:$ac_tool_warned in | |
2737 | yes:) | |
2738 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
2739 | whose name does not start with the host triplet. If you think this | |
2740 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
2741 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
2742 | whose name does not start with the host triplet. If you think this | |
2743 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2744 | ac_tool_warned=yes ;; | |
2745 | esac | |
2746 | STRIP=$ac_ct_STRIP | |
2747 | fi | |
b2dad0e3 | 2748 | else |
ff66d28f | 2749 | STRIP="$ac_cv_prog_STRIP" |
b2dad0e3 | 2750 | fi |
ff66d28f | 2751 | |
b2dad0e3 | 2752 | fi |
8a165db0 | 2753 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
b2dad0e3 | 2754 | |
ff66d28f PE |
2755 | # We need awk for the "check" target. The system "awk" is bad on |
2756 | # some platforms. | |
a60945f8 PC |
2757 | # Always define AMTAR for backward compatibility. |
2758 | ||
2759 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
2760 | ||
2761 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
2762 | ||
2763 | ||
b2dad0e3 | 2764 | |
b2dad0e3 | 2765 | |
b2dad0e3 | 2766 | |
ff66d28f | 2767 | |
3a24bf5d KC |
2768 | |
2769 | ||
2770 | ||
2771 | ||
ff66d28f PE |
2772 | # Runs configure.host, finds CC, CXX, and assorted other critical bits. Sets |
2773 | # up critical shell variables. | |
2774 | ||
464aea98 JM |
2775 | ac_ext=c |
2776 | ac_cpp='$CPP $CPPFLAGS' | |
2777 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2778 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2779 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8a165db0 BK |
2780 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
2781 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } | |
464aea98 JM |
2782 | # On Suns, sometimes $CPP names a directory. |
2783 | if test -n "$CPP" && test -d "$CPP"; then | |
2784 | CPP= | |
2785 | fi | |
2786 | if test -z "$CPP"; then | |
2787 | if test "${ac_cv_prog_CPP+set}" = set; then | |
2788 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2789 | else | |
2790 | # Double quotes because CPP needs to be expanded | |
2791 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
2792 | do | |
2793 | ac_preproc_ok=false | |
2794 | for ac_c_preproc_warn_flag in '' yes | |
2795 | do | |
2796 | # Use a header file that comes with gcc, so configuring glibc | |
2797 | # with a fresh cross-compiler works. | |
2798 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2799 | # <limits.h> exists even on freestanding compilers. | |
2800 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
2801 | # not just through cpp. "Syntax error" is here to catch this case. | |
2802 | cat >conftest.$ac_ext <<_ACEOF | |
2803 | /* confdefs.h. */ | |
2804 | _ACEOF | |
2805 | cat confdefs.h >>conftest.$ac_ext | |
2806 | cat >>conftest.$ac_ext <<_ACEOF | |
2807 | /* end confdefs.h. */ | |
2808 | #ifdef __STDC__ | |
2809 | # include <limits.h> | |
2810 | #else | |
2811 | # include <assert.h> | |
2812 | #endif | |
2813 | Syntax error | |
2814 | _ACEOF | |
8a165db0 BK |
2815 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
2816 | case "(($ac_try" in | |
2817 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2818 | *) ac_try_echo=$ac_try;; | |
2819 | esac | |
2820 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2821 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
464aea98 JM |
2822 | ac_status=$? |
2823 | grep -v '^ *+' conftest.er1 >conftest.err | |
2824 | rm -f conftest.er1 | |
2825 | cat conftest.err >&5 | |
2826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8a165db0 BK |
2827 | (exit $ac_status); } >/dev/null && { |
2828 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
2829 | test ! -s conftest.err | |
2830 | }; then | |
464aea98 JM |
2831 | : |
2832 | else | |
2833 | echo "$as_me: failed program was:" >&5 | |
2834 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2835 | ||
2836 | # Broken: fails on valid input. | |
2837 | continue | |
2838 | fi | |
8a165db0 | 2839 | |
464aea98 JM |
2840 | rm -f conftest.err conftest.$ac_ext |
2841 | ||
8a165db0 | 2842 | # OK, works on sane cases. Now check whether nonexistent headers |
464aea98 JM |
2843 | # can be detected and how. |
2844 | cat >conftest.$ac_ext <<_ACEOF | |
2845 | /* confdefs.h. */ | |
2846 | _ACEOF | |
2847 | cat confdefs.h >>conftest.$ac_ext | |
2848 | cat >>conftest.$ac_ext <<_ACEOF | |
2849 | /* end confdefs.h. */ | |
2850 | #include <ac_nonexistent.h> | |
2851 | _ACEOF | |
8a165db0 BK |
2852 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
2853 | case "(($ac_try" in | |
2854 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2855 | *) ac_try_echo=$ac_try;; | |
2856 | esac | |
2857 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2858 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
464aea98 JM |
2859 | ac_status=$? |
2860 | grep -v '^ *+' conftest.er1 >conftest.err | |
2861 | rm -f conftest.er1 | |
2862 | cat conftest.err >&5 | |
2863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8a165db0 BK |
2864 | (exit $ac_status); } >/dev/null && { |
2865 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
2866 | test ! -s conftest.err | |
2867 | }; then | |
464aea98 JM |
2868 | # Broken: success on invalid input. |
2869 | continue | |
2870 | else | |
2871 | echo "$as_me: failed program was:" >&5 | |
2872 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2873 | ||
2874 | # Passes both tests. | |
2875 | ac_preproc_ok=: | |
2876 | break | |
2877 | fi | |
8a165db0 | 2878 | |
464aea98 JM |
2879 | rm -f conftest.err conftest.$ac_ext |
2880 | ||
2881 | done | |
2882 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
2883 | rm -f conftest.err conftest.$ac_ext | |
2884 | if $ac_preproc_ok; then | |
2885 | break | |
2886 | fi | |
2887 | ||
2888 | done | |
2889 | ac_cv_prog_CPP=$CPP | |
2890 | ||
2891 | fi | |
2892 | CPP=$ac_cv_prog_CPP | |
2893 | else | |
2894 | ac_cv_prog_CPP=$CPP | |
2895 | fi | |
8a165db0 BK |
2896 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
2897 | echo "${ECHO_T}$CPP" >&6; } | |
464aea98 JM |
2898 | ac_preproc_ok=false |
2899 | for ac_c_preproc_warn_flag in '' yes | |
2900 | do | |
2901 | # Use a header file that comes with gcc, so configuring glibc | |
2902 | # with a fresh cross-compiler works. | |
2903 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2904 | # <limits.h> exists even on freestanding compilers. | |
2905 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
2906 | # not just through cpp. "Syntax error" is here to catch this case. | |
2907 | cat >conftest.$ac_ext <<_ACEOF | |
2908 | /* confdefs.h. */ | |
2909 | _ACEOF | |
2910 | cat confdefs.h >>conftest.$ac_ext | |
2911 | cat >>conftest.$ac_ext <<_ACEOF | |
2912 | /* end confdefs.h. */ | |
2913 | #ifdef __STDC__ | |
2914 | # include <limits.h> | |
2915 | #else | |
2916 | # include <assert.h> | |
2917 | #endif | |
2918 | Syntax error | |
2919 | _ACEOF | |
8a165db0 BK |
2920 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
2921 | case "(($ac_try" in | |
2922 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2923 | *) ac_try_echo=$ac_try;; | |
2924 | esac | |
2925 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2926 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
464aea98 JM |
2927 | ac_status=$? |
2928 | grep -v '^ *+' conftest.er1 >conftest.err | |
2929 | rm -f conftest.er1 | |
2930 | cat conftest.err >&5 | |
2931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8a165db0 BK |
2932 | (exit $ac_status); } >/dev/null && { |
2933 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
2934 | test ! -s conftest.err | |
2935 | }; then | |
464aea98 JM |
2936 | : |
2937 | else | |
2938 | echo "$as_me: failed program was:" >&5 | |
2939 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2940 | ||
2941 | # Broken: fails on valid input. | |
2942 | continue | |
2943 | fi | |
8a165db0 | 2944 | |
464aea98 JM |
2945 | rm -f conftest.err conftest.$ac_ext |
2946 | ||
8a165db0 | 2947 | # OK, works on sane cases. Now check whether nonexistent headers |
464aea98 JM |
2948 | # can be detected and how. |
2949 | cat >conftest.$ac_ext <<_ACEOF | |
2950 | /* confdefs.h. */ | |
2951 | _ACEOF | |
2952 | cat confdefs.h >>conftest.$ac_ext | |
2953 | cat >>conftest.$ac_ext <<_ACEOF | |
2954 | /* end confdefs.h. */ | |
2955 | #include <ac_nonexistent.h> | |
2956 | _ACEOF | |
8a165db0 BK |
2957 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
2958 | case "(($ac_try" in | |
2959 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2960 | *) ac_try_echo=$ac_try;; | |
2961 | esac | |
2962 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2963 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
464aea98 JM |
2964 | ac_status=$? |
2965 | grep -v '^ *+' conftest.er1 >conftest.err | |
2966 | rm -f conftest.er1 | |
2967 | cat conftest.err >&5 | |
2968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8a165db0 BK |
2969 | (exit $ac_status); } >/dev/null && { |
2970 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
2971 | test ! -s conftest.err | |
2972 | }; then | |
464aea98 JM |
2973 | # Broken: success on invalid input. |
2974 | continue | |
2975 | else | |
2976 | echo "$as_me: failed program was:" >&5 | |
2977 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2978 | ||
2979 | # Passes both tests. | |
2980 | ac_preproc_ok=: | |
2981 | break | |
2982 | fi | |
8a165db0 | 2983 | |
464aea98 JM |
2984 | rm -f conftest.err conftest.$ac_ext |
2985 | ||
2986 | done | |
2987 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
2988 | rm -f conftest.err conftest.$ac_ext | |
2989 | if $ac_preproc_ok; then | |
2990 | : | |
2991 | else | |
2992 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
2993 | See \`config.log' for more details." >&5 | |
2994 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
2995 | See \`config.log' for more details." >&2;} | |
2996 | { (exit 1); exit 1; }; } | |
2997 | fi | |
2998 | ||
2999 | ac_ext=c | |
3000 | ac_cpp='$CPP $CPPFLAGS' | |
3001 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3002 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3003 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3004 | ||
3005 | ||
8a165db0 BK |
3006 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
3007 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } | |
3008 | if test "${ac_cv_path_GREP+set}" = set; then | |
3009 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3010 | else | |
3011 | # Extract the first word of "grep ggrep" to use in msg output | |
3012 | if test -z "$GREP"; then | |
3013 | set dummy grep ggrep; ac_prog_name=$2 | |
3014 | if test "${ac_cv_path_GREP+set}" = set; then | |
3015 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3016 | else | |
3017 | ac_path_GREP_found=false | |
3018 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3019 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3020 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3021 | do | |
3022 | IFS=$as_save_IFS | |
3023 | test -z "$as_dir" && as_dir=. | |
3024 | for ac_prog in grep ggrep; do | |
3025 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3026 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3027 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3028 | # Check for GNU ac_path_GREP and select it if it is found. | |
3029 | # Check for GNU $ac_path_GREP | |
3030 | case `"$ac_path_GREP" --version 2>&1` in | |
3031 | *GNU*) | |
3032 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3033 | *) | |
3034 | ac_count=0 | |
3035 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
3036 | while : | |
3037 | do | |
3038 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3039 | mv "conftest.tmp" "conftest.in" | |
3040 | cp "conftest.in" "conftest.nl" | |
3041 | echo 'GREP' >> "conftest.nl" | |
3042 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3043 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3044 | ac_count=`expr $ac_count + 1` | |
3045 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3046 | # Best one so far, save it but keep looking for a better one | |
3047 | ac_cv_path_GREP="$ac_path_GREP" | |
3048 | ac_path_GREP_max=$ac_count | |
3049 | fi | |
3050 | # 10*(2^10) chars as input seems more than enough | |
3051 | test $ac_count -gt 10 && break | |
3052 | done | |
3053 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3054 | esac | |
3055 | ||
3056 | ||
3057 | $ac_path_GREP_found && break 3 | |
3058 | done | |
3059 | done | |
3060 | ||
3061 | done | |
3062 | IFS=$as_save_IFS | |
3063 | ||
3064 | ||
3065 | fi | |
3066 | ||
3067 | GREP="$ac_cv_path_GREP" | |
3068 | if test -z "$GREP"; then | |
3069 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3070 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
3071 | { (exit 1); exit 1; }; } | |
3072 | fi | |
3073 | ||
3074 | else | |
3075 | ac_cv_path_GREP=$GREP | |
3076 | fi | |
3077 | ||
3078 | ||
3079 | fi | |
3080 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 | |
3081 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } | |
3082 | GREP="$ac_cv_path_GREP" | |
3083 | ||
3084 | ||
3085 | { echo "$as_me:$LINENO: checking for egrep" >&5 | |
3086 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } | |
3087 | if test "${ac_cv_path_EGREP+set}" = set; then | |
3088 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3089 | else | |
3090 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
3091 | then ac_cv_path_EGREP="$GREP -E" | |
3092 | else | |
3093 | # Extract the first word of "egrep" to use in msg output | |
3094 | if test -z "$EGREP"; then | |
3095 | set dummy egrep; ac_prog_name=$2 | |
3096 | if test "${ac_cv_path_EGREP+set}" = set; then | |
464aea98 JM |
3097 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3098 | else | |
8a165db0 BK |
3099 | ac_path_EGREP_found=false |
3100 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3101 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3102 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3103 | do | |
3104 | IFS=$as_save_IFS | |
3105 | test -z "$as_dir" && as_dir=. | |
3106 | for ac_prog in egrep; do | |
3107 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3108 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3109 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3110 | # Check for GNU ac_path_EGREP and select it if it is found. | |
3111 | # Check for GNU $ac_path_EGREP | |
3112 | case `"$ac_path_EGREP" --version 2>&1` in | |
3113 | *GNU*) | |
3114 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3115 | *) | |
3116 | ac_count=0 | |
3117 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
3118 | while : | |
3119 | do | |
3120 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3121 | mv "conftest.tmp" "conftest.in" | |
3122 | cp "conftest.in" "conftest.nl" | |
3123 | echo 'EGREP' >> "conftest.nl" | |
3124 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3125 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3126 | ac_count=`expr $ac_count + 1` | |
3127 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3128 | # Best one so far, save it but keep looking for a better one | |
3129 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3130 | ac_path_EGREP_max=$ac_count | |
464aea98 | 3131 | fi |
8a165db0 BK |
3132 | # 10*(2^10) chars as input seems more than enough |
3133 | test $ac_count -gt 10 && break | |
3134 | done | |
3135 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3136 | esac | |
3137 | ||
3138 | ||
3139 | $ac_path_EGREP_found && break 3 | |
3140 | done | |
3141 | done | |
3142 | ||
3143 | done | |
3144 | IFS=$as_save_IFS | |
3145 | ||
3146 | ||
3147 | fi | |
3148 | ||
3149 | EGREP="$ac_cv_path_EGREP" | |
3150 | if test -z "$EGREP"; then | |
3151 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3152 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
3153 | { (exit 1); exit 1; }; } | |
3154 | fi | |
3155 | ||
3156 | else | |
3157 | ac_cv_path_EGREP=$EGREP | |
3158 | fi | |
3159 | ||
3160 | ||
3161 | fi | |
464aea98 | 3162 | fi |
8a165db0 BK |
3163 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
3164 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } | |
3165 | EGREP="$ac_cv_path_EGREP" | |
464aea98 JM |
3166 | |
3167 | ||
3168 | ||
82ba99d5 PE |
3169 | # Keep these sync'd with the list in Makefile.am. The first provides an |
3170 | # expandable list at autoconf time; the second provides an expandable list | |
3171 | # (i.e., shell variable) at configure time. | |
3172 | ||
4312e020 | 3173 | SUBDIRS='include libmath libsupc++ src doc po testsuite' |
82ba99d5 | 3174 | |
ff66d28f PE |
3175 | # These need to be absolute paths, yet at the same time need to |
3176 | # canonicalize only relative paths, because then amd will not unmount | |
3177 | # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd. | |
3178 | glibcxx_builddir=`${PWDCMD-pwd}` | |
3179 | case $srcdir in | |
3180 | \\/$* | ?:\\/*) glibcxx_srcdir=${srcdir} ;; | |
3181 | *) glibcxx_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;; | |
3182 | esac | |
3183 | toplevel_srcdir=${glibcxx_srcdir}/.. | |
3184 | ||
3185 | ||
3186 | ||
3187 | ||
3188 | # We use these options to decide which functions to include. They are | |
3189 | # set from the top level. | |
3190 | ||
8a165db0 | 3191 | # Check whether --with-target-subdir was given. |
ff66d28f | 3192 | if test "${with_target_subdir+set}" = set; then |
8a165db0 BK |
3193 | withval=$with_target_subdir; |
3194 | fi | |
ff66d28f | 3195 | |
ff66d28f PE |
3196 | |
3197 | ||
8a165db0 | 3198 | # Check whether --with-cross-host was given. |
ff66d28f | 3199 | if test "${with_cross_host+set}" = set; then |
8a165db0 BK |
3200 | withval=$with_cross_host; |
3201 | fi | |
ff66d28f | 3202 | |
ff66d28f PE |
3203 | |
3204 | ||
8a165db0 | 3205 | # Check whether --with-newlib was given. |
ff66d28f | 3206 | if test "${with_newlib+set}" = set; then |
8a165db0 BK |
3207 | withval=$with_newlib; |
3208 | fi | |
ff66d28f | 3209 | |
ff66d28f | 3210 | |
f6dda651 PE |
3211 | # We're almost certainly being configured before anything else which uses |
3212 | # C++, so all of our AC_PROG_* discoveries will be cached. It's vital that | |
3213 | # we not cache the value of CXX that we "discover" here, because it's set | |
3214 | # to something unique for us and libjava. Other target libraries need to | |
3215 | # find CXX for themselves. We yank the rug out from under the normal AC_* | |
3216 | # process by sneakily renaming the cache variable. This also lets us debug | |
3217 | # the value of "our" CXX in postmortems. | |
3218 | # | |
3219 | # We must also force CXX to /not/ be a precious variable, otherwise the | |
3220 | # wrong (non-multilib-adjusted) value will be used in multilibs. This | |
3221 | # little trick also affects CPPFLAGS, CXXFLAGS, and LDFLAGS. And as a side | |
3222 | # effect, CXXFLAGS is no longer automagically subst'd, so we have to do | |
3223 | # that ourselves. Un-preciousing AC_PROG_CC also affects CC and CFLAGS. | |
3224 | # | |
3225 | # -fno-builtin must be present here so that a non-conflicting form of | |
3226 | # std::exit can be guessed by AC_PROG_CXX, and used in later tests. | |
3227 | ||
3228 | ||
3229 | ||
3230 | ||
3231 | save_CXXFLAGS="$CXXFLAGS" | |
3232 | CXXFLAGS="$CXXFLAGS -fno-builtin" | |
ff66d28f PE |
3233 | ac_ext=c |
3234 | ac_cpp='$CPP $CPPFLAGS' | |
3235 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3236 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3237 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3238 | if test -n "$ac_tool_prefix"; then | |
3239 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3240 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
8a165db0 BK |
3241 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3242 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ff66d28f PE |
3243 | if test "${ac_cv_prog_CC+set}" = set; then |
3244 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b2dad0e3 | 3245 | else |
ff66d28f PE |
3246 | if test -n "$CC"; then |
3247 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
b2dad0e3 | 3248 | else |
ff66d28f PE |
3249 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3250 | for as_dir in $PATH | |
3251 | do | |
3252 | IFS=$as_save_IFS | |
3253 | test -z "$as_dir" && as_dir=. | |
3254 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8a165db0 | 3255 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ff66d28f PE |
3256 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
3257 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3258 | break 2 | |
3259 | fi | |
3260 | done | |
3261 | done | |
8a165db0 | 3262 | IFS=$as_save_IFS |
ff66d28f | 3263 | |
b2dad0e3 BK |
3264 | fi |
3265 | fi | |
ff66d28f PE |
3266 | CC=$ac_cv_prog_CC |
3267 | if test -n "$CC"; then | |
8a165db0 BK |
3268 | { echo "$as_me:$LINENO: result: $CC" >&5 |
3269 | echo "${ECHO_T}$CC" >&6; } | |
b2dad0e3 | 3270 | else |
8a165db0 BK |
3271 | { echo "$as_me:$LINENO: result: no" >&5 |
3272 | echo "${ECHO_T}no" >&6; } | |
b2dad0e3 BK |
3273 | fi |
3274 | ||
8a165db0 | 3275 | |
ff66d28f PE |
3276 | fi |
3277 | if test -z "$ac_cv_prog_CC"; then | |
3278 | ac_ct_CC=$CC | |
3279 | # Extract the first word of "gcc", so it can be a program name with args. | |
3280 | set dummy gcc; ac_word=$2 | |
8a165db0 BK |
3281 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3282 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ff66d28f PE |
3283 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
3284 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b2dad0e3 | 3285 | else |
ff66d28f PE |
3286 | if test -n "$ac_ct_CC"; then |
3287 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
b2dad0e3 | 3288 | else |
ff66d28f PE |
3289 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3290 | for as_dir in $PATH | |
3291 | do | |
3292 | IFS=$as_save_IFS | |
3293 | test -z "$as_dir" && as_dir=. | |
3294 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8a165db0 | 3295 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ff66d28f PE |
3296 | ac_cv_prog_ac_ct_CC="gcc" |
3297 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3298 | break 2 | |
3299 | fi | |
3300 | done | |
3301 | done | |
8a165db0 | 3302 | IFS=$as_save_IFS |
ff66d28f | 3303 | |
b2dad0e3 BK |
3304 | fi |
3305 | fi | |
ff66d28f PE |
3306 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3307 | if test -n "$ac_ct_CC"; then | |
8a165db0 BK |
3308 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
3309 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
b2dad0e3 | 3310 | else |
8a165db0 BK |
3311 | { echo "$as_me:$LINENO: result: no" >&5 |
3312 | echo "${ECHO_T}no" >&6; } | |
b2dad0e3 | 3313 | fi |
b2dad0e3 | 3314 | |
8a165db0 BK |
3315 | if test "x$ac_ct_CC" = x; then |
3316 | CC="" | |
3317 | else | |
3318 | case $cross_compiling:$ac_tool_warned in | |
3319 | yes:) | |
3320 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
3321 | whose name does not start with the host triplet. If you think this | |
3322 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
3323 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
3324 | whose name does not start with the host triplet. If you think this | |
3325 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
3326 | ac_tool_warned=yes ;; | |
3327 | esac | |
3328 | CC=$ac_ct_CC | |
3329 | fi | |
ff66d28f PE |
3330 | else |
3331 | CC="$ac_cv_prog_CC" | |
b2dad0e3 BK |
3332 | fi |
3333 | ||
ff66d28f | 3334 | if test -z "$CC"; then |
8a165db0 BK |
3335 | if test -n "$ac_tool_prefix"; then |
3336 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
ff66d28f | 3337 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
8a165db0 BK |
3338 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3339 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ff66d28f PE |
3340 | if test "${ac_cv_prog_CC+set}" = set; then |
3341 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3342 | else | |
3343 | if test -n "$CC"; then | |
3344 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3345 | else | |
3346 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3347 | for as_dir in $PATH | |
3348 | do | |
3349 | IFS=$as_save_IFS | |
3350 | test -z "$as_dir" && as_dir=. | |
3351 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8a165db0 | 3352 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ff66d28f PE |
3353 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
3354 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3355 | break 2 | |
b2dad0e3 | 3356 | fi |
ff66d28f PE |
3357 | done |
3358 | done | |
8a165db0 | 3359 | IFS=$as_save_IFS |
93b85586 | 3360 | |
ff66d28f PE |
3361 | fi |
3362 | fi | |
3363 | CC=$ac_cv_prog_CC | |
3364 | if test -n "$CC"; then | |
8a165db0 BK |
3365 | { echo "$as_me:$LINENO: result: $CC" >&5 |
3366 | echo "${ECHO_T}$CC" >&6; } | |
e08c673e | 3367 | else |
8a165db0 BK |
3368 | { echo "$as_me:$LINENO: result: no" >&5 |
3369 | echo "${ECHO_T}no" >&6; } | |
e08c673e PC |
3370 | fi |
3371 | ||
e08c673e | 3372 | |
8a165db0 | 3373 | fi |
ff66d28f PE |
3374 | fi |
3375 | if test -z "$CC"; then | |
3376 | # Extract the first word of "cc", so it can be a program name with args. | |
3377 | set dummy cc; ac_word=$2 | |
8a165db0 BK |
3378 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3379 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ff66d28f PE |
3380 | if test "${ac_cv_prog_CC+set}" = set; then |
3381 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b2dad0e3 | 3382 | else |
ff66d28f PE |
3383 | if test -n "$CC"; then |
3384 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
b2dad0e3 | 3385 | else |
ff66d28f PE |
3386 | ac_prog_rejected=no |
3387 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3388 | for as_dir in $PATH | |
3389 | do | |
3390 | IFS=$as_save_IFS | |
3391 | test -z "$as_dir" && as_dir=. | |
3392 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8a165db0 | 3393 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ff66d28f PE |
3394 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3395 | ac_prog_rejected=yes | |
3396 | continue | |
3397 | fi | |
3398 | ac_cv_prog_CC="cc" | |
3399 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3400 | break 2 | |
3401 | fi | |
3402 | done | |
3403 | done | |
8a165db0 | 3404 | IFS=$as_save_IFS |
ff66d28f PE |
3405 | |
3406 | if test $ac_prog_rejected = yes; then | |
3407 | # We found a bogon in the path, so make sure we never use it. | |
3408 | set dummy $ac_cv_prog_CC | |
3409 | shift | |
3410 | if test $# != 0; then | |
3411 | # We chose a different compiler from the bogus one. | |
3412 | # However, it has the same basename, so the bogon will be chosen | |
3413 | # first if we set CC to just the basename; use the full file name. | |
3414 | shift | |
3415 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3416 | fi | |
b2dad0e3 BK |
3417 | fi |
3418 | fi | |
ff66d28f PE |
3419 | fi |
3420 | CC=$ac_cv_prog_CC | |
3421 | if test -n "$CC"; then | |
8a165db0 BK |
3422 | { echo "$as_me:$LINENO: result: $CC" >&5 |
3423 | echo "${ECHO_T}$CC" >&6; } | |
b2dad0e3 | 3424 | else |
8a165db0 BK |
3425 | { echo "$as_me:$LINENO: result: no" >&5 |
3426 | echo "${ECHO_T}no" >&6; } | |
b2dad0e3 BK |
3427 | fi |
3428 | ||
8a165db0 | 3429 | |
ff66d28f PE |
3430 | fi |
3431 | if test -z "$CC"; then | |
3432 | if test -n "$ac_tool_prefix"; then | |
8a165db0 | 3433 | for ac_prog in cl.exe |
ff66d28f PE |
3434 | do |
3435 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3436 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
8a165db0 BK |
3437 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3438 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ff66d28f PE |
3439 | if test "${ac_cv_prog_CC+set}" = set; then |
3440 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b2dad0e3 | 3441 | else |
ff66d28f PE |
3442 | if test -n "$CC"; then |
3443 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
b2dad0e3 | 3444 | else |
ff66d28f PE |
3445 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3446 | for as_dir in $PATH | |
3447 | do | |
3448 | IFS=$as_save_IFS | |
3449 | test -z "$as_dir" && as_dir=. | |
3450 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8a165db0 | 3451 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ff66d28f PE |
3452 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
3453 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3454 | break 2 | |
3455 | fi | |
3456 | done | |
3457 | done | |
8a165db0 | 3458 | IFS=$as_save_IFS |
ff66d28f | 3459 | |
b2dad0e3 BK |
3460 | fi |
3461 | fi | |
ff66d28f PE |
3462 | CC=$ac_cv_prog_CC |
3463 | if test -n "$CC"; then | |
8a165db0 BK |
3464 | { echo "$as_me:$LINENO: result: $CC" >&5 |
3465 | echo "${ECHO_T}$CC" >&6; } | |
b2dad0e3 | 3466 | else |
8a165db0 BK |
3467 | { echo "$as_me:$LINENO: result: no" >&5 |
3468 | echo "${ECHO_T}no" >&6; } | |
b2dad0e3 BK |
3469 | fi |
3470 | ||
8a165db0 | 3471 | |
ff66d28f PE |
3472 | test -n "$CC" && break |
3473 | done | |
3474 | fi | |
3475 | if test -z "$CC"; then | |
3476 | ac_ct_CC=$CC | |
8a165db0 | 3477 | for ac_prog in cl.exe |
ff66d28f PE |
3478 | do |
3479 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3480 | set dummy $ac_prog; ac_word=$2 | |
8a165db0 BK |
3481 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3482 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ff66d28f PE |
3483 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
3484 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b2dad0e3 | 3485 | else |
ff66d28f PE |
3486 | if test -n "$ac_ct_CC"; then |
3487 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
b2dad0e3 | 3488 | else |
ff66d28f PE |
3489 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3490 | for as_dir in $PATH | |
3491 | do | |
3492 | IFS=$as_save_IFS | |
3493 | test -z "$as_dir" && as_dir=. | |
3494 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8a165db0 | 3495 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ff66d28f PE |
3496 | ac_cv_prog_ac_ct_CC="$ac_prog" |
3497 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3498 | break 2 | |
3499 | fi | |
3500 | done | |
3501 | done | |
8a165db0 | 3502 | IFS=$as_save_IFS |
ff66d28f | 3503 | |
b2dad0e3 BK |
3504 | fi |
3505 | fi | |
ff66d28f PE |
3506 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3507 | if test -n "$ac_ct_CC"; then | |
8a165db0 BK |
3508 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
3509 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
b2dad0e3 | 3510 | else |
8a165db0 BK |
3511 | { echo "$as_me:$LINENO: result: no" >&5 |
3512 | echo "${ECHO_T}no" >&6; } | |
b2dad0e3 BK |
3513 | fi |
3514 | ||
8a165db0 | 3515 | |
ff66d28f PE |
3516 | test -n "$ac_ct_CC" && break |
3517 | done | |
b2dad0e3 | 3518 | |
8a165db0 BK |
3519 | if test "x$ac_ct_CC" = x; then |
3520 | CC="" | |
3521 | else | |
3522 | case $cross_compiling:$ac_tool_warned in | |
3523 | yes:) | |
3524 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
3525 | whose name does not start with the host triplet. If you think this | |
3526 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
3527 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
3528 | whose name does not start with the host triplet. If you think this | |
3529 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
3530 | ac_tool_warned=yes ;; | |
3531 | esac | |
3532 | CC=$ac_ct_CC | |
3533 | fi | |
ff66d28f PE |
3534 | fi |
3535 | ||
3536 | fi | |
3537 | ||
3538 | ||
3539 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
3540 | See \`config.log' for more details." >&5 | |
3541 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
3542 | See \`config.log' for more details." >&2;} | |
3543 | { (exit 1); exit 1; }; } | |
3544 | ||
3545 | # Provide some information about the compiler. | |
8a165db0 | 3546 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
ff66d28f | 3547 | ac_compiler=`set X $ac_compile; echo $2` |
8a165db0 BK |
3548 | { (ac_try="$ac_compiler --version >&5" |
3549 | case "(($ac_try" in | |
3550 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3551 | *) ac_try_echo=$ac_try;; | |
3552 | esac | |
3553 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3554 | (eval "$ac_compiler --version >&5") 2>&5 | |
ff66d28f PE |
3555 | ac_status=$? |
3556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3557 | (exit $ac_status); } | |
8a165db0 BK |
3558 | { (ac_try="$ac_compiler -v >&5" |
3559 | case "(($ac_try" in | |
3560 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3561 | *) ac_try_echo=$ac_try;; | |
3562 | esac | |
3563 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3564 | (eval "$ac_compiler -v >&5") 2>&5 | |
ff66d28f PE |
3565 | ac_status=$? |
3566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3567 | (exit $ac_status); } | |
8a165db0 BK |
3568 | { (ac_try="$ac_compiler -V >&5" |
3569 | case "(($ac_try" in | |
3570 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3571 | *) ac_try_echo=$ac_try;; | |
3572 | esac | |
3573 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3574 | (eval "$ac_compiler -V >&5") 2>&5 | |
ff66d28f PE |
3575 | ac_status=$? |
3576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3577 | (exit $ac_status); } | |
3578 | ||
3579 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
3580 | /* confdefs.h. */ |
3581 | _ACEOF | |
3582 | cat confdefs.h >>conftest.$ac_ext | |
3583 | cat >>conftest.$ac_ext <<_ACEOF | |
3584 | /* end confdefs.h. */ | |
3585 | ||
3a24bf5d KC |
3586 | int |
3587 | main () | |
3588 | { | |
3589 | ||
3590 | ; | |
3591 | return 0; | |
3592 | } | |
3593 | _ACEOF | |
3594 | # FIXME: Cleanup? | |
3595 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3596 | (eval $ac_link) 2>&5 | |
3597 | ac_status=$? | |
3598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3599 | (exit $ac_status); }; then | |
3600 | gcc_no_link=no | |
3601 | else | |
3602 | gcc_no_link=yes | |
3603 | fi | |
3604 | ||
3605 | if test x$gcc_no_link = xyes; then | |
3606 | # Setting cross_compile will disable run tests; it will | |
3607 | # also disable AC_CHECK_FILE but that's generally | |
3608 | # correct if we can't link. | |
3609 | cross_compiling=yes | |
3610 | EXEEXT= | |
3611 | else | |
3612 | cat >conftest.$ac_ext <<_ACEOF | |
3613 | /* confdefs.h. */ | |
3614 | _ACEOF | |
3615 | cat confdefs.h >>conftest.$ac_ext | |
3616 | cat >>conftest.$ac_ext <<_ACEOF | |
3617 | /* end confdefs.h. */ | |
3618 | ||
ff66d28f PE |
3619 | int |
3620 | main () | |
3621 | { | |
3622 | ||
3623 | ; | |
3624 | return 0; | |
3625 | } | |
3626 | _ACEOF | |
3627 | ac_clean_files_save=$ac_clean_files | |
3628 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
3629 | # Try to create an executable without -o first, disregard a.out. | |
3630 | # It will help us diagnose broken compilers, and finding out an intuition | |
3631 | # of exeext. | |
8a165db0 BK |
3632 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
3633 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } | |
ff66d28f | 3634 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
8a165db0 BK |
3635 | # |
3636 | # List of possible output files, starting from the most likely. | |
3637 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) | |
3638 | # only as a last resort. b.out is created by i960 compilers. | |
3639 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' | |
3640 | # | |
3641 | # The IRIX 6 linker writes into existing files which may not be | |
3642 | # executable, retaining their permissions. Remove them first so a | |
3643 | # subsequent execution test works. | |
3644 | ac_rmfiles= | |
3645 | for ac_file in $ac_files | |
3646 | do | |
3647 | case $ac_file in | |
3648 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | |
3649 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3650 | esac | |
3651 | done | |
3652 | rm -f $ac_rmfiles | |
3653 | ||
3654 | if { (ac_try="$ac_link_default" | |
3655 | case "(($ac_try" in | |
3656 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3657 | *) ac_try_echo=$ac_try;; | |
3658 | esac | |
3659 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3660 | (eval "$ac_link_default") 2>&5 | |
ff66d28f PE |
3661 | ac_status=$? |
3662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3663 | (exit $ac_status); }; then | |
8a165db0 BK |
3664 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
3665 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3666 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3667 | # so that the user can short-circuit this test for compilers unknown to | |
3668 | # Autoconf. | |
3669 | for ac_file in $ac_files '' | |
ff66d28f PE |
3670 | do |
3671 | test -f "$ac_file" || continue | |
3672 | case $ac_file in | |
8a165db0 | 3673 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
ec2075e9 | 3674 | ;; |
ff66d28f | 3675 | [ab].out ) |
ec2075e9 BK |
3676 | # We found the default executable, but exeext='' is most |
3677 | # certainly right. | |
3678 | break;; | |
ff66d28f | 3679 | *.* ) |
8a165db0 BK |
3680 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
3681 | then :; else | |
3682 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3683 | fi | |
3684 | # We set ac_cv_exeext here because the later test for it is not | |
3685 | # safe: cross compilers may not add the suffix if given an `-o' | |
3686 | # argument, so we may need to know it at that point already. | |
3687 | # Even if this section looks crufty: it has the advantage of | |
3688 | # actually working. | |
ec2075e9 | 3689 | break;; |
ff66d28f | 3690 | * ) |
ec2075e9 | 3691 | break;; |
ff66d28f PE |
3692 | esac |
3693 | done | |
8a165db0 BK |
3694 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
3695 | ||
b2dad0e3 | 3696 | else |
8a165db0 BK |
3697 | ac_file='' |
3698 | fi | |
3699 | ||
3700 | { echo "$as_me:$LINENO: result: $ac_file" >&5 | |
3701 | echo "${ECHO_T}$ac_file" >&6; } | |
3702 | if test -z "$ac_file"; then | |
ff66d28f PE |
3703 | echo "$as_me: failed program was:" >&5 |
3704 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3705 | ||
3706 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
3707 | See \`config.log' for more details." >&5 | |
3708 | echo "$as_me: error: C compiler cannot create executables | |
3709 | See \`config.log' for more details." >&2;} | |
3710 | { (exit 77); exit 77; }; } | |
3711 | fi | |
3712 | ||
3713 | ac_exeext=$ac_cv_exeext | |
ff66d28f | 3714 | |
8a165db0 | 3715 | # Check that the compiler produces executables we can run. If not, either |
ff66d28f | 3716 | # the compiler is broken, or we cross compile. |
8a165db0 BK |
3717 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
3718 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } | |
ff66d28f PE |
3719 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
3720 | # If not cross compiling, check that we can run a simple program. | |
3721 | if test "$cross_compiling" != yes; then | |
3722 | if { ac_try='./$ac_file' | |
8a165db0 BK |
3723 | { (case "(($ac_try" in |
3724 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3725 | *) ac_try_echo=$ac_try;; | |
3726 | esac | |
3727 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3728 | (eval "$ac_try") 2>&5 | |
ff66d28f PE |
3729 | ac_status=$? |
3730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3731 | (exit $ac_status); }; }; then | |
3732 | cross_compiling=no | |
3733 | else | |
3734 | if test "$cross_compiling" = maybe; then | |
3735 | cross_compiling=yes | |
3736 | else | |
3737 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
3738 | If you meant to cross compile, use \`--host'. | |
3739 | See \`config.log' for more details." >&5 | |
3740 | echo "$as_me: error: cannot run C compiled programs. | |
3741 | If you meant to cross compile, use \`--host'. | |
3742 | See \`config.log' for more details." >&2;} | |
3743 | { (exit 1); exit 1; }; } | |
b2dad0e3 | 3744 | fi |
ff66d28f | 3745 | fi |
b2dad0e3 | 3746 | fi |
8a165db0 BK |
3747 | { echo "$as_me:$LINENO: result: yes" >&5 |
3748 | echo "${ECHO_T}yes" >&6; } | |
ff66d28f PE |
3749 | |
3750 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
3751 | ac_clean_files=$ac_clean_files_save | |
8a165db0 | 3752 | # Check that the compiler produces executables we can run. If not, either |
ff66d28f | 3753 | # the compiler is broken, or we cross compile. |
8a165db0 BK |
3754 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
3755 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } | |
3756 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
3757 | echo "${ECHO_T}$cross_compiling" >&6; } | |
3758 | ||
3759 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
3760 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } | |
3761 | if { (ac_try="$ac_link" | |
3762 | case "(($ac_try" in | |
3763 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3764 | *) ac_try_echo=$ac_try;; | |
3765 | esac | |
3766 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3767 | (eval "$ac_link") 2>&5 | |
ff66d28f PE |
3768 | ac_status=$? |
3769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3770 | (exit $ac_status); }; then | |
3771 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3772 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3773 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3774 | # `rm'. | |
3775 | for ac_file in conftest.exe conftest conftest.*; do | |
3776 | test -f "$ac_file" || continue | |
3777 | case $ac_file in | |
8a165db0 | 3778 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
ff66d28f | 3779 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
ec2075e9 | 3780 | break;; |
ff66d28f PE |
3781 | * ) break;; |
3782 | esac | |
3783 | done | |
b2dad0e3 | 3784 | else |
ff66d28f PE |
3785 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
3786 | See \`config.log' for more details." >&5 | |
3787 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
3788 | See \`config.log' for more details." >&2;} | |
3789 | { (exit 1); exit 1; }; } | |
b2dad0e3 BK |
3790 | fi |
3791 | ||
ff66d28f | 3792 | rm -f conftest$ac_cv_exeext |
8a165db0 BK |
3793 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
3794 | echo "${ECHO_T}$ac_cv_exeext" >&6; } | |
ff66d28f PE |
3795 | |
3796 | rm -f conftest.$ac_ext | |
3797 | EXEEXT=$ac_cv_exeext | |
3798 | ac_exeext=$EXEEXT | |
3a24bf5d | 3799 | fi |
8a165db0 BK |
3800 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
3801 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } | |
ff66d28f PE |
3802 | if test "${ac_cv_objext+set}" = set; then |
3803 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3804 | else | |
3805 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
3806 | /* confdefs.h. */ |
3807 | _ACEOF | |
3808 | cat confdefs.h >>conftest.$ac_ext | |
3809 | cat >>conftest.$ac_ext <<_ACEOF | |
3810 | /* end confdefs.h. */ | |
3811 | ||
3812 | int | |
3813 | main () | |
3814 | { | |
3815 | ||
3816 | ; | |
3817 | return 0; | |
3818 | } | |
3819 | _ACEOF | |
3820 | rm -f conftest.o conftest.obj | |
8a165db0 BK |
3821 | if { (ac_try="$ac_compile" |
3822 | case "(($ac_try" in | |
3823 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3824 | *) ac_try_echo=$ac_try;; | |
3825 | esac | |
3826 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3827 | (eval "$ac_compile") 2>&5 | |
ff66d28f PE |
3828 | ac_status=$? |
3829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3830 | (exit $ac_status); }; then | |
8a165db0 BK |
3831 | for ac_file in conftest.o conftest.obj conftest.*; do |
3832 | test -f "$ac_file" || continue; | |
ff66d28f | 3833 | case $ac_file in |
8a165db0 | 3834 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
ff66d28f PE |
3835 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3836 | break;; | |
3837 | esac | |
3838 | done | |
b2dad0e3 | 3839 | else |
ff66d28f PE |
3840 | echo "$as_me: failed program was:" >&5 |
3841 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3842 | ||
3843 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
3844 | See \`config.log' for more details." >&5 | |
3845 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
3846 | See \`config.log' for more details." >&2;} | |
3847 | { (exit 1); exit 1; }; } | |
46840bcd | 3848 | fi |
ff66d28f PE |
3849 | |
3850 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
46840bcd | 3851 | fi |
8a165db0 BK |
3852 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
3853 | echo "${ECHO_T}$ac_cv_objext" >&6; } | |
ff66d28f PE |
3854 | OBJEXT=$ac_cv_objext |
3855 | ac_objext=$OBJEXT | |
8a165db0 BK |
3856 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
3857 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } | |
ff66d28f PE |
3858 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
3859 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3860 | else | |
3861 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
3862 | /* confdefs.h. */ |
3863 | _ACEOF | |
3864 | cat confdefs.h >>conftest.$ac_ext | |
3865 | cat >>conftest.$ac_ext <<_ACEOF | |
3866 | /* end confdefs.h. */ | |
46840bcd | 3867 | |
ff66d28f PE |
3868 | int |
3869 | main () | |
3870 | { | |
3871 | #ifndef __GNUC__ | |
3872 | choke me | |
3873 | #endif | |
3874 | ||
3875 | ; | |
3876 | return 0; | |
3877 | } | |
3878 | _ACEOF | |
3879 | rm -f conftest.$ac_objext | |
8a165db0 BK |
3880 | if { (ac_try="$ac_compile" |
3881 | case "(($ac_try" in | |
3882 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3883 | *) ac_try_echo=$ac_try;; | |
3884 | esac | |
3885 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3886 | (eval "$ac_compile") 2>conftest.er1 | |
ff66d28f | 3887 | ac_status=$? |
ec2075e9 BK |
3888 | grep -v '^ *+' conftest.er1 >conftest.err |
3889 | rm -f conftest.er1 | |
3890 | cat conftest.err >&5 | |
ff66d28f | 3891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8a165db0 BK |
3892 | (exit $ac_status); } && { |
3893 | test -z "$ac_c_werror_flag" || | |
3894 | test ! -s conftest.err | |
3895 | } && test -s conftest.$ac_objext; then | |
ff66d28f PE |
3896 | ac_compiler_gnu=yes |
3897 | else | |
3898 | echo "$as_me: failed program was:" >&5 | |
3899 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3900 | ||
8a165db0 | 3901 | ac_compiler_gnu=no |
ff66d28f | 3902 | fi |
8a165db0 BK |
3903 | |
3904 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ff66d28f PE |
3905 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3906 | ||
3907 | fi | |
8a165db0 BK |
3908 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
3909 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } | |
ff66d28f PE |
3910 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
3911 | ac_test_CFLAGS=${CFLAGS+set} | |
3912 | ac_save_CFLAGS=$CFLAGS | |
8a165db0 BK |
3913 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
3914 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } | |
ff66d28f PE |
3915 | if test "${ac_cv_prog_cc_g+set}" = set; then |
3916 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3917 | else | |
8a165db0 BK |
3918 | ac_save_c_werror_flag=$ac_c_werror_flag |
3919 | ac_c_werror_flag=yes | |
3920 | ac_cv_prog_cc_g=no | |
3921 | CFLAGS="-g" | |
3922 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
3923 | /* confdefs.h. */ |
3924 | _ACEOF | |
3925 | cat confdefs.h >>conftest.$ac_ext | |
3926 | cat >>conftest.$ac_ext <<_ACEOF | |
3927 | /* end confdefs.h. */ | |
3928 | ||
3929 | int | |
3930 | main () | |
3931 | { | |
3932 | ||
3933 | ; | |
3934 | return 0; | |
3935 | } | |
3936 | _ACEOF | |
3937 | rm -f conftest.$ac_objext | |
8a165db0 BK |
3938 | if { (ac_try="$ac_compile" |
3939 | case "(($ac_try" in | |
3940 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3941 | *) ac_try_echo=$ac_try;; | |
3942 | esac | |
3943 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3944 | (eval "$ac_compile") 2>conftest.er1 | |
ff66d28f | 3945 | ac_status=$? |
ec2075e9 BK |
3946 | grep -v '^ *+' conftest.er1 >conftest.err |
3947 | rm -f conftest.er1 | |
3948 | cat conftest.err >&5 | |
ff66d28f | 3949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8a165db0 BK |
3950 | (exit $ac_status); } && { |
3951 | test -z "$ac_c_werror_flag" || | |
3952 | test ! -s conftest.err | |
3953 | } && test -s conftest.$ac_objext; then | |
3954 | ac_cv_prog_cc_g=yes | |
3955 | else | |
3956 | echo "$as_me: failed program was:" >&5 | |
3957 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3958 | ||
3959 | CFLAGS="" | |
3960 | cat >conftest.$ac_ext <<_ACEOF | |
3961 | /* confdefs.h. */ | |
3962 | _ACEOF | |
3963 | cat confdefs.h >>conftest.$ac_ext | |
3964 | cat >>conftest.$ac_ext <<_ACEOF | |
3965 | /* end confdefs.h. */ | |
3966 | ||
3967 | int | |
3968 | main () | |
3969 | { | |
3970 | ||
3971 | ; | |
3972 | return 0; | |
3973 | } | |
3974 | _ACEOF | |
3975 | rm -f conftest.$ac_objext | |
3976 | if { (ac_try="$ac_compile" | |
3977 | case "(($ac_try" in | |
3978 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3979 | *) ac_try_echo=$ac_try;; | |
3980 | esac | |
3981 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3982 | (eval "$ac_compile") 2>conftest.er1 | |
ec2075e9 | 3983 | ac_status=$? |
8a165db0 BK |
3984 | grep -v '^ *+' conftest.er1 >conftest.err |
3985 | rm -f conftest.er1 | |
3986 | cat conftest.err >&5 | |
ec2075e9 | 3987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8a165db0 BK |
3988 | (exit $ac_status); } && { |
3989 | test -z "$ac_c_werror_flag" || | |
3990 | test ! -s conftest.err | |
3991 | } && test -s conftest.$ac_objext; then | |
3992 | : | |
3993 | else | |
3994 | echo "$as_me: failed program was:" >&5 | |
3995 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3996 | ||
3997 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3998 | CFLAGS="-g" | |
3999 | cat >conftest.$ac_ext <<_ACEOF | |
4000 | /* confdefs.h. */ | |
4001 | _ACEOF | |
4002 | cat confdefs.h >>conftest.$ac_ext | |
4003 | cat >>conftest.$ac_ext <<_ACEOF | |
4004 | /* end confdefs.h. */ | |
4005 | ||
4006 | int | |
4007 | main () | |
4008 | { | |
4009 | ||
4010 | ; | |
4011 | return 0; | |
4012 | } | |
4013 | _ACEOF | |
4014 | rm -f conftest.$ac_objext | |
4015 | if { (ac_try="$ac_compile" | |
4016 | case "(($ac_try" in | |
4017 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4018 | *) ac_try_echo=$ac_try;; | |
4019 | esac | |
4020 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4021 | (eval "$ac_compile") 2>conftest.er1 | |
ff66d28f | 4022 | ac_status=$? |
8a165db0 BK |
4023 | grep -v '^ *+' conftest.er1 >conftest.err |
4024 | rm -f conftest.er1 | |
4025 | cat conftest.err >&5 | |
ff66d28f | 4026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8a165db0 BK |
4027 | (exit $ac_status); } && { |
4028 | test -z "$ac_c_werror_flag" || | |
4029 | test ! -s conftest.err | |
4030 | } && test -s conftest.$ac_objext; then | |
ff66d28f | 4031 | ac_cv_prog_cc_g=yes |
b2dad0e3 | 4032 | else |
ff66d28f PE |
4033 | echo "$as_me: failed program was:" >&5 |
4034 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b2dad0e3 | 4035 | |
8a165db0 | 4036 | |
b2dad0e3 | 4037 | fi |
8a165db0 BK |
4038 | |
4039 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ff66d28f | 4040 | fi |
8a165db0 BK |
4041 | |
4042 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4043 | fi | |
4044 | ||
4045 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4046 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4047 | fi | |
4048 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
4049 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } | |
ff66d28f PE |
4050 | if test "$ac_test_CFLAGS" = set; then |
4051 | CFLAGS=$ac_save_CFLAGS | |
4052 | elif test $ac_cv_prog_cc_g = yes; then | |
4053 | if test "$GCC" = yes; then | |
4054 | CFLAGS="-g -O2" | |
b2dad0e3 | 4055 | else |
ff66d28f | 4056 | CFLAGS="-g" |
b2dad0e3 | 4057 | fi |
ff66d28f PE |
4058 | else |
4059 | if test "$GCC" = yes; then | |
4060 | CFLAGS="-O2" | |
4061 | else | |
4062 | CFLAGS= | |
4063 | fi | |
4064 | fi | |
8a165db0 BK |
4065 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
4066 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } | |
4067 | if test "${ac_cv_prog_cc_c89+set}" = set; then | |
ff66d28f PE |
4068 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4069 | else | |
8a165db0 | 4070 | ac_cv_prog_cc_c89=no |
ff66d28f PE |
4071 | ac_save_CC=$CC |
4072 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
4073 | /* confdefs.h. */ |
4074 | _ACEOF | |
4075 | cat confdefs.h >>conftest.$ac_ext | |
4076 | cat >>conftest.$ac_ext <<_ACEOF | |
4077 | /* end confdefs.h. */ | |
4078 | #include <stdarg.h> | |
4079 | #include <stdio.h> | |
4080 | #include <sys/types.h> | |
4081 | #include <sys/stat.h> | |
4082 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4083 | struct buf { int x; }; | |
4084 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4085 | static char *e (p, i) | |
4086 | char **p; | |
4087 | int i; | |
4088 | { | |
4089 | return p[i]; | |
4090 | } | |
4091 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4092 | { | |
4093 | char *s; | |
4094 | va_list v; | |
4095 | va_start (v,p); | |
4096 | s = g (p, va_arg (v,int)); | |
4097 | va_end (v); | |
4098 | return s; | |
4099 | } | |
ec2075e9 BK |
4100 | |
4101 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4102 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4103 | These don't provoke an error unfortunately, instead are silently treated | |
8a165db0 | 4104 | as 'x'. The following induces an error, until -std is added to get |
ec2075e9 BK |
4105 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4106 | array size at least. It's necessary to write '\x00'==0 to get something | |
8a165db0 | 4107 | that's true only with -std. */ |
ec2075e9 BK |
4108 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4109 | ||
8a165db0 BK |
4110 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4111 | inside strings and character constants. */ | |
4112 | #define FOO(x) 'x' | |
4113 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4114 | ||
ff66d28f PE |
4115 | int test (int i, double x); |
4116 | struct s1 {int (*f) (int a);}; | |
4117 | struct s2 {int (*f) (double a);}; | |
4118 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4119 | int argc; | |
4120 | char **argv; | |
4121 | int | |
4122 | main () | |
4123 | { | |
4124 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4125 | ; | |
4126 | return 0; | |
4127 | } | |
4128 | _ACEOF | |
8a165db0 BK |
4129 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4130 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
ff66d28f PE |
4131 | do |
4132 | CC="$ac_save_CC $ac_arg" | |
4133 | rm -f conftest.$ac_objext | |
8a165db0 BK |
4134 | if { (ac_try="$ac_compile" |
4135 | case "(($ac_try" in | |
4136 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4137 | *) ac_try_echo=$ac_try;; | |
4138 | esac | |
4139 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4140 | (eval "$ac_compile") 2>conftest.er1 | |
ff66d28f | 4141 | ac_status=$? |
ec2075e9 BK |
4142 | grep -v '^ *+' conftest.er1 >conftest.err |
4143 | rm -f conftest.er1 | |
4144 | cat conftest.err >&5 | |
ff66d28f | 4145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8a165db0 BK |
4146 | (exit $ac_status); } && { |
4147 | test -z "$ac_c_werror_flag" || | |
4148 | test ! -s conftest.err | |
4149 | } && test -s conftest.$ac_objext; then | |
4150 | ac_cv_prog_cc_c89=$ac_arg | |
ff66d28f PE |
4151 | else |
4152 | echo "$as_me: failed program was:" >&5 | |
4153 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4154 | ||
8a165db0 | 4155 | |
b2dad0e3 | 4156 | fi |
8a165db0 BK |
4157 | |
4158 | rm -f core conftest.err conftest.$ac_objext | |
4159 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
ff66d28f | 4160 | done |
8a165db0 | 4161 | rm -f conftest.$ac_ext |
ff66d28f | 4162 | CC=$ac_save_CC |
b2dad0e3 | 4163 | |
ff66d28f | 4164 | fi |
8a165db0 BK |
4165 | # AC_CACHE_VAL |
4166 | case "x$ac_cv_prog_cc_c89" in | |
4167 | x) | |
4168 | { echo "$as_me:$LINENO: result: none needed" >&5 | |
4169 | echo "${ECHO_T}none needed" >&6; } ;; | |
4170 | xno) | |
4171 | { echo "$as_me:$LINENO: result: unsupported" >&5 | |
4172 | echo "${ECHO_T}unsupported" >&6; } ;; | |
ff66d28f | 4173 | *) |
8a165db0 BK |
4174 | CC="$CC $ac_cv_prog_cc_c89" |
4175 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 | |
4176 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; | |
ff66d28f | 4177 | esac |
b2dad0e3 | 4178 | |
ff66d28f | 4179 | |
ff66d28f PE |
4180 | ac_ext=c |
4181 | ac_cpp='$CPP $CPPFLAGS' | |
4182 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4183 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4184 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4185 | ||
8a165db0 | 4186 | ac_ext=cpp |
ff66d28f PE |
4187 | ac_cpp='$CXXCPP $CPPFLAGS' |
4188 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4189 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4190 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
8a165db0 BK |
4191 | if test -z "$CXX"; then |
4192 | if test -n "$CCC"; then | |
4193 | CXX=$CCC | |
4194 | else | |
4195 | if test -n "$ac_tool_prefix"; then | |
4196 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
ff66d28f PE |
4197 | do |
4198 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4199 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
8a165db0 BK |
4200 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4201 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ff66d28f PE |
4202 | if test "${glibcxx_cv_prog_CXX+set}" = set; then |
4203 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4204 | else | |
4205 | if test -n "$CXX"; then | |
4206 | glibcxx_cv_prog_CXX="$CXX" # Let the user override the test. | |
4207 | else | |
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 | |
8a165db0 | 4214 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ff66d28f PE |
4215 | glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
4216 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4217 | break 2 | |
4218 | fi | |
4219 | done | |
4220 | done | |
8a165db0 | 4221 | IFS=$as_save_IFS |
ff66d28f PE |
4222 | |
4223 | fi | |
4224 | fi | |
4225 | CXX=$glibcxx_cv_prog_CXX | |
4226 | if test -n "$CXX"; then | |
8a165db0 BK |
4227 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
4228 | echo "${ECHO_T}$CXX" >&6; } | |
b2dad0e3 | 4229 | else |
8a165db0 BK |
4230 | { echo "$as_me:$LINENO: result: no" >&5 |
4231 | echo "${ECHO_T}no" >&6; } | |
b2dad0e3 | 4232 | fi |
b2dad0e3 | 4233 | |
8a165db0 | 4234 | |
ff66d28f PE |
4235 | test -n "$CXX" && break |
4236 | done | |
4237 | fi | |
4238 | if test -z "$CXX"; then | |
4239 | ac_ct_CXX=$CXX | |
8a165db0 | 4240 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
ff66d28f PE |
4241 | do |
4242 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4243 | set dummy $ac_prog; ac_word=$2 | |
8a165db0 BK |
4244 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4245 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ff66d28f PE |
4246 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
4247 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4248 | else | |
4249 | if test -n "$ac_ct_CXX"; then | |
4250 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
4251 | else | |
4252 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4253 | for as_dir in $PATH | |
4254 | do | |
4255 | IFS=$as_save_IFS | |
4256 | test -z "$as_dir" && as_dir=. | |
4257 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8a165db0 | 4258 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ff66d28f PE |
4259 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
4260 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4261 | break 2 | |
b2dad0e3 | 4262 | fi |
ff66d28f PE |
4263 | done |
4264 | done | |
8a165db0 | 4265 | IFS=$as_save_IFS |
ff66d28f | 4266 | |
b2dad0e3 | 4267 | fi |
ff66d28f PE |
4268 | fi |
4269 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
4270 | if test -n "$ac_ct_CXX"; then | |
8a165db0 BK |
4271 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
4272 | echo "${ECHO_T}$ac_ct_CXX" >&6; } | |
ff66d28f | 4273 | else |
8a165db0 BK |
4274 | { echo "$as_me:$LINENO: result: no" >&5 |
4275 | echo "${ECHO_T}no" >&6; } | |
b2dad0e3 BK |
4276 | fi |
4277 | ||
8a165db0 | 4278 | |
ff66d28f PE |
4279 | test -n "$ac_ct_CXX" && break |
4280 | done | |
ff66d28f | 4281 | |
8a165db0 BK |
4282 | if test "x$ac_ct_CXX" = x; then |
4283 | CXX="g++" | |
4284 | else | |
4285 | case $cross_compiling:$ac_tool_warned in | |
4286 | yes:) | |
4287 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
4288 | whose name does not start with the host triplet. If you think this | |
4289 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
4290 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
4291 | whose name does not start with the host triplet. If you think this | |
4292 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
4293 | ac_tool_warned=yes ;; | |
4294 | esac | |
4295 | CXX=$ac_ct_CXX | |
4296 | fi | |
ff66d28f PE |
4297 | fi |
4298 | ||
8a165db0 BK |
4299 | fi |
4300 | fi | |
ff66d28f | 4301 | # Provide some information about the compiler. |
8a165db0 | 4302 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
ff66d28f | 4303 | ac_compiler=`set X $ac_compile; echo $2` |
8a165db0 BK |
4304 | { (ac_try="$ac_compiler --version >&5" |
4305 | case "(($ac_try" in | |
4306 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4307 | *) ac_try_echo=$ac_try;; | |
4308 | esac | |
4309 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4310 | (eval "$ac_compiler --version >&5") 2>&5 | |
ff66d28f PE |
4311 | ac_status=$? |
4312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4313 | (exit $ac_status); } | |
8a165db0 BK |
4314 | { (ac_try="$ac_compiler -v >&5" |
4315 | case "(($ac_try" in | |
4316 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4317 | *) ac_try_echo=$ac_try;; | |
4318 | esac | |
4319 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4320 | (eval "$ac_compiler -v >&5") 2>&5 | |
ff66d28f PE |
4321 | ac_status=$? |
4322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4323 | (exit $ac_status); } | |
8a165db0 BK |
4324 | { (ac_try="$ac_compiler -V >&5" |
4325 | case "(($ac_try" in | |
4326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4327 | *) ac_try_echo=$ac_try;; | |
4328 | esac | |
4329 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4330 | (eval "$ac_compiler -V >&5") 2>&5 | |
ff66d28f PE |
4331 | ac_status=$? |
4332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4333 | (exit $ac_status); } | |
4334 | ||
8a165db0 BK |
4335 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
4336 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } | |
ff66d28f PE |
4337 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
4338 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4339 | else | |
4340 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
4341 | /* confdefs.h. */ |
4342 | _ACEOF | |
4343 | cat confdefs.h >>conftest.$ac_ext | |
4344 | cat >>conftest.$ac_ext <<_ACEOF | |
4345 | /* end confdefs.h. */ | |
4346 | ||
4347 | int | |
4348 | main () | |
4349 | { | |
4350 | #ifndef __GNUC__ | |
4351 | choke me | |
4352 | #endif | |
4353 | ||
4354 | ; | |
4355 | return 0; | |
4356 | } | |
4357 | _ACEOF | |
4358 | rm -f conftest.$ac_objext | |
8a165db0 BK |
4359 | if { (ac_try="$ac_compile" |
4360 | case "(($ac_try" in | |
4361 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4362 | *) ac_try_echo=$ac_try;; | |
4363 | esac | |
4364 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4365 | (eval "$ac_compile") 2>conftest.er1 | |
ff66d28f | 4366 | ac_status=$? |
ec2075e9 BK |
4367 | grep -v '^ *+' conftest.er1 >conftest.err |
4368 | rm -f conftest.er1 | |
4369 | cat conftest.err >&5 | |
ff66d28f | 4370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8a165db0 BK |
4371 | (exit $ac_status); } && { |
4372 | test -z "$ac_cxx_werror_flag" || | |
4373 | test ! -s conftest.err | |
4374 | } && test -s conftest.$ac_objext; then | |
ff66d28f PE |
4375 | ac_compiler_gnu=yes |
4376 | else | |
4377 | echo "$as_me: failed program was:" >&5 | |
4378 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4379 | ||
8a165db0 | 4380 | ac_compiler_gnu=no |
ff66d28f | 4381 | fi |
8a165db0 BK |
4382 | |
4383 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ff66d28f PE |
4384 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
4385 | ||
4386 | fi | |
8a165db0 BK |
4387 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
4388 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } | |
ff66d28f PE |
4389 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
4390 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
4391 | ac_save_CXXFLAGS=$CXXFLAGS | |
8a165db0 BK |
4392 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
4393 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } | |
ff66d28f PE |
4394 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
4395 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4396 | else | |
8a165db0 BK |
4397 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
4398 | ac_cxx_werror_flag=yes | |
4399 | ac_cv_prog_cxx_g=no | |
4400 | CXXFLAGS="-g" | |
4401 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
4402 | /* confdefs.h. */ |
4403 | _ACEOF | |
4404 | cat confdefs.h >>conftest.$ac_ext | |
4405 | cat >>conftest.$ac_ext <<_ACEOF | |
4406 | /* end confdefs.h. */ | |
4407 | ||
4408 | int | |
4409 | main () | |
4410 | { | |
b2dad0e3 | 4411 | |
ff66d28f PE |
4412 | ; |
4413 | return 0; | |
4414 | } | |
4415 | _ACEOF | |
4416 | rm -f conftest.$ac_objext | |
8a165db0 BK |
4417 | if { (ac_try="$ac_compile" |
4418 | case "(($ac_try" in | |
4419 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4420 | *) ac_try_echo=$ac_try;; | |
4421 | esac | |
4422 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4423 | (eval "$ac_compile") 2>conftest.er1 | |
ff66d28f | 4424 | ac_status=$? |
ec2075e9 BK |
4425 | grep -v '^ *+' conftest.er1 >conftest.err |
4426 | rm -f conftest.er1 | |
4427 | cat conftest.err >&5 | |
ff66d28f | 4428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8a165db0 BK |
4429 | (exit $ac_status); } && { |
4430 | test -z "$ac_cxx_werror_flag" || | |
4431 | test ! -s conftest.err | |
4432 | } && test -s conftest.$ac_objext; then | |
ff66d28f PE |
4433 | ac_cv_prog_cxx_g=yes |
4434 | else | |
4435 | echo "$as_me: failed program was:" >&5 | |
4436 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4437 | ||
8a165db0 BK |
4438 | CXXFLAGS="" |
4439 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
4440 | /* confdefs.h. */ |
4441 | _ACEOF | |
4442 | cat confdefs.h >>conftest.$ac_ext | |
4443 | cat >>conftest.$ac_ext <<_ACEOF | |
4444 | /* end confdefs.h. */ | |
8a165db0 | 4445 | |
ff66d28f PE |
4446 | int |
4447 | main () | |
4448 | { | |
8a165db0 | 4449 | |
ff66d28f PE |
4450 | ; |
4451 | return 0; | |
4452 | } | |
4453 | _ACEOF | |
4454 | rm -f conftest.$ac_objext | |
8a165db0 BK |
4455 | if { (ac_try="$ac_compile" |
4456 | case "(($ac_try" in | |
4457 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4458 | *) ac_try_echo=$ac_try;; | |
4459 | esac | |
4460 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4461 | (eval "$ac_compile") 2>conftest.er1 | |
ff66d28f | 4462 | ac_status=$? |
ec2075e9 BK |
4463 | grep -v '^ *+' conftest.er1 >conftest.err |
4464 | rm -f conftest.er1 | |
4465 | cat conftest.err >&5 | |
ff66d28f | 4466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8a165db0 BK |
4467 | (exit $ac_status); } && { |
4468 | test -z "$ac_cxx_werror_flag" || | |
4469 | test ! -s conftest.err | |
4470 | } && test -s conftest.$ac_objext; then | |
ff66d28f PE |
4471 | : |
4472 | else | |
4473 | echo "$as_me: failed program was:" >&5 | |
4474 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b2dad0e3 | 4475 | |
8a165db0 BK |
4476 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
4477 | CXXFLAGS="-g" | |
4478 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
4479 | /* confdefs.h. */ |
4480 | _ACEOF | |
4481 | cat confdefs.h >>conftest.$ac_ext | |
4482 | cat >>conftest.$ac_ext <<_ACEOF | |
4483 | /* end confdefs.h. */ | |
8a165db0 | 4484 | |
ff66d28f PE |
4485 | int |
4486 | main () | |
4487 | { | |
8a165db0 | 4488 | |
ff66d28f PE |
4489 | ; |
4490 | return 0; | |
4491 | } | |
4492 | _ACEOF | |
4493 | rm -f conftest.$ac_objext | |
8a165db0 BK |
4494 | if { (ac_try="$ac_compile" |
4495 | case "(($ac_try" in | |
4496 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4497 | *) ac_try_echo=$ac_try;; | |
4498 | esac | |
4499 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4500 | (eval "$ac_compile") 2>conftest.er1 | |
ff66d28f | 4501 | ac_status=$? |
ec2075e9 BK |
4502 | grep -v '^ *+' conftest.er1 >conftest.err |
4503 | rm -f conftest.er1 | |
4504 | cat conftest.err >&5 | |
ff66d28f | 4505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8a165db0 BK |
4506 | (exit $ac_status); } && { |
4507 | test -z "$ac_cxx_werror_flag" || | |
4508 | test ! -s conftest.err | |
4509 | } && test -s conftest.$ac_objext; then | |
4510 | ac_cv_prog_cxx_g=yes | |
ff66d28f PE |
4511 | else |
4512 | echo "$as_me: failed program was:" >&5 | |
4513 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4514 | ||
8a165db0 | 4515 | |
ff66d28f | 4516 | fi |
8a165db0 BK |
4517 | |
4518 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4312e020 BK |
4519 | fi |
4520 | ||
8a165db0 BK |
4521 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4522 | fi | |
4523 | ||
4524 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4525 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
4526 | fi | |
4527 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
4528 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } | |
4529 | if test "$ac_test_CXXFLAGS" = set; then | |
4530 | CXXFLAGS=$ac_save_CXXFLAGS | |
4531 | elif test $ac_cv_prog_cxx_g = yes; then | |
4532 | if test "$GXX" = yes; then | |
4533 | CXXFLAGS="-g -O2" | |
4534 | else | |
4535 | CXXFLAGS="-g" | |
4536 | fi | |
4537 | else | |
4538 | if test "$GXX" = yes; then | |
4539 | CXXFLAGS="-O2" | |
4540 | else | |
4541 | CXXFLAGS= | |
4542 | fi | |
4543 | fi | |
ff66d28f PE |
4544 | ac_ext=c |
4545 | ac_cpp='$CPP $CPPFLAGS' | |
4546 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4547 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4548 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
16da539b | 4549 | |
ff66d28f | 4550 | CXXFLAGS="$save_CXXFLAGS" |
d0941a31 PE |
4551 | |
4552 | ||
33590f13 | 4553 | |
f6dda651 | 4554 | |
ff66d28f PE |
4555 | # Will set LN_S to either 'ln -s', 'ln', or 'cp -p' (if linking isn't |
4556 | # available). Uncomment the next line to force a particular method. | |
8a165db0 BK |
4557 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
4558 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } | |
ff66d28f PE |
4559 | LN_S=$as_ln_s |
4560 | if test "$LN_S" = "ln -s"; then | |
8a165db0 BK |
4561 | { echo "$as_me:$LINENO: result: yes" >&5 |
4562 | echo "${ECHO_T}yes" >&6; } | |
2f235b6d | 4563 | else |
8a165db0 BK |
4564 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
4565 | echo "${ECHO_T}no, using $LN_S" >&6; } | |
2f235b6d | 4566 | fi |
2f235b6d | 4567 | |
ff66d28f | 4568 | #LN_S='cp -p' |
2f235b6d | 4569 | |
ff66d28f PE |
4570 | if test -n "$ac_tool_prefix"; then |
4571 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. | |
4572 | set dummy ${ac_tool_prefix}as; ac_word=$2 | |
8a165db0 BK |
4573 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4574 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ff66d28f PE |
4575 | if test "${ac_cv_prog_AS+set}" = set; then |
4576 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2f235b6d | 4577 | else |
ff66d28f PE |
4578 | if test -n "$AS"; then |
4579 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
2f235b6d | 4580 | else |
ff66d28f PE |
4581 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4582 | for as_dir in $PATH | |
4583 | do | |
4584 | IFS=$as_save_IFS | |
4585 | test -z "$as_dir" && as_dir=. | |
4586 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8a165db0 | 4587 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ff66d28f PE |
4588 | ac_cv_prog_AS="${ac_tool_prefix}as" |
4589 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4590 | break 2 | |
4591 | fi | |
4592 | done | |
4593 | done | |
8a165db0 | 4594 | IFS=$as_save_IFS |
ff66d28f | 4595 | |
2f235b6d | 4596 | fi |
2f235b6d | 4597 | fi |
ff66d28f PE |
4598 | AS=$ac_cv_prog_AS |
4599 | if test -n "$AS"; then | |
8a165db0 BK |
4600 | { echo "$as_me:$LINENO: result: $AS" >&5 |
4601 | echo "${ECHO_T}$AS" >&6; } | |
2f235b6d | 4602 | else |
8a165db0 BK |
4603 | { echo "$as_me:$LINENO: result: no" >&5 |
4604 | echo "${ECHO_T}no" >&6; } | |
2f235b6d PE |
4605 | fi |
4606 | ||
8a165db0 | 4607 | |
ff66d28f PE |
4608 | fi |
4609 | if test -z "$ac_cv_prog_AS"; then | |
4610 | ac_ct_AS=$AS | |
4611 | # Extract the first word of "as", so it can be a program name with args. | |
4612 | set dummy as; ac_word=$2 | |
8a165db0 BK |
4613 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4614 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ff66d28f PE |
4615 | if test "${ac_cv_prog_ac_ct_AS+set}" = set; then |
4616 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4617 | else | |
4618 | if test -n "$ac_ct_AS"; then | |
4619 | ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. | |
4620 | else | |
4621 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4622 | for as_dir in $PATH | |
4623 | do | |
4624 | IFS=$as_save_IFS | |
4625 | test -z "$as_dir" && as_dir=. | |
4626 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8a165db0 | 4627 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ff66d28f PE |
4628 | ac_cv_prog_ac_ct_AS="as" |
4629 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4630 | break 2 | |
4631 | fi | |
4632 | done | |
4633 | done | |
8a165db0 | 4634 | IFS=$as_save_IFS |
2f235b6d | 4635 | |
ff66d28f PE |
4636 | fi |
4637 | fi | |
4638 | ac_ct_AS=$ac_cv_prog_ac_ct_AS | |
4639 | if test -n "$ac_ct_AS"; then | |
8a165db0 BK |
4640 | { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5 |
4641 | echo "${ECHO_T}$ac_ct_AS" >&6; } | |
ff66d28f | 4642 | else |
8a165db0 BK |
4643 | { echo "$as_me:$LINENO: result: no" >&5 |
4644 | echo "${ECHO_T}no" >&6; } | |
ff66d28f | 4645 | fi |
2f235b6d | 4646 | |
8a165db0 BK |
4647 | if test "x$ac_ct_AS" = x; then |
4648 | AS="" | |
4649 | else | |
4650 | case $cross_compiling:$ac_tool_warned in | |
4651 | yes:) | |
4652 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
4653 | whose name does not start with the host triplet. If you think this | |
4654 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
4655 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
4656 | whose name does not start with the host triplet. If you think this | |
4657 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
4658 | ac_tool_warned=yes ;; | |
4659 | esac | |
4660 | AS=$ac_ct_AS | |
4661 | fi | |
ff66d28f PE |
4662 | else |
4663 | AS="$ac_cv_prog_AS" | |
2f235b6d | 4664 | fi |
2f235b6d | 4665 | |
ff66d28f PE |
4666 | if test -n "$ac_tool_prefix"; then |
4667 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
4668 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
8a165db0 BK |
4669 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4670 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ff66d28f PE |
4671 | if test "${ac_cv_prog_AR+set}" = set; then |
4672 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4673 | else | |
4674 | if test -n "$AR"; then | |
4675 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
4676 | else | |
4677 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4678 | for as_dir in $PATH | |
4679 | do | |
4680 | IFS=$as_save_IFS | |
4681 | test -z "$as_dir" && as_dir=. | |
4682 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8a165db0 | 4683 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ff66d28f PE |
4684 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
4685 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4686 | break 2 | |
4687 | fi | |
4688 | done | |
4689 | done | |
8a165db0 | 4690 | IFS=$as_save_IFS |
2f235b6d | 4691 | |
ff66d28f PE |
4692 | fi |
4693 | fi | |
4694 | AR=$ac_cv_prog_AR | |
4695 | if test -n "$AR"; then | |
8a165db0 BK |
4696 | { echo "$as_me:$LINENO: result: $AR" >&5 |
4697 | echo "${ECHO_T}$AR" >&6; } | |
ff66d28f | 4698 | else |
8a165db0 BK |
4699 | { echo "$as_me:$LINENO: result: no" >&5 |
4700 | echo "${ECHO_T}no" >&6; } | |
ff66d28f | 4701 | fi |
2f235b6d | 4702 | |
8a165db0 | 4703 | |
ff66d28f PE |
4704 | fi |
4705 | if test -z "$ac_cv_prog_AR"; then | |
4706 | ac_ct_AR=$AR | |
4707 | # Extract the first word of "ar", so it can be a program name with args. | |
4708 | set dummy ar; ac_word=$2 | |
8a165db0 BK |
4709 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4710 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ff66d28f PE |
4711 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
4712 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4713 | else | |
4714 | if test -n "$ac_ct_AR"; then | |
4715 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
4716 | else | |
4717 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4718 | for as_dir in $PATH | |
4719 | do | |
4720 | IFS=$as_save_IFS | |
4721 | test -z "$as_dir" && as_dir=. | |
4722 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8a165db0 | 4723 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ff66d28f PE |
4724 | ac_cv_prog_ac_ct_AR="ar" |
4725 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4726 | break 2 | |
4727 | fi | |
4728 | done | |
4729 | done | |
8a165db0 | 4730 | IFS=$as_save_IFS |
2f235b6d | 4731 | |
ff66d28f PE |
4732 | fi |
4733 | fi | |
4734 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
4735 | if test -n "$ac_ct_AR"; then | |
8a165db0 BK |
4736 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
4737 | echo "${ECHO_T}$ac_ct_AR" >&6; } | |
2f235b6d | 4738 | else |
8a165db0 BK |
4739 | { echo "$as_me:$LINENO: result: no" >&5 |
4740 | echo "${ECHO_T}no" >&6; } | |
2f235b6d PE |
4741 | fi |
4742 | ||
8a165db0 BK |
4743 | if test "x$ac_ct_AR" = x; then |
4744 | AR="" | |
4745 | else | |
4746 | case $cross_compiling:$ac_tool_warned in | |
4747 | yes:) | |
4748 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
4749 | whose name does not start with the host triplet. If you think this | |
4750 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
4751 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
4752 | whose name does not start with the host triplet. If you think this | |
4753 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
4754 | ac_tool_warned=yes ;; | |
4755 | esac | |
4756 | AR=$ac_ct_AR | |
4757 | fi | |
2f235b6d | 4758 | else |
ff66d28f | 4759 | AR="$ac_cv_prog_AR" |
2f235b6d PE |
4760 | fi |
4761 | ||
ff66d28f PE |
4762 | if test -n "$ac_tool_prefix"; then |
4763 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
4764 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
8a165db0 BK |
4765 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4766 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ff66d28f PE |
4767 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
4768 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4769 | else | |
4770 | if test -n "$RANLIB"; then | |
4771 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
4772 | else | |
4773 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4774 | for as_dir in $PATH | |
4775 | do | |
4776 | IFS=$as_save_IFS | |
4777 | test -z "$as_dir" && as_dir=. | |
4778 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8a165db0 | 4779 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ff66d28f PE |
4780 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
4781 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4782 | break 2 | |
4783 | fi | |
4784 | done | |
4785 | done | |
8a165db0 | 4786 | IFS=$as_save_IFS |
ff66d28f PE |
4787 | |
4788 | fi | |
4789 | fi | |
4790 | RANLIB=$ac_cv_prog_RANLIB | |
4791 | if test -n "$RANLIB"; then | |
8a165db0 BK |
4792 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
4793 | echo "${ECHO_T}$RANLIB" >&6; } | |
2f235b6d | 4794 | else |
8a165db0 BK |
4795 | { echo "$as_me:$LINENO: result: no" >&5 |
4796 | echo "${ECHO_T}no" >&6; } | |
2f235b6d PE |
4797 | fi |
4798 | ||
8a165db0 | 4799 | |
ff66d28f PE |
4800 | fi |
4801 | if test -z "$ac_cv_prog_RANLIB"; then | |
4802 | ac_ct_RANLIB=$RANLIB | |
4803 | # Extract the first word of "ranlib", so it can be a program name with args. | |
4804 | set dummy ranlib; ac_word=$2 | |
8a165db0 BK |
4805 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4806 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ff66d28f PE |
4807 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
4808 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4809 | else | |
4810 | if test -n "$ac_ct_RANLIB"; then | |
4811 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
2f235b6d | 4812 | else |
ff66d28f PE |
4813 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4814 | for as_dir in $PATH | |
4815 | do | |
4816 | IFS=$as_save_IFS | |
4817 | test -z "$as_dir" && as_dir=. | |
4818 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8a165db0 | 4819 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ff66d28f PE |
4820 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
4821 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4822 | break 2 | |
4823 | fi | |
4824 | done | |
4825 | done | |
8a165db0 | 4826 | IFS=$as_save_IFS |
ff66d28f | 4827 | |
ff66d28f PE |
4828 | fi |
4829 | fi | |
4830 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
4831 | if test -n "$ac_ct_RANLIB"; then | |
8a165db0 BK |
4832 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
4833 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } | |
ff66d28f | 4834 | else |
8a165db0 BK |
4835 | { echo "$as_me:$LINENO: result: no" >&5 |
4836 | echo "${ECHO_T}no" >&6; } | |
2f235b6d PE |
4837 | fi |
4838 | ||
8a165db0 BK |
4839 | if test "x$ac_ct_RANLIB" = x; then |
4840 | RANLIB="ranlib-not-found-in-path-error" | |
4841 | else | |
4842 | case $cross_compiling:$ac_tool_warned in | |
4843 | yes:) | |
4844 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
4845 | whose name does not start with the host triplet. If you think this | |
4846 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
4847 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
4848 | whose name does not start with the host triplet. If you think this | |
4849 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
4850 | ac_tool_warned=yes ;; | |
4851 | esac | |
4852 | RANLIB=$ac_ct_RANLIB | |
4853 | fi | |
2f235b6d | 4854 | else |
ff66d28f | 4855 | RANLIB="$ac_cv_prog_RANLIB" |
2f235b6d PE |
4856 | fi |
4857 | ||
4858 | ||
8a165db0 BK |
4859 | { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
4860 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; } | |
4861 | # Check whether --enable-maintainer-mode was given. | |
ff66d28f | 4862 | if test "${enable_maintainer_mode+set}" = set; then |
8a165db0 | 4863 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
ff66d28f PE |
4864 | else |
4865 | USE_MAINTAINER_MODE=no | |
8a165db0 | 4866 | fi |
e08c673e | 4867 | |
8a165db0 BK |
4868 | { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 |
4869 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; } | |
4870 | if test $USE_MAINTAINER_MODE = yes; then | |
ff66d28f PE |
4871 | MAINTAINER_MODE_TRUE= |
4872 | MAINTAINER_MODE_FALSE='#' | |
4873 | else | |
4874 | MAINTAINER_MODE_TRUE='#' | |
4875 | MAINTAINER_MODE_FALSE= | |
4876 | fi | |
4877 | ||
4878 | MAINT=$MAINTAINER_MODE_TRUE | |
2f235b6d | 4879 | |
5780a46b | 4880 | |
f4c79fef | 4881 | |
92eabea2 PE |
4882 | # Set up safe default values for all subsequent AM_CONDITIONAL tests |
4883 | # which are themselves conditionally expanded. | |
4884 | ## (Right now, this only matters for enable_wchar_t, but nothing prevents | |
4885 | ## other macros from doing the same. This should be automated.) -pme | |
ff66d28f | 4886 | need_libmath=no |
ff66d28f | 4887 | |
464aea98 JM |
4888 | # Check for uClibc since Linux platforms use different configuration |
4889 | # directories depending on the C library in use. | |
4890 | cat >conftest.$ac_ext <<_ACEOF | |
4891 | /* confdefs.h. */ | |
4892 | _ACEOF | |
4893 | cat confdefs.h >>conftest.$ac_ext | |
4894 | cat >>conftest.$ac_ext <<_ACEOF | |
4895 | /* end confdefs.h. */ | |
4896 | ||
4897 | #include <stdio.h> | |
4898 | #if __UCLIBC__ | |
4899 | _using_uclibc | |
4900 | #endif | |
4901 | ||
4902 | _ACEOF | |
4903 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4904 | $EGREP "_using_uclibc" >/dev/null 2>&1; then | |
4905 | uclibc=yes | |
4906 | else | |
4907 | uclibc=no | |
4908 | fi | |
4909 | rm -f conftest* | |
4910 | ||
4911 | ||
ff66d28f PE |
4912 | # Find platform-specific directories containing configuration info. |
4913 | # Also possibly modify flags used elsewhere, as needed by the platform. | |
4914 | ||
4915 | . $glibcxx_srcdir/configure.host | |
4916 | { echo "$as_me:$LINENO: CPU config directory is $cpu_include_dir" >&5 | |
4917 | echo "$as_me: CPU config directory is $cpu_include_dir" >&6;} | |
4918 | { echo "$as_me:$LINENO: OS config directory is $os_include_dir" >&5 | |
4919 | echo "$as_me: OS config directory is $os_include_dir" >&6;} | |
4920 | ||
4921 | ||
4922 | ||
1cf3d07d SE |
4923 | enable_dlopen=yes |
4924 | ||
4925 | ||
4926 | ||
4927 | ||
4928 | ||
4929 | macro_version='2.1a' | |
4930 | macro_revision='1.2435' | |
4931 | ||
4932 | ||
4933 | ||
4934 | ||
4935 | ||
4936 | ||
4937 | ||
4938 | ||
4939 | ||
4940 | ||
4941 | ||
4942 | ||
4943 | ltmain="$ac_aux_dir/ltmain.sh" | |
4944 | ||
4945 | # Set options | |
4946 | ||
4947 | ||
4948 | enable_win32_dll=no | |
4949 | ||
ff66d28f | 4950 | |
8a165db0 | 4951 | # Check whether --enable-shared was given. |
b2dad0e3 | 4952 | if test "${enable_shared+set}" = set; then |
8a165db0 | 4953 | enableval=$enable_shared; p=${PACKAGE-default} |
1cf3d07d SE |
4954 | case $enableval in |
4955 | yes) enable_shared=yes ;; | |
4956 | no) enable_shared=no ;; | |
4957 | *) | |
4958 | enable_shared=no | |
4959 | # Look at the argument we got. We use all the common list separators. | |
4960 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
4961 | for pkg in $enableval; do | |
4962 | IFS="$lt_save_ifs" | |
4963 | if test "X$pkg" = "X$p"; then | |
4964 | enable_shared=yes | |
4965 | fi | |
4966 | done | |
4967 | IFS="$lt_save_ifs" | |
4968 | ;; | |
4969 | esac | |
b2dad0e3 BK |
4970 | else |
4971 | enable_shared=yes | |
8a165db0 | 4972 | fi |
1cf3d07d SE |
4973 | |
4974 | ||
4975 | ||
4976 | ||
4977 | ||
4978 | ||
4979 | ||
4980 | ||
8a165db0 BK |
4981 | |
4982 | # Check whether --enable-static was given. | |
b2dad0e3 | 4983 | if test "${enable_static+set}" = set; then |
8a165db0 | 4984 | enableval=$enable_static; p=${PACKAGE-default} |
1cf3d07d SE |
4985 | case $enableval in |
4986 | yes) enable_static=yes ;; | |
4987 | no) enable_static=no ;; | |
4988 | *) | |
4989 | enable_static=no | |
4990 | # Look at the argument we got. We use all the common list separators. | |
4991 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
4992 | for pkg in $enableval; do | |
4993 | IFS="$lt_save_ifs" | |
4994 | if test "X$pkg" = "X$p"; then | |
4995 | enable_static=yes | |
4996 | fi | |
4997 | done | |
4998 | IFS="$lt_save_ifs" | |
4999 | ;; | |
5000 | esac | |
b2dad0e3 BK |
5001 | else |
5002 | enable_static=yes | |
8a165db0 | 5003 | fi |
1cf3d07d SE |
5004 | |
5005 | ||
5006 | ||
5007 | ||
5008 | ||
5009 | ||
5010 | ||
5011 | ||
5012 | ||
8a165db0 BK |
5013 | |
5014 | # Check whether --with-pic was given. | |
1cf3d07d | 5015 | if test "${with_pic+set}" = set; then |
8a165db0 | 5016 | withval=$with_pic; pic_mode="$withval" |
1cf3d07d SE |
5017 | else |
5018 | pic_mode=default | |
8a165db0 BK |
5019 | fi |
5020 | ||
1cf3d07d SE |
5021 | |
5022 | test -z "$pic_mode" && pic_mode=default | |
5023 | ||
5024 | ||
5025 | ||
5026 | ||
5027 | ||
5028 | ||
5029 | ||
8a165db0 | 5030 | # Check whether --enable-fast-install was given. |
b2dad0e3 | 5031 | if test "${enable_fast_install+set}" = set; then |
8a165db0 | 5032 | enableval=$enable_fast_install; p=${PACKAGE-default} |
1cf3d07d SE |
5033 | case $enableval in |
5034 | yes) enable_fast_install=yes ;; | |
5035 | no) enable_fast_install=no ;; | |
5036 | *) | |
5037 | enable_fast_install=no | |
5038 | # Look at the argument we got. We use all the common list separators. | |
5039 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
5040 | for pkg in $enableval; do | |
5041 | IFS="$lt_save_ifs" | |
5042 | if test "X$pkg" = "X$p"; then | |
5043 | enable_fast_install=yes | |
5044 | fi | |
5045 | done | |
5046 | IFS="$lt_save_ifs" | |
5047 | ;; | |
5048 | esac | |
b2dad0e3 BK |
5049 | else |
5050 | enable_fast_install=yes | |
8a165db0 | 5051 | fi |
b2dad0e3 | 5052 | |
1cf3d07d SE |
5053 | |
5054 | ||
5055 | ||
5056 | ||
5057 | ||
5058 | ||
5059 | ||
8a165db0 BK |
5060 | |
5061 | { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 | |
5062 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } | |
5063 | if test "${ac_cv_path_SED+set}" = set; then | |
5064 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5065 | else | |
5066 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
5067 | for ac_i in 1 2 3 4 5 6 7; do | |
5068 | ac_script="$ac_script$as_nl$ac_script" | |
5069 | done | |
5070 | echo "$ac_script" | sed 99q >conftest.sed | |
5071 | $as_unset ac_script || ac_script= | |
5072 | # Extract the first word of "sed gsed" to use in msg output | |
5073 | if test -z "$SED"; then | |
5074 | set dummy sed gsed; ac_prog_name=$2 | |
5075 | if test "${ac_cv_path_SED+set}" = set; then | |
1cf3d07d SE |
5076 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5077 | else | |
8a165db0 BK |
5078 | ac_path_SED_found=false |
5079 | # Loop through the user's path and test for each of PROGNAME-LIST | |
1cf3d07d SE |
5080 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5081 | for as_dir in $PATH | |
5082 | do | |
5083 | IFS=$as_save_IFS | |
5084 | test -z "$as_dir" && as_dir=. | |
8a165db0 BK |
5085 | for ac_prog in sed gsed; do |
5086 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5087 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
5088 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
5089 | # Check for GNU ac_path_SED and select it if it is found. | |
5090 | # Check for GNU $ac_path_SED | |
5091 | case `"$ac_path_SED" --version 2>&1` in | |
5092 | *GNU*) | |
5093 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
5094 | *) | |
5095 | ac_count=0 | |
5096 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
5097 | while : | |
5098 | do | |
5099 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5100 | mv "conftest.tmp" "conftest.in" | |
5101 | cp "conftest.in" "conftest.nl" | |
5102 | echo '' >> "conftest.nl" | |
5103 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5104 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5105 | ac_count=`expr $ac_count + 1` | |
5106 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
5107 | # Best one so far, save it but keep looking for a better one | |
5108 | ac_cv_path_SED="$ac_path_SED" | |
5109 | ac_path_SED_max=$ac_count | |
e08c673e | 5110 | fi |
8a165db0 BK |
5111 | # 10*(2^10) chars as input seems more than enough |
5112 | test $ac_count -gt 10 && break | |
e08c673e | 5113 | done |
8a165db0 BK |
5114 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
5115 | esac | |
5116 | ||
5117 | ||
5118 | $ac_path_SED_found && break 3 | |
5119 | done | |
5120 | done | |
5121 | ||
e08c673e | 5122 | done |
8a165db0 BK |
5123 | IFS=$as_save_IFS |
5124 | ||
1cf3d07d SE |
5125 | |
5126 | fi | |
5127 | ||
8a165db0 BK |
5128 | SED="$ac_cv_path_SED" |
5129 | if test -z "$SED"; then | |
5130 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5 | |
5131 | echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;} | |
5132 | { (exit 1); exit 1; }; } | |
5133 | fi | |
1cf3d07d | 5134 | |
8a165db0 BK |
5135 | else |
5136 | ac_cv_path_SED=$SED | |
5137 | fi | |
5138 | ||
5139 | fi | |
5140 | { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 | |
5141 | echo "${ECHO_T}$ac_cv_path_SED" >&6; } | |
5142 | SED="$ac_cv_path_SED" | |
5143 | rm -f conftest.sed | |
1cf3d07d SE |
5144 | |
5145 | test -z "$SED" && SED=sed | |
5146 | Xsed="$SED -e 1s/^X//" | |
5147 | ||
5148 | ||
5149 | ||
5150 | ||
5151 | ||
5152 | ||
5153 | ||
5154 | ||
5155 | ||
5156 | ||
5157 | ||
8a165db0 BK |
5158 | { echo "$as_me:$LINENO: checking for fgrep" >&5 |
5159 | echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; } | |
5160 | if test "${ac_cv_path_FGREP+set}" = set; then | |
1cf3d07d SE |
5161 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5162 | else | |
8a165db0 BK |
5163 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
5164 | then ac_cv_path_FGREP="$GREP -F" | |
5165 | else | |
5166 | # Extract the first word of "fgrep" to use in msg output | |
5167 | if test -z "$FGREP"; then | |
5168 | set dummy fgrep; ac_prog_name=$2 | |
5169 | if test "${ac_cv_path_FGREP+set}" = set; then | |
5170 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5171 | else | |
5172 | ac_path_FGREP_found=false | |
5173 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5174 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5175 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5176 | do | |
5177 | IFS=$as_save_IFS | |
5178 | test -z "$as_dir" && as_dir=. | |
5179 | for ac_prog in fgrep; do | |
5180 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5181 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
5182 | { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue | |
5183 | # Check for GNU ac_path_FGREP and select it if it is found. | |
5184 | # Check for GNU $ac_path_FGREP | |
5185 | case `"$ac_path_FGREP" --version 2>&1` in | |
5186 | *GNU*) | |
5187 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
5188 | *) | |
5189 | ac_count=0 | |
5190 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
5191 | while : | |
5192 | do | |
5193 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5194 | mv "conftest.tmp" "conftest.in" | |
5195 | cp "conftest.in" "conftest.nl" | |
5196 | echo 'FGREP' >> "conftest.nl" | |
5197 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5198 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5199 | ac_count=`expr $ac_count + 1` | |
5200 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
5201 | # Best one so far, save it but keep looking for a better one | |
5202 | ac_cv_path_FGREP="$ac_path_FGREP" | |
5203 | ac_path_FGREP_max=$ac_count | |
1cf3d07d | 5204 | fi |
8a165db0 BK |
5205 | # 10*(2^10) chars as input seems more than enough |
5206 | test $ac_count -gt 10 && break | |
5207 | done | |
5208 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5209 | esac | |
5210 | ||
5211 | ||
5212 | $ac_path_FGREP_found && break 3 | |
5213 | done | |
5214 | done | |
5215 | ||
5216 | done | |
5217 | IFS=$as_save_IFS | |
5218 | ||
5219 | ||
1cf3d07d | 5220 | fi |
8a165db0 BK |
5221 | |
5222 | FGREP="$ac_cv_path_FGREP" | |
5223 | if test -z "$FGREP"; then | |
5224 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
5225 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
5226 | { (exit 1); exit 1; }; } | |
5227 | fi | |
5228 | ||
5229 | else | |
5230 | ac_cv_path_FGREP=$FGREP | |
5231 | fi | |
5232 | ||
5233 | ||
5234 | fi | |
5235 | fi | |
5236 | { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5 | |
5237 | echo "${ECHO_T}$ac_cv_path_FGREP" >&6; } | |
5238 | FGREP="$ac_cv_path_FGREP" | |
1cf3d07d SE |
5239 | |
5240 | ||
5241 | test -z "$GREP" && GREP=grep | |
5242 | ||
5243 | ||
5244 | ||
5245 | ||
5246 | ||
5247 | ||
5248 | ||
5249 | ||
5250 | ||
5251 | ||
5252 | ||
5253 | ||
5254 | ||
5255 | ||
5256 | ||
5257 | ||
5258 | ||
5259 | ||
5260 | ||
8a165db0 | 5261 | # Check whether --with-gnu-ld was given. |
b2dad0e3 | 5262 | if test "${with_gnu_ld+set}" = set; then |
8a165db0 | 5263 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
b2dad0e3 BK |
5264 | else |
5265 | with_gnu_ld=no | |
8a165db0 BK |
5266 | fi |
5267 | ||
b2dad0e3 | 5268 | ac_prog=ld |
c21b6f87 | 5269 | if test "$GCC" = yes; then |
b2dad0e3 | 5270 | # Check if gcc -print-prog-name=ld gives a path. |
8a165db0 BK |
5271 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
5272 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } | |
3df64633 AO |
5273 | case $host in |
5274 | *-*-mingw*) | |
5275 | # gcc leaves a trailing carriage return which upsets mingw | |
5276 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
5277 | *) | |
5278 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
5279 | esac | |
c21b6f87 | 5280 | case $ac_prog in |
b2dad0e3 | 5281 | # Accept absolute paths. |
1cf3d07d | 5282 | [\\/]* | ?:[\\/]*) |
b2dad0e3 | 5283 | re_direlt='/[^/][^/]*/\.\./' |
1cf3d07d SE |
5284 | # Canonicalize the pathname of ld |
5285 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
5286 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
5287 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
b2dad0e3 BK |
5288 | done |
5289 | test -z "$LD" && LD="$ac_prog" | |
5290 | ;; | |
5291 | "") | |
5292 | # If it fails, then pretend we aren't using GCC. | |
5293 | ac_prog=ld | |
5294 | ;; | |
5295 | *) | |
5296 | # If it is relative, then search for the first ld in PATH. | |
5297 | with_gnu_ld=unknown | |
5298 | ;; | |
5299 | esac | |
5300 | elif test "$with_gnu_ld" = yes; then | |
8a165db0 BK |
5301 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
5302 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } | |
b2dad0e3 | 5303 | else |
8a165db0 BK |
5304 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
5305 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } | |
b2dad0e3 | 5306 | fi |
ff66d28f PE |
5307 | if test "${lt_cv_path_LD+set}" = set; then |
5308 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b2dad0e3 BK |
5309 | else |
5310 | if test -z "$LD"; then | |
1cf3d07d | 5311 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
b2dad0e3 | 5312 | for ac_dir in $PATH; do |
1cf3d07d | 5313 | IFS="$lt_save_ifs" |
b2dad0e3 | 5314 | test -z "$ac_dir" && ac_dir=. |
3840fa2a | 5315 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
c21b6f87 | 5316 | lt_cv_path_LD="$ac_dir/$ac_prog" |
b2dad0e3 | 5317 | # Check to see if the program is GNU ld. I'd rather use --version, |
1cf3d07d | 5318 | # but apparently some variants of GNU ld only accept -v. |
b2dad0e3 | 5319 | # Break only if it was the GNU/non-GNU ld that we prefer. |
1cf3d07d SE |
5320 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
5321 | *GNU* | *'with BFD'*) | |
b2dad0e3 | 5322 | test "$with_gnu_ld" != no && break |
1cf3d07d SE |
5323 | ;; |
5324 | *) | |
b2dad0e3 | 5325 | test "$with_gnu_ld" != yes && break |
1cf3d07d SE |
5326 | ;; |
5327 | esac | |
b2dad0e3 BK |
5328 | fi |
5329 | done | |
1cf3d07d | 5330 | IFS="$lt_save_ifs" |
b2dad0e3 | 5331 | else |
c21b6f87 | 5332 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
b2dad0e3 BK |
5333 | fi |
5334 | fi | |
5335 | ||
c21b6f87 | 5336 | LD="$lt_cv_path_LD" |
b2dad0e3 | 5337 | if test -n "$LD"; then |
8a165db0 BK |
5338 | { echo "$as_me:$LINENO: result: $LD" >&5 |
5339 | echo "${ECHO_T}$LD" >&6; } | |
b2dad0e3 | 5340 | else |
8a165db0 BK |
5341 | { echo "$as_me:$LINENO: result: no" >&5 |
5342 | echo "${ECHO_T}no" >&6; } | |
b2dad0e3 | 5343 | fi |
ff66d28f PE |
5344 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
5345 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
5346 | { (exit 1); exit 1; }; } | |
8a165db0 BK |
5347 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
5348 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } | |
ff66d28f PE |
5349 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
5350 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b2dad0e3 | 5351 | else |
1cf3d07d SE |
5352 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
5353 | case `$LD -v 2>&1 </dev/null` in | |
5354 | *GNU* | *'with BFD'*) | |
c21b6f87 | 5355 | lt_cv_prog_gnu_ld=yes |
1cf3d07d SE |
5356 | ;; |
5357 | *) | |
c21b6f87 | 5358 | lt_cv_prog_gnu_ld=no |
1cf3d07d SE |
5359 | ;; |
5360 | esac | |
b2dad0e3 | 5361 | fi |
8a165db0 BK |
5362 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
5363 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } | |
c21b6f87 | 5364 | with_gnu_ld=$lt_cv_prog_gnu_ld |
3df64633 | 5365 | |
b2dad0e3 BK |
5366 | |
5367 | ||
1cf3d07d SE |
5368 | |
5369 | ||
5370 | ||
5371 | ||
5372 | ||
5373 | ||
5374 | ||
8a165db0 BK |
5375 | { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 |
5376 | echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; } | |
ff66d28f PE |
5377 | if test "${lt_cv_path_NM+set}" = set; then |
5378 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b2dad0e3 BK |
5379 | else |
5380 | if test -n "$NM"; then | |
5381 | # Let the user override the test. | |
c21b6f87 | 5382 | lt_cv_path_NM="$NM" |
b2dad0e3 | 5383 | else |
1cf3d07d SE |
5384 | lt_nm_to_check="${ac_tool_prefix}nm" |
5385 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
5386 | lt_nm_to_check="$lt_nm_to_check nm" | |
5387 | fi | |
5388 | for lt_tmp_nm in $lt_nm_to_check; do | |
5389 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5390 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
5391 | IFS="$lt_save_ifs" | |
5392 | test -z "$ac_dir" && ac_dir=. | |
5393 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
5394 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
5395 | # Check to see if the nm accepts a BSD-compat flag. | |
5396 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
5397 | # nm: unknown option "B" ignored | |
5398 | # Tru64's nm complains that /dev/null is an invalid object file | |
5399 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
5400 | */dev/null* | *'Invalid file or object type'*) | |
5401 | lt_cv_path_NM="$tmp_nm -B" | |
5402 | break | |
5403 | ;; | |
5404 | *) | |
5405 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
5406 | */dev/null*) | |
5407 | lt_cv_path_NM="$tmp_nm -p" | |
5408 | break | |
5409 | ;; | |
5410 | *) | |
5411 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
5412 | continue # so that we can try to find one that supports BSD flags | |
5413 | ;; | |
5414 | esac | |
5415 | ;; | |
5416 | esac | |
b2dad0e3 | 5417 | fi |
1cf3d07d SE |
5418 | done |
5419 | IFS="$lt_save_ifs" | |
b2dad0e3 | 5420 | done |
1cf3d07d | 5421 | : ${lt_cv_path_NM=no} |
b2dad0e3 BK |
5422 | fi |
5423 | fi | |
8a165db0 BK |
5424 | { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
5425 | echo "${ECHO_T}$lt_cv_path_NM" >&6; } | |
1cf3d07d SE |
5426 | if test "$lt_cv_path_NM" != "no"; then |
5427 | NM="$lt_cv_path_NM" | |
5428 | else | |
5429 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
5430 | if test -n "$ac_tool_prefix"; then | |
5431 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
5432 | do | |
5433 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5434 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
8a165db0 BK |
5435 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5436 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1cf3d07d | 5437 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then |
ff66d28f | 5438 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3df64633 | 5439 | else |
1cf3d07d SE |
5440 | if test -n "$DUMPBIN"; then |
5441 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
5442 | else | |
5443 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5444 | for as_dir in $PATH | |
5445 | do | |
5446 | IFS=$as_save_IFS | |
5447 | test -z "$as_dir" && as_dir=. | |
5448 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8a165db0 | 5449 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1cf3d07d SE |
5450 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
5451 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5452 | break 2 | |
5453 | fi | |
5454 | done | |
5455 | done | |
8a165db0 | 5456 | IFS=$as_save_IFS |
3df64633 | 5457 | |
1cf3d07d SE |
5458 | fi |
5459 | fi | |
5460 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
5461 | if test -n "$DUMPBIN"; then | |
8a165db0 BK |
5462 | { echo "$as_me:$LINENO: result: $DUMPBIN" >&5 |
5463 | echo "${ECHO_T}$DUMPBIN" >&6; } | |
1cf3d07d | 5464 | else |
8a165db0 BK |
5465 | { echo "$as_me:$LINENO: result: no" >&5 |
5466 | echo "${ECHO_T}no" >&6; } | |
1cf3d07d | 5467 | fi |
c21b6f87 | 5468 | |
8a165db0 | 5469 | |
1cf3d07d SE |
5470 | test -n "$DUMPBIN" && break |
5471 | done | |
5472 | fi | |
5473 | if test -z "$DUMPBIN"; then | |
5474 | ac_ct_DUMPBIN=$DUMPBIN | |
5475 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
5476 | do | |
5477 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5478 | set dummy $ac_prog; ac_word=$2 | |
8a165db0 BK |
5479 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5480 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1cf3d07d SE |
5481 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then |
5482 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5483 | else | |
5484 | if test -n "$ac_ct_DUMPBIN"; then | |
5485 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
5486 | else | |
5487 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5488 | for as_dir in $PATH | |
5489 | do | |
5490 | IFS=$as_save_IFS | |
5491 | test -z "$as_dir" && as_dir=. | |
5492 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8a165db0 | 5493 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1cf3d07d SE |
5494 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
5495 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5496 | break 2 | |
3df64633 | 5497 | fi |
1cf3d07d SE |
5498 | done |
5499 | done | |
8a165db0 | 5500 | IFS=$as_save_IFS |
3df64633 | 5501 | |
1cf3d07d SE |
5502 | fi |
5503 | fi | |
5504 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
5505 | if test -n "$ac_ct_DUMPBIN"; then | |
8a165db0 BK |
5506 | { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 |
5507 | echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; } | |
1cf3d07d | 5508 | else |
8a165db0 BK |
5509 | { echo "$as_me:$LINENO: result: no" >&5 |
5510 | echo "${ECHO_T}no" >&6; } | |
1cf3d07d | 5511 | fi |
3df64633 | 5512 | |
8a165db0 | 5513 | |
1cf3d07d SE |
5514 | test -n "$ac_ct_DUMPBIN" && break |
5515 | done | |
3df64633 | 5516 | |
8a165db0 BK |
5517 | if test "x$ac_ct_DUMPBIN" = x; then |
5518 | DUMPBIN=":" | |
5519 | else | |
5520 | case $cross_compiling:$ac_tool_warned in | |
5521 | yes:) | |
5522 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
5523 | whose name does not start with the host triplet. If you think this | |
5524 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
5525 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
5526 | whose name does not start with the host triplet. If you think this | |
5527 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
5528 | ac_tool_warned=yes ;; | |
5529 | esac | |
5530 | DUMPBIN=$ac_ct_DUMPBIN | |
5531 | fi | |
1cf3d07d | 5532 | fi |
3df64633 | 5533 | |
3df64633 | 5534 | |
1cf3d07d SE |
5535 | if test "$DUMPBIN" != ":"; then |
5536 | NM="$DUMPBIN" | |
3df64633 | 5537 | fi |
1cf3d07d SE |
5538 | fi |
5539 | test -z "$NM" && NM=nm | |
3df64633 | 5540 | |
3df64633 | 5541 | |
3df64633 | 5542 | |
3df64633 | 5543 | |
bfa1e6b1 | 5544 | |
3df64633 | 5545 | |
8a165db0 BK |
5546 | { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 |
5547 | echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; } | |
1cf3d07d SE |
5548 | if test "${lt_cv_nm_interface+set}" = set; then |
5549 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5550 | else | |
5551 | lt_cv_nm_interface="BSD nm" | |
5552 | echo "int some_variable = 0;" > conftest.$ac_ext | |
8a165db0 | 5553 | (eval echo "\"\$as_me:5553: $ac_compile\"" >&5) |
1cf3d07d SE |
5554 | (eval "$ac_compile" 2>conftest.err) |
5555 | cat conftest.err >&5 | |
8a165db0 | 5556 | (eval echo "\"\$as_me:5556: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
1cf3d07d SE |
5557 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
5558 | cat conftest.err >&5 | |
8a165db0 | 5559 | (eval echo "\"\$as_me:5559: output\"" >&5) |
1cf3d07d SE |
5560 | cat conftest.out >&5 |
5561 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
5562 | lt_cv_nm_interface="MS dumpbin" | |
5563 | fi | |
5564 | rm -f conftest* | |
3df64633 | 5565 | fi |
8a165db0 BK |
5566 | { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 |
5567 | echo "${ECHO_T}$lt_cv_nm_interface" >&6; } | |
3df64633 | 5568 | |
6dab073b | 5569 | # find the maximum length of command line arguments |
8a165db0 BK |
5570 | { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
5571 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } | |
6dab073b MS |
5572 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
5573 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5574 | else | |
5575 | i=0 | |
5576 | teststring="ABCD" | |
5577 | ||
5578 | case $build_os in | |
5579 | msdosdjgpp*) | |
5580 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
5581 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
5582 | # during glob expansion). Even if it were fixed, the result of this | |
5583 | # check would be larger than it should be. | |
5584 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
5585 | ;; | |
5586 | ||
1cf3d07d SE |
5587 | gnu*) |
5588 | # Under GNU Hurd, this test is not required because there is | |
5589 | # no limit to the length of command line arguments. | |
5590 | # Libtool will interpret -1 as no limit whatsoever | |
5591 | lt_cv_sys_max_cmd_len=-1; | |
5592 | ;; | |
5593 | ||
6dab073b MS |
5594 | cygwin* | mingw*) |
5595 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
5596 | # about 5 minutes as the teststring grows exponentially. | |
5597 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
5598 | # you end up with a "frozen" computer, even though with patience | |
5599 | # the test eventually succeeds (with a max line length of 256k). | |
5600 | # Instead, let's just punt: use the minimum linelength reported by | |
5601 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
5602 | lt_cv_sys_max_cmd_len=8192; | |
5603 | ;; | |
5604 | ||
5605 | amigaos*) | |
5606 | # On AmigaOS with pdksh, this test takes hours, literally. | |
5607 | # So we just punt and use a minimum line length of 8192. | |
5608 | lt_cv_sys_max_cmd_len=8192; | |
5609 | ;; | |
5610 | ||
5611 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
5612 | # This has been around since 386BSD, at least. Likely further. | |
5613 | if test -x /sbin/sysctl; then | |
5614 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
5615 | elif test -x /usr/sbin/sysctl; then | |
5616 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
5617 | else | |
1cf3d07d | 5618 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
6dab073b MS |
5619 | fi |
5620 | # And add a safety zone | |
5621 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5622 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5623 | ;; | |
1cf3d07d SE |
5624 | |
5625 | interix*) | |
5626 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
5627 | lt_cv_sys_max_cmd_len=196608 | |
5628 | ;; | |
5629 | ||
5630 | osf*) | |
5631 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
5632 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
5633 | # nice to cause kernel panics so lets avoid the loop below. | |
5634 | # First set a reasonable default. | |
5635 | lt_cv_sys_max_cmd_len=16384 | |
5636 | # | |
5637 | if test -x /sbin/sysconfig; then | |
5638 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
5639 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
5640 | esac | |
5641 | fi | |
5642 | ;; | |
5643 | sco3.2v5*) | |
5644 | lt_cv_sys_max_cmd_len=102400 | |
5645 | ;; | |
5646 | sysv5* | sco5v6* | sysv4.2uw2*) | |
5647 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
5648 | if test -n "$kargmax"; then | |
5649 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
5650 | else | |
5651 | lt_cv_sys_max_cmd_len=32768 | |
5652 | fi | |
5653 | ;; | |
5654 | *) | |
82a6cadf PB |
5655 | lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null` |
5656 | if test -n $lt_cv_sys_max_cmd_len; then | |
5657 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5658 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5659 | else | |
5660 | # Make teststring a little bigger before we do anything with it. | |
5661 | # a 1K string should be a reasonable start. | |
5662 | for i in 1 2 3 4 5 6 7 8 ; do | |
5663 | teststring=$teststring$teststring | |
5664 | done | |
5665 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
5666 | # If test is not a shell built-in, we'll probably end up computing a | |
5667 | # maximum length that is only half of the actual maximum length, but | |
5668 | # we can't tell. | |
5669 | while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ | |
5670 | = "XX$teststring$teststring"; } >/dev/null 2>&1 && | |
5671 | test $i != 17 # 1/2 MB should be enough | |
5672 | do | |
5673 | i=`expr $i + 1` | |
5674 | teststring=$teststring$teststring | |
5675 | done | |
5676 | # Only check the string length outside the loop. | |
5677 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
5678 | teststring= | |
5679 | # Add a significant safety factor because C++ compilers can tack on | |
5680 | # massive amounts of additional arguments before passing them to the | |
5681 | # linker. It appears as though 1/2 is a usable value. | |
5682 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
5683 | fi | |
1cf3d07d | 5684 | ;; |
6dab073b MS |
5685 | esac |
5686 | ||
5687 | fi | |
5688 | ||
1cf3d07d | 5689 | if test -n $lt_cv_sys_max_cmd_len ; then |
8a165db0 BK |
5690 | { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
5691 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } | |
6dab073b | 5692 | else |
8a165db0 BK |
5693 | { echo "$as_me:$LINENO: result: none" >&5 |
5694 | echo "${ECHO_T}none" >&6; } | |
6dab073b | 5695 | fi |
1cf3d07d | 5696 | max_cmd_len=$lt_cv_sys_max_cmd_len |
6dab073b MS |
5697 | |
5698 | ||
1cf3d07d SE |
5699 | |
5700 | ||
5701 | ||
5702 | ||
5703 | ||
5704 | : ${CP="cp -f"} | |
5705 | : ${MV="mv -f"} | |
5706 | : ${RM="rm -f"} | |
5707 | ||
8a165db0 BK |
5708 | { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 |
5709 | echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; } | |
1cf3d07d SE |
5710 | # Try some XSI features |
5711 | xsi_shell=no | |
5712 | ( _lt_dummy="a/b/c" | |
5713 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
5714 | = c,a/b,, ) >/dev/null 2>&1 \ | |
5715 | && xsi_shell=yes | |
8a165db0 BK |
5716 | { echo "$as_me:$LINENO: result: $xsi_shell" >&5 |
5717 | echo "${ECHO_T}$xsi_shell" >&6; } | |
1cf3d07d SE |
5718 | |
5719 | ||
8a165db0 BK |
5720 | { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 |
5721 | echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; } | |
1cf3d07d SE |
5722 | lt_shell_append=no |
5723 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
5724 | >/dev/null 2>&1 \ | |
5725 | && lt_shell_append=yes | |
8a165db0 BK |
5726 | { echo "$as_me:$LINENO: result: $lt_shell_append" >&5 |
5727 | echo "${ECHO_T}$lt_shell_append" >&6; } | |
1cf3d07d SE |
5728 | |
5729 | ||
5730 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
5731 | lt_unset=unset | |
3df64633 | 5732 | else |
1cf3d07d SE |
5733 | lt_unset=false |
5734 | fi | |
3df64633 | 5735 | |
3df64633 | 5736 | |
1cf3d07d SE |
5737 | |
5738 | ||
5739 | ||
5740 | # test EBCDIC or ASCII | |
5741 | case `echo X|tr X '\101'` in | |
5742 | A) # ASCII based system | |
5743 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
5744 | lt_SP2NL='tr \040 \012' | |
5745 | lt_NL2SP='tr \015\012 \040\040' | |
5746 | ;; | |
5747 | *) # EBCDIC based system | |
5748 | lt_SP2NL='tr \100 \n' | |
5749 | lt_NL2SP='tr \r\n \100\100' | |
3df64633 AO |
5750 | ;; |
5751 | esac | |
3df64633 | 5752 | |
1cf3d07d SE |
5753 | |
5754 | ||
5755 | ||
5756 | ||
5757 | ||
5758 | ||
5759 | ||
5760 | ||
8a165db0 BK |
5761 | { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
5762 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } | |
1cf3d07d SE |
5763 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
5764 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3df64633 | 5765 | else |
1cf3d07d | 5766 | lt_cv_ld_reload_flag='-r' |
3df64633 | 5767 | fi |
8a165db0 BK |
5768 | { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
5769 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } | |
1cf3d07d SE |
5770 | reload_flag=$lt_cv_ld_reload_flag |
5771 | case $reload_flag in | |
5772 | "" | " "*) ;; | |
5773 | *) reload_flag=" $reload_flag" ;; | |
5774 | esac | |
5775 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5776 | case $host_os in | |
5777 | darwin*) | |
5778 | if test "$GCC" = yes; then | |
5779 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
5780 | else | |
5781 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5782 | fi | |
5783 | ;; | |
5784 | esac | |
3df64633 | 5785 | |
1cf3d07d SE |
5786 | |
5787 | ||
5788 | ||
5789 | ||
5790 | ||
5791 | ||
5792 | ||
5793 | ||
5794 | ||
8a165db0 BK |
5795 | { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 |
5796 | echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; } | |
1cf3d07d | 5797 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
ff66d28f | 5798 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3df64633 | 5799 | else |
1cf3d07d SE |
5800 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
5801 | lt_cv_file_magic_test_file= | |
5802 | lt_cv_deplibs_check_method='unknown' | |
5803 | # Need to set the preceding variable on all platforms that support | |
5804 | # interlibrary dependencies. | |
5805 | # 'none' -- dependencies not supported. | |
5806 | # `unknown' -- same as none, but documents that we really don't know. | |
5807 | # 'pass_all' -- all dependencies passed with no checks. | |
5808 | # 'test_compile' -- check by making test program. | |
5809 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
5810 | # which responds to the $file_magic_cmd with a given extended regex. | |
5811 | # If you have `file' or equivalent on your system and you're not sure | |
5812 | # whether `pass_all' will *always* work, you probably want this one. | |
5813 | ||
5814 | case $host_os in | |
716e4bc6 | 5815 | aix[4-9]*) |
1cf3d07d SE |
5816 | lt_cv_deplibs_check_method=pass_all |
5817 | ;; | |
5818 | ||
5819 | beos*) | |
5820 | lt_cv_deplibs_check_method=pass_all | |
5821 | ;; | |
5822 | ||
5823 | bsdi[45]*) | |
5824 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
5825 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
5826 | lt_cv_file_magic_test_file=/shlib/libc.so | |
5827 | ;; | |
5828 | ||
5829 | cygwin*) | |
5830 | # func_win32_libid is a shell function defined in ltmain.sh | |
5831 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
5832 | lt_cv_file_magic_cmd='func_win32_libid' | |
5833 | ;; | |
5834 | ||
5835 | mingw* | pw32*) | |
5836 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
5837 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
5838 | # unless we find 'file', for example because we are cross-compiling. | |
5839 | if ( file / ) >/dev/null 2>&1; then | |
5840 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
5841 | lt_cv_file_magic_cmd='func_win32_libid' | |
5842 | else | |
5843 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
5844 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
5845 | fi | |
5846 | ;; | |
5847 | ||
5848 | darwin* | rhapsody*) | |
5849 | lt_cv_deplibs_check_method=pass_all | |
5850 | ;; | |
5851 | ||
5852 | freebsd* | dragonfly*) | |
5853 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5854 | case $host_cpu in | |
5855 | i*86 ) | |
5856 | # Not sure whether the presence of OpenBSD here was a mistake. | |
5857 | # Let's accept both of them until this is cleared up. | |
5858 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
5859 | lt_cv_file_magic_cmd=/usr/bin/file | |
5860 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
5861 | ;; | |
5862 | esac | |
5863 | else | |
5864 | lt_cv_deplibs_check_method=pass_all | |
5865 | fi | |
3df64633 | 5866 | ;; |
1cf3d07d SE |
5867 | |
5868 | gnu*) | |
5869 | lt_cv_deplibs_check_method=pass_all | |
3df64633 | 5870 | ;; |
1cf3d07d SE |
5871 | |
5872 | hpux10.20* | hpux11*) | |
5873 | lt_cv_file_magic_cmd=/usr/bin/file | |
5874 | case $host_cpu in | |
5875 | ia64*) | |
5876 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
5877 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
5878 | ;; | |
5879 | hppa*64*) | |
5880 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' | |
5881 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
5882 | ;; | |
3df64633 | 5883 | *) |
1cf3d07d SE |
5884 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
5885 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
5886 | ;; | |
5887 | esac | |
5888 | ;; | |
3df64633 | 5889 | |
1cf3d07d SE |
5890 | interix[3-9]*) |
5891 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
5892 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
5893 | ;; | |
3df64633 | 5894 | |
1cf3d07d SE |
5895 | irix5* | irix6* | nonstopux*) |
5896 | case $LD in | |
5897 | *-32|*"-32 ") libmagic=32-bit;; | |
5898 | *-n32|*"-n32 ") libmagic=N32;; | |
5899 | *-64|*"-64 ") libmagic=64-bit;; | |
5900 | *) libmagic=never-match;; | |
5901 | esac | |
5902 | lt_cv_deplibs_check_method=pass_all | |
3df64633 | 5903 | ;; |
3df64633 | 5904 | |
1cf3d07d SE |
5905 | # This must be Linux ELF. |
5906 | linux* | k*bsd*-gnu) | |
5907 | lt_cv_deplibs_check_method=pass_all | |
5908 | ;; | |
3df64633 | 5909 | |
1cf3d07d SE |
5910 | netbsd*) |
5911 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5912 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
3df64633 | 5913 | else |
1cf3d07d | 5914 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
3df64633 | 5915 | fi |
1cf3d07d SE |
5916 | ;; |
5917 | ||
5918 | newos6*) | |
5919 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
5920 | lt_cv_file_magic_cmd=/usr/bin/file | |
5921 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
5922 | ;; | |
5923 | ||
5924 | *nto* | *qnx*) | |
5925 | lt_cv_deplibs_check_method=pass_all | |
5926 | ;; | |
3df64633 | 5927 | |
1cf3d07d SE |
5928 | openbsd*) |
5929 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
5930 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
5931 | else | |
5932 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
3df64633 AO |
5933 | fi |
5934 | ;; | |
1cf3d07d SE |
5935 | |
5936 | osf3* | osf4* | osf5*) | |
5937 | lt_cv_deplibs_check_method=pass_all | |
5938 | ;; | |
5939 | ||
5940 | rdos*) | |
5941 | lt_cv_deplibs_check_method=pass_all | |
5942 | ;; | |
5943 | ||
5944 | solaris*) | |
5945 | lt_cv_deplibs_check_method=pass_all | |
5946 | ;; | |
5947 | ||
5948 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
5949 | lt_cv_deplibs_check_method=pass_all | |
5950 | ;; | |
5951 | ||
5952 | sysv4 | sysv4.3*) | |
5953 | case $host_vendor in | |
5954 | motorola) | |
5955 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' | |
5956 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
5957 | ;; | |
5958 | ncr) | |
5959 | lt_cv_deplibs_check_method=pass_all | |
5960 | ;; | |
5961 | sequent) | |
5962 | lt_cv_file_magic_cmd='/bin/file' | |
5963 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
5964 | ;; | |
5965 | sni) | |
5966 | lt_cv_file_magic_cmd='/bin/file' | |
5967 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
5968 | lt_cv_file_magic_test_file=/lib/libc.so | |
5969 | ;; | |
5970 | siemens) | |
5971 | lt_cv_deplibs_check_method=pass_all | |
5972 | ;; | |
5973 | pc) | |
5974 | lt_cv_deplibs_check_method=pass_all | |
5975 | ;; | |
5976 | esac | |
5977 | ;; | |
5978 | ||
5979 | tpf*) | |
5980 | lt_cv_deplibs_check_method=pass_all | |
5981 | ;; | |
3df64633 AO |
5982 | esac |
5983 | ||
1cf3d07d | 5984 | fi |
8a165db0 BK |
5985 | { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
5986 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } | |
1cf3d07d SE |
5987 | file_magic_cmd=$lt_cv_file_magic_cmd |
5988 | deplibs_check_method=$lt_cv_deplibs_check_method | |
5989 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
5990 | ||
5991 | ||
5992 | ||
5993 | ||
5994 | ||
5995 | ||
5996 | ||
5997 | ||
5998 | ||
5999 | ||
6000 | ||
6001 | ||
ff66d28f | 6002 | if test -n "$ac_tool_prefix"; then |
1cf3d07d SE |
6003 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
6004 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
8a165db0 BK |
6005 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6006 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1cf3d07d | 6007 | if test "${ac_cv_prog_AR+set}" = set; then |
ff66d28f | 6008 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3df64633 | 6009 | else |
1cf3d07d SE |
6010 | if test -n "$AR"; then |
6011 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
3df64633 | 6012 | else |
ff66d28f PE |
6013 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6014 | for as_dir in $PATH | |
6015 | do | |
6016 | IFS=$as_save_IFS | |
6017 | test -z "$as_dir" && as_dir=. | |
6018 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8a165db0 | 6019 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1cf3d07d | 6020 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
ff66d28f PE |
6021 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6022 | break 2 | |
6023 | fi | |
6024 | done | |
6025 | done | |
8a165db0 | 6026 | IFS=$as_save_IFS |
ff66d28f | 6027 | |
3df64633 AO |
6028 | fi |
6029 | fi | |
1cf3d07d SE |
6030 | AR=$ac_cv_prog_AR |
6031 | if test -n "$AR"; then | |
8a165db0 BK |
6032 | { echo "$as_me:$LINENO: result: $AR" >&5 |
6033 | echo "${ECHO_T}$AR" >&6; } | |
3df64633 | 6034 | else |
8a165db0 BK |
6035 | { echo "$as_me:$LINENO: result: no" >&5 |
6036 | echo "${ECHO_T}no" >&6; } | |
3df64633 AO |
6037 | fi |
6038 | ||
8a165db0 | 6039 | |
ff66d28f | 6040 | fi |
1cf3d07d SE |
6041 | if test -z "$ac_cv_prog_AR"; then |
6042 | ac_ct_AR=$AR | |
6043 | # Extract the first word of "ar", so it can be a program name with args. | |
6044 | set dummy ar; ac_word=$2 | |
8a165db0 BK |
6045 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6046 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1cf3d07d | 6047 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
ff66d28f | 6048 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3df64633 | 6049 | else |
1cf3d07d SE |
6050 | if test -n "$ac_ct_AR"; then |
6051 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
3df64633 | 6052 | else |
ff66d28f PE |
6053 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6054 | for as_dir in $PATH | |
6055 | do | |
6056 | IFS=$as_save_IFS | |
6057 | test -z "$as_dir" && as_dir=. | |
6058 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8a165db0 | 6059 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1cf3d07d | 6060 | ac_cv_prog_ac_ct_AR="ar" |
ff66d28f PE |
6061 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6062 | break 2 | |
6063 | fi | |
6064 | done | |
6065 | done | |
8a165db0 | 6066 | IFS=$as_save_IFS |
ff66d28f | 6067 | |
3df64633 AO |
6068 | fi |
6069 | fi | |
1cf3d07d SE |
6070 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
6071 | if test -n "$ac_ct_AR"; then | |
8a165db0 BK |
6072 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
6073 | echo "${ECHO_T}$ac_ct_AR" >&6; } | |
3df64633 | 6074 | else |
8a165db0 BK |
6075 | { echo "$as_me:$LINENO: result: no" >&5 |
6076 | echo "${ECHO_T}no" >&6; } | |
3df64633 AO |
6077 | fi |
6078 | ||
8a165db0 BK |
6079 | if test "x$ac_ct_AR" = x; then |
6080 | AR="false" | |
6081 | else | |
6082 | case $cross_compiling:$ac_tool_warned in | |
6083 | yes:) | |
6084 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
6085 | whose name does not start with the host triplet. If you think this | |
6086 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
6087 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
6088 | whose name does not start with the host triplet. If you think this | |
6089 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
6090 | ac_tool_warned=yes ;; | |
6091 | esac | |
6092 | AR=$ac_ct_AR | |
6093 | fi | |
3df64633 | 6094 | else |
1cf3d07d | 6095 | AR="$ac_cv_prog_AR" |
3df64633 AO |
6096 | fi |
6097 | ||
1cf3d07d SE |
6098 | test -z "$AR" && AR=ar |
6099 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
6100 | ||
6101 | ||
6102 | ||
6103 | ||
6104 | ||
6105 | ||
6106 | ||
6107 | ||
6108 | ||
6109 | ||
6110 | ||
ff66d28f PE |
6111 | if test -n "$ac_tool_prefix"; then |
6112 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
3df64633 | 6113 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
8a165db0 BK |
6114 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6115 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ff66d28f PE |
6116 | if test "${ac_cv_prog_STRIP+set}" = set; then |
6117 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3df64633 AO |
6118 | else |
6119 | if test -n "$STRIP"; then | |
6120 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
6121 | else | |
ff66d28f PE |
6122 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6123 | for as_dir in $PATH | |
6124 | do | |
6125 | IFS=$as_save_IFS | |
6126 | test -z "$as_dir" && as_dir=. | |
6127 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8a165db0 | 6128 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ff66d28f PE |
6129 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
6130 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6131 | break 2 | |
6132 | fi | |
6133 | done | |
6134 | done | |
8a165db0 | 6135 | IFS=$as_save_IFS |
ff66d28f | 6136 | |
3df64633 AO |
6137 | fi |
6138 | fi | |
ff66d28f | 6139 | STRIP=$ac_cv_prog_STRIP |
3df64633 | 6140 | if test -n "$STRIP"; then |
8a165db0 BK |
6141 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
6142 | echo "${ECHO_T}$STRIP" >&6; } | |
3df64633 | 6143 | else |
8a165db0 BK |
6144 | { echo "$as_me:$LINENO: result: no" >&5 |
6145 | echo "${ECHO_T}no" >&6; } | |
3df64633 AO |
6146 | fi |
6147 | ||
8a165db0 | 6148 | |
ff66d28f | 6149 | fi |
3df64633 | 6150 | if test -z "$ac_cv_prog_STRIP"; then |
ff66d28f | 6151 | ac_ct_STRIP=$STRIP |
3df64633 AO |
6152 | # Extract the first word of "strip", so it can be a program name with args. |
6153 | set dummy strip; ac_word=$2 | |
8a165db0 BK |
6154 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6155 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ff66d28f PE |
6156 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
6157 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3df64633 | 6158 | else |
ff66d28f PE |
6159 | if test -n "$ac_ct_STRIP"; then |
6160 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
3df64633 | 6161 | else |
ff66d28f PE |
6162 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6163 | for as_dir in $PATH | |
6164 | do | |
6165 | IFS=$as_save_IFS | |
6166 | test -z "$as_dir" && as_dir=. | |
6167 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8a165db0 | 6168 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ff66d28f PE |
6169 | ac_cv_prog_ac_ct_STRIP="strip" |
6170 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6171 | break 2 | |
6172 | fi | |
6173 | done | |
6174 | done | |
8a165db0 | 6175 | IFS=$as_save_IFS |
ff66d28f | 6176 | |
3df64633 AO |
6177 | fi |
6178 | fi | |
ff66d28f PE |
6179 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
6180 | if test -n "$ac_ct_STRIP"; then | |
8a165db0 BK |
6181 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
6182 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } | |
3df64633 | 6183 | else |
8a165db0 BK |
6184 | { echo "$as_me:$LINENO: result: no" >&5 |
6185 | echo "${ECHO_T}no" >&6; } | |
3df64633 AO |
6186 | fi |
6187 | ||
8a165db0 BK |
6188 | if test "x$ac_ct_STRIP" = x; then |
6189 | STRIP=":" | |
6190 | else | |
6191 | case $cross_compiling:$ac_tool_warned in | |
6192 | yes:) | |
6193 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
6194 | whose name does not start with the host triplet. If you think this | |
6195 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
6196 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
6197 | whose name does not start with the host triplet. If you think this | |
6198 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
6199 | ac_tool_warned=yes ;; | |
6200 | esac | |
6201 | STRIP=$ac_ct_STRIP | |
6202 | fi | |
3df64633 | 6203 | else |
ff66d28f | 6204 | STRIP="$ac_cv_prog_STRIP" |
3df64633 AO |
6205 | fi |
6206 | ||
1cf3d07d | 6207 | test -z "$STRIP" && STRIP=: |
b2dad0e3 | 6208 | |
ff66d28f | 6209 | |
3840fa2a | 6210 | |
3840fa2a | 6211 | |
b2dad0e3 | 6212 | |
ff66d28f | 6213 | |
1cf3d07d SE |
6214 | if test -n "$ac_tool_prefix"; then |
6215 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6216 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
8a165db0 BK |
6217 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6218 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1cf3d07d SE |
6219 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
6220 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3df64633 | 6221 | else |
1cf3d07d SE |
6222 | if test -n "$RANLIB"; then |
6223 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6224 | else | |
6225 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6226 | for as_dir in $PATH | |
6227 | do | |
6228 | IFS=$as_save_IFS | |
6229 | test -z "$as_dir" && as_dir=. | |
6230 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8a165db0 | 6231 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1cf3d07d SE |
6232 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
6233 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6234 | break 2 | |
b2dad0e3 | 6235 | fi |
1cf3d07d SE |
6236 | done |
6237 | done | |
8a165db0 | 6238 | IFS=$as_save_IFS |
b2dad0e3 | 6239 | |
1cf3d07d SE |
6240 | fi |
6241 | fi | |
6242 | RANLIB=$ac_cv_prog_RANLIB | |
6243 | if test -n "$RANLIB"; then | |
8a165db0 BK |
6244 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
6245 | echo "${ECHO_T}$RANLIB" >&6; } | |
1cf3d07d | 6246 | else |
8a165db0 BK |
6247 | { echo "$as_me:$LINENO: result: no" >&5 |
6248 | echo "${ECHO_T}no" >&6; } | |
1cf3d07d | 6249 | fi |
38cca750 | 6250 | |
8a165db0 | 6251 | |
1cf3d07d SE |
6252 | fi |
6253 | if test -z "$ac_cv_prog_RANLIB"; then | |
6254 | ac_ct_RANLIB=$RANLIB | |
6255 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6256 | set dummy ranlib; ac_word=$2 | |
8a165db0 BK |
6257 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6258 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1cf3d07d SE |
6259 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
6260 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6261 | else | |
6262 | if test -n "$ac_ct_RANLIB"; then | |
6263 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6264 | else | |
6265 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6266 | for as_dir in $PATH | |
6267 | do | |
6268 | IFS=$as_save_IFS | |
6269 | test -z "$as_dir" && as_dir=. | |
6270 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8a165db0 | 6271 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1cf3d07d SE |
6272 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
6273 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6274 | break 2 | |
162c7cd9 | 6275 | fi |
1cf3d07d SE |
6276 | done |
6277 | done | |
8a165db0 | 6278 | IFS=$as_save_IFS |
162c7cd9 | 6279 | |
1cf3d07d SE |
6280 | fi |
6281 | fi | |
6282 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
6283 | if test -n "$ac_ct_RANLIB"; then | |
8a165db0 BK |
6284 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
6285 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } | |
b2dad0e3 | 6286 | else |
8a165db0 BK |
6287 | { echo "$as_me:$LINENO: result: no" >&5 |
6288 | echo "${ECHO_T}no" >&6; } | |
1cf3d07d | 6289 | fi |
ff66d28f | 6290 | |
8a165db0 BK |
6291 | if test "x$ac_ct_RANLIB" = x; then |
6292 | RANLIB=":" | |
6293 | else | |
6294 | case $cross_compiling:$ac_tool_warned in | |
6295 | yes:) | |
6296 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
6297 | whose name does not start with the host triplet. If you think this | |
6298 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
6299 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
6300 | whose name does not start with the host triplet. If you think this | |
6301 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
6302 | ac_tool_warned=yes ;; | |
6303 | esac | |
6304 | RANLIB=$ac_ct_RANLIB | |
6305 | fi | |
1cf3d07d SE |
6306 | else |
6307 | RANLIB="$ac_cv_prog_RANLIB" | |
6308 | fi | |
ff66d28f | 6309 | |
1cf3d07d | 6310 | test -z "$RANLIB" && RANLIB=: |
ff66d28f | 6311 | |
1cf3d07d SE |
6312 | |
6313 | ||
6314 | ||
6315 | ||
6316 | ||
6317 | # Determine commands to create old-style static archives. | |
6318 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' | |
6319 | old_postinstall_cmds='chmod 644 $oldlib' | |
6320 | old_postuninstall_cmds= | |
6321 | ||
6322 | if test -n "$RANLIB"; then | |
6323 | case $host_os in | |
6324 | openbsd*) | |
6325 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
6326 | ;; | |
6327 | *) | |
6328 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
6329 | ;; | |
6330 | esac | |
6331 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
6332 | fi | |
6333 | ||
6334 | ||
6335 | ||
6336 | ||
6337 | ||
6338 | ||
6339 | ||
6340 | ||
6341 | ||
6342 | ||
6343 | ||
6344 | ||
6345 | ||
6346 | ||
6347 | ||
6348 | ||
6349 | ||
6350 | ||
6351 | ||
6352 | ||
6353 | ||
6354 | ||
6355 | ||
6356 | ||
6357 | ||
6358 | ||
6359 | ||
6360 | ||
6361 | ||
6362 | ||
6363 | ||
6364 | ||
6365 | ||
6366 | ||
6367 | # If no C compiler was specified, use CC. | |
6368 | LTCC=${LTCC-"$CC"} | |
6369 | ||
6370 | # If no C compiler flags were specified, use CFLAGS. | |
6371 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
6372 | ||
6373 | # Allow CC to be a program name with arguments. | |
6374 | compiler=$CC | |
6375 | ||
6376 | ||
6377 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
8a165db0 BK |
6378 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
6379 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } | |
1cf3d07d SE |
6380 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
6381 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6382 | else | |
6383 | ||
6384 | # These are sane defaults that work on at least a few old systems. | |
6385 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
6386 | ||
6387 | # Character class describing NM global symbol codes. | |
6388 | symcode='[BCDEGRST]' | |
6389 | ||
6390 | # Regexp to match symbols that can be accessed directly from C. | |
6391 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
6392 | ||
6393 | # Define system-specific variables. | |
6394 | case $host_os in | |
6395 | aix*) | |
6396 | symcode='[BCDT]' | |
6397 | ;; | |
6398 | cygwin* | mingw* | pw32*) | |
6399 | symcode='[ABCDGISTW]' | |
6400 | ;; | |
6401 | hpux*) | |
6402 | if test "$host_cpu" = ia64; then | |
6403 | symcode='[ABCDEGRST]' | |
6404 | fi | |
6405 | ;; | |
6406 | irix* | nonstopux*) | |
6407 | symcode='[BCDEGRST]' | |
6408 | ;; | |
6409 | osf*) | |
6410 | symcode='[BCDEGQRST]' | |
6411 | ;; | |
6412 | solaris*) | |
6413 | symcode='[BDRT]' | |
6414 | ;; | |
6415 | sco3.2v5*) | |
6416 | symcode='[DT]' | |
6417 | ;; | |
6418 | sysv4.2uw2*) | |
6419 | symcode='[DT]' | |
6420 | ;; | |
6421 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
6422 | symcode='[ABDT]' | |
6423 | ;; | |
6424 | sysv4) | |
6425 | symcode='[DFNSTU]' | |
6426 | ;; | |
6427 | esac | |
6428 | ||
6429 | # If we're using GNU nm, then use its standard symbol codes. | |
6430 | case `$NM -V 2>&1` in | |
6431 | *GNU* | *'with BFD'*) | |
6432 | symcode='[ABCDGIRSTW]' ;; | |
6433 | esac | |
6434 | ||
6435 | # Transform an extracted symbol line into a proper C declaration. | |
6436 | # Some systems (esp. on ia64) link data and code symbols differently, | |
6437 | # so use this general approach. | |
6438 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
6439 | ||
6440 | # Transform an extracted symbol line into symbol name and symbol address | |
6441 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
6442 | ||
6443 | # Handle CRLF in mingw tool chain | |
6444 | opt_cr= | |
6445 | case $build_os in | |
6446 | mingw*) | |
6447 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
6448 | ;; | |
6449 | esac | |
6450 | ||
6451 | # Try without a prefix underscore, then with it. | |
6452 | for ac_symprfx in "" "_"; do | |
6453 | ||
6454 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
6455 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
6456 | ||
6457 | # Write the raw and C identifiers. | |
6458 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
6459 | # Fake it for dumpbin and say T for any non-static function | |
6460 | # and D for any global variable. | |
6461 | # Also find C++ and __fastcall symbols from MSVC++, | |
6462 | # which start with @ or ?. | |
6463 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
6464 | " {last_section=section; section=\$ 3};"\ | |
6465 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
6466 | " \$ 0!~/External *\|/{next};"\ | |
6467 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
6468 | " {if(hide[section]) next};"\ | |
6469 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
6470 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
6471 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
6472 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
6473 | " ' prfx=^$ac_symprfx" | |
6474 | else | |
6475 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
6476 | fi | |
6477 | ||
6478 | # Check to see that the pipe works correctly. | |
6479 | pipe_works=no | |
6480 | ||
6481 | rm -f conftest* | |
6482 | cat > conftest.$ac_ext <<_LT_EOF | |
6483 | #ifdef __cplusplus | |
6484 | extern "C" { | |
6485 | #endif | |
6486 | char nm_test_var; | |
6487 | void nm_test_func(void); | |
6488 | void nm_test_func(void){} | |
6489 | #ifdef __cplusplus | |
6490 | } | |
6491 | #endif | |
6492 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
6493 | _LT_EOF | |
6494 | ||
6495 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6496 | (eval $ac_compile) 2>&5 | |
6497 | ac_status=$? | |
6498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6499 | (exit $ac_status); }; then | |
6500 | # Now try to grab the symbols. | |
6501 | nlist=conftest.nm | |
6502 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 | |
6503 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | |
6504 | ac_status=$? | |
6505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6506 | (exit $ac_status); } && test -s "$nlist"; then | |
6507 | # Try sorting and uniquifying the output. | |
6508 | if sort "$nlist" | uniq > "$nlist"T; then | |
6509 | mv -f "$nlist"T "$nlist" | |
6510 | else | |
6511 | rm -f "$nlist"T | |
6512 | fi | |
6513 | ||
6514 | # Make sure that we snagged all the symbols we need. | |
6515 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
6516 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
6517 | cat <<_LT_EOF > conftest.$ac_ext | |
6518 | #ifdef __cplusplus | |
6519 | extern "C" { | |
6520 | #endif | |
6521 | ||
6522 | _LT_EOF | |
6523 | # Now generate the symbol file. | |
6524 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
6525 | ||
6526 | cat <<_LT_EOF >> conftest.$ac_ext | |
6527 | ||
6528 | /* The mapping between symbol names and symbols. */ | |
6529 | const struct { | |
6530 | const char *name; | |
6531 | void *address; | |
6532 | } | |
6533 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
6534 | { | |
6535 | { "@PROGRAM@", (void *) 0 }, | |
6536 | _LT_EOF | |
6537 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
6538 | cat <<\_LT_EOF >> conftest.$ac_ext | |
6539 | {0, (void *) 0} | |
6540 | }; | |
6541 | ||
6542 | /* This works around a problem in FreeBSD linker */ | |
6543 | #ifdef FREEBSD_WORKAROUND | |
6544 | static const void *lt_preloaded_setup() { | |
6545 | return lt__PROGRAM__LTX_preloaded_symbols; | |
6546 | } | |
6547 | #endif | |
6548 | ||
6549 | #ifdef __cplusplus | |
6550 | } | |
6551 | #endif | |
6552 | _LT_EOF | |
6553 | # Now try linking the two files. | |
6554 | mv conftest.$ac_objext conftstm.$ac_objext | |
6555 | lt_save_LIBS="$LIBS" | |
6556 | lt_save_CFLAGS="$CFLAGS" | |
6557 | LIBS="conftstm.$ac_objext" | |
6558 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
6559 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6560 | (eval $ac_link) 2>&5 | |
6561 | ac_status=$? | |
6562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6563 | (exit $ac_status); } && test -s conftest${ac_exeext}; then | |
6564 | pipe_works=yes | |
6565 | fi | |
6566 | LIBS="$lt_save_LIBS" | |
6567 | CFLAGS="$lt_save_CFLAGS" | |
6568 | else | |
6569 | echo "cannot find nm_test_func in $nlist" >&5 | |
6570 | fi | |
6571 | else | |
6572 | echo "cannot find nm_test_var in $nlist" >&5 | |
6573 | fi | |
6574 | else | |
6575 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
6576 | fi | |
6577 | else | |
6578 | echo "$progname: failed program was:" >&5 | |
6579 | cat conftest.$ac_ext >&5 | |
6580 | fi | |
6581 | rm -f conftest* conftst* | |
6582 | ||
6583 | # Do not use the global_symbol_pipe unless it works. | |
6584 | if test "$pipe_works" = yes; then | |
6585 | break | |
6586 | else | |
6587 | lt_cv_sys_global_symbol_pipe= | |
6588 | fi | |
6589 | done | |
6590 | ||
6591 | fi | |
6592 | ||
6593 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
6594 | lt_cv_sys_global_symbol_to_cdecl= | |
6595 | fi | |
6596 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
8a165db0 BK |
6597 | { echo "$as_me:$LINENO: result: failed" >&5 |
6598 | echo "${ECHO_T}failed" >&6; } | |
1cf3d07d | 6599 | else |
8a165db0 BK |
6600 | { echo "$as_me:$LINENO: result: ok" >&5 |
6601 | echo "${ECHO_T}ok" >&6; } | |
1cf3d07d SE |
6602 | fi |
6603 | ||
6604 | ||
6605 | ||
6606 | ||
6607 | ||
6608 | ||
6609 | ||
6610 | ||
6611 | ||
6612 | ||
6613 | ||
6614 | ||
6615 | ||
6616 | ||
6617 | ||
6618 | ||
6619 | ||
8a165db0 | 6620 | # Check whether --enable-libtool-lock was given. |
1cf3d07d | 6621 | if test "${enable_libtool_lock+set}" = set; then |
8a165db0 BK |
6622 | enableval=$enable_libtool_lock; |
6623 | fi | |
1cf3d07d | 6624 | |
1cf3d07d SE |
6625 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
6626 | ||
6627 | # Some flags need to be propagated to the compiler or linker for good | |
6628 | # libtool support. | |
6629 | case $host in | |
6630 | ia64-*-hpux*) | |
6631 | # Find out which ABI we are using. | |
6632 | echo 'int i;' > conftest.$ac_ext | |
6633 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6634 | (eval $ac_compile) 2>&5 | |
6635 | ac_status=$? | |
6636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6637 | (exit $ac_status); }; then | |
6638 | case `/usr/bin/file conftest.$ac_objext` in | |
6639 | *ELF-32*) | |
6640 | HPUX_IA64_MODE="32" | |
6641 | ;; | |
6642 | *ELF-64*) | |
6643 | HPUX_IA64_MODE="64" | |
6644 | ;; | |
6645 | esac | |
6646 | fi | |
6647 | rm -rf conftest* | |
6648 | ;; | |
6649 | *-*-irix6*) | |
6650 | # Find out which ABI we are using. | |
8a165db0 | 6651 | echo '#line 6651 "configure"' > conftest.$ac_ext |
1cf3d07d SE |
6652 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
6653 | (eval $ac_compile) 2>&5 | |
6654 | ac_status=$? | |
6655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6656 | (exit $ac_status); }; then | |
6657 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
6658 | case `/usr/bin/file conftest.$ac_objext` in | |
6659 | *32-bit*) | |
6660 | LD="${LD-ld} -melf32bsmip" | |
6661 | ;; | |
6662 | *N32*) | |
6663 | LD="${LD-ld} -melf32bmipn32" | |
6664 | ;; | |
6665 | *64-bit*) | |
6666 | LD="${LD-ld} -melf64bmip" | |
6667 | ;; | |
6668 | esac | |
6669 | else | |
6670 | case `/usr/bin/file conftest.$ac_objext` in | |
6671 | *32-bit*) | |
6672 | LD="${LD-ld} -32" | |
6673 | ;; | |
6674 | *N32*) | |
6675 | LD="${LD-ld} -n32" | |
6676 | ;; | |
6677 | *64-bit*) | |
6678 | LD="${LD-ld} -64" | |
6679 | ;; | |
6680 | esac | |
6681 | fi | |
6682 | fi | |
6683 | rm -rf conftest* | |
6684 | ;; | |
6685 | ||
6686 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ | |
6687 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
6688 | # Find out which ABI we are using. | |
6689 | echo 'int i;' > conftest.$ac_ext | |
6690 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6691 | (eval $ac_compile) 2>&5 | |
6692 | ac_status=$? | |
6693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6694 | (exit $ac_status); }; then | |
6695 | case `/usr/bin/file conftest.o` in | |
6696 | *32-bit*) | |
6697 | case $host in | |
6698 | x86_64-*kfreebsd*-gnu) | |
6699 | LD="${LD-ld} -m elf_i386_fbsd" | |
6700 | ;; | |
6701 | x86_64-*linux*) | |
6702 | LD="${LD-ld} -m elf_i386" | |
6703 | ;; | |
6704 | ppc64-*linux*|powerpc64-*linux*) | |
6705 | LD="${LD-ld} -m elf32ppclinux" | |
6706 | ;; | |
6707 | s390x-*linux*) | |
6708 | LD="${LD-ld} -m elf_s390" | |
6709 | ;; | |
6710 | sparc64-*linux*) | |
6711 | LD="${LD-ld} -m elf32_sparc" | |
6712 | ;; | |
6713 | esac | |
6714 | ;; | |
6715 | *64-bit*) | |
6716 | case $host in | |
6717 | x86_64-*kfreebsd*-gnu) | |
6718 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
6719 | ;; | |
6720 | x86_64-*linux*) | |
6721 | LD="${LD-ld} -m elf_x86_64" | |
6722 | ;; | |
6723 | ppc*-*linux*|powerpc*-*linux*) | |
6724 | LD="${LD-ld} -m elf64ppc" | |
6725 | ;; | |
6726 | s390*-*linux*|s390*-*tpf*) | |
6727 | LD="${LD-ld} -m elf64_s390" | |
6728 | ;; | |
6729 | sparc*-*linux*) | |
6730 | LD="${LD-ld} -m elf64_sparc" | |
6731 | ;; | |
6732 | esac | |
6733 | ;; | |
6734 | esac | |
6735 | fi | |
6736 | rm -rf conftest* | |
6737 | ;; | |
6738 | ||
6739 | *-*-sco3.2v5*) | |
6740 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
6741 | SAVE_CFLAGS="$CFLAGS" | |
6742 | CFLAGS="$CFLAGS -belf" | |
8a165db0 BK |
6743 | { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
6744 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } | |
1cf3d07d SE |
6745 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
6746 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6747 | else | |
6748 | ac_ext=c | |
6749 | ac_cpp='$CPP $CPPFLAGS' | |
6750 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6751 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6752 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6753 | ||
6754 | if test x$gcc_no_link = xyes; then | |
6755 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
6756 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
6757 | { (exit 1); exit 1; }; } | |
6758 | fi | |
6759 | cat >conftest.$ac_ext <<_ACEOF | |
6760 | /* confdefs.h. */ | |
ff66d28f PE |
6761 | _ACEOF |
6762 | cat confdefs.h >>conftest.$ac_ext | |
6763 | cat >>conftest.$ac_ext <<_ACEOF | |
6764 | /* end confdefs.h. */ | |
3df64633 | 6765 | |
ff66d28f PE |
6766 | int |
6767 | main () | |
6768 | { | |
b2dad0e3 | 6769 | |
ff66d28f PE |
6770 | ; |
6771 | return 0; | |
6772 | } | |
6773 | _ACEOF | |
6774 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8a165db0 BK |
6775 | if { (ac_try="$ac_link" |
6776 | case "(($ac_try" in | |
6777 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6778 | *) ac_try_echo=$ac_try;; | |
6779 | esac | |
6780 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6781 | (eval "$ac_link") 2>conftest.er1 | |
ff66d28f | 6782 | ac_status=$? |
ec2075e9 BK |
6783 | grep -v '^ *+' conftest.er1 >conftest.err |
6784 | rm -f conftest.er1 | |
6785 | cat conftest.err >&5 | |
ff66d28f | 6786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8a165db0 BK |
6787 | (exit $ac_status); } && { |
6788 | test -z "$ac_c_werror_flag" || | |
6789 | test ! -s conftest.err | |
6790 | } && test -s conftest$ac_exeext && | |
6791 | $as_test_x conftest$ac_exeext; then | |
b2dad0e3 BK |
6792 | lt_cv_cc_needs_belf=yes |
6793 | else | |
ff66d28f PE |
6794 | echo "$as_me: failed program was:" >&5 |
6795 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6796 | ||
8a165db0 | 6797 | lt_cv_cc_needs_belf=no |
b2dad0e3 | 6798 | fi |
8a165db0 BK |
6799 | |
6800 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
ec2075e9 | 6801 | conftest$ac_exeext conftest.$ac_ext |
3df64633 | 6802 | ac_ext=c |
3df64633 | 6803 | ac_cpp='$CPP $CPPFLAGS' |
ff66d28f PE |
6804 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6805 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6806 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3df64633 | 6807 | |
b2dad0e3 | 6808 | fi |
8a165db0 BK |
6809 | { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
6810 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } | |
b2dad0e3 BK |
6811 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
6812 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
6813 | CFLAGS="$SAVE_CFLAGS" | |
6814 | fi | |
6815 | ;; | |
1cf3d07d SE |
6816 | sparc*-*solaris*) |
6817 | # Find out which ABI we are using. | |
6818 | echo 'int i;' > conftest.$ac_ext | |
6819 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6820 | (eval $ac_compile) 2>&5 | |
6821 | ac_status=$? | |
6822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6823 | (exit $ac_status); }; then | |
6824 | case `/usr/bin/file conftest.o` in | |
6825 | *64-bit*) | |
6826 | case $lt_cv_prog_gnu_ld in | |
6827 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
6828 | *) LD="${LD-ld} -64" ;; | |
6829 | esac | |
6830 | ;; | |
6831 | esac | |
6832 | fi | |
6833 | rm -rf conftest* | |
6834 | ;; | |
b2dad0e3 BK |
6835 | esac |
6836 | ||
1cf3d07d | 6837 | need_locks="$enable_libtool_lock" |
b2dad0e3 | 6838 | |
8a165db0 BK |
6839 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
6840 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } | |
1cf3d07d SE |
6841 | if test "${ac_cv_header_stdc+set}" = set; then |
6842 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6843 | else | |
6844 | cat >conftest.$ac_ext <<_ACEOF | |
6845 | /* confdefs.h. */ | |
ff66d28f | 6846 | _ACEOF |
1cf3d07d SE |
6847 | cat confdefs.h >>conftest.$ac_ext |
6848 | cat >>conftest.$ac_ext <<_ACEOF | |
6849 | /* end confdefs.h. */ | |
6850 | #include <stdlib.h> | |
6851 | #include <stdarg.h> | |
6852 | #include <string.h> | |
6853 | #include <float.h> | |
ff66d28f | 6854 | |
1cf3d07d SE |
6855 | int |
6856 | main () | |
ff66d28f | 6857 | { |
1cf3d07d SE |
6858 | |
6859 | ; | |
6860 | return 0; | |
6861 | } | |
6862 | _ACEOF | |
6863 | rm -f conftest.$ac_objext | |
8a165db0 BK |
6864 | if { (ac_try="$ac_compile" |
6865 | case "(($ac_try" in | |
6866 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6867 | *) ac_try_echo=$ac_try;; | |
6868 | esac | |
6869 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6870 | (eval "$ac_compile") 2>conftest.er1 | |
1cf3d07d SE |
6871 | ac_status=$? |
6872 | grep -v '^ *+' conftest.er1 >conftest.err | |
6873 | rm -f conftest.er1 | |
6874 | cat conftest.err >&5 | |
6875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8a165db0 BK |
6876 | (exit $ac_status); } && { |
6877 | test -z "$ac_c_werror_flag" || | |
6878 | test ! -s conftest.err | |
6879 | } && test -s conftest.$ac_objext; then | |
1cf3d07d SE |
6880 | ac_cv_header_stdc=yes |
6881 | else | |
6882 | echo "$as_me: failed program was:" >&5 | |
6883 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6884 | ||
8a165db0 | 6885 | ac_cv_header_stdc=no |
b2dad0e3 | 6886 | fi |
8a165db0 BK |
6887 | |
6888 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b2dad0e3 | 6889 | |
1cf3d07d SE |
6890 | if test $ac_cv_header_stdc = yes; then |
6891 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
6892 | cat >conftest.$ac_ext <<_ACEOF | |
6893 | /* confdefs.h. */ | |
6894 | _ACEOF | |
6895 | cat confdefs.h >>conftest.$ac_ext | |
6896 | cat >>conftest.$ac_ext <<_ACEOF | |
6897 | /* end confdefs.h. */ | |
6898 | #include <string.h> | |
b2dad0e3 | 6899 | |
1cf3d07d SE |
6900 | _ACEOF |
6901 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6902 | $EGREP "memchr" >/dev/null 2>&1; then | |
6903 | : | |
b2dad0e3 | 6904 | else |
1cf3d07d | 6905 | ac_cv_header_stdc=no |
b2dad0e3 | 6906 | fi |
1cf3d07d | 6907 | rm -f conftest* |
b2dad0e3 | 6908 | |
1cf3d07d | 6909 | fi |
b2dad0e3 | 6910 | |
1cf3d07d SE |
6911 | if test $ac_cv_header_stdc = yes; then |
6912 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
6913 | cat >conftest.$ac_ext <<_ACEOF | |
6914 | /* confdefs.h. */ | |
6915 | _ACEOF | |
6916 | cat confdefs.h >>conftest.$ac_ext | |
6917 | cat >>conftest.$ac_ext <<_ACEOF | |
6918 | /* end confdefs.h. */ | |
6919 | #include <stdlib.h> | |
b2dad0e3 | 6920 | |
1cf3d07d SE |
6921 | _ACEOF |
6922 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6923 | $EGREP "free" >/dev/null 2>&1; then | |
6924 | : | |
6925 | else | |
6926 | ac_cv_header_stdc=no | |
6927 | fi | |
6928 | rm -f conftest* | |
b2dad0e3 | 6929 | |
1cf3d07d | 6930 | fi |
b2dad0e3 | 6931 | |
1cf3d07d SE |
6932 | if test $ac_cv_header_stdc = yes; then |
6933 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
6934 | if test "$cross_compiling" = yes; then | |
6935 | : | |
ff66d28f | 6936 | else |
ff66d28f | 6937 | cat >conftest.$ac_ext <<_ACEOF |
ff66d28f PE |
6938 | /* confdefs.h. */ |
6939 | _ACEOF | |
6940 | cat confdefs.h >>conftest.$ac_ext | |
6941 | cat >>conftest.$ac_ext <<_ACEOF | |
6942 | /* end confdefs.h. */ | |
1cf3d07d | 6943 | #include <ctype.h> |
8a165db0 | 6944 | #include <stdlib.h> |
1cf3d07d SE |
6945 | #if ((' ' & 0x0FF) == 0x020) |
6946 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
6947 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
ff66d28f | 6948 | #else |
1cf3d07d SE |
6949 | # define ISLOWER(c) \ |
6950 | (('a' <= (c) && (c) <= 'i') \ | |
6951 | || ('j' <= (c) && (c) <= 'r') \ | |
6952 | || ('s' <= (c) && (c) <= 'z')) | |
6953 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
ff66d28f | 6954 | #endif |
1cf3d07d SE |
6955 | |
6956 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
6957 | int | |
6958 | main () | |
6959 | { | |
6960 | int i; | |
6961 | for (i = 0; i < 256; i++) | |
6962 | if (XOR (islower (i), ISLOWER (i)) | |
6963 | || toupper (i) != TOUPPER (i)) | |
8a165db0 BK |
6964 | return 2; |
6965 | return 0; | |
1cf3d07d | 6966 | } |
ff66d28f | 6967 | _ACEOF |
1cf3d07d | 6968 | rm -f conftest$ac_exeext |
8a165db0 BK |
6969 | if { (ac_try="$ac_link" |
6970 | case "(($ac_try" in | |
6971 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6972 | *) ac_try_echo=$ac_try;; | |
6973 | esac | |
6974 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6975 | (eval "$ac_link") 2>&5 | |
ff66d28f | 6976 | ac_status=$? |
ff66d28f | 6977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1cf3d07d | 6978 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
8a165db0 BK |
6979 | { (case "(($ac_try" in |
6980 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6981 | *) ac_try_echo=$ac_try;; | |
6982 | esac | |
6983 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6984 | (eval "$ac_try") 2>&5 | |
1cf3d07d SE |
6985 | ac_status=$? |
6986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6987 | (exit $ac_status); }; }; then | |
ff66d28f PE |
6988 | : |
6989 | else | |
1cf3d07d SE |
6990 | echo "$as_me: program exited with status $ac_status" >&5 |
6991 | echo "$as_me: failed program was:" >&5 | |
ff66d28f PE |
6992 | sed 's/^/| /' conftest.$ac_ext >&5 |
6993 | ||
1cf3d07d SE |
6994 | ( exit $ac_status ) |
6995 | ac_cv_header_stdc=no | |
6996 | fi | |
8a165db0 | 6997 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
1cf3d07d | 6998 | fi |
8a165db0 BK |
6999 | |
7000 | ||
1cf3d07d SE |
7001 | fi |
7002 | fi | |
8a165db0 BK |
7003 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
7004 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } | |
1cf3d07d SE |
7005 | if test $ac_cv_header_stdc = yes; then |
7006 | ||
7007 | cat >>confdefs.h <<\_ACEOF | |
7008 | #define STDC_HEADERS 1 | |
7009 | _ACEOF | |
7010 | ||
7011 | fi | |
7012 | ||
7013 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
7014 | ||
7015 | ||
7016 | ||
7017 | ||
7018 | ||
7019 | ||
7020 | ||
7021 | ||
7022 | ||
7023 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
7024 | inttypes.h stdint.h unistd.h | |
7025 | do | |
7026 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
8a165db0 BK |
7027 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7028 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7029 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
1cf3d07d SE |
7030 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7031 | else | |
7032 | cat >conftest.$ac_ext <<_ACEOF | |
7033 | /* confdefs.h. */ | |
7034 | _ACEOF | |
7035 | cat confdefs.h >>conftest.$ac_ext | |
7036 | cat >>conftest.$ac_ext <<_ACEOF | |
7037 | /* end confdefs.h. */ | |
7038 | $ac_includes_default | |
7039 | ||
7040 | #include <$ac_header> | |
7041 | _ACEOF | |
7042 | rm -f conftest.$ac_objext | |
8a165db0 BK |
7043 | if { (ac_try="$ac_compile" |
7044 | case "(($ac_try" in | |
7045 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7046 | *) ac_try_echo=$ac_try;; | |
7047 | esac | |
7048 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7049 | (eval "$ac_compile") 2>conftest.er1 | |
1cf3d07d SE |
7050 | ac_status=$? |
7051 | grep -v '^ *+' conftest.er1 >conftest.err | |
7052 | rm -f conftest.er1 | |
7053 | cat conftest.err >&5 | |
7054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8a165db0 BK |
7055 | (exit $ac_status); } && { |
7056 | test -z "$ac_c_werror_flag" || | |
7057 | test ! -s conftest.err | |
7058 | } && test -s conftest.$ac_objext; then | |
1cf3d07d SE |
7059 | eval "$as_ac_Header=yes" |
7060 | else | |
7061 | echo "$as_me: failed program was:" >&5 | |
7062 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7063 | ||
8a165db0 | 7064 | eval "$as_ac_Header=no" |
1cf3d07d | 7065 | fi |
8a165db0 BK |
7066 | |
7067 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1cf3d07d | 7068 | fi |
8a165db0 BK |
7069 | ac_res=`eval echo '${'$as_ac_Header'}'` |
7070 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7071 | echo "${ECHO_T}$ac_res" >&6; } | |
1cf3d07d SE |
7072 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
7073 | cat >>confdefs.h <<_ACEOF | |
7074 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7075 | _ACEOF | |
7076 | ||
7077 | fi | |
7078 | ||
7079 | done | |
7080 | ||
7081 | ||
7082 | ||
7083 | for ac_header in dlfcn.h | |
7084 | do | |
7085 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
8a165db0 BK |
7086 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7087 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7088 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
1cf3d07d SE |
7089 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7090 | else | |
7091 | cat >conftest.$ac_ext <<_ACEOF | |
7092 | /* confdefs.h. */ | |
7093 | _ACEOF | |
7094 | cat confdefs.h >>conftest.$ac_ext | |
7095 | cat >>conftest.$ac_ext <<_ACEOF | |
7096 | /* end confdefs.h. */ | |
7097 | $ac_includes_default | |
7098 | ||
7099 | #include <$ac_header> | |
7100 | _ACEOF | |
7101 | rm -f conftest.$ac_objext | |
8a165db0 BK |
7102 | if { (ac_try="$ac_compile" |
7103 | case "(($ac_try" in | |
7104 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7105 | *) ac_try_echo=$ac_try;; | |
7106 | esac | |
7107 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7108 | (eval "$ac_compile") 2>conftest.er1 | |
1cf3d07d SE |
7109 | ac_status=$? |
7110 | grep -v '^ *+' conftest.er1 >conftest.err | |
7111 | rm -f conftest.er1 | |
7112 | cat conftest.err >&5 | |
7113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8a165db0 BK |
7114 | (exit $ac_status); } && { |
7115 | test -z "$ac_c_werror_flag" || | |
7116 | test ! -s conftest.err | |
7117 | } && test -s conftest.$ac_objext; then | |
1cf3d07d SE |
7118 | eval "$as_ac_Header=yes" |
7119 | else | |
7120 | echo "$as_me: failed program was:" >&5 | |
7121 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7122 | ||
8a165db0 | 7123 | eval "$as_ac_Header=no" |
1cf3d07d | 7124 | fi |
8a165db0 BK |
7125 | |
7126 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1cf3d07d | 7127 | fi |
8a165db0 BK |
7128 | ac_res=`eval echo '${'$as_ac_Header'}'` |
7129 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7130 | echo "${ECHO_T}$ac_res" >&6; } | |
1cf3d07d SE |
7131 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
7132 | cat >>confdefs.h <<_ACEOF | |
7133 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7134 | _ACEOF | |
7135 | ||
7136 | fi | |
7137 | ||
7138 | done | |
7139 | ||
7140 | ||
7141 | ||
8a165db0 | 7142 | ac_ext=cpp |
1cf3d07d SE |
7143 | ac_cpp='$CXXCPP $CPPFLAGS' |
7144 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7145 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7146 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
8a165db0 BK |
7147 | if test -z "$CXX"; then |
7148 | if test -n "$CCC"; then | |
7149 | CXX=$CCC | |
7150 | else | |
7151 | if test -n "$ac_tool_prefix"; then | |
7152 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
1cf3d07d SE |
7153 | do |
7154 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
7155 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
8a165db0 BK |
7156 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7157 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1cf3d07d SE |
7158 | if test "${glibcxx_cv_prog_CXX+set}" = set; then |
7159 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7160 | else | |
7161 | if test -n "$CXX"; then | |
7162 | glibcxx_cv_prog_CXX="$CXX" # Let the user override the test. | |
7163 | else | |
7164 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7165 | for as_dir in $PATH | |
7166 | do | |
7167 | IFS=$as_save_IFS | |
7168 | test -z "$as_dir" && as_dir=. | |
7169 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8a165db0 | 7170 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1cf3d07d SE |
7171 | glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
7172 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7173 | break 2 | |
7174 | fi | |
7175 | done | |
7176 | done | |
8a165db0 | 7177 | IFS=$as_save_IFS |
1cf3d07d SE |
7178 | |
7179 | fi | |
7180 | fi | |
7181 | CXX=$glibcxx_cv_prog_CXX | |
7182 | if test -n "$CXX"; then | |
8a165db0 BK |
7183 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
7184 | echo "${ECHO_T}$CXX" >&6; } | |
1cf3d07d | 7185 | else |
8a165db0 BK |
7186 | { echo "$as_me:$LINENO: result: no" >&5 |
7187 | echo "${ECHO_T}no" >&6; } | |
1cf3d07d SE |
7188 | fi |
7189 | ||
8a165db0 | 7190 | |
1cf3d07d SE |
7191 | test -n "$CXX" && break |
7192 | done | |
7193 | fi | |
7194 | if test -z "$CXX"; then | |
7195 | ac_ct_CXX=$CXX | |
8a165db0 | 7196 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
1cf3d07d SE |
7197 | do |
7198 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
7199 | set dummy $ac_prog; ac_word=$2 | |
8a165db0 BK |
7200 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7201 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1cf3d07d SE |
7202 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
7203 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7204 | else | |
7205 | if test -n "$ac_ct_CXX"; then | |
7206 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
7207 | else | |
7208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7209 | for as_dir in $PATH | |
7210 | do | |
7211 | IFS=$as_save_IFS | |
7212 | test -z "$as_dir" && as_dir=. | |
7213 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8a165db0 | 7214 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1cf3d07d SE |
7215 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
7216 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7217 | break 2 | |
7218 | fi | |
7219 | done | |
7220 | done | |
8a165db0 | 7221 | IFS=$as_save_IFS |
1cf3d07d SE |
7222 | |
7223 | fi | |
7224 | fi | |
7225 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
7226 | if test -n "$ac_ct_CXX"; then | |
8a165db0 BK |
7227 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
7228 | echo "${ECHO_T}$ac_ct_CXX" >&6; } | |
1cf3d07d | 7229 | else |
8a165db0 BK |
7230 | { echo "$as_me:$LINENO: result: no" >&5 |
7231 | echo "${ECHO_T}no" >&6; } | |
1cf3d07d SE |
7232 | fi |
7233 | ||
8a165db0 | 7234 | |
1cf3d07d SE |
7235 | test -n "$ac_ct_CXX" && break |
7236 | done | |
1cf3d07d | 7237 | |
8a165db0 BK |
7238 | if test "x$ac_ct_CXX" = x; then |
7239 | CXX="g++" | |
7240 | else | |
7241 | case $cross_compiling:$ac_tool_warned in | |
7242 | yes:) | |
7243 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
7244 | whose name does not start with the host triplet. If you think this | |
7245 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
7246 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
7247 | whose name does not start with the host triplet. If you think this | |
7248 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
7249 | ac_tool_warned=yes ;; | |
7250 | esac | |
7251 | CXX=$ac_ct_CXX | |
7252 | fi | |
1cf3d07d SE |
7253 | fi |
7254 | ||
8a165db0 BK |
7255 | fi |
7256 | fi | |
1cf3d07d | 7257 | # Provide some information about the compiler. |
8a165db0 | 7258 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
1cf3d07d | 7259 | ac_compiler=`set X $ac_compile; echo $2` |
8a165db0 BK |
7260 | { (ac_try="$ac_compiler --version >&5" |
7261 | case "(($ac_try" in | |
7262 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7263 | *) ac_try_echo=$ac_try;; | |
7264 | esac | |
7265 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7266 | (eval "$ac_compiler --version >&5") 2>&5 | |
1cf3d07d SE |
7267 | ac_status=$? |
7268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7269 | (exit $ac_status); } | |
8a165db0 BK |
7270 | { (ac_try="$ac_compiler -v >&5" |
7271 | case "(($ac_try" in | |
7272 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7273 | *) ac_try_echo=$ac_try;; | |
7274 | esac | |
7275 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7276 | (eval "$ac_compiler -v >&5") 2>&5 | |
1cf3d07d SE |
7277 | ac_status=$? |
7278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7279 | (exit $ac_status); } | |
8a165db0 BK |
7280 | { (ac_try="$ac_compiler -V >&5" |
7281 | case "(($ac_try" in | |
7282 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7283 | *) ac_try_echo=$ac_try;; | |
7284 | esac | |
7285 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7286 | (eval "$ac_compiler -V >&5") 2>&5 | |
1cf3d07d SE |
7287 | ac_status=$? |
7288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7289 | (exit $ac_status); } | |
7290 | ||
8a165db0 BK |
7291 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
7292 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } | |
1cf3d07d SE |
7293 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
7294 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7295 | else | |
7296 | cat >conftest.$ac_ext <<_ACEOF | |
7297 | /* confdefs.h. */ | |
7298 | _ACEOF | |
7299 | cat confdefs.h >>conftest.$ac_ext | |
7300 | cat >>conftest.$ac_ext <<_ACEOF | |
7301 | /* end confdefs.h. */ | |
7302 | ||
7303 | int | |
7304 | main () | |
7305 | { | |
7306 | #ifndef __GNUC__ | |
7307 | choke me | |
7308 | #endif | |
7309 | ||
7310 | ; | |
7311 | return 0; | |
7312 | } | |
7313 | _ACEOF | |
7314 | rm -f conftest.$ac_objext | |
8a165db0 BK |
7315 | if { (ac_try="$ac_compile" |
7316 | case "(($ac_try" in | |
7317 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7318 | *) ac_try_echo=$ac_try;; | |
7319 | esac | |
7320 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7321 | (eval "$ac_compile") 2>conftest.er1 | |
1cf3d07d SE |
7322 | ac_status=$? |
7323 | grep -v '^ *+' conftest.er1 >conftest.err | |
7324 | rm -f conftest.er1 | |
7325 | cat conftest.err >&5 | |
7326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8a165db0 BK |
7327 | (exit $ac_status); } && { |
7328 | test -z "$ac_cxx_werror_flag" || | |
7329 | test ! -s conftest.err | |
7330 | } && test -s conftest.$ac_objext; then | |
1cf3d07d SE |
7331 | ac_compiler_gnu=yes |
7332 | else | |
7333 | echo "$as_me: failed program was:" >&5 | |
7334 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7335 | ||
8a165db0 | 7336 | ac_compiler_gnu=no |
1cf3d07d | 7337 | fi |
8a165db0 BK |
7338 | |
7339 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1cf3d07d SE |
7340 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
7341 | ||
7342 | fi | |
8a165db0 BK |
7343 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
7344 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } | |
1cf3d07d SE |
7345 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
7346 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
7347 | ac_save_CXXFLAGS=$CXXFLAGS | |
8a165db0 BK |
7348 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
7349 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } | |
1cf3d07d SE |
7350 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
7351 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7352 | else | |
8a165db0 BK |
7353 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
7354 | ac_cxx_werror_flag=yes | |
7355 | ac_cv_prog_cxx_g=no | |
7356 | CXXFLAGS="-g" | |
7357 | cat >conftest.$ac_ext <<_ACEOF | |
1cf3d07d SE |
7358 | /* confdefs.h. */ |
7359 | _ACEOF | |
7360 | cat confdefs.h >>conftest.$ac_ext | |
7361 | cat >>conftest.$ac_ext <<_ACEOF | |
7362 | /* end confdefs.h. */ | |
7363 | ||
7364 | int | |
7365 | main () | |
7366 | { | |
7367 | ||
7368 | ; | |
7369 | return 0; | |
7370 | } | |
7371 | _ACEOF | |
7372 | rm -f conftest.$ac_objext | |
8a165db0 BK |
7373 | if { (ac_try="$ac_compile" |
7374 | case "(($ac_try" in | |
7375 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7376 | *) ac_try_echo=$ac_try;; | |
7377 | esac | |
7378 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7379 | (eval "$ac_compile") 2>conftest.er1 | |
1cf3d07d SE |
7380 | ac_status=$? |
7381 | grep -v '^ *+' conftest.er1 >conftest.err | |
7382 | rm -f conftest.er1 | |
7383 | cat conftest.err >&5 | |
7384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8a165db0 BK |
7385 | (exit $ac_status); } && { |
7386 | test -z "$ac_cxx_werror_flag" || | |
7387 | test ! -s conftest.err | |
7388 | } && test -s conftest.$ac_objext; then | |
1cf3d07d SE |
7389 | ac_cv_prog_cxx_g=yes |
7390 | else | |
7391 | echo "$as_me: failed program was:" >&5 | |
7392 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7393 | ||
8a165db0 BK |
7394 | CXXFLAGS="" |
7395 | cat >conftest.$ac_ext <<_ACEOF | |
1cf3d07d SE |
7396 | /* confdefs.h. */ |
7397 | _ACEOF | |
7398 | cat confdefs.h >>conftest.$ac_ext | |
7399 | cat >>conftest.$ac_ext <<_ACEOF | |
7400 | /* end confdefs.h. */ | |
8a165db0 | 7401 | |
1cf3d07d SE |
7402 | int |
7403 | main () | |
7404 | { | |
8a165db0 | 7405 | |
1cf3d07d SE |
7406 | ; |
7407 | return 0; | |
7408 | } | |
7409 | _ACEOF | |
7410 | rm -f conftest.$ac_objext | |
8a165db0 BK |
7411 | if { (ac_try="$ac_compile" |
7412 | case "(($ac_try" in | |
7413 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7414 | *) ac_try_echo=$ac_try;; | |
7415 | esac | |
7416 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7417 | (eval "$ac_compile") 2>conftest.er1 | |
1cf3d07d SE |
7418 | ac_status=$? |
7419 | grep -v '^ *+' conftest.er1 >conftest.err | |
7420 | rm -f conftest.er1 | |
7421 | cat conftest.err >&5 | |
7422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8a165db0 BK |
7423 | (exit $ac_status); } && { |
7424 | test -z "$ac_cxx_werror_flag" || | |
7425 | test ! -s conftest.err | |
7426 | } && test -s conftest.$ac_objext; then | |
1cf3d07d SE |
7427 | : |
7428 | else | |
7429 | echo "$as_me: failed program was:" >&5 | |
7430 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7431 | ||
8a165db0 BK |
7432 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
7433 | CXXFLAGS="-g" | |
7434 | cat >conftest.$ac_ext <<_ACEOF | |
1cf3d07d SE |
7435 | /* confdefs.h. */ |
7436 | _ACEOF | |
7437 | cat confdefs.h >>conftest.$ac_ext | |
7438 | cat >>conftest.$ac_ext <<_ACEOF | |
7439 | /* end confdefs.h. */ | |
8a165db0 | 7440 | |
1cf3d07d SE |
7441 | int |
7442 | main () | |
7443 | { | |
8a165db0 | 7444 | |
1cf3d07d SE |
7445 | ; |
7446 | return 0; | |
7447 | } | |
7448 | _ACEOF | |
7449 | rm -f conftest.$ac_objext | |
8a165db0 BK |
7450 | if { (ac_try="$ac_compile" |
7451 | case "(($ac_try" in | |
7452 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7453 | *) ac_try_echo=$ac_try;; | |
7454 | esac | |
7455 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7456 | (eval "$ac_compile") 2>conftest.er1 | |
1cf3d07d SE |
7457 | ac_status=$? |
7458 | grep -v '^ *+' conftest.er1 >conftest.err | |
7459 | rm -f conftest.er1 | |
7460 | cat conftest.err >&5 | |
7461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8a165db0 BK |
7462 | (exit $ac_status); } && { |
7463 | test -z "$ac_cxx_werror_flag" || | |
7464 | test ! -s conftest.err | |
7465 | } && test -s conftest.$ac_objext; then | |
7466 | ac_cv_prog_cxx_g=yes | |
1cf3d07d SE |
7467 | else |
7468 | echo "$as_me: failed program was:" >&5 | |
7469 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7470 | ||
8a165db0 | 7471 | |
1cf3d07d | 7472 | fi |
8a165db0 BK |
7473 | |
7474 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7475 | fi | |
7476 | ||
7477 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1cf3d07d SE |
7478 | fi |
7479 | ||
8a165db0 BK |
7480 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7481 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
7482 | fi | |
7483 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
7484 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } | |
7485 | if test "$ac_test_CXXFLAGS" = set; then | |
7486 | CXXFLAGS=$ac_save_CXXFLAGS | |
7487 | elif test $ac_cv_prog_cxx_g = yes; then | |
7488 | if test "$GXX" = yes; then | |
7489 | CXXFLAGS="-g -O2" | |
7490 | else | |
7491 | CXXFLAGS="-g" | |
7492 | fi | |
7493 | else | |
7494 | if test "$GXX" = yes; then | |
7495 | CXXFLAGS="-O2" | |
7496 | else | |
7497 | CXXFLAGS= | |
7498 | fi | |
7499 | fi | |
1cf3d07d SE |
7500 | ac_ext=c |
7501 | ac_cpp='$CPP $CPPFLAGS' | |
7502 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7503 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7504 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7505 | ||
7506 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && | |
7507 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | |
7508 | (test "X$CXX" != "Xg++"))) ; then | |
8a165db0 | 7509 | ac_ext=cpp |
1cf3d07d SE |
7510 | ac_cpp='$CXXCPP $CPPFLAGS' |
7511 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7512 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7513 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
8a165db0 BK |
7514 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
7515 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } | |
1cf3d07d SE |
7516 | if test -z "$CXXCPP"; then |
7517 | if test "${ac_cv_prog_CXXCPP+set}" = set; then | |
7518 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7519 | else | |
7520 | # Double quotes because CXXCPP needs to be expanded | |
7521 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
7522 | do | |
7523 | ac_preproc_ok=false | |
7524 | for ac_cxx_preproc_warn_flag in '' yes | |
7525 | do | |
7526 | # Use a header file that comes with gcc, so configuring glibc | |
7527 | # with a fresh cross-compiler works. | |
7528 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7529 | # <limits.h> exists even on freestanding compilers. | |
7530 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
7531 | # not just through cpp. "Syntax error" is here to catch this case. | |
7532 | cat >conftest.$ac_ext <<_ACEOF | |
7533 | /* confdefs.h. */ | |
7534 | _ACEOF | |
7535 | cat confdefs.h >>conftest.$ac_ext | |
7536 | cat >>conftest.$ac_ext <<_ACEOF | |
7537 | /* end confdefs.h. */ | |
7538 | #ifdef __STDC__ | |
7539 | # include <limits.h> | |
7540 | #else | |
7541 | # include <assert.h> | |
7542 | #endif | |
7543 | Syntax error | |
7544 | _ACEOF | |
8a165db0 BK |
7545 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7546 | case "(($ac_try" in | |
7547 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7548 | *) ac_try_echo=$ac_try;; | |
7549 | esac | |
7550 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7551 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
1cf3d07d SE |
7552 | ac_status=$? |
7553 | grep -v '^ *+' conftest.er1 >conftest.err | |
7554 | rm -f conftest.er1 | |
7555 | cat conftest.err >&5 | |
7556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8a165db0 BK |
7557 | (exit $ac_status); } >/dev/null && { |
7558 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
7559 | test ! -s conftest.err | |
7560 | }; then | |
1cf3d07d SE |
7561 | : |
7562 | else | |
7563 | echo "$as_me: failed program was:" >&5 | |
7564 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7565 | ||
7566 | # Broken: fails on valid input. | |
7567 | continue | |
7568 | fi | |
8a165db0 | 7569 | |
1cf3d07d SE |
7570 | rm -f conftest.err conftest.$ac_ext |
7571 | ||
8a165db0 | 7572 | # OK, works on sane cases. Now check whether nonexistent headers |
1cf3d07d SE |
7573 | # can be detected and how. |
7574 | cat >conftest.$ac_ext <<_ACEOF | |
7575 | /* confdefs.h. */ | |
7576 | _ACEOF | |
7577 | cat confdefs.h >>conftest.$ac_ext | |
7578 | cat >>conftest.$ac_ext <<_ACEOF | |
7579 | /* end confdefs.h. */ | |
7580 | #include <ac_nonexistent.h> | |
7581 | _ACEOF | |
8a165db0 BK |
7582 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7583 | case "(($ac_try" in | |
7584 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7585 | *) ac_try_echo=$ac_try;; | |
7586 | esac | |
7587 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7588 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
1cf3d07d SE |
7589 | ac_status=$? |
7590 | grep -v '^ *+' conftest.er1 >conftest.err | |
7591 | rm -f conftest.er1 | |
7592 | cat conftest.err >&5 | |
7593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8a165db0 BK |
7594 | (exit $ac_status); } >/dev/null && { |
7595 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
7596 | test ! -s conftest.err | |
7597 | }; then | |
1cf3d07d SE |
7598 | # Broken: success on invalid input. |
7599 | continue | |
7600 | else | |
7601 | echo "$as_me: failed program was:" >&5 | |
7602 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7603 | ||
7604 | # Passes both tests. | |
7605 | ac_preproc_ok=: | |
7606 | break | |
7607 | fi | |
8a165db0 | 7608 | |
1cf3d07d SE |
7609 | rm -f conftest.err conftest.$ac_ext |
7610 | ||
7611 | done | |
7612 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
7613 | rm -f conftest.err conftest.$ac_ext | |
7614 | if $ac_preproc_ok; then | |
7615 | break | |
7616 | fi | |
7617 | ||
7618 | done | |
7619 | ac_cv_prog_CXXCPP=$CXXCPP | |
7620 | ||
7621 | fi | |
7622 | CXXCPP=$ac_cv_prog_CXXCPP | |
7623 | else | |
7624 | ac_cv_prog_CXXCPP=$CXXCPP | |
7625 | fi | |
8a165db0 BK |
7626 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
7627 | echo "${ECHO_T}$CXXCPP" >&6; } | |
1cf3d07d SE |
7628 | ac_preproc_ok=false |
7629 | for ac_cxx_preproc_warn_flag in '' yes | |
7630 | do | |
7631 | # Use a header file that comes with gcc, so configuring glibc | |
7632 | # with a fresh cross-compiler works. | |
7633 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7634 | # <limits.h> exists even on freestanding compilers. | |
7635 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
7636 | # not just through cpp. "Syntax error" is here to catch this case. | |
7637 | cat >conftest.$ac_ext <<_ACEOF | |
7638 | /* confdefs.h. */ | |
7639 | _ACEOF | |
7640 | cat confdefs.h >>conftest.$ac_ext | |
7641 | cat >>conftest.$ac_ext <<_ACEOF | |
7642 | /* end confdefs.h. */ | |
7643 | #ifdef __STDC__ | |
7644 | # include <limits.h> | |
7645 | #else | |
7646 | # include <assert.h> | |
7647 | #endif | |
7648 | Syntax error | |
7649 | _ACEOF | |
8a165db0 BK |
7650 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7651 | case "(($ac_try" in | |
7652 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7653 | *) ac_try_echo=$ac_try;; | |
7654 | esac | |
7655 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7656 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
1cf3d07d SE |
7657 | ac_status=$? |
7658 | grep -v '^ *+' conftest.er1 >conftest.err | |
7659 | rm -f conftest.er1 | |
7660 | cat conftest.err >&5 | |
7661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8a165db0 BK |
7662 | (exit $ac_status); } >/dev/null && { |
7663 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
7664 | test ! -s conftest.err | |
7665 | }; then | |
1cf3d07d SE |
7666 | : |
7667 | else | |
7668 | echo "$as_me: failed program was:" >&5 | |
7669 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7670 | ||
7671 | # Broken: fails on valid input. | |
7672 | continue | |
7673 | fi | |
8a165db0 | 7674 | |
1cf3d07d SE |
7675 | rm -f conftest.err conftest.$ac_ext |
7676 | ||
8a165db0 | 7677 | # OK, works on sane cases. Now check whether nonexistent headers |
1cf3d07d SE |
7678 | # can be detected and how. |
7679 | cat >conftest.$ac_ext <<_ACEOF | |
7680 | /* confdefs.h. */ | |
7681 | _ACEOF | |
7682 | cat confdefs.h >>conftest.$ac_ext | |
7683 | cat >>conftest.$ac_ext <<_ACEOF | |
7684 | /* end confdefs.h. */ | |
7685 | #include <ac_nonexistent.h> | |
7686 | _ACEOF | |
8a165db0 BK |
7687 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7688 | case "(($ac_try" in | |
7689 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7690 | *) ac_try_echo=$ac_try;; | |
7691 | esac | |
7692 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7693 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
1cf3d07d SE |
7694 | ac_status=$? |
7695 | grep -v '^ *+' conftest.er1 >conftest.err | |
7696 | rm -f conftest.er1 | |
7697 | cat conftest.err >&5 | |
7698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8a165db0 BK |
7699 | (exit $ac_status); } >/dev/null && { |
7700 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
7701 | test ! -s conftest.err | |
7702 | }; then | |
1cf3d07d SE |
7703 | # Broken: success on invalid input. |
7704 | continue | |
7705 | else | |
7706 | echo "$as_me: failed program was:" >&5 | |
7707 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7708 | ||
7709 | # Passes both tests. | |
7710 | ac_preproc_ok=: | |
7711 | break | |
7712 | fi | |
8a165db0 | 7713 | |
1cf3d07d SE |
7714 | rm -f conftest.err conftest.$ac_ext |
7715 | ||
7716 | done | |
7717 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
7718 | rm -f conftest.err conftest.$ac_ext | |
7719 | if $ac_preproc_ok; then | |
7720 | : | |
7721 | else | |
7722 | _lt_caught_CXX_error=yes | |
7723 | fi | |
7724 | ||
7725 | ac_ext=c | |
7726 | ac_cpp='$CPP $CPPFLAGS' | |
7727 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7728 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7729 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7730 | ||
7731 | else | |
7732 | _lt_caught_CXX_error=yes | |
7733 | fi | |
7734 | ||
7735 | ||
7736 | ||
7737 | ||
7738 | ||
7739 | # This can be used to rebuild libtool when needed | |
7740 | LIBTOOL_DEPS="$ltmain" | |
7741 | ||
7742 | # Always use our own libtool. | |
7743 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
7744 | ||
7745 | ||
7746 | ||
7747 | ||
7748 | ||
7749 | ||
7750 | ||
7751 | ||
7752 | ||
7753 | ||
7754 | ||
7755 | ||
7756 | ||
7757 | ||
7758 | ||
7759 | ||
7760 | ||
7761 | ||
7762 | ||
7763 | ||
7764 | ||
7765 | ||
7766 | ||
7767 | ||
7768 | ||
7769 | test -z "$LN_S" && LN_S="ln -s" | |
7770 | ||
7771 | ||
7772 | ||
7773 | ||
7774 | ||
7775 | ||
7776 | ||
7777 | ||
7778 | ||
7779 | ||
7780 | ||
7781 | ||
7782 | ||
7783 | ||
7784 | if test -n "${ZSH_VERSION+set}" ; then | |
7785 | setopt NO_GLOB_SUBST | |
7786 | fi | |
7787 | ||
8a165db0 BK |
7788 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
7789 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } | |
1cf3d07d SE |
7790 | if test "${lt_cv_objdir+set}" = set; then |
7791 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7792 | else | |
7793 | rm -f .libs 2>/dev/null | |
7794 | mkdir .libs 2>/dev/null | |
7795 | if test -d .libs; then | |
7796 | lt_cv_objdir=.libs | |
7797 | else | |
7798 | # MS-DOS does not allow filenames that begin with a dot. | |
7799 | lt_cv_objdir=_libs | |
7800 | fi | |
7801 | rmdir .libs 2>/dev/null | |
7802 | fi | |
8a165db0 BK |
7803 | { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
7804 | echo "${ECHO_T}$lt_cv_objdir" >&6; } | |
1cf3d07d SE |
7805 | objdir=$lt_cv_objdir |
7806 | ||
7807 | ||
7808 | ||
7809 | ||
7810 | ||
7811 | cat >>confdefs.h <<_ACEOF | |
7812 | #define LT_OBJDIR "$lt_cv_objdir/" | |
7813 | _ACEOF | |
7814 | ||
7815 | ||
7816 | ||
7817 | ||
7818 | ||
7819 | ||
7820 | ||
7821 | ||
7822 | ||
7823 | ||
7824 | ||
7825 | ||
7826 | ||
7827 | ||
7828 | ||
7829 | ||
7830 | ||
7831 | case $host_os in | |
7832 | aix3*) | |
7833 | # AIX sometimes has problems with the GCC collect2 program. For some | |
7834 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
7835 | # vanish in a puff of smoke. | |
7836 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
7837 | COLLECT_NAMES= | |
7838 | export COLLECT_NAMES | |
7839 | fi | |
7840 | ;; | |
7841 | esac | |
7842 | ||
7843 | # Sed substitution that helps us do robust quoting. It backslashifies | |
7844 | # metacharacters that are still active within double-quoted strings. | |
7845 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
7846 | ||
7847 | # Same as above, but do not quote variable references. | |
7848 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
7849 | ||
7850 | # Sed substitution to delay expansion of an escaped shell variable in a | |
7851 | # double_quote_subst'ed string. | |
7852 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
7853 | ||
7854 | # Sed substitution to delay expansion of an escaped single quote. | |
7855 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
7856 | ||
7857 | # Sed substitution to avoid accidental globbing in evaled expressions | |
7858 | no_glob_subst='s/\*/\\\*/g' | |
7859 | ||
7860 | # Global variables: | |
7861 | ofile=libtool | |
7862 | can_build_shared=yes | |
7863 | ||
7864 | # All known linkers require a `.a' archive for static linking (except MSVC, | |
7865 | # which needs '.lib'). | |
7866 | libext=a | |
7867 | ||
7868 | with_gnu_ld="$lt_cv_prog_gnu_ld" | |
7869 | ||
7870 | old_CC="$CC" | |
7871 | old_CFLAGS="$CFLAGS" | |
7872 | ||
7873 | # Set sane defaults for various variables | |
7874 | test -z "$CC" && CC=cc | |
7875 | test -z "$LTCC" && LTCC=$CC | |
7876 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
7877 | test -z "$LD" && LD=ld | |
7878 | test -z "$ac_objext" && ac_objext=o | |
7879 | ||
7880 | for cc_temp in $compiler""; do | |
7881 | case $cc_temp in | |
7882 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
7883 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
7884 | \-*) ;; | |
7885 | *) break;; | |
7886 | esac | |
7887 | done | |
7888 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
7889 | ||
7890 | ||
7891 | # Only perform the check for file, if the check method requires it | |
7892 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
7893 | case $deplibs_check_method in | |
7894 | file_magic*) | |
7895 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
8a165db0 BK |
7896 | { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
7897 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } | |
1cf3d07d SE |
7898 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
7899 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7900 | else | |
7901 | case $MAGIC_CMD in | |
7902 | [\\/*] | ?:[\\/]*) | |
7903 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
7904 | ;; | |
7905 | *) | |
7906 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
7907 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7908 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
7909 | for ac_dir in $ac_dummy; do | |
7910 | IFS="$lt_save_ifs" | |
7911 | test -z "$ac_dir" && ac_dir=. | |
7912 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
7913 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
7914 | if test -n "$file_magic_test_file"; then | |
7915 | case $deplibs_check_method in | |
7916 | "file_magic "*) | |
7917 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
7918 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7919 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
7920 | $EGREP "$file_magic_regex" > /dev/null; then | |
7921 | : | |
7922 | else | |
7923 | cat <<_LT_EOF 1>&2 | |
7924 | ||
7925 | *** Warning: the command libtool uses to detect shared libraries, | |
7926 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
7927 | *** The result is that libtool may fail to recognize shared libraries | |
7928 | *** as such. This will affect the creation of libtool libraries that | |
7929 | *** depend on shared libraries, but programs linked with such libtool | |
7930 | *** libraries will work regardless of this problem. Nevertheless, you | |
7931 | *** may want to report the problem to your system manager and/or to | |
7932 | *** bug-libtool@gnu.org | |
7933 | ||
7934 | _LT_EOF | |
7935 | fi ;; | |
7936 | esac | |
7937 | fi | |
7938 | break | |
7939 | fi | |
7940 | done | |
7941 | IFS="$lt_save_ifs" | |
7942 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
7943 | ;; | |
7944 | esac | |
7945 | fi | |
7946 | ||
7947 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7948 | if test -n "$MAGIC_CMD"; then | |
8a165db0 BK |
7949 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
7950 | echo "${ECHO_T}$MAGIC_CMD" >&6; } | |
1cf3d07d | 7951 | else |
8a165db0 BK |
7952 | { echo "$as_me:$LINENO: result: no" >&5 |
7953 | echo "${ECHO_T}no" >&6; } | |
1cf3d07d SE |
7954 | fi |
7955 | ||
7956 | ||
7957 | ||
7958 | ||
7959 | ||
7960 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
7961 | if test -n "$ac_tool_prefix"; then | |
8a165db0 BK |
7962 | { echo "$as_me:$LINENO: checking for file" >&5 |
7963 | echo $ECHO_N "checking for file... $ECHO_C" >&6; } | |
1cf3d07d SE |
7964 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
7965 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7966 | else | |
7967 | case $MAGIC_CMD in | |
7968 | [\\/*] | ?:[\\/]*) | |
7969 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
7970 | ;; | |
7971 | *) | |
7972 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
7973 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7974 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
7975 | for ac_dir in $ac_dummy; do | |
7976 | IFS="$lt_save_ifs" | |
7977 | test -z "$ac_dir" && ac_dir=. | |
7978 | if test -f $ac_dir/file; then | |
7979 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
7980 | if test -n "$file_magic_test_file"; then | |
7981 | case $deplibs_check_method in | |
7982 | "file_magic "*) | |
7983 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
7984 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7985 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
7986 | $EGREP "$file_magic_regex" > /dev/null; then | |
7987 | : | |
7988 | else | |
7989 | cat <<_LT_EOF 1>&2 | |
7990 | ||
7991 | *** Warning: the command libtool uses to detect shared libraries, | |
7992 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
7993 | *** The result is that libtool may fail to recognize shared libraries | |
7994 | *** as such. This will affect the creation of libtool libraries that | |
7995 | *** depend on shared libraries, but programs linked with such libtool | |
7996 | *** libraries will work regardless of this problem. Nevertheless, you | |
7997 | *** may want to report the problem to your system manager and/or to | |
7998 | *** bug-libtool@gnu.org | |
7999 | ||
8000 | _LT_EOF | |
8001 | fi ;; | |
8002 | esac | |
8003 | fi | |
8004 | break | |
8005 | fi | |
8006 | done | |
8007 | IFS="$lt_save_ifs" | |
8008 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8009 | ;; | |
8010 | esac | |
8011 | fi | |
8012 | ||
8013 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8014 | if test -n "$MAGIC_CMD"; then | |
8a165db0 BK |
8015 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
8016 | echo "${ECHO_T}$MAGIC_CMD" >&6; } | |
1cf3d07d | 8017 | else |
8a165db0 BK |
8018 | { echo "$as_me:$LINENO: result: no" >&5 |
8019 | echo "${ECHO_T}no" >&6; } | |
1cf3d07d SE |
8020 | fi |
8021 | ||
8022 | ||
8023 | else | |
8024 | MAGIC_CMD=: | |
8025 | fi | |
8026 | fi | |
8027 | ||
8028 | fi | |
8029 | ;; | |
8030 | esac | |
8031 | ||
8032 | # Use C for the default configuration in the libtool script | |
8033 | ||
8034 | lt_save_CC="$CC" | |
8035 | ac_ext=c | |
8036 | ac_cpp='$CPP $CPPFLAGS' | |
8037 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8038 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8039 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8040 | ||
8041 | ||
8042 | # Source file extension for C test sources. | |
8043 | ac_ext=c | |
8044 | ||
8045 | # Object file extension for compiled C test sources. | |
8046 | objext=o | |
8047 | objext=$objext | |
8048 | ||
8049 | # Code to be used in simple compile tests | |
8050 | lt_simple_compile_test_code="int some_variable = 0;" | |
8051 | ||
8052 | # Code to be used in simple link tests | |
8053 | lt_simple_link_test_code='int main(){return(0);}' | |
8054 | ||
8055 | ||
8056 | ||
8057 | ||
8058 | ||
8059 | ||
8060 | ||
8061 | # If no C compiler was specified, use CC. | |
8062 | LTCC=${LTCC-"$CC"} | |
8063 | ||
8064 | # If no C compiler flags were specified, use CFLAGS. | |
8065 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
8066 | ||
8067 | # Allow CC to be a program name with arguments. | |
8068 | compiler=$CC | |
8069 | ||
8070 | # Save the default compiler, since it gets overwritten when the other | |
8071 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
8072 | compiler_DEFAULT=$CC | |
8073 | ||
8074 | # save warnings/boilerplate of simple test code | |
8075 | ac_outfile=conftest.$ac_objext | |
8076 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
8077 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8078 | _lt_compiler_boilerplate=`cat conftest.err` | |
8079 | $RM conftest* | |
8080 | ||
8081 | ac_outfile=conftest.$ac_objext | |
8082 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
8083 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8084 | _lt_linker_boilerplate=`cat conftest.err` | |
8085 | $RM conftest* | |
8086 | ||
8087 | ||
8088 | ## CAVEAT EMPTOR: | |
8089 | ## There is no encapsulation within the following macros, do not change | |
8090 | ## the running order or otherwise move them around unless you know exactly | |
8091 | ## what you are doing... | |
8092 | if test -n "$compiler"; then | |
8093 | ||
8094 | lt_prog_compiler_no_builtin_flag= | |
8095 | ||
8096 | if test "$GCC" = yes; then | |
8097 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' | |
8098 | ||
8a165db0 BK |
8099 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
8100 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } | |
1cf3d07d SE |
8101 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
8102 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8103 | else | |
8104 | lt_cv_prog_compiler_rtti_exceptions=no | |
8105 | ac_outfile=conftest.$ac_objext | |
8106 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8107 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
8108 | # Insert the option either (1) after the last *FLAGS variable, or | |
8109 | # (2) before a word containing "conftest.", or (3) at the end. | |
8110 | # Note that $ac_compile itself does not contain backslashes and begins | |
8111 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8112 | # The option is referenced via a variable to avoid confusing sed. | |
8113 | lt_compile=`echo "$ac_compile" | $SED \ | |
8114 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8115 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8116 | -e 's:$: $lt_compiler_flag:'` | |
8a165db0 | 8117 | (eval echo "\"\$as_me:8117: $lt_compile\"" >&5) |
1cf3d07d SE |
8118 | (eval "$lt_compile" 2>conftest.err) |
8119 | ac_status=$? | |
8120 | cat conftest.err >&5 | |
8a165db0 | 8121 | echo "$as_me:8121: \$? = $ac_status" >&5 |
1cf3d07d SE |
8122 | if (exit $ac_status) && test -s "$ac_outfile"; then |
8123 | # The compiler can only warn and ignore the option if not recognized | |
8124 | # So say no if there are warnings other than the usual output. | |
8125 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
8126 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8127 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8128 | lt_cv_prog_compiler_rtti_exceptions=yes | |
8129 | fi | |
8130 | fi | |
8131 | $RM conftest* | |
8132 | ||
8133 | fi | |
8a165db0 BK |
8134 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
8135 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
1cf3d07d SE |
8136 | |
8137 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
8138 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
8139 | else | |
8140 | : | |
8141 | fi | |
8142 | ||
8143 | fi | |
8144 | ||
8145 | ||
8146 | ||
8147 | ||
8148 | ||
8149 | ||
8150 | lt_prog_compiler_wl= | |
8151 | lt_prog_compiler_pic= | |
8152 | lt_prog_compiler_static= | |
8153 | ||
8a165db0 BK |
8154 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
8155 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } | |
1cf3d07d SE |
8156 | |
8157 | if test "$GCC" = yes; then | |
8158 | lt_prog_compiler_wl='-Wl,' | |
8159 | lt_prog_compiler_static='-static' | |
8160 | ||
8161 | case $host_os in | |
8162 | aix*) | |
8163 | # All AIX code is PIC. | |
8164 | if test "$host_cpu" = ia64; then | |
8165 | # AIX 5 now supports IA64 processor | |
8166 | lt_prog_compiler_static='-Bstatic' | |
8167 | fi | |
8168 | ;; | |
8169 | ||
8170 | amigaos*) | |
8171 | if test "$host_cpu" = m68k; then | |
8172 | # FIXME: we need at least 68020 code to build shared libraries, but | |
8173 | # adding the `-m68020' flag to GCC prevents building anything better, | |
8174 | # like `-m68040'. | |
8175 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
8176 | fi | |
8177 | ;; | |
8178 | ||
8179 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
8180 | # PIC is the default for these OSes. | |
8181 | ;; | |
8182 | ||
8183 | mingw* | cygwin* | pw32* | os2*) | |
8184 | # This hack is so that the source file can tell whether it is being | |
8185 | # built for inclusion in a dll (and should export symbols for example). | |
8186 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
8187 | # (--disable-auto-import) libraries | |
8188 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
8189 | ;; | |
8190 | ||
8191 | darwin* | rhapsody*) | |
8192 | # PIC is the default on this platform | |
8193 | # Common symbols not allowed in MH_DYLIB files | |
8194 | lt_prog_compiler_pic='-fno-common' | |
8195 | ;; | |
8196 | ||
8197 | hpux*) | |
8198 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
8199 | # not for PA HP-UX. | |
8200 | case $host_cpu in | |
8201 | hppa*64*|ia64*) | |
8202 | # +Z the default | |
8203 | ;; | |
8204 | *) | |
8205 | lt_prog_compiler_pic='-fPIC' | |
8206 | ;; | |
8207 | esac | |
8208 | ;; | |
8209 | ||
8210 | interix[3-9]*) | |
8211 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
8212 | # Instead, we relocate shared libraries at runtime. | |
8213 | ;; | |
8214 | ||
8215 | msdosdjgpp*) | |
8216 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
8217 | # on systems that don't support them. | |
8218 | lt_prog_compiler_can_build_shared=no | |
8219 | enable_shared=no | |
8220 | ;; | |
8221 | ||
8222 | *nto* | *qnx*) | |
8223 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8224 | # it will coredump. | |
8225 | lt_prog_compiler_pic='-fPIC -shared' | |
8226 | ;; | |
8227 | ||
8228 | sysv4*MP*) | |
8229 | if test -d /usr/nec; then | |
8230 | lt_prog_compiler_pic=-Kconform_pic | |
8231 | fi | |
8232 | ;; | |
8233 | ||
8234 | *) | |
8235 | lt_prog_compiler_pic='-fPIC' | |
8236 | ;; | |
8237 | esac | |
8238 | else | |
8239 | # PORTME Check for flag to pass linker flags through the system compiler. | |
8240 | case $host_os in | |
8241 | aix*) | |
8242 | lt_prog_compiler_wl='-Wl,' | |
8243 | if test "$host_cpu" = ia64; then | |
8244 | # AIX 5 now supports IA64 processor | |
8245 | lt_prog_compiler_static='-Bstatic' | |
8246 | else | |
8247 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
8248 | fi | |
8249 | ;; | |
8250 | darwin*) | |
8251 | # PIC is the default on this platform | |
8252 | # Common symbols not allowed in MH_DYLIB files | |
8253 | case $cc_basename in | |
8254 | xlc*) | |
8255 | lt_prog_compiler_pic='-qnocommon' | |
8256 | lt_prog_compiler_wl='-Wl,' | |
8257 | ;; | |
8258 | esac | |
8259 | ;; | |
8260 | ||
8261 | mingw* | cygwin* | pw32* | os2*) | |
8262 | # This hack is so that the source file can tell whether it is being | |
8263 | # built for inclusion in a dll (and should export symbols for example). | |
8264 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
8265 | ;; | |
8266 | ||
8267 | hpux9* | hpux10* | hpux11*) | |
8268 | lt_prog_compiler_wl='-Wl,' | |
8269 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
8270 | # not for PA HP-UX. | |
8271 | case $host_cpu in | |
8272 | hppa*64*|ia64*) | |
8273 | # +Z the default | |
8274 | ;; | |
8275 | *) | |
8276 | lt_prog_compiler_pic='+Z' | |
8277 | ;; | |
8278 | esac | |
8279 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
8280 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
8281 | ;; | |
8282 | ||
8283 | irix5* | irix6* | nonstopux*) | |
8284 | lt_prog_compiler_wl='-Wl,' | |
8285 | # PIC (with -KPIC) is the default. | |
8286 | lt_prog_compiler_static='-non_shared' | |
8287 | ;; | |
8288 | ||
8289 | linux* | k*bsd*-gnu) | |
8290 | case $cc_basename in | |
8291 | icc* | ecc*) | |
8292 | lt_prog_compiler_wl='-Wl,' | |
8293 | lt_prog_compiler_pic='-KPIC' | |
8294 | lt_prog_compiler_static='-static' | |
8295 | ;; | |
8296 | pgcc* | pgf77* | pgf90* | pgf95*) | |
8297 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
8298 | # which looks to be a dead project) | |
8299 | lt_prog_compiler_wl='-Wl,' | |
8300 | lt_prog_compiler_pic='-fpic' | |
8301 | lt_prog_compiler_static='-Bstatic' | |
8302 | ;; | |
8303 | ccc*) | |
8304 | lt_prog_compiler_wl='-Wl,' | |
8305 | # All Alpha code is PIC. | |
8306 | lt_prog_compiler_static='-non_shared' | |
8307 | ;; | |
8308 | *) | |
8309 | case `$CC -V 2>&1 | sed 5q` in | |
8310 | *Sun\ C*) | |
8311 | # Sun C 5.9 | |
8312 | lt_prog_compiler_pic='-KPIC' | |
8313 | lt_prog_compiler_static='-Bstatic' | |
8314 | lt_prog_compiler_wl='-Wl,' | |
8315 | ;; | |
8316 | *Sun\ F*) | |
8317 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
8318 | lt_prog_compiler_pic='-KPIC' | |
8319 | lt_prog_compiler_static='-Bstatic' | |
8320 | lt_prog_compiler_wl='' | |
8321 | ;; | |
8322 | esac | |
8323 | ;; | |
8324 | esac | |
8325 | ;; | |
8326 | ||
8327 | newsos6) | |
8328 | lt_prog_compiler_pic='-KPIC' | |
8329 | lt_prog_compiler_static='-Bstatic' | |
8330 | ;; | |
8331 | ||
8332 | *nto* | *qnx*) | |
8333 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8334 | # it will coredump. | |
8335 | lt_prog_compiler_pic='-fPIC -shared' | |
8336 | ;; | |
8337 | ||
8338 | osf3* | osf4* | osf5*) | |
8339 | lt_prog_compiler_wl='-Wl,' | |
8340 | # All OSF/1 code is PIC. | |
8341 | lt_prog_compiler_static='-non_shared' | |
8342 | ;; | |
8343 | ||
8344 | rdos*) | |
8345 | lt_prog_compiler_static='-non_shared' | |
8346 | ;; | |
8347 | ||
8348 | solaris*) | |
8349 | lt_prog_compiler_pic='-KPIC' | |
8350 | lt_prog_compiler_static='-Bstatic' | |
8351 | case $cc_basename in | |
8352 | f77* | f90* | f95*) | |
8353 | lt_prog_compiler_wl='-Qoption ld ';; | |
8354 | *) | |
8355 | lt_prog_compiler_wl='-Wl,';; | |
8356 | esac | |
8357 | ;; | |
8358 | ||
8359 | sunos4*) | |
8360 | lt_prog_compiler_wl='-Qoption ld ' | |
8361 | lt_prog_compiler_pic='-PIC' | |
8362 | lt_prog_compiler_static='-Bstatic' | |
8363 | ;; | |
8364 | ||
8365 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
8366 | lt_prog_compiler_wl='-Wl,' | |
8367 | lt_prog_compiler_pic='-KPIC' | |
8368 | lt_prog_compiler_static='-Bstatic' | |
8369 | ;; | |
8370 | ||
8371 | sysv4*MP*) | |
8372 | if test -d /usr/nec ;then | |
8373 | lt_prog_compiler_pic='-Kconform_pic' | |
8374 | lt_prog_compiler_static='-Bstatic' | |
8375 | fi | |
8376 | ;; | |
8377 | ||
8378 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
8379 | lt_prog_compiler_wl='-Wl,' | |
8380 | lt_prog_compiler_pic='-KPIC' | |
8381 | lt_prog_compiler_static='-Bstatic' | |
8382 | ;; | |
8383 | ||
8384 | unicos*) | |
8385 | lt_prog_compiler_wl='-Wl,' | |
8386 | lt_prog_compiler_can_build_shared=no | |
8387 | ;; | |
8388 | ||
8389 | uts4*) | |
8390 | lt_prog_compiler_pic='-pic' | |
8391 | lt_prog_compiler_static='-Bstatic' | |
8392 | ;; | |
8393 | ||
8394 | *) | |
8395 | lt_prog_compiler_can_build_shared=no | |
8396 | ;; | |
8397 | esac | |
8398 | fi | |
8399 | ||
8400 | case $host_os in | |
8401 | # For platforms which do not support PIC, -DPIC is meaningless: | |
8402 | *djgpp*) | |
8403 | lt_prog_compiler_pic= | |
8404 | ;; | |
8405 | *) | |
8406 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
8407 | ;; | |
8408 | esac | |
8a165db0 BK |
8409 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
8410 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } | |
1cf3d07d SE |
8411 | |
8412 | ||
8413 | ||
8414 | ||
8415 | ||
8416 | ||
8417 | # | |
8418 | # Check to make sure the PIC flag actually works. | |
8419 | # | |
8420 | if test -n "$lt_prog_compiler_pic"; then | |
8a165db0 BK |
8421 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
8422 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } | |
1cf3d07d SE |
8423 | if test "${lt_prog_compiler_pic_works+set}" = set; then |
8424 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8425 | else | |
8426 | lt_prog_compiler_pic_works=no | |
8427 | ac_outfile=conftest.$ac_objext | |
8428 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8429 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
8430 | # Insert the option either (1) after the last *FLAGS variable, or | |
8431 | # (2) before a word containing "conftest.", or (3) at the end. | |
8432 | # Note that $ac_compile itself does not contain backslashes and begins | |
8433 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8434 | # The option is referenced via a variable to avoid confusing sed. | |
8435 | lt_compile=`echo "$ac_compile" | $SED \ | |
8436 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8437 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8438 | -e 's:$: $lt_compiler_flag:'` | |
8a165db0 | 8439 | (eval echo "\"\$as_me:8439: $lt_compile\"" >&5) |
1cf3d07d SE |
8440 | (eval "$lt_compile" 2>conftest.err) |
8441 | ac_status=$? | |
8442 | cat conftest.err >&5 | |
8a165db0 | 8443 | echo "$as_me:8443: \$? = $ac_status" >&5 |
1cf3d07d SE |
8444 | if (exit $ac_status) && test -s "$ac_outfile"; then |
8445 | # The compiler can only warn and ignore the option if not recognized | |
8446 | # So say no if there are warnings other than the usual output. | |
8447 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
8448 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8449 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8450 | lt_prog_compiler_pic_works=yes | |
8451 | fi | |
8452 | fi | |
8453 | $RM conftest* | |
8454 | ||
8455 | fi | |
8a165db0 BK |
8456 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
8457 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } | |
1cf3d07d SE |
8458 | |
8459 | if test x"$lt_prog_compiler_pic_works" = xyes; then | |
8460 | case $lt_prog_compiler_pic in | |
8461 | "" | " "*) ;; | |
8462 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
8463 | esac | |
8464 | else | |
8465 | lt_prog_compiler_pic= | |
8466 | lt_prog_compiler_can_build_shared=no | |
8467 | fi | |
8468 | ||
8469 | fi | |
8470 | ||
8471 | ||
8472 | ||
8473 | ||
8474 | ||
8475 | ||
8476 | # | |
8477 | # Check to make sure the static flag actually works. | |
8478 | # | |
8479 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
8a165db0 BK |
8480 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
8481 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } | |
1cf3d07d SE |
8482 | if test "${lt_prog_compiler_static_works+set}" = set; then |
8483 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8484 | else | |
8485 | lt_prog_compiler_static_works=no | |
8486 | save_LDFLAGS="$LDFLAGS" | |
8487 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
8488 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
8489 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
8490 | # The linker can only warn and ignore the option if not recognized | |
8491 | # So say no if there are warnings | |
8492 | if test -s conftest.err; then | |
8493 | # Append any errors to the config.log. | |
8494 | cat conftest.err 1>&5 | |
8495 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
8496 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8497 | if diff conftest.exp conftest.er2 >/dev/null; then | |
8498 | lt_prog_compiler_static_works=yes | |
8499 | fi | |
8500 | else | |
8501 | lt_prog_compiler_static_works=yes | |
8502 | fi | |
8503 | fi | |
8504 | $RM conftest* | |
8505 | LDFLAGS="$save_LDFLAGS" | |
8506 | ||
8507 | fi | |
8a165db0 BK |
8508 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
8509 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } | |
1cf3d07d SE |
8510 | |
8511 | if test x"$lt_prog_compiler_static_works" = xyes; then | |
8512 | : | |
8513 | else | |
8514 | lt_prog_compiler_static= | |
8515 | fi | |
8516 | ||
8517 | ||
8518 | ||
8519 | ||
8520 | ||
8521 | ||
8522 | ||
8a165db0 BK |
8523 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8524 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } | |
1cf3d07d SE |
8525 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
8526 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8527 | else | |
8528 | lt_cv_prog_compiler_c_o=no | |
8529 | $RM -r conftest 2>/dev/null | |
8530 | mkdir conftest | |
8531 | cd conftest | |
8532 | mkdir out | |
8533 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8534 | ||
8535 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
8536 | # Insert the option either (1) after the last *FLAGS variable, or | |
8537 | # (2) before a word containing "conftest.", or (3) at the end. | |
8538 | # Note that $ac_compile itself does not contain backslashes and begins | |
8539 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8540 | lt_compile=`echo "$ac_compile" | $SED \ | |
8541 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8542 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8543 | -e 's:$: $lt_compiler_flag:'` | |
8a165db0 | 8544 | (eval echo "\"\$as_me:8544: $lt_compile\"" >&5) |
1cf3d07d SE |
8545 | (eval "$lt_compile" 2>out/conftest.err) |
8546 | ac_status=$? | |
8547 | cat out/conftest.err >&5 | |
8a165db0 | 8548 | echo "$as_me:8548: \$? = $ac_status" >&5 |
1cf3d07d SE |
8549 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8550 | then | |
8551 | # The compiler can only warn and ignore the option if not recognized | |
8552 | # So say no if there are warnings | |
8553 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
8554 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
8555 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8556 | lt_cv_prog_compiler_c_o=yes | |
8557 | fi | |
8558 | fi | |
8559 | chmod u+w . 2>&5 | |
8560 | $RM conftest* | |
8561 | # SGI C++ compiler will create directory out/ii_files/ for | |
8562 | # template instantiation | |
8563 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8564 | $RM out/* && rmdir out | |
8565 | cd .. | |
8566 | $RM -r conftest | |
8567 | $RM conftest* | |
8568 | ||
8569 | fi | |
8a165db0 BK |
8570 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
8571 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } | |
1cf3d07d SE |
8572 | |
8573 | ||
8574 | ||
8575 | ||
8576 | ||
8577 | ||
8a165db0 BK |
8578 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8579 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } | |
1cf3d07d SE |
8580 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
8581 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8582 | else | |
8583 | lt_cv_prog_compiler_c_o=no | |
8584 | $RM -r conftest 2>/dev/null | |
8585 | mkdir conftest | |
8586 | cd conftest | |
8587 | mkdir out | |
8588 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8589 | ||
8590 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
8591 | # Insert the option either (1) after the last *FLAGS variable, or | |
8592 | # (2) before a word containing "conftest.", or (3) at the end. | |
8593 | # Note that $ac_compile itself does not contain backslashes and begins | |
8594 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8595 | lt_compile=`echo "$ac_compile" | $SED \ | |
8596 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8597 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8598 | -e 's:$: $lt_compiler_flag:'` | |
8a165db0 | 8599 | (eval echo "\"\$as_me:8599: $lt_compile\"" >&5) |
1cf3d07d SE |
8600 | (eval "$lt_compile" 2>out/conftest.err) |
8601 | ac_status=$? | |
8602 | cat out/conftest.err >&5 | |
8a165db0 | 8603 | echo "$as_me:8603: \$? = $ac_status" >&5 |
1cf3d07d SE |
8604 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8605 | then | |
8606 | # The compiler can only warn and ignore the option if not recognized | |
8607 | # So say no if there are warnings | |
8608 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
8609 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
8610 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8611 | lt_cv_prog_compiler_c_o=yes | |
8612 | fi | |
8613 | fi | |
8614 | chmod u+w . 2>&5 | |
8615 | $RM conftest* | |
8616 | # SGI C++ compiler will create directory out/ii_files/ for | |
8617 | # template instantiation | |
8618 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8619 | $RM out/* && rmdir out | |
8620 | cd .. | |
8621 | $RM -r conftest | |
8622 | $RM conftest* | |
8623 | ||
8624 | fi | |
8a165db0 BK |
8625 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
8626 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } | |
1cf3d07d SE |
8627 | |
8628 | ||
8629 | ||
8630 | ||
8631 | hard_links="nottested" | |
8632 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
8633 | # do not overwrite the value of need_locks provided by the user | |
8a165db0 BK |
8634 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
8635 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } | |
1cf3d07d SE |
8636 | hard_links=yes |
8637 | $RM conftest* | |
8638 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
8639 | touch conftest.a | |
8640 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
8641 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
8a165db0 BK |
8642 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
8643 | echo "${ECHO_T}$hard_links" >&6; } | |
1cf3d07d SE |
8644 | if test "$hard_links" = no; then |
8645 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
8646 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
8647 | need_locks=warn | |
8648 | fi | |
8649 | else | |
8650 | need_locks=no | |
8651 | fi | |
8652 | ||
8653 | ||
8654 | ||
8655 | ||
8656 | ||
8657 | ||
8a165db0 BK |
8658 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
8659 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } | |
1cf3d07d SE |
8660 | |
8661 | runpath_var= | |
8662 | allow_undefined_flag= | |
8663 | always_export_symbols=no | |
8664 | archive_cmds= | |
8665 | archive_expsym_cmds= | |
8666 | compiler_needs_object=no | |
8667 | enable_shared_with_static_runtimes=no | |
8668 | export_dynamic_flag_spec= | |
8669 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
8670 | hardcode_automatic=no | |
8671 | hardcode_direct=no | |
8672 | hardcode_direct_absolute=no | |
8673 | hardcode_libdir_flag_spec= | |
8674 | hardcode_libdir_flag_spec_ld= | |
8675 | hardcode_libdir_separator= | |
8676 | hardcode_minus_L=no | |
8677 | hardcode_shlibpath_var=unsupported | |
8678 | inherit_rpath=no | |
8679 | link_all_deplibs=unknown | |
8680 | module_cmds= | |
8681 | module_expsym_cmds= | |
8682 | old_archive_from_new_cmds= | |
8683 | old_archive_from_expsyms_cmds= | |
8684 | thread_safe_flag_spec= | |
8685 | whole_archive_flag_spec= | |
8686 | # include_expsyms should be a list of space-separated symbols to be *always* | |
8687 | # included in the symbol list | |
8688 | include_expsyms= | |
8689 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
8690 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
8691 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
8692 | # as well as any symbol that contains `d'. | |
8693 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" | |
8694 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
8695 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
8696 | # the symbol is explicitly referenced. Since portable code cannot | |
8697 | # rely on this symbol name, it's probably fine to never include it in | |
8698 | # preloaded symbol tables. | |
8699 | extract_expsyms_cmds= | |
8700 | ||
8701 | case $host_os in | |
8702 | cygwin* | mingw* | pw32*) | |
8703 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
8704 | # When not using gcc, we currently assume that we are using | |
8705 | # Microsoft Visual C++. | |
8706 | if test "$GCC" != yes; then | |
8707 | with_gnu_ld=no | |
8708 | fi | |
8709 | ;; | |
8710 | interix*) | |
8711 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
8712 | with_gnu_ld=yes | |
8713 | ;; | |
8714 | openbsd*) | |
8715 | with_gnu_ld=no | |
8716 | ;; | |
8717 | esac | |
8718 | ||
8719 | ld_shlibs=yes | |
8720 | if test "$with_gnu_ld" = yes; then | |
8721 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
8722 | wlarc='${wl}' | |
8723 | ||
8724 | # Set some defaults for GNU ld with shared library support. These | |
8725 | # are reset later if shared libraries are not supported. Putting them | |
8726 | # here allows them to be overridden if necessary. | |
8727 | runpath_var=LD_RUN_PATH | |
8728 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8729 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
8730 | # ancient GNU ld didn't support --whole-archive et. al. | |
8731 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
8732 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
8733 | else | |
8734 | whole_archive_flag_spec= | |
8735 | fi | |
8736 | supports_anon_versioning=no | |
8737 | case `$LD -v 2>&1` in | |
8738 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
8739 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
8740 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
8741 | *\ 2.11.*) ;; # other 2.11 versions | |
8742 | *) supports_anon_versioning=yes ;; | |
8743 | esac | |
8744 | ||
8745 | # See if GNU ld supports shared libraries. | |
8746 | case $host_os in | |
716e4bc6 | 8747 | aix[3-9]*) |
1cf3d07d SE |
8748 | # On AIX/PPC, the GNU linker is very broken |
8749 | if test "$host_cpu" != ia64; then | |
8750 | ld_shlibs=no | |
8751 | cat <<_LT_EOF 1>&2 | |
8752 | ||
8753 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
8754 | *** to be unable to reliably create shared libraries on AIX. | |
8755 | *** Therefore, libtool is disabling shared libraries support. If you | |
8756 | *** really care for shared libraries, you may want to modify your PATH | |
8757 | *** so that a non-GNU linker is found, and then restart. | |
8758 | ||
8759 | _LT_EOF | |
8760 | fi | |
8761 | ;; | |
8762 | ||
8763 | amigaos*) | |
8764 | if test "$host_cpu" = m68k; then | |
8765 | archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' | |
8766 | hardcode_libdir_flag_spec='-L$libdir' | |
8767 | hardcode_minus_L=yes | |
8768 | fi | |
8769 | ||
8770 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | |
8771 | # that the semantics of dynamic libraries on AmigaOS, at least up | |
8772 | # to version 4, is to share data among multiple programs linked | |
8773 | # with the same dynamic library. Since this doesn't match the | |
8774 | # behavior of shared libraries on other platforms, we can't use | |
8775 | # them. | |
8776 | ld_shlibs=no | |
8777 | ;; | |
8778 | ||
8779 | beos*) | |
8780 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8781 | allow_undefined_flag=unsupported | |
8782 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
8783 | # support --undefined. This deserves some investigation. FIXME | |
8784 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8785 | else | |
8786 | ld_shlibs=no | |
8787 | fi | |
8788 | ;; | |
8789 | ||
8790 | cygwin* | mingw* | pw32*) | |
8791 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
8792 | # as there is no search path for DLLs. | |
8793 | hardcode_libdir_flag_spec='-L$libdir' | |
8794 | allow_undefined_flag=unsupported | |
8795 | always_export_symbols=no | |
8796 | enable_shared_with_static_runtimes=yes | |
8797 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
8798 | ||
8799 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
8800 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
8801 | # If the export-symbols file already is a .def file (1st line | |
8802 | # is EXPORTS), use it as is; otherwise, prepend... | |
8803 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
8804 | cp $export_symbols $output_objdir/$soname.def; | |
8805 | else | |
8806 | echo EXPORTS > $output_objdir/$soname.def; | |
8807 | cat $export_symbols >> $output_objdir/$soname.def; | |
8808 | fi~ | |
8809 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
8810 | else | |
8811 | ld_shlibs=no | |
8812 | fi | |
8813 | ;; | |
8814 | ||
8815 | interix[3-9]*) | |
8816 | hardcode_direct=no | |
8817 | hardcode_shlibpath_var=no | |
8818 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8819 | export_dynamic_flag_spec='${wl}-E' | |
8820 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
8821 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
8822 | # default) and relocated if they conflict, which is a slow very memory | |
8823 | # consuming and fragmenting process. To avoid this, we pick a random, | |
8824 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
8825 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
8826 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
8827 | archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
8828 | ;; | |
8829 | ||
8830 | gnu* | linux* | tpf* | k*bsd*-gnu) | |
8831 | tmp_diet=no | |
8832 | if test "$host_os" = linux-dietlibc; then | |
8833 | case $cc_basename in | |
8834 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
8835 | esac | |
8836 | fi | |
8837 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
8838 | && test "$tmp_diet" = no | |
8839 | then | |
8840 | tmp_addflag= | |
8841 | case $cc_basename,$host_cpu in | |
8842 | pgcc*) # Portland Group C compiler | |
8843 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | |
8844 | tmp_addflag=' $pic_flag' | |
8845 | ;; | |
8846 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | |
8847 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | |
8848 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
8849 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
8850 | tmp_addflag=' -i_dynamic' ;; | |
8851 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
8852 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
8853 | ifc* | ifort*) # Intel Fortran compiler | |
8854 | tmp_addflag=' -nofor_main' ;; | |
8855 | esac | |
8856 | case `$CC -V 2>&1 | sed 5q` in | |
8857 | *Sun\ C*) # Sun C 5.9 | |
8858 | whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | |
8859 | compiler_needs_object=yes | |
8860 | tmp_sharedflag='-G' ;; | |
8861 | *Sun\ F*) # Sun Fortran 8.3 | |
8862 | tmp_sharedflag='-G' ;; | |
8863 | *) | |
8864 | tmp_sharedflag='-shared' ;; | |
8865 | esac | |
8866 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8867 | ||
8868 | if test "x$supports_anon_versioning" = xyes; then | |
8869 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
8870 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
8871 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
8872 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
8873 | fi | |
8874 | else | |
8875 | ld_shlibs=no | |
8876 | fi | |
8877 | ;; | |
8878 | ||
8879 | netbsd*) | |
8880 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
8881 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
8882 | wlarc= | |
8883 | else | |
8884 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8885 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8886 | fi | |
8887 | ;; | |
8888 | ||
8889 | solaris*) | |
8890 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
8891 | ld_shlibs=no | |
8892 | cat <<_LT_EOF 1>&2 | |
8893 | ||
8894 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
8895 | *** create shared libraries on Solaris systems. Therefore, libtool | |
8896 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
8897 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
8898 | *** your PATH or compiler configuration so that the native linker is | |
8899 | *** used, and then restart. | |
8900 | ||
8901 | _LT_EOF | |
8902 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8903 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8904 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8905 | else | |
8906 | ld_shlibs=no | |
8907 | fi | |
8908 | ;; | |
8909 | ||
8910 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
8911 | case `$LD -v 2>&1` in | |
8912 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
8913 | ld_shlibs=no | |
8914 | cat <<_LT_EOF 1>&2 | |
8915 | ||
8916 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
8917 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
8918 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
8919 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
8920 | *** your PATH or compiler configuration so that the native linker is | |
8921 | *** used, and then restart. | |
8922 | ||
8923 | _LT_EOF | |
8924 | ;; | |
8925 | *) | |
8926 | # For security reasons, it is highly recommended that you always | |
8927 | # use absolute paths for naming shared libraries, and exclude the | |
8928 | # DT_RUNPATH tag from executables and libraries. But doing so | |
8929 | # requires that you compile everything twice, which is a pain. | |
8930 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8931 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8932 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8933 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8934 | else | |
8935 | ld_shlibs=no | |
8936 | fi | |
8937 | ;; | |
8938 | esac | |
8939 | ;; | |
8940 | ||
8941 | sunos4*) | |
8942 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
8943 | wlarc= | |
8944 | hardcode_direct=yes | |
8945 | hardcode_shlibpath_var=no | |
8946 | ;; | |
8947 | ||
8948 | *) | |
8949 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8950 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8951 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8952 | else | |
8953 | ld_shlibs=no | |
8954 | fi | |
8955 | ;; | |
8956 | esac | |
8957 | ||
8958 | if test "$ld_shlibs" = no; then | |
8959 | runpath_var= | |
8960 | hardcode_libdir_flag_spec= | |
8961 | export_dynamic_flag_spec= | |
8962 | whole_archive_flag_spec= | |
8963 | fi | |
8964 | else | |
8965 | # PORTME fill in a description of your system's linker (not GNU ld) | |
8966 | case $host_os in | |
8967 | aix3*) | |
8968 | allow_undefined_flag=unsupported | |
8969 | always_export_symbols=yes | |
8970 | archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' | |
8971 | # Note: this linker hardcodes the directories in LIBPATH if there | |
8972 | # are no directories specified by -L. | |
8973 | hardcode_minus_L=yes | |
8974 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
8975 | # Neither direct hardcoding nor static linking is supported with a | |
8976 | # broken collect2. | |
8977 | hardcode_direct=unsupported | |
8978 | fi | |
8979 | ;; | |
8980 | ||
716e4bc6 | 8981 | aix[4-9]*) |
1cf3d07d SE |
8982 | if test "$host_cpu" = ia64; then |
8983 | # On IA64, the linker does run time linking by default, so we don't | |
8984 | # have to do anything special. | |
8985 | aix_use_runtimelinking=no | |
8986 | exp_sym_flag='-Bexport' | |
8987 | no_entry_flag="" | |
8988 | else | |
8989 | # If we're using GNU nm, then we don't want the "-C" option. | |
8990 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
8991 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
8992 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
8993 | else | |
8994 | export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
8995 | fi | |
8996 | aix_use_runtimelinking=no | |
8997 | ||
8998 | # Test if we are trying to use run time linking or normal | |
8999 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
9000 | # need to do runtime linking. | |
716e4bc6 | 9001 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
1cf3d07d SE |
9002 | for ld_flag in $LDFLAGS; do |
9003 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
9004 | aix_use_runtimelinking=yes | |
9005 | break | |
9006 | fi | |
9007 | done | |
9008 | ;; | |
9009 | esac | |
9010 | ||
9011 | exp_sym_flag='-bexport' | |
9012 | no_entry_flag='-bnoentry' | |
9013 | fi | |
9014 | ||
9015 | # When large executables or shared objects are built, AIX ld can | |
9016 | # have problems creating the table of contents. If linking a library | |
9017 | # or program results in "error TOC overflow" add -mminimal-toc to | |
9018 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
9019 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
9020 | ||
9021 | archive_cmds='' | |
9022 | hardcode_direct=yes | |
9023 | hardcode_direct_absolute=yes | |
9024 | hardcode_libdir_separator=':' | |
9025 | link_all_deplibs=yes | |
9026 | file_list_spec='${wl}-f,' | |
9027 | ||
9028 | if test "$GCC" = yes; then | |
9029 | case $host_os in aix4.[012]|aix4.[012].*) | |
9030 | # We only want to do this on AIX 4.2 and lower, the check | |
9031 | # below for broken collect2 doesn't work under 4.3+ | |
9032 | collect2name=`${CC} -print-prog-name=collect2` | |
9033 | if test -f "$collect2name" && | |
9034 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
9035 | then | |
9036 | # We have reworked collect2 | |
9037 | : | |
9038 | else | |
9039 | # We have old collect2 | |
9040 | hardcode_direct=unsupported | |
9041 | # It fails to find uninstalled libraries when the uninstalled | |
9042 | # path is not listed in the libpath. Setting hardcode_minus_L | |
9043 | # to unsupported forces relinking | |
9044 | hardcode_minus_L=yes | |
9045 | hardcode_libdir_flag_spec='-L$libdir' | |
9046 | hardcode_libdir_separator= | |
9047 | fi | |
9048 | ;; | |
9049 | esac | |
9050 | shared_flag='-shared' | |
9051 | if test "$aix_use_runtimelinking" = yes; then | |
9052 | shared_flag="$shared_flag "'${wl}-G' | |
9053 | fi | |
9054 | else | |
9055 | # not using gcc | |
9056 | if test "$host_cpu" = ia64; then | |
9057 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
9058 | # chokes on -Wl,-G. The following line is correct: | |
9059 | shared_flag='-G' | |
9060 | else | |
9061 | if test "$aix_use_runtimelinking" = yes; then | |
9062 | shared_flag='${wl}-G' | |
9063 | else | |
9064 | shared_flag='${wl}-bM:SRE' | |
9065 | fi | |
9066 | fi | |
9067 | fi | |
9068 | ||
9069 | # It seems that -bexpall does not export symbols beginning with | |
9070 | # underscore (_), so it is better to generate a list of symbols to export. | |
9071 | always_export_symbols=yes | |
9072 | if test "$aix_use_runtimelinking" = yes; then | |
9073 | # Warning - without using the other runtime loading flags (-brtl), | |
9074 | # -berok will link without error, but may produce a broken library. | |
9075 | allow_undefined_flag='-berok' | |
9076 | # Determine the default libpath from the value encoded in an | |
9077 | # empty executable. | |
9078 | if test x$gcc_no_link = xyes; then | |
9079 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
9080 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
9081 | { (exit 1); exit 1; }; } | |
9082 | fi | |
9083 | cat >conftest.$ac_ext <<_ACEOF | |
9084 | /* confdefs.h. */ | |
9085 | _ACEOF | |
9086 | cat confdefs.h >>conftest.$ac_ext | |
9087 | cat >>conftest.$ac_ext <<_ACEOF | |
9088 | /* end confdefs.h. */ | |
9089 | ||
9090 | int | |
9091 | main () | |
9092 | { | |
9093 | ||
9094 | ; | |
9095 | return 0; | |
9096 | } | |
9097 | _ACEOF | |
9098 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8a165db0 BK |
9099 | if { (ac_try="$ac_link" |
9100 | case "(($ac_try" in | |
9101 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9102 | *) ac_try_echo=$ac_try;; | |
9103 | esac | |
9104 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9105 | (eval "$ac_link") 2>conftest.er1 | |
1cf3d07d SE |
9106 | ac_status=$? |
9107 | grep -v '^ *+' conftest.er1 >conftest.err | |
9108 | rm -f conftest.er1 | |
9109 | cat conftest.err >&5 | |
9110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8a165db0 BK |
9111 | (exit $ac_status); } && { |
9112 | test -z "$ac_c_werror_flag" || | |
9113 | test ! -s conftest.err | |
9114 | } && test -s conftest$ac_exeext && | |
9115 | $as_test_x conftest$ac_exeext; then | |
1cf3d07d SE |
9116 | |
9117 | lt_aix_libpath_sed=' | |
9118 | /Import File Strings/,/^$/ { | |
9119 | /^0/ { | |
9120 | s/^0 *\(.*\)$/\1/ | |
9121 | p | |
9122 | } | |
9123 | }' | |
9124 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9125 | # Check for a 64-bit object if we didn't find anything. | |
9126 | if test -z "$aix_libpath"; then | |
9127 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9128 | fi | |
9129 | else | |
9130 | echo "$as_me: failed program was:" >&5 | |
9131 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9132 | ||
8a165db0 | 9133 | |
1cf3d07d | 9134 | fi |
8a165db0 BK |
9135 | |
9136 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
1cf3d07d SE |
9137 | conftest$ac_exeext conftest.$ac_ext |
9138 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
9139 | ||
9140 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
9141 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
9142 | else | |
9143 | if test "$host_cpu" = ia64; then | |
9144 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
9145 | allow_undefined_flag="-z nodefs" | |
9146 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" | |
9147 | else | |
9148 | # Determine the default libpath from the value encoded in an | |
9149 | # empty executable. | |
9150 | if test x$gcc_no_link = xyes; then | |
9151 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
9152 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
9153 | { (exit 1); exit 1; }; } | |
9154 | fi | |
9155 | cat >conftest.$ac_ext <<_ACEOF | |
9156 | /* confdefs.h. */ | |
9157 | _ACEOF | |
9158 | cat confdefs.h >>conftest.$ac_ext | |
9159 | cat >>conftest.$ac_ext <<_ACEOF | |
9160 | /* end confdefs.h. */ | |
9161 | ||
9162 | int | |
9163 | main () | |
9164 | { | |
9165 | ||
9166 | ; | |
9167 | return 0; | |
9168 | } | |
9169 | _ACEOF | |
9170 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8a165db0 BK |
9171 | if { (ac_try="$ac_link" |
9172 | case "(($ac_try" in | |
9173 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9174 | *) ac_try_echo=$ac_try;; | |
9175 | esac | |
9176 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9177 | (eval "$ac_link") 2>conftest.er1 | |
1cf3d07d SE |
9178 | ac_status=$? |
9179 | grep -v '^ *+' conftest.er1 >conftest.err | |
9180 | rm -f conftest.er1 | |
9181 | cat conftest.err >&5 | |
9182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8a165db0 BK |
9183 | (exit $ac_status); } && { |
9184 | test -z "$ac_c_werror_flag" || | |
9185 | test ! -s conftest.err | |
9186 | } && test -s conftest$ac_exeext && | |
9187 | $as_test_x conftest$ac_exeext; then | |
1cf3d07d SE |
9188 | |
9189 | lt_aix_libpath_sed=' | |
9190 | /Import File Strings/,/^$/ { | |
9191 | /^0/ { | |
9192 | s/^0 *\(.*\)$/\1/ | |
9193 | p | |
9194 | } | |
9195 | }' | |
9196 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9197 | # Check for a 64-bit object if we didn't find anything. | |
9198 | if test -z "$aix_libpath"; then | |
9199 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9200 | fi | |
9201 | else | |
9202 | echo "$as_me: failed program was:" >&5 | |
9203 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9204 | ||
8a165db0 | 9205 | |
1cf3d07d | 9206 | fi |
8a165db0 BK |
9207 | |
9208 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
1cf3d07d SE |
9209 | conftest$ac_exeext conftest.$ac_ext |
9210 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
9211 | ||
9212 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
9213 | # Warning - without using the other run time loading flags, | |
9214 | # -berok will link without error, but may produce a broken library. | |
9215 | no_undefined_flag=' ${wl}-bernotok' | |
9216 | allow_undefined_flag=' ${wl}-berok' | |
9217 | # Exported symbols can be pulled into shared objects from archives | |
9218 | whole_archive_flag_spec='$convenience' | |
9219 | archive_cmds_need_lc=yes | |
9220 | # This is similar to how AIX traditionally builds its shared libraries. | |
9221 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | |
9222 | fi | |
9223 | fi | |
9224 | ;; | |
9225 | ||
9226 | amigaos*) | |
9227 | if test "$host_cpu" = m68k; then | |
9228 | archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' | |
9229 | hardcode_libdir_flag_spec='-L$libdir' | |
9230 | hardcode_minus_L=yes | |
9231 | fi | |
9232 | # see comment about different semantics on the GNU ld section | |
9233 | ld_shlibs=no | |
9234 | ;; | |
9235 | ||
9236 | bsdi[45]*) | |
9237 | export_dynamic_flag_spec=-rdynamic | |
9238 | ;; | |
9239 | ||
9240 | cygwin* | mingw* | pw32*) | |
9241 | # When not using gcc, we currently assume that we are using | |
9242 | # Microsoft Visual C++. | |
9243 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
9244 | # no search path for DLLs. | |
9245 | hardcode_libdir_flag_spec=' ' | |
9246 | allow_undefined_flag=unsupported | |
9247 | # Tell ltmain to make .lib files, not .a files. | |
9248 | libext=lib | |
9249 | # Tell ltmain to make .dll files, not .so files. | |
9250 | shrext_cmds=".dll" | |
9251 | # FIXME: Setting linknames here is a bad hack. | |
9252 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
9253 | # The linker will automatically build a .lib file if we build a DLL. | |
9254 | old_archive_from_new_cmds='true' | |
9255 | # FIXME: Should let the user specify the lib program. | |
9256 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
9257 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
9258 | enable_shared_with_static_runtimes=yes | |
9259 | ;; | |
9260 | ||
9261 | darwin* | rhapsody*) | |
9262 | case $host_os in | |
9263 | rhapsody* | darwin1.[012]) | |
9264 | allow_undefined_flag='${wl}-undefined ${wl}suppress' | |
9265 | ;; | |
9266 | *) # Darwin 1.3 on | |
9267 | case ${MACOSX_DEPLOYMENT_TARGET-10.0} in | |
9268 | 10.[012]) | |
9269 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
9270 | ;; | |
9271 | 10.*) | |
9272 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' | |
9273 | ;; | |
9274 | esac | |
9275 | ;; | |
9276 | esac | |
9277 | archive_cmds_need_lc=no | |
9278 | hardcode_direct=no | |
9279 | hardcode_automatic=yes | |
9280 | hardcode_shlibpath_var=unsupported | |
9281 | whole_archive_flag_spec='' | |
9282 | link_all_deplibs=yes | |
9283 | if test "$GCC" = yes ; then | |
9284 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then | |
9285 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9286 | else | |
9287 | lt_cv_apple_cc_single_mod=no | |
9288 | if test -z "${LT_MULTI_MODULE}"; then | |
9289 | # By default we will add the -single_module flag. You can override | |
9290 | # by either setting the environment variable LT_MULTI_MODULE | |
9291 | # non-empty at configure time, or by adding -multi-module to the | |
9292 | # link flags. | |
9293 | echo "int foo(void){return 1;}" > conftest.c | |
9294 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
9295 | -dynamiclib ${wl}-single_module conftest.c | |
9296 | if test -f libconftest.dylib; then | |
9297 | lt_cv_apple_cc_single_mod=yes | |
9298 | rm libconftest.dylib | |
9299 | fi | |
9300 | rm conftest.$ac_ext | |
9301 | fi | |
9302 | fi | |
9303 | ||
9304 | output_verbose_link_cmd=echo | |
9305 | if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then | |
9306 | archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
9307 | archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
9308 | else | |
9309 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
9310 | archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
9311 | fi | |
9312 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
9313 | module_expsym_cmds='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
9314 | else | |
9315 | case $cc_basename in | |
9316 | xlc*) | |
9317 | output_verbose_link_cmd=echo | |
9318 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring' | |
9319 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
9320 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | |
9321 | archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
9322 | module_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
9323 | ;; | |
9324 | *) | |
9325 | ld_shlibs=no | |
9326 | ;; | |
9327 | esac | |
9328 | fi | |
9329 | ;; | |
9330 | ||
9331 | dgux*) | |
9332 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9333 | hardcode_libdir_flag_spec='-L$libdir' | |
9334 | hardcode_shlibpath_var=no | |
9335 | ;; | |
9336 | ||
9337 | freebsd1*) | |
9338 | ld_shlibs=no | |
9339 | ;; | |
9340 | ||
9341 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
9342 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
9343 | # does not break anything, and helps significantly (at the cost of a little | |
9344 | # extra space). | |
9345 | freebsd2.2*) | |
9346 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
9347 | hardcode_libdir_flag_spec='-R$libdir' | |
9348 | hardcode_direct=yes | |
9349 | hardcode_shlibpath_var=no | |
9350 | ;; | |
9351 | ||
9352 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
9353 | freebsd2*) | |
9354 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9355 | hardcode_direct=yes | |
9356 | hardcode_minus_L=yes | |
9357 | hardcode_shlibpath_var=no | |
9358 | ;; | |
9359 | ||
9360 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
9361 | freebsd* | dragonfly*) | |
9362 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
9363 | hardcode_libdir_flag_spec='-R$libdir' | |
9364 | hardcode_direct=yes | |
9365 | hardcode_shlibpath_var=no | |
9366 | ;; | |
9367 | ||
9368 | hpux9*) | |
9369 | if test "$GCC" = yes; then | |
9370 | archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
9371 | else | |
9372 | archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
9373 | fi | |
9374 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9375 | hardcode_libdir_separator=: | |
9376 | hardcode_direct=yes | |
9377 | ||
9378 | # hardcode_minus_L: Not really in the search PATH, | |
9379 | # but as the default location of the library. | |
9380 | hardcode_minus_L=yes | |
9381 | export_dynamic_flag_spec='${wl}-E' | |
9382 | ;; | |
9383 | ||
9384 | hpux10*) | |
9385 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
9386 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9387 | else | |
9388 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9389 | fi | |
9390 | if test "$with_gnu_ld" = no; then | |
9391 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9392 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
9393 | hardcode_libdir_separator=: | |
9394 | hardcode_direct=yes | |
9395 | hardcode_direct_absolute=yes | |
9396 | export_dynamic_flag_spec='${wl}-E' | |
9397 | # hardcode_minus_L: Not really in the search PATH, | |
9398 | # but as the default location of the library. | |
9399 | hardcode_minus_L=yes | |
9400 | fi | |
9401 | ;; | |
9402 | ||
9403 | hpux11*) | |
9404 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
9405 | case $host_cpu in | |
9406 | hppa*64*) | |
9407 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9408 | ;; | |
9409 | ia64*) | |
9410 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
9411 | ;; | |
9412 | *) | |
9413 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9414 | ;; | |
9415 | esac | |
9416 | else | |
9417 | case $host_cpu in | |
9418 | hppa*64*) | |
9419 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9420 | ;; | |
9421 | ia64*) | |
9422 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
9423 | ;; | |
9424 | *) | |
9425 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9426 | ;; | |
9427 | esac | |
9428 | fi | |
9429 | if test "$with_gnu_ld" = no; then | |
9430 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9431 | hardcode_libdir_separator=: | |
9432 | ||
9433 | case $host_cpu in | |
9434 | hppa*64*|ia64*) | |
9435 | hardcode_direct=no | |
9436 | hardcode_shlibpath_var=no | |
9437 | ;; | |
9438 | *) | |
9439 | hardcode_direct=yes | |
9440 | hardcode_direct_absolute=yes | |
9441 | export_dynamic_flag_spec='${wl}-E' | |
9442 | ||
9443 | # hardcode_minus_L: Not really in the search PATH, | |
9444 | # but as the default location of the library. | |
9445 | hardcode_minus_L=yes | |
9446 | ;; | |
9447 | esac | |
9448 | fi | |
9449 | ;; | |
9450 | ||
9451 | irix5* | irix6* | nonstopux*) | |
9452 | if test "$GCC" = yes; then | |
9453 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
9454 | # Try to use the -exported_symbol ld option, if it does not | |
9455 | # work, assume that -exports_file does not work either and | |
9456 | # implicitly export all symbols. | |
9457 | save_LDFLAGS="$LDFLAGS" | |
9458 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
9459 | if test x$gcc_no_link = xyes; then | |
9460 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
9461 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
9462 | { (exit 1); exit 1; }; } | |
9463 | fi | |
9464 | cat >conftest.$ac_ext <<_ACEOF | |
9465 | int foo(void) {} | |
9466 | _ACEOF | |
9467 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8a165db0 BK |
9468 | if { (ac_try="$ac_link" |
9469 | case "(($ac_try" in | |
9470 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9471 | *) ac_try_echo=$ac_try;; | |
9472 | esac | |
9473 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9474 | (eval "$ac_link") 2>conftest.er1 | |
1cf3d07d SE |
9475 | ac_status=$? |
9476 | grep -v '^ *+' conftest.er1 >conftest.err | |
9477 | rm -f conftest.er1 | |
9478 | cat conftest.err >&5 | |
9479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8a165db0 BK |
9480 | (exit $ac_status); } && { |
9481 | test -z "$ac_c_werror_flag" || | |
9482 | test ! -s conftest.err | |
9483 | } && test -s conftest$ac_exeext && | |
9484 | $as_test_x conftest$ac_exeext; then | |
1cf3d07d SE |
9485 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' |
9486 | ||
9487 | else | |
9488 | echo "$as_me: failed program was:" >&5 | |
9489 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9490 | ||
8a165db0 | 9491 | |
1cf3d07d | 9492 | fi |
8a165db0 BK |
9493 | |
9494 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
1cf3d07d SE |
9495 | conftest$ac_exeext conftest.$ac_ext |
9496 | LDFLAGS="$save_LDFLAGS" | |
9497 | else | |
9498 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
9499 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' | |
9500 | fi | |
9501 | archive_cmds_need_lc='no' | |
9502 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9503 | hardcode_libdir_separator=: | |
9504 | inherit_rpath=yes | |
9505 | link_all_deplibs=yes | |
9506 | ;; | |
9507 | ||
9508 | netbsd*) | |
9509 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9510 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
9511 | else | |
9512 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
9513 | fi | |
9514 | hardcode_libdir_flag_spec='-R$libdir' | |
9515 | hardcode_direct=yes | |
9516 | hardcode_shlibpath_var=no | |
9517 | ;; | |
9518 | ||
9519 | newsos6) | |
9520 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9521 | hardcode_direct=yes | |
9522 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9523 | hardcode_libdir_separator=: | |
9524 | hardcode_shlibpath_var=no | |
9525 | ;; | |
9526 | ||
9527 | *nto* | *qnx*) | |
9528 | ;; | |
9529 | ||
9530 | openbsd*) | |
9531 | hardcode_direct=yes | |
9532 | hardcode_shlibpath_var=no | |
9533 | hardcode_direct_absolute=yes | |
9534 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
9535 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9536 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
9537 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9538 | export_dynamic_flag_spec='${wl}-E' | |
9539 | else | |
9540 | case $host_os in | |
9541 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
9542 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9543 | hardcode_libdir_flag_spec='-R$libdir' | |
9544 | ;; | |
9545 | *) | |
9546 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9547 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9548 | ;; | |
9549 | esac | |
9550 | fi | |
9551 | ;; | |
9552 | ||
9553 | os2*) | |
9554 | hardcode_libdir_flag_spec='-L$libdir' | |
9555 | hardcode_minus_L=yes | |
9556 | allow_undefined_flag=unsupported | |
9557 | archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' | |
9558 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
9559 | ;; | |
9560 | ||
9561 | osf3*) | |
9562 | if test "$GCC" = yes; then | |
9563 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
9564 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
9565 | else | |
9566 | allow_undefined_flag=' -expect_unresolved \*' | |
9567 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
9568 | fi | |
9569 | archive_cmds_need_lc='no' | |
9570 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9571 | hardcode_libdir_separator=: | |
9572 | ;; | |
9573 | ||
9574 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
9575 | if test "$GCC" = yes; then | |
9576 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
9577 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
9578 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9579 | else | |
9580 | allow_undefined_flag=' -expect_unresolved \*' | |
9581 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
9582 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ | |
9583 | $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' | |
9584 | ||
9585 | # Both c and cxx compiler support -rpath directly | |
9586 | hardcode_libdir_flag_spec='-rpath $libdir' | |
9587 | fi | |
9588 | archive_cmds_need_lc='no' | |
9589 | hardcode_libdir_separator=: | |
9590 | ;; | |
9591 | ||
9592 | solaris*) | |
9593 | no_undefined_flag=' -z defs' | |
9594 | if test "$GCC" = yes; then | |
9595 | wlarc='${wl}' | |
9596 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9597 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9598 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
9599 | else | |
9600 | case `$CC -V 2>&1` in | |
9601 | *"Compilers 5.0"*) | |
9602 | wlarc='' | |
9603 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9604 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9605 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
9606 | ;; | |
9607 | *) | |
9608 | wlarc='${wl}' | |
9609 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
9610 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9611 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
9612 | ;; | |
9613 | esac | |
9614 | fi | |
9615 | hardcode_libdir_flag_spec='-R$libdir' | |
9616 | hardcode_shlibpath_var=no | |
9617 | case $host_os in | |
9618 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
9619 | *) | |
9620 | # The compiler driver will combine and reorder linker options, | |
9621 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
9622 | # but is careful enough not to reorder. | |
9623 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
9624 | if test "$GCC" = yes; then | |
9625 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
9626 | else | |
9627 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
9628 | fi | |
9629 | ;; | |
9630 | esac | |
9631 | link_all_deplibs=yes | |
9632 | ;; | |
9633 | ||
9634 | sunos4*) | |
9635 | if test "x$host_vendor" = xsequent; then | |
9636 | # Use $CC to link under sequent, because it throws in some extra .o | |
9637 | # files that make .init and .fini sections work. | |
9638 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
9639 | else | |
9640 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
9641 | fi | |
9642 | hardcode_libdir_flag_spec='-L$libdir' | |
9643 | hardcode_direct=yes | |
9644 | hardcode_minus_L=yes | |
9645 | hardcode_shlibpath_var=no | |
9646 | ;; | |
9647 | ||
9648 | sysv4) | |
9649 | case $host_vendor in | |
9650 | sni) | |
9651 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9652 | hardcode_direct=yes # is this really true??? | |
9653 | ;; | |
9654 | siemens) | |
9655 | ## LD is ld it makes a PLAMLIB | |
9656 | ## CC just makes a GrossModule. | |
9657 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
9658 | reload_cmds='$CC -r -o $output$reload_objs' | |
9659 | hardcode_direct=no | |
9660 | ;; | |
9661 | motorola) | |
9662 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9663 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
9664 | ;; | |
9665 | esac | |
9666 | runpath_var='LD_RUN_PATH' | |
9667 | hardcode_shlibpath_var=no | |
9668 | ;; | |
9669 | ||
9670 | sysv4.3*) | |
9671 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9672 | hardcode_shlibpath_var=no | |
9673 | export_dynamic_flag_spec='-Bexport' | |
9674 | ;; | |
9675 | ||
9676 | sysv4*MP*) | |
9677 | if test -d /usr/nec; then | |
9678 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9679 | hardcode_shlibpath_var=no | |
9680 | runpath_var=LD_RUN_PATH | |
9681 | hardcode_runpath_var=yes | |
9682 | ld_shlibs=yes | |
9683 | fi | |
9684 | ;; | |
9685 | ||
9686 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
9687 | no_undefined_flag='${wl}-z,text' | |
9688 | archive_cmds_need_lc=no | |
9689 | hardcode_shlibpath_var=no | |
9690 | runpath_var='LD_RUN_PATH' | |
9691 | ||
9692 | if test "$GCC" = yes; then | |
9693 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9694 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9695 | else | |
9696 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9697 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9698 | fi | |
9699 | ;; | |
9700 | ||
9701 | sysv5* | sco3.2v5* | sco5v6*) | |
9702 | # Note: We can NOT use -z defs as we might desire, because we do not | |
9703 | # link with -lc, and that would cause any symbols used from libc to | |
9704 | # always be unresolved, which means just about no library would | |
9705 | # ever link correctly. If we're not using GNU ld we use -z text | |
9706 | # though, which does catch some bad symbols but isn't as heavy-handed | |
9707 | # as -z defs. | |
9708 | no_undefined_flag='${wl}-z,text' | |
9709 | allow_undefined_flag='${wl}-z,nodefs' | |
9710 | archive_cmds_need_lc=no | |
9711 | hardcode_shlibpath_var=no | |
9712 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
9713 | hardcode_libdir_separator=':' | |
9714 | link_all_deplibs=yes | |
9715 | export_dynamic_flag_spec='${wl}-Bexport' | |
9716 | runpath_var='LD_RUN_PATH' | |
9717 | ||
9718 | if test "$GCC" = yes; then | |
9719 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9720 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9721 | else | |
9722 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9723 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9724 | fi | |
9725 | ;; | |
9726 | ||
9727 | uts4*) | |
9728 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9729 | hardcode_libdir_flag_spec='-L$libdir' | |
9730 | hardcode_shlibpath_var=no | |
9731 | ;; | |
9732 | ||
9733 | *) | |
9734 | ld_shlibs=no | |
9735 | ;; | |
9736 | esac | |
9737 | ||
9738 | if test x$host_vendor = xsni; then | |
9739 | case $host in | |
9740 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
9741 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
9742 | ;; | |
9743 | esac | |
9744 | fi | |
9745 | fi | |
9746 | ||
8a165db0 BK |
9747 | { echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
9748 | echo "${ECHO_T}$ld_shlibs" >&6; } | |
1cf3d07d SE |
9749 | test "$ld_shlibs" = no && can_build_shared=no |
9750 | ||
9751 | with_gnu_ld=$with_gnu_ld | |
9752 | ||
9753 | ||
9754 | ||
9755 | ||
9756 | ||
9757 | ||
9758 | ||
9759 | ||
9760 | ||
9761 | ||
9762 | ||
9763 | ||
9764 | ||
9765 | ||
9766 | ||
9767 | # | |
9768 | # Do we need to explicitly link libc? | |
9769 | # | |
9770 | case "x$archive_cmds_need_lc" in | |
9771 | x|xyes) | |
9772 | # Assume -lc should be added | |
9773 | archive_cmds_need_lc=yes | |
9774 | ||
9775 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
9776 | case $archive_cmds in | |
9777 | *'~'*) | |
9778 | # FIXME: we may have to deal with multi-command sequences. | |
9779 | ;; | |
9780 | '$CC '*) | |
9781 | # Test whether the compiler implicitly links with -lc since on some | |
9782 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
9783 | # to ld, don't add -lc before -lgcc. | |
8a165db0 BK |
9784 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
9785 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } | |
1cf3d07d SE |
9786 | $RM conftest* |
9787 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9788 | ||
9789 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9790 | (eval $ac_compile) 2>&5 | |
9791 | ac_status=$? | |
9792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9793 | (exit $ac_status); } 2>conftest.err; then | |
9794 | soname=conftest | |
9795 | lib=conftest | |
9796 | libobjs=conftest.$ac_objext | |
9797 | deplibs= | |
9798 | wl=$lt_prog_compiler_wl | |
9799 | pic_flag=$lt_prog_compiler_pic | |
9800 | compiler_flags=-v | |
9801 | linker_flags=-v | |
9802 | verstring= | |
9803 | output_objdir=. | |
9804 | libname=conftest | |
9805 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
9806 | allow_undefined_flag= | |
9807 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
9808 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
9809 | ac_status=$? | |
9810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9811 | (exit $ac_status); } | |
9812 | then | |
9813 | archive_cmds_need_lc=no | |
9814 | else | |
9815 | archive_cmds_need_lc=yes | |
9816 | fi | |
9817 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
9818 | else | |
9819 | cat conftest.err 1>&5 | |
9820 | fi | |
9821 | $RM conftest* | |
8a165db0 BK |
9822 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
9823 | echo "${ECHO_T}$archive_cmds_need_lc" >&6; } | |
1cf3d07d SE |
9824 | ;; |
9825 | esac | |
9826 | fi | |
9827 | ;; | |
9828 | esac | |
9829 | ||
9830 | ||
9831 | ||
9832 | ||
9833 | ||
9834 | ||
9835 | ||
9836 | ||
9837 | ||
9838 | ||
9839 | ||
9840 | ||
9841 | ||
9842 | ||
9843 | ||
9844 | ||
9845 | ||
9846 | ||
9847 | ||
9848 | ||
9849 | ||
9850 | ||
9851 | ||
9852 | ||
9853 | ||
9854 | ||
9855 | ||
9856 | ||
9857 | ||
9858 | ||
9859 | ||
9860 | ||
9861 | ||
9862 | ||
9863 | ||
9864 | ||
9865 | ||
9866 | ||
9867 | ||
9868 | ||
9869 | ||
9870 | ||
9871 | ||
9872 | ||
9873 | ||
9874 | ||
9875 | ||
9876 | ||
9877 | ||
9878 | ||
9879 | ||
9880 | ||
9881 | ||
9882 | ||
9883 | ||
9884 | ||
9885 | ||
9886 | ||
9887 | ||
9888 | ||
9889 | ||
9890 | ||
9891 | ||
9892 | ||
9893 | ||
9894 | ||
9895 | ||
9896 | ||
9897 | ||
9898 | ||
9899 | ||
9900 | ||
9901 | ||
9902 | ||
9903 | ||
9904 | ||
9905 | ||
9906 | ||
9907 | ||
9908 | ||
9909 | ||
9910 | ||
9911 | ||
9912 | ||
9913 | ||
9914 | ||
9915 | ||
9916 | ||
9917 | ||
9918 | ||
9919 | ||
9920 | ||
9921 | ||
9922 | ||
9923 | ||
9924 | ||
9925 | ||
9926 | ||
9927 | ||
9928 | ||
9929 | ||
9930 | ||
9931 | ||
9932 | ||
9933 | ||
9934 | ||
9935 | ||
9936 | ||
9937 | ||
9938 | ||
9939 | ||
9940 | ||
9941 | ||
9942 | ||
9943 | ||
9944 | ||
9945 | ||
9946 | ||
9947 | ||
9948 | ||
9949 | ||
9950 | ||
9951 | ||
9952 | ||
9953 | ||
9954 | ||
9955 | ||
9956 | ||
9957 | ||
9958 | ||
9959 | ||
9960 | ||
9961 | ||
9962 | ||
9963 | ||
9964 | ||
9965 | ||
9966 | ||
9967 | ||
9968 | ||
9969 | ||
9970 | ||
9971 | ||
9972 | ||
9973 | ||
9974 | ||
9975 | ||
9976 | ||
9977 | ||
9978 | ||
9979 | ||
9980 | ||
9981 | ||
9982 | ||
9983 | ||
9984 | ||
9985 | ||
8a165db0 BK |
9986 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
9987 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } | |
1cf3d07d SE |
9988 | withGCC=$GCC |
9989 | if test "$withGCC" = yes; then | |
9990 | case $host_os in | |
9991 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
9992 | *) lt_awk_arg="/^libraries:/" ;; | |
9993 | esac | |
9994 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
9995 | if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then | |
9996 | # if the path contains ";" then we assume it to be the separator | |
9997 | # otherwise default to the standard path separator (i.e. ":") - it is | |
9998 | # assumed that no part of a normal pathname contains ";" but that should | |
9999 | # okay in the real world where ";" in dirpaths is itself problematic. | |
10000 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` | |
10001 | else | |
10002 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
10003 | fi | |
10004 | # Ok, now we have the path, separated by spaces, we can step through it | |
10005 | # and add multilib dir if necessary. | |
10006 | lt_tmp_lt_search_path_spec= | |
10007 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
10008 | for lt_sys_path in $lt_search_path_spec; do | |
10009 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
10010 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
10011 | else | |
10012 | test -d "$lt_sys_path" && \ | |
10013 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
10014 | fi | |
10015 | done | |
10016 | lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' | |
10017 | BEGIN {RS=" "; FS="/|\n";} { | |
10018 | lt_foo=""; | |
10019 | lt_count=0; | |
10020 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
10021 | if ($lt_i != "" && $lt_i != ".") { | |
10022 | if ($lt_i == "..") { | |
10023 | lt_count++; | |
10024 | } else { | |
10025 | if (lt_count == 0) { | |
10026 | lt_foo="/" $lt_i lt_foo; | |
10027 | } else { | |
10028 | lt_count--; | |
10029 | } | |
10030 | } | |
10031 | } | |
10032 | } | |
10033 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
10034 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
10035 | }'` | |
10036 | sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` | |
10037 | else | |
10038 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
10039 | fi | |
10040 | library_names_spec= | |
10041 | libname_spec='lib$name' | |
10042 | soname_spec= | |
10043 | shrext_cmds=".so" | |
10044 | postinstall_cmds= | |
10045 | postuninstall_cmds= | |
10046 | finish_cmds= | |
10047 | finish_eval= | |
10048 | shlibpath_var= | |
10049 | shlibpath_overrides_runpath=unknown | |
10050 | version_type=none | |
10051 | dynamic_linker="$host_os ld.so" | |
10052 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
10053 | need_lib_prefix=unknown | |
10054 | hardcode_into_libs=no | |
10055 | ||
10056 | # when you set need_version to no, make sure it does not cause -set_version | |
10057 | # flags to be left without arguments | |
10058 | need_version=unknown | |
10059 | ||
10060 | case $host_os in | |
10061 | aix3*) | |
10062 | version_type=linux | |
10063 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
10064 | shlibpath_var=LIBPATH | |
10065 | ||
10066 | # AIX 3 has no versioning support, so we append a major version to the name. | |
10067 | soname_spec='${libname}${release}${shared_ext}$major' | |
10068 | ;; | |
10069 | ||
716e4bc6 | 10070 | aix[4-9]*) |
1cf3d07d SE |
10071 | version_type=linux |
10072 | need_lib_prefix=no | |
10073 | need_version=no | |
10074 | hardcode_into_libs=yes | |
10075 | if test "$host_cpu" = ia64; then | |
10076 | # AIX 5 supports IA64 | |
10077 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
10078 | shlibpath_var=LD_LIBRARY_PATH | |
10079 | else | |
10080 | # With GCC up to 2.95.x, collect2 would create an import file | |
10081 | # for dependence libraries. The import file would start with | |
10082 | # the line `#! .'. This would cause the generated library to | |
10083 | # depend on `.', always an invalid library. This was fixed in | |
10084 | # development snapshots of GCC prior to 3.0. | |
10085 | case $host_os in | |
10086 | aix4 | aix4.[01] | aix4.[01].*) | |
10087 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
10088 | echo ' yes ' | |
10089 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
10090 | : | |
10091 | else | |
10092 | can_build_shared=no | |
10093 | fi | |
10094 | ;; | |
10095 | esac | |
10096 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
10097 | # soname into executable. Probably we can add versioning support to | |
10098 | # collect2, so additional links can be useful in future. | |
10099 | if test "$aix_use_runtimelinking" = yes; then | |
10100 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
10101 | # instead of lib<name>.a to let people know that these are not | |
10102 | # typical AIX shared libraries. | |
10103 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10104 | else | |
10105 | # We preserve .a as extension for shared libraries through AIX4.2 | |
10106 | # and later when we are not doing run time linking. | |
10107 | library_names_spec='${libname}${release}.a $libname.a' | |
10108 | soname_spec='${libname}${release}${shared_ext}$major' | |
10109 | fi | |
10110 | shlibpath_var=LIBPATH | |
10111 | fi | |
10112 | ;; | |
10113 | ||
10114 | amigaos*) | |
10115 | if test "$host_cpu" = m68k; then | |
10116 | library_names_spec='$libname.ixlibrary $libname.a' | |
10117 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
10118 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' | |
10119 | else | |
10120 | dynamic_linker=no | |
10121 | fi | |
10122 | ;; | |
10123 | ||
10124 | beos*) | |
10125 | library_names_spec='${libname}${shared_ext}' | |
10126 | dynamic_linker="$host_os ld.so" | |
10127 | shlibpath_var=LIBRARY_PATH | |
10128 | ;; | |
10129 | ||
10130 | bsdi[45]*) | |
10131 | version_type=linux | |
10132 | need_version=no | |
10133 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10134 | soname_spec='${libname}${release}${shared_ext}$major' | |
10135 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
10136 | shlibpath_var=LD_LIBRARY_PATH | |
10137 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
10138 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
10139 | # the default ld.so.conf also contains /usr/contrib/lib and | |
10140 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
10141 | # libtool to hard-code these into programs | |
10142 | ;; | |
10143 | ||
10144 | cygwin* | mingw* | pw32*) | |
10145 | version_type=windows | |
10146 | shrext_cmds=".dll" | |
10147 | need_version=no | |
10148 | need_lib_prefix=no | |
10149 | ||
10150 | case $withGCC,$host_os in | |
10151 | yes,cygwin* | yes,mingw* | yes,pw32*) | |
10152 | library_names_spec='$libname.dll.a' | |
10153 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
10154 | postinstall_cmds='base_file=`basename \${file}`~ | |
10155 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
10156 | dldir=$destdir/`dirname \$dlpath`~ | |
10157 | test -d \$dldir || mkdir -p \$dldir~ | |
10158 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
10159 | chmod a+x \$dldir/$dlname~ | |
10160 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
10161 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
10162 | fi' | |
10163 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
10164 | dlpath=$dir/\$dldll~ | |
10165 | $RM \$dlpath' | |
10166 | shlibpath_overrides_runpath=yes | |
10167 | ||
10168 | case $host_os in | |
10169 | cygwin*) | |
10170 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
10171 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10172 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
10173 | ;; | |
10174 | mingw*) | |
10175 | # MinGW DLLs use traditional 'lib' prefix | |
10176 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10177 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
10178 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
10179 | # It is most probably a Windows format PATH printed by | |
10180 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
10181 | # path with ; separators, and with drive letters. We can handle the | |
10182 | # drive letters (cygwin fileutils understands them), so leave them, | |
10183 | # especially as we might pass files found there to a mingw objdump, | |
10184 | # which wouldn't understand a cygwinified path. Ahh. | |
10185 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
10186 | else | |
10187 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
10188 | fi | |
10189 | ;; | |
10190 | pw32*) | |
10191 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
10192 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10193 | ;; | |
10194 | esac | |
10195 | ;; | |
10196 | ||
10197 | *) | |
10198 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
10199 | ;; | |
10200 | esac | |
10201 | dynamic_linker='Win32 ld.exe' | |
10202 | # FIXME: first we should search . and the directory the executable is in | |
10203 | shlibpath_var=PATH | |
10204 | ;; | |
10205 | ||
10206 | darwin* | rhapsody*) | |
10207 | dynamic_linker="$host_os dyld" | |
10208 | version_type=darwin | |
10209 | need_lib_prefix=no | |
10210 | need_version=no | |
10211 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
10212 | soname_spec='${libname}${release}${major}$shared_ext' | |
10213 | shlibpath_overrides_runpath=yes | |
10214 | shlibpath_var=DYLD_LIBRARY_PATH | |
10215 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
10216 | ||
10217 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
10218 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
10219 | ;; | |
10220 | ||
10221 | dgux*) | |
10222 | version_type=linux | |
10223 | need_lib_prefix=no | |
10224 | need_version=no | |
10225 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
10226 | soname_spec='${libname}${release}${shared_ext}$major' | |
10227 | shlibpath_var=LD_LIBRARY_PATH | |
10228 | ;; | |
10229 | ||
10230 | freebsd1*) | |
10231 | dynamic_linker=no | |
10232 | ;; | |
10233 | ||
10234 | freebsd* | dragonfly*) | |
10235 | # DragonFly does not have aout. When/if they implement a new | |
10236 | # versioning mechanism, adjust this. | |
10237 | if test -x /usr/bin/objformat; then | |
10238 | objformat=`/usr/bin/objformat` | |
10239 | else | |
10240 | case $host_os in | |
10241 | freebsd[123]*) objformat=aout ;; | |
10242 | *) objformat=elf ;; | |
10243 | esac | |
10244 | fi | |
10245 | version_type=freebsd-$objformat | |
10246 | case $version_type in | |
10247 | freebsd-elf*) | |
10248 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10249 | need_version=no | |
10250 | need_lib_prefix=no | |
10251 | ;; | |
10252 | freebsd-*) | |
10253 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
10254 | need_version=yes | |
10255 | ;; | |
10256 | esac | |
10257 | shlibpath_var=LD_LIBRARY_PATH | |
10258 | case $host_os in | |
10259 | freebsd2*) | |
10260 | shlibpath_overrides_runpath=yes | |
10261 | ;; | |
10262 | freebsd3.[01]* | freebsdelf3.[01]*) | |
10263 | shlibpath_overrides_runpath=yes | |
10264 | hardcode_into_libs=yes | |
10265 | ;; | |
10266 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
10267 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
10268 | shlibpath_overrides_runpath=no | |
10269 | hardcode_into_libs=yes | |
10270 | ;; | |
10271 | *) # from 4.6 on, and DragonFly | |
10272 | shlibpath_overrides_runpath=yes | |
10273 | hardcode_into_libs=yes | |
10274 | ;; | |
10275 | esac | |
10276 | ;; | |
10277 | ||
10278 | gnu*) | |
10279 | version_type=linux | |
10280 | need_lib_prefix=no | |
10281 | need_version=no | |
10282 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
10283 | soname_spec='${libname}${release}${shared_ext}$major' | |
10284 | shlibpath_var=LD_LIBRARY_PATH | |
10285 | hardcode_into_libs=yes | |
10286 | ;; | |
10287 | ||
10288 | hpux9* | hpux10* | hpux11*) | |
10289 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
10290 | # link against other versions. | |
10291 | version_type=sunos | |
10292 | need_lib_prefix=no | |
10293 | need_version=no | |
10294 | case $host_cpu in | |
10295 | ia64*) | |
10296 | shrext_cmds='.so' | |
10297 | hardcode_into_libs=yes | |
10298 | dynamic_linker="$host_os dld.so" | |
10299 | shlibpath_var=LD_LIBRARY_PATH | |
10300 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10301 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10302 | soname_spec='${libname}${release}${shared_ext}$major' | |
10303 | if test "X$HPUX_IA64_MODE" = X32; then | |
10304 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
10305 | else | |
10306 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
10307 | fi | |
10308 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10309 | ;; | |
10310 | hppa*64*) | |
10311 | shrext_cmds='.sl' | |
10312 | hardcode_into_libs=yes | |
10313 | dynamic_linker="$host_os dld.sl" | |
10314 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
10315 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10316 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10317 | soname_spec='${libname}${release}${shared_ext}$major' | |
10318 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
10319 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10320 | ;; | |
10321 | *) | |
10322 | shrext_cmds='.sl' | |
10323 | dynamic_linker="$host_os dld.sl" | |
10324 | shlibpath_var=SHLIB_PATH | |
10325 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
10326 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10327 | soname_spec='${libname}${release}${shared_ext}$major' | |
10328 | ;; | |
10329 | esac | |
10330 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
10331 | postinstall_cmds='chmod 555 $lib' | |
10332 | ;; | |
10333 | ||
10334 | interix[3-9]*) | |
10335 | version_type=linux | |
10336 | need_lib_prefix=no | |
10337 | need_version=no | |
10338 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10339 | soname_spec='${libname}${release}${shared_ext}$major' | |
10340 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
10341 | shlibpath_var=LD_LIBRARY_PATH | |
10342 | shlibpath_overrides_runpath=no | |
10343 | hardcode_into_libs=yes | |
10344 | ;; | |
10345 | ||
10346 | irix5* | irix6* | nonstopux*) | |
10347 | case $host_os in | |
10348 | nonstopux*) version_type=nonstopux ;; | |
10349 | *) | |
10350 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
10351 | version_type=linux | |
10352 | else | |
10353 | version_type=irix | |
10354 | fi ;; | |
10355 | esac | |
10356 | need_lib_prefix=no | |
10357 | need_version=no | |
10358 | soname_spec='${libname}${release}${shared_ext}$major' | |
10359 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10360 | case $host_os in | |
10361 | irix5* | nonstopux*) | |
10362 | libsuff= shlibsuff= | |
10363 | ;; | |
10364 | *) | |
10365 | case $LD in # libtool.m4 will add one of these switches to LD | |
10366 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
10367 | libsuff= shlibsuff= libmagic=32-bit;; | |
10368 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
10369 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
10370 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
10371 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
10372 | *) libsuff= shlibsuff= libmagic=never-match;; | |
10373 | esac | |
10374 | ;; | |
10375 | esac | |
10376 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
10377 | shlibpath_overrides_runpath=no | |
10378 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
10379 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
10380 | hardcode_into_libs=yes | |
10381 | ;; | |
10382 | ||
10383 | # No shared lib support for Linux oldld, aout, or coff. | |
10384 | linux*oldld* | linux*aout* | linux*coff*) | |
10385 | dynamic_linker=no | |
10386 | ;; | |
10387 | ||
10388 | # This must be Linux ELF. | |
10389 | linux* | k*bsd*-gnu) | |
10390 | version_type=linux | |
10391 | need_lib_prefix=no | |
10392 | need_version=no | |
10393 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10394 | soname_spec='${libname}${release}${shared_ext}$major' | |
10395 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
10396 | shlibpath_var=LD_LIBRARY_PATH | |
10397 | shlibpath_overrides_runpath=no | |
10398 | # Some binutils ld are patched to set DT_RUNPATH | |
10399 | save_LDFLAGS=$LDFLAGS | |
10400 | save_libdir=$libdir | |
10401 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
10402 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
10403 | if test x$gcc_no_link = xyes; then | |
10404 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
10405 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
10406 | { (exit 1); exit 1; }; } | |
10407 | fi | |
10408 | cat >conftest.$ac_ext <<_ACEOF | |
10409 | /* confdefs.h. */ | |
10410 | _ACEOF | |
10411 | cat confdefs.h >>conftest.$ac_ext | |
10412 | cat >>conftest.$ac_ext <<_ACEOF | |
10413 | /* end confdefs.h. */ | |
10414 | ||
10415 | int | |
10416 | main () | |
10417 | { | |
10418 | ||
10419 | ; | |
10420 | return 0; | |
10421 | } | |
10422 | _ACEOF | |
10423 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8a165db0 BK |
10424 | if { (ac_try="$ac_link" |
10425 | case "(($ac_try" in | |
10426 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10427 | *) ac_try_echo=$ac_try;; | |
10428 | esac | |
10429 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10430 | (eval "$ac_link") 2>conftest.er1 | |
1cf3d07d SE |
10431 | ac_status=$? |
10432 | grep -v '^ *+' conftest.er1 >conftest.err | |
10433 | rm -f conftest.er1 | |
10434 | cat conftest.err >&5 | |
10435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8a165db0 BK |
10436 | (exit $ac_status); } && { |
10437 | test -z "$ac_c_werror_flag" || | |
10438 | test ! -s conftest.err | |
10439 | } && test -s conftest$ac_exeext && | |
10440 | $as_test_x conftest$ac_exeext; then | |
1cf3d07d SE |
10441 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then |
10442 | shlibpath_overrides_runpath=yes | |
10443 | fi | |
10444 | ||
10445 | else | |
10446 | echo "$as_me: failed program was:" >&5 | |
10447 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10448 | ||
8a165db0 | 10449 | |
1cf3d07d | 10450 | fi |
8a165db0 BK |
10451 | |
10452 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
1cf3d07d SE |
10453 | conftest$ac_exeext conftest.$ac_ext |
10454 | LDFLAGS=$save_LDFLAGS | |
10455 | libdir=$save_libdir | |
10456 | ||
10457 | # This implies no fast_install, which is unacceptable. | |
10458 | # Some rework will be needed to allow for fast_install | |
10459 | # before this can be enabled. | |
10460 | hardcode_into_libs=yes | |
10461 | ||
10462 | # Append ld.so.conf contents to the search path | |
10463 | if test -f /etc/ld.so.conf; then | |
10464 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` | |
10465 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
10466 | fi | |
10467 | ||
10468 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
10469 | # powerpc, because MkLinux only supported shared libraries with the | |
10470 | # GNU dynamic linker. Since this was broken with cross compilers, | |
10471 | # most powerpc-linux boxes support dynamic linking these days and | |
10472 | # people can always --disable-shared, the test was removed, and we | |
10473 | # assume the GNU/Linux dynamic linker is in use. | |
10474 | dynamic_linker='GNU/Linux ld.so' | |
10475 | ;; | |
10476 | ||
10477 | netbsd*) | |
10478 | version_type=sunos | |
10479 | need_lib_prefix=no | |
10480 | need_version=no | |
10481 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10482 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10483 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10484 | dynamic_linker='NetBSD (a.out) ld.so' | |
10485 | else | |
10486 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10487 | soname_spec='${libname}${release}${shared_ext}$major' | |
10488 | dynamic_linker='NetBSD ld.elf_so' | |
10489 | fi | |
10490 | shlibpath_var=LD_LIBRARY_PATH | |
10491 | shlibpath_overrides_runpath=yes | |
10492 | hardcode_into_libs=yes | |
10493 | ;; | |
10494 | ||
10495 | newsos6) | |
10496 | version_type=linux | |
10497 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10498 | shlibpath_var=LD_LIBRARY_PATH | |
10499 | shlibpath_overrides_runpath=yes | |
10500 | ;; | |
10501 | ||
10502 | *nto* | *qnx*) | |
10503 | version_type=qnx | |
10504 | need_lib_prefix=no | |
10505 | need_version=no | |
10506 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10507 | soname_spec='${libname}${release}${shared_ext}$major' | |
10508 | shlibpath_var=LD_LIBRARY_PATH | |
10509 | shlibpath_overrides_runpath=no | |
10510 | hardcode_into_libs=yes | |
10511 | dynamic_linker='ldqnx.so' | |
10512 | ;; | |
10513 | ||
10514 | openbsd*) | |
10515 | version_type=sunos | |
10516 | sys_lib_dlsearch_path_spec="/usr/lib" | |
10517 | need_lib_prefix=no | |
10518 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
10519 | case $host_os in | |
10520 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
10521 | *) need_version=no ;; | |
10522 | esac | |
10523 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10524 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10525 | shlibpath_var=LD_LIBRARY_PATH | |
10526 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
10527 | case $host_os in | |
10528 | openbsd2.[89] | openbsd2.[89].*) | |
10529 | shlibpath_overrides_runpath=no | |
10530 | ;; | |
10531 | *) | |
10532 | shlibpath_overrides_runpath=yes | |
10533 | ;; | |
10534 | esac | |
10535 | else | |
10536 | shlibpath_overrides_runpath=yes | |
10537 | fi | |
10538 | ;; | |
10539 | ||
10540 | os2*) | |
10541 | libname_spec='$name' | |
10542 | shrext_cmds=".dll" | |
10543 | need_lib_prefix=no | |
10544 | library_names_spec='$libname${shared_ext} $libname.a' | |
10545 | dynamic_linker='OS/2 ld.exe' | |
10546 | shlibpath_var=LIBPATH | |
10547 | ;; | |
10548 | ||
10549 | osf3* | osf4* | osf5*) | |
10550 | version_type=osf | |
10551 | need_lib_prefix=no | |
10552 | need_version=no | |
10553 | soname_spec='${libname}${release}${shared_ext}$major' | |
10554 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10555 | shlibpath_var=LD_LIBRARY_PATH | |
10556 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
10557 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
10558 | ;; | |
10559 | ||
10560 | rdos*) | |
10561 | dynamic_linker=no | |
10562 | ;; | |
10563 | ||
10564 | solaris*) | |
10565 | version_type=linux | |
10566 | need_lib_prefix=no | |
10567 | need_version=no | |
10568 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10569 | soname_spec='${libname}${release}${shared_ext}$major' | |
10570 | shlibpath_var=LD_LIBRARY_PATH | |
10571 | shlibpath_overrides_runpath=yes | |
10572 | hardcode_into_libs=yes | |
10573 | # ldd complains unless libraries are executable | |
10574 | postinstall_cmds='chmod +x $lib' | |
10575 | ;; | |
10576 | ||
10577 | sunos4*) | |
10578 | version_type=sunos | |
10579 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10580 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
10581 | shlibpath_var=LD_LIBRARY_PATH | |
10582 | shlibpath_overrides_runpath=yes | |
10583 | if test "$with_gnu_ld" = yes; then | |
10584 | need_lib_prefix=no | |
10585 | fi | |
10586 | need_version=yes | |
10587 | ;; | |
10588 | ||
10589 | sysv4 | sysv4.3*) | |
10590 | version_type=linux | |
10591 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10592 | soname_spec='${libname}${release}${shared_ext}$major' | |
10593 | shlibpath_var=LD_LIBRARY_PATH | |
10594 | case $host_vendor in | |
10595 | sni) | |
10596 | shlibpath_overrides_runpath=no | |
10597 | need_lib_prefix=no | |
10598 | runpath_var=LD_RUN_PATH | |
10599 | ;; | |
10600 | siemens) | |
10601 | need_lib_prefix=no | |
10602 | ;; | |
10603 | motorola) | |
10604 | need_lib_prefix=no | |
10605 | need_version=no | |
10606 | shlibpath_overrides_runpath=no | |
10607 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
10608 | ;; | |
10609 | esac | |
10610 | ;; | |
10611 | ||
10612 | sysv4*MP*) | |
10613 | if test -d /usr/nec ;then | |
10614 | version_type=linux | |
10615 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
10616 | soname_spec='$libname${shared_ext}.$major' | |
10617 | shlibpath_var=LD_LIBRARY_PATH | |
10618 | fi | |
10619 | ;; | |
10620 | ||
10621 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
10622 | version_type=freebsd-elf | |
10623 | need_lib_prefix=no | |
10624 | need_version=no | |
10625 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10626 | soname_spec='${libname}${release}${shared_ext}$major' | |
10627 | shlibpath_var=LD_LIBRARY_PATH | |
10628 | shlibpath_overrides_runpath=yes | |
10629 | hardcode_into_libs=yes | |
10630 | if test "$with_gnu_ld" = yes; then | |
10631 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
10632 | else | |
10633 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
10634 | case $host_os in | |
10635 | sco3.2v5*) | |
10636 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
10637 | ;; | |
10638 | esac | |
10639 | fi | |
10640 | sys_lib_dlsearch_path_spec='/usr/lib' | |
10641 | ;; | |
10642 | ||
10643 | tpf*) | |
10644 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
10645 | version_type=linux | |
10646 | need_lib_prefix=no | |
10647 | need_version=no | |
10648 | library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10649 | shlibpath_var=LD_LIBRARY_PATH | |
10650 | shlibpath_overrides_runpath=no | |
10651 | hardcode_into_libs=yes | |
10652 | ;; | |
10653 | ||
10654 | uts4*) | |
10655 | version_type=linux | |
10656 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10657 | soname_spec='${libname}${release}${shared_ext}$major' | |
10658 | shlibpath_var=LD_LIBRARY_PATH | |
10659 | ;; | |
10660 | ||
10661 | *) | |
10662 | dynamic_linker=no | |
10663 | ;; | |
10664 | esac | |
8a165db0 BK |
10665 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
10666 | echo "${ECHO_T}$dynamic_linker" >&6; } | |
1cf3d07d SE |
10667 | test "$dynamic_linker" = no && can_build_shared=no |
10668 | ||
10669 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
10670 | if test "$GCC" = yes; then | |
10671 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
10672 | fi | |
10673 | ||
10674 | ||
10675 | ||
10676 | ||
10677 | ||
10678 | ||
10679 | ||
10680 | ||
10681 | ||
10682 | ||
10683 | ||
10684 | ||
10685 | ||
10686 | ||
10687 | ||
10688 | ||
10689 | ||
10690 | ||
10691 | ||
10692 | ||
10693 | ||
10694 | ||
10695 | ||
10696 | ||
10697 | ||
10698 | ||
10699 | ||
10700 | ||
10701 | ||
10702 | ||
10703 | ||
10704 | ||
10705 | ||
10706 | ||
10707 | ||
10708 | ||
10709 | ||
10710 | ||
10711 | ||
10712 | ||
10713 | ||
10714 | ||
10715 | ||
10716 | ||
10717 | ||
10718 | ||
10719 | ||
10720 | ||
10721 | ||
10722 | ||
10723 | ||
10724 | ||
10725 | ||
10726 | ||
10727 | ||
10728 | ||
10729 | ||
10730 | ||
10731 | ||
10732 | ||
10733 | ||
10734 | ||
10735 | ||
10736 | ||
10737 | ||
10738 | ||
10739 | ||
10740 | ||
10741 | ||
10742 | ||
10743 | ||
10744 | ||
10745 | ||
10746 | ||
10747 | ||
10748 | ||
10749 | ||
10750 | ||
10751 | ||
10752 | ||
10753 | ||
10754 | ||
10755 | ||
10756 | ||
10757 | ||
10758 | ||
10759 | ||
8a165db0 BK |
10760 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
10761 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } | |
1cf3d07d SE |
10762 | hardcode_action= |
10763 | if test -n "$hardcode_libdir_flag_spec" || | |
10764 | test -n "$runpath_var" || | |
10765 | test "X$hardcode_automatic" = "Xyes" ; then | |
10766 | ||
10767 | # We can hardcode non-existent directories. | |
10768 | if test "$hardcode_direct" != no && | |
10769 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
10770 | # have to relink, otherwise we might link with an installed library | |
10771 | # when we should be linking with a yet-to-be-installed one | |
10772 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
10773 | test "$hardcode_minus_L" != no; then | |
10774 | # Linking always hardcodes the temporary library directory. | |
10775 | hardcode_action=relink | |
10776 | else | |
10777 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
10778 | hardcode_action=immediate | |
10779 | fi | |
10780 | else | |
10781 | # We cannot hardcode anything, or else we can only hardcode existing | |
10782 | # directories. | |
10783 | hardcode_action=unsupported | |
10784 | fi | |
8a165db0 BK |
10785 | { echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
10786 | echo "${ECHO_T}$hardcode_action" >&6; } | |
1cf3d07d SE |
10787 | |
10788 | if test "$hardcode_action" = relink || | |
10789 | test "$inherit_rpath" = yes; then | |
10790 | # Fast installation is not supported | |
10791 | enable_fast_install=no | |
10792 | elif test "$shlibpath_overrides_runpath" = yes || | |
10793 | test "$enable_shared" = no; then | |
10794 | # Fast installation is not necessary | |
10795 | enable_fast_install=needless | |
10796 | fi | |
10797 | ||
10798 | ||
10799 | ||
10800 | ||
10801 | ||
10802 | ||
10803 | if test "x$enable_dlopen" != xyes; then | |
10804 | enable_dlopen=unknown | |
10805 | enable_dlopen_self=unknown | |
10806 | enable_dlopen_self_static=unknown | |
10807 | else | |
10808 | lt_cv_dlopen=no | |
10809 | lt_cv_dlopen_libs= | |
10810 | ||
10811 | case $host_os in | |
10812 | beos*) | |
10813 | lt_cv_dlopen="load_add_on" | |
10814 | lt_cv_dlopen_libs= | |
10815 | lt_cv_dlopen_self=yes | |
10816 | ;; | |
10817 | ||
10818 | mingw* | pw32*) | |
10819 | lt_cv_dlopen="LoadLibrary" | |
10820 | lt_cv_dlopen_libs= | |
10821 | ;; | |
10822 | ||
10823 | cygwin*) | |
10824 | lt_cv_dlopen="dlopen" | |
10825 | lt_cv_dlopen_libs= | |
10826 | ;; | |
10827 | ||
10828 | darwin*) | |
10829 | # if libdl is installed we need to link against it | |
8a165db0 BK |
10830 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
10831 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } | |
1cf3d07d SE |
10832 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
10833 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10834 | else | |
10835 | ac_check_lib_save_LIBS=$LIBS | |
10836 | LIBS="-ldl $LIBS" | |
10837 | if test x$gcc_no_link = xyes; then | |
10838 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
10839 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
10840 | { (exit 1); exit 1; }; } | |
10841 | fi | |
10842 | cat >conftest.$ac_ext <<_ACEOF | |
10843 | /* confdefs.h. */ | |
10844 | _ACEOF | |
10845 | cat confdefs.h >>conftest.$ac_ext | |
10846 | cat >>conftest.$ac_ext <<_ACEOF | |
10847 | /* end confdefs.h. */ | |
10848 | ||
8a165db0 BK |
10849 | /* Override any GCC internal prototype to avoid an error. |
10850 | Use char because int might match the return type of a GCC | |
10851 | builtin and then its argument prototype would still apply. */ | |
1cf3d07d SE |
10852 | #ifdef __cplusplus |
10853 | extern "C" | |
10854 | #endif | |
1cf3d07d SE |
10855 | char dlopen (); |
10856 | int | |
10857 | main () | |
10858 | { | |
8a165db0 | 10859 | return dlopen (); |
1cf3d07d SE |
10860 | ; |
10861 | return 0; | |
10862 | } | |
10863 | _ACEOF | |
10864 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8a165db0 BK |
10865 | if { (ac_try="$ac_link" |
10866 | case "(($ac_try" in | |
10867 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10868 | *) ac_try_echo=$ac_try;; | |
10869 | esac | |
10870 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10871 | (eval "$ac_link") 2>conftest.er1 | |
1cf3d07d SE |
10872 | ac_status=$? |
10873 | grep -v '^ *+' conftest.er1 >conftest.err | |
10874 | rm -f conftest.er1 | |
10875 | cat conftest.err >&5 | |
10876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8a165db0 BK |
10877 | (exit $ac_status); } && { |
10878 | test -z "$ac_c_werror_flag" || | |
10879 | test ! -s conftest.err | |
10880 | } && test -s conftest$ac_exeext && | |
10881 | $as_test_x conftest$ac_exeext; then | |
1cf3d07d SE |
10882 | ac_cv_lib_dl_dlopen=yes |
10883 | else | |
10884 | echo "$as_me: failed program was:" >&5 | |
10885 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10886 | ||
8a165db0 | 10887 | ac_cv_lib_dl_dlopen=no |
1cf3d07d | 10888 | fi |
8a165db0 BK |
10889 | |
10890 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
1cf3d07d SE |
10891 | conftest$ac_exeext conftest.$ac_ext |
10892 | LIBS=$ac_check_lib_save_LIBS | |
10893 | fi | |
8a165db0 BK |
10894 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
10895 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } | |
1cf3d07d SE |
10896 | if test $ac_cv_lib_dl_dlopen = yes; then |
10897 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
10898 | else | |
10899 | ||
10900 | lt_cv_dlopen="dyld" | |
10901 | lt_cv_dlopen_libs= | |
10902 | lt_cv_dlopen_self=yes | |
10903 | ||
10904 | fi | |
10905 | ||
10906 | ;; | |
10907 | ||
10908 | *) | |
8a165db0 BK |
10909 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
10910 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } | |
1cf3d07d SE |
10911 | if test "${ac_cv_func_shl_load+set}" = set; then |
10912 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10913 | else | |
10914 | if test x$gcc_no_link = xyes; then | |
10915 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
10916 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
10917 | { (exit 1); exit 1; }; } | |
10918 | fi | |
10919 | cat >conftest.$ac_ext <<_ACEOF | |
10920 | /* confdefs.h. */ | |
10921 | _ACEOF | |
10922 | cat confdefs.h >>conftest.$ac_ext | |
10923 | cat >>conftest.$ac_ext <<_ACEOF | |
10924 | /* end confdefs.h. */ | |
10925 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. | |
10926 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10927 | #define shl_load innocuous_shl_load | |
10928 | ||
10929 | /* System header to define __stub macros and hopefully few prototypes, | |
10930 | which can conflict with char shl_load (); below. | |
10931 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10932 | <limits.h> exists even on freestanding compilers. */ | |
10933 | ||
10934 | #ifdef __STDC__ | |
10935 | # include <limits.h> | |
10936 | #else | |
10937 | # include <assert.h> | |
10938 | #endif | |
10939 | ||
10940 | #undef shl_load | |
10941 | ||
8a165db0 BK |
10942 | /* Override any GCC internal prototype to avoid an error. |
10943 | Use char because int might match the return type of a GCC | |
10944 | builtin and then its argument prototype would still apply. */ | |
1cf3d07d SE |
10945 | #ifdef __cplusplus |
10946 | extern "C" | |
1cf3d07d | 10947 | #endif |
1cf3d07d SE |
10948 | char shl_load (); |
10949 | /* The GNU C library defines this for functions which it implements | |
10950 | to always fail with ENOSYS. Some functions are actually named | |
10951 | something starting with __ and the normal name is an alias. */ | |
8a165db0 | 10952 | #if defined __stub_shl_load || defined __stub___shl_load |
1cf3d07d | 10953 | choke me |
1cf3d07d SE |
10954 | #endif |
10955 | ||
10956 | int | |
10957 | main () | |
10958 | { | |
8a165db0 | 10959 | return shl_load (); |
1cf3d07d SE |
10960 | ; |
10961 | return 0; | |
10962 | } | |
10963 | _ACEOF | |
10964 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8a165db0 BK |
10965 | if { (ac_try="$ac_link" |
10966 | case "(($ac_try" in | |
10967 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10968 | *) ac_try_echo=$ac_try;; | |
10969 | esac | |
10970 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10971 | (eval "$ac_link") 2>conftest.er1 | |
1cf3d07d SE |
10972 | ac_status=$? |
10973 | grep -v '^ *+' conftest.er1 >conftest.err | |
10974 | rm -f conftest.er1 | |
10975 | cat conftest.err >&5 | |
10976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8a165db0 BK |
10977 | (exit $ac_status); } && { |
10978 | test -z "$ac_c_werror_flag" || | |
10979 | test ! -s conftest.err | |
10980 | } && test -s conftest$ac_exeext && | |
10981 | $as_test_x conftest$ac_exeext; then | |
1cf3d07d SE |
10982 | ac_cv_func_shl_load=yes |
10983 | else | |
10984 | echo "$as_me: failed program was:" >&5 | |
10985 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10986 | ||
8a165db0 | 10987 | ac_cv_func_shl_load=no |
1cf3d07d | 10988 | fi |
8a165db0 BK |
10989 | |
10990 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
1cf3d07d SE |
10991 | conftest$ac_exeext conftest.$ac_ext |
10992 | fi | |
8a165db0 BK |
10993 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
10994 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } | |
1cf3d07d SE |
10995 | if test $ac_cv_func_shl_load = yes; then |
10996 | lt_cv_dlopen="shl_load" | |
10997 | else | |
8a165db0 BK |
10998 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
10999 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } | |
1cf3d07d SE |
11000 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
11001 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11002 | else | |
11003 | ac_check_lib_save_LIBS=$LIBS | |
11004 | LIBS="-ldld $LIBS" | |
11005 | if test x$gcc_no_link = xyes; then | |
11006 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
11007 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
11008 | { (exit 1); exit 1; }; } | |
11009 | fi | |
11010 | cat >conftest.$ac_ext <<_ACEOF | |
11011 | /* confdefs.h. */ | |
11012 | _ACEOF | |
11013 | cat confdefs.h >>conftest.$ac_ext | |
11014 | cat >>conftest.$ac_ext <<_ACEOF | |
11015 | /* end confdefs.h. */ | |
11016 | ||
8a165db0 BK |
11017 | /* Override any GCC internal prototype to avoid an error. |
11018 | Use char because int might match the return type of a GCC | |
11019 | builtin and then its argument prototype would still apply. */ | |
1cf3d07d SE |
11020 | #ifdef __cplusplus |
11021 | extern "C" | |
11022 | #endif | |
1cf3d07d SE |
11023 | char shl_load (); |
11024 | int | |
11025 | main () | |
11026 | { | |
8a165db0 | 11027 | return shl_load (); |
1cf3d07d SE |
11028 | ; |
11029 | return 0; | |
11030 | } | |
11031 | _ACEOF | |
11032 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8a165db0 BK |
11033 | if { (ac_try="$ac_link" |
11034 | case "(($ac_try" in | |
11035 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11036 | *) ac_try_echo=$ac_try;; | |
11037 | esac | |
11038 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11039 | (eval "$ac_link") 2>conftest.er1 | |
1cf3d07d SE |
11040 | ac_status=$? |
11041 | grep -v '^ *+' conftest.er1 >conftest.err | |
11042 | rm -f conftest.er1 | |
11043 | cat conftest.err >&5 | |
11044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8a165db0 BK |
11045 | (exit $ac_status); } && { |
11046 | test -z "$ac_c_werror_flag" || | |
11047 | test ! -s conftest.err | |
11048 | } && test -s conftest$ac_exeext && | |
11049 | $as_test_x conftest$ac_exeext; then | |
1cf3d07d SE |
11050 | ac_cv_lib_dld_shl_load=yes |
11051 | else | |
11052 | echo "$as_me: failed program was:" >&5 | |
11053 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11054 | ||
8a165db0 | 11055 | ac_cv_lib_dld_shl_load=no |
1cf3d07d | 11056 | fi |
8a165db0 BK |
11057 | |
11058 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
1cf3d07d SE |
11059 | conftest$ac_exeext conftest.$ac_ext |
11060 | LIBS=$ac_check_lib_save_LIBS | |
11061 | fi | |
8a165db0 BK |
11062 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
11063 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } | |
1cf3d07d SE |
11064 | if test $ac_cv_lib_dld_shl_load = yes; then |
11065 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | |
11066 | else | |
8a165db0 BK |
11067 | { echo "$as_me:$LINENO: checking for dlopen" >&5 |
11068 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } | |
1cf3d07d SE |
11069 | if test "${ac_cv_func_dlopen+set}" = set; then |
11070 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11071 | else | |
11072 | if test x$gcc_no_link = xyes; then | |
11073 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
11074 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
11075 | { (exit 1); exit 1; }; } | |
11076 | fi | |
11077 | cat >conftest.$ac_ext <<_ACEOF | |
11078 | /* confdefs.h. */ | |
11079 | _ACEOF | |
11080 | cat confdefs.h >>conftest.$ac_ext | |
11081 | cat >>conftest.$ac_ext <<_ACEOF | |
11082 | /* end confdefs.h. */ | |
11083 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. | |
11084 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11085 | #define dlopen innocuous_dlopen | |
11086 | ||
11087 | /* System header to define __stub macros and hopefully few prototypes, | |
11088 | which can conflict with char dlopen (); below. | |
11089 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11090 | <limits.h> exists even on freestanding compilers. */ | |
11091 | ||
11092 | #ifdef __STDC__ | |
11093 | # include <limits.h> | |
11094 | #else | |
11095 | # include <assert.h> | |
11096 | #endif | |
11097 | ||
11098 | #undef dlopen | |
11099 | ||
8a165db0 BK |
11100 | /* Override any GCC internal prototype to avoid an error. |
11101 | Use char because int might match the return type of a GCC | |
11102 | builtin and then its argument prototype would still apply. */ | |
1cf3d07d SE |
11103 | #ifdef __cplusplus |
11104 | extern "C" | |
1cf3d07d | 11105 | #endif |
1cf3d07d SE |
11106 | char dlopen (); |
11107 | /* The GNU C library defines this for functions which it implements | |
11108 | to always fail with ENOSYS. Some functions are actually named | |
11109 | something starting with __ and the normal name is an alias. */ | |
8a165db0 | 11110 | #if defined __stub_dlopen || defined __stub___dlopen |
1cf3d07d | 11111 | choke me |
1cf3d07d SE |
11112 | #endif |
11113 | ||
11114 | int | |
11115 | main () | |
11116 | { | |
8a165db0 | 11117 | return dlopen (); |
1cf3d07d SE |
11118 | ; |
11119 | return 0; | |
11120 | } | |
11121 | _ACEOF | |
11122 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8a165db0 BK |
11123 | if { (ac_try="$ac_link" |
11124 | case "(($ac_try" in | |
11125 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11126 | *) ac_try_echo=$ac_try;; | |
11127 | esac | |
11128 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11129 | (eval "$ac_link") 2>conftest.er1 | |
1cf3d07d SE |
11130 | ac_status=$? |
11131 | grep -v '^ *+' conftest.er1 >conftest.err | |
11132 | rm -f conftest.er1 | |
11133 | cat conftest.err >&5 | |
11134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8a165db0 BK |
11135 | (exit $ac_status); } && { |
11136 | test -z "$ac_c_werror_flag" || | |
11137 | test ! -s conftest.err | |
11138 | } && test -s conftest$ac_exeext && | |
11139 | $as_test_x conftest$ac_exeext; then | |
1cf3d07d SE |
11140 | ac_cv_func_dlopen=yes |
11141 | else | |
11142 | echo "$as_me: failed program was:" >&5 | |
11143 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11144 | ||
8a165db0 | 11145 | ac_cv_func_dlopen=no |
1cf3d07d | 11146 | fi |
8a165db0 BK |
11147 | |
11148 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
1cf3d07d SE |
11149 | conftest$ac_exeext conftest.$ac_ext |
11150 | fi | |
8a165db0 BK |
11151 | { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
11152 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } | |
1cf3d07d SE |
11153 | if test $ac_cv_func_dlopen = yes; then |
11154 | lt_cv_dlopen="dlopen" | |
11155 | else | |
8a165db0 BK |
11156 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
11157 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } | |
1cf3d07d SE |
11158 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
11159 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11160 | else | |
11161 | ac_check_lib_save_LIBS=$LIBS | |
11162 | LIBS="-ldl $LIBS" | |
11163 | if test x$gcc_no_link = xyes; then | |
11164 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
11165 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
11166 | { (exit 1); exit 1; }; } | |
11167 | fi | |
11168 | cat >conftest.$ac_ext <<_ACEOF | |
11169 | /* confdefs.h. */ | |
11170 | _ACEOF | |
11171 | cat confdefs.h >>conftest.$ac_ext | |
11172 | cat >>conftest.$ac_ext <<_ACEOF | |
11173 | /* end confdefs.h. */ | |
11174 | ||
8a165db0 BK |
11175 | /* Override any GCC internal prototype to avoid an error. |
11176 | Use char because int might match the return type of a GCC | |
11177 | builtin and then its argument prototype would still apply. */ | |
1cf3d07d SE |
11178 | #ifdef __cplusplus |
11179 | extern "C" | |
11180 | #endif | |
1cf3d07d SE |
11181 | char dlopen (); |
11182 | int | |
11183 | main () | |
11184 | { | |
8a165db0 | 11185 | return dlopen (); |
1cf3d07d SE |
11186 | ; |
11187 | return 0; | |
11188 | } | |
11189 | _ACEOF | |
11190 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8a165db0 BK |
11191 | if { (ac_try="$ac_link" |
11192 | case "(($ac_try" in | |
11193 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11194 | *) ac_try_echo=$ac_try;; | |
11195 | esac | |
11196 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11197 | (eval "$ac_link") 2>conftest.er1 | |
1cf3d07d SE |
11198 | ac_status=$? |
11199 | grep -v '^ *+' conftest.er1 >conftest.err | |
11200 | rm -f conftest.er1 | |
11201 | cat conftest.err >&5 | |
11202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8a165db0 BK |
11203 | (exit $ac_status); } && { |
11204 | test -z "$ac_c_werror_flag" || | |
11205 | test ! -s conftest.err | |
11206 | } && test -s conftest$ac_exeext && | |
11207 | $as_test_x conftest$ac_exeext; then | |
1cf3d07d SE |
11208 | ac_cv_lib_dl_dlopen=yes |
11209 | else | |
11210 | echo "$as_me: failed program was:" >&5 | |
11211 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11212 | ||
8a165db0 | 11213 | ac_cv_lib_dl_dlopen=no |
1cf3d07d | 11214 | fi |
8a165db0 BK |
11215 | |
11216 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
1cf3d07d SE |
11217 | conftest$ac_exeext conftest.$ac_ext |
11218 | LIBS=$ac_check_lib_save_LIBS | |
11219 | fi | |
8a165db0 BK |
11220 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
11221 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } | |
1cf3d07d SE |
11222 | if test $ac_cv_lib_dl_dlopen = yes; then |
11223 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
11224 | else | |
8a165db0 BK |
11225 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
11226 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } | |
1cf3d07d SE |
11227 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
11228 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11229 | else | |
11230 | ac_check_lib_save_LIBS=$LIBS | |
11231 | LIBS="-lsvld $LIBS" | |
11232 | if test x$gcc_no_link = xyes; then | |
11233 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
11234 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
11235 | { (exit 1); exit 1; }; } | |
11236 | fi | |
11237 | cat >conftest.$ac_ext <<_ACEOF | |
11238 | /* confdefs.h. */ | |
11239 | _ACEOF | |
11240 | cat confdefs.h >>conftest.$ac_ext | |
11241 | cat >>conftest.$ac_ext <<_ACEOF | |
11242 | /* end confdefs.h. */ | |
11243 | ||
8a165db0 BK |
11244 | /* Override any GCC internal prototype to avoid an error. |
11245 | Use char because int might match the return type of a GCC | |
11246 | builtin and then its argument prototype would still apply. */ | |
1cf3d07d SE |
11247 | #ifdef __cplusplus |
11248 | extern "C" | |
11249 | #endif | |
1cf3d07d SE |
11250 | char dlopen (); |
11251 | int | |
11252 | main () | |
11253 | { | |
8a165db0 | 11254 | return dlopen (); |
1cf3d07d SE |
11255 | ; |
11256 | return 0; | |
11257 | } | |
11258 | _ACEOF | |
11259 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8a165db0 BK |
11260 | if { (ac_try="$ac_link" |
11261 | case "(($ac_try" in | |
11262 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11263 | *) ac_try_echo=$ac_try;; | |
11264 | esac | |
11265 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11266 | (eval "$ac_link") 2>conftest.er1 | |
1cf3d07d SE |
11267 | ac_status=$? |
11268 | grep -v '^ *+' conftest.er1 >conftest.err | |
11269 | rm -f conftest.er1 | |
11270 | cat conftest.err >&5 | |
11271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8a165db0 BK |
11272 | (exit $ac_status); } && { |
11273 | test -z "$ac_c_werror_flag" || | |
11274 | test ! -s conftest.err | |
11275 | } && test -s conftest$ac_exeext && | |
11276 | $as_test_x conftest$ac_exeext; then | |
1cf3d07d SE |
11277 | ac_cv_lib_svld_dlopen=yes |
11278 | else | |
11279 | echo "$as_me: failed program was:" >&5 | |
11280 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11281 | ||
8a165db0 | 11282 | ac_cv_lib_svld_dlopen=no |
1cf3d07d | 11283 | fi |
8a165db0 BK |
11284 | |
11285 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
1cf3d07d SE |
11286 | conftest$ac_exeext conftest.$ac_ext |
11287 | LIBS=$ac_check_lib_save_LIBS | |
11288 | fi | |
8a165db0 BK |
11289 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
11290 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } | |
1cf3d07d SE |
11291 | if test $ac_cv_lib_svld_dlopen = yes; then |
11292 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
11293 | else | |
8a165db0 BK |
11294 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
11295 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } | |
1cf3d07d SE |
11296 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
11297 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11298 | else | |
11299 | ac_check_lib_save_LIBS=$LIBS | |
11300 | LIBS="-ldld $LIBS" | |
11301 | if test x$gcc_no_link = xyes; then | |
11302 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
11303 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
11304 | { (exit 1); exit 1; }; } | |
11305 | fi | |
11306 | cat >conftest.$ac_ext <<_ACEOF | |
11307 | /* confdefs.h. */ | |
11308 | _ACEOF | |
11309 | cat confdefs.h >>conftest.$ac_ext | |
11310 | cat >>conftest.$ac_ext <<_ACEOF | |
11311 | /* end confdefs.h. */ | |
11312 | ||
8a165db0 BK |
11313 | /* Override any GCC internal prototype to avoid an error. |
11314 | Use char because int might match the return type of a GCC | |
11315 | builtin and then its argument prototype would still apply. */ | |
1cf3d07d SE |
11316 | #ifdef __cplusplus |
11317 | extern "C" | |
11318 | #endif | |
1cf3d07d SE |
11319 | char dld_link (); |
11320 | int | |
11321 | main () | |
11322 | { | |
8a165db0 | 11323 | return dld_link (); |
1cf3d07d SE |
11324 | ; |
11325 | return 0; | |
11326 | } | |
11327 | _ACEOF | |
11328 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8a165db0 BK |
11329 | if { (ac_try="$ac_link" |
11330 | case "(($ac_try" in | |
11331 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11332 | *) ac_try_echo=$ac_try;; | |
11333 | esac | |
11334 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11335 | (eval "$ac_link") 2>conftest.er1 | |
1cf3d07d SE |
11336 | ac_status=$? |
11337 | grep -v '^ *+' conftest.er1 >conftest.err | |
11338 | rm -f conftest.er1 | |
11339 | cat conftest.err >&5 | |
11340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8a165db0 BK |
11341 | (exit $ac_status); } && { |
11342 | test -z "$ac_c_werror_flag" || | |
11343 | test ! -s conftest.err | |
11344 | } && test -s conftest$ac_exeext && | |
11345 | $as_test_x conftest$ac_exeext; then | |
1cf3d07d SE |
11346 | ac_cv_lib_dld_dld_link=yes |
11347 | else | |
11348 | echo "$as_me: failed program was:" >&5 | |
11349 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11350 | ||
8a165db0 | 11351 | ac_cv_lib_dld_dld_link=no |
1cf3d07d | 11352 | fi |
8a165db0 BK |
11353 | |
11354 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
1cf3d07d SE |
11355 | conftest$ac_exeext conftest.$ac_ext |
11356 | LIBS=$ac_check_lib_save_LIBS | |
11357 | fi | |
8a165db0 BK |
11358 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
11359 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } | |
1cf3d07d SE |
11360 | if test $ac_cv_lib_dld_dld_link = yes; then |
11361 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | |
11362 | fi | |
11363 | ||
11364 | ||
11365 | fi | |
11366 | ||
11367 | ||
11368 | fi | |
11369 | ||
11370 | ||
11371 | fi | |
11372 | ||
11373 | ||
11374 | fi | |
11375 | ||
11376 | ||
11377 | fi | |
11378 | ||
11379 | ;; | |
11380 | esac | |
11381 | ||
11382 | if test "x$lt_cv_dlopen" != xno; then | |
11383 | enable_dlopen=yes | |
11384 | else | |
11385 | enable_dlopen=no | |
11386 | fi | |
11387 | ||
11388 | case $lt_cv_dlopen in | |
11389 | dlopen) | |
11390 | save_CPPFLAGS="$CPPFLAGS" | |
11391 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
11392 | ||
11393 | save_LDFLAGS="$LDFLAGS" | |
11394 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
11395 | ||
11396 | save_LIBS="$LIBS" | |
11397 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
11398 | ||
8a165db0 BK |
11399 | { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
11400 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } | |
1cf3d07d SE |
11401 | if test "${lt_cv_dlopen_self+set}" = set; then |
11402 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11403 | else | |
11404 | if test "$cross_compiling" = yes; then : | |
11405 | lt_cv_dlopen_self=cross | |
11406 | else | |
11407 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11408 | lt_status=$lt_dlunknown | |
11409 | cat > conftest.$ac_ext <<_LT_EOF | |
8a165db0 | 11410 | #line 11410 "configure" |
1cf3d07d SE |
11411 | #include "confdefs.h" |
11412 | ||
11413 | #if HAVE_DLFCN_H | |
11414 | #include <dlfcn.h> | |
11415 | #endif | |
11416 | ||
11417 | #include <stdio.h> | |
11418 | ||
11419 | #ifdef RTLD_GLOBAL | |
11420 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11421 | #else | |
11422 | # ifdef DL_GLOBAL | |
11423 | # define LT_DLGLOBAL DL_GLOBAL | |
11424 | # else | |
11425 | # define LT_DLGLOBAL 0 | |
11426 | # endif | |
11427 | #endif | |
11428 | ||
11429 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11430 | find out it does not work in some platform. */ | |
11431 | #ifndef LT_DLLAZY_OR_NOW | |
11432 | # ifdef RTLD_LAZY | |
11433 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11434 | # else | |
11435 | # ifdef DL_LAZY | |
11436 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11437 | # else | |
11438 | # ifdef RTLD_NOW | |
11439 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11440 | # else | |
11441 | # ifdef DL_NOW | |
11442 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11443 | # else | |
11444 | # define LT_DLLAZY_OR_NOW 0 | |
11445 | # endif | |
11446 | # endif | |
11447 | # endif | |
11448 | # endif | |
11449 | #endif | |
11450 | ||
11451 | #ifdef __cplusplus | |
11452 | extern "C" void exit (int); | |
11453 | #endif | |
11454 | ||
11455 | void fnord() { int i=42;} | |
11456 | int main () | |
11457 | { | |
11458 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11459 | int status = $lt_dlunknown; | |
11460 | ||
11461 | if (self) | |
11462 | { | |
11463 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11464 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11465 | /* dlclose (self); */ | |
11466 | } | |
11467 | else | |
11468 | puts (dlerror ()); | |
11469 | ||
11470 | exit (status); | |
11471 | } | |
11472 | _LT_EOF | |
11473 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11474 | (eval $ac_link) 2>&5 | |
11475 | ac_status=$? | |
11476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11477 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
11478 | (./conftest; exit; ) >&5 2>/dev/null | |
11479 | lt_status=$? | |
11480 | case x$lt_status in | |
11481 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
11482 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
11483 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
11484 | esac | |
11485 | else : | |
11486 | # compilation failed | |
11487 | lt_cv_dlopen_self=no | |
11488 | fi | |
11489 | fi | |
11490 | rm -fr conftest* | |
11491 | ||
11492 | ||
11493 | fi | |
8a165db0 BK |
11494 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
11495 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } | |
1cf3d07d SE |
11496 | |
11497 | if test "x$lt_cv_dlopen_self" = xyes; then | |
11498 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
8a165db0 BK |
11499 | { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
11500 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } | |
1cf3d07d SE |
11501 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
11502 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11503 | else | |
11504 | if test "$cross_compiling" = yes; then : | |
11505 | lt_cv_dlopen_self_static=cross | |
11506 | else | |
11507 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11508 | lt_status=$lt_dlunknown | |
11509 | cat > conftest.$ac_ext <<_LT_EOF | |
8a165db0 | 11510 | #line 11510 "configure" |
1cf3d07d SE |
11511 | #include "confdefs.h" |
11512 | ||
11513 | #if HAVE_DLFCN_H | |
11514 | #include <dlfcn.h> | |
11515 | #endif | |
11516 | ||
11517 | #include <stdio.h> | |
11518 | ||
11519 | #ifdef RTLD_GLOBAL | |
11520 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11521 | #else | |
11522 | # ifdef DL_GLOBAL | |
11523 | # define LT_DLGLOBAL DL_GLOBAL | |
11524 | # else | |
11525 | # define LT_DLGLOBAL 0 | |
11526 | # endif | |
11527 | #endif | |
11528 | ||
11529 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11530 | find out it does not work in some platform. */ | |
11531 | #ifndef LT_DLLAZY_OR_NOW | |
11532 | # ifdef RTLD_LAZY | |
11533 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11534 | # else | |
11535 | # ifdef DL_LAZY | |
11536 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11537 | # else | |
11538 | # ifdef RTLD_NOW | |
11539 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11540 | # else | |
11541 | # ifdef DL_NOW | |
11542 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11543 | # else | |
11544 | # define LT_DLLAZY_OR_NOW 0 | |
11545 | # endif | |
11546 | # endif | |
11547 | # endif | |
11548 | # endif | |
11549 | #endif | |
11550 | ||
11551 | #ifdef __cplusplus | |
11552 | extern "C" void exit (int); | |
11553 | #endif | |
11554 | ||
11555 | void fnord() { int i=42;} | |
11556 | int main () | |
11557 | { | |
11558 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11559 | int status = $lt_dlunknown; | |
11560 | ||
11561 | if (self) | |
11562 | { | |
11563 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11564 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11565 | /* dlclose (self); */ | |
11566 | } | |
11567 | else | |
11568 | puts (dlerror ()); | |
11569 | ||
11570 | exit (status); | |
11571 | } | |
11572 | _LT_EOF | |
11573 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11574 | (eval $ac_link) 2>&5 | |
11575 | ac_status=$? | |
11576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11577 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
11578 | (./conftest; exit; ) >&5 2>/dev/null | |
11579 | lt_status=$? | |
11580 | case x$lt_status in | |
11581 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
11582 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
11583 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
11584 | esac | |
11585 | else : | |
11586 | # compilation failed | |
11587 | lt_cv_dlopen_self_static=no | |
11588 | fi | |
11589 | fi | |
11590 | rm -fr conftest* | |
11591 | ||
11592 | ||
11593 | fi | |
8a165db0 BK |
11594 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
11595 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } | |
1cf3d07d SE |
11596 | fi |
11597 | ||
11598 | CPPFLAGS="$save_CPPFLAGS" | |
11599 | LDFLAGS="$save_LDFLAGS" | |
11600 | LIBS="$save_LIBS" | |
11601 | ;; | |
11602 | esac | |
11603 | ||
11604 | case $lt_cv_dlopen_self in | |
11605 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
11606 | *) enable_dlopen_self=unknown ;; | |
11607 | esac | |
11608 | ||
11609 | case $lt_cv_dlopen_self_static in | |
11610 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
11611 | *) enable_dlopen_self_static=unknown ;; | |
11612 | esac | |
11613 | fi | |
11614 | ||
11615 | ||
11616 | ||
11617 | ||
11618 | ||
11619 | ||
11620 | ||
11621 | ||
11622 | ||
11623 | ||
11624 | ||
11625 | ||
11626 | ||
11627 | ||
11628 | ||
11629 | ||
11630 | ||
11631 | striplib= | |
11632 | old_striplib= | |
8a165db0 BK |
11633 | { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
11634 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } | |
1cf3d07d SE |
11635 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
11636 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
11637 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
8a165db0 BK |
11638 | { echo "$as_me:$LINENO: result: yes" >&5 |
11639 | echo "${ECHO_T}yes" >&6; } | |
1cf3d07d SE |
11640 | else |
11641 | # FIXME - insert some real tests, host_os isn't really good enough | |
11642 | case $host_os in | |
11643 | darwin*) | |
11644 | if test -n "$STRIP" ; then | |
11645 | striplib="$STRIP -x" | |
11646 | old_striplib="$STRIP -S" | |
8a165db0 BK |
11647 | { echo "$as_me:$LINENO: result: yes" >&5 |
11648 | echo "${ECHO_T}yes" >&6; } | |
1cf3d07d | 11649 | else |
8a165db0 BK |
11650 | { echo "$as_me:$LINENO: result: no" >&5 |
11651 | echo "${ECHO_T}no" >&6; } | |
1cf3d07d SE |
11652 | fi |
11653 | ;; | |
11654 | *) | |
8a165db0 BK |
11655 | { echo "$as_me:$LINENO: result: no" >&5 |
11656 | echo "${ECHO_T}no" >&6; } | |
1cf3d07d SE |
11657 | ;; |
11658 | esac | |
11659 | fi | |
11660 | ||
11661 | ||
11662 | ||
11663 | ||
11664 | ||
11665 | ||
11666 | ||
11667 | ||
11668 | ||
11669 | ||
11670 | ||
11671 | ||
11672 | # Report which library types will actually be built | |
8a165db0 BK |
11673 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
11674 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } | |
11675 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 | |
11676 | echo "${ECHO_T}$can_build_shared" >&6; } | |
1cf3d07d | 11677 | |
8a165db0 BK |
11678 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
11679 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } | |
1cf3d07d SE |
11680 | test "$can_build_shared" = "no" && enable_shared=no |
11681 | ||
11682 | # On AIX, shared libraries and static libraries use the same namespace, and | |
11683 | # are all built from PIC. | |
11684 | case $host_os in | |
11685 | aix3*) | |
11686 | test "$enable_shared" = yes && enable_static=no | |
11687 | if test -n "$RANLIB"; then | |
11688 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
11689 | postinstall_cmds='$RANLIB $lib' | |
11690 | fi | |
11691 | ;; | |
11692 | ||
716e4bc6 | 11693 | aix[4-9]*) |
1cf3d07d SE |
11694 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
11695 | test "$enable_shared" = yes && enable_static=no | |
11696 | fi | |
11697 | ;; | |
11698 | esac | |
8a165db0 BK |
11699 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
11700 | echo "${ECHO_T}$enable_shared" >&6; } | |
1cf3d07d | 11701 | |
8a165db0 BK |
11702 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
11703 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } | |
1cf3d07d SE |
11704 | # Make sure either enable_shared or enable_static is yes. |
11705 | test "$enable_shared" = yes || enable_static=yes | |
8a165db0 BK |
11706 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
11707 | echo "${ECHO_T}$enable_static" >&6; } | |
1cf3d07d SE |
11708 | |
11709 | ||
11710 | ||
11711 | ||
11712 | fi | |
11713 | ac_ext=c | |
11714 | ac_cpp='$CPP $CPPFLAGS' | |
11715 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11716 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11717 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11718 | ||
11719 | CC="$lt_save_CC" | |
11720 | ||
11721 | ||
8a165db0 | 11722 | ac_ext=cpp |
1cf3d07d SE |
11723 | ac_cpp='$CXXCPP $CPPFLAGS' |
11724 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11725 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11726 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
11727 | ||
11728 | archive_cmds_need_lc_CXX=no | |
11729 | allow_undefined_flag_CXX= | |
11730 | always_export_symbols_CXX=no | |
11731 | archive_expsym_cmds_CXX= | |
11732 | compiler_needs_object_CXX=no | |
11733 | export_dynamic_flag_spec_CXX= | |
11734 | hardcode_direct_CXX=no | |
11735 | hardcode_direct_absolute_CXX=no | |
11736 | hardcode_libdir_flag_spec_CXX= | |
11737 | hardcode_libdir_flag_spec_ld_CXX= | |
11738 | hardcode_libdir_separator_CXX= | |
11739 | hardcode_minus_L_CXX=no | |
11740 | hardcode_shlibpath_var_CXX=unsupported | |
11741 | hardcode_automatic_CXX=no | |
11742 | inherit_rpath_CXX=no | |
11743 | module_cmds_CXX= | |
11744 | module_expsym_cmds_CXX= | |
11745 | link_all_deplibs_CXX=unknown | |
11746 | old_archive_cmds_CXX=$old_archive_cmds | |
11747 | no_undefined_flag_CXX= | |
11748 | whole_archive_flag_spec_CXX= | |
11749 | enable_shared_with_static_runtimes_CXX=no | |
11750 | ||
11751 | # Source file extension for C++ test sources. | |
11752 | ac_ext=cpp | |
11753 | ||
11754 | # Object file extension for compiled C++ test sources. | |
11755 | objext=o | |
11756 | objext_CXX=$objext | |
11757 | ||
11758 | # No sense in running all these tests if we already determined that | |
11759 | # the CXX compiler isn't working. Some variables (like enable_shared) | |
11760 | # are currently assumed to apply to all compilers on this platform, | |
11761 | # and will be corrupted by setting them based on a non-working compiler. | |
11762 | if test "$_lt_caught_CXX_error" != yes; then | |
11763 | # Code to be used in simple compile tests | |
11764 | lt_simple_compile_test_code="int some_variable = 0;" | |
11765 | ||
11766 | # Code to be used in simple link tests | |
11767 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }' | |
11768 | ||
11769 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
11770 | ||
11771 | ||
11772 | ||
11773 | ||
11774 | ||
11775 | ||
11776 | # If no C compiler was specified, use CC. | |
11777 | LTCC=${LTCC-"$CC"} | |
11778 | ||
11779 | # If no C compiler flags were specified, use CFLAGS. | |
11780 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
11781 | ||
11782 | # Allow CC to be a program name with arguments. | |
11783 | compiler=$CC | |
11784 | ||
11785 | ||
11786 | # save warnings/boilerplate of simple test code | |
11787 | ac_outfile=conftest.$ac_objext | |
11788 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
11789 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
11790 | _lt_compiler_boilerplate=`cat conftest.err` | |
11791 | $RM conftest* | |
11792 | ||
11793 | ac_outfile=conftest.$ac_objext | |
11794 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
11795 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
11796 | _lt_linker_boilerplate=`cat conftest.err` | |
11797 | $RM conftest* | |
11798 | ||
11799 | ||
11800 | # Allow CC to be a program name with arguments. | |
11801 | lt_save_CC=$CC | |
11802 | lt_save_LD=$LD | |
11803 | lt_save_GCC=$GCC | |
11804 | GCC=$GXX | |
11805 | lt_save_with_gnu_ld=$with_gnu_ld | |
11806 | lt_save_path_LD=$lt_cv_path_LD | |
11807 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | |
11808 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | |
11809 | else | |
11810 | $as_unset lt_cv_prog_gnu_ld | |
11811 | fi | |
11812 | if test -n "${lt_cv_path_LDCXX+set}"; then | |
11813 | lt_cv_path_LD=$lt_cv_path_LDCXX | |
11814 | else | |
11815 | $as_unset lt_cv_path_LD | |
11816 | fi | |
11817 | test -z "${LDCXX+set}" || LD=$LDCXX | |
11818 | CC=${CXX-"c++"} | |
11819 | compiler=$CC | |
11820 | compiler_CXX=$CC | |
11821 | for cc_temp in $compiler""; do | |
11822 | case $cc_temp in | |
11823 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
11824 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
11825 | \-*) ;; | |
11826 | *) break;; | |
11827 | esac | |
11828 | done | |
11829 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
11830 | ||
11831 | ||
11832 | if test -n "$compiler"; then | |
11833 | # We don't want -fno-exception when compiling C++ code, so set the | |
11834 | # no_builtin_flag separately | |
11835 | if test "$GXX" = yes; then | |
11836 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' | |
11837 | else | |
11838 | lt_prog_compiler_no_builtin_flag_CXX= | |
11839 | fi | |
11840 | ||
11841 | if test "$GXX" = yes; then | |
11842 | # Set up default GNU C++ configuration | |
11843 | ||
11844 | ||
11845 | ||
8a165db0 | 11846 | # Check whether --with-gnu-ld was given. |
1cf3d07d | 11847 | if test "${with_gnu_ld+set}" = set; then |
8a165db0 | 11848 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
1cf3d07d SE |
11849 | else |
11850 | with_gnu_ld=no | |
8a165db0 BK |
11851 | fi |
11852 | ||
1cf3d07d SE |
11853 | ac_prog=ld |
11854 | if test "$GCC" = yes; then | |
11855 | # Check if gcc -print-prog-name=ld gives a path. | |
8a165db0 BK |
11856 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
11857 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } | |
1cf3d07d SE |
11858 | case $host in |
11859 | *-*-mingw*) | |
11860 | # gcc leaves a trailing carriage return which upsets mingw | |
11861 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
11862 | *) | |
11863 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
11864 | esac | |
11865 | case $ac_prog in | |
11866 | # Accept absolute paths. | |
11867 | [\\/]* | ?:[\\/]*) | |
11868 | re_direlt='/[^/][^/]*/\.\./' | |
11869 | # Canonicalize the pathname of ld | |
11870 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
11871 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
11872 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
11873 | done | |
11874 | test -z "$LD" && LD="$ac_prog" | |
11875 | ;; | |
11876 | "") | |
11877 | # If it fails, then pretend we aren't using GCC. | |
11878 | ac_prog=ld | |
11879 | ;; | |
11880 | *) | |
11881 | # If it is relative, then search for the first ld in PATH. | |
11882 | with_gnu_ld=unknown | |
11883 | ;; | |
11884 | esac | |
11885 | elif test "$with_gnu_ld" = yes; then | |
8a165db0 BK |
11886 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
11887 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } | |
1cf3d07d | 11888 | else |
8a165db0 BK |
11889 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
11890 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } | |
1cf3d07d SE |
11891 | fi |
11892 | if test "${lt_cv_path_LD+set}" = set; then | |
11893 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11894 | else | |
11895 | if test -z "$LD"; then | |
11896 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
11897 | for ac_dir in $PATH; do | |
11898 | IFS="$lt_save_ifs" | |
11899 | test -z "$ac_dir" && ac_dir=. | |
11900 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
11901 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
11902 | # Check to see if the program is GNU ld. I'd rather use --version, | |
11903 | # but apparently some variants of GNU ld only accept -v. | |
11904 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
11905 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
11906 | *GNU* | *'with BFD'*) | |
11907 | test "$with_gnu_ld" != no && break | |
11908 | ;; | |
11909 | *) | |
11910 | test "$with_gnu_ld" != yes && break | |
11911 | ;; | |
11912 | esac | |
11913 | fi | |
11914 | done | |
11915 | IFS="$lt_save_ifs" | |
11916 | else | |
11917 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
11918 | fi | |
11919 | fi | |
11920 | ||
11921 | LD="$lt_cv_path_LD" | |
11922 | if test -n "$LD"; then | |
8a165db0 BK |
11923 | { echo "$as_me:$LINENO: result: $LD" >&5 |
11924 | echo "${ECHO_T}$LD" >&6; } | |
1cf3d07d | 11925 | else |
8a165db0 BK |
11926 | { echo "$as_me:$LINENO: result: no" >&5 |
11927 | echo "${ECHO_T}no" >&6; } | |
1cf3d07d SE |
11928 | fi |
11929 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | |
11930 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
11931 | { (exit 1); exit 1; }; } | |
8a165db0 BK |
11932 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
11933 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } | |
1cf3d07d SE |
11934 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
11935 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11936 | else | |
11937 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
11938 | case `$LD -v 2>&1 </dev/null` in | |
11939 | *GNU* | *'with BFD'*) | |
11940 | lt_cv_prog_gnu_ld=yes | |
11941 | ;; | |
11942 | *) | |
11943 | lt_cv_prog_gnu_ld=no | |
11944 | ;; | |
11945 | esac | |
11946 | fi | |
8a165db0 BK |
11947 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
11948 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } | |
1cf3d07d SE |
11949 | with_gnu_ld=$lt_cv_prog_gnu_ld |
11950 | ||
11951 | ||
11952 | ||
11953 | ||
11954 | ||
11955 | ||
11956 | ||
11957 | # Check if GNU C++ uses GNU ld as the underlying linker, since the | |
11958 | # archiving commands below assume that GNU ld is being used. | |
11959 | if test "$with_gnu_ld" = yes; then | |
11960 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11961 | archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
11962 | ||
11963 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
11964 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
11965 | ||
11966 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
11967 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | |
11968 | # investigate it a little bit more. (MM) | |
11969 | wlarc='${wl}' | |
11970 | ||
11971 | # ancient GNU ld didn't support --whole-archive et. al. | |
11972 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | | |
11973 | $GREP 'no-whole-archive' > /dev/null; then | |
11974 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
11975 | else | |
11976 | whole_archive_flag_spec_CXX= | |
11977 | fi | |
11978 | else | |
11979 | with_gnu_ld=no | |
11980 | wlarc= | |
11981 | ||
11982 | # A generic and very simple default shared library creation | |
11983 | # command for GNU C++ for the case where it uses the native | |
11984 | # linker, instead of GNU ld. If possible, this setting should | |
11985 | # overridden to take advantage of the native linker features on | |
11986 | # the platform it is being used on. | |
11987 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
11988 | fi | |
11989 | ||
11990 | # Commands to make compiler produce verbose output that lists | |
11991 | # what "hidden" libraries, object files and flags are used when | |
11992 | # linking a shared library. | |
11993 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | |
11994 | ||
11995 | else | |
11996 | GXX=no | |
11997 | with_gnu_ld=no | |
11998 | wlarc= | |
11999 | fi | |
12000 | ||
12001 | # PORTME: fill in a description of your system's C++ link characteristics | |
8a165db0 BK |
12002 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
12003 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } | |
1cf3d07d SE |
12004 | ld_shlibs_CXX=yes |
12005 | case $host_os in | |
12006 | aix3*) | |
12007 | # FIXME: insert proper C++ library support | |
12008 | ld_shlibs_CXX=no | |
12009 | ;; | |
716e4bc6 | 12010 | aix[4-9]*) |
1cf3d07d SE |
12011 | if test "$host_cpu" = ia64; then |
12012 | # On IA64, the linker does run time linking by default, so we don't | |
12013 | # have to do anything special. | |
12014 | aix_use_runtimelinking=no | |
12015 | exp_sym_flag='-Bexport' | |
12016 | no_entry_flag="" | |
12017 | else | |
12018 | aix_use_runtimelinking=no | |
12019 | ||
12020 | # Test if we are trying to use run time linking or normal | |
12021 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
12022 | # need to do runtime linking. | |
716e4bc6 | 12023 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
1cf3d07d SE |
12024 | for ld_flag in $LDFLAGS; do |
12025 | case $ld_flag in | |
12026 | *-brtl*) | |
12027 | aix_use_runtimelinking=yes | |
12028 | break | |
12029 | ;; | |
12030 | esac | |
12031 | done | |
12032 | ;; | |
12033 | esac | |
12034 | ||
12035 | exp_sym_flag='-bexport' | |
12036 | no_entry_flag='-bnoentry' | |
12037 | fi | |
12038 | ||
12039 | # When large executables or shared objects are built, AIX ld can | |
12040 | # have problems creating the table of contents. If linking a library | |
12041 | # or program results in "error TOC overflow" add -mminimal-toc to | |
12042 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
12043 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
12044 | ||
12045 | archive_cmds_CXX='' | |
12046 | hardcode_direct_CXX=yes | |
12047 | hardcode_direct_absolute_CXX=yes | |
12048 | hardcode_libdir_separator_CXX=':' | |
12049 | link_all_deplibs_CXX=yes | |
12050 | file_list_spec_CXX='${wl}-f,' | |
12051 | ||
12052 | if test "$GXX" = yes; then | |
12053 | case $host_os in aix4.[012]|aix4.[012].*) | |
12054 | # We only want to do this on AIX 4.2 and lower, the check | |
12055 | # below for broken collect2 doesn't work under 4.3+ | |
12056 | collect2name=`${CC} -print-prog-name=collect2` | |
12057 | if test -f "$collect2name" && | |
12058 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
12059 | then | |
12060 | # We have reworked collect2 | |
12061 | : | |
12062 | else | |
12063 | # We have old collect2 | |
12064 | hardcode_direct_CXX=unsupported | |
12065 | # It fails to find uninstalled libraries when the uninstalled | |
12066 | # path is not listed in the libpath. Setting hardcode_minus_L | |
12067 | # to unsupported forces relinking | |
12068 | hardcode_minus_L_CXX=yes | |
12069 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
12070 | hardcode_libdir_separator_CXX= | |
12071 | fi | |
12072 | esac | |
12073 | shared_flag='-shared' | |
12074 | if test "$aix_use_runtimelinking" = yes; then | |
12075 | shared_flag="$shared_flag "'${wl}-G' | |
12076 | fi | |
12077 | else | |
12078 | # not using gcc | |
12079 | if test "$host_cpu" = ia64; then | |
12080 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
12081 | # chokes on -Wl,-G. The following line is correct: | |
12082 | shared_flag='-G' | |
12083 | else | |
12084 | if test "$aix_use_runtimelinking" = yes; then | |
12085 | shared_flag='${wl}-G' | |
12086 | else | |
12087 | shared_flag='${wl}-bM:SRE' | |
12088 | fi | |
12089 | fi | |
12090 | fi | |
12091 | ||
12092 | # It seems that -bexpall does not export symbols beginning with | |
12093 | # underscore (_), so it is better to generate a list of symbols to | |
12094 | # export. | |
12095 | always_export_symbols_CXX=yes | |
12096 | if test "$aix_use_runtimelinking" = yes; then | |
12097 | # Warning - without using the other runtime loading flags (-brtl), | |
12098 | # -berok will link without error, but may produce a broken library. | |
12099 | allow_undefined_flag_CXX='-berok' | |
12100 | # Determine the default libpath from the value encoded in an empty | |
12101 | # executable. | |
12102 | if test x$gcc_no_link = xyes; then | |
12103 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
12104 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
12105 | { (exit 1); exit 1; }; } | |
12106 | fi | |
12107 | cat >conftest.$ac_ext <<_ACEOF | |
12108 | /* confdefs.h. */ | |
12109 | _ACEOF | |
12110 | cat confdefs.h >>conftest.$ac_ext | |
12111 | cat >>conftest.$ac_ext <<_ACEOF | |
12112 | /* end confdefs.h. */ | |
12113 | ||
12114 | int | |
12115 | main () | |
12116 | { | |
12117 | ||
12118 | ; | |
12119 | return 0; | |
12120 | } | |
12121 | _ACEOF | |
12122 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8a165db0 BK |
12123 | if { (ac_try="$ac_link" |
12124 | case "(($ac_try" in | |
12125 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12126 | *) ac_try_echo=$ac_try;; | |
12127 | esac | |
12128 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12129 | (eval "$ac_link") 2>conftest.er1 | |
1cf3d07d SE |
12130 | ac_status=$? |
12131 | grep -v '^ *+' conftest.er1 >conftest.err | |
12132 | rm -f conftest.er1 | |
12133 | cat conftest.err >&5 | |
12134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8a165db0 BK |
12135 | (exit $ac_status); } && { |
12136 | test -z "$ac_cxx_werror_flag" || | |
12137 | test ! -s conftest.err | |
12138 | } && test -s conftest$ac_exeext && | |
12139 | $as_test_x conftest$ac_exeext; then | |
1cf3d07d SE |
12140 | |
12141 | lt_aix_libpath_sed=' | |
12142 | /Import File Strings/,/^$/ { | |
12143 | /^0/ { | |
12144 | s/^0 *\(.*\)$/\1/ | |
12145 | p | |
12146 | } | |
12147 | }' | |
12148 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
12149 | # Check for a 64-bit object if we didn't find anything. | |
12150 | if test -z "$aix_libpath"; then | |
12151 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
12152 | fi | |
12153 | else | |
12154 | echo "$as_me: failed program was:" >&5 | |
12155 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12156 | ||
8a165db0 | 12157 | |
1cf3d07d | 12158 | fi |
8a165db0 BK |
12159 | |
12160 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
1cf3d07d SE |
12161 | conftest$ac_exeext conftest.$ac_ext |
12162 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
12163 | ||
12164 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
12165 | ||
12166 | archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
12167 | else | |
12168 | if test "$host_cpu" = ia64; then | |
12169 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' | |
12170 | allow_undefined_flag_CXX="-z nodefs" | |
12171 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" | |
12172 | else | |
12173 | # Determine the default libpath from the value encoded in an | |
12174 | # empty executable. | |
12175 | if test x$gcc_no_link = xyes; then | |
12176 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
12177 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
12178 | { (exit 1); exit 1; }; } | |
12179 | fi | |
12180 | cat >conftest.$ac_ext <<_ACEOF | |
12181 | /* confdefs.h. */ | |
12182 | _ACEOF | |
12183 | cat confdefs.h >>conftest.$ac_ext | |
12184 | cat >>conftest.$ac_ext <<_ACEOF | |
12185 | /* end confdefs.h. */ | |
12186 | ||
12187 | int | |
12188 | main () | |
12189 | { | |
12190 | ||
12191 | ; | |
12192 | return 0; | |
12193 | } | |
12194 | _ACEOF | |
12195 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8a165db0 BK |
12196 | if { (ac_try="$ac_link" |
12197 | case "(($ac_try" in | |
12198 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12199 | *) ac_try_echo=$ac_try;; | |
12200 | esac | |
12201 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12202 | (eval "$ac_link") 2>conftest.er1 | |
1cf3d07d SE |
12203 | ac_status=$? |
12204 | grep -v '^ *+' conftest.er1 >conftest.err | |
12205 | rm -f conftest.er1 | |
12206 | cat conftest.err >&5 | |
12207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8a165db0 BK |
12208 | (exit $ac_status); } && { |
12209 | test -z "$ac_cxx_werror_flag" || | |
12210 | test ! -s conftest.err | |
12211 | } && test -s conftest$ac_exeext && | |
12212 | $as_test_x conftest$ac_exeext; then | |
1cf3d07d SE |
12213 | |
12214 | lt_aix_libpath_sed=' | |
12215 | /Import File Strings/,/^$/ { | |
12216 | /^0/ { | |
12217 | s/^0 *\(.*\)$/\1/ | |
12218 | p | |
12219 | } | |
12220 | }' | |
12221 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
12222 | # Check for a 64-bit object if we didn't find anything. | |
12223 | if test -z "$aix_libpath"; then | |
12224 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
12225 | fi | |
12226 | else | |
12227 | echo "$as_me: failed program was:" >&5 | |
12228 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12229 | ||
8a165db0 | 12230 | |
1cf3d07d | 12231 | fi |
8a165db0 BK |
12232 | |
12233 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
1cf3d07d SE |
12234 | conftest$ac_exeext conftest.$ac_ext |
12235 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
12236 | ||
12237 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
12238 | # Warning - without using the other run time loading flags, | |
12239 | # -berok will link without error, but may produce a broken library. | |
12240 | no_undefined_flag_CXX=' ${wl}-bernotok' | |
12241 | allow_undefined_flag_CXX=' ${wl}-berok' | |
12242 | # Exported symbols can be pulled into shared objects from archives | |
12243 | whole_archive_flag_spec_CXX='$convenience' | |
12244 | archive_cmds_need_lc_CXX=yes | |
12245 | # This is similar to how AIX traditionally builds its shared | |
12246 | # libraries. | |
12247 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | |
12248 | fi | |
12249 | fi | |
12250 | ;; | |
12251 | ||
12252 | beos*) | |
12253 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
12254 | allow_undefined_flag_CXX=unsupported | |
12255 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
12256 | # support --undefined. This deserves some investigation. FIXME | |
12257 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12258 | else | |
12259 | ld_shlibs_CXX=no | |
12260 | fi | |
12261 | ;; | |
12262 | ||
12263 | chorus*) | |
12264 | case $cc_basename in | |
12265 | *) | |
12266 | # FIXME: insert proper C++ library support | |
12267 | ld_shlibs_CXX=no | |
12268 | ;; | |
12269 | esac | |
12270 | ;; | |
12271 | ||
12272 | cygwin* | mingw* | pw32*) | |
12273 | # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, | |
12274 | # as there is no search path for DLLs. | |
12275 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
12276 | allow_undefined_flag_CXX=unsupported | |
12277 | always_export_symbols_CXX=no | |
12278 | enable_shared_with_static_runtimes_CXX=yes | |
12279 | ||
12280 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
12281 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
12282 | # If the export-symbols file already is a .def file (1st line | |
12283 | # is EXPORTS), use it as is; otherwise, prepend... | |
12284 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
12285 | cp $export_symbols $output_objdir/$soname.def; | |
12286 | else | |
12287 | echo EXPORTS > $output_objdir/$soname.def; | |
12288 | cat $export_symbols >> $output_objdir/$soname.def; | |
12289 | fi~ | |
12290 | $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
12291 | else | |
12292 | ld_shlibs_CXX=no | |
12293 | fi | |
12294 | ;; | |
12295 | darwin* | rhapsody*) | |
12296 | case $host_os in | |
12297 | rhapsody* | darwin1.[012]) | |
12298 | allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' | |
12299 | ;; | |
12300 | *) # Darwin 1.3 on | |
12301 | case ${MACOSX_DEPLOYMENT_TARGET-10.0} in | |
12302 | 10.[012]) | |
12303 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
12304 | ;; | |
12305 | 10.*) | |
12306 | allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' | |
12307 | ;; | |
12308 | esac | |
12309 | ;; | |
12310 | esac | |
12311 | archive_cmds_need_lc_CXX=no | |
12312 | hardcode_direct_CXX=no | |
12313 | hardcode_automatic_CXX=yes | |
12314 | hardcode_shlibpath_var_CXX=unsupported | |
12315 | whole_archive_flag_spec_CXX='' | |
12316 | link_all_deplibs_CXX=yes | |
12317 | ||
12318 | if test "$GXX" = yes ; then | |
12319 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then | |
12320 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12321 | else | |
12322 | lt_cv_apple_cc_single_mod=no | |
12323 | if test -z "${LT_MULTI_MODULE}"; then | |
12324 | # By default we will add the -single_module flag. You can override | |
12325 | # by either setting the environment variable LT_MULTI_MODULE | |
12326 | # non-empty at configure time, or by adding -multi-module to the | |
12327 | # link flags. | |
12328 | echo "int foo(void){return 1;}" > conftest.c | |
12329 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
12330 | -dynamiclib ${wl}-single_module conftest.c | |
12331 | if test -f libconftest.dylib; then | |
12332 | lt_cv_apple_cc_single_mod=yes | |
12333 | rm libconftest.dylib | |
12334 | fi | |
12335 | rm conftest.$ac_ext | |
12336 | fi | |
12337 | fi | |
12338 | ||
12339 | output_verbose_link_cmd=echo | |
12340 | if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then | |
12341 | archive_cmds_CXX='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
12342 | archive_expsym_cmds_CXX='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
12343 | else | |
12344 | archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
12345 | archive_expsym_cmds_CXX='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
12346 | fi | |
12347 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
12348 | module_expsym_cmds_CXX='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
12349 | else | |
12350 | case $cc_basename in | |
12351 | xlc*) | |
12352 | output_verbose_link_cmd=echo | |
12353 | archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO "$rpath/$soname"` $verstring' | |
12354 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
12355 | # Don't fix this by using the ld -exported_symbols_list flag, | |
12356 | # it doesn't exist in older darwin lds | |
12357 | archive_expsym_cmds_CXX='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
12358 | module_expsym_cmds_CXX='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
12359 | ;; | |
12360 | *) | |
12361 | ld_shlibs_CXX=no | |
12362 | ;; | |
12363 | esac | |
12364 | fi | |
12365 | ;; | |
12366 | ||
12367 | dgux*) | |
12368 | case $cc_basename in | |
12369 | ec++*) | |
12370 | # FIXME: insert proper C++ library support | |
12371 | ld_shlibs_CXX=no | |
12372 | ;; | |
12373 | ghcx*) | |
12374 | # Green Hills C++ Compiler | |
12375 | # FIXME: insert proper C++ library support | |
12376 | ld_shlibs_CXX=no | |
12377 | ;; | |
12378 | *) | |
12379 | # FIXME: insert proper C++ library support | |
12380 | ld_shlibs_CXX=no | |
12381 | ;; | |
12382 | esac | |
12383 | ;; | |
12384 | ||
12385 | freebsd[12]*) | |
12386 | # C++ shared libraries reported to be fairly broken before | |
12387 | # switch to ELF | |
12388 | ld_shlibs_CXX=no | |
12389 | ;; | |
12390 | ||
12391 | freebsd-elf*) | |
12392 | archive_cmds_need_lc_CXX=no | |
12393 | ;; | |
12394 | ||
12395 | freebsd* | dragonfly*) | |
12396 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | |
12397 | # conventions | |
12398 | ld_shlibs_CXX=yes | |
12399 | ;; | |
12400 | ||
12401 | gnu*) | |
12402 | ;; | |
12403 | ||
12404 | hpux9*) | |
12405 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
12406 | hardcode_libdir_separator_CXX=: | |
12407 | export_dynamic_flag_spec_CXX='${wl}-E' | |
12408 | hardcode_direct_CXX=yes | |
12409 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
12410 | # but as the default | |
12411 | # location of the library. | |
12412 | ||
12413 | case $cc_basename in | |
12414 | CC*) | |
12415 | # FIXME: insert proper C++ library support | |
12416 | ld_shlibs_CXX=no | |
12417 | ;; | |
12418 | aCC*) | |
12419 | archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
12420 | # Commands to make compiler produce verbose output that lists | |
12421 | # what "hidden" libraries, object files and flags are used when | |
12422 | # linking a shared library. | |
12423 | # | |
12424 | # There doesn't appear to be a way to prevent this compiler from | |
12425 | # explicitly linking system object files so we need to strip them | |
12426 | # from the output so that they don't get included in the library | |
12427 | # dependencies. | |
12428 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' | |
12429 | ;; | |
12430 | *) | |
12431 | if test "$GXX" = yes; then | |
12432 | archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
12433 | else | |
12434 | # FIXME: insert proper C++ library support | |
12435 | ld_shlibs_CXX=no | |
12436 | fi | |
12437 | ;; | |
12438 | esac | |
12439 | ;; | |
12440 | ||
12441 | hpux10*|hpux11*) | |
12442 | if test $with_gnu_ld = no; then | |
12443 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
12444 | hardcode_libdir_separator_CXX=: | |
12445 | ||
12446 | case $host_cpu in | |
12447 | hppa*64*|ia64*) | |
12448 | ;; | |
12449 | *) | |
12450 | export_dynamic_flag_spec_CXX='${wl}-E' | |
12451 | ;; | |
12452 | esac | |
12453 | fi | |
12454 | case $host_cpu in | |
12455 | hppa*64*|ia64*) | |
12456 | hardcode_direct_CXX=no | |
12457 | hardcode_shlibpath_var_CXX=no | |
12458 | ;; | |
12459 | *) | |
12460 | hardcode_direct_CXX=yes | |
12461 | hardcode_direct_absolute_CXX=yes | |
12462 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
12463 | # but as the default | |
12464 | # location of the library. | |
12465 | ;; | |
12466 | esac | |
12467 | ||
12468 | case $cc_basename in | |
12469 | CC*) | |
12470 | # FIXME: insert proper C++ library support | |
12471 | ld_shlibs_CXX=no | |
12472 | ;; | |
12473 | aCC*) | |
12474 | case $host_cpu in | |
12475 | hppa*64*) | |
12476 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
12477 | ;; | |
12478 | ia64*) | |
12479 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
12480 | ;; | |
12481 | *) | |
12482 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
12483 | ;; | |
12484 | esac | |
12485 | # Commands to make compiler produce verbose output that lists | |
12486 | # what "hidden" libraries, object files and flags are used when | |
12487 | # linking a shared library. | |
12488 | # | |
12489 | # There doesn't appear to be a way to prevent this compiler from | |
12490 | # explicitly linking system object files so we need to strip them | |
12491 | # from the output so that they don't get included in the library | |
12492 | # dependencies. | |
12493 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' | |
12494 | ;; | |
12495 | *) | |
12496 | if test "$GXX" = yes; then | |
12497 | if test $with_gnu_ld = no; then | |
12498 | case $host_cpu in | |
12499 | hppa*64*) | |
12500 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
12501 | ;; | |
12502 | ia64*) | |
12503 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
12504 | ;; | |
12505 | *) | |
12506 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
12507 | ;; | |
12508 | esac | |
12509 | fi | |
12510 | else | |
12511 | # FIXME: insert proper C++ library support | |
12512 | ld_shlibs_CXX=no | |
12513 | fi | |
12514 | ;; | |
12515 | esac | |
12516 | ;; | |
12517 | ||
12518 | interix[3-9]*) | |
12519 | hardcode_direct_CXX=no | |
12520 | hardcode_shlibpath_var_CXX=no | |
12521 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
12522 | export_dynamic_flag_spec_CXX='${wl}-E' | |
12523 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
12524 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
12525 | # default) and relocated if they conflict, which is a slow very memory | |
12526 | # consuming and fragmenting process. To avoid this, we pick a random, | |
12527 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
12528 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
12529 | archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
12530 | archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
12531 | ;; | |
12532 | irix5* | irix6*) | |
12533 | case $cc_basename in | |
12534 | CC*) | |
12535 | # SGI C++ | |
12536 | archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
12537 | ||
12538 | # Archives containing C++ object files must be created using | |
12539 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is | |
12540 | # necessary to make sure instantiated templates are included | |
12541 | # in the archive. | |
12542 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' | |
12543 | ;; | |
12544 | *) | |
12545 | if test "$GXX" = yes; then | |
12546 | if test "$with_gnu_ld" = no; then | |
12547 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
12548 | else | |
12549 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib' | |
12550 | fi | |
12551 | fi | |
12552 | link_all_deplibs_CXX=yes | |
12553 | ;; | |
12554 | esac | |
12555 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
12556 | hardcode_libdir_separator_CXX=: | |
12557 | inherit_rpath_CXX=yes | |
12558 | ;; | |
12559 | ||
12560 | linux* | k*bsd*-gnu) | |
12561 | case $cc_basename in | |
12562 | KCC*) | |
12563 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
12564 | ||
12565 | # KCC will only create a shared library if the output file | |
12566 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
12567 | # to its proper name (with version) after linking. | |
12568 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' | |
12569 | archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' | |
12570 | # Commands to make compiler produce verbose output that lists | |
12571 | # what "hidden" libraries, object files and flags are used when | |
12572 | # linking a shared library. | |
12573 | # | |
12574 | # There doesn't appear to be a way to prevent this compiler from | |
12575 | # explicitly linking system object files so we need to strip them | |
12576 | # from the output so that they don't get included in the library | |
12577 | # dependencies. | |
12578 | output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' | |
12579 | ||
12580 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
12581 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
12582 | ||
12583 | # Archives containing C++ object files must be created using | |
12584 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
12585 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | |
12586 | ;; | |
12587 | icpc* | ecpc* ) | |
12588 | # Intel C++ | |
12589 | with_gnu_ld=yes | |
12590 | # version 8.0 and above of icpc choke on multiply defined symbols | |
12591 | # if we add $predep_objects and $postdep_objects, however 7.1 and | |
12592 | # earlier do not add the objects themselves. | |
12593 | case `$CC -V 2>&1` in | |
12594 | *"Version 7."*) | |
12595 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12596 | archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
12597 | ;; | |
12598 | *) # Version 8.0 or newer | |
12599 | tmp_idyn= | |
12600 | case $host_cpu in | |
12601 | ia64*) tmp_idyn=' -i_dynamic';; | |
12602 | esac | |
12603 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12604 | archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
12605 | ;; | |
12606 | esac | |
12607 | archive_cmds_need_lc_CXX=no | |
12608 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
12609 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
12610 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
12611 | ;; | |
12612 | pgCC*) | |
12613 | # Portland Group C++ compiler | |
12614 | case `$CC -V` in | |
12615 | *pgCC\ [1-5]*) | |
12616 | prelink_cmds_CXX='tpldir=Template.dir~ | |
12617 | rm -rf $tpldir~ | |
12618 | $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ | |
12619 | compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' | |
12620 | old_archive_cmds_CXX='tpldir=Template.dir~ | |
12621 | rm -rf $tpldir~ | |
12622 | $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ | |
12623 | $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ | |
12624 | $RANLIB $oldlib' | |
12625 | archive_cmds_CXX='tpldir=Template.dir~ | |
12626 | rm -rf $tpldir~ | |
12627 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
12628 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | |
12629 | archive_expsym_cmds_CXX='tpldir=Template.dir~ | |
12630 | rm -rf $tpldir~ | |
12631 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
12632 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' | |
12633 | ;; | |
12634 | *) # Version 6 will use weak symbols | |
12635 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | |
12636 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' | |
12637 | ;; | |
12638 | esac | |
12639 | ||
12640 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' | |
12641 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
12642 | whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | |
12643 | ;; | |
12644 | cxx*) | |
12645 | # Compaq C++ | |
12646 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12647 | archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' | |
12648 | ||
12649 | runpath_var=LD_RUN_PATH | |
12650 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
12651 | hardcode_libdir_separator_CXX=: | |
12652 | ||
12653 | # Commands to make compiler produce verbose output that lists | |
12654 | # what "hidden" libraries, object files and flags are used when | |
12655 | # linking a shared library. | |
12656 | # | |
12657 | # There doesn't appear to be a way to prevent this compiler from | |
12658 | # explicitly linking system object files so we need to strip them | |
12659 | # from the output so that they don't get included in the library | |
12660 | # dependencies. | |
12661 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' | |
12662 | ;; | |
12663 | *) | |
12664 | case `$CC -V 2>&1 | sed 5q` in | |
12665 | *Sun\ C*) | |
12666 | # Sun C++ 5.9 | |
12667 | no_undefined_flag_CXX=' -zdefs' | |
12668 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
12669 | archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' | |
12670 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
12671 | whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | |
12672 | compiler_needs_object_CXX=yes | |
12673 | ||
12674 | # Not sure whether something based on | |
12675 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | |
12676 | # would be better. | |
12677 | output_verbose_link_cmd='echo' | |
12678 | ||
12679 | # Archives containing C++ object files must be created using | |
12680 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
12681 | # necessary to make sure instantiated templates are included | |
12682 | # in the archive. | |
12683 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
12684 | ;; | |
12685 | esac | |
12686 | ;; | |
12687 | esac | |
12688 | ;; | |
12689 | ||
12690 | lynxos*) | |
12691 | # FIXME: insert proper C++ library support | |
12692 | ld_shlibs_CXX=no | |
12693 | ;; | |
12694 | ||
12695 | m88k*) | |
12696 | # FIXME: insert proper C++ library support | |
12697 | ld_shlibs_CXX=no | |
12698 | ;; | |
12699 | ||
12700 | mvs*) | |
12701 | case $cc_basename in | |
12702 | cxx*) | |
12703 | # FIXME: insert proper C++ library support | |
12704 | ld_shlibs_CXX=no | |
12705 | ;; | |
12706 | *) | |
12707 | # FIXME: insert proper C++ library support | |
12708 | ld_shlibs_CXX=no | |
12709 | ;; | |
12710 | esac | |
12711 | ;; | |
12712 | ||
12713 | netbsd*) | |
12714 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
12715 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | |
12716 | wlarc= | |
12717 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
12718 | hardcode_direct_CXX=yes | |
12719 | hardcode_shlibpath_var_CXX=no | |
12720 | fi | |
12721 | # Workaround some broken pre-1.5 toolchains | |
12722 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | |
12723 | ;; | |
12724 | ||
12725 | *nto* | *qnx*) | |
12726 | ld_shlibs_CXX=yes | |
12727 | ;; | |
12728 | ||
12729 | openbsd2*) | |
12730 | # C++ shared libraries are fairly broken | |
12731 | ld_shlibs_CXX=no | |
12732 | ;; | |
12733 | ||
12734 | openbsd*) | |
12735 | hardcode_direct_CXX=yes | |
12736 | hardcode_shlibpath_var_CXX=no | |
12737 | hardcode_direct_absolute_CXX=yes | |
12738 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
12739 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
12740 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
12741 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' | |
12742 | export_dynamic_flag_spec_CXX='${wl}-E' | |
12743 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
12744 | fi | |
12745 | output_verbose_link_cmd=echo | |
12746 | ;; | |
12747 | ||
12748 | osf3* | osf4* | osf5*) | |
12749 | case $cc_basename in | |
12750 | KCC*) | |
12751 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
12752 | ||
12753 | # KCC will only create a shared library if the output file | |
12754 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
12755 | # to its proper name (with version) after linking. | |
12756 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' | |
12757 | ||
12758 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
12759 | hardcode_libdir_separator_CXX=: | |
12760 | ||
12761 | # Archives containing C++ object files must be created using | |
12762 | # the KAI C++ compiler. | |
12763 | case $host in | |
12764 | osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; | |
12765 | *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; | |
12766 | esac | |
12767 | ;; | |
12768 | RCC*) | |
12769 | # Rational C++ 2.4.1 | |
12770 | # FIXME: insert proper C++ library support | |
12771 | ld_shlibs_CXX=no | |
12772 | ;; | |
12773 | cxx*) | |
12774 | case $host in | |
12775 | osf3*) | |
12776 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
12777 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
12778 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
12779 | ;; | |
12780 | *) | |
12781 | allow_undefined_flag_CXX=' -expect_unresolved \*' | |
12782 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
12783 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ | |
12784 | echo "-hidden">> $lib.exp~ | |
12785 | $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~ | |
12786 | $RM $lib.exp' | |
12787 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
12788 | ;; | |
12789 | esac | |
12790 | ||
12791 | hardcode_libdir_separator_CXX=: | |
12792 | ||
12793 | # Commands to make compiler produce verbose output that lists | |
12794 | # what "hidden" libraries, object files and flags are used when | |
12795 | # linking a shared library. | |
12796 | # | |
12797 | # There doesn't appear to be a way to prevent this compiler from | |
12798 | # explicitly linking system object files so we need to strip them | |
12799 | # from the output so that they don't get included in the library | |
12800 | # dependencies. | |
12801 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' | |
12802 | ;; | |
12803 | *) | |
12804 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
12805 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
12806 | case $host in | |
12807 | osf3*) | |
12808 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
12809 | ;; | |
12810 | *) | |
12811 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
12812 | ;; | |
12813 | esac | |
12814 | ||
12815 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
12816 | hardcode_libdir_separator_CXX=: | |
12817 | ||
12818 | # Commands to make compiler produce verbose output that lists | |
12819 | # what "hidden" libraries, object files and flags are used when | |
12820 | # linking a shared library. | |
12821 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | |
12822 | ||
12823 | else | |
12824 | # FIXME: insert proper C++ library support | |
12825 | ld_shlibs_CXX=no | |
12826 | fi | |
12827 | ;; | |
12828 | esac | |
12829 | ;; | |
12830 | ||
12831 | psos*) | |
12832 | # FIXME: insert proper C++ library support | |
12833 | ld_shlibs_CXX=no | |
12834 | ;; | |
12835 | ||
12836 | sunos4*) | |
12837 | case $cc_basename in | |
12838 | CC*) | |
12839 | # Sun C++ 4.x | |
12840 | # FIXME: insert proper C++ library support | |
12841 | ld_shlibs_CXX=no | |
12842 | ;; | |
12843 | lcc*) | |
12844 | # Lucid | |
12845 | # FIXME: insert proper C++ library support | |
12846 | ld_shlibs_CXX=no | |
12847 | ;; | |
12848 | *) | |
12849 | # FIXME: insert proper C++ library support | |
12850 | ld_shlibs_CXX=no | |
12851 | ;; | |
12852 | esac | |
12853 | ;; | |
12854 | ||
12855 | solaris*) | |
12856 | case $cc_basename in | |
12857 | CC*) | |
12858 | # Sun C++ 4.2, 5.x and Centerline C++ | |
12859 | archive_cmds_need_lc_CXX=yes | |
12860 | no_undefined_flag_CXX=' -zdefs' | |
12861 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
12862 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
12863 | $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | |
12864 | ||
12865 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
12866 | hardcode_shlibpath_var_CXX=no | |
12867 | case $host_os in | |
12868 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
12869 | *) | |
12870 | # The compiler driver will combine and reorder linker options, | |
12871 | # but understands `-z linker_flag'. | |
12872 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
12873 | whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' | |
12874 | ;; | |
12875 | esac | |
12876 | link_all_deplibs_CXX=yes | |
12877 | ||
12878 | output_verbose_link_cmd='echo' | |
12879 | ||
12880 | # Archives containing C++ object files must be created using | |
12881 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
12882 | # necessary to make sure instantiated templates are included | |
12883 | # in the archive. | |
12884 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
12885 | ;; | |
12886 | gcx*) | |
12887 | # Green Hills C++ Compiler | |
12888 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
12889 | ||
12890 | # The C++ compiler must be used to create the archive. | |
12891 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | |
12892 | ;; | |
12893 | *) | |
12894 | # GNU C++ compiler with Solaris linker | |
12895 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
12896 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' | |
12897 | if $CC --version | $GREP -v '^2\.7' > /dev/null; then | |
12898 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
12899 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
12900 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | |
12901 | ||
12902 | # Commands to make compiler produce verbose output that lists | |
12903 | # what "hidden" libraries, object files and flags are used when | |
12904 | # linking a shared library. | |
12905 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | |
12906 | else | |
12907 | # g++ 2.7 appears to require `-G' NOT `-shared' on this | |
12908 | # platform. | |
12909 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
12910 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
12911 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | |
12912 | ||
12913 | # Commands to make compiler produce verbose output that lists | |
12914 | # what "hidden" libraries, object files and flags are used when | |
12915 | # linking a shared library. | |
12916 | output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | |
12917 | fi | |
12918 | ||
12919 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' | |
12920 | case $host_os in | |
12921 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
12922 | *) | |
12923 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
12924 | ;; | |
12925 | esac | |
12926 | fi | |
12927 | ;; | |
12928 | esac | |
12929 | ;; | |
12930 | ||
12931 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
12932 | no_undefined_flag_CXX='${wl}-z,text' | |
12933 | archive_cmds_need_lc_CXX=no | |
12934 | hardcode_shlibpath_var_CXX=no | |
12935 | runpath_var='LD_RUN_PATH' | |
12936 | ||
12937 | case $cc_basename in | |
12938 | CC*) | |
12939 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12940 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12941 | ;; | |
12942 | *) | |
12943 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12944 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12945 | ;; | |
12946 | esac | |
12947 | ;; | |
12948 | ||
12949 | sysv5* | sco3.2v5* | sco5v6*) | |
12950 | # Note: We can NOT use -z defs as we might desire, because we do not | |
12951 | # link with -lc, and that would cause any symbols used from libc to | |
12952 | # always be unresolved, which means just about no library would | |
12953 | # ever link correctly. If we're not using GNU ld we use -z text | |
12954 | # though, which does catch some bad symbols but isn't as heavy-handed | |
12955 | # as -z defs. | |
12956 | no_undefined_flag_CXX='${wl}-z,text' | |
12957 | allow_undefined_flag_CXX='${wl}-z,nodefs' | |
12958 | archive_cmds_need_lc_CXX=no | |
12959 | hardcode_shlibpath_var_CXX=no | |
12960 | hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' | |
12961 | hardcode_libdir_separator_CXX=':' | |
12962 | link_all_deplibs_CXX=yes | |
12963 | export_dynamic_flag_spec_CXX='${wl}-Bexport' | |
12964 | runpath_var='LD_RUN_PATH' | |
12965 | ||
12966 | case $cc_basename in | |
12967 | CC*) | |
12968 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12969 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12970 | ;; | |
12971 | *) | |
12972 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12973 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12974 | ;; | |
12975 | esac | |
12976 | ;; | |
12977 | ||
12978 | tandem*) | |
12979 | case $cc_basename in | |
12980 | NCC*) | |
12981 | # NonStop-UX NCC 3.20 | |
12982 | # FIXME: insert proper C++ library support | |
12983 | ld_shlibs_CXX=no | |
12984 | ;; | |
12985 | *) | |
12986 | # FIXME: insert proper C++ library support | |
12987 | ld_shlibs_CXX=no | |
12988 | ;; | |
12989 | esac | |
12990 | ;; | |
12991 | ||
12992 | vxworks*) | |
12993 | # FIXME: insert proper C++ library support | |
12994 | ld_shlibs_CXX=no | |
12995 | ;; | |
12996 | ||
12997 | *) | |
12998 | # FIXME: insert proper C++ library support | |
12999 | ld_shlibs_CXX=no | |
13000 | ;; | |
13001 | esac | |
13002 | ||
8a165db0 BK |
13003 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
13004 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } | |
1cf3d07d SE |
13005 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
13006 | ||
13007 | GCC_CXX="$GXX" | |
13008 | LD_CXX="$LD" | |
13009 | ||
13010 | ## CAVEAT EMPTOR: | |
13011 | ## There is no encapsulation within the following macros, do not change | |
13012 | ## the running order or otherwise move them around unless you know exactly | |
13013 | ## what you are doing... | |
13014 | # Dependencies to place before and after the object being linked: | |
13015 | predep_objects_CXX= | |
13016 | postdep_objects_CXX= | |
13017 | predeps_CXX= | |
13018 | postdeps_CXX= | |
13019 | compiler_lib_search_path_CXX= | |
13020 | ||
13021 | cat > conftest.$ac_ext <<_LT_EOF | |
13022 | class Foo | |
13023 | { | |
13024 | public: | |
13025 | Foo (void) { a = 0; } | |
13026 | private: | |
13027 | int a; | |
13028 | }; | |
13029 | _LT_EOF | |
13030 | ||
13031 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13032 | (eval $ac_compile) 2>&5 | |
13033 | ac_status=$? | |
13034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13035 | (exit $ac_status); }; then | |
13036 | # Parse the compiler output and extract the necessary | |
13037 | # objects, libraries and library flags. | |
13038 | ||
13039 | # Sentinel used to keep track of whether or not we are before | |
13040 | # the conftest object file. | |
13041 | pre_test_object_deps_done=no | |
13042 | ||
13043 | # The `*' in the case matches for architectures that use `case' in | |
13044 | # $output_verbose_cmd can trigger glob expansion during the loop | |
13045 | # eval without this substitution. | |
13046 | output_verbose_link_cmd=`$ECHO "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` | |
13047 | ||
13048 | for p in `eval $output_verbose_link_cmd`; do | |
13049 | case $p in | |
13050 | ||
13051 | -L* | -R* | -l*) | |
13052 | # Some compilers place space between "-{L,R}" and the path. | |
13053 | # Remove the space. | |
13054 | if test $p = "-L" || | |
13055 | test $p = "-R"; then | |
13056 | prev=$p | |
13057 | continue | |
13058 | else | |
13059 | prev= | |
13060 | fi | |
13061 | ||
13062 | if test "$pre_test_object_deps_done" = no; then | |
13063 | case $p in | |
13064 | -L* | -R*) | |
13065 | # Internal compiler library paths should come after those | |
13066 | # provided the user. The postdeps already come after the | |
13067 | # user supplied libs so there is no need to process them. | |
13068 | if test -z "$compiler_lib_search_path_CXX"; then | |
13069 | compiler_lib_search_path_CXX="${prev}${p}" | |
13070 | else | |
13071 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" | |
13072 | fi | |
13073 | ;; | |
13074 | # The "-l" case would never come before the object being | |
13075 | # linked, so don't bother handling this case. | |
13076 | esac | |
13077 | else | |
13078 | if test -z "$postdeps_CXX"; then | |
13079 | postdeps_CXX="${prev}${p}" | |
13080 | else | |
13081 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" | |
13082 | fi | |
13083 | fi | |
13084 | ;; | |
13085 | ||
13086 | *.$objext) | |
13087 | # This assumes that the test object file only shows up | |
13088 | # once in the compiler output. | |
13089 | if test "$p" = "conftest.$objext"; then | |
13090 | pre_test_object_deps_done=yes | |
13091 | continue | |
13092 | fi | |
13093 | ||
13094 | if test "$pre_test_object_deps_done" = no; then | |
13095 | if test -z "$predep_objects_CXX"; then | |
13096 | predep_objects_CXX="$p" | |
13097 | else | |
13098 | predep_objects_CXX="$predep_objects_CXX $p" | |
13099 | fi | |
13100 | else | |
13101 | if test -z "$postdep_objects_CXX"; then | |
13102 | postdep_objects_CXX="$p" | |
13103 | else | |
13104 | postdep_objects_CXX="$postdep_objects_CXX $p" | |
13105 | fi | |
13106 | fi | |
13107 | ;; | |
13108 | ||
13109 | *) ;; # Ignore the rest. | |
13110 | ||
13111 | esac | |
13112 | done | |
13113 | ||
13114 | # Clean up. | |
13115 | rm -f a.out a.exe | |
13116 | else | |
13117 | echo "libtool.m4: error: problem compiling CXX test program" | |
13118 | fi | |
13119 | ||
13120 | $RM -f confest.$objext | |
13121 | ||
13122 | # PORTME: override above test on systems where it is broken | |
13123 | case $host_os in | |
13124 | interix[3-9]*) | |
13125 | # Interix 3.5 installs completely hosed .la files for C++, so rather than | |
13126 | # hack all around it, let's just trust "g++" to DTRT. | |
13127 | predep_objects_CXX= | |
13128 | postdep_objects_CXX= | |
13129 | postdeps_CXX= | |
13130 | ;; | |
13131 | ||
13132 | linux*) | |
13133 | case `$CC -V 2>&1 | sed 5q` in | |
13134 | *Sun\ C*) | |
13135 | # Sun C++ 5.9 | |
13136 | ||
13137 | # The more standards-conforming stlport4 library is | |
13138 | # incompatible with the Cstd library. Avoid specifying | |
13139 | # it if it's in CXXFLAGS. Ignore libCrun as | |
13140 | # -library=stlport4 depends on it. | |
13141 | case " $CXX $CXXFLAGS " in | |
13142 | *" -library=stlport4 "*) | |
13143 | solaris_use_stlport4=yes | |
13144 | ;; | |
13145 | esac | |
13146 | ||
13147 | if test "$solaris_use_stlport4" != yes; then | |
13148 | postdeps_CXX='-library=Cstd -library=Crun' | |
13149 | fi | |
13150 | ;; | |
13151 | esac | |
13152 | ;; | |
13153 | ||
13154 | solaris*) | |
13155 | case $cc_basename in | |
13156 | CC*) | |
13157 | # The more standards-conforming stlport4 library is | |
13158 | # incompatible with the Cstd library. Avoid specifying | |
13159 | # it if it's in CXXFLAGS. Ignore libCrun as | |
13160 | # -library=stlport4 depends on it. | |
13161 | case " $CXX $CXXFLAGS " in | |
13162 | *" -library=stlport4 "*) | |
13163 | solaris_use_stlport4=yes | |
13164 | ;; | |
13165 | esac | |
13166 | ||
13167 | # Adding this requires a known-good setup of shared libraries for | |
13168 | # Sun compiler versions before 5.6, else PIC objects from an old | |
13169 | # archive will be linked into the output, leading to subtle bugs. | |
13170 | if test "$solaris_use_stlport4" != yes; then | |
13171 | postdeps_CXX='-library=Cstd -library=Crun' | |
13172 | fi | |
13173 | ;; | |
13174 | esac | |
13175 | ;; | |
13176 | esac | |
13177 | ||
13178 | ||
13179 | case " $postdeps_CXX " in | |
13180 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; | |
13181 | esac | |
13182 | ||
13183 | ||
13184 | ||
13185 | ||
13186 | ||
13187 | ||
13188 | ||
13189 | ||
13190 | ||
13191 | ||
13192 | ||
13193 | ||
13194 | ||
13195 | ||
13196 | ||
13197 | ||
13198 | ||
13199 | ||
13200 | ||
13201 | ||
13202 | ||
13203 | ||
13204 | ||
13205 | ||
13206 | ||
13207 | ||
13208 | lt_prog_compiler_wl_CXX= | |
13209 | lt_prog_compiler_pic_CXX= | |
13210 | lt_prog_compiler_static_CXX= | |
13211 | ||
8a165db0 BK |
13212 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
13213 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } | |
1cf3d07d SE |
13214 | |
13215 | # C++ specific cases for pic, static, wl, etc. | |
13216 | if test "$GXX" = yes; then | |
13217 | lt_prog_compiler_wl_CXX='-Wl,' | |
13218 | lt_prog_compiler_static_CXX='-static' | |
13219 | ||
13220 | case $host_os in | |
13221 | aix*) | |
13222 | # All AIX code is PIC. | |
13223 | if test "$host_cpu" = ia64; then | |
13224 | # AIX 5 now supports IA64 processor | |
13225 | lt_prog_compiler_static_CXX='-Bstatic' | |
13226 | fi | |
13227 | ;; | |
13228 | amigaos*) | |
13229 | if test "$host_cpu" = m68k; then | |
13230 | # FIXME: we need at least 68020 code to build shared libraries, but | |
13231 | # adding the `-m68020' flag to GCC prevents building anything better, | |
13232 | # like `-m68040'. | |
13233 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' | |
13234 | fi | |
13235 | ;; | |
13236 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
13237 | # PIC is the default for these OSes. | |
13238 | ;; | |
13239 | mingw* | cygwin* | os2* | pw32*) | |
13240 | # This hack is so that the source file can tell whether it is being | |
13241 | # built for inclusion in a dll (and should export symbols for example). | |
13242 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
13243 | # (--disable-auto-import) libraries | |
13244 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | |
13245 | ;; | |
13246 | darwin* | rhapsody*) | |
13247 | # PIC is the default on this platform | |
13248 | # Common symbols not allowed in MH_DYLIB files | |
13249 | lt_prog_compiler_pic_CXX='-fno-common' | |
13250 | ;; | |
13251 | *djgpp*) | |
13252 | # DJGPP does not support shared libraries at all | |
13253 | lt_prog_compiler_pic_CXX= | |
13254 | ;; | |
13255 | interix[3-9]*) | |
13256 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
13257 | # Instead, we relocate shared libraries at runtime. | |
13258 | ;; | |
13259 | sysv4*MP*) | |
13260 | if test -d /usr/nec; then | |
13261 | lt_prog_compiler_pic_CXX=-Kconform_pic | |
13262 | fi | |
13263 | ;; | |
13264 | hpux*) | |
13265 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
13266 | # not for PA HP-UX. | |
13267 | case $host_cpu in | |
13268 | hppa*64*|ia64*) | |
13269 | ;; | |
13270 | *) | |
13271 | lt_prog_compiler_pic_CXX='-fPIC' | |
13272 | ;; | |
13273 | esac | |
13274 | ;; | |
13275 | *qnx* | *nto*) | |
13276 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
13277 | # it will coredump. | |
13278 | lt_prog_compiler_pic_CXX='-fPIC -shared' | |
13279 | ;; | |
13280 | *) | |
13281 | lt_prog_compiler_pic_CXX='-fPIC' | |
13282 | ;; | |
13283 | esac | |
13284 | else | |
13285 | case $host_os in | |
716e4bc6 | 13286 | aix[4-9]*) |
1cf3d07d SE |
13287 | # All AIX code is PIC. |
13288 | if test "$host_cpu" = ia64; then | |
13289 | # AIX 5 now supports IA64 processor | |
13290 | lt_prog_compiler_static_CXX='-Bstatic' | |
13291 | else | |
13292 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' | |
13293 | fi | |
13294 | ;; | |
13295 | chorus*) | |
13296 | case $cc_basename in | |
13297 | cxch68*) | |
13298 | # Green Hills C++ Compiler | |
13299 | # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" | |
13300 | ;; | |
13301 | esac | |
13302 | ;; | |
13303 | darwin*) | |
13304 | # PIC is the default on this platform | |
13305 | # Common symbols not allowed in MH_DYLIB files | |
13306 | case $cc_basename in | |
13307 | xlc*) | |
13308 | lt_prog_compiler_pic_CXX='-qnocommon' | |
13309 | lt_prog_compiler_wl_CXX='-Wl,' | |
13310 | ;; | |
13311 | esac | |
13312 | ;; | |
13313 | dgux*) | |
13314 | case $cc_basename in | |
13315 | ec++*) | |
13316 | lt_prog_compiler_pic_CXX='-KPIC' | |
13317 | ;; | |
13318 | ghcx*) | |
13319 | # Green Hills C++ Compiler | |
13320 | lt_prog_compiler_pic_CXX='-pic' | |
13321 | ;; | |
13322 | *) | |
13323 | ;; | |
13324 | esac | |
13325 | ;; | |
13326 | freebsd* | dragonfly*) | |
13327 | # FreeBSD uses GNU C++ | |
13328 | ;; | |
13329 | hpux9* | hpux10* | hpux11*) | |
13330 | case $cc_basename in | |
13331 | CC*) | |
13332 | lt_prog_compiler_wl_CXX='-Wl,' | |
13333 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | |
13334 | if test "$host_cpu" != ia64; then | |
13335 | lt_prog_compiler_pic_CXX='+Z' | |
13336 | fi | |
13337 | ;; | |
13338 | aCC*) | |
13339 | lt_prog_compiler_wl_CXX='-Wl,' | |
13340 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | |
13341 | case $host_cpu in | |
13342 | hppa*64*|ia64*) | |
13343 | # +Z the default | |
13344 | ;; | |
13345 | *) | |
13346 | lt_prog_compiler_pic_CXX='+Z' | |
13347 | ;; | |
13348 | esac | |
13349 | ;; | |
13350 | *) | |
13351 | ;; | |
13352 | esac | |
13353 | ;; | |
13354 | interix*) | |
13355 | # This is c89, which is MS Visual C++ (no shared libs) | |
13356 | # Anyone wants to do a port? | |
13357 | ;; | |
13358 | irix5* | irix6* | nonstopux*) | |
13359 | case $cc_basename in | |
13360 | CC*) | |
13361 | lt_prog_compiler_wl_CXX='-Wl,' | |
13362 | lt_prog_compiler_static_CXX='-non_shared' | |
13363 | # CC pic flag -KPIC is the default. | |
13364 | ;; | |
13365 | *) | |
13366 | ;; | |
13367 | esac | |
13368 | ;; | |
13369 | linux* | k*bsd*-gnu) | |
13370 | case $cc_basename in | |
13371 | KCC*) | |
13372 | # KAI C++ Compiler | |
13373 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
13374 | lt_prog_compiler_pic_CXX='-fPIC' | |
13375 | ;; | |
13376 | icpc* | ecpc* ) | |
13377 | # Intel C++ | |
13378 | lt_prog_compiler_wl_CXX='-Wl,' | |
13379 | lt_prog_compiler_pic_CXX='-KPIC' | |
13380 | lt_prog_compiler_static_CXX='-static' | |
13381 | ;; | |
13382 | pgCC*) | |
13383 | # Portland Group C++ compiler | |
13384 | lt_prog_compiler_wl_CXX='-Wl,' | |
13385 | lt_prog_compiler_pic_CXX='-fpic' | |
13386 | lt_prog_compiler_static_CXX='-Bstatic' | |
13387 | ;; | |
13388 | cxx*) | |
13389 | # Compaq C++ | |
13390 | # Make sure the PIC flag is empty. It appears that all Alpha | |
13391 | # Linux and Compaq Tru64 Unix objects are PIC. | |
13392 | lt_prog_compiler_pic_CXX= | |
13393 | lt_prog_compiler_static_CXX='-non_shared' | |
13394 | ;; | |
13395 | *) | |
13396 | case `$CC -V 2>&1 | sed 5q` in | |
13397 | *Sun\ C*) | |
13398 | # Sun C++ 5.9 | |
13399 | lt_prog_compiler_pic_CXX='-KPIC' | |
13400 | lt_prog_compiler_static_CXX='-Bstatic' | |
13401 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
13402 | ;; | |
13403 | esac | |
13404 | ;; | |
13405 | esac | |
13406 | ;; | |
13407 | lynxos*) | |
13408 | ;; | |
13409 | m88k*) | |
13410 | ;; | |
13411 | mvs*) | |
13412 | case $cc_basename in | |
13413 | cxx*) | |
13414 | lt_prog_compiler_pic_CXX='-W c,exportall' | |
13415 | ;; | |
13416 | *) | |
13417 | ;; | |
13418 | esac | |
13419 | ;; | |
13420 | netbsd*) | |
13421 | ;; | |
13422 | *qnx* | *nto*) | |
13423 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
13424 | # it will coredump. | |
13425 | lt_prog_compiler_pic_CXX='-fPIC -shared' | |
13426 | ;; | |
13427 | osf3* | osf4* | osf5*) | |
13428 | case $cc_basename in | |
13429 | KCC*) | |
13430 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
13431 | ;; | |
13432 | RCC*) | |
13433 | # Rational C++ 2.4.1 | |
13434 | lt_prog_compiler_pic_CXX='-pic' | |
13435 | ;; | |
13436 | cxx*) | |
13437 | # Digital/Compaq C++ | |
13438 | lt_prog_compiler_wl_CXX='-Wl,' | |
13439 | # Make sure the PIC flag is empty. It appears that all Alpha | |
13440 | # Linux and Compaq Tru64 Unix objects are PIC. | |
13441 | lt_prog_compiler_pic_CXX= | |
13442 | lt_prog_compiler_static_CXX='-non_shared' | |
13443 | ;; | |
13444 | *) | |
13445 | ;; | |
13446 | esac | |
13447 | ;; | |
13448 | psos*) | |
13449 | ;; | |
13450 | solaris*) | |
13451 | case $cc_basename in | |
13452 | CC*) | |
13453 | # Sun C++ 4.2, 5.x and Centerline C++ | |
13454 | lt_prog_compiler_pic_CXX='-KPIC' | |
13455 | lt_prog_compiler_static_CXX='-Bstatic' | |
13456 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
13457 | ;; | |
13458 | gcx*) | |
13459 | # Green Hills C++ Compiler | |
13460 | lt_prog_compiler_pic_CXX='-PIC' | |
13461 | ;; | |
13462 | *) | |
13463 | ;; | |
13464 | esac | |
13465 | ;; | |
13466 | sunos4*) | |
13467 | case $cc_basename in | |
13468 | CC*) | |
13469 | # Sun C++ 4.x | |
13470 | lt_prog_compiler_pic_CXX='-pic' | |
13471 | lt_prog_compiler_static_CXX='-Bstatic' | |
13472 | ;; | |
13473 | lcc*) | |
13474 | # Lucid | |
13475 | lt_prog_compiler_pic_CXX='-pic' | |
13476 | ;; | |
13477 | *) | |
13478 | ;; | |
13479 | esac | |
13480 | ;; | |
13481 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
13482 | case $cc_basename in | |
13483 | CC*) | |
13484 | lt_prog_compiler_wl_CXX='-Wl,' | |
13485 | lt_prog_compiler_pic_CXX='-KPIC' | |
13486 | lt_prog_compiler_static_CXX='-Bstatic' | |
13487 | ;; | |
13488 | esac | |
13489 | ;; | |
13490 | tandem*) | |
13491 | case $cc_basename in | |
13492 | NCC*) | |
13493 | # NonStop-UX NCC 3.20 | |
13494 | lt_prog_compiler_pic_CXX='-KPIC' | |
13495 | ;; | |
13496 | *) | |
13497 | ;; | |
13498 | esac | |
13499 | ;; | |
13500 | vxworks*) | |
13501 | ;; | |
13502 | *) | |
13503 | lt_prog_compiler_can_build_shared_CXX=no | |
13504 | ;; | |
13505 | esac | |
13506 | fi | |
13507 | ||
13508 | case $host_os in | |
13509 | # For platforms which do not support PIC, -DPIC is meaningless: | |
13510 | *djgpp*) | |
13511 | lt_prog_compiler_pic_CXX= | |
13512 | ;; | |
13513 | *) | |
13514 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" | |
13515 | ;; | |
13516 | esac | |
8a165db0 BK |
13517 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
13518 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } | |
1cf3d07d SE |
13519 | |
13520 | ||
13521 | ||
13522 | # | |
13523 | # Check to make sure the PIC flag actually works. | |
13524 | # | |
13525 | if test -n "$lt_prog_compiler_pic_CXX"; then | |
8a165db0 BK |
13526 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
13527 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } | |
1cf3d07d SE |
13528 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then |
13529 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13530 | else | |
13531 | lt_prog_compiler_pic_works_CXX=no | |
13532 | ac_outfile=conftest.$ac_objext | |
13533 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
13534 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" | |
13535 | # Insert the option either (1) after the last *FLAGS variable, or | |
13536 | # (2) before a word containing "conftest.", or (3) at the end. | |
13537 | # Note that $ac_compile itself does not contain backslashes and begins | |
13538 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
13539 | # The option is referenced via a variable to avoid confusing sed. | |
13540 | lt_compile=`echo "$ac_compile" | $SED \ | |
13541 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
13542 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
13543 | -e 's:$: $lt_compiler_flag:'` | |
8a165db0 | 13544 | (eval echo "\"\$as_me:13544: $lt_compile\"" >&5) |
1cf3d07d SE |
13545 | (eval "$lt_compile" 2>conftest.err) |
13546 | ac_status=$? | |
13547 | cat conftest.err >&5 | |
8a165db0 | 13548 | echo "$as_me:13548: \$? = $ac_status" >&5 |
1cf3d07d SE |
13549 | if (exit $ac_status) && test -s "$ac_outfile"; then |
13550 | # The compiler can only warn and ignore the option if not recognized | |
13551 | # So say no if there are warnings other than the usual output. | |
13552 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
13553 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
13554 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
13555 | lt_prog_compiler_pic_works_CXX=yes | |
13556 | fi | |
13557 | fi | |
13558 | $RM conftest* | |
13559 | ||
13560 | fi | |
8a165db0 BK |
13561 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 |
13562 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } | |
1cf3d07d SE |
13563 | |
13564 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then | |
13565 | case $lt_prog_compiler_pic_CXX in | |
13566 | "" | " "*) ;; | |
13567 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; | |
13568 | esac | |
13569 | else | |
13570 | lt_prog_compiler_pic_CXX= | |
13571 | lt_prog_compiler_can_build_shared_CXX=no | |
13572 | fi | |
13573 | ||
13574 | fi | |
13575 | ||
13576 | ||
13577 | ||
13578 | # | |
13579 | # Check to make sure the static flag actually works. | |
13580 | # | |
13581 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" | |
8a165db0 BK |
13582 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
13583 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } | |
1cf3d07d SE |
13584 | if test "${lt_prog_compiler_static_works_CXX+set}" = set; then |
13585 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13586 | else | |
13587 | lt_prog_compiler_static_works_CXX=no | |
13588 | save_LDFLAGS="$LDFLAGS" | |
13589 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
13590 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
13591 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
13592 | # The linker can only warn and ignore the option if not recognized | |
13593 | # So say no if there are warnings | |
13594 | if test -s conftest.err; then | |
13595 | # Append any errors to the config.log. | |
13596 | cat conftest.err 1>&5 | |
13597 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
13598 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
13599 | if diff conftest.exp conftest.er2 >/dev/null; then | |
13600 | lt_prog_compiler_static_works_CXX=yes | |
13601 | fi | |
13602 | else | |
13603 | lt_prog_compiler_static_works_CXX=yes | |
13604 | fi | |
13605 | fi | |
13606 | $RM conftest* | |
13607 | LDFLAGS="$save_LDFLAGS" | |
13608 | ||
13609 | fi | |
8a165db0 BK |
13610 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 |
13611 | echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } | |
1cf3d07d SE |
13612 | |
13613 | if test x"$lt_prog_compiler_static_works_CXX" = xyes; then | |
13614 | : | |
13615 | else | |
13616 | lt_prog_compiler_static_CXX= | |
13617 | fi | |
13618 | ||
13619 | ||
13620 | ||
13621 | ||
8a165db0 BK |
13622 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
13623 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } | |
1cf3d07d SE |
13624 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
13625 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13626 | else | |
13627 | lt_cv_prog_compiler_c_o_CXX=no | |
13628 | $RM -r conftest 2>/dev/null | |
13629 | mkdir conftest | |
13630 | cd conftest | |
13631 | mkdir out | |
13632 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
13633 | ||
13634 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
13635 | # Insert the option either (1) after the last *FLAGS variable, or | |
13636 | # (2) before a word containing "conftest.", or (3) at the end. | |
13637 | # Note that $ac_compile itself does not contain backslashes and begins | |
13638 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
13639 | lt_compile=`echo "$ac_compile" | $SED \ | |
13640 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
13641 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
13642 | -e 's:$: $lt_compiler_flag:'` | |
8a165db0 | 13643 | (eval echo "\"\$as_me:13643: $lt_compile\"" >&5) |
1cf3d07d SE |
13644 | (eval "$lt_compile" 2>out/conftest.err) |
13645 | ac_status=$? | |
13646 | cat out/conftest.err >&5 | |
8a165db0 | 13647 | echo "$as_me:13647: \$? = $ac_status" >&5 |
1cf3d07d SE |
13648 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
13649 | then | |
13650 | # The compiler can only warn and ignore the option if not recognized | |
13651 | # So say no if there are warnings | |
13652 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
13653 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
13654 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
13655 | lt_cv_prog_compiler_c_o_CXX=yes | |
13656 | fi | |
13657 | fi | |
13658 | chmod u+w . 2>&5 | |
13659 | $RM conftest* | |
13660 | # SGI C++ compiler will create directory out/ii_files/ for | |
13661 | # template instantiation | |
13662 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
13663 | $RM out/* && rmdir out | |
13664 | cd .. | |
13665 | $RM -r conftest | |
13666 | $RM conftest* | |
13667 | ||
13668 | fi | |
8a165db0 BK |
13669 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
13670 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } | |
1cf3d07d SE |
13671 | |
13672 | ||
13673 | ||
8a165db0 BK |
13674 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
13675 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } | |
1cf3d07d SE |
13676 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
13677 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13678 | else | |
13679 | lt_cv_prog_compiler_c_o_CXX=no | |
13680 | $RM -r conftest 2>/dev/null | |
13681 | mkdir conftest | |
13682 | cd conftest | |
13683 | mkdir out | |
13684 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
13685 | ||
13686 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
13687 | # Insert the option either (1) after the last *FLAGS variable, or | |
13688 | # (2) before a word containing "conftest.", or (3) at the end. | |
13689 | # Note that $ac_compile itself does not contain backslashes and begins | |
13690 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
13691 | lt_compile=`echo "$ac_compile" | $SED \ | |
13692 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
13693 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
13694 | -e 's:$: $lt_compiler_flag:'` | |
8a165db0 | 13695 | (eval echo "\"\$as_me:13695: $lt_compile\"" >&5) |
1cf3d07d SE |
13696 | (eval "$lt_compile" 2>out/conftest.err) |
13697 | ac_status=$? | |
13698 | cat out/conftest.err >&5 | |
8a165db0 | 13699 | echo "$as_me:13699: \$? = $ac_status" >&5 |
1cf3d07d SE |
13700 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
13701 | then | |
13702 | # The compiler can only warn and ignore the option if not recognized | |
13703 | # So say no if there are warnings | |
13704 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
13705 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
13706 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
13707 | lt_cv_prog_compiler_c_o_CXX=yes | |
13708 | fi | |
13709 | fi | |
13710 | chmod u+w . 2>&5 | |
13711 | $RM conftest* | |
13712 | # SGI C++ compiler will create directory out/ii_files/ for | |
13713 | # template instantiation | |
13714 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
13715 | $RM out/* && rmdir out | |
13716 | cd .. | |
13717 | $RM -r conftest | |
13718 | $RM conftest* | |
13719 | ||
13720 | fi | |
8a165db0 BK |
13721 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
13722 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } | |
1cf3d07d SE |
13723 | |
13724 | ||
13725 | ||
13726 | ||
13727 | hard_links="nottested" | |
13728 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then | |
13729 | # do not overwrite the value of need_locks provided by the user | |
8a165db0 BK |
13730 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
13731 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } | |
1cf3d07d SE |
13732 | hard_links=yes |
13733 | $RM conftest* | |
13734 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
13735 | touch conftest.a | |
13736 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
13737 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
8a165db0 BK |
13738 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
13739 | echo "${ECHO_T}$hard_links" >&6; } | |
1cf3d07d SE |
13740 | if test "$hard_links" = no; then |
13741 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
13742 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
13743 | need_locks=warn | |
13744 | fi | |
13745 | else | |
13746 | need_locks=no | |
13747 | fi | |
13748 | ||
13749 | ||
13750 | ||
8a165db0 BK |
13751 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
13752 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } | |
1cf3d07d SE |
13753 | |
13754 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
13755 | case $host_os in | |
716e4bc6 | 13756 | aix[4-9]*) |
1cf3d07d SE |
13757 | # If we're using GNU nm, then we don't want the "-C" option. |
13758 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
13759 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
13760 | export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
13761 | else | |
13762 | export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
13763 | fi | |
13764 | ;; | |
13765 | pw32*) | |
13766 | export_symbols_cmds_CXX="$ltdll_cmds" | |
13767 | ;; | |
13768 | cygwin* | mingw*) | |
13769 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' | |
13770 | ;; | |
13771 | *) | |
13772 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
13773 | ;; | |
13774 | esac | |
13775 | ||
8a165db0 BK |
13776 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
13777 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } | |
1cf3d07d SE |
13778 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
13779 | ||
13780 | with_gnu_ld_CXX=$with_gnu_ld | |
13781 | ||
13782 | ||
13783 | ||
13784 | ||
13785 | ||
13786 | ||
13787 | # | |
13788 | # Do we need to explicitly link libc? | |
13789 | # | |
13790 | case "x$archive_cmds_need_lc_CXX" in | |
13791 | x|xyes) | |
13792 | # Assume -lc should be added | |
13793 | archive_cmds_need_lc_CXX=yes | |
13794 | ||
13795 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
13796 | case $archive_cmds_CXX in | |
13797 | *'~'*) | |
13798 | # FIXME: we may have to deal with multi-command sequences. | |
13799 | ;; | |
13800 | '$CC '*) | |
13801 | # Test whether the compiler implicitly links with -lc since on some | |
13802 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
13803 | # to ld, don't add -lc before -lgcc. | |
8a165db0 BK |
13804 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
13805 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } | |
1cf3d07d SE |
13806 | $RM conftest* |
13807 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
13808 | ||
13809 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13810 | (eval $ac_compile) 2>&5 | |
13811 | ac_status=$? | |
13812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13813 | (exit $ac_status); } 2>conftest.err; then | |
13814 | soname=conftest | |
13815 | lib=conftest | |
13816 | libobjs=conftest.$ac_objext | |
13817 | deplibs= | |
13818 | wl=$lt_prog_compiler_wl_CXX | |
13819 | pic_flag=$lt_prog_compiler_pic_CXX | |
13820 | compiler_flags=-v | |
13821 | linker_flags=-v | |
13822 | verstring= | |
13823 | output_objdir=. | |
13824 | libname=conftest | |
13825 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX | |
13826 | allow_undefined_flag_CXX= | |
13827 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
13828 | (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
13829 | ac_status=$? | |
13830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13831 | (exit $ac_status); } | |
13832 | then | |
13833 | archive_cmds_need_lc_CXX=no | |
13834 | else | |
13835 | archive_cmds_need_lc_CXX=yes | |
13836 | fi | |
13837 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag | |
13838 | else | |
13839 | cat conftest.err 1>&5 | |
13840 | fi | |
13841 | $RM conftest* | |
8a165db0 BK |
13842 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 |
13843 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } | |
1cf3d07d SE |
13844 | ;; |
13845 | esac | |
13846 | fi | |
13847 | ;; | |
13848 | esac | |
13849 | ||
13850 | ||
13851 | ||
13852 | ||
13853 | ||
13854 | ||
13855 | ||
13856 | ||
13857 | ||
13858 | ||
13859 | ||
13860 | ||
13861 | ||
13862 | ||
13863 | ||
13864 | ||
13865 | ||
13866 | ||
13867 | ||
13868 | ||
13869 | ||
13870 | ||
13871 | ||
13872 | ||
13873 | ||
13874 | ||
13875 | ||
13876 | ||
13877 | ||
13878 | ||
13879 | ||
13880 | ||
13881 | ||
13882 | ||
13883 | ||
13884 | ||
13885 | ||
13886 | ||
13887 | ||
13888 | ||
13889 | ||
13890 | ||
13891 | ||
13892 | ||
13893 | ||
13894 | ||
13895 | ||
13896 | ||
13897 | ||
13898 | ||
13899 | ||
13900 | ||
13901 | ||
13902 | ||
13903 | ||
13904 | ||
13905 | ||
13906 | ||
13907 | ||
13908 | ||
13909 | ||
13910 | ||
13911 | ||
13912 | ||
8a165db0 BK |
13913 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
13914 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } | |
1cf3d07d SE |
13915 | withGCC=$GXX |
13916 | library_names_spec= | |
13917 | libname_spec='lib$name' | |
13918 | soname_spec= | |
13919 | shrext_cmds=".so" | |
13920 | postinstall_cmds= | |
13921 | postuninstall_cmds= | |
13922 | finish_cmds= | |
13923 | finish_eval= | |
13924 | shlibpath_var= | |
13925 | shlibpath_overrides_runpath=unknown | |
13926 | version_type=none | |
13927 | dynamic_linker="$host_os ld.so" | |
13928 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
13929 | need_lib_prefix=unknown | |
13930 | hardcode_into_libs=no | |
13931 | ||
13932 | # when you set need_version to no, make sure it does not cause -set_version | |
13933 | # flags to be left without arguments | |
13934 | need_version=unknown | |
13935 | ||
13936 | case $host_os in | |
13937 | aix3*) | |
13938 | version_type=linux | |
13939 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
13940 | shlibpath_var=LIBPATH | |
13941 | ||
13942 | # AIX 3 has no versioning support, so we append a major version to the name. | |
13943 | soname_spec='${libname}${release}${shared_ext}$major' | |
13944 | ;; | |
13945 | ||
716e4bc6 | 13946 | aix[4-9]*) |
1cf3d07d SE |
13947 | version_type=linux |
13948 | need_lib_prefix=no | |
13949 | need_version=no | |
13950 | hardcode_into_libs=yes | |
13951 | if test "$host_cpu" = ia64; then | |
13952 | # AIX 5 supports IA64 | |
13953 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
13954 | shlibpath_var=LD_LIBRARY_PATH | |
13955 | else | |
13956 | # With GCC up to 2.95.x, collect2 would create an import file | |
13957 | # for dependence libraries. The import file would start with | |
13958 | # the line `#! .'. This would cause the generated library to | |
13959 | # depend on `.', always an invalid library. This was fixed in | |
13960 | # development snapshots of GCC prior to 3.0. | |
13961 | case $host_os in | |
13962 | aix4 | aix4.[01] | aix4.[01].*) | |
13963 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
13964 | echo ' yes ' | |
13965 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
13966 | : | |
13967 | else | |
13968 | can_build_shared=no | |
13969 | fi | |
13970 | ;; | |
13971 | esac | |
13972 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
13973 | # soname into executable. Probably we can add versioning support to | |
13974 | # collect2, so additional links can be useful in future. | |
13975 | if test "$aix_use_runtimelinking" = yes; then | |
13976 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
13977 | # instead of lib<name>.a to let people know that these are not | |
13978 | # typical AIX shared libraries. | |
13979 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13980 | else | |
13981 | # We preserve .a as extension for shared libraries through AIX4.2 | |
13982 | # and later when we are not doing run time linking. | |
13983 | library_names_spec='${libname}${release}.a $libname.a' | |
13984 | soname_spec='${libname}${release}${shared_ext}$major' | |
13985 | fi | |
13986 | shlibpath_var=LIBPATH | |
13987 | fi | |
13988 | ;; | |
13989 | ||
13990 | amigaos*) | |
13991 | if test "$host_cpu" = m68k; then | |
13992 | library_names_spec='$libname.ixlibrary $libname.a' | |
13993 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
13994 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' | |
13995 | else | |
13996 | dynamic_linker=no | |
13997 | fi | |
13998 | ;; | |
13999 | ||
14000 | beos*) | |
14001 | library_names_spec='${libname}${shared_ext}' | |
14002 | dynamic_linker="$host_os ld.so" | |
14003 | shlibpath_var=LIBRARY_PATH | |
14004 | ;; | |
14005 | ||
14006 | bsdi[45]*) | |
14007 | version_type=linux | |
14008 | need_version=no | |
14009 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14010 | soname_spec='${libname}${release}${shared_ext}$major' | |
14011 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
14012 | shlibpath_var=LD_LIBRARY_PATH | |
14013 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
14014 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
14015 | # the default ld.so.conf also contains /usr/contrib/lib and | |
14016 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
14017 | # libtool to hard-code these into programs | |
14018 | ;; | |
14019 | ||
14020 | cygwin* | mingw* | pw32*) | |
14021 | version_type=windows | |
14022 | shrext_cmds=".dll" | |
14023 | need_version=no | |
14024 | need_lib_prefix=no | |
14025 | ||
14026 | case $withGCC,$host_os in | |
14027 | yes,cygwin* | yes,mingw* | yes,pw32*) | |
14028 | library_names_spec='$libname.dll.a' | |
14029 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
14030 | postinstall_cmds='base_file=`basename \${file}`~ | |
14031 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
14032 | dldir=$destdir/`dirname \$dlpath`~ | |
14033 | test -d \$dldir || mkdir -p \$dldir~ | |
14034 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
14035 | chmod a+x \$dldir/$dlname~ | |
14036 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
14037 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
14038 | fi' | |
14039 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
14040 | dlpath=$dir/\$dldll~ | |
14041 | $RM \$dlpath' | |
14042 | shlibpath_overrides_runpath=yes | |
14043 | ||
14044 | case $host_os in | |
14045 | cygwin*) | |
14046 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
14047 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
14048 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
14049 | ;; | |
14050 | mingw*) | |
14051 | # MinGW DLLs use traditional 'lib' prefix | |
14052 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
14053 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
14054 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
14055 | # It is most probably a Windows format PATH printed by | |
14056 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
14057 | # path with ; separators, and with drive letters. We can handle the | |
14058 | # drive letters (cygwin fileutils understands them), so leave them, | |
14059 | # especially as we might pass files found there to a mingw objdump, | |
14060 | # which wouldn't understand a cygwinified path. Ahh. | |
14061 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
14062 | else | |
14063 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
14064 | fi | |
14065 | ;; | |
14066 | pw32*) | |
14067 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
14068 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
14069 | ;; | |
14070 | esac | |
14071 | ;; | |
14072 | ||
14073 | *) | |
14074 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
14075 | ;; | |
14076 | esac | |
14077 | dynamic_linker='Win32 ld.exe' | |
14078 | # FIXME: first we should search . and the directory the executable is in | |
14079 | shlibpath_var=PATH | |
14080 | ;; | |
14081 | ||
14082 | darwin* | rhapsody*) | |
14083 | dynamic_linker="$host_os dyld" | |
14084 | version_type=darwin | |
14085 | need_lib_prefix=no | |
14086 | need_version=no | |
14087 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
14088 | soname_spec='${libname}${release}${major}$shared_ext' | |
14089 | shlibpath_overrides_runpath=yes | |
14090 | shlibpath_var=DYLD_LIBRARY_PATH | |
14091 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
14092 | ||
14093 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
14094 | ;; | |
14095 | ||
14096 | dgux*) | |
14097 | version_type=linux | |
14098 | need_lib_prefix=no | |
14099 | need_version=no | |
14100 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
14101 | soname_spec='${libname}${release}${shared_ext}$major' | |
14102 | shlibpath_var=LD_LIBRARY_PATH | |
14103 | ;; | |
14104 | ||
14105 | freebsd1*) | |
14106 | dynamic_linker=no | |
14107 | ;; | |
14108 | ||
14109 | freebsd* | dragonfly*) | |
14110 | # DragonFly does not have aout. When/if they implement a new | |
14111 | # versioning mechanism, adjust this. | |
14112 | if test -x /usr/bin/objformat; then | |
14113 | objformat=`/usr/bin/objformat` | |
14114 | else | |
14115 | case $host_os in | |
14116 | freebsd[123]*) objformat=aout ;; | |
14117 | *) objformat=elf ;; | |
14118 | esac | |
14119 | fi | |
14120 | version_type=freebsd-$objformat | |
14121 | case $version_type in | |
14122 | freebsd-elf*) | |
14123 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
14124 | need_version=no | |
14125 | need_lib_prefix=no | |
14126 | ;; | |
14127 | freebsd-*) | |
14128 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
14129 | need_version=yes | |
14130 | ;; | |
14131 | esac | |
14132 | shlibpath_var=LD_LIBRARY_PATH | |
14133 | case $host_os in | |
14134 | freebsd2*) | |
14135 | shlibpath_overrides_runpath=yes | |
14136 | ;; | |
14137 | freebsd3.[01]* | freebsdelf3.[01]*) | |
14138 | shlibpath_overrides_runpath=yes | |
14139 | hardcode_into_libs=yes | |
14140 | ;; | |
14141 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
14142 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
14143 | shlibpath_overrides_runpath=no | |
14144 | hardcode_into_libs=yes | |
14145 | ;; | |
14146 | *) # from 4.6 on, and DragonFly | |
14147 | shlibpath_overrides_runpath=yes | |
14148 | hardcode_into_libs=yes | |
14149 | ;; | |
14150 | esac | |
14151 | ;; | |
14152 | ||
14153 | gnu*) | |
14154 | version_type=linux | |
14155 | need_lib_prefix=no | |
14156 | need_version=no | |
14157 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
14158 | soname_spec='${libname}${release}${shared_ext}$major' | |
14159 | shlibpath_var=LD_LIBRARY_PATH | |
14160 | hardcode_into_libs=yes | |
14161 | ;; | |
14162 | ||
14163 | hpux9* | hpux10* | hpux11*) | |
14164 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
14165 | # link against other versions. | |
14166 | version_type=sunos | |
14167 | need_lib_prefix=no | |
14168 | need_version=no | |
14169 | case $host_cpu in | |
14170 | ia64*) | |
14171 | shrext_cmds='.so' | |
14172 | hardcode_into_libs=yes | |
14173 | dynamic_linker="$host_os dld.so" | |
14174 | shlibpath_var=LD_LIBRARY_PATH | |
14175 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
14176 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14177 | soname_spec='${libname}${release}${shared_ext}$major' | |
14178 | if test "X$HPUX_IA64_MODE" = X32; then | |
14179 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
14180 | else | |
14181 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
14182 | fi | |
14183 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
14184 | ;; | |
14185 | hppa*64*) | |
14186 | shrext_cmds='.sl' | |
14187 | hardcode_into_libs=yes | |
14188 | dynamic_linker="$host_os dld.sl" | |
14189 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
14190 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
14191 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14192 | soname_spec='${libname}${release}${shared_ext}$major' | |
14193 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
14194 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
14195 | ;; | |
14196 | *) | |
14197 | shrext_cmds='.sl' | |
14198 | dynamic_linker="$host_os dld.sl" | |
14199 | shlibpath_var=SHLIB_PATH | |
14200 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
14201 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14202 | soname_spec='${libname}${release}${shared_ext}$major' | |
14203 | ;; | |
14204 | esac | |
14205 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
14206 | postinstall_cmds='chmod 555 $lib' | |
14207 | ;; | |
14208 | ||
14209 | interix[3-9]*) | |
14210 | version_type=linux | |
14211 | need_lib_prefix=no | |
14212 | need_version=no | |
14213 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
14214 | soname_spec='${libname}${release}${shared_ext}$major' | |
14215 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
14216 | shlibpath_var=LD_LIBRARY_PATH | |
14217 | shlibpath_overrides_runpath=no | |
14218 | hardcode_into_libs=yes | |
14219 | ;; | |
14220 | ||
14221 | irix5* | irix6* | nonstopux*) | |
14222 | case $host_os in | |
14223 | nonstopux*) version_type=nonstopux ;; | |
14224 | *) | |
14225 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
14226 | version_type=linux | |
14227 | else | |
14228 | version_type=irix | |
14229 | fi ;; | |
14230 | esac | |
14231 | need_lib_prefix=no | |
14232 | need_version=no | |
14233 | soname_spec='${libname}${release}${shared_ext}$major' | |
14234 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
14235 | case $host_os in | |
14236 | irix5* | nonstopux*) | |
14237 | libsuff= shlibsuff= | |
14238 | ;; | |
14239 | *) | |
14240 | case $LD in # libtool.m4 will add one of these switches to LD | |
14241 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
14242 | libsuff= shlibsuff= libmagic=32-bit;; | |
14243 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
14244 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
14245 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
14246 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
14247 | *) libsuff= shlibsuff= libmagic=never-match;; | |
14248 | esac | |
14249 | ;; | |
14250 | esac | |
14251 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
14252 | shlibpath_overrides_runpath=no | |
14253 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
14254 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
14255 | hardcode_into_libs=yes | |
14256 | ;; | |
14257 | ||
14258 | # No shared lib support for Linux oldld, aout, or coff. | |
14259 | linux*oldld* | linux*aout* | linux*coff*) | |
14260 | dynamic_linker=no | |
14261 | ;; | |
14262 | ||
14263 | # This must be Linux ELF. | |
14264 | linux* | k*bsd*-gnu) | |
14265 | version_type=linux | |
14266 | need_lib_prefix=no | |
14267 | need_version=no | |
14268 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14269 | soname_spec='${libname}${release}${shared_ext}$major' | |
14270 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
14271 | shlibpath_var=LD_LIBRARY_PATH | |
14272 | shlibpath_overrides_runpath=no | |
14273 | # Some binutils ld are patched to set DT_RUNPATH | |
14274 | save_LDFLAGS=$LDFLAGS | |
14275 | save_libdir=$libdir | |
14276 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ | |
14277 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" | |
14278 | if test x$gcc_no_link = xyes; then | |
14279 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
14280 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
14281 | { (exit 1); exit 1; }; } | |
ff66d28f | 14282 | fi |
1cf3d07d | 14283 | cat >conftest.$ac_ext <<_ACEOF |
ff66d28f PE |
14284 | /* confdefs.h. */ |
14285 | _ACEOF | |
14286 | cat confdefs.h >>conftest.$ac_ext | |
14287 | cat >>conftest.$ac_ext <<_ACEOF | |
14288 | /* end confdefs.h. */ | |
1cf3d07d SE |
14289 | |
14290 | int | |
14291 | main () | |
14292 | { | |
14293 | ||
14294 | ; | |
14295 | return 0; | |
14296 | } | |
ff66d28f | 14297 | _ACEOF |
1cf3d07d | 14298 | rm -f conftest.$ac_objext conftest$ac_exeext |
8a165db0 BK |
14299 | if { (ac_try="$ac_link" |
14300 | case "(($ac_try" in | |
14301 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14302 | *) ac_try_echo=$ac_try;; | |
14303 | esac | |
14304 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14305 | (eval "$ac_link") 2>conftest.er1 | |
ff66d28f PE |
14306 | ac_status=$? |
14307 | grep -v '^ *+' conftest.er1 >conftest.err | |
14308 | rm -f conftest.er1 | |
14309 | cat conftest.err >&5 | |
14310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8a165db0 BK |
14311 | (exit $ac_status); } && { |
14312 | test -z "$ac_cxx_werror_flag" || | |
14313 | test ! -s conftest.err | |
14314 | } && test -s conftest$ac_exeext && | |
14315 | $as_test_x conftest$ac_exeext; then | |
1cf3d07d SE |
14316 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then |
14317 | shlibpath_overrides_runpath=yes | |
ff66d28f | 14318 | fi |
1cf3d07d | 14319 | |
ff66d28f PE |
14320 | else |
14321 | echo "$as_me: failed program was:" >&5 | |
14322 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14323 | ||
8a165db0 | 14324 | |
ff66d28f | 14325 | fi |
8a165db0 BK |
14326 | |
14327 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
1cf3d07d SE |
14328 | conftest$ac_exeext conftest.$ac_ext |
14329 | LDFLAGS=$save_LDFLAGS | |
14330 | libdir=$save_libdir | |
14331 | ||
14332 | # This implies no fast_install, which is unacceptable. | |
14333 | # Some rework will be needed to allow for fast_install | |
14334 | # before this can be enabled. | |
14335 | hardcode_into_libs=yes | |
14336 | ||
14337 | # Append ld.so.conf contents to the search path | |
14338 | if test -f /etc/ld.so.conf; then | |
14339 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` | |
14340 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
14341 | fi | |
14342 | ||
14343 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
14344 | # powerpc, because MkLinux only supported shared libraries with the | |
14345 | # GNU dynamic linker. Since this was broken with cross compilers, | |
14346 | # most powerpc-linux boxes support dynamic linking these days and | |
14347 | # people can always --disable-shared, the test was removed, and we | |
14348 | # assume the GNU/Linux dynamic linker is in use. | |
14349 | dynamic_linker='GNU/Linux ld.so' | |
14350 | ;; | |
ff66d28f | 14351 | |
1cf3d07d SE |
14352 | netbsd*) |
14353 | version_type=sunos | |
14354 | need_lib_prefix=no | |
14355 | need_version=no | |
14356 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
14357 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
14358 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
14359 | dynamic_linker='NetBSD (a.out) ld.so' | |
14360 | else | |
14361 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
14362 | soname_spec='${libname}${release}${shared_ext}$major' | |
14363 | dynamic_linker='NetBSD ld.elf_so' | |
14364 | fi | |
14365 | shlibpath_var=LD_LIBRARY_PATH | |
14366 | shlibpath_overrides_runpath=yes | |
14367 | hardcode_into_libs=yes | |
14368 | ;; | |
ff66d28f | 14369 | |
1cf3d07d SE |
14370 | newsos6) |
14371 | version_type=linux | |
14372 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14373 | shlibpath_var=LD_LIBRARY_PATH | |
14374 | shlibpath_overrides_runpath=yes | |
14375 | ;; | |
ff66d28f | 14376 | |
1cf3d07d SE |
14377 | *nto* | *qnx*) |
14378 | version_type=qnx | |
14379 | need_lib_prefix=no | |
14380 | need_version=no | |
14381 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14382 | soname_spec='${libname}${release}${shared_ext}$major' | |
14383 | shlibpath_var=LD_LIBRARY_PATH | |
14384 | shlibpath_overrides_runpath=no | |
14385 | hardcode_into_libs=yes | |
14386 | dynamic_linker='ldqnx.so' | |
14387 | ;; | |
14388 | ||
14389 | openbsd*) | |
14390 | version_type=sunos | |
14391 | sys_lib_dlsearch_path_spec="/usr/lib" | |
14392 | need_lib_prefix=no | |
14393 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
14394 | case $host_os in | |
14395 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
14396 | *) need_version=no ;; | |
14397 | esac | |
14398 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
14399 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
14400 | shlibpath_var=LD_LIBRARY_PATH | |
14401 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
14402 | case $host_os in | |
14403 | openbsd2.[89] | openbsd2.[89].*) | |
14404 | shlibpath_overrides_runpath=no | |
14405 | ;; | |
14406 | *) | |
14407 | shlibpath_overrides_runpath=yes | |
14408 | ;; | |
14409 | esac | |
ff66d28f | 14410 | else |
1cf3d07d | 14411 | shlibpath_overrides_runpath=yes |
ff66d28f | 14412 | fi |
1cf3d07d | 14413 | ;; |
ff66d28f | 14414 | |
1cf3d07d SE |
14415 | os2*) |
14416 | libname_spec='$name' | |
14417 | shrext_cmds=".dll" | |
14418 | need_lib_prefix=no | |
14419 | library_names_spec='$libname${shared_ext} $libname.a' | |
14420 | dynamic_linker='OS/2 ld.exe' | |
14421 | shlibpath_var=LIBPATH | |
14422 | ;; | |
14423 | ||
14424 | osf3* | osf4* | osf5*) | |
14425 | version_type=osf | |
14426 | need_lib_prefix=no | |
14427 | need_version=no | |
14428 | soname_spec='${libname}${release}${shared_ext}$major' | |
14429 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14430 | shlibpath_var=LD_LIBRARY_PATH | |
14431 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
14432 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
14433 | ;; | |
14434 | ||
14435 | rdos*) | |
14436 | dynamic_linker=no | |
14437 | ;; | |
14438 | ||
14439 | solaris*) | |
14440 | version_type=linux | |
14441 | need_lib_prefix=no | |
14442 | need_version=no | |
14443 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14444 | soname_spec='${libname}${release}${shared_ext}$major' | |
14445 | shlibpath_var=LD_LIBRARY_PATH | |
14446 | shlibpath_overrides_runpath=yes | |
14447 | hardcode_into_libs=yes | |
14448 | # ldd complains unless libraries are executable | |
14449 | postinstall_cmds='chmod +x $lib' | |
14450 | ;; | |
14451 | ||
14452 | sunos4*) | |
14453 | version_type=sunos | |
14454 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
14455 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
14456 | shlibpath_var=LD_LIBRARY_PATH | |
14457 | shlibpath_overrides_runpath=yes | |
14458 | if test "$with_gnu_ld" = yes; then | |
14459 | need_lib_prefix=no | |
14460 | fi | |
14461 | need_version=yes | |
14462 | ;; | |
14463 | ||
14464 | sysv4 | sysv4.3*) | |
14465 | version_type=linux | |
14466 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14467 | soname_spec='${libname}${release}${shared_ext}$major' | |
14468 | shlibpath_var=LD_LIBRARY_PATH | |
14469 | case $host_vendor in | |
14470 | sni) | |
14471 | shlibpath_overrides_runpath=no | |
14472 | need_lib_prefix=no | |
14473 | runpath_var=LD_RUN_PATH | |
14474 | ;; | |
14475 | siemens) | |
14476 | need_lib_prefix=no | |
14477 | ;; | |
14478 | motorola) | |
14479 | need_lib_prefix=no | |
14480 | need_version=no | |
14481 | shlibpath_overrides_runpath=no | |
14482 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
14483 | ;; | |
14484 | esac | |
14485 | ;; | |
14486 | ||
14487 | sysv4*MP*) | |
14488 | if test -d /usr/nec ;then | |
14489 | version_type=linux | |
14490 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
14491 | soname_spec='$libname${shared_ext}.$major' | |
14492 | shlibpath_var=LD_LIBRARY_PATH | |
14493 | fi | |
14494 | ;; | |
14495 | ||
14496 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
14497 | version_type=freebsd-elf | |
14498 | need_lib_prefix=no | |
14499 | need_version=no | |
14500 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
14501 | soname_spec='${libname}${release}${shared_ext}$major' | |
14502 | shlibpath_var=LD_LIBRARY_PATH | |
14503 | shlibpath_overrides_runpath=yes | |
14504 | hardcode_into_libs=yes | |
14505 | if test "$with_gnu_ld" = yes; then | |
14506 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
14507 | else | |
14508 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
14509 | case $host_os in | |
14510 | sco3.2v5*) | |
14511 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
14512 | ;; | |
14513 | esac | |
14514 | fi | |
14515 | sys_lib_dlsearch_path_spec='/usr/lib' | |
14516 | ;; | |
14517 | ||
14518 | tpf*) | |
14519 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
14520 | version_type=linux | |
14521 | need_lib_prefix=no | |
14522 | need_version=no | |
14523 | library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14524 | shlibpath_var=LD_LIBRARY_PATH | |
14525 | shlibpath_overrides_runpath=no | |
14526 | hardcode_into_libs=yes | |
14527 | ;; | |
14528 | ||
14529 | uts4*) | |
14530 | version_type=linux | |
14531 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14532 | soname_spec='${libname}${release}${shared_ext}$major' | |
14533 | shlibpath_var=LD_LIBRARY_PATH | |
14534 | ;; | |
14535 | ||
14536 | *) | |
14537 | dynamic_linker=no | |
14538 | ;; | |
14539 | esac | |
8a165db0 BK |
14540 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
14541 | echo "${ECHO_T}$dynamic_linker" >&6; } | |
1cf3d07d SE |
14542 | test "$dynamic_linker" = no && can_build_shared=no |
14543 | ||
14544 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
14545 | if test "$GCC" = yes; then | |
14546 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
ff66d28f | 14547 | fi |
ff66d28f | 14548 | |
1cf3d07d SE |
14549 | |
14550 | ||
14551 | ||
14552 | ||
14553 | ||
14554 | ||
14555 | ||
14556 | ||
14557 | ||
14558 | ||
14559 | ||
14560 | ||
14561 | ||
14562 | ||
14563 | ||
14564 | ||
14565 | ||
14566 | ||
14567 | ||
14568 | ||
14569 | ||
14570 | ||
14571 | ||
14572 | ||
14573 | ||
14574 | ||
14575 | ||
14576 | ||
14577 | ||
14578 | ||
14579 | ||
14580 | ||
14581 | ||
14582 | ||
14583 | ||
8a165db0 BK |
14584 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
14585 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } | |
1cf3d07d SE |
14586 | hardcode_action_CXX= |
14587 | if test -n "$hardcode_libdir_flag_spec_CXX" || | |
14588 | test -n "$runpath_var_CXX" || | |
14589 | test "X$hardcode_automatic_CXX" = "Xyes" ; then | |
14590 | ||
14591 | # We can hardcode non-existent directories. | |
14592 | if test "$hardcode_direct_CXX" != no && | |
14593 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
14594 | # have to relink, otherwise we might link with an installed library | |
14595 | # when we should be linking with a yet-to-be-installed one | |
14596 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && | |
14597 | test "$hardcode_minus_L_CXX" != no; then | |
14598 | # Linking always hardcodes the temporary library directory. | |
14599 | hardcode_action_CXX=relink | |
ff66d28f | 14600 | else |
1cf3d07d SE |
14601 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
14602 | hardcode_action_CXX=immediate | |
ff66d28f PE |
14603 | fi |
14604 | else | |
1cf3d07d SE |
14605 | # We cannot hardcode anything, or else we can only hardcode existing |
14606 | # directories. | |
14607 | hardcode_action_CXX=unsupported | |
ff66d28f | 14608 | fi |
8a165db0 BK |
14609 | { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
14610 | echo "${ECHO_T}$hardcode_action_CXX" >&6; } | |
ff66d28f | 14611 | |
1cf3d07d SE |
14612 | if test "$hardcode_action_CXX" = relink || |
14613 | test "$inherit_rpath_CXX" = yes; then | |
14614 | # Fast installation is not supported | |
14615 | enable_fast_install=no | |
14616 | elif test "$shlibpath_overrides_runpath" = yes || | |
14617 | test "$enable_shared" = no; then | |
14618 | # Fast installation is not necessary | |
14619 | enable_fast_install=needless | |
ff66d28f | 14620 | fi |
ff66d28f | 14621 | |
1cf3d07d SE |
14622 | |
14623 | ||
14624 | ||
14625 | ||
14626 | ||
14627 | ||
14628 | fi # test -n "$compiler" | |
14629 | ||
14630 | CC=$lt_save_CC | |
14631 | LDCXX=$LD | |
14632 | LD=$lt_save_LD | |
14633 | GCC=$lt_save_GCC | |
14634 | with_gnu_ld=$lt_save_with_gnu_ld | |
14635 | lt_cv_path_LDCXX=$lt_cv_path_LD | |
14636 | lt_cv_path_LD=$lt_save_path_LD | |
14637 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | |
14638 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | |
14639 | fi # test "$_lt_caught_CXX_error" != yes | |
ff66d28f PE |
14640 | |
14641 | ac_ext=c | |
14642 | ac_cpp='$CPP $CPPFLAGS' | |
14643 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14644 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14645 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
14646 | ||
3df64633 AO |
14647 | |
14648 | ||
3df64633 | 14649 | |
3df64633 | 14650 | |
3df64633 | 14651 | |
34791641 PE |
14652 | |
14653 | ||
33590f13 | 14654 | |
ff66d28f PE |
14655 | |
14656 | ||
14657 | ||
ff66d28f | 14658 | |
8a165db0 | 14659 | ac_config_commands="$ac_config_commands libtool" |
1cf3d07d SE |
14660 | |
14661 | ||
14662 | ||
14663 | ||
14664 | # Only expand once: | |
14665 | ||
14666 | ||
14667 | ||
14668 | ||
14669 | ||
5f34ed87 BK |
14670 | # Possibly disable most of the library. |
14671 | ## TODO: Consider skipping unncessary tests altogether in this case, rather | |
14672 | ## than just ignoring the results. Faster /and/ more correct, win win. | |
4ffe6e87 | 14673 | |
8a165db0 | 14674 | # Check whether --enable-hosted-libstdcxx was given. |
5f34ed87 | 14675 | if test "${enable_hosted_libstdcxx+set}" = set; then |
8a165db0 | 14676 | enableval=$enable_hosted_libstdcxx; |
4ffe6e87 | 14677 | else |
5f34ed87 BK |
14678 | case "$host" in |
14679 | arm*-*-symbianelf*) | |
14680 | enable_hosted_libstdcxx=no | |
14681 | ;; | |
14682 | *) | |
14683 | enable_hosted_libstdcxx=yes | |
14684 | ;; | |
14685 | esac | |
8a165db0 BK |
14686 | fi |
14687 | ||
5f34ed87 BK |
14688 | if test "$enable_hosted_libstdcxx" = no; then |
14689 | { echo "$as_me:$LINENO: Only freestanding libraries will be built" >&5 | |
14690 | echo "$as_me: Only freestanding libraries will be built" >&6;} | |
14691 | is_hosted=no | |
14692 | hosted_define=0 | |
14693 | enable_abi_check=no | |
14694 | enable_libstdcxx_pch=no | |
4ffe6e87 | 14695 | else |
5f34ed87 BK |
14696 | is_hosted=yes |
14697 | hosted_define=1 | |
4ffe6e87 | 14698 | fi |
5f34ed87 BK |
14699 | |
14700 | ||
14701 | cat >>confdefs.h <<_ACEOF | |
14702 | #define _GLIBCXX_HOSTED $hosted_define | |
14703 | _ACEOF | |
14704 | ||
14705 | ||
14706 | ||
0646d8a3 | 14707 | # Enable compiler support that doesn't require linking. |
5f34ed87 | 14708 | |
8a165db0 BK |
14709 | { echo "$as_me:$LINENO: checking for exception model to use" >&5 |
14710 | echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6; } | |
5f34ed87 | 14711 | |
8a165db0 | 14712 | ac_ext=cpp |
5f34ed87 BK |
14713 | ac_cpp='$CXXCPP $CPPFLAGS' |
14714 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14715 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14716 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14717 | ||
8a165db0 | 14718 | # Check whether --enable-sjlj-exceptions was given. |
5f34ed87 | 14719 | if test "${enable_sjlj_exceptions+set}" = set; then |
8a165db0 | 14720 | enableval=$enable_sjlj_exceptions; |
5f34ed87 BK |
14721 | case "$enableval" in |
14722 | yes|no|auto) ;; | |
14723 | *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable sjlj-exceptions" >&5 | |
14724 | echo "$as_me: error: Unknown argument to enable/disable sjlj-exceptions" >&2;} | |
14725 | { (exit 1); exit 1; }; } ;; | |
14726 | esac | |
14727 | ||
4ffe6e87 | 14728 | else |
5f34ed87 | 14729 | enable_sjlj_exceptions=auto |
8a165db0 BK |
14730 | fi |
14731 | ||
5f34ed87 BK |
14732 | |
14733 | ||
14734 | if test $enable_sjlj_exceptions = auto; then | |
14735 | # Botheration. Now we've got to detect the exception model. Link tests | |
14736 | # against libgcc.a are problematic since we've not been given proper -L | |
14737 | # bits for single-tree newlib and libgloss. | |
14738 | # | |
14739 | # Fake what AC_TRY_COMPILE does. XXX Look at redoing this new-style. | |
14740 | cat > conftest.$ac_ext << EOF | |
8a165db0 | 14741 | #line 14741 "configure" |
5f34ed87 BK |
14742 | struct S { ~S(); }; |
14743 | void bar(); | |
14744 | void foo() | |
14745 | { | |
14746 | S s; | |
14747 | bar(); | |
14748 | } | |
14749 | EOF | |
14750 | old_CXXFLAGS="$CXXFLAGS" | |
14751 | CXXFLAGS=-S | |
14752 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14753 | (eval $ac_compile) 2>&5 | |
14754 | ac_status=$? | |
14755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14756 | (exit $ac_status); }; then | |
14757 | if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then | |
14758 | enable_sjlj_exceptions=yes | |
14759 | elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then | |
14760 | enable_sjlj_exceptions=no | |
14761 | elif grep __cxa_end_cleanup conftest.s >/dev/null 2>&1 ; then | |
14762 | enable_sjlj_exceptions=no | |
4ffe6e87 BK |
14763 | fi |
14764 | fi | |
5f34ed87 BK |
14765 | CXXFLAGS="$old_CXXFLAGS" |
14766 | rm -f conftest* | |
14767 | fi | |
4ffe6e87 | 14768 | |
5f34ed87 BK |
14769 | # This is a tad weird, for hysterical raisins. We have to map |
14770 | # enable/disable to two different models. | |
14771 | case $enable_sjlj_exceptions in | |
14772 | yes) | |
14773 | ||
14774 | cat >>confdefs.h <<\_ACEOF | |
14775 | #define _GLIBCXX_SJLJ_EXCEPTIONS 1 | |
14776 | _ACEOF | |
14777 | ||
14778 | ac_exception_model_name=sjlj | |
14779 | ;; | |
14780 | no) | |
14781 | ac_exception_model_name="call frame" | |
14782 | ;; | |
14783 | *) | |
14784 | { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5 | |
14785 | echo "$as_me: error: unable to detect exception model" >&2;} | |
4ffe6e87 | 14786 | { (exit 1); exit 1; }; } |
5f34ed87 BK |
14787 | ;; |
14788 | esac | |
14789 | ac_ext=c | |
14790 | ac_cpp='$CPP $CPPFLAGS' | |
14791 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14792 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14793 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4ffe6e87 | 14794 | |
8a165db0 BK |
14795 | { echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5 |
14796 | echo "${ECHO_T}$ac_exception_model_name" >&6; } | |
4ffe6e87 BK |
14797 | |
14798 | ||
8a165db0 | 14799 | # Check whether --enable-libstdcxx-pch was given. |
5f34ed87 | 14800 | if test "${enable_libstdcxx_pch+set}" = set; then |
8a165db0 | 14801 | enableval=$enable_libstdcxx_pch; |
5f34ed87 BK |
14802 | case "$enableval" in |
14803 | yes|no) ;; | |
14804 | *) { { echo "$as_me:$LINENO: error: Argument to enable/disable libstdcxx-pch must be yes or no" >&5 | |
14805 | echo "$as_me: error: Argument to enable/disable libstdcxx-pch must be yes or no" >&2;} | |
14806 | { (exit 1); exit 1; }; } ;; | |
14807 | esac | |
4ffe6e87 | 14808 | |
4ffe6e87 | 14809 | else |
5f34ed87 | 14810 | enable_libstdcxx_pch=$is_hosted |
8a165db0 BK |
14811 | fi |
14812 | ||
4ffe6e87 | 14813 | |
5f34ed87 | 14814 | if test $enable_libstdcxx_pch = yes; then |
8a165db0 BK |
14815 | { echo "$as_me:$LINENO: checking for compiler with PCH support" >&5 |
14816 | echo $ECHO_N "checking for compiler with PCH support... $ECHO_C" >&6; } | |
5f34ed87 BK |
14817 | if test "${glibcxx_cv_prog_CXX_pch+set}" = set; then |
14818 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14819 | else | |
14820 | ac_save_CXXFLAGS="$CXXFLAGS" | |
14821 | CXXFLAGS="$CXXFLAGS -Werror -Winvalid-pch -Wno-deprecated" | |
4ffe6e87 | 14822 | |
8a165db0 | 14823 | ac_ext=cpp |
5f34ed87 BK |
14824 | ac_cpp='$CXXCPP $CPPFLAGS' |
14825 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14826 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14827 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
4ffe6e87 | 14828 | |
5f34ed87 BK |
14829 | echo '#include <math.h>' > conftest.h |
14830 | if $CXX $CXXFLAGS $CPPFLAGS -x c++-header conftest.h \ | |
14831 | -o conftest.h.gch 1>&5 2>&1 && | |
14832 | echo '#error "pch failed"' > conftest.h && | |
14833 | echo '#include "conftest.h"' > conftest.cc && | |
14834 | $CXX -c $CXXFLAGS $CPPFLAGS conftest.cc 1>&5 2>&1 ; | |
14835 | then | |
14836 | glibcxx_cv_prog_CXX_pch=yes | |
14837 | else | |
14838 | glibcxx_cv_prog_CXX_pch=no | |
14839 | fi | |
14840 | rm -f conftest* | |
14841 | CXXFLAGS=$ac_save_CXXFLAGS | |
14842 | ac_ext=c | |
14843 | ac_cpp='$CPP $CPPFLAGS' | |
14844 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14845 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14846 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4ffe6e87 BK |
14847 | |
14848 | ||
5f34ed87 | 14849 | fi |
8a165db0 BK |
14850 | { echo "$as_me:$LINENO: result: $glibcxx_cv_prog_CXX_pch" >&5 |
14851 | echo "${ECHO_T}$glibcxx_cv_prog_CXX_pch" >&6; } | |
5f34ed87 BK |
14852 | enable_libstdcxx_pch=$glibcxx_cv_prog_CXX_pch |
14853 | fi | |
4ffe6e87 | 14854 | |
8a165db0 BK |
14855 | { echo "$as_me:$LINENO: checking for enabled PCH" >&5 |
14856 | echo $ECHO_N "checking for enabled PCH... $ECHO_C" >&6; } | |
14857 | { echo "$as_me:$LINENO: result: $enable_libstdcxx_pch" >&5 | |
14858 | echo "${ECHO_T}$enable_libstdcxx_pch" >&6; } | |
4ffe6e87 | 14859 | |
4ffe6e87 | 14860 | |
5f34ed87 | 14861 | if test $enable_libstdcxx_pch = yes; then |
c2ba9709 | 14862 | glibcxx_PCHFLAGS="-include bits/stdc++.h" |
5f34ed87 BK |
14863 | else |
14864 | glibcxx_PCHFLAGS="" | |
14865 | fi | |
4ffe6e87 | 14866 | |
4ffe6e87 BK |
14867 | |
14868 | ||
0646d8a3 | 14869 | # Enable all the variable C++ runtime options that doesn't require linking. |
4ffe6e87 | 14870 | |
8a165db0 BK |
14871 | { echo "$as_me:$LINENO: checking for underlying I/O to use" >&5 |
14872 | echo $ECHO_N "checking for underlying I/O to use... $ECHO_C" >&6; } | |
14873 | # Check whether --enable-cstdio was given. | |
5f34ed87 | 14874 | if test "${enable_cstdio+set}" = set; then |
8a165db0 | 14875 | enableval=$enable_cstdio; |
5f34ed87 BK |
14876 | case "$enableval" in |
14877 | stdio) ;; | |
14878 | *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable cstdio" >&5 | |
14879 | echo "$as_me: error: Unknown argument to enable/disable cstdio" >&2;} | |
14880 | { (exit 1); exit 1; }; } ;; | |
14881 | esac | |
4ffe6e87 | 14882 | |
5f34ed87 BK |
14883 | else |
14884 | enable_cstdio=stdio | |
8a165db0 BK |
14885 | fi |
14886 | ||
4ffe6e87 | 14887 | |
4ffe6e87 | 14888 | |
5f34ed87 BK |
14889 | # Now that libio has been removed, you can have any color you want as long |
14890 | # as it's black. This is one big no-op until other packages are added, but | |
14891 | # showing the framework never hurts. | |
14892 | case ${enable_cstdio} in | |
14893 | stdio) | |
14894 | CSTDIO_H=config/io/c_io_stdio.h | |
14895 | BASIC_FILE_H=config/io/basic_file_stdio.h | |
14896 | BASIC_FILE_CC=config/io/basic_file_stdio.cc | |
8a165db0 BK |
14897 | { echo "$as_me:$LINENO: result: stdio" >&5 |
14898 | echo "${ECHO_T}stdio" >&6; } | |
5f34ed87 BK |
14899 | ;; |
14900 | esac | |
4ffe6e87 | 14901 | |
4ffe6e87 | 14902 | |
4ffe6e87 | 14903 | |
4ffe6e87 | 14904 | |
4ffe6e87 | 14905 | |
4ffe6e87 | 14906 | |
8a165db0 | 14907 | # Check whether --enable-clocale was given. |
5f34ed87 | 14908 | if test "${enable_clocale+set}" = set; then |
8a165db0 | 14909 | enableval=$enable_clocale; |
5f34ed87 BK |
14910 | case "$enableval" in |
14911 | generic|gnu|ieee_1003.1-2001|yes|no|auto) ;; | |
14912 | *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable clocale" >&5 | |
14913 | echo "$as_me: error: Unknown argument to enable/disable clocale" >&2;} | |
14914 | { (exit 1); exit 1; }; } ;; | |
14915 | esac | |
92eabea2 PE |
14916 | |
14917 | else | |
5f34ed87 | 14918 | enable_clocale=auto |
8a165db0 BK |
14919 | fi |
14920 | ||
92eabea2 | 14921 | |
5780a46b | 14922 | |
0258dc3a BK |
14923 | # Deal with gettext issues. Default to not using it (=no) until we detect |
14924 | # support for it later. Let the user turn it off via --e/d, but let that | |
14925 | # default to on for easier handling. | |
14926 | USE_NLS=no | |
8a165db0 | 14927 | # Check whether --enable-nls was given. |
0258dc3a | 14928 | if test "${enable_nls+set}" = set; then |
8a165db0 | 14929 | enableval=$enable_nls; |
0258dc3a BK |
14930 | else |
14931 | enable_nls=yes | |
8a165db0 BK |
14932 | fi |
14933 | ||
0258dc3a BK |
14934 | |
14935 | # Either a known packaage, or "auto" | |
5f34ed87 BK |
14936 | if test $enable_clocale = no || test $enable_clocale = yes; then |
14937 | enable_clocale=auto | |
14938 | fi | |
5f34ed87 | 14939 | enable_clocale_flag=$enable_clocale |
dd75251f | 14940 | |
0258dc3a | 14941 | # Probe for locale model to use if none specified. |
ff66d28f PE |
14942 | # Default to "generic". |
14943 | if test $enable_clocale_flag = auto; then | |
7d3998a4 PE |
14944 | case ${target_os} in |
14945 | linux* | gnu* | kfreebsd*-gnu | knetbsd*-gnu) | |
0258dc3a BK |
14946 | enable_clocale_flag=gnu |
14947 | ;; | |
14948 | darwin* | freebsd*) | |
14949 | enable_clocale_flag=darwin | |
14950 | ;; | |
14951 | *) | |
14952 | enable_clocale_flag=generic | |
14953 | ;; | |
14954 | esac | |
14955 | fi | |
14956 | ||
14957 | # Sanity check model, and test for special functionality. | |
14958 | if test $enable_clocale_flag = gnu; then | |
14959 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
14960 | /* confdefs.h. */ |
14961 | _ACEOF | |
14962 | cat confdefs.h >>conftest.$ac_ext | |
14963 | cat >>conftest.$ac_ext <<_ACEOF | |
14964 | /* end confdefs.h. */ | |
56deb74c | 14965 | |
0258dc3a BK |
14966 | #include <features.h> |
14967 | #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) | |
14968 | _GLIBCXX_ok | |
14969 | #endif | |
ff66d28f PE |
14970 | |
14971 | _ACEOF | |
56deb74c | 14972 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ff66d28f | 14973 | $EGREP "_GLIBCXX_ok" >/dev/null 2>&1; then |
56deb74c BK |
14974 | enable_clocale_flag=gnu |
14975 | else | |
56deb74c BK |
14976 | enable_clocale_flag=generic |
14977 | fi | |
14978 | rm -f conftest* | |
14979 | ||
1451a492 | 14980 | |
1ba74130 PC |
14981 | if test $enable_clocale = auto; then |
14982 | # Test for bugs early in glibc-2.2.x series | |
14983 | if test "$cross_compiling" = yes; then | |
1451a492 BK |
14984 | enable_clocale_flag=generic |
14985 | else | |
ff66d28f | 14986 | cat >conftest.$ac_ext <<_ACEOF |
ff66d28f PE |
14987 | /* confdefs.h. */ |
14988 | _ACEOF | |
14989 | cat confdefs.h >>conftest.$ac_ext | |
14990 | cat >>conftest.$ac_ext <<_ACEOF | |
14991 | /* end confdefs.h. */ | |
14992 | ||
1ba74130 PC |
14993 | #define _GNU_SOURCE 1 |
14994 | #include <locale.h> | |
14995 | #include <string.h> | |
14996 | #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2) | |
14997 | extern __typeof(newlocale) __newlocale; | |
14998 | extern __typeof(duplocale) __duplocale; | |
14999 | extern __typeof(strcoll_l) __strcoll_l; | |
15000 | #endif | |
15001 | int main() | |
15002 | { | |
15003 |