d9898ee8 |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. |
dd184caf |
3 | # Generated by GNU Autoconf 2.61 for gdbmobj 0.10. |
d9898ee8 |
4 | # |
5 | # Report bugs to <courier-users@lists.sourceforge.net>. |
6 | # |
dd184caf |
7 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
8 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
d9898ee8 |
9 | # This configure script is free software; the Free Software Foundation |
10 | # gives unlimited permission to copy, distribute and modify it. |
11 | ## --------------------- ## |
12 | ## M4sh Initialization. ## |
13 | ## --------------------- ## |
14 | |
dd184caf |
15 | # Be more Bourne compatible |
16 | DUALCASE=1; export DUALCASE # for MKS sh |
d9898ee8 |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
18 | emulate sh |
19 | NULLCMD=: |
20 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' |
dd184caf |
23 | setopt NO_GLOB_SUBST |
24 | else |
25 | case `(set -o) 2>/dev/null` in |
26 | *posix*) set -o posix ;; |
27 | esac |
28 | |
29 | fi |
30 | |
31 | |
32 | |
33 | |
34 | # PATH needs CR |
35 | # Avoid depending upon Character Ranges. |
36 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
37 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
38 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
39 | as_cr_digits='0123456789' |
40 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
41 | |
42 | # The user is always right. |
43 | if test "${PATH_SEPARATOR+set}" != set; then |
44 | echo "#! /bin/sh" >conf$$.sh |
45 | echo "exit 0" >>conf$$.sh |
46 | chmod +x conf$$.sh |
47 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
48 | PATH_SEPARATOR=';' |
49 | else |
50 | PATH_SEPARATOR=: |
51 | fi |
52 | rm -f conf$$.sh |
d9898ee8 |
53 | fi |
d9898ee8 |
54 | |
55 | # Support unset when possible. |
56 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
57 | as_unset=unset |
58 | else |
59 | as_unset=false |
60 | fi |
61 | |
62 | |
dd184caf |
63 | # IFS |
64 | # We need space, tab and new line, in precisely that order. Quoting is |
65 | # there to prevent editors from complaining about space-tab. |
66 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
67 | # splitting by setting IFS to empty value.) |
68 | as_nl=' |
69 | ' |
70 | IFS=" "" $as_nl" |
71 | |
72 | # Find who we are. Look in the path if we contain no directory separator. |
73 | case $0 in |
74 | *[\\/]* ) as_myself=$0 ;; |
75 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
76 | for as_dir in $PATH |
77 | do |
78 | IFS=$as_save_IFS |
79 | test -z "$as_dir" && as_dir=. |
80 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
81 | done |
82 | IFS=$as_save_IFS |
83 | |
84 | ;; |
85 | esac |
86 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
87 | # in which case we are not to be found in the path. |
88 | if test "x$as_myself" = x; then |
89 | as_myself=$0 |
90 | fi |
91 | if test ! -f "$as_myself"; then |
92 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
93 | { (exit 1); exit 1; } |
94 | fi |
95 | |
d9898ee8 |
96 | # Work around bugs in pre-3.0 UWIN ksh. |
dd184caf |
97 | for as_var in ENV MAIL MAILPATH |
98 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
99 | done |
d9898ee8 |
100 | PS1='$ ' |
101 | PS2='> ' |
102 | PS4='+ ' |
103 | |
104 | # NLS nuisances. |
105 | for as_var in \ |
106 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
107 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
108 | LC_TELEPHONE LC_TIME |
109 | do |
110 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
111 | eval $as_var=C; export $as_var |
112 | else |
dd184caf |
113 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
d9898ee8 |
114 | fi |
115 | done |
116 | |
117 | # Required to use basename. |
dd184caf |
118 | if expr a : '\(a\)' >/dev/null 2>&1 && |
119 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
d9898ee8 |
120 | as_expr=expr |
121 | else |
122 | as_expr=false |
123 | fi |
124 | |
dd184caf |
125 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
d9898ee8 |
126 | as_basename=basename |
127 | else |
128 | as_basename=false |
129 | fi |
130 | |
131 | |
132 | # Name of the executable. |
dd184caf |
133 | as_me=`$as_basename -- "$0" || |
d9898ee8 |
134 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
135 | X"$0" : 'X\(//\)$' \| \ |
dd184caf |
136 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
137 | echo X/"$0" | |
dd184caf |
138 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
139 | s//\1/ |
140 | q |
141 | } |
142 | /^X\/\(\/\/\)$/{ |
143 | s//\1/ |
144 | q |
145 | } |
146 | /^X\/\(\/\).*/{ |
147 | s//\1/ |
148 | q |
149 | } |
150 | s/.*/./; q'` |
d9898ee8 |
151 | |
dd184caf |
152 | # CDPATH. |
153 | $as_unset CDPATH |
d9898ee8 |
154 | |
d9898ee8 |
155 | |
dd184caf |
156 | if test "x$CONFIG_SHELL" = x; then |
157 | if (eval ":") 2>/dev/null; then |
158 | as_have_required=yes |
159 | else |
160 | as_have_required=no |
d9898ee8 |
161 | fi |
162 | |
dd184caf |
163 | if test $as_have_required = yes && (eval ": |
164 | (as_func_return () { |
165 | (exit \$1) |
166 | } |
167 | as_func_success () { |
168 | as_func_return 0 |
169 | } |
170 | as_func_failure () { |
171 | as_func_return 1 |
172 | } |
173 | as_func_ret_success () { |
174 | return 0 |
175 | } |
176 | as_func_ret_failure () { |
177 | return 1 |
178 | } |
d9898ee8 |
179 | |
dd184caf |
180 | exitcode=0 |
181 | if as_func_success; then |
182 | : |
183 | else |
184 | exitcode=1 |
185 | echo as_func_success failed. |
186 | fi |
d9898ee8 |
187 | |
dd184caf |
188 | if as_func_failure; then |
189 | exitcode=1 |
190 | echo as_func_failure succeeded. |
191 | fi |
192 | |
193 | if as_func_ret_success; then |
194 | : |
195 | else |
196 | exitcode=1 |
197 | echo as_func_ret_success failed. |
198 | fi |
199 | |
200 | if as_func_ret_failure; then |
201 | exitcode=1 |
202 | echo as_func_ret_failure succeeded. |
203 | fi |
204 | |
205 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
206 | : |
207 | else |
208 | exitcode=1 |
209 | echo positional parameters were not saved. |
210 | fi |
211 | |
212 | test \$exitcode = 0) || { (exit 1); exit 1; } |
213 | |
214 | ( |
215 | as_lineno_1=\$LINENO |
216 | as_lineno_2=\$LINENO |
217 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && |
218 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } |
219 | ") 2> /dev/null; then |
220 | : |
221 | else |
222 | as_candidate_shells= |
d9898ee8 |
223 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
224 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
225 | do |
226 | IFS=$as_save_IFS |
227 | test -z "$as_dir" && as_dir=. |
dd184caf |
228 | case $as_dir in |
d9898ee8 |
229 | /*) |
dd184caf |
230 | for as_base in sh bash ksh sh5; do |
231 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" |
232 | done;; |
233 | esac |
234 | done |
235 | IFS=$as_save_IFS |
236 | |
237 | |
238 | for as_shell in $as_candidate_shells $SHELL; do |
239 | # Try only shells that exist, to save several forks. |
240 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
241 | { ("$as_shell") 2> /dev/null <<\_ASEOF |
242 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
243 | emulate sh |
244 | NULLCMD=: |
245 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
246 | # is contrary to our usage. Disable this feature. |
247 | alias -g '${1+"$@"}'='"$@"' |
248 | setopt NO_GLOB_SUBST |
249 | else |
250 | case `(set -o) 2>/dev/null` in |
251 | *posix*) set -o posix ;; |
252 | esac |
253 | |
254 | fi |
255 | |
256 | |
257 | : |
258 | _ASEOF |
259 | }; then |
260 | CONFIG_SHELL=$as_shell |
261 | as_have_required=yes |
262 | if { "$as_shell" 2> /dev/null <<\_ASEOF |
263 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
264 | emulate sh |
265 | NULLCMD=: |
266 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
267 | # is contrary to our usage. Disable this feature. |
268 | alias -g '${1+"$@"}'='"$@"' |
269 | setopt NO_GLOB_SUBST |
270 | else |
271 | case `(set -o) 2>/dev/null` in |
272 | *posix*) set -o posix ;; |
273 | esac |
274 | |
275 | fi |
276 | |
277 | |
278 | : |
279 | (as_func_return () { |
280 | (exit $1) |
281 | } |
282 | as_func_success () { |
283 | as_func_return 0 |
284 | } |
285 | as_func_failure () { |
286 | as_func_return 1 |
287 | } |
288 | as_func_ret_success () { |
289 | return 0 |
290 | } |
291 | as_func_ret_failure () { |
292 | return 1 |
293 | } |
294 | |
295 | exitcode=0 |
296 | if as_func_success; then |
297 | : |
298 | else |
299 | exitcode=1 |
300 | echo as_func_success failed. |
301 | fi |
302 | |
303 | if as_func_failure; then |
304 | exitcode=1 |
305 | echo as_func_failure succeeded. |
306 | fi |
307 | |
308 | if as_func_ret_success; then |
309 | : |
310 | else |
311 | exitcode=1 |
312 | echo as_func_ret_success failed. |
313 | fi |
314 | |
315 | if as_func_ret_failure; then |
316 | exitcode=1 |
317 | echo as_func_ret_failure succeeded. |
318 | fi |
319 | |
320 | if ( set x; as_func_ret_success y && test x = "$1" ); then |
321 | : |
322 | else |
323 | exitcode=1 |
324 | echo positional parameters were not saved. |
325 | fi |
326 | |
327 | test $exitcode = 0) || { (exit 1); exit 1; } |
328 | |
329 | ( |
d9898ee8 |
330 | as_lineno_1=$LINENO |
331 | as_lineno_2=$LINENO |
d9898ee8 |
332 | test "x$as_lineno_1" != "x$as_lineno_2" && |
dd184caf |
333 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
334 | |
335 | _ASEOF |
336 | }; then |
337 | break |
338 | fi |
339 | |
340 | fi |
341 | |
342 | done |
343 | |
344 | if test "x$CONFIG_SHELL" != x; then |
345 | for as_var in BASH_ENV ENV |
346 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
347 | done |
348 | export CONFIG_SHELL |
349 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
350 | fi |
351 | |
352 | |
353 | if test $as_have_required = no; then |
354 | echo This script requires a shell more modern than all the |
355 | echo shells that I found on your system. Please install a |
356 | echo modern shell, or manually run the script under such a |
357 | echo shell if you do have one. |
358 | { (exit 1); exit 1; } |
359 | fi |
360 | |
361 | |
362 | fi |
363 | |
364 | fi |
365 | |
366 | |
367 | |
368 | (eval "as_func_return () { |
369 | (exit \$1) |
370 | } |
371 | as_func_success () { |
372 | as_func_return 0 |
373 | } |
374 | as_func_failure () { |
375 | as_func_return 1 |
376 | } |
377 | as_func_ret_success () { |
378 | return 0 |
379 | } |
380 | as_func_ret_failure () { |
381 | return 1 |
382 | } |
383 | |
384 | exitcode=0 |
385 | if as_func_success; then |
386 | : |
387 | else |
388 | exitcode=1 |
389 | echo as_func_success failed. |
390 | fi |
391 | |
392 | if as_func_failure; then |
393 | exitcode=1 |
394 | echo as_func_failure succeeded. |
395 | fi |
396 | |
397 | if as_func_ret_success; then |
398 | : |
399 | else |
400 | exitcode=1 |
401 | echo as_func_ret_success failed. |
402 | fi |
403 | |
404 | if as_func_ret_failure; then |
405 | exitcode=1 |
406 | echo as_func_ret_failure succeeded. |
407 | fi |
408 | |
409 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
410 | : |
411 | else |
412 | exitcode=1 |
413 | echo positional parameters were not saved. |
414 | fi |
415 | |
416 | test \$exitcode = 0") || { |
417 | echo No shell found that supports shell functions. |
418 | echo Please tell autoconf@gnu.org about your system, |
419 | echo including any error possibly output before this |
420 | echo message |
421 | } |
422 | |
423 | |
424 | |
425 | as_lineno_1=$LINENO |
426 | as_lineno_2=$LINENO |
427 | test "x$as_lineno_1" != "x$as_lineno_2" && |
428 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
d9898ee8 |
429 | |
430 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
431 | # uniformly replaced by the line number. The first 'sed' inserts a |
dd184caf |
432 | # line-number line after each line using $LINENO; the second 'sed' |
433 | # does the real work. The second script uses 'N' to pair each |
434 | # line-number line with the line containing $LINENO, and appends |
435 | # trailing '-' during substitution so that $LINENO is not a special |
436 | # case at line end. |
d9898ee8 |
437 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
dd184caf |
438 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
439 | # E. McMahon (1931-1989) for sed's syntax. :-) |
440 | sed -n ' |
441 | p |
442 | /[$]LINENO/= |
443 | ' <$as_myself | |
d9898ee8 |
444 | sed ' |
dd184caf |
445 | s/[$]LINENO.*/&-/ |
446 | t lineno |
447 | b |
448 | :lineno |
d9898ee8 |
449 | N |
dd184caf |
450 | :loop |
451 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
d9898ee8 |
452 | t loop |
dd184caf |
453 | s/-\n.*// |
d9898ee8 |
454 | ' >$as_me.lineno && |
dd184caf |
455 | chmod +x "$as_me.lineno" || |
d9898ee8 |
456 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
457 | { (exit 1); exit 1; }; } |
458 | |
459 | # Don't try to exec as it changes $[0], causing all sort of problems |
460 | # (the dirname of $[0] is not the place where we might find the |
dd184caf |
461 | # original and so on. Autoconf is especially sensitive to this). |
462 | . "./$as_me.lineno" |
d9898ee8 |
463 | # Exit status is that of the last command. |
464 | exit |
465 | } |
466 | |
467 | |
dd184caf |
468 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
469 | as_dirname=dirname |
470 | else |
471 | as_dirname=false |
472 | fi |
473 | |
474 | ECHO_C= ECHO_N= ECHO_T= |
475 | case `echo -n x` in |
476 | -n*) |
477 | case `echo 'x\c'` in |
478 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
479 | *) ECHO_C='\c';; |
480 | esac;; |
481 | *) |
482 | ECHO_N='-n';; |
d9898ee8 |
483 | esac |
484 | |
dd184caf |
485 | if expr a : '\(a\)' >/dev/null 2>&1 && |
486 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
d9898ee8 |
487 | as_expr=expr |
488 | else |
489 | as_expr=false |
490 | fi |
491 | |
492 | rm -f conf$$ conf$$.exe conf$$.file |
dd184caf |
493 | if test -d conf$$.dir; then |
494 | rm -f conf$$.dir/conf$$.file |
495 | else |
496 | rm -f conf$$.dir |
497 | mkdir conf$$.dir |
498 | fi |
d9898ee8 |
499 | echo >conf$$.file |
500 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
dd184caf |
501 | as_ln_s='ln -s' |
502 | # ... but there are two gotchas: |
503 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
504 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
505 | # In both cases, we have to default to `cp -p'. |
506 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
d9898ee8 |
507 | as_ln_s='cp -p' |
d9898ee8 |
508 | elif ln conf$$.file conf$$ 2>/dev/null; then |
509 | as_ln_s=ln |
510 | else |
511 | as_ln_s='cp -p' |
512 | fi |
dd184caf |
513 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
514 | rmdir conf$$.dir 2>/dev/null |
d9898ee8 |
515 | |
516 | if mkdir -p . 2>/dev/null; then |
517 | as_mkdir_p=: |
518 | else |
519 | test -d ./-p && rmdir ./-p |
520 | as_mkdir_p=false |
521 | fi |
522 | |
dd184caf |
523 | if test -x / >/dev/null 2>&1; then |
524 | as_test_x='test -x' |
525 | else |
526 | if ls -dL / >/dev/null 2>&1; then |
527 | as_ls_L_option=L |
528 | else |
529 | as_ls_L_option= |
530 | fi |
531 | as_test_x=' |
532 | eval sh -c '\'' |
533 | if test -d "$1"; then |
534 | test -d "$1/."; |
535 | else |
536 | case $1 in |
537 | -*)set "./$1";; |
538 | esac; |
539 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
540 | ???[sx]*):;;*)false;;esac;fi |
541 | '\'' sh |
542 | ' |
543 | fi |
544 | as_executable_p=$as_test_x |
d9898ee8 |
545 | |
546 | # Sed expression to map a string onto a valid CPP name. |
547 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
548 | |
549 | # Sed expression to map a string onto a valid variable name. |
550 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
551 | |
552 | |
d9898ee8 |
553 | |
554 | |
555 | # Check that we are running under the correct shell. |
556 | SHELL=${CONFIG_SHELL-/bin/sh} |
557 | |
558 | case X$ECHO in |
559 | X*--fallback-echo) |
560 | # Remove one level of quotation (which was required for Make). |
561 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` |
562 | ;; |
563 | esac |
564 | |
565 | echo=${ECHO-echo} |
566 | if test "X$1" = X--no-reexec; then |
567 | # Discard the --no-reexec flag, and continue. |
568 | shift |
569 | elif test "X$1" = X--fallback-echo; then |
570 | # Avoid inline document here, it may be left over |
571 | : |
572 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then |
573 | # Yippee, $echo works! |
574 | : |
575 | else |
576 | # Restart under the correct shell. |
577 | exec $SHELL "$0" --no-reexec ${1+"$@"} |
578 | fi |
579 | |
580 | if test "X$1" = X--fallback-echo; then |
581 | # used as fallback echo |
582 | shift |
583 | cat <<EOF |
584 | $* |
585 | EOF |
586 | exit 0 |
587 | fi |
588 | |
589 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
590 | # if CDPATH is set. |
591 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
592 | |
593 | if test -z "$ECHO"; then |
594 | if test "X${echo_test_string+set}" != Xset; then |
595 | # find a string as large as possible, as long as the shell can cope with it |
596 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
597 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
598 | if (echo_test_string=`eval $cmd`) 2>/dev/null && |
599 | echo_test_string=`eval $cmd` && |
600 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
601 | then |
602 | break |
603 | fi |
604 | done |
605 | fi |
606 | |
607 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
608 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
609 | test "X$echo_testing_string" = "X$echo_test_string"; then |
610 | : |
611 | else |
612 | # The Solaris, AIX, and Digital Unix default echo programs unquote |
613 | # backslashes. This makes it impossible to quote backslashes using |
614 | # echo "$something" | sed 's/\\/\\\\/g' |
615 | # |
616 | # So, first we look for a working echo in the user's PATH. |
617 | |
618 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
619 | for dir in $PATH /usr/ucb; do |
620 | IFS="$lt_save_ifs" |
621 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
622 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
623 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
624 | test "X$echo_testing_string" = "X$echo_test_string"; then |
625 | echo="$dir/echo" |
626 | break |
627 | fi |
628 | done |
629 | IFS="$lt_save_ifs" |
630 | |
631 | if test "X$echo" = Xecho; then |
632 | # We didn't find a better echo, so look for alternatives. |
633 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && |
634 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && |
635 | test "X$echo_testing_string" = "X$echo_test_string"; then |
636 | # This shell has a builtin print -r that does the trick. |
637 | echo='print -r' |
638 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && |
639 | test "X$CONFIG_SHELL" != X/bin/ksh; then |
640 | # If we have ksh, try running configure again with it. |
641 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
642 | export ORIGINAL_CONFIG_SHELL |
643 | CONFIG_SHELL=/bin/ksh |
644 | export CONFIG_SHELL |
645 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
646 | else |
647 | # Try using printf. |
648 | echo='printf %s\n' |
649 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
650 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
651 | test "X$echo_testing_string" = "X$echo_test_string"; then |
652 | # Cool, printf works |
653 | : |
654 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
655 | test "X$echo_testing_string" = 'X\t' && |
656 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
657 | test "X$echo_testing_string" = "X$echo_test_string"; then |
658 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
659 | export CONFIG_SHELL |
660 | SHELL="$CONFIG_SHELL" |
661 | export SHELL |
662 | echo="$CONFIG_SHELL $0 --fallback-echo" |
663 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
664 | test "X$echo_testing_string" = 'X\t' && |
665 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
666 | test "X$echo_testing_string" = "X$echo_test_string"; then |
667 | echo="$CONFIG_SHELL $0 --fallback-echo" |
668 | else |
669 | # maybe with a smaller string... |
670 | prev=: |
671 | |
672 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
673 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null |
674 | then |
675 | break |
676 | fi |
677 | prev="$cmd" |
678 | done |
679 | |
680 | if test "$prev" != 'sed 50q "$0"'; then |
681 | echo_test_string=`eval $prev` |
682 | export echo_test_string |
683 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
684 | else |
685 | # Oops. We lost completely, so just stick with echo. |
686 | echo=echo |
687 | fi |
688 | fi |
689 | fi |
690 | fi |
691 | fi |
692 | fi |
693 | |
694 | # Copy echo and quote the copy suitably for passing to libtool from |
695 | # the Makefile, instead of quoting the original, which is used later. |
696 | ECHO=$echo |
697 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
698 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
699 | fi |
700 | |
701 | |
702 | |
703 | |
704 | tagnames=${tagnames+${tagnames},}CXX |
705 | |
706 | tagnames=${tagnames+${tagnames},}F77 |
707 | |
dd184caf |
708 | exec 7<&0 </dev/null 6>&1 |
709 | |
d9898ee8 |
710 | # Name of the host. |
711 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
712 | # so uname gets run too. |
713 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
714 | |
d9898ee8 |
715 | # |
716 | # Initializations. |
717 | # |
718 | ac_default_prefix=/usr/local |
dd184caf |
719 | ac_clean_files= |
d9898ee8 |
720 | ac_config_libobj_dir=. |
dd184caf |
721 | LIBOBJS= |
d9898ee8 |
722 | cross_compiling=no |
723 | subdirs= |
724 | MFLAGS= |
725 | MAKEFLAGS= |
726 | SHELL=${CONFIG_SHELL-/bin/sh} |
727 | |
d9898ee8 |
728 | # Identity of this package. |
729 | PACKAGE_NAME='gdbmobj' |
730 | PACKAGE_TARNAME='gdbmobj' |
731 | PACKAGE_VERSION='0.10' |
732 | PACKAGE_STRING='gdbmobj 0.10' |
733 | PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net' |
734 | |
735 | ac_unique_file="gdbmobj.c" |
736 | # Factoring default headers for most tests. |
737 | ac_includes_default="\ |
738 | #include <stdio.h> |
dd184caf |
739 | #ifdef HAVE_SYS_TYPES_H |
d9898ee8 |
740 | # include <sys/types.h> |
741 | #endif |
dd184caf |
742 | #ifdef HAVE_SYS_STAT_H |
d9898ee8 |
743 | # include <sys/stat.h> |
744 | #endif |
dd184caf |
745 | #ifdef STDC_HEADERS |
d9898ee8 |
746 | # include <stdlib.h> |
747 | # include <stddef.h> |
748 | #else |
dd184caf |
749 | # ifdef HAVE_STDLIB_H |
d9898ee8 |
750 | # include <stdlib.h> |
751 | # endif |
752 | #endif |
dd184caf |
753 | #ifdef HAVE_STRING_H |
754 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
d9898ee8 |
755 | # include <memory.h> |
756 | # endif |
757 | # include <string.h> |
758 | #endif |
dd184caf |
759 | #ifdef HAVE_STRINGS_H |
d9898ee8 |
760 | # include <strings.h> |
761 | #endif |
dd184caf |
762 | #ifdef HAVE_INTTYPES_H |
d9898ee8 |
763 | # include <inttypes.h> |
d9898ee8 |
764 | #endif |
dd184caf |
765 | #ifdef HAVE_STDINT_H |
766 | # include <stdint.h> |
767 | #endif |
768 | #ifdef HAVE_UNISTD_H |
d9898ee8 |
769 | # include <unistd.h> |
770 | #endif" |
771 | |
dd184caf |
772 | ac_subst_vars='SHELL |
773 | PATH_SEPARATOR |
774 | PACKAGE_NAME |
775 | PACKAGE_TARNAME |
776 | PACKAGE_VERSION |
777 | PACKAGE_STRING |
778 | PACKAGE_BUGREPORT |
779 | exec_prefix |
780 | prefix |
781 | program_transform_name |
782 | bindir |
783 | sbindir |
784 | libexecdir |
785 | datarootdir |
786 | datadir |
787 | sysconfdir |
788 | sharedstatedir |
789 | localstatedir |
790 | includedir |
791 | oldincludedir |
792 | docdir |
793 | infodir |
794 | htmldir |
795 | dvidir |
796 | pdfdir |
797 | psdir |
798 | libdir |
799 | localedir |
800 | mandir |
801 | DEFS |
802 | ECHO_C |
803 | ECHO_N |
804 | ECHO_T |
805 | LIBS |
806 | build_alias |
807 | host_alias |
808 | target_alias |
809 | INSTALL_PROGRAM |
810 | INSTALL_SCRIPT |
811 | INSTALL_DATA |
812 | am__isrc |
813 | CYGPATH_W |
814 | PACKAGE |
815 | VERSION |
816 | ACLOCAL |
817 | AUTOCONF |
818 | AUTOMAKE |
819 | AUTOHEADER |
820 | MAKEINFO |
821 | install_sh |
822 | STRIP |
823 | INSTALL_STRIP_PROGRAM |
824 | mkdir_p |
825 | AWK |
826 | SET_MAKE |
827 | am__leading_dot |
828 | AMTAR |
829 | am__tar |
830 | am__untar |
831 | CC |
832 | CFLAGS |
833 | LDFLAGS |
834 | CPPFLAGS |
835 | ac_ct_CC |
836 | EXEEXT |
837 | OBJEXT |
838 | DEPDIR |
839 | am__include |
840 | am__quote |
841 | AMDEP_TRUE |
842 | AMDEP_FALSE |
843 | AMDEPBACKSLASH |
844 | CCDEPMODE |
845 | am__fastdepCC_TRUE |
846 | am__fastdepCC_FALSE |
847 | CPP |
848 | GREP |
849 | EGREP |
850 | CXX |
851 | CXXFLAGS |
852 | ac_ct_CXX |
853 | CXXDEPMODE |
854 | am__fastdepCXX_TRUE |
855 | am__fastdepCXX_FALSE |
856 | build |
857 | build_cpu |
858 | build_vendor |
859 | build_os |
860 | host |
861 | host_cpu |
862 | host_vendor |
863 | host_os |
864 | SED |
865 | LN_S |
866 | ECHO |
867 | AR |
868 | RANLIB |
869 | CXXCPP |
870 | F77 |
871 | FFLAGS |
872 | ac_ct_F77 |
873 | LIBTOOL |
874 | LIBGDBM |
875 | FOUND_GDBM_TRUE |
876 | FOUND_GDBM_FALSE |
877 | LIBOBJS |
878 | LTLIBOBJS' |
d9898ee8 |
879 | ac_subst_files='' |
dd184caf |
880 | ac_precious_vars='build_alias |
881 | host_alias |
882 | target_alias |
883 | CC |
884 | CFLAGS |
885 | LDFLAGS |
886 | LIBS |
887 | CPPFLAGS |
888 | CPP |
889 | CXX |
890 | CXXFLAGS |
891 | CCC |
892 | CXXCPP |
893 | F77 |
894 | FFLAGS' |
895 | |
d9898ee8 |
896 | |
897 | # Initialize some variables set by options. |
898 | ac_init_help= |
899 | ac_init_version=false |
900 | # The variables have the same names as the options, with |
901 | # dashes changed to underlines. |
902 | cache_file=/dev/null |
903 | exec_prefix=NONE |
904 | no_create= |
905 | no_recursion= |
906 | prefix=NONE |
907 | program_prefix=NONE |
908 | program_suffix=NONE |
909 | program_transform_name=s,x,x, |
910 | silent= |
911 | site= |
912 | srcdir= |
913 | verbose= |
914 | x_includes=NONE |
915 | x_libraries=NONE |
916 | |
917 | # Installation directory options. |
918 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
919 | # and all the variables that are supposed to be based on exec_prefix |
920 | # by default will actually change. |
921 | # Use braces instead of parens because sh, perl, etc. also accept them. |
dd184caf |
922 | # (The list follows the same order as the GNU Coding Standards.) |
d9898ee8 |
923 | bindir='${exec_prefix}/bin' |
924 | sbindir='${exec_prefix}/sbin' |
925 | libexecdir='${exec_prefix}/libexec' |
dd184caf |
926 | datarootdir='${prefix}/share' |
927 | datadir='${datarootdir}' |
d9898ee8 |
928 | sysconfdir='${prefix}/etc' |
929 | sharedstatedir='${prefix}/com' |
930 | localstatedir='${prefix}/var' |
d9898ee8 |
931 | includedir='${prefix}/include' |
932 | oldincludedir='/usr/include' |
dd184caf |
933 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
934 | infodir='${datarootdir}/info' |
935 | htmldir='${docdir}' |
936 | dvidir='${docdir}' |
937 | pdfdir='${docdir}' |
938 | psdir='${docdir}' |
939 | libdir='${exec_prefix}/lib' |
940 | localedir='${datarootdir}/locale' |
941 | mandir='${datarootdir}/man' |
d9898ee8 |
942 | |
943 | ac_prev= |
dd184caf |
944 | ac_dashdash= |
d9898ee8 |
945 | for ac_option |
946 | do |
947 | # If the previous option needs an argument, assign it. |
948 | if test -n "$ac_prev"; then |
dd184caf |
949 | eval $ac_prev=\$ac_option |
d9898ee8 |
950 | ac_prev= |
951 | continue |
952 | fi |
953 | |
dd184caf |
954 | case $ac_option in |
955 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
956 | *) ac_optarg=yes ;; |
957 | esac |
d9898ee8 |
958 | |
959 | # Accept the important Cygnus configure options, so we can diagnose typos. |
960 | |
dd184caf |
961 | case $ac_dashdash$ac_option in |
962 | --) |
963 | ac_dashdash=yes ;; |
d9898ee8 |
964 | |
965 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
966 | ac_prev=bindir ;; |
967 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
968 | bindir=$ac_optarg ;; |
969 | |
970 | -build | --build | --buil | --bui | --bu) |
971 | ac_prev=build_alias ;; |
972 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
973 | build_alias=$ac_optarg ;; |
974 | |
975 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
976 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
977 | ac_prev=cache_file ;; |
978 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
979 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
980 | cache_file=$ac_optarg ;; |
981 | |
982 | --config-cache | -C) |
983 | cache_file=config.cache ;; |
984 | |
dd184caf |
985 | -datadir | --datadir | --datadi | --datad) |
d9898ee8 |
986 | ac_prev=datadir ;; |
dd184caf |
987 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
d9898ee8 |
988 | datadir=$ac_optarg ;; |
989 | |
dd184caf |
990 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
991 | | --dataroo | --dataro | --datar) |
992 | ac_prev=datarootdir ;; |
993 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
994 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
995 | datarootdir=$ac_optarg ;; |
996 | |
d9898ee8 |
997 | -disable-* | --disable-*) |
998 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
999 | # Reject names that are not valid shell variable names. |
dd184caf |
1000 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
d9898ee8 |
1001 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
1002 | { (exit 1); exit 1; }; } |
dd184caf |
1003 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
1004 | eval enable_$ac_feature=no ;; |
1005 | |
1006 | -docdir | --docdir | --docdi | --doc | --do) |
1007 | ac_prev=docdir ;; |
1008 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
1009 | docdir=$ac_optarg ;; |
1010 | |
1011 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
1012 | ac_prev=dvidir ;; |
1013 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
1014 | dvidir=$ac_optarg ;; |
d9898ee8 |
1015 | |
1016 | -enable-* | --enable-*) |
1017 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
1018 | # Reject names that are not valid shell variable names. |
dd184caf |
1019 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
d9898ee8 |
1020 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
1021 | { (exit 1); exit 1; }; } |
dd184caf |
1022 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
1023 | eval enable_$ac_feature=\$ac_optarg ;; |
d9898ee8 |
1024 | |
1025 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
1026 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
1027 | | --exec | --exe | --ex) |
1028 | ac_prev=exec_prefix ;; |
1029 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
1030 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
1031 | | --exec=* | --exe=* | --ex=*) |
1032 | exec_prefix=$ac_optarg ;; |
1033 | |
1034 | -gas | --gas | --ga | --g) |
1035 | # Obsolete; use --with-gas. |
1036 | with_gas=yes ;; |
1037 | |
1038 | -help | --help | --hel | --he | -h) |
1039 | ac_init_help=long ;; |
1040 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
1041 | ac_init_help=recursive ;; |
1042 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
1043 | ac_init_help=short ;; |
1044 | |
1045 | -host | --host | --hos | --ho) |
1046 | ac_prev=host_alias ;; |
1047 | -host=* | --host=* | --hos=* | --ho=*) |
1048 | host_alias=$ac_optarg ;; |
1049 | |
dd184caf |
1050 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1051 | ac_prev=htmldir ;; |
1052 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
1053 | | --ht=*) |
1054 | htmldir=$ac_optarg ;; |
1055 | |
d9898ee8 |
1056 | -includedir | --includedir | --includedi | --included | --include \ |
1057 | | --includ | --inclu | --incl | --inc) |
1058 | ac_prev=includedir ;; |
1059 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
1060 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
1061 | includedir=$ac_optarg ;; |
1062 | |
1063 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
1064 | ac_prev=infodir ;; |
1065 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
1066 | infodir=$ac_optarg ;; |
1067 | |
1068 | -libdir | --libdir | --libdi | --libd) |
1069 | ac_prev=libdir ;; |
1070 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
1071 | libdir=$ac_optarg ;; |
1072 | |
1073 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
1074 | | --libexe | --libex | --libe) |
1075 | ac_prev=libexecdir ;; |
1076 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
1077 | | --libexe=* | --libex=* | --libe=*) |
1078 | libexecdir=$ac_optarg ;; |
1079 | |
dd184caf |
1080 | -localedir | --localedir | --localedi | --localed | --locale) |
1081 | ac_prev=localedir ;; |
1082 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
1083 | localedir=$ac_optarg ;; |
1084 | |
d9898ee8 |
1085 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
dd184caf |
1086 | | --localstate | --localstat | --localsta | --localst | --locals) |
d9898ee8 |
1087 | ac_prev=localstatedir ;; |
1088 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
dd184caf |
1089 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
d9898ee8 |
1090 | localstatedir=$ac_optarg ;; |
1091 | |
1092 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
1093 | ac_prev=mandir ;; |
1094 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
1095 | mandir=$ac_optarg ;; |
1096 | |
1097 | -nfp | --nfp | --nf) |
1098 | # Obsolete; use --without-fp. |
1099 | with_fp=no ;; |
1100 | |
1101 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
1102 | | --no-cr | --no-c | -n) |
1103 | no_create=yes ;; |
1104 | |
1105 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
1106 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
1107 | no_recursion=yes ;; |
1108 | |
1109 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
1110 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
1111 | | --oldin | --oldi | --old | --ol | --o) |
1112 | ac_prev=oldincludedir ;; |
1113 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
1114 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
1115 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
1116 | oldincludedir=$ac_optarg ;; |
1117 | |
1118 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
1119 | ac_prev=prefix ;; |
1120 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
1121 | prefix=$ac_optarg ;; |
1122 | |
1123 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
1124 | | --program-pre | --program-pr | --program-p) |
1125 | ac_prev=program_prefix ;; |
1126 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
1127 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
1128 | program_prefix=$ac_optarg ;; |
1129 | |
1130 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
1131 | | --program-suf | --program-su | --program-s) |
1132 | ac_prev=program_suffix ;; |
1133 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
1134 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
1135 | program_suffix=$ac_optarg ;; |
1136 | |
1137 | -program-transform-name | --program-transform-name \ |
1138 | | --program-transform-nam | --program-transform-na \ |
1139 | | --program-transform-n | --program-transform- \ |
1140 | | --program-transform | --program-transfor \ |
1141 | | --program-transfo | --program-transf \ |
1142 | | --program-trans | --program-tran \ |
1143 | | --progr-tra | --program-tr | --program-t) |
1144 | ac_prev=program_transform_name ;; |
1145 | -program-transform-name=* | --program-transform-name=* \ |
1146 | | --program-transform-nam=* | --program-transform-na=* \ |
1147 | | --program-transform-n=* | --program-transform-=* \ |
1148 | | --program-transform=* | --program-transfor=* \ |
1149 | | --program-transfo=* | --program-transf=* \ |
1150 | | --program-trans=* | --program-tran=* \ |
1151 | | --progr-tra=* | --program-tr=* | --program-t=*) |
1152 | program_transform_name=$ac_optarg ;; |
1153 | |
dd184caf |
1154 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1155 | ac_prev=pdfdir ;; |
1156 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
1157 | pdfdir=$ac_optarg ;; |
1158 | |
1159 | -psdir | --psdir | --psdi | --psd | --ps) |
1160 | ac_prev=psdir ;; |
1161 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
1162 | psdir=$ac_optarg ;; |
1163 | |
d9898ee8 |
1164 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1165 | | -silent | --silent | --silen | --sile | --sil) |
1166 | silent=yes ;; |
1167 | |
1168 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
1169 | ac_prev=sbindir ;; |
1170 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
1171 | | --sbi=* | --sb=*) |
1172 | sbindir=$ac_optarg ;; |
1173 | |
1174 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
1175 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
1176 | | --sharedst | --shareds | --shared | --share | --shar \ |
1177 | | --sha | --sh) |
1178 | ac_prev=sharedstatedir ;; |
1179 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
1180 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
1181 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
1182 | | --sha=* | --sh=*) |
1183 | sharedstatedir=$ac_optarg ;; |
1184 | |
1185 | -site | --site | --sit) |
1186 | ac_prev=site ;; |
1187 | -site=* | --site=* | --sit=*) |
1188 | site=$ac_optarg ;; |
1189 | |
1190 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
1191 | ac_prev=srcdir ;; |
1192 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
1193 | srcdir=$ac_optarg ;; |
1194 | |
1195 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
1196 | | --syscon | --sysco | --sysc | --sys | --sy) |
1197 | ac_prev=sysconfdir ;; |
1198 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
1199 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
1200 | sysconfdir=$ac_optarg ;; |
1201 | |
1202 | -target | --target | --targe | --targ | --tar | --ta | --t) |
1203 | ac_prev=target_alias ;; |
1204 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
1205 | target_alias=$ac_optarg ;; |
1206 | |
1207 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
1208 | verbose=yes ;; |
1209 | |
1210 | -version | --version | --versio | --versi | --vers | -V) |
1211 | ac_init_version=: ;; |
1212 | |
1213 | -with-* | --with-*) |
1214 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
1215 | # Reject names that are not valid shell variable names. |
dd184caf |
1216 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
d9898ee8 |
1217 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
1218 | { (exit 1); exit 1; }; } |
dd184caf |
1219 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1220 | eval with_$ac_package=\$ac_optarg ;; |
d9898ee8 |
1221 | |
1222 | -without-* | --without-*) |
1223 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
1224 | # Reject names that are not valid shell variable names. |
dd184caf |
1225 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
d9898ee8 |
1226 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
1227 | { (exit 1); exit 1; }; } |
dd184caf |
1228 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1229 | eval with_$ac_package=no ;; |
d9898ee8 |
1230 | |
1231 | --x) |
1232 | # Obsolete; use --with-x. |
1233 | with_x=yes ;; |
1234 | |
1235 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
1236 | | --x-incl | --x-inc | --x-in | --x-i) |
1237 | ac_prev=x_includes ;; |
1238 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
1239 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
1240 | x_includes=$ac_optarg ;; |
1241 | |
1242 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
1243 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
1244 | ac_prev=x_libraries ;; |
1245 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
1246 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
1247 | x_libraries=$ac_optarg ;; |
1248 | |
1249 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
1250 | Try \`$0 --help' for more information." >&2 |
1251 | { (exit 1); exit 1; }; } |
1252 | ;; |
1253 | |
1254 | *=*) |
1255 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
1256 | # Reject names that are not valid shell variable names. |
1257 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
1258 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
1259 | { (exit 1); exit 1; }; } |
dd184caf |
1260 | eval $ac_envvar=\$ac_optarg |
d9898ee8 |
1261 | export $ac_envvar ;; |
1262 | |
1263 | *) |
1264 | # FIXME: should be removed in autoconf 3.0. |
1265 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
1266 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1267 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
1268 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
1269 | ;; |
1270 | |
1271 | esac |
1272 | done |
1273 | |
1274 | if test -n "$ac_prev"; then |
1275 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
1276 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
1277 | { (exit 1); exit 1; }; } |
1278 | fi |
1279 | |
dd184caf |
1280 | # Be sure to have absolute directory names. |
1281 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1282 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
1283 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
1284 | libdir localedir mandir |
d9898ee8 |
1285 | do |
dd184caf |
1286 | eval ac_val=\$$ac_var |
d9898ee8 |
1287 | case $ac_val in |
dd184caf |
1288 | [\\/$]* | ?:[\\/]* ) continue;; |
1289 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
d9898ee8 |
1290 | esac |
dd184caf |
1291 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
1292 | { (exit 1); exit 1; }; } |
d9898ee8 |
1293 | done |
1294 | |
1295 | # There might be people who depend on the old broken behavior: `$host' |
1296 | # used to hold the argument of --host etc. |
1297 | # FIXME: To remove some day. |
1298 | build=$build_alias |
1299 | host=$host_alias |
1300 | target=$target_alias |
1301 | |
1302 | # FIXME: To remove some day. |
1303 | if test "x$host_alias" != x; then |
1304 | if test "x$build_alias" = x; then |
1305 | cross_compiling=maybe |
1306 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
1307 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1308 | elif test "x$build_alias" != "x$host_alias"; then |
1309 | cross_compiling=yes |
1310 | fi |
1311 | fi |
1312 | |
1313 | ac_tool_prefix= |
1314 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
1315 | |
1316 | test "$silent" = yes && exec 6>/dev/null |
1317 | |
1318 | |
dd184caf |
1319 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1320 | ac_ls_di=`ls -di .` && |
1321 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
1322 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
1323 | { (exit 1); exit 1; }; } |
1324 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
1325 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
1326 | { (exit 1); exit 1; }; } |
1327 | |
1328 | |
d9898ee8 |
1329 | # Find the source files, if location was not specified. |
1330 | if test -z "$srcdir"; then |
1331 | ac_srcdir_defaulted=yes |
dd184caf |
1332 | # Try the directory containing this script, then the parent directory. |
1333 | ac_confdir=`$as_dirname -- "$0" || |
d9898ee8 |
1334 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
1335 | X"$0" : 'X\(//\)[^/]' \| \ |
1336 | X"$0" : 'X\(//\)$' \| \ |
dd184caf |
1337 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
1338 | echo X"$0" | |
dd184caf |
1339 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1340 | s//\1/ |
1341 | q |
1342 | } |
1343 | /^X\(\/\/\)[^/].*/{ |
1344 | s//\1/ |
1345 | q |
1346 | } |
1347 | /^X\(\/\/\)$/{ |
1348 | s//\1/ |
1349 | q |
1350 | } |
1351 | /^X\(\/\).*/{ |
1352 | s//\1/ |
1353 | q |
1354 | } |
1355 | s/.*/./; q'` |
d9898ee8 |
1356 | srcdir=$ac_confdir |
dd184caf |
1357 | if test ! -r "$srcdir/$ac_unique_file"; then |
d9898ee8 |
1358 | srcdir=.. |
1359 | fi |
1360 | else |
1361 | ac_srcdir_defaulted=no |
1362 | fi |
dd184caf |
1363 | if test ! -r "$srcdir/$ac_unique_file"; then |
1364 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
1365 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
d9898ee8 |
1366 | { (exit 1); exit 1; }; } |
d9898ee8 |
1367 | fi |
dd184caf |
1368 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1369 | ac_abs_confdir=`( |
1370 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
d9898ee8 |
1371 | { (exit 1); exit 1; }; } |
dd184caf |
1372 | pwd)` |
1373 | # When building in place, set srcdir=. |
1374 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
1375 | srcdir=. |
1376 | fi |
1377 | # Remove unnecessary trailing slashes from srcdir. |
1378 | # Double slashes in file names in object file debugging info |
1379 | # mess up M-x gdb in Emacs. |
1380 | case $srcdir in |
1381 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
1382 | esac |
1383 | for ac_var in $ac_precious_vars; do |
1384 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
1385 | eval ac_env_${ac_var}_value=\$${ac_var} |
1386 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
1387 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
1388 | done |
d9898ee8 |
1389 | |
1390 | # |
1391 | # Report the --help message. |
1392 | # |
1393 | if test "$ac_init_help" = "long"; then |
1394 | # Omit some internal or obsolete options to make the list less imposing. |
1395 | # This message is too long to be a string in the A/UX 3.1 sh. |
1396 | cat <<_ACEOF |
1397 | \`configure' configures gdbmobj 0.10 to adapt to many kinds of systems. |
1398 | |
1399 | Usage: $0 [OPTION]... [VAR=VALUE]... |
1400 | |
1401 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
1402 | VAR=VALUE. See below for descriptions of some of the useful variables. |
1403 | |
1404 | Defaults for the options are specified in brackets. |
1405 | |
1406 | Configuration: |
1407 | -h, --help display this help and exit |
1408 | --help=short display options specific to this package |
1409 | --help=recursive display the short help of all the included packages |
1410 | -V, --version display version information and exit |
1411 | -q, --quiet, --silent do not print \`checking...' messages |
1412 | --cache-file=FILE cache test results in FILE [disabled] |
1413 | -C, --config-cache alias for \`--cache-file=config.cache' |
1414 | -n, --no-create do not create output files |
1415 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
1416 | |
d9898ee8 |
1417 | Installation directories: |
1418 | --prefix=PREFIX install architecture-independent files in PREFIX |
1419 | [$ac_default_prefix] |
1420 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
1421 | [PREFIX] |
1422 | |
1423 | By default, \`make install' will install all the files in |
1424 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
1425 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
1426 | for instance \`--prefix=\$HOME'. |
1427 | |
1428 | For better control, use the options below. |
1429 | |
1430 | Fine tuning of the installation directories: |
1431 | --bindir=DIR user executables [EPREFIX/bin] |
1432 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
1433 | --libexecdir=DIR program executables [EPREFIX/libexec] |
d9898ee8 |
1434 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1435 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
1436 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
1437 | --libdir=DIR object code libraries [EPREFIX/lib] |
1438 | --includedir=DIR C header files [PREFIX/include] |
1439 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
dd184caf |
1440 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
1441 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
1442 | --infodir=DIR info documentation [DATAROOTDIR/info] |
1443 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
1444 | --mandir=DIR man documentation [DATAROOTDIR/man] |
1445 | --docdir=DIR documentation root [DATAROOTDIR/doc/gdbmobj] |
1446 | --htmldir=DIR html documentation [DOCDIR] |
1447 | --dvidir=DIR dvi documentation [DOCDIR] |
1448 | --pdfdir=DIR pdf documentation [DOCDIR] |
1449 | --psdir=DIR ps documentation [DOCDIR] |
d9898ee8 |
1450 | _ACEOF |
1451 | |
1452 | cat <<\_ACEOF |
1453 | |
1454 | Program names: |
1455 | --program-prefix=PREFIX prepend PREFIX to installed program names |
1456 | --program-suffix=SUFFIX append SUFFIX to installed program names |
1457 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
1458 | |
1459 | System types: |
1460 | --build=BUILD configure for building on BUILD [guessed] |
1461 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
1462 | _ACEOF |
1463 | fi |
1464 | |
1465 | if test -n "$ac_init_help"; then |
1466 | case $ac_init_help in |
1467 | short | recursive ) echo "Configuration of gdbmobj 0.10:";; |
1468 | esac |
1469 | cat <<\_ACEOF |
1470 | |
1471 | Optional Features: |
1472 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1473 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1474 | --disable-dependency-tracking speeds up one-time build |
1475 | --enable-dependency-tracking do not reject slow dependency extractors |
dd184caf |
1476 | --enable-shared[=PKGS] build shared libraries [default=yes] |
1477 | --enable-static[=PKGS] build static libraries [default=yes] |
d9898ee8 |
1478 | --enable-fast-install[=PKGS] |
1479 | optimize for fast installation [default=yes] |
1480 | --disable-libtool-lock avoid locking (might break parallel builds) |
1481 | |
1482 | Optional Packages: |
1483 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1484 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1485 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
1486 | --with-pic try to use only PIC/non-PIC objects [default=use |
1487 | both] |
dd184caf |
1488 | --with-tags[=TAGS] include additional configurations [automatic] |
d9898ee8 |
1489 | |
1490 | Some influential environment variables: |
1491 | CC C compiler command |
1492 | CFLAGS C compiler flags |
1493 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1494 | nonstandard directory <lib dir> |
dd184caf |
1495 | LIBS libraries to pass to the linker, e.g. -l<library> |
1496 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1497 | you have headers in a nonstandard directory <include dir> |
d9898ee8 |
1498 | CPP C preprocessor |
1499 | CXX C++ compiler command |
1500 | CXXFLAGS C++ compiler flags |
1501 | CXXCPP C++ preprocessor |
1502 | F77 Fortran 77 compiler command |
1503 | FFLAGS Fortran 77 compiler flags |
1504 | |
1505 | Use these variables to override the choices made by `configure' or to help |
1506 | it to find libraries and programs with nonstandard names/locations. |
1507 | |
1508 | Report bugs to <courier-users@lists.sourceforge.net>. |
1509 | _ACEOF |
dd184caf |
1510 | ac_status=$? |
d9898ee8 |
1511 | fi |
1512 | |
1513 | if test "$ac_init_help" = "recursive"; then |
1514 | # If there are subdirs, report their specific --help. |
d9898ee8 |
1515 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
dd184caf |
1516 | test -d "$ac_dir" || continue |
d9898ee8 |
1517 | ac_builddir=. |
1518 | |
dd184caf |
1519 | case "$ac_dir" in |
1520 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1521 | *) |
d9898ee8 |
1522 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
dd184caf |
1523 | # A ".." for each directory in $ac_dir_suffix. |
1524 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
1525 | case $ac_top_builddir_sub in |
1526 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1527 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
1528 | esac ;; |
1529 | esac |
1530 | ac_abs_top_builddir=$ac_pwd |
1531 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
1532 | # for backward compatibility: |
1533 | ac_top_builddir=$ac_top_build_prefix |
d9898ee8 |
1534 | |
1535 | case $srcdir in |
dd184caf |
1536 | .) # We are building in place. |
d9898ee8 |
1537 | ac_srcdir=. |
dd184caf |
1538 | ac_top_srcdir=$ac_top_builddir_sub |
1539 | ac_abs_top_srcdir=$ac_pwd ;; |
1540 | [\\/]* | ?:[\\/]* ) # Absolute name. |
d9898ee8 |
1541 | ac_srcdir=$srcdir$ac_dir_suffix; |
dd184caf |
1542 | ac_top_srcdir=$srcdir |
1543 | ac_abs_top_srcdir=$srcdir ;; |
1544 | *) # Relative name. |
1545 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
1546 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
1547 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
d9898ee8 |
1548 | esac |
dd184caf |
1549 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1550 | |
1551 | cd "$ac_dir" || { ac_status=$?; continue; } |
1552 | # Check for guested configure. |
1553 | if test -f "$ac_srcdir/configure.gnu"; then |
1554 | echo && |
1555 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
1556 | elif test -f "$ac_srcdir/configure"; then |
1557 | echo && |
1558 | $SHELL "$ac_srcdir/configure" --help=recursive |
d9898ee8 |
1559 | else |
1560 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
dd184caf |
1561 | fi || ac_status=$? |
1562 | cd "$ac_pwd" || { ac_status=$?; break; } |
d9898ee8 |
1563 | done |
1564 | fi |
1565 | |
dd184caf |
1566 | test -n "$ac_init_help" && exit $ac_status |
d9898ee8 |
1567 | if $ac_init_version; then |
1568 | cat <<\_ACEOF |
1569 | gdbmobj configure 0.10 |
dd184caf |
1570 | generated by GNU Autoconf 2.61 |
d9898ee8 |
1571 | |
dd184caf |
1572 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
1573 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
d9898ee8 |
1574 | This configure script is free software; the Free Software Foundation |
1575 | gives unlimited permission to copy, distribute and modify it. |
1576 | _ACEOF |
dd184caf |
1577 | exit |
d9898ee8 |
1578 | fi |
dd184caf |
1579 | cat >config.log <<_ACEOF |
d9898ee8 |
1580 | This file contains any messages produced by compilers while |
1581 | running configure, to aid debugging if configure makes a mistake. |
1582 | |
1583 | It was created by gdbmobj $as_me 0.10, which was |
dd184caf |
1584 | generated by GNU Autoconf 2.61. Invocation command line was |
d9898ee8 |
1585 | |
1586 | $ $0 $@ |
1587 | |
1588 | _ACEOF |
dd184caf |
1589 | exec 5>>config.log |
d9898ee8 |
1590 | { |
1591 | cat <<_ASUNAME |
1592 | ## --------- ## |
1593 | ## Platform. ## |
1594 | ## --------- ## |
1595 | |
1596 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
1597 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
1598 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
1599 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
1600 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
1601 | |
1602 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
1603 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
1604 | |
1605 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
1606 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
1607 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
dd184caf |
1608 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
d9898ee8 |
1609 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1610 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
1611 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
1612 | |
1613 | _ASUNAME |
1614 | |
1615 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1616 | for as_dir in $PATH |
1617 | do |
1618 | IFS=$as_save_IFS |
1619 | test -z "$as_dir" && as_dir=. |
1620 | echo "PATH: $as_dir" |
1621 | done |
dd184caf |
1622 | IFS=$as_save_IFS |
d9898ee8 |
1623 | |
1624 | } >&5 |
1625 | |
1626 | cat >&5 <<_ACEOF |
1627 | |
1628 | |
1629 | ## ----------- ## |
1630 | ## Core tests. ## |
1631 | ## ----------- ## |
1632 | |
1633 | _ACEOF |
1634 | |
1635 | |
1636 | # Keep a trace of the command line. |
1637 | # Strip out --no-create and --no-recursion so they do not pile up. |
1638 | # Strip out --silent because we don't want to record it for future runs. |
1639 | # Also quote any args containing shell meta-characters. |
1640 | # Make two passes to allow for proper duplicate-argument suppression. |
1641 | ac_configure_args= |
1642 | ac_configure_args0= |
1643 | ac_configure_args1= |
d9898ee8 |
1644 | ac_must_keep_next=false |
1645 | for ac_pass in 1 2 |
1646 | do |
1647 | for ac_arg |
1648 | do |
1649 | case $ac_arg in |
1650 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
1651 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1652 | | -silent | --silent | --silen | --sile | --sil) |
1653 | continue ;; |
dd184caf |
1654 | *\'*) |
d9898ee8 |
1655 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1656 | esac |
1657 | case $ac_pass in |
1658 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
1659 | 2) |
1660 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
1661 | if test $ac_must_keep_next = true; then |
1662 | ac_must_keep_next=false # Got value, back to normal. |
1663 | else |
1664 | case $ac_arg in |
1665 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
1666 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
1667 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
1668 | | -with-* | --with-* | -without-* | --without-* | --x) |
1669 | case "$ac_configure_args0 " in |
1670 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
1671 | esac |
1672 | ;; |
1673 | -* ) ac_must_keep_next=true ;; |
1674 | esac |
1675 | fi |
dd184caf |
1676 | ac_configure_args="$ac_configure_args '$ac_arg'" |
d9898ee8 |
1677 | ;; |
1678 | esac |
1679 | done |
1680 | done |
1681 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
1682 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
1683 | |
1684 | # When interrupted or exit'd, cleanup temporary files, and complete |
1685 | # config.log. We remove comments because anyway the quotes in there |
1686 | # would cause problems or look ugly. |
dd184caf |
1687 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1688 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
d9898ee8 |
1689 | trap 'exit_status=$? |
1690 | # Save into config.log some information that might help in debugging. |
1691 | { |
1692 | echo |
1693 | |
1694 | cat <<\_ASBOX |
1695 | ## ---------------- ## |
1696 | ## Cache variables. ## |
1697 | ## ---------------- ## |
1698 | _ASBOX |
1699 | echo |
1700 | # The following way of writing the cache mishandles newlines in values, |
dd184caf |
1701 | ( |
1702 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
1703 | eval ac_val=\$$ac_var |
1704 | case $ac_val in #( |
1705 | *${as_nl}*) |
1706 | case $ac_var in #( |
1707 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
1708 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
1709 | esac |
1710 | case $ac_var in #( |
1711 | _ | IFS | as_nl) ;; #( |
1712 | *) $as_unset $ac_var ;; |
1713 | esac ;; |
1714 | esac |
1715 | done |
d9898ee8 |
1716 | (set) 2>&1 | |
dd184caf |
1717 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1718 | *${as_nl}ac_space=\ *) |
d9898ee8 |
1719 | sed -n \ |
dd184caf |
1720 | "s/'\''/'\''\\\\'\'''\''/g; |
1721 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
1722 | ;; #( |
d9898ee8 |
1723 | *) |
dd184caf |
1724 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
d9898ee8 |
1725 | ;; |
dd184caf |
1726 | esac | |
1727 | sort |
1728 | ) |
d9898ee8 |
1729 | echo |
1730 | |
1731 | cat <<\_ASBOX |
1732 | ## ----------------- ## |
1733 | ## Output variables. ## |
1734 | ## ----------------- ## |
1735 | _ASBOX |
1736 | echo |
1737 | for ac_var in $ac_subst_vars |
1738 | do |
dd184caf |
1739 | eval ac_val=\$$ac_var |
1740 | case $ac_val in |
1741 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
1742 | esac |
1743 | echo "$ac_var='\''$ac_val'\''" |
d9898ee8 |
1744 | done | sort |
1745 | echo |
1746 | |
1747 | if test -n "$ac_subst_files"; then |
1748 | cat <<\_ASBOX |
dd184caf |
1749 | ## ------------------- ## |
1750 | ## File substitutions. ## |
1751 | ## ------------------- ## |
d9898ee8 |
1752 | _ASBOX |
1753 | echo |
1754 | for ac_var in $ac_subst_files |
1755 | do |
dd184caf |
1756 | eval ac_val=\$$ac_var |
1757 | case $ac_val in |
1758 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
1759 | esac |
1760 | echo "$ac_var='\''$ac_val'\''" |
d9898ee8 |
1761 | done | sort |
1762 | echo |
1763 | fi |
1764 | |
1765 | if test -s confdefs.h; then |
1766 | cat <<\_ASBOX |
1767 | ## ----------- ## |
1768 | ## confdefs.h. ## |
1769 | ## ----------- ## |
1770 | _ASBOX |
1771 | echo |
dd184caf |
1772 | cat confdefs.h |
d9898ee8 |
1773 | echo |
1774 | fi |
1775 | test "$ac_signal" != 0 && |
1776 | echo "$as_me: caught signal $ac_signal" |
1777 | echo "$as_me: exit $exit_status" |
1778 | } >&5 |
dd184caf |
1779 | rm -f core *.core core.conftest.* && |
1780 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
d9898ee8 |
1781 | exit $exit_status |
dd184caf |
1782 | ' 0 |
d9898ee8 |
1783 | for ac_signal in 1 2 13 15; do |
1784 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
1785 | done |
1786 | ac_signal=0 |
1787 | |
1788 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
dd184caf |
1789 | rm -f -r conftest* confdefs.h |
d9898ee8 |
1790 | |
1791 | # Predefined preprocessor variables. |
1792 | |
1793 | cat >>confdefs.h <<_ACEOF |
1794 | #define PACKAGE_NAME "$PACKAGE_NAME" |
1795 | _ACEOF |
1796 | |
1797 | |
1798 | cat >>confdefs.h <<_ACEOF |
1799 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
1800 | _ACEOF |
1801 | |
1802 | |
1803 | cat >>confdefs.h <<_ACEOF |
1804 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
1805 | _ACEOF |
1806 | |
1807 | |
1808 | cat >>confdefs.h <<_ACEOF |
1809 | #define PACKAGE_STRING "$PACKAGE_STRING" |
1810 | _ACEOF |
1811 | |
1812 | |
1813 | cat >>confdefs.h <<_ACEOF |
1814 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
1815 | _ACEOF |
1816 | |
1817 | |
1818 | # Let the site file select an alternate cache file if it wants to. |
1819 | # Prefer explicitly selected file to automatically selected ones. |
dd184caf |
1820 | if test -n "$CONFIG_SITE"; then |
1821 | set x "$CONFIG_SITE" |
1822 | elif test "x$prefix" != xNONE; then |
1823 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
1824 | else |
1825 | set x "$ac_default_prefix/share/config.site" \ |
1826 | "$ac_default_prefix/etc/config.site" |
d9898ee8 |
1827 | fi |
dd184caf |
1828 | shift |
1829 | for ac_site_file |
1830 | do |
d9898ee8 |
1831 | if test -r "$ac_site_file"; then |
1832 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1833 | echo "$as_me: loading site script $ac_site_file" >&6;} |
1834 | sed 's/^/| /' "$ac_site_file" >&5 |
1835 | . "$ac_site_file" |
1836 | fi |
1837 | done |
1838 | |
1839 | if test -r "$cache_file"; then |
1840 | # Some versions of bash will fail to source /dev/null (special |
1841 | # files actually), so we avoid doing that. |
1842 | if test -f "$cache_file"; then |
1843 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1844 | echo "$as_me: loading cache $cache_file" >&6;} |
1845 | case $cache_file in |
dd184caf |
1846 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1847 | *) . "./$cache_file";; |
d9898ee8 |
1848 | esac |
1849 | fi |
1850 | else |
1851 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1852 | echo "$as_me: creating cache $cache_file" >&6;} |
1853 | >$cache_file |
1854 | fi |
1855 | |
1856 | # Check that the precious variables saved in the cache have kept the same |
1857 | # value. |
1858 | ac_cache_corrupted=false |
dd184caf |
1859 | for ac_var in $ac_precious_vars; do |
d9898ee8 |
1860 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1861 | eval ac_new_set=\$ac_env_${ac_var}_set |
dd184caf |
1862 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1863 | eval ac_new_val=\$ac_env_${ac_var}_value |
d9898ee8 |
1864 | case $ac_old_set,$ac_new_set in |
1865 | set,) |
1866 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1867 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
1868 | ac_cache_corrupted=: ;; |
1869 | ,set) |
1870 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
1871 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
1872 | ac_cache_corrupted=: ;; |
1873 | ,);; |
1874 | *) |
1875 | if test "x$ac_old_val" != "x$ac_new_val"; then |
1876 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
1877 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
1878 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
1879 | echo "$as_me: former value: $ac_old_val" >&2;} |
1880 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
1881 | echo "$as_me: current value: $ac_new_val" >&2;} |
1882 | ac_cache_corrupted=: |
1883 | fi;; |
1884 | esac |
1885 | # Pass precious variables to config.status. |
1886 | if test "$ac_new_set" = set; then |
1887 | case $ac_new_val in |
dd184caf |
1888 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
d9898ee8 |
1889 | *) ac_arg=$ac_var=$ac_new_val ;; |
1890 | esac |
1891 | case " $ac_configure_args " in |
1892 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
1893 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
1894 | esac |
1895 | fi |
1896 | done |
1897 | if $ac_cache_corrupted; then |
1898 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
1899 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
1900 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
1901 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
1902 | { (exit 1); exit 1; }; } |
1903 | fi |
1904 | |
d9898ee8 |
1905 | |
1906 | |
1907 | |
1908 | |
1909 | |
1910 | |
1911 | |
1912 | |
1913 | |
1914 | |
1915 | |
1916 | |
1917 | |
1918 | |
1919 | |
1920 | |
1921 | |
1922 | |
1923 | |
1924 | |
1925 | |
1926 | |
1927 | |
1928 | |
dd184caf |
1929 | ac_ext=c |
1930 | ac_cpp='$CPP $CPPFLAGS' |
1931 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1932 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
1933 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
d9898ee8 |
1934 | |
1935 | |
1936 | |
1937 | >confdefs.h # Kill PACKAGE_ macros |
1938 | |
1939 | |
dd184caf |
1940 | am__api_version='1.10' |
1941 | |
d9898ee8 |
1942 | ac_aux_dir= |
dd184caf |
1943 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
1944 | if test -f "$ac_dir/install-sh"; then |
d9898ee8 |
1945 | ac_aux_dir=$ac_dir |
1946 | ac_install_sh="$ac_aux_dir/install-sh -c" |
1947 | break |
dd184caf |
1948 | elif test -f "$ac_dir/install.sh"; then |
d9898ee8 |
1949 | ac_aux_dir=$ac_dir |
1950 | ac_install_sh="$ac_aux_dir/install.sh -c" |
1951 | break |
dd184caf |
1952 | elif test -f "$ac_dir/shtool"; then |
d9898ee8 |
1953 | ac_aux_dir=$ac_dir |
1954 | ac_install_sh="$ac_aux_dir/shtool install -c" |
1955 | break |
1956 | fi |
1957 | done |
1958 | if test -z "$ac_aux_dir"; then |
dd184caf |
1959 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
1960 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} |
d9898ee8 |
1961 | { (exit 1); exit 1; }; } |
1962 | fi |
dd184caf |
1963 | |
1964 | # These three variables are undocumented and unsupported, |
1965 | # and are intended to be withdrawn in a future Autoconf release. |
1966 | # They can cause serious problems if a builder's source tree is in a directory |
1967 | # whose full name contains unusual characters. |
1968 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
1969 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
1970 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
1971 | |
d9898ee8 |
1972 | |
1973 | # Find a good install program. We prefer a C program (faster), |
1974 | # so one script is as good as another. But avoid the broken or |
1975 | # incompatible versions: |
1976 | # SysV /etc/install, /usr/sbin/install |
1977 | # SunOS /usr/etc/install |
1978 | # IRIX /sbin/install |
1979 | # AIX /bin/install |
1980 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
1981 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
1982 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
1983 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
1984 | # OS/2's system install, which has a completely different semantic |
1985 | # ./install, which can be erroneously created by make from ./install.sh. |
dd184caf |
1986 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
1987 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
d9898ee8 |
1988 | if test -z "$INSTALL"; then |
1989 | if test "${ac_cv_path_install+set}" = set; then |
1990 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1991 | else |
1992 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1993 | for as_dir in $PATH |
1994 | do |
1995 | IFS=$as_save_IFS |
1996 | test -z "$as_dir" && as_dir=. |
1997 | # Account for people who put trailing slashes in PATH elements. |
1998 | case $as_dir/ in |
1999 | ./ | .// | /cC/* | \ |
2000 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
2001 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
2002 | /usr/ucb/* ) ;; |
2003 | *) |
2004 | # OSF1 and SCO ODT 3.0 have their own names for install. |
2005 | # Don't use installbsd from OSF since it installs stuff as root |
2006 | # by default. |
2007 | for ac_prog in ginstall scoinst install; do |
2008 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2009 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
d9898ee8 |
2010 | if test $ac_prog = install && |
2011 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
2012 | # AIX install. It has an incompatible calling convention. |
2013 | : |
2014 | elif test $ac_prog = install && |
2015 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
2016 | # program-specific install script used by HP pwplus--don't use. |
2017 | : |
2018 | else |
2019 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
2020 | break 3 |
2021 | fi |
2022 | fi |
2023 | done |
2024 | done |
2025 | ;; |
2026 | esac |
2027 | done |
dd184caf |
2028 | IFS=$as_save_IFS |
d9898ee8 |
2029 | |
2030 | |
2031 | fi |
2032 | if test "${ac_cv_path_install+set}" = set; then |
2033 | INSTALL=$ac_cv_path_install |
2034 | else |
dd184caf |
2035 | # As a last resort, use the slow shell script. Don't cache a |
2036 | # value for INSTALL within a source directory, because that will |
d9898ee8 |
2037 | # break other packages using the cache if that directory is |
dd184caf |
2038 | # removed, or if the value is a relative name. |
d9898ee8 |
2039 | INSTALL=$ac_install_sh |
2040 | fi |
2041 | fi |
dd184caf |
2042 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
2043 | echo "${ECHO_T}$INSTALL" >&6; } |
d9898ee8 |
2044 | |
2045 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
2046 | # It thinks the first close brace ends the variable substitution. |
2047 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
2048 | |
2049 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
2050 | |
2051 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
2052 | |
dd184caf |
2053 | { echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
2054 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } |
d9898ee8 |
2055 | # Just in case |
2056 | sleep 1 |
2057 | echo timestamp > conftest.file |
2058 | # Do `set' in a subshell so we don't clobber the current shell's |
2059 | # arguments. Must try -L first in case configure is actually a |
2060 | # symlink; some systems play weird games with the mod time of symlinks |
2061 | # (eg FreeBSD returns the mod time of the symlink's containing |
2062 | # directory). |
2063 | if ( |
2064 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
2065 | if test "$*" = "X"; then |
2066 | # -L didn't work. |
2067 | set X `ls -t $srcdir/configure conftest.file` |
2068 | fi |
2069 | rm -f conftest.file |
2070 | if test "$*" != "X $srcdir/configure conftest.file" \ |
2071 | && test "$*" != "X conftest.file $srcdir/configure"; then |
2072 | |
2073 | # If neither matched, then we have a broken ls. This can happen |
2074 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
2075 | # broken ls alias from the environment. This has actually |
2076 | # happened. Such a system could not be considered "sane". |
2077 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
2078 | alias in your environment" >&5 |
2079 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
2080 | alias in your environment" >&2;} |
2081 | { (exit 1); exit 1; }; } |
2082 | fi |
2083 | |
2084 | test "$2" = conftest.file |
2085 | ) |
2086 | then |
2087 | # Ok. |
2088 | : |
2089 | else |
2090 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
2091 | Check your system clock" >&5 |
2092 | echo "$as_me: error: newly created file is older than distributed files! |
2093 | Check your system clock" >&2;} |
2094 | { (exit 1); exit 1; }; } |
2095 | fi |
dd184caf |
2096 | { echo "$as_me:$LINENO: result: yes" >&5 |
2097 | echo "${ECHO_T}yes" >&6; } |
d9898ee8 |
2098 | test "$program_prefix" != NONE && |
dd184caf |
2099 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
d9898ee8 |
2100 | # Use a double $ so make ignores it. |
2101 | test "$program_suffix" != NONE && |
dd184caf |
2102 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
d9898ee8 |
2103 | # Double any \ or $. echo might interpret backslashes. |
2104 | # By default was `s,x,x', remove it if useless. |
2105 | cat <<\_ACEOF >conftest.sed |
2106 | s/[\\$]/&&/g;s/;s,x,x,$// |
2107 | _ACEOF |
2108 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
dd184caf |
2109 | rm -f conftest.sed |
d9898ee8 |
2110 | |
2111 | # expand $ac_aux_dir to an absolute path |
2112 | am_aux_dir=`cd $ac_aux_dir && pwd` |
2113 | |
2114 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
2115 | # Use eval to expand $SHELL |
2116 | if eval "$MISSING --run true"; then |
2117 | am_missing_run="$MISSING --run " |
2118 | else |
2119 | am_missing_run= |
2120 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
2121 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
2122 | fi |
2123 | |
dd184caf |
2124 | { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 |
2125 | echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } |
2126 | if test -z "$MKDIR_P"; then |
2127 | if test "${ac_cv_path_mkdir+set}" = set; then |
2128 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2129 | else |
2130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2131 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
2132 | do |
2133 | IFS=$as_save_IFS |
2134 | test -z "$as_dir" && as_dir=. |
2135 | for ac_prog in mkdir gmkdir; do |
2136 | for ac_exec_ext in '' $ac_executable_extensions; do |
2137 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue |
2138 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
2139 | 'mkdir (GNU coreutils) '* | \ |
2140 | 'mkdir (coreutils) '* | \ |
2141 | 'mkdir (fileutils) '4.1*) |
2142 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
2143 | break 3;; |
2144 | esac |
2145 | done |
2146 | done |
2147 | done |
2148 | IFS=$as_save_IFS |
2149 | |
2150 | fi |
2151 | |
2152 | if test "${ac_cv_path_mkdir+set}" = set; then |
2153 | MKDIR_P="$ac_cv_path_mkdir -p" |
d9898ee8 |
2154 | else |
dd184caf |
2155 | # As a last resort, use the slow shell script. Don't cache a |
2156 | # value for MKDIR_P within a source directory, because that will |
2157 | # break other packages using the cache if that directory is |
2158 | # removed, or if the value is a relative name. |
2159 | test -d ./--version && rmdir ./--version |
2160 | MKDIR_P="$ac_install_sh -d" |
d9898ee8 |
2161 | fi |
2162 | fi |
dd184caf |
2163 | { echo "$as_me:$LINENO: result: $MKDIR_P" >&5 |
2164 | echo "${ECHO_T}$MKDIR_P" >&6; } |
2165 | |
2166 | mkdir_p="$MKDIR_P" |
2167 | case $mkdir_p in |
2168 | [\\/$]* | ?:[\\/]*) ;; |
2169 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; |
2170 | esac |
d9898ee8 |
2171 | |
2172 | for ac_prog in gawk mawk nawk awk |
2173 | do |
2174 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2175 | set dummy $ac_prog; ac_word=$2 |
dd184caf |
2176 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2177 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2178 | if test "${ac_cv_prog_AWK+set}" = set; then |
2179 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2180 | else |
2181 | if test -n "$AWK"; then |
2182 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
2183 | else |
2184 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2185 | for as_dir in $PATH |
2186 | do |
2187 | IFS=$as_save_IFS |
2188 | test -z "$as_dir" && as_dir=. |
2189 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2190 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2191 | ac_cv_prog_AWK="$ac_prog" |
2192 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2193 | break 2 |
2194 | fi |
2195 | done |
2196 | done |
dd184caf |
2197 | IFS=$as_save_IFS |
d9898ee8 |
2198 | |
2199 | fi |
2200 | fi |
2201 | AWK=$ac_cv_prog_AWK |
2202 | if test -n "$AWK"; then |
dd184caf |
2203 | { echo "$as_me:$LINENO: result: $AWK" >&5 |
2204 | echo "${ECHO_T}$AWK" >&6; } |
d9898ee8 |
2205 | else |
dd184caf |
2206 | { echo "$as_me:$LINENO: result: no" >&5 |
2207 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2208 | fi |
2209 | |
dd184caf |
2210 | |
d9898ee8 |
2211 | test -n "$AWK" && break |
2212 | done |
2213 | |
dd184caf |
2214 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
2215 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } |
2216 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
2217 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
2218 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2219 | else |
2220 | cat >conftest.make <<\_ACEOF |
dd184caf |
2221 | SHELL = /bin/sh |
d9898ee8 |
2222 | all: |
dd184caf |
2223 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
d9898ee8 |
2224 | _ACEOF |
2225 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
dd184caf |
2226 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
2227 | *@@@%%%=?*=@@@%%%*) |
2228 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
2229 | *) |
2230 | eval ac_cv_prog_make_${ac_make}_set=no;; |
2231 | esac |
d9898ee8 |
2232 | rm -f conftest.make |
2233 | fi |
dd184caf |
2234 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
2235 | { echo "$as_me:$LINENO: result: yes" >&5 |
2236 | echo "${ECHO_T}yes" >&6; } |
d9898ee8 |
2237 | SET_MAKE= |
2238 | else |
dd184caf |
2239 | { echo "$as_me:$LINENO: result: no" >&5 |
2240 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2241 | SET_MAKE="MAKE=${MAKE-make}" |
2242 | fi |
2243 | |
2244 | rm -rf .tst 2>/dev/null |
2245 | mkdir .tst 2>/dev/null |
2246 | if test -d .tst; then |
2247 | am__leading_dot=. |
2248 | else |
2249 | am__leading_dot=_ |
2250 | fi |
2251 | rmdir .tst 2>/dev/null |
2252 | |
dd184caf |
2253 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
2254 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
2255 | # is not polluted with repeated "-I." |
2256 | am__isrc=' -I$(srcdir)' |
2257 | # test to see if srcdir already configured |
2258 | if test -f $srcdir/config.status; then |
2259 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
d9898ee8 |
2260 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
2261 | { (exit 1); exit 1; }; } |
dd184caf |
2262 | fi |
d9898ee8 |
2263 | fi |
2264 | |
2265 | # test whether we have cygpath |
2266 | if test -z "$CYGPATH_W"; then |
2267 | if (cygpath --version) >/dev/null 2>/dev/null; then |
2268 | CYGPATH_W='cygpath -w' |
2269 | else |
2270 | CYGPATH_W=echo |
2271 | fi |
2272 | fi |
2273 | |
2274 | |
2275 | # Define the identity of the package. |
2276 | PACKAGE='gdbmobj' |
2277 | VERSION='0.10' |
2278 | |
2279 | |
2280 | # Some tools Automake needs. |
2281 | |
2282 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
2283 | |
2284 | |
2285 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
2286 | |
2287 | |
2288 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
2289 | |
2290 | |
2291 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
2292 | |
2293 | |
2294 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
2295 | |
dd184caf |
2296 | install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} |
d9898ee8 |
2297 | |
2298 | # Installed binaries are usually stripped using `strip' when the user |
2299 | # run `make install-strip'. However `strip' might not be the right |
2300 | # tool to use in cross-compilation environments, therefore Automake |
2301 | # will honor the `STRIP' environment variable to overrule this program. |
2302 | if test "$cross_compiling" != no; then |
2303 | if test -n "$ac_tool_prefix"; then |
2304 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
2305 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
dd184caf |
2306 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2307 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2308 | if test "${ac_cv_prog_STRIP+set}" = set; then |
2309 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2310 | else |
2311 | if test -n "$STRIP"; then |
2312 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
2313 | else |
2314 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2315 | for as_dir in $PATH |
2316 | do |
2317 | IFS=$as_save_IFS |
2318 | test -z "$as_dir" && as_dir=. |
2319 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2320 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2321 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
2322 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2323 | break 2 |
2324 | fi |
2325 | done |
2326 | done |
dd184caf |
2327 | IFS=$as_save_IFS |
d9898ee8 |
2328 | |
2329 | fi |
2330 | fi |
2331 | STRIP=$ac_cv_prog_STRIP |
2332 | if test -n "$STRIP"; then |
dd184caf |
2333 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
2334 | echo "${ECHO_T}$STRIP" >&6; } |
d9898ee8 |
2335 | else |
dd184caf |
2336 | { echo "$as_me:$LINENO: result: no" >&5 |
2337 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2338 | fi |
2339 | |
dd184caf |
2340 | |
d9898ee8 |
2341 | fi |
2342 | if test -z "$ac_cv_prog_STRIP"; then |
2343 | ac_ct_STRIP=$STRIP |
2344 | # Extract the first word of "strip", so it can be a program name with args. |
2345 | set dummy strip; ac_word=$2 |
dd184caf |
2346 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2347 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2348 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
2349 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2350 | else |
2351 | if test -n "$ac_ct_STRIP"; then |
2352 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
2353 | else |
2354 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2355 | for as_dir in $PATH |
2356 | do |
2357 | IFS=$as_save_IFS |
2358 | test -z "$as_dir" && as_dir=. |
2359 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2360 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2361 | ac_cv_prog_ac_ct_STRIP="strip" |
2362 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2363 | break 2 |
2364 | fi |
2365 | done |
2366 | done |
dd184caf |
2367 | IFS=$as_save_IFS |
d9898ee8 |
2368 | |
d9898ee8 |
2369 | fi |
2370 | fi |
2371 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
2372 | if test -n "$ac_ct_STRIP"; then |
dd184caf |
2373 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
2374 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
d9898ee8 |
2375 | else |
dd184caf |
2376 | { echo "$as_me:$LINENO: result: no" >&5 |
2377 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2378 | fi |
2379 | |
dd184caf |
2380 | if test "x$ac_ct_STRIP" = x; then |
2381 | STRIP=":" |
2382 | else |
2383 | case $cross_compiling:$ac_tool_warned in |
2384 | yes:) |
2385 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
2386 | whose name does not start with the host triplet. If you think this |
2387 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
2388 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
2389 | whose name does not start with the host triplet. If you think this |
2390 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
2391 | ac_tool_warned=yes ;; |
2392 | esac |
2393 | STRIP=$ac_ct_STRIP |
2394 | fi |
d9898ee8 |
2395 | else |
2396 | STRIP="$ac_cv_prog_STRIP" |
2397 | fi |
2398 | |
2399 | fi |
dd184caf |
2400 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
d9898ee8 |
2401 | |
2402 | # We need awk for the "check" target. The system "awk" is bad on |
2403 | # some platforms. |
2404 | # Always define AMTAR for backward compatibility. |
2405 | |
2406 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
2407 | |
2408 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
2409 | |
2410 | |
2411 | |
2412 | |
2413 | |
dd184caf |
2414 | ac_config_headers="$ac_config_headers config.h" |
d9898ee8 |
2415 | |
2416 | |
2417 | ac_ext=c |
2418 | ac_cpp='$CPP $CPPFLAGS' |
2419 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2420 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2421 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2422 | if test -n "$ac_tool_prefix"; then |
2423 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
2424 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
dd184caf |
2425 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2426 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2427 | if test "${ac_cv_prog_CC+set}" = set; then |
2428 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2429 | else |
2430 | if test -n "$CC"; then |
2431 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2432 | else |
2433 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2434 | for as_dir in $PATH |
2435 | do |
2436 | IFS=$as_save_IFS |
2437 | test -z "$as_dir" && as_dir=. |
2438 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2439 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2440 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
2441 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2442 | break 2 |
2443 | fi |
2444 | done |
2445 | done |
dd184caf |
2446 | IFS=$as_save_IFS |
d9898ee8 |
2447 | |
2448 | fi |
2449 | fi |
2450 | CC=$ac_cv_prog_CC |
2451 | if test -n "$CC"; then |
dd184caf |
2452 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2453 | echo "${ECHO_T}$CC" >&6; } |
d9898ee8 |
2454 | else |
dd184caf |
2455 | { echo "$as_me:$LINENO: result: no" >&5 |
2456 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2457 | fi |
2458 | |
dd184caf |
2459 | |
d9898ee8 |
2460 | fi |
2461 | if test -z "$ac_cv_prog_CC"; then |
2462 | ac_ct_CC=$CC |
2463 | # Extract the first word of "gcc", so it can be a program name with args. |
2464 | set dummy gcc; ac_word=$2 |
dd184caf |
2465 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2466 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2467 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2468 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2469 | else |
2470 | if test -n "$ac_ct_CC"; then |
2471 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2472 | else |
2473 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2474 | for as_dir in $PATH |
2475 | do |
2476 | IFS=$as_save_IFS |
2477 | test -z "$as_dir" && as_dir=. |
2478 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2479 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2480 | ac_cv_prog_ac_ct_CC="gcc" |
2481 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2482 | break 2 |
2483 | fi |
2484 | done |
2485 | done |
dd184caf |
2486 | IFS=$as_save_IFS |
d9898ee8 |
2487 | |
2488 | fi |
2489 | fi |
2490 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2491 | if test -n "$ac_ct_CC"; then |
dd184caf |
2492 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2493 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
d9898ee8 |
2494 | else |
dd184caf |
2495 | { echo "$as_me:$LINENO: result: no" >&5 |
2496 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2497 | fi |
2498 | |
dd184caf |
2499 | if test "x$ac_ct_CC" = x; then |
2500 | CC="" |
2501 | else |
2502 | case $cross_compiling:$ac_tool_warned in |
2503 | yes:) |
2504 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
2505 | whose name does not start with the host triplet. If you think this |
2506 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
2507 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
2508 | whose name does not start with the host triplet. If you think this |
2509 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
2510 | ac_tool_warned=yes ;; |
2511 | esac |
2512 | CC=$ac_ct_CC |
2513 | fi |
d9898ee8 |
2514 | else |
2515 | CC="$ac_cv_prog_CC" |
2516 | fi |
2517 | |
2518 | if test -z "$CC"; then |
dd184caf |
2519 | if test -n "$ac_tool_prefix"; then |
2520 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
d9898ee8 |
2521 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
dd184caf |
2522 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2523 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2524 | if test "${ac_cv_prog_CC+set}" = set; then |
2525 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2526 | else |
2527 | if test -n "$CC"; then |
2528 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2529 | else |
2530 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2531 | for as_dir in $PATH |
2532 | do |
2533 | IFS=$as_save_IFS |
2534 | test -z "$as_dir" && as_dir=. |
2535 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2536 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2537 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
2538 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2539 | break 2 |
2540 | fi |
2541 | done |
2542 | done |
dd184caf |
2543 | IFS=$as_save_IFS |
d9898ee8 |
2544 | |
2545 | fi |
2546 | fi |
2547 | CC=$ac_cv_prog_CC |
2548 | if test -n "$CC"; then |
dd184caf |
2549 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2550 | echo "${ECHO_T}$CC" >&6; } |
d9898ee8 |
2551 | else |
dd184caf |
2552 | { echo "$as_me:$LINENO: result: no" >&5 |
2553 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2554 | fi |
2555 | |
d9898ee8 |
2556 | |
dd184caf |
2557 | fi |
d9898ee8 |
2558 | fi |
2559 | if test -z "$CC"; then |
2560 | # Extract the first word of "cc", so it can be a program name with args. |
2561 | set dummy cc; ac_word=$2 |
dd184caf |
2562 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2563 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2564 | if test "${ac_cv_prog_CC+set}" = set; then |
2565 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2566 | else |
2567 | if test -n "$CC"; then |
2568 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2569 | else |
2570 | ac_prog_rejected=no |
2571 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2572 | for as_dir in $PATH |
2573 | do |
2574 | IFS=$as_save_IFS |
2575 | test -z "$as_dir" && as_dir=. |
2576 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2577 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2578 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2579 | ac_prog_rejected=yes |
2580 | continue |
2581 | fi |
2582 | ac_cv_prog_CC="cc" |
2583 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2584 | break 2 |
2585 | fi |
2586 | done |
2587 | done |
dd184caf |
2588 | IFS=$as_save_IFS |
d9898ee8 |
2589 | |
2590 | if test $ac_prog_rejected = yes; then |
2591 | # We found a bogon in the path, so make sure we never use it. |
2592 | set dummy $ac_cv_prog_CC |
2593 | shift |
2594 | if test $# != 0; then |
2595 | # We chose a different compiler from the bogus one. |
2596 | # However, it has the same basename, so the bogon will be chosen |
2597 | # first if we set CC to just the basename; use the full file name. |
2598 | shift |
2599 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
2600 | fi |
2601 | fi |
2602 | fi |
2603 | fi |
2604 | CC=$ac_cv_prog_CC |
2605 | if test -n "$CC"; then |
dd184caf |
2606 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2607 | echo "${ECHO_T}$CC" >&6; } |
d9898ee8 |
2608 | else |
dd184caf |
2609 | { echo "$as_me:$LINENO: result: no" >&5 |
2610 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2611 | fi |
2612 | |
dd184caf |
2613 | |
d9898ee8 |
2614 | fi |
2615 | if test -z "$CC"; then |
2616 | if test -n "$ac_tool_prefix"; then |
dd184caf |
2617 | for ac_prog in cl.exe |
d9898ee8 |
2618 | do |
2619 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
2620 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
dd184caf |
2621 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2622 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2623 | if test "${ac_cv_prog_CC+set}" = set; then |
2624 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2625 | else |
2626 | if test -n "$CC"; then |
2627 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2628 | else |
2629 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2630 | for as_dir in $PATH |
2631 | do |
2632 | IFS=$as_save_IFS |
2633 | test -z "$as_dir" && as_dir=. |
2634 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2635 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2636 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
2637 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2638 | break 2 |
2639 | fi |
2640 | done |
2641 | done |
dd184caf |
2642 | IFS=$as_save_IFS |
d9898ee8 |
2643 | |
2644 | fi |
2645 | fi |
2646 | CC=$ac_cv_prog_CC |
2647 | if test -n "$CC"; then |
dd184caf |
2648 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2649 | echo "${ECHO_T}$CC" >&6; } |
d9898ee8 |
2650 | else |
dd184caf |
2651 | { echo "$as_me:$LINENO: result: no" >&5 |
2652 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2653 | fi |
2654 | |
dd184caf |
2655 | |
d9898ee8 |
2656 | test -n "$CC" && break |
2657 | done |
2658 | fi |
2659 | if test -z "$CC"; then |
2660 | ac_ct_CC=$CC |
dd184caf |
2661 | for ac_prog in cl.exe |
d9898ee8 |
2662 | do |
2663 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2664 | set dummy $ac_prog; ac_word=$2 |
dd184caf |
2665 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2666 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2667 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2668 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2669 | else |
2670 | if test -n "$ac_ct_CC"; then |
2671 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2672 | else |
2673 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2674 | for as_dir in $PATH |
2675 | do |
2676 | IFS=$as_save_IFS |
2677 | test -z "$as_dir" && as_dir=. |
2678 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2679 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2680 | ac_cv_prog_ac_ct_CC="$ac_prog" |
2681 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2682 | break 2 |
2683 | fi |
2684 | done |
2685 | done |
dd184caf |
2686 | IFS=$as_save_IFS |
d9898ee8 |
2687 | |
2688 | fi |
2689 | fi |
2690 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2691 | if test -n "$ac_ct_CC"; then |
dd184caf |
2692 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2693 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
d9898ee8 |
2694 | else |
dd184caf |
2695 | { echo "$as_me:$LINENO: result: no" >&5 |
2696 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2697 | fi |
2698 | |
dd184caf |
2699 | |
d9898ee8 |
2700 | test -n "$ac_ct_CC" && break |
2701 | done |
2702 | |
dd184caf |
2703 | if test "x$ac_ct_CC" = x; then |
2704 | CC="" |
2705 | else |
2706 | case $cross_compiling:$ac_tool_warned in |
2707 | yes:) |
2708 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
2709 | whose name does not start with the host triplet. If you think this |
2710 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
2711 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
2712 | whose name does not start with the host triplet. If you think this |
2713 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
2714 | ac_tool_warned=yes ;; |
2715 | esac |
2716 | CC=$ac_ct_CC |
2717 | fi |
d9898ee8 |
2718 | fi |
2719 | |
2720 | fi |
2721 | |
2722 | |
2723 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
2724 | See \`config.log' for more details." >&5 |
2725 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
2726 | See \`config.log' for more details." >&2;} |
2727 | { (exit 1); exit 1; }; } |
2728 | |
2729 | # Provide some information about the compiler. |
dd184caf |
2730 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
d9898ee8 |
2731 | ac_compiler=`set X $ac_compile; echo $2` |
dd184caf |
2732 | { (ac_try="$ac_compiler --version >&5" |
2733 | case "(($ac_try" in |
2734 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2735 | *) ac_try_echo=$ac_try;; |
2736 | esac |
2737 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2738 | (eval "$ac_compiler --version >&5") 2>&5 |
d9898ee8 |
2739 | ac_status=$? |
2740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2741 | (exit $ac_status); } |
dd184caf |
2742 | { (ac_try="$ac_compiler -v >&5" |
2743 | case "(($ac_try" in |
2744 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2745 | *) ac_try_echo=$ac_try;; |
2746 | esac |
2747 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2748 | (eval "$ac_compiler -v >&5") 2>&5 |
d9898ee8 |
2749 | ac_status=$? |
2750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2751 | (exit $ac_status); } |
dd184caf |
2752 | { (ac_try="$ac_compiler -V >&5" |
2753 | case "(($ac_try" in |
2754 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2755 | *) ac_try_echo=$ac_try;; |
2756 | esac |
2757 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2758 | (eval "$ac_compiler -V >&5") 2>&5 |
d9898ee8 |
2759 | ac_status=$? |
2760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2761 | (exit $ac_status); } |
2762 | |
2763 | cat >conftest.$ac_ext <<_ACEOF |
2764 | /* confdefs.h. */ |
2765 | _ACEOF |
2766 | cat confdefs.h >>conftest.$ac_ext |
2767 | cat >>conftest.$ac_ext <<_ACEOF |
2768 | /* end confdefs.h. */ |
2769 | |
2770 | int |
2771 | main () |
2772 | { |
2773 | |
2774 | ; |
2775 | return 0; |
2776 | } |
2777 | _ACEOF |
2778 | ac_clean_files_save=$ac_clean_files |
2779 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
2780 | # Try to create an executable without -o first, disregard a.out. |
2781 | # It will help us diagnose broken compilers, and finding out an intuition |
2782 | # of exeext. |
dd184caf |
2783 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2784 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
d9898ee8 |
2785 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
dd184caf |
2786 | # |
2787 | # List of possible output files, starting from the most likely. |
2788 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
2789 | # only as a last resort. b.out is created by i960 compilers. |
2790 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
2791 | # |
2792 | # The IRIX 6 linker writes into existing files which may not be |
2793 | # executable, retaining their permissions. Remove them first so a |
2794 | # subsequent execution test works. |
2795 | ac_rmfiles= |
2796 | for ac_file in $ac_files |
2797 | do |
2798 | case $ac_file in |
2799 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
2800 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
2801 | esac |
2802 | done |
2803 | rm -f $ac_rmfiles |
2804 | |
2805 | if { (ac_try="$ac_link_default" |
2806 | case "(($ac_try" in |
2807 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2808 | *) ac_try_echo=$ac_try;; |
2809 | esac |
2810 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2811 | (eval "$ac_link_default") 2>&5 |
d9898ee8 |
2812 | ac_status=$? |
2813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2814 | (exit $ac_status); }; then |
dd184caf |
2815 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2816 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
2817 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
2818 | # so that the user can short-circuit this test for compilers unknown to |
2819 | # Autoconf. |
2820 | for ac_file in $ac_files '' |
d9898ee8 |
2821 | do |
2822 | test -f "$ac_file" || continue |
2823 | case $ac_file in |
dd184caf |
2824 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
d9898ee8 |
2825 | ;; |
2826 | [ab].out ) |
2827 | # We found the default executable, but exeext='' is most |
2828 | # certainly right. |
2829 | break;; |
2830 | *.* ) |
dd184caf |
2831 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2832 | then :; else |
2833 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2834 | fi |
2835 | # We set ac_cv_exeext here because the later test for it is not |
2836 | # safe: cross compilers may not add the suffix if given an `-o' |
2837 | # argument, so we may need to know it at that point already. |
2838 | # Even if this section looks crufty: it has the advantage of |
2839 | # actually working. |
d9898ee8 |
2840 | break;; |
2841 | * ) |
2842 | break;; |
2843 | esac |
2844 | done |
dd184caf |
2845 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2846 | |
d9898ee8 |
2847 | else |
dd184caf |
2848 | ac_file='' |
2849 | fi |
2850 | |
2851 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
2852 | echo "${ECHO_T}$ac_file" >&6; } |
2853 | if test -z "$ac_file"; then |
d9898ee8 |
2854 | echo "$as_me: failed program was:" >&5 |
2855 | sed 's/^/| /' conftest.$ac_ext >&5 |
2856 | |
2857 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
2858 | See \`config.log' for more details." >&5 |
2859 | echo "$as_me: error: C compiler cannot create executables |
2860 | See \`config.log' for more details." >&2;} |
2861 | { (exit 77); exit 77; }; } |
2862 | fi |
2863 | |
2864 | ac_exeext=$ac_cv_exeext |
d9898ee8 |
2865 | |
dd184caf |
2866 | # Check that the compiler produces executables we can run. If not, either |
d9898ee8 |
2867 | # the compiler is broken, or we cross compile. |
dd184caf |
2868 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2869 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
d9898ee8 |
2870 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2871 | # If not cross compiling, check that we can run a simple program. |
2872 | if test "$cross_compiling" != yes; then |
2873 | if { ac_try='./$ac_file' |
dd184caf |
2874 | { (case "(($ac_try" in |
2875 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2876 | *) ac_try_echo=$ac_try;; |
2877 | esac |
2878 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2879 | (eval "$ac_try") 2>&5 |
d9898ee8 |
2880 | ac_status=$? |
2881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2882 | (exit $ac_status); }; }; then |
2883 | cross_compiling=no |
2884 | else |
2885 | if test "$cross_compiling" = maybe; then |
2886 | cross_compiling=yes |
2887 | else |
2888 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
2889 | If you meant to cross compile, use \`--host'. |
2890 | See \`config.log' for more details." >&5 |
2891 | echo "$as_me: error: cannot run C compiled programs. |
2892 | If you meant to cross compile, use \`--host'. |
2893 | See \`config.log' for more details." >&2;} |
2894 | { (exit 1); exit 1; }; } |
2895 | fi |
2896 | fi |
2897 | fi |
dd184caf |
2898 | { echo "$as_me:$LINENO: result: yes" >&5 |
2899 | echo "${ECHO_T}yes" >&6; } |
d9898ee8 |
2900 | |
2901 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
2902 | ac_clean_files=$ac_clean_files_save |
dd184caf |
2903 | # Check that the compiler produces executables we can run. If not, either |
d9898ee8 |
2904 | # the compiler is broken, or we cross compile. |
dd184caf |
2905 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2906 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
2907 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
2908 | echo "${ECHO_T}$cross_compiling" >&6; } |
2909 | |
2910 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
2911 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
2912 | if { (ac_try="$ac_link" |
2913 | case "(($ac_try" in |
2914 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2915 | *) ac_try_echo=$ac_try;; |
2916 | esac |
2917 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2918 | (eval "$ac_link") 2>&5 |
d9898ee8 |
2919 | ac_status=$? |
2920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2921 | (exit $ac_status); }; then |
2922 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
2923 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
2924 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
2925 | # `rm'. |
2926 | for ac_file in conftest.exe conftest conftest.*; do |
2927 | test -f "$ac_file" || continue |
2928 | case $ac_file in |
dd184caf |
2929 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
d9898ee8 |
2930 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
d9898ee8 |
2931 | break;; |
2932 | * ) break;; |
2933 | esac |
2934 | done |
2935 | else |
2936 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
2937 | See \`config.log' for more details." >&5 |
2938 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
2939 | See \`config.log' for more details." >&2;} |
2940 | { (exit 1); exit 1; }; } |
2941 | fi |
2942 | |
2943 | rm -f conftest$ac_cv_exeext |
dd184caf |
2944 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2945 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
d9898ee8 |
2946 | |
2947 | rm -f conftest.$ac_ext |
2948 | EXEEXT=$ac_cv_exeext |
2949 | ac_exeext=$EXEEXT |
dd184caf |
2950 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2951 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
d9898ee8 |
2952 | if test "${ac_cv_objext+set}" = set; then |
2953 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2954 | else |
2955 | cat >conftest.$ac_ext <<_ACEOF |
2956 | /* confdefs.h. */ |
2957 | _ACEOF |
2958 | cat confdefs.h >>conftest.$ac_ext |
2959 | cat >>conftest.$ac_ext <<_ACEOF |
2960 | /* end confdefs.h. */ |
2961 | |
2962 | int |
2963 | main () |
2964 | { |
2965 | |
2966 | ; |
2967 | return 0; |
2968 | } |
2969 | _ACEOF |
2970 | rm -f conftest.o conftest.obj |
dd184caf |
2971 | if { (ac_try="$ac_compile" |
2972 | case "(($ac_try" in |
2973 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2974 | *) ac_try_echo=$ac_try;; |
2975 | esac |
2976 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2977 | (eval "$ac_compile") 2>&5 |
d9898ee8 |
2978 | ac_status=$? |
2979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2980 | (exit $ac_status); }; then |
dd184caf |
2981 | for ac_file in conftest.o conftest.obj conftest.*; do |
2982 | test -f "$ac_file" || continue; |
d9898ee8 |
2983 | case $ac_file in |
dd184caf |
2984 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
d9898ee8 |
2985 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2986 | break;; |
2987 | esac |
2988 | done |
2989 | else |
2990 | echo "$as_me: failed program was:" >&5 |
2991 | sed 's/^/| /' conftest.$ac_ext >&5 |
2992 | |
2993 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
2994 | See \`config.log' for more details." >&5 |
2995 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
2996 | See \`config.log' for more details." >&2;} |
2997 | { (exit 1); exit 1; }; } |
2998 | fi |
2999 | |
3000 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3001 | fi |
dd184caf |
3002 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
3003 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
d9898ee8 |
3004 | OBJEXT=$ac_cv_objext |
3005 | ac_objext=$OBJEXT |
dd184caf |
3006 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
3007 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
d9898ee8 |
3008 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
3009 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3010 | else |
3011 | cat >conftest.$ac_ext <<_ACEOF |
3012 | /* confdefs.h. */ |
3013 | _ACEOF |
3014 | cat confdefs.h >>conftest.$ac_ext |
3015 | cat >>conftest.$ac_ext <<_ACEOF |
3016 | /* end confdefs.h. */ |
3017 | |
3018 | int |
3019 | main () |
3020 | { |
3021 | #ifndef __GNUC__ |
3022 | choke me |
3023 | #endif |
3024 | |
3025 | ; |
3026 | return 0; |
3027 | } |
3028 | _ACEOF |
3029 | rm -f conftest.$ac_objext |
dd184caf |
3030 | if { (ac_try="$ac_compile" |
3031 | case "(($ac_try" in |
3032 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3033 | *) ac_try_echo=$ac_try;; |
3034 | esac |
3035 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3036 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
3037 | ac_status=$? |
3038 | grep -v '^ *+' conftest.er1 >conftest.err |
3039 | rm -f conftest.er1 |
3040 | cat conftest.err >&5 |
3041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
3042 | (exit $ac_status); } && { |
3043 | test -z "$ac_c_werror_flag" || |
3044 | test ! -s conftest.err |
3045 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
3046 | ac_compiler_gnu=yes |
3047 | else |
3048 | echo "$as_me: failed program was:" >&5 |
3049 | sed 's/^/| /' conftest.$ac_ext >&5 |
3050 | |
dd184caf |
3051 | ac_compiler_gnu=no |
d9898ee8 |
3052 | fi |
dd184caf |
3053 | |
3054 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
3055 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3056 | |
3057 | fi |
dd184caf |
3058 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
3059 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
d9898ee8 |
3060 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
3061 | ac_test_CFLAGS=${CFLAGS+set} |
3062 | ac_save_CFLAGS=$CFLAGS |
dd184caf |
3063 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
3064 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
d9898ee8 |
3065 | if test "${ac_cv_prog_cc_g+set}" = set; then |
3066 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3067 | else |
dd184caf |
3068 | ac_save_c_werror_flag=$ac_c_werror_flag |
3069 | ac_c_werror_flag=yes |
3070 | ac_cv_prog_cc_g=no |
3071 | CFLAGS="-g" |
3072 | cat >conftest.$ac_ext <<_ACEOF |
d9898ee8 |
3073 | /* confdefs.h. */ |
3074 | _ACEOF |
3075 | cat confdefs.h >>conftest.$ac_ext |
3076 | cat >>conftest.$ac_ext <<_ACEOF |
3077 | /* end confdefs.h. */ |
3078 | |
3079 | int |
3080 | main () |
3081 | { |
3082 | |
3083 | ; |
3084 | return 0; |
3085 | } |
3086 | _ACEOF |
3087 | rm -f conftest.$ac_objext |
dd184caf |
3088 | if { (ac_try="$ac_compile" |
3089 | case "(($ac_try" in |
3090 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3091 | *) ac_try_echo=$ac_try;; |
3092 | esac |
3093 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3094 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
3095 | ac_status=$? |
3096 | grep -v '^ *+' conftest.er1 >conftest.err |
3097 | rm -f conftest.er1 |
3098 | cat conftest.err >&5 |
3099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
3100 | (exit $ac_status); } && { |
3101 | test -z "$ac_c_werror_flag" || |
3102 | test ! -s conftest.err |
3103 | } && test -s conftest.$ac_objext; then |
3104 | ac_cv_prog_cc_g=yes |
3105 | else |
3106 | echo "$as_me: failed program was:" >&5 |
3107 | sed 's/^/| /' conftest.$ac_ext >&5 |
3108 | |
3109 | CFLAGS="" |
3110 | cat >conftest.$ac_ext <<_ACEOF |
3111 | /* confdefs.h. */ |
3112 | _ACEOF |
3113 | cat confdefs.h >>conftest.$ac_ext |
3114 | cat >>conftest.$ac_ext <<_ACEOF |
3115 | /* end confdefs.h. */ |
3116 | |
3117 | int |
3118 | main () |
3119 | { |
3120 | |
3121 | ; |
3122 | return 0; |
3123 | } |
3124 | _ACEOF |
3125 | rm -f conftest.$ac_objext |
3126 | if { (ac_try="$ac_compile" |
3127 | case "(($ac_try" in |
3128 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3129 | *) ac_try_echo=$ac_try;; |
3130 | esac |
3131 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3132 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
3133 | ac_status=$? |
dd184caf |
3134 | grep -v '^ *+' conftest.er1 >conftest.err |
3135 | rm -f conftest.er1 |
3136 | cat conftest.err >&5 |
d9898ee8 |
3137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
3138 | (exit $ac_status); } && { |
3139 | test -z "$ac_c_werror_flag" || |
3140 | test ! -s conftest.err |
3141 | } && test -s conftest.$ac_objext; then |
3142 | : |
3143 | else |
3144 | echo "$as_me: failed program was:" >&5 |
3145 | sed 's/^/| /' conftest.$ac_ext >&5 |
3146 | |
3147 | ac_c_werror_flag=$ac_save_c_werror_flag |
3148 | CFLAGS="-g" |
3149 | cat >conftest.$ac_ext <<_ACEOF |
3150 | /* confdefs.h. */ |
3151 | _ACEOF |
3152 | cat confdefs.h >>conftest.$ac_ext |
3153 | cat >>conftest.$ac_ext <<_ACEOF |
3154 | /* end confdefs.h. */ |
3155 | |
3156 | int |
3157 | main () |
3158 | { |
3159 | |
3160 | ; |
3161 | return 0; |
3162 | } |
3163 | _ACEOF |
3164 | rm -f conftest.$ac_objext |
3165 | if { (ac_try="$ac_compile" |
3166 | case "(($ac_try" in |
3167 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3168 | *) ac_try_echo=$ac_try;; |
3169 | esac |
3170 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3171 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
3172 | ac_status=$? |
dd184caf |
3173 | grep -v '^ *+' conftest.er1 >conftest.err |
3174 | rm -f conftest.er1 |
3175 | cat conftest.err >&5 |
d9898ee8 |
3176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
3177 | (exit $ac_status); } && { |
3178 | test -z "$ac_c_werror_flag" || |
3179 | test ! -s conftest.err |
3180 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
3181 | ac_cv_prog_cc_g=yes |
3182 | else |
3183 | echo "$as_me: failed program was:" >&5 |
3184 | sed 's/^/| /' conftest.$ac_ext >&5 |
3185 | |
dd184caf |
3186 | |
3187 | fi |
3188 | |
3189 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3190 | fi |
3191 | |
3192 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
3193 | fi |
dd184caf |
3194 | |
3195 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3196 | ac_c_werror_flag=$ac_save_c_werror_flag |
d9898ee8 |
3197 | fi |
dd184caf |
3198 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
3199 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
d9898ee8 |
3200 | if test "$ac_test_CFLAGS" = set; then |
3201 | CFLAGS=$ac_save_CFLAGS |
3202 | elif test $ac_cv_prog_cc_g = yes; then |
3203 | if test "$GCC" = yes; then |
3204 | CFLAGS="-g -O2" |
3205 | else |
3206 | CFLAGS="-g" |
3207 | fi |
3208 | else |
3209 | if test "$GCC" = yes; then |
3210 | CFLAGS="-O2" |
3211 | else |
3212 | CFLAGS= |
3213 | fi |
3214 | fi |
dd184caf |
3215 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
3216 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
3217 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
d9898ee8 |
3218 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3219 | else |
dd184caf |
3220 | ac_cv_prog_cc_c89=no |
d9898ee8 |
3221 | ac_save_CC=$CC |
3222 | cat >conftest.$ac_ext <<_ACEOF |
3223 | /* confdefs.h. */ |
3224 | _ACEOF |
3225 | cat confdefs.h >>conftest.$ac_ext |
3226 | cat >>conftest.$ac_ext <<_ACEOF |
3227 | /* end confdefs.h. */ |
3228 | #include <stdarg.h> |
3229 | #include <stdio.h> |
3230 | #include <sys/types.h> |
3231 | #include <sys/stat.h> |
3232 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
3233 | struct buf { int x; }; |
3234 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
3235 | static char *e (p, i) |
3236 | char **p; |
3237 | int i; |
3238 | { |
3239 | return p[i]; |
3240 | } |
3241 | static char *f (char * (*g) (char **, int), char **p, ...) |
3242 | { |
3243 | char *s; |
3244 | va_list v; |
3245 | va_start (v,p); |
3246 | s = g (p, va_arg (v,int)); |
3247 | va_end (v); |
3248 | return s; |
3249 | } |
3250 | |
3251 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
3252 | function prototypes and stuff, but not '\xHH' hex character constants. |
3253 | These don't provoke an error unfortunately, instead are silently treated |
dd184caf |
3254 | as 'x'. The following induces an error, until -std is added to get |
d9898ee8 |
3255 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3256 | array size at least. It's necessary to write '\x00'==0 to get something |
dd184caf |
3257 | that's true only with -std. */ |
d9898ee8 |
3258 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3259 | |
dd184caf |
3260 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3261 | inside strings and character constants. */ |
3262 | #define FOO(x) 'x' |
3263 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
3264 | |
d9898ee8 |
3265 | int test (int i, double x); |
3266 | struct s1 {int (*f) (int a);}; |
3267 | struct s2 {int (*f) (double a);}; |
3268 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
3269 | int argc; |
3270 | char **argv; |
3271 | int |
3272 | main () |
3273 | { |
3274 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
3275 | ; |
3276 | return 0; |
3277 | } |
3278 | _ACEOF |
dd184caf |
3279 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3280 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
d9898ee8 |
3281 | do |
3282 | CC="$ac_save_CC $ac_arg" |
3283 | rm -f conftest.$ac_objext |
dd184caf |
3284 | if { (ac_try="$ac_compile" |
3285 | case "(($ac_try" in |
3286 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3287 | *) ac_try_echo=$ac_try;; |
3288 | esac |
3289 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3290 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
3291 | ac_status=$? |
3292 | grep -v '^ *+' conftest.er1 >conftest.err |
3293 | rm -f conftest.er1 |
3294 | cat conftest.err >&5 |
3295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
3296 | (exit $ac_status); } && { |
3297 | test -z "$ac_c_werror_flag" || |
3298 | test ! -s conftest.err |
3299 | } && test -s conftest.$ac_objext; then |
3300 | ac_cv_prog_cc_c89=$ac_arg |
d9898ee8 |
3301 | else |
3302 | echo "$as_me: failed program was:" >&5 |
3303 | sed 's/^/| /' conftest.$ac_ext >&5 |
3304 | |
dd184caf |
3305 | |
d9898ee8 |
3306 | fi |
dd184caf |
3307 | |
3308 | rm -f core conftest.err conftest.$ac_objext |
3309 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
d9898ee8 |
3310 | done |
dd184caf |
3311 | rm -f conftest.$ac_ext |
d9898ee8 |
3312 | CC=$ac_save_CC |
3313 | |
3314 | fi |
dd184caf |
3315 | # AC_CACHE_VAL |
3316 | case "x$ac_cv_prog_cc_c89" in |
3317 | x) |
3318 | { echo "$as_me:$LINENO: result: none needed" >&5 |
3319 | echo "${ECHO_T}none needed" >&6; } ;; |
3320 | xno) |
3321 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
3322 | echo "${ECHO_T}unsupported" >&6; } ;; |
d9898ee8 |
3323 | *) |
dd184caf |
3324 | CC="$CC $ac_cv_prog_cc_c89" |
3325 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
3326 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
d9898ee8 |
3327 | esac |
3328 | |
d9898ee8 |
3329 | |
d9898ee8 |
3330 | ac_ext=c |
3331 | ac_cpp='$CPP $CPPFLAGS' |
3332 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3333 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3334 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3335 | DEPDIR="${am__leading_dot}deps" |
3336 | |
dd184caf |
3337 | ac_config_commands="$ac_config_commands depfiles" |
d9898ee8 |
3338 | |
3339 | |
3340 | am_make=${MAKE-make} |
3341 | cat > confinc << 'END' |
3342 | am__doit: |
3343 | @echo done |
3344 | .PHONY: am__doit |
3345 | END |
3346 | # If we don't find an include directive, just comment out the code. |
dd184caf |
3347 | { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
3348 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } |
d9898ee8 |
3349 | am__include="#" |
3350 | am__quote= |
3351 | _am_result=none |
3352 | # First try GNU make style include. |
3353 | echo "include confinc" > confmf |
3354 | # We grep out `Entering directory' and `Leaving directory' |
3355 | # messages which can occur if `w' ends up in MAKEFLAGS. |
3356 | # In particular we don't look at `^make:' because GNU make might |
3357 | # be invoked under some other name (usually "gmake"), in which |
3358 | # case it prints its new name instead of `make'. |
3359 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
3360 | am__include=include |
3361 | am__quote= |
3362 | _am_result=GNU |
3363 | fi |
3364 | # Now try BSD make style include. |
3365 | if test "$am__include" = "#"; then |
3366 | echo '.include "confinc"' > confmf |
3367 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
3368 | am__include=.include |
3369 | am__quote="\"" |
3370 | _am_result=BSD |
3371 | fi |
3372 | fi |
3373 | |
3374 | |
dd184caf |
3375 | { echo "$as_me:$LINENO: result: $_am_result" >&5 |
3376 | echo "${ECHO_T}$_am_result" >&6; } |
d9898ee8 |
3377 | rm -f confinc confmf |
3378 | |
dd184caf |
3379 | # Check whether --enable-dependency-tracking was given. |
d9898ee8 |
3380 | if test "${enable_dependency_tracking+set}" = set; then |
dd184caf |
3381 | enableval=$enable_dependency_tracking; |
3382 | fi |
d9898ee8 |
3383 | |
d9898ee8 |
3384 | if test "x$enable_dependency_tracking" != xno; then |
3385 | am_depcomp="$ac_aux_dir/depcomp" |
3386 | AMDEPBACKSLASH='\' |
3387 | fi |
dd184caf |
3388 | if test "x$enable_dependency_tracking" != xno; then |
d9898ee8 |
3389 | AMDEP_TRUE= |
3390 | AMDEP_FALSE='#' |
3391 | else |
3392 | AMDEP_TRUE='#' |
3393 | AMDEP_FALSE= |
3394 | fi |
3395 | |
3396 | |
3397 | |
d9898ee8 |
3398 | depcc="$CC" am_compiler_list= |
3399 | |
dd184caf |
3400 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
3401 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } |
d9898ee8 |
3402 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
3403 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3404 | else |
3405 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
3406 | # We make a subdir and do the tests there. Otherwise we can end up |
3407 | # making bogus files that we don't know about and never remove. For |
3408 | # instance it was reported that on HP-UX the gcc test will end up |
3409 | # making a dummy file named `D' -- because `-MD' means `put the output |
3410 | # in D'. |
3411 | mkdir conftest.dir |
3412 | # Copy depcomp to subdir because otherwise we won't find it if we're |
3413 | # using a relative directory. |
3414 | cp "$am_depcomp" conftest.dir |
3415 | cd conftest.dir |
3416 | # We will build objects and dependencies in a subdirectory because |
3417 | # it helps to detect inapplicable dependency modes. For instance |
3418 | # both Tru64's cc and ICC support -MD to output dependencies as a |
3419 | # side effect of compilation, but ICC will put the dependencies in |
3420 | # the current directory while Tru64 will put them in the object |
3421 | # directory. |
3422 | mkdir sub |
3423 | |
3424 | am_cv_CC_dependencies_compiler_type=none |
3425 | if test "$am_compiler_list" = ""; then |
3426 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
3427 | fi |
3428 | for depmode in $am_compiler_list; do |
3429 | # Setup a source with many dependencies, because some compilers |
3430 | # like to wrap large dependency lists on column 80 (with \), and |
3431 | # we should not choose a depcomp mode which is confused by this. |
3432 | # |
3433 | # We need to recreate these files for each test, as the compiler may |
3434 | # overwrite some of them when testing with obscure command lines. |
3435 | # This happens at least with the AIX C compiler. |
3436 | : > sub/conftest.c |
3437 | for i in 1 2 3 4 5 6; do |
3438 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
3439 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
3440 | # Solaris 8's {/usr,}/bin/sh. |
3441 | touch sub/conftst$i.h |
3442 | done |
3443 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
3444 | |
3445 | case $depmode in |
3446 | nosideeffect) |
3447 | # after this tag, mechanisms are not by side-effect, so they'll |
3448 | # only be used when explicitly requested |
3449 | if test "x$enable_dependency_tracking" = xyes; then |
3450 | continue |
3451 | else |
3452 | break |
3453 | fi |
3454 | ;; |
3455 | none) break ;; |
3456 | esac |
3457 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
3458 | # mode. It turns out that the SunPro C++ compiler does not properly |
3459 | # handle `-M -o', and we need to detect this. |
3460 | if depmode=$depmode \ |
3461 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
3462 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
3463 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
3464 | >/dev/null 2>conftest.err && |
dd184caf |
3465 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
d9898ee8 |
3466 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
3467 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
3468 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
3469 | # icc doesn't choke on unknown options, it will just issue warnings |
3470 | # or remarks (even with -Werror). So we grep stderr for any message |
3471 | # that says an option was ignored or not supported. |
3472 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
3473 | # icc: Command line warning: ignoring option '-M'; no argument required |
3474 | # The diagnosis changed in icc 8.0: |
3475 | # icc: Command line remark: option '-MP' not supported |
3476 | if (grep 'ignoring option' conftest.err || |
3477 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
3478 | am_cv_CC_dependencies_compiler_type=$depmode |
3479 | break |
3480 | fi |
3481 | fi |
3482 | done |
3483 | |
3484 | cd .. |
3485 | rm -rf conftest.dir |
3486 | else |
3487 | am_cv_CC_dependencies_compiler_type=none |
3488 | fi |
3489 | |
3490 | fi |
dd184caf |
3491 | { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
3492 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } |
d9898ee8 |
3493 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
3494 | |
dd184caf |
3495 | if |
d9898ee8 |
3496 | test "x$enable_dependency_tracking" != xno \ |
3497 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
3498 | am__fastdepCC_TRUE= |
3499 | am__fastdepCC_FALSE='#' |
3500 | else |
3501 | am__fastdepCC_TRUE='#' |
3502 | am__fastdepCC_FALSE= |
3503 | fi |
3504 | |
3505 | |
3506 | |
3507 | ac_ext=c |
3508 | ac_cpp='$CPP $CPPFLAGS' |
3509 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3510 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3511 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
dd184caf |
3512 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
3513 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
d9898ee8 |
3514 | # On Suns, sometimes $CPP names a directory. |
3515 | if test -n "$CPP" && test -d "$CPP"; then |
3516 | CPP= |
3517 | fi |
3518 | if test -z "$CPP"; then |
3519 | if test "${ac_cv_prog_CPP+set}" = set; then |
3520 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3521 | else |
3522 | # Double quotes because CPP needs to be expanded |
3523 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
3524 | do |
3525 | ac_preproc_ok=false |
3526 | for ac_c_preproc_warn_flag in '' yes |
3527 | do |
3528 | # Use a header file that comes with gcc, so configuring glibc |
3529 | # with a fresh cross-compiler works. |
3530 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
3531 | # <limits.h> exists even on freestanding compilers. |
3532 | # On the NeXT, cc -E runs the code through the compiler's parser, |
3533 | # not just through cpp. "Syntax error" is here to catch this case. |
3534 | cat >conftest.$ac_ext <<_ACEOF |
3535 | /* confdefs.h. */ |
3536 | _ACEOF |
3537 | cat confdefs.h >>conftest.$ac_ext |
3538 | cat >>conftest.$ac_ext <<_ACEOF |
3539 | /* end confdefs.h. */ |
3540 | #ifdef __STDC__ |
3541 | # include <limits.h> |
3542 | #else |
3543 | # include <assert.h> |
3544 | #endif |
3545 | Syntax error |
3546 | _ACEOF |
dd184caf |
3547 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3548 | case "(($ac_try" in |
3549 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3550 | *) ac_try_echo=$ac_try;; |
3551 | esac |
3552 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3553 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
3554 | ac_status=$? |
3555 | grep -v '^ *+' conftest.er1 >conftest.err |
3556 | rm -f conftest.er1 |
3557 | cat conftest.err >&5 |
3558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
3559 | (exit $ac_status); } >/dev/null && { |
3560 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
3561 | test ! -s conftest.err |
3562 | }; then |
d9898ee8 |
3563 | : |
3564 | else |
3565 | echo "$as_me: failed program was:" >&5 |
3566 | sed 's/^/| /' conftest.$ac_ext >&5 |
3567 | |
3568 | # Broken: fails on valid input. |
3569 | continue |
3570 | fi |
dd184caf |
3571 | |
d9898ee8 |
3572 | rm -f conftest.err conftest.$ac_ext |
3573 | |
dd184caf |
3574 | # OK, works on sane cases. Now check whether nonexistent headers |
d9898ee8 |
3575 | # can be detected and how. |
3576 | cat >conftest.$ac_ext <<_ACEOF |
3577 | /* confdefs.h. */ |
3578 | _ACEOF |
3579 | cat confdefs.h >>conftest.$ac_ext |
3580 | cat >>conftest.$ac_ext <<_ACEOF |
3581 | /* end confdefs.h. */ |
3582 | #include <ac_nonexistent.h> |
3583 | _ACEOF |
dd184caf |
3584 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3585 | case "(($ac_try" in |
3586 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3587 | *) ac_try_echo=$ac_try;; |
3588 | esac |
3589 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3590 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
3591 | ac_status=$? |
3592 | grep -v '^ *+' conftest.er1 >conftest.err |
3593 | rm -f conftest.er1 |
3594 | cat conftest.err >&5 |
3595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
3596 | (exit $ac_status); } >/dev/null && { |
3597 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
3598 | test ! -s conftest.err |
3599 | }; then |
d9898ee8 |
3600 | # Broken: success on invalid input. |
3601 | continue |
3602 | else |
3603 | echo "$as_me: failed program was:" >&5 |
3604 | sed 's/^/| /' conftest.$ac_ext >&5 |
3605 | |
3606 | # Passes both tests. |
3607 | ac_preproc_ok=: |
3608 | break |
3609 | fi |
dd184caf |
3610 | |
d9898ee8 |
3611 | rm -f conftest.err conftest.$ac_ext |
3612 | |
3613 | done |
3614 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
3615 | rm -f conftest.err conftest.$ac_ext |
3616 | if $ac_preproc_ok; then |
3617 | break |
3618 | fi |
3619 | |
3620 | done |
3621 | ac_cv_prog_CPP=$CPP |
3622 | |
3623 | fi |
3624 | CPP=$ac_cv_prog_CPP |
3625 | else |
3626 | ac_cv_prog_CPP=$CPP |
3627 | fi |
dd184caf |
3628 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
3629 | echo "${ECHO_T}$CPP" >&6; } |
d9898ee8 |
3630 | ac_preproc_ok=false |
3631 | for ac_c_preproc_warn_flag in '' yes |
3632 | do |
3633 | # Use a header file that comes with gcc, so configuring glibc |
3634 | # with a fresh cross-compiler works. |
3635 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
3636 | # <limits.h> exists even on freestanding compilers. |
3637 | # On the NeXT, cc -E runs the code through the compiler's parser, |
3638 | # not just through cpp. "Syntax error" is here to catch this case. |
3639 | cat >conftest.$ac_ext <<_ACEOF |
3640 | /* confdefs.h. */ |
3641 | _ACEOF |
3642 | cat confdefs.h >>conftest.$ac_ext |
3643 | cat >>conftest.$ac_ext <<_ACEOF |
3644 | /* end confdefs.h. */ |
3645 | #ifdef __STDC__ |
3646 | # include <limits.h> |
3647 | #else |
3648 | # include <assert.h> |
3649 | #endif |
3650 | Syntax error |
3651 | _ACEOF |
dd184caf |
3652 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3653 | case "(($ac_try" in |
3654 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3655 | *) ac_try_echo=$ac_try;; |
3656 | esac |
3657 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3658 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
3659 | ac_status=$? |
3660 | grep -v '^ *+' conftest.er1 >conftest.err |
3661 | rm -f conftest.er1 |
3662 | cat conftest.err >&5 |
3663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
3664 | (exit $ac_status); } >/dev/null && { |
3665 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
3666 | test ! -s conftest.err |
3667 | }; then |
d9898ee8 |
3668 | : |
3669 | else |
3670 | echo "$as_me: failed program was:" >&5 |
3671 | sed 's/^/| /' conftest.$ac_ext >&5 |
3672 | |
3673 | # Broken: fails on valid input. |
3674 | continue |
3675 | fi |
dd184caf |
3676 | |
d9898ee8 |
3677 | rm -f conftest.err conftest.$ac_ext |
3678 | |
dd184caf |
3679 | # OK, works on sane cases. Now check whether nonexistent headers |
d9898ee8 |
3680 | # can be detected and how. |
3681 | cat >conftest.$ac_ext <<_ACEOF |
3682 | /* confdefs.h. */ |
3683 | _ACEOF |
3684 | cat confdefs.h >>conftest.$ac_ext |
3685 | cat >>conftest.$ac_ext <<_ACEOF |
3686 | /* end confdefs.h. */ |
3687 | #include <ac_nonexistent.h> |
3688 | _ACEOF |
dd184caf |
3689 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3690 | case "(($ac_try" in |
3691 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3692 | *) ac_try_echo=$ac_try;; |
3693 | esac |
3694 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3695 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
3696 | ac_status=$? |
3697 | grep -v '^ *+' conftest.er1 >conftest.err |
3698 | rm -f conftest.er1 |
3699 | cat conftest.err >&5 |
3700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
3701 | (exit $ac_status); } >/dev/null && { |
3702 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
3703 | test ! -s conftest.err |
3704 | }; then |
d9898ee8 |
3705 | # Broken: success on invalid input. |
3706 | continue |
3707 | else |
3708 | echo "$as_me: failed program was:" >&5 |
3709 | sed 's/^/| /' conftest.$ac_ext >&5 |
3710 | |
3711 | # Passes both tests. |
3712 | ac_preproc_ok=: |
3713 | break |
3714 | fi |
dd184caf |
3715 | |
d9898ee8 |
3716 | rm -f conftest.err conftest.$ac_ext |
3717 | |
3718 | done |
3719 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
3720 | rm -f conftest.err conftest.$ac_ext |
3721 | if $ac_preproc_ok; then |
3722 | : |
3723 | else |
3724 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
3725 | See \`config.log' for more details." >&5 |
3726 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
3727 | See \`config.log' for more details." >&2;} |
3728 | { (exit 1); exit 1; }; } |
3729 | fi |
3730 | |
3731 | ac_ext=c |
3732 | ac_cpp='$CPP $CPPFLAGS' |
3733 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3734 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3735 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3736 | |
3737 | |
dd184caf |
3738 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
3739 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
3740 | if test "${ac_cv_path_GREP+set}" = set; then |
3741 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3742 | else |
3743 | # Extract the first word of "grep ggrep" to use in msg output |
3744 | if test -z "$GREP"; then |
3745 | set dummy grep ggrep; ac_prog_name=$2 |
3746 | if test "${ac_cv_path_GREP+set}" = set; then |
3747 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3748 | else |
3749 | ac_path_GREP_found=false |
3750 | # Loop through the user's path and test for each of PROGNAME-LIST |
3751 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3752 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
3753 | do |
3754 | IFS=$as_save_IFS |
3755 | test -z "$as_dir" && as_dir=. |
3756 | for ac_prog in grep ggrep; do |
3757 | for ac_exec_ext in '' $ac_executable_extensions; do |
3758 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
3759 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
3760 | # Check for GNU ac_path_GREP and select it if it is found. |
3761 | # Check for GNU $ac_path_GREP |
3762 | case `"$ac_path_GREP" --version 2>&1` in |
3763 | *GNU*) |
3764 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
3765 | *) |
3766 | ac_count=0 |
3767 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
3768 | while : |
3769 | do |
3770 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
3771 | mv "conftest.tmp" "conftest.in" |
3772 | cp "conftest.in" "conftest.nl" |
3773 | echo 'GREP' >> "conftest.nl" |
3774 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3775 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
3776 | ac_count=`expr $ac_count + 1` |
3777 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
3778 | # Best one so far, save it but keep looking for a better one |
3779 | ac_cv_path_GREP="$ac_path_GREP" |
3780 | ac_path_GREP_max=$ac_count |
3781 | fi |
3782 | # 10*(2^10) chars as input seems more than enough |
3783 | test $ac_count -gt 10 && break |
3784 | done |
3785 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
3786 | esac |
3787 | |
3788 | |
3789 | $ac_path_GREP_found && break 3 |
3790 | done |
3791 | done |
3792 | |
3793 | done |
3794 | IFS=$as_save_IFS |
3795 | |
3796 | |
3797 | fi |
3798 | |
3799 | GREP="$ac_cv_path_GREP" |
3800 | if test -z "$GREP"; then |
3801 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
3802 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
3803 | { (exit 1); exit 1; }; } |
3804 | fi |
3805 | |
3806 | else |
3807 | ac_cv_path_GREP=$GREP |
3808 | fi |
3809 | |
3810 | |
3811 | fi |
3812 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
3813 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
3814 | GREP="$ac_cv_path_GREP" |
3815 | |
3816 | |
3817 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
3818 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
3819 | if test "${ac_cv_path_EGREP+set}" = set; then |
d9898ee8 |
3820 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3821 | else |
dd184caf |
3822 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
3823 | then ac_cv_path_EGREP="$GREP -E" |
3824 | else |
3825 | # Extract the first word of "egrep" to use in msg output |
3826 | if test -z "$EGREP"; then |
3827 | set dummy egrep; ac_prog_name=$2 |
3828 | if test "${ac_cv_path_EGREP+set}" = set; then |
3829 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3830 | else |
3831 | ac_path_EGREP_found=false |
3832 | # Loop through the user's path and test for each of PROGNAME-LIST |
3833 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3834 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
3835 | do |
3836 | IFS=$as_save_IFS |
3837 | test -z "$as_dir" && as_dir=. |
3838 | for ac_prog in egrep; do |
3839 | for ac_exec_ext in '' $ac_executable_extensions; do |
3840 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
3841 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
3842 | # Check for GNU ac_path_EGREP and select it if it is found. |
3843 | # Check for GNU $ac_path_EGREP |
3844 | case `"$ac_path_EGREP" --version 2>&1` in |
3845 | *GNU*) |
3846 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
3847 | *) |
3848 | ac_count=0 |
3849 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
3850 | while : |
3851 | do |
3852 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
3853 | mv "conftest.tmp" "conftest.in" |
3854 | cp "conftest.in" "conftest.nl" |
3855 | echo 'EGREP' >> "conftest.nl" |
3856 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3857 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
3858 | ac_count=`expr $ac_count + 1` |
3859 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
3860 | # Best one so far, save it but keep looking for a better one |
3861 | ac_cv_path_EGREP="$ac_path_EGREP" |
3862 | ac_path_EGREP_max=$ac_count |
d9898ee8 |
3863 | fi |
dd184caf |
3864 | # 10*(2^10) chars as input seems more than enough |
3865 | test $ac_count -gt 10 && break |
3866 | done |
3867 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
3868 | esac |
3869 | |
3870 | |
3871 | $ac_path_EGREP_found && break 3 |
3872 | done |
3873 | done |
3874 | |
3875 | done |
3876 | IFS=$as_save_IFS |
3877 | |
3878 | |
3879 | fi |
3880 | |
3881 | EGREP="$ac_cv_path_EGREP" |
3882 | if test -z "$EGREP"; then |
3883 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
3884 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
3885 | { (exit 1); exit 1; }; } |
3886 | fi |
3887 | |
3888 | else |
3889 | ac_cv_path_EGREP=$EGREP |
3890 | fi |
3891 | |
3892 | |
3893 | fi |
d9898ee8 |
3894 | fi |
dd184caf |
3895 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
3896 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
3897 | EGREP="$ac_cv_path_EGREP" |
d9898ee8 |
3898 | |
3899 | |
3900 | |
dd184caf |
3901 | { echo "$as_me:$LINENO: checking for AIX" >&5 |
3902 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6; } |
d9898ee8 |
3903 | cat >conftest.$ac_ext <<_ACEOF |
3904 | /* confdefs.h. */ |
3905 | _ACEOF |
3906 | cat confdefs.h >>conftest.$ac_ext |
3907 | cat >>conftest.$ac_ext <<_ACEOF |
3908 | /* end confdefs.h. */ |
3909 | #ifdef _AIX |
3910 | yes |
3911 | #endif |
3912 | |
3913 | _ACEOF |
3914 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3915 | $EGREP "yes" >/dev/null 2>&1; then |
dd184caf |
3916 | { echo "$as_me:$LINENO: result: yes" >&5 |
3917 | echo "${ECHO_T}yes" >&6; } |
d9898ee8 |
3918 | cat >>confdefs.h <<\_ACEOF |
3919 | #define _ALL_SOURCE 1 |
3920 | _ACEOF |
3921 | |
3922 | else |
dd184caf |
3923 | { echo "$as_me:$LINENO: result: no" >&5 |
3924 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
3925 | fi |
3926 | rm -f conftest* |
3927 | |
3928 | |
dd184caf |
3929 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
3930 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
d9898ee8 |
3931 | if test "${ac_cv_header_stdc+set}" = set; then |
3932 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3933 | else |
3934 | cat >conftest.$ac_ext <<_ACEOF |
3935 | /* confdefs.h. */ |
3936 | _ACEOF |
3937 | cat confdefs.h >>conftest.$ac_ext |
3938 | cat >>conftest.$ac_ext <<_ACEOF |
3939 | /* end confdefs.h. */ |
3940 | #include <stdlib.h> |
3941 | #include <stdarg.h> |
3942 | #include <string.h> |
3943 | #include <float.h> |
3944 | |
3945 | int |
3946 | main () |
3947 | { |
3948 | |
3949 | ; |
3950 | return 0; |
3951 | } |
3952 | _ACEOF |
3953 | rm -f conftest.$ac_objext |
dd184caf |
3954 | if { (ac_try="$ac_compile" |
3955 | case "(($ac_try" in |
3956 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3957 | *) ac_try_echo=$ac_try;; |
3958 | esac |
3959 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3960 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
3961 | ac_status=$? |
3962 | grep -v '^ *+' conftest.er1 >conftest.err |
3963 | rm -f conftest.er1 |
3964 | cat conftest.err >&5 |
3965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
3966 | (exit $ac_status); } && { |
3967 | test -z "$ac_c_werror_flag" || |
3968 | test ! -s conftest.err |
3969 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
3970 | ac_cv_header_stdc=yes |
3971 | else |
3972 | echo "$as_me: failed program was:" >&5 |
3973 | sed 's/^/| /' conftest.$ac_ext >&5 |
3974 | |
dd184caf |
3975 | ac_cv_header_stdc=no |
d9898ee8 |
3976 | fi |
dd184caf |
3977 | |
3978 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
3979 | |
3980 | if test $ac_cv_header_stdc = yes; then |
3981 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
3982 | cat >conftest.$ac_ext <<_ACEOF |
3983 | /* confdefs.h. */ |
3984 | _ACEOF |
3985 | cat confdefs.h >>conftest.$ac_ext |
3986 | cat >>conftest.$ac_ext <<_ACEOF |
3987 | /* end confdefs.h. */ |
3988 | #include <string.h> |
3989 | |
3990 | _ACEOF |
3991 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3992 | $EGREP "memchr" >/dev/null 2>&1; then |
3993 | : |
3994 | else |
3995 | ac_cv_header_stdc=no |
3996 | fi |
3997 | rm -f conftest* |
3998 | |
3999 | fi |
4000 | |
4001 | if test $ac_cv_header_stdc = yes; then |
4002 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
4003 | cat >conftest.$ac_ext <<_ACEOF |
4004 | /* confdefs.h. */ |
4005 | _ACEOF |
4006 | cat confdefs.h >>conftest.$ac_ext |
4007 | cat >>conftest.$ac_ext <<_ACEOF |
4008 | /* end confdefs.h. */ |
4009 | #include <stdlib.h> |
4010 | |
4011 | _ACEOF |
4012 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4013 | $EGREP "free" >/dev/null 2>&1; then |
4014 | : |
4015 | else |
4016 | ac_cv_header_stdc=no |
4017 | fi |
4018 | rm -f conftest* |
4019 | |
4020 | fi |
4021 | |
4022 | if test $ac_cv_header_stdc = yes; then |
4023 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
4024 | if test "$cross_compiling" = yes; then |
4025 | : |
4026 | else |
4027 | cat >conftest.$ac_ext <<_ACEOF |
4028 | /* confdefs.h. */ |
4029 | _ACEOF |
4030 | cat confdefs.h >>conftest.$ac_ext |
4031 | cat >>conftest.$ac_ext <<_ACEOF |
4032 | /* end confdefs.h. */ |
4033 | #include <ctype.h> |
dd184caf |
4034 | #include <stdlib.h> |
d9898ee8 |
4035 | #if ((' ' & 0x0FF) == 0x020) |
4036 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
4037 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
4038 | #else |
4039 | # define ISLOWER(c) \ |
4040 | (('a' <= (c) && (c) <= 'i') \ |
4041 | || ('j' <= (c) && (c) <= 'r') \ |
4042 | || ('s' <= (c) && (c) <= 'z')) |
4043 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
4044 | #endif |
4045 | |
4046 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
4047 | int |
4048 | main () |
4049 | { |
4050 | int i; |
4051 | for (i = 0; i < 256; i++) |
4052 | if (XOR (islower (i), ISLOWER (i)) |
4053 | || toupper (i) != TOUPPER (i)) |
dd184caf |
4054 | return 2; |
4055 | return 0; |
d9898ee8 |
4056 | } |
4057 | _ACEOF |
4058 | rm -f conftest$ac_exeext |
dd184caf |
4059 | if { (ac_try="$ac_link" |
4060 | case "(($ac_try" in |
4061 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4062 | *) ac_try_echo=$ac_try;; |
4063 | esac |
4064 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4065 | (eval "$ac_link") 2>&5 |
d9898ee8 |
4066 | ac_status=$? |
4067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4068 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
dd184caf |
4069 | { (case "(($ac_try" in |
4070 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4071 | *) ac_try_echo=$ac_try;; |
4072 | esac |
4073 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4074 | (eval "$ac_try") 2>&5 |
d9898ee8 |
4075 | ac_status=$? |
4076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4077 | (exit $ac_status); }; }; then |
4078 | : |
4079 | else |
4080 | echo "$as_me: program exited with status $ac_status" >&5 |
4081 | echo "$as_me: failed program was:" >&5 |
4082 | sed 's/^/| /' conftest.$ac_ext >&5 |
4083 | |
4084 | ( exit $ac_status ) |
4085 | ac_cv_header_stdc=no |
4086 | fi |
dd184caf |
4087 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
4088 | fi |
dd184caf |
4089 | |
4090 | |
d9898ee8 |
4091 | fi |
4092 | fi |
dd184caf |
4093 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
4094 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
d9898ee8 |
4095 | if test $ac_cv_header_stdc = yes; then |
4096 | |
4097 | cat >>confdefs.h <<\_ACEOF |
4098 | #define STDC_HEADERS 1 |
4099 | _ACEOF |
4100 | |
4101 | fi |
4102 | |
4103 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
4104 | |
4105 | |
4106 | |
4107 | |
4108 | |
4109 | |
4110 | |
4111 | |
4112 | |
4113 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
4114 | inttypes.h stdint.h unistd.h |
4115 | do |
4116 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
dd184caf |
4117 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4118 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
4119 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
4120 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4121 | else |
4122 | cat >conftest.$ac_ext <<_ACEOF |
4123 | /* confdefs.h. */ |
4124 | _ACEOF |
4125 | cat confdefs.h >>conftest.$ac_ext |
4126 | cat >>conftest.$ac_ext <<_ACEOF |
4127 | /* end confdefs.h. */ |
4128 | $ac_includes_default |
4129 | |
4130 | #include <$ac_header> |
4131 | _ACEOF |
4132 | rm -f conftest.$ac_objext |
dd184caf |
4133 | if { (ac_try="$ac_compile" |
4134 | case "(($ac_try" in |
4135 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4136 | *) ac_try_echo=$ac_try;; |
4137 | esac |
4138 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4139 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
4140 | ac_status=$? |
4141 | grep -v '^ *+' conftest.er1 >conftest.err |
4142 | rm -f conftest.er1 |
4143 | cat conftest.err >&5 |
4144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
4145 | (exit $ac_status); } && { |
4146 | test -z "$ac_c_werror_flag" || |
4147 | test ! -s conftest.err |
4148 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
4149 | eval "$as_ac_Header=yes" |
4150 | else |
4151 | echo "$as_me: failed program was:" >&5 |
4152 | sed 's/^/| /' conftest.$ac_ext >&5 |
4153 | |
dd184caf |
4154 | eval "$as_ac_Header=no" |
d9898ee8 |
4155 | fi |
dd184caf |
4156 | |
4157 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
4158 | fi |
dd184caf |
4159 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4160 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
4161 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
4162 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
4163 | cat >>confdefs.h <<_ACEOF |
4164 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
4165 | _ACEOF |
4166 | |
4167 | fi |
4168 | |
4169 | done |
4170 | |
4171 | |
4172 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
dd184caf |
4173 | { echo "$as_me:$LINENO: checking for minix/config.h" >&5 |
4174 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; } |
d9898ee8 |
4175 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
4176 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4177 | fi |
dd184caf |
4178 | { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 |
4179 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; } |
d9898ee8 |
4180 | else |
4181 | # Is the header compilable? |
dd184caf |
4182 | { echo "$as_me:$LINENO: checking minix/config.h usability" >&5 |
4183 | echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; } |
d9898ee8 |
4184 | cat >conftest.$ac_ext <<_ACEOF |
4185 | /* confdefs.h. */ |
4186 | _ACEOF |
4187 | cat confdefs.h >>conftest.$ac_ext |
4188 | cat >>conftest.$ac_ext <<_ACEOF |
4189 | /* end confdefs.h. */ |
4190 | $ac_includes_default |
4191 | #include <minix/config.h> |
4192 | _ACEOF |
4193 | rm -f conftest.$ac_objext |
dd184caf |
4194 | if { (ac_try="$ac_compile" |
4195 | case "(($ac_try" in |
4196 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4197 | *) ac_try_echo=$ac_try;; |
4198 | esac |
4199 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4200 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
4201 | ac_status=$? |
4202 | grep -v '^ *+' conftest.er1 >conftest.err |
4203 | rm -f conftest.er1 |
4204 | cat conftest.err >&5 |
4205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
4206 | (exit $ac_status); } && { |
4207 | test -z "$ac_c_werror_flag" || |
4208 | test ! -s conftest.err |
4209 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
4210 | ac_header_compiler=yes |
4211 | else |
4212 | echo "$as_me: failed program was:" >&5 |
4213 | sed 's/^/| /' conftest.$ac_ext >&5 |
4214 | |
dd184caf |
4215 | ac_header_compiler=no |
d9898ee8 |
4216 | fi |
dd184caf |
4217 | |
4218 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4219 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4220 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
d9898ee8 |
4221 | |
4222 | # Is the header present? |
dd184caf |
4223 | { echo "$as_me:$LINENO: checking minix/config.h presence" >&5 |
4224 | echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; } |
d9898ee8 |
4225 | cat >conftest.$ac_ext <<_ACEOF |
4226 | /* confdefs.h. */ |
4227 | _ACEOF |
4228 | cat confdefs.h >>conftest.$ac_ext |
4229 | cat >>conftest.$ac_ext <<_ACEOF |
4230 | /* end confdefs.h. */ |
4231 | #include <minix/config.h> |
4232 | _ACEOF |
dd184caf |
4233 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4234 | case "(($ac_try" in |
4235 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4236 | *) ac_try_echo=$ac_try;; |
4237 | esac |
4238 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4239 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
4240 | ac_status=$? |
4241 | grep -v '^ *+' conftest.er1 >conftest.err |
4242 | rm -f conftest.er1 |
4243 | cat conftest.err >&5 |
4244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
4245 | (exit $ac_status); } >/dev/null && { |
4246 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
4247 | test ! -s conftest.err |
4248 | }; then |
d9898ee8 |
4249 | ac_header_preproc=yes |
4250 | else |
4251 | echo "$as_me: failed program was:" >&5 |
4252 | sed 's/^/| /' conftest.$ac_ext >&5 |
4253 | |
4254 | ac_header_preproc=no |
4255 | fi |
dd184caf |
4256 | |
d9898ee8 |
4257 | rm -f conftest.err conftest.$ac_ext |
dd184caf |
4258 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4259 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
d9898ee8 |
4260 | |
4261 | # So? What about this header? |
4262 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4263 | yes:no: ) |
4264 | { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
4265 | echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
4266 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5 |
4267 | echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;} |
4268 | ac_header_preproc=yes |
4269 | ;; |
4270 | no:yes:* ) |
4271 | { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 |
4272 | echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} |
4273 | { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 |
4274 | echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} |
4275 | { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5 |
4276 | echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;} |
4277 | { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5 |
4278 | echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;} |
4279 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 |
4280 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;} |
4281 | { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5 |
4282 | echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;} |
dd184caf |
4283 | ( cat <<\_ASBOX |
d9898ee8 |
4284 | ## -------------------------------------------------- ## |
4285 | ## Report this to courier-users@lists.sourceforge.net ## |
4286 | ## -------------------------------------------------- ## |
4287 | _ASBOX |
dd184caf |
4288 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
d9898ee8 |
4289 | ;; |
4290 | esac |
dd184caf |
4291 | { echo "$as_me:$LINENO: checking for minix/config.h" >&5 |
4292 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; } |
d9898ee8 |
4293 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
4294 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4295 | else |
4296 | ac_cv_header_minix_config_h=$ac_header_preproc |
4297 | fi |
dd184caf |
4298 | { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 |
4299 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; } |
d9898ee8 |
4300 | |
4301 | fi |
4302 | if test $ac_cv_header_minix_config_h = yes; then |
4303 | MINIX=yes |
4304 | else |
4305 | MINIX= |
4306 | fi |
4307 | |
4308 | |
4309 | if test "$MINIX" = yes; then |
4310 | |
4311 | cat >>confdefs.h <<\_ACEOF |
4312 | #define _POSIX_SOURCE 1 |
4313 | _ACEOF |
4314 | |
4315 | |
4316 | cat >>confdefs.h <<\_ACEOF |
4317 | #define _POSIX_1_SOURCE 2 |
4318 | _ACEOF |
4319 | |
4320 | |
4321 | cat >>confdefs.h <<\_ACEOF |
4322 | #define _MINIX 1 |
4323 | _ACEOF |
4324 | |
4325 | fi |
4326 | |
dd184caf |
4327 | { echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
4328 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } |
4329 | if test "${ac_cv_search_strerror+set}" = set; then |
d9898ee8 |
4330 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4331 | else |
dd184caf |
4332 | ac_func_search_save_LIBS=$LIBS |
d9898ee8 |
4333 | cat >conftest.$ac_ext <<_ACEOF |
4334 | /* confdefs.h. */ |
4335 | _ACEOF |
4336 | cat confdefs.h >>conftest.$ac_ext |
4337 | cat >>conftest.$ac_ext <<_ACEOF |
4338 | /* end confdefs.h. */ |
4339 | |
dd184caf |
4340 | /* Override any GCC internal prototype to avoid an error. |
4341 | Use char because int might match the return type of a GCC |
4342 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
4343 | #ifdef __cplusplus |
4344 | extern "C" |
4345 | #endif |
d9898ee8 |
4346 | char strerror (); |
4347 | int |
4348 | main () |
4349 | { |
dd184caf |
4350 | return strerror (); |
d9898ee8 |
4351 | ; |
4352 | return 0; |
4353 | } |
4354 | _ACEOF |
dd184caf |
4355 | for ac_lib in '' cposix; do |
4356 | if test -z "$ac_lib"; then |
4357 | ac_res="none required" |
4358 | else |
4359 | ac_res=-l$ac_lib |
4360 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
4361 | fi |
4362 | rm -f conftest.$ac_objext conftest$ac_exeext |
4363 | if { (ac_try="$ac_link" |
4364 | case "(($ac_try" in |
4365 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4366 | *) ac_try_echo=$ac_try;; |
4367 | esac |
4368 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4369 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
4370 | ac_status=$? |
4371 | grep -v '^ *+' conftest.er1 >conftest.err |
4372 | rm -f conftest.er1 |
4373 | cat conftest.err >&5 |
4374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
4375 | (exit $ac_status); } && { |
4376 | test -z "$ac_c_werror_flag" || |
4377 | test ! -s conftest.err |
4378 | } && test -s conftest$ac_exeext && |
4379 | $as_test_x conftest$ac_exeext; then |
4380 | ac_cv_search_strerror=$ac_res |
d9898ee8 |
4381 | else |
4382 | echo "$as_me: failed program was:" >&5 |
4383 | sed 's/^/| /' conftest.$ac_ext >&5 |
4384 | |
dd184caf |
4385 | |
d9898ee8 |
4386 | fi |
dd184caf |
4387 | |
4388 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4389 | conftest$ac_exeext |
4390 | if test "${ac_cv_search_strerror+set}" = set; then |
4391 | break |
d9898ee8 |
4392 | fi |
dd184caf |
4393 | done |
4394 | if test "${ac_cv_search_strerror+set}" = set; then |
4395 | : |
4396 | else |
4397 | ac_cv_search_strerror=no |
d9898ee8 |
4398 | fi |
dd184caf |
4399 | rm conftest.$ac_ext |
4400 | LIBS=$ac_func_search_save_LIBS |
4401 | fi |
4402 | { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 |
4403 | echo "${ECHO_T}$ac_cv_search_strerror" >&6; } |
4404 | ac_res=$ac_cv_search_strerror |
4405 | if test "$ac_res" != no; then |
4406 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
d9898ee8 |
4407 | |
dd184caf |
4408 | fi |
d9898ee8 |
4409 | |
4410 | for ac_prog in gawk mawk nawk awk |
4411 | do |
4412 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
4413 | set dummy $ac_prog; ac_word=$2 |
dd184caf |
4414 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4415 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
4416 | if test "${ac_cv_prog_AWK+set}" = set; then |
4417 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4418 | else |
4419 | if test -n "$AWK"; then |
4420 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
4421 | else |
4422 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4423 | for as_dir in $PATH |
4424 | do |
4425 | IFS=$as_save_IFS |
4426 | test -z "$as_dir" && as_dir=. |
4427 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
4428 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
4429 | ac_cv_prog_AWK="$ac_prog" |
4430 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4431 | break 2 |
4432 | fi |
4433 | done |
4434 | done |
dd184caf |
4435 | IFS=$as_save_IFS |
d9898ee8 |
4436 | |
4437 | fi |
4438 | fi |
4439 | AWK=$ac_cv_prog_AWK |
4440 | if test -n "$AWK"; then |
dd184caf |
4441 | { echo "$as_me:$LINENO: result: $AWK" >&5 |
4442 | echo "${ECHO_T}$AWK" >&6; } |
d9898ee8 |
4443 | else |
dd184caf |
4444 | { echo "$as_me:$LINENO: result: no" >&5 |
4445 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
4446 | fi |
4447 | |
dd184caf |
4448 | |
d9898ee8 |
4449 | test -n "$AWK" && break |
4450 | done |
4451 | |
dd184caf |
4452 | ac_ext=cpp |
d9898ee8 |
4453 | ac_cpp='$CXXCPP $CPPFLAGS' |
4454 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4455 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4456 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
dd184caf |
4457 | if test -z "$CXX"; then |
4458 | if test -n "$CCC"; then |
4459 | CXX=$CCC |
4460 | else |
4461 | if test -n "$ac_tool_prefix"; then |
4462 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
d9898ee8 |
4463 | do |
4464 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
4465 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
dd184caf |
4466 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4467 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
4468 | if test "${ac_cv_prog_CXX+set}" = set; then |
4469 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4470 | else |
4471 | if test -n "$CXX"; then |
4472 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
4473 | else |
4474 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4475 | for as_dir in $PATH |
4476 | do |
4477 | IFS=$as_save_IFS |
4478 | test -z "$as_dir" && as_dir=. |
4479 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
4480 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
4481 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
4482 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4483 | break 2 |
4484 | fi |
4485 | done |
4486 | done |
dd184caf |
4487 | IFS=$as_save_IFS |
d9898ee8 |
4488 | |
4489 | fi |
4490 | fi |
4491 | CXX=$ac_cv_prog_CXX |
4492 | if test -n "$CXX"; then |
dd184caf |
4493 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
4494 | echo "${ECHO_T}$CXX" >&6; } |
d9898ee8 |
4495 | else |
dd184caf |
4496 | { echo "$as_me:$LINENO: result: no" >&5 |
4497 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
4498 | fi |
4499 | |
dd184caf |
4500 | |
d9898ee8 |
4501 | test -n "$CXX" && break |
4502 | done |
4503 | fi |
4504 | if test -z "$CXX"; then |
4505 | ac_ct_CXX=$CXX |
dd184caf |
4506 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
d9898ee8 |
4507 | do |
4508 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
4509 | set dummy $ac_prog; ac_word=$2 |
dd184caf |
4510 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4511 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
4512 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
4513 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4514 | else |
4515 | if test -n "$ac_ct_CXX"; then |
4516 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
4517 | else |
4518 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4519 | for as_dir in $PATH |
4520 | do |
4521 | IFS=$as_save_IFS |
4522 | test -z "$as_dir" && as_dir=. |
4523 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
4524 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
4525 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
4526 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4527 | break 2 |
4528 | fi |
4529 | done |
4530 | done |
dd184caf |
4531 | IFS=$as_save_IFS |
d9898ee8 |
4532 | |
4533 | fi |
4534 | fi |
4535 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
4536 | if test -n "$ac_ct_CXX"; then |
dd184caf |
4537 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
4538 | echo "${ECHO_T}$ac_ct_CXX" >&6; } |
d9898ee8 |
4539 | else |
dd184caf |
4540 | { echo "$as_me:$LINENO: result: no" >&5 |
4541 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
4542 | fi |
4543 | |
dd184caf |
4544 | |
d9898ee8 |
4545 | test -n "$ac_ct_CXX" && break |
4546 | done |
d9898ee8 |
4547 | |
dd184caf |
4548 | if test "x$ac_ct_CXX" = x; then |
4549 | CXX="g++" |
4550 | else |
4551 | case $cross_compiling:$ac_tool_warned in |
4552 | yes:) |
4553 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
4554 | whose name does not start with the host triplet. If you think this |
4555 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
4556 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
4557 | whose name does not start with the host triplet. If you think this |
4558 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
4559 | ac_tool_warned=yes ;; |
4560 | esac |
4561 | CXX=$ac_ct_CXX |
4562 | fi |
d9898ee8 |
4563 | fi |
4564 | |
dd184caf |
4565 | fi |
4566 | fi |
d9898ee8 |
4567 | # Provide some information about the compiler. |
dd184caf |
4568 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
d9898ee8 |
4569 | ac_compiler=`set X $ac_compile; echo $2` |
dd184caf |
4570 | { (ac_try="$ac_compiler --version >&5" |
4571 | case "(($ac_try" in |
4572 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4573 | *) ac_try_echo=$ac_try;; |
4574 | esac |
4575 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4576 | (eval "$ac_compiler --version >&5") 2>&5 |
d9898ee8 |
4577 | ac_status=$? |
4578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4579 | (exit $ac_status); } |
dd184caf |
4580 | { (ac_try="$ac_compiler -v >&5" |
4581 | case "(($ac_try" in |
4582 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4583 | *) ac_try_echo=$ac_try;; |
4584 | esac |
4585 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4586 | (eval "$ac_compiler -v >&5") 2>&5 |
d9898ee8 |
4587 | ac_status=$? |
4588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4589 | (exit $ac_status); } |
dd184caf |
4590 | { (ac_try="$ac_compiler -V >&5" |
4591 | case "(($ac_try" in |
4592 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4593 | *) ac_try_echo=$ac_try;; |
4594 | esac |
4595 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4596 | (eval "$ac_compiler -V >&5") 2>&5 |
d9898ee8 |
4597 | ac_status=$? |
4598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4599 | (exit $ac_status); } |
4600 | |
dd184caf |
4601 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
4602 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
d9898ee8 |
4603 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
4604 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4605 | else |
4606 | cat >conftest.$ac_ext <<_ACEOF |
4607 | /* confdefs.h. */ |
4608 | _ACEOF |
4609 | cat confdefs.h >>conftest.$ac_ext |
4610 | cat >>conftest.$ac_ext <<_ACEOF |
4611 | /* end confdefs.h. */ |
4612 | |
4613 | int |
4614 | main () |
4615 | { |
4616 | #ifndef __GNUC__ |
4617 | choke me |
4618 | #endif |
4619 | |
4620 | ; |
4621 | return 0; |
4622 | } |
4623 | _ACEOF |
4624 | rm -f conftest.$ac_objext |
dd184caf |
4625 | if { (ac_try="$ac_compile" |
4626 | case "(($ac_try" in |
4627 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4628 | *) ac_try_echo=$ac_try;; |
4629 | esac |
4630 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4631 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
4632 | ac_status=$? |
4633 | grep -v '^ *+' conftest.er1 >conftest.err |
4634 | rm -f conftest.er1 |
4635 | cat conftest.err >&5 |
4636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
4637 | (exit $ac_status); } && { |
4638 | test -z "$ac_cxx_werror_flag" || |
4639 | test ! -s conftest.err |
4640 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
4641 | ac_compiler_gnu=yes |
4642 | else |
4643 | echo "$as_me: failed program was:" >&5 |
4644 | sed 's/^/| /' conftest.$ac_ext >&5 |
4645 | |
dd184caf |
4646 | ac_compiler_gnu=no |
d9898ee8 |
4647 | fi |
dd184caf |
4648 | |
4649 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
4650 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
4651 | |
4652 | fi |
dd184caf |
4653 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
4654 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
d9898ee8 |
4655 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
4656 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
4657 | ac_save_CXXFLAGS=$CXXFLAGS |
dd184caf |
4658 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
4659 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
d9898ee8 |
4660 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
4661 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4662 | else |
dd184caf |
4663 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
4664 | ac_cxx_werror_flag=yes |
4665 | ac_cv_prog_cxx_g=no |
4666 | CXXFLAGS="-g" |
4667 | cat >conftest.$ac_ext <<_ACEOF |
d9898ee8 |
4668 | /* confdefs.h. */ |
4669 | _ACEOF |
4670 | cat confdefs.h >>conftest.$ac_ext |
4671 | cat >>conftest.$ac_ext <<_ACEOF |
4672 | /* end confdefs.h. */ |
4673 | |
4674 | int |
4675 | main () |
4676 | { |
4677 | |
4678 | ; |
4679 | return 0; |
4680 | } |
4681 | _ACEOF |
4682 | rm -f conftest.$ac_objext |
dd184caf |
4683 | if { (ac_try="$ac_compile" |
4684 | case "(($ac_try" in |
4685 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4686 | *) ac_try_echo=$ac_try;; |
4687 | esac |
4688 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4689 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
4690 | ac_status=$? |
4691 | grep -v '^ *+' conftest.er1 >conftest.err |
4692 | rm -f conftest.er1 |
4693 | cat conftest.err >&5 |
4694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
4695 | (exit $ac_status); } && { |
4696 | test -z "$ac_cxx_werror_flag" || |
4697 | test ! -s conftest.err |
4698 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
4699 | ac_cv_prog_cxx_g=yes |
4700 | else |
4701 | echo "$as_me: failed program was:" >&5 |
4702 | sed 's/^/| /' conftest.$ac_ext >&5 |
4703 | |
dd184caf |
4704 | CXXFLAGS="" |
4705 | cat >conftest.$ac_ext <<_ACEOF |
d9898ee8 |
4706 | /* confdefs.h. */ |
4707 | _ACEOF |
4708 | cat confdefs.h >>conftest.$ac_ext |
4709 | cat >>conftest.$ac_ext <<_ACEOF |
4710 | /* end confdefs.h. */ |
dd184caf |
4711 | |
d9898ee8 |
4712 | int |
4713 | main () |
4714 | { |
dd184caf |
4715 | |
d9898ee8 |
4716 | ; |
4717 | return 0; |
4718 | } |
4719 | _ACEOF |
4720 | rm -f conftest.$ac_objext |
dd184caf |
4721 | if { (ac_try="$ac_compile" |
4722 | case "(($ac_try" in |
4723 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4724 | *) ac_try_echo=$ac_try;; |
4725 | esac |
4726 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4727 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
4728 | ac_status=$? |
4729 | grep -v '^ *+' conftest.er1 >conftest.err |
4730 | rm -f conftest.er1 |
4731 | cat conftest.err >&5 |
4732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
4733 | (exit $ac_status); } && { |
4734 | test -z "$ac_cxx_werror_flag" || |
4735 | test ! -s conftest.err |
4736 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
4737 | : |
4738 | else |
4739 | echo "$as_me: failed program was:" >&5 |
4740 | sed 's/^/| /' conftest.$ac_ext >&5 |
4741 | |
dd184caf |
4742 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
4743 | CXXFLAGS="-g" |
4744 | cat >conftest.$ac_ext <<_ACEOF |
d9898ee8 |
4745 | /* confdefs.h. */ |
4746 | _ACEOF |
4747 | cat confdefs.h >>conftest.$ac_ext |
4748 | cat >>conftest.$ac_ext <<_ACEOF |
4749 | /* end confdefs.h. */ |
dd184caf |
4750 | |
d9898ee8 |
4751 | int |
4752 | main () |
4753 | { |
dd184caf |
4754 | |
d9898ee8 |
4755 | ; |
4756 | return 0; |
4757 | } |
4758 | _ACEOF |
4759 | rm -f conftest.$ac_objext |
dd184caf |
4760 | if { (ac_try="$ac_compile" |
4761 | case "(($ac_try" in |
4762 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4763 | *) ac_try_echo=$ac_try;; |
4764 | esac |
4765 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4766 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
4767 | ac_status=$? |
4768 | grep -v '^ *+' conftest.er1 >conftest.err |
4769 | rm -f conftest.er1 |
4770 | cat conftest.err >&5 |
4771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
4772 | (exit $ac_status); } && { |
4773 | test -z "$ac_cxx_werror_flag" || |
4774 | test ! -s conftest.err |
4775 | } && test -s conftest.$ac_objext; then |
4776 | ac_cv_prog_cxx_g=yes |
d9898ee8 |
4777 | else |
4778 | echo "$as_me: failed program was:" >&5 |
4779 | sed 's/^/| /' conftest.$ac_ext >&5 |
4780 | |
dd184caf |
4781 | |
d9898ee8 |
4782 | fi |
dd184caf |
4783 | |
4784 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4785 | fi |
4786 | |
4787 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
4788 | fi |
4789 | |
dd184caf |
4790 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4791 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
4792 | fi |
4793 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
4794 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
4795 | if test "$ac_test_CXXFLAGS" = set; then |
4796 | CXXFLAGS=$ac_save_CXXFLAGS |
4797 | elif test $ac_cv_prog_cxx_g = yes; then |
4798 | if test "$GXX" = yes; then |
4799 | CXXFLAGS="-g -O2" |
4800 | else |
4801 | CXXFLAGS="-g" |
4802 | fi |
4803 | else |
4804 | if test "$GXX" = yes; then |
4805 | CXXFLAGS="-O2" |
4806 | else |
4807 | CXXFLAGS= |
4808 | fi |
4809 | fi |
d9898ee8 |
4810 | ac_ext=c |
4811 | ac_cpp='$CPP $CPPFLAGS' |
4812 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4813 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4814 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4815 | |
4816 | depcc="$CXX" am_compiler_list= |
4817 | |
dd184caf |
4818 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
4819 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } |
d9898ee8 |
4820 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
4821 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4822 | else |
4823 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
4824 | # We make a subdir and do the tests there. Otherwise we can end up |
4825 | # making bogus files that we don't know about and never remove. For |
4826 | # instance it was reported that on HP-UX the gcc test will end up |
4827 | # making a dummy file named `D' -- because `-MD' means `put the output |
4828 | # in D'. |
4829 | mkdir conftest.dir |
4830 | # Copy depcomp to subdir because otherwise we won't find it if we're |
4831 | # using a relative directory. |
4832 | cp "$am_depcomp" conftest.dir |
4833 | cd conftest.dir |
4834 | # We will build objects and dependencies in a subdirectory because |
4835 | # it helps to detect inapplicable dependency modes. For instance |
4836 | # both Tru64's cc and ICC support -MD to output dependencies as a |
4837 | # side effect of compilation, but ICC will put the dependencies in |
4838 | # the current directory while Tru64 will put them in the object |
4839 | # directory. |
4840 | mkdir sub |
4841 | |
4842 | am_cv_CXX_dependencies_compiler_type=none |
4843 | if test "$am_compiler_list" = ""; then |
4844 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
4845 | fi |
4846 | for depmode in $am_compiler_list; do |
4847 | # Setup a source with many dependencies, because some compilers |
4848 | # like to wrap large dependency lists on column 80 (with \), and |
4849 | # we should not choose a depcomp mode which is confused by this. |
4850 | # |
4851 | # We need to recreate these files for each test, as the compiler may |
4852 | # overwrite some of them when testing with obscure command lines. |
4853 | # This happens at least with the AIX C compiler. |
4854 | : > sub/conftest.c |
4855 | for i in 1 2 3 4 5 6; do |
4856 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
4857 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
4858 | # Solaris 8's {/usr,}/bin/sh. |
4859 | touch sub/conftst$i.h |
4860 | done |
4861 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
4862 | |
4863 | case $depmode in |
4864 | nosideeffect) |
4865 | # after this tag, mechanisms are not by side-effect, so they'll |
4866 | # only be used when explicitly requested |
4867 | if test "x$enable_dependency_tracking" = xyes; then |
4868 | continue |
4869 | else |
4870 | break |
4871 | fi |
4872 | ;; |
4873 | none) break ;; |
4874 | esac |
4875 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
4876 | # mode. It turns out that the SunPro C++ compiler does not properly |
4877 | # handle `-M -o', and we need to detect this. |
4878 | if depmode=$depmode \ |
4879 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
4880 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
4881 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
4882 | >/dev/null 2>conftest.err && |
dd184caf |
4883 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
d9898ee8 |
4884 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
4885 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
4886 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
4887 | # icc doesn't choke on unknown options, it will just issue warnings |
4888 | # or remarks (even with -Werror). So we grep stderr for any message |
4889 | # that says an option was ignored or not supported. |
4890 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
4891 | # icc: Command line warning: ignoring option '-M'; no argument required |
4892 | # The diagnosis changed in icc 8.0: |
4893 | # icc: Command line remark: option '-MP' not supported |
4894 | if (grep 'ignoring option' conftest.err || |
4895 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
4896 | am_cv_CXX_dependencies_compiler_type=$depmode |
4897 | break |
4898 | fi |
4899 | fi |
4900 | done |
4901 | |
4902 | cd .. |
4903 | rm -rf conftest.dir |
4904 | else |
4905 | am_cv_CXX_dependencies_compiler_type=none |
4906 | fi |
4907 | |
4908 | fi |
dd184caf |
4909 | { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
4910 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } |
d9898ee8 |
4911 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
4912 | |
dd184caf |
4913 | if |
d9898ee8 |
4914 | test "x$enable_dependency_tracking" != xno \ |
4915 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
4916 | am__fastdepCXX_TRUE= |
4917 | am__fastdepCXX_FALSE='#' |
4918 | else |
4919 | am__fastdepCXX_TRUE='#' |
4920 | am__fastdepCXX_FALSE= |
4921 | fi |
4922 | |
4923 | |
dd184caf |
4924 | # Check whether --enable-shared was given. |
d9898ee8 |
4925 | if test "${enable_shared+set}" = set; then |
dd184caf |
4926 | enableval=$enable_shared; p=${PACKAGE-default} |
d9898ee8 |
4927 | case $enableval in |
4928 | yes) enable_shared=yes ;; |
4929 | no) enable_shared=no ;; |
4930 | *) |
4931 | enable_shared=no |
4932 | # Look at the argument we got. We use all the common list separators. |
4933 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
4934 | for pkg in $enableval; do |
4935 | IFS="$lt_save_ifs" |
4936 | if test "X$pkg" = "X$p"; then |
4937 | enable_shared=yes |
4938 | fi |
4939 | done |
4940 | IFS="$lt_save_ifs" |
4941 | ;; |
4942 | esac |
4943 | else |
4944 | enable_shared=yes |
dd184caf |
4945 | fi |
4946 | |
d9898ee8 |
4947 | |
dd184caf |
4948 | # Check whether --enable-static was given. |
d9898ee8 |
4949 | if test "${enable_static+set}" = set; then |
dd184caf |
4950 | enableval=$enable_static; p=${PACKAGE-default} |
d9898ee8 |
4951 | case $enableval in |
4952 | yes) enable_static=yes ;; |
4953 | no) enable_static=no ;; |
4954 | *) |
4955 | enable_static=no |
4956 | # Look at the argument we got. We use all the common list separators. |
4957 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
4958 | for pkg in $enableval; do |
4959 | IFS="$lt_save_ifs" |
4960 | if test "X$pkg" = "X$p"; then |
4961 | enable_static=yes |
4962 | fi |
4963 | done |
4964 | IFS="$lt_save_ifs" |
4965 | ;; |
4966 | esac |
4967 | else |
4968 | enable_static=yes |
dd184caf |
4969 | fi |
4970 | |
d9898ee8 |
4971 | |
dd184caf |
4972 | # Check whether --enable-fast-install was given. |
d9898ee8 |
4973 | if test "${enable_fast_install+set}" = set; then |
dd184caf |
4974 | enableval=$enable_fast_install; p=${PACKAGE-default} |
d9898ee8 |
4975 | case $enableval in |
4976 | yes) enable_fast_install=yes ;; |
4977 | no) enable_fast_install=no ;; |
4978 | *) |
4979 | enable_fast_install=no |
4980 | # Look at the argument we got. We use all the common list separators. |
4981 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
4982 | for pkg in $enableval; do |
4983 | IFS="$lt_save_ifs" |
4984 | if test "X$pkg" = "X$p"; then |
4985 | enable_fast_install=yes |
4986 | fi |
4987 | done |
4988 | IFS="$lt_save_ifs" |
4989 | ;; |
4990 | esac |
4991 | else |
4992 | enable_fast_install=yes |
dd184caf |
4993 | fi |
4994 | |
d9898ee8 |
4995 | |
4996 | # Make sure we can run config.sub. |
dd184caf |
4997 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
4998 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
4999 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} |
d9898ee8 |
5000 | { (exit 1); exit 1; }; } |
5001 | |
dd184caf |
5002 | { echo "$as_me:$LINENO: checking build system type" >&5 |
5003 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
d9898ee8 |
5004 | if test "${ac_cv_build+set}" = set; then |
5005 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5006 | else |
dd184caf |
5007 | ac_build_alias=$build_alias |
5008 | test "x$ac_build_alias" = x && |
5009 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
5010 | test "x$ac_build_alias" = x && |
d9898ee8 |
5011 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
5012 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
5013 | { (exit 1); exit 1; }; } |
dd184caf |
5014 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
5015 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
5016 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} |
d9898ee8 |
5017 | { (exit 1); exit 1; }; } |
5018 | |
5019 | fi |
dd184caf |
5020 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
5021 | echo "${ECHO_T}$ac_cv_build" >&6; } |
5022 | case $ac_cv_build in |
5023 | *-*-*) ;; |
5024 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
5025 | echo "$as_me: error: invalid value of canonical build" >&2;} |
5026 | { (exit 1); exit 1; }; };; |
5027 | esac |
d9898ee8 |
5028 | build=$ac_cv_build |
dd184caf |
5029 | ac_save_IFS=$IFS; IFS='-' |
5030 | set x $ac_cv_build |
5031 | shift |
5032 | build_cpu=$1 |
5033 | build_vendor=$2 |
5034 | shift; shift |
5035 | # Remember, the first character of IFS is used to create $*, |
5036 | # except with old shells: |
5037 | build_os=$* |
5038 | IFS=$ac_save_IFS |
5039 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
5040 | |
5041 | |
5042 | { echo "$as_me:$LINENO: checking host system type" >&5 |
5043 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
d9898ee8 |
5044 | if test "${ac_cv_host+set}" = set; then |
5045 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5046 | else |
dd184caf |
5047 | if test "x$host_alias" = x; then |
5048 | ac_cv_host=$ac_cv_build |
5049 | else |
5050 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
5051 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
5052 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} |
d9898ee8 |
5053 | { (exit 1); exit 1; }; } |
dd184caf |
5054 | fi |
d9898ee8 |
5055 | |
5056 | fi |
dd184caf |
5057 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
5058 | echo "${ECHO_T}$ac_cv_host" >&6; } |
5059 | case $ac_cv_host in |
5060 | *-*-*) ;; |
5061 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
5062 | echo "$as_me: error: invalid value of canonical host" >&2;} |
5063 | { (exit 1); exit 1; }; };; |
5064 | esac |
d9898ee8 |
5065 | host=$ac_cv_host |
dd184caf |
5066 | ac_save_IFS=$IFS; IFS='-' |
5067 | set x $ac_cv_host |
5068 | shift |
5069 | host_cpu=$1 |
5070 | host_vendor=$2 |
5071 | shift; shift |
5072 | # Remember, the first character of IFS is used to create $*, |
5073 | # except with old shells: |
5074 | host_os=$* |
5075 | IFS=$ac_save_IFS |
5076 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
5077 | |
5078 | |
5079 | { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
5080 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } |
d9898ee8 |
5081 | if test "${lt_cv_path_SED+set}" = set; then |
5082 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5083 | else |
5084 | # Loop through the user's path and test for sed and gsed. |
5085 | # Then use that list of sed's as ones to test for truncation. |
5086 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5087 | for as_dir in $PATH |
5088 | do |
5089 | IFS=$as_save_IFS |
5090 | test -z "$as_dir" && as_dir=. |
5091 | for lt_ac_prog in sed gsed; do |
5092 | for ac_exec_ext in '' $ac_executable_extensions; do |
5093 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
5094 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
5095 | fi |
5096 | done |
5097 | done |
5098 | done |
5099 | IFS=$as_save_IFS |
5100 | lt_ac_max=0 |
5101 | lt_ac_count=0 |
5102 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
5103 | # along with /bin/sed that truncates output. |
5104 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
5105 | test ! -f $lt_ac_sed && continue |
5106 | cat /dev/null > conftest.in |
5107 | lt_ac_count=0 |
5108 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
5109 | # Check for GNU sed and select it if it is found. |
5110 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
5111 | lt_cv_path_SED=$lt_ac_sed |
5112 | break |
5113 | fi |
5114 | while true; do |
5115 | cat conftest.in conftest.in >conftest.tmp |
5116 | mv conftest.tmp conftest.in |
5117 | cp conftest.in conftest.nl |
5118 | echo >>conftest.nl |
5119 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
5120 | cmp -s conftest.out conftest.nl || break |
5121 | # 10000 chars as input seems more than enough |
5122 | test $lt_ac_count -gt 10 && break |
5123 | lt_ac_count=`expr $lt_ac_count + 1` |
5124 | if test $lt_ac_count -gt $lt_ac_max; then |
5125 | lt_ac_max=$lt_ac_count |
5126 | lt_cv_path_SED=$lt_ac_sed |
5127 | fi |
5128 | done |
5129 | done |
5130 | |
5131 | fi |
5132 | |
5133 | SED=$lt_cv_path_SED |
5134 | |
dd184caf |
5135 | { echo "$as_me:$LINENO: result: $SED" >&5 |
5136 | echo "${ECHO_T}$SED" >&6; } |
d9898ee8 |
5137 | |
5138 | |
dd184caf |
5139 | # Check whether --with-gnu-ld was given. |
d9898ee8 |
5140 | if test "${with_gnu_ld+set}" = set; then |
dd184caf |
5141 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
d9898ee8 |
5142 | else |
5143 | with_gnu_ld=no |
dd184caf |
5144 | fi |
5145 | |
d9898ee8 |
5146 | ac_prog=ld |
5147 | if test "$GCC" = yes; then |
5148 | # Check if gcc -print-prog-name=ld gives a path. |
dd184caf |
5149 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
5150 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
d9898ee8 |
5151 | case $host in |
5152 | *-*-mingw*) |
5153 | # gcc leaves a trailing carriage return which upsets mingw |
5154 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
5155 | *) |
5156 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
5157 | esac |
5158 | case $ac_prog in |
5159 | # Accept absolute paths. |
5160 | [\\/]* | ?:[\\/]*) |
5161 | re_direlt='/[^/][^/]*/\.\./' |
5162 | # Canonicalize the pathname of ld |
5163 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
5164 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
5165 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
5166 | done |
5167 | test -z "$LD" && LD="$ac_prog" |
5168 | ;; |
5169 | "") |
5170 | # If it fails, then pretend we aren't using GCC. |
5171 | ac_prog=ld |
5172 | ;; |
5173 | *) |
5174 | # If it is relative, then search for the first ld in PATH. |
5175 | with_gnu_ld=unknown |
5176 | ;; |
5177 | esac |
5178 | elif test "$with_gnu_ld" = yes; then |
dd184caf |
5179 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
5180 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
d9898ee8 |
5181 | else |
dd184caf |
5182 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
5183 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
d9898ee8 |
5184 | fi |
5185 | if test "${lt_cv_path_LD+set}" = set; then |
5186 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5187 | else |
5188 | if test -z "$LD"; then |
5189 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
5190 | for ac_dir in $PATH; do |
5191 | IFS="$lt_save_ifs" |
5192 | test -z "$ac_dir" && ac_dir=. |
5193 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
5194 | lt_cv_path_LD="$ac_dir/$ac_prog" |
5195 | # Check to see if the program is GNU ld. I'd rather use --version, |
5196 | # but apparently some variants of GNU ld only accept -v. |
5197 | # Break only if it was the GNU/non-GNU ld that we prefer. |
5198 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
5199 | *GNU* | *'with BFD'*) |
5200 | test "$with_gnu_ld" != no && break |
5201 | ;; |
5202 | *) |
5203 | test "$with_gnu_ld" != yes && break |
5204 | ;; |
5205 | esac |
5206 | fi |
5207 | done |
5208 | IFS="$lt_save_ifs" |
5209 | else |
5210 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
5211 | fi |
5212 | fi |
5213 | |
5214 | LD="$lt_cv_path_LD" |
5215 | if test -n "$LD"; then |
dd184caf |
5216 | { echo "$as_me:$LINENO: result: $LD" >&5 |
5217 | echo "${ECHO_T}$LD" >&6; } |
d9898ee8 |
5218 | else |
dd184caf |
5219 | { echo "$as_me:$LINENO: result: no" >&5 |
5220 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
5221 | fi |
5222 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
5223 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
5224 | { (exit 1); exit 1; }; } |
dd184caf |
5225 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
5226 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } |
d9898ee8 |
5227 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
5228 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5229 | else |
5230 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
5231 | case `$LD -v 2>&1 </dev/null` in |
5232 | *GNU* | *'with BFD'*) |
5233 | lt_cv_prog_gnu_ld=yes |
5234 | ;; |
5235 | *) |
5236 | lt_cv_prog_gnu_ld=no |
5237 | ;; |
5238 | esac |
5239 | fi |
dd184caf |
5240 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
5241 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
d9898ee8 |
5242 | with_gnu_ld=$lt_cv_prog_gnu_ld |
5243 | |
5244 | |
dd184caf |
5245 | { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
5246 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } |
d9898ee8 |
5247 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
5248 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5249 | else |
5250 | lt_cv_ld_reload_flag='-r' |
5251 | fi |
dd184caf |
5252 | { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
5253 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } |
d9898ee8 |
5254 | reload_flag=$lt_cv_ld_reload_flag |
5255 | case $reload_flag in |
5256 | "" | " "*) ;; |
5257 | *) reload_flag=" $reload_flag" ;; |
5258 | esac |
5259 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
5260 | case $host_os in |
5261 | darwin*) |
5262 | if test "$GCC" = yes; then |
5263 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
5264 | else |
5265 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
5266 | fi |
5267 | ;; |
5268 | esac |
5269 | |
dd184caf |
5270 | { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
5271 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } |
d9898ee8 |
5272 | if test "${lt_cv_path_NM+set}" = set; then |
5273 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5274 | else |
5275 | if test -n "$NM"; then |
5276 | # Let the user override the test. |
5277 | lt_cv_path_NM="$NM" |
5278 | else |
5279 | lt_nm_to_check="${ac_tool_prefix}nm" |
5280 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
5281 | lt_nm_to_check="$lt_nm_to_check nm" |
5282 | fi |
5283 | for lt_tmp_nm in $lt_nm_to_check; do |
5284 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
5285 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
5286 | IFS="$lt_save_ifs" |
5287 | test -z "$ac_dir" && ac_dir=. |
5288 | tmp_nm="$ac_dir/$lt_tmp_nm" |
5289 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
5290 | # Check to see if the nm accepts a BSD-compat flag. |
5291 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
5292 | # nm: unknown option "B" ignored |
5293 | # Tru64's nm complains that /dev/null is an invalid object file |
5294 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
5295 | */dev/null* | *'Invalid file or object type'*) |
5296 | lt_cv_path_NM="$tmp_nm -B" |
5297 | break |
5298 | ;; |
5299 | *) |
5300 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
5301 | */dev/null*) |
5302 | lt_cv_path_NM="$tmp_nm -p" |
5303 | break |
5304 | ;; |
5305 | *) |
5306 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
5307 | continue # so that we can try to find one that supports BSD flags |
5308 | ;; |
5309 | esac |
5310 | ;; |
5311 | esac |
5312 | fi |
5313 | done |
5314 | IFS="$lt_save_ifs" |
5315 | done |
5316 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
5317 | fi |
5318 | fi |
dd184caf |
5319 | { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
5320 | echo "${ECHO_T}$lt_cv_path_NM" >&6; } |
d9898ee8 |
5321 | NM="$lt_cv_path_NM" |
5322 | |
dd184caf |
5323 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
5324 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
d9898ee8 |
5325 | LN_S=$as_ln_s |
5326 | if test "$LN_S" = "ln -s"; then |
dd184caf |
5327 | { echo "$as_me:$LINENO: result: yes" >&5 |
5328 | echo "${ECHO_T}yes" >&6; } |
d9898ee8 |
5329 | else |
dd184caf |
5330 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
5331 | echo "${ECHO_T}no, using $LN_S" >&6; } |
d9898ee8 |
5332 | fi |
5333 | |
dd184caf |
5334 | { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
5335 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } |
d9898ee8 |
5336 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
5337 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5338 | else |
5339 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
5340 | lt_cv_file_magic_test_file= |
5341 | lt_cv_deplibs_check_method='unknown' |
5342 | # Need to set the preceding variable on all platforms that support |
5343 | # interlibrary dependencies. |
5344 | # 'none' -- dependencies not supported. |
5345 | # `unknown' -- same as none, but documents that we really don't know. |
5346 | # 'pass_all' -- all dependencies passed with no checks. |
5347 | # 'test_compile' -- check by making test program. |
5348 | # 'file_magic [[regex]]' -- check by looking for files in library path |
5349 | # which responds to the $file_magic_cmd with a given extended regex. |
5350 | # If you have `file' or equivalent on your system and you're not sure |
5351 | # whether `pass_all' will *always* work, you probably want this one. |
5352 | |
5353 | case $host_os in |
5354 | aix4* | aix5*) |
5355 | lt_cv_deplibs_check_method=pass_all |
5356 | ;; |
5357 | |
5358 | beos*) |
5359 | lt_cv_deplibs_check_method=pass_all |
5360 | ;; |
5361 | |
5362 | bsdi[45]*) |
5363 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
5364 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
5365 | lt_cv_file_magic_test_file=/shlib/libc.so |
5366 | ;; |
5367 | |
5368 | cygwin*) |
5369 | # func_win32_libid is a shell function defined in ltmain.sh |
5370 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
5371 | lt_cv_file_magic_cmd='func_win32_libid' |
5372 | ;; |
5373 | |
5374 | mingw* | pw32*) |
5375 | # Base MSYS/MinGW do not provide the 'file' command needed by |
5376 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. |
5377 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
5378 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
5379 | ;; |
5380 | |
5381 | darwin* | rhapsody*) |
5382 | lt_cv_deplibs_check_method=pass_all |
5383 | ;; |
5384 | |
5385 | freebsd* | kfreebsd*-gnu | dragonfly*) |
5386 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
5387 | case $host_cpu in |
5388 | i*86 ) |
5389 | # Not sure whether the presence of OpenBSD here was a mistake. |
5390 | # Let's accept both of them until this is cleared up. |
5391 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
5392 | lt_cv_file_magic_cmd=/usr/bin/file |
5393 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
5394 | ;; |
5395 | esac |
5396 | else |
5397 | lt_cv_deplibs_check_method=pass_all |
5398 | fi |
5399 | ;; |
5400 | |
5401 | gnu*) |
5402 | lt_cv_deplibs_check_method=pass_all |
5403 | ;; |
5404 | |
5405 | hpux10.20* | hpux11*) |
5406 | lt_cv_file_magic_cmd=/usr/bin/file |
5407 | case $host_cpu in |
5408 | ia64*) |
5409 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
5410 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
5411 | ;; |
5412 | hppa*64*) |
5413 | 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]' |
5414 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
5415 | ;; |
5416 | *) |
5417 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
5418 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
5419 | ;; |
5420 | esac |
5421 | ;; |
5422 | |
5423 | interix3*) |
5424 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
5425 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
5426 | ;; |
5427 | |
5428 | irix5* | irix6* | nonstopux*) |
5429 | case $LD in |
5430 | *-32|*"-32 ") libmagic=32-bit;; |
5431 | *-n32|*"-n32 ") libmagic=N32;; |
5432 | *-64|*"-64 ") libmagic=64-bit;; |
5433 | *) libmagic=never-match;; |
5434 | esac |
5435 | lt_cv_deplibs_check_method=pass_all |
5436 | ;; |
5437 | |
5438 | # This must be Linux ELF. |
5439 | linux*) |
5440 | lt_cv_deplibs_check_method=pass_all |
5441 | ;; |
5442 | |
5443 | netbsd*) |
5444 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
5445 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
5446 | else |
5447 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
5448 | fi |
5449 | ;; |
5450 | |
5451 | newos6*) |
5452 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
5453 | lt_cv_file_magic_cmd=/usr/bin/file |
5454 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
5455 | ;; |
5456 | |
5457 | nto-qnx*) |
5458 | lt_cv_deplibs_check_method=unknown |
5459 | ;; |
5460 | |
5461 | openbsd*) |
5462 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
5463 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
5464 | else |
5465 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
5466 | fi |
5467 | ;; |
5468 | |
5469 | osf3* | osf4* | osf5*) |
5470 | lt_cv_deplibs_check_method=pass_all |
5471 | ;; |
5472 | |
5473 | solaris*) |
5474 | lt_cv_deplibs_check_method=pass_all |
5475 | ;; |
5476 | |
5477 | sysv4 | sysv4.3*) |
5478 | case $host_vendor in |
5479 | motorola) |
5480 | 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]' |
5481 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
5482 | ;; |
5483 | ncr) |
5484 | lt_cv_deplibs_check_method=pass_all |
5485 | ;; |
5486 | sequent) |
5487 | lt_cv_file_magic_cmd='/bin/file' |
5488 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
5489 | ;; |
5490 | sni) |
5491 | lt_cv_file_magic_cmd='/bin/file' |
5492 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
5493 | lt_cv_file_magic_test_file=/lib/libc.so |
5494 | ;; |
5495 | siemens) |
5496 | lt_cv_deplibs_check_method=pass_all |
5497 | ;; |
5498 | pc) |
5499 | lt_cv_deplibs_check_method=pass_all |
5500 | ;; |
5501 | esac |
5502 | ;; |
5503 | |
5504 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
5505 | lt_cv_deplibs_check_method=pass_all |
5506 | ;; |
5507 | esac |
5508 | |
5509 | fi |
dd184caf |
5510 | { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
5511 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } |
d9898ee8 |
5512 | file_magic_cmd=$lt_cv_file_magic_cmd |
5513 | deplibs_check_method=$lt_cv_deplibs_check_method |
5514 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
5515 | |
5516 | |
5517 | |
5518 | |
5519 | # If no C compiler was specified, use CC. |
5520 | LTCC=${LTCC-"$CC"} |
5521 | |
5522 | # If no C compiler flags were specified, use CFLAGS. |
5523 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
5524 | |
5525 | # Allow CC to be a program name with arguments. |
5526 | compiler=$CC |
5527 | |
dd184caf |
5528 | # Check whether --enable-libtool-lock was given. |
d9898ee8 |
5529 | if test "${enable_libtool_lock+set}" = set; then |
dd184caf |
5530 | enableval=$enable_libtool_lock; |
5531 | fi |
d9898ee8 |
5532 | |
d9898ee8 |
5533 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
5534 | |
5535 | # Some flags need to be propagated to the compiler or linker for good |
5536 | # libtool support. |
5537 | case $host in |
5538 | ia64-*-hpux*) |
5539 | # Find out which ABI we are using. |
5540 | echo 'int i;' > conftest.$ac_ext |
5541 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5542 | (eval $ac_compile) 2>&5 |
5543 | ac_status=$? |
5544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5545 | (exit $ac_status); }; then |
5546 | case `/usr/bin/file conftest.$ac_objext` in |
5547 | *ELF-32*) |
5548 | HPUX_IA64_MODE="32" |
5549 | ;; |
5550 | *ELF-64*) |
5551 | HPUX_IA64_MODE="64" |
5552 | ;; |
5553 | esac |
5554 | fi |
5555 | rm -rf conftest* |
5556 | ;; |
5557 | *-*-irix6*) |
5558 | # Find out which ABI we are using. |
dd184caf |
5559 | echo '#line 5559 "configure"' > conftest.$ac_ext |
d9898ee8 |
5560 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5561 | (eval $ac_compile) 2>&5 |
5562 | ac_status=$? |
5563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5564 | (exit $ac_status); }; then |
5565 | if test "$lt_cv_prog_gnu_ld" = yes; then |
5566 | case `/usr/bin/file conftest.$ac_objext` in |
5567 | *32-bit*) |
5568 | LD="${LD-ld} -melf32bsmip" |
5569 | ;; |
5570 | *N32*) |
5571 | LD="${LD-ld} -melf32bmipn32" |
5572 | ;; |
5573 | *64-bit*) |
5574 | LD="${LD-ld} -melf64bmip" |
5575 | ;; |
5576 | esac |
5577 | else |
5578 | case `/usr/bin/file conftest.$ac_objext` in |
5579 | *32-bit*) |
5580 | LD="${LD-ld} -32" |
5581 | ;; |
5582 | *N32*) |
5583 | LD="${LD-ld} -n32" |
5584 | ;; |
5585 | *64-bit*) |
5586 | LD="${LD-ld} -64" |
5587 | ;; |
5588 | esac |
5589 | fi |
5590 | fi |
5591 | rm -rf conftest* |
5592 | ;; |
5593 | |
5594 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
5595 | # Find out which ABI we are using. |
5596 | echo 'int i;' > conftest.$ac_ext |
5597 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5598 | (eval $ac_compile) 2>&5 |
5599 | ac_status=$? |
5600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5601 | (exit $ac_status); }; then |
5602 | case `/usr/bin/file conftest.o` in |
5603 | *32-bit*) |
5604 | case $host in |
5605 | x86_64-*linux*) |
5606 | LD="${LD-ld} -m elf_i386" |
5607 | ;; |
5608 | ppc64-*linux*|powerpc64-*linux*) |
5609 | LD="${LD-ld} -m elf32ppclinux" |
5610 | ;; |
5611 | s390x-*linux*) |
5612 | LD="${LD-ld} -m elf_s390" |
5613 | ;; |
5614 | sparc64-*linux*) |
5615 | LD="${LD-ld} -m elf32_sparc" |
5616 | ;; |
5617 | esac |
5618 | ;; |
5619 | *64-bit*) |
5620 | case $host in |
5621 | x86_64-*linux*) |
5622 | LD="${LD-ld} -m elf_x86_64" |
5623 | ;; |
5624 | ppc*-*linux*|powerpc*-*linux*) |
5625 | LD="${LD-ld} -m elf64ppc" |
5626 | ;; |
5627 | s390*-*linux*) |
5628 | LD="${LD-ld} -m elf64_s390" |
5629 | ;; |
5630 | sparc*-*linux*) |
5631 | LD="${LD-ld} -m elf64_sparc" |
5632 | ;; |
5633 | esac |
5634 | ;; |
5635 | esac |
5636 | fi |
5637 | rm -rf conftest* |
5638 | ;; |
5639 | |
5640 | *-*-sco3.2v5*) |
5641 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
5642 | SAVE_CFLAGS="$CFLAGS" |
5643 | CFLAGS="$CFLAGS -belf" |
dd184caf |
5644 | { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
5645 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } |
d9898ee8 |
5646 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
5647 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5648 | else |
5649 | ac_ext=c |
5650 | ac_cpp='$CPP $CPPFLAGS' |
5651 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5652 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5653 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
5654 | |
5655 | cat >conftest.$ac_ext <<_ACEOF |
5656 | /* confdefs.h. */ |
5657 | _ACEOF |
5658 | cat confdefs.h >>conftest.$ac_ext |
5659 | cat >>conftest.$ac_ext <<_ACEOF |
5660 | /* end confdefs.h. */ |
5661 | |
5662 | int |
5663 | main () |
5664 | { |
5665 | |
5666 | ; |
5667 | return 0; |
5668 | } |
5669 | _ACEOF |
5670 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
5671 | if { (ac_try="$ac_link" |
5672 | case "(($ac_try" in |
5673 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5674 | *) ac_try_echo=$ac_try;; |
5675 | esac |
5676 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5677 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
5678 | ac_status=$? |
5679 | grep -v '^ *+' conftest.er1 >conftest.err |
5680 | rm -f conftest.er1 |
5681 | cat conftest.err >&5 |
5682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
5683 | (exit $ac_status); } && { |
5684 | test -z "$ac_c_werror_flag" || |
5685 | test ! -s conftest.err |
5686 | } && test -s conftest$ac_exeext && |
5687 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
5688 | lt_cv_cc_needs_belf=yes |
5689 | else |
5690 | echo "$as_me: failed program was:" >&5 |
5691 | sed 's/^/| /' conftest.$ac_ext >&5 |
5692 | |
dd184caf |
5693 | lt_cv_cc_needs_belf=no |
d9898ee8 |
5694 | fi |
dd184caf |
5695 | |
5696 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
5697 | conftest$ac_exeext conftest.$ac_ext |
5698 | ac_ext=c |
5699 | ac_cpp='$CPP $CPPFLAGS' |
5700 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5701 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5702 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
5703 | |
5704 | fi |
dd184caf |
5705 | { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
5706 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } |
d9898ee8 |
5707 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
5708 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
5709 | CFLAGS="$SAVE_CFLAGS" |
5710 | fi |
5711 | ;; |
5712 | sparc*-*solaris*) |
5713 | # Find out which ABI we are using. |
5714 | echo 'int i;' > conftest.$ac_ext |
5715 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5716 | (eval $ac_compile) 2>&5 |
5717 | ac_status=$? |
5718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5719 | (exit $ac_status); }; then |
5720 | case `/usr/bin/file conftest.o` in |
5721 | *64-bit*) |
5722 | case $lt_cv_prog_gnu_ld in |
5723 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
5724 | *) LD="${LD-ld} -64" ;; |
5725 | esac |
5726 | ;; |
5727 | esac |
5728 | fi |
5729 | rm -rf conftest* |
5730 | ;; |
5731 | |
5732 | |
5733 | esac |
5734 | |
5735 | need_locks="$enable_libtool_lock" |
5736 | |
5737 | |
5738 | |
5739 | for ac_header in dlfcn.h |
5740 | do |
5741 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
dd184caf |
5742 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5743 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5744 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
5745 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
5746 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5747 | fi |
dd184caf |
5748 | ac_res=`eval echo '${'$as_ac_Header'}'` |
5749 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
5750 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
5751 | else |
5752 | # Is the header compilable? |
dd184caf |
5753 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5754 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
d9898ee8 |
5755 | cat >conftest.$ac_ext <<_ACEOF |
5756 | /* confdefs.h. */ |
5757 | _ACEOF |
5758 | cat confdefs.h >>conftest.$ac_ext |
5759 | cat >>conftest.$ac_ext <<_ACEOF |
5760 | /* end confdefs.h. */ |
5761 | $ac_includes_default |
5762 | #include <$ac_header> |
5763 | _ACEOF |
5764 | rm -f conftest.$ac_objext |
dd184caf |
5765 | if { (ac_try="$ac_compile" |
5766 | case "(($ac_try" in |
5767 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5768 | *) ac_try_echo=$ac_try;; |
5769 | esac |
5770 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5771 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
5772 | ac_status=$? |
5773 | grep -v '^ *+' conftest.er1 >conftest.err |
5774 | rm -f conftest.er1 |
5775 | cat conftest.err >&5 |
5776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
5777 | (exit $ac_status); } && { |
5778 | test -z "$ac_c_werror_flag" || |
5779 | test ! -s conftest.err |
5780 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
5781 | ac_header_compiler=yes |
5782 | else |
5783 | echo "$as_me: failed program was:" >&5 |
5784 | sed 's/^/| /' conftest.$ac_ext >&5 |
5785 | |
dd184caf |
5786 | ac_header_compiler=no |
d9898ee8 |
5787 | fi |
dd184caf |
5788 | |
5789 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5790 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5791 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
d9898ee8 |
5792 | |
5793 | # Is the header present? |
dd184caf |
5794 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5795 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
d9898ee8 |
5796 | cat >conftest.$ac_ext <<_ACEOF |
5797 | /* confdefs.h. */ |
5798 | _ACEOF |
5799 | cat confdefs.h >>conftest.$ac_ext |
5800 | cat >>conftest.$ac_ext <<_ACEOF |
5801 | /* end confdefs.h. */ |
5802 | #include <$ac_header> |
5803 | _ACEOF |
dd184caf |
5804 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5805 | case "(($ac_try" in |
5806 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5807 | *) ac_try_echo=$ac_try;; |
5808 | esac |
5809 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5810 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
5811 | ac_status=$? |
5812 | grep -v '^ *+' conftest.er1 >conftest.err |
5813 | rm -f conftest.er1 |
5814 | cat conftest.err >&5 |
5815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
5816 | (exit $ac_status); } >/dev/null && { |
5817 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
5818 | test ! -s conftest.err |
5819 | }; then |
d9898ee8 |
5820 | ac_header_preproc=yes |
5821 | else |
5822 | echo "$as_me: failed program was:" >&5 |
5823 | sed 's/^/| /' conftest.$ac_ext >&5 |
5824 | |
5825 | ac_header_preproc=no |
5826 | fi |
dd184caf |
5827 | |
d9898ee8 |
5828 | rm -f conftest.err conftest.$ac_ext |
dd184caf |
5829 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5830 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
d9898ee8 |
5831 | |
5832 | # So? What about this header? |
5833 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5834 | yes:no: ) |
5835 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5836 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
5837 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
5838 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
5839 | ac_header_preproc=yes |
5840 | ;; |
5841 | no:yes:* ) |
5842 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5843 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
5844 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
5845 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
5846 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
5847 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
5848 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
5849 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
5850 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
5851 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
5852 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
5853 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
dd184caf |
5854 | ( cat <<\_ASBOX |
d9898ee8 |
5855 | ## -------------------------------------------------- ## |
5856 | ## Report this to courier-users@lists.sourceforge.net ## |
5857 | ## -------------------------------------------------- ## |
5858 | _ASBOX |
dd184caf |
5859 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
d9898ee8 |
5860 | ;; |
5861 | esac |
dd184caf |
5862 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5863 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
5864 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
5865 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5866 | else |
5867 | eval "$as_ac_Header=\$ac_header_preproc" |
5868 | fi |
dd184caf |
5869 | ac_res=`eval echo '${'$as_ac_Header'}'` |
5870 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
5871 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
5872 | |
5873 | fi |
5874 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
5875 | cat >>confdefs.h <<_ACEOF |
5876 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
5877 | _ACEOF |
5878 | |
5879 | fi |
5880 | |
5881 | done |
5882 | |
5883 | |
5884 | |
5885 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
5886 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
5887 | (test "X$CXX" != "Xg++"))) ; then |
dd184caf |
5888 | ac_ext=cpp |
d9898ee8 |
5889 | ac_cpp='$CXXCPP $CPPFLAGS' |
5890 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5891 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5892 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
dd184caf |
5893 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
5894 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } |
d9898ee8 |
5895 | if test -z "$CXXCPP"; then |
5896 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
5897 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5898 | else |
5899 | # Double quotes because CXXCPP needs to be expanded |
5900 | for CXXCPP in "$CXX -E" "/lib/cpp" |
5901 | do |
5902 | ac_preproc_ok=false |
5903 | for ac_cxx_preproc_warn_flag in '' yes |
5904 | do |
5905 | # Use a header file that comes with gcc, so configuring glibc |
5906 | # with a fresh cross-compiler works. |
5907 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
5908 | # <limits.h> exists even on freestanding compilers. |
5909 | # On the NeXT, cc -E runs the code through the compiler's parser, |
5910 | # not just through cpp. "Syntax error" is here to catch this case. |
5911 | cat >conftest.$ac_ext <<_ACEOF |
5912 | /* confdefs.h. */ |
5913 | _ACEOF |
5914 | cat confdefs.h >>conftest.$ac_ext |
5915 | cat >>conftest.$ac_ext <<_ACEOF |
5916 | /* end confdefs.h. */ |
5917 | #ifdef __STDC__ |
5918 | # include <limits.h> |
5919 | #else |
5920 | # include <assert.h> |
5921 | #endif |
5922 | Syntax error |
5923 | _ACEOF |
dd184caf |
5924 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5925 | case "(($ac_try" in |
5926 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5927 | *) ac_try_echo=$ac_try;; |
5928 | esac |
5929 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5930 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
5931 | ac_status=$? |
5932 | grep -v '^ *+' conftest.er1 >conftest.err |
5933 | rm -f conftest.er1 |
5934 | cat conftest.err >&5 |
5935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
5936 | (exit $ac_status); } >/dev/null && { |
5937 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
5938 | test ! -s conftest.err |
5939 | }; then |
d9898ee8 |
5940 | : |
5941 | else |
5942 | echo "$as_me: failed program was:" >&5 |
5943 | sed 's/^/| /' conftest.$ac_ext >&5 |
5944 | |
5945 | # Broken: fails on valid input. |
5946 | continue |
5947 | fi |
dd184caf |
5948 | |
d9898ee8 |
5949 | rm -f conftest.err conftest.$ac_ext |
5950 | |
dd184caf |
5951 | # OK, works on sane cases. Now check whether nonexistent headers |
d9898ee8 |
5952 | # can be detected and how. |
5953 | cat >conftest.$ac_ext <<_ACEOF |
5954 | /* confdefs.h. */ |
5955 | _ACEOF |
5956 | cat confdefs.h >>conftest.$ac_ext |
5957 | cat >>conftest.$ac_ext <<_ACEOF |
5958 | /* end confdefs.h. */ |
5959 | #include <ac_nonexistent.h> |
5960 | _ACEOF |
dd184caf |
5961 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5962 | case "(($ac_try" in |
5963 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5964 | *) ac_try_echo=$ac_try;; |
5965 | esac |
5966 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5967 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
5968 | ac_status=$? |
5969 | grep -v '^ *+' conftest.er1 >conftest.err |
5970 | rm -f conftest.er1 |
5971 | cat conftest.err >&5 |
5972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
5973 | (exit $ac_status); } >/dev/null && { |
5974 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
5975 | test ! -s conftest.err |
5976 | }; then |
d9898ee8 |
5977 | # Broken: success on invalid input. |
5978 | continue |
5979 | else |
5980 | echo "$as_me: failed program was:" >&5 |
5981 | sed 's/^/| /' conftest.$ac_ext >&5 |
5982 | |
5983 | # Passes both tests. |
5984 | ac_preproc_ok=: |
5985 | break |
5986 | fi |
dd184caf |
5987 | |
d9898ee8 |
5988 | rm -f conftest.err conftest.$ac_ext |
5989 | |
5990 | done |
5991 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
5992 | rm -f conftest.err conftest.$ac_ext |
5993 | if $ac_preproc_ok; then |
5994 | break |
5995 | fi |
5996 | |
5997 | done |
5998 | ac_cv_prog_CXXCPP=$CXXCPP |
5999 | |
6000 | fi |
6001 | CXXCPP=$ac_cv_prog_CXXCPP |
6002 | else |
6003 | ac_cv_prog_CXXCPP=$CXXCPP |
6004 | fi |
dd184caf |
6005 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
6006 | echo "${ECHO_T}$CXXCPP" >&6; } |
d9898ee8 |
6007 | ac_preproc_ok=false |
6008 | for ac_cxx_preproc_warn_flag in '' yes |
6009 | do |
6010 | # Use a header file that comes with gcc, so configuring glibc |
6011 | # with a fresh cross-compiler works. |
6012 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
6013 | # <limits.h> exists even on freestanding compilers. |
6014 | # On the NeXT, cc -E runs the code through the compiler's parser, |
6015 | # not just through cpp. "Syntax error" is here to catch this case. |
6016 | cat >conftest.$ac_ext <<_ACEOF |
6017 | /* confdefs.h. */ |
6018 | _ACEOF |
6019 | cat confdefs.h >>conftest.$ac_ext |
6020 | cat >>conftest.$ac_ext <<_ACEOF |
6021 | /* end confdefs.h. */ |
6022 | #ifdef __STDC__ |
6023 | # include <limits.h> |
6024 | #else |
6025 | # include <assert.h> |
6026 | #endif |
6027 | Syntax error |
6028 | _ACEOF |
dd184caf |
6029 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
6030 | case "(($ac_try" in |
6031 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6032 | *) ac_try_echo=$ac_try;; |
6033 | esac |
6034 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6035 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
6036 | ac_status=$? |
6037 | grep -v '^ *+' conftest.er1 >conftest.err |
6038 | rm -f conftest.er1 |
6039 | cat conftest.err >&5 |
6040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
6041 | (exit $ac_status); } >/dev/null && { |
6042 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
6043 | test ! -s conftest.err |
6044 | }; then |
d9898ee8 |
6045 | : |
6046 | else |
6047 | echo "$as_me: failed program was:" >&5 |
6048 | sed 's/^/| /' conftest.$ac_ext >&5 |
6049 | |
6050 | # Broken: fails on valid input. |
6051 | continue |
6052 | fi |
dd184caf |
6053 | |
d9898ee8 |
6054 | rm -f conftest.err conftest.$ac_ext |
6055 | |
dd184caf |
6056 | # OK, works on sane cases. Now check whether nonexistent headers |
d9898ee8 |
6057 | # can be detected and how. |
6058 | cat >conftest.$ac_ext <<_ACEOF |
6059 | /* confdefs.h. */ |
6060 | _ACEOF |
6061 | cat confdefs.h >>conftest.$ac_ext |
6062 | cat >>conftest.$ac_ext <<_ACEOF |
6063 | /* end confdefs.h. */ |
6064 | #include <ac_nonexistent.h> |
6065 | _ACEOF |
dd184caf |
6066 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
6067 | case "(($ac_try" in |
6068 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6069 | *) ac_try_echo=$ac_try;; |
6070 | esac |
6071 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6072 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
6073 | ac_status=$? |
6074 | grep -v '^ *+' conftest.er1 >conftest.err |
6075 | rm -f conftest.er1 |
6076 | cat conftest.err >&5 |
6077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
6078 | (exit $ac_status); } >/dev/null && { |
6079 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
6080 | test ! -s conftest.err |
6081 | }; then |
d9898ee8 |
6082 | # Broken: success on invalid input. |
6083 | continue |
6084 | else |
6085 | echo "$as_me: failed program was:" >&5 |
6086 | sed 's/^/| /' conftest.$ac_ext >&5 |
6087 | |
6088 | # Passes both tests. |
6089 | ac_preproc_ok=: |
6090 | break |
6091 | fi |
dd184caf |
6092 | |
d9898ee8 |
6093 | rm -f conftest.err conftest.$ac_ext |
6094 | |
6095 | done |
6096 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
6097 | rm -f conftest.err conftest.$ac_ext |
6098 | if $ac_preproc_ok; then |
6099 | : |
6100 | else |
6101 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
6102 | See \`config.log' for more details." >&5 |
6103 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
6104 | See \`config.log' for more details." >&2;} |
6105 | { (exit 1); exit 1; }; } |
6106 | fi |
6107 | |
dd184caf |
6108 | ac_ext=cpp |
d9898ee8 |
6109 | ac_cpp='$CXXCPP $CPPFLAGS' |
6110 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6111 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6112 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
6113 | |
6114 | fi |
6115 | |
6116 | |
6117 | ac_ext=f |
6118 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
6119 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6120 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
6121 | if test -n "$ac_tool_prefix"; then |
dd184caf |
6122 | for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn |
d9898ee8 |
6123 | do |
6124 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
6125 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
dd184caf |
6126 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6127 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
6128 | if test "${ac_cv_prog_F77+set}" = set; then |
6129 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6130 | else |
6131 | if test -n "$F77"; then |
6132 | ac_cv_prog_F77="$F77" # Let the user override the test. |
6133 | else |
6134 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6135 | for as_dir in $PATH |
6136 | do |
6137 | IFS=$as_save_IFS |
6138 | test -z "$as_dir" && as_dir=. |
6139 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
6140 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
6141 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
6142 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6143 | break 2 |
6144 | fi |
6145 | done |
6146 | done |
dd184caf |
6147 | IFS=$as_save_IFS |
d9898ee8 |
6148 | |
6149 | fi |
6150 | fi |
6151 | F77=$ac_cv_prog_F77 |
6152 | if test -n "$F77"; then |
dd184caf |
6153 | { echo "$as_me:$LINENO: result: $F77" >&5 |
6154 | echo "${ECHO_T}$F77" >&6; } |
d9898ee8 |
6155 | else |
dd184caf |
6156 | { echo "$as_me:$LINENO: result: no" >&5 |
6157 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
6158 | fi |
6159 | |
dd184caf |
6160 | |
d9898ee8 |
6161 | test -n "$F77" && break |
6162 | done |
6163 | fi |
6164 | if test -z "$F77"; then |
6165 | ac_ct_F77=$F77 |
dd184caf |
6166 | for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn |
d9898ee8 |
6167 | do |
6168 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
6169 | set dummy $ac_prog; ac_word=$2 |
dd184caf |
6170 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6171 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
6172 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
6173 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6174 | else |
6175 | if test -n "$ac_ct_F77"; then |
6176 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
6177 | else |
6178 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6179 | for as_dir in $PATH |
6180 | do |
6181 | IFS=$as_save_IFS |
6182 | test -z "$as_dir" && as_dir=. |
6183 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
6184 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
6185 | ac_cv_prog_ac_ct_F77="$ac_prog" |
6186 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6187 | break 2 |
6188 | fi |
6189 | done |
6190 | done |
dd184caf |
6191 | IFS=$as_save_IFS |
d9898ee8 |
6192 | |
6193 | fi |
6194 | fi |
6195 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
6196 | if test -n "$ac_ct_F77"; then |
dd184caf |
6197 | { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
6198 | echo "${ECHO_T}$ac_ct_F77" >&6; } |
d9898ee8 |
6199 | else |
dd184caf |
6200 | { echo "$as_me:$LINENO: result: no" >&5 |
6201 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
6202 | fi |
6203 | |
dd184caf |
6204 | |
d9898ee8 |
6205 | test -n "$ac_ct_F77" && break |
6206 | done |
6207 | |
dd184caf |
6208 | if test "x$ac_ct_F77" = x; then |
6209 | F77="" |
6210 | else |
6211 | case $cross_compiling:$ac_tool_warned in |
6212 | yes:) |
6213 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
6214 | whose name does not start with the host triplet. If you think this |
6215 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
6216 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
6217 | whose name does not start with the host triplet. If you think this |
6218 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
6219 | ac_tool_warned=yes ;; |
6220 | esac |
6221 | F77=$ac_ct_F77 |
6222 | fi |
d9898ee8 |
6223 | fi |
6224 | |
6225 | |
6226 | # Provide some information about the compiler. |
dd184caf |
6227 | echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 |
d9898ee8 |
6228 | ac_compiler=`set X $ac_compile; echo $2` |
dd184caf |
6229 | { (ac_try="$ac_compiler --version >&5" |
6230 | case "(($ac_try" in |
6231 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6232 | *) ac_try_echo=$ac_try;; |
6233 | esac |
6234 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6235 | (eval "$ac_compiler --version >&5") 2>&5 |
d9898ee8 |
6236 | ac_status=$? |
6237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6238 | (exit $ac_status); } |
dd184caf |
6239 | { (ac_try="$ac_compiler -v >&5" |
6240 | case "(($ac_try" in |
6241 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6242 | *) ac_try_echo=$ac_try;; |
6243 | esac |
6244 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6245 | (eval "$ac_compiler -v >&5") 2>&5 |
d9898ee8 |
6246 | ac_status=$? |
6247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6248 | (exit $ac_status); } |
dd184caf |
6249 | { (ac_try="$ac_compiler -V >&5" |
6250 | case "(($ac_try" in |
6251 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6252 | *) ac_try_echo=$ac_try;; |
6253 | esac |
6254 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6255 | (eval "$ac_compiler -V >&5") 2>&5 |
d9898ee8 |
6256 | ac_status=$? |
6257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6258 | (exit $ac_status); } |
6259 | rm -f a.out |
6260 | |
6261 | # If we don't use `.F' as extension, the preprocessor is not run on the |
6262 | # input file. (Note that this only needs to work for GNU compilers.) |
6263 | ac_save_ext=$ac_ext |
6264 | ac_ext=F |
dd184caf |
6265 | { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
6266 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } |
d9898ee8 |
6267 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
6268 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6269 | else |
6270 | cat >conftest.$ac_ext <<_ACEOF |
6271 | program main |
6272 | #ifndef __GNUC__ |
6273 | choke me |
6274 | #endif |
6275 | |
6276 | end |
6277 | _ACEOF |
6278 | rm -f conftest.$ac_objext |
dd184caf |
6279 | if { (ac_try="$ac_compile" |
6280 | case "(($ac_try" in |
6281 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6282 | *) ac_try_echo=$ac_try;; |
6283 | esac |
6284 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6285 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
6286 | ac_status=$? |
6287 | grep -v '^ *+' conftest.er1 >conftest.err |
6288 | rm -f conftest.er1 |
6289 | cat conftest.err >&5 |
6290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
6291 | (exit $ac_status); } && { |
6292 | test -z "$ac_f77_werror_flag" || |
6293 | test ! -s conftest.err |
6294 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
6295 | ac_compiler_gnu=yes |
6296 | else |
6297 | echo "$as_me: failed program was:" >&5 |
6298 | sed 's/^/| /' conftest.$ac_ext >&5 |
6299 | |
dd184caf |
6300 | ac_compiler_gnu=no |
d9898ee8 |
6301 | fi |
dd184caf |
6302 | |
6303 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
6304 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
6305 | |
6306 | fi |
dd184caf |
6307 | { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
6308 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } |
d9898ee8 |
6309 | ac_ext=$ac_save_ext |
6310 | ac_test_FFLAGS=${FFLAGS+set} |
6311 | ac_save_FFLAGS=$FFLAGS |
6312 | FFLAGS= |
dd184caf |
6313 | { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
6314 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } |
d9898ee8 |
6315 | if test "${ac_cv_prog_f77_g+set}" = set; then |
6316 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6317 | else |
6318 | FFLAGS=-g |
6319 | cat >conftest.$ac_ext <<_ACEOF |
6320 | program main |
6321 | |
6322 | end |
6323 | _ACEOF |
6324 | rm -f conftest.$ac_objext |
dd184caf |
6325 | if { (ac_try="$ac_compile" |
6326 | case "(($ac_try" in |
6327 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6328 | *) ac_try_echo=$ac_try;; |
6329 | esac |
6330 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6331 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
6332 | ac_status=$? |
6333 | grep -v '^ *+' conftest.er1 >conftest.err |
6334 | rm -f conftest.er1 |
6335 | cat conftest.err >&5 |
6336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
6337 | (exit $ac_status); } && { |
6338 | test -z "$ac_f77_werror_flag" || |
6339 | test ! -s conftest.err |
6340 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
6341 | ac_cv_prog_f77_g=yes |
6342 | else |
6343 | echo "$as_me: failed program was:" >&5 |
6344 | sed 's/^/| /' conftest.$ac_ext >&5 |
6345 | |
dd184caf |
6346 | ac_cv_prog_f77_g=no |
d9898ee8 |
6347 | fi |
dd184caf |
6348 | |
6349 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
6350 | |
6351 | fi |
dd184caf |
6352 | { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
6353 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } |
d9898ee8 |
6354 | if test "$ac_test_FFLAGS" = set; then |
6355 | FFLAGS=$ac_save_FFLAGS |
6356 | elif test $ac_cv_prog_f77_g = yes; then |
6357 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
6358 | FFLAGS="-g -O2" |
6359 | else |
6360 | FFLAGS="-g" |
6361 | fi |
6362 | else |
6363 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
6364 | FFLAGS="-O2" |
6365 | else |
6366 | FFLAGS= |
6367 | fi |
6368 | fi |
6369 | |
6370 | G77=`test $ac_compiler_gnu = yes && echo yes` |
6371 | ac_ext=c |
6372 | ac_cpp='$CPP $CPPFLAGS' |
6373 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6374 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6375 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
6376 | |
6377 | |
6378 | |
6379 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
6380 | |
6381 | # find the maximum length of command line arguments |
dd184caf |
6382 | { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
6383 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } |
d9898ee8 |
6384 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
6385 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6386 | else |
6387 | i=0 |
6388 | teststring="ABCD" |
6389 | |
6390 | case $build_os in |
6391 | msdosdjgpp*) |
6392 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
6393 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
6394 | # during glob expansion). Even if it were fixed, the result of this |
6395 | # check would be larger than it should be. |
6396 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
6397 | ;; |
6398 | |
6399 | gnu*) |
6400 | # Under GNU Hurd, this test is not required because there is |
6401 | # no limit to the length of command line arguments. |
6402 | # Libtool will interpret -1 as no limit whatsoever |
6403 | lt_cv_sys_max_cmd_len=-1; |
6404 | ;; |
6405 | |
6406 | cygwin* | mingw*) |
6407 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
6408 | # about 5 minutes as the teststring grows exponentially. |
6409 | # Worse, since 9x/ME are not pre-emptively multitasking, |
6410 | # you end up with a "frozen" computer, even though with patience |
6411 | # the test eventually succeeds (with a max line length of 256k). |
6412 | # Instead, let's just punt: use the minimum linelength reported by |
6413 | # all of the supported platforms: 8192 (on NT/2K/XP). |
6414 | lt_cv_sys_max_cmd_len=8192; |
6415 | ;; |
6416 | |
6417 | amigaos*) |
6418 | # On AmigaOS with pdksh, this test takes hours, literally. |
6419 | # So we just punt and use a minimum line length of 8192. |
6420 | lt_cv_sys_max_cmd_len=8192; |
6421 | ;; |
6422 | |
6423 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
6424 | # This has been around since 386BSD, at least. Likely further. |
6425 | if test -x /sbin/sysctl; then |
6426 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
6427 | elif test -x /usr/sbin/sysctl; then |
6428 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
6429 | else |
6430 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
6431 | fi |
6432 | # And add a safety zone |
6433 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
6434 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
6435 | ;; |
6436 | |
6437 | interix*) |
6438 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
6439 | lt_cv_sys_max_cmd_len=196608 |
6440 | ;; |
6441 | |
6442 | osf*) |
6443 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
6444 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
6445 | # nice to cause kernel panics so lets avoid the loop below. |
6446 | # First set a reasonable default. |
6447 | lt_cv_sys_max_cmd_len=16384 |
6448 | # |
6449 | if test -x /sbin/sysconfig; then |
6450 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
6451 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
6452 | esac |
6453 | fi |
6454 | ;; |
6455 | sco3.2v5*) |
6456 | lt_cv_sys_max_cmd_len=102400 |
6457 | ;; |
6458 | sysv5* | sco5v6* | sysv4.2uw2*) |
6459 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
6460 | if test -n "$kargmax"; then |
6461 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
6462 | else |
6463 | lt_cv_sys_max_cmd_len=32768 |
6464 | fi |
6465 | ;; |
6466 | *) |
6467 | # If test is not a shell built-in, we'll probably end up computing a |
6468 | # maximum length that is only half of the actual maximum length, but |
6469 | # we can't tell. |
6470 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
6471 | while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
6472 | = "XX$teststring") >/dev/null 2>&1 && |
6473 | new_result=`expr "X$teststring" : ".*" 2>&1` && |
6474 | lt_cv_sys_max_cmd_len=$new_result && |
6475 | test $i != 17 # 1/2 MB should be enough |
6476 | do |
6477 | i=`expr $i + 1` |
6478 | teststring=$teststring$teststring |
6479 | done |
6480 | teststring= |
6481 | # Add a significant safety factor because C++ compilers can tack on massive |
6482 | # amounts of additional arguments before passing them to the linker. |
6483 | # It appears as though 1/2 is a usable value. |
6484 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
6485 | ;; |
6486 | esac |
6487 | |
6488 | fi |
6489 | |
6490 | if test -n $lt_cv_sys_max_cmd_len ; then |
dd184caf |
6491 | { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
6492 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } |
d9898ee8 |
6493 | else |
dd184caf |
6494 | { echo "$as_me:$LINENO: result: none" >&5 |
6495 | echo "${ECHO_T}none" >&6; } |
d9898ee8 |
6496 | fi |
6497 | |
6498 | |
6499 | |
6500 | |
6501 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
dd184caf |
6502 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
6503 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } |
d9898ee8 |
6504 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
6505 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6506 | else |
6507 | |
6508 | # These are sane defaults that work on at least a few old systems. |
6509 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
6510 | |
6511 | # Character class describing NM global symbol codes. |
6512 | symcode='[BCDEGRST]' |
6513 | |
6514 | # Regexp to match symbols that can be accessed directly from C. |
6515 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
6516 | |
6517 | # Transform an extracted symbol line into a proper C declaration |
6518 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
6519 | |
6520 | # Transform an extracted symbol line into symbol name and symbol address |
6521 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
6522 | |
6523 | # Define system-specific variables. |
6524 | case $host_os in |
6525 | aix*) |
6526 | symcode='[BCDT]' |
6527 | ;; |
6528 | cygwin* | mingw* | pw32*) |
6529 | symcode='[ABCDGISTW]' |
6530 | ;; |
6531 | hpux*) # Its linker distinguishes data from code symbols |
6532 | if test "$host_cpu" = ia64; then |
6533 | symcode='[ABCDEGRST]' |
6534 | fi |
6535 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
6536 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
6537 | ;; |
6538 | linux*) |
6539 | if test "$host_cpu" = ia64; then |
6540 | symcode='[ABCDGIRSTW]' |
6541 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
6542 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
6543 | fi |
6544 | ;; |
6545 | irix* | nonstopux*) |
6546 | symcode='[BCDEGRST]' |
6547 | ;; |
6548 | osf*) |
6549 | symcode='[BCDEGQRST]' |
6550 | ;; |
6551 | solaris*) |
6552 | symcode='[BDRT]' |
6553 | ;; |
6554 | sco3.2v5*) |
6555 | symcode='[DT]' |
6556 | ;; |
6557 | sysv4.2uw2*) |
6558 | symcode='[DT]' |
6559 | ;; |
6560 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
6561 | symcode='[ABDT]' |
6562 | ;; |
6563 | sysv4) |
6564 | symcode='[DFNSTU]' |
6565 | ;; |
6566 | esac |
6567 | |
6568 | # Handle CRLF in mingw tool chain |
6569 | opt_cr= |
6570 | case $build_os in |
6571 | mingw*) |
6572 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
6573 | ;; |
6574 | esac |
6575 | |
6576 | # If we're using GNU nm, then use its standard symbol codes. |
6577 | case `$NM -V 2>&1` in |
6578 | *GNU* | *'with BFD'*) |
6579 | symcode='[ABCDGIRSTW]' ;; |
6580 | esac |
6581 | |
6582 | # Try without a prefix undercore, then with it. |
6583 | for ac_symprfx in "" "_"; do |
6584 | |
6585 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
6586 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
6587 | |
6588 | # Write the raw and C identifiers. |
6589 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
6590 | |
6591 | # Check to see that the pipe works correctly. |
6592 | pipe_works=no |
6593 | |
6594 | rm -f conftest* |
6595 | cat > conftest.$ac_ext <<EOF |
6596 | #ifdef __cplusplus |
6597 | extern "C" { |
6598 | #endif |
6599 | char nm_test_var; |
6600 | void nm_test_func(){} |
6601 | #ifdef __cplusplus |
6602 | } |
6603 | #endif |
6604 | int main(){nm_test_var='a';nm_test_func();return(0);} |
6605 | EOF |
6606 | |
6607 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
6608 | (eval $ac_compile) 2>&5 |
6609 | ac_status=$? |
6610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6611 | (exit $ac_status); }; then |
6612 | # Now try to grab the symbols. |
6613 | nlist=conftest.nm |
6614 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
6615 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
6616 | ac_status=$? |
6617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6618 | (exit $ac_status); } && test -s "$nlist"; then |
6619 | # Try sorting and uniquifying the output. |
6620 | if sort "$nlist" | uniq > "$nlist"T; then |
6621 | mv -f "$nlist"T "$nlist" |
6622 | else |
6623 | rm -f "$nlist"T |
6624 | fi |
6625 | |
6626 | # Make sure that we snagged all the symbols we need. |
6627 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
6628 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
6629 | cat <<EOF > conftest.$ac_ext |
6630 | #ifdef __cplusplus |
6631 | extern "C" { |
6632 | #endif |
6633 | |
6634 | EOF |
6635 | # Now generate the symbol file. |
6636 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
6637 | |
6638 | cat <<EOF >> conftest.$ac_ext |
6639 | #if defined (__STDC__) && __STDC__ |
6640 | # define lt_ptr_t void * |
6641 | #else |
6642 | # define lt_ptr_t char * |
6643 | # define const |
6644 | #endif |
6645 | |
6646 | /* The mapping between symbol names and symbols. */ |
6647 | const struct { |
6648 | const char *name; |
6649 | lt_ptr_t address; |
6650 | } |
6651 | lt_preloaded_symbols[] = |
6652 | { |
6653 | EOF |
6654 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
6655 | cat <<\EOF >> conftest.$ac_ext |
6656 | {0, (lt_ptr_t) 0} |
6657 | }; |
6658 | |
6659 | #ifdef __cplusplus |
6660 | } |
6661 | #endif |
6662 | EOF |
6663 | # Now try linking the two files. |
6664 | mv conftest.$ac_objext conftstm.$ac_objext |
6665 | lt_save_LIBS="$LIBS" |
6666 | lt_save_CFLAGS="$CFLAGS" |
6667 | LIBS="conftstm.$ac_objext" |
6668 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
6669 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
6670 | (eval $ac_link) 2>&5 |
6671 | ac_status=$? |
6672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6673 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
6674 | pipe_works=yes |
6675 | fi |
6676 | LIBS="$lt_save_LIBS" |
6677 | CFLAGS="$lt_save_CFLAGS" |
6678 | else |
6679 | echo "cannot find nm_test_func in $nlist" >&5 |
6680 | fi |
6681 | else |
6682 | echo "cannot find nm_test_var in $nlist" >&5 |
6683 | fi |
6684 | else |
6685 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
6686 | fi |
6687 | else |
6688 | echo "$progname: failed program was:" >&5 |
6689 | cat conftest.$ac_ext >&5 |
6690 | fi |
6691 | rm -f conftest* conftst* |
6692 | |
6693 | # Do not use the global_symbol_pipe unless it works. |
6694 | if test "$pipe_works" = yes; then |
6695 | break |
6696 | else |
6697 | lt_cv_sys_global_symbol_pipe= |
6698 | fi |
6699 | done |
6700 | |
6701 | fi |
6702 | |
6703 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
6704 | lt_cv_sys_global_symbol_to_cdecl= |
6705 | fi |
6706 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
dd184caf |
6707 | { echo "$as_me:$LINENO: result: failed" >&5 |
6708 | echo "${ECHO_T}failed" >&6; } |
d9898ee8 |
6709 | else |
dd184caf |
6710 | { echo "$as_me:$LINENO: result: ok" >&5 |
6711 | echo "${ECHO_T}ok" >&6; } |
d9898ee8 |
6712 | fi |
6713 | |
dd184caf |
6714 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
6715 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
d9898ee8 |
6716 | if test "${lt_cv_objdir+set}" = set; then |
6717 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6718 | else |
6719 | rm -f .libs 2>/dev/null |
6720 | mkdir .libs 2>/dev/null |
6721 | if test -d .libs; then |
6722 | lt_cv_objdir=.libs |
6723 | else |
6724 | # MS-DOS does not allow filenames that begin with a dot. |
6725 | lt_cv_objdir=_libs |
6726 | fi |
6727 | rmdir .libs 2>/dev/null |
6728 | fi |
dd184caf |
6729 | { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
6730 | echo "${ECHO_T}$lt_cv_objdir" >&6; } |
d9898ee8 |
6731 | objdir=$lt_cv_objdir |
6732 | |
6733 | |
6734 | |
6735 | |
6736 | |
6737 | case $host_os in |
6738 | aix3*) |
6739 | # AIX sometimes has problems with the GCC collect2 program. For some |
6740 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
6741 | # vanish in a puff of smoke. |
6742 | if test "X${COLLECT_NAMES+set}" != Xset; then |
6743 | COLLECT_NAMES= |
6744 | export COLLECT_NAMES |
6745 | fi |
6746 | ;; |
6747 | esac |
6748 | |
6749 | # Sed substitution that helps us do robust quoting. It backslashifies |
6750 | # metacharacters that are still active within double-quoted strings. |
6751 | Xsed='sed -e 1s/^X//' |
6752 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
6753 | |
6754 | # Same as above, but do not quote variable references. |
6755 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
6756 | |
6757 | # Sed substitution to delay expansion of an escaped shell variable in a |
6758 | # double_quote_subst'ed string. |
6759 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
6760 | |
6761 | # Sed substitution to avoid accidental globbing in evaled expressions |
6762 | no_glob_subst='s/\*/\\\*/g' |
6763 | |
6764 | # Constants: |
6765 | rm="rm -f" |
6766 | |
6767 | # Global variables: |
6768 | default_ofile=libtool |
6769 | can_build_shared=yes |
6770 | |
6771 | # All known linkers require a `.a' archive for static linking (except MSVC, |
6772 | # which needs '.lib'). |
6773 | libext=a |
6774 | ltmain="$ac_aux_dir/ltmain.sh" |
6775 | ofile="$default_ofile" |
6776 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
6777 | |
6778 | if test -n "$ac_tool_prefix"; then |
6779 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
6780 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
dd184caf |
6781 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6782 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
6783 | if test "${ac_cv_prog_AR+set}" = set; then |
6784 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6785 | else |
6786 | if test -n "$AR"; then |
6787 | ac_cv_prog_AR="$AR" # Let the user override the test. |
6788 | else |
6789 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6790 | for as_dir in $PATH |
6791 | do |
6792 | IFS=$as_save_IFS |
6793 | test -z "$as_dir" && as_dir=. |
6794 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
6795 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
6796 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
6797 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6798 | break 2 |
6799 | fi |
6800 | done |
6801 | done |
dd184caf |
6802 | IFS=$as_save_IFS |
d9898ee8 |
6803 | |
6804 | fi |
6805 | fi |
6806 | AR=$ac_cv_prog_AR |
6807 | if test -n "$AR"; then |
dd184caf |
6808 | { echo "$as_me:$LINENO: result: $AR" >&5 |
6809 | echo "${ECHO_T}$AR" >&6; } |
d9898ee8 |
6810 | else |
dd184caf |
6811 | { echo "$as_me:$LINENO: result: no" >&5 |
6812 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
6813 | fi |
6814 | |
dd184caf |
6815 | |
d9898ee8 |
6816 | fi |
6817 | if test -z "$ac_cv_prog_AR"; then |
6818 | ac_ct_AR=$AR |
6819 | # Extract the first word of "ar", so it can be a program name with args. |
6820 | set dummy ar; ac_word=$2 |
dd184caf |
6821 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6822 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
6823 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
6824 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6825 | else |
6826 | if test -n "$ac_ct_AR"; then |
6827 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
6828 | else |
6829 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6830 | for as_dir in $PATH |
6831 | do |
6832 | IFS=$as_save_IFS |
6833 | test -z "$as_dir" && as_dir=. |
6834 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
6835 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
6836 | ac_cv_prog_ac_ct_AR="ar" |
6837 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6838 | break 2 |
6839 | fi |
6840 | done |
6841 | done |
dd184caf |
6842 | IFS=$as_save_IFS |
d9898ee8 |
6843 | |
d9898ee8 |
6844 | fi |
6845 | fi |
6846 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
6847 | if test -n "$ac_ct_AR"; then |
dd184caf |
6848 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
6849 | echo "${ECHO_T}$ac_ct_AR" >&6; } |
d9898ee8 |
6850 | else |
dd184caf |
6851 | { echo "$as_me:$LINENO: result: no" >&5 |
6852 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
6853 | fi |
6854 | |
dd184caf |
6855 | if test "x$ac_ct_AR" = x; then |
6856 | AR="false" |
6857 | else |
6858 | case $cross_compiling:$ac_tool_warned in |
6859 | yes:) |
6860 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
6861 | whose name does not start with the host triplet. If you think this |
6862 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
6863 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
6864 | whose name does not start with the host triplet. If you think this |
6865 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
6866 | ac_tool_warned=yes ;; |
6867 | esac |
6868 | AR=$ac_ct_AR |
6869 | fi |
d9898ee8 |
6870 | else |
6871 | AR="$ac_cv_prog_AR" |
6872 | fi |
6873 | |
6874 | if test -n "$ac_tool_prefix"; then |
6875 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
6876 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
dd184caf |
6877 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6878 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
6879 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
6880 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6881 | else |
6882 | if test -n "$RANLIB"; then |
6883 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
6884 | else |
6885 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6886 | for as_dir in $PATH |
6887 | do |
6888 | IFS=$as_save_IFS |
6889 | test -z "$as_dir" && as_dir=. |
6890 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
6891 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
6892 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
6893 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6894 | break 2 |
6895 | fi |
6896 | done |
6897 | done |
dd184caf |
6898 | IFS=$as_save_IFS |
d9898ee8 |
6899 | |
6900 | fi |
6901 | fi |
6902 | RANLIB=$ac_cv_prog_RANLIB |
6903 | if test -n "$RANLIB"; then |
dd184caf |
6904 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
6905 | echo "${ECHO_T}$RANLIB" >&6; } |
d9898ee8 |
6906 | else |
dd184caf |
6907 | { echo "$as_me:$LINENO: result: no" >&5 |
6908 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
6909 | fi |
6910 | |
dd184caf |
6911 | |
d9898ee8 |
6912 | fi |
6913 | if test -z "$ac_cv_prog_RANLIB"; then |
6914 | ac_ct_RANLIB=$RANLIB |
6915 | # Extract the first word of "ranlib", so it can be a program name with args. |
6916 | set dummy ranlib; ac_word=$2 |
dd184caf |
6917 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6918 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
6919 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
6920 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6921 | else |
6922 | if test -n "$ac_ct_RANLIB"; then |
6923 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
6924 | else |
6925 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6926 | for as_dir in $PATH |
6927 | do |
6928 | IFS=$as_save_IFS |
6929 | test -z "$as_dir" && as_dir=. |
6930 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
6931 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
6932 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
6933 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6934 | break 2 |
6935 | fi |
6936 | done |
6937 | done |
dd184caf |
6938 | IFS=$as_save_IFS |
d9898ee8 |
6939 | |
d9898ee8 |
6940 | fi |
6941 | fi |
6942 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
6943 | if test -n "$ac_ct_RANLIB"; then |
dd184caf |
6944 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
6945 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
d9898ee8 |
6946 | else |
dd184caf |
6947 | { echo "$as_me:$LINENO: result: no" >&5 |
6948 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
6949 | fi |
6950 | |
dd184caf |
6951 | if test "x$ac_ct_RANLIB" = x; then |
6952 | RANLIB=":" |
6953 | else |
6954 | case $cross_compiling:$ac_tool_warned in |
6955 | yes:) |
6956 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
6957 | whose name does not start with the host triplet. If you think this |
6958 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
6959 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
6960 | whose name does not start with the host triplet. If you think this |
6961 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
6962 | ac_tool_warned=yes ;; |
6963 | esac |
6964 | RANLIB=$ac_ct_RANLIB |
6965 | fi |
d9898ee8 |
6966 | else |
6967 | RANLIB="$ac_cv_prog_RANLIB" |
6968 | fi |
6969 | |
6970 | if test -n "$ac_tool_prefix"; then |
6971 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
6972 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
dd184caf |
6973 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6974 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
6975 | if test "${ac_cv_prog_STRIP+set}" = set; then |
6976 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6977 | else |
6978 | if test -n "$STRIP"; then |
6979 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
6980 | else |
6981 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6982 | for as_dir in $PATH |
6983 | do |
6984 | IFS=$as_save_IFS |
6985 | test -z "$as_dir" && as_dir=. |
6986 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
6987 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
6988 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
6989 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6990 | break 2 |
6991 | fi |
6992 | done |
6993 | done |
dd184caf |
6994 | IFS=$as_save_IFS |
d9898ee8 |
6995 | |
6996 | fi |
6997 | fi |
6998 | STRIP=$ac_cv_prog_STRIP |
6999 | if test -n "$STRIP"; then |
dd184caf |
7000 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
7001 | echo "${ECHO_T}$STRIP" >&6; } |
d9898ee8 |
7002 | else |
dd184caf |
7003 | { echo "$as_me:$LINENO: result: no" >&5 |
7004 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
7005 | fi |
7006 | |
dd184caf |
7007 | |
d9898ee8 |
7008 | fi |
7009 | if test -z "$ac_cv_prog_STRIP"; then |
7010 | ac_ct_STRIP=$STRIP |
7011 | # Extract the first word of "strip", so it can be a program name with args. |
7012 | set dummy strip; ac_word=$2 |
dd184caf |
7013 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7014 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
7015 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
7016 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7017 | else |
7018 | if test -n "$ac_ct_STRIP"; then |
7019 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
7020 | else |
7021 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7022 | for as_dir in $PATH |
7023 | do |
7024 | IFS=$as_save_IFS |
7025 | test -z "$as_dir" && as_dir=. |
7026 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
7027 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
7028 | ac_cv_prog_ac_ct_STRIP="strip" |
7029 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7030 | break 2 |
7031 | fi |
7032 | done |
7033 | done |
dd184caf |
7034 | IFS=$as_save_IFS |
d9898ee8 |
7035 | |
d9898ee8 |
7036 | fi |
7037 | fi |
7038 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
7039 | if test -n "$ac_ct_STRIP"; then |
dd184caf |
7040 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
7041 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
d9898ee8 |
7042 | else |
dd184caf |
7043 | { echo "$as_me:$LINENO: result: no" >&5 |
7044 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
7045 | fi |
7046 | |
dd184caf |
7047 | if test "x$ac_ct_STRIP" = x; then |
7048 | STRIP=":" |
7049 | else |
7050 | case $cross_compiling:$ac_tool_warned in |
7051 | yes:) |
7052 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
7053 | whose name does not start with the host triplet. If you think this |
7054 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
7055 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
7056 | whose name does not start with the host triplet. If you think this |
7057 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
7058 | ac_tool_warned=yes ;; |
7059 | esac |
7060 | STRIP=$ac_ct_STRIP |
7061 | fi |
d9898ee8 |
7062 | else |
7063 | STRIP="$ac_cv_prog_STRIP" |
7064 | fi |
7065 | |
7066 | |
7067 | old_CC="$CC" |
7068 | old_CFLAGS="$CFLAGS" |
7069 | |
7070 | # Set sane defaults for various variables |
7071 | test -z "$AR" && AR=ar |
7072 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
7073 | test -z "$AS" && AS=as |
7074 | test -z "$CC" && CC=cc |
7075 | test -z "$LTCC" && LTCC=$CC |
7076 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
7077 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
7078 | test -z "$LD" && LD=ld |
7079 | test -z "$LN_S" && LN_S="ln -s" |
7080 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
7081 | test -z "$NM" && NM=nm |
7082 | test -z "$SED" && SED=sed |
7083 | test -z "$OBJDUMP" && OBJDUMP=objdump |
7084 | test -z "$RANLIB" && RANLIB=: |
7085 | test -z "$STRIP" && STRIP=: |
7086 | test -z "$ac_objext" && ac_objext=o |
7087 | |
7088 | # Determine commands to create old-style static archives. |
7089 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
7090 | old_postinstall_cmds='chmod 644 $oldlib' |
7091 | old_postuninstall_cmds= |
7092 | |
7093 | if test -n "$RANLIB"; then |
7094 | case $host_os in |
7095 | openbsd*) |
7096 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
7097 | ;; |
7098 | *) |
7099 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
7100 | ;; |
7101 | esac |
7102 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
7103 | fi |
7104 | |
7105 | for cc_temp in $compiler""; do |
7106 | case $cc_temp in |
7107 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
7108 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
7109 | \-*) ;; |
7110 | *) break;; |
7111 | esac |
7112 | done |
7113 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
7114 | |
7115 | |
7116 | # Only perform the check for file, if the check method requires it |
7117 | case $deplibs_check_method in |
7118 | file_magic*) |
7119 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
dd184caf |
7120 | { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
7121 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } |
d9898ee8 |
7122 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
7123 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7124 | else |
7125 | case $MAGIC_CMD in |
7126 | [\\/*] | ?:[\\/]*) |
7127 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
7128 | ;; |
7129 | *) |
7130 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
7131 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
7132 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
7133 | for ac_dir in $ac_dummy; do |
7134 | IFS="$lt_save_ifs" |
7135 | test -z "$ac_dir" && ac_dir=. |
7136 | if test -f $ac_dir/${ac_tool_prefix}file; then |
7137 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
7138 | if test -n "$file_magic_test_file"; then |
7139 | case $deplibs_check_method in |
7140 | "file_magic "*) |
7141 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
7142 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
7143 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
7144 | $EGREP "$file_magic_regex" > /dev/null; then |
7145 | : |
7146 | else |
7147 | cat <<EOF 1>&2 |
7148 | |
7149 | *** Warning: the command libtool uses to detect shared libraries, |
7150 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
7151 | *** The result is that libtool may fail to recognize shared libraries |
7152 | *** as such. This will affect the creation of libtool libraries that |
7153 | *** depend on shared libraries, but programs linked with such libtool |
7154 | *** libraries will work regardless of this problem. Nevertheless, you |
7155 | *** may want to report the problem to your system manager and/or to |
7156 | *** bug-libtool@gnu.org |
7157 | |
7158 | EOF |
7159 | fi ;; |
7160 | esac |
7161 | fi |
7162 | break |
7163 | fi |
7164 | done |
7165 | IFS="$lt_save_ifs" |
7166 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
7167 | ;; |
7168 | esac |
7169 | fi |
7170 | |
7171 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
7172 | if test -n "$MAGIC_CMD"; then |
dd184caf |
7173 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
7174 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
d9898ee8 |
7175 | else |
dd184caf |
7176 | { echo "$as_me:$LINENO: result: no" >&5 |
7177 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
7178 | fi |
7179 | |
7180 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
7181 | if test -n "$ac_tool_prefix"; then |
dd184caf |
7182 | { echo "$as_me:$LINENO: checking for file" >&5 |
7183 | echo $ECHO_N "checking for file... $ECHO_C" >&6; } |
d9898ee8 |
7184 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
7185 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7186 | else |
7187 | case $MAGIC_CMD in |
7188 | [\\/*] | ?:[\\/]*) |
7189 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
7190 | ;; |
7191 | *) |
7192 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
7193 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
7194 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
7195 | for ac_dir in $ac_dummy; do |
7196 | IFS="$lt_save_ifs" |
7197 | test -z "$ac_dir" && ac_dir=. |
7198 | if test -f $ac_dir/file; then |
7199 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
7200 | if test -n "$file_magic_test_file"; then |
7201 | case $deplibs_check_method in |
7202 | "file_magic "*) |
7203 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
7204 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
7205 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
7206 | $EGREP "$file_magic_regex" > /dev/null; then |
7207 | : |
7208 | else |
7209 | cat <<EOF 1>&2 |
7210 | |
7211 | *** Warning: the command libtool uses to detect shared libraries, |
7212 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
7213 | *** The result is that libtool may fail to recognize shared libraries |
7214 | *** as such. This will affect the creation of libtool libraries that |
7215 | *** depend on shared libraries, but programs linked with such libtool |
7216 | *** libraries will work regardless of this problem. Nevertheless, you |
7217 | *** may want to report the problem to your system manager and/or to |
7218 | *** bug-libtool@gnu.org |
7219 | |
7220 | EOF |
7221 | fi ;; |
7222 | esac |
7223 | fi |
7224 | break |
7225 | fi |
7226 | done |
7227 | IFS="$lt_save_ifs" |
7228 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
7229 | ;; |
7230 | esac |
7231 | fi |
7232 | |
7233 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
7234 | if test -n "$MAGIC_CMD"; then |
dd184caf |
7235 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
7236 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
d9898ee8 |
7237 | else |
dd184caf |
7238 | { echo "$as_me:$LINENO: result: no" >&5 |
7239 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
7240 | fi |
7241 | |
7242 | else |
7243 | MAGIC_CMD=: |
7244 | fi |
7245 | fi |
7246 | |
7247 | fi |
7248 | ;; |
7249 | esac |
7250 | |
7251 | enable_dlopen=no |
7252 | enable_win32_dll=no |
7253 | |
dd184caf |
7254 | # Check whether --enable-libtool-lock was given. |
d9898ee8 |
7255 | if test "${enable_libtool_lock+set}" = set; then |
dd184caf |
7256 | enableval=$enable_libtool_lock; |
7257 | fi |
d9898ee8 |
7258 | |
d9898ee8 |
7259 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
7260 | |
7261 | |
dd184caf |
7262 | # Check whether --with-pic was given. |
d9898ee8 |
7263 | if test "${with_pic+set}" = set; then |
dd184caf |
7264 | withval=$with_pic; pic_mode="$withval" |
d9898ee8 |
7265 | else |
7266 | pic_mode=default |
dd184caf |
7267 | fi |
7268 | |
d9898ee8 |
7269 | test -z "$pic_mode" && pic_mode=default |
7270 | |
7271 | # Use C for the default configuration in the libtool script |
7272 | tagname= |
7273 | lt_save_CC="$CC" |
7274 | ac_ext=c |
7275 | ac_cpp='$CPP $CPPFLAGS' |
7276 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
7277 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
7278 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
7279 | |
7280 | |
7281 | # Source file extension for C test sources. |
7282 | ac_ext=c |
7283 | |
7284 | # Object file extension for compiled C test sources. |
7285 | objext=o |
7286 | objext=$objext |
7287 | |
7288 | # Code to be used in simple compile tests |
7289 | lt_simple_compile_test_code="int some_variable = 0;\n" |
7290 | |
7291 | # Code to be used in simple link tests |
7292 | lt_simple_link_test_code='int main(){return(0);}\n' |
7293 | |
7294 | |
7295 | # If no C compiler was specified, use CC. |
7296 | LTCC=${LTCC-"$CC"} |
7297 | |
7298 | # If no C compiler flags were specified, use CFLAGS. |
7299 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
7300 | |
7301 | # Allow CC to be a program name with arguments. |
7302 | compiler=$CC |
7303 | |
7304 | |
7305 | # save warnings/boilerplate of simple test code |
7306 | ac_outfile=conftest.$ac_objext |
7307 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
7308 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
7309 | _lt_compiler_boilerplate=`cat conftest.err` |
7310 | $rm conftest* |
7311 | |
7312 | ac_outfile=conftest.$ac_objext |
7313 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
7314 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
7315 | _lt_linker_boilerplate=`cat conftest.err` |
7316 | $rm conftest* |
7317 | |
7318 | |
7319 | |
7320 | lt_prog_compiler_no_builtin_flag= |
7321 | |
7322 | if test "$GCC" = yes; then |
7323 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
7324 | |
7325 | |
dd184caf |
7326 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
7327 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } |
d9898ee8 |
7328 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
7329 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7330 | else |
7331 | lt_cv_prog_compiler_rtti_exceptions=no |
7332 | ac_outfile=conftest.$ac_objext |
7333 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
7334 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
7335 | # Insert the option either (1) after the last *FLAGS variable, or |
7336 | # (2) before a word containing "conftest.", or (3) at the end. |
7337 | # Note that $ac_compile itself does not contain backslashes and begins |
7338 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
7339 | # The option is referenced via a variable to avoid confusing sed. |
7340 | lt_compile=`echo "$ac_compile" | $SED \ |
7341 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
7342 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
7343 | -e 's:$: $lt_compiler_flag:'` |
dd184caf |
7344 | (eval echo "\"\$as_me:7344: $lt_compile\"" >&5) |
d9898ee8 |
7345 | (eval "$lt_compile" 2>conftest.err) |
7346 | ac_status=$? |
7347 | cat conftest.err >&5 |
dd184caf |
7348 | echo "$as_me:7348: \$? = $ac_status" >&5 |
d9898ee8 |
7349 | if (exit $ac_status) && test -s "$ac_outfile"; then |
7350 | # The compiler can only warn and ignore the option if not recognized |
7351 | # So say no if there are warnings other than the usual output. |
7352 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
7353 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
7354 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
7355 | lt_cv_prog_compiler_rtti_exceptions=yes |
7356 | fi |
7357 | fi |
7358 | $rm conftest* |
7359 | |
7360 | fi |
dd184caf |
7361 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
7362 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
d9898ee8 |
7363 | |
7364 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
7365 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
7366 | else |
7367 | : |
7368 | fi |
7369 | |
7370 | fi |
7371 | |
7372 | lt_prog_compiler_wl= |
7373 | lt_prog_compiler_pic= |
7374 | lt_prog_compiler_static= |
7375 | |
dd184caf |
7376 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
7377 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
d9898ee8 |
7378 | |
7379 | if test "$GCC" = yes; then |
7380 | lt_prog_compiler_wl='-Wl,' |
7381 | lt_prog_compiler_static='-static' |
7382 | |
7383 | case $host_os in |
7384 | aix*) |
7385 | # All AIX code is PIC. |
7386 | if test "$host_cpu" = ia64; then |
7387 | # AIX 5 now supports IA64 processor |
7388 | lt_prog_compiler_static='-Bstatic' |
7389 | fi |
7390 | ;; |
7391 | |
7392 | amigaos*) |
7393 | # FIXME: we need at least 68020 code to build shared libraries, but |
7394 | # adding the `-m68020' flag to GCC prevents building anything better, |
7395 | # like `-m68040'. |
7396 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
7397 | ;; |
7398 | |
7399 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
7400 | # PIC is the default for these OSes. |
7401 | ;; |
7402 | |
7403 | mingw* | pw32* | os2*) |
7404 | # This hack is so that the source file can tell whether it is being |
7405 | # built for inclusion in a dll (and should export symbols for example). |
7406 | lt_prog_compiler_pic='-DDLL_EXPORT' |
7407 | ;; |
7408 | |
7409 | darwin* | rhapsody*) |
7410 | # PIC is the default on this platform |
7411 | # Common symbols not allowed in MH_DYLIB files |
7412 | lt_prog_compiler_pic='-fno-common' |
7413 | ;; |
7414 | |
7415 | interix3*) |
7416 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
7417 | # Instead, we relocate shared libraries at runtime. |
7418 | ;; |
7419 | |
7420 | msdosdjgpp*) |
7421 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
7422 | # on systems that don't support them. |
7423 | lt_prog_compiler_can_build_shared=no |
7424 | enable_shared=no |
7425 | ;; |
7426 | |
7427 | sysv4*MP*) |
7428 | if test -d /usr/nec; then |
7429 | lt_prog_compiler_pic=-Kconform_pic |
7430 | fi |
7431 | ;; |
7432 | |
7433 | hpux*) |
7434 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
7435 | # not for PA HP-UX. |
7436 | case $host_cpu in |
7437 | hppa*64*|ia64*) |
7438 | # +Z the default |
7439 | ;; |
7440 | *) |
7441 | lt_prog_compiler_pic='-fPIC' |
7442 | ;; |
7443 | esac |
7444 | ;; |
7445 | |
7446 | *) |
7447 | lt_prog_compiler_pic='-fPIC' |
7448 | ;; |
7449 | esac |
7450 | else |
7451 | # PORTME Check for flag to pass linker flags through the system compiler. |
7452 | case $host_os in |
7453 | aix*) |
7454 | lt_prog_compiler_wl='-Wl,' |
7455 | if test "$host_cpu" = ia64; then |
7456 | # AIX 5 now supports IA64 processor |
7457 | lt_prog_compiler_static='-Bstatic' |
7458 | else |
7459 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
7460 | fi |
7461 | ;; |
7462 | darwin*) |
7463 | # PIC is the default on this platform |
7464 | # Common symbols not allowed in MH_DYLIB files |
7465 | case $cc_basename in |
7466 | xlc*) |
7467 | lt_prog_compiler_pic='-qnocommon' |
7468 | lt_prog_compiler_wl='-Wl,' |
7469 | ;; |
7470 | esac |
7471 | ;; |
7472 | |
7473 | mingw* | pw32* | os2*) |
7474 | # This hack is so that the source file can tell whether it is being |
7475 | # built for inclusion in a dll (and should export symbols for example). |
7476 | lt_prog_compiler_pic='-DDLL_EXPORT' |
7477 | ;; |
7478 | |
7479 | hpux9* | hpux10* | hpux11*) |
7480 | lt_prog_compiler_wl='-Wl,' |
7481 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
7482 | # not for PA HP-UX. |
7483 | case $host_cpu in |
7484 | hppa*64*|ia64*) |
7485 | # +Z the default |
7486 | ;; |
7487 | *) |
7488 | lt_prog_compiler_pic='+Z' |
7489 | ;; |
7490 | esac |
7491 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
7492 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
7493 | ;; |
7494 | |
7495 | irix5* | irix6* | nonstopux*) |
7496 | lt_prog_compiler_wl='-Wl,' |
7497 | # PIC (with -KPIC) is the default. |
7498 | lt_prog_compiler_static='-non_shared' |
7499 | ;; |
7500 | |
7501 | newsos6) |
7502 | lt_prog_compiler_pic='-KPIC' |
7503 | lt_prog_compiler_static='-Bstatic' |
7504 | ;; |
7505 | |
7506 | linux*) |
7507 | case $cc_basename in |
7508 | icc* | ecc*) |
7509 | lt_prog_compiler_wl='-Wl,' |
7510 | lt_prog_compiler_pic='-KPIC' |
7511 | lt_prog_compiler_static='-static' |
7512 | ;; |
7513 | pgcc* | pgf77* | pgf90* | pgf95*) |
7514 | # Portland Group compilers (*not* the Pentium gcc compiler, |
7515 | # which looks to be a dead project) |
7516 | lt_prog_compiler_wl='-Wl,' |
7517 | lt_prog_compiler_pic='-fpic' |
7518 | lt_prog_compiler_static='-Bstatic' |
7519 | ;; |
7520 | ccc*) |
7521 | lt_prog_compiler_wl='-Wl,' |
7522 | # All Alpha code is PIC. |
7523 | lt_prog_compiler_static='-non_shared' |
7524 | ;; |
7525 | esac |
7526 | ;; |
7527 | |
7528 | osf3* | osf4* | osf5*) |
7529 | lt_prog_compiler_wl='-Wl,' |
7530 | # All OSF/1 code is PIC. |
7531 | lt_prog_compiler_static='-non_shared' |
7532 | ;; |
7533 | |
7534 | solaris*) |
7535 | lt_prog_compiler_pic='-KPIC' |
7536 | lt_prog_compiler_static='-Bstatic' |
7537 | case $cc_basename in |
7538 | f77* | f90* | f95*) |
7539 | lt_prog_compiler_wl='-Qoption ld ';; |
7540 | *) |
7541 | lt_prog_compiler_wl='-Wl,';; |
7542 | esac |
7543 | ;; |
7544 | |
7545 | sunos4*) |
7546 | lt_prog_compiler_wl='-Qoption ld ' |
7547 | lt_prog_compiler_pic='-PIC' |
7548 | lt_prog_compiler_static='-Bstatic' |
7549 | ;; |
7550 | |
7551 | sysv4 | sysv4.2uw2* | sysv4.3*) |
7552 | lt_prog_compiler_wl='-Wl,' |
7553 | lt_prog_compiler_pic='-KPIC' |
7554 | lt_prog_compiler_static='-Bstatic' |
7555 | ;; |
7556 | |
7557 | sysv4*MP*) |
7558 | if test -d /usr/nec ;then |
7559 | lt_prog_compiler_pic='-Kconform_pic' |
7560 | lt_prog_compiler_static='-Bstatic' |
7561 | fi |
7562 | ;; |
7563 | |
7564 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
7565 | lt_prog_compiler_wl='-Wl,' |
7566 | lt_prog_compiler_pic='-KPIC' |
7567 | lt_prog_compiler_static='-Bstatic' |
7568 | ;; |
7569 | |
7570 | unicos*) |
7571 | lt_prog_compiler_wl='-Wl,' |
7572 | lt_prog_compiler_can_build_shared=no |
7573 | ;; |
7574 | |
7575 | uts4*) |
7576 | lt_prog_compiler_pic='-pic' |
7577 | lt_prog_compiler_static='-Bstatic' |
7578 | ;; |
7579 | |
7580 | *) |
7581 | lt_prog_compiler_can_build_shared=no |
7582 | ;; |
7583 | esac |
7584 | fi |
7585 | |
dd184caf |
7586 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
7587 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } |
d9898ee8 |
7588 | |
7589 | # |
7590 | # Check to make sure the PIC flag actually works. |
7591 | # |
7592 | if test -n "$lt_prog_compiler_pic"; then |
7593 | |
dd184caf |
7594 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
7595 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } |
d9898ee8 |
7596 | if test "${lt_prog_compiler_pic_works+set}" = set; then |
7597 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7598 | else |
7599 | lt_prog_compiler_pic_works=no |
7600 | ac_outfile=conftest.$ac_objext |
7601 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
7602 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
7603 | # Insert the option either (1) after the last *FLAGS variable, or |
7604 | # (2) before a word containing "conftest.", or (3) at the end. |
7605 | # Note that $ac_compile itself does not contain backslashes and begins |
7606 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
7607 | # The option is referenced via a variable to avoid confusing sed. |
7608 | lt_compile=`echo "$ac_compile" | $SED \ |
7609 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
7610 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
7611 | -e 's:$: $lt_compiler_flag:'` |
dd184caf |
7612 | (eval echo "\"\$as_me:7612: $lt_compile\"" >&5) |
d9898ee8 |
7613 | (eval "$lt_compile" 2>conftest.err) |
7614 | ac_status=$? |
7615 | cat conftest.err >&5 |
dd184caf |
7616 | echo "$as_me:7616: \$? = $ac_status" >&5 |
d9898ee8 |
7617 | if (exit $ac_status) && test -s "$ac_outfile"; then |
7618 | # The compiler can only warn and ignore the option if not recognized |
7619 | # So say no if there are warnings other than the usual output. |
7620 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
7621 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
7622 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
7623 | lt_prog_compiler_pic_works=yes |
7624 | fi |
7625 | fi |
7626 | $rm conftest* |
7627 | |
7628 | fi |
dd184caf |
7629 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
7630 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } |
d9898ee8 |
7631 | |
7632 | if test x"$lt_prog_compiler_pic_works" = xyes; then |
7633 | case $lt_prog_compiler_pic in |
7634 | "" | " "*) ;; |
7635 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
7636 | esac |
7637 | else |
7638 | lt_prog_compiler_pic= |
7639 | lt_prog_compiler_can_build_shared=no |
7640 | fi |
7641 | |
7642 | fi |
7643 | case $host_os in |
7644 | # For platforms which do not support PIC, -DPIC is meaningless: |
7645 | *djgpp*) |
7646 | lt_prog_compiler_pic= |
7647 | ;; |
7648 | *) |
7649 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
7650 | ;; |
7651 | esac |
7652 | |
7653 | # |
7654 | # Check to make sure the static flag actually works. |
7655 | # |
7656 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
dd184caf |
7657 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
7658 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
d9898ee8 |
7659 | if test "${lt_prog_compiler_static_works+set}" = set; then |
7660 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7661 | else |
7662 | lt_prog_compiler_static_works=no |
7663 | save_LDFLAGS="$LDFLAGS" |
7664 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
7665 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
7666 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
7667 | # The linker can only warn and ignore the option if not recognized |
7668 | # So say no if there are warnings |
7669 | if test -s conftest.err; then |
7670 | # Append any errors to the config.log. |
7671 | cat conftest.err 1>&5 |
7672 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
7673 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
7674 | if diff conftest.exp conftest.er2 >/dev/null; then |
7675 | lt_prog_compiler_static_works=yes |
7676 | fi |
7677 | else |
7678 | lt_prog_compiler_static_works=yes |
7679 | fi |
7680 | fi |
7681 | $rm conftest* |
7682 | LDFLAGS="$save_LDFLAGS" |
7683 | |
7684 | fi |
dd184caf |
7685 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
7686 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } |
d9898ee8 |
7687 | |
7688 | if test x"$lt_prog_compiler_static_works" = xyes; then |
7689 | : |
7690 | else |
7691 | lt_prog_compiler_static= |
7692 | fi |
7693 | |
7694 | |
dd184caf |
7695 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
7696 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
d9898ee8 |
7697 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
7698 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7699 | else |
7700 | lt_cv_prog_compiler_c_o=no |
7701 | $rm -r conftest 2>/dev/null |
7702 | mkdir conftest |
7703 | cd conftest |
7704 | mkdir out |
7705 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
7706 | |
7707 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
7708 | # Insert the option either (1) after the last *FLAGS variable, or |
7709 | # (2) before a word containing "conftest.", or (3) at the end. |
7710 | # Note that $ac_compile itself does not contain backslashes and begins |
7711 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
7712 | lt_compile=`echo "$ac_compile" | $SED \ |
7713 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
7714 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
7715 | -e 's:$: $lt_compiler_flag:'` |
dd184caf |
7716 | (eval echo "\"\$as_me:7716: $lt_compile\"" >&5) |
d9898ee8 |
7717 | (eval "$lt_compile" 2>out/conftest.err) |
7718 | ac_status=$? |
7719 | cat out/conftest.err >&5 |
dd184caf |
7720 | echo "$as_me:7720: \$? = $ac_status" >&5 |
d9898ee8 |
7721 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
7722 | then |
7723 | # The compiler can only warn and ignore the option if not recognized |
7724 | # So say no if there are warnings |
7725 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
7726 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
7727 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
7728 | lt_cv_prog_compiler_c_o=yes |
7729 | fi |
7730 | fi |
7731 | chmod u+w . 2>&5 |
7732 | $rm conftest* |
7733 | # SGI C++ compiler will create directory out/ii_files/ for |
7734 | # template instantiation |
7735 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
7736 | $rm out/* && rmdir out |
7737 | cd .. |
7738 | rmdir conftest |
7739 | $rm conftest* |
7740 | |
7741 | fi |
dd184caf |
7742 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
7743 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } |
d9898ee8 |
7744 | |
7745 | |
7746 | hard_links="nottested" |
7747 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
7748 | # do not overwrite the value of need_locks provided by the user |
dd184caf |
7749 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
7750 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
d9898ee8 |
7751 | hard_links=yes |
7752 | $rm conftest* |
7753 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
7754 | touch conftest.a |
7755 | ln conftest.a conftest.b 2>&5 || hard_links=no |
7756 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
dd184caf |
7757 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
7758 | echo "${ECHO_T}$hard_links" >&6; } |
d9898ee8 |
7759 | if test "$hard_links" = no; then |
7760 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
7761 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
7762 | need_locks=warn |
7763 | fi |
7764 | else |
7765 | need_locks=no |
7766 | fi |
7767 | |
dd184caf |
7768 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
7769 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
d9898ee8 |
7770 | |
7771 | runpath_var= |
7772 | allow_undefined_flag= |
7773 | enable_shared_with_static_runtimes=no |
7774 | archive_cmds= |
7775 | archive_expsym_cmds= |
7776 | old_archive_From_new_cmds= |
7777 | old_archive_from_expsyms_cmds= |
7778 | export_dynamic_flag_spec= |
7779 | whole_archive_flag_spec= |
7780 | thread_safe_flag_spec= |
7781 | hardcode_libdir_flag_spec= |
7782 | hardcode_libdir_flag_spec_ld= |
7783 | hardcode_libdir_separator= |
7784 | hardcode_direct=no |
7785 | hardcode_minus_L=no |
7786 | hardcode_shlibpath_var=unsupported |
7787 | link_all_deplibs=unknown |
7788 | hardcode_automatic=no |
7789 | module_cmds= |
7790 | module_expsym_cmds= |
7791 | always_export_symbols=no |
7792 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
7793 | # include_expsyms should be a list of space-separated symbols to be *always* |
7794 | # included in the symbol list |
7795 | include_expsyms= |
7796 | # exclude_expsyms can be an extended regexp of symbols to exclude |
7797 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
7798 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
7799 | # as well as any symbol that contains `d'. |
7800 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
7801 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
7802 | # platforms (ab)use it in PIC code, but their linkers get confused if |
7803 | # the symbol is explicitly referenced. Since portable code cannot |
7804 | # rely on this symbol name, it's probably fine to never include it in |
7805 | # preloaded symbol tables. |
7806 | extract_expsyms_cmds= |
7807 | # Just being paranoid about ensuring that cc_basename is set. |
7808 | for cc_temp in $compiler""; do |
7809 | case $cc_temp in |
7810 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
7811 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
7812 | \-*) ;; |
7813 | *) break;; |
7814 | esac |
7815 | done |
7816 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
7817 | |
7818 | case $host_os in |
7819 | cygwin* | mingw* | pw32*) |
7820 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
7821 | # When not using gcc, we currently assume that we are using |
7822 | # Microsoft Visual C++. |
7823 | if test "$GCC" != yes; then |
7824 | with_gnu_ld=no |
7825 | fi |
7826 | ;; |
7827 | interix*) |
7828 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
7829 | with_gnu_ld=yes |
7830 | ;; |
7831 | openbsd*) |
7832 | with_gnu_ld=no |
7833 | ;; |
7834 | esac |
7835 | |
7836 | ld_shlibs=yes |
7837 | if test "$with_gnu_ld" = yes; then |
7838 | # If archive_cmds runs LD, not CC, wlarc should be empty |
7839 | wlarc='${wl}' |
7840 | |
7841 | # Set some defaults for GNU ld with shared library support. These |
7842 | # are reset later if shared libraries are not supported. Putting them |
7843 | # here allows them to be overridden if necessary. |
7844 | runpath_var=LD_RUN_PATH |
7845 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
7846 | export_dynamic_flag_spec='${wl}--export-dynamic' |
7847 | # ancient GNU ld didn't support --whole-archive et. al. |
7848 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
7849 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
7850 | else |
7851 | whole_archive_flag_spec= |
7852 | fi |
7853 | supports_anon_versioning=no |
7854 | case `$LD -v 2>/dev/null` in |
7855 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
7856 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
7857 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
7858 | *\ 2.11.*) ;; # other 2.11 versions |
7859 | *) supports_anon_versioning=yes ;; |
7860 | esac |
7861 | |
7862 | # See if GNU ld supports shared libraries. |
7863 | case $host_os in |
7864 | aix3* | aix4* | aix5*) |
7865 | # On AIX/PPC, the GNU linker is very broken |
7866 | if test "$host_cpu" != ia64; then |
7867 | ld_shlibs=no |
7868 | cat <<EOF 1>&2 |
7869 | |
7870 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
7871 | *** to be unable to reliably create shared libraries on AIX. |
7872 | *** Therefore, libtool is disabling shared libraries support. If you |
7873 | *** really care for shared libraries, you may want to modify your PATH |
7874 | *** so that a non-GNU linker is found, and then restart. |
7875 | |
7876 | EOF |
7877 | fi |
7878 | ;; |
7879 | |
7880 | amigaos*) |
7881 | 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)' |
7882 | hardcode_libdir_flag_spec='-L$libdir' |
7883 | hardcode_minus_L=yes |
7884 | |
7885 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
7886 | # that the semantics of dynamic libraries on AmigaOS, at least up |
7887 | # to version 4, is to share data among multiple programs linked |
7888 | # with the same dynamic library. Since this doesn't match the |
7889 | # behavior of shared libraries on other platforms, we can't use |
7890 | # them. |
7891 | ld_shlibs=no |
7892 | ;; |
7893 | |
7894 | beos*) |
7895 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7896 | allow_undefined_flag=unsupported |
7897 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
7898 | # support --undefined. This deserves some investigation. FIXME |
7899 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7900 | else |
7901 | ld_shlibs=no |
7902 | fi |
7903 | ;; |
7904 | |
7905 | cygwin* | mingw* | pw32*) |
7906 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
7907 | # as there is no search path for DLLs. |
7908 | hardcode_libdir_flag_spec='-L$libdir' |
7909 | allow_undefined_flag=unsupported |
7910 | always_export_symbols=no |
7911 | enable_shared_with_static_runtimes=yes |
7912 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
7913 | |
7914 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
7915 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
7916 | # If the export-symbols file already is a .def file (1st line |
7917 | # is EXPORTS), use it as is; otherwise, prepend... |
7918 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
7919 | cp $export_symbols $output_objdir/$soname.def; |
7920 | else |
7921 | echo EXPORTS > $output_objdir/$soname.def; |
7922 | cat $export_symbols >> $output_objdir/$soname.def; |
7923 | fi~ |
7924 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
7925 | else |
7926 | ld_shlibs=no |
7927 | fi |
7928 | ;; |
7929 | |
7930 | interix3*) |
7931 | hardcode_direct=no |
7932 | hardcode_shlibpath_var=no |
7933 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
7934 | export_dynamic_flag_spec='${wl}-E' |
7935 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
7936 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
7937 | # default) and relocated if they conflict, which is a slow very memory |
7938 | # consuming and fragmenting process. To avoid this, we pick a random, |
7939 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
7940 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
7941 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
7942 | 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' |
7943 | ;; |
7944 | |
7945 | linux*) |
7946 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7947 | tmp_addflag= |
7948 | case $cc_basename,$host_cpu in |
7949 | pgcc*) # Portland Group C compiler |
7950 | 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' |
7951 | tmp_addflag=' $pic_flag' |
7952 | ;; |
7953 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
7954 | 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' |
7955 | tmp_addflag=' $pic_flag -Mnomain' ;; |
7956 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
7957 | tmp_addflag=' -i_dynamic' ;; |
7958 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
7959 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
7960 | ifc* | ifort*) # Intel Fortran compiler |
7961 | tmp_addflag=' -nofor_main' ;; |
7962 | esac |
7963 | archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7964 | |
7965 | if test $supports_anon_versioning = yes; then |
7966 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
7967 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
7968 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
7969 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
7970 | fi |
7971 | else |
7972 | ld_shlibs=no |
7973 | fi |
7974 | ;; |
7975 | |
7976 | netbsd*) |
7977 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
7978 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
7979 | wlarc= |
7980 | else |
7981 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7982 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
7983 | fi |
7984 | ;; |
7985 | |
7986 | solaris*) |
7987 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
7988 | ld_shlibs=no |
7989 | cat <<EOF 1>&2 |
7990 | |
7991 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
7992 | *** create shared libraries on Solaris systems. Therefore, libtool |
7993 | *** is disabling shared libraries support. We urge you to upgrade GNU |
7994 | *** binutils to release 2.9.1 or newer. Another option is to modify |
7995 | *** your PATH or compiler configuration so that the native linker is |
7996 | *** used, and then restart. |
7997 | |
7998 | EOF |
7999 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
8000 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
8001 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
8002 | else |
8003 | ld_shlibs=no |
8004 | fi |
8005 | ;; |
8006 | |
8007 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
8008 | case `$LD -v 2>&1` in |
8009 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
8010 | ld_shlibs=no |
8011 | cat <<_LT_EOF 1>&2 |
8012 | |
8013 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
8014 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
8015 | *** is disabling shared libraries support. We urge you to upgrade GNU |
8016 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
8017 | *** your PATH or compiler configuration so that the native linker is |
8018 | *** used, and then restart. |
8019 | |
8020 | _LT_EOF |
8021 | ;; |
8022 | *) |
8023 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
8024 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
8025 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
8026 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
8027 | else |
8028 | ld_shlibs=no |
8029 | fi |
8030 | ;; |
8031 | esac |
8032 | ;; |
8033 | |
8034 | sunos4*) |
8035 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
8036 | wlarc= |
8037 | hardcode_direct=yes |
8038 | hardcode_shlibpath_var=no |
8039 | ;; |
8040 | |
8041 | *) |
8042 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
8043 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
8044 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
8045 | else |
8046 | ld_shlibs=no |
8047 | fi |
8048 | ;; |
8049 | esac |
8050 | |
8051 | if test "$ld_shlibs" = no; then |
8052 | runpath_var= |
8053 | hardcode_libdir_flag_spec= |
8054 | export_dynamic_flag_spec= |
8055 | whole_archive_flag_spec= |
8056 | fi |
8057 | else |
8058 | # PORTME fill in a description of your system's linker (not GNU ld) |
8059 | case $host_os in |
8060 | aix3*) |
8061 | allow_undefined_flag=unsupported |
8062 | always_export_symbols=yes |
8063 | 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' |
8064 | # Note: this linker hardcodes the directories in LIBPATH if there |
8065 | # are no directories specified by -L. |
8066 | hardcode_minus_L=yes |
8067 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
8068 | # Neither direct hardcoding nor static linking is supported with a |
8069 | # broken collect2. |
8070 | hardcode_direct=unsupported |
8071 | fi |
8072 | ;; |
8073 | |
8074 | aix4* | aix5*) |
8075 | if test "$host_cpu" = ia64; then |
8076 | # On IA64, the linker does run time linking by default, so we don't |
8077 | # have to do anything special. |
8078 | aix_use_runtimelinking=no |
8079 | exp_sym_flag='-Bexport' |
8080 | no_entry_flag="" |
8081 | else |
8082 | # If we're using GNU nm, then we don't want the "-C" option. |
8083 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
8084 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
8085 | 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' |
8086 | else |
8087 | 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' |
8088 | fi |
8089 | aix_use_runtimelinking=no |
8090 | |
8091 | # Test if we are trying to use run time linking or normal |
8092 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
8093 | # need to do runtime linking. |
8094 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
8095 | for ld_flag in $LDFLAGS; do |
8096 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
8097 | aix_use_runtimelinking=yes |
8098 | break |
8099 | fi |
8100 | done |
8101 | ;; |
8102 | esac |
8103 | |
8104 | exp_sym_flag='-bexport' |
8105 | no_entry_flag='-bnoentry' |
8106 | fi |
8107 | |
8108 | # When large executables or shared objects are built, AIX ld can |
8109 | # have problems creating the table of contents. If linking a library |
8110 | # or program results in "error TOC overflow" add -mminimal-toc to |
8111 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
8112 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
8113 | |
8114 | archive_cmds='' |
8115 | hardcode_direct=yes |
8116 | hardcode_libdir_separator=':' |
8117 | link_all_deplibs=yes |
8118 | |
8119 | if test "$GCC" = yes; then |
8120 | case $host_os in aix4.[012]|aix4.[012].*) |
8121 | # We only want to do this on AIX 4.2 and lower, the check |
8122 | # below for broken collect2 doesn't work under 4.3+ |
8123 | collect2name=`${CC} -print-prog-name=collect2` |
8124 | if test -f "$collect2name" && \ |
8125 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
8126 | then |
8127 | # We have reworked collect2 |
8128 | hardcode_direct=yes |
8129 | else |
8130 | # We have old collect2 |
8131 | hardcode_direct=unsupported |
8132 | # It fails to find uninstalled libraries when the uninstalled |
8133 | # path is not listed in the libpath. Setting hardcode_minus_L |
8134 | # to unsupported forces relinking |
8135 | hardcode_minus_L=yes |
8136 | hardcode_libdir_flag_spec='-L$libdir' |
8137 | hardcode_libdir_separator= |
8138 | fi |
8139 | ;; |
8140 | esac |
8141 | shared_flag='-shared' |
8142 | if test "$aix_use_runtimelinking" = yes; then |
8143 | shared_flag="$shared_flag "'${wl}-G' |
8144 | fi |
8145 | else |
8146 | # not using gcc |
8147 | if test "$host_cpu" = ia64; then |
8148 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
8149 | # chokes on -Wl,-G. The following line is correct: |
8150 | shared_flag='-G' |
8151 | else |
8152 | if test "$aix_use_runtimelinking" = yes; then |
8153 | shared_flag='${wl}-G' |
8154 | else |
8155 | shared_flag='${wl}-bM:SRE' |
8156 | fi |
8157 | fi |
8158 | fi |
8159 | |
8160 | # It seems that -bexpall does not export symbols beginning with |
8161 | # underscore (_), so it is better to generate a list of symbols to export. |
8162 | always_export_symbols=yes |
8163 | if test "$aix_use_runtimelinking" = yes; then |
8164 | # Warning - without using the other runtime loading flags (-brtl), |
8165 | # -berok will link without error, but may produce a broken library. |
8166 | allow_undefined_flag='-berok' |
8167 | # Determine the default libpath from the value encoded in an empty executable. |
8168 | cat >conftest.$ac_ext <<_ACEOF |
8169 | /* confdefs.h. */ |
8170 | _ACEOF |
8171 | cat confdefs.h >>conftest.$ac_ext |
8172 | cat >>conftest.$ac_ext <<_ACEOF |
8173 | /* end confdefs.h. */ |
8174 | |
8175 | int |
8176 | main () |
8177 | { |
8178 | |
8179 | ; |
8180 | return 0; |
8181 | } |
8182 | _ACEOF |
8183 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
8184 | if { (ac_try="$ac_link" |
8185 | case "(($ac_try" in |
8186 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8187 | *) ac_try_echo=$ac_try;; |
8188 | esac |
8189 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8190 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
8191 | ac_status=$? |
8192 | grep -v '^ *+' conftest.er1 >conftest.err |
8193 | rm -f conftest.er1 |
8194 | cat conftest.err >&5 |
8195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
8196 | (exit $ac_status); } && { |
8197 | test -z "$ac_c_werror_flag" || |
8198 | test ! -s conftest.err |
8199 | } && test -s conftest$ac_exeext && |
8200 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
8201 | |
8202 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
8203 | }'` |
8204 | # Check for a 64-bit object if we didn't find anything. |
8205 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
8206 | }'`; fi |
8207 | else |
8208 | echo "$as_me: failed program was:" >&5 |
8209 | sed 's/^/| /' conftest.$ac_ext >&5 |
8210 | |
dd184caf |
8211 | |
d9898ee8 |
8212 | fi |
dd184caf |
8213 | |
8214 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
8215 | conftest$ac_exeext conftest.$ac_ext |
8216 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
8217 | |
8218 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
8219 | 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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
8220 | else |
8221 | if test "$host_cpu" = ia64; then |
8222 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
8223 | allow_undefined_flag="-z nodefs" |
8224 | 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" |
8225 | else |
8226 | # Determine the default libpath from the value encoded in an empty executable. |
8227 | cat >conftest.$ac_ext <<_ACEOF |
8228 | /* confdefs.h. */ |
8229 | _ACEOF |
8230 | cat confdefs.h >>conftest.$ac_ext |
8231 | cat >>conftest.$ac_ext <<_ACEOF |
8232 | /* end confdefs.h. */ |
8233 | |
8234 | int |
8235 | main () |
8236 | { |
8237 | |
8238 | ; |
8239 | return 0; |
8240 | } |
8241 | _ACEOF |
8242 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
8243 | if { (ac_try="$ac_link" |
8244 | case "(($ac_try" in |
8245 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8246 | *) ac_try_echo=$ac_try;; |
8247 | esac |
8248 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8249 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
8250 | ac_status=$? |
8251 | grep -v '^ *+' conftest.er1 >conftest.err |
8252 | rm -f conftest.er1 |
8253 | cat conftest.err >&5 |
8254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
8255 | (exit $ac_status); } && { |
8256 | test -z "$ac_c_werror_flag" || |
8257 | test ! -s conftest.err |
8258 | } && test -s conftest$ac_exeext && |
8259 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
8260 | |
8261 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
8262 | }'` |
8263 | # Check for a 64-bit object if we didn't find anything. |
8264 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
8265 | }'`; fi |
8266 | else |
8267 | echo "$as_me: failed program was:" >&5 |
8268 | sed 's/^/| /' conftest.$ac_ext >&5 |
8269 | |
dd184caf |
8270 | |
d9898ee8 |
8271 | fi |
dd184caf |
8272 | |
8273 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
8274 | conftest$ac_exeext conftest.$ac_ext |
8275 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
8276 | |
8277 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
8278 | # Warning - without using the other run time loading flags, |
8279 | # -berok will link without error, but may produce a broken library. |
8280 | no_undefined_flag=' ${wl}-bernotok' |
8281 | allow_undefined_flag=' ${wl}-berok' |
8282 | # Exported symbols can be pulled into shared objects from archives |
8283 | whole_archive_flag_spec='$convenience' |
8284 | archive_cmds_need_lc=yes |
8285 | # This is similar to how AIX traditionally builds its shared libraries. |
8286 | 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' |
8287 | fi |
8288 | fi |
8289 | ;; |
8290 | |
8291 | amigaos*) |
8292 | 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)' |
8293 | hardcode_libdir_flag_spec='-L$libdir' |
8294 | hardcode_minus_L=yes |
8295 | # see comment about different semantics on the GNU ld section |
8296 | ld_shlibs=no |
8297 | ;; |
8298 | |
8299 | bsdi[45]*) |
8300 | export_dynamic_flag_spec=-rdynamic |
8301 | ;; |
8302 | |
8303 | cygwin* | mingw* | pw32*) |
8304 | # When not using gcc, we currently assume that we are using |
8305 | # Microsoft Visual C++. |
8306 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
8307 | # no search path for DLLs. |
8308 | hardcode_libdir_flag_spec=' ' |
8309 | allow_undefined_flag=unsupported |
8310 | # Tell ltmain to make .lib files, not .a files. |
8311 | libext=lib |
8312 | # Tell ltmain to make .dll files, not .so files. |
8313 | shrext_cmds=".dll" |
8314 | # FIXME: Setting linknames here is a bad hack. |
8315 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
8316 | # The linker will automatically build a .lib file if we build a DLL. |
8317 | old_archive_From_new_cmds='true' |
8318 | # FIXME: Should let the user specify the lib program. |
8319 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
8320 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
8321 | enable_shared_with_static_runtimes=yes |
8322 | ;; |
8323 | |
8324 | darwin* | rhapsody*) |
8325 | case $host_os in |
8326 | rhapsody* | darwin1.[012]) |
8327 | allow_undefined_flag='${wl}-undefined ${wl}suppress' |
8328 | ;; |
8329 | *) # Darwin 1.3 on |
8330 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
8331 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
8332 | else |
8333 | case ${MACOSX_DEPLOYMENT_TARGET} in |
8334 | 10.[012]) |
8335 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
8336 | ;; |
8337 | 10.*) |
8338 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' |
8339 | ;; |
8340 | esac |
8341 | fi |
8342 | ;; |
8343 | esac |
8344 | archive_cmds_need_lc=no |
8345 | hardcode_direct=no |
8346 | hardcode_automatic=yes |
8347 | hardcode_shlibpath_var=unsupported |
8348 | whole_archive_flag_spec='' |
8349 | link_all_deplibs=yes |
8350 | if test "$GCC" = yes ; then |
8351 | output_verbose_link_cmd='echo' |
8352 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
8353 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
8354 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
8355 | archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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}' |
8356 | module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -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}' |
8357 | else |
8358 | case $cc_basename in |
8359 | xlc*) |
8360 | output_verbose_link_cmd='echo' |
8361 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
8362 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
8363 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
8364 | archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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}' |
8365 | module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -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}' |
8366 | ;; |
8367 | *) |
8368 | ld_shlibs=no |
8369 | ;; |
8370 | esac |
8371 | fi |
8372 | ;; |
8373 | |
8374 | dgux*) |
8375 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8376 | hardcode_libdir_flag_spec='-L$libdir' |
8377 | hardcode_shlibpath_var=no |
8378 | ;; |
8379 | |
8380 | freebsd1*) |
8381 | ld_shlibs=no |
8382 | ;; |
8383 | |
8384 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
8385 | # support. Future versions do this automatically, but an explicit c++rt0.o |
8386 | # does not break anything, and helps significantly (at the cost of a little |
8387 | # extra space). |
8388 | freebsd2.2*) |
8389 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
8390 | hardcode_libdir_flag_spec='-R$libdir' |
8391 | hardcode_direct=yes |
8392 | hardcode_shlibpath_var=no |
8393 | ;; |
8394 | |
8395 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
8396 | freebsd2*) |
8397 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
8398 | hardcode_direct=yes |
8399 | hardcode_minus_L=yes |
8400 | hardcode_shlibpath_var=no |
8401 | ;; |
8402 | |
8403 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
8404 | freebsd* | kfreebsd*-gnu | dragonfly*) |
8405 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
8406 | hardcode_libdir_flag_spec='-R$libdir' |
8407 | hardcode_direct=yes |
8408 | hardcode_shlibpath_var=no |
8409 | ;; |
8410 | |
8411 | hpux9*) |
8412 | if test "$GCC" = yes; then |
8413 | 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' |
8414 | else |
8415 | 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' |
8416 | fi |
8417 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
8418 | hardcode_libdir_separator=: |
8419 | hardcode_direct=yes |
8420 | |
8421 | # hardcode_minus_L: Not really in the search PATH, |
8422 | # but as the default location of the library. |
8423 | hardcode_minus_L=yes |
8424 | export_dynamic_flag_spec='${wl}-E' |
8425 | ;; |
8426 | |
8427 | hpux10*) |
8428 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
8429 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
8430 | else |
8431 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
8432 | fi |
8433 | if test "$with_gnu_ld" = no; then |
8434 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
8435 | hardcode_libdir_separator=: |
8436 | |
8437 | hardcode_direct=yes |
8438 | export_dynamic_flag_spec='${wl}-E' |
8439 | |
8440 | # hardcode_minus_L: Not really in the search PATH, |
8441 | # but as the default location of the library. |
8442 | hardcode_minus_L=yes |
8443 | fi |
8444 | ;; |
8445 | |
8446 | hpux11*) |
8447 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
8448 | case $host_cpu in |
8449 | hppa*64*) |
8450 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8451 | ;; |
8452 | ia64*) |
8453 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
8454 | ;; |
8455 | *) |
8456 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
8457 | ;; |
8458 | esac |
8459 | else |
8460 | case $host_cpu in |
8461 | hppa*64*) |
8462 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8463 | ;; |
8464 | ia64*) |
8465 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
8466 | ;; |
8467 | *) |
8468 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
8469 | ;; |
8470 | esac |
8471 | fi |
8472 | if test "$with_gnu_ld" = no; then |
8473 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
8474 | hardcode_libdir_separator=: |
8475 | |
8476 | case $host_cpu in |
8477 | hppa*64*|ia64*) |
8478 | hardcode_libdir_flag_spec_ld='+b $libdir' |
8479 | hardcode_direct=no |
8480 | hardcode_shlibpath_var=no |
8481 | ;; |
8482 | *) |
8483 | hardcode_direct=yes |
8484 | export_dynamic_flag_spec='${wl}-E' |
8485 | |
8486 | # hardcode_minus_L: Not really in the search PATH, |
8487 | # but as the default location of the library. |
8488 | hardcode_minus_L=yes |
8489 | ;; |
8490 | esac |
8491 | fi |
8492 | ;; |
8493 | |
8494 | irix5* | irix6* | nonstopux*) |
8495 | if test "$GCC" = yes; then |
8496 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
8497 | else |
8498 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
8499 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
8500 | fi |
8501 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
8502 | hardcode_libdir_separator=: |
8503 | link_all_deplibs=yes |
8504 | ;; |
8505 | |
8506 | netbsd*) |
8507 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
8508 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
8509 | else |
8510 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
8511 | fi |
8512 | hardcode_libdir_flag_spec='-R$libdir' |
8513 | hardcode_direct=yes |
8514 | hardcode_shlibpath_var=no |
8515 | ;; |
8516 | |
8517 | newsos6) |
8518 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8519 | hardcode_direct=yes |
8520 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
8521 | hardcode_libdir_separator=: |
8522 | hardcode_shlibpath_var=no |
8523 | ;; |
8524 | |
8525 | openbsd*) |
8526 | hardcode_direct=yes |
8527 | hardcode_shlibpath_var=no |
8528 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
8529 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
8530 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
8531 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
8532 | export_dynamic_flag_spec='${wl}-E' |
8533 | else |
8534 | case $host_os in |
8535 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
8536 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
8537 | hardcode_libdir_flag_spec='-R$libdir' |
8538 | ;; |
8539 | *) |
8540 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
8541 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
8542 | ;; |
8543 | esac |
8544 | fi |
8545 | ;; |
8546 | |
8547 | os2*) |
8548 | hardcode_libdir_flag_spec='-L$libdir' |
8549 | hardcode_minus_L=yes |
8550 | allow_undefined_flag=unsupported |
8551 | 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' |
8552 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
8553 | ;; |
8554 | |
8555 | osf3*) |
8556 | if test "$GCC" = yes; then |
8557 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
8558 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
8559 | else |
8560 | allow_undefined_flag=' -expect_unresolved \*' |
8561 | archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
8562 | fi |
8563 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
8564 | hardcode_libdir_separator=: |
8565 | ;; |
8566 | |
8567 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
8568 | if test "$GCC" = yes; then |
8569 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
8570 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
8571 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
8572 | else |
8573 | allow_undefined_flag=' -expect_unresolved \*' |
8574 | archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
8575 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
8576 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' |
8577 | |
8578 | # Both c and cxx compiler support -rpath directly |
8579 | hardcode_libdir_flag_spec='-rpath $libdir' |
8580 | fi |
8581 | hardcode_libdir_separator=: |
8582 | ;; |
8583 | |
8584 | solaris*) |
8585 | no_undefined_flag=' -z text' |
8586 | if test "$GCC" = yes; then |
8587 | wlarc='${wl}' |
8588 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8589 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
8590 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
8591 | else |
8592 | wlarc='' |
8593 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8594 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
8595 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
8596 | fi |
8597 | hardcode_libdir_flag_spec='-R$libdir' |
8598 | hardcode_shlibpath_var=no |
8599 | case $host_os in |
8600 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
8601 | *) |
8602 | # The compiler driver will combine linker options so we |
8603 | # cannot just pass the convience library names through |
8604 | # without $wl, iff we do not link with $LD. |
8605 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
8606 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
8607 | case $wlarc in |
8608 | '') |
8609 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
8610 | *) |
8611 | whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; |
8612 | esac ;; |
8613 | esac |
8614 | link_all_deplibs=yes |
8615 | ;; |
8616 | |
8617 | sunos4*) |
8618 | if test "x$host_vendor" = xsequent; then |
8619 | # Use $CC to link under sequent, because it throws in some extra .o |
8620 | # files that make .init and .fini sections work. |
8621 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
8622 | else |
8623 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
8624 | fi |
8625 | hardcode_libdir_flag_spec='-L$libdir' |
8626 | hardcode_direct=yes |
8627 | hardcode_minus_L=yes |
8628 | hardcode_shlibpath_var=no |
8629 | ;; |
8630 | |
8631 | sysv4) |
8632 | case $host_vendor in |
8633 | sni) |
8634 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8635 | hardcode_direct=yes # is this really true??? |
8636 | ;; |
8637 | siemens) |
8638 | ## LD is ld it makes a PLAMLIB |
8639 | ## CC just makes a GrossModule. |
8640 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
8641 | reload_cmds='$CC -r -o $output$reload_objs' |
8642 | hardcode_direct=no |
8643 | ;; |
8644 | motorola) |
8645 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8646 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
8647 | ;; |
8648 | esac |
8649 | runpath_var='LD_RUN_PATH' |
8650 | hardcode_shlibpath_var=no |
8651 | ;; |
8652 | |
8653 | sysv4.3*) |
8654 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8655 | hardcode_shlibpath_var=no |
8656 | export_dynamic_flag_spec='-Bexport' |
8657 | ;; |
8658 | |
8659 | sysv4*MP*) |
8660 | if test -d /usr/nec; then |
8661 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8662 | hardcode_shlibpath_var=no |
8663 | runpath_var=LD_RUN_PATH |
8664 | hardcode_runpath_var=yes |
8665 | ld_shlibs=yes |
8666 | fi |
8667 | ;; |
8668 | |
8669 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
8670 | no_undefined_flag='${wl}-z,text' |
8671 | archive_cmds_need_lc=no |
8672 | hardcode_shlibpath_var=no |
8673 | runpath_var='LD_RUN_PATH' |
8674 | |
8675 | if test "$GCC" = yes; then |
8676 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
8677 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
8678 | else |
8679 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
8680 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
8681 | fi |
8682 | ;; |
8683 | |
8684 | sysv5* | sco3.2v5* | sco5v6*) |
8685 | # Note: We can NOT use -z defs as we might desire, because we do not |
8686 | # link with -lc, and that would cause any symbols used from libc to |
8687 | # always be unresolved, which means just about no library would |
8688 | # ever link correctly. If we're not using GNU ld we use -z text |
8689 | # though, which does catch some bad symbols but isn't as heavy-handed |
8690 | # as -z defs. |
8691 | no_undefined_flag='${wl}-z,text' |
8692 | allow_undefined_flag='${wl}-z,nodefs' |
8693 | archive_cmds_need_lc=no |
8694 | hardcode_shlibpath_var=no |
8695 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
8696 | hardcode_libdir_separator=':' |
8697 | link_all_deplibs=yes |
8698 | export_dynamic_flag_spec='${wl}-Bexport' |
8699 | runpath_var='LD_RUN_PATH' |
8700 | |
8701 | if test "$GCC" = yes; then |
8702 | archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8703 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8704 | else |
8705 | archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8706 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8707 | fi |
8708 | ;; |
8709 | |
8710 | uts4*) |
8711 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8712 | hardcode_libdir_flag_spec='-L$libdir' |
8713 | hardcode_shlibpath_var=no |
8714 | ;; |
8715 | |
8716 | *) |
8717 | ld_shlibs=no |
8718 | ;; |
8719 | esac |
8720 | fi |
8721 | |
dd184caf |
8722 | { echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
8723 | echo "${ECHO_T}$ld_shlibs" >&6; } |
d9898ee8 |
8724 | test "$ld_shlibs" = no && can_build_shared=no |
8725 | |
8726 | # |
8727 | # Do we need to explicitly link libc? |
8728 | # |
8729 | case "x$archive_cmds_need_lc" in |
8730 | x|xyes) |
8731 | # Assume -lc should be added |
8732 | archive_cmds_need_lc=yes |
8733 | |
8734 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
8735 | case $archive_cmds in |
8736 | *'~'*) |
8737 | # FIXME: we may have to deal with multi-command sequences. |
8738 | ;; |
8739 | '$CC '*) |
8740 | # Test whether the compiler implicitly links with -lc since on some |
8741 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
8742 | # to ld, don't add -lc before -lgcc. |
dd184caf |
8743 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
8744 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
d9898ee8 |
8745 | $rm conftest* |
8746 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
8747 | |
8748 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
8749 | (eval $ac_compile) 2>&5 |
8750 | ac_status=$? |
8751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8752 | (exit $ac_status); } 2>conftest.err; then |
8753 | soname=conftest |
8754 | lib=conftest |
8755 | libobjs=conftest.$ac_objext |
8756 | deplibs= |
8757 | wl=$lt_prog_compiler_wl |
8758 | pic_flag=$lt_prog_compiler_pic |
8759 | compiler_flags=-v |
8760 | linker_flags=-v |
8761 | verstring= |
8762 | output_objdir=. |
8763 | libname=conftest |
8764 | lt_save_allow_undefined_flag=$allow_undefined_flag |
8765 | allow_undefined_flag= |
8766 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
8767 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
8768 | ac_status=$? |
8769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8770 | (exit $ac_status); } |
8771 | then |
8772 | archive_cmds_need_lc=no |
8773 | else |
8774 | archive_cmds_need_lc=yes |
8775 | fi |
8776 | allow_undefined_flag=$lt_save_allow_undefined_flag |
8777 | else |
8778 | cat conftest.err 1>&5 |
8779 | fi |
8780 | $rm conftest* |
dd184caf |
8781 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
8782 | echo "${ECHO_T}$archive_cmds_need_lc" >&6; } |
d9898ee8 |
8783 | ;; |
8784 | esac |
8785 | fi |
8786 | ;; |
8787 | esac |
8788 | |
dd184caf |
8789 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
8790 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
d9898ee8 |
8791 | library_names_spec= |
8792 | libname_spec='lib$name' |
8793 | soname_spec= |
8794 | shrext_cmds=".so" |
8795 | postinstall_cmds= |
8796 | postuninstall_cmds= |
8797 | finish_cmds= |
8798 | finish_eval= |
8799 | shlibpath_var= |
8800 | shlibpath_overrides_runpath=unknown |
8801 | version_type=none |
8802 | dynamic_linker="$host_os ld.so" |
8803 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
8804 | if test "$GCC" = yes; then |
8805 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
8806 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
8807 | # if the path contains ";" then we assume it to be the separator |
8808 | # otherwise default to the standard path separator (i.e. ":") - it is |
8809 | # assumed that no part of a normal pathname contains ";" but that should |
8810 | # okay in the real world where ";" in dirpaths is itself problematic. |
8811 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
8812 | else |
8813 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
8814 | fi |
8815 | else |
8816 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
8817 | fi |
8818 | need_lib_prefix=unknown |
8819 | hardcode_into_libs=no |
8820 | |
8821 | # when you set need_version to no, make sure it does not cause -set_version |
8822 | # flags to be left without arguments |
8823 | need_version=unknown |
8824 | |
8825 | case $host_os in |
8826 | aix3*) |
8827 | version_type=linux |
8828 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
8829 | shlibpath_var=LIBPATH |
8830 | |
8831 | # AIX 3 has no versioning support, so we append a major version to the name. |
8832 | soname_spec='${libname}${release}${shared_ext}$major' |
8833 | ;; |
8834 | |
8835 | aix4* | aix5*) |
8836 | version_type=linux |
8837 | need_lib_prefix=no |
8838 | need_version=no |
8839 | hardcode_into_libs=yes |
8840 | if test "$host_cpu" = ia64; then |
8841 | # AIX 5 supports IA64 |
8842 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
8843 | shlibpath_var=LD_LIBRARY_PATH |
8844 | else |
8845 | # With GCC up to 2.95.x, collect2 would create an import file |
8846 | # for dependence libraries. The import file would start with |
8847 | # the line `#! .'. This would cause the generated library to |
8848 | # depend on `.', always an invalid library. This was fixed in |
8849 | # development snapshots of GCC prior to 3.0. |
8850 | case $host_os in |
8851 | aix4 | aix4.[01] | aix4.[01].*) |
8852 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
8853 | echo ' yes ' |
8854 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
8855 | : |
8856 | else |
8857 | can_build_shared=no |
8858 | fi |
8859 | ;; |
8860 | esac |
8861 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
8862 | # soname into executable. Probably we can add versioning support to |
8863 | # collect2, so additional links can be useful in future. |
8864 | if test "$aix_use_runtimelinking" = yes; then |
8865 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
8866 | # instead of lib<name>.a to let people know that these are not |
8867 | # typical AIX shared libraries. |
8868 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8869 | else |
8870 | # We preserve .a as extension for shared libraries through AIX4.2 |
8871 | # and later when we are not doing run time linking. |
8872 | library_names_spec='${libname}${release}.a $libname.a' |
8873 | soname_spec='${libname}${release}${shared_ext}$major' |
8874 | fi |
8875 | shlibpath_var=LIBPATH |
8876 | fi |
8877 | ;; |
8878 | |
8879 | amigaos*) |
8880 | library_names_spec='$libname.ixlibrary $libname.a' |
8881 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
8882 | 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' |
8883 | ;; |
8884 | |
8885 | beos*) |
8886 | library_names_spec='${libname}${shared_ext}' |
8887 | dynamic_linker="$host_os ld.so" |
8888 | shlibpath_var=LIBRARY_PATH |
8889 | ;; |
8890 | |
8891 | bsdi[45]*) |
8892 | version_type=linux |
8893 | need_version=no |
8894 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8895 | soname_spec='${libname}${release}${shared_ext}$major' |
8896 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
8897 | shlibpath_var=LD_LIBRARY_PATH |
8898 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
8899 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
8900 | # the default ld.so.conf also contains /usr/contrib/lib and |
8901 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
8902 | # libtool to hard-code these into programs |
8903 | ;; |
8904 | |
8905 | cygwin* | mingw* | pw32*) |
8906 | version_type=windows |
8907 | shrext_cmds=".dll" |
8908 | need_version=no |
8909 | need_lib_prefix=no |
8910 | |
8911 | case $GCC,$host_os in |
8912 | yes,cygwin* | yes,mingw* | yes,pw32*) |
8913 | library_names_spec='$libname.dll.a' |
8914 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
8915 | postinstall_cmds='base_file=`basename \${file}`~ |
8916 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
8917 | dldir=$destdir/`dirname \$dlpath`~ |
8918 | test -d \$dldir || mkdir -p \$dldir~ |
8919 | $install_prog $dir/$dlname \$dldir/$dlname~ |
8920 | chmod a+x \$dldir/$dlname' |
8921 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
8922 | dlpath=$dir/\$dldll~ |
8923 | $rm \$dlpath' |
8924 | shlibpath_overrides_runpath=yes |
8925 | |
8926 | case $host_os in |
8927 | cygwin*) |
8928 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
8929 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
8930 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
8931 | ;; |
8932 | mingw*) |
8933 | # MinGW DLLs use traditional 'lib' prefix |
8934 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
8935 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
8936 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
8937 | # It is most probably a Windows format PATH printed by |
8938 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
8939 | # path with ; separators, and with drive letters. We can handle the |
8940 | # drive letters (cygwin fileutils understands them), so leave them, |
8941 | # especially as we might pass files found there to a mingw objdump, |
8942 | # which wouldn't understand a cygwinified path. Ahh. |
8943 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
8944 | else |
8945 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
8946 | fi |
8947 | ;; |
8948 | pw32*) |
8949 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
8950 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
8951 | ;; |
8952 | esac |
8953 | ;; |
8954 | |
8955 | *) |
8956 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
8957 | ;; |
8958 | esac |
8959 | dynamic_linker='Win32 ld.exe' |
8960 | # FIXME: first we should search . and the directory the executable is in |
8961 | shlibpath_var=PATH |
8962 | ;; |
8963 | |
8964 | darwin* | rhapsody*) |
8965 | dynamic_linker="$host_os dyld" |
8966 | version_type=darwin |
8967 | need_lib_prefix=no |
8968 | need_version=no |
8969 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
8970 | soname_spec='${libname}${release}${major}$shared_ext' |
8971 | shlibpath_overrides_runpath=yes |
8972 | shlibpath_var=DYLD_LIBRARY_PATH |
8973 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
8974 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
8975 | if test "$GCC" = yes; then |
8976 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
8977 | else |
8978 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
8979 | fi |
8980 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
8981 | ;; |
8982 | |
8983 | dgux*) |
8984 | version_type=linux |
8985 | need_lib_prefix=no |
8986 | need_version=no |
8987 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
8988 | soname_spec='${libname}${release}${shared_ext}$major' |
8989 | shlibpath_var=LD_LIBRARY_PATH |
8990 | ;; |
8991 | |
8992 | freebsd1*) |
8993 | dynamic_linker=no |
8994 | ;; |
8995 | |
8996 | kfreebsd*-gnu) |
8997 | version_type=linux |
8998 | need_lib_prefix=no |
8999 | need_version=no |
9000 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
9001 | soname_spec='${libname}${release}${shared_ext}$major' |
9002 | shlibpath_var=LD_LIBRARY_PATH |
9003 | shlibpath_overrides_runpath=no |
9004 | hardcode_into_libs=yes |
9005 | dynamic_linker='GNU ld.so' |
9006 | ;; |
9007 | |
9008 | freebsd* | dragonfly*) |
9009 | # DragonFly does not have aout. When/if they implement a new |
9010 | # versioning mechanism, adjust this. |
9011 | if test -x /usr/bin/objformat; then |
9012 | objformat=`/usr/bin/objformat` |
9013 | else |
9014 | case $host_os in |
9015 | freebsd[123]*) objformat=aout ;; |
9016 | *) objformat=elf ;; |
9017 | esac |
9018 | fi |
9019 | version_type=freebsd-$objformat |
9020 | case $version_type in |
9021 | freebsd-elf*) |
9022 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
9023 | need_version=no |
9024 | need_lib_prefix=no |
9025 | ;; |
9026 | freebsd-*) |
9027 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
9028 | need_version=yes |
9029 | ;; |
9030 | esac |
9031 | shlibpath_var=LD_LIBRARY_PATH |
9032 | case $host_os in |
9033 | freebsd2*) |
9034 | shlibpath_overrides_runpath=yes |
9035 | ;; |
9036 | freebsd3.[01]* | freebsdelf3.[01]*) |
9037 | shlibpath_overrides_runpath=yes |
9038 | hardcode_into_libs=yes |
9039 | ;; |
9040 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
9041 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
9042 | shlibpath_overrides_runpath=no |
9043 | hardcode_into_libs=yes |
9044 | ;; |
9045 | freebsd*) # from 4.6 on |
9046 | shlibpath_overrides_runpath=yes |
9047 | hardcode_into_libs=yes |
9048 | ;; |
9049 | esac |
9050 | ;; |
9051 | |
9052 | gnu*) |
9053 | version_type=linux |
9054 | need_lib_prefix=no |
9055 | need_version=no |
9056 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
9057 | soname_spec='${libname}${release}${shared_ext}$major' |
9058 | shlibpath_var=LD_LIBRARY_PATH |
9059 | hardcode_into_libs=yes |
9060 | ;; |
9061 | |
9062 | hpux9* | hpux10* | hpux11*) |
9063 | # Give a soname corresponding to the major version so that dld.sl refuses to |
9064 | # link against other versions. |
9065 | version_type=sunos |
9066 | need_lib_prefix=no |
9067 | need_version=no |
9068 | case $host_cpu in |
9069 | ia64*) |
9070 | shrext_cmds='.so' |
9071 | hardcode_into_libs=yes |
9072 | dynamic_linker="$host_os dld.so" |
9073 | shlibpath_var=LD_LIBRARY_PATH |
9074 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
9075 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9076 | soname_spec='${libname}${release}${shared_ext}$major' |
9077 | if test "X$HPUX_IA64_MODE" = X32; then |
9078 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
9079 | else |
9080 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
9081 | fi |
9082 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
9083 | ;; |
9084 | hppa*64*) |
9085 | shrext_cmds='.sl' |
9086 | hardcode_into_libs=yes |
9087 | dynamic_linker="$host_os dld.sl" |
9088 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
9089 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
9090 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9091 | soname_spec='${libname}${release}${shared_ext}$major' |
9092 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
9093 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
9094 | ;; |
9095 | *) |
9096 | shrext_cmds='.sl' |
9097 | dynamic_linker="$host_os dld.sl" |
9098 | shlibpath_var=SHLIB_PATH |
9099 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
9100 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9101 | soname_spec='${libname}${release}${shared_ext}$major' |
9102 | ;; |
9103 | esac |
9104 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
9105 | postinstall_cmds='chmod 555 $lib' |
9106 | ;; |
9107 | |
9108 | interix3*) |
9109 | version_type=linux |
9110 | need_lib_prefix=no |
9111 | need_version=no |
9112 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
9113 | soname_spec='${libname}${release}${shared_ext}$major' |
9114 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
9115 | shlibpath_var=LD_LIBRARY_PATH |
9116 | shlibpath_overrides_runpath=no |
9117 | hardcode_into_libs=yes |
9118 | ;; |
9119 | |
9120 | irix5* | irix6* | nonstopux*) |
9121 | case $host_os in |
9122 | nonstopux*) version_type=nonstopux ;; |
9123 | *) |
9124 | if test "$lt_cv_prog_gnu_ld" = yes; then |
9125 | version_type=linux |
9126 | else |
9127 | version_type=irix |
9128 | fi ;; |
9129 | esac |
9130 | need_lib_prefix=no |
9131 | need_version=no |
9132 | soname_spec='${libname}${release}${shared_ext}$major' |
9133 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
9134 | case $host_os in |
9135 | irix5* | nonstopux*) |
9136 | libsuff= shlibsuff= |
9137 | ;; |
9138 | *) |
9139 | case $LD in # libtool.m4 will add one of these switches to LD |
9140 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
9141 | libsuff= shlibsuff= libmagic=32-bit;; |
9142 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
9143 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
9144 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
9145 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
9146 | *) libsuff= shlibsuff= libmagic=never-match;; |
9147 | esac |
9148 | ;; |
9149 | esac |
9150 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
9151 | shlibpath_overrides_runpath=no |
9152 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
9153 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
9154 | hardcode_into_libs=yes |
9155 | ;; |
9156 | |
9157 | # No shared lib support for Linux oldld, aout, or coff. |
9158 | linux*oldld* | linux*aout* | linux*coff*) |
9159 | dynamic_linker=no |
9160 | ;; |
9161 | |
9162 | # This must be Linux ELF. |
9163 | linux*) |
9164 | version_type=linux |
9165 | need_lib_prefix=no |
9166 | need_version=no |
9167 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9168 | soname_spec='${libname}${release}${shared_ext}$major' |
9169 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
9170 | shlibpath_var=LD_LIBRARY_PATH |
9171 | shlibpath_overrides_runpath=no |
9172 | # This implies no fast_install, which is unacceptable. |
9173 | # Some rework will be needed to allow for fast_install |
9174 | # before this can be enabled. |
9175 | hardcode_into_libs=yes |
9176 | |
9177 | # find out which ABI we are using |
9178 | libsuff= |
9179 | case "$host_cpu" in |
9180 | x86_64*|s390x*|powerpc64*) |
dd184caf |
9181 | echo '#line 9181 "configure"' > conftest.$ac_ext |
d9898ee8 |
9182 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
9183 | (eval $ac_compile) 2>&5 |
9184 | ac_status=$? |
9185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9186 | (exit $ac_status); }; then |
9187 | case `/usr/bin/file conftest.$ac_objext` in |
9188 | *64-bit*) |
9189 | libsuff=64 |
9190 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" |
9191 | ;; |
9192 | esac |
9193 | fi |
9194 | rm -rf conftest* |
9195 | ;; |
9196 | esac |
9197 | |
9198 | # Append ld.so.conf contents to the search path |
9199 | if test -f /etc/ld.so.conf; then |
dd184caf |
9200 | 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/#.*//;/^[^\/]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
d9898ee8 |
9201 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" |
9202 | fi |
9203 | |
9204 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
9205 | # powerpc, because MkLinux only supported shared libraries with the |
9206 | # GNU dynamic linker. Since this was broken with cross compilers, |
9207 | # most powerpc-linux boxes support dynamic linking these days and |
9208 | # people can always --disable-shared, the test was removed, and we |
9209 | # assume the GNU/Linux dynamic linker is in use. |
9210 | dynamic_linker='GNU/Linux ld.so' |
9211 | ;; |
9212 | |
9213 | knetbsd*-gnu) |
9214 | version_type=linux |
9215 | need_lib_prefix=no |
9216 | need_version=no |
9217 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
9218 | soname_spec='${libname}${release}${shared_ext}$major' |
9219 | shlibpath_var=LD_LIBRARY_PATH |
9220 | shlibpath_overrides_runpath=no |
9221 | hardcode_into_libs=yes |
9222 | dynamic_linker='GNU ld.so' |
9223 | ;; |
9224 | |
9225 | netbsd*) |
9226 | version_type=sunos |
9227 | need_lib_prefix=no |
9228 | need_version=no |
9229 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
9230 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
9231 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
9232 | dynamic_linker='NetBSD (a.out) ld.so' |
9233 | else |
9234 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
9235 | soname_spec='${libname}${release}${shared_ext}$major' |
9236 | dynamic_linker='NetBSD ld.elf_so' |
9237 | fi |
9238 | shlibpath_var=LD_LIBRARY_PATH |
9239 | shlibpath_overrides_runpath=yes |
9240 | hardcode_into_libs=yes |
9241 | ;; |
9242 | |
9243 | newsos6) |
9244 | version_type=linux |
9245 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9246 | shlibpath_var=LD_LIBRARY_PATH |
9247 | shlibpath_overrides_runpath=yes |
9248 | ;; |
9249 | |
9250 | nto-qnx*) |
9251 | version_type=linux |
9252 | need_lib_prefix=no |
9253 | need_version=no |
9254 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9255 | soname_spec='${libname}${release}${shared_ext}$major' |
9256 | shlibpath_var=LD_LIBRARY_PATH |
9257 | shlibpath_overrides_runpath=yes |
9258 | ;; |
9259 | |
9260 | openbsd*) |
9261 | version_type=sunos |
9262 | sys_lib_dlsearch_path_spec="/usr/lib" |
9263 | need_lib_prefix=no |
9264 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
9265 | case $host_os in |
9266 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
9267 | *) need_version=no ;; |
9268 | esac |
9269 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
9270 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
9271 | shlibpath_var=LD_LIBRARY_PATH |
9272 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
9273 | case $host_os in |
9274 | openbsd2.[89] | openbsd2.[89].*) |
9275 | shlibpath_overrides_runpath=no |
9276 | ;; |
9277 | *) |
9278 | shlibpath_overrides_runpath=yes |
9279 | ;; |
9280 | esac |
9281 | else |
9282 | shlibpath_overrides_runpath=yes |
9283 | fi |
9284 | ;; |
9285 | |
9286 | os2*) |
9287 | libname_spec='$name' |
9288 | shrext_cmds=".dll" |
9289 | need_lib_prefix=no |
9290 | library_names_spec='$libname${shared_ext} $libname.a' |
9291 | dynamic_linker='OS/2 ld.exe' |
9292 | shlibpath_var=LIBPATH |
9293 | ;; |
9294 | |
9295 | osf3* | osf4* | osf5*) |
9296 | version_type=osf |
9297 | need_lib_prefix=no |
9298 | need_version=no |
9299 | soname_spec='${libname}${release}${shared_ext}$major' |
9300 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9301 | shlibpath_var=LD_LIBRARY_PATH |
9302 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
9303 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
9304 | ;; |
9305 | |
9306 | solaris*) |
9307 | version_type=linux |
9308 | need_lib_prefix=no |
9309 | need_version=no |
9310 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9311 | soname_spec='${libname}${release}${shared_ext}$major' |
9312 | shlibpath_var=LD_LIBRARY_PATH |
9313 | shlibpath_overrides_runpath=yes |
9314 | hardcode_into_libs=yes |
9315 | # ldd complains unless libraries are executable |
9316 | postinstall_cmds='chmod +x $lib' |
9317 | ;; |
9318 | |
9319 | sunos4*) |
9320 | version_type=sunos |
9321 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
9322 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
9323 | shlibpath_var=LD_LIBRARY_PATH |
9324 | shlibpath_overrides_runpath=yes |
9325 | if test "$with_gnu_ld" = yes; then |
9326 | need_lib_prefix=no |
9327 | fi |
9328 | need_version=yes |
9329 | ;; |
9330 | |
9331 | sysv4 | sysv4.3*) |
9332 | version_type=linux |
9333 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9334 | soname_spec='${libname}${release}${shared_ext}$major' |
9335 | shlibpath_var=LD_LIBRARY_PATH |
9336 | case $host_vendor in |
9337 | sni) |
9338 | shlibpath_overrides_runpath=no |
9339 | need_lib_prefix=no |
9340 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
9341 | runpath_var=LD_RUN_PATH |
9342 | ;; |
9343 | siemens) |
9344 | need_lib_prefix=no |
9345 | ;; |
9346 | motorola) |
9347 | need_lib_prefix=no |
9348 | need_version=no |
9349 | shlibpath_overrides_runpath=no |
9350 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
9351 | ;; |
9352 | esac |
9353 | ;; |
9354 | |
9355 | sysv4*MP*) |
9356 | if test -d /usr/nec ;then |
9357 | version_type=linux |
9358 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
9359 | soname_spec='$libname${shared_ext}.$major' |
9360 | shlibpath_var=LD_LIBRARY_PATH |
9361 | fi |
9362 | ;; |
9363 | |
9364 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
9365 | version_type=freebsd-elf |
9366 | need_lib_prefix=no |
9367 | need_version=no |
9368 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
9369 | soname_spec='${libname}${release}${shared_ext}$major' |
9370 | shlibpath_var=LD_LIBRARY_PATH |
9371 | hardcode_into_libs=yes |
9372 | if test "$with_gnu_ld" = yes; then |
9373 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
9374 | shlibpath_overrides_runpath=no |
9375 | else |
9376 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
9377 | shlibpath_overrides_runpath=yes |
9378 | case $host_os in |
9379 | sco3.2v5*) |
9380 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
9381 | ;; |
9382 | esac |
9383 | fi |
9384 | sys_lib_dlsearch_path_spec='/usr/lib' |
9385 | ;; |
9386 | |
9387 | uts4*) |
9388 | version_type=linux |
9389 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9390 | soname_spec='${libname}${release}${shared_ext}$major' |
9391 | shlibpath_var=LD_LIBRARY_PATH |
9392 | ;; |
9393 | |
9394 | *) |
9395 | dynamic_linker=no |
9396 | ;; |
9397 | esac |
dd184caf |
9398 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
9399 | echo "${ECHO_T}$dynamic_linker" >&6; } |
d9898ee8 |
9400 | test "$dynamic_linker" = no && can_build_shared=no |
9401 | |
9402 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
9403 | if test "$GCC" = yes; then |
9404 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
9405 | fi |
9406 | |
dd184caf |
9407 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
9408 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
d9898ee8 |
9409 | hardcode_action= |
9410 | if test -n "$hardcode_libdir_flag_spec" || \ |
9411 | test -n "$runpath_var" || \ |
9412 | test "X$hardcode_automatic" = "Xyes" ; then |
9413 | |
9414 | # We can hardcode non-existant directories. |
9415 | if test "$hardcode_direct" != no && |
9416 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
9417 | # have to relink, otherwise we might link with an installed library |
9418 | # when we should be linking with a yet-to-be-installed one |
9419 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
9420 | test "$hardcode_minus_L" != no; then |
9421 | # Linking always hardcodes the temporary library directory. |
9422 | hardcode_action=relink |
9423 | else |
9424 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
9425 | hardcode_action=immediate |
9426 | fi |
9427 | else |
9428 | # We cannot hardcode anything, or else we can only hardcode existing |
9429 | # directories. |
9430 | hardcode_action=unsupported |
9431 | fi |
dd184caf |
9432 | { echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
9433 | echo "${ECHO_T}$hardcode_action" >&6; } |
d9898ee8 |
9434 | |
9435 | if test "$hardcode_action" = relink; then |
9436 | # Fast installation is not supported |
9437 | enable_fast_install=no |
9438 | elif test "$shlibpath_overrides_runpath" = yes || |
9439 | test "$enable_shared" = no; then |
9440 | # Fast installation is not necessary |
9441 | enable_fast_install=needless |
9442 | fi |
9443 | |
9444 | striplib= |
9445 | old_striplib= |
dd184caf |
9446 | { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
9447 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } |
d9898ee8 |
9448 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
9449 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
9450 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
dd184caf |
9451 | { echo "$as_me:$LINENO: result: yes" >&5 |
9452 | echo "${ECHO_T}yes" >&6; } |
d9898ee8 |
9453 | else |
9454 | # FIXME - insert some real tests, host_os isn't really good enough |
9455 | case $host_os in |
9456 | darwin*) |
9457 | if test -n "$STRIP" ; then |
9458 | striplib="$STRIP -x" |
dd184caf |
9459 | { echo "$as_me:$LINENO: result: yes" >&5 |
9460 | echo "${ECHO_T}yes" >&6; } |
d9898ee8 |
9461 | else |
dd184caf |
9462 | { echo "$as_me:$LINENO: result: no" >&5 |
9463 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
9464 | fi |
9465 | ;; |
9466 | *) |
dd184caf |
9467 | { echo "$as_me:$LINENO: result: no" >&5 |
9468 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
9469 | ;; |
9470 | esac |
9471 | fi |
9472 | |
9473 | if test "x$enable_dlopen" != xyes; then |
9474 | enable_dlopen=unknown |
9475 | enable_dlopen_self=unknown |
9476 | enable_dlopen_self_static=unknown |
9477 | else |
9478 | lt_cv_dlopen=no |
9479 | lt_cv_dlopen_libs= |
9480 | |
9481 | case $host_os in |
9482 | beos*) |
9483 | lt_cv_dlopen="load_add_on" |
9484 | lt_cv_dlopen_libs= |
9485 | lt_cv_dlopen_self=yes |
9486 | ;; |
9487 | |
9488 | mingw* | pw32*) |
9489 | lt_cv_dlopen="LoadLibrary" |
9490 | lt_cv_dlopen_libs= |
9491 | ;; |
9492 | |
9493 | cygwin*) |
9494 | lt_cv_dlopen="dlopen" |
9495 | lt_cv_dlopen_libs= |
9496 | ;; |
9497 | |
9498 | darwin*) |
9499 | # if libdl is installed we need to link against it |
dd184caf |
9500 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
9501 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
d9898ee8 |
9502 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
9503 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9504 | else |
9505 | ac_check_lib_save_LIBS=$LIBS |
9506 | LIBS="-ldl $LIBS" |
9507 | cat >conftest.$ac_ext <<_ACEOF |
9508 | /* confdefs.h. */ |
9509 | _ACEOF |
9510 | cat confdefs.h >>conftest.$ac_ext |
9511 | cat >>conftest.$ac_ext <<_ACEOF |
9512 | /* end confdefs.h. */ |
9513 | |
dd184caf |
9514 | /* Override any GCC internal prototype to avoid an error. |
9515 | Use char because int might match the return type of a GCC |
9516 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
9517 | #ifdef __cplusplus |
9518 | extern "C" |
9519 | #endif |
d9898ee8 |
9520 | char dlopen (); |
9521 | int |
9522 | main () |
9523 | { |
dd184caf |
9524 | return dlopen (); |
d9898ee8 |
9525 | ; |
9526 | return 0; |
9527 | } |
9528 | _ACEOF |
9529 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
9530 | if { (ac_try="$ac_link" |
9531 | case "(($ac_try" in |
9532 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9533 | *) ac_try_echo=$ac_try;; |
9534 | esac |
9535 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9536 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
9537 | ac_status=$? |
9538 | grep -v '^ *+' conftest.er1 >conftest.err |
9539 | rm -f conftest.er1 |
9540 | cat conftest.err >&5 |
9541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
9542 | (exit $ac_status); } && { |
9543 | test -z "$ac_c_werror_flag" || |
9544 | test ! -s conftest.err |
9545 | } && test -s conftest$ac_exeext && |
9546 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
9547 | ac_cv_lib_dl_dlopen=yes |
9548 | else |
9549 | echo "$as_me: failed program was:" >&5 |
9550 | sed 's/^/| /' conftest.$ac_ext >&5 |
9551 | |
dd184caf |
9552 | ac_cv_lib_dl_dlopen=no |
d9898ee8 |
9553 | fi |
dd184caf |
9554 | |
9555 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
9556 | conftest$ac_exeext conftest.$ac_ext |
9557 | LIBS=$ac_check_lib_save_LIBS |
9558 | fi |
dd184caf |
9559 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
9560 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
d9898ee8 |
9561 | if test $ac_cv_lib_dl_dlopen = yes; then |
9562 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
9563 | else |
9564 | |
9565 | lt_cv_dlopen="dyld" |
9566 | lt_cv_dlopen_libs= |
9567 | lt_cv_dlopen_self=yes |
9568 | |
9569 | fi |
9570 | |
9571 | ;; |
9572 | |
9573 | *) |
dd184caf |
9574 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
9575 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
d9898ee8 |
9576 | if test "${ac_cv_func_shl_load+set}" = set; then |
9577 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9578 | else |
9579 | cat >conftest.$ac_ext <<_ACEOF |
9580 | /* confdefs.h. */ |
9581 | _ACEOF |
9582 | cat confdefs.h >>conftest.$ac_ext |
9583 | cat >>conftest.$ac_ext <<_ACEOF |
9584 | /* end confdefs.h. */ |
9585 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
9586 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
9587 | #define shl_load innocuous_shl_load |
9588 | |
9589 | /* System header to define __stub macros and hopefully few prototypes, |
9590 | which can conflict with char shl_load (); below. |
9591 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
9592 | <limits.h> exists even on freestanding compilers. */ |
9593 | |
9594 | #ifdef __STDC__ |
9595 | # include <limits.h> |
9596 | #else |
9597 | # include <assert.h> |
9598 | #endif |
9599 | |
9600 | #undef shl_load |
9601 | |
dd184caf |
9602 | /* Override any GCC internal prototype to avoid an error. |
9603 | Use char because int might match the return type of a GCC |
9604 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
9605 | #ifdef __cplusplus |
9606 | extern "C" |
d9898ee8 |
9607 | #endif |
d9898ee8 |
9608 | char shl_load (); |
9609 | /* The GNU C library defines this for functions which it implements |
9610 | to always fail with ENOSYS. Some functions are actually named |
9611 | something starting with __ and the normal name is an alias. */ |
dd184caf |
9612 | #if defined __stub_shl_load || defined __stub___shl_load |
d9898ee8 |
9613 | choke me |
d9898ee8 |
9614 | #endif |
9615 | |
9616 | int |
9617 | main () |
9618 | { |
dd184caf |
9619 | return shl_load (); |
d9898ee8 |
9620 | ; |
9621 | return 0; |
9622 | } |
9623 | _ACEOF |
9624 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
9625 | if { (ac_try="$ac_link" |
9626 | case "(($ac_try" in |
9627 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9628 | *) ac_try_echo=$ac_try;; |
9629 | esac |
9630 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9631 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
9632 | ac_status=$? |
9633 | grep -v '^ *+' conftest.er1 >conftest.err |
9634 | rm -f conftest.er1 |
9635 | cat conftest.err >&5 |
9636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
9637 | (exit $ac_status); } && { |
9638 | test -z "$ac_c_werror_flag" || |
9639 | test ! -s conftest.err |
9640 | } && test -s conftest$ac_exeext && |
9641 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
9642 | ac_cv_func_shl_load=yes |
9643 | else |
9644 | echo "$as_me: failed program was:" >&5 |
9645 | sed 's/^/| /' conftest.$ac_ext >&5 |
9646 | |
dd184caf |
9647 | ac_cv_func_shl_load=no |
d9898ee8 |
9648 | fi |
dd184caf |
9649 | |
9650 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
9651 | conftest$ac_exeext conftest.$ac_ext |
9652 | fi |
dd184caf |
9653 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
9654 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
d9898ee8 |
9655 | if test $ac_cv_func_shl_load = yes; then |
9656 | lt_cv_dlopen="shl_load" |
9657 | else |
dd184caf |
9658 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
9659 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
d9898ee8 |
9660 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
9661 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9662 | else |
9663 | ac_check_lib_save_LIBS=$LIBS |
9664 | LIBS="-ldld $LIBS" |
9665 | cat >conftest.$ac_ext <<_ACEOF |
9666 | /* confdefs.h. */ |
9667 | _ACEOF |
9668 | cat confdefs.h >>conftest.$ac_ext |
9669 | cat >>conftest.$ac_ext <<_ACEOF |
9670 | /* end confdefs.h. */ |
9671 | |
dd184caf |
9672 | /* Override any GCC internal prototype to avoid an error. |
9673 | Use char because int might match the return type of a GCC |
9674 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
9675 | #ifdef __cplusplus |
9676 | extern "C" |
9677 | #endif |
d9898ee8 |
9678 | char shl_load (); |
9679 | int |
9680 | main () |
9681 | { |
dd184caf |
9682 | return shl_load (); |
d9898ee8 |
9683 | ; |
9684 | return 0; |
9685 | } |
9686 | _ACEOF |
9687 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
9688 | if { (ac_try="$ac_link" |
9689 | case "(($ac_try" in |
9690 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9691 | *) ac_try_echo=$ac_try;; |
9692 | esac |
9693 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9694 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
9695 | ac_status=$? |
9696 | grep -v '^ *+' conftest.er1 >conftest.err |
9697 | rm -f conftest.er1 |
9698 | cat conftest.err >&5 |
9699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
9700 | (exit $ac_status); } && { |
9701 | test -z "$ac_c_werror_flag" || |
9702 | test ! -s conftest.err |
9703 | } && test -s conftest$ac_exeext && |
9704 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
9705 | ac_cv_lib_dld_shl_load=yes |
9706 | else |
9707 | echo "$as_me: failed program was:" >&5 |
9708 | sed 's/^/| /' conftest.$ac_ext >&5 |
9709 | |
dd184caf |
9710 | ac_cv_lib_dld_shl_load=no |
d9898ee8 |
9711 | fi |
dd184caf |
9712 | |
9713 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
9714 | conftest$ac_exeext conftest.$ac_ext |
9715 | LIBS=$ac_check_lib_save_LIBS |
9716 | fi |
dd184caf |
9717 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
9718 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
d9898ee8 |
9719 | if test $ac_cv_lib_dld_shl_load = yes; then |
9720 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
9721 | else |
dd184caf |
9722 | { echo "$as_me:$LINENO: checking for dlopen" >&5 |
9723 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } |
d9898ee8 |
9724 | if test "${ac_cv_func_dlopen+set}" = set; then |
9725 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9726 | else |
9727 | cat >conftest.$ac_ext <<_ACEOF |
9728 | /* confdefs.h. */ |
9729 | _ACEOF |
9730 | cat confdefs.h >>conftest.$ac_ext |
9731 | cat >>conftest.$ac_ext <<_ACEOF |
9732 | /* end confdefs.h. */ |
9733 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
9734 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
9735 | #define dlopen innocuous_dlopen |
9736 | |
9737 | /* System header to define __stub macros and hopefully few prototypes, |
9738 | which can conflict with char dlopen (); below. |
9739 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
9740 | <limits.h> exists even on freestanding compilers. */ |
9741 | |
9742 | #ifdef __STDC__ |
9743 | # include <limits.h> |
9744 | #else |
9745 | # include <assert.h> |
9746 | #endif |
9747 | |
9748 | #undef dlopen |
9749 | |
dd184caf |
9750 | /* Override any GCC internal prototype to avoid an error. |
9751 | Use char because int might match the return type of a GCC |
9752 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
9753 | #ifdef __cplusplus |
9754 | extern "C" |
d9898ee8 |
9755 | #endif |
d9898ee8 |
9756 | char dlopen (); |
9757 | /* The GNU C library defines this for functions which it implements |
9758 | to always fail with ENOSYS. Some functions are actually named |
9759 | something starting with __ and the normal name is an alias. */ |
dd184caf |
9760 | #if defined __stub_dlopen || defined __stub___dlopen |
d9898ee8 |
9761 | choke me |
d9898ee8 |
9762 | #endif |
9763 | |
9764 | int |
9765 | main () |
9766 | { |
dd184caf |
9767 | return dlopen (); |
d9898ee8 |
9768 | ; |
9769 | return 0; |
9770 | } |
9771 | _ACEOF |
9772 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
9773 | if { (ac_try="$ac_link" |
9774 | case "(($ac_try" in |
9775 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9776 | *) ac_try_echo=$ac_try;; |
9777 | esac |
9778 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9779 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
9780 | ac_status=$? |
9781 | grep -v '^ *+' conftest.er1 >conftest.err |
9782 | rm -f conftest.er1 |
9783 | cat conftest.err >&5 |
9784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
9785 | (exit $ac_status); } && { |
9786 | test -z "$ac_c_werror_flag" || |
9787 | test ! -s conftest.err |
9788 | } && test -s conftest$ac_exeext && |
9789 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
9790 | ac_cv_func_dlopen=yes |
9791 | else |
9792 | echo "$as_me: failed program was:" >&5 |
9793 | sed 's/^/| /' conftest.$ac_ext >&5 |
9794 | |
dd184caf |
9795 | ac_cv_func_dlopen=no |
d9898ee8 |
9796 | fi |
dd184caf |
9797 | |
9798 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
9799 | conftest$ac_exeext conftest.$ac_ext |
9800 | fi |
dd184caf |
9801 | { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
9802 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } |
d9898ee8 |
9803 | if test $ac_cv_func_dlopen = yes; then |
9804 | lt_cv_dlopen="dlopen" |
9805 | else |
dd184caf |
9806 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
9807 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
d9898ee8 |
9808 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
9809 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9810 | else |
9811 | ac_check_lib_save_LIBS=$LIBS |
9812 | LIBS="-ldl $LIBS" |
9813 | cat >conftest.$ac_ext <<_ACEOF |
9814 | /* confdefs.h. */ |
9815 | _ACEOF |
9816 | cat confdefs.h >>conftest.$ac_ext |
9817 | cat >>conftest.$ac_ext <<_ACEOF |
9818 | /* end confdefs.h. */ |
9819 | |
dd184caf |
9820 | /* Override any GCC internal prototype to avoid an error. |
9821 | Use char because int might match the return type of a GCC |
9822 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
9823 | #ifdef __cplusplus |
9824 | extern "C" |
9825 | #endif |
d9898ee8 |
9826 | char dlopen (); |
9827 | int |
9828 | main () |
9829 | { |
dd184caf |
9830 | return dlopen (); |
d9898ee8 |
9831 | ; |
9832 | return 0; |
9833 | } |
9834 | _ACEOF |
9835 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
9836 | if { (ac_try="$ac_link" |
9837 | case "(($ac_try" in |
9838 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9839 | *) ac_try_echo=$ac_try;; |
9840 | esac |
9841 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9842 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
9843 | ac_status=$? |
9844 | grep -v '^ *+' conftest.er1 >conftest.err |
9845 | rm -f conftest.er1 |
9846 | cat conftest.err >&5 |
9847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
9848 | (exit $ac_status); } && { |
9849 | test -z "$ac_c_werror_flag" || |
9850 | test ! -s conftest.err |
9851 | } && test -s conftest$ac_exeext && |
9852 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
9853 | ac_cv_lib_dl_dlopen=yes |
9854 | else |
9855 | echo "$as_me: failed program was:" >&5 |
9856 | sed 's/^/| /' conftest.$ac_ext >&5 |
9857 | |
dd184caf |
9858 | ac_cv_lib_dl_dlopen=no |
d9898ee8 |
9859 | fi |
dd184caf |
9860 | |
9861 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
9862 | conftest$ac_exeext conftest.$ac_ext |
9863 | LIBS=$ac_check_lib_save_LIBS |
9864 | fi |
dd184caf |
9865 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
9866 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
d9898ee8 |
9867 | if test $ac_cv_lib_dl_dlopen = yes; then |
9868 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
9869 | else |
dd184caf |
9870 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
9871 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
d9898ee8 |
9872 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
9873 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9874 | else |
9875 | ac_check_lib_save_LIBS=$LIBS |
9876 | LIBS="-lsvld $LIBS" |
9877 | cat >conftest.$ac_ext <<_ACEOF |
9878 | /* confdefs.h. */ |
9879 | _ACEOF |
9880 | cat confdefs.h >>conftest.$ac_ext |
9881 | cat >>conftest.$ac_ext <<_ACEOF |
9882 | /* end confdefs.h. */ |
9883 | |
dd184caf |
9884 | /* Override any GCC internal prototype to avoid an error. |
9885 | Use char because int might match the return type of a GCC |
9886 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
9887 | #ifdef __cplusplus |
9888 | extern "C" |
9889 | #endif |
d9898ee8 |
9890 | char dlopen (); |
9891 | int |
9892 | main () |
9893 | { |
dd184caf |
9894 | return dlopen (); |
d9898ee8 |
9895 | ; |
9896 | return 0; |
9897 | } |
9898 | _ACEOF |
9899 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
9900 | if { (ac_try="$ac_link" |
9901 | case "(($ac_try" in |
9902 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9903 | *) ac_try_echo=$ac_try;; |
9904 | esac |
9905 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9906 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
9907 | ac_status=$? |
9908 | grep -v '^ *+' conftest.er1 >conftest.err |
9909 | rm -f conftest.er1 |
9910 | cat conftest.err >&5 |
9911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
9912 | (exit $ac_status); } && { |
9913 | test -z "$ac_c_werror_flag" || |
9914 | test ! -s conftest.err |
9915 | } && test -s conftest$ac_exeext && |
9916 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
9917 | ac_cv_lib_svld_dlopen=yes |
9918 | else |
9919 | echo "$as_me: failed program was:" >&5 |
9920 | sed 's/^/| /' conftest.$ac_ext >&5 |
9921 | |
dd184caf |
9922 | ac_cv_lib_svld_dlopen=no |
d9898ee8 |
9923 | fi |
dd184caf |
9924 | |
9925 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
9926 | conftest$ac_exeext conftest.$ac_ext |
9927 | LIBS=$ac_check_lib_save_LIBS |
9928 | fi |
dd184caf |
9929 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
9930 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
d9898ee8 |
9931 | if test $ac_cv_lib_svld_dlopen = yes; then |
9932 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
9933 | else |
dd184caf |
9934 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
9935 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
d9898ee8 |
9936 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
9937 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9938 | else |
9939 | ac_check_lib_save_LIBS=$LIBS |
9940 | LIBS="-ldld $LIBS" |
9941 | cat >conftest.$ac_ext <<_ACEOF |
9942 | /* confdefs.h. */ |
9943 | _ACEOF |
9944 | cat confdefs.h >>conftest.$ac_ext |
9945 | cat >>conftest.$ac_ext <<_ACEOF |
9946 | /* end confdefs.h. */ |
9947 | |
dd184caf |
9948 | /* Override any GCC internal prototype to avoid an error. |
9949 | Use char because int might match the return type of a GCC |
9950 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
9951 | #ifdef __cplusplus |
9952 | extern "C" |
9953 | #endif |
d9898ee8 |
9954 | char dld_link (); |
9955 | int |
9956 | main () |
9957 | { |
dd184caf |
9958 | return dld_link (); |
d9898ee8 |
9959 | ; |
9960 | return 0; |
9961 | } |
9962 | _ACEOF |
9963 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
9964 | if { (ac_try="$ac_link" |
9965 | case "(($ac_try" in |
9966 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9967 | *) ac_try_echo=$ac_try;; |
9968 | esac |
9969 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9970 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
9971 | ac_status=$? |
9972 | grep -v '^ *+' conftest.er1 >conftest.err |
9973 | rm -f conftest.er1 |
9974 | cat conftest.err >&5 |
9975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
9976 | (exit $ac_status); } && { |
9977 | test -z "$ac_c_werror_flag" || |
9978 | test ! -s conftest.err |
9979 | } && test -s conftest$ac_exeext && |
9980 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
9981 | ac_cv_lib_dld_dld_link=yes |
9982 | else |
9983 | echo "$as_me: failed program was:" >&5 |
9984 | sed 's/^/| /' conftest.$ac_ext >&5 |
9985 | |
dd184caf |
9986 | ac_cv_lib_dld_dld_link=no |
d9898ee8 |
9987 | fi |
dd184caf |
9988 | |
9989 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
9990 | conftest$ac_exeext conftest.$ac_ext |
9991 | LIBS=$ac_check_lib_save_LIBS |
9992 | fi |
dd184caf |
9993 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
9994 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
d9898ee8 |
9995 | if test $ac_cv_lib_dld_dld_link = yes; then |
9996 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
9997 | fi |
9998 | |
9999 | |
10000 | fi |
10001 | |
10002 | |
10003 | fi |
10004 | |
10005 | |
10006 | fi |
10007 | |
10008 | |
10009 | fi |
10010 | |
10011 | |
10012 | fi |
10013 | |
10014 | ;; |
10015 | esac |
10016 | |
10017 | if test "x$lt_cv_dlopen" != xno; then |
10018 | enable_dlopen=yes |
10019 | else |
10020 | enable_dlopen=no |
10021 | fi |
10022 | |
10023 | case $lt_cv_dlopen in |
10024 | dlopen) |
10025 | save_CPPFLAGS="$CPPFLAGS" |
10026 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
10027 | |
10028 | save_LDFLAGS="$LDFLAGS" |
10029 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
10030 | |
10031 | save_LIBS="$LIBS" |
10032 | LIBS="$lt_cv_dlopen_libs $LIBS" |
10033 | |
dd184caf |
10034 | { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
10035 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } |
d9898ee8 |
10036 | if test "${lt_cv_dlopen_self+set}" = set; then |
10037 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10038 | else |
10039 | if test "$cross_compiling" = yes; then : |
10040 | lt_cv_dlopen_self=cross |
10041 | else |
10042 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
10043 | lt_status=$lt_dlunknown |
10044 | cat > conftest.$ac_ext <<EOF |
dd184caf |
10045 | #line 10045 "configure" |
d9898ee8 |
10046 | #include "confdefs.h" |
10047 | |
10048 | #if HAVE_DLFCN_H |
10049 | #include <dlfcn.h> |
10050 | #endif |
10051 | |
10052 | #include <stdio.h> |
10053 | |
10054 | #ifdef RTLD_GLOBAL |
10055 | # define LT_DLGLOBAL RTLD_GLOBAL |
10056 | #else |
10057 | # ifdef DL_GLOBAL |
10058 | # define LT_DLGLOBAL DL_GLOBAL |
10059 | # else |
10060 | # define LT_DLGLOBAL 0 |
10061 | # endif |
10062 | #endif |
10063 | |
10064 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
10065 | find out it does not work in some platform. */ |
10066 | #ifndef LT_DLLAZY_OR_NOW |
10067 | # ifdef RTLD_LAZY |
10068 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
10069 | # else |
10070 | # ifdef DL_LAZY |
10071 | # define LT_DLLAZY_OR_NOW DL_LAZY |
10072 | # else |
10073 | # ifdef RTLD_NOW |
10074 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
10075 | # else |
10076 | # ifdef DL_NOW |
10077 | # define LT_DLLAZY_OR_NOW DL_NOW |
10078 | # else |
10079 | # define LT_DLLAZY_OR_NOW 0 |
10080 | # endif |
10081 | # endif |
10082 | # endif |
10083 | # endif |
10084 | #endif |
10085 | |
10086 | #ifdef __cplusplus |
10087 | extern "C" void exit (int); |
10088 | #endif |
10089 | |
10090 | void fnord() { int i=42;} |
10091 | int main () |
10092 | { |
10093 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
10094 | int status = $lt_dlunknown; |
10095 | |
10096 | if (self) |
10097 | { |
10098 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
10099 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
10100 | /* dlclose (self); */ |
10101 | } |
10102 | else |
10103 | puts (dlerror ()); |
10104 | |
10105 | exit (status); |
10106 | } |
10107 | EOF |
10108 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10109 | (eval $ac_link) 2>&5 |
10110 | ac_status=$? |
10111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10112 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
10113 | (./conftest; exit; ) >&5 2>/dev/null |
10114 | lt_status=$? |
10115 | case x$lt_status in |
10116 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
10117 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
10118 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
10119 | esac |
10120 | else : |
10121 | # compilation failed |
10122 | lt_cv_dlopen_self=no |
10123 | fi |
10124 | fi |
10125 | rm -fr conftest* |
10126 | |
10127 | |
10128 | fi |
dd184caf |
10129 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
10130 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } |
d9898ee8 |
10131 | |
10132 | if test "x$lt_cv_dlopen_self" = xyes; then |
10133 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
dd184caf |
10134 | { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
10135 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } |
d9898ee8 |
10136 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
10137 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10138 | else |
10139 | if test "$cross_compiling" = yes; then : |
10140 | lt_cv_dlopen_self_static=cross |
10141 | else |
10142 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
10143 | lt_status=$lt_dlunknown |
10144 | cat > conftest.$ac_ext <<EOF |
dd184caf |
10145 | #line 10145 "configure" |
d9898ee8 |
10146 | #include "confdefs.h" |
10147 | |
10148 | #if HAVE_DLFCN_H |
10149 | #include <dlfcn.h> |
10150 | #endif |
10151 | |
10152 | #include <stdio.h> |
10153 | |
10154 | #ifdef RTLD_GLOBAL |
10155 | # define LT_DLGLOBAL RTLD_GLOBAL |
10156 | #else |
10157 | # ifdef DL_GLOBAL |
10158 | # define LT_DLGLOBAL DL_GLOBAL |
10159 | # else |
10160 | # define LT_DLGLOBAL 0 |
10161 | # endif |
10162 | #endif |
10163 | |
10164 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
10165 | find out it does not work in some platform. */ |
10166 | #ifndef LT_DLLAZY_OR_NOW |
10167 | # ifdef RTLD_LAZY |
10168 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
10169 | # else |
10170 | # ifdef DL_LAZY |
10171 | # define LT_DLLAZY_OR_NOW DL_LAZY |
10172 | # else |
10173 | # ifdef RTLD_NOW |
10174 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
10175 | # else |
10176 | # ifdef DL_NOW |
10177 | # define LT_DLLAZY_OR_NOW DL_NOW |
10178 | # else |
10179 | # define LT_DLLAZY_OR_NOW 0 |
10180 | # endif |
10181 | # endif |
10182 | # endif |
10183 | # endif |
10184 | #endif |
10185 | |
10186 | #ifdef __cplusplus |
10187 | extern "C" void exit (int); |
10188 | #endif |
10189 | |
10190 | void fnord() { int i=42;} |
10191 | int main () |
10192 | { |
10193 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
10194 | int status = $lt_dlunknown; |
10195 | |
10196 | if (self) |
10197 | { |
10198 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
10199 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
10200 | /* dlclose (self); */ |
10201 | } |
10202 | else |
10203 | puts (dlerror ()); |
10204 | |
10205 | exit (status); |
10206 | } |
10207 | EOF |
10208 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10209 | (eval $ac_link) 2>&5 |
10210 | ac_status=$? |
10211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10212 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
10213 | (./conftest; exit; ) >&5 2>/dev/null |
10214 | lt_status=$? |
10215 | case x$lt_status in |
10216 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
10217 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
10218 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
10219 | esac |
10220 | else : |
10221 | # compilation failed |
10222 | lt_cv_dlopen_self_static=no |
10223 | fi |
10224 | fi |
10225 | rm -fr conftest* |
10226 | |
10227 | |
10228 | fi |
dd184caf |
10229 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
10230 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } |
d9898ee8 |
10231 | fi |
10232 | |
10233 | CPPFLAGS="$save_CPPFLAGS" |
10234 | LDFLAGS="$save_LDFLAGS" |
10235 | LIBS="$save_LIBS" |
10236 | ;; |
10237 | esac |
10238 | |
10239 | case $lt_cv_dlopen_self in |
10240 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
10241 | *) enable_dlopen_self=unknown ;; |
10242 | esac |
10243 | |
10244 | case $lt_cv_dlopen_self_static in |
10245 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
10246 | *) enable_dlopen_self_static=unknown ;; |
10247 | esac |
10248 | fi |
10249 | |
10250 | |
10251 | # Report which library types will actually be built |
dd184caf |
10252 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
10253 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
10254 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
10255 | echo "${ECHO_T}$can_build_shared" >&6; } |
d9898ee8 |
10256 | |
dd184caf |
10257 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
10258 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
d9898ee8 |
10259 | test "$can_build_shared" = "no" && enable_shared=no |
10260 | |
10261 | # On AIX, shared libraries and static libraries use the same namespace, and |
10262 | # are all built from PIC. |
10263 | case $host_os in |
10264 | aix3*) |
10265 | test "$enable_shared" = yes && enable_static=no |
10266 | if test -n "$RANLIB"; then |
10267 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
10268 | postinstall_cmds='$RANLIB $lib' |
10269 | fi |
10270 | ;; |
10271 | |
10272 | aix4* | aix5*) |
10273 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
10274 | test "$enable_shared" = yes && enable_static=no |
10275 | fi |
10276 | ;; |
10277 | esac |
dd184caf |
10278 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
10279 | echo "${ECHO_T}$enable_shared" >&6; } |
d9898ee8 |
10280 | |
dd184caf |
10281 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
10282 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
d9898ee8 |
10283 | # Make sure either enable_shared or enable_static is yes. |
10284 | test "$enable_shared" = yes || enable_static=yes |
dd184caf |
10285 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
10286 | echo "${ECHO_T}$enable_static" >&6; } |
d9898ee8 |
10287 | |
10288 | # The else clause should only fire when bootstrapping the |
10289 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
10290 | # with your package, and you will get complaints that there are |
10291 | # no rules to generate ltmain.sh. |
10292 | if test -f "$ltmain"; then |
10293 | # See if we are running on zsh, and set the options which allow our commands through |
10294 | # without removal of \ escapes. |
10295 | if test -n "${ZSH_VERSION+set}" ; then |
10296 | setopt NO_GLOB_SUBST |
10297 | fi |
10298 | # Now quote all the things that may contain metacharacters while being |
10299 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
10300 | # variables and quote the copies for generation of the libtool script. |
10301 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
10302 | SED SHELL STRIP \ |
10303 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
10304 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
10305 | deplibs_check_method reload_flag reload_cmds need_locks \ |
10306 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
10307 | lt_cv_sys_global_symbol_to_c_name_address \ |
10308 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
10309 | old_postinstall_cmds old_postuninstall_cmds \ |
10310 | compiler \ |
10311 | CC \ |
10312 | LD \ |
10313 | lt_prog_compiler_wl \ |
10314 | lt_prog_compiler_pic \ |
10315 | lt_prog_compiler_static \ |
10316 | lt_prog_compiler_no_builtin_flag \ |
10317 | export_dynamic_flag_spec \ |
10318 | thread_safe_flag_spec \ |
10319 | whole_archive_flag_spec \ |
10320 | enable_shared_with_static_runtimes \ |
10321 | old_archive_cmds \ |
10322 | old_archive_from_new_cmds \ |
10323 | predep_objects \ |
10324 | postdep_objects \ |
10325 | predeps \ |
10326 | postdeps \ |
10327 | compiler_lib_search_path \ |
10328 | archive_cmds \ |
10329 | archive_expsym_cmds \ |
10330 | postinstall_cmds \ |
10331 | postuninstall_cmds \ |
10332 | old_archive_from_expsyms_cmds \ |
10333 | allow_undefined_flag \ |
10334 | no_undefined_flag \ |
10335 | export_symbols_cmds \ |
10336 | hardcode_libdir_flag_spec \ |
10337 | hardcode_libdir_flag_spec_ld \ |
10338 | hardcode_libdir_separator \ |
10339 | hardcode_automatic \ |
10340 | module_cmds \ |
10341 | module_expsym_cmds \ |
10342 | lt_cv_prog_compiler_c_o \ |
10343 | exclude_expsyms \ |
10344 | include_expsyms; do |
10345 | |
10346 | case $var in |
10347 | old_archive_cmds | \ |
10348 | old_archive_from_new_cmds | \ |
10349 | archive_cmds | \ |
10350 | archive_expsym_cmds | \ |
10351 | module_cmds | \ |
10352 | module_expsym_cmds | \ |
10353 | old_archive_from_expsyms_cmds | \ |
10354 | export_symbols_cmds | \ |
10355 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
10356 | postinstall_cmds | postuninstall_cmds | \ |
10357 | old_postinstall_cmds | old_postuninstall_cmds | \ |
10358 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
10359 | # Double-quote double-evaled strings. |
10360 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
10361 | ;; |
10362 | *) |
10363 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
10364 | ;; |
10365 | esac |
10366 | done |
10367 | |
10368 | case $lt_echo in |
10369 | *'\$0 --fallback-echo"') |
10370 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
10371 | ;; |
10372 | esac |
10373 | |
10374 | cfgfile="${ofile}T" |
10375 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
10376 | $rm -f "$cfgfile" |
10377 | { echo "$as_me:$LINENO: creating $ofile" >&5 |
10378 | echo "$as_me: creating $ofile" >&6;} |
10379 | |
10380 | cat <<__EOF__ >> "$cfgfile" |
10381 | #! $SHELL |
10382 | |
10383 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
10384 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
10385 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
10386 | # |
10387 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 |
10388 | # Free Software Foundation, Inc. |
10389 | # |
10390 | # This file is part of GNU Libtool: |
10391 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
10392 | # |
10393 | # This program is free software; you can redistribute it and/or modify |
10394 | # it under the terms of the GNU General Public License as published by |
10395 | # the Free Software Foundation; either version 2 of the License, or |
10396 | # (at your option) any later version. |
10397 | # |
10398 | # This program is distributed in the hope that it will be useful, but |
10399 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
10400 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
10401 | # General Public License for more details. |
10402 | # |
10403 | # You should have received a copy of the GNU General Public License |
10404 | # along with this program; if not, write to the Free Software |
10405 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
10406 | # |
10407 | # As a special exception to the GNU General Public License, if you |
10408 | # distribute this file as part of a program that contains a |
10409 | # configuration script generated by Autoconf, you may include it under |
10410 | # the same distribution terms that you use for the rest of that program. |
10411 | |
10412 | # A sed program that does not truncate output. |
10413 | SED=$lt_SED |
10414 | |
10415 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
10416 | Xsed="$SED -e 1s/^X//" |
10417 | |
10418 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
10419 | # if CDPATH is set. |
10420 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
10421 | |
10422 | # The names of the tagged configurations supported by this script. |
10423 | available_tags= |
10424 | |
10425 | # ### BEGIN LIBTOOL CONFIG |
10426 | |
10427 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
10428 | |
10429 | # Shell to use when invoking shell scripts. |
10430 | SHELL=$lt_SHELL |
10431 | |
10432 | # Whether or not to build shared libraries. |
10433 | build_libtool_libs=$enable_shared |
10434 | |
10435 | # Whether or not to build static libraries. |
10436 | build_old_libs=$enable_static |
10437 | |
10438 | # Whether or not to add -lc for building shared libraries. |
10439 | build_libtool_need_lc=$archive_cmds_need_lc |
10440 | |
10441 | # Whether or not to disallow shared libs when runtime libs are static |
10442 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
10443 | |
10444 | # Whether or not to optimize for fast installation. |
10445 | fast_install=$enable_fast_install |
10446 | |
10447 | # The host system. |
10448 | host_alias=$host_alias |
10449 | host=$host |
10450 | host_os=$host_os |
10451 | |
10452 | # The build system. |
10453 | build_alias=$build_alias |
10454 | build=$build |
10455 | build_os=$build_os |
10456 | |
10457 | # An echo program that does not interpret backslashes. |
10458 | echo=$lt_echo |
10459 | |
10460 | # The archiver. |
10461 | AR=$lt_AR |
10462 | AR_FLAGS=$lt_AR_FLAGS |
10463 | |
10464 | # A C compiler. |
10465 | LTCC=$lt_LTCC |
10466 | |
10467 | # LTCC compiler flags. |
10468 | LTCFLAGS=$lt_LTCFLAGS |
10469 | |
10470 | # A language-specific compiler. |
10471 | CC=$lt_compiler |
10472 | |
10473 | # Is the compiler the GNU C compiler? |
10474 | with_gcc=$GCC |
10475 | |
d9898ee8 |
10476 | # An ERE matcher. |
10477 | EGREP=$lt_EGREP |
10478 | |
10479 | # The linker used to build libraries. |
10480 | LD=$lt_LD |
10481 | |
10482 | # Whether we need hard or soft links. |
10483 | LN_S=$lt_LN_S |
10484 | |
10485 | # A BSD-compatible nm program. |
10486 | NM=$lt_NM |
10487 | |
10488 | # A symbol stripping program |
10489 | STRIP=$lt_STRIP |
10490 | |
10491 | # Used to examine libraries when file_magic_cmd begins "file" |
10492 | MAGIC_CMD=$MAGIC_CMD |
10493 | |
10494 | # Used on cygwin: DLL creation program. |
10495 | DLLTOOL="$DLLTOOL" |
10496 | |
10497 | # Used on cygwin: object dumper. |
10498 | OBJDUMP="$OBJDUMP" |
10499 | |
10500 | # Used on cygwin: assembler. |
10501 | AS="$AS" |
10502 | |
10503 | # The name of the directory that contains temporary libtool files. |
10504 | objdir=$objdir |
10505 | |
10506 | # How to create reloadable object files. |
10507 | reload_flag=$lt_reload_flag |
10508 | reload_cmds=$lt_reload_cmds |
10509 | |
10510 | # How to pass a linker flag through the compiler. |
10511 | wl=$lt_lt_prog_compiler_wl |
10512 | |
10513 | # Object file suffix (normally "o"). |
10514 | objext="$ac_objext" |
10515 | |
10516 | # Old archive suffix (normally "a"). |
10517 | libext="$libext" |
10518 | |
10519 | # Shared library suffix (normally ".so"). |
10520 | shrext_cmds='$shrext_cmds' |
10521 | |
10522 | # Executable file suffix (normally ""). |
10523 | exeext="$exeext" |
10524 | |
10525 | # Additional compiler flags for building library objects. |
10526 | pic_flag=$lt_lt_prog_compiler_pic |
10527 | pic_mode=$pic_mode |
10528 | |
10529 | # What is the maximum length of a command? |
10530 | max_cmd_len=$lt_cv_sys_max_cmd_len |
10531 | |
10532 | # Does compiler simultaneously support -c and -o options? |
10533 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
10534 | |
10535 | # Must we lock files when doing compilation? |
10536 | need_locks=$lt_need_locks |
10537 | |
10538 | # Do we need the lib prefix for modules? |
10539 | need_lib_prefix=$need_lib_prefix |
10540 | |
10541 | # Do we need a version for libraries? |
10542 | need_version=$need_version |
10543 | |
10544 | # Whether dlopen is supported. |
10545 | dlopen_support=$enable_dlopen |
10546 | |
10547 | # Whether dlopen of programs is supported. |
10548 | dlopen_self=$enable_dlopen_self |
10549 | |
10550 | # Whether dlopen of statically linked programs is supported. |
10551 | dlopen_self_static=$enable_dlopen_self_static |
10552 | |
10553 | # Compiler flag to prevent dynamic linking. |
10554 | link_static_flag=$lt_lt_prog_compiler_static |
10555 | |
10556 | # Compiler flag to turn off builtin functions. |
10557 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
10558 | |
10559 | # Compiler flag to allow reflexive dlopens. |
10560 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
10561 | |
10562 | # Compiler flag to generate shared objects directly from archives. |
10563 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
10564 | |
10565 | # Compiler flag to generate thread-safe objects. |
10566 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
10567 | |
10568 | # Library versioning type. |
10569 | version_type=$version_type |
10570 | |
10571 | # Format of library name prefix. |
10572 | libname_spec=$lt_libname_spec |
10573 | |
10574 | # List of archive names. First name is the real one, the rest are links. |
10575 | # The last name is the one that the linker finds with -lNAME. |
10576 | library_names_spec=$lt_library_names_spec |
10577 | |
10578 | # The coded name of the library, if different from the real name. |
10579 | soname_spec=$lt_soname_spec |
10580 | |
10581 | # Commands used to build and install an old-style archive. |
10582 | RANLIB=$lt_RANLIB |
10583 | old_archive_cmds=$lt_old_archive_cmds |
10584 | old_postinstall_cmds=$lt_old_postinstall_cmds |
10585 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
10586 | |
10587 | # Create an old-style archive from a shared archive. |
10588 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
10589 | |
10590 | # Create a temporary old-style archive to link instead of a shared archive. |
10591 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
10592 | |
10593 | # Commands used to build and install a shared archive. |
10594 | archive_cmds=$lt_archive_cmds |
10595 | archive_expsym_cmds=$lt_archive_expsym_cmds |
10596 | postinstall_cmds=$lt_postinstall_cmds |
10597 | postuninstall_cmds=$lt_postuninstall_cmds |
10598 | |
10599 | # Commands used to build a loadable module (assumed same as above if empty) |
10600 | module_cmds=$lt_module_cmds |
10601 | module_expsym_cmds=$lt_module_expsym_cmds |
10602 | |
10603 | # Commands to strip libraries. |
10604 | old_striplib=$lt_old_striplib |
10605 | striplib=$lt_striplib |
10606 | |
10607 | # Dependencies to place before the objects being linked to create a |
10608 | # shared library. |
dd184caf |
10609 | predep_objects=$lt_predep_objects |
d9898ee8 |
10610 | |
10611 | # Dependencies to place after the objects being linked to create a |
10612 | # shared library. |
dd184caf |
10613 | postdep_objects=$lt_postdep_objects |
d9898ee8 |
10614 | |
10615 | # Dependencies to place before the objects being linked to create a |
10616 | # shared library. |
10617 | predeps=$lt_predeps |
10618 | |
10619 | # Dependencies to place after the objects being linked to create a |
10620 | # shared library. |
10621 | postdeps=$lt_postdeps |
10622 | |
10623 | # The library search path used internally by the compiler when linking |
10624 | # a shared library. |
dd184caf |
10625 | compiler_lib_search_path=$lt_compiler_lib_search_path |
d9898ee8 |
10626 | |
10627 | # Method to check whether dependent libraries are shared objects. |
10628 | deplibs_check_method=$lt_deplibs_check_method |
10629 | |
10630 | # Command to use when deplibs_check_method == file_magic. |
10631 | file_magic_cmd=$lt_file_magic_cmd |
10632 | |
10633 | # Flag that allows shared libraries with undefined symbols to be built. |
10634 | allow_undefined_flag=$lt_allow_undefined_flag |
10635 | |
10636 | # Flag that forces no undefined symbols. |
10637 | no_undefined_flag=$lt_no_undefined_flag |
10638 | |
10639 | # Commands used to finish a libtool library installation in a directory. |
10640 | finish_cmds=$lt_finish_cmds |
10641 | |
10642 | # Same as above, but a single script fragment to be evaled but not shown. |
10643 | finish_eval=$lt_finish_eval |
10644 | |
10645 | # Take the output of nm and produce a listing of raw symbols and C names. |
10646 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
10647 | |
10648 | # Transform the output of nm in a proper C declaration |
10649 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
10650 | |
10651 | # Transform the output of nm in a C name address pair |
10652 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
10653 | |
10654 | # This is the shared library runtime path variable. |
10655 | runpath_var=$runpath_var |
10656 | |
10657 | # This is the shared library path variable. |
10658 | shlibpath_var=$shlibpath_var |
10659 | |
10660 | # Is shlibpath searched before the hard-coded library search path? |
10661 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
10662 | |
10663 | # How to hardcode a shared library path into an executable. |
10664 | hardcode_action=$hardcode_action |
10665 | |
10666 | # Whether we should hardcode library paths into libraries. |
10667 | hardcode_into_libs=$hardcode_into_libs |
10668 | |
10669 | # Flag to hardcode \$libdir into a binary during linking. |
10670 | # This must work even if \$libdir does not exist. |
10671 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
10672 | |
10673 | # If ld is used when linking, flag to hardcode \$libdir into |
10674 | # a binary during linking. This must work even if \$libdir does |
10675 | # not exist. |
10676 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
10677 | |
10678 | # Whether we need a single -rpath flag with a separated argument. |
10679 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
10680 | |
10681 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
10682 | # resulting binary. |
10683 | hardcode_direct=$hardcode_direct |
10684 | |
10685 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
10686 | # resulting binary. |
10687 | hardcode_minus_L=$hardcode_minus_L |
10688 | |
10689 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
10690 | # the resulting binary. |
10691 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
10692 | |
10693 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
10694 | # and all subsequent libraries and executables linked against it. |
10695 | hardcode_automatic=$hardcode_automatic |
10696 | |
10697 | # Variables whose values should be saved in libtool wrapper scripts and |
10698 | # restored at relink time. |
10699 | variables_saved_for_relink="$variables_saved_for_relink" |
10700 | |
10701 | # Whether libtool must link a program against all its dependency libraries. |
10702 | link_all_deplibs=$link_all_deplibs |
10703 | |
10704 | # Compile-time system search path for libraries |
dd184caf |
10705 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
d9898ee8 |
10706 | |
10707 | # Run-time system search path for libraries |
10708 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
10709 | |
10710 | # Fix the shell variable \$srcfile for the compiler. |
10711 | fix_srcfile_path="$fix_srcfile_path" |
10712 | |
10713 | # Set to yes if exported symbols are required. |
10714 | always_export_symbols=$always_export_symbols |
10715 | |
10716 | # The commands to list exported symbols. |
10717 | export_symbols_cmds=$lt_export_symbols_cmds |
10718 | |
10719 | # The commands to extract the exported symbol list from a shared archive. |
10720 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
10721 | |
10722 | # Symbols that should not be listed in the preloaded symbols. |
10723 | exclude_expsyms=$lt_exclude_expsyms |
10724 | |
10725 | # Symbols that must always be exported. |
10726 | include_expsyms=$lt_include_expsyms |
10727 | |
10728 | # ### END LIBTOOL CONFIG |
10729 | |
10730 | __EOF__ |
10731 | |
10732 | |
10733 | case $host_os in |
10734 | aix3*) |
10735 | cat <<\EOF >> "$cfgfile" |
10736 | |
10737 | # AIX sometimes has problems with the GCC collect2 program. For some |
10738 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
10739 | # vanish in a puff of smoke. |
10740 | if test "X${COLLECT_NAMES+set}" != Xset; then |
10741 | COLLECT_NAMES= |
10742 | export COLLECT_NAMES |
10743 | fi |
10744 | EOF |
10745 | ;; |
10746 | esac |
10747 | |
10748 | # We use sed instead of cat because bash on DJGPP gets confused if |
10749 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
10750 | # text mode, it properly converts lines to CR/LF. This bash problem |
10751 | # is reportedly fixed, but why not run on old versions too? |
10752 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
10753 | |
10754 | mv -f "$cfgfile" "$ofile" || \ |
10755 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
10756 | chmod +x "$ofile" |
10757 | |
10758 | else |
10759 | # If there is no Makefile yet, we rely on a make rule to execute |
10760 | # `config.status --recheck' to rerun these tests and create the |
10761 | # libtool script then. |
10762 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
10763 | if test -f "$ltmain_in"; then |
10764 | test -f Makefile && make "$ltmain" |
10765 | fi |
10766 | fi |
10767 | |
10768 | |
10769 | ac_ext=c |
10770 | ac_cpp='$CPP $CPPFLAGS' |
10771 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
10772 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
10773 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
10774 | |
10775 | CC="$lt_save_CC" |
10776 | |
10777 | |
dd184caf |
10778 | # Check whether --with-tags was given. |
d9898ee8 |
10779 | if test "${with_tags+set}" = set; then |
dd184caf |
10780 | withval=$with_tags; tagnames="$withval" |
10781 | fi |
10782 | |
d9898ee8 |
10783 | |
10784 | if test -f "$ltmain" && test -n "$tagnames"; then |
10785 | if test ! -f "${ofile}"; then |
10786 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 |
10787 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} |
10788 | fi |
10789 | |
10790 | if test -z "$LTCC"; then |
10791 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
10792 | if test -z "$LTCC"; then |
10793 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 |
10794 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} |
10795 | else |
10796 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
10797 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
10798 | fi |
10799 | fi |
10800 | if test -z "$LTCFLAGS"; then |
10801 | eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" |
10802 | fi |
10803 | |
10804 | # Extract list of available tagged configurations in $ofile. |
10805 | # Note that this assumes the entire list is on one line. |
10806 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
10807 | |
10808 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
10809 | for tagname in $tagnames; do |
10810 | IFS="$lt_save_ifs" |
10811 | # Check whether tagname contains only valid characters |
10812 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in |
10813 | "") ;; |
10814 | *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 |
10815 | echo "$as_me: error: invalid tag name: $tagname" >&2;} |
10816 | { (exit 1); exit 1; }; } |
10817 | ;; |
10818 | esac |
10819 | |
10820 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
10821 | then |
10822 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 |
10823 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} |
10824 | { (exit 1); exit 1; }; } |
10825 | fi |
10826 | |
10827 | # Update the list of available tags. |
10828 | if test -n "$tagname"; then |
10829 | echo appending configuration tag \"$tagname\" to $ofile |
10830 | |
10831 | case $tagname in |
10832 | CXX) |
10833 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
10834 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
10835 | (test "X$CXX" != "Xg++"))) ; then |
dd184caf |
10836 | ac_ext=cpp |
d9898ee8 |
10837 | ac_cpp='$CXXCPP $CPPFLAGS' |
10838 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
10839 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
10840 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
10841 | |
10842 | |
10843 | |
10844 | |
10845 | archive_cmds_need_lc_CXX=no |
10846 | allow_undefined_flag_CXX= |
10847 | always_export_symbols_CXX=no |
10848 | archive_expsym_cmds_CXX= |
10849 | export_dynamic_flag_spec_CXX= |
10850 | hardcode_direct_CXX=no |
10851 | hardcode_libdir_flag_spec_CXX= |
10852 | hardcode_libdir_flag_spec_ld_CXX= |
10853 | hardcode_libdir_separator_CXX= |
10854 | hardcode_minus_L_CXX=no |
10855 | hardcode_shlibpath_var_CXX=unsupported |
10856 | hardcode_automatic_CXX=no |
10857 | module_cmds_CXX= |
10858 | module_expsym_cmds_CXX= |
10859 | link_all_deplibs_CXX=unknown |
10860 | old_archive_cmds_CXX=$old_archive_cmds |
10861 | no_undefined_flag_CXX= |
10862 | whole_archive_flag_spec_CXX= |
10863 | enable_shared_with_static_runtimes_CXX=no |
10864 | |
10865 | # Dependencies to place before and after the object being linked: |
10866 | predep_objects_CXX= |
10867 | postdep_objects_CXX= |
10868 | predeps_CXX= |
10869 | postdeps_CXX= |
10870 | compiler_lib_search_path_CXX= |
10871 | |
10872 | # Source file extension for C++ test sources. |
10873 | ac_ext=cpp |
10874 | |
10875 | # Object file extension for compiled C++ test sources. |
10876 | objext=o |
10877 | objext_CXX=$objext |
10878 | |
10879 | # Code to be used in simple compile tests |
10880 | lt_simple_compile_test_code="int some_variable = 0;\n" |
10881 | |
10882 | # Code to be used in simple link tests |
10883 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' |
10884 | |
10885 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
10886 | |
10887 | # If no C compiler was specified, use CC. |
10888 | LTCC=${LTCC-"$CC"} |
10889 | |
10890 | # If no C compiler flags were specified, use CFLAGS. |
10891 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
10892 | |
10893 | # Allow CC to be a program name with arguments. |
10894 | compiler=$CC |
10895 | |
10896 | |
10897 | # save warnings/boilerplate of simple test code |
10898 | ac_outfile=conftest.$ac_objext |
10899 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
10900 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
10901 | _lt_compiler_boilerplate=`cat conftest.err` |
10902 | $rm conftest* |
10903 | |
10904 | ac_outfile=conftest.$ac_objext |
10905 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
10906 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
10907 | _lt_linker_boilerplate=`cat conftest.err` |
10908 | $rm conftest* |
10909 | |
10910 | |
10911 | # Allow CC to be a program name with arguments. |
10912 | lt_save_CC=$CC |
10913 | lt_save_LD=$LD |
10914 | lt_save_GCC=$GCC |
10915 | GCC=$GXX |
10916 | lt_save_with_gnu_ld=$with_gnu_ld |
10917 | lt_save_path_LD=$lt_cv_path_LD |
10918 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
10919 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
10920 | else |
10921 | $as_unset lt_cv_prog_gnu_ld |
10922 | fi |
10923 | if test -n "${lt_cv_path_LDCXX+set}"; then |
10924 | lt_cv_path_LD=$lt_cv_path_LDCXX |
10925 | else |
10926 | $as_unset lt_cv_path_LD |
10927 | fi |
10928 | test -z "${LDCXX+set}" || LD=$LDCXX |
10929 | CC=${CXX-"c++"} |
10930 | compiler=$CC |
10931 | compiler_CXX=$CC |
10932 | for cc_temp in $compiler""; do |
10933 | case $cc_temp in |
10934 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
10935 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
10936 | \-*) ;; |
10937 | *) break;; |
10938 | esac |
10939 | done |
10940 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
10941 | |
10942 | |
10943 | # We don't want -fno-exception wen compiling C++ code, so set the |
10944 | # no_builtin_flag separately |
10945 | if test "$GXX" = yes; then |
10946 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
10947 | else |
10948 | lt_prog_compiler_no_builtin_flag_CXX= |
10949 | fi |
10950 | |
10951 | if test "$GXX" = yes; then |
10952 | # Set up default GNU C++ configuration |
10953 | |
10954 | |
dd184caf |
10955 | # Check whether --with-gnu-ld was given. |
d9898ee8 |
10956 | if test "${with_gnu_ld+set}" = set; then |
dd184caf |
10957 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
d9898ee8 |
10958 | else |
10959 | with_gnu_ld=no |
dd184caf |
10960 | fi |
10961 | |
d9898ee8 |
10962 | ac_prog=ld |
10963 | if test "$GCC" = yes; then |
10964 | # Check if gcc -print-prog-name=ld gives a path. |
dd184caf |
10965 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
10966 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
d9898ee8 |
10967 | case $host in |
10968 | *-*-mingw*) |
10969 | # gcc leaves a trailing carriage return which upsets mingw |
10970 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
10971 | *) |
10972 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
10973 | esac |
10974 | case $ac_prog in |
10975 | # Accept absolute paths. |
10976 | [\\/]* | ?:[\\/]*) |
10977 | re_direlt='/[^/][^/]*/\.\./' |
10978 | # Canonicalize the pathname of ld |
10979 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
10980 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
10981 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
10982 | done |
10983 | test -z "$LD" && LD="$ac_prog" |
10984 | ;; |
10985 | "") |
10986 | # If it fails, then pretend we aren't using GCC. |
10987 | ac_prog=ld |
10988 | ;; |
10989 | *) |
10990 | # If it is relative, then search for the first ld in PATH. |
10991 | with_gnu_ld=unknown |
10992 | ;; |
10993 | esac |
10994 | elif test "$with_gnu_ld" = yes; then |
dd184caf |
10995 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
10996 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
d9898ee8 |
10997 | else |
dd184caf |
10998 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
10999 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
d9898ee8 |
11000 | fi |
11001 | if test "${lt_cv_path_LD+set}" = set; then |
11002 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11003 | else |
11004 | if test -z "$LD"; then |
11005 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
11006 | for ac_dir in $PATH; do |
11007 | IFS="$lt_save_ifs" |
11008 | test -z "$ac_dir" && ac_dir=. |
11009 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
11010 | lt_cv_path_LD="$ac_dir/$ac_prog" |
11011 | # Check to see if the program is GNU ld. I'd rather use --version, |
11012 | # but apparently some variants of GNU ld only accept -v. |
11013 | # Break only if it was the GNU/non-GNU ld that we prefer. |
11014 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
11015 | *GNU* | *'with BFD'*) |
11016 | test "$with_gnu_ld" != no && break |
11017 | ;; |
11018 | *) |
11019 | test "$with_gnu_ld" != yes && break |
11020 | ;; |
11021 | esac |
11022 | fi |
11023 | done |
11024 | IFS="$lt_save_ifs" |
11025 | else |
11026 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
11027 | fi |
11028 | fi |
11029 | |
11030 | LD="$lt_cv_path_LD" |
11031 | if test -n "$LD"; then |
dd184caf |
11032 | { echo "$as_me:$LINENO: result: $LD" >&5 |
11033 | echo "${ECHO_T}$LD" >&6; } |
d9898ee8 |
11034 | else |
dd184caf |
11035 | { echo "$as_me:$LINENO: result: no" >&5 |
11036 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
11037 | fi |
11038 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
11039 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
11040 | { (exit 1); exit 1; }; } |
dd184caf |
11041 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
11042 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } |
d9898ee8 |
11043 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
11044 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11045 | else |
11046 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
11047 | case `$LD -v 2>&1 </dev/null` in |
11048 | *GNU* | *'with BFD'*) |
11049 | lt_cv_prog_gnu_ld=yes |
11050 | ;; |
11051 | *) |
11052 | lt_cv_prog_gnu_ld=no |
11053 | ;; |
11054 | esac |
11055 | fi |
dd184caf |
11056 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
11057 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
d9898ee8 |
11058 | with_gnu_ld=$lt_cv_prog_gnu_ld |
11059 | |
11060 | |
11061 | |
11062 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
11063 | # archiving commands below assume that GNU ld is being used. |
11064 | if test "$with_gnu_ld" = yes; then |
11065 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
11066 | 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' |
11067 | |
11068 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
11069 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
11070 | |
11071 | # If archive_cmds runs LD, not CC, wlarc should be empty |
11072 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
11073 | # investigate it a little bit more. (MM) |
11074 | wlarc='${wl}' |
11075 | |
11076 | # ancient GNU ld didn't support --whole-archive et. al. |
11077 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
11078 | grep 'no-whole-archive' > /dev/null; then |
11079 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
11080 | else |
11081 | whole_archive_flag_spec_CXX= |
11082 | fi |
11083 | else |
11084 | with_gnu_ld=no |
11085 | wlarc= |
11086 | |
11087 | # A generic and very simple default shared library creation |
11088 | # command for GNU C++ for the case where it uses the native |
11089 | # linker, instead of GNU ld. If possible, this setting should |
11090 | # overridden to take advantage of the native linker features on |
11091 | # the platform it is being used on. |
11092 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
11093 | fi |
11094 | |
11095 | # Commands to make compiler produce verbose output that lists |
11096 | # what "hidden" libraries, object files and flags are used when |
11097 | # linking a shared library. |
11098 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
11099 | |
11100 | else |
11101 | GXX=no |
11102 | with_gnu_ld=no |
11103 | wlarc= |
11104 | fi |
11105 | |
11106 | # PORTME: fill in a description of your system's C++ link characteristics |
dd184caf |
11107 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
11108 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
d9898ee8 |
11109 | ld_shlibs_CXX=yes |
11110 | case $host_os in |
11111 | aix3*) |
11112 | # FIXME: insert proper C++ library support |
11113 | ld_shlibs_CXX=no |
11114 | ;; |
11115 | aix4* | aix5*) |
11116 | if test "$host_cpu" = ia64; then |
11117 | # On IA64, the linker does run time linking by default, so we don't |
11118 | # have to do anything special. |
11119 | aix_use_runtimelinking=no |
11120 | exp_sym_flag='-Bexport' |
11121 | no_entry_flag="" |
11122 | else |
11123 | aix_use_runtimelinking=no |
11124 | |
11125 | # Test if we are trying to use run time linking or normal |
11126 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
11127 | # need to do runtime linking. |
11128 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
11129 | for ld_flag in $LDFLAGS; do |
11130 | case $ld_flag in |
11131 | *-brtl*) |
11132 | aix_use_runtimelinking=yes |
11133 | break |
11134 | ;; |
11135 | esac |
11136 | done |
11137 | ;; |
11138 | esac |
11139 | |
11140 | exp_sym_flag='-bexport' |
11141 | no_entry_flag='-bnoentry' |
11142 | fi |
11143 | |
11144 | # When large executables or shared objects are built, AIX ld can |
11145 | # have problems creating the table of contents. If linking a library |
11146 | # or program results in "error TOC overflow" add -mminimal-toc to |
11147 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
11148 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
11149 | |
11150 | archive_cmds_CXX='' |
11151 | hardcode_direct_CXX=yes |
11152 | hardcode_libdir_separator_CXX=':' |
11153 | link_all_deplibs_CXX=yes |
11154 | |
11155 | if test "$GXX" = yes; then |
11156 | case $host_os in aix4.[012]|aix4.[012].*) |
11157 | # We only want to do this on AIX 4.2 and lower, the check |
11158 | # below for broken collect2 doesn't work under 4.3+ |
11159 | collect2name=`${CC} -print-prog-name=collect2` |
11160 | if test -f "$collect2name" && \ |
11161 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
11162 | then |
11163 | # We have reworked collect2 |
11164 | hardcode_direct_CXX=yes |
11165 | else |
11166 | # We have old collect2 |
11167 | hardcode_direct_CXX=unsupported |
11168 | # It fails to find uninstalled libraries when the uninstalled |
11169 | # path is not listed in the libpath. Setting hardcode_minus_L |
11170 | # to unsupported forces relinking |
11171 | hardcode_minus_L_CXX=yes |
11172 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
11173 | hardcode_libdir_separator_CXX= |
11174 | fi |
11175 | ;; |
11176 | esac |
11177 | shared_flag='-shared' |
11178 | if test "$aix_use_runtimelinking" = yes; then |
11179 | shared_flag="$shared_flag "'${wl}-G' |
11180 | fi |
11181 | else |
11182 | # not using gcc |
11183 | if test "$host_cpu" = ia64; then |
11184 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
11185 | # chokes on -Wl,-G. The following line is correct: |
11186 | shared_flag='-G' |
11187 | else |
11188 | if test "$aix_use_runtimelinking" = yes; then |
11189 | shared_flag='${wl}-G' |
11190 | else |
11191 | shared_flag='${wl}-bM:SRE' |
11192 | fi |
11193 | fi |
11194 | fi |
11195 | |
11196 | # It seems that -bexpall does not export symbols beginning with |
11197 | # underscore (_), so it is better to generate a list of symbols to export. |
11198 | always_export_symbols_CXX=yes |
11199 | if test "$aix_use_runtimelinking" = yes; then |
11200 | # Warning - without using the other runtime loading flags (-brtl), |
11201 | # -berok will link without error, but may produce a broken library. |
11202 | allow_undefined_flag_CXX='-berok' |
11203 | # Determine the default libpath from the value encoded in an empty executable. |
11204 | cat >conftest.$ac_ext <<_ACEOF |
11205 | /* confdefs.h. */ |
11206 | _ACEOF |
11207 | cat confdefs.h >>conftest.$ac_ext |
11208 | cat >>conftest.$ac_ext <<_ACEOF |
11209 | /* end confdefs.h. */ |
11210 | |
11211 | int |
11212 | main () |
11213 | { |
11214 | |
11215 | ; |
11216 | return 0; |
11217 | } |
11218 | _ACEOF |
11219 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
11220 | if { (ac_try="$ac_link" |
11221 | case "(($ac_try" in |
11222 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11223 | *) ac_try_echo=$ac_try;; |
11224 | esac |
11225 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11226 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
11227 | ac_status=$? |
11228 | grep -v '^ *+' conftest.er1 >conftest.err |
11229 | rm -f conftest.er1 |
11230 | cat conftest.err >&5 |
11231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
11232 | (exit $ac_status); } && { |
11233 | test -z "$ac_cxx_werror_flag" || |
11234 | test ! -s conftest.err |
11235 | } && test -s conftest$ac_exeext && |
11236 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
11237 | |
11238 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
11239 | }'` |
11240 | # Check for a 64-bit object if we didn't find anything. |
11241 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
11242 | }'`; fi |
11243 | else |
11244 | echo "$as_me: failed program was:" >&5 |
11245 | sed 's/^/| /' conftest.$ac_ext >&5 |
11246 | |
dd184caf |
11247 | |
d9898ee8 |
11248 | fi |
dd184caf |
11249 | |
11250 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
11251 | conftest$ac_exeext conftest.$ac_ext |
11252 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
11253 | |
11254 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
11255 | |
11256 | 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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
11257 | else |
11258 | if test "$host_cpu" = ia64; then |
11259 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
11260 | allow_undefined_flag_CXX="-z nodefs" |
11261 | 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" |
11262 | else |
11263 | # Determine the default libpath from the value encoded in an empty executable. |
11264 | cat >conftest.$ac_ext <<_ACEOF |
11265 | /* confdefs.h. */ |
11266 | _ACEOF |
11267 | cat confdefs.h >>conftest.$ac_ext |
11268 | cat >>conftest.$ac_ext <<_ACEOF |
11269 | /* end confdefs.h. */ |
11270 | |
11271 | int |
11272 | main () |
11273 | { |
11274 | |
11275 | ; |
11276 | return 0; |
11277 | } |
11278 | _ACEOF |
11279 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
11280 | if { (ac_try="$ac_link" |
11281 | case "(($ac_try" in |
11282 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11283 | *) ac_try_echo=$ac_try;; |
11284 | esac |
11285 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11286 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
11287 | ac_status=$? |
11288 | grep -v '^ *+' conftest.er1 >conftest.err |
11289 | rm -f conftest.er1 |
11290 | cat conftest.err >&5 |
11291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
11292 | (exit $ac_status); } && { |
11293 | test -z "$ac_cxx_werror_flag" || |
11294 | test ! -s conftest.err |
11295 | } && test -s conftest$ac_exeext && |
11296 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
11297 | |
11298 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
11299 | }'` |
11300 | # Check for a 64-bit object if we didn't find anything. |
11301 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
11302 | }'`; fi |
11303 | else |
11304 | echo "$as_me: failed program was:" >&5 |
11305 | sed 's/^/| /' conftest.$ac_ext >&5 |
11306 | |
dd184caf |
11307 | |
d9898ee8 |
11308 | fi |
dd184caf |
11309 | |
11310 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
11311 | conftest$ac_exeext conftest.$ac_ext |
11312 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
11313 | |
11314 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
11315 | # Warning - without using the other run time loading flags, |
11316 | # -berok will link without error, but may produce a broken library. |
11317 | no_undefined_flag_CXX=' ${wl}-bernotok' |
11318 | allow_undefined_flag_CXX=' ${wl}-berok' |
11319 | # Exported symbols can be pulled into shared objects from archives |
11320 | whole_archive_flag_spec_CXX='$convenience' |
11321 | archive_cmds_need_lc_CXX=yes |
11322 | # This is similar to how AIX traditionally builds its shared libraries. |
11323 | 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' |
11324 | fi |
11325 | fi |
11326 | ;; |
11327 | |
11328 | beos*) |
11329 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
11330 | allow_undefined_flag_CXX=unsupported |
11331 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
11332 | # support --undefined. This deserves some investigation. FIXME |
11333 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
11334 | else |
11335 | ld_shlibs_CXX=no |
11336 | fi |
11337 | ;; |
11338 | |
11339 | chorus*) |
11340 | case $cc_basename in |
11341 | *) |
11342 | # FIXME: insert proper C++ library support |
11343 | ld_shlibs_CXX=no |
11344 | ;; |
11345 | esac |
11346 | ;; |
11347 | |
11348 | cygwin* | mingw* | pw32*) |
11349 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
11350 | # as there is no search path for DLLs. |
11351 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
11352 | allow_undefined_flag_CXX=unsupported |
11353 | always_export_symbols_CXX=no |
11354 | enable_shared_with_static_runtimes_CXX=yes |
11355 | |
11356 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
11357 | 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' |
11358 | # If the export-symbols file already is a .def file (1st line |
11359 | # is EXPORTS), use it as is; otherwise, prepend... |
11360 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
11361 | cp $export_symbols $output_objdir/$soname.def; |
11362 | else |
11363 | echo EXPORTS > $output_objdir/$soname.def; |
11364 | cat $export_symbols >> $output_objdir/$soname.def; |
11365 | fi~ |
11366 | $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' |
11367 | else |
11368 | ld_shlibs_CXX=no |
11369 | fi |
11370 | ;; |
11371 | darwin* | rhapsody*) |
11372 | case $host_os in |
11373 | rhapsody* | darwin1.[012]) |
11374 | allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' |
11375 | ;; |
11376 | *) # Darwin 1.3 on |
11377 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
11378 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
11379 | else |
11380 | case ${MACOSX_DEPLOYMENT_TARGET} in |
11381 | 10.[012]) |
11382 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
11383 | ;; |
11384 | 10.*) |
11385 | allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' |
11386 | ;; |
11387 | esac |
11388 | fi |
11389 | ;; |
11390 | esac |
11391 | archive_cmds_need_lc_CXX=no |
11392 | hardcode_direct_CXX=no |
11393 | hardcode_automatic_CXX=yes |
11394 | hardcode_shlibpath_var_CXX=unsupported |
11395 | whole_archive_flag_spec_CXX='' |
11396 | link_all_deplibs_CXX=yes |
11397 | |
11398 | if test "$GXX" = yes ; then |
11399 | lt_int_apple_cc_single_mod=no |
11400 | output_verbose_link_cmd='echo' |
11401 | if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then |
11402 | lt_int_apple_cc_single_mod=yes |
11403 | fi |
11404 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
11405 | archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
11406 | else |
11407 | 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' |
11408 | fi |
11409 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
11410 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
11411 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
11412 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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}' |
11413 | else |
11414 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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}' |
11415 | fi |
11416 | module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -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}' |
11417 | else |
11418 | case $cc_basename in |
11419 | xlc*) |
11420 | output_verbose_link_cmd='echo' |
11421 | 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' |
11422 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
11423 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
11424 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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}' |
11425 | module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -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}' |
11426 | ;; |
11427 | *) |
11428 | ld_shlibs_CXX=no |
11429 | ;; |
11430 | esac |
11431 | fi |
11432 | ;; |
11433 | |
11434 | dgux*) |
11435 | case $cc_basename in |
11436 | ec++*) |
11437 | # FIXME: insert proper C++ library support |
11438 | ld_shlibs_CXX=no |
11439 | ;; |
11440 | ghcx*) |
11441 | # Green Hills C++ Compiler |
11442 | # FIXME: insert proper C++ library support |
11443 | ld_shlibs_CXX=no |
11444 | ;; |
11445 | *) |
11446 | # FIXME: insert proper C++ library support |
11447 | ld_shlibs_CXX=no |
11448 | ;; |
11449 | esac |
11450 | ;; |
11451 | freebsd[12]*) |
11452 | # C++ shared libraries reported to be fairly broken before switch to ELF |
11453 | ld_shlibs_CXX=no |
11454 | ;; |
11455 | freebsd-elf*) |
11456 | archive_cmds_need_lc_CXX=no |
11457 | ;; |
11458 | freebsd* | kfreebsd*-gnu | dragonfly*) |
11459 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
11460 | # conventions |
11461 | ld_shlibs_CXX=yes |
11462 | ;; |
11463 | gnu*) |
11464 | ;; |
11465 | hpux9*) |
11466 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
11467 | hardcode_libdir_separator_CXX=: |
11468 | export_dynamic_flag_spec_CXX='${wl}-E' |
11469 | hardcode_direct_CXX=yes |
11470 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
11471 | # but as the default |
11472 | # location of the library. |
11473 | |
11474 | case $cc_basename in |
11475 | CC*) |
11476 | # FIXME: insert proper C++ library support |
11477 | ld_shlibs_CXX=no |
11478 | ;; |
11479 | aCC*) |
11480 | 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' |
11481 | # Commands to make compiler produce verbose output that lists |
11482 | # what "hidden" libraries, object files and flags are used when |
11483 | # linking a shared library. |
11484 | # |
11485 | # There doesn't appear to be a way to prevent this compiler from |
11486 | # explicitly linking system object files so we need to strip them |
11487 | # from the output so that they don't get included in the library |
11488 | # dependencies. |
11489 | 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 $list' |
11490 | ;; |
11491 | *) |
11492 | if test "$GXX" = yes; then |
11493 | 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' |
11494 | else |
11495 | # FIXME: insert proper C++ library support |
11496 | ld_shlibs_CXX=no |
11497 | fi |
11498 | ;; |
11499 | esac |
11500 | ;; |
11501 | hpux10*|hpux11*) |
11502 | if test $with_gnu_ld = no; then |
11503 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
11504 | hardcode_libdir_separator_CXX=: |
11505 | |
11506 | case $host_cpu in |
11507 | hppa*64*|ia64*) |
11508 | hardcode_libdir_flag_spec_ld_CXX='+b $libdir' |
11509 | ;; |
11510 | *) |
11511 | export_dynamic_flag_spec_CXX='${wl}-E' |
11512 | ;; |
11513 | esac |
11514 | fi |
11515 | case $host_cpu in |
11516 | hppa*64*|ia64*) |
11517 | hardcode_direct_CXX=no |
11518 | hardcode_shlibpath_var_CXX=no |
11519 | ;; |
11520 | *) |
11521 | hardcode_direct_CXX=yes |
11522 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
11523 | # but as the default |
11524 | # location of the library. |
11525 | ;; |
11526 | esac |
11527 | |
11528 | case $cc_basename in |
11529 | CC*) |
11530 | # FIXME: insert proper C++ library support |
11531 | ld_shlibs_CXX=no |
11532 | ;; |
11533 | aCC*) |
11534 | case $host_cpu in |
11535 | hppa*64*) |
11536 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11537 | ;; |
11538 | ia64*) |
11539 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11540 | ;; |
11541 | *) |
11542 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11543 | ;; |
11544 | esac |
11545 | # Commands to make compiler produce verbose output that lists |
11546 | # what "hidden" libraries, object files and flags are used when |
11547 | # linking a shared library. |
11548 | # |
11549 | # There doesn't appear to be a way to prevent this compiler from |
11550 | # explicitly linking system object files so we need to strip them |
11551 | # from the output so that they don't get included in the library |
11552 | # dependencies. |
11553 | 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 $list' |
11554 | ;; |
11555 | *) |
11556 | if test "$GXX" = yes; then |
11557 | if test $with_gnu_ld = no; then |
11558 | case $host_cpu in |
11559 | hppa*64*) |
11560 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11561 | ;; |
11562 | ia64*) |
11563 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11564 | ;; |
11565 | *) |
11566 | 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' |
11567 | ;; |
11568 | esac |
11569 | fi |
11570 | else |
11571 | # FIXME: insert proper C++ library support |
11572 | ld_shlibs_CXX=no |
11573 | fi |
11574 | ;; |
11575 | esac |
11576 | ;; |
11577 | interix3*) |
11578 | hardcode_direct_CXX=no |
11579 | hardcode_shlibpath_var_CXX=no |
11580 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
11581 | export_dynamic_flag_spec_CXX='${wl}-E' |
11582 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
11583 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
11584 | # default) and relocated if they conflict, which is a slow very memory |
11585 | # consuming and fragmenting process. To avoid this, we pick a random, |
11586 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
11587 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
11588 | 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' |
11589 | 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' |
11590 | ;; |
11591 | irix5* | irix6*) |
11592 | case $cc_basename in |
11593 | CC*) |
11594 | # SGI C++ |
11595 | archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
11596 | |
11597 | # Archives containing C++ object files must be created using |
11598 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
11599 | # necessary to make sure instantiated templates are included |
11600 | # in the archive. |
11601 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
11602 | ;; |
11603 | *) |
11604 | if test "$GXX" = yes; then |
11605 | if test "$with_gnu_ld" = no; then |
11606 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
11607 | else |
11608 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' |
11609 | fi |
11610 | fi |
11611 | link_all_deplibs_CXX=yes |
11612 | ;; |
11613 | esac |
11614 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
11615 | hardcode_libdir_separator_CXX=: |
11616 | ;; |
11617 | linux*) |
11618 | case $cc_basename in |
11619 | KCC*) |
11620 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
11621 | |
11622 | # KCC will only create a shared library if the output file |
11623 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
11624 | # to its proper name (with version) after linking. |
11625 | 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' |
11626 | 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' |
11627 | # Commands to make compiler produce verbose output that lists |
11628 | # what "hidden" libraries, object files and flags are used when |
11629 | # linking a shared library. |
11630 | # |
11631 | # There doesn't appear to be a way to prevent this compiler from |
11632 | # explicitly linking system object files so we need to strip them |
11633 | # from the output so that they don't get included in the library |
11634 | # dependencies. |
11635 | 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 $list' |
11636 | |
11637 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' |
11638 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
11639 | |
11640 | # Archives containing C++ object files must be created using |
11641 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
11642 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
11643 | ;; |
11644 | icpc*) |
11645 | # Intel C++ |
11646 | with_gnu_ld=yes |
11647 | # version 8.0 and above of icpc choke on multiply defined symbols |
11648 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
11649 | # earlier do not add the objects themselves. |
11650 | case `$CC -V 2>&1` in |
11651 | *"Version 7."*) |
11652 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
11653 | 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' |
11654 | ;; |
11655 | *) # Version 8.0 or newer |
11656 | tmp_idyn= |
11657 | case $host_cpu in |
11658 | ia64*) tmp_idyn=' -i_dynamic';; |
11659 | esac |
11660 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
11661 | 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' |
11662 | ;; |
11663 | esac |
11664 | archive_cmds_need_lc_CXX=no |
11665 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
11666 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
11667 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
11668 | ;; |
11669 | pgCC*) |
11670 | # Portland Group C++ compiler |
11671 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
11672 | 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' |
11673 | |
11674 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
11675 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
11676 | 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' |
11677 | ;; |
11678 | cxx*) |
11679 | # Compaq C++ |
11680 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
11681 | 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' |
11682 | |
11683 | runpath_var=LD_RUN_PATH |
11684 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
11685 | hardcode_libdir_separator_CXX=: |
11686 | |
11687 | # Commands to make compiler produce verbose output that lists |
11688 | # what "hidden" libraries, object files and flags are used when |
11689 | # linking a shared library. |
11690 | # |
11691 | # There doesn't appear to be a way to prevent this compiler from |
11692 | # explicitly linking system object files so we need to strip them |
11693 | # from the output so that they don't get included in the library |
11694 | # dependencies. |
11695 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "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 $list' |
11696 | ;; |
11697 | esac |
11698 | ;; |
11699 | lynxos*) |
11700 | # FIXME: insert proper C++ library support |
11701 | ld_shlibs_CXX=no |
11702 | ;; |
11703 | m88k*) |
11704 | # FIXME: insert proper C++ library support |
11705 | ld_shlibs_CXX=no |
11706 | ;; |
11707 | mvs*) |
11708 | case $cc_basename in |
11709 | cxx*) |
11710 | # FIXME: insert proper C++ library support |
11711 | ld_shlibs_CXX=no |
11712 | ;; |
11713 | *) |
11714 | # FIXME: insert proper C++ library support |
11715 | ld_shlibs_CXX=no |
11716 | ;; |
11717 | esac |
11718 | ;; |
11719 | netbsd*) |
11720 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
11721 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
11722 | wlarc= |
11723 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
11724 | hardcode_direct_CXX=yes |
11725 | hardcode_shlibpath_var_CXX=no |
11726 | fi |
11727 | # Workaround some broken pre-1.5 toolchains |
11728 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
11729 | ;; |
11730 | openbsd2*) |
11731 | # C++ shared libraries are fairly broken |
11732 | ld_shlibs_CXX=no |
11733 | ;; |
11734 | openbsd*) |
11735 | hardcode_direct_CXX=yes |
11736 | hardcode_shlibpath_var_CXX=no |
11737 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
11738 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
11739 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
11740 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
11741 | export_dynamic_flag_spec_CXX='${wl}-E' |
11742 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
11743 | fi |
11744 | output_verbose_link_cmd='echo' |
11745 | ;; |
11746 | osf3*) |
11747 | case $cc_basename in |
11748 | KCC*) |
11749 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
11750 | |
11751 | # KCC will only create a shared library if the output file |
11752 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
11753 | # to its proper name (with version) after linking. |
11754 | 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' |
11755 | |
11756 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
11757 | hardcode_libdir_separator_CXX=: |
11758 | |
11759 | # Archives containing C++ object files must be created using |
11760 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
11761 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
11762 | |
11763 | ;; |
11764 | RCC*) |
11765 | # Rational C++ 2.4.1 |
11766 | # FIXME: insert proper C++ library support |
11767 | ld_shlibs_CXX=no |
11768 | ;; |
11769 | cxx*) |
11770 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
11771 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
11772 | |
11773 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
11774 | hardcode_libdir_separator_CXX=: |
11775 | |
11776 | # Commands to make compiler produce verbose output that lists |
11777 | # what "hidden" libraries, object files and flags are used when |
11778 | # linking a shared library. |
11779 | # |
11780 | # There doesn't appear to be a way to prevent this compiler from |
11781 | # explicitly linking system object files so we need to strip them |
11782 | # from the output so that they don't get included in the library |
11783 | # dependencies. |
11784 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "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 $list' |
11785 | ;; |
11786 | *) |
11787 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
11788 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
11789 | 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 ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
11790 | |
11791 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
11792 | hardcode_libdir_separator_CXX=: |
11793 | |
11794 | # Commands to make compiler produce verbose output that lists |
11795 | # what "hidden" libraries, object files and flags are used when |
11796 | # linking a shared library. |
11797 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
11798 | |
11799 | else |
11800 | # FIXME: insert proper C++ library support |
11801 | ld_shlibs_CXX=no |
11802 | fi |
11803 | ;; |
11804 | esac |
11805 | ;; |
11806 | osf4* | osf5*) |
11807 | case $cc_basename in |
11808 | KCC*) |
11809 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
11810 | |
11811 | # KCC will only create a shared library if the output file |
11812 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
11813 | # to its proper name (with version) after linking. |
11814 | 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' |
11815 | |
11816 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
11817 | hardcode_libdir_separator_CXX=: |
11818 | |
11819 | # Archives containing C++ object files must be created using |
11820 | # the KAI C++ compiler. |
11821 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
11822 | ;; |
11823 | RCC*) |
11824 | # Rational C++ 2.4.1 |
11825 | # FIXME: insert proper C++ library support |
11826 | ld_shlibs_CXX=no |
11827 | ;; |
11828 | cxx*) |
11829 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
11830 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
11831 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
11832 | echo "-hidden">> $lib.exp~ |
11833 | $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 -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ |
11834 | $rm $lib.exp' |
11835 | |
11836 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
11837 | hardcode_libdir_separator_CXX=: |
11838 | |
11839 | # Commands to make compiler produce verbose output that lists |
11840 | # what "hidden" libraries, object files and flags are used when |
11841 | # linking a shared library. |
11842 | # |
11843 | # There doesn't appear to be a way to prevent this compiler from |
11844 | # explicitly linking system object files so we need to strip them |
11845 | # from the output so that they don't get included in the library |
11846 | # dependencies. |
11847 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "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 $list' |
11848 | ;; |
11849 | *) |
11850 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
11851 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
11852 | 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` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
11853 | |
11854 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
11855 | hardcode_libdir_separator_CXX=: |
11856 | |
11857 | # Commands to make compiler produce verbose output that lists |
11858 | # what "hidden" libraries, object files and flags are used when |
11859 | # linking a shared library. |
11860 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
11861 | |
11862 | else |
11863 | # FIXME: insert proper C++ library support |
11864 | ld_shlibs_CXX=no |
11865 | fi |
11866 | ;; |
11867 | esac |
11868 | ;; |
11869 | psos*) |
11870 | # FIXME: insert proper C++ library support |
11871 | ld_shlibs_CXX=no |
11872 | ;; |
11873 | sunos4*) |
11874 | case $cc_basename in |
11875 | CC*) |
11876 | # Sun C++ 4.x |
11877 | # FIXME: insert proper C++ library support |
11878 | ld_shlibs_CXX=no |
11879 | ;; |
11880 | lcc*) |
11881 | # Lucid |
11882 | # FIXME: insert proper C++ library support |
11883 | ld_shlibs_CXX=no |
11884 | ;; |
11885 | *) |
11886 | # FIXME: insert proper C++ library support |
11887 | ld_shlibs_CXX=no |
11888 | ;; |
11889 | esac |
11890 | ;; |
11891 | solaris*) |
11892 | case $cc_basename in |
11893 | CC*) |
11894 | # Sun C++ 4.2, 5.x and Centerline C++ |
11895 | archive_cmds_need_lc_CXX=yes |
11896 | no_undefined_flag_CXX=' -zdefs' |
11897 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11898 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
11899 | $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' |
11900 | |
11901 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
11902 | hardcode_shlibpath_var_CXX=no |
11903 | case $host_os in |
11904 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
11905 | *) |
11906 | # The C++ compiler is used as linker so we must use $wl |
11907 | # flag to pass the commands to the underlying system |
11908 | # linker. We must also pass each convience library through |
11909 | # to the system linker between allextract/defaultextract. |
11910 | # The C++ compiler will combine linker options so we |
11911 | # cannot just pass the convience library names through |
11912 | # without $wl. |
11913 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
11914 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' |
11915 | ;; |
11916 | esac |
11917 | link_all_deplibs_CXX=yes |
11918 | |
11919 | output_verbose_link_cmd='echo' |
11920 | |
11921 | # Archives containing C++ object files must be created using |
11922 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
11923 | # necessary to make sure instantiated templates are included |
11924 | # in the archive. |
11925 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
11926 | ;; |
11927 | gcx*) |
11928 | # Green Hills C++ Compiler |
11929 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
11930 | |
11931 | # The C++ compiler must be used to create the archive. |
11932 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
11933 | ;; |
11934 | *) |
11935 | # GNU C++ compiler with Solaris linker |
11936 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
11937 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
11938 | if $CC --version | grep -v '^2\.7' > /dev/null; then |
11939 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
11940 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
11941 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
11942 | |
11943 | # Commands to make compiler produce verbose output that lists |
11944 | # what "hidden" libraries, object files and flags are used when |
11945 | # linking a shared library. |
11946 | output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
11947 | else |
11948 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
11949 | # platform. |
11950 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
11951 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
11952 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
11953 | |
11954 | # Commands to make compiler produce verbose output that lists |
11955 | # what "hidden" libraries, object files and flags are used when |
11956 | # linking a shared library. |
11957 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
11958 | fi |
11959 | |
11960 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
11961 | fi |
11962 | ;; |
11963 | esac |
11964 | ;; |
11965 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
11966 | no_undefined_flag_CXX='${wl}-z,text' |
11967 | archive_cmds_need_lc_CXX=no |
11968 | hardcode_shlibpath_var_CXX=no |
11969 | runpath_var='LD_RUN_PATH' |
11970 | |
11971 | case $cc_basename in |
11972 | CC*) |
11973 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
11974 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
11975 | ;; |
11976 | *) |
11977 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
11978 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
11979 | ;; |
11980 | esac |
11981 | ;; |
11982 | sysv5* | sco3.2v5* | sco5v6*) |
11983 | # Note: We can NOT use -z defs as we might desire, because we do not |
11984 | # link with -lc, and that would cause any symbols used from libc to |
11985 | # always be unresolved, which means just about no library would |
11986 | # ever link correctly. If we're not using GNU ld we use -z text |
11987 | # though, which does catch some bad symbols but isn't as heavy-handed |
11988 | # as -z defs. |
11989 | # For security reasons, it is highly recommended that you always |
11990 | # use absolute paths for naming shared libraries, and exclude the |
11991 | # DT_RUNPATH tag from executables and libraries. But doing so |
11992 | # requires that you compile everything twice, which is a pain. |
11993 | # So that behaviour is only enabled if SCOABSPATH is set to a |
11994 | # non-empty value in the environment. Most likely only useful for |
11995 | # creating official distributions of packages. |
11996 | # This is a hack until libtool officially supports absolute path |
11997 | # names for shared libraries. |
11998 | no_undefined_flag_CXX='${wl}-z,text' |
11999 | allow_undefined_flag_CXX='${wl}-z,nodefs' |
12000 | archive_cmds_need_lc_CXX=no |
12001 | hardcode_shlibpath_var_CXX=no |
12002 | hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
12003 | hardcode_libdir_separator_CXX=':' |
12004 | link_all_deplibs_CXX=yes |
12005 | export_dynamic_flag_spec_CXX='${wl}-Bexport' |
12006 | runpath_var='LD_RUN_PATH' |
12007 | |
12008 | case $cc_basename in |
12009 | CC*) |
12010 | archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
12011 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
12012 | ;; |
12013 | *) |
12014 | archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
12015 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
12016 | ;; |
12017 | esac |
12018 | ;; |
12019 | tandem*) |
12020 | case $cc_basename in |
12021 | NCC*) |
12022 | # NonStop-UX NCC 3.20 |
12023 | # FIXME: insert proper C++ library support |
12024 | ld_shlibs_CXX=no |
12025 | ;; |
12026 | *) |
12027 | # FIXME: insert proper C++ library support |
12028 | ld_shlibs_CXX=no |
12029 | ;; |
12030 | esac |
12031 | ;; |
12032 | vxworks*) |
12033 | # FIXME: insert proper C++ library support |
12034 | ld_shlibs_CXX=no |
12035 | ;; |
12036 | *) |
12037 | # FIXME: insert proper C++ library support |
12038 | ld_shlibs_CXX=no |
12039 | ;; |
12040 | esac |
dd184caf |
12041 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
12042 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
d9898ee8 |
12043 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
12044 | |
12045 | GCC_CXX="$GXX" |
12046 | LD_CXX="$LD" |
12047 | |
12048 | |
12049 | cat > conftest.$ac_ext <<EOF |
12050 | class Foo |
12051 | { |
12052 | public: |
12053 | Foo (void) { a = 0; } |
12054 | private: |
12055 | int a; |
12056 | }; |
12057 | EOF |
12058 | |
12059 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
12060 | (eval $ac_compile) 2>&5 |
12061 | ac_status=$? |
12062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12063 | (exit $ac_status); }; then |
12064 | # Parse the compiler output and extract the necessary |
12065 | # objects, libraries and library flags. |
12066 | |
12067 | # Sentinel used to keep track of whether or not we are before |
12068 | # the conftest object file. |
12069 | pre_test_object_deps_done=no |
12070 | |
12071 | # The `*' in the case matches for architectures that use `case' in |
12072 | # $output_verbose_cmd can trigger glob expansion during the loop |
12073 | # eval without this substitution. |
12074 | output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` |
12075 | |
12076 | for p in `eval $output_verbose_link_cmd`; do |
12077 | case $p in |
12078 | |
12079 | -L* | -R* | -l*) |
12080 | # Some compilers place space between "-{L,R}" and the path. |
12081 | # Remove the space. |
12082 | if test $p = "-L" \ |
12083 | || test $p = "-R"; then |
12084 | prev=$p |
12085 | continue |
12086 | else |
12087 | prev= |
12088 | fi |
12089 | |
12090 | if test "$pre_test_object_deps_done" = no; then |
12091 | case $p in |
12092 | -L* | -R*) |
12093 | # Internal compiler library paths should come after those |
12094 | # provided the user. The postdeps already come after the |
12095 | # user supplied libs so there is no need to process them. |
12096 | if test -z "$compiler_lib_search_path_CXX"; then |
12097 | compiler_lib_search_path_CXX="${prev}${p}" |
12098 | else |
12099 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
12100 | fi |
12101 | ;; |
12102 | # The "-l" case would never come before the object being |
12103 | # linked, so don't bother handling this case. |
12104 | esac |
12105 | else |
12106 | if test -z "$postdeps_CXX"; then |
12107 | postdeps_CXX="${prev}${p}" |
12108 | else |
12109 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
12110 | fi |
12111 | fi |
12112 | ;; |
12113 | |
12114 | *.$objext) |
12115 | # This assumes that the test object file only shows up |
12116 | # once in the compiler output. |
12117 | if test "$p" = "conftest.$objext"; then |
12118 | pre_test_object_deps_done=yes |
12119 | continue |
12120 | fi |
12121 | |
12122 | if test "$pre_test_object_deps_done" = no; then |
12123 | if test -z "$predep_objects_CXX"; then |
12124 | predep_objects_CXX="$p" |
12125 | else |
12126 | predep_objects_CXX="$predep_objects_CXX $p" |
12127 | fi |
12128 | else |
12129 | if test -z "$postdep_objects_CXX"; then |
12130 | postdep_objects_CXX="$p" |
12131 | else |
12132 | postdep_objects_CXX="$postdep_objects_CXX $p" |
12133 | fi |
12134 | fi |
12135 | ;; |
12136 | |
12137 | *) ;; # Ignore the rest. |
12138 | |
12139 | esac |
12140 | done |
12141 | |
12142 | # Clean up. |
12143 | rm -f a.out a.exe |
12144 | else |
12145 | echo "libtool.m4: error: problem compiling CXX test program" |
12146 | fi |
12147 | |
12148 | $rm -f confest.$objext |
12149 | |
12150 | # PORTME: override above test on systems where it is broken |
12151 | case $host_os in |
12152 | interix3*) |
12153 | # Interix 3.5 installs completely hosed .la files for C++, so rather than |
12154 | # hack all around it, let's just trust "g++" to DTRT. |
12155 | predep_objects_CXX= |
12156 | postdep_objects_CXX= |
12157 | postdeps_CXX= |
12158 | ;; |
12159 | |
12160 | solaris*) |
12161 | case $cc_basename in |
12162 | CC*) |
12163 | # Adding this requires a known-good setup of shared libraries for |
12164 | # Sun compiler versions before 5.6, else PIC objects from an old |
12165 | # archive will be linked into the output, leading to subtle bugs. |
12166 | postdeps_CXX='-lCstd -lCrun' |
12167 | ;; |
12168 | esac |
12169 | ;; |
12170 | esac |
12171 | |
12172 | |
12173 | case " $postdeps_CXX " in |
12174 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
12175 | esac |
12176 | |
12177 | lt_prog_compiler_wl_CXX= |
12178 | lt_prog_compiler_pic_CXX= |
12179 | lt_prog_compiler_static_CXX= |
12180 | |
dd184caf |
12181 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
12182 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
d9898ee8 |
12183 | |
12184 | # C++ specific cases for pic, static, wl, etc. |
12185 | if test "$GXX" = yes; then |
12186 | lt_prog_compiler_wl_CXX='-Wl,' |
12187 | lt_prog_compiler_static_CXX='-static' |
12188 | |
12189 | case $host_os in |
12190 | aix*) |
12191 | # All AIX code is PIC. |
12192 | if test "$host_cpu" = ia64; then |
12193 | # AIX 5 now supports IA64 processor |
12194 | lt_prog_compiler_static_CXX='-Bstatic' |
12195 | fi |
12196 | ;; |
12197 | amigaos*) |
12198 | # FIXME: we need at least 68020 code to build shared libraries, but |
12199 | # adding the `-m68020' flag to GCC prevents building anything better, |
12200 | # like `-m68040'. |
12201 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
12202 | ;; |
12203 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
12204 | # PIC is the default for these OSes. |
12205 | ;; |
12206 | mingw* | os2* | pw32*) |
12207 | # This hack is so that the source file can tell whether it is being |
12208 | # built for inclusion in a dll (and should export symbols for example). |
12209 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
12210 | ;; |
12211 | darwin* | rhapsody*) |
12212 | # PIC is the default on this platform |
12213 | # Common symbols not allowed in MH_DYLIB files |
12214 | lt_prog_compiler_pic_CXX='-fno-common' |
12215 | ;; |
12216 | *djgpp*) |
12217 | # DJGPP does not support shared libraries at all |
12218 | lt_prog_compiler_pic_CXX= |
12219 | ;; |
12220 | interix3*) |
12221 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
12222 | # Instead, we relocate shared libraries at runtime. |
12223 | ;; |
12224 | sysv4*MP*) |
12225 | if test -d /usr/nec; then |
12226 | lt_prog_compiler_pic_CXX=-Kconform_pic |
12227 | fi |
12228 | ;; |
12229 | hpux*) |
12230 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
12231 | # not for PA HP-UX. |
12232 | case $host_cpu in |
12233 | hppa*64*|ia64*) |
12234 | ;; |
12235 | *) |
12236 | lt_prog_compiler_pic_CXX='-fPIC' |
12237 | ;; |
12238 | esac |
12239 | ;; |
12240 | *) |
12241 | lt_prog_compiler_pic_CXX='-fPIC' |
12242 | ;; |
12243 | esac |
12244 | else |
12245 | case $host_os in |
12246 | aix4* | aix5*) |
12247 | # All AIX code is PIC. |
12248 | if test "$host_cpu" = ia64; then |
12249 | # AIX 5 now supports IA64 processor |
12250 | lt_prog_compiler_static_CXX='-Bstatic' |
12251 | else |
12252 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
12253 | fi |
12254 | ;; |
12255 | chorus*) |
12256 | case $cc_basename in |
12257 | cxch68*) |
12258 | # Green Hills C++ Compiler |
12259 | # _LT_AC_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" |
12260 | ;; |
12261 | esac |
12262 | ;; |
12263 | darwin*) |
12264 | # PIC is the default on this platform |
12265 | # Common symbols not allowed in MH_DYLIB files |
12266 | case $cc_basename in |
12267 | xlc*) |
12268 | lt_prog_compiler_pic_CXX='-qnocommon' |
12269 | lt_prog_compiler_wl_CXX='-Wl,' |
12270 | ;; |
12271 | esac |
12272 | ;; |
12273 | dgux*) |
12274 | case $cc_basename in |
12275 | ec++*) |
12276 | lt_prog_compiler_pic_CXX='-KPIC' |
12277 | ;; |
12278 | ghcx*) |
12279 | # Green Hills C++ Compiler |
12280 | lt_prog_compiler_pic_CXX='-pic' |
12281 | ;; |
12282 | *) |
12283 | ;; |
12284 | esac |
12285 | ;; |
12286 | freebsd* | kfreebsd*-gnu | dragonfly*) |
12287 | # FreeBSD uses GNU C++ |
12288 | ;; |
12289 | hpux9* | hpux10* | hpux11*) |
12290 | case $cc_basename in |
12291 | CC*) |
12292 | lt_prog_compiler_wl_CXX='-Wl,' |
12293 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
12294 | if test "$host_cpu" != ia64; then |
12295 | lt_prog_compiler_pic_CXX='+Z' |
12296 | fi |
12297 | ;; |
12298 | aCC*) |
12299 | lt_prog_compiler_wl_CXX='-Wl,' |
12300 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
12301 | case $host_cpu in |
12302 | hppa*64*|ia64*) |
12303 | # +Z the default |
12304 | ;; |
12305 | *) |
12306 | lt_prog_compiler_pic_CXX='+Z' |
12307 | ;; |
12308 | esac |
12309 | ;; |
12310 | *) |
12311 | ;; |
12312 | esac |
12313 | ;; |
12314 | interix*) |
12315 | # This is c89, which is MS Visual C++ (no shared libs) |
12316 | # Anyone wants to do a port? |
12317 | ;; |
12318 | irix5* | irix6* | nonstopux*) |
12319 | case $cc_basename in |
12320 | CC*) |
12321 | lt_prog_compiler_wl_CXX='-Wl,' |
12322 | lt_prog_compiler_static_CXX='-non_shared' |
12323 | # CC pic flag -KPIC is the default. |
12324 | ;; |
12325 | *) |
12326 | ;; |
12327 | esac |
12328 | ;; |
12329 | linux*) |
12330 | case $cc_basename in |
12331 | KCC*) |
12332 | # KAI C++ Compiler |
12333 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
12334 | lt_prog_compiler_pic_CXX='-fPIC' |
12335 | ;; |
12336 | icpc* | ecpc*) |
12337 | # Intel C++ |
12338 | lt_prog_compiler_wl_CXX='-Wl,' |
12339 | lt_prog_compiler_pic_CXX='-KPIC' |
12340 | lt_prog_compiler_static_CXX='-static' |
12341 | ;; |
12342 | pgCC*) |
12343 | # Portland Group C++ compiler. |
12344 | lt_prog_compiler_wl_CXX='-Wl,' |
12345 | lt_prog_compiler_pic_CXX='-fpic' |
12346 | lt_prog_compiler_static_CXX='-Bstatic' |
12347 | ;; |
12348 | cxx*) |
12349 | # Compaq C++ |
12350 | # Make sure the PIC flag is empty. It appears that all Alpha |
12351 | # Linux and Compaq Tru64 Unix objects are PIC. |
12352 | lt_prog_compiler_pic_CXX= |
12353 | lt_prog_compiler_static_CXX='-non_shared' |
12354 | ;; |
12355 | *) |
12356 | ;; |
12357 | esac |
12358 | ;; |
12359 | lynxos*) |
12360 | ;; |
12361 | m88k*) |
12362 | ;; |
12363 | mvs*) |
12364 | case $cc_basename in |
12365 | cxx*) |
12366 | lt_prog_compiler_pic_CXX='-W c,exportall' |
12367 | ;; |
12368 | *) |
12369 | ;; |
12370 | esac |
12371 | ;; |
12372 | netbsd*) |
12373 | ;; |
12374 | osf3* | osf4* | osf5*) |
12375 | case $cc_basename in |
12376 | KCC*) |
12377 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
12378 | ;; |
12379 | RCC*) |
12380 | # Rational C++ 2.4.1 |
12381 | lt_prog_compiler_pic_CXX='-pic' |
12382 | ;; |
12383 | cxx*) |
12384 | # Digital/Compaq C++ |
12385 | lt_prog_compiler_wl_CXX='-Wl,' |
12386 | # Make sure the PIC flag is empty. It appears that all Alpha |
12387 | # Linux and Compaq Tru64 Unix objects are PIC. |
12388 | lt_prog_compiler_pic_CXX= |
12389 | lt_prog_compiler_static_CXX='-non_shared' |
12390 | ;; |
12391 | *) |
12392 | ;; |
12393 | esac |
12394 | ;; |
12395 | psos*) |
12396 | ;; |
12397 | solaris*) |
12398 | case $cc_basename in |
12399 | CC*) |
12400 | # Sun C++ 4.2, 5.x and Centerline C++ |
12401 | lt_prog_compiler_pic_CXX='-KPIC' |
12402 | lt_prog_compiler_static_CXX='-Bstatic' |
12403 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
12404 | ;; |
12405 | gcx*) |
12406 | # Green Hills C++ Compiler |
12407 | lt_prog_compiler_pic_CXX='-PIC' |
12408 | ;; |
12409 | *) |
12410 | ;; |
12411 | esac |
12412 | ;; |
12413 | sunos4*) |
12414 | case $cc_basename in |
12415 | CC*) |
12416 | # Sun C++ 4.x |
12417 | lt_prog_compiler_pic_CXX='-pic' |
12418 | lt_prog_compiler_static_CXX='-Bstatic' |
12419 | ;; |
12420 | lcc*) |
12421 | # Lucid |
12422 | lt_prog_compiler_pic_CXX='-pic' |
12423 | ;; |
12424 | *) |
12425 | ;; |
12426 | esac |
12427 | ;; |
12428 | tandem*) |
12429 | case $cc_basename in |
12430 | NCC*) |
12431 | # NonStop-UX NCC 3.20 |
12432 | lt_prog_compiler_pic_CXX='-KPIC' |
12433 | ;; |
12434 | *) |
12435 | ;; |
12436 | esac |
12437 | ;; |
12438 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
12439 | case $cc_basename in |
12440 | CC*) |
12441 | lt_prog_compiler_wl_CXX='-Wl,' |
12442 | lt_prog_compiler_pic_CXX='-KPIC' |
12443 | lt_prog_compiler_static_CXX='-Bstatic' |
12444 | ;; |
12445 | esac |
12446 | ;; |
12447 | vxworks*) |
12448 | ;; |
12449 | *) |
12450 | lt_prog_compiler_can_build_shared_CXX=no |
12451 | ;; |
12452 | esac |
12453 | fi |
12454 | |
dd184caf |
12455 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
12456 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } |
d9898ee8 |
12457 | |
12458 | # |
12459 | # Check to make sure the PIC flag actually works. |
12460 | # |
12461 | if test -n "$lt_prog_compiler_pic_CXX"; then |
12462 | |
dd184caf |
12463 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
12464 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } |
d9898ee8 |
12465 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then |
12466 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12467 | else |
12468 | lt_prog_compiler_pic_works_CXX=no |
12469 | ac_outfile=conftest.$ac_objext |
12470 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
12471 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
12472 | # Insert the option either (1) after the last *FLAGS variable, or |
12473 | # (2) before a word containing "conftest.", or (3) at the end. |
12474 | # Note that $ac_compile itself does not contain backslashes and begins |
12475 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
12476 | # The option is referenced via a variable to avoid confusing sed. |
12477 | lt_compile=`echo "$ac_compile" | $SED \ |
12478 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
12479 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
12480 | -e 's:$: $lt_compiler_flag:'` |
dd184caf |
12481 | (eval echo "\"\$as_me:12481: $lt_compile\"" >&5) |
d9898ee8 |
12482 | (eval "$lt_compile" 2>conftest.err) |
12483 | ac_status=$? |
12484 | cat conftest.err >&5 |
dd184caf |
12485 | echo "$as_me:12485: \$? = $ac_status" >&5 |
d9898ee8 |
12486 | if (exit $ac_status) && test -s "$ac_outfile"; then |
12487 | # The compiler can only warn and ignore the option if not recognized |
12488 | # So say no if there are warnings other than the usual output. |
12489 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
12490 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
12491 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
12492 | lt_prog_compiler_pic_works_CXX=yes |
12493 | fi |
12494 | fi |
12495 | $rm conftest* |
12496 | |
12497 | fi |
dd184caf |
12498 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 |
12499 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } |
d9898ee8 |
12500 | |
12501 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then |
12502 | case $lt_prog_compiler_pic_CXX in |
12503 | "" | " "*) ;; |
12504 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
12505 | esac |
12506 | else |
12507 | lt_prog_compiler_pic_CXX= |
12508 | lt_prog_compiler_can_build_shared_CXX=no |
12509 | fi |
12510 | |
12511 | fi |
12512 | case $host_os in |
12513 | # For platforms which do not support PIC, -DPIC is meaningless: |
12514 | *djgpp*) |
12515 | lt_prog_compiler_pic_CXX= |
12516 | ;; |
12517 | *) |
12518 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
12519 | ;; |
12520 | esac |
12521 | |
12522 | # |
12523 | # Check to make sure the static flag actually works. |
12524 | # |
12525 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" |
dd184caf |
12526 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
12527 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
d9898ee8 |
12528 | if test "${lt_prog_compiler_static_works_CXX+set}" = set; then |
12529 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12530 | else |
12531 | lt_prog_compiler_static_works_CXX=no |
12532 | save_LDFLAGS="$LDFLAGS" |
12533 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
12534 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
12535 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
12536 | # The linker can only warn and ignore the option if not recognized |
12537 | # So say no if there are warnings |
12538 | if test -s conftest.err; then |
12539 | # Append any errors to the config.log. |
12540 | cat conftest.err 1>&5 |
12541 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
12542 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
12543 | if diff conftest.exp conftest.er2 >/dev/null; then |
12544 | lt_prog_compiler_static_works_CXX=yes |
12545 | fi |
12546 | else |
12547 | lt_prog_compiler_static_works_CXX=yes |
12548 | fi |
12549 | fi |
12550 | $rm conftest* |
12551 | LDFLAGS="$save_LDFLAGS" |
12552 | |
12553 | fi |
dd184caf |
12554 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 |
12555 | echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } |
d9898ee8 |
12556 | |
12557 | if test x"$lt_prog_compiler_static_works_CXX" = xyes; then |
12558 | : |
12559 | else |
12560 | lt_prog_compiler_static_CXX= |
12561 | fi |
12562 | |
12563 | |
dd184caf |
12564 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
12565 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
d9898ee8 |
12566 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
12567 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12568 | else |
12569 | lt_cv_prog_compiler_c_o_CXX=no |
12570 | $rm -r conftest 2>/dev/null |
12571 | mkdir conftest |
12572 | cd conftest |
12573 | mkdir out |
12574 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
12575 | |
12576 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
12577 | # Insert the option either (1) after the last *FLAGS variable, or |
12578 | # (2) before a word containing "conftest.", or (3) at the end. |
12579 | # Note that $ac_compile itself does not contain backslashes and begins |
12580 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
12581 | lt_compile=`echo "$ac_compile" | $SED \ |
12582 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
12583 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
12584 | -e 's:$: $lt_compiler_flag:'` |
dd184caf |
12585 | (eval echo "\"\$as_me:12585: $lt_compile\"" >&5) |
d9898ee8 |
12586 | (eval "$lt_compile" 2>out/conftest.err) |
12587 | ac_status=$? |
12588 | cat out/conftest.err >&5 |
dd184caf |
12589 | echo "$as_me:12589: \$? = $ac_status" >&5 |
d9898ee8 |
12590 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
12591 | then |
12592 | # The compiler can only warn and ignore the option if not recognized |
12593 | # So say no if there are warnings |
12594 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
12595 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
12596 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
12597 | lt_cv_prog_compiler_c_o_CXX=yes |
12598 | fi |
12599 | fi |
12600 | chmod u+w . 2>&5 |
12601 | $rm conftest* |
12602 | # SGI C++ compiler will create directory out/ii_files/ for |
12603 | # template instantiation |
12604 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
12605 | $rm out/* && rmdir out |
12606 | cd .. |
12607 | rmdir conftest |
12608 | $rm conftest* |
12609 | |
12610 | fi |
dd184caf |
12611 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
12612 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } |
d9898ee8 |
12613 | |
12614 | |
12615 | hard_links="nottested" |
12616 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
12617 | # do not overwrite the value of need_locks provided by the user |
dd184caf |
12618 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
12619 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
d9898ee8 |
12620 | hard_links=yes |
12621 | $rm conftest* |
12622 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
12623 | touch conftest.a |
12624 | ln conftest.a conftest.b 2>&5 || hard_links=no |
12625 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
dd184caf |
12626 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
12627 | echo "${ECHO_T}$hard_links" >&6; } |
d9898ee8 |
12628 | if test "$hard_links" = no; then |
12629 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
12630 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
12631 | need_locks=warn |
12632 | fi |
12633 | else |
12634 | need_locks=no |
12635 | fi |
12636 | |
dd184caf |
12637 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
12638 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
d9898ee8 |
12639 | |
12640 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
12641 | case $host_os in |
12642 | aix4* | aix5*) |
12643 | # If we're using GNU nm, then we don't want the "-C" option. |
12644 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
12645 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
12646 | 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' |
12647 | else |
12648 | 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' |
12649 | fi |
12650 | ;; |
12651 | pw32*) |
12652 | export_symbols_cmds_CXX="$ltdll_cmds" |
12653 | ;; |
12654 | cygwin* | mingw*) |
12655 | 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' |
12656 | ;; |
12657 | *) |
12658 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
12659 | ;; |
12660 | esac |
12661 | |
dd184caf |
12662 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
12663 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
d9898ee8 |
12664 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
12665 | |
12666 | # |
12667 | # Do we need to explicitly link libc? |
12668 | # |
12669 | case "x$archive_cmds_need_lc_CXX" in |
12670 | x|xyes) |
12671 | # Assume -lc should be added |
12672 | archive_cmds_need_lc_CXX=yes |
12673 | |
12674 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
12675 | case $archive_cmds_CXX in |
12676 | *'~'*) |
12677 | # FIXME: we may have to deal with multi-command sequences. |
12678 | ;; |
12679 | '$CC '*) |
12680 | # Test whether the compiler implicitly links with -lc since on some |
12681 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
12682 | # to ld, don't add -lc before -lgcc. |
dd184caf |
12683 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
12684 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
d9898ee8 |
12685 | $rm conftest* |
12686 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
12687 | |
12688 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
12689 | (eval $ac_compile) 2>&5 |
12690 | ac_status=$? |
12691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12692 | (exit $ac_status); } 2>conftest.err; then |
12693 | soname=conftest |
12694 | lib=conftest |
12695 | libobjs=conftest.$ac_objext |
12696 | deplibs= |
12697 | wl=$lt_prog_compiler_wl_CXX |
12698 | pic_flag=$lt_prog_compiler_pic_CXX |
12699 | compiler_flags=-v |
12700 | linker_flags=-v |
12701 | verstring= |
12702 | output_objdir=. |
12703 | libname=conftest |
12704 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
12705 | allow_undefined_flag_CXX= |
12706 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
12707 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
12708 | ac_status=$? |
12709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12710 | (exit $ac_status); } |
12711 | then |
12712 | archive_cmds_need_lc_CXX=no |
12713 | else |
12714 | archive_cmds_need_lc_CXX=yes |
12715 | fi |
12716 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
12717 | else |
12718 | cat conftest.err 1>&5 |
12719 | fi |
12720 | $rm conftest* |
dd184caf |
12721 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 |
12722 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } |
d9898ee8 |
12723 | ;; |
12724 | esac |
12725 | fi |
12726 | ;; |
12727 | esac |
12728 | |
dd184caf |
12729 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
12730 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
d9898ee8 |
12731 | library_names_spec= |
12732 | libname_spec='lib$name' |
12733 | soname_spec= |
12734 | shrext_cmds=".so" |
12735 | postinstall_cmds= |
12736 | postuninstall_cmds= |
12737 | finish_cmds= |
12738 | finish_eval= |
12739 | shlibpath_var= |
12740 | shlibpath_overrides_runpath=unknown |
12741 | version_type=none |
12742 | dynamic_linker="$host_os ld.so" |
12743 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
12744 | if test "$GCC" = yes; then |
12745 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
12746 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
12747 | # if the path contains ";" then we assume it to be the separator |
12748 | # otherwise default to the standard path separator (i.e. ":") - it is |
12749 | # assumed that no part of a normal pathname contains ";" but that should |
12750 | # okay in the real world where ";" in dirpaths is itself problematic. |
12751 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
12752 | else |
12753 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
12754 | fi |
12755 | else |
12756 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
12757 | fi |
12758 | need_lib_prefix=unknown |
12759 | hardcode_into_libs=no |
12760 | |
12761 | # when you set need_version to no, make sure it does not cause -set_version |
12762 | # flags to be left without arguments |
12763 | need_version=unknown |
12764 | |
12765 | case $host_os in |
12766 | aix3*) |
12767 | version_type=linux |
12768 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
12769 | shlibpath_var=LIBPATH |
12770 | |
12771 | # AIX 3 has no versioning support, so we append a major version to the name. |
12772 | soname_spec='${libname}${release}${shared_ext}$major' |
12773 | ;; |
12774 | |
12775 | aix4* | aix5*) |
12776 | version_type=linux |
12777 | need_lib_prefix=no |
12778 | need_version=no |
12779 | hardcode_into_libs=yes |
12780 | if test "$host_cpu" = ia64; then |
12781 | # AIX 5 supports IA64 |
12782 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
12783 | shlibpath_var=LD_LIBRARY_PATH |
12784 | else |
12785 | # With GCC up to 2.95.x, collect2 would create an import file |
12786 | # for dependence libraries. The import file would start with |
12787 | # the line `#! .'. This would cause the generated library to |
12788 | # depend on `.', always an invalid library. This was fixed in |
12789 | # development snapshots of GCC prior to 3.0. |
12790 | case $host_os in |
12791 | aix4 | aix4.[01] | aix4.[01].*) |
12792 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
12793 | echo ' yes ' |
12794 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
12795 | : |
12796 | else |
12797 | can_build_shared=no |
12798 | fi |
12799 | ;; |
12800 | esac |
12801 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
12802 | # soname into executable. Probably we can add versioning support to |
12803 | # collect2, so additional links can be useful in future. |
12804 | if test "$aix_use_runtimelinking" = yes; then |
12805 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
12806 | # instead of lib<name>.a to let people know that these are not |
12807 | # typical AIX shared libraries. |
12808 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12809 | else |
12810 | # We preserve .a as extension for shared libraries through AIX4.2 |
12811 | # and later when we are not doing run time linking. |
12812 | library_names_spec='${libname}${release}.a $libname.a' |
12813 | soname_spec='${libname}${release}${shared_ext}$major' |
12814 | fi |
12815 | shlibpath_var=LIBPATH |
12816 | fi |
12817 | ;; |
12818 | |
12819 | amigaos*) |
12820 | library_names_spec='$libname.ixlibrary $libname.a' |
12821 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
12822 | 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' |
12823 | ;; |
12824 | |
12825 | beos*) |
12826 | library_names_spec='${libname}${shared_ext}' |
12827 | dynamic_linker="$host_os ld.so" |
12828 | shlibpath_var=LIBRARY_PATH |
12829 | ;; |
12830 | |
12831 | bsdi[45]*) |
12832 | version_type=linux |
12833 | need_version=no |
12834 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12835 | soname_spec='${libname}${release}${shared_ext}$major' |
12836 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
12837 | shlibpath_var=LD_LIBRARY_PATH |
12838 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
12839 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
12840 | # the default ld.so.conf also contains /usr/contrib/lib and |
12841 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
12842 | # libtool to hard-code these into programs |
12843 | ;; |
12844 | |
12845 | cygwin* | mingw* | pw32*) |
12846 | version_type=windows |
12847 | shrext_cmds=".dll" |
12848 | need_version=no |
12849 | need_lib_prefix=no |
12850 | |
12851 | case $GCC,$host_os in |
12852 | yes,cygwin* | yes,mingw* | yes,pw32*) |
12853 | library_names_spec='$libname.dll.a' |
12854 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
12855 | postinstall_cmds='base_file=`basename \${file}`~ |
12856 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
12857 | dldir=$destdir/`dirname \$dlpath`~ |
12858 | test -d \$dldir || mkdir -p \$dldir~ |
12859 | $install_prog $dir/$dlname \$dldir/$dlname~ |
12860 | chmod a+x \$dldir/$dlname' |
12861 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
12862 | dlpath=$dir/\$dldll~ |
12863 | $rm \$dlpath' |
12864 | shlibpath_overrides_runpath=yes |
12865 | |
12866 | case $host_os in |
12867 | cygwin*) |
12868 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
12869 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
12870 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
12871 | ;; |
12872 | mingw*) |
12873 | # MinGW DLLs use traditional 'lib' prefix |
12874 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
12875 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
12876 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
12877 | # It is most probably a Windows format PATH printed by |
12878 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
12879 | # path with ; separators, and with drive letters. We can handle the |
12880 | # drive letters (cygwin fileutils understands them), so leave them, |
12881 | # especially as we might pass files found there to a mingw objdump, |
12882 | # which wouldn't understand a cygwinified path. Ahh. |
12883 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
12884 | else |
12885 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
12886 | fi |
12887 | ;; |
12888 | pw32*) |
12889 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
12890 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
12891 | ;; |
12892 | esac |
12893 | ;; |
12894 | |
12895 | *) |
12896 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
12897 | ;; |
12898 | esac |
12899 | dynamic_linker='Win32 ld.exe' |
12900 | # FIXME: first we should search . and the directory the executable is in |
12901 | shlibpath_var=PATH |
12902 | ;; |
12903 | |
12904 | darwin* | rhapsody*) |
12905 | dynamic_linker="$host_os dyld" |
12906 | version_type=darwin |
12907 | need_lib_prefix=no |
12908 | need_version=no |
12909 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
12910 | soname_spec='${libname}${release}${major}$shared_ext' |
12911 | shlibpath_overrides_runpath=yes |
12912 | shlibpath_var=DYLD_LIBRARY_PATH |
12913 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
12914 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
12915 | if test "$GCC" = yes; then |
12916 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
12917 | else |
12918 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
12919 | fi |
12920 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
12921 | ;; |
12922 | |
12923 | dgux*) |
12924 | version_type=linux |
12925 | need_lib_prefix=no |
12926 | need_version=no |
12927 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
12928 | soname_spec='${libname}${release}${shared_ext}$major' |
12929 | shlibpath_var=LD_LIBRARY_PATH |
12930 | ;; |
12931 | |
12932 | freebsd1*) |
12933 | dynamic_linker=no |
12934 | ;; |
12935 | |
12936 | kfreebsd*-gnu) |
12937 | version_type=linux |
12938 | need_lib_prefix=no |
12939 | need_version=no |
12940 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
12941 | soname_spec='${libname}${release}${shared_ext}$major' |
12942 | shlibpath_var=LD_LIBRARY_PATH |
12943 | shlibpath_overrides_runpath=no |
12944 | hardcode_into_libs=yes |
12945 | dynamic_linker='GNU ld.so' |
12946 | ;; |
12947 | |
12948 | freebsd* | dragonfly*) |
12949 | # DragonFly does not have aout. When/if they implement a new |
12950 | # versioning mechanism, adjust this. |
12951 | if test -x /usr/bin/objformat; then |
12952 | objformat=`/usr/bin/objformat` |
12953 | else |
12954 | case $host_os in |
12955 | freebsd[123]*) objformat=aout ;; |
12956 | *) objformat=elf ;; |
12957 | esac |
12958 | fi |
12959 | version_type=freebsd-$objformat |
12960 | case $version_type in |
12961 | freebsd-elf*) |
12962 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
12963 | need_version=no |
12964 | need_lib_prefix=no |
12965 | ;; |
12966 | freebsd-*) |
12967 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
12968 | need_version=yes |
12969 | ;; |
12970 | esac |
12971 | shlibpath_var=LD_LIBRARY_PATH |
12972 | case $host_os in |
12973 | freebsd2*) |
12974 | shlibpath_overrides_runpath=yes |
12975 | ;; |
12976 | freebsd3.[01]* | freebsdelf3.[01]*) |
12977 | shlibpath_overrides_runpath=yes |
12978 | hardcode_into_libs=yes |
12979 | ;; |
12980 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
12981 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
12982 | shlibpath_overrides_runpath=no |
12983 | hardcode_into_libs=yes |
12984 | ;; |
12985 | freebsd*) # from 4.6 on |
12986 | shlibpath_overrides_runpath=yes |
12987 | hardcode_into_libs=yes |
12988 | ;; |
12989 | esac |
12990 | ;; |
12991 | |
12992 | gnu*) |
12993 | version_type=linux |
12994 | need_lib_prefix=no |
12995 | need_version=no |
12996 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
12997 | soname_spec='${libname}${release}${shared_ext}$major' |
12998 | shlibpath_var=LD_LIBRARY_PATH |
12999 | hardcode_into_libs=yes |
13000 | ;; |
13001 | |
13002 | hpux9* | hpux10* | hpux11*) |
13003 | # Give a soname corresponding to the major version so that dld.sl refuses to |
13004 | # link against other versions. |
13005 | version_type=sunos |
13006 | need_lib_prefix=no |
13007 | need_version=no |
13008 | case $host_cpu in |
13009 | ia64*) |
13010 | shrext_cmds='.so' |
13011 | hardcode_into_libs=yes |
13012 | dynamic_linker="$host_os dld.so" |
13013 | shlibpath_var=LD_LIBRARY_PATH |
13014 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
13015 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13016 | soname_spec='${libname}${release}${shared_ext}$major' |
13017 | if test "X$HPUX_IA64_MODE" = X32; then |
13018 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
13019 | else |
13020 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
13021 | fi |
13022 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
13023 | ;; |
13024 | hppa*64*) |
13025 | shrext_cmds='.sl' |
13026 | hardcode_into_libs=yes |
13027 | dynamic_linker="$host_os dld.sl" |
13028 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
13029 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
13030 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13031 | soname_spec='${libname}${release}${shared_ext}$major' |
13032 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
13033 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
13034 | ;; |
13035 | *) |
13036 | shrext_cmds='.sl' |
13037 | dynamic_linker="$host_os dld.sl" |
13038 | shlibpath_var=SHLIB_PATH |
13039 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
13040 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13041 | soname_spec='${libname}${release}${shared_ext}$major' |
13042 | ;; |
13043 | esac |
13044 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
13045 | postinstall_cmds='chmod 555 $lib' |
13046 | ;; |
13047 | |
13048 | interix3*) |
13049 | version_type=linux |
13050 | need_lib_prefix=no |
13051 | need_version=no |
13052 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
13053 | soname_spec='${libname}${release}${shared_ext}$major' |
13054 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
13055 | shlibpath_var=LD_LIBRARY_PATH |
13056 | shlibpath_overrides_runpath=no |
13057 | hardcode_into_libs=yes |
13058 | ;; |
13059 | |
13060 | irix5* | irix6* | nonstopux*) |
13061 | case $host_os in |
13062 | nonstopux*) version_type=nonstopux ;; |
13063 | *) |
13064 | if test "$lt_cv_prog_gnu_ld" = yes; then |
13065 | version_type=linux |
13066 | else |
13067 | version_type=irix |
13068 | fi ;; |
13069 | esac |
13070 | need_lib_prefix=no |
13071 | need_version=no |
13072 | soname_spec='${libname}${release}${shared_ext}$major' |
13073 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
13074 | case $host_os in |
13075 | irix5* | nonstopux*) |
13076 | libsuff= shlibsuff= |
13077 | ;; |
13078 | *) |
13079 | case $LD in # libtool.m4 will add one of these switches to LD |
13080 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
13081 | libsuff= shlibsuff= libmagic=32-bit;; |
13082 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
13083 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
13084 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
13085 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
13086 | *) libsuff= shlibsuff= libmagic=never-match;; |
13087 | esac |
13088 | ;; |
13089 | esac |
13090 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
13091 | shlibpath_overrides_runpath=no |
13092 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
13093 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
13094 | hardcode_into_libs=yes |
13095 | ;; |
13096 | |
13097 | # No shared lib support for Linux oldld, aout, or coff. |
13098 | linux*oldld* | linux*aout* | linux*coff*) |
13099 | dynamic_linker=no |
13100 | ;; |
13101 | |
13102 | # This must be Linux ELF. |
13103 | linux*) |
13104 | version_type=linux |
13105 | need_lib_prefix=no |
13106 | need_version=no |
13107 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13108 | soname_spec='${libname}${release}${shared_ext}$major' |
13109 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
13110 | shlibpath_var=LD_LIBRARY_PATH |
13111 | shlibpath_overrides_runpath=no |
13112 | # This implies no fast_install, which is unacceptable. |
13113 | # Some rework will be needed to allow for fast_install |
13114 | # before this can be enabled. |
13115 | hardcode_into_libs=yes |
13116 | |
13117 | # find out which ABI we are using |
13118 | libsuff= |
13119 | case "$host_cpu" in |
13120 | x86_64*|s390x*|powerpc64*) |
dd184caf |
13121 | echo '#line 13121 "configure"' > conftest.$ac_ext |
d9898ee8 |
13122 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
13123 | (eval $ac_compile) 2>&5 |
13124 | ac_status=$? |
13125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13126 | (exit $ac_status); }; then |
13127 | case `/usr/bin/file conftest.$ac_objext` in |
13128 | *64-bit*) |
13129 | libsuff=64 |
13130 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" |
13131 | ;; |
13132 | esac |
13133 | fi |
13134 | rm -rf conftest* |
13135 | ;; |
13136 | esac |
13137 | |
13138 | # Append ld.so.conf contents to the search path |
13139 | if test -f /etc/ld.so.conf; then |
dd184caf |
13140 | 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/#.*//;/^[^\/]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
d9898ee8 |
13141 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" |
13142 | fi |
13143 | |
13144 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
13145 | # powerpc, because MkLinux only supported shared libraries with the |
13146 | # GNU dynamic linker. Since this was broken with cross compilers, |
13147 | # most powerpc-linux boxes support dynamic linking these days and |
13148 | # people can always --disable-shared, the test was removed, and we |
13149 | # assume the GNU/Linux dynamic linker is in use. |
13150 | dynamic_linker='GNU/Linux ld.so' |
13151 | ;; |
13152 | |
13153 | knetbsd*-gnu) |
13154 | version_type=linux |
13155 | need_lib_prefix=no |
13156 | need_version=no |
13157 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
13158 | soname_spec='${libname}${release}${shared_ext}$major' |
13159 | shlibpath_var=LD_LIBRARY_PATH |
13160 | shlibpath_overrides_runpath=no |
13161 | hardcode_into_libs=yes |
13162 | dynamic_linker='GNU ld.so' |
13163 | ;; |
13164 | |
13165 | netbsd*) |
13166 | version_type=sunos |
13167 | need_lib_prefix=no |
13168 | need_version=no |
13169 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
13170 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
13171 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
13172 | dynamic_linker='NetBSD (a.out) ld.so' |
13173 | else |
13174 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
13175 | soname_spec='${libname}${release}${shared_ext}$major' |
13176 | dynamic_linker='NetBSD ld.elf_so' |
13177 | fi |
13178 | shlibpath_var=LD_LIBRARY_PATH |
13179 | shlibpath_overrides_runpath=yes |
13180 | hardcode_into_libs=yes |
13181 | ;; |
13182 | |
13183 | newsos6) |
13184 | version_type=linux |
13185 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13186 | shlibpath_var=LD_LIBRARY_PATH |
13187 | shlibpath_overrides_runpath=yes |
13188 | ;; |
13189 | |
13190 | nto-qnx*) |
13191 | version_type=linux |
13192 | need_lib_prefix=no |
13193 | need_version=no |
13194 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13195 | soname_spec='${libname}${release}${shared_ext}$major' |
13196 | shlibpath_var=LD_LIBRARY_PATH |
13197 | shlibpath_overrides_runpath=yes |
13198 | ;; |
13199 | |
13200 | openbsd*) |
13201 | version_type=sunos |
13202 | sys_lib_dlsearch_path_spec="/usr/lib" |
13203 | need_lib_prefix=no |
13204 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
13205 | case $host_os in |
13206 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
13207 | *) need_version=no ;; |
13208 | esac |
13209 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
13210 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
13211 | shlibpath_var=LD_LIBRARY_PATH |
13212 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
13213 | case $host_os in |
13214 | openbsd2.[89] | openbsd2.[89].*) |
13215 | shlibpath_overrides_runpath=no |
13216 | ;; |
13217 | *) |
13218 | shlibpath_overrides_runpath=yes |
13219 | ;; |
13220 | esac |
13221 | else |
13222 | shlibpath_overrides_runpath=yes |
13223 | fi |
13224 | ;; |
13225 | |
13226 | os2*) |
13227 | libname_spec='$name' |
13228 | shrext_cmds=".dll" |
13229 | need_lib_prefix=no |
13230 | library_names_spec='$libname${shared_ext} $libname.a' |
13231 | dynamic_linker='OS/2 ld.exe' |
13232 | shlibpath_var=LIBPATH |
13233 | ;; |
13234 | |
13235 | osf3* | osf4* | osf5*) |
13236 | version_type=osf |
13237 | need_lib_prefix=no |
13238 | need_version=no |
13239 | soname_spec='${libname}${release}${shared_ext}$major' |
13240 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13241 | shlibpath_var=LD_LIBRARY_PATH |
13242 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
13243 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
13244 | ;; |
13245 | |
13246 | solaris*) |
13247 | version_type=linux |
13248 | need_lib_prefix=no |
13249 | need_version=no |
13250 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13251 | soname_spec='${libname}${release}${shared_ext}$major' |
13252 | shlibpath_var=LD_LIBRARY_PATH |
13253 | shlibpath_overrides_runpath=yes |
13254 | hardcode_into_libs=yes |
13255 | # ldd complains unless libraries are executable |
13256 | postinstall_cmds='chmod +x $lib' |
13257 | ;; |
13258 | |
13259 | sunos4*) |
13260 | version_type=sunos |
13261 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
13262 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
13263 | shlibpath_var=LD_LIBRARY_PATH |
13264 | shlibpath_overrides_runpath=yes |
13265 | if test "$with_gnu_ld" = yes; then |
13266 | need_lib_prefix=no |
13267 | fi |
13268 | need_version=yes |
13269 | ;; |
13270 | |
13271 | sysv4 | sysv4.3*) |
13272 | version_type=linux |
13273 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13274 | soname_spec='${libname}${release}${shared_ext}$major' |
13275 | shlibpath_var=LD_LIBRARY_PATH |
13276 | case $host_vendor in |
13277 | sni) |
13278 | shlibpath_overrides_runpath=no |
13279 | need_lib_prefix=no |
13280 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
13281 | runpath_var=LD_RUN_PATH |
13282 | ;; |
13283 | siemens) |
13284 | need_lib_prefix=no |
13285 | ;; |
13286 | motorola) |
13287 | need_lib_prefix=no |
13288 | need_version=no |
13289 | shlibpath_overrides_runpath=no |
13290 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
13291 | ;; |
13292 | esac |
13293 | ;; |
13294 | |
13295 | sysv4*MP*) |
13296 | if test -d /usr/nec ;then |
13297 | version_type=linux |
13298 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
13299 | soname_spec='$libname${shared_ext}.$major' |
13300 | shlibpath_var=LD_LIBRARY_PATH |
13301 | fi |
13302 | ;; |
13303 | |
13304 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
13305 | version_type=freebsd-elf |
13306 | need_lib_prefix=no |
13307 | need_version=no |
13308 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
13309 | soname_spec='${libname}${release}${shared_ext}$major' |
13310 | shlibpath_var=LD_LIBRARY_PATH |
13311 | hardcode_into_libs=yes |
13312 | if test "$with_gnu_ld" = yes; then |
13313 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
13314 | shlibpath_overrides_runpath=no |
13315 | else |
13316 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
13317 | shlibpath_overrides_runpath=yes |
13318 | case $host_os in |
13319 | sco3.2v5*) |
13320 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
13321 | ;; |
13322 | esac |
13323 | fi |
13324 | sys_lib_dlsearch_path_spec='/usr/lib' |
13325 | ;; |
13326 | |
13327 | uts4*) |
13328 | version_type=linux |
13329 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13330 | soname_spec='${libname}${release}${shared_ext}$major' |
13331 | shlibpath_var=LD_LIBRARY_PATH |
13332 | ;; |
13333 | |
13334 | *) |
13335 | dynamic_linker=no |
13336 | ;; |
13337 | esac |
dd184caf |
13338 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
13339 | echo "${ECHO_T}$dynamic_linker" >&6; } |
d9898ee8 |
13340 | test "$dynamic_linker" = no && can_build_shared=no |
13341 | |
13342 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
13343 | if test "$GCC" = yes; then |
13344 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
13345 | fi |
13346 | |
dd184caf |
13347 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
13348 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
d9898ee8 |
13349 | hardcode_action_CXX= |
13350 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ |
13351 | test -n "$runpath_var_CXX" || \ |
13352 | test "X$hardcode_automatic_CXX" = "Xyes" ; then |
13353 | |
13354 | # We can hardcode non-existant directories. |
13355 | if test "$hardcode_direct_CXX" != no && |
13356 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
13357 | # have to relink, otherwise we might link with an installed library |
13358 | # when we should be linking with a yet-to-be-installed one |
13359 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
13360 | test "$hardcode_minus_L_CXX" != no; then |
13361 | # Linking always hardcodes the temporary library directory. |
13362 | hardcode_action_CXX=relink |
13363 | else |
13364 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
13365 | hardcode_action_CXX=immediate |
13366 | fi |
13367 | else |
13368 | # We cannot hardcode anything, or else we can only hardcode existing |
13369 | # directories. |
13370 | hardcode_action_CXX=unsupported |
13371 | fi |
dd184caf |
13372 | { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
13373 | echo "${ECHO_T}$hardcode_action_CXX" >&6; } |
d9898ee8 |
13374 | |
13375 | if test "$hardcode_action_CXX" = relink; then |
13376 | # Fast installation is not supported |
13377 | enable_fast_install=no |
13378 | elif test "$shlibpath_overrides_runpath" = yes || |
13379 | test "$enable_shared" = no; then |
13380 | # Fast installation is not necessary |
13381 | enable_fast_install=needless |
13382 | fi |
13383 | |
13384 | |
13385 | # The else clause should only fire when bootstrapping the |
13386 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
13387 | # with your package, and you will get complaints that there are |
13388 | # no rules to generate ltmain.sh. |
13389 | if test -f "$ltmain"; then |
13390 | # See if we are running on zsh, and set the options which allow our commands through |
13391 | # without removal of \ escapes. |
13392 | if test -n "${ZSH_VERSION+set}" ; then |
13393 | setopt NO_GLOB_SUBST |
13394 | fi |
13395 | # Now quote all the things that may contain metacharacters while being |
13396 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
13397 | # variables and quote the copies for generation of the libtool script. |
13398 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
13399 | SED SHELL STRIP \ |
13400 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
13401 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
13402 | deplibs_check_method reload_flag reload_cmds need_locks \ |
13403 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
13404 | lt_cv_sys_global_symbol_to_c_name_address \ |
13405 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
13406 | old_postinstall_cmds old_postuninstall_cmds \ |
13407 | compiler_CXX \ |
13408 | CC_CXX \ |
13409 | LD_CXX \ |
13410 | lt_prog_compiler_wl_CXX \ |
13411 | lt_prog_compiler_pic_CXX \ |
13412 | lt_prog_compiler_static_CXX \ |
13413 | lt_prog_compiler_no_builtin_flag_CXX \ |
13414 | export_dynamic_flag_spec_CXX \ |
13415 | thread_safe_flag_spec_CXX \ |
13416 | whole_archive_flag_spec_CXX \ |
13417 | enable_shared_with_static_runtimes_CXX \ |
13418 | old_archive_cmds_CXX \ |
13419 | old_archive_from_new_cmds_CXX \ |
13420 | predep_objects_CXX \ |
13421 | postdep_objects_CXX \ |
13422 | predeps_CXX \ |
13423 | postdeps_CXX \ |
13424 | compiler_lib_search_path_CXX \ |
13425 | archive_cmds_CXX \ |
13426 | archive_expsym_cmds_CXX \ |
13427 | postinstall_cmds_CXX \ |
13428 | postuninstall_cmds_CXX \ |
13429 | old_archive_from_expsyms_cmds_CXX \ |
13430 | allow_undefined_flag_CXX \ |
13431 | no_undefined_flag_CXX \ |
13432 | export_symbols_cmds_CXX \ |
13433 | hardcode_libdir_flag_spec_CXX \ |
13434 | hardcode_libdir_flag_spec_ld_CXX \ |
13435 | hardcode_libdir_separator_CXX \ |
13436 | hardcode_automatic_CXX \ |
13437 | module_cmds_CXX \ |
13438 | module_expsym_cmds_CXX \ |
13439 | lt_cv_prog_compiler_c_o_CXX \ |
13440 | exclude_expsyms_CXX \ |
13441 | include_expsyms_CXX; do |
13442 | |
13443 | case $var in |
13444 | old_archive_cmds_CXX | \ |
13445 | old_archive_from_new_cmds_CXX | \ |
13446 | archive_cmds_CXX | \ |
13447 | archive_expsym_cmds_CXX | \ |
13448 | module_cmds_CXX | \ |
13449 | module_expsym_cmds_CXX | \ |
13450 | old_archive_from_expsyms_cmds_CXX | \ |
13451 | export_symbols_cmds_CXX | \ |
13452 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
13453 | postinstall_cmds | postuninstall_cmds | \ |
13454 | old_postinstall_cmds | old_postuninstall_cmds | \ |
13455 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
13456 | # Double-quote double-evaled strings. |
13457 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
13458 | ;; |
13459 | *) |
13460 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
13461 | ;; |
13462 | esac |
13463 | done |
13464 | |
13465 | case $lt_echo in |
13466 | *'\$0 --fallback-echo"') |
13467 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
13468 | ;; |
13469 | esac |
13470 | |
13471 | cfgfile="$ofile" |
13472 | |
13473 | cat <<__EOF__ >> "$cfgfile" |
13474 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
13475 | |
13476 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
13477 | |
13478 | # Shell to use when invoking shell scripts. |
13479 | SHELL=$lt_SHELL |
13480 | |
13481 | # Whether or not to build shared libraries. |
13482 | build_libtool_libs=$enable_shared |
13483 | |
13484 | # Whether or not to build static libraries. |
13485 | build_old_libs=$enable_static |
13486 | |
13487 | # Whether or not to add -lc for building shared libraries. |
13488 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
13489 | |
13490 | # Whether or not to disallow shared libs when runtime libs are static |
13491 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
13492 | |
13493 | # Whether or not to optimize for fast installation. |
13494 | fast_install=$enable_fast_install |
13495 | |
13496 | # The host system. |
13497 | host_alias=$host_alias |
13498 | host=$host |
13499 | host_os=$host_os |
13500 | |
13501 | # The build system. |
13502 | build_alias=$build_alias |
13503 | build=$build |
13504 | build_os=$build_os |
13505 | |
13506 | # An echo program that does not interpret backslashes. |
13507 | echo=$lt_echo |
13508 | |
13509 | # The archiver. |
13510 | AR=$lt_AR |
13511 | AR_FLAGS=$lt_AR_FLAGS |
13512 | |
13513 | # A C compiler. |
13514 | LTCC=$lt_LTCC |
13515 | |
13516 | # LTCC compiler flags. |
13517 | LTCFLAGS=$lt_LTCFLAGS |
13518 | |
13519 | # A language-specific compiler. |
13520 | CC=$lt_compiler_CXX |
13521 | |
13522 | # Is the compiler the GNU C compiler? |
13523 | with_gcc=$GCC_CXX |
13524 | |
d9898ee8 |
13525 | # An ERE matcher. |
13526 | EGREP=$lt_EGREP |
13527 | |
13528 | # The linker used to build libraries. |
13529 | LD=$lt_LD_CXX |
13530 | |
13531 | # Whether we need hard or soft links. |
13532 | LN_S=$lt_LN_S |
13533 | |
13534 | # A BSD-compatible nm program. |
13535 | NM=$lt_NM |
13536 | |
13537 | # A symbol stripping program |
13538 | STRIP=$lt_STRIP |
13539 | |
13540 | # Used to examine libraries when file_magic_cmd begins "file" |
13541 | MAGIC_CMD=$MAGIC_CMD |
13542 | |
13543 | # Used on cygwin: DLL creation program. |
13544 | DLLTOOL="$DLLTOOL" |
13545 | |
13546 | # Used on cygwin: object dumper. |
13547 | OBJDUMP="$OBJDUMP" |
13548 | |
13549 | # Used on cygwin: assembler. |
13550 | AS="$AS" |
13551 | |
13552 | # The name of the directory that contains temporary libtool files. |
13553 | objdir=$objdir |
13554 | |
13555 | # How to create reloadable object files. |
13556 | reload_flag=$lt_reload_flag |
13557 | reload_cmds=$lt_reload_cmds |
13558 | |
13559 | # How to pass a linker flag through the compiler. |
13560 | wl=$lt_lt_prog_compiler_wl_CXX |
13561 | |
13562 | # Object file suffix (normally "o"). |
13563 | objext="$ac_objext" |
13564 | |
13565 | # Old archive suffix (normally "a"). |
13566 | libext="$libext" |
13567 | |
13568 | # Shared library suffix (normally ".so"). |
13569 | shrext_cmds='$shrext_cmds' |
13570 | |
13571 | # Executable file suffix (normally ""). |
13572 | exeext="$exeext" |
13573 | |
13574 | # Additional compiler flags for building library objects. |
13575 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
13576 | pic_mode=$pic_mode |
13577 | |
13578 | # What is the maximum length of a command? |
13579 | max_cmd_len=$lt_cv_sys_max_cmd_len |
13580 | |
13581 | # Does compiler simultaneously support -c and -o options? |
13582 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
13583 | |
13584 | # Must we lock files when doing compilation? |
13585 | need_locks=$lt_need_locks |
13586 | |
13587 | # Do we need the lib prefix for modules? |
13588 | need_lib_prefix=$need_lib_prefix |
13589 | |
13590 | # Do we need a version for libraries? |
13591 | need_version=$need_version |
13592 | |
13593 | # Whether dlopen is supported. |
13594 | dlopen_support=$enable_dlopen |
13595 | |
13596 | # Whether dlopen of programs is supported. |
13597 | dlopen_self=$enable_dlopen_self |
13598 | |
13599 | # Whether dlopen of statically linked programs is supported. |
13600 | dlopen_self_static=$enable_dlopen_self_static |
13601 | |
13602 | # Compiler flag to prevent dynamic linking. |
13603 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
13604 | |
13605 | # Compiler flag to turn off builtin functions. |
13606 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
13607 | |
13608 | # Compiler flag to allow reflexive dlopens. |
13609 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
13610 | |
13611 | # Compiler flag to generate shared objects directly from archives. |
13612 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
13613 | |
13614 | # Compiler flag to generate thread-safe objects. |
13615 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX |
13616 | |
13617 | # Library versioning type. |
13618 | version_type=$version_type |
13619 | |
13620 | # Format of library name prefix. |
13621 | libname_spec=$lt_libname_spec |
13622 | |
13623 | # List of archive names. First name is the real one, the rest are links. |
13624 | # The last name is the one that the linker finds with -lNAME. |
13625 | library_names_spec=$lt_library_names_spec |
13626 | |
13627 | # The coded name of the library, if different from the real name. |
13628 | soname_spec=$lt_soname_spec |
13629 | |
13630 | # Commands used to build and install an old-style archive. |
13631 | RANLIB=$lt_RANLIB |
13632 | old_archive_cmds=$lt_old_archive_cmds_CXX |
13633 | old_postinstall_cmds=$lt_old_postinstall_cmds |
13634 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
13635 | |
13636 | # Create an old-style archive from a shared archive. |
13637 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
13638 | |
13639 | # Create a temporary old-style archive to link instead of a shared archive. |
13640 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
13641 | |
13642 | # Commands used to build and install a shared archive. |
13643 | archive_cmds=$lt_archive_cmds_CXX |
13644 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
13645 | postinstall_cmds=$lt_postinstall_cmds |
13646 | postuninstall_cmds=$lt_postuninstall_cmds |
13647 | |
13648 | # Commands used to build a loadable module (assumed same as above if empty) |
13649 | module_cmds=$lt_module_cmds_CXX |
13650 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
13651 | |
13652 | # Commands to strip libraries. |
13653 | old_striplib=$lt_old_striplib |
13654 | striplib=$lt_striplib |
13655 | |
13656 | # Dependencies to place before the objects being linked to create a |
13657 | # shared library. |
dd184caf |
13658 | predep_objects=$lt_predep_objects_CXX |
d9898ee8 |
13659 | |
13660 | # Dependencies to place after the objects being linked to create a |
13661 | # shared library. |
dd184caf |
13662 | postdep_objects=$lt_postdep_objects_CXX |
d9898ee8 |
13663 | |
13664 | # Dependencies to place before the objects being linked to create a |
13665 | # shared library. |
13666 | predeps=$lt_predeps_CXX |
13667 | |
13668 | # Dependencies to place after the objects being linked to create a |
13669 | # shared library. |
13670 | postdeps=$lt_postdeps_CXX |
13671 | |
13672 | # The library search path used internally by the compiler when linking |
13673 | # a shared library. |
dd184caf |
13674 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
d9898ee8 |
13675 | |
13676 | # Method to check whether dependent libraries are shared objects. |
13677 | deplibs_check_method=$lt_deplibs_check_method |
13678 | |
13679 | # Command to use when deplibs_check_method == file_magic. |
13680 | file_magic_cmd=$lt_file_magic_cmd |
13681 | |
13682 | # Flag that allows shared libraries with undefined symbols to be built. |
13683 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
13684 | |
13685 | # Flag that forces no undefined symbols. |
13686 | no_undefined_flag=$lt_no_undefined_flag_CXX |
13687 | |
13688 | # Commands used to finish a libtool library installation in a directory. |
13689 | finish_cmds=$lt_finish_cmds |
13690 | |
13691 | # Same as above, but a single script fragment to be evaled but not shown. |
13692 | finish_eval=$lt_finish_eval |
13693 | |
13694 | # Take the output of nm and produce a listing of raw symbols and C names. |
13695 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
13696 | |
13697 | # Transform the output of nm in a proper C declaration |
13698 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
13699 | |
13700 | # Transform the output of nm in a C name address pair |
13701 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
13702 | |
13703 | # This is the shared library runtime path variable. |
13704 | runpath_var=$runpath_var |
13705 | |
13706 | # This is the shared library path variable. |
13707 | shlibpath_var=$shlibpath_var |
13708 | |
13709 | # Is shlibpath searched before the hard-coded library search path? |
13710 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
13711 | |
13712 | # How to hardcode a shared library path into an executable. |
13713 | hardcode_action=$hardcode_action_CXX |
13714 | |
13715 | # Whether we should hardcode library paths into libraries. |
13716 | hardcode_into_libs=$hardcode_into_libs |
13717 | |
13718 | # Flag to hardcode \$libdir into a binary during linking. |
13719 | # This must work even if \$libdir does not exist. |
13720 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
13721 | |
13722 | # If ld is used when linking, flag to hardcode \$libdir into |
13723 | # a binary during linking. This must work even if \$libdir does |
13724 | # not exist. |
13725 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
13726 | |
13727 | # Whether we need a single -rpath flag with a separated argument. |
13728 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
13729 | |
13730 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
13731 | # resulting binary. |
13732 | hardcode_direct=$hardcode_direct_CXX |
13733 | |
13734 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
13735 | # resulting binary. |
13736 | hardcode_minus_L=$hardcode_minus_L_CXX |
13737 | |
13738 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
13739 | # the resulting binary. |
13740 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
13741 | |
13742 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
13743 | # and all subsequent libraries and executables linked against it. |
13744 | hardcode_automatic=$hardcode_automatic_CXX |
13745 | |
13746 | # Variables whose values should be saved in libtool wrapper scripts and |
13747 | # restored at relink time. |
13748 | variables_saved_for_relink="$variables_saved_for_relink" |
13749 | |
13750 | # Whether libtool must link a program against all its dependency libraries. |
13751 | link_all_deplibs=$link_all_deplibs_CXX |
13752 | |
13753 | # Compile-time system search path for libraries |
dd184caf |
13754 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
d9898ee8 |
13755 | |
13756 | # Run-time system search path for libraries |
13757 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
13758 | |
13759 | # Fix the shell variable \$srcfile for the compiler. |
13760 | fix_srcfile_path="$fix_srcfile_path_CXX" |
13761 | |
13762 | # Set to yes if exported symbols are required. |
13763 | always_export_symbols=$always_export_symbols_CXX |
13764 | |
13765 | # The commands to list exported symbols. |
13766 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
13767 | |
13768 | # The commands to extract the exported symbol list from a shared archive. |
13769 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
13770 | |
13771 | # Symbols that should not be listed in the preloaded symbols. |
13772 | exclude_expsyms=$lt_exclude_expsyms_CXX |
13773 | |
13774 | # Symbols that must always be exported. |
13775 | include_expsyms=$lt_include_expsyms_CXX |
13776 | |
13777 | # ### END LIBTOOL TAG CONFIG: $tagname |
13778 | |
13779 | __EOF__ |
13780 | |
13781 | |
13782 | else |
13783 | # If there is no Makefile yet, we rely on a make rule to execute |
13784 | # `config.status --recheck' to rerun these tests and create the |
13785 | # libtool script then. |
13786 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
13787 | if test -f "$ltmain_in"; then |
13788 | test -f Makefile && make "$ltmain" |
13789 | fi |
13790 | fi |
13791 | |
13792 | |
13793 | ac_ext=c |
13794 | ac_cpp='$CPP $CPPFLAGS' |
13795 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
13796 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
13797 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
13798 | |
13799 | CC=$lt_save_CC |
13800 | LDCXX=$LD |
13801 | LD=$lt_save_LD |
13802 | GCC=$lt_save_GCC |
13803 | with_gnu_ldcxx=$with_gnu_ld |
13804 | with_gnu_ld=$lt_save_with_gnu_ld |
13805 | lt_cv_path_LDCXX=$lt_cv_path_LD |
13806 | lt_cv_path_LD=$lt_save_path_LD |
13807 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
13808 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
13809 | |
13810 | else |
13811 | tagname="" |
13812 | fi |
13813 | ;; |
13814 | |
13815 | F77) |
13816 | if test -n "$F77" && test "X$F77" != "Xno"; then |
13817 | |
13818 | ac_ext=f |
13819 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
13820 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
13821 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
13822 | |
13823 | |
13824 | archive_cmds_need_lc_F77=no |
13825 | allow_undefined_flag_F77= |
13826 | always_export_symbols_F77=no |
13827 | archive_expsym_cmds_F77= |
13828 | export_dynamic_flag_spec_F77= |
13829 | hardcode_direct_F77=no |
13830 | hardcode_libdir_flag_spec_F77= |
13831 | hardcode_libdir_flag_spec_ld_F77= |
13832 | hardcode_libdir_separator_F77= |
13833 | hardcode_minus_L_F77=no |
13834 | hardcode_automatic_F77=no |
13835 | module_cmds_F77= |
13836 | module_expsym_cmds_F77= |
13837 | link_all_deplibs_F77=unknown |
13838 | old_archive_cmds_F77=$old_archive_cmds |
13839 | no_undefined_flag_F77= |
13840 | whole_archive_flag_spec_F77= |
13841 | enable_shared_with_static_runtimes_F77=no |
13842 | |
13843 | # Source file extension for f77 test sources. |
13844 | ac_ext=f |
13845 | |
13846 | # Object file extension for compiled f77 test sources. |
13847 | objext=o |
13848 | objext_F77=$objext |
13849 | |
13850 | # Code to be used in simple compile tests |
13851 | lt_simple_compile_test_code=" subroutine t\n return\n end\n" |
13852 | |
13853 | # Code to be used in simple link tests |
13854 | lt_simple_link_test_code=" program t\n end\n" |
13855 | |
13856 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
13857 | |
13858 | # If no C compiler was specified, use CC. |
13859 | LTCC=${LTCC-"$CC"} |
13860 | |
13861 | # If no C compiler flags were specified, use CFLAGS. |
13862 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
13863 | |
13864 | # Allow CC to be a program name with arguments. |
13865 | compiler=$CC |
13866 | |
13867 | |
13868 | # save warnings/boilerplate of simple test code |
13869 | ac_outfile=conftest.$ac_objext |
13870 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
13871 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
13872 | _lt_compiler_boilerplate=`cat conftest.err` |
13873 | $rm conftest* |
13874 | |
13875 | ac_outfile=conftest.$ac_objext |
13876 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
13877 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
13878 | _lt_linker_boilerplate=`cat conftest.err` |
13879 | $rm conftest* |
13880 | |
13881 | |
13882 | # Allow CC to be a program name with arguments. |
13883 | lt_save_CC="$CC" |
13884 | CC=${F77-"f77"} |
13885 | compiler=$CC |
13886 | compiler_F77=$CC |
13887 | for cc_temp in $compiler""; do |
13888 | case $cc_temp in |
13889 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
13890 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
13891 | \-*) ;; |
13892 | *) break;; |
13893 | esac |
13894 | done |
13895 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
13896 | |
13897 | |
dd184caf |
13898 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
13899 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
13900 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
13901 | echo "${ECHO_T}$can_build_shared" >&6; } |
d9898ee8 |
13902 | |
dd184caf |
13903 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
13904 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
d9898ee8 |
13905 | test "$can_build_shared" = "no" && enable_shared=no |
13906 | |
13907 | # On AIX, shared libraries and static libraries use the same namespace, and |
13908 | # are all built from PIC. |
13909 | case $host_os in |
13910 | aix3*) |
13911 | test "$enable_shared" = yes && enable_static=no |
13912 | if test -n "$RANLIB"; then |
13913 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
13914 | postinstall_cmds='$RANLIB $lib' |
13915 | fi |
13916 | ;; |
13917 | aix4* | aix5*) |
13918 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
13919 | test "$enable_shared" = yes && enable_static=no |
13920 | fi |
13921 | ;; |
13922 | esac |
dd184caf |
13923 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
13924 | echo "${ECHO_T}$enable_shared" >&6; } |
d9898ee8 |
13925 | |
dd184caf |
13926 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
13927 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
d9898ee8 |
13928 | # Make sure either enable_shared or enable_static is yes. |
13929 | test "$enable_shared" = yes || enable_static=yes |
dd184caf |
13930 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
13931 | echo "${ECHO_T}$enable_static" >&6; } |
d9898ee8 |
13932 | |
13933 | GCC_F77="$G77" |
13934 | LD_F77="$LD" |
13935 | |
13936 | lt_prog_compiler_wl_F77= |
13937 | lt_prog_compiler_pic_F77= |
13938 | lt_prog_compiler_static_F77= |
13939 | |
dd184caf |
13940 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
13941 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
d9898ee8 |
13942 | |
13943 | if test "$GCC" = yes; then |
13944 | lt_prog_compiler_wl_F77='-Wl,' |
13945 | lt_prog_compiler_static_F77='-static' |
13946 | |
13947 | case $host_os in |
13948 | aix*) |
13949 | # All AIX code is PIC. |
13950 | if test "$host_cpu" = ia64; then |
13951 | # AIX 5 now supports IA64 processor |
13952 | lt_prog_compiler_static_F77='-Bstatic' |
13953 | fi |
13954 | ;; |
13955 | |
13956 | amigaos*) |
13957 | # FIXME: we need at least 68020 code to build shared libraries, but |
13958 | # adding the `-m68020' flag to GCC prevents building anything better, |
13959 | # like `-m68040'. |
13960 | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' |
13961 | ;; |
13962 | |
13963 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
13964 | # PIC is the default for these OSes. |
13965 | ;; |
13966 | |
13967 | mingw* | pw32* | os2*) |
13968 | # This hack is so that the source file can tell whether it is being |
13969 | # built for inclusion in a dll (and should export symbols for example). |
13970 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
13971 | ;; |
13972 | |
13973 | darwin* | rhapsody*) |
13974 | # PIC is the default on this platform |
13975 | # Common symbols not allowed in MH_DYLIB files |
13976 | lt_prog_compiler_pic_F77='-fno-common' |
13977 | ;; |
13978 | |
13979 | interix3*) |
13980 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
13981 | # Instead, we relocate shared libraries at runtime. |
13982 | ;; |
13983 | |
13984 | msdosdjgpp*) |
13985 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
13986 | # on systems that don't support them. |
13987 | lt_prog_compiler_can_build_shared_F77=no |
13988 | enable_shared=no |
13989 | ;; |
13990 | |
13991 | sysv4*MP*) |
13992 | if test -d /usr/nec; then |
13993 | lt_prog_compiler_pic_F77=-Kconform_pic |
13994 | fi |
13995 | ;; |
13996 | |
13997 | hpux*) |
13998 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
13999 | # not for PA HP-UX. |
14000 | case $host_cpu in |
14001 | hppa*64*|ia64*) |
14002 | # +Z the default |
14003 | ;; |
14004 | *) |
14005 | lt_prog_compiler_pic_F77='-fPIC' |
14006 | ;; |
14007 | esac |
14008 | ;; |
14009 | |
14010 | *) |
14011 | lt_prog_compiler_pic_F77='-fPIC' |
14012 | ;; |
14013 | esac |
14014 | else |
14015 | # PORTME Check for flag to pass linker flags through the system compiler. |
14016 | case $host_os in |
14017 | aix*) |
14018 | lt_prog_compiler_wl_F77='-Wl,' |
14019 | if test "$host_cpu" = ia64; then |
14020 | # AIX 5 now supports IA64 processor |
14021 | lt_prog_compiler_static_F77='-Bstatic' |
14022 | else |
14023 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' |
14024 | fi |
14025 | ;; |
14026 | darwin*) |
14027 | # PIC is the default on this platform |
14028 | # Common symbols not allowed in MH_DYLIB files |
14029 | case $cc_basename in |
14030 | xlc*) |
14031 | lt_prog_compiler_pic_F77='-qnocommon' |
14032 | lt_prog_compiler_wl_F77='-Wl,' |
14033 | ;; |
14034 | esac |
14035 | ;; |
14036 | |
14037 | mingw* | pw32* | os2*) |
14038 | # This hack is so that the source file can tell whether it is being |
14039 | # built for inclusion in a dll (and should export symbols for example). |
14040 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
14041 | ;; |
14042 | |
14043 | hpux9* | hpux10* | hpux11*) |
14044 | lt_prog_compiler_wl_F77='-Wl,' |
14045 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
14046 | # not for PA HP-UX. |
14047 | case $host_cpu in |
14048 | hppa*64*|ia64*) |
14049 | # +Z the default |
14050 | ;; |
14051 | *) |
14052 | lt_prog_compiler_pic_F77='+Z' |
14053 | ;; |
14054 | esac |
14055 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
14056 | lt_prog_compiler_static_F77='${wl}-a ${wl}archive' |
14057 | ;; |
14058 | |
14059 | irix5* | irix6* | nonstopux*) |
14060 | lt_prog_compiler_wl_F77='-Wl,' |
14061 | # PIC (with -KPIC) is the default. |
14062 | lt_prog_compiler_static_F77='-non_shared' |
14063 | ;; |
14064 | |
14065 | newsos6) |
14066 | lt_prog_compiler_pic_F77='-KPIC' |
14067 | lt_prog_compiler_static_F77='-Bstatic' |
14068 | ;; |
14069 | |
14070 | linux*) |
14071 | case $cc_basename in |
14072 | icc* | ecc*) |
14073 | lt_prog_compiler_wl_F77='-Wl,' |
14074 | lt_prog_compiler_pic_F77='-KPIC' |
14075 | lt_prog_compiler_static_F77='-static' |
14076 | ;; |
14077 | pgcc* | pgf77* | pgf90* | pgf95*) |
14078 | # Portland Group compilers (*not* the Pentium gcc compiler, |
14079 | # which looks to be a dead project) |
14080 | lt_prog_compiler_wl_F77='-Wl,' |
14081 | lt_prog_compiler_pic_F77='-fpic' |
14082 | lt_prog_compiler_static_F77='-Bstatic' |
14083 | ;; |
14084 | ccc*) |
14085 | lt_prog_compiler_wl_F77='-Wl,' |
14086 | # All Alpha code is PIC. |
14087 | lt_prog_compiler_static_F77='-non_shared' |
14088 | ;; |
14089 | esac |
14090 | ;; |
14091 | |
14092 | osf3* | osf4* | osf5*) |
14093 | lt_prog_compiler_wl_F77='-Wl,' |
14094 | # All OSF/1 code is PIC. |
14095 | lt_prog_compiler_static_F77='-non_shared' |
14096 | ;; |
14097 | |
14098 | solaris*) |
14099 | lt_prog_compiler_pic_F77='-KPIC' |
14100 | lt_prog_compiler_static_F77='-Bstatic' |
14101 | case $cc_basename in |
14102 | f77* | f90* | f95*) |
14103 | lt_prog_compiler_wl_F77='-Qoption ld ';; |
14104 | *) |
14105 | lt_prog_compiler_wl_F77='-Wl,';; |
14106 | esac |
14107 | ;; |
14108 | |
14109 | sunos4*) |
14110 | lt_prog_compiler_wl_F77='-Qoption ld ' |
14111 | lt_prog_compiler_pic_F77='-PIC' |
14112 | lt_prog_compiler_static_F77='-Bstatic' |
14113 | ;; |
14114 | |
14115 | sysv4 | sysv4.2uw2* | sysv4.3*) |
14116 | lt_prog_compiler_wl_F77='-Wl,' |
14117 | lt_prog_compiler_pic_F77='-KPIC' |
14118 | lt_prog_compiler_static_F77='-Bstatic' |
14119 | ;; |
14120 | |
14121 | sysv4*MP*) |
14122 | if test -d /usr/nec ;then |
14123 | lt_prog_compiler_pic_F77='-Kconform_pic' |
14124 | lt_prog_compiler_static_F77='-Bstatic' |
14125 | fi |
14126 | ;; |
14127 | |
14128 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
14129 | lt_prog_compiler_wl_F77='-Wl,' |
14130 | lt_prog_compiler_pic_F77='-KPIC' |
14131 | lt_prog_compiler_static_F77='-Bstatic' |
14132 | ;; |
14133 | |
14134 | unicos*) |
14135 | lt_prog_compiler_wl_F77='-Wl,' |
14136 | lt_prog_compiler_can_build_shared_F77=no |
14137 | ;; |
14138 | |
14139 | uts4*) |
14140 | lt_prog_compiler_pic_F77='-pic' |
14141 | lt_prog_compiler_static_F77='-Bstatic' |
14142 | ;; |
14143 | |
14144 | *) |
14145 | lt_prog_compiler_can_build_shared_F77=no |
14146 | ;; |
14147 | esac |
14148 | fi |
14149 | |
dd184caf |
14150 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 |
14151 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } |
d9898ee8 |
14152 | |
14153 | # |
14154 | # Check to make sure the PIC flag actually works. |
14155 | # |
14156 | if test -n "$lt_prog_compiler_pic_F77"; then |
14157 | |
dd184caf |
14158 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 |
14159 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } |
d9898ee8 |
14160 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then |
14161 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14162 | else |
14163 | lt_prog_compiler_pic_works_F77=no |
14164 | ac_outfile=conftest.$ac_objext |
14165 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
14166 | lt_compiler_flag="$lt_prog_compiler_pic_F77" |
14167 | # Insert the option either (1) after the last *FLAGS variable, or |
14168 | # (2) before a word containing "conftest.", or (3) at the end. |
14169 | # Note that $ac_compile itself does not contain backslashes and begins |
14170 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
14171 | # The option is referenced via a variable to avoid confusing sed. |
14172 | lt_compile=`echo "$ac_compile" | $SED \ |
14173 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
14174 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
14175 | -e 's:$: $lt_compiler_flag:'` |
dd184caf |
14176 | (eval echo "\"\$as_me:14176: $lt_compile\"" >&5) |
d9898ee8 |
14177 | (eval "$lt_compile" 2>conftest.err) |
14178 | ac_status=$? |
14179 | cat conftest.err >&5 |
dd184caf |
14180 | echo "$as_me:14180: \$? = $ac_status" >&5 |
d9898ee8 |
14181 | if (exit $ac_status) && test -s "$ac_outfile"; then |
14182 | # The compiler can only warn and ignore the option if not recognized |
14183 | # So say no if there are warnings other than the usual output. |
14184 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
14185 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
14186 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
14187 | lt_prog_compiler_pic_works_F77=yes |
14188 | fi |
14189 | fi |
14190 | $rm conftest* |
14191 | |
14192 | fi |
dd184caf |
14193 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 |
14194 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } |
d9898ee8 |
14195 | |
14196 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then |
14197 | case $lt_prog_compiler_pic_F77 in |
14198 | "" | " "*) ;; |
14199 | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; |
14200 | esac |
14201 | else |
14202 | lt_prog_compiler_pic_F77= |
14203 | lt_prog_compiler_can_build_shared_F77=no |
14204 | fi |
14205 | |
14206 | fi |
14207 | case $host_os in |
14208 | # For platforms which do not support PIC, -DPIC is meaningless: |
14209 | *djgpp*) |
14210 | lt_prog_compiler_pic_F77= |
14211 | ;; |
14212 | *) |
14213 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" |
14214 | ;; |
14215 | esac |
14216 | |
14217 | # |
14218 | # Check to make sure the static flag actually works. |
14219 | # |
14220 | wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" |
dd184caf |
14221 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
14222 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
d9898ee8 |
14223 | if test "${lt_prog_compiler_static_works_F77+set}" = set; then |
14224 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14225 | else |
14226 | lt_prog_compiler_static_works_F77=no |
14227 | save_LDFLAGS="$LDFLAGS" |
14228 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
14229 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
14230 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
14231 | # The linker can only warn and ignore the option if not recognized |
14232 | # So say no if there are warnings |
14233 | if test -s conftest.err; then |
14234 | # Append any errors to the config.log. |
14235 | cat conftest.err 1>&5 |
14236 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
14237 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
14238 | if diff conftest.exp conftest.er2 >/dev/null; then |
14239 | lt_prog_compiler_static_works_F77=yes |
14240 | fi |
14241 | else |
14242 | lt_prog_compiler_static_works_F77=yes |
14243 | fi |
14244 | fi |
14245 | $rm conftest* |
14246 | LDFLAGS="$save_LDFLAGS" |
14247 | |
14248 | fi |
dd184caf |
14249 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 |
14250 | echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } |
d9898ee8 |
14251 | |
14252 | if test x"$lt_prog_compiler_static_works_F77" = xyes; then |
14253 | : |
14254 | else |
14255 | lt_prog_compiler_static_F77= |
14256 | fi |
14257 | |
14258 | |
dd184caf |
14259 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
14260 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
d9898ee8 |
14261 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then |
14262 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14263 | else |
14264 | lt_cv_prog_compiler_c_o_F77=no |
14265 | $rm -r conftest 2>/dev/null |
14266 | mkdir conftest |
14267 | cd conftest |
14268 | mkdir out |
14269 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
14270 | |
14271 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
14272 | # Insert the option either (1) after the last *FLAGS variable, or |
14273 | # (2) before a word containing "conftest.", or (3) at the end. |
14274 | # Note that $ac_compile itself does not contain backslashes and begins |
14275 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
14276 | lt_compile=`echo "$ac_compile" | $SED \ |
14277 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
14278 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
14279 | -e 's:$: $lt_compiler_flag:'` |
dd184caf |
14280 | (eval echo "\"\$as_me:14280: $lt_compile\"" >&5) |
d9898ee8 |
14281 | (eval "$lt_compile" 2>out/conftest.err) |
14282 | ac_status=$? |
14283 | cat out/conftest.err >&5 |
dd184caf |
14284 | echo "$as_me:14284: \$? = $ac_status" >&5 |
d9898ee8 |
14285 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
14286 | then |
14287 | # The compiler can only warn and ignore the option if not recognized |
14288 | # So say no if there are warnings |
14289 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
14290 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
14291 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
14292 | lt_cv_prog_compiler_c_o_F77=yes |
14293 | fi |
14294 | fi |
14295 | chmod u+w . 2>&5 |
14296 | $rm conftest* |
14297 | # SGI C++ compiler will create directory out/ii_files/ for |
14298 | # template instantiation |
14299 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
14300 | $rm out/* && rmdir out |
14301 | cd .. |
14302 | rmdir conftest |
14303 | $rm conftest* |
14304 | |
14305 | fi |
dd184caf |
14306 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 |
14307 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } |
d9898ee8 |
14308 | |
14309 | |
14310 | hard_links="nottested" |
14311 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then |
14312 | # do not overwrite the value of need_locks provided by the user |
dd184caf |
14313 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
14314 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
d9898ee8 |
14315 | hard_links=yes |
14316 | $rm conftest* |
14317 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
14318 | touch conftest.a |
14319 | ln conftest.a conftest.b 2>&5 || hard_links=no |
14320 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
dd184caf |
14321 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
14322 | echo "${ECHO_T}$hard_links" >&6; } |
d9898ee8 |
14323 | if test "$hard_links" = no; then |
14324 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
14325 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
14326 | need_locks=warn |
14327 | fi |
14328 | else |
14329 | need_locks=no |
14330 | fi |
14331 | |
dd184caf |
14332 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
14333 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
d9898ee8 |
14334 | |
14335 | runpath_var= |
14336 | allow_undefined_flag_F77= |
14337 | enable_shared_with_static_runtimes_F77=no |
14338 | archive_cmds_F77= |
14339 | archive_expsym_cmds_F77= |
14340 | old_archive_From_new_cmds_F77= |
14341 | old_archive_from_expsyms_cmds_F77= |
14342 | export_dynamic_flag_spec_F77= |
14343 | whole_archive_flag_spec_F77= |
14344 | thread_safe_flag_spec_F77= |
14345 | hardcode_libdir_flag_spec_F77= |
14346 | hardcode_libdir_flag_spec_ld_F77= |
14347 | hardcode_libdir_separator_F77= |
14348 | hardcode_direct_F77=no |
14349 | hardcode_minus_L_F77=no |
14350 | hardcode_shlibpath_var_F77=unsupported |
14351 | link_all_deplibs_F77=unknown |
14352 | hardcode_automatic_F77=no |
14353 | module_cmds_F77= |
14354 | module_expsym_cmds_F77= |
14355 | always_export_symbols_F77=no |
14356 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
14357 | # include_expsyms should be a list of space-separated symbols to be *always* |
14358 | # included in the symbol list |
14359 | include_expsyms_F77= |
14360 | # exclude_expsyms can be an extended regexp of symbols to exclude |
14361 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
14362 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
14363 | # as well as any symbol that contains `d'. |
14364 | exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" |
14365 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
14366 | # platforms (ab)use it in PIC code, but their linkers get confused if |
14367 | # the symbol is explicitly referenced. Since portable code cannot |
14368 | # rely on this symbol name, it's probably fine to never include it in |
14369 | # preloaded symbol tables. |
14370 | extract_expsyms_cmds= |
14371 | # Just being paranoid about ensuring that cc_basename is set. |
14372 | for cc_temp in $compiler""; do |
14373 | case $cc_temp in |
14374 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
14375 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
14376 | \-*) ;; |
14377 | *) break;; |
14378 | esac |
14379 | done |
14380 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
14381 | |
14382 | case $host_os in |
14383 | cygwin* | mingw* | pw32*) |
14384 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
14385 | # When not using gcc, we currently assume that we are using |
14386 | # Microsoft Visual C++. |
14387 | if test "$GCC" != yes; then |
14388 | with_gnu_ld=no |
14389 | fi |
14390 | ;; |
14391 | interix*) |
14392 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
14393 | with_gnu_ld=yes |
14394 | ;; |
14395 | openbsd*) |
14396 | with_gnu_ld=no |
14397 | ;; |
14398 | esac |
14399 | |
14400 | ld_shlibs_F77=yes |
14401 | if test "$with_gnu_ld" = yes; then |
14402 | # If archive_cmds runs LD, not CC, wlarc should be empty |
14403 | wlarc='${wl}' |
14404 | |
14405 | # Set some defaults for GNU ld with shared library support. These |
14406 | # are reset later if shared libraries are not supported. Putting them |
14407 | # here allows them to be overridden if necessary. |
14408 | runpath_var=LD_RUN_PATH |
14409 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' |
14410 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' |
14411 | # ancient GNU ld didn't support --whole-archive et. al. |
14412 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
14413 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
14414 | else |
14415 | whole_archive_flag_spec_F77= |
14416 | fi |
14417 | supports_anon_versioning=no |
14418 | case `$LD -v 2>/dev/null` in |
14419 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
14420 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
14421 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
14422 | *\ 2.11.*) ;; # other 2.11 versions |
14423 | *) supports_anon_versioning=yes ;; |
14424 | esac |
14425 | |
14426 | # See if GNU ld supports shared libraries. |
14427 | case $host_os in |
14428 | aix3* | aix4* | aix5*) |
14429 | # On AIX/PPC, the GNU linker is very broken |
14430 | if test "$host_cpu" != ia64; then |
14431 | ld_shlibs_F77=no |
14432 | cat <<EOF 1>&2 |
14433 | |
14434 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
14435 | *** to be unable to reliably create shared libraries on AIX. |
14436 | *** Therefore, libtool is disabling shared libraries support. If you |
14437 | *** really care for shared libraries, you may want to modify your PATH |
14438 | *** so that a non-GNU linker is found, and then restart. |
14439 | |
14440 | EOF |
14441 | fi |
14442 | ;; |
14443 | |
14444 | amigaos*) |
14445 | archive_cmds_F77='$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)' |
14446 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14447 | hardcode_minus_L_F77=yes |
14448 | |
14449 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
14450 | # that the semantics of dynamic libraries on AmigaOS, at least up |
14451 | # to version 4, is to share data among multiple programs linked |
14452 | # with the same dynamic library. Since this doesn't match the |
14453 | # behavior of shared libraries on other platforms, we can't use |
14454 | # them. |
14455 | ld_shlibs_F77=no |
14456 | ;; |
14457 | |
14458 | beos*) |
14459 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
14460 | allow_undefined_flag_F77=unsupported |
14461 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
14462 | # support --undefined. This deserves some investigation. FIXME |
14463 | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
14464 | else |
14465 | ld_shlibs_F77=no |
14466 | fi |
14467 | ;; |
14468 | |
14469 | cygwin* | mingw* | pw32*) |
14470 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, |
14471 | # as there is no search path for DLLs. |
14472 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14473 | allow_undefined_flag_F77=unsupported |
14474 | always_export_symbols_F77=no |
14475 | enable_shared_with_static_runtimes_F77=yes |
14476 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
14477 | |
14478 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
14479 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
14480 | # If the export-symbols file already is a .def file (1st line |
14481 | # is EXPORTS), use it as is; otherwise, prepend... |
14482 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
14483 | cp $export_symbols $output_objdir/$soname.def; |
14484 | else |
14485 | echo EXPORTS > $output_objdir/$soname.def; |
14486 | cat $export_symbols >> $output_objdir/$soname.def; |
14487 | fi~ |
14488 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
14489 | else |
14490 | ld_shlibs_F77=no |
14491 | fi |
14492 | ;; |
14493 | |
14494 | interix3*) |
14495 | hardcode_direct_F77=no |
14496 | hardcode_shlibpath_var_F77=no |
14497 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
14498 | export_dynamic_flag_spec_F77='${wl}-E' |
14499 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
14500 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
14501 | # default) and relocated if they conflict, which is a slow very memory |
14502 | # consuming and fragmenting process. To avoid this, we pick a random, |
14503 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
14504 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
14505 | archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
14506 | archive_expsym_cmds_F77='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' |
14507 | ;; |
14508 | |
14509 | linux*) |
14510 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
14511 | tmp_addflag= |
14512 | case $cc_basename,$host_cpu in |
14513 | pgcc*) # Portland Group C compiler |
14514 | whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
14515 | tmp_addflag=' $pic_flag' |
14516 | ;; |
14517 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
14518 | whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
14519 | tmp_addflag=' $pic_flag -Mnomain' ;; |
14520 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
14521 | tmp_addflag=' -i_dynamic' ;; |
14522 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
14523 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
14524 | ifc* | ifort*) # Intel Fortran compiler |
14525 | tmp_addflag=' -nofor_main' ;; |
14526 | esac |
14527 | archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
14528 | |
14529 | if test $supports_anon_versioning = yes; then |
14530 | archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ |
14531 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
14532 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
14533 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
14534 | fi |
14535 | else |
14536 | ld_shlibs_F77=no |
14537 | fi |
14538 | ;; |
14539 | |
14540 | netbsd*) |
14541 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
14542 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
14543 | wlarc= |
14544 | else |
14545 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
14546 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
14547 | fi |
14548 | ;; |
14549 | |
14550 | solaris*) |
14551 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
14552 | ld_shlibs_F77=no |
14553 | cat <<EOF 1>&2 |
14554 | |
14555 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
14556 | *** create shared libraries on Solaris systems. Therefore, libtool |
14557 | *** is disabling shared libraries support. We urge you to upgrade GNU |
14558 | *** binutils to release 2.9.1 or newer. Another option is to modify |
14559 | *** your PATH or compiler configuration so that the native linker is |
14560 | *** used, and then restart. |
14561 | |
14562 | EOF |
14563 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
14564 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
14565 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
14566 | else |
14567 | ld_shlibs_F77=no |
14568 | fi |
14569 | ;; |
14570 | |
14571 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
14572 | case `$LD -v 2>&1` in |
14573 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
14574 | ld_shlibs_F77=no |
14575 | cat <<_LT_EOF 1>&2 |
14576 | |
14577 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
14578 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
14579 | *** is disabling shared libraries support. We urge you to upgrade GNU |
14580 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
14581 | *** your PATH or compiler configuration so that the native linker is |
14582 | *** used, and then restart. |
14583 | |
14584 | _LT_EOF |
14585 | ;; |
14586 | *) |
14587 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
14588 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
14589 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
14590 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
14591 | else |
14592 | ld_shlibs_F77=no |
14593 | fi |
14594 | ;; |
14595 | esac |
14596 | ;; |
14597 | |
14598 | sunos4*) |
14599 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
14600 | wlarc= |
14601 | hardcode_direct_F77=yes |
14602 | hardcode_shlibpath_var_F77=no |
14603 | ;; |
14604 | |
14605 | *) |
14606 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
14607 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
14608 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
14609 | else |
14610 | ld_shlibs_F77=no |
14611 | fi |
14612 | ;; |
14613 | esac |
14614 | |
14615 | if test "$ld_shlibs_F77" = no; then |
14616 | runpath_var= |
14617 | hardcode_libdir_flag_spec_F77= |
14618 | export_dynamic_flag_spec_F77= |
14619 | whole_archive_flag_spec_F77= |
14620 | fi |
14621 | else |
14622 | # PORTME fill in a description of your system's linker (not GNU ld) |
14623 | case $host_os in |
14624 | aix3*) |
14625 | allow_undefined_flag_F77=unsupported |
14626 | always_export_symbols_F77=yes |
14627 | archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' |
14628 | # Note: this linker hardcodes the directories in LIBPATH if there |
14629 | # are no directories specified by -L. |
14630 | hardcode_minus_L_F77=yes |
14631 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
14632 | # Neither direct hardcoding nor static linking is supported with a |
14633 | # broken collect2. |
14634 | hardcode_direct_F77=unsupported |
14635 | fi |
14636 | ;; |
14637 | |
14638 | aix4* | aix5*) |
14639 | if test "$host_cpu" = ia64; then |
14640 | # On IA64, the linker does run time linking by default, so we don't |
14641 | # have to do anything special. |
14642 | aix_use_runtimelinking=no |
14643 | exp_sym_flag='-Bexport' |
14644 | no_entry_flag="" |
14645 | else |
14646 | # If we're using GNU nm, then we don't want the "-C" option. |
14647 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
14648 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
14649 | export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
14650 | else |
14651 | export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
14652 | fi |
14653 | aix_use_runtimelinking=no |
14654 | |
14655 | # Test if we are trying to use run time linking or normal |
14656 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
14657 | # need to do runtime linking. |
14658 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
14659 | for ld_flag in $LDFLAGS; do |
14660 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
14661 | aix_use_runtimelinking=yes |
14662 | break |
14663 | fi |
14664 | done |
14665 | ;; |
14666 | esac |
14667 | |
14668 | exp_sym_flag='-bexport' |
14669 | no_entry_flag='-bnoentry' |
14670 | fi |
14671 | |
14672 | # When large executables or shared objects are built, AIX ld can |
14673 | # have problems creating the table of contents. If linking a library |
14674 | # or program results in "error TOC overflow" add -mminimal-toc to |
14675 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
14676 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
14677 | |
14678 | archive_cmds_F77='' |
14679 | hardcode_direct_F77=yes |
14680 | hardcode_libdir_separator_F77=':' |
14681 | link_all_deplibs_F77=yes |
14682 | |
14683 | if test "$GCC" = yes; then |
14684 | case $host_os in aix4.[012]|aix4.[012].*) |
14685 | # We only want to do this on AIX 4.2 and lower, the check |
14686 | # below for broken collect2 doesn't work under 4.3+ |
14687 | collect2name=`${CC} -print-prog-name=collect2` |
14688 | if test -f "$collect2name" && \ |
14689 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
14690 | then |
14691 | # We have reworked collect2 |
14692 | hardcode_direct_F77=yes |
14693 | else |
14694 | # We have old collect2 |
14695 | hardcode_direct_F77=unsupported |
14696 | # It fails to find uninstalled libraries when the uninstalled |
14697 | # path is not listed in the libpath. Setting hardcode_minus_L |
14698 | # to unsupported forces relinking |
14699 | hardcode_minus_L_F77=yes |
14700 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14701 | hardcode_libdir_separator_F77= |
14702 | fi |
14703 | ;; |
14704 | esac |
14705 | shared_flag='-shared' |
14706 | if test "$aix_use_runtimelinking" = yes; then |
14707 | shared_flag="$shared_flag "'${wl}-G' |
14708 | fi |
14709 | else |
14710 | # not using gcc |
14711 | if test "$host_cpu" = ia64; then |
14712 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
14713 | # chokes on -Wl,-G. The following line is correct: |
14714 | shared_flag='-G' |
14715 | else |
14716 | if test "$aix_use_runtimelinking" = yes; then |
14717 | shared_flag='${wl}-G' |
14718 | else |
14719 | shared_flag='${wl}-bM:SRE' |
14720 | fi |
14721 | fi |
14722 | fi |
14723 | |
14724 | # It seems that -bexpall does not export symbols beginning with |
14725 | # underscore (_), so it is better to generate a list of symbols to export. |
14726 | always_export_symbols_F77=yes |
14727 | if test "$aix_use_runtimelinking" = yes; then |
14728 | # Warning - without using the other runtime loading flags (-brtl), |
14729 | # -berok will link without error, but may produce a broken library. |
14730 | allow_undefined_flag_F77='-berok' |
14731 | # Determine the default libpath from the value encoded in an empty executable. |
14732 | cat >conftest.$ac_ext <<_ACEOF |
14733 | program main |
14734 | |
14735 | end |
14736 | _ACEOF |
14737 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
14738 | if { (ac_try="$ac_link" |
14739 | case "(($ac_try" in |
14740 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
14741 | *) ac_try_echo=$ac_try;; |
14742 | esac |
14743 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
14744 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
14745 | ac_status=$? |
14746 | grep -v '^ *+' conftest.er1 >conftest.err |
14747 | rm -f conftest.er1 |
14748 | cat conftest.err >&5 |
14749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
14750 | (exit $ac_status); } && { |
14751 | test -z "$ac_f77_werror_flag" || |
14752 | test ! -s conftest.err |
14753 | } && test -s conftest$ac_exeext && |
14754 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
14755 | |
14756 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
14757 | }'` |
14758 | # Check for a 64-bit object if we didn't find anything. |
14759 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
14760 | }'`; fi |
14761 | else |
14762 | echo "$as_me: failed program was:" >&5 |
14763 | sed 's/^/| /' conftest.$ac_ext >&5 |
14764 | |
dd184caf |
14765 | |
d9898ee8 |
14766 | fi |
dd184caf |
14767 | |
14768 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
14769 | conftest$ac_exeext conftest.$ac_ext |
14770 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
14771 | |
14772 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
14773 | archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
14774 | else |
14775 | if test "$host_cpu" = ia64; then |
14776 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' |
14777 | allow_undefined_flag_F77="-z nodefs" |
14778 | archive_expsym_cmds_F77="\$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" |
14779 | else |
14780 | # Determine the default libpath from the value encoded in an empty executable. |
14781 | cat >conftest.$ac_ext <<_ACEOF |
14782 | program main |
14783 | |
14784 | end |
14785 | _ACEOF |
14786 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
14787 | if { (ac_try="$ac_link" |
14788 | case "(($ac_try" in |
14789 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
14790 | *) ac_try_echo=$ac_try;; |
14791 | esac |
14792 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
14793 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
14794 | ac_status=$? |
14795 | grep -v '^ *+' conftest.er1 >conftest.err |
14796 | rm -f conftest.er1 |
14797 | cat conftest.err >&5 |
14798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
14799 | (exit $ac_status); } && { |
14800 | test -z "$ac_f77_werror_flag" || |
14801 | test ! -s conftest.err |
14802 | } && test -s conftest$ac_exeext && |
14803 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
14804 | |
14805 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
14806 | }'` |
14807 | # Check for a 64-bit object if we didn't find anything. |
14808 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
14809 | }'`; fi |
14810 | else |
14811 | echo "$as_me: failed program was:" >&5 |
14812 | sed 's/^/| /' conftest.$ac_ext >&5 |
14813 | |
dd184caf |
14814 | |
d9898ee8 |
14815 | fi |
dd184caf |
14816 | |
14817 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
14818 | conftest$ac_exeext conftest.$ac_ext |
14819 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
14820 | |
14821 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
14822 | # Warning - without using the other run time loading flags, |
14823 | # -berok will link without error, but may produce a broken library. |
14824 | no_undefined_flag_F77=' ${wl}-bernotok' |
14825 | allow_undefined_flag_F77=' ${wl}-berok' |
14826 | # Exported symbols can be pulled into shared objects from archives |
14827 | whole_archive_flag_spec_F77='$convenience' |
14828 | archive_cmds_need_lc_F77=yes |
14829 | # This is similar to how AIX traditionally builds its shared libraries. |
14830 | archive_expsym_cmds_F77="\$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' |
14831 | fi |
14832 | fi |
14833 | ;; |
14834 | |
14835 | amigaos*) |
14836 | archive_cmds_F77='$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)' |
14837 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14838 | hardcode_minus_L_F77=yes |
14839 | # see comment about different semantics on the GNU ld section |
14840 | ld_shlibs_F77=no |
14841 | ;; |
14842 | |
14843 | bsdi[45]*) |
14844 | export_dynamic_flag_spec_F77=-rdynamic |
14845 | ;; |
14846 | |
14847 | cygwin* | mingw* | pw32*) |
14848 | # When not using gcc, we currently assume that we are using |
14849 | # Microsoft Visual C++. |
14850 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
14851 | # no search path for DLLs. |
14852 | hardcode_libdir_flag_spec_F77=' ' |
14853 | allow_undefined_flag_F77=unsupported |
14854 | # Tell ltmain to make .lib files, not .a files. |
14855 | libext=lib |
14856 | # Tell ltmain to make .dll files, not .so files. |
14857 | shrext_cmds=".dll" |
14858 | # FIXME: Setting linknames here is a bad hack. |
14859 | archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
14860 | # The linker will automatically build a .lib file if we build a DLL. |
14861 | old_archive_From_new_cmds_F77='true' |
14862 | # FIXME: Should let the user specify the lib program. |
14863 | old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' |
14864 | fix_srcfile_path_F77='`cygpath -w "$srcfile"`' |
14865 | enable_shared_with_static_runtimes_F77=yes |
14866 | ;; |
14867 | |
14868 | darwin* | rhapsody*) |
14869 | case $host_os in |
14870 | rhapsody* | darwin1.[012]) |
14871 | allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' |
14872 | ;; |
14873 | *) # Darwin 1.3 on |
14874 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
14875 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
14876 | else |
14877 | case ${MACOSX_DEPLOYMENT_TARGET} in |
14878 | 10.[012]) |
14879 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
14880 | ;; |
14881 | 10.*) |
14882 | allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' |
14883 | ;; |
14884 | esac |
14885 | fi |
14886 | ;; |
14887 | esac |
14888 | archive_cmds_need_lc_F77=no |
14889 | hardcode_direct_F77=no |
14890 | hardcode_automatic_F77=yes |
14891 | hardcode_shlibpath_var_F77=unsupported |
14892 | whole_archive_flag_spec_F77='' |
14893 | link_all_deplibs_F77=yes |
14894 | if test "$GCC" = yes ; then |
14895 | output_verbose_link_cmd='echo' |
14896 | archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
14897 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
14898 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
14899 | archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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}' |
14900 | module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -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}' |
14901 | else |
14902 | case $cc_basename in |
14903 | xlc*) |
14904 | output_verbose_link_cmd='echo' |
14905 | archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
14906 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
14907 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
14908 | archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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}' |
14909 | module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -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}' |
14910 | ;; |
14911 | *) |
14912 | ld_shlibs_F77=no |
14913 | ;; |
14914 | esac |
14915 | fi |
14916 | ;; |
14917 | |
14918 | dgux*) |
14919 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14920 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14921 | hardcode_shlibpath_var_F77=no |
14922 | ;; |
14923 | |
14924 | freebsd1*) |
14925 | ld_shlibs_F77=no |
14926 | ;; |
14927 | |
14928 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
14929 | # support. Future versions do this automatically, but an explicit c++rt0.o |
14930 | # does not break anything, and helps significantly (at the cost of a little |
14931 | # extra space). |
14932 | freebsd2.2*) |
14933 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
14934 | hardcode_libdir_flag_spec_F77='-R$libdir' |
14935 | hardcode_direct_F77=yes |
14936 | hardcode_shlibpath_var_F77=no |
14937 | ;; |
14938 | |
14939 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
14940 | freebsd2*) |
14941 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
14942 | hardcode_direct_F77=yes |
14943 | hardcode_minus_L_F77=yes |
14944 | hardcode_shlibpath_var_F77=no |
14945 | ;; |
14946 | |
14947 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
14948 | freebsd* | kfreebsd*-gnu | dragonfly*) |
14949 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
14950 | hardcode_libdir_flag_spec_F77='-R$libdir' |
14951 | hardcode_direct_F77=yes |
14952 | hardcode_shlibpath_var_F77=no |
14953 | ;; |
14954 | |
14955 | hpux9*) |
14956 | if test "$GCC" = yes; then |
14957 | archive_cmds_F77='$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' |
14958 | else |
14959 | archive_cmds_F77='$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' |
14960 | fi |
14961 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
14962 | hardcode_libdir_separator_F77=: |
14963 | hardcode_direct_F77=yes |
14964 | |
14965 | # hardcode_minus_L: Not really in the search PATH, |
14966 | # but as the default location of the library. |
14967 | hardcode_minus_L_F77=yes |
14968 | export_dynamic_flag_spec_F77='${wl}-E' |
14969 | ;; |
14970 | |
14971 | hpux10*) |
14972 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
14973 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
14974 | else |
14975 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
14976 | fi |
14977 | if test "$with_gnu_ld" = no; then |
14978 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
14979 | hardcode_libdir_separator_F77=: |
14980 | |
14981 | hardcode_direct_F77=yes |
14982 | export_dynamic_flag_spec_F77='${wl}-E' |
14983 | |
14984 | # hardcode_minus_L: Not really in the search PATH, |
14985 | # but as the default location of the library. |
14986 | hardcode_minus_L_F77=yes |
14987 | fi |
14988 | ;; |
14989 | |
14990 | hpux11*) |
14991 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
14992 | case $host_cpu in |
14993 | hppa*64*) |
14994 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14995 | ;; |
14996 | ia64*) |
14997 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
14998 | ;; |
14999 | *) |
15000 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
15001 | ;; |
15002 | esac |
15003 | else |
15004 | case $host_cpu in |
15005 | hppa*64*) |
15006 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
15007 | ;; |
15008 | ia64*) |
15009 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
15010 | ;; |
15011 | *) |
15012 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
15013 | ;; |
15014 | esac |
15015 | fi |
15016 | if test "$with_gnu_ld" = no; then |
15017 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
15018 | hardcode_libdir_separator_F77=: |
15019 | |
15020 | case $host_cpu in |
15021 | hppa*64*|ia64*) |
15022 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' |
15023 | hardcode_direct_F77=no |
15024 | hardcode_shlibpath_var_F77=no |
15025 | ;; |
15026 | *) |
15027 | hardcode_direct_F77=yes |
15028 | export_dynamic_flag_spec_F77='${wl}-E' |
15029 | |
15030 | # hardcode_minus_L: Not really in the search PATH, |
15031 | # but as the default location of the library. |
15032 | hardcode_minus_L_F77=yes |
15033 | ;; |
15034 | esac |
15035 | fi |
15036 | ;; |
15037 | |
15038 | irix5* | irix6* | nonstopux*) |
15039 | if test "$GCC" = yes; then |
15040 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
15041 | else |
15042 | archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
15043 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' |
15044 | fi |
15045 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
15046 | hardcode_libdir_separator_F77=: |
15047 | link_all_deplibs_F77=yes |
15048 | ;; |
15049 | |
15050 | netbsd*) |
15051 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
15052 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
15053 | else |
15054 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
15055 | fi |
15056 | hardcode_libdir_flag_spec_F77='-R$libdir' |
15057 | hardcode_direct_F77=yes |
15058 | hardcode_shlibpath_var_F77=no |
15059 | ;; |
15060 | |
15061 | newsos6) |
15062 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15063 | hardcode_direct_F77=yes |
15064 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
15065 | hardcode_libdir_separator_F77=: |
15066 | hardcode_shlibpath_var_F77=no |
15067 | ;; |
15068 | |
15069 | openbsd*) |
15070 | hardcode_direct_F77=yes |
15071 | hardcode_shlibpath_var_F77=no |
15072 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
15073 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
15074 | archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
15075 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
15076 | export_dynamic_flag_spec_F77='${wl}-E' |
15077 | else |
15078 | case $host_os in |
15079 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
15080 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
15081 | hardcode_libdir_flag_spec_F77='-R$libdir' |
15082 | ;; |
15083 | *) |
15084 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
15085 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
15086 | ;; |
15087 | esac |
15088 | fi |
15089 | ;; |
15090 | |
15091 | os2*) |
15092 | hardcode_libdir_flag_spec_F77='-L$libdir' |
15093 | hardcode_minus_L_F77=yes |
15094 | allow_undefined_flag_F77=unsupported |
15095 | archive_cmds_F77='$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' |
15096 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
15097 | ;; |
15098 | |
15099 | osf3*) |
15100 | if test "$GCC" = yes; then |
15101 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
15102 | archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
15103 | else |
15104 | allow_undefined_flag_F77=' -expect_unresolved \*' |
15105 | archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
15106 | fi |
15107 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
15108 | hardcode_libdir_separator_F77=: |
15109 | ;; |
15110 | |
15111 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
15112 | if test "$GCC" = yes; then |
15113 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
15114 | archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
15115 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
15116 | else |
15117 | allow_undefined_flag_F77=' -expect_unresolved \*' |
15118 | archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
15119 | archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
15120 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' |
15121 | |
15122 | # Both c and cxx compiler support -rpath directly |
15123 | hardcode_libdir_flag_spec_F77='-rpath $libdir' |
15124 | fi |
15125 | hardcode_libdir_separator_F77=: |
15126 | ;; |
15127 | |
15128 | solaris*) |
15129 | no_undefined_flag_F77=' -z text' |
15130 | if test "$GCC" = yes; then |
15131 | wlarc='${wl}' |
15132 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
15133 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
15134 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
15135 | else |
15136 | wlarc='' |
15137 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15138 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
15139 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
15140 | fi |
15141 | hardcode_libdir_flag_spec_F77='-R$libdir' |
15142 | hardcode_shlibpath_var_F77=no |
15143 | case $host_os in |
15144 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
15145 | *) |
15146 | # The compiler driver will combine linker options so we |
15147 | # cannot just pass the convience library names through |
15148 | # without $wl, iff we do not link with $LD. |
15149 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
15150 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
15151 | case $wlarc in |
15152 | '') |
15153 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; |
15154 | *) |
15155 | whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; |
15156 | esac ;; |
15157 | esac |
15158 | link_all_deplibs_F77=yes |
15159 | ;; |
15160 | |
15161 | sunos4*) |
15162 | if test "x$host_vendor" = xsequent; then |
15163 | # Use $CC to link under sequent, because it throws in some extra .o |
15164 | # files that make .init and .fini sections work. |
15165 | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
15166 | else |
15167 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
15168 | fi |
15169 | hardcode_libdir_flag_spec_F77='-L$libdir' |
15170 | hardcode_direct_F77=yes |
15171 | hardcode_minus_L_F77=yes |
15172 | hardcode_shlibpath_var_F77=no |
15173 | ;; |
15174 | |
15175 | sysv4) |
15176 | case $host_vendor in |
15177 | sni) |
15178 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15179 | hardcode_direct_F77=yes # is this really true??? |
15180 | ;; |
15181 | siemens) |
15182 | ## LD is ld it makes a PLAMLIB |
15183 | ## CC just makes a GrossModule. |
15184 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
15185 | reload_cmds_F77='$CC -r -o $output$reload_objs' |
15186 | hardcode_direct_F77=no |
15187 | ;; |
15188 | motorola) |
15189 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15190 | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie |
15191 | ;; |
15192 | esac |
15193 | runpath_var='LD_RUN_PATH' |
15194 | hardcode_shlibpath_var_F77=no |
15195 | ;; |
15196 | |
15197 | sysv4.3*) |
15198 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15199 | hardcode_shlibpath_var_F77=no |
15200 | export_dynamic_flag_spec_F77='-Bexport' |
15201 | ;; |
15202 | |
15203 | sysv4*MP*) |
15204 | if test -d /usr/nec; then |
15205 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15206 | hardcode_shlibpath_var_F77=no |
15207 | runpath_var=LD_RUN_PATH |
15208 | hardcode_runpath_var=yes |
15209 | ld_shlibs_F77=yes |
15210 | fi |
15211 | ;; |
15212 | |
15213 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
15214 | no_undefined_flag_F77='${wl}-z,text' |
15215 | archive_cmds_need_lc_F77=no |
15216 | hardcode_shlibpath_var_F77=no |
15217 | runpath_var='LD_RUN_PATH' |
15218 | |
15219 | if test "$GCC" = yes; then |
15220 | archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
15221 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
15222 | else |
15223 | archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
15224 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
15225 | fi |
15226 | ;; |
15227 | |
15228 | sysv5* | sco3.2v5* | sco5v6*) |
15229 | # Note: We can NOT use -z defs as we might desire, because we do not |
15230 | # link with -lc, and that would cause any symbols used from libc to |
15231 | # always be unresolved, which means just about no library would |
15232 | # ever link correctly. If we're not using GNU ld we use -z text |
15233 | # though, which does catch some bad symbols but isn't as heavy-handed |
15234 | # as -z defs. |
15235 | no_undefined_flag_F77='${wl}-z,text' |
15236 | allow_undefined_flag_F77='${wl}-z,nodefs' |
15237 | archive_cmds_need_lc_F77=no |
15238 | hardcode_shlibpath_var_F77=no |
15239 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
15240 | hardcode_libdir_separator_F77=':' |
15241 | link_all_deplibs_F77=yes |
15242 | export_dynamic_flag_spec_F77='${wl}-Bexport' |
15243 | runpath_var='LD_RUN_PATH' |
15244 | |
15245 | if test "$GCC" = yes; then |
15246 | archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
15247 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
15248 | else |
15249 | archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
15250 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
15251 | fi |
15252 | ;; |
15253 | |
15254 | uts4*) |
15255 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15256 | hardcode_libdir_flag_spec_F77='-L$libdir' |
15257 | hardcode_shlibpath_var_F77=no |
15258 | ;; |
15259 | |
15260 | *) |
15261 | ld_shlibs_F77=no |
15262 | ;; |
15263 | esac |
15264 | fi |
15265 | |
dd184caf |
15266 | { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 |
15267 | echo "${ECHO_T}$ld_shlibs_F77" >&6; } |
d9898ee8 |
15268 | test "$ld_shlibs_F77" = no && can_build_shared=no |
15269 | |
15270 | # |
15271 | # Do we need to explicitly link libc? |
15272 | # |
15273 | case "x$archive_cmds_need_lc_F77" in |
15274 | x|xyes) |
15275 | # Assume -lc should be added |
15276 | archive_cmds_need_lc_F77=yes |
15277 | |
15278 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
15279 | case $archive_cmds_F77 in |
15280 | *'~'*) |
15281 | # FIXME: we may have to deal with multi-command sequences. |
15282 | ;; |
15283 | '$CC '*) |
15284 | # Test whether the compiler implicitly links with -lc since on some |
15285 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
15286 | # to ld, don't add -lc before -lgcc. |
dd184caf |
15287 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
15288 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
d9898ee8 |
15289 | $rm conftest* |
15290 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
15291 | |
15292 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
15293 | (eval $ac_compile) 2>&5 |
15294 | ac_status=$? |
15295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15296 | (exit $ac_status); } 2>conftest.err; then |
15297 | soname=conftest |
15298 | lib=conftest |
15299 | libobjs=conftest.$ac_objext |
15300 | deplibs= |
15301 | wl=$lt_prog_compiler_wl_F77 |
15302 | pic_flag=$lt_prog_compiler_pic_F77 |
15303 | compiler_flags=-v |
15304 | linker_flags=-v |
15305 | verstring= |
15306 | output_objdir=. |
15307 | libname=conftest |
15308 | lt_save_allow_undefined_flag=$allow_undefined_flag_F77 |
15309 | allow_undefined_flag_F77= |
15310 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
15311 | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
15312 | ac_status=$? |
15313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15314 | (exit $ac_status); } |
15315 | then |
15316 | archive_cmds_need_lc_F77=no |
15317 | else |
15318 | archive_cmds_need_lc_F77=yes |
15319 | fi |
15320 | allow_undefined_flag_F77=$lt_save_allow_undefined_flag |
15321 | else |
15322 | cat conftest.err 1>&5 |
15323 | fi |
15324 | $rm conftest* |
dd184caf |
15325 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 |
15326 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } |
d9898ee8 |
15327 | ;; |
15328 | esac |
15329 | fi |
15330 | ;; |
15331 | esac |
15332 | |
dd184caf |
15333 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
15334 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
d9898ee8 |
15335 | library_names_spec= |
15336 | libname_spec='lib$name' |
15337 | soname_spec= |
15338 | shrext_cmds=".so" |
15339 | postinstall_cmds= |
15340 | postuninstall_cmds= |
15341 | finish_cmds= |
15342 | finish_eval= |
15343 | shlibpath_var= |
15344 | shlibpath_overrides_runpath=unknown |
15345 | version_type=none |
15346 | dynamic_linker="$host_os ld.so" |
15347 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
15348 | if test "$GCC" = yes; then |
15349 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
15350 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
15351 | # if the path contains ";" then we assume it to be the separator |
15352 | # otherwise default to the standard path separator (i.e. ":") - it is |
15353 | # assumed that no part of a normal pathname contains ";" but that should |
15354 | # okay in the real world where ";" in dirpaths is itself problematic. |
15355 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
15356 | else |
15357 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
15358 | fi |
15359 | else |
15360 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
15361 | fi |
15362 | need_lib_prefix=unknown |
15363 | hardcode_into_libs=no |
15364 | |
15365 | # when you set need_version to no, make sure it does not cause -set_version |
15366 | # flags to be left without arguments |
15367 | need_version=unknown |
15368 | |
15369 | case $host_os in |
15370 | aix3*) |
15371 | version_type=linux |
15372 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
15373 | shlibpath_var=LIBPATH |
15374 | |
15375 | # AIX 3 has no versioning support, so we append a major version to the name. |
15376 | soname_spec='${libname}${release}${shared_ext}$major' |
15377 | ;; |
15378 | |
15379 | aix4* | aix5*) |
15380 | version_type=linux |
15381 | need_lib_prefix=no |
15382 | need_version=no |
15383 | hardcode_into_libs=yes |
15384 | if test "$host_cpu" = ia64; then |
15385 | # AIX 5 supports IA64 |
15386 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
15387 | shlibpath_var=LD_LIBRARY_PATH |
15388 | else |
15389 | # With GCC up to 2.95.x, collect2 would create an import file |
15390 | # for dependence libraries. The import file would start with |
15391 | # the line `#! .'. This would cause the generated library to |
15392 | # depend on `.', always an invalid library. This was fixed in |
15393 | # development snapshots of GCC prior to 3.0. |
15394 | case $host_os in |
15395 | aix4 | aix4.[01] | aix4.[01].*) |
15396 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
15397 | echo ' yes ' |
15398 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
15399 | : |
15400 | else |
15401 | can_build_shared=no |
15402 | fi |
15403 | ;; |
15404 | esac |
15405 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
15406 | # soname into executable. Probably we can add versioning support to |
15407 | # collect2, so additional links can be useful in future. |
15408 | if test "$aix_use_runtimelinking" = yes; then |
15409 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
15410 | # instead of lib<name>.a to let people know that these are not |
15411 | # typical AIX shared libraries. |
15412 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15413 | else |
15414 | # We preserve .a as extension for shared libraries through AIX4.2 |
15415 | # and later when we are not doing run time linking. |
15416 | library_names_spec='${libname}${release}.a $libname.a' |
15417 | soname_spec='${libname}${release}${shared_ext}$major' |
15418 | fi |
15419 | shlibpath_var=LIBPATH |
15420 | fi |
15421 | ;; |
15422 | |
15423 | amigaos*) |
15424 | library_names_spec='$libname.ixlibrary $libname.a' |
15425 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
15426 | 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' |
15427 | ;; |
15428 | |
15429 | beos*) |
15430 | library_names_spec='${libname}${shared_ext}' |
15431 | dynamic_linker="$host_os ld.so" |
15432 | shlibpath_var=LIBRARY_PATH |
15433 | ;; |
15434 | |
15435 | bsdi[45]*) |
15436 | version_type=linux |
15437 | need_version=no |
15438 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15439 | soname_spec='${libname}${release}${shared_ext}$major' |
15440 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
15441 | shlibpath_var=LD_LIBRARY_PATH |
15442 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
15443 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
15444 | # the default ld.so.conf also contains /usr/contrib/lib and |
15445 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
15446 | # libtool to hard-code these into programs |
15447 | ;; |
15448 | |
15449 | cygwin* | mingw* | pw32*) |
15450 | version_type=windows |
15451 | shrext_cmds=".dll" |
15452 | need_version=no |
15453 | need_lib_prefix=no |
15454 | |
15455 | case $GCC,$host_os in |
15456 | yes,cygwin* | yes,mingw* | yes,pw32*) |
15457 | library_names_spec='$libname.dll.a' |
15458 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
15459 | postinstall_cmds='base_file=`basename \${file}`~ |
15460 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
15461 | dldir=$destdir/`dirname \$dlpath`~ |
15462 | test -d \$dldir || mkdir -p \$dldir~ |
15463 | $install_prog $dir/$dlname \$dldir/$dlname~ |
15464 | chmod a+x \$dldir/$dlname' |
15465 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
15466 | dlpath=$dir/\$dldll~ |
15467 | $rm \$dlpath' |
15468 | shlibpath_overrides_runpath=yes |
15469 | |
15470 | case $host_os in |
15471 | cygwin*) |
15472 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
15473 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
15474 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
15475 | ;; |
15476 | mingw*) |
15477 | # MinGW DLLs use traditional 'lib' prefix |
15478 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
15479 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
15480 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
15481 | # It is most probably a Windows format PATH printed by |
15482 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
15483 | # path with ; separators, and with drive letters. We can handle the |
15484 | # drive letters (cygwin fileutils understands them), so leave them, |
15485 | # especially as we might pass files found there to a mingw objdump, |
15486 | # which wouldn't understand a cygwinified path. Ahh. |
15487 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
15488 | else |
15489 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
15490 | fi |
15491 | ;; |
15492 | pw32*) |
15493 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
15494 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
15495 | ;; |
15496 | esac |
15497 | ;; |
15498 | |
15499 | *) |
15500 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
15501 | ;; |
15502 | esac |
15503 | dynamic_linker='Win32 ld.exe' |
15504 | # FIXME: first we should search . and the directory the executable is in |
15505 | shlibpath_var=PATH |
15506 | ;; |
15507 | |
15508 | darwin* | rhapsody*) |
15509 | dynamic_linker="$host_os dyld" |
15510 | version_type=darwin |
15511 | need_lib_prefix=no |
15512 | need_version=no |
15513 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
15514 | soname_spec='${libname}${release}${major}$shared_ext' |
15515 | shlibpath_overrides_runpath=yes |
15516 | shlibpath_var=DYLD_LIBRARY_PATH |
15517 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
15518 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
15519 | if test "$GCC" = yes; then |
15520 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
15521 | else |
15522 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
15523 | fi |
15524 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
15525 | ;; |
15526 | |
15527 | dgux*) |
15528 | version_type=linux |
15529 | need_lib_prefix=no |
15530 | need_version=no |
15531 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
15532 | soname_spec='${libname}${release}${shared_ext}$major' |
15533 | shlibpath_var=LD_LIBRARY_PATH |
15534 | ;; |
15535 | |
15536 | freebsd1*) |
15537 | dynamic_linker=no |
15538 | ;; |
15539 | |
15540 | kfreebsd*-gnu) |
15541 | version_type=linux |
15542 | need_lib_prefix=no |
15543 | need_version=no |
15544 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
15545 | soname_spec='${libname}${release}${shared_ext}$major' |
15546 | shlibpath_var=LD_LIBRARY_PATH |
15547 | shlibpath_overrides_runpath=no |
15548 | hardcode_into_libs=yes |
15549 | dynamic_linker='GNU ld.so' |
15550 | ;; |
15551 | |
15552 | freebsd* | dragonfly*) |
15553 | # DragonFly does not have aout. When/if they implement a new |
15554 | # versioning mechanism, adjust this. |
15555 | if test -x /usr/bin/objformat; then |
15556 | objformat=`/usr/bin/objformat` |
15557 | else |
15558 | case $host_os in |
15559 | freebsd[123]*) objformat=aout ;; |
15560 | *) objformat=elf ;; |
15561 | esac |
15562 | fi |
15563 | version_type=freebsd-$objformat |
15564 | case $version_type in |
15565 | freebsd-elf*) |
15566 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
15567 | need_version=no |
15568 | need_lib_prefix=no |
15569 | ;; |
15570 | freebsd-*) |
15571 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
15572 | need_version=yes |
15573 | ;; |
15574 | esac |
15575 | shlibpath_var=LD_LIBRARY_PATH |
15576 | case $host_os in |
15577 | freebsd2*) |
15578 | shlibpath_overrides_runpath=yes |
15579 | ;; |
15580 | freebsd3.[01]* | freebsdelf3.[01]*) |
15581 | shlibpath_overrides_runpath=yes |
15582 | hardcode_into_libs=yes |
15583 | ;; |
15584 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
15585 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
15586 | shlibpath_overrides_runpath=no |
15587 | hardcode_into_libs=yes |
15588 | ;; |
15589 | freebsd*) # from 4.6 on |
15590 | shlibpath_overrides_runpath=yes |
15591 | hardcode_into_libs=yes |
15592 | ;; |
15593 | esac |
15594 | ;; |
15595 | |
15596 | gnu*) |
15597 | version_type=linux |
15598 | need_lib_prefix=no |
15599 | need_version=no |
15600 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
15601 | soname_spec='${libname}${release}${shared_ext}$major' |
15602 | shlibpath_var=LD_LIBRARY_PATH |
15603 | hardcode_into_libs=yes |
15604 | ;; |
15605 | |
15606 | hpux9* | hpux10* | hpux11*) |
15607 | # Give a soname corresponding to the major version so that dld.sl refuses to |
15608 | # link against other versions. |
15609 | version_type=sunos |
15610 | need_lib_prefix=no |
15611 | need_version=no |
15612 | case $host_cpu in |
15613 | ia64*) |
15614 | shrext_cmds='.so' |
15615 | hardcode_into_libs=yes |
15616 | dynamic_linker="$host_os dld.so" |
15617 | shlibpath_var=LD_LIBRARY_PATH |
15618 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
15619 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15620 | soname_spec='${libname}${release}${shared_ext}$major' |
15621 | if test "X$HPUX_IA64_MODE" = X32; then |
15622 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
15623 | else |
15624 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
15625 | fi |
15626 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
15627 | ;; |
15628 | hppa*64*) |
15629 | shrext_cmds='.sl' |
15630 | hardcode_into_libs=yes |
15631 | dynamic_linker="$host_os dld.sl" |
15632 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
15633 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
15634 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15635 | soname_spec='${libname}${release}${shared_ext}$major' |
15636 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
15637 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
15638 | ;; |
15639 | *) |
15640 | shrext_cmds='.sl' |
15641 | dynamic_linker="$host_os dld.sl" |
15642 | shlibpath_var=SHLIB_PATH |
15643 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
15644 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15645 | soname_spec='${libname}${release}${shared_ext}$major' |
15646 | ;; |
15647 | esac |
15648 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
15649 | postinstall_cmds='chmod 555 $lib' |
15650 | ;; |
15651 | |
15652 | interix3*) |
15653 | version_type=linux |
15654 | need_lib_prefix=no |
15655 | need_version=no |
15656 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
15657 | soname_spec='${libname}${release}${shared_ext}$major' |
15658 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
15659 | shlibpath_var=LD_LIBRARY_PATH |
15660 | shlibpath_overrides_runpath=no |
15661 | hardcode_into_libs=yes |
15662 | ;; |
15663 | |
15664 | irix5* | irix6* | nonstopux*) |
15665 | case $host_os in |
15666 | nonstopux*) version_type=nonstopux ;; |
15667 | *) |
15668 | if test "$lt_cv_prog_gnu_ld" = yes; then |
15669 | version_type=linux |
15670 | else |
15671 | version_type=irix |
15672 | fi ;; |
15673 | esac |
15674 | need_lib_prefix=no |
15675 | need_version=no |
15676 | soname_spec='${libname}${release}${shared_ext}$major' |
15677 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
15678 | case $host_os in |
15679 | irix5* | nonstopux*) |
15680 | libsuff= shlibsuff= |
15681 | ;; |
15682 | *) |
15683 | case $LD in # libtool.m4 will add one of these switches to LD |
15684 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
15685 | libsuff= shlibsuff= libmagic=32-bit;; |
15686 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
15687 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
15688 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
15689 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
15690 | *) libsuff= shlibsuff= libmagic=never-match;; |
15691 | esac |
15692 | ;; |
15693 | esac |
15694 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
15695 | shlibpath_overrides_runpath=no |
15696 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
15697 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
15698 | hardcode_into_libs=yes |
15699 | ;; |
15700 | |
15701 | # No shared lib support for Linux oldld, aout, or coff. |
15702 | linux*oldld* | linux*aout* | linux*coff*) |
15703 | dynamic_linker=no |
15704 | ;; |
15705 | |
15706 | # This must be Linux ELF. |
15707 | linux*) |
15708 | version_type=linux |
15709 | need_lib_prefix=no |
15710 | need_version=no |
15711 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15712 | soname_spec='${libname}${release}${shared_ext}$major' |
15713 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
15714 | shlibpath_var=LD_LIBRARY_PATH |
15715 | shlibpath_overrides_runpath=no |
15716 | # This implies no fast_install, which is unacceptable. |
15717 | # Some rework will be needed to allow for fast_install |
15718 | # before this can be enabled. |
15719 | hardcode_into_libs=yes |
15720 | |
15721 | # find out which ABI we are using |
15722 | libsuff= |
15723 | case "$host_cpu" in |
15724 | x86_64*|s390x*|powerpc64*) |
dd184caf |
15725 | echo '#line 15725 "configure"' > conftest.$ac_ext |
d9898ee8 |
15726 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
15727 | (eval $ac_compile) 2>&5 |
15728 | ac_status=$? |
15729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15730 | (exit $ac_status); }; then |
15731 | case `/usr/bin/file conftest.$ac_objext` in |
15732 | *64-bit*) |
15733 | libsuff=64 |
15734 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" |
15735 | ;; |
15736 | esac |
15737 | fi |
15738 | rm -rf conftest* |
15739 | ;; |
15740 | esac |
15741 | |
15742 | # Append ld.so.conf contents to the search path |
15743 | if test -f /etc/ld.so.conf; then |
dd184caf |
15744 | 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/#.*//;/^[^\/]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
d9898ee8 |
15745 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" |
15746 | fi |
15747 | |
15748 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
15749 | # powerpc, because MkLinux only supported shared libraries with the |
15750 | # GNU dynamic linker. Since this was broken with cross compilers, |
15751 | # most powerpc-linux boxes support dynamic linking these days and |
15752 | # people can always --disable-shared, the test was removed, and we |
15753 | # assume the GNU/Linux dynamic linker is in use. |
15754 | dynamic_linker='GNU/Linux ld.so' |
15755 | ;; |
15756 | |
15757 | knetbsd*-gnu) |
15758 | version_type=linux |
15759 | need_lib_prefix=no |
15760 | need_version=no |
15761 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
15762 | soname_spec='${libname}${release}${shared_ext}$major' |
15763 | shlibpath_var=LD_LIBRARY_PATH |
15764 | shlibpath_overrides_runpath=no |
15765 | hardcode_into_libs=yes |
15766 | dynamic_linker='GNU ld.so' |
15767 | ;; |
15768 | |
15769 | netbsd*) |
15770 | version_type=sunos |
15771 | need_lib_prefix=no |
15772 | need_version=no |
15773 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
15774 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
15775 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
15776 | dynamic_linker='NetBSD (a.out) ld.so' |
15777 | else |
15778 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
15779 | soname_spec='${libname}${release}${shared_ext}$major' |
15780 | dynamic_linker='NetBSD ld.elf_so' |
15781 | fi |
15782 | shlibpath_var=LD_LIBRARY_PATH |
15783 | shlibpath_overrides_runpath=yes |
15784 | hardcode_into_libs=yes |
15785 | ;; |
15786 | |
15787 | newsos6) |
15788 | version_type=linux |
15789 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15790 | shlibpath_var=LD_LIBRARY_PATH |
15791 | shlibpath_overrides_runpath=yes |
15792 | ;; |
15793 | |
15794 | nto-qnx*) |
15795 | version_type=linux |
15796 | need_lib_prefix=no |
15797 | need_version=no |
15798 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15799 | soname_spec='${libname}${release}${shared_ext}$major' |
15800 | shlibpath_var=LD_LIBRARY_PATH |
15801 | shlibpath_overrides_runpath=yes |
15802 | ;; |
15803 | |
15804 | openbsd*) |
15805 | version_type=sunos |
15806 | sys_lib_dlsearch_path_spec="/usr/lib" |
15807 | need_lib_prefix=no |
15808 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
15809 | case $host_os in |
15810 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
15811 | *) need_version=no ;; |
15812 | esac |
15813 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
15814 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
15815 | shlibpath_var=LD_LIBRARY_PATH |
15816 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
15817 | case $host_os in |
15818 | openbsd2.[89] | openbsd2.[89].*) |
15819 | shlibpath_overrides_runpath=no |
15820 | ;; |
15821 | *) |
15822 | shlibpath_overrides_runpath=yes |
15823 | ;; |
15824 | esac |
15825 | else |
15826 | shlibpath_overrides_runpath=yes |
15827 | fi |
15828 | ;; |
15829 | |
15830 | os2*) |
15831 | libname_spec='$name' |
15832 | shrext_cmds=".dll" |
15833 | need_lib_prefix=no |
15834 | library_names_spec='$libname${shared_ext} $libname.a' |
15835 | dynamic_linker='OS/2 ld.exe' |
15836 | shlibpath_var=LIBPATH |
15837 | ;; |
15838 | |
15839 | osf3* | osf4* | osf5*) |
15840 | version_type=osf |
15841 | need_lib_prefix=no |
15842 | need_version=no |
15843 | soname_spec='${libname}${release}${shared_ext}$major' |
15844 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15845 | shlibpath_var=LD_LIBRARY_PATH |
15846 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
15847 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
15848 | ;; |
15849 | |
15850 | solaris*) |
15851 | version_type=linux |
15852 | need_lib_prefix=no |
15853 | need_version=no |
15854 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15855 | soname_spec='${libname}${release}${shared_ext}$major' |
15856 | shlibpath_var=LD_LIBRARY_PATH |
15857 | shlibpath_overrides_runpath=yes |
15858 | hardcode_into_libs=yes |
15859 | # ldd complains unless libraries are executable |
15860 | postinstall_cmds='chmod +x $lib' |
15861 | ;; |
15862 | |
15863 | sunos4*) |
15864 | version_type=sunos |
15865 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
15866 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
15867 | shlibpath_var=LD_LIBRARY_PATH |
15868 | shlibpath_overrides_runpath=yes |
15869 | if test "$with_gnu_ld" = yes; then |
15870 | need_lib_prefix=no |
15871 | fi |
15872 | need_version=yes |
15873 | ;; |
15874 | |
15875 | sysv4 | sysv4.3*) |
15876 | version_type=linux |
15877 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15878 | soname_spec='${libname}${release}${shared_ext}$major' |
15879 | shlibpath_var=LD_LIBRARY_PATH |
15880 | case $host_vendor in |
15881 | sni) |
15882 | shlibpath_overrides_runpath=no |
15883 | need_lib_prefix=no |
15884 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
15885 | runpath_var=LD_RUN_PATH |
15886 | ;; |
15887 | siemens) |
15888 | need_lib_prefix=no |
15889 | ;; |
15890 | motorola) |
15891 | need_lib_prefix=no |
15892 | need_version=no |
15893 | shlibpath_overrides_runpath=no |
15894 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
15895 | ;; |
15896 | esac |
15897 | ;; |
15898 | |
15899 | sysv4*MP*) |
15900 | if test -d /usr/nec ;then |
15901 | version_type=linux |
15902 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
15903 | soname_spec='$libname${shared_ext}.$major' |
15904 | shlibpath_var=LD_LIBRARY_PATH |
15905 | fi |
15906 | ;; |
15907 | |
15908 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
15909 | version_type=freebsd-elf |
15910 | need_lib_prefix=no |
15911 | need_version=no |
15912 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
15913 | soname_spec='${libname}${release}${shared_ext}$major' |
15914 | shlibpath_var=LD_LIBRARY_PATH |
15915 | hardcode_into_libs=yes |
15916 | if test "$with_gnu_ld" = yes; then |
15917 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
15918 | shlibpath_overrides_runpath=no |
15919 | else |
15920 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
15921 | shlibpath_overrides_runpath=yes |
15922 | case $host_os in |
15923 | sco3.2v5*) |
15924 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
15925 | ;; |
15926 | esac |
15927 | fi |
15928 | sys_lib_dlsearch_path_spec='/usr/lib' |
15929 | ;; |
15930 | |
15931 | uts4*) |
15932 | version_type=linux |
15933 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15934 | soname_spec='${libname}${release}${shared_ext}$major' |
15935 | shlibpath_var=LD_LIBRARY_PATH |
15936 | ;; |
15937 | |
15938 | *) |
15939 | dynamic_linker=no |
15940 | ;; |
15941 | esac |
dd184caf |
15942 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
15943 | echo "${ECHO_T}$dynamic_linker" >&6; } |
d9898ee8 |
15944 | test "$dynamic_linker" = no && can_build_shared=no |
15945 | |
15946 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
15947 | if test "$GCC" = yes; then |
15948 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
15949 | fi |
15950 | |
dd184caf |
15951 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
15952 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
d9898ee8 |
15953 | hardcode_action_F77= |
15954 | if test -n "$hardcode_libdir_flag_spec_F77" || \ |
15955 | test -n "$runpath_var_F77" || \ |
15956 | test "X$hardcode_automatic_F77" = "Xyes" ; then |
15957 | |
15958 | # We can hardcode non-existant directories. |
15959 | if test "$hardcode_direct_F77" != no && |
15960 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
15961 | # have to relink, otherwise we might link with an installed library |
15962 | # when we should be linking with a yet-to-be-installed one |
15963 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && |
15964 | test "$hardcode_minus_L_F77" != no; then |
15965 | # Linking always hardcodes the temporary library directory. |
15966 | hardcode_action_F77=relink |
15967 | else |
15968 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
15969 | hardcode_action_F77=immediate |
15970 | fi |
15971 | else |
15972 | # We cannot hardcode anything, or else we can only hardcode existing |
15973 | # directories. |
15974 | hardcode_action_F77=unsupported |
15975 | fi |
dd184caf |
15976 | { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 |
15977 | echo "${ECHO_T}$hardcode_action_F77" >&6; } |
d9898ee8 |
15978 | |
15979 | if test "$hardcode_action_F77" = relink; then |
15980 | # Fast installation is not supported |
15981 | enable_fast_install=no |
15982 | elif test "$shlibpath_overrides_runpath" = yes || |
15983 | test "$enable_shared" = no; then |
15984 | # Fast installation is not necessary |
15985 | enable_fast_install=needless |
15986 | fi |
15987 | |
15988 | |
15989 | # The else clause should only fire when bootstrapping the |
15990 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
15991 | # with your package, and you will get complaints that there are |
15992 | # no rules to generate ltmain.sh. |
15993 | if test -f "$ltmain"; then |
15994 | # See if we are running on zsh, and set the options which allow our commands through |
15995 | # without removal of \ escapes. |
15996 | if test -n "${ZSH_VERSION+set}" ; then |
15997 | setopt NO_GLOB_SUBST |
15998 | fi |
15999 | # Now quote all the things that may contain metacharacters while being |
16000 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
16001 | # variables and quote the copies for generation of the libtool script. |
16002 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
16003 | SED SHELL STRIP \ |
16004 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
16005 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
16006 | deplibs_check_method reload_flag reload_cmds need_locks \ |
16007 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
16008 | lt_cv_sys_global_symbol_to_c_name_address \ |
16009 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
16010 | old_postinstall_cmds old_postuninstall_cmds \ |
16011 | compiler_F77 \ |
16012 | CC_F77 \ |
16013 | LD_F77 \ |
16014 | lt_prog_compiler_wl_F77 \ |
16015 | lt_prog_compiler_pic_F77 \ |
16016 | lt_prog_compiler_static_F77 \ |
16017 | lt_prog_compiler_no_builtin_flag_F77 \ |
16018 | export_dynamic_flag_spec_F77 \ |
16019 | thread_safe_flag_spec_F77 \ |
16020 | whole_archive_flag_spec_F77 \ |
16021 | enable_shared_with_static_runtimes_F77 \ |
16022 | old_archive_cmds_F77 \ |
16023 | old_archive_from_new_cmds_F77 \ |
16024 | predep_objects_F77 \ |
16025 | postdep_objects_F77 \ |
16026 | predeps_F77 \ |
16027 | postdeps_F77 \ |
16028 | compiler_lib_search_path_F77 \ |
16029 | archive_cmds_F77 \ |
16030 | archive_expsym_cmds_F77 \ |
16031 | postinstall_cmds_F77 \ |
16032 | postuninstall_cmds_F77 \ |
16033 | old_archive_from_expsyms_cmds_F77 \ |
16034 | allow_undefined_flag_F77 \ |
16035 | no_undefined_flag_F77 \ |
16036 | export_symbols_cmds_F77 \ |
16037 | hardcode_libdir_flag_spec_F77 \ |
16038 | hardcode_libdir_flag_spec_ld_F77 \ |
16039 | hardcode_libdir_separator_F77 \ |
16040 | hardcode_automatic_F77 \ |
16041 | module_cmds_F77 \ |
16042 | module_expsym_cmds_F77 \ |
16043 | lt_cv_prog_compiler_c_o_F77 \ |
16044 | exclude_expsyms_F77 \ |
16045 | include_expsyms_F77; do |
16046 | |
16047 | case $var in |
16048 | old_archive_cmds_F77 | \ |
16049 | old_archive_from_new_cmds_F77 | \ |
16050 | archive_cmds_F77 | \ |
16051 | archive_expsym_cmds_F77 | \ |
16052 | module_cmds_F77 | \ |
16053 | module_expsym_cmds_F77 | \ |
16054 | old_archive_from_expsyms_cmds_F77 | \ |
16055 | export_symbols_cmds_F77 | \ |
16056 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
16057 | postinstall_cmds | postuninstall_cmds | \ |
16058 | old_postinstall_cmds | old_postuninstall_cmds | \ |
16059 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
16060 | # Double-quote double-evaled strings. |
16061 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
16062 | ;; |
16063 | *) |
16064 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
16065 | ;; |
16066 | esac |
16067 | done |
16068 | |
16069 | case $lt_echo in |
16070 | *'\$0 --fallback-echo"') |
16071 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
16072 | ;; |
16073 | esac |
16074 | |
16075 | cfgfile="$ofile" |
16076 | |
16077 | cat <<__EOF__ >> "$cfgfile" |
16078 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
16079 | |
16080 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
16081 | |
16082 | # Shell to use when invoking shell scripts. |
16083 | SHELL=$lt_SHELL |
16084 | |
16085 | # Whether or not to build shared libraries. |
16086 | build_libtool_libs=$enable_shared |
16087 | |
16088 | # Whether or not to build static libraries. |
16089 | build_old_libs=$enable_static |
16090 | |
16091 | # Whether or not to add -lc for building shared libraries. |
16092 | build_libtool_need_lc=$archive_cmds_need_lc_F77 |
16093 | |
16094 | # Whether or not to disallow shared libs when runtime libs are static |
16095 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 |
16096 | |
16097 | # Whether or not to optimize for fast installation. |
16098 | fast_install=$enable_fast_install |
16099 | |
16100 | # The host system. |
16101 | host_alias=$host_alias |
16102 | host=$host |
16103 | host_os=$host_os |
16104 | |
16105 | # The build system. |
16106 | build_alias=$build_alias |
16107 | build=$build |
16108 | build_os=$build_os |
16109 | |
16110 | # An echo program that does not interpret backslashes. |
16111 | echo=$lt_echo |
16112 | |
16113 | # The archiver. |
16114 | AR=$lt_AR |
16115 | AR_FLAGS=$lt_AR_FLAGS |
16116 | |
16117 | # A C compiler. |
16118 | LTCC=$lt_LTCC |
16119 | |
16120 | # LTCC compiler flags. |
16121 | LTCFLAGS=$lt_LTCFLAGS |
16122 | |
16123 | # A language-specific compiler. |
16124 | CC=$lt_compiler_F77 |
16125 | |
16126 | # Is the compiler the GNU C compiler? |
16127 | with_gcc=$GCC_F77 |
16128 | |
d9898ee8 |
16129 | # An ERE matcher. |
16130 | EGREP=$lt_EGREP |
16131 | |
16132 | # The linker used to build libraries. |
16133 | LD=$lt_LD_F77 |
16134 | |
16135 | # Whether we need hard or soft links. |
16136 | LN_S=$lt_LN_S |
16137 | |
16138 | # A BSD-compatible nm program. |
16139 | NM=$lt_NM |
16140 | |
16141 | # A symbol stripping program |
16142 | STRIP=$lt_STRIP |
16143 | |
16144 | # Used to examine libraries when file_magic_cmd begins "file" |
16145 | MAGIC_CMD=$MAGIC_CMD |
16146 | |
16147 | # Used on cygwin: DLL creation program. |
16148 | DLLTOOL="$DLLTOOL" |
16149 | |
16150 | # Used on cygwin: object dumper. |
16151 | OBJDUMP="$OBJDUMP" |
16152 | |
16153 | # Used on cygwin: assembler. |
16154 | AS="$AS" |
16155 | |
16156 | # The name of the directory that contains temporary libtool files. |
16157 | objdir=$objdir |
16158 | |
16159 | # How to create reloadable object files. |
16160 | reload_flag=$lt_reload_flag |
16161 | reload_cmds=$lt_reload_cmds |
16162 | |
16163 | # How to pass a linker flag through the compiler. |
16164 | wl=$lt_lt_prog_compiler_wl_F77 |
16165 | |
16166 | # Object file suffix (normally "o"). |
16167 | objext="$ac_objext" |
16168 | |
16169 | # Old archive suffix (normally "a"). |
16170 | libext="$libext" |
16171 | |
16172 | # Shared library suffix (normally ".so"). |
16173 | shrext_cmds='$shrext_cmds' |
16174 | |
16175 | # Executable file suffix (normally ""). |
16176 | exeext="$exeext" |
16177 | |
16178 | # Additional compiler flags for building library objects. |
16179 | pic_flag=$lt_lt_prog_compiler_pic_F77 |
16180 | pic_mode=$pic_mode |
16181 | |
16182 | # What is the maximum length of a command? |
16183 | max_cmd_len=$lt_cv_sys_max_cmd_len |
16184 | |
16185 | # Does compiler simultaneously support -c and -o options? |
16186 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 |
16187 | |
16188 | # Must we lock files when doing compilation? |
16189 | need_locks=$lt_need_locks |
16190 | |
16191 | # Do we need the lib prefix for modules? |
16192 | need_lib_prefix=$need_lib_prefix |
16193 | |
16194 | # Do we need a version for libraries? |
16195 | need_version=$need_version |
16196 | |
16197 | # Whether dlopen is supported. |
16198 | dlopen_support=$enable_dlopen |
16199 | |
16200 | # Whether dlopen of programs is supported. |
16201 | dlopen_self=$enable_dlopen_self |
16202 | |
16203 | # Whether dlopen of statically linked programs is supported. |
16204 | dlopen_self_static=$enable_dlopen_self_static |
16205 | |
16206 | # Compiler flag to prevent dynamic linking. |
16207 | link_static_flag=$lt_lt_prog_compiler_static_F77 |
16208 | |
16209 | # Compiler flag to turn off builtin functions. |
16210 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 |
16211 | |
16212 | # Compiler flag to allow reflexive dlopens. |
16213 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 |
16214 | |
16215 | # Compiler flag to generate shared objects directly from archives. |
16216 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 |
16217 | |
16218 | # Compiler flag to generate thread-safe objects. |
16219 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 |
16220 | |
16221 | # Library versioning type. |
16222 | version_type=$version_type |
16223 | |
16224 | # Format of library name prefix. |
16225 | libname_spec=$lt_libname_spec |
16226 | |
16227 | # List of archive names. First name is the real one, the rest are links. |
16228 | # The last name is the one that the linker finds with -lNAME. |
16229 | library_names_spec=$lt_library_names_spec |
16230 | |
16231 | # The coded name of the library, if different from the real name. |
16232 | soname_spec=$lt_soname_spec |
16233 | |
16234 | # Commands used to build and install an old-style archive. |
16235 | RANLIB=$lt_RANLIB |
16236 | old_archive_cmds=$lt_old_archive_cmds_F77 |
16237 | old_postinstall_cmds=$lt_old_postinstall_cmds |
16238 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
16239 | |
16240 | # Create an old-style archive from a shared archive. |
16241 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 |
16242 | |
16243 | # Create a temporary old-style archive to link instead of a shared archive. |
16244 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 |
16245 | |
16246 | # Commands used to build and install a shared archive. |
16247 | archive_cmds=$lt_archive_cmds_F77 |
16248 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 |
16249 | postinstall_cmds=$lt_postinstall_cmds |
16250 | postuninstall_cmds=$lt_postuninstall_cmds |
16251 | |
16252 | # Commands used to build a loadable module (assumed same as above if empty) |
16253 | module_cmds=$lt_module_cmds_F77 |
16254 | module_expsym_cmds=$lt_module_expsym_cmds_F77 |
16255 | |
16256 | # Commands to strip libraries. |
16257 | old_striplib=$lt_old_striplib |
16258 | striplib=$lt_striplib |
16259 | |
16260 | # Dependencies to place before the objects being linked to create a |
16261 | # shared library. |
dd184caf |
16262 | predep_objects=$lt_predep_objects_F77 |
d9898ee8 |
16263 | |
16264 | # Dependencies to place after the objects being linked to create a |
16265 | # shared library. |
dd184caf |
16266 | postdep_objects=$lt_postdep_objects_F77 |
d9898ee8 |
16267 | |
16268 | # Dependencies to place before the objects being linked to create a |
16269 | # shared library. |
16270 | predeps=$lt_predeps_F77 |
16271 | |
16272 | # Dependencies to place after the objects being linked to create a |
16273 | # shared library. |
16274 | postdeps=$lt_postdeps_F77 |
16275 | |
16276 | # The library search path used internally by the compiler when linking |
16277 | # a shared library. |
dd184caf |
16278 | compiler_lib_search_path=$lt_compiler_lib_search_path_F77 |
d9898ee8 |
16279 | |
16280 | # Method to check whether dependent libraries are shared objects. |
16281 | deplibs_check_method=$lt_deplibs_check_method |
16282 | |
16283 | # Command to use when deplibs_check_method == file_magic. |
16284 | file_magic_cmd=$lt_file_magic_cmd |
16285 | |
16286 | # Flag that allows shared libraries with undefined symbols to be built. |
16287 | allow_undefined_flag=$lt_allow_undefined_flag_F77 |
16288 | |
16289 | # Flag that forces no undefined symbols. |
16290 | no_undefined_flag=$lt_no_undefined_flag_F77 |
16291 | |
16292 | # Commands used to finish a libtool library installation in a directory. |
16293 | finish_cmds=$lt_finish_cmds |
16294 | |
16295 | # Same as above, but a single script fragment to be evaled but not shown. |
16296 | finish_eval=$lt_finish_eval |
16297 | |
16298 | # Take the output of nm and produce a listing of raw symbols and C names. |
16299 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
16300 | |
16301 | # Transform the output of nm in a proper C declaration |
16302 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
16303 | |
16304 | # Transform the output of nm in a C name address pair |
16305 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
16306 | |
16307 | # This is the shared library runtime path variable. |
16308 | runpath_var=$runpath_var |
16309 | |
16310 | # This is the shared library path variable. |
16311 | shlibpath_var=$shlibpath_var |
16312 | |
16313 | # Is shlibpath searched before the hard-coded library search path? |
16314 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
16315 | |
16316 | # How to hardcode a shared library path into an executable. |
16317 | hardcode_action=$hardcode_action_F77 |
16318 | |
16319 | # Whether we should hardcode library paths into libraries. |
16320 | hardcode_into_libs=$hardcode_into_libs |
16321 | |
16322 | # Flag to hardcode \$libdir into a binary during linking. |
16323 | # This must work even if \$libdir does not exist. |
16324 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 |
16325 | |
16326 | # If ld is used when linking, flag to hardcode \$libdir into |
16327 | # a binary during linking. This must work even if \$libdir does |
16328 | # not exist. |
16329 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 |
16330 | |
16331 | # Whether we need a single -rpath flag with a separated argument. |
16332 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 |
16333 | |
16334 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
16335 | # resulting binary. |
16336 | hardcode_direct=$hardcode_direct_F77 |
16337 | |
16338 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
16339 | # resulting binary. |
16340 | hardcode_minus_L=$hardcode_minus_L_F77 |
16341 | |
16342 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
16343 | # the resulting binary. |
16344 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 |
16345 | |
16346 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
16347 | # and all subsequent libraries and executables linked against it. |
16348 | hardcode_automatic=$hardcode_automatic_F77 |
16349 | |
16350 | # Variables whose values should be saved in libtool wrapper scripts and |
16351 | # restored at relink time. |
16352 | variables_saved_for_relink="$variables_saved_for_relink" |
16353 | |
16354 | # Whether libtool must link a program against all its dependency libraries. |
16355 | link_all_deplibs=$link_all_deplibs_F77 |
16356 | |
16357 | # Compile-time system search path for libraries |
dd184caf |
16358 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
d9898ee8 |
16359 | |
16360 | # Run-time system search path for libraries |
16361 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
16362 | |
16363 | # Fix the shell variable \$srcfile for the compiler. |
16364 | fix_srcfile_path="$fix_srcfile_path_F77" |
16365 | |
16366 | # Set to yes if exported symbols are required. |
16367 | always_export_symbols=$always_export_symbols_F77 |
16368 | |
16369 | # The commands to list exported symbols. |
16370 | export_symbols_cmds=$lt_export_symbols_cmds_F77 |
16371 | |
16372 | # The commands to extract the exported symbol list from a shared archive. |
16373 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
16374 | |
16375 | # Symbols that should not be listed in the preloaded symbols. |
16376 | exclude_expsyms=$lt_exclude_expsyms_F77 |
16377 | |
16378 | # Symbols that must always be exported. |
16379 | include_expsyms=$lt_include_expsyms_F77 |
16380 | |
16381 | # ### END LIBTOOL TAG CONFIG: $tagname |
16382 | |
16383 | __EOF__ |
16384 | |
16385 | |
16386 | else |
16387 | # If there is no Makefile yet, we rely on a make rule to execute |
16388 | # `config.status --recheck' to rerun these tests and create the |
16389 | # libtool script then. |
16390 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
16391 | if test -f "$ltmain_in"; then |
16392 | test -f Makefile && make "$ltmain" |
16393 | fi |
16394 | fi |
16395 | |
16396 | |
16397 | ac_ext=c |
16398 | ac_cpp='$CPP $CPPFLAGS' |
16399 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
16400 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
16401 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
16402 | |
16403 | CC="$lt_save_CC" |
16404 | |
16405 | else |
16406 | tagname="" |
16407 | fi |
16408 | ;; |
16409 | |
16410 | GCJ) |
16411 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
16412 | |
16413 | |
d9898ee8 |
16414 | # Source file extension for Java test sources. |
16415 | ac_ext=java |
16416 | |
16417 | # Object file extension for compiled Java test sources. |
16418 | objext=o |
16419 | objext_GCJ=$objext |
16420 | |
16421 | # Code to be used in simple compile tests |
16422 | lt_simple_compile_test_code="class foo {}\n" |
16423 | |
16424 | # Code to be used in simple link tests |
16425 | lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' |
16426 | |
16427 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
16428 | |
16429 | # If no C compiler was specified, use CC. |
16430 | LTCC=${LTCC-"$CC"} |
16431 | |
16432 | # If no C compiler flags were specified, use CFLAGS. |
16433 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
16434 | |
16435 | # Allow CC to be a program name with arguments. |
16436 | compiler=$CC |
16437 | |
16438 | |
16439 | # save warnings/boilerplate of simple test code |
16440 | ac_outfile=conftest.$ac_objext |
16441 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
16442 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
16443 | _lt_compiler_boilerplate=`cat conftest.err` |
16444 | $rm conftest* |
16445 | |
16446 | ac_outfile=conftest.$ac_objext |
16447 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
16448 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
16449 | _lt_linker_boilerplate=`cat conftest.err` |
16450 | $rm conftest* |
16451 | |
16452 | |
16453 | # Allow CC to be a program name with arguments. |
16454 | lt_save_CC="$CC" |
16455 | CC=${GCJ-"gcj"} |
16456 | compiler=$CC |
16457 | compiler_GCJ=$CC |
16458 | for cc_temp in $compiler""; do |
16459 | case $cc_temp in |
16460 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
16461 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
16462 | \-*) ;; |
16463 | *) break;; |
16464 | esac |
16465 | done |
16466 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
16467 | |
16468 | |
16469 | # GCJ did not exist at the time GCC didn't implicitly link libc in. |
16470 | archive_cmds_need_lc_GCJ=no |
16471 | |
16472 | old_archive_cmds_GCJ=$old_archive_cmds |
16473 | |
16474 | |
16475 | lt_prog_compiler_no_builtin_flag_GCJ= |
16476 | |
16477 | if test "$GCC" = yes; then |
16478 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' |
16479 | |
16480 | |
dd184caf |
16481 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
16482 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } |
d9898ee8 |
16483 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
16484 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16485 | else |
16486 | lt_cv_prog_compiler_rtti_exceptions=no |
16487 | ac_outfile=conftest.$ac_objext |
16488 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
16489 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
16490 | # Insert the option either (1) after the last *FLAGS variable, or |
16491 | # (2) before a word containing "conftest.", or (3) at the end. |
16492 | # Note that $ac_compile itself does not contain backslashes and begins |
16493 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
16494 | # The option is referenced via a variable to avoid confusing sed. |
16495 | lt_compile=`echo "$ac_compile" | $SED \ |
16496 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
16497 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
16498 | -e 's:$: $lt_compiler_flag:'` |
dd184caf |
16499 | (eval echo "\"\$as_me:16499: $lt_compile\"" >&5) |
d9898ee8 |
16500 | (eval "$lt_compile" 2>conftest.err) |
16501 | ac_status=$? |
16502 | cat conftest.err >&5 |
dd184caf |
16503 | echo "$as_me:16503: \$? = $ac_status" >&5 |
d9898ee8 |
16504 | if (exit $ac_status) && test -s "$ac_outfile"; then |
16505 | # The compiler can only warn and ignore the option if not recognized |
16506 | # So say no if there are warnings other than the usual output. |
16507 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
16508 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
16509 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
16510 | lt_cv_prog_compiler_rtti_exceptions=yes |
16511 | fi |
16512 | fi |
16513 | $rm conftest* |
16514 | |
16515 | fi |
dd184caf |
16516 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
16517 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
d9898ee8 |
16518 | |
16519 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
16520 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" |
16521 | else |
16522 | : |
16523 | fi |
16524 | |
16525 | fi |
16526 | |
16527 | lt_prog_compiler_wl_GCJ= |
16528 | lt_prog_compiler_pic_GCJ= |
16529 | lt_prog_compiler_static_GCJ= |
16530 | |
dd184caf |
16531 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
16532 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
d9898ee8 |
16533 | |
16534 | if test "$GCC" = yes; then |
16535 | lt_prog_compiler_wl_GCJ='-Wl,' |
16536 | lt_prog_compiler_static_GCJ='-static' |
16537 | |
16538 | case $host_os in |
16539 | aix*) |
16540 | # All AIX code is PIC. |
16541 | if test "$host_cpu" = ia64; then |
16542 | # AIX 5 now supports IA64 processor |
16543 | lt_prog_compiler_static_GCJ='-Bstatic' |
16544 | fi |
16545 | ;; |
16546 | |
16547 | amigaos*) |
16548 | # FIXME: we need at least 68020 code to build shared libraries, but |
16549 | # adding the `-m68020' flag to GCC prevents building anything better, |
16550 | # like `-m68040'. |
16551 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' |
16552 | ;; |
16553 | |
16554 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
16555 | # PIC is the default for these OSes. |
16556 | ;; |
16557 | |
16558 | mingw* | pw32* | os2*) |
16559 | # This hack is so that the source file can tell whether it is being |
16560 | # built for inclusion in a dll (and should export symbols for example). |
16561 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
16562 | ;; |
16563 | |
16564 | darwin* | rhapsody*) |
16565 | # PIC is the default on this platform |
16566 | # Common symbols not allowed in MH_DYLIB files |
16567 | lt_prog_compiler_pic_GCJ='-fno-common' |
16568 | ;; |
16569 | |
16570 | interix3*) |
16571 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
16572 | # Instead, we relocate shared libraries at runtime. |
16573 | ;; |
16574 | |
16575 | msdosdjgpp*) |
16576 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
16577 | # on systems that don't support them. |
16578 | lt_prog_compiler_can_build_shared_GCJ=no |
16579 | enable_shared=no |
16580 | ;; |
16581 | |
16582 | sysv4*MP*) |
16583 | if test -d /usr/nec; then |
16584 | lt_prog_compiler_pic_GCJ=-Kconform_pic |
16585 | fi |
16586 | ;; |
16587 | |
16588 | hpux*) |
16589 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
16590 | # not for PA HP-UX. |
16591 | case $host_cpu in |
16592 | hppa*64*|ia64*) |
16593 | # +Z the default |
16594 | ;; |
16595 | *) |
16596 | lt_prog_compiler_pic_GCJ='-fPIC' |
16597 | ;; |
16598 | esac |
16599 | ;; |
16600 | |
16601 | *) |
16602 | lt_prog_compiler_pic_GCJ='-fPIC' |
16603 | ;; |
16604 | esac |
16605 | else |
16606 | # PORTME Check for flag to pass linker flags through the system compiler. |
16607 | case $host_os in |
16608 | aix*) |
16609 | lt_prog_compiler_wl_GCJ='-Wl,' |
16610 | if test "$host_cpu" = ia64; then |
16611 | # AIX 5 now supports IA64 processor |
16612 | lt_prog_compiler_static_GCJ='-Bstatic' |
16613 | else |
16614 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' |
16615 | fi |
16616 | ;; |
16617 | darwin*) |
16618 | # PIC is the default on this platform |
16619 | # Common symbols not allowed in MH_DYLIB files |
16620 | case $cc_basename in |
16621 | xlc*) |
16622 | lt_prog_compiler_pic_GCJ='-qnocommon' |
16623 | lt_prog_compiler_wl_GCJ='-Wl,' |
16624 | ;; |
16625 | esac |
16626 | ;; |
16627 | |
16628 | mingw* | pw32* | os2*) |
16629 | # This hack is so that the source file can tell whether it is being |
16630 | # built for inclusion in a dll (and should export symbols for example). |
16631 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
16632 | ;; |
16633 | |
16634 | hpux9* | hpux10* | hpux11*) |
16635 | lt_prog_compiler_wl_GCJ='-Wl,' |
16636 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
16637 | # not for PA HP-UX. |
16638 | case $host_cpu in |
16639 | hppa*64*|ia64*) |
16640 | # +Z the default |
16641 | ;; |
16642 | *) |
16643 | lt_prog_compiler_pic_GCJ='+Z' |
16644 | ;; |
16645 | esac |
16646 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
16647 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' |
16648 | ;; |
16649 | |
16650 | irix5* | irix6* | nonstopux*) |
16651 | lt_prog_compiler_wl_GCJ='-Wl,' |
16652 | # PIC (with -KPIC) is the default. |
16653 | lt_prog_compiler_static_GCJ='-non_shared' |
16654 | ;; |
16655 | |
16656 | newsos6) |
16657 | lt_prog_compiler_pic_GCJ='-KPIC' |
16658 | lt_prog_compiler_static_GCJ='-Bstatic' |
16659 | ;; |
16660 | |
16661 | linux*) |
16662 | case $cc_basename in |
16663 | icc* | ecc*) |
16664 | lt_prog_compiler_wl_GCJ='-Wl,' |
16665 | lt_prog_compiler_pic_GCJ='-KPIC' |
16666 | lt_prog_compiler_static_GCJ='-static' |
16667 | ;; |
16668 | pgcc* | pgf77* | pgf90* | pgf95*) |
16669 | # Portland Group compilers (*not* the Pentium gcc compiler, |
16670 | # which looks to be a dead project) |
16671 | lt_prog_compiler_wl_GCJ='-Wl,' |
16672 | lt_prog_compiler_pic_GCJ='-fpic' |
16673 | lt_prog_compiler_static_GCJ='-Bstatic' |
16674 | ;; |
16675 | ccc*) |
16676 | lt_prog_compiler_wl_GCJ='-Wl,' |
16677 | # All Alpha code is PIC. |
16678 | lt_prog_compiler_static_GCJ='-non_shared' |
16679 | ;; |
16680 | esac |
16681 | ;; |
16682 | |
16683 | osf3* | osf4* | osf5*) |
16684 | lt_prog_compiler_wl_GCJ='-Wl,' |
16685 | # All OSF/1 code is PIC. |
16686 | lt_prog_compiler_static_GCJ='-non_shared' |
16687 | ;; |
16688 | |
16689 | solaris*) |
16690 | lt_prog_compiler_pic_GCJ='-KPIC' |
16691 | lt_prog_compiler_static_GCJ='-Bstatic' |
16692 | case $cc_basename in |
16693 | f77* | f90* | f95*) |
16694 | lt_prog_compiler_wl_GCJ='-Qoption ld ';; |
16695 | *) |
16696 | lt_prog_compiler_wl_GCJ='-Wl,';; |
16697 | esac |
16698 | ;; |
16699 | |
16700 | sunos4*) |
16701 | lt_prog_compiler_wl_GCJ='-Qoption ld ' |
16702 | lt_prog_compiler_pic_GCJ='-PIC' |
16703 | lt_prog_compiler_static_GCJ='-Bstatic' |
16704 | ;; |
16705 | |
16706 | sysv4 | sysv4.2uw2* | sysv4.3*) |
16707 | lt_prog_compiler_wl_GCJ='-Wl,' |
16708 | lt_prog_compiler_pic_GCJ='-KPIC' |
16709 | lt_prog_compiler_static_GCJ='-Bstatic' |
16710 | ;; |
16711 | |
16712 | sysv4*MP*) |
16713 | if test -d /usr/nec ;then |
16714 | lt_prog_compiler_pic_GCJ='-Kconform_pic' |
16715 | lt_prog_compiler_static_GCJ='-Bstatic' |
16716 | fi |
16717 | ;; |
16718 | |
16719 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
16720 | lt_prog_compiler_wl_GCJ='-Wl,' |
16721 | lt_prog_compiler_pic_GCJ='-KPIC' |
16722 | lt_prog_compiler_static_GCJ='-Bstatic' |
16723 | ;; |
16724 | |
16725 | unicos*) |
16726 | lt_prog_compiler_wl_GCJ='-Wl,' |
16727 | lt_prog_compiler_can_build_shared_GCJ=no |
16728 | ;; |
16729 | |
16730 | uts4*) |
16731 | lt_prog_compiler_pic_GCJ='-pic' |
16732 | lt_prog_compiler_static_GCJ='-Bstatic' |
16733 | ;; |
16734 | |
16735 | *) |
16736 | lt_prog_compiler_can_build_shared_GCJ=no |
16737 | ;; |
16738 | esac |
16739 | fi |
16740 | |
dd184caf |
16741 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 |
16742 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } |
d9898ee8 |
16743 | |
16744 | # |
16745 | # Check to make sure the PIC flag actually works. |
16746 | # |
16747 | if test -n "$lt_prog_compiler_pic_GCJ"; then |
16748 | |
dd184caf |
16749 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 |
16750 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } |
d9898ee8 |
16751 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then |
16752 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16753 | else |
16754 | lt_prog_compiler_pic_works_GCJ=no |
16755 | ac_outfile=conftest.$ac_objext |
16756 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
16757 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ" |
16758 | # Insert the option either (1) after the last *FLAGS variable, or |
16759 | # (2) before a word containing "conftest.", or (3) at the end. |
16760 | # Note that $ac_compile itself does not contain backslashes and begins |
16761 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
16762 | # The option is referenced via a variable to avoid confusing sed. |
16763 | lt_compile=`echo "$ac_compile" | $SED \ |
16764 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
16765 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
16766 | -e 's:$: $lt_compiler_flag:'` |
dd184caf |
16767 | (eval echo "\"\$as_me:16767: $lt_compile\"" >&5) |
d9898ee8 |
16768 | (eval "$lt_compile" 2>conftest.err) |
16769 | ac_status=$? |
16770 | cat conftest.err >&5 |
dd184caf |
16771 | echo "$as_me:16771: \$? = $ac_status" >&5 |
d9898ee8 |
16772 | if (exit $ac_status) && test -s "$ac_outfile"; then |
16773 | # The compiler can only warn and ignore the option if not recognized |
16774 | # So say no if there are warnings other than the usual output. |
16775 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
16776 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
16777 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
16778 | lt_prog_compiler_pic_works_GCJ=yes |
16779 | fi |
16780 | fi |
16781 | $rm conftest* |
16782 | |
16783 | fi |
dd184caf |
16784 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 |
16785 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } |
d9898ee8 |
16786 | |
16787 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then |
16788 | case $lt_prog_compiler_pic_GCJ in |
16789 | "" | " "*) ;; |
16790 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; |
16791 | esac |
16792 | else |
16793 | lt_prog_compiler_pic_GCJ= |
16794 | lt_prog_compiler_can_build_shared_GCJ=no |
16795 | fi |
16796 | |
16797 | fi |
16798 | case $host_os in |
16799 | # For platforms which do not support PIC, -DPIC is meaningless: |
16800 | *djgpp*) |
16801 | lt_prog_compiler_pic_GCJ= |
16802 | ;; |
16803 | *) |
16804 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" |
16805 | ;; |
16806 | esac |
16807 | |
16808 | # |
16809 | # Check to make sure the static flag actually works. |
16810 | # |
16811 | wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" |
dd184caf |
16812 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
16813 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
d9898ee8 |
16814 | if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then |
16815 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16816 | else |
16817 | lt_prog_compiler_static_works_GCJ=no |
16818 | save_LDFLAGS="$LDFLAGS" |
16819 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
16820 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
16821 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
16822 | # The linker can only warn and ignore the option if not recognized |
16823 | # So say no if there are warnings |
16824 | if test -s conftest.err; then |
16825 | # Append any errors to the config.log. |
16826 | cat conftest.err 1>&5 |
16827 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
16828 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
16829 | if diff conftest.exp conftest.er2 >/dev/null; then |
16830 | lt_prog_compiler_static_works_GCJ=yes |
16831 | fi |
16832 | else |
16833 | lt_prog_compiler_static_works_GCJ=yes |
16834 | fi |
16835 | fi |
16836 | $rm conftest* |
16837 | LDFLAGS="$save_LDFLAGS" |
16838 | |
16839 | fi |
dd184caf |
16840 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 |
16841 | echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } |
d9898ee8 |
16842 | |
16843 | if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then |
16844 | : |
16845 | else |
16846 | lt_prog_compiler_static_GCJ= |
16847 | fi |
16848 | |
16849 | |
dd184caf |
16850 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
16851 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
d9898ee8 |
16852 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
16853 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16854 | else |
16855 | lt_cv_prog_compiler_c_o_GCJ=no |
16856 | $rm -r conftest 2>/dev/null |
16857 | mkdir conftest |
16858 | cd conftest |
16859 | mkdir out |
16860 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
16861 | |
16862 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
16863 | # Insert the option either (1) after the last *FLAGS variable, or |
16864 | # (2) before a word containing "conftest.", or (3) at the end. |
16865 | # Note that $ac_compile itself does not contain backslashes and begins |
16866 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
16867 | lt_compile=`echo "$ac_compile" | $SED \ |
16868 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
16869 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
16870 | -e 's:$: $lt_compiler_flag:'` |
dd184caf |
16871 | (eval echo "\"\$as_me:16871: $lt_compile\"" >&5) |
d9898ee8 |
16872 | (eval "$lt_compile" 2>out/conftest.err) |
16873 | ac_status=$? |
16874 | cat out/conftest.err >&5 |
dd184caf |
16875 | echo "$as_me:16875: \$? = $ac_status" >&5 |
d9898ee8 |
16876 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
16877 | then |
16878 | # The compiler can only warn and ignore the option if not recognized |
16879 | # So say no if there are warnings |
16880 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
16881 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
16882 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
16883 | lt_cv_prog_compiler_c_o_GCJ=yes |
16884 | fi |
16885 | fi |
16886 | chmod u+w . 2>&5 |
16887 | $rm conftest* |
16888 | # SGI C++ compiler will create directory out/ii_files/ for |
16889 | # template instantiation |
16890 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
16891 | $rm out/* && rmdir out |
16892 | cd .. |
16893 | rmdir conftest |
16894 | $rm conftest* |
16895 | |
16896 | fi |
dd184caf |
16897 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
16898 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } |
d9898ee8 |
16899 | |
16900 | |
16901 | hard_links="nottested" |
16902 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then |
16903 | # do not overwrite the value of need_locks provided by the user |
dd184caf |
16904 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
16905 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
d9898ee8 |
16906 | hard_links=yes |
16907 | $rm conftest* |
16908 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
16909 | touch conftest.a |
16910 | ln conftest.a conftest.b 2>&5 || hard_links=no |
16911 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
dd184caf |
16912 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
16913 | echo "${ECHO_T}$hard_links" >&6; } |
d9898ee8 |
16914 | if test "$hard_links" = no; then |
16915 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
16916 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
16917 | need_locks=warn |
16918 | fi |
16919 | else |
16920 | need_locks=no |
16921 | fi |
16922 | |
dd184caf |
16923 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
16924 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
d9898ee8 |
16925 | |
16926 | runpath_var= |
16927 | allow_undefined_flag_GCJ= |
16928 | enable_shared_with_static_runtimes_GCJ=no |
16929 | archive_cmds_GCJ= |
16930 | archive_expsym_cmds_GCJ= |
16931 | old_archive_From_new_cmds_GCJ= |
16932 | old_archive_from_expsyms_cmds_GCJ= |
16933 | export_dynamic_flag_spec_GCJ= |
16934 | whole_archive_flag_spec_GCJ= |
16935 | thread_safe_flag_spec_GCJ= |
16936 | hardcode_libdir_flag_spec_GCJ= |
16937 | hardcode_libdir_flag_spec_ld_GCJ= |
16938 | hardcode_libdir_separator_GCJ= |
16939 | hardcode_direct_GCJ=no |
16940 | hardcode_minus_L_GCJ=no |
16941 | hardcode_shlibpath_var_GCJ=unsupported |
16942 | link_all_deplibs_GCJ=unknown |
16943 | hardcode_automatic_GCJ=no |
16944 | module_cmds_GCJ= |
16945 | module_expsym_cmds_GCJ= |
16946 | always_export_symbols_GCJ=no |
16947 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
16948 | # include_expsyms should be a list of space-separated symbols to be *always* |
16949 | # included in the symbol list |
16950 | include_expsyms_GCJ= |
16951 | # exclude_expsyms can be an extended regexp of symbols to exclude |
16952 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
16953 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
16954 | # as well as any symbol that contains `d'. |
16955 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" |
16956 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
16957 | # platforms (ab)use it in PIC code, but their linkers get confused if |
16958 | # the symbol is explicitly referenced. Since portable code cannot |
16959 | # rely on this symbol name, it's probably fine to never include it in |
16960 | # preloaded symbol tables. |
16961 | extract_expsyms_cmds= |
16962 | # Just being paranoid about ensuring that cc_basename is set. |
16963 | for cc_temp in $compiler""; do |
16964 | case $cc_temp in |
16965 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
16966 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
16967 | \-*) ;; |
16968 | *) break;; |
16969 | esac |
16970 | done |
16971 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
16972 | |
16973 | case $host_os in |
16974 | cygwin* | mingw* | pw32*) |
16975 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
16976 | # When not using gcc, we currently assume that we are using |
16977 | # Microsoft Visual C++. |
16978 | if test "$GCC" != yes; then |
16979 | with_gnu_ld=no |
16980 | fi |
16981 | ;; |
16982 | interix*) |
16983 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
16984 | with_gnu_ld=yes |
16985 | ;; |
16986 | openbsd*) |
16987 | with_gnu_ld=no |
16988 | ;; |
16989 | esac |
16990 | |
16991 | ld_shlibs_GCJ=yes |
16992 | if test "$with_gnu_ld" = yes; then |
16993 | # If archive_cmds runs LD, not CC, wlarc should be empty |
16994 | wlarc='${wl}' |
16995 | |
16996 | # Set some defaults for GNU ld with shared library support. These |
16997 | # are reset later if shared libraries are not supported. Putting them |
16998 | # here allows them to be overridden if necessary. |
16999 | runpath_var=LD_RUN_PATH |
17000 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' |
17001 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' |
17002 | # ancient GNU ld didn't support --whole-archive et. al. |
17003 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
17004 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
17005 | else |
17006 | whole_archive_flag_spec_GCJ= |
17007 | fi |
17008 | supports_anon_versioning=no |
17009 | case `$LD -v 2>/dev/null` in |
17010 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
17011 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
17012 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
17013 | *\ 2.11.*) ;; # other 2.11 versions |
17014 | *) supports_anon_versioning=yes ;; |
17015 | esac |
17016 | |
17017 | # See if GNU ld supports shared libraries. |
17018 | case $host_os in |
17019 | aix3* | aix4* | aix5*) |
17020 | # On AIX/PPC, the GNU linker is very broken |
17021 | if test "$host_cpu" != ia64; then |
17022 | ld_shlibs_GCJ=no |
17023 | cat <<EOF 1>&2 |
17024 | |
17025 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
17026 | *** to be unable to reliably create shared libraries on AIX. |
17027 | *** Therefore, libtool is disabling shared libraries support. If you |
17028 | *** really care for shared libraries, you may want to modify your PATH |
17029 | *** so that a non-GNU linker is found, and then restart. |
17030 | |
17031 | EOF |
17032 | fi |
17033 | ;; |
17034 | |
17035 | amigaos*) |
17036 | archive_cmds_GCJ='$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)' |
17037 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17038 | hardcode_minus_L_GCJ=yes |
17039 | |
17040 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
17041 | # that the semantics of dynamic libraries on AmigaOS, at least up |
17042 | # to version 4, is to share data among multiple programs linked |
17043 | # with the same dynamic library. Since this doesn't match the |
17044 | # behavior of shared libraries on other platforms, we can't use |
17045 | # them. |
17046 | ld_shlibs_GCJ=no |
17047 | ;; |
17048 | |
17049 | beos*) |
17050 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
17051 | allow_undefined_flag_GCJ=unsupported |
17052 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
17053 | # support --undefined. This deserves some investigation. FIXME |
17054 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
17055 | else |
17056 | ld_shlibs_GCJ=no |
17057 | fi |
17058 | ;; |
17059 | |
17060 | cygwin* | mingw* | pw32*) |
17061 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, |
17062 | # as there is no search path for DLLs. |
17063 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17064 | allow_undefined_flag_GCJ=unsupported |
17065 | always_export_symbols_GCJ=no |
17066 | enable_shared_with_static_runtimes_GCJ=yes |
17067 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
17068 | |
17069 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
17070 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
17071 | # If the export-symbols file already is a .def file (1st line |
17072 | # is EXPORTS), use it as is; otherwise, prepend... |
17073 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
17074 | cp $export_symbols $output_objdir/$soname.def; |
17075 | else |
17076 | echo EXPORTS > $output_objdir/$soname.def; |
17077 | cat $export_symbols >> $output_objdir/$soname.def; |
17078 | fi~ |
17079 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
17080 | else |
17081 | ld_shlibs_GCJ=no |
17082 | fi |
17083 | ;; |
17084 | |
17085 | interix3*) |
17086 | hardcode_direct_GCJ=no |
17087 | hardcode_shlibpath_var_GCJ=no |
17088 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
17089 | export_dynamic_flag_spec_GCJ='${wl}-E' |
17090 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
17091 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
17092 | # default) and relocated if they conflict, which is a slow very memory |
17093 | # consuming and fragmenting process. To avoid this, we pick a random, |
17094 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
17095 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
17096 | archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
17097 | archive_expsym_cmds_GCJ='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' |
17098 | ;; |
17099 | |
17100 | linux*) |
17101 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
17102 | tmp_addflag= |
17103 | case $cc_basename,$host_cpu in |
17104 | pgcc*) # Portland Group C compiler |
17105 | whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
17106 | tmp_addflag=' $pic_flag' |
17107 | ;; |
17108 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
17109 | whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
17110 | tmp_addflag=' $pic_flag -Mnomain' ;; |
17111 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
17112 | tmp_addflag=' -i_dynamic' ;; |
17113 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
17114 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
17115 | ifc* | ifort*) # Intel Fortran compiler |
17116 | tmp_addflag=' -nofor_main' ;; |
17117 | esac |
17118 | archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
17119 | |
17120 | if test $supports_anon_versioning = yes; then |
17121 | archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ |
17122 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
17123 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
17124 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
17125 | fi |
17126 | else |
17127 | ld_shlibs_GCJ=no |
17128 | fi |
17129 | ;; |
17130 | |
17131 | netbsd*) |
17132 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
17133 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
17134 | wlarc= |
17135 | else |
17136 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
17137 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
17138 | fi |
17139 | ;; |
17140 | |
17141 | solaris*) |
17142 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
17143 | ld_shlibs_GCJ=no |
17144 | cat <<EOF 1>&2 |
17145 | |
17146 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
17147 | *** create shared libraries on Solaris systems. Therefore, libtool |
17148 | *** is disabling shared libraries support. We urge you to upgrade GNU |
17149 | *** binutils to release 2.9.1 or newer. Another option is to modify |
17150 | *** your PATH or compiler configuration so that the native linker is |
17151 | *** used, and then restart. |
17152 | |
17153 | EOF |
17154 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
17155 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
17156 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
17157 | else |
17158 | ld_shlibs_GCJ=no |
17159 | fi |
17160 | ;; |
17161 | |
17162 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
17163 | case `$LD -v 2>&1` in |
17164 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
17165 | ld_shlibs_GCJ=no |
17166 | cat <<_LT_EOF 1>&2 |
17167 | |
17168 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
17169 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
17170 | *** is disabling shared libraries support. We urge you to upgrade GNU |
17171 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
17172 | *** your PATH or compiler configuration so that the native linker is |
17173 | *** used, and then restart. |
17174 | |
17175 | _LT_EOF |
17176 | ;; |
17177 | *) |
17178 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
17179 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
17180 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
17181 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
17182 | else |
17183 | ld_shlibs_GCJ=no |
17184 | fi |
17185 | ;; |
17186 | esac |
17187 | ;; |
17188 | |
17189 | sunos4*) |
17190 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
17191 | wlarc= |
17192 | hardcode_direct_GCJ=yes |
17193 | hardcode_shlibpath_var_GCJ=no |
17194 | ;; |
17195 | |
17196 | *) |
17197 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
17198 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
17199 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
17200 | else |
17201 | ld_shlibs_GCJ=no |
17202 | fi |
17203 | ;; |
17204 | esac |
17205 | |
17206 | if test "$ld_shlibs_GCJ" = no; then |
17207 | runpath_var= |
17208 | hardcode_libdir_flag_spec_GCJ= |
17209 | export_dynamic_flag_spec_GCJ= |
17210 | whole_archive_flag_spec_GCJ= |
17211 | fi |
17212 | else |
17213 | # PORTME fill in a description of your system's linker (not GNU ld) |
17214 | case $host_os in |
17215 | aix3*) |
17216 | allow_undefined_flag_GCJ=unsupported |
17217 | always_export_symbols_GCJ=yes |
17218 | archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' |
17219 | # Note: this linker hardcodes the directories in LIBPATH if there |
17220 | # are no directories specified by -L. |
17221 | hardcode_minus_L_GCJ=yes |
17222 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
17223 | # Neither direct hardcoding nor static linking is supported with a |
17224 | # broken collect2. |
17225 | hardcode_direct_GCJ=unsupported |
17226 | fi |
17227 | ;; |
17228 | |
17229 | aix4* | aix5*) |
17230 | if test "$host_cpu" = ia64; then |
17231 | # On IA64, the linker does run time linking by default, so we don't |
17232 | # have to do anything special. |
17233 | aix_use_runtimelinking=no |
17234 | exp_sym_flag='-Bexport' |
17235 | no_entry_flag="" |
17236 | else |
17237 | # If we're using GNU nm, then we don't want the "-C" option. |
17238 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
17239 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
17240 | export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
17241 | else |
17242 | export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
17243 | fi |
17244 | aix_use_runtimelinking=no |
17245 | |
17246 | # Test if we are trying to use run time linking or normal |
17247 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
17248 | # need to do runtime linking. |
17249 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
17250 | for ld_flag in $LDFLAGS; do |
17251 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
17252 | aix_use_runtimelinking=yes |
17253 | break |
17254 | fi |
17255 | done |
17256 | ;; |
17257 | esac |
17258 | |
17259 | exp_sym_flag='-bexport' |
17260 | no_entry_flag='-bnoentry' |
17261 | fi |
17262 | |
17263 | # When large executables or shared objects are built, AIX ld can |
17264 | # have problems creating the table of contents. If linking a library |
17265 | # or program results in "error TOC overflow" add -mminimal-toc to |
17266 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
17267 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
17268 | |
17269 | archive_cmds_GCJ='' |
17270 | hardcode_direct_GCJ=yes |
17271 | hardcode_libdir_separator_GCJ=':' |
17272 | link_all_deplibs_GCJ=yes |
17273 | |
17274 | if test "$GCC" = yes; then |
17275 | case $host_os in aix4.[012]|aix4.[012].*) |
17276 | # We only want to do this on AIX 4.2 and lower, the check |
17277 | # below for broken collect2 doesn't work under 4.3+ |
17278 | collect2name=`${CC} -print-prog-name=collect2` |
17279 | if test -f "$collect2name" && \ |
17280 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
17281 | then |
17282 | # We have reworked collect2 |
17283 | hardcode_direct_GCJ=yes |
17284 | else |
17285 | # We have old collect2 |
17286 | hardcode_direct_GCJ=unsupported |
17287 | # It fails to find uninstalled libraries when the uninstalled |
17288 | # path is not listed in the libpath. Setting hardcode_minus_L |
17289 | # to unsupported forces relinking |
17290 | hardcode_minus_L_GCJ=yes |
17291 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17292 | hardcode_libdir_separator_GCJ= |
17293 | fi |
17294 | ;; |
17295 | esac |
17296 | shared_flag='-shared' |
17297 | if test "$aix_use_runtimelinking" = yes; then |
17298 | shared_flag="$shared_flag "'${wl}-G' |
17299 | fi |
17300 | else |
17301 | # not using gcc |
17302 | if test "$host_cpu" = ia64; then |
17303 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
17304 | # chokes on -Wl,-G. The following line is correct: |
17305 | shared_flag='-G' |
17306 | else |
17307 | if test "$aix_use_runtimelinking" = yes; then |
17308 | shared_flag='${wl}-G' |
17309 | else |
17310 | shared_flag='${wl}-bM:SRE' |
17311 | fi |
17312 | fi |
17313 | fi |
17314 | |
17315 | # It seems that -bexpall does not export symbols beginning with |
17316 | # underscore (_), so it is better to generate a list of symbols to export. |
17317 | always_export_symbols_GCJ=yes |
17318 | if test "$aix_use_runtimelinking" = yes; then |
17319 | # Warning - without using the other runtime loading flags (-brtl), |
17320 | # -berok will link without error, but may produce a broken library. |
17321 | allow_undefined_flag_GCJ='-berok' |
17322 | # Determine the default libpath from the value encoded in an empty executable. |
17323 | cat >conftest.$ac_ext <<_ACEOF |
17324 | /* confdefs.h. */ |
17325 | _ACEOF |
17326 | cat confdefs.h >>conftest.$ac_ext |
17327 | cat >>conftest.$ac_ext <<_ACEOF |
17328 | /* end confdefs.h. */ |
17329 | |
17330 | int |
17331 | main () |
17332 | { |
17333 | |
17334 | ; |
17335 | return 0; |
17336 | } |
17337 | _ACEOF |
17338 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
17339 | if { (ac_try="$ac_link" |
17340 | case "(($ac_try" in |
17341 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
17342 | *) ac_try_echo=$ac_try;; |
17343 | esac |
17344 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
17345 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
17346 | ac_status=$? |
17347 | grep -v '^ *+' conftest.er1 >conftest.err |
17348 | rm -f conftest.er1 |
17349 | cat conftest.err >&5 |
17350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
17351 | (exit $ac_status); } && { |
17352 | test -z "$ac_c_werror_flag" || |
17353 | test ! -s conftest.err |
17354 | } && test -s conftest$ac_exeext && |
17355 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
17356 | |
17357 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
17358 | }'` |
17359 | # Check for a 64-bit object if we didn't find anything. |
17360 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
17361 | }'`; fi |
17362 | else |
17363 | echo "$as_me: failed program was:" >&5 |
17364 | sed 's/^/| /' conftest.$ac_ext >&5 |
17365 | |
dd184caf |
17366 | |
d9898ee8 |
17367 | fi |
dd184caf |
17368 | |
17369 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
17370 | conftest$ac_exeext conftest.$ac_ext |
17371 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
17372 | |
17373 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
17374 | archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
17375 | else |
17376 | if test "$host_cpu" = ia64; then |
17377 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' |
17378 | allow_undefined_flag_GCJ="-z nodefs" |
17379 | archive_expsym_cmds_GCJ="\$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" |
17380 | else |
17381 | # Determine the default libpath from the value encoded in an empty executable. |
17382 | cat >conftest.$ac_ext <<_ACEOF |
17383 | /* confdefs.h. */ |
17384 | _ACEOF |
17385 | cat confdefs.h >>conftest.$ac_ext |
17386 | cat >>conftest.$ac_ext <<_ACEOF |
17387 | /* end confdefs.h. */ |
17388 | |
17389 | int |
17390 | main () |
17391 | { |
17392 | |
17393 | ; |
17394 | return 0; |
17395 | } |
17396 | _ACEOF |
17397 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
17398 | if { (ac_try="$ac_link" |
17399 | case "(($ac_try" in |
17400 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
17401 | *) ac_try_echo=$ac_try;; |
17402 | esac |
17403 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
17404 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
17405 | ac_status=$? |
17406 | grep -v '^ *+' conftest.er1 >conftest.err |
17407 | rm -f conftest.er1 |
17408 | cat conftest.err >&5 |
17409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
17410 | (exit $ac_status); } && { |
17411 | test -z "$ac_c_werror_flag" || |
17412 | test ! -s conftest.err |
17413 | } && test -s conftest$ac_exeext && |
17414 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
17415 | |
17416 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
17417 | }'` |
17418 | # Check for a 64-bit object if we didn't find anything. |
17419 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
17420 | }'`; fi |
17421 | else |
17422 | echo "$as_me: failed program was:" >&5 |
17423 | sed 's/^/| /' conftest.$ac_ext >&5 |
17424 | |
dd184caf |
17425 | |
d9898ee8 |
17426 | fi |
dd184caf |
17427 | |
17428 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
17429 | conftest$ac_exeext conftest.$ac_ext |
17430 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
17431 | |
17432 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
17433 | # Warning - without using the other run time loading flags, |
17434 | # -berok will link without error, but may produce a broken library. |
17435 | no_undefined_flag_GCJ=' ${wl}-bernotok' |
17436 | allow_undefined_flag_GCJ=' ${wl}-berok' |
17437 | # Exported symbols can be pulled into shared objects from archives |
17438 | whole_archive_flag_spec_GCJ='$convenience' |
17439 | archive_cmds_need_lc_GCJ=yes |
17440 | # This is similar to how AIX traditionally builds its shared libraries. |
17441 | archive_expsym_cmds_GCJ="\$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' |
17442 | fi |
17443 | fi |
17444 | ;; |
17445 | |
17446 | amigaos*) |
17447 | archive_cmds_GCJ='$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)' |
17448 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17449 | hardcode_minus_L_GCJ=yes |
17450 | # see comment about different semantics on the GNU ld section |
17451 | ld_shlibs_GCJ=no |
17452 | ;; |
17453 | |
17454 | bsdi[45]*) |
17455 | export_dynamic_flag_spec_GCJ=-rdynamic |
17456 | ;; |
17457 | |
17458 | cygwin* | mingw* | pw32*) |
17459 | # When not using gcc, we currently assume that we are using |
17460 | # Microsoft Visual C++. |
17461 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
17462 | # no search path for DLLs. |
17463 | hardcode_libdir_flag_spec_GCJ=' ' |
17464 | allow_undefined_flag_GCJ=unsupported |
17465 | # Tell ltmain to make .lib files, not .a files. |
17466 | libext=lib |
17467 | # Tell ltmain to make .dll files, not .so files. |
17468 | shrext_cmds=".dll" |
17469 | # FIXME: Setting linknames here is a bad hack. |
17470 | archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
17471 | # The linker will automatically build a .lib file if we build a DLL. |
17472 | old_archive_From_new_cmds_GCJ='true' |
17473 | # FIXME: Should let the user specify the lib program. |
17474 | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' |
17475 | fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' |
17476 | enable_shared_with_static_runtimes_GCJ=yes |
17477 | ;; |
17478 | |
17479 | darwin* | rhapsody*) |
17480 | case $host_os in |
17481 | rhapsody* | darwin1.[012]) |
17482 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' |
17483 | ;; |
17484 | *) # Darwin 1.3 on |
17485 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
17486 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
17487 | else |
17488 | case ${MACOSX_DEPLOYMENT_TARGET} in |
17489 | 10.[012]) |
17490 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
17491 | ;; |
17492 | 10.*) |
17493 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' |
17494 | ;; |
17495 | esac |
17496 | fi |
17497 | ;; |
17498 | esac |
17499 | archive_cmds_need_lc_GCJ=no |
17500 | hardcode_direct_GCJ=no |
17501 | hardcode_automatic_GCJ=yes |
17502 | hardcode_shlibpath_var_GCJ=unsupported |
17503 | whole_archive_flag_spec_GCJ='' |
17504 | link_all_deplibs_GCJ=yes |
17505 | if test "$GCC" = yes ; then |
17506 | output_verbose_link_cmd='echo' |
17507 | archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
17508 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
17509 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
17510 | archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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}' |
17511 | module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -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}' |
17512 | else |
17513 | case $cc_basename in |
17514 | xlc*) |
17515 | output_verbose_link_cmd='echo' |
17516 | archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
17517 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
17518 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
17519 | archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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}' |
17520 | module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -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}' |
17521 | ;; |
17522 | *) |
17523 | ld_shlibs_GCJ=no |
17524 | ;; |
17525 | esac |
17526 | fi |
17527 | ;; |
17528 | |
17529 | dgux*) |
17530 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17531 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17532 | hardcode_shlibpath_var_GCJ=no |
17533 | ;; |
17534 | |
17535 | freebsd1*) |
17536 | ld_shlibs_GCJ=no |
17537 | ;; |
17538 | |
17539 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
17540 | # support. Future versions do this automatically, but an explicit c++rt0.o |
17541 | # does not break anything, and helps significantly (at the cost of a little |
17542 | # extra space). |
17543 | freebsd2.2*) |
17544 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
17545 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
17546 | hardcode_direct_GCJ=yes |
17547 | hardcode_shlibpath_var_GCJ=no |
17548 | ;; |
17549 | |
17550 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
17551 | freebsd2*) |
17552 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
17553 | hardcode_direct_GCJ=yes |
17554 | hardcode_minus_L_GCJ=yes |
17555 | hardcode_shlibpath_var_GCJ=no |
17556 | ;; |
17557 | |
17558 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
17559 | freebsd* | kfreebsd*-gnu | dragonfly*) |
17560 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
17561 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
17562 | hardcode_direct_GCJ=yes |
17563 | hardcode_shlibpath_var_GCJ=no |
17564 | ;; |
17565 | |
17566 | hpux9*) |
17567 | if test "$GCC" = yes; then |
17568 | archive_cmds_GCJ='$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' |
17569 | else |
17570 | archive_cmds_GCJ='$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' |
17571 | fi |
17572 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
17573 | hardcode_libdir_separator_GCJ=: |
17574 | hardcode_direct_GCJ=yes |
17575 | |
17576 | # hardcode_minus_L: Not really in the search PATH, |
17577 | # but as the default location of the library. |
17578 | hardcode_minus_L_GCJ=yes |
17579 | export_dynamic_flag_spec_GCJ='${wl}-E' |
17580 | ;; |
17581 | |
17582 | hpux10*) |
17583 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
17584 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
17585 | else |
17586 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
17587 | fi |
17588 | if test "$with_gnu_ld" = no; then |
17589 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
17590 | hardcode_libdir_separator_GCJ=: |
17591 | |
17592 | hardcode_direct_GCJ=yes |
17593 | export_dynamic_flag_spec_GCJ='${wl}-E' |
17594 | |
17595 | # hardcode_minus_L: Not really in the search PATH, |
17596 | # but as the default location of the library. |
17597 | hardcode_minus_L_GCJ=yes |
17598 | fi |
17599 | ;; |
17600 | |
17601 | hpux11*) |
17602 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
17603 | case $host_cpu in |
17604 | hppa*64*) |
17605 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17606 | ;; |
17607 | ia64*) |
17608 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
17609 | ;; |
17610 | *) |
17611 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
17612 | ;; |
17613 | esac |
17614 | else |
17615 | case $host_cpu in |
17616 | hppa*64*) |
17617 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17618 | ;; |
17619 | ia64*) |
17620 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
17621 | ;; |
17622 | *) |
17623 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
17624 | ;; |
17625 | esac |
17626 | fi |
17627 | if test "$with_gnu_ld" = no; then |
17628 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
17629 | hardcode_libdir_separator_GCJ=: |
17630 | |
17631 | case $host_cpu in |
17632 | hppa*64*|ia64*) |
17633 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' |
17634 | hardcode_direct_GCJ=no |
17635 | hardcode_shlibpath_var_GCJ=no |
17636 | ;; |
17637 | *) |
17638 | hardcode_direct_GCJ=yes |
17639 | export_dynamic_flag_spec_GCJ='${wl}-E' |
17640 | |
17641 | # hardcode_minus_L: Not really in the search PATH, |
17642 | # but as the default location of the library. |
17643 | hardcode_minus_L_GCJ=yes |
17644 | ;; |
17645 | esac |
17646 | fi |
17647 | ;; |
17648 | |
17649 | irix5* | irix6* | nonstopux*) |
17650 | if test "$GCC" = yes; then |
17651 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
17652 | else |
17653 | archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
17654 | hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' |
17655 | fi |
17656 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
17657 | hardcode_libdir_separator_GCJ=: |
17658 | link_all_deplibs_GCJ=yes |
17659 | ;; |
17660 | |
17661 | netbsd*) |
17662 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
17663 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
17664 | else |
17665 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
17666 | fi |
17667 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
17668 | hardcode_direct_GCJ=yes |
17669 | hardcode_shlibpath_var_GCJ=no |
17670 | ;; |
17671 | |
17672 | newsos6) |
17673 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17674 | hardcode_direct_GCJ=yes |
17675 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
17676 | hardcode_libdir_separator_GCJ=: |
17677 | hardcode_shlibpath_var_GCJ=no |
17678 | ;; |
17679 | |
17680 | openbsd*) |
17681 | hardcode_direct_GCJ=yes |
17682 | hardcode_shlibpath_var_GCJ=no |
17683 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
17684 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
17685 | archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
17686 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
17687 | export_dynamic_flag_spec_GCJ='${wl}-E' |
17688 | else |
17689 | case $host_os in |
17690 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
17691 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
17692 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
17693 | ;; |
17694 | *) |
17695 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
17696 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
17697 | ;; |
17698 | esac |
17699 | fi |
17700 | ;; |
17701 | |
17702 | os2*) |
17703 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17704 | hardcode_minus_L_GCJ=yes |
17705 | allow_undefined_flag_GCJ=unsupported |
17706 | archive_cmds_GCJ='$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' |
17707 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
17708 | ;; |
17709 | |
17710 | osf3*) |
17711 | if test "$GCC" = yes; then |
17712 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
17713 | archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
17714 | else |
17715 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
17716 | archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
17717 | fi |
17718 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
17719 | hardcode_libdir_separator_GCJ=: |
17720 | ;; |
17721 | |
17722 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
17723 | if test "$GCC" = yes; then |
17724 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
17725 | archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
17726 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
17727 | else |
17728 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
17729 | archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
17730 | archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
17731 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' |
17732 | |
17733 | # Both c and cxx compiler support -rpath directly |
17734 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' |
17735 | fi |
17736 | hardcode_libdir_separator_GCJ=: |
17737 | ;; |
17738 | |
17739 | solaris*) |
17740 | no_undefined_flag_GCJ=' -z text' |
17741 | if test "$GCC" = yes; then |
17742 | wlarc='${wl}' |
17743 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17744 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
17745 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
17746 | else |
17747 | wlarc='' |
17748 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17749 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
17750 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
17751 | fi |
17752 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
17753 | hardcode_shlibpath_var_GCJ=no |
17754 | case $host_os in |
17755 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
17756 | *) |
17757 | # The compiler driver will combine linker options so we |
17758 | # cannot just pass the convience library names through |
17759 | # without $wl, iff we do not link with $LD. |
17760 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
17761 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
17762 | case $wlarc in |
17763 | '') |
17764 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; |
17765 | *) |
17766 | whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; |
17767 | esac ;; |
17768 | esac |
17769 | link_all_deplibs_GCJ=yes |
17770 | ;; |
17771 | |
17772 | sunos4*) |
17773 | if test "x$host_vendor" = xsequent; then |
17774 | # Use $CC to link under sequent, because it throws in some extra .o |
17775 | # files that make .init and .fini sections work. |
17776 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
17777 | else |
17778 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
17779 | fi |
17780 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17781 | hardcode_direct_GCJ=yes |
17782 | hardcode_minus_L_GCJ=yes |
17783 | hardcode_shlibpath_var_GCJ=no |
17784 | ;; |
17785 | |
17786 | sysv4) |
17787 | case $host_vendor in |
17788 | sni) |
17789 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17790 | hardcode_direct_GCJ=yes # is this really true??? |
17791 | ;; |
17792 | siemens) |
17793 | ## LD is ld it makes a PLAMLIB |
17794 | ## CC just makes a GrossModule. |
17795 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
17796 | reload_cmds_GCJ='$CC -r -o $output$reload_objs' |
17797 | hardcode_direct_GCJ=no |
17798 | ;; |
17799 | motorola) |
17800 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17801 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie |
17802 | ;; |
17803 | esac |
17804 | runpath_var='LD_RUN_PATH' |
17805 | hardcode_shlibpath_var_GCJ=no |
17806 | ;; |
17807 | |
17808 | sysv4.3*) |
17809 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17810 | hardcode_shlibpath_var_GCJ=no |
17811 | export_dynamic_flag_spec_GCJ='-Bexport' |
17812 | ;; |
17813 | |
17814 | sysv4*MP*) |
17815 | if test -d /usr/nec; then |
17816 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17817 | hardcode_shlibpath_var_GCJ=no |
17818 | runpath_var=LD_RUN_PATH |
17819 | hardcode_runpath_var=yes |
17820 | ld_shlibs_GCJ=yes |
17821 | fi |
17822 | ;; |
17823 | |
17824 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
17825 | no_undefined_flag_GCJ='${wl}-z,text' |
17826 | archive_cmds_need_lc_GCJ=no |
17827 | hardcode_shlibpath_var_GCJ=no |
17828 | runpath_var='LD_RUN_PATH' |
17829 | |
17830 | if test "$GCC" = yes; then |
17831 | archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
17832 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
17833 | else |
17834 | archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
17835 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
17836 | fi |
17837 | ;; |
17838 | |
17839 | sysv5* | sco3.2v5* | sco5v6*) |
17840 | # Note: We can NOT use -z defs as we might desire, because we do not |
17841 | # link with -lc, and that would cause any symbols used from libc to |
17842 | # always be unresolved, which means just about no library would |
17843 | # ever link correctly. If we're not using GNU ld we use -z text |
17844 | # though, which does catch some bad symbols but isn't as heavy-handed |
17845 | # as -z defs. |
17846 | no_undefined_flag_GCJ='${wl}-z,text' |
17847 | allow_undefined_flag_GCJ='${wl}-z,nodefs' |
17848 | archive_cmds_need_lc_GCJ=no |
17849 | hardcode_shlibpath_var_GCJ=no |
17850 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
17851 | hardcode_libdir_separator_GCJ=':' |
17852 | link_all_deplibs_GCJ=yes |
17853 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' |
17854 | runpath_var='LD_RUN_PATH' |
17855 | |
17856 | if test "$GCC" = yes; then |
17857 | archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17858 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17859 | else |
17860 | archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17861 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17862 | fi |
17863 | ;; |
17864 | |
17865 | uts4*) |
17866 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17867 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17868 | hardcode_shlibpath_var_GCJ=no |
17869 | ;; |
17870 | |
17871 | *) |
17872 | ld_shlibs_GCJ=no |
17873 | ;; |
17874 | esac |
17875 | fi |
17876 | |
dd184caf |
17877 | { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 |
17878 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } |
d9898ee8 |
17879 | test "$ld_shlibs_GCJ" = no && can_build_shared=no |
17880 | |
17881 | # |
17882 | # Do we need to explicitly link libc? |
17883 | # |
17884 | case "x$archive_cmds_need_lc_GCJ" in |
17885 | x|xyes) |
17886 | # Assume -lc should be added |
17887 | archive_cmds_need_lc_GCJ=yes |
17888 | |
17889 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
17890 | case $archive_cmds_GCJ in |
17891 | *'~'*) |
17892 | # FIXME: we may have to deal with multi-command sequences. |
17893 | ;; |
17894 | '$CC '*) |
17895 | # Test whether the compiler implicitly links with -lc since on some |
17896 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
17897 | # to ld, don't add -lc before -lgcc. |
dd184caf |
17898 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
17899 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
d9898ee8 |
17900 | $rm conftest* |
17901 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
17902 | |
17903 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
17904 | (eval $ac_compile) 2>&5 |
17905 | ac_status=$? |
17906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17907 | (exit $ac_status); } 2>conftest.err; then |
17908 | soname=conftest |
17909 | lib=conftest |
17910 | libobjs=conftest.$ac_objext |
17911 | deplibs= |
17912 | wl=$lt_prog_compiler_wl_GCJ |
17913 | pic_flag=$lt_prog_compiler_pic_GCJ |
17914 | compiler_flags=-v |
17915 | linker_flags=-v |
17916 | verstring= |
17917 | output_objdir=. |
17918 | libname=conftest |
17919 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ |
17920 | allow_undefined_flag_GCJ= |
17921 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
17922 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
17923 | ac_status=$? |
17924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17925 | (exit $ac_status); } |
17926 | then |
17927 | archive_cmds_need_lc_GCJ=no |
17928 | else |
17929 | archive_cmds_need_lc_GCJ=yes |
17930 | fi |
17931 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag |
17932 | else |
17933 | cat conftest.err 1>&5 |
17934 | fi |
17935 | $rm conftest* |
dd184caf |
17936 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 |
17937 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } |
d9898ee8 |
17938 | ;; |
17939 | esac |
17940 | fi |
17941 | ;; |
17942 | esac |
17943 | |
dd184caf |
17944 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
17945 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
d9898ee8 |
17946 | library_names_spec= |
17947 | libname_spec='lib$name' |
17948 | soname_spec= |
17949 | shrext_cmds=".so" |
17950 | postinstall_cmds= |
17951 | postuninstall_cmds= |
17952 | finish_cmds= |
17953 | finish_eval= |
17954 | shlibpath_var= |
17955 | shlibpath_overrides_runpath=unknown |
17956 | version_type=none |
17957 | dynamic_linker="$host_os ld.so" |
17958 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
17959 | if test "$GCC" = yes; then |
17960 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
17961 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
17962 | # if the path contains ";" then we assume it to be the separator |
17963 | # otherwise default to the standard path separator (i.e. ":") - it is |
17964 | # assumed that no part of a normal pathname contains ";" but that should |
17965 | # okay in the real world where ";" in dirpaths is itself problematic. |
17966 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
17967 | else |
17968 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
17969 | fi |
17970 | else |
17971 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
17972 | fi |
17973 | need_lib_prefix=unknown |
17974 | hardcode_into_libs=no |
17975 | |
17976 | # when you set need_version to no, make sure it does not cause -set_version |
17977 | # flags to be left without arguments |
17978 | need_version=unknown |
17979 | |
17980 | case $host_os in |
17981 | aix3*) |
17982 | version_type=linux |
17983 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
17984 | shlibpath_var=LIBPATH |
17985 | |
17986 | # AIX 3 has no versioning support, so we append a major version to the name. |
17987 | soname_spec='${libname}${release}${shared_ext}$major' |
17988 | ;; |
17989 | |
17990 | aix4* | aix5*) |
17991 | version_type=linux |
17992 | need_lib_prefix=no |
17993 | need_version=no |
17994 | hardcode_into_libs=yes |
17995 | if test "$host_cpu" = ia64; then |
17996 | # AIX 5 supports IA64 |
17997 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
17998 | shlibpath_var=LD_LIBRARY_PATH |
17999 | else |
18000 | # With GCC up to 2.95.x, collect2 would create an import file |
18001 | # for dependence libraries. The import file would start with |
18002 | # the line `#! .'. This would cause the generated library to |
18003 | # depend on `.', always an invalid library. This was fixed in |
18004 | # development snapshots of GCC prior to 3.0. |
18005 | case $host_os in |
18006 | aix4 | aix4.[01] | aix4.[01].*) |
18007 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
18008 | echo ' yes ' |
18009 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
18010 | : |
18011 | else |
18012 | can_build_shared=no |
18013 | fi |
18014 | ;; |
18015 | esac |
18016 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
18017 | # soname into executable. Probably we can add versioning support to |
18018 | # collect2, so additional links can be useful in future. |
18019 | if test "$aix_use_runtimelinking" = yes; then |
18020 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
18021 | # instead of lib<name>.a to let people know that these are not |
18022 | # typical AIX shared libraries. |
18023 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18024 | else |
18025 | # We preserve .a as extension for shared libraries through AIX4.2 |
18026 | # and later when we are not doing run time linking. |
18027 | library_names_spec='${libname}${release}.a $libname.a' |
18028 | soname_spec='${libname}${release}${shared_ext}$major' |
18029 | fi |
18030 | shlibpath_var=LIBPATH |
18031 | fi |
18032 | ;; |
18033 | |
18034 | amigaos*) |
18035 | library_names_spec='$libname.ixlibrary $libname.a' |
18036 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
18037 | 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' |
18038 | ;; |
18039 | |
18040 | beos*) |
18041 | library_names_spec='${libname}${shared_ext}' |
18042 | dynamic_linker="$host_os ld.so" |
18043 | shlibpath_var=LIBRARY_PATH |
18044 | ;; |
18045 | |
18046 | bsdi[45]*) |
18047 | version_type=linux |
18048 | need_version=no |
18049 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18050 | soname_spec='${libname}${release}${shared_ext}$major' |
18051 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
18052 | shlibpath_var=LD_LIBRARY_PATH |
18053 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
18054 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
18055 | # the default ld.so.conf also contains /usr/contrib/lib and |
18056 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
18057 | # libtool to hard-code these into programs |
18058 | ;; |
18059 | |
18060 | cygwin* | mingw* | pw32*) |
18061 | version_type=windows |
18062 | shrext_cmds=".dll" |
18063 | need_version=no |
18064 | need_lib_prefix=no |
18065 | |
18066 | case $GCC,$host_os in |
18067 | yes,cygwin* | yes,mingw* | yes,pw32*) |
18068 | library_names_spec='$libname.dll.a' |
18069 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
18070 | postinstall_cmds='base_file=`basename \${file}`~ |
18071 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
18072 | dldir=$destdir/`dirname \$dlpath`~ |
18073 | test -d \$dldir || mkdir -p \$dldir~ |
18074 | $install_prog $dir/$dlname \$dldir/$dlname~ |
18075 | chmod a+x \$dldir/$dlname' |
18076 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
18077 | dlpath=$dir/\$dldll~ |
18078 | $rm \$dlpath' |
18079 | shlibpath_overrides_runpath=yes |
18080 | |
18081 | case $host_os in |
18082 | cygwin*) |
18083 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
18084 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
18085 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
18086 | ;; |
18087 | mingw*) |
18088 | # MinGW DLLs use traditional 'lib' prefix |
18089 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
18090 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
18091 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
18092 | # It is most probably a Windows format PATH printed by |
18093 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
18094 | # path with ; separators, and with drive letters. We can handle the |
18095 | # drive letters (cygwin fileutils understands them), so leave them, |
18096 | # especially as we might pass files found there to a mingw objdump, |
18097 | # which wouldn't understand a cygwinified path. Ahh. |
18098 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
18099 | else |
18100 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
18101 | fi |
18102 | ;; |
18103 | pw32*) |
18104 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
18105 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
18106 | ;; |
18107 | esac |
18108 | ;; |
18109 | |
18110 | *) |
18111 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
18112 | ;; |
18113 | esac |
18114 | dynamic_linker='Win32 ld.exe' |
18115 | # FIXME: first we should search . and the directory the executable is in |
18116 | shlibpath_var=PATH |
18117 | ;; |
18118 | |
18119 | darwin* | rhapsody*) |
18120 | dynamic_linker="$host_os dyld" |
18121 | version_type=darwin |
18122 | need_lib_prefix=no |
18123 | need_version=no |
18124 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
18125 | soname_spec='${libname}${release}${major}$shared_ext' |
18126 | shlibpath_overrides_runpath=yes |
18127 | shlibpath_var=DYLD_LIBRARY_PATH |
18128 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
18129 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
18130 | if test "$GCC" = yes; then |
18131 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
18132 | else |
18133 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
18134 | fi |
18135 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
18136 | ;; |
18137 | |
18138 | dgux*) |
18139 | version_type=linux |
18140 | need_lib_prefix=no |
18141 | need_version=no |
18142 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
18143 | soname_spec='${libname}${release}${shared_ext}$major' |
18144 | shlibpath_var=LD_LIBRARY_PATH |
18145 | ;; |
18146 | |
18147 | freebsd1*) |
18148 | dynamic_linker=no |
18149 | ;; |
18150 | |
18151 | kfreebsd*-gnu) |
18152 | version_type=linux |
18153 | need_lib_prefix=no |
18154 | need_version=no |
18155 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
18156 | soname_spec='${libname}${release}${shared_ext}$major' |
18157 | shlibpath_var=LD_LIBRARY_PATH |
18158 | shlibpath_overrides_runpath=no |
18159 | hardcode_into_libs=yes |
18160 | dynamic_linker='GNU ld.so' |
18161 | ;; |
18162 | |
18163 | freebsd* | dragonfly*) |
18164 | # DragonFly does not have aout. When/if they implement a new |
18165 | # versioning mechanism, adjust this. |
18166 | if test -x /usr/bin/objformat; then |
18167 | objformat=`/usr/bin/objformat` |
18168 | else |
18169 | case $host_os in |
18170 | freebsd[123]*) objformat=aout ;; |
18171 | *) objformat=elf ;; |
18172 | esac |
18173 | fi |
18174 | version_type=freebsd-$objformat |
18175 | case $version_type in |
18176 | freebsd-elf*) |
18177 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
18178 | need_version=no |
18179 | need_lib_prefix=no |
18180 | ;; |
18181 | freebsd-*) |
18182 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
18183 | need_version=yes |
18184 | ;; |
18185 | esac |
18186 | shlibpath_var=LD_LIBRARY_PATH |
18187 | case $host_os in |
18188 | freebsd2*) |
18189 | shlibpath_overrides_runpath=yes |
18190 | ;; |
18191 | freebsd3.[01]* | freebsdelf3.[01]*) |
18192 | shlibpath_overrides_runpath=yes |
18193 | hardcode_into_libs=yes |
18194 | ;; |
18195 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
18196 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
18197 | shlibpath_overrides_runpath=no |
18198 | hardcode_into_libs=yes |
18199 | ;; |
18200 | freebsd*) # from 4.6 on |
18201 | shlibpath_overrides_runpath=yes |
18202 | hardcode_into_libs=yes |
18203 | ;; |
18204 | esac |
18205 | ;; |
18206 | |
18207 | gnu*) |
18208 | version_type=linux |
18209 | need_lib_prefix=no |
18210 | need_version=no |
18211 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
18212 | soname_spec='${libname}${release}${shared_ext}$major' |
18213 | shlibpath_var=LD_LIBRARY_PATH |
18214 | hardcode_into_libs=yes |
18215 | ;; |
18216 | |
18217 | hpux9* | hpux10* | hpux11*) |
18218 | # Give a soname corresponding to the major version so that dld.sl refuses to |
18219 | # link against other versions. |
18220 | version_type=sunos |
18221 | need_lib_prefix=no |
18222 | need_version=no |
18223 | case $host_cpu in |
18224 | ia64*) |
18225 | shrext_cmds='.so' |
18226 | hardcode_into_libs=yes |
18227 | dynamic_linker="$host_os dld.so" |
18228 | shlibpath_var=LD_LIBRARY_PATH |
18229 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
18230 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18231 | soname_spec='${libname}${release}${shared_ext}$major' |
18232 | if test "X$HPUX_IA64_MODE" = X32; then |
18233 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
18234 | else |
18235 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
18236 | fi |
18237 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
18238 | ;; |
18239 | hppa*64*) |
18240 | shrext_cmds='.sl' |
18241 | hardcode_into_libs=yes |
18242 | dynamic_linker="$host_os dld.sl" |
18243 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
18244 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
18245 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18246 | soname_spec='${libname}${release}${shared_ext}$major' |
18247 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
18248 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
18249 | ;; |
18250 | *) |
18251 | shrext_cmds='.sl' |
18252 | dynamic_linker="$host_os dld.sl" |
18253 | shlibpath_var=SHLIB_PATH |
18254 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
18255 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18256 | soname_spec='${libname}${release}${shared_ext}$major' |
18257 | ;; |
18258 | esac |
18259 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
18260 | postinstall_cmds='chmod 555 $lib' |
18261 | ;; |
18262 | |
18263 | interix3*) |
18264 | version_type=linux |
18265 | need_lib_prefix=no |
18266 | need_version=no |
18267 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
18268 | soname_spec='${libname}${release}${shared_ext}$major' |
18269 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
18270 | shlibpath_var=LD_LIBRARY_PATH |
18271 | shlibpath_overrides_runpath=no |
18272 | hardcode_into_libs=yes |
18273 | ;; |
18274 | |
18275 | irix5* | irix6* | nonstopux*) |
18276 | case $host_os in |
18277 | nonstopux*) version_type=nonstopux ;; |
18278 | *) |
18279 | if test "$lt_cv_prog_gnu_ld" = yes; then |
18280 | version_type=linux |
18281 | else |
18282 | version_type=irix |
18283 | fi ;; |
18284 | esac |
18285 | need_lib_prefix=no |
18286 | need_version=no |
18287 | soname_spec='${libname}${release}${shared_ext}$major' |
18288 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
18289 | case $host_os in |
18290 | irix5* | nonstopux*) |
18291 | libsuff= shlibsuff= |
18292 | ;; |
18293 | *) |
18294 | case $LD in # libtool.m4 will add one of these switches to LD |
18295 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
18296 | libsuff= shlibsuff= libmagic=32-bit;; |
18297 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
18298 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
18299 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
18300 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
18301 | *) libsuff= shlibsuff= libmagic=never-match;; |
18302 | esac |
18303 | ;; |
18304 | esac |
18305 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
18306 | shlibpath_overrides_runpath=no |
18307 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
18308 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
18309 | hardcode_into_libs=yes |
18310 | ;; |
18311 | |
18312 | # No shared lib support for Linux oldld, aout, or coff. |
18313 | linux*oldld* | linux*aout* | linux*coff*) |
18314 | dynamic_linker=no |
18315 | ;; |
18316 | |
18317 | # This must be Linux ELF. |
18318 | linux*) |
18319 | version_type=linux |
18320 | need_lib_prefix=no |
18321 | need_version=no |
18322 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18323 | soname_spec='${libname}${release}${shared_ext}$major' |
18324 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
18325 | shlibpath_var=LD_LIBRARY_PATH |
18326 | shlibpath_overrides_runpath=no |
18327 | # This implies no fast_install, which is unacceptable. |
18328 | # Some rework will be needed to allow for fast_install |
18329 | # before this can be enabled. |
18330 | hardcode_into_libs=yes |
18331 | |
18332 | # find out which ABI we are using |
18333 | libsuff= |
18334 | case "$host_cpu" in |
18335 | x86_64*|s390x*|powerpc64*) |
dd184caf |
18336 | echo '#line 18336 "configure"' > conftest.$ac_ext |
d9898ee8 |
18337 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
18338 | (eval $ac_compile) 2>&5 |
18339 | ac_status=$? |
18340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18341 | (exit $ac_status); }; then |
18342 | case `/usr/bin/file conftest.$ac_objext` in |
18343 | *64-bit*) |
18344 | libsuff=64 |
18345 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" |
18346 | ;; |
18347 | esac |
18348 | fi |
18349 | rm -rf conftest* |
18350 | ;; |
18351 | esac |
18352 | |
18353 | # Append ld.so.conf contents to the search path |
18354 | if test -f /etc/ld.so.conf; then |
dd184caf |
18355 | 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/#.*//;/^[^\/]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
d9898ee8 |
18356 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" |
18357 | fi |
18358 | |
18359 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
18360 | # powerpc, because MkLinux only supported shared libraries with the |
18361 | # GNU dynamic linker. Since this was broken with cross compilers, |
18362 | # most powerpc-linux boxes support dynamic linking these days and |
18363 | # people can always --disable-shared, the test was removed, and we |
18364 | # assume the GNU/Linux dynamic linker is in use. |
18365 | dynamic_linker='GNU/Linux ld.so' |
18366 | ;; |
18367 | |
18368 | knetbsd*-gnu) |
18369 | version_type=linux |
18370 | need_lib_prefix=no |
18371 | need_version=no |
18372 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
18373 | soname_spec='${libname}${release}${shared_ext}$major' |
18374 | shlibpath_var=LD_LIBRARY_PATH |
18375 | shlibpath_overrides_runpath=no |
18376 | hardcode_into_libs=yes |
18377 | dynamic_linker='GNU ld.so' |
18378 | ;; |
18379 | |
18380 | netbsd*) |
18381 | version_type=sunos |
18382 | need_lib_prefix=no |
18383 | need_version=no |
18384 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
18385 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
18386 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
18387 | dynamic_linker='NetBSD (a.out) ld.so' |
18388 | else |
18389 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
18390 | soname_spec='${libname}${release}${shared_ext}$major' |
18391 | dynamic_linker='NetBSD ld.elf_so' |
18392 | fi |
18393 | shlibpath_var=LD_LIBRARY_PATH |
18394 | shlibpath_overrides_runpath=yes |
18395 | hardcode_into_libs=yes |
18396 | ;; |
18397 | |
18398 | newsos6) |
18399 | version_type=linux |
18400 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18401 | shlibpath_var=LD_LIBRARY_PATH |
18402 | shlibpath_overrides_runpath=yes |
18403 | ;; |
18404 | |
18405 | nto-qnx*) |
18406 | version_type=linux |
18407 | need_lib_prefix=no |
18408 | need_version=no |
18409 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18410 | soname_spec='${libname}${release}${shared_ext}$major' |
18411 | shlibpath_var=LD_LIBRARY_PATH |
18412 | shlibpath_overrides_runpath=yes |
18413 | ;; |
18414 | |
18415 | openbsd*) |
18416 | version_type=sunos |
18417 | sys_lib_dlsearch_path_spec="/usr/lib" |
18418 | need_lib_prefix=no |
18419 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
18420 | case $host_os in |
18421 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
18422 | *) need_version=no ;; |
18423 | esac |
18424 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
18425 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
18426 | shlibpath_var=LD_LIBRARY_PATH |
18427 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
18428 | case $host_os in |
18429 | openbsd2.[89] | openbsd2.[89].*) |
18430 | shlibpath_overrides_runpath=no |
18431 | ;; |
18432 | *) |
18433 | shlibpath_overrides_runpath=yes |
18434 | ;; |
18435 | esac |
18436 | else |
18437 | shlibpath_overrides_runpath=yes |
18438 | fi |
18439 | ;; |
18440 | |
18441 | os2*) |
18442 | libname_spec='$name' |
18443 | shrext_cmds=".dll" |
18444 | need_lib_prefix=no |
18445 | library_names_spec='$libname${shared_ext} $libname.a' |
18446 | dynamic_linker='OS/2 ld.exe' |
18447 | shlibpath_var=LIBPATH |
18448 | ;; |
18449 | |
18450 | osf3* | osf4* | osf5*) |
18451 | version_type=osf |
18452 | need_lib_prefix=no |
18453 | need_version=no |
18454 | soname_spec='${libname}${release}${shared_ext}$major' |
18455 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18456 | shlibpath_var=LD_LIBRARY_PATH |
18457 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
18458 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
18459 | ;; |
18460 | |
18461 | solaris*) |
18462 | version_type=linux |
18463 | need_lib_prefix=no |
18464 | need_version=no |
18465 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18466 | soname_spec='${libname}${release}${shared_ext}$major' |
18467 | shlibpath_var=LD_LIBRARY_PATH |
18468 | shlibpath_overrides_runpath=yes |
18469 | hardcode_into_libs=yes |
18470 | # ldd complains unless libraries are executable |
18471 | postinstall_cmds='chmod +x $lib' |
18472 | ;; |
18473 | |
18474 | sunos4*) |
18475 | version_type=sunos |
18476 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
18477 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
18478 | shlibpath_var=LD_LIBRARY_PATH |
18479 | shlibpath_overrides_runpath=yes |
18480 | if test "$with_gnu_ld" = yes; then |
18481 | need_lib_prefix=no |
18482 | fi |
18483 | need_version=yes |
18484 | ;; |
18485 | |
18486 | sysv4 | sysv4.3*) |
18487 | version_type=linux |
18488 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18489 | soname_spec='${libname}${release}${shared_ext}$major' |
18490 | shlibpath_var=LD_LIBRARY_PATH |
18491 | case $host_vendor in |
18492 | sni) |
18493 | shlibpath_overrides_runpath=no |
18494 | need_lib_prefix=no |
18495 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
18496 | runpath_var=LD_RUN_PATH |
18497 | ;; |
18498 | siemens) |
18499 | need_lib_prefix=no |
18500 | ;; |
18501 | motorola) |
18502 | need_lib_prefix=no |
18503 | need_version=no |
18504 | shlibpath_overrides_runpath=no |
18505 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
18506 | ;; |
18507 | esac |
18508 | ;; |
18509 | |
18510 | sysv4*MP*) |
18511 | if test -d /usr/nec ;then |
18512 | version_type=linux |
18513 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
18514 | soname_spec='$libname${shared_ext}.$major' |
18515 | shlibpath_var=LD_LIBRARY_PATH |
18516 | fi |
18517 | ;; |
18518 | |
18519 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
18520 | version_type=freebsd-elf |
18521 | need_lib_prefix=no |
18522 | need_version=no |
18523 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
18524 | soname_spec='${libname}${release}${shared_ext}$major' |
18525 | shlibpath_var=LD_LIBRARY_PATH |
18526 | hardcode_into_libs=yes |
18527 | if test "$with_gnu_ld" = yes; then |
18528 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
18529 | shlibpath_overrides_runpath=no |
18530 | else |
18531 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
18532 | shlibpath_overrides_runpath=yes |
18533 | case $host_os in |
18534 | sco3.2v5*) |
18535 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
18536 | ;; |
18537 | esac |
18538 | fi |
18539 | sys_lib_dlsearch_path_spec='/usr/lib' |
18540 | ;; |
18541 | |
18542 | uts4*) |
18543 | version_type=linux |
18544 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18545 | soname_spec='${libname}${release}${shared_ext}$major' |
18546 | shlibpath_var=LD_LIBRARY_PATH |
18547 | ;; |
18548 | |
18549 | *) |
18550 | dynamic_linker=no |
18551 | ;; |
18552 | esac |
dd184caf |
18553 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
18554 | echo "${ECHO_T}$dynamic_linker" >&6; } |
d9898ee8 |
18555 | test "$dynamic_linker" = no && can_build_shared=no |
18556 | |
18557 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
18558 | if test "$GCC" = yes; then |
18559 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
18560 | fi |
18561 | |
dd184caf |
18562 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
18563 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
d9898ee8 |
18564 | hardcode_action_GCJ= |
18565 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ |
18566 | test -n "$runpath_var_GCJ" || \ |
18567 | test "X$hardcode_automatic_GCJ" = "Xyes" ; then |
18568 | |
18569 | # We can hardcode non-existant directories. |
18570 | if test "$hardcode_direct_GCJ" != no && |
18571 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
18572 | # have to relink, otherwise we might link with an installed library |
18573 | # when we should be linking with a yet-to-be-installed one |
18574 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && |
18575 | test "$hardcode_minus_L_GCJ" != no; then |
18576 | # Linking always hardcodes the temporary library directory. |
18577 | hardcode_action_GCJ=relink |
18578 | else |
18579 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
18580 | hardcode_action_GCJ=immediate |
18581 | fi |
18582 | else |
18583 | # We cannot hardcode anything, or else we can only hardcode existing |
18584 | # directories. |
18585 | hardcode_action_GCJ=unsupported |
18586 | fi |
dd184caf |
18587 | { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 |
18588 | echo "${ECHO_T}$hardcode_action_GCJ" >&6; } |
d9898ee8 |
18589 | |
18590 | if test "$hardcode_action_GCJ" = relink; then |
18591 | # Fast installation is not supported |
18592 | enable_fast_install=no |
18593 | elif test "$shlibpath_overrides_runpath" = yes || |
18594 | test "$enable_shared" = no; then |
18595 | # Fast installation is not necessary |
18596 | enable_fast_install=needless |
18597 | fi |
18598 | |
18599 | |
18600 | # The else clause should only fire when bootstrapping the |
18601 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
18602 | # with your package, and you will get complaints that there are |
18603 | # no rules to generate ltmain.sh. |
18604 | if test -f "$ltmain"; then |
18605 | # See if we are running on zsh, and set the options which allow our commands through |
18606 | # without removal of \ escapes. |
18607 | if test -n "${ZSH_VERSION+set}" ; then |
18608 | setopt NO_GLOB_SUBST |
18609 | fi |
18610 | # Now quote all the things that may contain metacharacters while being |
18611 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
18612 | # variables and quote the copies for generation of the libtool script. |
18613 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
18614 | SED SHELL STRIP \ |
18615 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
18616 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
18617 | deplibs_check_method reload_flag reload_cmds need_locks \ |
18618 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
18619 | lt_cv_sys_global_symbol_to_c_name_address \ |
18620 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
18621 | old_postinstall_cmds old_postuninstall_cmds \ |
18622 | compiler_GCJ \ |
18623 | CC_GCJ \ |
18624 | LD_GCJ \ |
18625 | lt_prog_compiler_wl_GCJ \ |
18626 | lt_prog_compiler_pic_GCJ \ |
18627 | lt_prog_compiler_static_GCJ \ |
18628 | lt_prog_compiler_no_builtin_flag_GCJ \ |
18629 | export_dynamic_flag_spec_GCJ \ |
18630 | thread_safe_flag_spec_GCJ \ |
18631 | whole_archive_flag_spec_GCJ \ |
18632 | enable_shared_with_static_runtimes_GCJ \ |
18633 | old_archive_cmds_GCJ \ |
18634 | old_archive_from_new_cmds_GCJ \ |
18635 | predep_objects_GCJ \ |
18636 | postdep_objects_GCJ \ |
18637 | predeps_GCJ \ |
18638 | postdeps_GCJ \ |
18639 | compiler_lib_search_path_GCJ \ |
18640 | archive_cmds_GCJ \ |
18641 | archive_expsym_cmds_GCJ \ |
18642 | postinstall_cmds_GCJ \ |
18643 | postuninstall_cmds_GCJ \ |
18644 | old_archive_from_expsyms_cmds_GCJ \ |
18645 | allow_undefined_flag_GCJ \ |
18646 | no_undefined_flag_GCJ \ |
18647 | export_symbols_cmds_GCJ \ |
18648 | hardcode_libdir_flag_spec_GCJ \ |
18649 | hardcode_libdir_flag_spec_ld_GCJ \ |
18650 | hardcode_libdir_separator_GCJ \ |
18651 | hardcode_automatic_GCJ \ |
18652 | module_cmds_GCJ \ |
18653 | module_expsym_cmds_GCJ \ |
18654 | lt_cv_prog_compiler_c_o_GCJ \ |
18655 | exclude_expsyms_GCJ \ |
18656 | include_expsyms_GCJ; do |
18657 | |
18658 | case $var in |
18659 | old_archive_cmds_GCJ | \ |
18660 | old_archive_from_new_cmds_GCJ | \ |
18661 | archive_cmds_GCJ | \ |
18662 | archive_expsym_cmds_GCJ | \ |
18663 | module_cmds_GCJ | \ |
18664 | module_expsym_cmds_GCJ | \ |
18665 | old_archive_from_expsyms_cmds_GCJ | \ |
18666 | export_symbols_cmds_GCJ | \ |
18667 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
18668 | postinstall_cmds | postuninstall_cmds | \ |
18669 | old_postinstall_cmds | old_postuninstall_cmds | \ |
18670 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
18671 | # Double-quote double-evaled strings. |
18672 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
18673 | ;; |
18674 | *) |
18675 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
18676 | ;; |
18677 | esac |
18678 | done |
18679 | |
18680 | case $lt_echo in |
18681 | *'\$0 --fallback-echo"') |
18682 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
18683 | ;; |
18684 | esac |
18685 | |
18686 | cfgfile="$ofile" |
18687 | |
18688 | cat <<__EOF__ >> "$cfgfile" |
18689 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
18690 | |
18691 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
18692 | |
18693 | # Shell to use when invoking shell scripts. |
18694 | SHELL=$lt_SHELL |
18695 | |
18696 | # Whether or not to build shared libraries. |
18697 | build_libtool_libs=$enable_shared |
18698 | |
18699 | # Whether or not to build static libraries. |
18700 | build_old_libs=$enable_static |
18701 | |
18702 | # Whether or not to add -lc for building shared libraries. |
18703 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ |
18704 | |
18705 | # Whether or not to disallow shared libs when runtime libs are static |
18706 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ |
18707 | |
18708 | # Whether or not to optimize for fast installation. |
18709 | fast_install=$enable_fast_install |
18710 | |
18711 | # The host system. |
18712 | host_alias=$host_alias |
18713 | host=$host |
18714 | host_os=$host_os |
18715 | |
18716 | # The build system. |
18717 | build_alias=$build_alias |
18718 | build=$build |
18719 | build_os=$build_os |
18720 | |
18721 | # An echo program that does not interpret backslashes. |
18722 | echo=$lt_echo |
18723 | |
18724 | # The archiver. |
18725 | AR=$lt_AR |
18726 | AR_FLAGS=$lt_AR_FLAGS |
18727 | |
18728 | # A C compiler. |
18729 | LTCC=$lt_LTCC |
18730 | |
18731 | # LTCC compiler flags. |
18732 | LTCFLAGS=$lt_LTCFLAGS |
18733 | |
18734 | # A language-specific compiler. |
18735 | CC=$lt_compiler_GCJ |
18736 | |
18737 | # Is the compiler the GNU C compiler? |
18738 | with_gcc=$GCC_GCJ |
18739 | |
d9898ee8 |
18740 | # An ERE matcher. |
18741 | EGREP=$lt_EGREP |
18742 | |
18743 | # The linker used to build libraries. |
18744 | LD=$lt_LD_GCJ |
18745 | |
18746 | # Whether we need hard or soft links. |
18747 | LN_S=$lt_LN_S |
18748 | |
18749 | # A BSD-compatible nm program. |
18750 | NM=$lt_NM |
18751 | |
18752 | # A symbol stripping program |
18753 | STRIP=$lt_STRIP |
18754 | |
18755 | # Used to examine libraries when file_magic_cmd begins "file" |
18756 | MAGIC_CMD=$MAGIC_CMD |
18757 | |
18758 | # Used on cygwin: DLL creation program. |
18759 | DLLTOOL="$DLLTOOL" |
18760 | |
18761 | # Used on cygwin: object dumper. |
18762 | OBJDUMP="$OBJDUMP" |
18763 | |
18764 | # Used on cygwin: assembler. |
18765 | AS="$AS" |
18766 | |
18767 | # The name of the directory that contains temporary libtool files. |
18768 | objdir=$objdir |
18769 | |
18770 | # How to create reloadable object files. |
18771 | reload_flag=$lt_reload_flag |
18772 | reload_cmds=$lt_reload_cmds |
18773 | |
18774 | # How to pass a linker flag through the compiler. |
18775 | wl=$lt_lt_prog_compiler_wl_GCJ |
18776 | |
18777 | # Object file suffix (normally "o"). |
18778 | objext="$ac_objext" |
18779 | |
18780 | # Old archive suffix (normally "a"). |
18781 | libext="$libext" |
18782 | |
18783 | # Shared library suffix (normally ".so"). |
18784 | shrext_cmds='$shrext_cmds' |
18785 | |
18786 | # Executable file suffix (normally ""). |
18787 | exeext="$exeext" |
18788 | |
18789 | # Additional compiler flags for building library objects. |
18790 | pic_flag=$lt_lt_prog_compiler_pic_GCJ |
18791 | pic_mode=$pic_mode |
18792 | |
18793 | # What is the maximum length of a command? |
18794 | max_cmd_len=$lt_cv_sys_max_cmd_len |
18795 | |
18796 | # Does compiler simultaneously support -c and -o options? |
18797 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ |
18798 | |
18799 | # Must we lock files when doing compilation? |
18800 | need_locks=$lt_need_locks |
18801 | |
18802 | # Do we need the lib prefix for modules? |
18803 | need_lib_prefix=$need_lib_prefix |
18804 | |
18805 | # Do we need a version for libraries? |
18806 | need_version=$need_version |
18807 | |
18808 | # Whether dlopen is supported. |
18809 | dlopen_support=$enable_dlopen |
18810 | |
18811 | # Whether dlopen of programs is supported. |
18812 | dlopen_self=$enable_dlopen_self |
18813 | |
18814 | # Whether dlopen of statically linked programs is supported. |
18815 | dlopen_self_static=$enable_dlopen_self_static |
18816 | |
18817 | # Compiler flag to prevent dynamic linking. |
18818 | link_static_flag=$lt_lt_prog_compiler_static_GCJ |
18819 | |
18820 | # Compiler flag to turn off builtin functions. |
18821 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ |
18822 | |
18823 | # Compiler flag to allow reflexive dlopens. |
18824 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ |
18825 | |
18826 | # Compiler flag to generate shared objects directly from archives. |
18827 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ |
18828 | |
18829 | # Compiler flag to generate thread-safe objects. |
18830 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ |
18831 | |
18832 | # Library versioning type. |
18833 | version_type=$version_type |
18834 | |
18835 | # Format of library name prefix. |
18836 | libname_spec=$lt_libname_spec |
18837 | |
18838 | # List of archive names. First name is the real one, the rest are links. |
18839 | # The last name is the one that the linker finds with -lNAME. |
18840 | library_names_spec=$lt_library_names_spec |
18841 | |
18842 | # The coded name of the library, if different from the real name. |
18843 | soname_spec=$lt_soname_spec |
18844 | |
18845 | # Commands used to build and install an old-style archive. |
18846 | RANLIB=$lt_RANLIB |
18847 | old_archive_cmds=$lt_old_archive_cmds_GCJ |
18848 | old_postinstall_cmds=$lt_old_postinstall_cmds |
18849 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
18850 | |
18851 | # Create an old-style archive from a shared archive. |
18852 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ |
18853 | |
18854 | # Create a temporary old-style archive to link instead of a shared archive. |
18855 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ |
18856 | |
18857 | # Commands used to build and install a shared archive. |
18858 | archive_cmds=$lt_archive_cmds_GCJ |
18859 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ |
18860 | postinstall_cmds=$lt_postinstall_cmds |
18861 | postuninstall_cmds=$lt_postuninstall_cmds |
18862 | |
18863 | # Commands used to build a loadable module (assumed same as above if empty) |
18864 | module_cmds=$lt_module_cmds_GCJ |
18865 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ |
18866 | |
18867 | # Commands to strip libraries. |
18868 | old_striplib=$lt_old_striplib |
18869 | striplib=$lt_striplib |
18870 | |
18871 | # Dependencies to place before the objects being linked to create a |
18872 | # shared library. |
dd184caf |
18873 | predep_objects=$lt_predep_objects_GCJ |
d9898ee8 |
18874 | |
18875 | # Dependencies to place after the objects being linked to create a |
18876 | # shared library. |
dd184caf |
18877 | postdep_objects=$lt_postdep_objects_GCJ |
d9898ee8 |
18878 | |
18879 | # Dependencies to place before the objects being linked to create a |
18880 | # shared library. |
18881 | predeps=$lt_predeps_GCJ |
18882 | |
18883 | # Dependencies to place after the objects being linked to create a |
18884 | # shared library. |
18885 | postdeps=$lt_postdeps_GCJ |
18886 | |
18887 | # The library search path used internally by the compiler when linking |
18888 | # a shared library. |
dd184caf |
18889 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ |
d9898ee8 |
18890 | |
18891 | # Method to check whether dependent libraries are shared objects. |
18892 | deplibs_check_method=$lt_deplibs_check_method |
18893 | |
18894 | # Command to use when deplibs_check_method == file_magic. |
18895 | file_magic_cmd=$lt_file_magic_cmd |
18896 | |
18897 | # Flag that allows shared libraries with undefined symbols to be built. |
18898 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ |
18899 | |
18900 | # Flag that forces no undefined symbols. |
18901 | no_undefined_flag=$lt_no_undefined_flag_GCJ |
18902 | |
18903 | # Commands used to finish a libtool library installation in a directory. |
18904 | finish_cmds=$lt_finish_cmds |
18905 | |
18906 | # Same as above, but a single script fragment to be evaled but not shown. |
18907 | finish_eval=$lt_finish_eval |
18908 | |
18909 | # Take the output of nm and produce a listing of raw symbols and C names. |
18910 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
18911 | |
18912 | # Transform the output of nm in a proper C declaration |
18913 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
18914 | |
18915 | # Transform the output of nm in a C name address pair |
18916 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
18917 | |
18918 | # This is the shared library runtime path variable. |
18919 | runpath_var=$runpath_var |
18920 | |
18921 | # This is the shared library path variable. |
18922 | shlibpath_var=$shlibpath_var |
18923 | |
18924 | # Is shlibpath searched before the hard-coded library search path? |
18925 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
18926 | |
18927 | # How to hardcode a shared library path into an executable. |
18928 | hardcode_action=$hardcode_action_GCJ |
18929 | |
18930 | # Whether we should hardcode library paths into libraries. |
18931 | hardcode_into_libs=$hardcode_into_libs |
18932 | |
18933 | # Flag to hardcode \$libdir into a binary during linking. |
18934 | # This must work even if \$libdir does not exist. |
18935 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ |
18936 | |
18937 | # If ld is used when linking, flag to hardcode \$libdir into |
18938 | # a binary during linking. This must work even if \$libdir does |
18939 | # not exist. |
18940 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ |
18941 | |
18942 | # Whether we need a single -rpath flag with a separated argument. |
18943 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ |
18944 | |
18945 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
18946 | # resulting binary. |
18947 | hardcode_direct=$hardcode_direct_GCJ |
18948 | |
18949 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
18950 | # resulting binary. |
18951 | hardcode_minus_L=$hardcode_minus_L_GCJ |
18952 | |
18953 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
18954 | # the resulting binary. |
18955 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ |
18956 | |
18957 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
18958 | # and all subsequent libraries and executables linked against it. |
18959 | hardcode_automatic=$hardcode_automatic_GCJ |
18960 | |
18961 | # Variables whose values should be saved in libtool wrapper scripts and |
18962 | # restored at relink time. |
18963 | variables_saved_for_relink="$variables_saved_for_relink" |
18964 | |
18965 | # Whether libtool must link a program against all its dependency libraries. |
18966 | link_all_deplibs=$link_all_deplibs_GCJ |
18967 | |
18968 | # Compile-time system search path for libraries |
dd184caf |
18969 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
d9898ee8 |
18970 | |
18971 | # Run-time system search path for libraries |
18972 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
18973 | |
18974 | # Fix the shell variable \$srcfile for the compiler. |
18975 | fix_srcfile_path="$fix_srcfile_path_GCJ" |
18976 | |
18977 | # Set to yes if exported symbols are required. |
18978 | always_export_symbols=$always_export_symbols_GCJ |
18979 | |
18980 | # The commands to list exported symbols. |
18981 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ |
18982 | |
18983 | # The commands to extract the exported symbol list from a shared archive. |
18984 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
18985 | |
18986 | # Symbols that should not be listed in the preloaded symbols. |
18987 | exclude_expsyms=$lt_exclude_expsyms_GCJ |
18988 | |
18989 | # Symbols that must always be exported. |
18990 | include_expsyms=$lt_include_expsyms_GCJ |
18991 | |
18992 | # ### END LIBTOOL TAG CONFIG: $tagname |
18993 | |
18994 | __EOF__ |
18995 | |
18996 | |
18997 | else |
18998 | # If there is no Makefile yet, we rely on a make rule to execute |
18999 | # `config.status --recheck' to rerun these tests and create the |
19000 | # libtool script then. |
19001 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
19002 | if test -f "$ltmain_in"; then |
19003 | test -f Makefile && make "$ltmain" |
19004 | fi |
19005 | fi |
19006 | |
19007 | |
19008 | ac_ext=c |
19009 | ac_cpp='$CPP $CPPFLAGS' |
19010 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
19011 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
19012 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
19013 | |
19014 | CC="$lt_save_CC" |
19015 | |
19016 | else |
19017 | tagname="" |
19018 | fi |
19019 | ;; |
19020 | |
19021 | RC) |
19022 | |
19023 | |
d9898ee8 |
19024 | # Source file extension for RC test sources. |
19025 | ac_ext=rc |
19026 | |
19027 | # Object file extension for compiled RC test sources. |
19028 | objext=o |
19029 | objext_RC=$objext |
19030 | |
19031 | # Code to be used in simple compile tests |
19032 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' |
19033 | |
19034 | # Code to be used in simple link tests |
19035 | lt_simple_link_test_code="$lt_simple_compile_test_code" |
19036 | |
19037 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
19038 | |
19039 | # If no C compiler was specified, use CC. |
19040 | LTCC=${LTCC-"$CC"} |
19041 | |
19042 | # If no C compiler flags were specified, use CFLAGS. |
19043 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
19044 | |
19045 | # Allow CC to be a program name with arguments. |
19046 | compiler=$CC |
19047 | |
19048 | |
19049 | # save warnings/boilerplate of simple test code |
19050 | ac_outfile=conftest.$ac_objext |
19051 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
19052 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
19053 | _lt_compiler_boilerplate=`cat conftest.err` |
19054 | $rm conftest* |
19055 | |
19056 | ac_outfile=conftest.$ac_objext |
19057 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
19058 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
19059 | _lt_linker_boilerplate=`cat conftest.err` |
19060 | $rm conftest* |
19061 | |
19062 | |
19063 | # Allow CC to be a program name with arguments. |
19064 | lt_save_CC="$CC" |
19065 | CC=${RC-"windres"} |
19066 | compiler=$CC |
19067 | compiler_RC=$CC |
19068 | for cc_temp in $compiler""; do |
19069 | case $cc_temp in |
19070 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
19071 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
19072 | \-*) ;; |
19073 | *) break;; |
19074 | esac |
19075 | done |
19076 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
19077 | |
19078 | lt_cv_prog_compiler_c_o_RC=yes |
19079 | |
19080 | # The else clause should only fire when bootstrapping the |
19081 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
19082 | # with your package, and you will get complaints that there are |
19083 | # no rules to generate ltmain.sh. |
19084 | if test -f "$ltmain"; then |
19085 | # See if we are running on zsh, and set the options which allow our commands through |
19086 | # without removal of \ escapes. |
19087 | if test -n "${ZSH_VERSION+set}" ; then |
19088 | setopt NO_GLOB_SUBST |
19089 | fi |
19090 | # Now quote all the things that may contain metacharacters while being |
19091 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
19092 | # variables and quote the copies for generation of the libtool script. |
19093 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
19094 | SED SHELL STRIP \ |
19095 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
19096 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
19097 | deplibs_check_method reload_flag reload_cmds need_locks \ |
19098 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
19099 | lt_cv_sys_global_symbol_to_c_name_address \ |
19100 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
19101 | old_postinstall_cmds old_postuninstall_cmds \ |
19102 | compiler_RC \ |
19103 | CC_RC \ |
19104 | LD_RC \ |
19105 | lt_prog_compiler_wl_RC \ |
19106 | lt_prog_compiler_pic_RC \ |
19107 | lt_prog_compiler_static_RC \ |
19108 | lt_prog_compiler_no_builtin_flag_RC \ |
19109 | export_dynamic_flag_spec_RC \ |
19110 | thread_safe_flag_spec_RC \ |
19111 | whole_archive_flag_spec_RC \ |
19112 | enable_shared_with_static_runtimes_RC \ |
19113 | old_archive_cmds_RC \ |
19114 | old_archive_from_new_cmds_RC \ |
19115 | predep_objects_RC \ |
19116 | postdep_objects_RC \ |
19117 | predeps_RC \ |
19118 | postdeps_RC \ |
19119 | compiler_lib_search_path_RC \ |
19120 | archive_cmds_RC \ |
19121 | archive_expsym_cmds_RC \ |
19122 | postinstall_cmds_RC \ |
19123 | postuninstall_cmds_RC \ |
19124 | old_archive_from_expsyms_cmds_RC \ |
19125 | allow_undefined_flag_RC \ |
19126 | no_undefined_flag_RC \ |
19127 | export_symbols_cmds_RC \ |
19128 | hardcode_libdir_flag_spec_RC \ |
19129 | hardcode_libdir_flag_spec_ld_RC \ |
19130 | hardcode_libdir_separator_RC \ |
19131 | hardcode_automatic_RC \ |
19132 | module_cmds_RC \ |
19133 | module_expsym_cmds_RC \ |
19134 | lt_cv_prog_compiler_c_o_RC \ |
19135 | exclude_expsyms_RC \ |
19136 | include_expsyms_RC; do |
19137 | |
19138 | case $var in |
19139 | old_archive_cmds_RC | \ |
19140 | old_archive_from_new_cmds_RC | \ |
19141 | archive_cmds_RC | \ |
19142 | archive_expsym_cmds_RC | \ |
19143 | module_cmds_RC | \ |
19144 | module_expsym_cmds_RC | \ |
19145 | old_archive_from_expsyms_cmds_RC | \ |
19146 | export_symbols_cmds_RC | \ |
19147 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
19148 | postinstall_cmds | postuninstall_cmds | \ |
19149 | old_postinstall_cmds | old_postuninstall_cmds | \ |
19150 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
19151 | # Double-quote double-evaled strings. |
19152 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
19153 | ;; |
19154 | *) |
19155 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
19156 | ;; |
19157 | esac |
19158 | done |
19159 | |
19160 | case $lt_echo in |
19161 | *'\$0 --fallback-echo"') |
19162 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
19163 | ;; |
19164 | esac |
19165 | |
19166 | cfgfile="$ofile" |
19167 | |
19168 | cat <<__EOF__ >> "$cfgfile" |
19169 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
19170 | |
19171 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
19172 | |
19173 | # Shell to use when invoking shell scripts. |
19174 | SHELL=$lt_SHELL |
19175 | |
19176 | # Whether or not to build shared libraries. |
19177 | build_libtool_libs=$enable_shared |
19178 | |
19179 | # Whether or not to build static libraries. |
19180 | build_old_libs=$enable_static |
19181 | |
19182 | # Whether or not to add -lc for building shared libraries. |
19183 | build_libtool_need_lc=$archive_cmds_need_lc_RC |
19184 | |
19185 | # Whether or not to disallow shared libs when runtime libs are static |
19186 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC |
19187 | |
19188 | # Whether or not to optimize for fast installation. |
19189 | fast_install=$enable_fast_install |
19190 | |
19191 | # The host system. |
19192 | host_alias=$host_alias |
19193 | host=$host |
19194 | host_os=$host_os |
19195 | |
19196 | # The build system. |
19197 | build_alias=$build_alias |
19198 | build=$build |
19199 | build_os=$build_os |
19200 | |
19201 | # An echo program that does not interpret backslashes. |
19202 | echo=$lt_echo |
19203 | |
19204 | # The archiver. |
19205 | AR=$lt_AR |
19206 | AR_FLAGS=$lt_AR_FLAGS |
19207 | |
19208 | # A C compiler. |
19209 | LTCC=$lt_LTCC |
19210 | |
19211 | # LTCC compiler flags. |
19212 | LTCFLAGS=$lt_LTCFLAGS |
19213 | |
19214 | # A language-specific compiler. |
19215 | CC=$lt_compiler_RC |
19216 | |
19217 | # Is the compiler the GNU C compiler? |
19218 | with_gcc=$GCC_RC |
19219 | |
d9898ee8 |
19220 | # An ERE matcher. |
19221 | EGREP=$lt_EGREP |
19222 | |
19223 | # The linker used to build libraries. |
19224 | LD=$lt_LD_RC |
19225 | |
19226 | # Whether we need hard or soft links. |
19227 | LN_S=$lt_LN_S |
19228 | |
19229 | # A BSD-compatible nm program. |
19230 | NM=$lt_NM |
19231 | |
19232 | # A symbol stripping program |
19233 | STRIP=$lt_STRIP |
19234 | |
19235 | # Used to examine libraries when file_magic_cmd begins "file" |
19236 | MAGIC_CMD=$MAGIC_CMD |
19237 | |
19238 | # Used on cygwin: DLL creation program. |
19239 | DLLTOOL="$DLLTOOL" |
19240 | |
19241 | # Used on cygwin: object dumper. |
19242 | OBJDUMP="$OBJDUMP" |
19243 | |
19244 | # Used on cygwin: assembler. |
19245 | AS="$AS" |
19246 | |
19247 | # The name of the directory that contains temporary libtool files. |
19248 | objdir=$objdir |
19249 | |
19250 | # How to create reloadable object files. |
19251 | reload_flag=$lt_reload_flag |
19252 | reload_cmds=$lt_reload_cmds |
19253 | |
19254 | # How to pass a linker flag through the compiler. |
19255 | wl=$lt_lt_prog_compiler_wl_RC |
19256 | |
19257 | # Object file suffix (normally "o"). |
19258 | objext="$ac_objext" |
19259 | |
19260 | # Old archive suffix (normally "a"). |
19261 | libext="$libext" |
19262 | |
19263 | # Shared library suffix (normally ".so"). |
19264 | shrext_cmds='$shrext_cmds' |
19265 | |
19266 | # Executable file suffix (normally ""). |
19267 | exeext="$exeext" |
19268 | |
19269 | # Additional compiler flags for building library objects. |
19270 | pic_flag=$lt_lt_prog_compiler_pic_RC |
19271 | pic_mode=$pic_mode |
19272 | |
19273 | # What is the maximum length of a command? |
19274 | max_cmd_len=$lt_cv_sys_max_cmd_len |
19275 | |
19276 | # Does compiler simultaneously support -c and -o options? |
19277 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC |
19278 | |
19279 | # Must we lock files when doing compilation? |
19280 | need_locks=$lt_need_locks |
19281 | |
19282 | # Do we need the lib prefix for modules? |
19283 | need_lib_prefix=$need_lib_prefix |
19284 | |
19285 | # Do we need a version for libraries? |
19286 | need_version=$need_version |
19287 | |
19288 | # Whether dlopen is supported. |
19289 | dlopen_support=$enable_dlopen |
19290 | |
19291 | # Whether dlopen of programs is supported. |
19292 | dlopen_self=$enable_dlopen_self |
19293 | |
19294 | # Whether dlopen of statically linked programs is supported. |
19295 | dlopen_self_static=$enable_dlopen_self_static |
19296 | |
19297 | # Compiler flag to prevent dynamic linking. |
19298 | link_static_flag=$lt_lt_prog_compiler_static_RC |
19299 | |
19300 | # Compiler flag to turn off builtin functions. |
19301 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC |
19302 | |
19303 | # Compiler flag to allow reflexive dlopens. |
19304 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC |
19305 | |
19306 | # Compiler flag to generate shared objects directly from archives. |
19307 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC |
19308 | |
19309 | # Compiler flag to generate thread-safe objects. |
19310 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC |
19311 | |
19312 | # Library versioning type. |
19313 | version_type=$version_type |
19314 | |
19315 | # Format of library name prefix. |
19316 | libname_spec=$lt_libname_spec |
19317 | |
19318 | # List of archive names. First name is the real one, the rest are links. |
19319 | # The last name is the one that the linker finds with -lNAME. |
19320 | library_names_spec=$lt_library_names_spec |
19321 | |
19322 | # The coded name of the library, if different from the real name. |
19323 | soname_spec=$lt_soname_spec |
19324 | |
19325 | # Commands used to build and install an old-style archive. |
19326 | RANLIB=$lt_RANLIB |
19327 | old_archive_cmds=$lt_old_archive_cmds_RC |
19328 | old_postinstall_cmds=$lt_old_postinstall_cmds |
19329 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
19330 | |
19331 | # Create an old-style archive from a shared archive. |
19332 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC |
19333 | |
19334 | # Create a temporary old-style archive to link instead of a shared archive. |
19335 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC |
19336 | |
19337 | # Commands used to build and install a shared archive. |
19338 | archive_cmds=$lt_archive_cmds_RC |
19339 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC |
19340 | postinstall_cmds=$lt_postinstall_cmds |
19341 | postuninstall_cmds=$lt_postuninstall_cmds |
19342 | |
19343 | # Commands used to build a loadable module (assumed same as above if empty) |
19344 | module_cmds=$lt_module_cmds_RC |
19345 | module_expsym_cmds=$lt_module_expsym_cmds_RC |
19346 | |
19347 | # Commands to strip libraries. |
19348 | old_striplib=$lt_old_striplib |
19349 | striplib=$lt_striplib |
19350 | |
19351 | # Dependencies to place before the objects being linked to create a |
19352 | # shared library. |
dd184caf |
19353 | predep_objects=$lt_predep_objects_RC |
d9898ee8 |
19354 | |
19355 | # Dependencies to place after the objects being linked to create a |
19356 | # shared library. |
dd184caf |
19357 | postdep_objects=$lt_postdep_objects_RC |
d9898ee8 |
19358 | |
19359 | # Dependencies to place before the objects being linked to create a |
19360 | # shared library. |
19361 | predeps=$lt_predeps_RC |
19362 | |
19363 | # Dependencies to place after the objects being linked to create a |
19364 | # shared library. |
19365 | postdeps=$lt_postdeps_RC |
19366 | |
19367 | # The library search path used internally by the compiler when linking |
19368 | # a shared library. |
dd184caf |
19369 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC |
d9898ee8 |
19370 | |
19371 | # Method to check whether dependent libraries are shared objects. |
19372 | deplibs_check_method=$lt_deplibs_check_method |
19373 | |
19374 | # Command to use when deplibs_check_method == file_magic. |
19375 | file_magic_cmd=$lt_file_magic_cmd |
19376 | |
19377 | # Flag that allows shared libraries with undefined symbols to be built. |
19378 | allow_undefined_flag=$lt_allow_undefined_flag_RC |
19379 | |
19380 | # Flag that forces no undefined symbols. |
19381 | no_undefined_flag=$lt_no_undefined_flag_RC |
19382 | |
19383 | # Commands used to finish a libtool library installation in a directory. |
19384 | finish_cmds=$lt_finish_cmds |
19385 | |
19386 | # Same as above, but a single script fragment to be evaled but not shown. |
19387 | finish_eval=$lt_finish_eval |
19388 | |
19389 | # Take the output of nm and produce a listing of raw symbols and C names. |
19390 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
19391 | |
19392 | # Transform the output of nm in a proper C declaration |
19393 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
19394 | |
19395 | # Transform the output of nm in a C name address pair |
19396 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
19397 | |
19398 | # This is the shared library runtime path variable. |
19399 | runpath_var=$runpath_var |
19400 | |
19401 | # This is the shared library path variable. |
19402 | shlibpath_var=$shlibpath_var |
19403 | |
19404 | # Is shlibpath searched before the hard-coded library search path? |
19405 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
19406 | |
19407 | # How to hardcode a shared library path into an executable. |
19408 | hardcode_action=$hardcode_action_RC |
19409 | |
19410 | # Whether we should hardcode library paths into libraries. |
19411 | hardcode_into_libs=$hardcode_into_libs |
19412 | |
19413 | # Flag to hardcode \$libdir into a binary during linking. |
19414 | # This must work even if \$libdir does not exist. |
19415 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC |
19416 | |
19417 | # If ld is used when linking, flag to hardcode \$libdir into |
19418 | # a binary during linking. This must work even if \$libdir does |
19419 | # not exist. |
19420 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC |
19421 | |
19422 | # Whether we need a single -rpath flag with a separated argument. |
19423 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC |
19424 | |
19425 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
19426 | # resulting binary. |
19427 | hardcode_direct=$hardcode_direct_RC |
19428 | |
19429 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
19430 | # resulting binary. |
19431 | hardcode_minus_L=$hardcode_minus_L_RC |
19432 | |
19433 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
19434 | # the resulting binary. |
19435 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC |
19436 | |
19437 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
19438 | # and all subsequent libraries and executables linked against it. |
19439 | hardcode_automatic=$hardcode_automatic_RC |
19440 | |
19441 | # Variables whose values should be saved in libtool wrapper scripts and |
19442 | # restored at relink time. |
19443 | variables_saved_for_relink="$variables_saved_for_relink" |
19444 | |
19445 | # Whether libtool must link a program against all its dependency libraries. |
19446 | link_all_deplibs=$link_all_deplibs_RC |
19447 | |
19448 | # Compile-time system search path for libraries |
dd184caf |
19449 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
d9898ee8 |
19450 | |
19451 | # Run-time system search path for libraries |
19452 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
19453 | |
19454 | # Fix the shell variable \$srcfile for the compiler. |
19455 | fix_srcfile_path="$fix_srcfile_path_RC" |
19456 | |
19457 | # Set to yes if exported symbols are required. |
19458 | always_export_symbols=$always_export_symbols_RC |
19459 | |
19460 | # The commands to list exported symbols. |
19461 | export_symbols_cmds=$lt_export_symbols_cmds_RC |
19462 | |
19463 | # The commands to extract the exported symbol list from a shared archive. |
19464 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
19465 | |
19466 | # Symbols that should not be listed in the preloaded symbols. |
19467 | exclude_expsyms=$lt_exclude_expsyms_RC |
19468 | |
19469 | # Symbols that must always be exported. |
19470 | include_expsyms=$lt_include_expsyms_RC |
19471 | |
19472 | # ### END LIBTOOL TAG CONFIG: $tagname |
19473 | |
19474 | __EOF__ |
19475 | |
19476 | |
19477 | else |
19478 | # If there is no Makefile yet, we rely on a make rule to execute |
19479 | # `config.status --recheck' to rerun these tests and create the |
19480 | # libtool script then. |
19481 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
19482 | if test -f "$ltmain_in"; then |
19483 | test -f Makefile && make "$ltmain" |
19484 | fi |
19485 | fi |
19486 | |
19487 | |
19488 | ac_ext=c |
19489 | ac_cpp='$CPP $CPPFLAGS' |
19490 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
19491 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
19492 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
19493 | |
19494 | CC="$lt_save_CC" |
19495 | |
19496 | ;; |
19497 | |
19498 | *) |
19499 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 |
19500 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} |
19501 | { (exit 1); exit 1; }; } |
19502 | ;; |
19503 | esac |
19504 | |
19505 | # Append the new tag name to the list of available tags. |
19506 | if test -n "$tagname" ; then |
19507 | available_tags="$available_tags $tagname" |
19508 | fi |
19509 | fi |
19510 | done |
19511 | IFS="$lt_save_ifs" |
19512 | |
19513 | # Now substitute the updated list of available tags. |
19514 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
19515 | mv "${ofile}T" "$ofile" |
19516 | chmod +x "$ofile" |
19517 | else |
19518 | rm -f "${ofile}T" |
19519 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 |
19520 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} |
19521 | { (exit 1); exit 1; }; } |
19522 | fi |
19523 | fi |
19524 | |
19525 | |
19526 | |
19527 | # This can be used to rebuild libtool when needed |
19528 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
19529 | |
19530 | # Always use our own libtool. |
19531 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
19532 | |
19533 | # Prevent multiple expansion |
19534 | |
19535 | |
19536 | |
19537 | |
19538 | |
19539 | |
19540 | |
19541 | |
19542 | |
19543 | |
19544 | |
19545 | |
19546 | |
19547 | |
19548 | |
19549 | |
19550 | |
19551 | |
19552 | |
19553 | |
19554 | |
19555 | |
19556 | saveLIBS="$LIBS" |
dd184caf |
19557 | { echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5 |
19558 | echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6; } |
d9898ee8 |
19559 | if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then |
19560 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19561 | else |
19562 | ac_check_lib_save_LIBS=$LIBS |
19563 | LIBS="-lgdbm $LIBS" |
19564 | cat >conftest.$ac_ext <<_ACEOF |
19565 | /* confdefs.h. */ |
19566 | _ACEOF |
19567 | cat confdefs.h >>conftest.$ac_ext |
19568 | cat >>conftest.$ac_ext <<_ACEOF |
19569 | /* end confdefs.h. */ |
19570 | |
dd184caf |
19571 | /* Override any GCC internal prototype to avoid an error. |
19572 | Use char because int might match the return type of a GCC |
19573 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
19574 | #ifdef __cplusplus |
19575 | extern "C" |
19576 | #endif |
d9898ee8 |
19577 | char gdbm_open (); |
19578 | int |
19579 | main () |
19580 | { |
dd184caf |
19581 | return gdbm_open (); |
d9898ee8 |
19582 | ; |
19583 | return 0; |
19584 | } |
19585 | _ACEOF |
19586 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
19587 | if { (ac_try="$ac_link" |
19588 | case "(($ac_try" in |
19589 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
19590 | *) ac_try_echo=$ac_try;; |
19591 | esac |
19592 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
19593 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
19594 | ac_status=$? |
19595 | grep -v '^ *+' conftest.er1 >conftest.err |
19596 | rm -f conftest.er1 |
19597 | cat conftest.err >&5 |
19598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
19599 | (exit $ac_status); } && { |
19600 | test -z "$ac_c_werror_flag" || |
19601 | test ! -s conftest.err |
19602 | } && test -s conftest$ac_exeext && |
19603 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
19604 | ac_cv_lib_gdbm_gdbm_open=yes |
19605 | else |
19606 | echo "$as_me: failed program was:" >&5 |
19607 | sed 's/^/| /' conftest.$ac_ext >&5 |
19608 | |
dd184caf |
19609 | ac_cv_lib_gdbm_gdbm_open=no |
d9898ee8 |
19610 | fi |
dd184caf |
19611 | |
19612 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
19613 | conftest$ac_exeext conftest.$ac_ext |
19614 | LIBS=$ac_check_lib_save_LIBS |
19615 | fi |
dd184caf |
19616 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5 |
19617 | echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6; } |
d9898ee8 |
19618 | if test $ac_cv_lib_gdbm_gdbm_open = yes; then |
19619 | LIBGDBM=-lgdbm ; LIBS="-lgdbm $LIBS" |
19620 | fi |
19621 | |
19622 | |
dd184caf |
19623 | { echo "$as_me:$LINENO: checking for gdbm_open" >&5 |
19624 | echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6; } |
d9898ee8 |
19625 | if test "${ac_cv_func_gdbm_open+set}" = set; then |
19626 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19627 | else |
19628 | cat >conftest.$ac_ext <<_ACEOF |
19629 | /* confdefs.h. */ |
19630 | _ACEOF |
19631 | cat confdefs.h >>conftest.$ac_ext |
19632 | cat >>conftest.$ac_ext <<_ACEOF |
19633 | /* end confdefs.h. */ |
19634 | /* Define gdbm_open to an innocuous variant, in case <limits.h> declares gdbm_open. |
19635 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
19636 | #define gdbm_open innocuous_gdbm_open |
19637 | |
19638 | /* System header to define __stub macros and hopefully few prototypes, |
19639 | which can conflict with char gdbm_open (); below. |
19640 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
19641 | <limits.h> exists even on freestanding compilers. */ |
19642 | |
19643 | #ifdef __STDC__ |
19644 | # include <limits.h> |
19645 | #else |
19646 | # include <assert.h> |
19647 | #endif |
19648 | |
19649 | #undef gdbm_open |
19650 | |
dd184caf |
19651 | /* Override any GCC internal prototype to avoid an error. |
19652 | Use char because int might match the return type of a GCC |
19653 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
19654 | #ifdef __cplusplus |
19655 | extern "C" |
d9898ee8 |
19656 | #endif |
d9898ee8 |
19657 | char gdbm_open (); |
19658 | /* The GNU C library defines this for functions which it implements |
19659 | to always fail with ENOSYS. Some functions are actually named |
19660 | something starting with __ and the normal name is an alias. */ |
dd184caf |
19661 | #if defined __stub_gdbm_open || defined __stub___gdbm_open |
d9898ee8 |
19662 | choke me |
d9898ee8 |
19663 | #endif |
19664 | |
19665 | int |
19666 | main () |
19667 | { |
dd184caf |
19668 | return gdbm_open (); |
d9898ee8 |
19669 | ; |
19670 | return 0; |
19671 | } |
19672 | _ACEOF |
19673 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
19674 | if { (ac_try="$ac_link" |
19675 | case "(($ac_try" in |
19676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
19677 | *) ac_try_echo=$ac_try;; |
19678 | esac |
19679 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
19680 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
19681 | ac_status=$? |
19682 | grep -v '^ *+' conftest.er1 >conftest.err |
19683 | rm -f conftest.er1 |
19684 | cat conftest.err >&5 |
19685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
19686 | (exit $ac_status); } && { |
19687 | test -z "$ac_c_werror_flag" || |
19688 | test ! -s conftest.err |
19689 | } && test -s conftest$ac_exeext && |
19690 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
19691 | ac_cv_func_gdbm_open=yes |
19692 | else |
19693 | echo "$as_me: failed program was:" >&5 |
19694 | sed 's/^/| /' conftest.$ac_ext >&5 |
19695 | |
dd184caf |
19696 | ac_cv_func_gdbm_open=no |
d9898ee8 |
19697 | fi |
dd184caf |
19698 | |
19699 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
19700 | conftest$ac_exeext conftest.$ac_ext |
19701 | fi |
dd184caf |
19702 | { echo "$as_me:$LINENO: result: $ac_cv_func_gdbm_open" >&5 |
19703 | echo "${ECHO_T}$ac_cv_func_gdbm_open" >&6; } |
d9898ee8 |
19704 | if test $ac_cv_func_gdbm_open = yes; then |
19705 | FOUND_GDBM=1 |
19706 | else |
19707 | FOUND_GDBM=0 |
19708 | fi |
19709 | |
19710 | |
19711 | if test "$FOUND_GDBM" = 1 |
19712 | then |
19713 | |
19714 | for ac_func in gdbm_fdesc |
19715 | do |
19716 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
dd184caf |
19717 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
19718 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
19719 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
19720 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19721 | else |
19722 | cat >conftest.$ac_ext <<_ACEOF |
19723 | /* confdefs.h. */ |
19724 | _ACEOF |
19725 | cat confdefs.h >>conftest.$ac_ext |
19726 | cat >>conftest.$ac_ext <<_ACEOF |
19727 | /* end confdefs.h. */ |
19728 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
19729 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
19730 | #define $ac_func innocuous_$ac_func |
19731 | |
19732 | /* System header to define __stub macros and hopefully few prototypes, |
19733 | which can conflict with char $ac_func (); below. |
19734 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
19735 | <limits.h> exists even on freestanding compilers. */ |
19736 | |
19737 | #ifdef __STDC__ |
19738 | # include <limits.h> |
19739 | #else |
19740 | # include <assert.h> |
19741 | #endif |
19742 | |
19743 | #undef $ac_func |
19744 | |
dd184caf |
19745 | /* Override any GCC internal prototype to avoid an error. |
19746 | Use char because int might match the return type of a GCC |
19747 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
19748 | #ifdef __cplusplus |
19749 | extern "C" |
d9898ee8 |
19750 | #endif |
d9898ee8 |
19751 | char $ac_func (); |
19752 | /* The GNU C library defines this for functions which it implements |
19753 | to always fail with ENOSYS. Some functions are actually named |
19754 | something starting with __ and the normal name is an alias. */ |
dd184caf |
19755 | #if defined __stub_$ac_func || defined __stub___$ac_func |
d9898ee8 |
19756 | choke me |
d9898ee8 |
19757 | #endif |
19758 | |
19759 | int |
19760 | main () |
19761 | { |
dd184caf |
19762 | return $ac_func (); |
d9898ee8 |
19763 | ; |
19764 | return 0; |
19765 | } |
19766 | _ACEOF |
19767 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
19768 | if { (ac_try="$ac_link" |
19769 | case "(($ac_try" in |
19770 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
19771 | *) ac_try_echo=$ac_try;; |
19772 | esac |
19773 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
19774 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
19775 | ac_status=$? |
19776 | grep -v '^ *+' conftest.er1 >conftest.err |
19777 | rm -f conftest.er1 |
19778 | cat conftest.err >&5 |
19779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
19780 | (exit $ac_status); } && { |
19781 | test -z "$ac_c_werror_flag" || |
19782 | test ! -s conftest.err |
19783 | } && test -s conftest$ac_exeext && |
19784 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
19785 | eval "$as_ac_var=yes" |
19786 | else |
19787 | echo "$as_me: failed program was:" >&5 |
19788 | sed 's/^/| /' conftest.$ac_ext >&5 |
19789 | |
dd184caf |
19790 | eval "$as_ac_var=no" |
d9898ee8 |
19791 | fi |
dd184caf |
19792 | |
19793 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
19794 | conftest$ac_exeext conftest.$ac_ext |
19795 | fi |
dd184caf |
19796 | ac_res=`eval echo '${'$as_ac_var'}'` |
19797 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
19798 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
19799 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
19800 | cat >>confdefs.h <<_ACEOF |
19801 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
19802 | _ACEOF |
19803 | |
19804 | fi |
19805 | done |
19806 | |
19807 | fi |
19808 | |
19809 | |
19810 | for ac_header in unistd.h fcntl.h |
19811 | do |
19812 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
dd184caf |
19813 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
19814 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
19815 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
19816 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
19817 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19818 | fi |
dd184caf |
19819 | ac_res=`eval echo '${'$as_ac_Header'}'` |
19820 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
19821 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
19822 | else |
19823 | # Is the header compilable? |
dd184caf |
19824 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
19825 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
d9898ee8 |
19826 | cat >conftest.$ac_ext <<_ACEOF |
19827 | /* confdefs.h. */ |
19828 | _ACEOF |
19829 | cat confdefs.h >>conftest.$ac_ext |
19830 | cat >>conftest.$ac_ext <<_ACEOF |
19831 | /* end confdefs.h. */ |
19832 | $ac_includes_default |
19833 | #include <$ac_header> |
19834 | _ACEOF |
19835 | rm -f conftest.$ac_objext |
dd184caf |
19836 | if { (ac_try="$ac_compile" |
19837 | case "(($ac_try" in |
19838 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
19839 | *) ac_try_echo=$ac_try;; |
19840 | esac |
19841 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
19842 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
19843 | ac_status=$? |
19844 | grep -v '^ *+' conftest.er1 >conftest.err |
19845 | rm -f conftest.er1 |
19846 | cat conftest.err >&5 |
19847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
19848 | (exit $ac_status); } && { |
19849 | test -z "$ac_c_werror_flag" || |
19850 | test ! -s conftest.err |
19851 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
19852 | ac_header_compiler=yes |
19853 | else |
19854 | echo "$as_me: failed program was:" >&5 |
19855 | sed 's/^/| /' conftest.$ac_ext >&5 |
19856 | |
dd184caf |
19857 | ac_header_compiler=no |
d9898ee8 |
19858 | fi |
dd184caf |
19859 | |
19860 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
19861 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
19862 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
d9898ee8 |
19863 | |
19864 | # Is the header present? |
dd184caf |
19865 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
19866 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
d9898ee8 |
19867 | cat >conftest.$ac_ext <<_ACEOF |
19868 | /* confdefs.h. */ |
19869 | _ACEOF |
19870 | cat confdefs.h >>conftest.$ac_ext |
19871 | cat >>conftest.$ac_ext <<_ACEOF |
19872 | /* end confdefs.h. */ |
19873 | #include <$ac_header> |
19874 | _ACEOF |
dd184caf |
19875 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
19876 | case "(($ac_try" in |
19877 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
19878 | *) ac_try_echo=$ac_try;; |
19879 | esac |
19880 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
19881 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
19882 | ac_status=$? |
19883 | grep -v '^ *+' conftest.er1 >conftest.err |
19884 | rm -f conftest.er1 |
19885 | cat conftest.err >&5 |
19886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
19887 | (exit $ac_status); } >/dev/null && { |
19888 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
19889 | test ! -s conftest.err |
19890 | }; then |
d9898ee8 |
19891 | ac_header_preproc=yes |
19892 | else |
19893 | echo "$as_me: failed program was:" >&5 |
19894 | sed 's/^/| /' conftest.$ac_ext >&5 |
19895 | |
19896 | ac_header_preproc=no |
19897 | fi |
dd184caf |
19898 | |
d9898ee8 |
19899 | rm -f conftest.err conftest.$ac_ext |
dd184caf |
19900 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
19901 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
d9898ee8 |
19902 | |
19903 | # So? What about this header? |
19904 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
19905 | yes:no: ) |
19906 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
19907 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
19908 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
19909 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
19910 | ac_header_preproc=yes |
19911 | ;; |
19912 | no:yes:* ) |
19913 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
19914 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
19915 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
19916 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
19917 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
19918 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
19919 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
19920 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
19921 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19922 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
19923 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
19924 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
dd184caf |
19925 | ( cat <<\_ASBOX |
d9898ee8 |
19926 | ## -------------------------------------------------- ## |
19927 | ## Report this to courier-users@lists.sourceforge.net ## |
19928 | ## -------------------------------------------------- ## |
19929 | _ASBOX |
dd184caf |
19930 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
d9898ee8 |
19931 | ;; |
19932 | esac |
dd184caf |
19933 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
19934 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
19935 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
19936 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19937 | else |
19938 | eval "$as_ac_Header=\$ac_header_preproc" |
19939 | fi |
dd184caf |
19940 | ac_res=`eval echo '${'$as_ac_Header'}'` |
19941 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
19942 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
19943 | |
19944 | fi |
19945 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
19946 | cat >>confdefs.h <<_ACEOF |
19947 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
19948 | _ACEOF |
19949 | |
19950 | fi |
19951 | |
19952 | done |
19953 | |
19954 | |
19955 | LIBS="$saveLIBS" |
19956 | |
19957 | |
19958 | |
dd184caf |
19959 | if test "$FOUND_GDBM" = 1; then |
d9898ee8 |
19960 | FOUND_GDBM_TRUE= |
19961 | FOUND_GDBM_FALSE='#' |
19962 | else |
19963 | FOUND_GDBM_TRUE='#' |
19964 | FOUND_GDBM_FALSE= |
19965 | fi |
19966 | |
19967 | |
19968 | |
dd184caf |
19969 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
19970 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } |
d9898ee8 |
19971 | if test "${ac_cv_c_const+set}" = set; then |
19972 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19973 | else |
19974 | cat >conftest.$ac_ext <<_ACEOF |
19975 | /* confdefs.h. */ |
19976 | _ACEOF |
19977 | cat confdefs.h >>conftest.$ac_ext |
19978 | cat >>conftest.$ac_ext <<_ACEOF |
19979 | /* end confdefs.h. */ |
19980 | |
19981 | int |
19982 | main () |
19983 | { |
19984 | /* FIXME: Include the comments suggested by Paul. */ |
19985 | #ifndef __cplusplus |
19986 | /* Ultrix mips cc rejects this. */ |
19987 | typedef int charset[2]; |
dd184caf |
19988 | const charset cs; |
d9898ee8 |
19989 | /* SunOS 4.1.1 cc rejects this. */ |
dd184caf |
19990 | char const *const *pcpcc; |
19991 | char **ppc; |
d9898ee8 |
19992 | /* NEC SVR4.0.2 mips cc rejects this. */ |
19993 | struct point {int x, y;}; |
19994 | static struct point const zero = {0,0}; |
19995 | /* AIX XL C 1.02.0.0 rejects this. |
19996 | It does not let you subtract one const X* pointer from another in |
19997 | an arm of an if-expression whose if-part is not a constant |
19998 | expression */ |
19999 | const char *g = "string"; |
dd184caf |
20000 | pcpcc = &g + (g ? g-g : 0); |
d9898ee8 |
20001 | /* HPUX 7.0 cc rejects these. */ |
dd184caf |
20002 | ++pcpcc; |
20003 | ppc = (char**) pcpcc; |
20004 | pcpcc = (char const *const *) ppc; |
d9898ee8 |
20005 | { /* SCO 3.2v4 cc rejects this. */ |
20006 | char *t; |
20007 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
20008 | |
20009 | *t++ = 0; |
dd184caf |
20010 | if (s) return 0; |
d9898ee8 |
20011 | } |
20012 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
20013 | int x[] = {25, 17}; |
20014 | const int *foo = &x[0]; |
20015 | ++foo; |
20016 | } |
20017 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
20018 | typedef const int *iptr; |
20019 | iptr p = 0; |
20020 | ++p; |
20021 | } |
20022 | { /* AIX XL C 1.02.0.0 rejects this saying |
20023 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
20024 | struct s { int j; const int *ap[3]; }; |
20025 | struct s *b; b->j = 5; |
20026 | } |
20027 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
20028 | const int foo = 10; |
dd184caf |
20029 | if (!foo) return 0; |
d9898ee8 |
20030 | } |
dd184caf |
20031 | return !cs[0] && !zero.x; |
d9898ee8 |
20032 | #endif |
20033 | |
20034 | ; |
20035 | return 0; |
20036 | } |
20037 | _ACEOF |
20038 | rm -f conftest.$ac_objext |
dd184caf |
20039 | if { (ac_try="$ac_compile" |
20040 | case "(($ac_try" in |
20041 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20042 | *) ac_try_echo=$ac_try;; |
20043 | esac |
20044 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20045 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
20046 | ac_status=$? |
20047 | grep -v '^ *+' conftest.er1 >conftest.err |
20048 | rm -f conftest.er1 |
20049 | cat conftest.err >&5 |
20050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
20051 | (exit $ac_status); } && { |
20052 | test -z "$ac_c_werror_flag" || |
20053 | test ! -s conftest.err |
20054 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
20055 | ac_cv_c_const=yes |
20056 | else |
20057 | echo "$as_me: failed program was:" >&5 |
20058 | sed 's/^/| /' conftest.$ac_ext >&5 |
20059 | |
dd184caf |
20060 | ac_cv_c_const=no |
d9898ee8 |
20061 | fi |
dd184caf |
20062 | |
20063 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
20064 | fi |
dd184caf |
20065 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
20066 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
d9898ee8 |
20067 | if test $ac_cv_c_const = no; then |
20068 | |
20069 | cat >>confdefs.h <<\_ACEOF |
20070 | #define const |
20071 | _ACEOF |
20072 | |
20073 | fi |
20074 | |
dd184caf |
20075 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
20076 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
d9898ee8 |
20077 | if test "${ac_cv_type_size_t+set}" = set; then |
20078 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20079 | else |
20080 | cat >conftest.$ac_ext <<_ACEOF |
20081 | /* confdefs.h. */ |
20082 | _ACEOF |
20083 | cat confdefs.h >>conftest.$ac_ext |
20084 | cat >>conftest.$ac_ext <<_ACEOF |
20085 | /* end confdefs.h. */ |
20086 | $ac_includes_default |
dd184caf |
20087 | typedef size_t ac__type_new_; |
d9898ee8 |
20088 | int |
20089 | main () |
20090 | { |
dd184caf |
20091 | if ((ac__type_new_ *) 0) |
d9898ee8 |
20092 | return 0; |
dd184caf |
20093 | if (sizeof (ac__type_new_)) |
d9898ee8 |
20094 | return 0; |
20095 | ; |
20096 | return 0; |
20097 | } |
20098 | _ACEOF |
20099 | rm -f conftest.$ac_objext |
dd184caf |
20100 | if { (ac_try="$ac_compile" |
20101 | case "(($ac_try" in |
20102 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20103 | *) ac_try_echo=$ac_try;; |
20104 | esac |
20105 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20106 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
20107 | ac_status=$? |
20108 | grep -v '^ *+' conftest.er1 >conftest.err |
20109 | rm -f conftest.er1 |
20110 | cat conftest.err >&5 |
20111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
20112 | (exit $ac_status); } && { |
20113 | test -z "$ac_c_werror_flag" || |
20114 | test ! -s conftest.err |
20115 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
20116 | ac_cv_type_size_t=yes |
20117 | else |
20118 | echo "$as_me: failed program was:" >&5 |
20119 | sed 's/^/| /' conftest.$ac_ext >&5 |
20120 | |
dd184caf |
20121 | ac_cv_type_size_t=no |
d9898ee8 |
20122 | fi |
dd184caf |
20123 | |
20124 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
20125 | fi |
dd184caf |
20126 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
20127 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
d9898ee8 |
20128 | if test $ac_cv_type_size_t = yes; then |
20129 | : |
20130 | else |
20131 | |
20132 | cat >>confdefs.h <<_ACEOF |
dd184caf |
20133 | #define size_t unsigned int |
d9898ee8 |
20134 | _ACEOF |
20135 | |
20136 | fi |
20137 | |
20138 | |
20139 | |
dd184caf |
20140 | ac_ext=cpp |
d9898ee8 |
20141 | ac_cpp='$CXXCPP $CPPFLAGS' |
20142 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
20143 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
20144 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
20145 | |
dd184caf |
20146 | { echo "$as_me:$LINENO: checking if the C++ compiler needs -fhandle-exceptions" >&5 |
20147 | echo $ECHO_N "checking if the C++ compiler needs -fhandle-exceptions... $ECHO_C" >&6; } |
d9898ee8 |
20148 | if test "${ac_cxx_need_handlexceptions+set}" = set; then |
20149 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20150 | else |
20151 | cat >conftest.$ac_ext <<_ACEOF |
20152 | /* confdefs.h. */ |
20153 | _ACEOF |
20154 | cat confdefs.h >>conftest.$ac_ext |
20155 | cat >>conftest.$ac_ext <<_ACEOF |
20156 | /* end confdefs.h. */ |
20157 | |
20158 | int |
20159 | main () |
20160 | { |
20161 | |
20162 | throw; |
20163 | |
20164 | ; |
20165 | return 0; |
20166 | } |
20167 | _ACEOF |
20168 | rm -f conftest.$ac_objext |
dd184caf |
20169 | if { (ac_try="$ac_compile" |
20170 | case "(($ac_try" in |
20171 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20172 | *) ac_try_echo=$ac_try;; |
20173 | esac |
20174 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20175 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
20176 | ac_status=$? |
20177 | grep -v '^ *+' conftest.er1 >conftest.err |
20178 | rm -f conftest.er1 |
20179 | cat conftest.err >&5 |
20180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
20181 | (exit $ac_status); } && { |
20182 | test -z "$ac_cxx_werror_flag" || |
20183 | test ! -s conftest.err |
20184 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
20185 | ac_cxx_need_handlexceptions=no |
20186 | else |
20187 | echo "$as_me: failed program was:" >&5 |
20188 | sed 's/^/| /' conftest.$ac_ext >&5 |
20189 | |
dd184caf |
20190 | ac_cxx_need_handlexceptions=yes |
d9898ee8 |
20191 | fi |
dd184caf |
20192 | |
20193 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
20194 | |
20195 | fi |
dd184caf |
20196 | { echo "$as_me:$LINENO: result: $ac_cxx_need_handlexceptions" >&5 |
20197 | echo "${ECHO_T}$ac_cxx_need_handlexceptions" >&6; } |
d9898ee8 |
20198 | |
20199 | if test "$ac_cxx_need_handlexceptions" = "yes" |
20200 | then |
20201 | case "$CXXFLAGS" in |
20202 | *handle-exceptions*) |
20203 | ;; |
20204 | *) |
20205 | CXXFLAGS="-fhandle-exceptions $CXXFLAGS" |
20206 | CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-O2//'` |
20207 | ;; |
20208 | esac |
20209 | fi |
20210 | |
dd184caf |
20211 | ac_config_files="$ac_config_files Makefile" |
20212 | |
d9898ee8 |
20213 | cat >confcache <<\_ACEOF |
20214 | # This file is a shell script that caches the results of configure |
20215 | # tests run on this system so they can be shared between configure |
20216 | # scripts and configure runs, see configure's option --config-cache. |
20217 | # It is not useful on other systems. If it contains results you don't |
20218 | # want to keep, you may remove or edit it. |
20219 | # |
20220 | # config.status only pays attention to the cache file if you give it |
20221 | # the --recheck option to rerun configure. |
20222 | # |
20223 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
20224 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
20225 | # following values. |
20226 | |
20227 | _ACEOF |
20228 | |
20229 | # The following way of writing the cache mishandles newlines in values, |
20230 | # but we know of no workaround that is simple, portable, and efficient. |
dd184caf |
20231 | # So, we kill variables containing newlines. |
d9898ee8 |
20232 | # Ultrix sh set writes to stderr and can't be redirected directly, |
20233 | # and sets the high bit in the cache file unless we assign to the vars. |
dd184caf |
20234 | ( |
20235 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
20236 | eval ac_val=\$$ac_var |
20237 | case $ac_val in #( |
20238 | *${as_nl}*) |
20239 | case $ac_var in #( |
20240 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
20241 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
20242 | esac |
20243 | case $ac_var in #( |
20244 | _ | IFS | as_nl) ;; #( |
20245 | *) $as_unset $ac_var ;; |
20246 | esac ;; |
20247 | esac |
20248 | done |
20249 | |
d9898ee8 |
20250 | (set) 2>&1 | |
dd184caf |
20251 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
20252 | *${as_nl}ac_space=\ *) |
d9898ee8 |
20253 | # `set' does not quote correctly, so add quotes (double-quote |
20254 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
20255 | sed -n \ |
20256 | "s/'/'\\\\''/g; |
20257 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
dd184caf |
20258 | ;; #( |
d9898ee8 |
20259 | *) |
20260 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
dd184caf |
20261 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
d9898ee8 |
20262 | ;; |
dd184caf |
20263 | esac | |
20264 | sort |
20265 | ) | |
d9898ee8 |
20266 | sed ' |
dd184caf |
20267 | /^ac_cv_env_/b end |
d9898ee8 |
20268 | t clear |
dd184caf |
20269 | :clear |
d9898ee8 |
20270 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
20271 | t end |
dd184caf |
20272 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
20273 | :end' >>confcache |
20274 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
20275 | if test -w "$cache_file"; then |
20276 | test "x$cache_file" != "x/dev/null" && |
20277 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
20278 | echo "$as_me: updating cache $cache_file" >&6;} |
d9898ee8 |
20279 | cat confcache >$cache_file |
20280 | else |
dd184caf |
20281 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
20282 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
d9898ee8 |
20283 | fi |
20284 | fi |
20285 | rm -f confcache |
20286 | |
20287 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
20288 | # Let make expand exec_prefix. |
20289 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
20290 | |
d9898ee8 |
20291 | DEFS=-DHAVE_CONFIG_H |
20292 | |
20293 | ac_libobjs= |
20294 | ac_ltlibobjs= |
20295 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
20296 | # 1. Remove the extension, and $U if already installed. |
dd184caf |
20297 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
20298 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
20299 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
20300 | # will be set to the directory where LIBOBJS objects are built. |
20301 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
20302 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
d9898ee8 |
20303 | done |
20304 | LIBOBJS=$ac_libobjs |
20305 | |
20306 | LTLIBOBJS=$ac_ltlibobjs |
20307 | |
20308 | |
20309 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
20310 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
20311 | Usually this means the macro was only invoked conditionally." >&5 |
20312 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
20313 | Usually this means the macro was only invoked conditionally." >&2;} |
20314 | { (exit 1); exit 1; }; } |
20315 | fi |
20316 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
20317 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
20318 | Usually this means the macro was only invoked conditionally." >&5 |
20319 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
20320 | Usually this means the macro was only invoked conditionally." >&2;} |
20321 | { (exit 1); exit 1; }; } |
20322 | fi |
20323 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
20324 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
20325 | Usually this means the macro was only invoked conditionally." >&5 |
20326 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
20327 | Usually this means the macro was only invoked conditionally." >&2;} |
20328 | { (exit 1); exit 1; }; } |
20329 | fi |
20330 | if test -z "${FOUND_GDBM_TRUE}" && test -z "${FOUND_GDBM_FALSE}"; then |
20331 | { { echo "$as_me:$LINENO: error: conditional \"FOUND_GDBM\" was never defined. |
20332 | Usually this means the macro was only invoked conditionally." >&5 |
20333 | echo "$as_me: error: conditional \"FOUND_GDBM\" was never defined. |
20334 | Usually this means the macro was only invoked conditionally." >&2;} |
20335 | { (exit 1); exit 1; }; } |
20336 | fi |
20337 | |
20338 | : ${CONFIG_STATUS=./config.status} |
20339 | ac_clean_files_save=$ac_clean_files |
20340 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
20341 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
20342 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
20343 | cat >$CONFIG_STATUS <<_ACEOF |
20344 | #! $SHELL |
20345 | # Generated by $as_me. |
20346 | # Run this file to recreate the current configuration. |
20347 | # Compiler output produced by configure, useful for debugging |
20348 | # configure, is in config.log if it exists. |
20349 | |
20350 | debug=false |
20351 | ac_cs_recheck=false |
20352 | ac_cs_silent=false |
20353 | SHELL=\${CONFIG_SHELL-$SHELL} |
20354 | _ACEOF |
20355 | |
20356 | cat >>$CONFIG_STATUS <<\_ACEOF |
20357 | ## --------------------- ## |
20358 | ## M4sh Initialization. ## |
20359 | ## --------------------- ## |
20360 | |
dd184caf |
20361 | # Be more Bourne compatible |
20362 | DUALCASE=1; export DUALCASE # for MKS sh |
d9898ee8 |
20363 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
20364 | emulate sh |
20365 | NULLCMD=: |
20366 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
20367 | # is contrary to our usage. Disable this feature. |
20368 | alias -g '${1+"$@"}'='"$@"' |
dd184caf |
20369 | setopt NO_GLOB_SUBST |
20370 | else |
20371 | case `(set -o) 2>/dev/null` in |
20372 | *posix*) set -o posix ;; |
20373 | esac |
20374 | |
20375 | fi |
20376 | |
20377 | |
20378 | |
20379 | |
20380 | # PATH needs CR |
20381 | # Avoid depending upon Character Ranges. |
20382 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
20383 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
20384 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
20385 | as_cr_digits='0123456789' |
20386 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
20387 | |
20388 | # The user is always right. |
20389 | if test "${PATH_SEPARATOR+set}" != set; then |
20390 | echo "#! /bin/sh" >conf$$.sh |
20391 | echo "exit 0" >>conf$$.sh |
20392 | chmod +x conf$$.sh |
20393 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
20394 | PATH_SEPARATOR=';' |
20395 | else |
20396 | PATH_SEPARATOR=: |
20397 | fi |
20398 | rm -f conf$$.sh |
d9898ee8 |
20399 | fi |
d9898ee8 |
20400 | |
20401 | # Support unset when possible. |
20402 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
20403 | as_unset=unset |
20404 | else |
20405 | as_unset=false |
20406 | fi |
20407 | |
20408 | |
dd184caf |
20409 | # IFS |
20410 | # We need space, tab and new line, in precisely that order. Quoting is |
20411 | # there to prevent editors from complaining about space-tab. |
20412 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
20413 | # splitting by setting IFS to empty value.) |
20414 | as_nl=' |
20415 | ' |
20416 | IFS=" "" $as_nl" |
20417 | |
20418 | # Find who we are. Look in the path if we contain no directory separator. |
20419 | case $0 in |
20420 | *[\\/]* ) as_myself=$0 ;; |
20421 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
20422 | for as_dir in $PATH |
20423 | do |
20424 | IFS=$as_save_IFS |
20425 | test -z "$as_dir" && as_dir=. |
20426 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
20427 | done |
20428 | IFS=$as_save_IFS |
20429 | |
20430 | ;; |
20431 | esac |
20432 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
20433 | # in which case we are not to be found in the path. |
20434 | if test "x$as_myself" = x; then |
20435 | as_myself=$0 |
20436 | fi |
20437 | if test ! -f "$as_myself"; then |
20438 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
20439 | { (exit 1); exit 1; } |
20440 | fi |
20441 | |
d9898ee8 |
20442 | # Work around bugs in pre-3.0 UWIN ksh. |
dd184caf |
20443 | for as_var in ENV MAIL MAILPATH |
20444 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
20445 | done |
d9898ee8 |
20446 | PS1='$ ' |
20447 | PS2='> ' |
20448 | PS4='+ ' |
20449 | |
20450 | # NLS nuisances. |
20451 | for as_var in \ |
20452 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
20453 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
20454 | LC_TELEPHONE LC_TIME |
20455 | do |
20456 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
20457 | eval $as_var=C; export $as_var |
20458 | else |
dd184caf |
20459 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
d9898ee8 |
20460 | fi |
20461 | done |
20462 | |
20463 | # Required to use basename. |
dd184caf |
20464 | if expr a : '\(a\)' >/dev/null 2>&1 && |
20465 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
d9898ee8 |
20466 | as_expr=expr |
20467 | else |
20468 | as_expr=false |
20469 | fi |
20470 | |
dd184caf |
20471 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
d9898ee8 |
20472 | as_basename=basename |
20473 | else |
20474 | as_basename=false |
20475 | fi |
20476 | |
20477 | |
20478 | # Name of the executable. |
dd184caf |
20479 | as_me=`$as_basename -- "$0" || |
d9898ee8 |
20480 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
20481 | X"$0" : 'X\(//\)$' \| \ |
dd184caf |
20482 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
20483 | echo X/"$0" | |
dd184caf |
20484 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
20485 | s//\1/ |
20486 | q |
20487 | } |
20488 | /^X\/\(\/\/\)$/{ |
20489 | s//\1/ |
20490 | q |
20491 | } |
20492 | /^X\/\(\/\).*/{ |
20493 | s//\1/ |
20494 | q |
20495 | } |
20496 | s/.*/./; q'` |
d9898ee8 |
20497 | |
dd184caf |
20498 | # CDPATH. |
20499 | $as_unset CDPATH |
d9898ee8 |
20500 | |
d9898ee8 |
20501 | |
d9898ee8 |
20502 | |
d9898ee8 |
20503 | as_lineno_1=$LINENO |
20504 | as_lineno_2=$LINENO |
d9898ee8 |
20505 | test "x$as_lineno_1" != "x$as_lineno_2" && |
dd184caf |
20506 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
d9898ee8 |
20507 | |
20508 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
20509 | # uniformly replaced by the line number. The first 'sed' inserts a |
dd184caf |
20510 | # line-number line after each line using $LINENO; the second 'sed' |
20511 | # does the real work. The second script uses 'N' to pair each |
20512 | # line-number line with the line containing $LINENO, and appends |
20513 | # trailing '-' during substitution so that $LINENO is not a special |
20514 | # case at line end. |
d9898ee8 |
20515 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
dd184caf |
20516 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
20517 | # E. McMahon (1931-1989) for sed's syntax. :-) |
20518 | sed -n ' |
20519 | p |
20520 | /[$]LINENO/= |
20521 | ' <$as_myself | |
d9898ee8 |
20522 | sed ' |
dd184caf |
20523 | s/[$]LINENO.*/&-/ |
20524 | t lineno |
20525 | b |
20526 | :lineno |
d9898ee8 |
20527 | N |
dd184caf |
20528 | :loop |
20529 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
d9898ee8 |
20530 | t loop |
dd184caf |
20531 | s/-\n.*// |
d9898ee8 |
20532 | ' >$as_me.lineno && |
dd184caf |
20533 | chmod +x "$as_me.lineno" || |
20534 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
d9898ee8 |
20535 | { (exit 1); exit 1; }; } |
20536 | |
20537 | # Don't try to exec as it changes $[0], causing all sort of problems |
20538 | # (the dirname of $[0] is not the place where we might find the |
dd184caf |
20539 | # original and so on. Autoconf is especially sensitive to this). |
20540 | . "./$as_me.lineno" |
d9898ee8 |
20541 | # Exit status is that of the last command. |
20542 | exit |
20543 | } |
20544 | |
20545 | |
dd184caf |
20546 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
20547 | as_dirname=dirname |
20548 | else |
20549 | as_dirname=false |
20550 | fi |
20551 | |
20552 | ECHO_C= ECHO_N= ECHO_T= |
20553 | case `echo -n x` in |
20554 | -n*) |
20555 | case `echo 'x\c'` in |
20556 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
20557 | *) ECHO_C='\c';; |
20558 | esac;; |
20559 | *) |
20560 | ECHO_N='-n';; |
d9898ee8 |
20561 | esac |
20562 | |
dd184caf |
20563 | if expr a : '\(a\)' >/dev/null 2>&1 && |
20564 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
d9898ee8 |
20565 | as_expr=expr |
20566 | else |
20567 | as_expr=false |
20568 | fi |
20569 | |
20570 | rm -f conf$$ conf$$.exe conf$$.file |
dd184caf |
20571 | if test -d conf$$.dir; then |
20572 | rm -f conf$$.dir/conf$$.file |
20573 | else |
20574 | rm -f conf$$.dir |
20575 | mkdir conf$$.dir |
20576 | fi |
d9898ee8 |
20577 | echo >conf$$.file |
20578 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
dd184caf |
20579 | as_ln_s='ln -s' |
20580 | # ... but there are two gotchas: |
20581 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
20582 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
20583 | # In both cases, we have to default to `cp -p'. |
20584 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
d9898ee8 |
20585 | as_ln_s='cp -p' |
d9898ee8 |
20586 | elif ln conf$$.file conf$$ 2>/dev/null; then |
20587 | as_ln_s=ln |
20588 | else |
20589 | as_ln_s='cp -p' |
20590 | fi |
dd184caf |
20591 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
20592 | rmdir conf$$.dir 2>/dev/null |
d9898ee8 |
20593 | |
20594 | if mkdir -p . 2>/dev/null; then |
20595 | as_mkdir_p=: |
20596 | else |
20597 | test -d ./-p && rmdir ./-p |
20598 | as_mkdir_p=false |
20599 | fi |
20600 | |
dd184caf |
20601 | if test -x / >/dev/null 2>&1; then |
20602 | as_test_x='test -x' |
20603 | else |
20604 | if ls -dL / >/dev/null 2>&1; then |
20605 | as_ls_L_option=L |
20606 | else |
20607 | as_ls_L_option= |
20608 | fi |
20609 | as_test_x=' |
20610 | eval sh -c '\'' |
20611 | if test -d "$1"; then |
20612 | test -d "$1/."; |
20613 | else |
20614 | case $1 in |
20615 | -*)set "./$1";; |
20616 | esac; |
20617 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
20618 | ???[sx]*):;;*)false;;esac;fi |
20619 | '\'' sh |
20620 | ' |
20621 | fi |
20622 | as_executable_p=$as_test_x |
d9898ee8 |
20623 | |
20624 | # Sed expression to map a string onto a valid CPP name. |
20625 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
20626 | |
20627 | # Sed expression to map a string onto a valid variable name. |
20628 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
20629 | |
20630 | |
d9898ee8 |
20631 | exec 6>&1 |
20632 | |
dd184caf |
20633 | # Save the log message, to keep $[0] and so on meaningful, and to |
d9898ee8 |
20634 | # report actual input values of CONFIG_FILES etc. instead of their |
dd184caf |
20635 | # values after options handling. |
20636 | ac_log=" |
d9898ee8 |
20637 | This file was extended by gdbmobj $as_me 0.10, which was |
dd184caf |
20638 | generated by GNU Autoconf 2.61. Invocation command line was |
d9898ee8 |
20639 | |
20640 | CONFIG_FILES = $CONFIG_FILES |
20641 | CONFIG_HEADERS = $CONFIG_HEADERS |
20642 | CONFIG_LINKS = $CONFIG_LINKS |
20643 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
20644 | $ $0 $@ |
20645 | |
dd184caf |
20646 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
20647 | " |
20648 | |
d9898ee8 |
20649 | _ACEOF |
20650 | |
dd184caf |
20651 | cat >>$CONFIG_STATUS <<_ACEOF |
d9898ee8 |
20652 | # Files that config.status was made for. |
dd184caf |
20653 | config_files="$ac_config_files" |
20654 | config_headers="$ac_config_headers" |
20655 | config_commands="$ac_config_commands" |
d9898ee8 |
20656 | |
dd184caf |
20657 | _ACEOF |
d9898ee8 |
20658 | |
20659 | cat >>$CONFIG_STATUS <<\_ACEOF |
d9898ee8 |
20660 | ac_cs_usage="\ |
20661 | \`$as_me' instantiates files from templates according to the |
20662 | current configuration. |
20663 | |
20664 | Usage: $0 [OPTIONS] [FILE]... |
20665 | |
20666 | -h, --help print this help, then exit |
dd184caf |
20667 | -V, --version print version number and configuration settings, then exit |
d9898ee8 |
20668 | -q, --quiet do not print progress messages |
20669 | -d, --debug don't remove temporary files |
20670 | --recheck update $as_me by reconfiguring in the same conditions |
20671 | --file=FILE[:TEMPLATE] |
20672 | instantiate the configuration file FILE |
20673 | --header=FILE[:TEMPLATE] |
20674 | instantiate the configuration header FILE |
20675 | |
20676 | Configuration files: |
20677 | $config_files |
20678 | |
20679 | Configuration headers: |
20680 | $config_headers |
20681 | |
20682 | Configuration commands: |
20683 | $config_commands |
20684 | |
20685 | Report bugs to <bug-autoconf@gnu.org>." |
d9898ee8 |
20686 | |
dd184caf |
20687 | _ACEOF |
d9898ee8 |
20688 | cat >>$CONFIG_STATUS <<_ACEOF |
20689 | ac_cs_version="\\ |
20690 | gdbmobj config.status 0.10 |
dd184caf |
20691 | configured by $0, generated by GNU Autoconf 2.61, |
20692 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
d9898ee8 |
20693 | |
dd184caf |
20694 | Copyright (C) 2006 Free Software Foundation, Inc. |
d9898ee8 |
20695 | This config.status script is free software; the Free Software Foundation |
20696 | gives unlimited permission to copy, distribute and modify it." |
dd184caf |
20697 | |
20698 | ac_pwd='$ac_pwd' |
20699 | srcdir='$srcdir' |
20700 | INSTALL='$INSTALL' |
20701 | MKDIR_P='$MKDIR_P' |
d9898ee8 |
20702 | _ACEOF |
20703 | |
20704 | cat >>$CONFIG_STATUS <<\_ACEOF |
20705 | # If no file are specified by the user, then we need to provide default |
20706 | # value. By we need to know if files were specified by the user. |
20707 | ac_need_defaults=: |
20708 | while test $# != 0 |
20709 | do |
20710 | case $1 in |
20711 | --*=*) |
dd184caf |
20712 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
20713 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
d9898ee8 |
20714 | ac_shift=: |
20715 | ;; |
dd184caf |
20716 | *) |
d9898ee8 |
20717 | ac_option=$1 |
20718 | ac_optarg=$2 |
20719 | ac_shift=shift |
20720 | ;; |
d9898ee8 |
20721 | esac |
20722 | |
20723 | case $ac_option in |
20724 | # Handling of the options. |
d9898ee8 |
20725 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
20726 | ac_cs_recheck=: ;; |
dd184caf |
20727 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
20728 | echo "$ac_cs_version"; exit ;; |
20729 | --debug | --debu | --deb | --de | --d | -d ) |
d9898ee8 |
20730 | debug=: ;; |
20731 | --file | --fil | --fi | --f ) |
20732 | $ac_shift |
20733 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
20734 | ac_need_defaults=false;; |
20735 | --header | --heade | --head | --hea ) |
20736 | $ac_shift |
20737 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
20738 | ac_need_defaults=false;; |
dd184caf |
20739 | --he | --h) |
20740 | # Conflict between --help and --header |
20741 | { echo "$as_me: error: ambiguous option: $1 |
20742 | Try \`$0 --help' for more information." >&2 |
20743 | { (exit 1); exit 1; }; };; |
20744 | --help | --hel | -h ) |
20745 | echo "$ac_cs_usage"; exit ;; |
d9898ee8 |
20746 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
20747 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
20748 | ac_cs_silent=: ;; |
20749 | |
20750 | # This is an error. |
dd184caf |
20751 | -*) { echo "$as_me: error: unrecognized option: $1 |
20752 | Try \`$0 --help' for more information." >&2 |
d9898ee8 |
20753 | { (exit 1); exit 1; }; } ;; |
20754 | |
dd184caf |
20755 | *) ac_config_targets="$ac_config_targets $1" |
20756 | ac_need_defaults=false ;; |
d9898ee8 |
20757 | |
20758 | esac |
20759 | shift |
20760 | done |
20761 | |
20762 | ac_configure_extra_args= |
20763 | |
20764 | if $ac_cs_silent; then |
20765 | exec 6>/dev/null |
20766 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
20767 | fi |
20768 | |
20769 | _ACEOF |
20770 | cat >>$CONFIG_STATUS <<_ACEOF |
20771 | if \$ac_cs_recheck; then |
dd184caf |
20772 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
20773 | CONFIG_SHELL=$SHELL |
20774 | export CONFIG_SHELL |
20775 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
d9898ee8 |
20776 | fi |
20777 | |
20778 | _ACEOF |
dd184caf |
20779 | cat >>$CONFIG_STATUS <<\_ACEOF |
20780 | exec 5>>config.log |
20781 | { |
20782 | echo |
20783 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
20784 | ## Running $as_me. ## |
20785 | _ASBOX |
20786 | echo "$ac_log" |
20787 | } >&5 |
d9898ee8 |
20788 | |
dd184caf |
20789 | _ACEOF |
d9898ee8 |
20790 | cat >>$CONFIG_STATUS <<_ACEOF |
20791 | # |
dd184caf |
20792 | # INIT-COMMANDS |
d9898ee8 |
20793 | # |
d9898ee8 |
20794 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
20795 | |
20796 | _ACEOF |
20797 | |
d9898ee8 |
20798 | cat >>$CONFIG_STATUS <<\_ACEOF |
dd184caf |
20799 | |
20800 | # Handling of arguments. |
d9898ee8 |
20801 | for ac_config_target in $ac_config_targets |
20802 | do |
dd184caf |
20803 | case $ac_config_target in |
20804 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
20805 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
20806 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
20807 | |
d9898ee8 |
20808 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
20809 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
20810 | { (exit 1); exit 1; }; };; |
20811 | esac |
20812 | done |
20813 | |
dd184caf |
20814 | |
d9898ee8 |
20815 | # If the user did not use the arguments to specify the items to instantiate, |
20816 | # then the envvar interface is used. Set only those that are not. |
20817 | # We use the long form for the default assignment because of an extremely |
20818 | # bizarre bug on SunOS 4.1.3. |
20819 | if $ac_need_defaults; then |
20820 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
20821 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
20822 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
20823 | fi |
20824 | |
20825 | # Have a temporary directory for convenience. Make it in the build tree |
dd184caf |
20826 | # simply because there is no reason against having it here, and in addition, |
d9898ee8 |
20827 | # creating and moving files from /tmp can sometimes cause problems. |
dd184caf |
20828 | # Hook for its removal unless debugging. |
20829 | # Note that there is a small window in which the directory will not be cleaned: |
20830 | # after its creation but before its name has been assigned to `$tmp'. |
d9898ee8 |
20831 | $debug || |
20832 | { |
dd184caf |
20833 | tmp= |
20834 | trap 'exit_status=$? |
20835 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
20836 | ' 0 |
d9898ee8 |
20837 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
20838 | } |
d9898ee8 |
20839 | # Create a (secure) tmp directory for tmp files. |
20840 | |
20841 | { |
dd184caf |
20842 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
d9898ee8 |
20843 | test -n "$tmp" && test -d "$tmp" |
20844 | } || |
20845 | { |
dd184caf |
20846 | tmp=./conf$$-$RANDOM |
20847 | (umask 077 && mkdir "$tmp") |
d9898ee8 |
20848 | } || |
20849 | { |
20850 | echo "$me: cannot create a temporary directory in ." >&2 |
20851 | { (exit 1); exit 1; } |
20852 | } |
20853 | |
d9898ee8 |
20854 | # |
dd184caf |
20855 | # Set up the sed scripts for CONFIG_FILES section. |
d9898ee8 |
20856 | # |
20857 | |
20858 | # No need to generate the scripts if there are no CONFIG_FILES. |
20859 | # This happens for instance when ./config.status config.h |
dd184caf |
20860 | if test -n "$CONFIG_FILES"; then |
d9898ee8 |
20861 | |
20862 | _ACEOF |
20863 | |
dd184caf |
20864 | |
20865 | |
20866 | ac_delim='%!_!# ' |
20867 | for ac_last_try in false false false false false :; do |
20868 | cat >conf$$subs.sed <<_ACEOF |
20869 | SHELL!$SHELL$ac_delim |
20870 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
20871 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
20872 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
20873 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
20874 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
20875 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
20876 | exec_prefix!$exec_prefix$ac_delim |
20877 | prefix!$prefix$ac_delim |
20878 | program_transform_name!$program_transform_name$ac_delim |
20879 | bindir!$bindir$ac_delim |
20880 | sbindir!$sbindir$ac_delim |
20881 | libexecdir!$libexecdir$ac_delim |
20882 | datarootdir!$datarootdir$ac_delim |
20883 | datadir!$datadir$ac_delim |
20884 | sysconfdir!$sysconfdir$ac_delim |
20885 | sharedstatedir!$sharedstatedir$ac_delim |
20886 | localstatedir!$localstatedir$ac_delim |
20887 | includedir!$includedir$ac_delim |
20888 | oldincludedir!$oldincludedir$ac_delim |
20889 | docdir!$docdir$ac_delim |
20890 | infodir!$infodir$ac_delim |
20891 | htmldir!$htmldir$ac_delim |
20892 | dvidir!$dvidir$ac_delim |
20893 | pdfdir!$pdfdir$ac_delim |
20894 | psdir!$psdir$ac_delim |
20895 | libdir!$libdir$ac_delim |
20896 | localedir!$localedir$ac_delim |
20897 | mandir!$mandir$ac_delim |
20898 | DEFS!$DEFS$ac_delim |
20899 | ECHO_C!$ECHO_C$ac_delim |
20900 | ECHO_N!$ECHO_N$ac_delim |
20901 | ECHO_T!$ECHO_T$ac_delim |
20902 | LIBS!$LIBS$ac_delim |
20903 | build_alias!$build_alias$ac_delim |
20904 | host_alias!$host_alias$ac_delim |
20905 | target_alias!$target_alias$ac_delim |
20906 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
20907 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
20908 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
20909 | am__isrc!$am__isrc$ac_delim |
20910 | CYGPATH_W!$CYGPATH_W$ac_delim |
20911 | PACKAGE!$PACKAGE$ac_delim |
20912 | VERSION!$VERSION$ac_delim |
20913 | ACLOCAL!$ACLOCAL$ac_delim |
20914 | AUTOCONF!$AUTOCONF$ac_delim |
20915 | AUTOMAKE!$AUTOMAKE$ac_delim |
20916 | AUTOHEADER!$AUTOHEADER$ac_delim |
20917 | MAKEINFO!$MAKEINFO$ac_delim |
20918 | install_sh!$install_sh$ac_delim |
20919 | STRIP!$STRIP$ac_delim |
20920 | INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim |
20921 | mkdir_p!$mkdir_p$ac_delim |
20922 | AWK!$AWK$ac_delim |
20923 | SET_MAKE!$SET_MAKE$ac_delim |
20924 | am__leading_dot!$am__leading_dot$ac_delim |
20925 | AMTAR!$AMTAR$ac_delim |
20926 | am__tar!$am__tar$ac_delim |
20927 | am__untar!$am__untar$ac_delim |
20928 | CC!$CC$ac_delim |
20929 | CFLAGS!$CFLAGS$ac_delim |
20930 | LDFLAGS!$LDFLAGS$ac_delim |
20931 | CPPFLAGS!$CPPFLAGS$ac_delim |
20932 | ac_ct_CC!$ac_ct_CC$ac_delim |
20933 | EXEEXT!$EXEEXT$ac_delim |
20934 | OBJEXT!$OBJEXT$ac_delim |
20935 | DEPDIR!$DEPDIR$ac_delim |
20936 | am__include!$am__include$ac_delim |
20937 | am__quote!$am__quote$ac_delim |
20938 | AMDEP_TRUE!$AMDEP_TRUE$ac_delim |
20939 | AMDEP_FALSE!$AMDEP_FALSE$ac_delim |
20940 | AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim |
20941 | CCDEPMODE!$CCDEPMODE$ac_delim |
20942 | am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim |
20943 | am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim |
20944 | CPP!$CPP$ac_delim |
20945 | GREP!$GREP$ac_delim |
20946 | EGREP!$EGREP$ac_delim |
20947 | CXX!$CXX$ac_delim |
20948 | CXXFLAGS!$CXXFLAGS$ac_delim |
20949 | ac_ct_CXX!$ac_ct_CXX$ac_delim |
20950 | CXXDEPMODE!$CXXDEPMODE$ac_delim |
20951 | am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim |
20952 | am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim |
20953 | build!$build$ac_delim |
20954 | build_cpu!$build_cpu$ac_delim |
20955 | build_vendor!$build_vendor$ac_delim |
20956 | build_os!$build_os$ac_delim |
20957 | host!$host$ac_delim |
20958 | host_cpu!$host_cpu$ac_delim |
20959 | host_vendor!$host_vendor$ac_delim |
20960 | host_os!$host_os$ac_delim |
20961 | SED!$SED$ac_delim |
20962 | LN_S!$LN_S$ac_delim |
20963 | ECHO!$ECHO$ac_delim |
20964 | AR!$AR$ac_delim |
20965 | RANLIB!$RANLIB$ac_delim |
20966 | _ACEOF |
20967 | |
20968 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
20969 | break |
20970 | elif $ac_last_try; then |
20971 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
20972 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
20973 | { (exit 1); exit 1; }; } |
20974 | else |
20975 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
d9898ee8 |
20976 | fi |
dd184caf |
20977 | done |
20978 | |
20979 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
20980 | if test -n "$ac_eof"; then |
20981 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
20982 | ac_eof=`expr $ac_eof + 1` |
20983 | fi |
20984 | |
20985 | cat >>$CONFIG_STATUS <<_ACEOF |
20986 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
20987 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
20988 | _ACEOF |
20989 | sed ' |
20990 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
20991 | s/^/s,@/; s/!/@,|#_!!_#|/ |
20992 | :n |
20993 | t n |
20994 | s/'"$ac_delim"'$/,g/; t |
20995 | s/$/\\/; p |
20996 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
20997 | ' >>$CONFIG_STATUS <conf$$subs.sed |
20998 | rm -f conf$$subs.sed |
20999 | cat >>$CONFIG_STATUS <<_ACEOF |
21000 | CEOF$ac_eof |
21001 | _ACEOF |
21002 | |
21003 | |
21004 | ac_delim='%!_!# ' |
21005 | for ac_last_try in false false false false false :; do |
21006 | cat >conf$$subs.sed <<_ACEOF |
21007 | CXXCPP!$CXXCPP$ac_delim |
21008 | F77!$F77$ac_delim |
21009 | FFLAGS!$FFLAGS$ac_delim |
21010 | ac_ct_F77!$ac_ct_F77$ac_delim |
21011 | LIBTOOL!$LIBTOOL$ac_delim |
21012 | LIBGDBM!$LIBGDBM$ac_delim |
21013 | FOUND_GDBM_TRUE!$FOUND_GDBM_TRUE$ac_delim |
21014 | FOUND_GDBM_FALSE!$FOUND_GDBM_FALSE$ac_delim |
21015 | LIBOBJS!$LIBOBJS$ac_delim |
21016 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
21017 | _ACEOF |
21018 | |
21019 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 10; then |
21020 | break |
21021 | elif $ac_last_try; then |
21022 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
21023 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
21024 | { (exit 1); exit 1; }; } |
21025 | else |
21026 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
21027 | fi |
21028 | done |
d9898ee8 |
21029 | |
dd184caf |
21030 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
21031 | if test -n "$ac_eof"; then |
21032 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
21033 | ac_eof=`expr $ac_eof + 1` |
21034 | fi |
21035 | |
21036 | cat >>$CONFIG_STATUS <<_ACEOF |
21037 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
21038 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
21039 | _ACEOF |
21040 | sed ' |
21041 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
21042 | s/^/s,@/; s/!/@,|#_!!_#|/ |
21043 | :n |
21044 | t n |
21045 | s/'"$ac_delim"'$/,g/; t |
21046 | s/$/\\/; p |
21047 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
21048 | ' >>$CONFIG_STATUS <conf$$subs.sed |
21049 | rm -f conf$$subs.sed |
21050 | cat >>$CONFIG_STATUS <<_ACEOF |
21051 | :end |
21052 | s/|#_!!_#|//g |
21053 | CEOF$ac_eof |
d9898ee8 |
21054 | _ACEOF |
dd184caf |
21055 | |
21056 | |
21057 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
21058 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
21059 | # trailing colons and then remove the whole line if VPATH becomes empty |
21060 | # (actually we leave an empty line to preserve line numbers). |
21061 | if test "x$srcdir" = x.; then |
21062 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
21063 | s/:*\$(srcdir):*/:/ |
21064 | s/:*\${srcdir}:*/:/ |
21065 | s/:*@srcdir@:*/:/ |
21066 | s/^\([^=]*=[ ]*\):*/\1/ |
21067 | s/:*$// |
21068 | s/^[^=]*=[ ]*$// |
21069 | }' |
21070 | fi |
21071 | |
d9898ee8 |
21072 | cat >>$CONFIG_STATUS <<\_ACEOF |
dd184caf |
21073 | fi # test -n "$CONFIG_FILES" |
21074 | |
21075 | |
21076 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS |
21077 | do |
21078 | case $ac_tag in |
21079 | :[FHLC]) ac_mode=$ac_tag; continue;; |
21080 | esac |
21081 | case $ac_mode$ac_tag in |
21082 | :[FHL]*:*);; |
21083 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
21084 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
21085 | { (exit 1); exit 1; }; };; |
21086 | :[FH]-) ac_tag=-:-;; |
21087 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
21088 | esac |
21089 | ac_save_IFS=$IFS |
21090 | IFS=: |
21091 | set x $ac_tag |
21092 | IFS=$ac_save_IFS |
21093 | shift |
21094 | ac_file=$1 |
21095 | shift |
21096 | |
21097 | case $ac_mode in |
21098 | :L) ac_source=$1;; |
21099 | :[FH]) |
21100 | ac_file_inputs= |
21101 | for ac_f |
21102 | do |
21103 | case $ac_f in |
21104 | -) ac_f="$tmp/stdin";; |
21105 | *) # Look for the file first in the build tree, then in the source tree |
21106 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
21107 | # because $ac_f cannot contain `:'. |
21108 | test -f "$ac_f" || |
21109 | case $ac_f in |
21110 | [\\/$]*) false;; |
21111 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
21112 | esac || |
21113 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
21114 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
21115 | { (exit 1); exit 1; }; };; |
21116 | esac |
21117 | ac_file_inputs="$ac_file_inputs $ac_f" |
21118 | done |
21119 | |
21120 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
21121 | # use $as_me), people would be surprised to read: |
21122 | # /* config.h. Generated by config.status. */ |
21123 | configure_input="Generated from "`IFS=: |
21124 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
21125 | if test x"$ac_file" != x-; then |
21126 | configure_input="$ac_file. $configure_input" |
21127 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
21128 | echo "$as_me: creating $ac_file" >&6;} |
21129 | fi |
21130 | |
21131 | case $ac_tag in |
21132 | *:-:* | *:-) cat >"$tmp/stdin";; |
21133 | esac |
21134 | ;; |
d9898ee8 |
21135 | esac |
21136 | |
dd184caf |
21137 | ac_dir=`$as_dirname -- "$ac_file" || |
d9898ee8 |
21138 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
21139 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
21140 | X"$ac_file" : 'X\(//\)$' \| \ |
dd184caf |
21141 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
21142 | echo X"$ac_file" | |
dd184caf |
21143 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
21144 | s//\1/ |
21145 | q |
21146 | } |
21147 | /^X\(\/\/\)[^/].*/{ |
21148 | s//\1/ |
21149 | q |
21150 | } |
21151 | /^X\(\/\/\)$/{ |
21152 | s//\1/ |
21153 | q |
21154 | } |
21155 | /^X\(\/\).*/{ |
21156 | s//\1/ |
21157 | q |
21158 | } |
21159 | s/.*/./; q'` |
21160 | { as_dir="$ac_dir" |
21161 | case $as_dir in #( |
21162 | -*) as_dir=./$as_dir;; |
21163 | esac |
21164 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
d9898ee8 |
21165 | as_dirs= |
dd184caf |
21166 | while :; do |
21167 | case $as_dir in #( |
21168 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
21169 | *) as_qdir=$as_dir;; |
21170 | esac |
21171 | as_dirs="'$as_qdir' $as_dirs" |
21172 | as_dir=`$as_dirname -- "$as_dir" || |
d9898ee8 |
21173 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
21174 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
21175 | X"$as_dir" : 'X\(//\)$' \| \ |
dd184caf |
21176 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
21177 | echo X"$as_dir" | |
dd184caf |
21178 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
21179 | s//\1/ |
21180 | q |
21181 | } |
21182 | /^X\(\/\/\)[^/].*/{ |
21183 | s//\1/ |
21184 | q |
21185 | } |
21186 | /^X\(\/\/\)$/{ |
21187 | s//\1/ |
21188 | q |
21189 | } |
21190 | /^X\(\/\).*/{ |
21191 | s//\1/ |
21192 | q |
21193 | } |
21194 | s/.*/./; q'` |
21195 | test -d "$as_dir" && break |
d9898ee8 |
21196 | done |
dd184caf |
21197 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
21198 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
21199 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
d9898ee8 |
21200 | { (exit 1); exit 1; }; }; } |
d9898ee8 |
21201 | ac_builddir=. |
21202 | |
dd184caf |
21203 | case "$ac_dir" in |
21204 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
21205 | *) |
d9898ee8 |
21206 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
dd184caf |
21207 | # A ".." for each directory in $ac_dir_suffix. |
21208 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
21209 | case $ac_top_builddir_sub in |
21210 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
21211 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
21212 | esac ;; |
21213 | esac |
21214 | ac_abs_top_builddir=$ac_pwd |
21215 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
21216 | # for backward compatibility: |
21217 | ac_top_builddir=$ac_top_build_prefix |
d9898ee8 |
21218 | |
21219 | case $srcdir in |
dd184caf |
21220 | .) # We are building in place. |
d9898ee8 |
21221 | ac_srcdir=. |
dd184caf |
21222 | ac_top_srcdir=$ac_top_builddir_sub |
21223 | ac_abs_top_srcdir=$ac_pwd ;; |
21224 | [\\/]* | ?:[\\/]* ) # Absolute name. |
d9898ee8 |
21225 | ac_srcdir=$srcdir$ac_dir_suffix; |
dd184caf |
21226 | ac_top_srcdir=$srcdir |
21227 | ac_abs_top_srcdir=$srcdir ;; |
21228 | *) # Relative name. |
21229 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
21230 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
21231 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
d9898ee8 |
21232 | esac |
dd184caf |
21233 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
d9898ee8 |
21234 | |
d9898ee8 |
21235 | |
dd184caf |
21236 | case $ac_mode in |
21237 | :F) |
21238 | # |
21239 | # CONFIG_FILE |
21240 | # |
d9898ee8 |
21241 | |
21242 | case $INSTALL in |
21243 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
dd184caf |
21244 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
d9898ee8 |
21245 | esac |
dd184caf |
21246 | ac_MKDIR_P=$MKDIR_P |
21247 | case $MKDIR_P in |
21248 | [\\/$]* | ?:[\\/]* ) ;; |
21249 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
21250 | esac |
21251 | _ACEOF |
d9898ee8 |
21252 | |
dd184caf |
21253 | cat >>$CONFIG_STATUS <<\_ACEOF |
21254 | # If the template does not know about datarootdir, expand it. |
21255 | # FIXME: This hack should be removed a few years after 2.60. |
21256 | ac_datarootdir_hack=; ac_datarootdir_seen= |
21257 | |
21258 | case `sed -n '/datarootdir/ { |
21259 | p |
21260 | q |
21261 | } |
21262 | /@datadir@/p |
21263 | /@docdir@/p |
21264 | /@infodir@/p |
21265 | /@localedir@/p |
21266 | /@mandir@/p |
21267 | ' $ac_file_inputs` in |
21268 | *datarootdir*) ac_datarootdir_seen=yes;; |
21269 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
21270 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
21271 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
21272 | _ACEOF |
21273 | cat >>$CONFIG_STATUS <<_ACEOF |
21274 | ac_datarootdir_hack=' |
21275 | s&@datadir@&$datadir&g |
21276 | s&@docdir@&$docdir&g |
21277 | s&@infodir@&$infodir&g |
21278 | s&@localedir@&$localedir&g |
21279 | s&@mandir@&$mandir&g |
21280 | s&\\\${datarootdir}&$datarootdir&g' ;; |
21281 | esac |
d9898ee8 |
21282 | _ACEOF |
dd184caf |
21283 | |
21284 | # Neutralize VPATH when `$srcdir' = `.'. |
21285 | # Shell code in configure.ac might set extrasub. |
21286 | # FIXME: do we really want to maintain this feature? |
d9898ee8 |
21287 | cat >>$CONFIG_STATUS <<_ACEOF |
21288 | sed "$ac_vpsub |
21289 | $extrasub |
21290 | _ACEOF |
21291 | cat >>$CONFIG_STATUS <<\_ACEOF |
21292 | :t |
21293 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
dd184caf |
21294 | s&@configure_input@&$configure_input&;t t |
21295 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
21296 | s&@srcdir@&$ac_srcdir&;t t |
21297 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
21298 | s&@top_srcdir@&$ac_top_srcdir&;t t |
21299 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
21300 | s&@builddir@&$ac_builddir&;t t |
21301 | s&@abs_builddir@&$ac_abs_builddir&;t t |
21302 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
21303 | s&@INSTALL@&$ac_INSTALL&;t t |
21304 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
21305 | $ac_datarootdir_hack |
21306 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out |
21307 | |
21308 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
21309 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
21310 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
21311 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
21312 | which seems to be undefined. Please make sure it is defined." >&5 |
21313 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
21314 | which seems to be undefined. Please make sure it is defined." >&2;} |
21315 | |
21316 | rm -f "$tmp/stdin" |
d9898ee8 |
21317 | case $ac_file in |
dd184caf |
21318 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
21319 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
d9898ee8 |
21320 | esac |
dd184caf |
21321 | ;; |
21322 | :H) |
21323 | # |
21324 | # CONFIG_HEADER |
21325 | # |
d9898ee8 |
21326 | _ACEOF |
21327 | |
dd184caf |
21328 | # Transform confdefs.h into a sed script `conftest.defines', that |
21329 | # substitutes the proper values into config.h.in to produce config.h. |
21330 | rm -f conftest.defines conftest.tail |
21331 | # First, append a space to every undef/define line, to ease matching. |
21332 | echo 's/$/ /' >conftest.defines |
21333 | # Then, protect against being on the right side of a sed subst, or in |
21334 | # an unquoted here document, in config.status. If some macros were |
21335 | # called several times there might be several #defines for the same |
21336 | # symbol, which is useless. But do not sort them, since the last |
21337 | # AC_DEFINE must be honored. |
21338 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
21339 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
21340 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
21341 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
21342 | # just an empty string. |
21343 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
21344 | ac_dB='\\)[ (].*,\\1define\\2' |
21345 | ac_dC=' ' |
21346 | ac_dD=' ,' |
21347 | |
21348 | uniq confdefs.h | |
21349 | sed -n ' |
21350 | t rset |
21351 | :rset |
21352 | s/^[ ]*#[ ]*define[ ][ ]*// |
21353 | t ok |
21354 | d |
21355 | :ok |
21356 | s/[\\&,]/\\&/g |
21357 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
21358 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
21359 | ' >>conftest.defines |
21360 | |
21361 | # Remove the space that was appended to ease matching. |
21362 | # Then replace #undef with comments. This is necessary, for |
d9898ee8 |
21363 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
21364 | # on some systems where configure will not decide to define it. |
dd184caf |
21365 | # (The regexp can be short, since the line contains either #define or #undef.) |
21366 | echo 's/ $// |
21367 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
21368 | |
21369 | # Break up conftest.defines: |
21370 | ac_max_sed_lines=50 |
21371 | |
21372 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
21373 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
21374 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
21375 | # et cetera. |
21376 | ac_in='$ac_file_inputs' |
21377 | ac_out='"$tmp/out1"' |
21378 | ac_nxt='"$tmp/out2"' |
21379 | |
21380 | while : |
d9898ee8 |
21381 | do |
dd184caf |
21382 | # Write a here document: |
21383 | cat >>$CONFIG_STATUS <<_ACEOF |
21384 | # First, check the format of the line: |
21385 | cat >"\$tmp/defines.sed" <<\\CEOF |
21386 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
21387 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
21388 | b |
21389 | :def |
21390 | _ACEOF |
21391 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
d9898ee8 |
21392 | echo 'CEOF |
dd184caf |
21393 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
21394 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
21395 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
21396 | grep . conftest.tail >/dev/null || break |
d9898ee8 |
21397 | rm -f conftest.defines |
21398 | mv conftest.tail conftest.defines |
21399 | done |
dd184caf |
21400 | rm -f conftest.defines conftest.tail |
d9898ee8 |
21401 | |
dd184caf |
21402 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
d9898ee8 |
21403 | cat >>$CONFIG_STATUS <<\_ACEOF |
d9898ee8 |
21404 | if test x"$ac_file" != x-; then |
dd184caf |
21405 | echo "/* $configure_input */" >"$tmp/config.h" |
21406 | cat "$ac_result" >>"$tmp/config.h" |
21407 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
d9898ee8 |
21408 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
21409 | echo "$as_me: $ac_file is unchanged" >&6;} |
21410 | else |
d9898ee8 |
21411 | rm -f $ac_file |
dd184caf |
21412 | mv "$tmp/config.h" $ac_file |
d9898ee8 |
21413 | fi |
21414 | else |
dd184caf |
21415 | echo "/* $configure_input */" |
21416 | cat "$ac_result" |
d9898ee8 |
21417 | fi |
dd184caf |
21418 | rm -f "$tmp/out12" |
d9898ee8 |
21419 | # Compute $ac_file's index in $config_headers. |
21420 | _am_stamp_count=1 |
21421 | for _am_header in $config_headers :; do |
21422 | case $_am_header in |
21423 | $ac_file | $ac_file:* ) |
21424 | break ;; |
21425 | * ) |
21426 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
21427 | esac |
21428 | done |
dd184caf |
21429 | echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || |
d9898ee8 |
21430 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
21431 | X$ac_file : 'X\(//\)[^/]' \| \ |
21432 | X$ac_file : 'X\(//\)$' \| \ |
dd184caf |
21433 | X$ac_file : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
21434 | echo X$ac_file | |
dd184caf |
21435 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
21436 | s//\1/ |
21437 | q |
21438 | } |
21439 | /^X\(\/\/\)[^/].*/{ |
21440 | s//\1/ |
21441 | q |
21442 | } |
21443 | /^X\(\/\/\)$/{ |
21444 | s//\1/ |
21445 | q |
21446 | } |
21447 | /^X\(\/\).*/{ |
21448 | s//\1/ |
21449 | q |
21450 | } |
21451 | s/.*/./; q'`/stamp-h$_am_stamp_count |
21452 | ;; |
d9898ee8 |
21453 | |
dd184caf |
21454 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
21455 | echo "$as_me: executing $ac_file commands" >&6;} |
21456 | ;; |
21457 | esac |
d9898ee8 |
21458 | |
21459 | |
dd184caf |
21460 | case $ac_file$ac_mode in |
21461 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
d9898ee8 |
21462 | # Strip MF so we end up with the name of the file. |
21463 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
21464 | # Check whether this is an Automake generated Makefile or not. |
21465 | # We used to match only the files named `Makefile.in', but |
21466 | # some people rename them; so instead we look at the file content. |
21467 | # Grep'ing the first line is not enough: some people post-process |
21468 | # each Makefile.in and add a new line on top of each file to say so. |
dd184caf |
21469 | # Grep'ing the whole file is not good either: AIX grep has a line |
21470 | # limit of 2048, but all sed's we know have understand at least 4000. |
21471 | if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then |
21472 | dirpart=`$as_dirname -- "$mf" || |
d9898ee8 |
21473 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
21474 | X"$mf" : 'X\(//\)[^/]' \| \ |
21475 | X"$mf" : 'X\(//\)$' \| \ |
dd184caf |
21476 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
21477 | echo X"$mf" | |
dd184caf |
21478 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
21479 | s//\1/ |
21480 | q |
21481 | } |
21482 | /^X\(\/\/\)[^/].*/{ |
21483 | s//\1/ |
21484 | q |
21485 | } |
21486 | /^X\(\/\/\)$/{ |
21487 | s//\1/ |
21488 | q |
21489 | } |
21490 | /^X\(\/\).*/{ |
21491 | s//\1/ |
21492 | q |
21493 | } |
21494 | s/.*/./; q'` |
d9898ee8 |
21495 | else |
21496 | continue |
21497 | fi |
21498 | # Extract the definition of DEPDIR, am__include, and am__quote |
21499 | # from the Makefile without running `make'. |
21500 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
21501 | test -z "$DEPDIR" && continue |
21502 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
21503 | test -z "am__include" && continue |
21504 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
21505 | # When using ansi2knr, U may be empty or an underscore; expand it |
21506 | U=`sed -n 's/^U = //p' < "$mf"` |
21507 | # Find all dependency output files, they are included files with |
21508 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
21509 | # simplest approach to changing $(DEPDIR) to its actual value in the |
21510 | # expansion. |
21511 | for file in `sed -n " |
21512 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
21513 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
21514 | # Make sure the directory exists. |
21515 | test -f "$dirpart/$file" && continue |
dd184caf |
21516 | fdir=`$as_dirname -- "$file" || |
d9898ee8 |
21517 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
21518 | X"$file" : 'X\(//\)[^/]' \| \ |
21519 | X"$file" : 'X\(//\)$' \| \ |
dd184caf |
21520 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
21521 | echo X"$file" | |
dd184caf |
21522 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
21523 | s//\1/ |
21524 | q |
21525 | } |
21526 | /^X\(\/\/\)[^/].*/{ |
21527 | s//\1/ |
21528 | q |
21529 | } |
21530 | /^X\(\/\/\)$/{ |
21531 | s//\1/ |
21532 | q |
21533 | } |
21534 | /^X\(\/\).*/{ |
21535 | s//\1/ |
21536 | q |
21537 | } |
21538 | s/.*/./; q'` |
21539 | { as_dir=$dirpart/$fdir |
21540 | case $as_dir in #( |
21541 | -*) as_dir=./$as_dir;; |
21542 | esac |
21543 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
d9898ee8 |
21544 | as_dirs= |
dd184caf |
21545 | while :; do |
21546 | case $as_dir in #( |
21547 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
21548 | *) as_qdir=$as_dir;; |
21549 | esac |
21550 | as_dirs="'$as_qdir' $as_dirs" |
21551 | as_dir=`$as_dirname -- "$as_dir" || |
d9898ee8 |
21552 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
21553 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
21554 | X"$as_dir" : 'X\(//\)$' \| \ |
dd184caf |
21555 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
21556 | echo X"$as_dir" | |
dd184caf |
21557 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
21558 | s//\1/ |
21559 | q |
21560 | } |
21561 | /^X\(\/\/\)[^/].*/{ |
21562 | s//\1/ |
21563 | q |
21564 | } |
21565 | /^X\(\/\/\)$/{ |
21566 | s//\1/ |
21567 | q |
21568 | } |
21569 | /^X\(\/\).*/{ |
21570 | s//\1/ |
21571 | q |
21572 | } |
21573 | s/.*/./; q'` |
21574 | test -d "$as_dir" && break |
d9898ee8 |
21575 | done |
dd184caf |
21576 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
21577 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
21578 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
d9898ee8 |
21579 | { (exit 1); exit 1; }; }; } |
d9898ee8 |
21580 | # echo "creating $dirpart/$file" |
21581 | echo '# dummy' > "$dirpart/$file" |
21582 | done |
21583 | done |
21584 | ;; |
dd184caf |
21585 | |
d9898ee8 |
21586 | esac |
dd184caf |
21587 | done # for ac_tag |
d9898ee8 |
21588 | |
d9898ee8 |
21589 | |
21590 | { (exit 0); exit 0; } |
21591 | _ACEOF |
21592 | chmod +x $CONFIG_STATUS |
21593 | ac_clean_files=$ac_clean_files_save |
21594 | |
21595 | |
21596 | # configure is writing to config.log, and then calls config.status. |
21597 | # config.status does its own redirection, appending to config.log. |
21598 | # Unfortunately, on DOS this fails, as config.log is still kept open |
21599 | # by configure, so config.status won't be able to write to it; its |
21600 | # output is simply discarded. So we exec the FD to /dev/null, |
21601 | # effectively closing config.log, so it can be properly (re)opened and |
21602 | # appended to by config.status. When coming back to configure, we |
21603 | # need to make the FD available again. |
21604 | if test "$no_create" != yes; then |
21605 | ac_cs_success=: |
21606 | ac_config_status_args= |
21607 | test "$silent" = yes && |
21608 | ac_config_status_args="$ac_config_status_args --quiet" |
21609 | exec 5>/dev/null |
21610 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
21611 | exec 5>>config.log |
21612 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
21613 | # would make configure fail if this is the last instruction. |
21614 | $ac_cs_success || { (exit 1); exit 1; } |
21615 | fi |
21616 | |