d9898ee8 |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. |
dd184caf |
3 | # Generated by GNU Autoconf 2.61 for libmd5 1.21. |
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='libmd5' |
730 | PACKAGE_TARNAME='libmd5' |
731 | PACKAGE_VERSION='1.21' |
732 | PACKAGE_STRING='libmd5 1.21' |
733 | PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net' |
734 | |
735 | ac_unique_file="hmac.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 | HMACC_TRUE |
832 | HMACC_FALSE |
833 | LN_S |
834 | CC |
835 | CFLAGS |
836 | LDFLAGS |
837 | CPPFLAGS |
838 | ac_ct_CC |
839 | EXEEXT |
840 | OBJEXT |
841 | DEPDIR |
842 | am__include |
843 | am__quote |
844 | AMDEP_TRUE |
845 | AMDEP_FALSE |
846 | AMDEPBACKSLASH |
847 | CCDEPMODE |
848 | am__fastdepCC_TRUE |
849 | am__fastdepCC_FALSE |
850 | build |
851 | build_cpu |
852 | build_vendor |
853 | build_os |
854 | host |
855 | host_cpu |
856 | host_vendor |
857 | host_os |
858 | SED |
859 | GREP |
860 | EGREP |
861 | ECHO |
862 | AR |
863 | RANLIB |
864 | CPP |
865 | CXX |
866 | CXXFLAGS |
867 | ac_ct_CXX |
868 | CXXDEPMODE |
869 | am__fastdepCXX_TRUE |
870 | am__fastdepCXX_FALSE |
871 | CXXCPP |
872 | F77 |
873 | FFLAGS |
874 | ac_ct_F77 |
875 | LIBTOOL |
876 | LIBOBJS |
877 | LTLIBOBJS' |
d9898ee8 |
878 | ac_subst_files='' |
dd184caf |
879 | ac_precious_vars='build_alias |
880 | host_alias |
881 | target_alias |
882 | CC |
883 | CFLAGS |
884 | LDFLAGS |
885 | LIBS |
886 | CPPFLAGS |
887 | CPP |
888 | CXX |
889 | CXXFLAGS |
890 | CCC |
891 | CXXCPP |
892 | F77 |
893 | FFLAGS' |
894 | |
d9898ee8 |
895 | |
896 | # Initialize some variables set by options. |
897 | ac_init_help= |
898 | ac_init_version=false |
899 | # The variables have the same names as the options, with |
900 | # dashes changed to underlines. |
901 | cache_file=/dev/null |
902 | exec_prefix=NONE |
903 | no_create= |
904 | no_recursion= |
905 | prefix=NONE |
906 | program_prefix=NONE |
907 | program_suffix=NONE |
908 | program_transform_name=s,x,x, |
909 | silent= |
910 | site= |
911 | srcdir= |
912 | verbose= |
913 | x_includes=NONE |
914 | x_libraries=NONE |
915 | |
916 | # Installation directory options. |
917 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
918 | # and all the variables that are supposed to be based on exec_prefix |
919 | # by default will actually change. |
920 | # Use braces instead of parens because sh, perl, etc. also accept them. |
dd184caf |
921 | # (The list follows the same order as the GNU Coding Standards.) |
d9898ee8 |
922 | bindir='${exec_prefix}/bin' |
923 | sbindir='${exec_prefix}/sbin' |
924 | libexecdir='${exec_prefix}/libexec' |
dd184caf |
925 | datarootdir='${prefix}/share' |
926 | datadir='${datarootdir}' |
d9898ee8 |
927 | sysconfdir='${prefix}/etc' |
928 | sharedstatedir='${prefix}/com' |
929 | localstatedir='${prefix}/var' |
d9898ee8 |
930 | includedir='${prefix}/include' |
931 | oldincludedir='/usr/include' |
dd184caf |
932 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
933 | infodir='${datarootdir}/info' |
934 | htmldir='${docdir}' |
935 | dvidir='${docdir}' |
936 | pdfdir='${docdir}' |
937 | psdir='${docdir}' |
938 | libdir='${exec_prefix}/lib' |
939 | localedir='${datarootdir}/locale' |
940 | mandir='${datarootdir}/man' |
d9898ee8 |
941 | |
942 | ac_prev= |
dd184caf |
943 | ac_dashdash= |
d9898ee8 |
944 | for ac_option |
945 | do |
946 | # If the previous option needs an argument, assign it. |
947 | if test -n "$ac_prev"; then |
dd184caf |
948 | eval $ac_prev=\$ac_option |
d9898ee8 |
949 | ac_prev= |
950 | continue |
951 | fi |
952 | |
dd184caf |
953 | case $ac_option in |
954 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
955 | *) ac_optarg=yes ;; |
956 | esac |
d9898ee8 |
957 | |
958 | # Accept the important Cygnus configure options, so we can diagnose typos. |
959 | |
dd184caf |
960 | case $ac_dashdash$ac_option in |
961 | --) |
962 | ac_dashdash=yes ;; |
d9898ee8 |
963 | |
964 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
965 | ac_prev=bindir ;; |
966 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
967 | bindir=$ac_optarg ;; |
968 | |
969 | -build | --build | --buil | --bui | --bu) |
970 | ac_prev=build_alias ;; |
971 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
972 | build_alias=$ac_optarg ;; |
973 | |
974 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
975 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
976 | ac_prev=cache_file ;; |
977 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
978 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
979 | cache_file=$ac_optarg ;; |
980 | |
981 | --config-cache | -C) |
982 | cache_file=config.cache ;; |
983 | |
dd184caf |
984 | -datadir | --datadir | --datadi | --datad) |
d9898ee8 |
985 | ac_prev=datadir ;; |
dd184caf |
986 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
d9898ee8 |
987 | datadir=$ac_optarg ;; |
988 | |
dd184caf |
989 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
990 | | --dataroo | --dataro | --datar) |
991 | ac_prev=datarootdir ;; |
992 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
993 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
994 | datarootdir=$ac_optarg ;; |
995 | |
d9898ee8 |
996 | -disable-* | --disable-*) |
997 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
998 | # Reject names that are not valid shell variable names. |
dd184caf |
999 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
d9898ee8 |
1000 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
1001 | { (exit 1); exit 1; }; } |
dd184caf |
1002 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
1003 | eval enable_$ac_feature=no ;; |
1004 | |
1005 | -docdir | --docdir | --docdi | --doc | --do) |
1006 | ac_prev=docdir ;; |
1007 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
1008 | docdir=$ac_optarg ;; |
1009 | |
1010 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
1011 | ac_prev=dvidir ;; |
1012 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
1013 | dvidir=$ac_optarg ;; |
d9898ee8 |
1014 | |
1015 | -enable-* | --enable-*) |
1016 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
1017 | # Reject names that are not valid shell variable names. |
dd184caf |
1018 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
d9898ee8 |
1019 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
1020 | { (exit 1); exit 1; }; } |
dd184caf |
1021 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
1022 | eval enable_$ac_feature=\$ac_optarg ;; |
d9898ee8 |
1023 | |
1024 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
1025 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
1026 | | --exec | --exe | --ex) |
1027 | ac_prev=exec_prefix ;; |
1028 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
1029 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
1030 | | --exec=* | --exe=* | --ex=*) |
1031 | exec_prefix=$ac_optarg ;; |
1032 | |
1033 | -gas | --gas | --ga | --g) |
1034 | # Obsolete; use --with-gas. |
1035 | with_gas=yes ;; |
1036 | |
1037 | -help | --help | --hel | --he | -h) |
1038 | ac_init_help=long ;; |
1039 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
1040 | ac_init_help=recursive ;; |
1041 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
1042 | ac_init_help=short ;; |
1043 | |
1044 | -host | --host | --hos | --ho) |
1045 | ac_prev=host_alias ;; |
1046 | -host=* | --host=* | --hos=* | --ho=*) |
1047 | host_alias=$ac_optarg ;; |
1048 | |
dd184caf |
1049 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1050 | ac_prev=htmldir ;; |
1051 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
1052 | | --ht=*) |
1053 | htmldir=$ac_optarg ;; |
1054 | |
d9898ee8 |
1055 | -includedir | --includedir | --includedi | --included | --include \ |
1056 | | --includ | --inclu | --incl | --inc) |
1057 | ac_prev=includedir ;; |
1058 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
1059 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
1060 | includedir=$ac_optarg ;; |
1061 | |
1062 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
1063 | ac_prev=infodir ;; |
1064 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
1065 | infodir=$ac_optarg ;; |
1066 | |
1067 | -libdir | --libdir | --libdi | --libd) |
1068 | ac_prev=libdir ;; |
1069 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
1070 | libdir=$ac_optarg ;; |
1071 | |
1072 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
1073 | | --libexe | --libex | --libe) |
1074 | ac_prev=libexecdir ;; |
1075 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
1076 | | --libexe=* | --libex=* | --libe=*) |
1077 | libexecdir=$ac_optarg ;; |
1078 | |
dd184caf |
1079 | -localedir | --localedir | --localedi | --localed | --locale) |
1080 | ac_prev=localedir ;; |
1081 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
1082 | localedir=$ac_optarg ;; |
1083 | |
d9898ee8 |
1084 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
dd184caf |
1085 | | --localstate | --localstat | --localsta | --localst | --locals) |
d9898ee8 |
1086 | ac_prev=localstatedir ;; |
1087 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
dd184caf |
1088 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
d9898ee8 |
1089 | localstatedir=$ac_optarg ;; |
1090 | |
1091 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
1092 | ac_prev=mandir ;; |
1093 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
1094 | mandir=$ac_optarg ;; |
1095 | |
1096 | -nfp | --nfp | --nf) |
1097 | # Obsolete; use --without-fp. |
1098 | with_fp=no ;; |
1099 | |
1100 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
1101 | | --no-cr | --no-c | -n) |
1102 | no_create=yes ;; |
1103 | |
1104 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
1105 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
1106 | no_recursion=yes ;; |
1107 | |
1108 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
1109 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
1110 | | --oldin | --oldi | --old | --ol | --o) |
1111 | ac_prev=oldincludedir ;; |
1112 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
1113 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
1114 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
1115 | oldincludedir=$ac_optarg ;; |
1116 | |
1117 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
1118 | ac_prev=prefix ;; |
1119 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
1120 | prefix=$ac_optarg ;; |
1121 | |
1122 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
1123 | | --program-pre | --program-pr | --program-p) |
1124 | ac_prev=program_prefix ;; |
1125 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
1126 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
1127 | program_prefix=$ac_optarg ;; |
1128 | |
1129 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
1130 | | --program-suf | --program-su | --program-s) |
1131 | ac_prev=program_suffix ;; |
1132 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
1133 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
1134 | program_suffix=$ac_optarg ;; |
1135 | |
1136 | -program-transform-name | --program-transform-name \ |
1137 | | --program-transform-nam | --program-transform-na \ |
1138 | | --program-transform-n | --program-transform- \ |
1139 | | --program-transform | --program-transfor \ |
1140 | | --program-transfo | --program-transf \ |
1141 | | --program-trans | --program-tran \ |
1142 | | --progr-tra | --program-tr | --program-t) |
1143 | ac_prev=program_transform_name ;; |
1144 | -program-transform-name=* | --program-transform-name=* \ |
1145 | | --program-transform-nam=* | --program-transform-na=* \ |
1146 | | --program-transform-n=* | --program-transform-=* \ |
1147 | | --program-transform=* | --program-transfor=* \ |
1148 | | --program-transfo=* | --program-transf=* \ |
1149 | | --program-trans=* | --program-tran=* \ |
1150 | | --progr-tra=* | --program-tr=* | --program-t=*) |
1151 | program_transform_name=$ac_optarg ;; |
1152 | |
dd184caf |
1153 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1154 | ac_prev=pdfdir ;; |
1155 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
1156 | pdfdir=$ac_optarg ;; |
1157 | |
1158 | -psdir | --psdir | --psdi | --psd | --ps) |
1159 | ac_prev=psdir ;; |
1160 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
1161 | psdir=$ac_optarg ;; |
1162 | |
d9898ee8 |
1163 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1164 | | -silent | --silent | --silen | --sile | --sil) |
1165 | silent=yes ;; |
1166 | |
1167 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
1168 | ac_prev=sbindir ;; |
1169 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
1170 | | --sbi=* | --sb=*) |
1171 | sbindir=$ac_optarg ;; |
1172 | |
1173 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
1174 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
1175 | | --sharedst | --shareds | --shared | --share | --shar \ |
1176 | | --sha | --sh) |
1177 | ac_prev=sharedstatedir ;; |
1178 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
1179 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
1180 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
1181 | | --sha=* | --sh=*) |
1182 | sharedstatedir=$ac_optarg ;; |
1183 | |
1184 | -site | --site | --sit) |
1185 | ac_prev=site ;; |
1186 | -site=* | --site=* | --sit=*) |
1187 | site=$ac_optarg ;; |
1188 | |
1189 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
1190 | ac_prev=srcdir ;; |
1191 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
1192 | srcdir=$ac_optarg ;; |
1193 | |
1194 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
1195 | | --syscon | --sysco | --sysc | --sys | --sy) |
1196 | ac_prev=sysconfdir ;; |
1197 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
1198 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
1199 | sysconfdir=$ac_optarg ;; |
1200 | |
1201 | -target | --target | --targe | --targ | --tar | --ta | --t) |
1202 | ac_prev=target_alias ;; |
1203 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
1204 | target_alias=$ac_optarg ;; |
1205 | |
1206 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
1207 | verbose=yes ;; |
1208 | |
1209 | -version | --version | --versio | --versi | --vers | -V) |
1210 | ac_init_version=: ;; |
1211 | |
1212 | -with-* | --with-*) |
1213 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
1214 | # Reject names that are not valid shell variable names. |
dd184caf |
1215 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
d9898ee8 |
1216 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
1217 | { (exit 1); exit 1; }; } |
dd184caf |
1218 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1219 | eval with_$ac_package=\$ac_optarg ;; |
d9898ee8 |
1220 | |
1221 | -without-* | --without-*) |
1222 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
1223 | # Reject names that are not valid shell variable names. |
dd184caf |
1224 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
d9898ee8 |
1225 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
1226 | { (exit 1); exit 1; }; } |
dd184caf |
1227 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1228 | eval with_$ac_package=no ;; |
d9898ee8 |
1229 | |
1230 | --x) |
1231 | # Obsolete; use --with-x. |
1232 | with_x=yes ;; |
1233 | |
1234 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
1235 | | --x-incl | --x-inc | --x-in | --x-i) |
1236 | ac_prev=x_includes ;; |
1237 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
1238 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
1239 | x_includes=$ac_optarg ;; |
1240 | |
1241 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
1242 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
1243 | ac_prev=x_libraries ;; |
1244 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
1245 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
1246 | x_libraries=$ac_optarg ;; |
1247 | |
1248 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
1249 | Try \`$0 --help' for more information." >&2 |
1250 | { (exit 1); exit 1; }; } |
1251 | ;; |
1252 | |
1253 | *=*) |
1254 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
1255 | # Reject names that are not valid shell variable names. |
1256 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
1257 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
1258 | { (exit 1); exit 1; }; } |
dd184caf |
1259 | eval $ac_envvar=\$ac_optarg |
d9898ee8 |
1260 | export $ac_envvar ;; |
1261 | |
1262 | *) |
1263 | # FIXME: should be removed in autoconf 3.0. |
1264 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
1265 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1266 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
1267 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
1268 | ;; |
1269 | |
1270 | esac |
1271 | done |
1272 | |
1273 | if test -n "$ac_prev"; then |
1274 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
1275 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
1276 | { (exit 1); exit 1; }; } |
1277 | fi |
1278 | |
dd184caf |
1279 | # Be sure to have absolute directory names. |
1280 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1281 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
1282 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
1283 | libdir localedir mandir |
d9898ee8 |
1284 | do |
dd184caf |
1285 | eval ac_val=\$$ac_var |
d9898ee8 |
1286 | case $ac_val in |
dd184caf |
1287 | [\\/$]* | ?:[\\/]* ) continue;; |
1288 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
d9898ee8 |
1289 | esac |
dd184caf |
1290 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
1291 | { (exit 1); exit 1; }; } |
d9898ee8 |
1292 | done |
1293 | |
1294 | # There might be people who depend on the old broken behavior: `$host' |
1295 | # used to hold the argument of --host etc. |
1296 | # FIXME: To remove some day. |
1297 | build=$build_alias |
1298 | host=$host_alias |
1299 | target=$target_alias |
1300 | |
1301 | # FIXME: To remove some day. |
1302 | if test "x$host_alias" != x; then |
1303 | if test "x$build_alias" = x; then |
1304 | cross_compiling=maybe |
1305 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
1306 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1307 | elif test "x$build_alias" != "x$host_alias"; then |
1308 | cross_compiling=yes |
1309 | fi |
1310 | fi |
1311 | |
1312 | ac_tool_prefix= |
1313 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
1314 | |
1315 | test "$silent" = yes && exec 6>/dev/null |
1316 | |
1317 | |
dd184caf |
1318 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1319 | ac_ls_di=`ls -di .` && |
1320 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
1321 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
1322 | { (exit 1); exit 1; }; } |
1323 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
1324 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
1325 | { (exit 1); exit 1; }; } |
1326 | |
1327 | |
d9898ee8 |
1328 | # Find the source files, if location was not specified. |
1329 | if test -z "$srcdir"; then |
1330 | ac_srcdir_defaulted=yes |
dd184caf |
1331 | # Try the directory containing this script, then the parent directory. |
1332 | ac_confdir=`$as_dirname -- "$0" || |
d9898ee8 |
1333 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
1334 | X"$0" : 'X\(//\)[^/]' \| \ |
1335 | X"$0" : 'X\(//\)$' \| \ |
dd184caf |
1336 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
1337 | echo X"$0" | |
dd184caf |
1338 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1339 | s//\1/ |
1340 | q |
1341 | } |
1342 | /^X\(\/\/\)[^/].*/{ |
1343 | s//\1/ |
1344 | q |
1345 | } |
1346 | /^X\(\/\/\)$/{ |
1347 | s//\1/ |
1348 | q |
1349 | } |
1350 | /^X\(\/\).*/{ |
1351 | s//\1/ |
1352 | q |
1353 | } |
1354 | s/.*/./; q'` |
d9898ee8 |
1355 | srcdir=$ac_confdir |
dd184caf |
1356 | if test ! -r "$srcdir/$ac_unique_file"; then |
d9898ee8 |
1357 | srcdir=.. |
1358 | fi |
1359 | else |
1360 | ac_srcdir_defaulted=no |
1361 | fi |
dd184caf |
1362 | if test ! -r "$srcdir/$ac_unique_file"; then |
1363 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
1364 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
d9898ee8 |
1365 | { (exit 1); exit 1; }; } |
d9898ee8 |
1366 | fi |
dd184caf |
1367 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1368 | ac_abs_confdir=`( |
1369 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
d9898ee8 |
1370 | { (exit 1); exit 1; }; } |
dd184caf |
1371 | pwd)` |
1372 | # When building in place, set srcdir=. |
1373 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
1374 | srcdir=. |
1375 | fi |
1376 | # Remove unnecessary trailing slashes from srcdir. |
1377 | # Double slashes in file names in object file debugging info |
1378 | # mess up M-x gdb in Emacs. |
1379 | case $srcdir in |
1380 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
1381 | esac |
1382 | for ac_var in $ac_precious_vars; do |
1383 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
1384 | eval ac_env_${ac_var}_value=\$${ac_var} |
1385 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
1386 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
1387 | done |
d9898ee8 |
1388 | |
1389 | # |
1390 | # Report the --help message. |
1391 | # |
1392 | if test "$ac_init_help" = "long"; then |
1393 | # Omit some internal or obsolete options to make the list less imposing. |
1394 | # This message is too long to be a string in the A/UX 3.1 sh. |
1395 | cat <<_ACEOF |
1396 | \`configure' configures libmd5 1.21 to adapt to many kinds of systems. |
1397 | |
1398 | Usage: $0 [OPTION]... [VAR=VALUE]... |
1399 | |
1400 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
1401 | VAR=VALUE. See below for descriptions of some of the useful variables. |
1402 | |
1403 | Defaults for the options are specified in brackets. |
1404 | |
1405 | Configuration: |
1406 | -h, --help display this help and exit |
1407 | --help=short display options specific to this package |
1408 | --help=recursive display the short help of all the included packages |
1409 | -V, --version display version information and exit |
1410 | -q, --quiet, --silent do not print \`checking...' messages |
1411 | --cache-file=FILE cache test results in FILE [disabled] |
1412 | -C, --config-cache alias for \`--cache-file=config.cache' |
1413 | -n, --no-create do not create output files |
1414 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
1415 | |
d9898ee8 |
1416 | Installation directories: |
1417 | --prefix=PREFIX install architecture-independent files in PREFIX |
1418 | [$ac_default_prefix] |
1419 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
1420 | [PREFIX] |
1421 | |
1422 | By default, \`make install' will install all the files in |
1423 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
1424 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
1425 | for instance \`--prefix=\$HOME'. |
1426 | |
1427 | For better control, use the options below. |
1428 | |
1429 | Fine tuning of the installation directories: |
1430 | --bindir=DIR user executables [EPREFIX/bin] |
1431 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
1432 | --libexecdir=DIR program executables [EPREFIX/libexec] |
d9898ee8 |
1433 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1434 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
1435 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
1436 | --libdir=DIR object code libraries [EPREFIX/lib] |
1437 | --includedir=DIR C header files [PREFIX/include] |
1438 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
dd184caf |
1439 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
1440 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
1441 | --infodir=DIR info documentation [DATAROOTDIR/info] |
1442 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
1443 | --mandir=DIR man documentation [DATAROOTDIR/man] |
1444 | --docdir=DIR documentation root [DATAROOTDIR/doc/libmd5] |
1445 | --htmldir=DIR html documentation [DOCDIR] |
1446 | --dvidir=DIR dvi documentation [DOCDIR] |
1447 | --pdfdir=DIR pdf documentation [DOCDIR] |
1448 | --psdir=DIR ps documentation [DOCDIR] |
d9898ee8 |
1449 | _ACEOF |
1450 | |
1451 | cat <<\_ACEOF |
1452 | |
1453 | Program names: |
1454 | --program-prefix=PREFIX prepend PREFIX to installed program names |
1455 | --program-suffix=SUFFIX append SUFFIX to installed program names |
1456 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
1457 | |
1458 | System types: |
1459 | --build=BUILD configure for building on BUILD [guessed] |
1460 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
1461 | _ACEOF |
1462 | fi |
1463 | |
1464 | if test -n "$ac_init_help"; then |
1465 | case $ac_init_help in |
1466 | short | recursive ) echo "Configuration of libmd5 1.21:";; |
1467 | esac |
1468 | cat <<\_ACEOF |
1469 | |
1470 | Optional Features: |
1471 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1472 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1473 | --disable-dependency-tracking speeds up one-time build |
1474 | --enable-dependency-tracking do not reject slow dependency extractors |
dd184caf |
1475 | --enable-shared[=PKGS] build shared libraries [default=yes] |
1476 | --enable-static[=PKGS] build static libraries [default=yes] |
d9898ee8 |
1477 | --enable-fast-install[=PKGS] |
1478 | optimize for fast installation [default=yes] |
1479 | --disable-libtool-lock avoid locking (might break parallel builds) |
1480 | |
1481 | Optional Packages: |
1482 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1483 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1484 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
1485 | --with-pic try to use only PIC/non-PIC objects [default=use |
1486 | both] |
dd184caf |
1487 | --with-tags[=TAGS] include additional configurations [automatic] |
d9898ee8 |
1488 | --with-int32='type' use 'type' for an unsigned 32 bit integer type |
1489 | ( default is 'unsigned') |
1490 | |
1491 | Some influential environment variables: |
1492 | CC C compiler command |
1493 | CFLAGS C compiler flags |
1494 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1495 | nonstandard directory <lib dir> |
dd184caf |
1496 | LIBS libraries to pass to the linker, e.g. -l<library> |
1497 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1498 | you have headers in a nonstandard directory <include dir> |
d9898ee8 |
1499 | CPP C preprocessor |
1500 | CXX C++ compiler command |
1501 | CXXFLAGS C++ compiler flags |
1502 | CXXCPP C++ preprocessor |
1503 | F77 Fortran 77 compiler command |
1504 | FFLAGS Fortran 77 compiler flags |
1505 | |
1506 | Use these variables to override the choices made by `configure' or to help |
1507 | it to find libraries and programs with nonstandard names/locations. |
1508 | |
1509 | Report bugs to <courier-users@lists.sourceforge.net>. |
1510 | _ACEOF |
dd184caf |
1511 | ac_status=$? |
d9898ee8 |
1512 | fi |
1513 | |
1514 | if test "$ac_init_help" = "recursive"; then |
1515 | # If there are subdirs, report their specific --help. |
d9898ee8 |
1516 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
dd184caf |
1517 | test -d "$ac_dir" || continue |
d9898ee8 |
1518 | ac_builddir=. |
1519 | |
dd184caf |
1520 | case "$ac_dir" in |
1521 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1522 | *) |
d9898ee8 |
1523 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
dd184caf |
1524 | # A ".." for each directory in $ac_dir_suffix. |
1525 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
1526 | case $ac_top_builddir_sub in |
1527 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1528 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
1529 | esac ;; |
1530 | esac |
1531 | ac_abs_top_builddir=$ac_pwd |
1532 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
1533 | # for backward compatibility: |
1534 | ac_top_builddir=$ac_top_build_prefix |
d9898ee8 |
1535 | |
1536 | case $srcdir in |
dd184caf |
1537 | .) # We are building in place. |
d9898ee8 |
1538 | ac_srcdir=. |
dd184caf |
1539 | ac_top_srcdir=$ac_top_builddir_sub |
1540 | ac_abs_top_srcdir=$ac_pwd ;; |
1541 | [\\/]* | ?:[\\/]* ) # Absolute name. |
d9898ee8 |
1542 | ac_srcdir=$srcdir$ac_dir_suffix; |
dd184caf |
1543 | ac_top_srcdir=$srcdir |
1544 | ac_abs_top_srcdir=$srcdir ;; |
1545 | *) # Relative name. |
1546 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
1547 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
1548 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
d9898ee8 |
1549 | esac |
dd184caf |
1550 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1551 | |
1552 | cd "$ac_dir" || { ac_status=$?; continue; } |
1553 | # Check for guested configure. |
1554 | if test -f "$ac_srcdir/configure.gnu"; then |
1555 | echo && |
1556 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
1557 | elif test -f "$ac_srcdir/configure"; then |
1558 | echo && |
1559 | $SHELL "$ac_srcdir/configure" --help=recursive |
d9898ee8 |
1560 | else |
1561 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
dd184caf |
1562 | fi || ac_status=$? |
1563 | cd "$ac_pwd" || { ac_status=$?; break; } |
d9898ee8 |
1564 | done |
1565 | fi |
1566 | |
dd184caf |
1567 | test -n "$ac_init_help" && exit $ac_status |
d9898ee8 |
1568 | if $ac_init_version; then |
1569 | cat <<\_ACEOF |
1570 | libmd5 configure 1.21 |
dd184caf |
1571 | generated by GNU Autoconf 2.61 |
d9898ee8 |
1572 | |
dd184caf |
1573 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
1574 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
d9898ee8 |
1575 | This configure script is free software; the Free Software Foundation |
1576 | gives unlimited permission to copy, distribute and modify it. |
1577 | _ACEOF |
dd184caf |
1578 | exit |
d9898ee8 |
1579 | fi |
dd184caf |
1580 | cat >config.log <<_ACEOF |
d9898ee8 |
1581 | This file contains any messages produced by compilers while |
1582 | running configure, to aid debugging if configure makes a mistake. |
1583 | |
1584 | It was created by libmd5 $as_me 1.21, which was |
dd184caf |
1585 | generated by GNU Autoconf 2.61. Invocation command line was |
d9898ee8 |
1586 | |
1587 | $ $0 $@ |
1588 | |
1589 | _ACEOF |
dd184caf |
1590 | exec 5>>config.log |
d9898ee8 |
1591 | { |
1592 | cat <<_ASUNAME |
1593 | ## --------- ## |
1594 | ## Platform. ## |
1595 | ## --------- ## |
1596 | |
1597 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
1598 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
1599 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
1600 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
1601 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
1602 | |
1603 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
1604 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
1605 | |
1606 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
1607 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
1608 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
dd184caf |
1609 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
d9898ee8 |
1610 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1611 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
1612 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
1613 | |
1614 | _ASUNAME |
1615 | |
1616 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1617 | for as_dir in $PATH |
1618 | do |
1619 | IFS=$as_save_IFS |
1620 | test -z "$as_dir" && as_dir=. |
1621 | echo "PATH: $as_dir" |
1622 | done |
dd184caf |
1623 | IFS=$as_save_IFS |
d9898ee8 |
1624 | |
1625 | } >&5 |
1626 | |
1627 | cat >&5 <<_ACEOF |
1628 | |
1629 | |
1630 | ## ----------- ## |
1631 | ## Core tests. ## |
1632 | ## ----------- ## |
1633 | |
1634 | _ACEOF |
1635 | |
1636 | |
1637 | # Keep a trace of the command line. |
1638 | # Strip out --no-create and --no-recursion so they do not pile up. |
1639 | # Strip out --silent because we don't want to record it for future runs. |
1640 | # Also quote any args containing shell meta-characters. |
1641 | # Make two passes to allow for proper duplicate-argument suppression. |
1642 | ac_configure_args= |
1643 | ac_configure_args0= |
1644 | ac_configure_args1= |
d9898ee8 |
1645 | ac_must_keep_next=false |
1646 | for ac_pass in 1 2 |
1647 | do |
1648 | for ac_arg |
1649 | do |
1650 | case $ac_arg in |
1651 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
1652 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1653 | | -silent | --silent | --silen | --sile | --sil) |
1654 | continue ;; |
dd184caf |
1655 | *\'*) |
d9898ee8 |
1656 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1657 | esac |
1658 | case $ac_pass in |
1659 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
1660 | 2) |
1661 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
1662 | if test $ac_must_keep_next = true; then |
1663 | ac_must_keep_next=false # Got value, back to normal. |
1664 | else |
1665 | case $ac_arg in |
1666 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
1667 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
1668 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
1669 | | -with-* | --with-* | -without-* | --without-* | --x) |
1670 | case "$ac_configure_args0 " in |
1671 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
1672 | esac |
1673 | ;; |
1674 | -* ) ac_must_keep_next=true ;; |
1675 | esac |
1676 | fi |
dd184caf |
1677 | ac_configure_args="$ac_configure_args '$ac_arg'" |
d9898ee8 |
1678 | ;; |
1679 | esac |
1680 | done |
1681 | done |
1682 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
1683 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
1684 | |
1685 | # When interrupted or exit'd, cleanup temporary files, and complete |
1686 | # config.log. We remove comments because anyway the quotes in there |
1687 | # would cause problems or look ugly. |
dd184caf |
1688 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1689 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
d9898ee8 |
1690 | trap 'exit_status=$? |
1691 | # Save into config.log some information that might help in debugging. |
1692 | { |
1693 | echo |
1694 | |
1695 | cat <<\_ASBOX |
1696 | ## ---------------- ## |
1697 | ## Cache variables. ## |
1698 | ## ---------------- ## |
1699 | _ASBOX |
1700 | echo |
1701 | # The following way of writing the cache mishandles newlines in values, |
dd184caf |
1702 | ( |
1703 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
1704 | eval ac_val=\$$ac_var |
1705 | case $ac_val in #( |
1706 | *${as_nl}*) |
1707 | case $ac_var in #( |
1708 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
1709 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
1710 | esac |
1711 | case $ac_var in #( |
1712 | _ | IFS | as_nl) ;; #( |
1713 | *) $as_unset $ac_var ;; |
1714 | esac ;; |
1715 | esac |
1716 | done |
d9898ee8 |
1717 | (set) 2>&1 | |
dd184caf |
1718 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1719 | *${as_nl}ac_space=\ *) |
d9898ee8 |
1720 | sed -n \ |
dd184caf |
1721 | "s/'\''/'\''\\\\'\'''\''/g; |
1722 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
1723 | ;; #( |
d9898ee8 |
1724 | *) |
dd184caf |
1725 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
d9898ee8 |
1726 | ;; |
dd184caf |
1727 | esac | |
1728 | sort |
1729 | ) |
d9898ee8 |
1730 | echo |
1731 | |
1732 | cat <<\_ASBOX |
1733 | ## ----------------- ## |
1734 | ## Output variables. ## |
1735 | ## ----------------- ## |
1736 | _ASBOX |
1737 | echo |
1738 | for ac_var in $ac_subst_vars |
1739 | do |
dd184caf |
1740 | eval ac_val=\$$ac_var |
1741 | case $ac_val in |
1742 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
1743 | esac |
1744 | echo "$ac_var='\''$ac_val'\''" |
d9898ee8 |
1745 | done | sort |
1746 | echo |
1747 | |
1748 | if test -n "$ac_subst_files"; then |
1749 | cat <<\_ASBOX |
dd184caf |
1750 | ## ------------------- ## |
1751 | ## File substitutions. ## |
1752 | ## ------------------- ## |
d9898ee8 |
1753 | _ASBOX |
1754 | echo |
1755 | for ac_var in $ac_subst_files |
1756 | do |
dd184caf |
1757 | eval ac_val=\$$ac_var |
1758 | case $ac_val in |
1759 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
1760 | esac |
1761 | echo "$ac_var='\''$ac_val'\''" |
d9898ee8 |
1762 | done | sort |
1763 | echo |
1764 | fi |
1765 | |
1766 | if test -s confdefs.h; then |
1767 | cat <<\_ASBOX |
1768 | ## ----------- ## |
1769 | ## confdefs.h. ## |
1770 | ## ----------- ## |
1771 | _ASBOX |
1772 | echo |
dd184caf |
1773 | cat confdefs.h |
d9898ee8 |
1774 | echo |
1775 | fi |
1776 | test "$ac_signal" != 0 && |
1777 | echo "$as_me: caught signal $ac_signal" |
1778 | echo "$as_me: exit $exit_status" |
1779 | } >&5 |
dd184caf |
1780 | rm -f core *.core core.conftest.* && |
1781 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
d9898ee8 |
1782 | exit $exit_status |
dd184caf |
1783 | ' 0 |
d9898ee8 |
1784 | for ac_signal in 1 2 13 15; do |
1785 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
1786 | done |
1787 | ac_signal=0 |
1788 | |
1789 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
dd184caf |
1790 | rm -f -r conftest* confdefs.h |
d9898ee8 |
1791 | |
1792 | # Predefined preprocessor variables. |
1793 | |
1794 | cat >>confdefs.h <<_ACEOF |
1795 | #define PACKAGE_NAME "$PACKAGE_NAME" |
1796 | _ACEOF |
1797 | |
1798 | |
1799 | cat >>confdefs.h <<_ACEOF |
1800 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
1801 | _ACEOF |
1802 | |
1803 | |
1804 | cat >>confdefs.h <<_ACEOF |
1805 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
1806 | _ACEOF |
1807 | |
1808 | |
1809 | cat >>confdefs.h <<_ACEOF |
1810 | #define PACKAGE_STRING "$PACKAGE_STRING" |
1811 | _ACEOF |
1812 | |
1813 | |
1814 | cat >>confdefs.h <<_ACEOF |
1815 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
1816 | _ACEOF |
1817 | |
1818 | |
1819 | # Let the site file select an alternate cache file if it wants to. |
1820 | # Prefer explicitly selected file to automatically selected ones. |
dd184caf |
1821 | if test -n "$CONFIG_SITE"; then |
1822 | set x "$CONFIG_SITE" |
1823 | elif test "x$prefix" != xNONE; then |
1824 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
1825 | else |
1826 | set x "$ac_default_prefix/share/config.site" \ |
1827 | "$ac_default_prefix/etc/config.site" |
d9898ee8 |
1828 | fi |
dd184caf |
1829 | shift |
1830 | for ac_site_file |
1831 | do |
d9898ee8 |
1832 | if test -r "$ac_site_file"; then |
1833 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1834 | echo "$as_me: loading site script $ac_site_file" >&6;} |
1835 | sed 's/^/| /' "$ac_site_file" >&5 |
1836 | . "$ac_site_file" |
1837 | fi |
1838 | done |
1839 | |
1840 | if test -r "$cache_file"; then |
1841 | # Some versions of bash will fail to source /dev/null (special |
1842 | # files actually), so we avoid doing that. |
1843 | if test -f "$cache_file"; then |
1844 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1845 | echo "$as_me: loading cache $cache_file" >&6;} |
1846 | case $cache_file in |
dd184caf |
1847 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1848 | *) . "./$cache_file";; |
d9898ee8 |
1849 | esac |
1850 | fi |
1851 | else |
1852 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1853 | echo "$as_me: creating cache $cache_file" >&6;} |
1854 | >$cache_file |
1855 | fi |
1856 | |
1857 | # Check that the precious variables saved in the cache have kept the same |
1858 | # value. |
1859 | ac_cache_corrupted=false |
dd184caf |
1860 | for ac_var in $ac_precious_vars; do |
d9898ee8 |
1861 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1862 | eval ac_new_set=\$ac_env_${ac_var}_set |
dd184caf |
1863 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1864 | eval ac_new_val=\$ac_env_${ac_var}_value |
d9898ee8 |
1865 | case $ac_old_set,$ac_new_set in |
1866 | set,) |
1867 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1868 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
1869 | ac_cache_corrupted=: ;; |
1870 | ,set) |
1871 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
1872 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
1873 | ac_cache_corrupted=: ;; |
1874 | ,);; |
1875 | *) |
1876 | if test "x$ac_old_val" != "x$ac_new_val"; then |
1877 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
1878 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
1879 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
1880 | echo "$as_me: former value: $ac_old_val" >&2;} |
1881 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
1882 | echo "$as_me: current value: $ac_new_val" >&2;} |
1883 | ac_cache_corrupted=: |
1884 | fi;; |
1885 | esac |
1886 | # Pass precious variables to config.status. |
1887 | if test "$ac_new_set" = set; then |
1888 | case $ac_new_val in |
dd184caf |
1889 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
d9898ee8 |
1890 | *) ac_arg=$ac_var=$ac_new_val ;; |
1891 | esac |
1892 | case " $ac_configure_args " in |
1893 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
1894 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
1895 | esac |
1896 | fi |
1897 | done |
1898 | if $ac_cache_corrupted; then |
1899 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
1900 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
1901 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
1902 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
1903 | { (exit 1); exit 1; }; } |
1904 | fi |
1905 | |
d9898ee8 |
1906 | |
1907 | |
1908 | |
1909 | |
1910 | |
1911 | |
1912 | |
1913 | |
1914 | |
1915 | |
1916 | |
1917 | |
1918 | |
1919 | |
1920 | |
1921 | |
1922 | |
1923 | |
1924 | |
1925 | |
1926 | |
1927 | |
1928 | |
1929 | |
dd184caf |
1930 | ac_ext=c |
1931 | ac_cpp='$CPP $CPPFLAGS' |
1932 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1933 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
1934 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
d9898ee8 |
1935 | |
1936 | |
1937 | |
1938 | >confdefs.h # Kill PACKAGE_ macros |
1939 | |
1940 | |
dd184caf |
1941 | ac_config_headers="$ac_config_headers config.h" |
1942 | |
1943 | am__api_version='1.10' |
d9898ee8 |
1944 | |
d9898ee8 |
1945 | ac_aux_dir= |
dd184caf |
1946 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
1947 | if test -f "$ac_dir/install-sh"; then |
d9898ee8 |
1948 | ac_aux_dir=$ac_dir |
1949 | ac_install_sh="$ac_aux_dir/install-sh -c" |
1950 | break |
dd184caf |
1951 | elif test -f "$ac_dir/install.sh"; then |
d9898ee8 |
1952 | ac_aux_dir=$ac_dir |
1953 | ac_install_sh="$ac_aux_dir/install.sh -c" |
1954 | break |
dd184caf |
1955 | elif test -f "$ac_dir/shtool"; then |
d9898ee8 |
1956 | ac_aux_dir=$ac_dir |
1957 | ac_install_sh="$ac_aux_dir/shtool install -c" |
1958 | break |
1959 | fi |
1960 | done |
1961 | if test -z "$ac_aux_dir"; then |
dd184caf |
1962 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
1963 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} |
d9898ee8 |
1964 | { (exit 1); exit 1; }; } |
1965 | fi |
dd184caf |
1966 | |
1967 | # These three variables are undocumented and unsupported, |
1968 | # and are intended to be withdrawn in a future Autoconf release. |
1969 | # They can cause serious problems if a builder's source tree is in a directory |
1970 | # whose full name contains unusual characters. |
1971 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
1972 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
1973 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
1974 | |
d9898ee8 |
1975 | |
1976 | # Find a good install program. We prefer a C program (faster), |
1977 | # so one script is as good as another. But avoid the broken or |
1978 | # incompatible versions: |
1979 | # SysV /etc/install, /usr/sbin/install |
1980 | # SunOS /usr/etc/install |
1981 | # IRIX /sbin/install |
1982 | # AIX /bin/install |
1983 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
1984 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
1985 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
1986 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
1987 | # OS/2's system install, which has a completely different semantic |
1988 | # ./install, which can be erroneously created by make from ./install.sh. |
dd184caf |
1989 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
1990 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
d9898ee8 |
1991 | if test -z "$INSTALL"; then |
1992 | if test "${ac_cv_path_install+set}" = set; then |
1993 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1994 | else |
1995 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1996 | for as_dir in $PATH |
1997 | do |
1998 | IFS=$as_save_IFS |
1999 | test -z "$as_dir" && as_dir=. |
2000 | # Account for people who put trailing slashes in PATH elements. |
2001 | case $as_dir/ in |
2002 | ./ | .// | /cC/* | \ |
2003 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
2004 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
2005 | /usr/ucb/* ) ;; |
2006 | *) |
2007 | # OSF1 and SCO ODT 3.0 have their own names for install. |
2008 | # Don't use installbsd from OSF since it installs stuff as root |
2009 | # by default. |
2010 | for ac_prog in ginstall scoinst install; do |
2011 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2012 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
d9898ee8 |
2013 | if test $ac_prog = install && |
2014 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
2015 | # AIX install. It has an incompatible calling convention. |
2016 | : |
2017 | elif test $ac_prog = install && |
2018 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
2019 | # program-specific install script used by HP pwplus--don't use. |
2020 | : |
2021 | else |
2022 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
2023 | break 3 |
2024 | fi |
2025 | fi |
2026 | done |
2027 | done |
2028 | ;; |
2029 | esac |
2030 | done |
dd184caf |
2031 | IFS=$as_save_IFS |
d9898ee8 |
2032 | |
2033 | |
2034 | fi |
2035 | if test "${ac_cv_path_install+set}" = set; then |
2036 | INSTALL=$ac_cv_path_install |
2037 | else |
dd184caf |
2038 | # As a last resort, use the slow shell script. Don't cache a |
2039 | # value for INSTALL within a source directory, because that will |
d9898ee8 |
2040 | # break other packages using the cache if that directory is |
dd184caf |
2041 | # removed, or if the value is a relative name. |
d9898ee8 |
2042 | INSTALL=$ac_install_sh |
2043 | fi |
2044 | fi |
dd184caf |
2045 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
2046 | echo "${ECHO_T}$INSTALL" >&6; } |
d9898ee8 |
2047 | |
2048 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
2049 | # It thinks the first close brace ends the variable substitution. |
2050 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
2051 | |
2052 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
2053 | |
2054 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
2055 | |
dd184caf |
2056 | { echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
2057 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } |
d9898ee8 |
2058 | # Just in case |
2059 | sleep 1 |
2060 | echo timestamp > conftest.file |
2061 | # Do `set' in a subshell so we don't clobber the current shell's |
2062 | # arguments. Must try -L first in case configure is actually a |
2063 | # symlink; some systems play weird games with the mod time of symlinks |
2064 | # (eg FreeBSD returns the mod time of the symlink's containing |
2065 | # directory). |
2066 | if ( |
2067 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
2068 | if test "$*" = "X"; then |
2069 | # -L didn't work. |
2070 | set X `ls -t $srcdir/configure conftest.file` |
2071 | fi |
2072 | rm -f conftest.file |
2073 | if test "$*" != "X $srcdir/configure conftest.file" \ |
2074 | && test "$*" != "X conftest.file $srcdir/configure"; then |
2075 | |
2076 | # If neither matched, then we have a broken ls. This can happen |
2077 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
2078 | # broken ls alias from the environment. This has actually |
2079 | # happened. Such a system could not be considered "sane". |
2080 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
2081 | alias in your environment" >&5 |
2082 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
2083 | alias in your environment" >&2;} |
2084 | { (exit 1); exit 1; }; } |
2085 | fi |
2086 | |
2087 | test "$2" = conftest.file |
2088 | ) |
2089 | then |
2090 | # Ok. |
2091 | : |
2092 | else |
2093 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
2094 | Check your system clock" >&5 |
2095 | echo "$as_me: error: newly created file is older than distributed files! |
2096 | Check your system clock" >&2;} |
2097 | { (exit 1); exit 1; }; } |
2098 | fi |
dd184caf |
2099 | { echo "$as_me:$LINENO: result: yes" >&5 |
2100 | echo "${ECHO_T}yes" >&6; } |
d9898ee8 |
2101 | test "$program_prefix" != NONE && |
dd184caf |
2102 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
d9898ee8 |
2103 | # Use a double $ so make ignores it. |
2104 | test "$program_suffix" != NONE && |
dd184caf |
2105 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
d9898ee8 |
2106 | # Double any \ or $. echo might interpret backslashes. |
2107 | # By default was `s,x,x', remove it if useless. |
2108 | cat <<\_ACEOF >conftest.sed |
2109 | s/[\\$]/&&/g;s/;s,x,x,$// |
2110 | _ACEOF |
2111 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
dd184caf |
2112 | rm -f conftest.sed |
d9898ee8 |
2113 | |
2114 | # expand $ac_aux_dir to an absolute path |
2115 | am_aux_dir=`cd $ac_aux_dir && pwd` |
2116 | |
2117 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
2118 | # Use eval to expand $SHELL |
2119 | if eval "$MISSING --run true"; then |
2120 | am_missing_run="$MISSING --run " |
2121 | else |
2122 | am_missing_run= |
2123 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
2124 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
2125 | fi |
2126 | |
dd184caf |
2127 | { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 |
2128 | echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } |
2129 | if test -z "$MKDIR_P"; then |
2130 | if test "${ac_cv_path_mkdir+set}" = set; then |
2131 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2132 | else |
2133 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2134 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
2135 | do |
2136 | IFS=$as_save_IFS |
2137 | test -z "$as_dir" && as_dir=. |
2138 | for ac_prog in mkdir gmkdir; do |
2139 | for ac_exec_ext in '' $ac_executable_extensions; do |
2140 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue |
2141 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
2142 | 'mkdir (GNU coreutils) '* | \ |
2143 | 'mkdir (coreutils) '* | \ |
2144 | 'mkdir (fileutils) '4.1*) |
2145 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
2146 | break 3;; |
2147 | esac |
2148 | done |
2149 | done |
2150 | done |
2151 | IFS=$as_save_IFS |
2152 | |
2153 | fi |
2154 | |
2155 | if test "${ac_cv_path_mkdir+set}" = set; then |
2156 | MKDIR_P="$ac_cv_path_mkdir -p" |
d9898ee8 |
2157 | else |
dd184caf |
2158 | # As a last resort, use the slow shell script. Don't cache a |
2159 | # value for MKDIR_P within a source directory, because that will |
2160 | # break other packages using the cache if that directory is |
2161 | # removed, or if the value is a relative name. |
2162 | test -d ./--version && rmdir ./--version |
2163 | MKDIR_P="$ac_install_sh -d" |
d9898ee8 |
2164 | fi |
2165 | fi |
dd184caf |
2166 | { echo "$as_me:$LINENO: result: $MKDIR_P" >&5 |
2167 | echo "${ECHO_T}$MKDIR_P" >&6; } |
2168 | |
2169 | mkdir_p="$MKDIR_P" |
2170 | case $mkdir_p in |
2171 | [\\/$]* | ?:[\\/]*) ;; |
2172 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; |
2173 | esac |
d9898ee8 |
2174 | |
2175 | for ac_prog in gawk mawk nawk awk |
2176 | do |
2177 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2178 | set dummy $ac_prog; ac_word=$2 |
dd184caf |
2179 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2180 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2181 | if test "${ac_cv_prog_AWK+set}" = set; then |
2182 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2183 | else |
2184 | if test -n "$AWK"; then |
2185 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
2186 | else |
2187 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2188 | for as_dir in $PATH |
2189 | do |
2190 | IFS=$as_save_IFS |
2191 | test -z "$as_dir" && as_dir=. |
2192 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2193 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2194 | ac_cv_prog_AWK="$ac_prog" |
2195 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2196 | break 2 |
2197 | fi |
2198 | done |
2199 | done |
dd184caf |
2200 | IFS=$as_save_IFS |
d9898ee8 |
2201 | |
2202 | fi |
2203 | fi |
2204 | AWK=$ac_cv_prog_AWK |
2205 | if test -n "$AWK"; then |
dd184caf |
2206 | { echo "$as_me:$LINENO: result: $AWK" >&5 |
2207 | echo "${ECHO_T}$AWK" >&6; } |
d9898ee8 |
2208 | else |
dd184caf |
2209 | { echo "$as_me:$LINENO: result: no" >&5 |
2210 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2211 | fi |
2212 | |
dd184caf |
2213 | |
d9898ee8 |
2214 | test -n "$AWK" && break |
2215 | done |
2216 | |
dd184caf |
2217 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
2218 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } |
2219 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
2220 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
2221 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2222 | else |
2223 | cat >conftest.make <<\_ACEOF |
dd184caf |
2224 | SHELL = /bin/sh |
d9898ee8 |
2225 | all: |
dd184caf |
2226 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
d9898ee8 |
2227 | _ACEOF |
2228 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
dd184caf |
2229 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
2230 | *@@@%%%=?*=@@@%%%*) |
2231 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
2232 | *) |
2233 | eval ac_cv_prog_make_${ac_make}_set=no;; |
2234 | esac |
d9898ee8 |
2235 | rm -f conftest.make |
2236 | fi |
dd184caf |
2237 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
2238 | { echo "$as_me:$LINENO: result: yes" >&5 |
2239 | echo "${ECHO_T}yes" >&6; } |
d9898ee8 |
2240 | SET_MAKE= |
2241 | else |
dd184caf |
2242 | { echo "$as_me:$LINENO: result: no" >&5 |
2243 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2244 | SET_MAKE="MAKE=${MAKE-make}" |
2245 | fi |
2246 | |
2247 | rm -rf .tst 2>/dev/null |
2248 | mkdir .tst 2>/dev/null |
2249 | if test -d .tst; then |
2250 | am__leading_dot=. |
2251 | else |
2252 | am__leading_dot=_ |
2253 | fi |
2254 | rmdir .tst 2>/dev/null |
2255 | |
dd184caf |
2256 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
2257 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
2258 | # is not polluted with repeated "-I." |
2259 | am__isrc=' -I$(srcdir)' |
2260 | # test to see if srcdir already configured |
2261 | if test -f $srcdir/config.status; then |
2262 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
d9898ee8 |
2263 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
2264 | { (exit 1); exit 1; }; } |
dd184caf |
2265 | fi |
d9898ee8 |
2266 | fi |
2267 | |
2268 | # test whether we have cygpath |
2269 | if test -z "$CYGPATH_W"; then |
2270 | if (cygpath --version) >/dev/null 2>/dev/null; then |
2271 | CYGPATH_W='cygpath -w' |
2272 | else |
2273 | CYGPATH_W=echo |
2274 | fi |
2275 | fi |
2276 | |
2277 | |
2278 | # Define the identity of the package. |
2279 | PACKAGE='libmd5' |
2280 | VERSION='1.21' |
2281 | |
2282 | |
2283 | # Some tools Automake needs. |
2284 | |
2285 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
2286 | |
2287 | |
2288 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
2289 | |
2290 | |
2291 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
2292 | |
2293 | |
2294 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
2295 | |
2296 | |
2297 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
2298 | |
dd184caf |
2299 | install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} |
d9898ee8 |
2300 | |
2301 | # Installed binaries are usually stripped using `strip' when the user |
2302 | # run `make install-strip'. However `strip' might not be the right |
2303 | # tool to use in cross-compilation environments, therefore Automake |
2304 | # will honor the `STRIP' environment variable to overrule this program. |
2305 | if test "$cross_compiling" != no; then |
2306 | if test -n "$ac_tool_prefix"; then |
2307 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
2308 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
dd184caf |
2309 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2310 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2311 | if test "${ac_cv_prog_STRIP+set}" = set; then |
2312 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2313 | else |
2314 | if test -n "$STRIP"; then |
2315 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
2316 | else |
2317 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2318 | for as_dir in $PATH |
2319 | do |
2320 | IFS=$as_save_IFS |
2321 | test -z "$as_dir" && as_dir=. |
2322 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2323 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2324 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
2325 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2326 | break 2 |
2327 | fi |
2328 | done |
2329 | done |
dd184caf |
2330 | IFS=$as_save_IFS |
d9898ee8 |
2331 | |
2332 | fi |
2333 | fi |
2334 | STRIP=$ac_cv_prog_STRIP |
2335 | if test -n "$STRIP"; then |
dd184caf |
2336 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
2337 | echo "${ECHO_T}$STRIP" >&6; } |
d9898ee8 |
2338 | else |
dd184caf |
2339 | { echo "$as_me:$LINENO: result: no" >&5 |
2340 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2341 | fi |
2342 | |
dd184caf |
2343 | |
d9898ee8 |
2344 | fi |
2345 | if test -z "$ac_cv_prog_STRIP"; then |
2346 | ac_ct_STRIP=$STRIP |
2347 | # Extract the first word of "strip", so it can be a program name with args. |
2348 | set dummy strip; ac_word=$2 |
dd184caf |
2349 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2350 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2351 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
2352 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2353 | else |
2354 | if test -n "$ac_ct_STRIP"; then |
2355 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
2356 | else |
2357 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2358 | for as_dir in $PATH |
2359 | do |
2360 | IFS=$as_save_IFS |
2361 | test -z "$as_dir" && as_dir=. |
2362 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2363 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2364 | ac_cv_prog_ac_ct_STRIP="strip" |
2365 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2366 | break 2 |
2367 | fi |
2368 | done |
2369 | done |
dd184caf |
2370 | IFS=$as_save_IFS |
d9898ee8 |
2371 | |
d9898ee8 |
2372 | fi |
2373 | fi |
2374 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
2375 | if test -n "$ac_ct_STRIP"; then |
dd184caf |
2376 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
2377 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
d9898ee8 |
2378 | else |
dd184caf |
2379 | { echo "$as_me:$LINENO: result: no" >&5 |
2380 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2381 | fi |
2382 | |
dd184caf |
2383 | if test "x$ac_ct_STRIP" = x; then |
2384 | STRIP=":" |
2385 | else |
2386 | case $cross_compiling:$ac_tool_warned in |
2387 | yes:) |
2388 | { echo "$as_me:$LINENO: 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." >&5 |
2391 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
2392 | whose name does not start with the host triplet. If you think this |
2393 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
2394 | ac_tool_warned=yes ;; |
2395 | esac |
2396 | STRIP=$ac_ct_STRIP |
2397 | fi |
d9898ee8 |
2398 | else |
2399 | STRIP="$ac_cv_prog_STRIP" |
2400 | fi |
2401 | |
2402 | fi |
dd184caf |
2403 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
d9898ee8 |
2404 | |
2405 | # We need awk for the "check" target. The system "awk" is bad on |
2406 | # some platforms. |
2407 | # Always define AMTAR for backward compatibility. |
2408 | |
2409 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
2410 | |
2411 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
2412 | |
2413 | |
2414 | |
2415 | |
2416 | |
2417 | |
dd184caf |
2418 | if test -d ${srcdir}/../libhmac; then |
d9898ee8 |
2419 | HMACC_TRUE= |
2420 | HMACC_FALSE='#' |
2421 | else |
2422 | HMACC_TRUE='#' |
2423 | HMACC_FALSE= |
2424 | fi |
2425 | |
2426 | |
2427 | for ac_prog in gawk mawk nawk awk |
2428 | do |
2429 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2430 | set dummy $ac_prog; ac_word=$2 |
dd184caf |
2431 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2432 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2433 | if test "${ac_cv_prog_AWK+set}" = set; then |
2434 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2435 | else |
2436 | if test -n "$AWK"; then |
2437 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
2438 | else |
2439 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2440 | for as_dir in $PATH |
2441 | do |
2442 | IFS=$as_save_IFS |
2443 | test -z "$as_dir" && as_dir=. |
2444 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2445 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2446 | ac_cv_prog_AWK="$ac_prog" |
2447 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2448 | break 2 |
2449 | fi |
2450 | done |
2451 | done |
dd184caf |
2452 | IFS=$as_save_IFS |
d9898ee8 |
2453 | |
2454 | fi |
2455 | fi |
2456 | AWK=$ac_cv_prog_AWK |
2457 | if test -n "$AWK"; then |
dd184caf |
2458 | { echo "$as_me:$LINENO: result: $AWK" >&5 |
2459 | echo "${ECHO_T}$AWK" >&6; } |
d9898ee8 |
2460 | else |
dd184caf |
2461 | { echo "$as_me:$LINENO: result: no" >&5 |
2462 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2463 | fi |
2464 | |
dd184caf |
2465 | |
d9898ee8 |
2466 | test -n "$AWK" && break |
2467 | done |
2468 | |
2469 | # Find a good install program. We prefer a C program (faster), |
2470 | # so one script is as good as another. But avoid the broken or |
2471 | # incompatible versions: |
2472 | # SysV /etc/install, /usr/sbin/install |
2473 | # SunOS /usr/etc/install |
2474 | # IRIX /sbin/install |
2475 | # AIX /bin/install |
2476 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
2477 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2478 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
2479 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
2480 | # OS/2's system install, which has a completely different semantic |
2481 | # ./install, which can be erroneously created by make from ./install.sh. |
dd184caf |
2482 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
2483 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
d9898ee8 |
2484 | if test -z "$INSTALL"; then |
2485 | if test "${ac_cv_path_install+set}" = set; then |
2486 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2487 | else |
2488 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2489 | for as_dir in $PATH |
2490 | do |
2491 | IFS=$as_save_IFS |
2492 | test -z "$as_dir" && as_dir=. |
2493 | # Account for people who put trailing slashes in PATH elements. |
2494 | case $as_dir/ in |
2495 | ./ | .// | /cC/* | \ |
2496 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
2497 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
2498 | /usr/ucb/* ) ;; |
2499 | *) |
2500 | # OSF1 and SCO ODT 3.0 have their own names for install. |
2501 | # Don't use installbsd from OSF since it installs stuff as root |
2502 | # by default. |
2503 | for ac_prog in ginstall scoinst install; do |
2504 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2505 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
d9898ee8 |
2506 | if test $ac_prog = install && |
2507 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
2508 | # AIX install. It has an incompatible calling convention. |
2509 | : |
2510 | elif test $ac_prog = install && |
2511 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
2512 | # program-specific install script used by HP pwplus--don't use. |
2513 | : |
2514 | else |
2515 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
2516 | break 3 |
2517 | fi |
2518 | fi |
2519 | done |
2520 | done |
2521 | ;; |
2522 | esac |
2523 | done |
dd184caf |
2524 | IFS=$as_save_IFS |
d9898ee8 |
2525 | |
2526 | |
2527 | fi |
2528 | if test "${ac_cv_path_install+set}" = set; then |
2529 | INSTALL=$ac_cv_path_install |
2530 | else |
dd184caf |
2531 | # As a last resort, use the slow shell script. Don't cache a |
2532 | # value for INSTALL within a source directory, because that will |
d9898ee8 |
2533 | # break other packages using the cache if that directory is |
dd184caf |
2534 | # removed, or if the value is a relative name. |
d9898ee8 |
2535 | INSTALL=$ac_install_sh |
2536 | fi |
2537 | fi |
dd184caf |
2538 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
2539 | echo "${ECHO_T}$INSTALL" >&6; } |
d9898ee8 |
2540 | |
2541 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
2542 | # It thinks the first close brace ends the variable substitution. |
2543 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
2544 | |
2545 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
2546 | |
2547 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
2548 | |
dd184caf |
2549 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
2550 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
d9898ee8 |
2551 | LN_S=$as_ln_s |
2552 | if test "$LN_S" = "ln -s"; then |
dd184caf |
2553 | { echo "$as_me:$LINENO: result: yes" >&5 |
2554 | echo "${ECHO_T}yes" >&6; } |
d9898ee8 |
2555 | else |
dd184caf |
2556 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
2557 | echo "${ECHO_T}no, using $LN_S" >&6; } |
d9898ee8 |
2558 | fi |
2559 | |
2560 | ac_ext=c |
2561 | ac_cpp='$CPP $CPPFLAGS' |
2562 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2563 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2564 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2565 | if test -n "$ac_tool_prefix"; then |
2566 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
2567 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
dd184caf |
2568 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2569 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2570 | if test "${ac_cv_prog_CC+set}" = set; then |
2571 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2572 | else |
2573 | if test -n "$CC"; then |
2574 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2575 | else |
2576 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2577 | for as_dir in $PATH |
2578 | do |
2579 | IFS=$as_save_IFS |
2580 | test -z "$as_dir" && as_dir=. |
2581 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2582 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2583 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
2584 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2585 | break 2 |
2586 | fi |
2587 | done |
2588 | done |
dd184caf |
2589 | IFS=$as_save_IFS |
d9898ee8 |
2590 | |
2591 | fi |
2592 | fi |
2593 | CC=$ac_cv_prog_CC |
2594 | if test -n "$CC"; then |
dd184caf |
2595 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2596 | echo "${ECHO_T}$CC" >&6; } |
d9898ee8 |
2597 | else |
dd184caf |
2598 | { echo "$as_me:$LINENO: result: no" >&5 |
2599 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2600 | fi |
2601 | |
dd184caf |
2602 | |
d9898ee8 |
2603 | fi |
2604 | if test -z "$ac_cv_prog_CC"; then |
2605 | ac_ct_CC=$CC |
2606 | # Extract the first word of "gcc", so it can be a program name with args. |
2607 | set dummy gcc; ac_word=$2 |
dd184caf |
2608 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2609 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2610 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2611 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2612 | else |
2613 | if test -n "$ac_ct_CC"; then |
2614 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2615 | else |
2616 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2617 | for as_dir in $PATH |
2618 | do |
2619 | IFS=$as_save_IFS |
2620 | test -z "$as_dir" && as_dir=. |
2621 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2622 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2623 | ac_cv_prog_ac_ct_CC="gcc" |
2624 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2625 | break 2 |
2626 | fi |
2627 | done |
2628 | done |
dd184caf |
2629 | IFS=$as_save_IFS |
d9898ee8 |
2630 | |
2631 | fi |
2632 | fi |
2633 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2634 | if test -n "$ac_ct_CC"; then |
dd184caf |
2635 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2636 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
d9898ee8 |
2637 | else |
dd184caf |
2638 | { echo "$as_me:$LINENO: result: no" >&5 |
2639 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2640 | fi |
2641 | |
dd184caf |
2642 | if test "x$ac_ct_CC" = x; then |
2643 | CC="" |
2644 | else |
2645 | case $cross_compiling:$ac_tool_warned in |
2646 | yes:) |
2647 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
2648 | whose name does not start with the host triplet. If you think this |
2649 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
2650 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
2651 | whose name does not start with the host triplet. If you think this |
2652 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
2653 | ac_tool_warned=yes ;; |
2654 | esac |
2655 | CC=$ac_ct_CC |
2656 | fi |
d9898ee8 |
2657 | else |
2658 | CC="$ac_cv_prog_CC" |
2659 | fi |
2660 | |
2661 | if test -z "$CC"; then |
dd184caf |
2662 | if test -n "$ac_tool_prefix"; then |
2663 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
d9898ee8 |
2664 | set dummy ${ac_tool_prefix}cc; 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_CC+set}" = set; then |
2668 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2669 | else |
2670 | if test -n "$CC"; then |
2671 | ac_cv_prog_CC="$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_CC="${ac_tool_prefix}cc" |
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 | CC=$ac_cv_prog_CC |
2691 | if test -n "$CC"; then |
dd184caf |
2692 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2693 | echo "${ECHO_T}$CC" >&6; } |
d9898ee8 |
2694 | else |
dd184caf |
2695 | { echo "$as_me:$LINENO: result: no" >&5 |
2696 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2697 | fi |
2698 | |
d9898ee8 |
2699 | |
dd184caf |
2700 | fi |
d9898ee8 |
2701 | fi |
2702 | if test -z "$CC"; then |
2703 | # Extract the first word of "cc", so it can be a program name with args. |
2704 | set dummy cc; ac_word=$2 |
dd184caf |
2705 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2706 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2707 | if test "${ac_cv_prog_CC+set}" = set; then |
2708 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2709 | else |
2710 | if test -n "$CC"; then |
2711 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2712 | else |
2713 | ac_prog_rejected=no |
2714 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2715 | for as_dir in $PATH |
2716 | do |
2717 | IFS=$as_save_IFS |
2718 | test -z "$as_dir" && as_dir=. |
2719 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2720 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2721 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2722 | ac_prog_rejected=yes |
2723 | continue |
2724 | fi |
2725 | ac_cv_prog_CC="cc" |
2726 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2727 | break 2 |
2728 | fi |
2729 | done |
2730 | done |
dd184caf |
2731 | IFS=$as_save_IFS |
d9898ee8 |
2732 | |
2733 | if test $ac_prog_rejected = yes; then |
2734 | # We found a bogon in the path, so make sure we never use it. |
2735 | set dummy $ac_cv_prog_CC |
2736 | shift |
2737 | if test $# != 0; then |
2738 | # We chose a different compiler from the bogus one. |
2739 | # However, it has the same basename, so the bogon will be chosen |
2740 | # first if we set CC to just the basename; use the full file name. |
2741 | shift |
2742 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
2743 | fi |
2744 | fi |
2745 | fi |
2746 | fi |
2747 | CC=$ac_cv_prog_CC |
2748 | if test -n "$CC"; then |
dd184caf |
2749 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2750 | echo "${ECHO_T}$CC" >&6; } |
d9898ee8 |
2751 | else |
dd184caf |
2752 | { echo "$as_me:$LINENO: result: no" >&5 |
2753 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2754 | fi |
2755 | |
dd184caf |
2756 | |
d9898ee8 |
2757 | fi |
2758 | if test -z "$CC"; then |
2759 | if test -n "$ac_tool_prefix"; then |
dd184caf |
2760 | for ac_prog in cl.exe |
d9898ee8 |
2761 | do |
2762 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
2763 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
dd184caf |
2764 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2765 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2766 | if test "${ac_cv_prog_CC+set}" = set; then |
2767 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2768 | else |
2769 | if test -n "$CC"; then |
2770 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2771 | else |
2772 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2773 | for as_dir in $PATH |
2774 | do |
2775 | IFS=$as_save_IFS |
2776 | test -z "$as_dir" && as_dir=. |
2777 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2778 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2779 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
2780 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2781 | break 2 |
2782 | fi |
2783 | done |
2784 | done |
dd184caf |
2785 | IFS=$as_save_IFS |
d9898ee8 |
2786 | |
2787 | fi |
2788 | fi |
2789 | CC=$ac_cv_prog_CC |
2790 | if test -n "$CC"; then |
dd184caf |
2791 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2792 | echo "${ECHO_T}$CC" >&6; } |
d9898ee8 |
2793 | else |
dd184caf |
2794 | { echo "$as_me:$LINENO: result: no" >&5 |
2795 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2796 | fi |
2797 | |
dd184caf |
2798 | |
d9898ee8 |
2799 | test -n "$CC" && break |
2800 | done |
2801 | fi |
2802 | if test -z "$CC"; then |
2803 | ac_ct_CC=$CC |
dd184caf |
2804 | for ac_prog in cl.exe |
d9898ee8 |
2805 | do |
2806 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2807 | set dummy $ac_prog; ac_word=$2 |
dd184caf |
2808 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2809 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2810 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2811 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2812 | else |
2813 | if test -n "$ac_ct_CC"; then |
2814 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2815 | else |
2816 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2817 | for as_dir in $PATH |
2818 | do |
2819 | IFS=$as_save_IFS |
2820 | test -z "$as_dir" && as_dir=. |
2821 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2822 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2823 | ac_cv_prog_ac_ct_CC="$ac_prog" |
2824 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2825 | break 2 |
2826 | fi |
2827 | done |
2828 | done |
dd184caf |
2829 | IFS=$as_save_IFS |
d9898ee8 |
2830 | |
2831 | fi |
2832 | fi |
2833 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2834 | if test -n "$ac_ct_CC"; then |
dd184caf |
2835 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2836 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
d9898ee8 |
2837 | else |
dd184caf |
2838 | { echo "$as_me:$LINENO: result: no" >&5 |
2839 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2840 | fi |
2841 | |
dd184caf |
2842 | |
d9898ee8 |
2843 | test -n "$ac_ct_CC" && break |
2844 | done |
2845 | |
dd184caf |
2846 | if test "x$ac_ct_CC" = x; then |
2847 | CC="" |
2848 | else |
2849 | case $cross_compiling:$ac_tool_warned in |
2850 | yes:) |
2851 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
2852 | whose name does not start with the host triplet. If you think this |
2853 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
2854 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
2855 | whose name does not start with the host triplet. If you think this |
2856 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
2857 | ac_tool_warned=yes ;; |
2858 | esac |
2859 | CC=$ac_ct_CC |
2860 | fi |
d9898ee8 |
2861 | fi |
2862 | |
2863 | fi |
2864 | |
2865 | |
2866 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
2867 | See \`config.log' for more details." >&5 |
2868 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
2869 | See \`config.log' for more details." >&2;} |
2870 | { (exit 1); exit 1; }; } |
2871 | |
2872 | # Provide some information about the compiler. |
dd184caf |
2873 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
d9898ee8 |
2874 | ac_compiler=`set X $ac_compile; echo $2` |
dd184caf |
2875 | { (ac_try="$ac_compiler --version >&5" |
2876 | case "(($ac_try" in |
2877 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2878 | *) ac_try_echo=$ac_try;; |
2879 | esac |
2880 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2881 | (eval "$ac_compiler --version >&5") 2>&5 |
d9898ee8 |
2882 | ac_status=$? |
2883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2884 | (exit $ac_status); } |
dd184caf |
2885 | { (ac_try="$ac_compiler -v >&5" |
2886 | case "(($ac_try" in |
2887 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2888 | *) ac_try_echo=$ac_try;; |
2889 | esac |
2890 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2891 | (eval "$ac_compiler -v >&5") 2>&5 |
d9898ee8 |
2892 | ac_status=$? |
2893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2894 | (exit $ac_status); } |
dd184caf |
2895 | { (ac_try="$ac_compiler -V >&5" |
2896 | case "(($ac_try" in |
2897 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2898 | *) ac_try_echo=$ac_try;; |
2899 | esac |
2900 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2901 | (eval "$ac_compiler -V >&5") 2>&5 |
d9898ee8 |
2902 | ac_status=$? |
2903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2904 | (exit $ac_status); } |
2905 | |
2906 | cat >conftest.$ac_ext <<_ACEOF |
2907 | /* confdefs.h. */ |
2908 | _ACEOF |
2909 | cat confdefs.h >>conftest.$ac_ext |
2910 | cat >>conftest.$ac_ext <<_ACEOF |
2911 | /* end confdefs.h. */ |
2912 | |
2913 | int |
2914 | main () |
2915 | { |
2916 | |
2917 | ; |
2918 | return 0; |
2919 | } |
2920 | _ACEOF |
2921 | ac_clean_files_save=$ac_clean_files |
2922 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
2923 | # Try to create an executable without -o first, disregard a.out. |
2924 | # It will help us diagnose broken compilers, and finding out an intuition |
2925 | # of exeext. |
dd184caf |
2926 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2927 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
d9898ee8 |
2928 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
dd184caf |
2929 | # |
2930 | # List of possible output files, starting from the most likely. |
2931 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
2932 | # only as a last resort. b.out is created by i960 compilers. |
2933 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
2934 | # |
2935 | # The IRIX 6 linker writes into existing files which may not be |
2936 | # executable, retaining their permissions. Remove them first so a |
2937 | # subsequent execution test works. |
2938 | ac_rmfiles= |
2939 | for ac_file in $ac_files |
2940 | do |
2941 | case $ac_file in |
2942 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
2943 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
2944 | esac |
2945 | done |
2946 | rm -f $ac_rmfiles |
2947 | |
2948 | if { (ac_try="$ac_link_default" |
2949 | case "(($ac_try" in |
2950 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2951 | *) ac_try_echo=$ac_try;; |
2952 | esac |
2953 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2954 | (eval "$ac_link_default") 2>&5 |
d9898ee8 |
2955 | ac_status=$? |
2956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2957 | (exit $ac_status); }; then |
dd184caf |
2958 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2959 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
2960 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
2961 | # so that the user can short-circuit this test for compilers unknown to |
2962 | # Autoconf. |
2963 | for ac_file in $ac_files '' |
d9898ee8 |
2964 | do |
2965 | test -f "$ac_file" || continue |
2966 | case $ac_file in |
dd184caf |
2967 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
d9898ee8 |
2968 | ;; |
2969 | [ab].out ) |
2970 | # We found the default executable, but exeext='' is most |
2971 | # certainly right. |
2972 | break;; |
2973 | *.* ) |
dd184caf |
2974 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2975 | then :; else |
2976 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2977 | fi |
2978 | # We set ac_cv_exeext here because the later test for it is not |
2979 | # safe: cross compilers may not add the suffix if given an `-o' |
2980 | # argument, so we may need to know it at that point already. |
2981 | # Even if this section looks crufty: it has the advantage of |
2982 | # actually working. |
d9898ee8 |
2983 | break;; |
2984 | * ) |
2985 | break;; |
2986 | esac |
2987 | done |
dd184caf |
2988 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2989 | |
d9898ee8 |
2990 | else |
dd184caf |
2991 | ac_file='' |
2992 | fi |
2993 | |
2994 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
2995 | echo "${ECHO_T}$ac_file" >&6; } |
2996 | if test -z "$ac_file"; then |
d9898ee8 |
2997 | echo "$as_me: failed program was:" >&5 |
2998 | sed 's/^/| /' conftest.$ac_ext >&5 |
2999 | |
3000 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
3001 | See \`config.log' for more details." >&5 |
3002 | echo "$as_me: error: C compiler cannot create executables |
3003 | See \`config.log' for more details." >&2;} |
3004 | { (exit 77); exit 77; }; } |
3005 | fi |
3006 | |
3007 | ac_exeext=$ac_cv_exeext |
d9898ee8 |
3008 | |
dd184caf |
3009 | # Check that the compiler produces executables we can run. If not, either |
d9898ee8 |
3010 | # the compiler is broken, or we cross compile. |
dd184caf |
3011 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
3012 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
d9898ee8 |
3013 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
3014 | # If not cross compiling, check that we can run a simple program. |
3015 | if test "$cross_compiling" != yes; then |
3016 | if { ac_try='./$ac_file' |
dd184caf |
3017 | { (case "(($ac_try" in |
3018 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3019 | *) ac_try_echo=$ac_try;; |
3020 | esac |
3021 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3022 | (eval "$ac_try") 2>&5 |
d9898ee8 |
3023 | ac_status=$? |
3024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3025 | (exit $ac_status); }; }; then |
3026 | cross_compiling=no |
3027 | else |
3028 | if test "$cross_compiling" = maybe; then |
3029 | cross_compiling=yes |
3030 | else |
3031 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
3032 | If you meant to cross compile, use \`--host'. |
3033 | See \`config.log' for more details." >&5 |
3034 | echo "$as_me: error: cannot run C compiled programs. |
3035 | If you meant to cross compile, use \`--host'. |
3036 | See \`config.log' for more details." >&2;} |
3037 | { (exit 1); exit 1; }; } |
3038 | fi |
3039 | fi |
3040 | fi |
dd184caf |
3041 | { echo "$as_me:$LINENO: result: yes" >&5 |
3042 | echo "${ECHO_T}yes" >&6; } |
d9898ee8 |
3043 | |
3044 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
3045 | ac_clean_files=$ac_clean_files_save |
dd184caf |
3046 | # Check that the compiler produces executables we can run. If not, either |
d9898ee8 |
3047 | # the compiler is broken, or we cross compile. |
dd184caf |
3048 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
3049 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
3050 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
3051 | echo "${ECHO_T}$cross_compiling" >&6; } |
3052 | |
3053 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
3054 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
3055 | if { (ac_try="$ac_link" |
3056 | case "(($ac_try" in |
3057 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3058 | *) ac_try_echo=$ac_try;; |
3059 | esac |
3060 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3061 | (eval "$ac_link") 2>&5 |
d9898ee8 |
3062 | ac_status=$? |
3063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3064 | (exit $ac_status); }; then |
3065 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
3066 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
3067 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
3068 | # `rm'. |
3069 | for ac_file in conftest.exe conftest conftest.*; do |
3070 | test -f "$ac_file" || continue |
3071 | case $ac_file in |
dd184caf |
3072 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
d9898ee8 |
3073 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
d9898ee8 |
3074 | break;; |
3075 | * ) break;; |
3076 | esac |
3077 | done |
3078 | else |
3079 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
3080 | See \`config.log' for more details." >&5 |
3081 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
3082 | See \`config.log' for more details." >&2;} |
3083 | { (exit 1); exit 1; }; } |
3084 | fi |
3085 | |
3086 | rm -f conftest$ac_cv_exeext |
dd184caf |
3087 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
3088 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
d9898ee8 |
3089 | |
3090 | rm -f conftest.$ac_ext |
3091 | EXEEXT=$ac_cv_exeext |
3092 | ac_exeext=$EXEEXT |
dd184caf |
3093 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
3094 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
d9898ee8 |
3095 | if test "${ac_cv_objext+set}" = set; then |
3096 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3097 | else |
3098 | cat >conftest.$ac_ext <<_ACEOF |
3099 | /* confdefs.h. */ |
3100 | _ACEOF |
3101 | cat confdefs.h >>conftest.$ac_ext |
3102 | cat >>conftest.$ac_ext <<_ACEOF |
3103 | /* end confdefs.h. */ |
3104 | |
3105 | int |
3106 | main () |
3107 | { |
3108 | |
3109 | ; |
3110 | return 0; |
3111 | } |
3112 | _ACEOF |
3113 | rm -f conftest.o conftest.obj |
dd184caf |
3114 | if { (ac_try="$ac_compile" |
3115 | case "(($ac_try" in |
3116 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3117 | *) ac_try_echo=$ac_try;; |
3118 | esac |
3119 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3120 | (eval "$ac_compile") 2>&5 |
d9898ee8 |
3121 | ac_status=$? |
3122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3123 | (exit $ac_status); }; then |
dd184caf |
3124 | for ac_file in conftest.o conftest.obj conftest.*; do |
3125 | test -f "$ac_file" || continue; |
d9898ee8 |
3126 | case $ac_file in |
dd184caf |
3127 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
d9898ee8 |
3128 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3129 | break;; |
3130 | esac |
3131 | done |
3132 | else |
3133 | echo "$as_me: failed program was:" >&5 |
3134 | sed 's/^/| /' conftest.$ac_ext >&5 |
3135 | |
3136 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
3137 | See \`config.log' for more details." >&5 |
3138 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
3139 | See \`config.log' for more details." >&2;} |
3140 | { (exit 1); exit 1; }; } |
3141 | fi |
3142 | |
3143 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3144 | fi |
dd184caf |
3145 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
3146 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
d9898ee8 |
3147 | OBJEXT=$ac_cv_objext |
3148 | ac_objext=$OBJEXT |
dd184caf |
3149 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
3150 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
d9898ee8 |
3151 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
3152 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3153 | else |
3154 | cat >conftest.$ac_ext <<_ACEOF |
3155 | /* confdefs.h. */ |
3156 | _ACEOF |
3157 | cat confdefs.h >>conftest.$ac_ext |
3158 | cat >>conftest.$ac_ext <<_ACEOF |
3159 | /* end confdefs.h. */ |
3160 | |
3161 | int |
3162 | main () |
3163 | { |
3164 | #ifndef __GNUC__ |
3165 | choke me |
3166 | #endif |
3167 | |
3168 | ; |
3169 | return 0; |
3170 | } |
3171 | _ACEOF |
3172 | rm -f conftest.$ac_objext |
dd184caf |
3173 | if { (ac_try="$ac_compile" |
3174 | case "(($ac_try" in |
3175 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3176 | *) ac_try_echo=$ac_try;; |
3177 | esac |
3178 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3179 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
3180 | ac_status=$? |
3181 | grep -v '^ *+' conftest.er1 >conftest.err |
3182 | rm -f conftest.er1 |
3183 | cat conftest.err >&5 |
3184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
3185 | (exit $ac_status); } && { |
3186 | test -z "$ac_c_werror_flag" || |
3187 | test ! -s conftest.err |
3188 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
3189 | ac_compiler_gnu=yes |
3190 | else |
3191 | echo "$as_me: failed program was:" >&5 |
3192 | sed 's/^/| /' conftest.$ac_ext >&5 |
3193 | |
dd184caf |
3194 | ac_compiler_gnu=no |
d9898ee8 |
3195 | fi |
dd184caf |
3196 | |
3197 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
3198 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3199 | |
3200 | fi |
dd184caf |
3201 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
3202 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
d9898ee8 |
3203 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
3204 | ac_test_CFLAGS=${CFLAGS+set} |
3205 | ac_save_CFLAGS=$CFLAGS |
dd184caf |
3206 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
3207 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
d9898ee8 |
3208 | if test "${ac_cv_prog_cc_g+set}" = set; then |
3209 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3210 | else |
dd184caf |
3211 | ac_save_c_werror_flag=$ac_c_werror_flag |
3212 | ac_c_werror_flag=yes |
3213 | ac_cv_prog_cc_g=no |
3214 | CFLAGS="-g" |
3215 | cat >conftest.$ac_ext <<_ACEOF |
d9898ee8 |
3216 | /* confdefs.h. */ |
3217 | _ACEOF |
3218 | cat confdefs.h >>conftest.$ac_ext |
3219 | cat >>conftest.$ac_ext <<_ACEOF |
3220 | /* end confdefs.h. */ |
3221 | |
3222 | int |
3223 | main () |
3224 | { |
3225 | |
3226 | ; |
3227 | return 0; |
3228 | } |
3229 | _ACEOF |
3230 | rm -f conftest.$ac_objext |
dd184caf |
3231 | if { (ac_try="$ac_compile" |
3232 | case "(($ac_try" in |
3233 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3234 | *) ac_try_echo=$ac_try;; |
3235 | esac |
3236 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3237 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
3238 | ac_status=$? |
3239 | grep -v '^ *+' conftest.er1 >conftest.err |
3240 | rm -f conftest.er1 |
3241 | cat conftest.err >&5 |
3242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
3243 | (exit $ac_status); } && { |
3244 | test -z "$ac_c_werror_flag" || |
3245 | test ! -s conftest.err |
3246 | } && test -s conftest.$ac_objext; then |
3247 | ac_cv_prog_cc_g=yes |
3248 | else |
3249 | echo "$as_me: failed program was:" >&5 |
3250 | sed 's/^/| /' conftest.$ac_ext >&5 |
3251 | |
3252 | CFLAGS="" |
3253 | cat >conftest.$ac_ext <<_ACEOF |
3254 | /* confdefs.h. */ |
3255 | _ACEOF |
3256 | cat confdefs.h >>conftest.$ac_ext |
3257 | cat >>conftest.$ac_ext <<_ACEOF |
3258 | /* end confdefs.h. */ |
3259 | |
3260 | int |
3261 | main () |
3262 | { |
3263 | |
3264 | ; |
3265 | return 0; |
3266 | } |
3267 | _ACEOF |
3268 | rm -f conftest.$ac_objext |
3269 | if { (ac_try="$ac_compile" |
3270 | case "(($ac_try" in |
3271 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3272 | *) ac_try_echo=$ac_try;; |
3273 | esac |
3274 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3275 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
3276 | ac_status=$? |
dd184caf |
3277 | grep -v '^ *+' conftest.er1 >conftest.err |
3278 | rm -f conftest.er1 |
3279 | cat conftest.err >&5 |
d9898ee8 |
3280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
3281 | (exit $ac_status); } && { |
3282 | test -z "$ac_c_werror_flag" || |
3283 | test ! -s conftest.err |
3284 | } && test -s conftest.$ac_objext; then |
3285 | : |
3286 | else |
3287 | echo "$as_me: failed program was:" >&5 |
3288 | sed 's/^/| /' conftest.$ac_ext >&5 |
3289 | |
3290 | ac_c_werror_flag=$ac_save_c_werror_flag |
3291 | CFLAGS="-g" |
3292 | cat >conftest.$ac_ext <<_ACEOF |
3293 | /* confdefs.h. */ |
3294 | _ACEOF |
3295 | cat confdefs.h >>conftest.$ac_ext |
3296 | cat >>conftest.$ac_ext <<_ACEOF |
3297 | /* end confdefs.h. */ |
3298 | |
3299 | int |
3300 | main () |
3301 | { |
3302 | |
3303 | ; |
3304 | return 0; |
3305 | } |
3306 | _ACEOF |
3307 | rm -f conftest.$ac_objext |
3308 | if { (ac_try="$ac_compile" |
3309 | case "(($ac_try" in |
3310 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3311 | *) ac_try_echo=$ac_try;; |
3312 | esac |
3313 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3314 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
3315 | ac_status=$? |
dd184caf |
3316 | grep -v '^ *+' conftest.er1 >conftest.err |
3317 | rm -f conftest.er1 |
3318 | cat conftest.err >&5 |
d9898ee8 |
3319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
3320 | (exit $ac_status); } && { |
3321 | test -z "$ac_c_werror_flag" || |
3322 | test ! -s conftest.err |
3323 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
3324 | ac_cv_prog_cc_g=yes |
3325 | else |
3326 | echo "$as_me: failed program was:" >&5 |
3327 | sed 's/^/| /' conftest.$ac_ext >&5 |
3328 | |
dd184caf |
3329 | |
3330 | fi |
3331 | |
3332 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3333 | fi |
3334 | |
3335 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
3336 | fi |
dd184caf |
3337 | |
3338 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3339 | ac_c_werror_flag=$ac_save_c_werror_flag |
d9898ee8 |
3340 | fi |
dd184caf |
3341 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
3342 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
d9898ee8 |
3343 | if test "$ac_test_CFLAGS" = set; then |
3344 | CFLAGS=$ac_save_CFLAGS |
3345 | elif test $ac_cv_prog_cc_g = yes; then |
3346 | if test "$GCC" = yes; then |
3347 | CFLAGS="-g -O2" |
3348 | else |
3349 | CFLAGS="-g" |
3350 | fi |
3351 | else |
3352 | if test "$GCC" = yes; then |
3353 | CFLAGS="-O2" |
3354 | else |
3355 | CFLAGS= |
3356 | fi |
3357 | fi |
dd184caf |
3358 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
3359 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
3360 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
d9898ee8 |
3361 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3362 | else |
dd184caf |
3363 | ac_cv_prog_cc_c89=no |
d9898ee8 |
3364 | ac_save_CC=$CC |
3365 | cat >conftest.$ac_ext <<_ACEOF |
3366 | /* confdefs.h. */ |
3367 | _ACEOF |
3368 | cat confdefs.h >>conftest.$ac_ext |
3369 | cat >>conftest.$ac_ext <<_ACEOF |
3370 | /* end confdefs.h. */ |
3371 | #include <stdarg.h> |
3372 | #include <stdio.h> |
3373 | #include <sys/types.h> |
3374 | #include <sys/stat.h> |
3375 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
3376 | struct buf { int x; }; |
3377 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
3378 | static char *e (p, i) |
3379 | char **p; |
3380 | int i; |
3381 | { |
3382 | return p[i]; |
3383 | } |
3384 | static char *f (char * (*g) (char **, int), char **p, ...) |
3385 | { |
3386 | char *s; |
3387 | va_list v; |
3388 | va_start (v,p); |
3389 | s = g (p, va_arg (v,int)); |
3390 | va_end (v); |
3391 | return s; |
3392 | } |
3393 | |
3394 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
3395 | function prototypes and stuff, but not '\xHH' hex character constants. |
3396 | These don't provoke an error unfortunately, instead are silently treated |
dd184caf |
3397 | as 'x'. The following induces an error, until -std is added to get |
d9898ee8 |
3398 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3399 | array size at least. It's necessary to write '\x00'==0 to get something |
dd184caf |
3400 | that's true only with -std. */ |
d9898ee8 |
3401 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3402 | |
dd184caf |
3403 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3404 | inside strings and character constants. */ |
3405 | #define FOO(x) 'x' |
3406 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
3407 | |
d9898ee8 |
3408 | int test (int i, double x); |
3409 | struct s1 {int (*f) (int a);}; |
3410 | struct s2 {int (*f) (double a);}; |
3411 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
3412 | int argc; |
3413 | char **argv; |
3414 | int |
3415 | main () |
3416 | { |
3417 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
3418 | ; |
3419 | return 0; |
3420 | } |
3421 | _ACEOF |
dd184caf |
3422 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3423 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
d9898ee8 |
3424 | do |
3425 | CC="$ac_save_CC $ac_arg" |
3426 | rm -f conftest.$ac_objext |
dd184caf |
3427 | if { (ac_try="$ac_compile" |
3428 | case "(($ac_try" in |
3429 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3430 | *) ac_try_echo=$ac_try;; |
3431 | esac |
3432 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3433 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
3434 | ac_status=$? |
3435 | grep -v '^ *+' conftest.er1 >conftest.err |
3436 | rm -f conftest.er1 |
3437 | cat conftest.err >&5 |
3438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
3439 | (exit $ac_status); } && { |
3440 | test -z "$ac_c_werror_flag" || |
3441 | test ! -s conftest.err |
3442 | } && test -s conftest.$ac_objext; then |
3443 | ac_cv_prog_cc_c89=$ac_arg |
d9898ee8 |
3444 | else |
3445 | echo "$as_me: failed program was:" >&5 |
3446 | sed 's/^/| /' conftest.$ac_ext >&5 |
3447 | |
dd184caf |
3448 | |
d9898ee8 |
3449 | fi |
dd184caf |
3450 | |
3451 | rm -f core conftest.err conftest.$ac_objext |
3452 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
d9898ee8 |
3453 | done |
dd184caf |
3454 | rm -f conftest.$ac_ext |
d9898ee8 |
3455 | CC=$ac_save_CC |
3456 | |
3457 | fi |
dd184caf |
3458 | # AC_CACHE_VAL |
3459 | case "x$ac_cv_prog_cc_c89" in |
3460 | x) |
3461 | { echo "$as_me:$LINENO: result: none needed" >&5 |
3462 | echo "${ECHO_T}none needed" >&6; } ;; |
3463 | xno) |
3464 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
3465 | echo "${ECHO_T}unsupported" >&6; } ;; |
d9898ee8 |
3466 | *) |
dd184caf |
3467 | CC="$CC $ac_cv_prog_cc_c89" |
3468 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
3469 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
d9898ee8 |
3470 | esac |
3471 | |
d9898ee8 |
3472 | |
d9898ee8 |
3473 | ac_ext=c |
3474 | ac_cpp='$CPP $CPPFLAGS' |
3475 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3476 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3477 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3478 | DEPDIR="${am__leading_dot}deps" |
3479 | |
dd184caf |
3480 | ac_config_commands="$ac_config_commands depfiles" |
d9898ee8 |
3481 | |
3482 | |
3483 | am_make=${MAKE-make} |
3484 | cat > confinc << 'END' |
3485 | am__doit: |
3486 | @echo done |
3487 | .PHONY: am__doit |
3488 | END |
3489 | # If we don't find an include directive, just comment out the code. |
dd184caf |
3490 | { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
3491 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } |
d9898ee8 |
3492 | am__include="#" |
3493 | am__quote= |
3494 | _am_result=none |
3495 | # First try GNU make style include. |
3496 | echo "include confinc" > confmf |
3497 | # We grep out `Entering directory' and `Leaving directory' |
3498 | # messages which can occur if `w' ends up in MAKEFLAGS. |
3499 | # In particular we don't look at `^make:' because GNU make might |
3500 | # be invoked under some other name (usually "gmake"), in which |
3501 | # case it prints its new name instead of `make'. |
3502 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
3503 | am__include=include |
3504 | am__quote= |
3505 | _am_result=GNU |
3506 | fi |
3507 | # Now try BSD make style include. |
3508 | if test "$am__include" = "#"; then |
3509 | echo '.include "confinc"' > confmf |
3510 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
3511 | am__include=.include |
3512 | am__quote="\"" |
3513 | _am_result=BSD |
3514 | fi |
3515 | fi |
3516 | |
3517 | |
dd184caf |
3518 | { echo "$as_me:$LINENO: result: $_am_result" >&5 |
3519 | echo "${ECHO_T}$_am_result" >&6; } |
d9898ee8 |
3520 | rm -f confinc confmf |
3521 | |
dd184caf |
3522 | # Check whether --enable-dependency-tracking was given. |
d9898ee8 |
3523 | if test "${enable_dependency_tracking+set}" = set; then |
dd184caf |
3524 | enableval=$enable_dependency_tracking; |
3525 | fi |
d9898ee8 |
3526 | |
d9898ee8 |
3527 | if test "x$enable_dependency_tracking" != xno; then |
3528 | am_depcomp="$ac_aux_dir/depcomp" |
3529 | AMDEPBACKSLASH='\' |
3530 | fi |
dd184caf |
3531 | if test "x$enable_dependency_tracking" != xno; then |
d9898ee8 |
3532 | AMDEP_TRUE= |
3533 | AMDEP_FALSE='#' |
3534 | else |
3535 | AMDEP_TRUE='#' |
3536 | AMDEP_FALSE= |
3537 | fi |
3538 | |
3539 | |
3540 | |
d9898ee8 |
3541 | depcc="$CC" am_compiler_list= |
3542 | |
dd184caf |
3543 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
3544 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } |
d9898ee8 |
3545 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
3546 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3547 | else |
3548 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
3549 | # We make a subdir and do the tests there. Otherwise we can end up |
3550 | # making bogus files that we don't know about and never remove. For |
3551 | # instance it was reported that on HP-UX the gcc test will end up |
3552 | # making a dummy file named `D' -- because `-MD' means `put the output |
3553 | # in D'. |
3554 | mkdir conftest.dir |
3555 | # Copy depcomp to subdir because otherwise we won't find it if we're |
3556 | # using a relative directory. |
3557 | cp "$am_depcomp" conftest.dir |
3558 | cd conftest.dir |
3559 | # We will build objects and dependencies in a subdirectory because |
3560 | # it helps to detect inapplicable dependency modes. For instance |
3561 | # both Tru64's cc and ICC support -MD to output dependencies as a |
3562 | # side effect of compilation, but ICC will put the dependencies in |
3563 | # the current directory while Tru64 will put them in the object |
3564 | # directory. |
3565 | mkdir sub |
3566 | |
3567 | am_cv_CC_dependencies_compiler_type=none |
3568 | if test "$am_compiler_list" = ""; then |
3569 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
3570 | fi |
3571 | for depmode in $am_compiler_list; do |
3572 | # Setup a source with many dependencies, because some compilers |
3573 | # like to wrap large dependency lists on column 80 (with \), and |
3574 | # we should not choose a depcomp mode which is confused by this. |
3575 | # |
3576 | # We need to recreate these files for each test, as the compiler may |
3577 | # overwrite some of them when testing with obscure command lines. |
3578 | # This happens at least with the AIX C compiler. |
3579 | : > sub/conftest.c |
3580 | for i in 1 2 3 4 5 6; do |
3581 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
3582 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
3583 | # Solaris 8's {/usr,}/bin/sh. |
3584 | touch sub/conftst$i.h |
3585 | done |
3586 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
3587 | |
3588 | case $depmode in |
3589 | nosideeffect) |
3590 | # after this tag, mechanisms are not by side-effect, so they'll |
3591 | # only be used when explicitly requested |
3592 | if test "x$enable_dependency_tracking" = xyes; then |
3593 | continue |
3594 | else |
3595 | break |
3596 | fi |
3597 | ;; |
3598 | none) break ;; |
3599 | esac |
3600 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
3601 | # mode. It turns out that the SunPro C++ compiler does not properly |
3602 | # handle `-M -o', and we need to detect this. |
3603 | if depmode=$depmode \ |
3604 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
3605 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
3606 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
3607 | >/dev/null 2>conftest.err && |
dd184caf |
3608 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
d9898ee8 |
3609 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
3610 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
3611 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
3612 | # icc doesn't choke on unknown options, it will just issue warnings |
3613 | # or remarks (even with -Werror). So we grep stderr for any message |
3614 | # that says an option was ignored or not supported. |
3615 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
3616 | # icc: Command line warning: ignoring option '-M'; no argument required |
3617 | # The diagnosis changed in icc 8.0: |
3618 | # icc: Command line remark: option '-MP' not supported |
3619 | if (grep 'ignoring option' conftest.err || |
3620 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
3621 | am_cv_CC_dependencies_compiler_type=$depmode |
3622 | break |
3623 | fi |
3624 | fi |
3625 | done |
3626 | |
3627 | cd .. |
3628 | rm -rf conftest.dir |
3629 | else |
3630 | am_cv_CC_dependencies_compiler_type=none |
3631 | fi |
3632 | |
3633 | fi |
dd184caf |
3634 | { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
3635 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } |
d9898ee8 |
3636 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
3637 | |
dd184caf |
3638 | if |
d9898ee8 |
3639 | test "x$enable_dependency_tracking" != xno \ |
3640 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
3641 | am__fastdepCC_TRUE= |
3642 | am__fastdepCC_FALSE='#' |
3643 | else |
3644 | am__fastdepCC_TRUE='#' |
3645 | am__fastdepCC_FALSE= |
3646 | fi |
3647 | |
3648 | |
dd184caf |
3649 | # Check whether --enable-shared was given. |
d9898ee8 |
3650 | if test "${enable_shared+set}" = set; then |
dd184caf |
3651 | enableval=$enable_shared; p=${PACKAGE-default} |
d9898ee8 |
3652 | case $enableval in |
3653 | yes) enable_shared=yes ;; |
3654 | no) enable_shared=no ;; |
3655 | *) |
3656 | enable_shared=no |
3657 | # Look at the argument we got. We use all the common list separators. |
3658 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
3659 | for pkg in $enableval; do |
3660 | IFS="$lt_save_ifs" |
3661 | if test "X$pkg" = "X$p"; then |
3662 | enable_shared=yes |
3663 | fi |
3664 | done |
3665 | IFS="$lt_save_ifs" |
3666 | ;; |
3667 | esac |
3668 | else |
3669 | enable_shared=yes |
dd184caf |
3670 | fi |
d9898ee8 |
3671 | |
dd184caf |
3672 | |
3673 | # Check whether --enable-static was given. |
d9898ee8 |
3674 | if test "${enable_static+set}" = set; then |
dd184caf |
3675 | enableval=$enable_static; p=${PACKAGE-default} |
d9898ee8 |
3676 | case $enableval in |
3677 | yes) enable_static=yes ;; |
3678 | no) enable_static=no ;; |
3679 | *) |
3680 | enable_static=no |
3681 | # Look at the argument we got. We use all the common list separators. |
3682 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
3683 | for pkg in $enableval; do |
3684 | IFS="$lt_save_ifs" |
3685 | if test "X$pkg" = "X$p"; then |
3686 | enable_static=yes |
3687 | fi |
3688 | done |
3689 | IFS="$lt_save_ifs" |
3690 | ;; |
3691 | esac |
3692 | else |
3693 | enable_static=yes |
dd184caf |
3694 | fi |
d9898ee8 |
3695 | |
dd184caf |
3696 | |
3697 | # Check whether --enable-fast-install was given. |
d9898ee8 |
3698 | if test "${enable_fast_install+set}" = set; then |
dd184caf |
3699 | enableval=$enable_fast_install; p=${PACKAGE-default} |
d9898ee8 |
3700 | case $enableval in |
3701 | yes) enable_fast_install=yes ;; |
3702 | no) enable_fast_install=no ;; |
3703 | *) |
3704 | enable_fast_install=no |
3705 | # Look at the argument we got. We use all the common list separators. |
3706 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
3707 | for pkg in $enableval; do |
3708 | IFS="$lt_save_ifs" |
3709 | if test "X$pkg" = "X$p"; then |
3710 | enable_fast_install=yes |
3711 | fi |
3712 | done |
3713 | IFS="$lt_save_ifs" |
3714 | ;; |
3715 | esac |
3716 | else |
3717 | enable_fast_install=yes |
dd184caf |
3718 | fi |
3719 | |
d9898ee8 |
3720 | |
3721 | # Make sure we can run config.sub. |
dd184caf |
3722 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
3723 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
3724 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} |
d9898ee8 |
3725 | { (exit 1); exit 1; }; } |
3726 | |
dd184caf |
3727 | { echo "$as_me:$LINENO: checking build system type" >&5 |
3728 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
d9898ee8 |
3729 | if test "${ac_cv_build+set}" = set; then |
3730 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3731 | else |
dd184caf |
3732 | ac_build_alias=$build_alias |
3733 | test "x$ac_build_alias" = x && |
3734 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
3735 | test "x$ac_build_alias" = x && |
d9898ee8 |
3736 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
3737 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
3738 | { (exit 1); exit 1; }; } |
dd184caf |
3739 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
3740 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
3741 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} |
d9898ee8 |
3742 | { (exit 1); exit 1; }; } |
3743 | |
3744 | fi |
dd184caf |
3745 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
3746 | echo "${ECHO_T}$ac_cv_build" >&6; } |
3747 | case $ac_cv_build in |
3748 | *-*-*) ;; |
3749 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
3750 | echo "$as_me: error: invalid value of canonical build" >&2;} |
3751 | { (exit 1); exit 1; }; };; |
3752 | esac |
d9898ee8 |
3753 | build=$ac_cv_build |
dd184caf |
3754 | ac_save_IFS=$IFS; IFS='-' |
3755 | set x $ac_cv_build |
3756 | shift |
3757 | build_cpu=$1 |
3758 | build_vendor=$2 |
3759 | shift; shift |
3760 | # Remember, the first character of IFS is used to create $*, |
3761 | # except with old shells: |
3762 | build_os=$* |
3763 | IFS=$ac_save_IFS |
3764 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
3765 | |
3766 | |
3767 | { echo "$as_me:$LINENO: checking host system type" >&5 |
3768 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
d9898ee8 |
3769 | if test "${ac_cv_host+set}" = set; then |
3770 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3771 | else |
dd184caf |
3772 | if test "x$host_alias" = x; then |
3773 | ac_cv_host=$ac_cv_build |
3774 | else |
3775 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
3776 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
3777 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} |
d9898ee8 |
3778 | { (exit 1); exit 1; }; } |
dd184caf |
3779 | fi |
d9898ee8 |
3780 | |
3781 | fi |
dd184caf |
3782 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
3783 | echo "${ECHO_T}$ac_cv_host" >&6; } |
3784 | case $ac_cv_host in |
3785 | *-*-*) ;; |
3786 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
3787 | echo "$as_me: error: invalid value of canonical host" >&2;} |
3788 | { (exit 1); exit 1; }; };; |
3789 | esac |
d9898ee8 |
3790 | host=$ac_cv_host |
dd184caf |
3791 | ac_save_IFS=$IFS; IFS='-' |
3792 | set x $ac_cv_host |
3793 | shift |
3794 | host_cpu=$1 |
3795 | host_vendor=$2 |
3796 | shift; shift |
3797 | # Remember, the first character of IFS is used to create $*, |
3798 | # except with old shells: |
3799 | host_os=$* |
3800 | IFS=$ac_save_IFS |
3801 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
3802 | |
3803 | |
3804 | { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
3805 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } |
d9898ee8 |
3806 | if test "${lt_cv_path_SED+set}" = set; then |
3807 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3808 | else |
3809 | # Loop through the user's path and test for sed and gsed. |
3810 | # Then use that list of sed's as ones to test for truncation. |
3811 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3812 | for as_dir in $PATH |
3813 | do |
3814 | IFS=$as_save_IFS |
3815 | test -z "$as_dir" && as_dir=. |
3816 | for lt_ac_prog in sed gsed; do |
3817 | for ac_exec_ext in '' $ac_executable_extensions; do |
ac40fd9e |
3818 | if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then |
d9898ee8 |
3819 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
3820 | fi |
3821 | done |
3822 | done |
3823 | done |
3824 | IFS=$as_save_IFS |
3825 | lt_ac_max=0 |
3826 | lt_ac_count=0 |
3827 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
3828 | # along with /bin/sed that truncates output. |
3829 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
3830 | test ! -f $lt_ac_sed && continue |
3831 | cat /dev/null > conftest.in |
3832 | lt_ac_count=0 |
3833 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
3834 | # Check for GNU sed and select it if it is found. |
3835 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
3836 | lt_cv_path_SED=$lt_ac_sed |
3837 | break |
3838 | fi |
3839 | while true; do |
3840 | cat conftest.in conftest.in >conftest.tmp |
3841 | mv conftest.tmp conftest.in |
3842 | cp conftest.in conftest.nl |
3843 | echo >>conftest.nl |
3844 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
3845 | cmp -s conftest.out conftest.nl || break |
3846 | # 10000 chars as input seems more than enough |
3847 | test $lt_ac_count -gt 10 && break |
3848 | lt_ac_count=`expr $lt_ac_count + 1` |
3849 | if test $lt_ac_count -gt $lt_ac_max; then |
3850 | lt_ac_max=$lt_ac_count |
3851 | lt_cv_path_SED=$lt_ac_sed |
3852 | fi |
3853 | done |
3854 | done |
3855 | |
3856 | fi |
3857 | |
3858 | SED=$lt_cv_path_SED |
3859 | |
dd184caf |
3860 | { echo "$as_me:$LINENO: result: $SED" >&5 |
3861 | echo "${ECHO_T}$SED" >&6; } |
3862 | |
3863 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
3864 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
3865 | if test "${ac_cv_path_GREP+set}" = set; then |
3866 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3867 | else |
3868 | # Extract the first word of "grep ggrep" to use in msg output |
3869 | if test -z "$GREP"; then |
3870 | set dummy grep ggrep; ac_prog_name=$2 |
3871 | if test "${ac_cv_path_GREP+set}" = set; then |
3872 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3873 | else |
3874 | ac_path_GREP_found=false |
3875 | # Loop through the user's path and test for each of PROGNAME-LIST |
3876 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3877 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
3878 | do |
3879 | IFS=$as_save_IFS |
3880 | test -z "$as_dir" && as_dir=. |
3881 | for ac_prog in grep ggrep; do |
3882 | for ac_exec_ext in '' $ac_executable_extensions; do |
3883 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
3884 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
3885 | # Check for GNU ac_path_GREP and select it if it is found. |
3886 | # Check for GNU $ac_path_GREP |
3887 | case `"$ac_path_GREP" --version 2>&1` in |
3888 | *GNU*) |
3889 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
3890 | *) |
3891 | ac_count=0 |
3892 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
3893 | while : |
3894 | do |
3895 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
3896 | mv "conftest.tmp" "conftest.in" |
3897 | cp "conftest.in" "conftest.nl" |
3898 | echo 'GREP' >> "conftest.nl" |
3899 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3900 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
3901 | ac_count=`expr $ac_count + 1` |
3902 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
3903 | # Best one so far, save it but keep looking for a better one |
3904 | ac_cv_path_GREP="$ac_path_GREP" |
3905 | ac_path_GREP_max=$ac_count |
3906 | fi |
3907 | # 10*(2^10) chars as input seems more than enough |
3908 | test $ac_count -gt 10 && break |
3909 | done |
3910 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
3911 | esac |
3912 | |
3913 | |
3914 | $ac_path_GREP_found && break 3 |
3915 | done |
3916 | done |
3917 | |
3918 | done |
3919 | IFS=$as_save_IFS |
3920 | |
3921 | |
3922 | fi |
3923 | |
3924 | GREP="$ac_cv_path_GREP" |
3925 | if test -z "$GREP"; then |
3926 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
3927 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
3928 | { (exit 1); exit 1; }; } |
3929 | fi |
3930 | |
3931 | else |
3932 | ac_cv_path_GREP=$GREP |
3933 | fi |
3934 | |
3935 | |
3936 | fi |
3937 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
3938 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
3939 | GREP="$ac_cv_path_GREP" |
3940 | |
d9898ee8 |
3941 | |
dd184caf |
3942 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
3943 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
3944 | if test "${ac_cv_path_EGREP+set}" = set; then |
3945 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3946 | else |
3947 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
3948 | then ac_cv_path_EGREP="$GREP -E" |
3949 | else |
3950 | # Extract the first word of "egrep" to use in msg output |
3951 | if test -z "$EGREP"; then |
3952 | set dummy egrep; ac_prog_name=$2 |
3953 | if test "${ac_cv_path_EGREP+set}" = set; then |
d9898ee8 |
3954 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3955 | else |
dd184caf |
3956 | ac_path_EGREP_found=false |
3957 | # Loop through the user's path and test for each of PROGNAME-LIST |
3958 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3959 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
3960 | do |
3961 | IFS=$as_save_IFS |
3962 | test -z "$as_dir" && as_dir=. |
3963 | for ac_prog in egrep; do |
3964 | for ac_exec_ext in '' $ac_executable_extensions; do |
3965 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
3966 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
3967 | # Check for GNU ac_path_EGREP and select it if it is found. |
3968 | # Check for GNU $ac_path_EGREP |
3969 | case `"$ac_path_EGREP" --version 2>&1` in |
3970 | *GNU*) |
3971 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
3972 | *) |
3973 | ac_count=0 |
3974 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
3975 | while : |
3976 | do |
3977 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
3978 | mv "conftest.tmp" "conftest.in" |
3979 | cp "conftest.in" "conftest.nl" |
3980 | echo 'EGREP' >> "conftest.nl" |
3981 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3982 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
3983 | ac_count=`expr $ac_count + 1` |
3984 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
3985 | # Best one so far, save it but keep looking for a better one |
3986 | ac_cv_path_EGREP="$ac_path_EGREP" |
3987 | ac_path_EGREP_max=$ac_count |
d9898ee8 |
3988 | fi |
dd184caf |
3989 | # 10*(2^10) chars as input seems more than enough |
3990 | test $ac_count -gt 10 && break |
3991 | done |
3992 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
3993 | esac |
3994 | |
3995 | |
3996 | $ac_path_EGREP_found && break 3 |
3997 | done |
3998 | done |
3999 | |
4000 | done |
4001 | IFS=$as_save_IFS |
4002 | |
4003 | |
4004 | fi |
4005 | |
4006 | EGREP="$ac_cv_path_EGREP" |
4007 | if test -z "$EGREP"; then |
4008 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
4009 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
4010 | { (exit 1); exit 1; }; } |
4011 | fi |
4012 | |
4013 | else |
4014 | ac_cv_path_EGREP=$EGREP |
4015 | fi |
4016 | |
4017 | |
4018 | fi |
d9898ee8 |
4019 | fi |
dd184caf |
4020 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
4021 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
4022 | EGREP="$ac_cv_path_EGREP" |
d9898ee8 |
4023 | |
4024 | |
4025 | |
dd184caf |
4026 | # Check whether --with-gnu-ld was given. |
d9898ee8 |
4027 | if test "${with_gnu_ld+set}" = set; then |
dd184caf |
4028 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
d9898ee8 |
4029 | else |
4030 | with_gnu_ld=no |
dd184caf |
4031 | fi |
4032 | |
d9898ee8 |
4033 | ac_prog=ld |
4034 | if test "$GCC" = yes; then |
4035 | # Check if gcc -print-prog-name=ld gives a path. |
dd184caf |
4036 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
4037 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
d9898ee8 |
4038 | case $host in |
4039 | *-*-mingw*) |
4040 | # gcc leaves a trailing carriage return which upsets mingw |
4041 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
4042 | *) |
4043 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
4044 | esac |
4045 | case $ac_prog in |
4046 | # Accept absolute paths. |
4047 | [\\/]* | ?:[\\/]*) |
4048 | re_direlt='/[^/][^/]*/\.\./' |
4049 | # Canonicalize the pathname of ld |
4050 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
4051 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
4052 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
4053 | done |
4054 | test -z "$LD" && LD="$ac_prog" |
4055 | ;; |
4056 | "") |
4057 | # If it fails, then pretend we aren't using GCC. |
4058 | ac_prog=ld |
4059 | ;; |
4060 | *) |
4061 | # If it is relative, then search for the first ld in PATH. |
4062 | with_gnu_ld=unknown |
4063 | ;; |
4064 | esac |
4065 | elif test "$with_gnu_ld" = yes; then |
dd184caf |
4066 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
4067 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
d9898ee8 |
4068 | else |
dd184caf |
4069 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
4070 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
d9898ee8 |
4071 | fi |
4072 | if test "${lt_cv_path_LD+set}" = set; then |
4073 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4074 | else |
4075 | if test -z "$LD"; then |
4076 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
4077 | for ac_dir in $PATH; do |
4078 | IFS="$lt_save_ifs" |
4079 | test -z "$ac_dir" && ac_dir=. |
4080 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
4081 | lt_cv_path_LD="$ac_dir/$ac_prog" |
4082 | # Check to see if the program is GNU ld. I'd rather use --version, |
4083 | # but apparently some variants of GNU ld only accept -v. |
4084 | # Break only if it was the GNU/non-GNU ld that we prefer. |
4085 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
4086 | *GNU* | *'with BFD'*) |
4087 | test "$with_gnu_ld" != no && break |
4088 | ;; |
4089 | *) |
4090 | test "$with_gnu_ld" != yes && break |
4091 | ;; |
4092 | esac |
4093 | fi |
4094 | done |
4095 | IFS="$lt_save_ifs" |
4096 | else |
4097 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
4098 | fi |
4099 | fi |
4100 | |
4101 | LD="$lt_cv_path_LD" |
4102 | if test -n "$LD"; then |
dd184caf |
4103 | { echo "$as_me:$LINENO: result: $LD" >&5 |
4104 | echo "${ECHO_T}$LD" >&6; } |
d9898ee8 |
4105 | else |
dd184caf |
4106 | { echo "$as_me:$LINENO: result: no" >&5 |
4107 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
4108 | fi |
4109 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
4110 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
4111 | { (exit 1); exit 1; }; } |
dd184caf |
4112 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
4113 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } |
d9898ee8 |
4114 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
4115 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4116 | else |
4117 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
4118 | case `$LD -v 2>&1 </dev/null` in |
4119 | *GNU* | *'with BFD'*) |
4120 | lt_cv_prog_gnu_ld=yes |
4121 | ;; |
4122 | *) |
4123 | lt_cv_prog_gnu_ld=no |
4124 | ;; |
4125 | esac |
4126 | fi |
dd184caf |
4127 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
4128 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
d9898ee8 |
4129 | with_gnu_ld=$lt_cv_prog_gnu_ld |
4130 | |
4131 | |
dd184caf |
4132 | { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
4133 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } |
d9898ee8 |
4134 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
4135 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4136 | else |
4137 | lt_cv_ld_reload_flag='-r' |
4138 | fi |
dd184caf |
4139 | { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
4140 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } |
d9898ee8 |
4141 | reload_flag=$lt_cv_ld_reload_flag |
4142 | case $reload_flag in |
4143 | "" | " "*) ;; |
4144 | *) reload_flag=" $reload_flag" ;; |
4145 | esac |
4146 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
4147 | case $host_os in |
4148 | darwin*) |
4149 | if test "$GCC" = yes; then |
4150 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
4151 | else |
4152 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
4153 | fi |
4154 | ;; |
4155 | esac |
4156 | |
dd184caf |
4157 | { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
4158 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } |
d9898ee8 |
4159 | if test "${lt_cv_path_NM+set}" = set; then |
4160 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4161 | else |
4162 | if test -n "$NM"; then |
4163 | # Let the user override the test. |
4164 | lt_cv_path_NM="$NM" |
4165 | else |
4166 | lt_nm_to_check="${ac_tool_prefix}nm" |
4167 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
4168 | lt_nm_to_check="$lt_nm_to_check nm" |
4169 | fi |
4170 | for lt_tmp_nm in $lt_nm_to_check; do |
4171 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
4172 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
4173 | IFS="$lt_save_ifs" |
4174 | test -z "$ac_dir" && ac_dir=. |
4175 | tmp_nm="$ac_dir/$lt_tmp_nm" |
4176 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
4177 | # Check to see if the nm accepts a BSD-compat flag. |
4178 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
4179 | # nm: unknown option "B" ignored |
4180 | # Tru64's nm complains that /dev/null is an invalid object file |
4181 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
4182 | */dev/null* | *'Invalid file or object type'*) |
4183 | lt_cv_path_NM="$tmp_nm -B" |
4184 | break |
4185 | ;; |
4186 | *) |
4187 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
4188 | */dev/null*) |
4189 | lt_cv_path_NM="$tmp_nm -p" |
4190 | break |
4191 | ;; |
4192 | *) |
4193 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
4194 | continue # so that we can try to find one that supports BSD flags |
4195 | ;; |
4196 | esac |
4197 | ;; |
4198 | esac |
4199 | fi |
4200 | done |
4201 | IFS="$lt_save_ifs" |
4202 | done |
4203 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
4204 | fi |
4205 | fi |
dd184caf |
4206 | { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
4207 | echo "${ECHO_T}$lt_cv_path_NM" >&6; } |
d9898ee8 |
4208 | NM="$lt_cv_path_NM" |
4209 | |
ac40fd9e |
4210 | { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 |
4211 | echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; } |
d9898ee8 |
4212 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
4213 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4214 | else |
4215 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
4216 | lt_cv_file_magic_test_file= |
4217 | lt_cv_deplibs_check_method='unknown' |
4218 | # Need to set the preceding variable on all platforms that support |
4219 | # interlibrary dependencies. |
4220 | # 'none' -- dependencies not supported. |
4221 | # `unknown' -- same as none, but documents that we really don't know. |
4222 | # 'pass_all' -- all dependencies passed with no checks. |
4223 | # 'test_compile' -- check by making test program. |
4224 | # 'file_magic [[regex]]' -- check by looking for files in library path |
4225 | # which responds to the $file_magic_cmd with a given extended regex. |
4226 | # If you have `file' or equivalent on your system and you're not sure |
4227 | # whether `pass_all' will *always* work, you probably want this one. |
4228 | |
4229 | case $host_os in |
4230 | aix4* | aix5*) |
4231 | lt_cv_deplibs_check_method=pass_all |
4232 | ;; |
4233 | |
4234 | beos*) |
4235 | lt_cv_deplibs_check_method=pass_all |
4236 | ;; |
4237 | |
4238 | bsdi[45]*) |
4239 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
4240 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
4241 | lt_cv_file_magic_test_file=/shlib/libc.so |
4242 | ;; |
4243 | |
4244 | cygwin*) |
4245 | # func_win32_libid is a shell function defined in ltmain.sh |
4246 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
4247 | lt_cv_file_magic_cmd='func_win32_libid' |
4248 | ;; |
4249 | |
4250 | mingw* | pw32*) |
4251 | # Base MSYS/MinGW do not provide the 'file' command needed by |
ac40fd9e |
4252 | # func_win32_libid shell function, so use a weaker test based on 'objdump', |
4253 | # unless we find 'file', for example because we are cross-compiling. |
4254 | if ( file / ) >/dev/null 2>&1; then |
4255 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
4256 | lt_cv_file_magic_cmd='func_win32_libid' |
4257 | else |
4258 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
4259 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
4260 | fi |
d9898ee8 |
4261 | ;; |
4262 | |
4263 | darwin* | rhapsody*) |
4264 | lt_cv_deplibs_check_method=pass_all |
4265 | ;; |
4266 | |
ac40fd9e |
4267 | freebsd* | dragonfly*) |
d9898ee8 |
4268 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
4269 | case $host_cpu in |
4270 | i*86 ) |
4271 | # Not sure whether the presence of OpenBSD here was a mistake. |
4272 | # Let's accept both of them until this is cleared up. |
4273 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
4274 | lt_cv_file_magic_cmd=/usr/bin/file |
4275 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
4276 | ;; |
4277 | esac |
4278 | else |
4279 | lt_cv_deplibs_check_method=pass_all |
4280 | fi |
4281 | ;; |
4282 | |
4283 | gnu*) |
4284 | lt_cv_deplibs_check_method=pass_all |
4285 | ;; |
4286 | |
4287 | hpux10.20* | hpux11*) |
4288 | lt_cv_file_magic_cmd=/usr/bin/file |
4289 | case $host_cpu in |
4290 | ia64*) |
4291 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
4292 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
4293 | ;; |
4294 | hppa*64*) |
4295 | 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]' |
4296 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
4297 | ;; |
4298 | *) |
4299 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
4300 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
4301 | ;; |
4302 | esac |
4303 | ;; |
4304 | |
ac40fd9e |
4305 | interix[3-9]*) |
d9898ee8 |
4306 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
4307 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
4308 | ;; |
4309 | |
4310 | irix5* | irix6* | nonstopux*) |
4311 | case $LD in |
4312 | *-32|*"-32 ") libmagic=32-bit;; |
4313 | *-n32|*"-n32 ") libmagic=N32;; |
4314 | *-64|*"-64 ") libmagic=64-bit;; |
4315 | *) libmagic=never-match;; |
4316 | esac |
4317 | lt_cv_deplibs_check_method=pass_all |
4318 | ;; |
4319 | |
4320 | # This must be Linux ELF. |
ac40fd9e |
4321 | linux* | k*bsd*-gnu) |
d9898ee8 |
4322 | lt_cv_deplibs_check_method=pass_all |
4323 | ;; |
4324 | |
4325 | netbsd*) |
4326 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
4327 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
4328 | else |
4329 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
4330 | fi |
4331 | ;; |
4332 | |
4333 | newos6*) |
4334 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
4335 | lt_cv_file_magic_cmd=/usr/bin/file |
4336 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
4337 | ;; |
4338 | |
4339 | nto-qnx*) |
4340 | lt_cv_deplibs_check_method=unknown |
4341 | ;; |
4342 | |
4343 | openbsd*) |
4344 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
4345 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
4346 | else |
4347 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
4348 | fi |
4349 | ;; |
4350 | |
4351 | osf3* | osf4* | osf5*) |
4352 | lt_cv_deplibs_check_method=pass_all |
4353 | ;; |
4354 | |
ac40fd9e |
4355 | rdos*) |
4356 | lt_cv_deplibs_check_method=pass_all |
4357 | ;; |
4358 | |
d9898ee8 |
4359 | solaris*) |
4360 | lt_cv_deplibs_check_method=pass_all |
4361 | ;; |
4362 | |
4363 | sysv4 | sysv4.3*) |
4364 | case $host_vendor in |
4365 | motorola) |
4366 | 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]' |
4367 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
4368 | ;; |
4369 | ncr) |
4370 | lt_cv_deplibs_check_method=pass_all |
4371 | ;; |
4372 | sequent) |
4373 | lt_cv_file_magic_cmd='/bin/file' |
4374 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
4375 | ;; |
4376 | sni) |
4377 | lt_cv_file_magic_cmd='/bin/file' |
4378 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
4379 | lt_cv_file_magic_test_file=/lib/libc.so |
4380 | ;; |
4381 | siemens) |
4382 | lt_cv_deplibs_check_method=pass_all |
4383 | ;; |
4384 | pc) |
4385 | lt_cv_deplibs_check_method=pass_all |
4386 | ;; |
4387 | esac |
4388 | ;; |
4389 | |
4390 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
4391 | lt_cv_deplibs_check_method=pass_all |
4392 | ;; |
4393 | esac |
4394 | |
4395 | fi |
dd184caf |
4396 | { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
4397 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } |
d9898ee8 |
4398 | file_magic_cmd=$lt_cv_file_magic_cmd |
4399 | deplibs_check_method=$lt_cv_deplibs_check_method |
4400 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
4401 | |
4402 | |
4403 | |
4404 | |
4405 | # If no C compiler was specified, use CC. |
4406 | LTCC=${LTCC-"$CC"} |
4407 | |
4408 | # If no C compiler flags were specified, use CFLAGS. |
4409 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
4410 | |
4411 | # Allow CC to be a program name with arguments. |
4412 | compiler=$CC |
4413 | |
4414 | |
dd184caf |
4415 | # Check whether --enable-libtool-lock was given. |
d9898ee8 |
4416 | if test "${enable_libtool_lock+set}" = set; then |
dd184caf |
4417 | enableval=$enable_libtool_lock; |
4418 | fi |
d9898ee8 |
4419 | |
d9898ee8 |
4420 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
4421 | |
4422 | # Some flags need to be propagated to the compiler or linker for good |
4423 | # libtool support. |
4424 | case $host in |
4425 | ia64-*-hpux*) |
4426 | # Find out which ABI we are using. |
4427 | echo 'int i;' > conftest.$ac_ext |
4428 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4429 | (eval $ac_compile) 2>&5 |
4430 | ac_status=$? |
4431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4432 | (exit $ac_status); }; then |
4433 | case `/usr/bin/file conftest.$ac_objext` in |
4434 | *ELF-32*) |
4435 | HPUX_IA64_MODE="32" |
4436 | ;; |
4437 | *ELF-64*) |
4438 | HPUX_IA64_MODE="64" |
4439 | ;; |
4440 | esac |
4441 | fi |
4442 | rm -rf conftest* |
4443 | ;; |
4444 | *-*-irix6*) |
4445 | # Find out which ABI we are using. |
ac40fd9e |
4446 | echo '#line 4446 "configure"' > conftest.$ac_ext |
d9898ee8 |
4447 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4448 | (eval $ac_compile) 2>&5 |
4449 | ac_status=$? |
4450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4451 | (exit $ac_status); }; then |
4452 | if test "$lt_cv_prog_gnu_ld" = yes; then |
4453 | case `/usr/bin/file conftest.$ac_objext` in |
4454 | *32-bit*) |
4455 | LD="${LD-ld} -melf32bsmip" |
4456 | ;; |
4457 | *N32*) |
4458 | LD="${LD-ld} -melf32bmipn32" |
4459 | ;; |
4460 | *64-bit*) |
4461 | LD="${LD-ld} -melf64bmip" |
4462 | ;; |
4463 | esac |
4464 | else |
4465 | case `/usr/bin/file conftest.$ac_objext` in |
4466 | *32-bit*) |
4467 | LD="${LD-ld} -32" |
4468 | ;; |
4469 | *N32*) |
4470 | LD="${LD-ld} -n32" |
4471 | ;; |
4472 | *64-bit*) |
4473 | LD="${LD-ld} -64" |
4474 | ;; |
4475 | esac |
4476 | fi |
4477 | fi |
4478 | rm -rf conftest* |
4479 | ;; |
4480 | |
ac40fd9e |
4481 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
4482 | s390*-*linux*|sparc*-*linux*) |
d9898ee8 |
4483 | # Find out which ABI we are using. |
4484 | echo 'int i;' > conftest.$ac_ext |
4485 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4486 | (eval $ac_compile) 2>&5 |
4487 | ac_status=$? |
4488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4489 | (exit $ac_status); }; then |
4490 | case `/usr/bin/file conftest.o` in |
4491 | *32-bit*) |
4492 | case $host in |
ac40fd9e |
4493 | x86_64-*kfreebsd*-gnu) |
4494 | LD="${LD-ld} -m elf_i386_fbsd" |
4495 | ;; |
d9898ee8 |
4496 | x86_64-*linux*) |
4497 | LD="${LD-ld} -m elf_i386" |
4498 | ;; |
4499 | ppc64-*linux*|powerpc64-*linux*) |
4500 | LD="${LD-ld} -m elf32ppclinux" |
4501 | ;; |
4502 | s390x-*linux*) |
4503 | LD="${LD-ld} -m elf_s390" |
4504 | ;; |
4505 | sparc64-*linux*) |
4506 | LD="${LD-ld} -m elf32_sparc" |
4507 | ;; |
4508 | esac |
4509 | ;; |
4510 | *64-bit*) |
ac40fd9e |
4511 | libsuff=64 |
d9898ee8 |
4512 | case $host in |
ac40fd9e |
4513 | x86_64-*kfreebsd*-gnu) |
4514 | LD="${LD-ld} -m elf_x86_64_fbsd" |
4515 | ;; |
d9898ee8 |
4516 | x86_64-*linux*) |
4517 | LD="${LD-ld} -m elf_x86_64" |
4518 | ;; |
4519 | ppc*-*linux*|powerpc*-*linux*) |
4520 | LD="${LD-ld} -m elf64ppc" |
4521 | ;; |
4522 | s390*-*linux*) |
4523 | LD="${LD-ld} -m elf64_s390" |
4524 | ;; |
4525 | sparc*-*linux*) |
4526 | LD="${LD-ld} -m elf64_sparc" |
4527 | ;; |
4528 | esac |
4529 | ;; |
4530 | esac |
4531 | fi |
4532 | rm -rf conftest* |
4533 | ;; |
4534 | |
4535 | *-*-sco3.2v5*) |
4536 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
4537 | SAVE_CFLAGS="$CFLAGS" |
4538 | CFLAGS="$CFLAGS -belf" |
dd184caf |
4539 | { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
4540 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } |
d9898ee8 |
4541 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
4542 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4543 | else |
4544 | ac_ext=c |
4545 | ac_cpp='$CPP $CPPFLAGS' |
4546 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4547 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4548 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4549 | |
4550 | cat >conftest.$ac_ext <<_ACEOF |
4551 | /* confdefs.h. */ |
4552 | _ACEOF |
4553 | cat confdefs.h >>conftest.$ac_ext |
4554 | cat >>conftest.$ac_ext <<_ACEOF |
4555 | /* end confdefs.h. */ |
4556 | |
4557 | int |
4558 | main () |
4559 | { |
4560 | |
4561 | ; |
4562 | return 0; |
4563 | } |
4564 | _ACEOF |
4565 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
4566 | if { (ac_try="$ac_link" |
4567 | case "(($ac_try" in |
4568 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4569 | *) ac_try_echo=$ac_try;; |
4570 | esac |
4571 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4572 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
4573 | ac_status=$? |
4574 | grep -v '^ *+' conftest.er1 >conftest.err |
4575 | rm -f conftest.er1 |
4576 | cat conftest.err >&5 |
4577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
4578 | (exit $ac_status); } && { |
4579 | test -z "$ac_c_werror_flag" || |
4580 | test ! -s conftest.err |
4581 | } && test -s conftest$ac_exeext && |
4582 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
4583 | lt_cv_cc_needs_belf=yes |
4584 | else |
4585 | echo "$as_me: failed program was:" >&5 |
4586 | sed 's/^/| /' conftest.$ac_ext >&5 |
4587 | |
dd184caf |
4588 | lt_cv_cc_needs_belf=no |
d9898ee8 |
4589 | fi |
dd184caf |
4590 | |
4591 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
4592 | conftest$ac_exeext conftest.$ac_ext |
4593 | ac_ext=c |
4594 | ac_cpp='$CPP $CPPFLAGS' |
4595 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4596 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4597 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4598 | |
4599 | fi |
dd184caf |
4600 | { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
4601 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } |
d9898ee8 |
4602 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
4603 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
4604 | CFLAGS="$SAVE_CFLAGS" |
4605 | fi |
4606 | ;; |
4607 | sparc*-*solaris*) |
4608 | # Find out which ABI we are using. |
4609 | echo 'int i;' > conftest.$ac_ext |
4610 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4611 | (eval $ac_compile) 2>&5 |
4612 | ac_status=$? |
4613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4614 | (exit $ac_status); }; then |
4615 | case `/usr/bin/file conftest.o` in |
4616 | *64-bit*) |
4617 | case $lt_cv_prog_gnu_ld in |
4618 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
4619 | *) LD="${LD-ld} -64" ;; |
4620 | esac |
4621 | ;; |
4622 | esac |
4623 | fi |
4624 | rm -rf conftest* |
4625 | ;; |
4626 | |
4627 | |
4628 | esac |
4629 | |
4630 | need_locks="$enable_libtool_lock" |
4631 | |
4632 | |
4633 | ac_ext=c |
4634 | ac_cpp='$CPP $CPPFLAGS' |
4635 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4636 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4637 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
dd184caf |
4638 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
4639 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
d9898ee8 |
4640 | # On Suns, sometimes $CPP names a directory. |
4641 | if test -n "$CPP" && test -d "$CPP"; then |
4642 | CPP= |
4643 | fi |
4644 | if test -z "$CPP"; then |
4645 | if test "${ac_cv_prog_CPP+set}" = set; then |
4646 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4647 | else |
4648 | # Double quotes because CPP needs to be expanded |
4649 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
4650 | do |
4651 | ac_preproc_ok=false |
4652 | for ac_c_preproc_warn_flag in '' yes |
4653 | do |
4654 | # Use a header file that comes with gcc, so configuring glibc |
4655 | # with a fresh cross-compiler works. |
4656 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
4657 | # <limits.h> exists even on freestanding compilers. |
4658 | # On the NeXT, cc -E runs the code through the compiler's parser, |
4659 | # not just through cpp. "Syntax error" is here to catch this case. |
4660 | cat >conftest.$ac_ext <<_ACEOF |
4661 | /* confdefs.h. */ |
4662 | _ACEOF |
4663 | cat confdefs.h >>conftest.$ac_ext |
4664 | cat >>conftest.$ac_ext <<_ACEOF |
4665 | /* end confdefs.h. */ |
4666 | #ifdef __STDC__ |
4667 | # include <limits.h> |
4668 | #else |
4669 | # include <assert.h> |
4670 | #endif |
4671 | Syntax error |
4672 | _ACEOF |
dd184caf |
4673 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4674 | case "(($ac_try" in |
4675 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4676 | *) ac_try_echo=$ac_try;; |
4677 | esac |
4678 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4679 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
4680 | ac_status=$? |
4681 | grep -v '^ *+' conftest.er1 >conftest.err |
4682 | rm -f conftest.er1 |
4683 | cat conftest.err >&5 |
4684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
4685 | (exit $ac_status); } >/dev/null && { |
4686 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
4687 | test ! -s conftest.err |
4688 | }; then |
d9898ee8 |
4689 | : |
4690 | else |
4691 | echo "$as_me: failed program was:" >&5 |
4692 | sed 's/^/| /' conftest.$ac_ext >&5 |
4693 | |
4694 | # Broken: fails on valid input. |
4695 | continue |
4696 | fi |
dd184caf |
4697 | |
d9898ee8 |
4698 | rm -f conftest.err conftest.$ac_ext |
4699 | |
dd184caf |
4700 | # OK, works on sane cases. Now check whether nonexistent headers |
d9898ee8 |
4701 | # can be detected and how. |
4702 | cat >conftest.$ac_ext <<_ACEOF |
4703 | /* confdefs.h. */ |
4704 | _ACEOF |
4705 | cat confdefs.h >>conftest.$ac_ext |
4706 | cat >>conftest.$ac_ext <<_ACEOF |
4707 | /* end confdefs.h. */ |
4708 | #include <ac_nonexistent.h> |
4709 | _ACEOF |
dd184caf |
4710 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4711 | case "(($ac_try" in |
4712 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4713 | *) ac_try_echo=$ac_try;; |
4714 | esac |
4715 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4716 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
4717 | ac_status=$? |
4718 | grep -v '^ *+' conftest.er1 >conftest.err |
4719 | rm -f conftest.er1 |
4720 | cat conftest.err >&5 |
4721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
4722 | (exit $ac_status); } >/dev/null && { |
4723 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
4724 | test ! -s conftest.err |
4725 | }; then |
d9898ee8 |
4726 | # Broken: success on invalid input. |
4727 | continue |
4728 | else |
4729 | echo "$as_me: failed program was:" >&5 |
4730 | sed 's/^/| /' conftest.$ac_ext >&5 |
4731 | |
4732 | # Passes both tests. |
4733 | ac_preproc_ok=: |
4734 | break |
4735 | fi |
dd184caf |
4736 | |
d9898ee8 |
4737 | rm -f conftest.err conftest.$ac_ext |
4738 | |
4739 | done |
4740 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
4741 | rm -f conftest.err conftest.$ac_ext |
4742 | if $ac_preproc_ok; then |
4743 | break |
4744 | fi |
4745 | |
4746 | done |
4747 | ac_cv_prog_CPP=$CPP |
4748 | |
4749 | fi |
4750 | CPP=$ac_cv_prog_CPP |
4751 | else |
4752 | ac_cv_prog_CPP=$CPP |
4753 | fi |
dd184caf |
4754 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
4755 | echo "${ECHO_T}$CPP" >&6; } |
d9898ee8 |
4756 | ac_preproc_ok=false |
4757 | for ac_c_preproc_warn_flag in '' yes |
4758 | do |
4759 | # Use a header file that comes with gcc, so configuring glibc |
4760 | # with a fresh cross-compiler works. |
4761 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
4762 | # <limits.h> exists even on freestanding compilers. |
4763 | # On the NeXT, cc -E runs the code through the compiler's parser, |
4764 | # not just through cpp. "Syntax error" is here to catch this case. |
4765 | cat >conftest.$ac_ext <<_ACEOF |
4766 | /* confdefs.h. */ |
4767 | _ACEOF |
4768 | cat confdefs.h >>conftest.$ac_ext |
4769 | cat >>conftest.$ac_ext <<_ACEOF |
4770 | /* end confdefs.h. */ |
4771 | #ifdef __STDC__ |
4772 | # include <limits.h> |
4773 | #else |
4774 | # include <assert.h> |
4775 | #endif |
4776 | Syntax error |
4777 | _ACEOF |
dd184caf |
4778 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4779 | case "(($ac_try" in |
4780 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4781 | *) ac_try_echo=$ac_try;; |
4782 | esac |
4783 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4784 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
4785 | ac_status=$? |
4786 | grep -v '^ *+' conftest.er1 >conftest.err |
4787 | rm -f conftest.er1 |
4788 | cat conftest.err >&5 |
4789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
4790 | (exit $ac_status); } >/dev/null && { |
4791 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
4792 | test ! -s conftest.err |
4793 | }; then |
d9898ee8 |
4794 | : |
4795 | else |
4796 | echo "$as_me: failed program was:" >&5 |
4797 | sed 's/^/| /' conftest.$ac_ext >&5 |
4798 | |
4799 | # Broken: fails on valid input. |
4800 | continue |
4801 | fi |
dd184caf |
4802 | |
d9898ee8 |
4803 | rm -f conftest.err conftest.$ac_ext |
4804 | |
dd184caf |
4805 | # OK, works on sane cases. Now check whether nonexistent headers |
d9898ee8 |
4806 | # can be detected and how. |
4807 | cat >conftest.$ac_ext <<_ACEOF |
4808 | /* confdefs.h. */ |
4809 | _ACEOF |
4810 | cat confdefs.h >>conftest.$ac_ext |
4811 | cat >>conftest.$ac_ext <<_ACEOF |
4812 | /* end confdefs.h. */ |
4813 | #include <ac_nonexistent.h> |
4814 | _ACEOF |
dd184caf |
4815 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4816 | case "(($ac_try" in |
4817 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4818 | *) ac_try_echo=$ac_try;; |
4819 | esac |
4820 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4821 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
4822 | ac_status=$? |
4823 | grep -v '^ *+' conftest.er1 >conftest.err |
4824 | rm -f conftest.er1 |
4825 | cat conftest.err >&5 |
4826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
4827 | (exit $ac_status); } >/dev/null && { |
4828 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
4829 | test ! -s conftest.err |
4830 | }; then |
d9898ee8 |
4831 | # Broken: success on invalid input. |
4832 | continue |
4833 | else |
4834 | echo "$as_me: failed program was:" >&5 |
4835 | sed 's/^/| /' conftest.$ac_ext >&5 |
4836 | |
4837 | # Passes both tests. |
4838 | ac_preproc_ok=: |
4839 | break |
4840 | fi |
dd184caf |
4841 | |
d9898ee8 |
4842 | rm -f conftest.err conftest.$ac_ext |
4843 | |
4844 | done |
4845 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
4846 | rm -f conftest.err conftest.$ac_ext |
4847 | if $ac_preproc_ok; then |
4848 | : |
4849 | else |
4850 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
4851 | See \`config.log' for more details." >&5 |
4852 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
4853 | See \`config.log' for more details." >&2;} |
4854 | { (exit 1); exit 1; }; } |
4855 | fi |
4856 | |
4857 | ac_ext=c |
4858 | ac_cpp='$CPP $CPPFLAGS' |
4859 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4860 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4861 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4862 | |
4863 | |
dd184caf |
4864 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4865 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
d9898ee8 |
4866 | if test "${ac_cv_header_stdc+set}" = set; then |
4867 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4868 | else |
4869 | cat >conftest.$ac_ext <<_ACEOF |
4870 | /* confdefs.h. */ |
4871 | _ACEOF |
4872 | cat confdefs.h >>conftest.$ac_ext |
4873 | cat >>conftest.$ac_ext <<_ACEOF |
4874 | /* end confdefs.h. */ |
4875 | #include <stdlib.h> |
4876 | #include <stdarg.h> |
4877 | #include <string.h> |
4878 | #include <float.h> |
4879 | |
4880 | int |
4881 | main () |
4882 | { |
4883 | |
4884 | ; |
4885 | return 0; |
4886 | } |
4887 | _ACEOF |
4888 | rm -f conftest.$ac_objext |
dd184caf |
4889 | if { (ac_try="$ac_compile" |
4890 | case "(($ac_try" in |
4891 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4892 | *) ac_try_echo=$ac_try;; |
4893 | esac |
4894 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4895 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
4896 | ac_status=$? |
4897 | grep -v '^ *+' conftest.er1 >conftest.err |
4898 | rm -f conftest.er1 |
4899 | cat conftest.err >&5 |
4900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
4901 | (exit $ac_status); } && { |
4902 | test -z "$ac_c_werror_flag" || |
4903 | test ! -s conftest.err |
4904 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
4905 | ac_cv_header_stdc=yes |
4906 | else |
4907 | echo "$as_me: failed program was:" >&5 |
4908 | sed 's/^/| /' conftest.$ac_ext >&5 |
4909 | |
dd184caf |
4910 | ac_cv_header_stdc=no |
d9898ee8 |
4911 | fi |
dd184caf |
4912 | |
4913 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
4914 | |
4915 | if test $ac_cv_header_stdc = yes; then |
4916 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
4917 | cat >conftest.$ac_ext <<_ACEOF |
4918 | /* confdefs.h. */ |
4919 | _ACEOF |
4920 | cat confdefs.h >>conftest.$ac_ext |
4921 | cat >>conftest.$ac_ext <<_ACEOF |
4922 | /* end confdefs.h. */ |
4923 | #include <string.h> |
4924 | |
4925 | _ACEOF |
4926 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4927 | $EGREP "memchr" >/dev/null 2>&1; then |
4928 | : |
4929 | else |
4930 | ac_cv_header_stdc=no |
4931 | fi |
4932 | rm -f conftest* |
4933 | |
4934 | fi |
4935 | |
4936 | if test $ac_cv_header_stdc = yes; then |
4937 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
4938 | cat >conftest.$ac_ext <<_ACEOF |
4939 | /* confdefs.h. */ |
4940 | _ACEOF |
4941 | cat confdefs.h >>conftest.$ac_ext |
4942 | cat >>conftest.$ac_ext <<_ACEOF |
4943 | /* end confdefs.h. */ |
4944 | #include <stdlib.h> |
4945 | |
4946 | _ACEOF |
4947 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4948 | $EGREP "free" >/dev/null 2>&1; then |
4949 | : |
4950 | else |
4951 | ac_cv_header_stdc=no |
4952 | fi |
4953 | rm -f conftest* |
4954 | |
4955 | fi |
4956 | |
4957 | if test $ac_cv_header_stdc = yes; then |
4958 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
4959 | if test "$cross_compiling" = yes; then |
4960 | : |
4961 | else |
4962 | cat >conftest.$ac_ext <<_ACEOF |
4963 | /* confdefs.h. */ |
4964 | _ACEOF |
4965 | cat confdefs.h >>conftest.$ac_ext |
4966 | cat >>conftest.$ac_ext <<_ACEOF |
4967 | /* end confdefs.h. */ |
4968 | #include <ctype.h> |
dd184caf |
4969 | #include <stdlib.h> |
d9898ee8 |
4970 | #if ((' ' & 0x0FF) == 0x020) |
4971 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
4972 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
4973 | #else |
4974 | # define ISLOWER(c) \ |
4975 | (('a' <= (c) && (c) <= 'i') \ |
4976 | || ('j' <= (c) && (c) <= 'r') \ |
4977 | || ('s' <= (c) && (c) <= 'z')) |
4978 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
4979 | #endif |
4980 | |
4981 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
4982 | int |
4983 | main () |
4984 | { |
4985 | int i; |
4986 | for (i = 0; i < 256; i++) |
4987 | if (XOR (islower (i), ISLOWER (i)) |
4988 | || toupper (i) != TOUPPER (i)) |
dd184caf |
4989 | return 2; |
4990 | return 0; |
d9898ee8 |
4991 | } |
4992 | _ACEOF |
4993 | rm -f conftest$ac_exeext |
dd184caf |
4994 | if { (ac_try="$ac_link" |
4995 | case "(($ac_try" in |
4996 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4997 | *) ac_try_echo=$ac_try;; |
4998 | esac |
4999 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5000 | (eval "$ac_link") 2>&5 |
d9898ee8 |
5001 | ac_status=$? |
5002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5003 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
dd184caf |
5004 | { (case "(($ac_try" in |
5005 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5006 | *) ac_try_echo=$ac_try;; |
5007 | esac |
5008 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5009 | (eval "$ac_try") 2>&5 |
d9898ee8 |
5010 | ac_status=$? |
5011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5012 | (exit $ac_status); }; }; then |
5013 | : |
5014 | else |
5015 | echo "$as_me: program exited with status $ac_status" >&5 |
5016 | echo "$as_me: failed program was:" >&5 |
5017 | sed 's/^/| /' conftest.$ac_ext >&5 |
5018 | |
5019 | ( exit $ac_status ) |
5020 | ac_cv_header_stdc=no |
5021 | fi |
dd184caf |
5022 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
5023 | fi |
dd184caf |
5024 | |
5025 | |
d9898ee8 |
5026 | fi |
5027 | fi |
dd184caf |
5028 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
5029 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
d9898ee8 |
5030 | if test $ac_cv_header_stdc = yes; then |
5031 | |
5032 | cat >>confdefs.h <<\_ACEOF |
5033 | #define STDC_HEADERS 1 |
5034 | _ACEOF |
5035 | |
5036 | fi |
5037 | |
5038 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
5039 | |
5040 | |
5041 | |
5042 | |
5043 | |
5044 | |
5045 | |
5046 | |
5047 | |
5048 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
5049 | inttypes.h stdint.h unistd.h |
5050 | do |
5051 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
dd184caf |
5052 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5053 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
5054 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
5055 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5056 | else |
5057 | cat >conftest.$ac_ext <<_ACEOF |
5058 | /* confdefs.h. */ |
5059 | _ACEOF |
5060 | cat confdefs.h >>conftest.$ac_ext |
5061 | cat >>conftest.$ac_ext <<_ACEOF |
5062 | /* end confdefs.h. */ |
5063 | $ac_includes_default |
5064 | |
5065 | #include <$ac_header> |
5066 | _ACEOF |
5067 | rm -f conftest.$ac_objext |
dd184caf |
5068 | if { (ac_try="$ac_compile" |
5069 | case "(($ac_try" in |
5070 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5071 | *) ac_try_echo=$ac_try;; |
5072 | esac |
5073 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5074 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
5075 | ac_status=$? |
5076 | grep -v '^ *+' conftest.er1 >conftest.err |
5077 | rm -f conftest.er1 |
5078 | cat conftest.err >&5 |
5079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
5080 | (exit $ac_status); } && { |
5081 | test -z "$ac_c_werror_flag" || |
5082 | test ! -s conftest.err |
5083 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
5084 | eval "$as_ac_Header=yes" |
5085 | else |
5086 | echo "$as_me: failed program was:" >&5 |
5087 | sed 's/^/| /' conftest.$ac_ext >&5 |
5088 | |
dd184caf |
5089 | eval "$as_ac_Header=no" |
d9898ee8 |
5090 | fi |
dd184caf |
5091 | |
5092 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
5093 | fi |
dd184caf |
5094 | ac_res=`eval echo '${'$as_ac_Header'}'` |
5095 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
5096 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
5097 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
5098 | cat >>confdefs.h <<_ACEOF |
5099 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
5100 | _ACEOF |
5101 | |
5102 | fi |
5103 | |
5104 | done |
5105 | |
5106 | |
5107 | |
5108 | for ac_header in dlfcn.h |
5109 | do |
5110 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
dd184caf |
5111 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5112 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5113 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
5114 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
5115 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5116 | fi |
dd184caf |
5117 | ac_res=`eval echo '${'$as_ac_Header'}'` |
5118 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
5119 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
5120 | else |
5121 | # Is the header compilable? |
dd184caf |
5122 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5123 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
d9898ee8 |
5124 | cat >conftest.$ac_ext <<_ACEOF |
5125 | /* confdefs.h. */ |
5126 | _ACEOF |
5127 | cat confdefs.h >>conftest.$ac_ext |
5128 | cat >>conftest.$ac_ext <<_ACEOF |
5129 | /* end confdefs.h. */ |
5130 | $ac_includes_default |
5131 | #include <$ac_header> |
5132 | _ACEOF |
5133 | rm -f conftest.$ac_objext |
dd184caf |
5134 | if { (ac_try="$ac_compile" |
5135 | case "(($ac_try" in |
5136 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5137 | *) ac_try_echo=$ac_try;; |
5138 | esac |
5139 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5140 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
5141 | ac_status=$? |
5142 | grep -v '^ *+' conftest.er1 >conftest.err |
5143 | rm -f conftest.er1 |
5144 | cat conftest.err >&5 |
5145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
5146 | (exit $ac_status); } && { |
5147 | test -z "$ac_c_werror_flag" || |
5148 | test ! -s conftest.err |
5149 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
5150 | ac_header_compiler=yes |
5151 | else |
5152 | echo "$as_me: failed program was:" >&5 |
5153 | sed 's/^/| /' conftest.$ac_ext >&5 |
5154 | |
dd184caf |
5155 | ac_header_compiler=no |
d9898ee8 |
5156 | fi |
dd184caf |
5157 | |
5158 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5159 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5160 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
d9898ee8 |
5161 | |
5162 | # Is the header present? |
dd184caf |
5163 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5164 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
d9898ee8 |
5165 | cat >conftest.$ac_ext <<_ACEOF |
5166 | /* confdefs.h. */ |
5167 | _ACEOF |
5168 | cat confdefs.h >>conftest.$ac_ext |
5169 | cat >>conftest.$ac_ext <<_ACEOF |
5170 | /* end confdefs.h. */ |
5171 | #include <$ac_header> |
5172 | _ACEOF |
dd184caf |
5173 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5174 | case "(($ac_try" in |
5175 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5176 | *) ac_try_echo=$ac_try;; |
5177 | esac |
5178 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5179 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
5180 | ac_status=$? |
5181 | grep -v '^ *+' conftest.er1 >conftest.err |
5182 | rm -f conftest.er1 |
5183 | cat conftest.err >&5 |
5184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
5185 | (exit $ac_status); } >/dev/null && { |
5186 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
5187 | test ! -s conftest.err |
5188 | }; then |
d9898ee8 |
5189 | ac_header_preproc=yes |
5190 | else |
5191 | echo "$as_me: failed program was:" >&5 |
5192 | sed 's/^/| /' conftest.$ac_ext >&5 |
5193 | |
5194 | ac_header_preproc=no |
5195 | fi |
dd184caf |
5196 | |
d9898ee8 |
5197 | rm -f conftest.err conftest.$ac_ext |
dd184caf |
5198 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5199 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
d9898ee8 |
5200 | |
5201 | # So? What about this header? |
5202 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5203 | yes:no: ) |
5204 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5205 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
5206 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
5207 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
5208 | ac_header_preproc=yes |
5209 | ;; |
5210 | no:yes:* ) |
5211 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5212 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
5213 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
5214 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
5215 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
5216 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
5217 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
5218 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
5219 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
5220 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
5221 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
5222 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
dd184caf |
5223 | ( cat <<\_ASBOX |
d9898ee8 |
5224 | ## -------------------------------------------------- ## |
5225 | ## Report this to courier-users@lists.sourceforge.net ## |
5226 | ## -------------------------------------------------- ## |
5227 | _ASBOX |
dd184caf |
5228 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
d9898ee8 |
5229 | ;; |
5230 | esac |
dd184caf |
5231 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5232 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
5233 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
5234 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5235 | else |
5236 | eval "$as_ac_Header=\$ac_header_preproc" |
5237 | fi |
dd184caf |
5238 | ac_res=`eval echo '${'$as_ac_Header'}'` |
5239 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
5240 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
5241 | |
5242 | fi |
5243 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
5244 | cat >>confdefs.h <<_ACEOF |
5245 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
5246 | _ACEOF |
5247 | |
5248 | fi |
5249 | |
5250 | done |
5251 | |
dd184caf |
5252 | ac_ext=cpp |
d9898ee8 |
5253 | ac_cpp='$CXXCPP $CPPFLAGS' |
5254 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5255 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5256 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
dd184caf |
5257 | if test -z "$CXX"; then |
5258 | if test -n "$CCC"; then |
5259 | CXX=$CCC |
5260 | else |
5261 | if test -n "$ac_tool_prefix"; then |
5262 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
d9898ee8 |
5263 | do |
5264 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
5265 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
dd184caf |
5266 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5267 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
5268 | if test "${ac_cv_prog_CXX+set}" = set; then |
5269 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5270 | else |
5271 | if test -n "$CXX"; then |
5272 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
5273 | else |
5274 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5275 | for as_dir in $PATH |
5276 | do |
5277 | IFS=$as_save_IFS |
5278 | test -z "$as_dir" && as_dir=. |
5279 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
5280 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
5281 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
5282 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5283 | break 2 |
5284 | fi |
5285 | done |
5286 | done |
dd184caf |
5287 | IFS=$as_save_IFS |
d9898ee8 |
5288 | |
5289 | fi |
5290 | fi |
5291 | CXX=$ac_cv_prog_CXX |
5292 | if test -n "$CXX"; then |
dd184caf |
5293 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
5294 | echo "${ECHO_T}$CXX" >&6; } |
d9898ee8 |
5295 | else |
dd184caf |
5296 | { echo "$as_me:$LINENO: result: no" >&5 |
5297 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
5298 | fi |
5299 | |
dd184caf |
5300 | |
d9898ee8 |
5301 | test -n "$CXX" && break |
5302 | done |
5303 | fi |
5304 | if test -z "$CXX"; then |
5305 | ac_ct_CXX=$CXX |
dd184caf |
5306 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
d9898ee8 |
5307 | do |
5308 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
5309 | set dummy $ac_prog; ac_word=$2 |
dd184caf |
5310 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5311 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
5312 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
5313 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5314 | else |
5315 | if test -n "$ac_ct_CXX"; then |
5316 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
5317 | else |
5318 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5319 | for as_dir in $PATH |
5320 | do |
5321 | IFS=$as_save_IFS |
5322 | test -z "$as_dir" && as_dir=. |
5323 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
5324 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
5325 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
5326 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5327 | break 2 |
5328 | fi |
5329 | done |
5330 | done |
dd184caf |
5331 | IFS=$as_save_IFS |
d9898ee8 |
5332 | |
5333 | fi |
5334 | fi |
5335 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
5336 | if test -n "$ac_ct_CXX"; then |
dd184caf |
5337 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
5338 | echo "${ECHO_T}$ac_ct_CXX" >&6; } |
d9898ee8 |
5339 | else |
dd184caf |
5340 | { echo "$as_me:$LINENO: result: no" >&5 |
5341 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
5342 | fi |
5343 | |
dd184caf |
5344 | |
d9898ee8 |
5345 | test -n "$ac_ct_CXX" && break |
5346 | done |
d9898ee8 |
5347 | |
dd184caf |
5348 | if test "x$ac_ct_CXX" = x; then |
5349 | CXX="g++" |
5350 | else |
5351 | case $cross_compiling:$ac_tool_warned in |
5352 | yes:) |
5353 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
5354 | whose name does not start with the host triplet. If you think this |
5355 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
5356 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
5357 | whose name does not start with the host triplet. If you think this |
5358 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
5359 | ac_tool_warned=yes ;; |
5360 | esac |
5361 | CXX=$ac_ct_CXX |
5362 | fi |
d9898ee8 |
5363 | fi |
5364 | |
dd184caf |
5365 | fi |
5366 | fi |
d9898ee8 |
5367 | # Provide some information about the compiler. |
dd184caf |
5368 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
d9898ee8 |
5369 | ac_compiler=`set X $ac_compile; echo $2` |
dd184caf |
5370 | { (ac_try="$ac_compiler --version >&5" |
5371 | case "(($ac_try" in |
5372 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5373 | *) ac_try_echo=$ac_try;; |
5374 | esac |
5375 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5376 | (eval "$ac_compiler --version >&5") 2>&5 |
d9898ee8 |
5377 | ac_status=$? |
5378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5379 | (exit $ac_status); } |
dd184caf |
5380 | { (ac_try="$ac_compiler -v >&5" |
5381 | case "(($ac_try" in |
5382 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5383 | *) ac_try_echo=$ac_try;; |
5384 | esac |
5385 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5386 | (eval "$ac_compiler -v >&5") 2>&5 |
d9898ee8 |
5387 | ac_status=$? |
5388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5389 | (exit $ac_status); } |
dd184caf |
5390 | { (ac_try="$ac_compiler -V >&5" |
5391 | case "(($ac_try" in |
5392 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5393 | *) ac_try_echo=$ac_try;; |
5394 | esac |
5395 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5396 | (eval "$ac_compiler -V >&5") 2>&5 |
d9898ee8 |
5397 | ac_status=$? |
5398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5399 | (exit $ac_status); } |
5400 | |
dd184caf |
5401 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
5402 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
d9898ee8 |
5403 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
5404 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5405 | else |
5406 | cat >conftest.$ac_ext <<_ACEOF |
5407 | /* confdefs.h. */ |
5408 | _ACEOF |
5409 | cat confdefs.h >>conftest.$ac_ext |
5410 | cat >>conftest.$ac_ext <<_ACEOF |
5411 | /* end confdefs.h. */ |
5412 | |
5413 | int |
5414 | main () |
5415 | { |
5416 | #ifndef __GNUC__ |
5417 | choke me |
5418 | #endif |
5419 | |
5420 | ; |
5421 | return 0; |
5422 | } |
5423 | _ACEOF |
5424 | rm -f conftest.$ac_objext |
dd184caf |
5425 | if { (ac_try="$ac_compile" |
5426 | case "(($ac_try" in |
5427 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5428 | *) ac_try_echo=$ac_try;; |
5429 | esac |
5430 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5431 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
5432 | ac_status=$? |
5433 | grep -v '^ *+' conftest.er1 >conftest.err |
5434 | rm -f conftest.er1 |
5435 | cat conftest.err >&5 |
5436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
5437 | (exit $ac_status); } && { |
5438 | test -z "$ac_cxx_werror_flag" || |
5439 | test ! -s conftest.err |
5440 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
5441 | ac_compiler_gnu=yes |
5442 | else |
5443 | echo "$as_me: failed program was:" >&5 |
5444 | sed 's/^/| /' conftest.$ac_ext >&5 |
5445 | |
dd184caf |
5446 | ac_compiler_gnu=no |
d9898ee8 |
5447 | fi |
dd184caf |
5448 | |
5449 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
5450 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
5451 | |
5452 | fi |
dd184caf |
5453 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
5454 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
d9898ee8 |
5455 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
5456 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
5457 | ac_save_CXXFLAGS=$CXXFLAGS |
dd184caf |
5458 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
5459 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
d9898ee8 |
5460 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
5461 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5462 | else |
dd184caf |
5463 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
5464 | ac_cxx_werror_flag=yes |
5465 | ac_cv_prog_cxx_g=no |
5466 | CXXFLAGS="-g" |
5467 | cat >conftest.$ac_ext <<_ACEOF |
d9898ee8 |
5468 | /* confdefs.h. */ |
5469 | _ACEOF |
5470 | cat confdefs.h >>conftest.$ac_ext |
5471 | cat >>conftest.$ac_ext <<_ACEOF |
5472 | /* end confdefs.h. */ |
5473 | |
5474 | int |
5475 | main () |
5476 | { |
5477 | |
5478 | ; |
5479 | return 0; |
5480 | } |
5481 | _ACEOF |
5482 | rm -f conftest.$ac_objext |
dd184caf |
5483 | if { (ac_try="$ac_compile" |
5484 | case "(($ac_try" in |
5485 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5486 | *) ac_try_echo=$ac_try;; |
5487 | esac |
5488 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5489 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
5490 | ac_status=$? |
5491 | grep -v '^ *+' conftest.er1 >conftest.err |
5492 | rm -f conftest.er1 |
5493 | cat conftest.err >&5 |
5494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
5495 | (exit $ac_status); } && { |
5496 | test -z "$ac_cxx_werror_flag" || |
5497 | test ! -s conftest.err |
5498 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
5499 | ac_cv_prog_cxx_g=yes |
5500 | else |
5501 | echo "$as_me: failed program was:" >&5 |
5502 | sed 's/^/| /' conftest.$ac_ext >&5 |
5503 | |
dd184caf |
5504 | CXXFLAGS="" |
5505 | cat >conftest.$ac_ext <<_ACEOF |
d9898ee8 |
5506 | /* confdefs.h. */ |
5507 | _ACEOF |
5508 | cat confdefs.h >>conftest.$ac_ext |
5509 | cat >>conftest.$ac_ext <<_ACEOF |
5510 | /* end confdefs.h. */ |
dd184caf |
5511 | |
d9898ee8 |
5512 | int |
5513 | main () |
5514 | { |
dd184caf |
5515 | |
d9898ee8 |
5516 | ; |
5517 | return 0; |
5518 | } |
5519 | _ACEOF |
5520 | rm -f conftest.$ac_objext |
dd184caf |
5521 | if { (ac_try="$ac_compile" |
5522 | case "(($ac_try" in |
5523 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5524 | *) ac_try_echo=$ac_try;; |
5525 | esac |
5526 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5527 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
5528 | ac_status=$? |
5529 | grep -v '^ *+' conftest.er1 >conftest.err |
5530 | rm -f conftest.er1 |
5531 | cat conftest.err >&5 |
5532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
5533 | (exit $ac_status); } && { |
5534 | test -z "$ac_cxx_werror_flag" || |
5535 | test ! -s conftest.err |
5536 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
5537 | : |
5538 | else |
5539 | echo "$as_me: failed program was:" >&5 |
5540 | sed 's/^/| /' conftest.$ac_ext >&5 |
5541 | |
dd184caf |
5542 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
5543 | CXXFLAGS="-g" |
5544 | cat >conftest.$ac_ext <<_ACEOF |
d9898ee8 |
5545 | /* confdefs.h. */ |
5546 | _ACEOF |
5547 | cat confdefs.h >>conftest.$ac_ext |
5548 | cat >>conftest.$ac_ext <<_ACEOF |
5549 | /* end confdefs.h. */ |
dd184caf |
5550 | |
d9898ee8 |
5551 | int |
5552 | main () |
5553 | { |
dd184caf |
5554 | |
d9898ee8 |
5555 | ; |
5556 | return 0; |
5557 | } |
5558 | _ACEOF |
5559 | rm -f conftest.$ac_objext |
dd184caf |
5560 | if { (ac_try="$ac_compile" |
5561 | case "(($ac_try" in |
5562 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5563 | *) ac_try_echo=$ac_try;; |
5564 | esac |
5565 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5566 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
5567 | ac_status=$? |
5568 | grep -v '^ *+' conftest.er1 >conftest.err |
5569 | rm -f conftest.er1 |
5570 | cat conftest.err >&5 |
5571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
5572 | (exit $ac_status); } && { |
5573 | test -z "$ac_cxx_werror_flag" || |
5574 | test ! -s conftest.err |
5575 | } && test -s conftest.$ac_objext; then |
5576 | ac_cv_prog_cxx_g=yes |
d9898ee8 |
5577 | else |
5578 | echo "$as_me: failed program was:" >&5 |
5579 | sed 's/^/| /' conftest.$ac_ext >&5 |
5580 | |
dd184caf |
5581 | |
d9898ee8 |
5582 | fi |
dd184caf |
5583 | |
5584 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
5585 | fi |
5586 | |
dd184caf |
5587 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5588 | fi |
5589 | |
5590 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5591 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
5592 | fi |
5593 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
5594 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
5595 | if test "$ac_test_CXXFLAGS" = set; then |
5596 | CXXFLAGS=$ac_save_CXXFLAGS |
5597 | elif test $ac_cv_prog_cxx_g = yes; then |
5598 | if test "$GXX" = yes; then |
5599 | CXXFLAGS="-g -O2" |
5600 | else |
5601 | CXXFLAGS="-g" |
5602 | fi |
5603 | else |
5604 | if test "$GXX" = yes; then |
5605 | CXXFLAGS="-O2" |
5606 | else |
5607 | CXXFLAGS= |
5608 | fi |
5609 | fi |
5610 | ac_ext=cpp |
d9898ee8 |
5611 | ac_cpp='$CXXCPP $CPPFLAGS' |
5612 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5613 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5614 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
5615 | |
5616 | depcc="$CXX" am_compiler_list= |
5617 | |
dd184caf |
5618 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
5619 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } |
d9898ee8 |
5620 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
5621 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5622 | else |
5623 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
5624 | # We make a subdir and do the tests there. Otherwise we can end up |
5625 | # making bogus files that we don't know about and never remove. For |
5626 | # instance it was reported that on HP-UX the gcc test will end up |
5627 | # making a dummy file named `D' -- because `-MD' means `put the output |
5628 | # in D'. |
5629 | mkdir conftest.dir |
5630 | # Copy depcomp to subdir because otherwise we won't find it if we're |
5631 | # using a relative directory. |
5632 | cp "$am_depcomp" conftest.dir |
5633 | cd conftest.dir |
5634 | # We will build objects and dependencies in a subdirectory because |
5635 | # it helps to detect inapplicable dependency modes. For instance |
5636 | # both Tru64's cc and ICC support -MD to output dependencies as a |
5637 | # side effect of compilation, but ICC will put the dependencies in |
5638 | # the current directory while Tru64 will put them in the object |
5639 | # directory. |
5640 | mkdir sub |
5641 | |
5642 | am_cv_CXX_dependencies_compiler_type=none |
5643 | if test "$am_compiler_list" = ""; then |
5644 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
5645 | fi |
5646 | for depmode in $am_compiler_list; do |
5647 | # Setup a source with many dependencies, because some compilers |
5648 | # like to wrap large dependency lists on column 80 (with \), and |
5649 | # we should not choose a depcomp mode which is confused by this. |
5650 | # |
5651 | # We need to recreate these files for each test, as the compiler may |
5652 | # overwrite some of them when testing with obscure command lines. |
5653 | # This happens at least with the AIX C compiler. |
5654 | : > sub/conftest.c |
5655 | for i in 1 2 3 4 5 6; do |
5656 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
5657 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
5658 | # Solaris 8's {/usr,}/bin/sh. |
5659 | touch sub/conftst$i.h |
5660 | done |
5661 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
5662 | |
5663 | case $depmode in |
5664 | nosideeffect) |
5665 | # after this tag, mechanisms are not by side-effect, so they'll |
5666 | # only be used when explicitly requested |
5667 | if test "x$enable_dependency_tracking" = xyes; then |
5668 | continue |
5669 | else |
5670 | break |
5671 | fi |
5672 | ;; |
5673 | none) break ;; |
5674 | esac |
5675 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
5676 | # mode. It turns out that the SunPro C++ compiler does not properly |
5677 | # handle `-M -o', and we need to detect this. |
5678 | if depmode=$depmode \ |
5679 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
5680 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
5681 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
5682 | >/dev/null 2>conftest.err && |
dd184caf |
5683 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
d9898ee8 |
5684 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
5685 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
5686 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
5687 | # icc doesn't choke on unknown options, it will just issue warnings |
5688 | # or remarks (even with -Werror). So we grep stderr for any message |
5689 | # that says an option was ignored or not supported. |
5690 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
5691 | # icc: Command line warning: ignoring option '-M'; no argument required |
5692 | # The diagnosis changed in icc 8.0: |
5693 | # icc: Command line remark: option '-MP' not supported |
5694 | if (grep 'ignoring option' conftest.err || |
5695 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
5696 | am_cv_CXX_dependencies_compiler_type=$depmode |
5697 | break |
5698 | fi |
5699 | fi |
5700 | done |
5701 | |
5702 | cd .. |
5703 | rm -rf conftest.dir |
5704 | else |
5705 | am_cv_CXX_dependencies_compiler_type=none |
5706 | fi |
5707 | |
5708 | fi |
dd184caf |
5709 | { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
5710 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } |
d9898ee8 |
5711 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
5712 | |
dd184caf |
5713 | if |
d9898ee8 |
5714 | test "x$enable_dependency_tracking" != xno \ |
5715 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
5716 | am__fastdepCXX_TRUE= |
5717 | am__fastdepCXX_FALSE='#' |
5718 | else |
5719 | am__fastdepCXX_TRUE='#' |
5720 | am__fastdepCXX_FALSE= |
5721 | fi |
5722 | |
5723 | |
5724 | |
5725 | |
5726 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
5727 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
5728 | (test "X$CXX" != "Xg++"))) ; then |
dd184caf |
5729 | ac_ext=cpp |
d9898ee8 |
5730 | ac_cpp='$CXXCPP $CPPFLAGS' |
5731 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5732 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5733 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
dd184caf |
5734 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
5735 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } |
d9898ee8 |
5736 | if test -z "$CXXCPP"; then |
5737 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
5738 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5739 | else |
5740 | # Double quotes because CXXCPP needs to be expanded |
5741 | for CXXCPP in "$CXX -E" "/lib/cpp" |
5742 | do |
5743 | ac_preproc_ok=false |
5744 | for ac_cxx_preproc_warn_flag in '' yes |
5745 | do |
5746 | # Use a header file that comes with gcc, so configuring glibc |
5747 | # with a fresh cross-compiler works. |
5748 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
5749 | # <limits.h> exists even on freestanding compilers. |
5750 | # On the NeXT, cc -E runs the code through the compiler's parser, |
5751 | # not just through cpp. "Syntax error" is here to catch this case. |
5752 | cat >conftest.$ac_ext <<_ACEOF |
5753 | /* confdefs.h. */ |
5754 | _ACEOF |
5755 | cat confdefs.h >>conftest.$ac_ext |
5756 | cat >>conftest.$ac_ext <<_ACEOF |
5757 | /* end confdefs.h. */ |
5758 | #ifdef __STDC__ |
5759 | # include <limits.h> |
5760 | #else |
5761 | # include <assert.h> |
5762 | #endif |
5763 | Syntax error |
5764 | _ACEOF |
dd184caf |
5765 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
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_cpp conftest.$ac_ext") 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); } >/dev/null && { |
5778 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
5779 | test ! -s conftest.err |
5780 | }; then |
d9898ee8 |
5781 | : |
5782 | else |
5783 | echo "$as_me: failed program was:" >&5 |
5784 | sed 's/^/| /' conftest.$ac_ext >&5 |
5785 | |
5786 | # Broken: fails on valid input. |
5787 | continue |
5788 | fi |
dd184caf |
5789 | |
d9898ee8 |
5790 | rm -f conftest.err conftest.$ac_ext |
5791 | |
dd184caf |
5792 | # OK, works on sane cases. Now check whether nonexistent headers |
d9898ee8 |
5793 | # can be detected and how. |
5794 | cat >conftest.$ac_ext <<_ACEOF |
5795 | /* confdefs.h. */ |
5796 | _ACEOF |
5797 | cat confdefs.h >>conftest.$ac_ext |
5798 | cat >>conftest.$ac_ext <<_ACEOF |
5799 | /* end confdefs.h. */ |
5800 | #include <ac_nonexistent.h> |
5801 | _ACEOF |
dd184caf |
5802 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5803 | case "(($ac_try" in |
5804 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5805 | *) ac_try_echo=$ac_try;; |
5806 | esac |
5807 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5808 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
5809 | ac_status=$? |
5810 | grep -v '^ *+' conftest.er1 >conftest.err |
5811 | rm -f conftest.er1 |
5812 | cat conftest.err >&5 |
5813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
5814 | (exit $ac_status); } >/dev/null && { |
5815 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
5816 | test ! -s conftest.err |
5817 | }; then |
d9898ee8 |
5818 | # Broken: success on invalid input. |
5819 | continue |
5820 | else |
5821 | echo "$as_me: failed program was:" >&5 |
5822 | sed 's/^/| /' conftest.$ac_ext >&5 |
5823 | |
5824 | # Passes both tests. |
5825 | ac_preproc_ok=: |
5826 | break |
5827 | fi |
dd184caf |
5828 | |
d9898ee8 |
5829 | rm -f conftest.err conftest.$ac_ext |
5830 | |
5831 | done |
5832 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
5833 | rm -f conftest.err conftest.$ac_ext |
5834 | if $ac_preproc_ok; then |
5835 | break |
5836 | fi |
5837 | |
5838 | done |
5839 | ac_cv_prog_CXXCPP=$CXXCPP |
5840 | |
5841 | fi |
5842 | CXXCPP=$ac_cv_prog_CXXCPP |
5843 | else |
5844 | ac_cv_prog_CXXCPP=$CXXCPP |
5845 | fi |
dd184caf |
5846 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
5847 | echo "${ECHO_T}$CXXCPP" >&6; } |
d9898ee8 |
5848 | ac_preproc_ok=false |
5849 | for ac_cxx_preproc_warn_flag in '' yes |
5850 | do |
5851 | # Use a header file that comes with gcc, so configuring glibc |
5852 | # with a fresh cross-compiler works. |
5853 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
5854 | # <limits.h> exists even on freestanding compilers. |
5855 | # On the NeXT, cc -E runs the code through the compiler's parser, |
5856 | # not just through cpp. "Syntax error" is here to catch this case. |
5857 | cat >conftest.$ac_ext <<_ACEOF |
5858 | /* confdefs.h. */ |
5859 | _ACEOF |
5860 | cat confdefs.h >>conftest.$ac_ext |
5861 | cat >>conftest.$ac_ext <<_ACEOF |
5862 | /* end confdefs.h. */ |
5863 | #ifdef __STDC__ |
5864 | # include <limits.h> |
5865 | #else |
5866 | # include <assert.h> |
5867 | #endif |
5868 | Syntax error |
5869 | _ACEOF |
dd184caf |
5870 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5871 | case "(($ac_try" in |
5872 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5873 | *) ac_try_echo=$ac_try;; |
5874 | esac |
5875 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5876 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
5877 | ac_status=$? |
5878 | grep -v '^ *+' conftest.er1 >conftest.err |
5879 | rm -f conftest.er1 |
5880 | cat conftest.err >&5 |
5881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
5882 | (exit $ac_status); } >/dev/null && { |
5883 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
5884 | test ! -s conftest.err |
5885 | }; then |
d9898ee8 |
5886 | : |
5887 | else |
5888 | echo "$as_me: failed program was:" >&5 |
5889 | sed 's/^/| /' conftest.$ac_ext >&5 |
5890 | |
5891 | # Broken: fails on valid input. |
5892 | continue |
5893 | fi |
dd184caf |
5894 | |
d9898ee8 |
5895 | rm -f conftest.err conftest.$ac_ext |
5896 | |
dd184caf |
5897 | # OK, works on sane cases. Now check whether nonexistent headers |
d9898ee8 |
5898 | # can be detected and how. |
5899 | cat >conftest.$ac_ext <<_ACEOF |
5900 | /* confdefs.h. */ |
5901 | _ACEOF |
5902 | cat confdefs.h >>conftest.$ac_ext |
5903 | cat >>conftest.$ac_ext <<_ACEOF |
5904 | /* end confdefs.h. */ |
5905 | #include <ac_nonexistent.h> |
5906 | _ACEOF |
dd184caf |
5907 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5908 | case "(($ac_try" in |
5909 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5910 | *) ac_try_echo=$ac_try;; |
5911 | esac |
5912 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5913 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
5914 | ac_status=$? |
5915 | grep -v '^ *+' conftest.er1 >conftest.err |
5916 | rm -f conftest.er1 |
5917 | cat conftest.err >&5 |
5918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
5919 | (exit $ac_status); } >/dev/null && { |
5920 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
5921 | test ! -s conftest.err |
5922 | }; then |
d9898ee8 |
5923 | # Broken: success on invalid input. |
5924 | continue |
5925 | else |
5926 | echo "$as_me: failed program was:" >&5 |
5927 | sed 's/^/| /' conftest.$ac_ext >&5 |
5928 | |
5929 | # Passes both tests. |
5930 | ac_preproc_ok=: |
5931 | break |
5932 | fi |
dd184caf |
5933 | |
d9898ee8 |
5934 | rm -f conftest.err conftest.$ac_ext |
5935 | |
5936 | done |
5937 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
5938 | rm -f conftest.err conftest.$ac_ext |
5939 | if $ac_preproc_ok; then |
5940 | : |
5941 | else |
5942 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
5943 | See \`config.log' for more details." >&5 |
5944 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
5945 | See \`config.log' for more details." >&2;} |
5946 | { (exit 1); exit 1; }; } |
5947 | fi |
5948 | |
dd184caf |
5949 | ac_ext=cpp |
d9898ee8 |
5950 | ac_cpp='$CXXCPP $CPPFLAGS' |
5951 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5952 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5953 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
5954 | |
5955 | fi |
5956 | |
5957 | |
5958 | ac_ext=f |
5959 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
5960 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5961 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
5962 | if test -n "$ac_tool_prefix"; then |
dd184caf |
5963 | 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 |
5964 | do |
5965 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
5966 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
dd184caf |
5967 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5968 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
5969 | if test "${ac_cv_prog_F77+set}" = set; then |
5970 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5971 | else |
5972 | if test -n "$F77"; then |
5973 | ac_cv_prog_F77="$F77" # Let the user override the test. |
5974 | else |
5975 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5976 | for as_dir in $PATH |
5977 | do |
5978 | IFS=$as_save_IFS |
5979 | test -z "$as_dir" && as_dir=. |
5980 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
5981 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
5982 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
5983 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5984 | break 2 |
5985 | fi |
5986 | done |
5987 | done |
dd184caf |
5988 | IFS=$as_save_IFS |
d9898ee8 |
5989 | |
5990 | fi |
5991 | fi |
5992 | F77=$ac_cv_prog_F77 |
5993 | if test -n "$F77"; then |
dd184caf |
5994 | { echo "$as_me:$LINENO: result: $F77" >&5 |
5995 | echo "${ECHO_T}$F77" >&6; } |
d9898ee8 |
5996 | else |
dd184caf |
5997 | { echo "$as_me:$LINENO: result: no" >&5 |
5998 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
5999 | fi |
6000 | |
dd184caf |
6001 | |
d9898ee8 |
6002 | test -n "$F77" && break |
6003 | done |
6004 | fi |
6005 | if test -z "$F77"; then |
6006 | ac_ct_F77=$F77 |
dd184caf |
6007 | 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 |
6008 | do |
6009 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
6010 | set dummy $ac_prog; ac_word=$2 |
dd184caf |
6011 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6012 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
6013 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
6014 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6015 | else |
6016 | if test -n "$ac_ct_F77"; then |
6017 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
6018 | else |
6019 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6020 | for as_dir in $PATH |
6021 | do |
6022 | IFS=$as_save_IFS |
6023 | test -z "$as_dir" && as_dir=. |
6024 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
6025 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
6026 | ac_cv_prog_ac_ct_F77="$ac_prog" |
6027 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6028 | break 2 |
6029 | fi |
6030 | done |
6031 | done |
dd184caf |
6032 | IFS=$as_save_IFS |
d9898ee8 |
6033 | |
6034 | fi |
6035 | fi |
6036 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
6037 | if test -n "$ac_ct_F77"; then |
dd184caf |
6038 | { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
6039 | echo "${ECHO_T}$ac_ct_F77" >&6; } |
d9898ee8 |
6040 | else |
dd184caf |
6041 | { echo "$as_me:$LINENO: result: no" >&5 |
6042 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
6043 | fi |
6044 | |
dd184caf |
6045 | |
d9898ee8 |
6046 | test -n "$ac_ct_F77" && break |
6047 | done |
6048 | |
dd184caf |
6049 | if test "x$ac_ct_F77" = x; then |
6050 | F77="" |
6051 | else |
6052 | case $cross_compiling:$ac_tool_warned in |
6053 | yes:) |
6054 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
6055 | whose name does not start with the host triplet. If you think this |
6056 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
6057 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
6058 | whose name does not start with the host triplet. If you think this |
6059 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
6060 | ac_tool_warned=yes ;; |
6061 | esac |
6062 | F77=$ac_ct_F77 |
6063 | fi |
d9898ee8 |
6064 | fi |
6065 | |
6066 | |
6067 | # Provide some information about the compiler. |
dd184caf |
6068 | echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 |
d9898ee8 |
6069 | ac_compiler=`set X $ac_compile; echo $2` |
dd184caf |
6070 | { (ac_try="$ac_compiler --version >&5" |
6071 | case "(($ac_try" in |
6072 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6073 | *) ac_try_echo=$ac_try;; |
6074 | esac |
6075 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6076 | (eval "$ac_compiler --version >&5") 2>&5 |
d9898ee8 |
6077 | ac_status=$? |
6078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6079 | (exit $ac_status); } |
dd184caf |
6080 | { (ac_try="$ac_compiler -v >&5" |
6081 | case "(($ac_try" in |
6082 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6083 | *) ac_try_echo=$ac_try;; |
6084 | esac |
6085 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6086 | (eval "$ac_compiler -v >&5") 2>&5 |
d9898ee8 |
6087 | ac_status=$? |
6088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6089 | (exit $ac_status); } |
dd184caf |
6090 | { (ac_try="$ac_compiler -V >&5" |
6091 | case "(($ac_try" in |
6092 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6093 | *) ac_try_echo=$ac_try;; |
6094 | esac |
6095 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6096 | (eval "$ac_compiler -V >&5") 2>&5 |
d9898ee8 |
6097 | ac_status=$? |
6098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6099 | (exit $ac_status); } |
6100 | rm -f a.out |
6101 | |
6102 | # If we don't use `.F' as extension, the preprocessor is not run on the |
6103 | # input file. (Note that this only needs to work for GNU compilers.) |
6104 | ac_save_ext=$ac_ext |
6105 | ac_ext=F |
dd184caf |
6106 | { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
6107 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } |
d9898ee8 |
6108 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
6109 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6110 | else |
6111 | cat >conftest.$ac_ext <<_ACEOF |
6112 | program main |
6113 | #ifndef __GNUC__ |
6114 | choke me |
6115 | #endif |
6116 | |
6117 | end |
6118 | _ACEOF |
6119 | rm -f conftest.$ac_objext |
dd184caf |
6120 | if { (ac_try="$ac_compile" |
6121 | case "(($ac_try" in |
6122 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6123 | *) ac_try_echo=$ac_try;; |
6124 | esac |
6125 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6126 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
6127 | ac_status=$? |
6128 | grep -v '^ *+' conftest.er1 >conftest.err |
6129 | rm -f conftest.er1 |
6130 | cat conftest.err >&5 |
6131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
6132 | (exit $ac_status); } && { |
6133 | test -z "$ac_f77_werror_flag" || |
6134 | test ! -s conftest.err |
6135 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
6136 | ac_compiler_gnu=yes |
6137 | else |
6138 | echo "$as_me: failed program was:" >&5 |
6139 | sed 's/^/| /' conftest.$ac_ext >&5 |
6140 | |
dd184caf |
6141 | ac_compiler_gnu=no |
d9898ee8 |
6142 | fi |
dd184caf |
6143 | |
6144 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
6145 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
6146 | |
6147 | fi |
dd184caf |
6148 | { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
6149 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } |
d9898ee8 |
6150 | ac_ext=$ac_save_ext |
6151 | ac_test_FFLAGS=${FFLAGS+set} |
6152 | ac_save_FFLAGS=$FFLAGS |
6153 | FFLAGS= |
dd184caf |
6154 | { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
6155 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } |
d9898ee8 |
6156 | if test "${ac_cv_prog_f77_g+set}" = set; then |
6157 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6158 | else |
6159 | FFLAGS=-g |
6160 | cat >conftest.$ac_ext <<_ACEOF |
6161 | program main |
6162 | |
6163 | end |
6164 | _ACEOF |
6165 | rm -f conftest.$ac_objext |
dd184caf |
6166 | if { (ac_try="$ac_compile" |
6167 | case "(($ac_try" in |
6168 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6169 | *) ac_try_echo=$ac_try;; |
6170 | esac |
6171 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6172 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
6173 | ac_status=$? |
6174 | grep -v '^ *+' conftest.er1 >conftest.err |
6175 | rm -f conftest.er1 |
6176 | cat conftest.err >&5 |
6177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
6178 | (exit $ac_status); } && { |
6179 | test -z "$ac_f77_werror_flag" || |
6180 | test ! -s conftest.err |
6181 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
6182 | ac_cv_prog_f77_g=yes |
6183 | else |
6184 | echo "$as_me: failed program was:" >&5 |
6185 | sed 's/^/| /' conftest.$ac_ext >&5 |
6186 | |
dd184caf |
6187 | ac_cv_prog_f77_g=no |
d9898ee8 |
6188 | fi |
dd184caf |
6189 | |
6190 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
6191 | |
6192 | fi |
dd184caf |
6193 | { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
6194 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } |
d9898ee8 |
6195 | if test "$ac_test_FFLAGS" = set; then |
6196 | FFLAGS=$ac_save_FFLAGS |
6197 | elif test $ac_cv_prog_f77_g = yes; then |
6198 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
6199 | FFLAGS="-g -O2" |
6200 | else |
6201 | FFLAGS="-g" |
6202 | fi |
6203 | else |
6204 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
6205 | FFLAGS="-O2" |
6206 | else |
6207 | FFLAGS= |
6208 | fi |
6209 | fi |
6210 | |
6211 | G77=`test $ac_compiler_gnu = yes && echo yes` |
6212 | ac_ext=c |
6213 | ac_cpp='$CPP $CPPFLAGS' |
6214 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6215 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6216 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
6217 | |
6218 | |
6219 | |
6220 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
6221 | |
6222 | # find the maximum length of command line arguments |
dd184caf |
6223 | { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
6224 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } |
d9898ee8 |
6225 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
6226 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6227 | else |
6228 | i=0 |
6229 | teststring="ABCD" |
6230 | |
6231 | case $build_os in |
6232 | msdosdjgpp*) |
6233 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
6234 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
6235 | # during glob expansion). Even if it were fixed, the result of this |
6236 | # check would be larger than it should be. |
6237 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
6238 | ;; |
6239 | |
6240 | gnu*) |
6241 | # Under GNU Hurd, this test is not required because there is |
6242 | # no limit to the length of command line arguments. |
6243 | # Libtool will interpret -1 as no limit whatsoever |
6244 | lt_cv_sys_max_cmd_len=-1; |
6245 | ;; |
6246 | |
6247 | cygwin* | mingw*) |
6248 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
6249 | # about 5 minutes as the teststring grows exponentially. |
6250 | # Worse, since 9x/ME are not pre-emptively multitasking, |
6251 | # you end up with a "frozen" computer, even though with patience |
6252 | # the test eventually succeeds (with a max line length of 256k). |
6253 | # Instead, let's just punt: use the minimum linelength reported by |
6254 | # all of the supported platforms: 8192 (on NT/2K/XP). |
6255 | lt_cv_sys_max_cmd_len=8192; |
6256 | ;; |
6257 | |
6258 | amigaos*) |
6259 | # On AmigaOS with pdksh, this test takes hours, literally. |
6260 | # So we just punt and use a minimum line length of 8192. |
6261 | lt_cv_sys_max_cmd_len=8192; |
6262 | ;; |
6263 | |
6264 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
6265 | # This has been around since 386BSD, at least. Likely further. |
6266 | if test -x /sbin/sysctl; then |
6267 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
6268 | elif test -x /usr/sbin/sysctl; then |
6269 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
6270 | else |
6271 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
6272 | fi |
6273 | # And add a safety zone |
6274 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
6275 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
6276 | ;; |
6277 | |
6278 | interix*) |
6279 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
6280 | lt_cv_sys_max_cmd_len=196608 |
6281 | ;; |
6282 | |
6283 | osf*) |
6284 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
6285 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
6286 | # nice to cause kernel panics so lets avoid the loop below. |
6287 | # First set a reasonable default. |
6288 | lt_cv_sys_max_cmd_len=16384 |
6289 | # |
6290 | if test -x /sbin/sysconfig; then |
6291 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
6292 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
6293 | esac |
6294 | fi |
6295 | ;; |
6296 | sco3.2v5*) |
6297 | lt_cv_sys_max_cmd_len=102400 |
6298 | ;; |
6299 | sysv5* | sco5v6* | sysv4.2uw2*) |
6300 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
6301 | if test -n "$kargmax"; then |
6302 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
6303 | else |
6304 | lt_cv_sys_max_cmd_len=32768 |
6305 | fi |
6306 | ;; |
6307 | *) |
ac40fd9e |
6308 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
6309 | if test -n "$lt_cv_sys_max_cmd_len"; then |
6310 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
6311 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
6312 | else |
6313 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
6314 | while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
d9898ee8 |
6315 | = "XX$teststring") >/dev/null 2>&1 && |
ac40fd9e |
6316 | new_result=`expr "X$teststring" : ".*" 2>&1` && |
6317 | lt_cv_sys_max_cmd_len=$new_result && |
6318 | test $i != 17 # 1/2 MB should be enough |
6319 | do |
6320 | i=`expr $i + 1` |
6321 | teststring=$teststring$teststring |
6322 | done |
6323 | teststring= |
6324 | # Add a significant safety factor because C++ compilers can tack on massive |
6325 | # amounts of additional arguments before passing them to the linker. |
6326 | # It appears as though 1/2 is a usable value. |
6327 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
6328 | fi |
d9898ee8 |
6329 | ;; |
6330 | esac |
6331 | |
6332 | fi |
6333 | |
6334 | if test -n $lt_cv_sys_max_cmd_len ; then |
dd184caf |
6335 | { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
6336 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } |
d9898ee8 |
6337 | else |
dd184caf |
6338 | { echo "$as_me:$LINENO: result: none" >&5 |
6339 | echo "${ECHO_T}none" >&6; } |
d9898ee8 |
6340 | fi |
6341 | |
6342 | |
6343 | |
6344 | |
ac40fd9e |
6345 | |
d9898ee8 |
6346 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
dd184caf |
6347 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
6348 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } |
d9898ee8 |
6349 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
6350 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6351 | else |
6352 | |
6353 | # These are sane defaults that work on at least a few old systems. |
6354 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
6355 | |
6356 | # Character class describing NM global symbol codes. |
6357 | symcode='[BCDEGRST]' |
6358 | |
6359 | # Regexp to match symbols that can be accessed directly from C. |
6360 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
6361 | |
6362 | # Transform an extracted symbol line into a proper C declaration |
6363 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
6364 | |
6365 | # Transform an extracted symbol line into symbol name and symbol address |
6366 | 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'" |
6367 | |
6368 | # Define system-specific variables. |
6369 | case $host_os in |
6370 | aix*) |
6371 | symcode='[BCDT]' |
6372 | ;; |
6373 | cygwin* | mingw* | pw32*) |
6374 | symcode='[ABCDGISTW]' |
6375 | ;; |
6376 | hpux*) # Its linker distinguishes data from code symbols |
6377 | if test "$host_cpu" = ia64; then |
6378 | symcode='[ABCDEGRST]' |
6379 | fi |
6380 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
6381 | 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'" |
6382 | ;; |
ac40fd9e |
6383 | linux* | k*bsd*-gnu) |
d9898ee8 |
6384 | if test "$host_cpu" = ia64; then |
6385 | symcode='[ABCDGIRSTW]' |
6386 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
6387 | 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'" |
6388 | fi |
6389 | ;; |
6390 | irix* | nonstopux*) |
6391 | symcode='[BCDEGRST]' |
6392 | ;; |
6393 | osf*) |
6394 | symcode='[BCDEGQRST]' |
6395 | ;; |
6396 | solaris*) |
6397 | symcode='[BDRT]' |
6398 | ;; |
6399 | sco3.2v5*) |
6400 | symcode='[DT]' |
6401 | ;; |
6402 | sysv4.2uw2*) |
6403 | symcode='[DT]' |
6404 | ;; |
6405 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
6406 | symcode='[ABDT]' |
6407 | ;; |
6408 | sysv4) |
6409 | symcode='[DFNSTU]' |
6410 | ;; |
6411 | esac |
6412 | |
6413 | # Handle CRLF in mingw tool chain |
6414 | opt_cr= |
6415 | case $build_os in |
6416 | mingw*) |
6417 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
6418 | ;; |
6419 | esac |
6420 | |
6421 | # If we're using GNU nm, then use its standard symbol codes. |
6422 | case `$NM -V 2>&1` in |
6423 | *GNU* | *'with BFD'*) |
6424 | symcode='[ABCDGIRSTW]' ;; |
6425 | esac |
6426 | |
6427 | # Try without a prefix undercore, then with it. |
6428 | for ac_symprfx in "" "_"; do |
6429 | |
6430 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
6431 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
6432 | |
6433 | # Write the raw and C identifiers. |
6434 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
6435 | |
6436 | # Check to see that the pipe works correctly. |
6437 | pipe_works=no |
6438 | |
6439 | rm -f conftest* |
6440 | cat > conftest.$ac_ext <<EOF |
6441 | #ifdef __cplusplus |
6442 | extern "C" { |
6443 | #endif |
6444 | char nm_test_var; |
6445 | void nm_test_func(){} |
6446 | #ifdef __cplusplus |
6447 | } |
6448 | #endif |
6449 | int main(){nm_test_var='a';nm_test_func();return(0);} |
6450 | EOF |
6451 | |
6452 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
6453 | (eval $ac_compile) 2>&5 |
6454 | ac_status=$? |
6455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6456 | (exit $ac_status); }; then |
6457 | # Now try to grab the symbols. |
6458 | nlist=conftest.nm |
6459 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
6460 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
6461 | ac_status=$? |
6462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6463 | (exit $ac_status); } && test -s "$nlist"; then |
6464 | # Try sorting and uniquifying the output. |
6465 | if sort "$nlist" | uniq > "$nlist"T; then |
6466 | mv -f "$nlist"T "$nlist" |
6467 | else |
6468 | rm -f "$nlist"T |
6469 | fi |
6470 | |
6471 | # Make sure that we snagged all the symbols we need. |
6472 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
6473 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
6474 | cat <<EOF > conftest.$ac_ext |
6475 | #ifdef __cplusplus |
6476 | extern "C" { |
6477 | #endif |
6478 | |
6479 | EOF |
6480 | # Now generate the symbol file. |
6481 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
6482 | |
6483 | cat <<EOF >> conftest.$ac_ext |
6484 | #if defined (__STDC__) && __STDC__ |
6485 | # define lt_ptr_t void * |
6486 | #else |
6487 | # define lt_ptr_t char * |
6488 | # define const |
6489 | #endif |
6490 | |
6491 | /* The mapping between symbol names and symbols. */ |
6492 | const struct { |
6493 | const char *name; |
6494 | lt_ptr_t address; |
6495 | } |
6496 | lt_preloaded_symbols[] = |
6497 | { |
6498 | EOF |
6499 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
6500 | cat <<\EOF >> conftest.$ac_ext |
6501 | {0, (lt_ptr_t) 0} |
6502 | }; |
6503 | |
6504 | #ifdef __cplusplus |
6505 | } |
6506 | #endif |
6507 | EOF |
6508 | # Now try linking the two files. |
6509 | mv conftest.$ac_objext conftstm.$ac_objext |
6510 | lt_save_LIBS="$LIBS" |
6511 | lt_save_CFLAGS="$CFLAGS" |
6512 | LIBS="conftstm.$ac_objext" |
6513 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
6514 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
6515 | (eval $ac_link) 2>&5 |
6516 | ac_status=$? |
6517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6518 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
6519 | pipe_works=yes |
6520 | fi |
6521 | LIBS="$lt_save_LIBS" |
6522 | CFLAGS="$lt_save_CFLAGS" |
6523 | else |
6524 | echo "cannot find nm_test_func in $nlist" >&5 |
6525 | fi |
6526 | else |
6527 | echo "cannot find nm_test_var in $nlist" >&5 |
6528 | fi |
6529 | else |
6530 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
6531 | fi |
6532 | else |
6533 | echo "$progname: failed program was:" >&5 |
6534 | cat conftest.$ac_ext >&5 |
6535 | fi |
6536 | rm -f conftest* conftst* |
6537 | |
6538 | # Do not use the global_symbol_pipe unless it works. |
6539 | if test "$pipe_works" = yes; then |
6540 | break |
6541 | else |
6542 | lt_cv_sys_global_symbol_pipe= |
6543 | fi |
6544 | done |
6545 | |
6546 | fi |
6547 | |
6548 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
6549 | lt_cv_sys_global_symbol_to_cdecl= |
6550 | fi |
6551 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
dd184caf |
6552 | { echo "$as_me:$LINENO: result: failed" >&5 |
6553 | echo "${ECHO_T}failed" >&6; } |
d9898ee8 |
6554 | else |
dd184caf |
6555 | { echo "$as_me:$LINENO: result: ok" >&5 |
6556 | echo "${ECHO_T}ok" >&6; } |
d9898ee8 |
6557 | fi |
6558 | |
dd184caf |
6559 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
6560 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
d9898ee8 |
6561 | if test "${lt_cv_objdir+set}" = set; then |
6562 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6563 | else |
6564 | rm -f .libs 2>/dev/null |
6565 | mkdir .libs 2>/dev/null |
6566 | if test -d .libs; then |
6567 | lt_cv_objdir=.libs |
6568 | else |
6569 | # MS-DOS does not allow filenames that begin with a dot. |
6570 | lt_cv_objdir=_libs |
6571 | fi |
6572 | rmdir .libs 2>/dev/null |
6573 | fi |
dd184caf |
6574 | { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
6575 | echo "${ECHO_T}$lt_cv_objdir" >&6; } |
d9898ee8 |
6576 | objdir=$lt_cv_objdir |
6577 | |
6578 | |
6579 | |
6580 | |
6581 | |
6582 | case $host_os in |
6583 | aix3*) |
6584 | # AIX sometimes has problems with the GCC collect2 program. For some |
6585 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
6586 | # vanish in a puff of smoke. |
6587 | if test "X${COLLECT_NAMES+set}" != Xset; then |
6588 | COLLECT_NAMES= |
6589 | export COLLECT_NAMES |
6590 | fi |
6591 | ;; |
6592 | esac |
6593 | |
6594 | # Sed substitution that helps us do robust quoting. It backslashifies |
6595 | # metacharacters that are still active within double-quoted strings. |
6596 | Xsed='sed -e 1s/^X//' |
6597 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
6598 | |
6599 | # Same as above, but do not quote variable references. |
6600 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
6601 | |
6602 | # Sed substitution to delay expansion of an escaped shell variable in a |
6603 | # double_quote_subst'ed string. |
6604 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
6605 | |
6606 | # Sed substitution to avoid accidental globbing in evaled expressions |
6607 | no_glob_subst='s/\*/\\\*/g' |
6608 | |
6609 | # Constants: |
6610 | rm="rm -f" |
6611 | |
6612 | # Global variables: |
6613 | default_ofile=libtool |
6614 | can_build_shared=yes |
6615 | |
6616 | # All known linkers require a `.a' archive for static linking (except MSVC, |
6617 | # which needs '.lib'). |
6618 | libext=a |
6619 | ltmain="$ac_aux_dir/ltmain.sh" |
6620 | ofile="$default_ofile" |
6621 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
6622 | |
6623 | if test -n "$ac_tool_prefix"; then |
6624 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
6625 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
dd184caf |
6626 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6627 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
6628 | if test "${ac_cv_prog_AR+set}" = set; then |
6629 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6630 | else |
6631 | if test -n "$AR"; then |
6632 | ac_cv_prog_AR="$AR" # Let the user override the test. |
6633 | else |
6634 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6635 | for as_dir in $PATH |
6636 | do |
6637 | IFS=$as_save_IFS |
6638 | test -z "$as_dir" && as_dir=. |
6639 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
6640 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
6641 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
6642 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6643 | break 2 |
6644 | fi |
6645 | done |
6646 | done |
dd184caf |
6647 | IFS=$as_save_IFS |
d9898ee8 |
6648 | |
6649 | fi |
6650 | fi |
6651 | AR=$ac_cv_prog_AR |
6652 | if test -n "$AR"; then |
dd184caf |
6653 | { echo "$as_me:$LINENO: result: $AR" >&5 |
6654 | echo "${ECHO_T}$AR" >&6; } |
d9898ee8 |
6655 | else |
dd184caf |
6656 | { echo "$as_me:$LINENO: result: no" >&5 |
6657 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
6658 | fi |
6659 | |
dd184caf |
6660 | |
d9898ee8 |
6661 | fi |
6662 | if test -z "$ac_cv_prog_AR"; then |
6663 | ac_ct_AR=$AR |
6664 | # Extract the first word of "ar", so it can be a program name with args. |
6665 | set dummy ar; ac_word=$2 |
dd184caf |
6666 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6667 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
6668 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
6669 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6670 | else |
6671 | if test -n "$ac_ct_AR"; then |
6672 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
6673 | else |
6674 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6675 | for as_dir in $PATH |
6676 | do |
6677 | IFS=$as_save_IFS |
6678 | test -z "$as_dir" && as_dir=. |
6679 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
6680 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
6681 | ac_cv_prog_ac_ct_AR="ar" |
6682 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6683 | break 2 |
6684 | fi |
6685 | done |
6686 | done |
dd184caf |
6687 | IFS=$as_save_IFS |
d9898ee8 |
6688 | |
d9898ee8 |
6689 | fi |
6690 | fi |
6691 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
6692 | if test -n "$ac_ct_AR"; then |
dd184caf |
6693 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
6694 | echo "${ECHO_T}$ac_ct_AR" >&6; } |
d9898ee8 |
6695 | else |
dd184caf |
6696 | { echo "$as_me:$LINENO: result: no" >&5 |
6697 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
6698 | fi |
6699 | |
dd184caf |
6700 | if test "x$ac_ct_AR" = x; then |
6701 | AR="false" |
6702 | else |
6703 | case $cross_compiling:$ac_tool_warned in |
6704 | yes:) |
6705 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
6706 | whose name does not start with the host triplet. If you think this |
6707 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
6708 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
6709 | whose name does not start with the host triplet. If you think this |
6710 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
6711 | ac_tool_warned=yes ;; |
6712 | esac |
6713 | AR=$ac_ct_AR |
6714 | fi |
d9898ee8 |
6715 | else |
6716 | AR="$ac_cv_prog_AR" |
6717 | fi |
6718 | |
6719 | if test -n "$ac_tool_prefix"; then |
6720 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
6721 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
dd184caf |
6722 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6723 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
6724 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
6725 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6726 | else |
6727 | if test -n "$RANLIB"; then |
6728 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
6729 | else |
6730 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6731 | for as_dir in $PATH |
6732 | do |
6733 | IFS=$as_save_IFS |
6734 | test -z "$as_dir" && as_dir=. |
6735 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
6736 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
6737 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
6738 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6739 | break 2 |
6740 | fi |
6741 | done |
6742 | done |
dd184caf |
6743 | IFS=$as_save_IFS |
d9898ee8 |
6744 | |
6745 | fi |
6746 | fi |
6747 | RANLIB=$ac_cv_prog_RANLIB |
6748 | if test -n "$RANLIB"; then |
dd184caf |
6749 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
6750 | echo "${ECHO_T}$RANLIB" >&6; } |
d9898ee8 |
6751 | else |
dd184caf |
6752 | { echo "$as_me:$LINENO: result: no" >&5 |
6753 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
6754 | fi |
6755 | |
dd184caf |
6756 | |
d9898ee8 |
6757 | fi |
6758 | if test -z "$ac_cv_prog_RANLIB"; then |
6759 | ac_ct_RANLIB=$RANLIB |
6760 | # Extract the first word of "ranlib", so it can be a program name with args. |
6761 | set dummy ranlib; ac_word=$2 |
dd184caf |
6762 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6763 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
6764 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
6765 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6766 | else |
6767 | if test -n "$ac_ct_RANLIB"; then |
6768 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
6769 | else |
6770 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6771 | for as_dir in $PATH |
6772 | do |
6773 | IFS=$as_save_IFS |
6774 | test -z "$as_dir" && as_dir=. |
6775 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
6776 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
6777 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
6778 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6779 | break 2 |
6780 | fi |
6781 | done |
6782 | done |
dd184caf |
6783 | IFS=$as_save_IFS |
d9898ee8 |
6784 | |
d9898ee8 |
6785 | fi |
6786 | fi |
6787 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
6788 | if test -n "$ac_ct_RANLIB"; then |
dd184caf |
6789 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
6790 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
d9898ee8 |
6791 | else |
dd184caf |
6792 | { echo "$as_me:$LINENO: result: no" >&5 |
6793 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
6794 | fi |
6795 | |
dd184caf |
6796 | if test "x$ac_ct_RANLIB" = x; then |
6797 | RANLIB=":" |
6798 | else |
6799 | case $cross_compiling:$ac_tool_warned in |
6800 | yes:) |
6801 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
6802 | whose name does not start with the host triplet. If you think this |
6803 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
6804 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
6805 | whose name does not start with the host triplet. If you think this |
6806 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
6807 | ac_tool_warned=yes ;; |
6808 | esac |
6809 | RANLIB=$ac_ct_RANLIB |
6810 | fi |
d9898ee8 |
6811 | else |
6812 | RANLIB="$ac_cv_prog_RANLIB" |
6813 | fi |
6814 | |
6815 | if test -n "$ac_tool_prefix"; then |
6816 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
6817 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
dd184caf |
6818 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6819 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
6820 | if test "${ac_cv_prog_STRIP+set}" = set; then |
6821 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6822 | else |
6823 | if test -n "$STRIP"; then |
6824 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
6825 | else |
6826 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6827 | for as_dir in $PATH |
6828 | do |
6829 | IFS=$as_save_IFS |
6830 | test -z "$as_dir" && as_dir=. |
6831 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
6832 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
6833 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
6834 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6835 | break 2 |
6836 | fi |
6837 | done |
6838 | done |
dd184caf |
6839 | IFS=$as_save_IFS |
d9898ee8 |
6840 | |
6841 | fi |
6842 | fi |
6843 | STRIP=$ac_cv_prog_STRIP |
6844 | if test -n "$STRIP"; then |
dd184caf |
6845 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
6846 | echo "${ECHO_T}$STRIP" >&6; } |
d9898ee8 |
6847 | else |
dd184caf |
6848 | { echo "$as_me:$LINENO: result: no" >&5 |
6849 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
6850 | fi |
6851 | |
dd184caf |
6852 | |
d9898ee8 |
6853 | fi |
6854 | if test -z "$ac_cv_prog_STRIP"; then |
6855 | ac_ct_STRIP=$STRIP |
6856 | # Extract the first word of "strip", so it can be a program name with args. |
6857 | set dummy strip; ac_word=$2 |
dd184caf |
6858 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6859 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
6860 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
6861 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6862 | else |
6863 | if test -n "$ac_ct_STRIP"; then |
6864 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
6865 | else |
6866 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6867 | for as_dir in $PATH |
6868 | do |
6869 | IFS=$as_save_IFS |
6870 | test -z "$as_dir" && as_dir=. |
6871 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
6872 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
6873 | ac_cv_prog_ac_ct_STRIP="strip" |
6874 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6875 | break 2 |
6876 | fi |
6877 | done |
6878 | done |
dd184caf |
6879 | IFS=$as_save_IFS |
d9898ee8 |
6880 | |
d9898ee8 |
6881 | fi |
6882 | fi |
6883 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
6884 | if test -n "$ac_ct_STRIP"; then |
dd184caf |
6885 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
6886 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
d9898ee8 |
6887 | else |
dd184caf |
6888 | { echo "$as_me:$LINENO: result: no" >&5 |
6889 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
6890 | fi |
6891 | |
dd184caf |
6892 | if test "x$ac_ct_STRIP" = x; then |
6893 | STRIP=":" |
6894 | else |
6895 | case $cross_compiling:$ac_tool_warned in |
6896 | yes:) |
6897 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
6898 | whose name does not start with the host triplet. If you think this |
6899 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
6900 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
6901 | whose name does not start with the host triplet. If you think this |
6902 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
6903 | ac_tool_warned=yes ;; |
6904 | esac |
6905 | STRIP=$ac_ct_STRIP |
6906 | fi |
d9898ee8 |
6907 | else |
6908 | STRIP="$ac_cv_prog_STRIP" |
6909 | fi |
6910 | |
6911 | |
6912 | old_CC="$CC" |
6913 | old_CFLAGS="$CFLAGS" |
6914 | |
6915 | # Set sane defaults for various variables |
6916 | test -z "$AR" && AR=ar |
6917 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
6918 | test -z "$AS" && AS=as |
6919 | test -z "$CC" && CC=cc |
6920 | test -z "$LTCC" && LTCC=$CC |
6921 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
6922 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
6923 | test -z "$LD" && LD=ld |
6924 | test -z "$LN_S" && LN_S="ln -s" |
6925 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
6926 | test -z "$NM" && NM=nm |
6927 | test -z "$SED" && SED=sed |
6928 | test -z "$OBJDUMP" && OBJDUMP=objdump |
6929 | test -z "$RANLIB" && RANLIB=: |
6930 | test -z "$STRIP" && STRIP=: |
6931 | test -z "$ac_objext" && ac_objext=o |
6932 | |
6933 | # Determine commands to create old-style static archives. |
ac40fd9e |
6934 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
d9898ee8 |
6935 | old_postinstall_cmds='chmod 644 $oldlib' |
6936 | old_postuninstall_cmds= |
6937 | |
6938 | if test -n "$RANLIB"; then |
6939 | case $host_os in |
6940 | openbsd*) |
6941 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
6942 | ;; |
6943 | *) |
6944 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
6945 | ;; |
6946 | esac |
6947 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
6948 | fi |
6949 | |
6950 | for cc_temp in $compiler""; do |
6951 | case $cc_temp in |
6952 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
6953 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
6954 | \-*) ;; |
6955 | *) break;; |
6956 | esac |
6957 | done |
6958 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
6959 | |
6960 | |
6961 | # Only perform the check for file, if the check method requires it |
6962 | case $deplibs_check_method in |
6963 | file_magic*) |
6964 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
dd184caf |
6965 | { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
6966 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } |
d9898ee8 |
6967 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
6968 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6969 | else |
6970 | case $MAGIC_CMD in |
6971 | [\\/*] | ?:[\\/]*) |
6972 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
6973 | ;; |
6974 | *) |
6975 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
6976 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
6977 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
6978 | for ac_dir in $ac_dummy; do |
6979 | IFS="$lt_save_ifs" |
6980 | test -z "$ac_dir" && ac_dir=. |
6981 | if test -f $ac_dir/${ac_tool_prefix}file; then |
6982 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
6983 | if test -n "$file_magic_test_file"; then |
6984 | case $deplibs_check_method in |
6985 | "file_magic "*) |
6986 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
6987 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
6988 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
6989 | $EGREP "$file_magic_regex" > /dev/null; then |
6990 | : |
6991 | else |
6992 | cat <<EOF 1>&2 |
6993 | |
6994 | *** Warning: the command libtool uses to detect shared libraries, |
6995 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
6996 | *** The result is that libtool may fail to recognize shared libraries |
6997 | *** as such. This will affect the creation of libtool libraries that |
6998 | *** depend on shared libraries, but programs linked with such libtool |
6999 | *** libraries will work regardless of this problem. Nevertheless, you |
7000 | *** may want to report the problem to your system manager and/or to |
7001 | *** bug-libtool@gnu.org |
7002 | |
7003 | EOF |
7004 | fi ;; |
7005 | esac |
7006 | fi |
7007 | break |
7008 | fi |
7009 | done |
7010 | IFS="$lt_save_ifs" |
7011 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
7012 | ;; |
7013 | esac |
7014 | fi |
7015 | |
7016 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
7017 | if test -n "$MAGIC_CMD"; then |
dd184caf |
7018 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
7019 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
d9898ee8 |
7020 | else |
dd184caf |
7021 | { echo "$as_me:$LINENO: result: no" >&5 |
7022 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
7023 | fi |
7024 | |
7025 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
7026 | if test -n "$ac_tool_prefix"; then |
dd184caf |
7027 | { echo "$as_me:$LINENO: checking for file" >&5 |
7028 | echo $ECHO_N "checking for file... $ECHO_C" >&6; } |
d9898ee8 |
7029 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
7030 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7031 | else |
7032 | case $MAGIC_CMD in |
7033 | [\\/*] | ?:[\\/]*) |
7034 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
7035 | ;; |
7036 | *) |
7037 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
7038 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
7039 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
7040 | for ac_dir in $ac_dummy; do |
7041 | IFS="$lt_save_ifs" |
7042 | test -z "$ac_dir" && ac_dir=. |
7043 | if test -f $ac_dir/file; then |
7044 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
7045 | if test -n "$file_magic_test_file"; then |
7046 | case $deplibs_check_method in |
7047 | "file_magic "*) |
7048 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
7049 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
7050 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
7051 | $EGREP "$file_magic_regex" > /dev/null; then |
7052 | : |
7053 | else |
7054 | cat <<EOF 1>&2 |
7055 | |
7056 | *** Warning: the command libtool uses to detect shared libraries, |
7057 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
7058 | *** The result is that libtool may fail to recognize shared libraries |
7059 | *** as such. This will affect the creation of libtool libraries that |
7060 | *** depend on shared libraries, but programs linked with such libtool |
7061 | *** libraries will work regardless of this problem. Nevertheless, you |
7062 | *** may want to report the problem to your system manager and/or to |
7063 | *** bug-libtool@gnu.org |
7064 | |
7065 | EOF |
7066 | fi ;; |
7067 | esac |
7068 | fi |
7069 | break |
7070 | fi |
7071 | done |
7072 | IFS="$lt_save_ifs" |
7073 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
7074 | ;; |
7075 | esac |
7076 | fi |
7077 | |
7078 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
7079 | if test -n "$MAGIC_CMD"; then |
dd184caf |
7080 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
7081 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
d9898ee8 |
7082 | else |
dd184caf |
7083 | { echo "$as_me:$LINENO: result: no" >&5 |
7084 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
7085 | fi |
7086 | |
7087 | else |
7088 | MAGIC_CMD=: |
7089 | fi |
7090 | fi |
7091 | |
7092 | fi |
7093 | ;; |
7094 | esac |
7095 | |
7096 | enable_dlopen=no |
7097 | enable_win32_dll=no |
7098 | |
dd184caf |
7099 | # Check whether --enable-libtool-lock was given. |
d9898ee8 |
7100 | if test "${enable_libtool_lock+set}" = set; then |
dd184caf |
7101 | enableval=$enable_libtool_lock; |
7102 | fi |
d9898ee8 |
7103 | |
d9898ee8 |
7104 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
7105 | |
7106 | |
dd184caf |
7107 | # Check whether --with-pic was given. |
d9898ee8 |
7108 | if test "${with_pic+set}" = set; then |
dd184caf |
7109 | withval=$with_pic; pic_mode="$withval" |
d9898ee8 |
7110 | else |
7111 | pic_mode=default |
dd184caf |
7112 | fi |
7113 | |
d9898ee8 |
7114 | test -z "$pic_mode" && pic_mode=default |
7115 | |
7116 | # Use C for the default configuration in the libtool script |
7117 | tagname= |
7118 | lt_save_CC="$CC" |
7119 | ac_ext=c |
7120 | ac_cpp='$CPP $CPPFLAGS' |
7121 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
7122 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
7123 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
7124 | |
7125 | |
7126 | # Source file extension for C test sources. |
7127 | ac_ext=c |
7128 | |
7129 | # Object file extension for compiled C test sources. |
7130 | objext=o |
7131 | objext=$objext |
7132 | |
7133 | # Code to be used in simple compile tests |
ac40fd9e |
7134 | lt_simple_compile_test_code="int some_variable = 0;" |
d9898ee8 |
7135 | |
7136 | # Code to be used in simple link tests |
ac40fd9e |
7137 | lt_simple_link_test_code='int main(){return(0);}' |
d9898ee8 |
7138 | |
7139 | |
7140 | # If no C compiler was specified, use CC. |
7141 | LTCC=${LTCC-"$CC"} |
7142 | |
7143 | # If no C compiler flags were specified, use CFLAGS. |
7144 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
7145 | |
7146 | # Allow CC to be a program name with arguments. |
7147 | compiler=$CC |
7148 | |
7149 | |
7150 | # save warnings/boilerplate of simple test code |
7151 | ac_outfile=conftest.$ac_objext |
ac40fd9e |
7152 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
d9898ee8 |
7153 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
7154 | _lt_compiler_boilerplate=`cat conftest.err` |
7155 | $rm conftest* |
7156 | |
7157 | ac_outfile=conftest.$ac_objext |
ac40fd9e |
7158 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
d9898ee8 |
7159 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
7160 | _lt_linker_boilerplate=`cat conftest.err` |
7161 | $rm conftest* |
7162 | |
7163 | |
7164 | |
7165 | lt_prog_compiler_no_builtin_flag= |
7166 | |
7167 | if test "$GCC" = yes; then |
7168 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
7169 | |
7170 | |
dd184caf |
7171 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
7172 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } |
d9898ee8 |
7173 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
7174 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7175 | else |
7176 | lt_cv_prog_compiler_rtti_exceptions=no |
7177 | ac_outfile=conftest.$ac_objext |
ac40fd9e |
7178 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
d9898ee8 |
7179 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
7180 | # Insert the option either (1) after the last *FLAGS variable, or |
7181 | # (2) before a word containing "conftest.", or (3) at the end. |
7182 | # Note that $ac_compile itself does not contain backslashes and begins |
7183 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
7184 | # The option is referenced via a variable to avoid confusing sed. |
7185 | lt_compile=`echo "$ac_compile" | $SED \ |
7186 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
7187 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
7188 | -e 's:$: $lt_compiler_flag:'` |
ac40fd9e |
7189 | (eval echo "\"\$as_me:7189: $lt_compile\"" >&5) |
d9898ee8 |
7190 | (eval "$lt_compile" 2>conftest.err) |
7191 | ac_status=$? |
7192 | cat conftest.err >&5 |
ac40fd9e |
7193 | echo "$as_me:7193: \$? = $ac_status" >&5 |
d9898ee8 |
7194 | if (exit $ac_status) && test -s "$ac_outfile"; then |
7195 | # The compiler can only warn and ignore the option if not recognized |
7196 | # So say no if there are warnings other than the usual output. |
7197 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
7198 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
7199 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
7200 | lt_cv_prog_compiler_rtti_exceptions=yes |
7201 | fi |
7202 | fi |
7203 | $rm conftest* |
7204 | |
7205 | fi |
dd184caf |
7206 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
7207 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
d9898ee8 |
7208 | |
7209 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
7210 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
7211 | else |
7212 | : |
7213 | fi |
7214 | |
7215 | fi |
7216 | |
7217 | lt_prog_compiler_wl= |
7218 | lt_prog_compiler_pic= |
7219 | lt_prog_compiler_static= |
7220 | |
dd184caf |
7221 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
7222 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
d9898ee8 |
7223 | |
7224 | if test "$GCC" = yes; then |
7225 | lt_prog_compiler_wl='-Wl,' |
7226 | lt_prog_compiler_static='-static' |
7227 | |
7228 | case $host_os in |
7229 | aix*) |
7230 | # All AIX code is PIC. |
7231 | if test "$host_cpu" = ia64; then |
7232 | # AIX 5 now supports IA64 processor |
7233 | lt_prog_compiler_static='-Bstatic' |
7234 | fi |
7235 | ;; |
7236 | |
7237 | amigaos*) |
7238 | # FIXME: we need at least 68020 code to build shared libraries, but |
7239 | # adding the `-m68020' flag to GCC prevents building anything better, |
7240 | # like `-m68040'. |
7241 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
7242 | ;; |
7243 | |
ac40fd9e |
7244 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
d9898ee8 |
7245 | # PIC is the default for these OSes. |
7246 | ;; |
7247 | |
ac40fd9e |
7248 | mingw* | cygwin* | pw32* | os2*) |
d9898ee8 |
7249 | # This hack is so that the source file can tell whether it is being |
7250 | # built for inclusion in a dll (and should export symbols for example). |
ac40fd9e |
7251 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
7252 | # (--disable-auto-import) libraries |
d9898ee8 |
7253 | lt_prog_compiler_pic='-DDLL_EXPORT' |
7254 | ;; |
7255 | |
7256 | darwin* | rhapsody*) |
7257 | # PIC is the default on this platform |
7258 | # Common symbols not allowed in MH_DYLIB files |
7259 | lt_prog_compiler_pic='-fno-common' |
7260 | ;; |
7261 | |
ac40fd9e |
7262 | interix[3-9]*) |
d9898ee8 |
7263 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
7264 | # Instead, we relocate shared libraries at runtime. |
7265 | ;; |
7266 | |
7267 | msdosdjgpp*) |
7268 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
7269 | # on systems that don't support them. |
7270 | lt_prog_compiler_can_build_shared=no |
7271 | enable_shared=no |
7272 | ;; |
7273 | |
7274 | sysv4*MP*) |
7275 | if test -d /usr/nec; then |
7276 | lt_prog_compiler_pic=-Kconform_pic |
7277 | fi |
7278 | ;; |
7279 | |
7280 | hpux*) |
7281 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
7282 | # not for PA HP-UX. |
7283 | case $host_cpu in |
7284 | hppa*64*|ia64*) |
7285 | # +Z the default |
7286 | ;; |
7287 | *) |
7288 | lt_prog_compiler_pic='-fPIC' |
7289 | ;; |
7290 | esac |
7291 | ;; |
7292 | |
7293 | *) |
7294 | lt_prog_compiler_pic='-fPIC' |
7295 | ;; |
7296 | esac |
7297 | else |
7298 | # PORTME Check for flag to pass linker flags through the system compiler. |
7299 | case $host_os in |
7300 | aix*) |
7301 | lt_prog_compiler_wl='-Wl,' |
7302 | if test "$host_cpu" = ia64; then |
7303 | # AIX 5 now supports IA64 processor |
7304 | lt_prog_compiler_static='-Bstatic' |
7305 | else |
7306 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
7307 | fi |
7308 | ;; |
7309 | darwin*) |
7310 | # PIC is the default on this platform |
7311 | # Common symbols not allowed in MH_DYLIB files |
7312 | case $cc_basename in |
7313 | xlc*) |
7314 | lt_prog_compiler_pic='-qnocommon' |
7315 | lt_prog_compiler_wl='-Wl,' |
7316 | ;; |
7317 | esac |
7318 | ;; |
7319 | |
ac40fd9e |
7320 | mingw* | cygwin* | pw32* | os2*) |
d9898ee8 |
7321 | # This hack is so that the source file can tell whether it is being |
7322 | # built for inclusion in a dll (and should export symbols for example). |
7323 | lt_prog_compiler_pic='-DDLL_EXPORT' |
7324 | ;; |
7325 | |
7326 | hpux9* | hpux10* | hpux11*) |
7327 | lt_prog_compiler_wl='-Wl,' |
7328 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
7329 | # not for PA HP-UX. |
7330 | case $host_cpu in |
7331 | hppa*64*|ia64*) |
7332 | # +Z the default |
7333 | ;; |
7334 | *) |
7335 | lt_prog_compiler_pic='+Z' |
7336 | ;; |
7337 | esac |
7338 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
7339 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
7340 | ;; |
7341 | |
7342 | irix5* | irix6* | nonstopux*) |
7343 | lt_prog_compiler_wl='-Wl,' |
7344 | # PIC (with -KPIC) is the default. |
7345 | lt_prog_compiler_static='-non_shared' |
7346 | ;; |
7347 | |
7348 | newsos6) |
7349 | lt_prog_compiler_pic='-KPIC' |
7350 | lt_prog_compiler_static='-Bstatic' |
7351 | ;; |
7352 | |
ac40fd9e |
7353 | linux* | k*bsd*-gnu) |
d9898ee8 |
7354 | case $cc_basename in |
7355 | icc* | ecc*) |
7356 | lt_prog_compiler_wl='-Wl,' |
7357 | lt_prog_compiler_pic='-KPIC' |
7358 | lt_prog_compiler_static='-static' |
7359 | ;; |
7360 | pgcc* | pgf77* | pgf90* | pgf95*) |
7361 | # Portland Group compilers (*not* the Pentium gcc compiler, |
7362 | # which looks to be a dead project) |
7363 | lt_prog_compiler_wl='-Wl,' |
7364 | lt_prog_compiler_pic='-fpic' |
7365 | lt_prog_compiler_static='-Bstatic' |
7366 | ;; |
7367 | ccc*) |
7368 | lt_prog_compiler_wl='-Wl,' |
7369 | # All Alpha code is PIC. |
7370 | lt_prog_compiler_static='-non_shared' |
7371 | ;; |
ac40fd9e |
7372 | *) |
7373 | case `$CC -V 2>&1 | sed 5q` in |
7374 | *Sun\ C*) |
7375 | # Sun C 5.9 |
7376 | lt_prog_compiler_pic='-KPIC' |
7377 | lt_prog_compiler_static='-Bstatic' |
7378 | lt_prog_compiler_wl='-Wl,' |
7379 | ;; |
7380 | *Sun\ F*) |
7381 | # Sun Fortran 8.3 passes all unrecognized flags to the linker |
7382 | lt_prog_compiler_pic='-KPIC' |
7383 | lt_prog_compiler_static='-Bstatic' |
7384 | lt_prog_compiler_wl='' |
7385 | ;; |
7386 | esac |
7387 | ;; |
d9898ee8 |
7388 | esac |
7389 | ;; |
7390 | |
7391 | osf3* | osf4* | osf5*) |
7392 | lt_prog_compiler_wl='-Wl,' |
7393 | # All OSF/1 code is PIC. |
7394 | lt_prog_compiler_static='-non_shared' |
7395 | ;; |
7396 | |
ac40fd9e |
7397 | rdos*) |
7398 | lt_prog_compiler_static='-non_shared' |
7399 | ;; |
7400 | |
d9898ee8 |
7401 | solaris*) |
7402 | lt_prog_compiler_pic='-KPIC' |
7403 | lt_prog_compiler_static='-Bstatic' |
7404 | case $cc_basename in |
7405 | f77* | f90* | f95*) |
7406 | lt_prog_compiler_wl='-Qoption ld ';; |
7407 | *) |
7408 | lt_prog_compiler_wl='-Wl,';; |
7409 | esac |
7410 | ;; |
7411 | |
7412 | sunos4*) |
7413 | lt_prog_compiler_wl='-Qoption ld ' |
7414 | lt_prog_compiler_pic='-PIC' |
7415 | lt_prog_compiler_static='-Bstatic' |
7416 | ;; |
7417 | |
7418 | sysv4 | sysv4.2uw2* | sysv4.3*) |
7419 | lt_prog_compiler_wl='-Wl,' |
7420 | lt_prog_compiler_pic='-KPIC' |
7421 | lt_prog_compiler_static='-Bstatic' |
7422 | ;; |
7423 | |
7424 | sysv4*MP*) |
7425 | if test -d /usr/nec ;then |
7426 | lt_prog_compiler_pic='-Kconform_pic' |
7427 | lt_prog_compiler_static='-Bstatic' |
7428 | fi |
7429 | ;; |
7430 | |
7431 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
7432 | lt_prog_compiler_wl='-Wl,' |
7433 | lt_prog_compiler_pic='-KPIC' |
7434 | lt_prog_compiler_static='-Bstatic' |
7435 | ;; |
7436 | |
7437 | unicos*) |
7438 | lt_prog_compiler_wl='-Wl,' |
7439 | lt_prog_compiler_can_build_shared=no |
7440 | ;; |
7441 | |
7442 | uts4*) |
7443 | lt_prog_compiler_pic='-pic' |
7444 | lt_prog_compiler_static='-Bstatic' |
7445 | ;; |
7446 | |
7447 | *) |
7448 | lt_prog_compiler_can_build_shared=no |
7449 | ;; |
7450 | esac |
7451 | fi |
7452 | |
dd184caf |
7453 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
7454 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } |
d9898ee8 |
7455 | |
7456 | # |
7457 | # Check to make sure the PIC flag actually works. |
7458 | # |
7459 | if test -n "$lt_prog_compiler_pic"; then |
7460 | |
dd184caf |
7461 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
7462 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } |
d9898ee8 |
7463 | if test "${lt_prog_compiler_pic_works+set}" = set; then |
7464 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7465 | else |
7466 | lt_prog_compiler_pic_works=no |
7467 | ac_outfile=conftest.$ac_objext |
ac40fd9e |
7468 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
d9898ee8 |
7469 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
7470 | # Insert the option either (1) after the last *FLAGS variable, or |
7471 | # (2) before a word containing "conftest.", or (3) at the end. |
7472 | # Note that $ac_compile itself does not contain backslashes and begins |
7473 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
7474 | # The option is referenced via a variable to avoid confusing sed. |
7475 | lt_compile=`echo "$ac_compile" | $SED \ |
7476 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
7477 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
7478 | -e 's:$: $lt_compiler_flag:'` |
ac40fd9e |
7479 | (eval echo "\"\$as_me:7479: $lt_compile\"" >&5) |
d9898ee8 |
7480 | (eval "$lt_compile" 2>conftest.err) |
7481 | ac_status=$? |
7482 | cat conftest.err >&5 |
ac40fd9e |
7483 | echo "$as_me:7483: \$? = $ac_status" >&5 |
d9898ee8 |
7484 | if (exit $ac_status) && test -s "$ac_outfile"; then |
7485 | # The compiler can only warn and ignore the option if not recognized |
7486 | # So say no if there are warnings other than the usual output. |
7487 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
7488 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
7489 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
7490 | lt_prog_compiler_pic_works=yes |
7491 | fi |
7492 | fi |
7493 | $rm conftest* |
7494 | |
7495 | fi |
dd184caf |
7496 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
7497 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } |
d9898ee8 |
7498 | |
7499 | if test x"$lt_prog_compiler_pic_works" = xyes; then |
7500 | case $lt_prog_compiler_pic in |
7501 | "" | " "*) ;; |
7502 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
7503 | esac |
7504 | else |
7505 | lt_prog_compiler_pic= |
7506 | lt_prog_compiler_can_build_shared=no |
7507 | fi |
7508 | |
7509 | fi |
7510 | case $host_os in |
7511 | # For platforms which do not support PIC, -DPIC is meaningless: |
7512 | *djgpp*) |
7513 | lt_prog_compiler_pic= |
7514 | ;; |
7515 | *) |
7516 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
7517 | ;; |
7518 | esac |
7519 | |
7520 | # |
7521 | # Check to make sure the static flag actually works. |
7522 | # |
7523 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
dd184caf |
7524 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
7525 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
d9898ee8 |
7526 | if test "${lt_prog_compiler_static_works+set}" = set; then |
7527 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7528 | else |
7529 | lt_prog_compiler_static_works=no |
7530 | save_LDFLAGS="$LDFLAGS" |
7531 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
ac40fd9e |
7532 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
d9898ee8 |
7533 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
7534 | # The linker can only warn and ignore the option if not recognized |
7535 | # So say no if there are warnings |
7536 | if test -s conftest.err; then |
7537 | # Append any errors to the config.log. |
7538 | cat conftest.err 1>&5 |
7539 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
7540 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
7541 | if diff conftest.exp conftest.er2 >/dev/null; then |
7542 | lt_prog_compiler_static_works=yes |
7543 | fi |
7544 | else |
7545 | lt_prog_compiler_static_works=yes |
7546 | fi |
7547 | fi |
7548 | $rm conftest* |
7549 | LDFLAGS="$save_LDFLAGS" |
7550 | |
7551 | fi |
dd184caf |
7552 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
7553 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } |
d9898ee8 |
7554 | |
7555 | if test x"$lt_prog_compiler_static_works" = xyes; then |
7556 | : |
7557 | else |
7558 | lt_prog_compiler_static= |
7559 | fi |
7560 | |
7561 | |
dd184caf |
7562 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
7563 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
d9898ee8 |
7564 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
7565 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7566 | else |
7567 | lt_cv_prog_compiler_c_o=no |
7568 | $rm -r conftest 2>/dev/null |
7569 | mkdir conftest |
7570 | cd conftest |
7571 | mkdir out |
ac40fd9e |
7572 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
d9898ee8 |
7573 | |
7574 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
7575 | # Insert the option either (1) after the last *FLAGS variable, or |
7576 | # (2) before a word containing "conftest.", or (3) at the end. |
7577 | # Note that $ac_compile itself does not contain backslashes and begins |
7578 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
7579 | lt_compile=`echo "$ac_compile" | $SED \ |
7580 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
7581 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
7582 | -e 's:$: $lt_compiler_flag:'` |
ac40fd9e |
7583 | (eval echo "\"\$as_me:7583: $lt_compile\"" >&5) |
d9898ee8 |
7584 | (eval "$lt_compile" 2>out/conftest.err) |
7585 | ac_status=$? |
7586 | cat out/conftest.err >&5 |
ac40fd9e |
7587 | echo "$as_me:7587: \$? = $ac_status" >&5 |
d9898ee8 |
7588 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
7589 | then |
7590 | # The compiler can only warn and ignore the option if not recognized |
7591 | # So say no if there are warnings |
7592 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
7593 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
7594 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
7595 | lt_cv_prog_compiler_c_o=yes |
7596 | fi |
7597 | fi |
7598 | chmod u+w . 2>&5 |
7599 | $rm conftest* |
7600 | # SGI C++ compiler will create directory out/ii_files/ for |
7601 | # template instantiation |
7602 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
7603 | $rm out/* && rmdir out |
7604 | cd .. |
7605 | rmdir conftest |
7606 | $rm conftest* |
7607 | |
7608 | fi |
dd184caf |
7609 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
7610 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } |
d9898ee8 |
7611 | |
7612 | |
7613 | hard_links="nottested" |
7614 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
7615 | # do not overwrite the value of need_locks provided by the user |
dd184caf |
7616 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
7617 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
d9898ee8 |
7618 | hard_links=yes |
7619 | $rm conftest* |
7620 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
7621 | touch conftest.a |
7622 | ln conftest.a conftest.b 2>&5 || hard_links=no |
7623 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
dd184caf |
7624 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
7625 | echo "${ECHO_T}$hard_links" >&6; } |
d9898ee8 |
7626 | if test "$hard_links" = no; then |
7627 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
7628 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
7629 | need_locks=warn |
7630 | fi |
7631 | else |
7632 | need_locks=no |
7633 | fi |
7634 | |
dd184caf |
7635 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
7636 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
d9898ee8 |
7637 | |
7638 | runpath_var= |
7639 | allow_undefined_flag= |
7640 | enable_shared_with_static_runtimes=no |
7641 | archive_cmds= |
7642 | archive_expsym_cmds= |
7643 | old_archive_From_new_cmds= |
7644 | old_archive_from_expsyms_cmds= |
7645 | export_dynamic_flag_spec= |
7646 | whole_archive_flag_spec= |
7647 | thread_safe_flag_spec= |
7648 | hardcode_libdir_flag_spec= |
7649 | hardcode_libdir_flag_spec_ld= |
7650 | hardcode_libdir_separator= |
7651 | hardcode_direct=no |
7652 | hardcode_minus_L=no |
7653 | hardcode_shlibpath_var=unsupported |
7654 | link_all_deplibs=unknown |
7655 | hardcode_automatic=no |
7656 | module_cmds= |
7657 | module_expsym_cmds= |
7658 | always_export_symbols=no |
7659 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
7660 | # include_expsyms should be a list of space-separated symbols to be *always* |
7661 | # included in the symbol list |
7662 | include_expsyms= |
7663 | # exclude_expsyms can be an extended regexp of symbols to exclude |
7664 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
7665 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
7666 | # as well as any symbol that contains `d'. |
7667 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
7668 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
7669 | # platforms (ab)use it in PIC code, but their linkers get confused if |
7670 | # the symbol is explicitly referenced. Since portable code cannot |
7671 | # rely on this symbol name, it's probably fine to never include it in |
7672 | # preloaded symbol tables. |
7673 | extract_expsyms_cmds= |
7674 | # Just being paranoid about ensuring that cc_basename is set. |
7675 | for cc_temp in $compiler""; do |
7676 | case $cc_temp in |
7677 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
7678 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
7679 | \-*) ;; |
7680 | *) break;; |
7681 | esac |
7682 | done |
7683 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
7684 | |
7685 | case $host_os in |
7686 | cygwin* | mingw* | pw32*) |
7687 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
7688 | # When not using gcc, we currently assume that we are using |
7689 | # Microsoft Visual C++. |
7690 | if test "$GCC" != yes; then |
7691 | with_gnu_ld=no |
7692 | fi |
7693 | ;; |
7694 | interix*) |
7695 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
7696 | with_gnu_ld=yes |
7697 | ;; |
7698 | openbsd*) |
7699 | with_gnu_ld=no |
7700 | ;; |
7701 | esac |
7702 | |
7703 | ld_shlibs=yes |
7704 | if test "$with_gnu_ld" = yes; then |
7705 | # If archive_cmds runs LD, not CC, wlarc should be empty |
7706 | wlarc='${wl}' |
7707 | |
7708 | # Set some defaults for GNU ld with shared library support. These |
7709 | # are reset later if shared libraries are not supported. Putting them |
7710 | # here allows them to be overridden if necessary. |
7711 | runpath_var=LD_RUN_PATH |
7712 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
7713 | export_dynamic_flag_spec='${wl}--export-dynamic' |
7714 | # ancient GNU ld didn't support --whole-archive et. al. |
7715 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
7716 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
7717 | else |
7718 | whole_archive_flag_spec= |
7719 | fi |
7720 | supports_anon_versioning=no |
7721 | case `$LD -v 2>/dev/null` in |
7722 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
7723 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
7724 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
7725 | *\ 2.11.*) ;; # other 2.11 versions |
7726 | *) supports_anon_versioning=yes ;; |
7727 | esac |
7728 | |
7729 | # See if GNU ld supports shared libraries. |
7730 | case $host_os in |
7731 | aix3* | aix4* | aix5*) |
7732 | # On AIX/PPC, the GNU linker is very broken |
7733 | if test "$host_cpu" != ia64; then |
7734 | ld_shlibs=no |
7735 | cat <<EOF 1>&2 |
7736 | |
7737 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
7738 | *** to be unable to reliably create shared libraries on AIX. |
7739 | *** Therefore, libtool is disabling shared libraries support. If you |
7740 | *** really care for shared libraries, you may want to modify your PATH |
7741 | *** so that a non-GNU linker is found, and then restart. |
7742 | |
7743 | EOF |
7744 | fi |
7745 | ;; |
7746 | |
7747 | amigaos*) |
7748 | 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)' |
7749 | hardcode_libdir_flag_spec='-L$libdir' |
7750 | hardcode_minus_L=yes |
7751 | |
7752 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
7753 | # that the semantics of dynamic libraries on AmigaOS, at least up |
7754 | # to version 4, is to share data among multiple programs linked |
7755 | # with the same dynamic library. Since this doesn't match the |
7756 | # behavior of shared libraries on other platforms, we can't use |
7757 | # them. |
7758 | ld_shlibs=no |
7759 | ;; |
7760 | |
7761 | beos*) |
7762 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7763 | allow_undefined_flag=unsupported |
7764 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
7765 | # support --undefined. This deserves some investigation. FIXME |
7766 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7767 | else |
7768 | ld_shlibs=no |
7769 | fi |
7770 | ;; |
7771 | |
7772 | cygwin* | mingw* | pw32*) |
7773 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
7774 | # as there is no search path for DLLs. |
7775 | hardcode_libdir_flag_spec='-L$libdir' |
7776 | allow_undefined_flag=unsupported |
7777 | always_export_symbols=no |
7778 | enable_shared_with_static_runtimes=yes |
ac40fd9e |
7779 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
d9898ee8 |
7780 | |
7781 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
7782 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
7783 | # If the export-symbols file already is a .def file (1st line |
7784 | # is EXPORTS), use it as is; otherwise, prepend... |
7785 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
7786 | cp $export_symbols $output_objdir/$soname.def; |
7787 | else |
7788 | echo EXPORTS > $output_objdir/$soname.def; |
7789 | cat $export_symbols >> $output_objdir/$soname.def; |
7790 | fi~ |
7791 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
7792 | else |
7793 | ld_shlibs=no |
7794 | fi |
7795 | ;; |
7796 | |
ac40fd9e |
7797 | interix[3-9]*) |
d9898ee8 |
7798 | hardcode_direct=no |
7799 | hardcode_shlibpath_var=no |
7800 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
7801 | export_dynamic_flag_spec='${wl}-E' |
7802 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
7803 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
7804 | # default) and relocated if they conflict, which is a slow very memory |
7805 | # consuming and fragmenting process. To avoid this, we pick a random, |
7806 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
7807 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
7808 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
7809 | 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' |
7810 | ;; |
7811 | |
ac40fd9e |
7812 | gnu* | linux* | k*bsd*-gnu) |
d9898ee8 |
7813 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7814 | tmp_addflag= |
7815 | case $cc_basename,$host_cpu in |
7816 | pgcc*) # Portland Group C compiler |
7817 | 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' |
7818 | tmp_addflag=' $pic_flag' |
7819 | ;; |
7820 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
7821 | 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' |
7822 | tmp_addflag=' $pic_flag -Mnomain' ;; |
7823 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
7824 | tmp_addflag=' -i_dynamic' ;; |
7825 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
7826 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
7827 | ifc* | ifort*) # Intel Fortran compiler |
7828 | tmp_addflag=' -nofor_main' ;; |
7829 | esac |
ac40fd9e |
7830 | case `$CC -V 2>&1 | sed 5q` in |
7831 | *Sun\ C*) # Sun C 5.9 |
7832 | whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
7833 | tmp_sharedflag='-G' ;; |
7834 | *Sun\ F*) # Sun Fortran 8.3 |
7835 | tmp_sharedflag='-G' ;; |
7836 | *) |
7837 | tmp_sharedflag='-shared' ;; |
7838 | esac |
7839 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
d9898ee8 |
7840 | |
7841 | if test $supports_anon_versioning = yes; then |
7842 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
7843 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
7844 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
ac40fd9e |
7845 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
d9898ee8 |
7846 | fi |
7847 | else |
7848 | ld_shlibs=no |
7849 | fi |
7850 | ;; |
7851 | |
7852 | netbsd*) |
7853 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
7854 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
7855 | wlarc= |
7856 | else |
7857 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7858 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
7859 | fi |
7860 | ;; |
7861 | |
7862 | solaris*) |
7863 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
7864 | ld_shlibs=no |
7865 | cat <<EOF 1>&2 |
7866 | |
7867 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
7868 | *** create shared libraries on Solaris systems. Therefore, libtool |
7869 | *** is disabling shared libraries support. We urge you to upgrade GNU |
7870 | *** binutils to release 2.9.1 or newer. Another option is to modify |
7871 | *** your PATH or compiler configuration so that the native linker is |
7872 | *** used, and then restart. |
7873 | |
7874 | EOF |
7875 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7876 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7877 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
7878 | else |
7879 | ld_shlibs=no |
7880 | fi |
7881 | ;; |
7882 | |
7883 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
7884 | case `$LD -v 2>&1` in |
7885 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
7886 | ld_shlibs=no |
7887 | cat <<_LT_EOF 1>&2 |
7888 | |
7889 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
7890 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
7891 | *** is disabling shared libraries support. We urge you to upgrade GNU |
7892 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
7893 | *** your PATH or compiler configuration so that the native linker is |
7894 | *** used, and then restart. |
7895 | |
7896 | _LT_EOF |
7897 | ;; |
7898 | *) |
7899 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7900 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
7901 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
7902 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
7903 | else |
7904 | ld_shlibs=no |
7905 | fi |
7906 | ;; |
7907 | esac |
7908 | ;; |
7909 | |
7910 | sunos4*) |
7911 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
7912 | wlarc= |
7913 | hardcode_direct=yes |
7914 | hardcode_shlibpath_var=no |
7915 | ;; |
7916 | |
7917 | *) |
7918 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7919 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7920 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
7921 | else |
7922 | ld_shlibs=no |
7923 | fi |
7924 | ;; |
7925 | esac |
7926 | |
7927 | if test "$ld_shlibs" = no; then |
7928 | runpath_var= |
7929 | hardcode_libdir_flag_spec= |
7930 | export_dynamic_flag_spec= |
7931 | whole_archive_flag_spec= |
7932 | fi |
7933 | else |
7934 | # PORTME fill in a description of your system's linker (not GNU ld) |
7935 | case $host_os in |
7936 | aix3*) |
7937 | allow_undefined_flag=unsupported |
7938 | always_export_symbols=yes |
7939 | 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' |
7940 | # Note: this linker hardcodes the directories in LIBPATH if there |
7941 | # are no directories specified by -L. |
7942 | hardcode_minus_L=yes |
7943 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
7944 | # Neither direct hardcoding nor static linking is supported with a |
7945 | # broken collect2. |
7946 | hardcode_direct=unsupported |
7947 | fi |
7948 | ;; |
7949 | |
7950 | aix4* | aix5*) |
7951 | if test "$host_cpu" = ia64; then |
7952 | # On IA64, the linker does run time linking by default, so we don't |
7953 | # have to do anything special. |
7954 | aix_use_runtimelinking=no |
7955 | exp_sym_flag='-Bexport' |
7956 | no_entry_flag="" |
7957 | else |
7958 | # If we're using GNU nm, then we don't want the "-C" option. |
7959 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
7960 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
7961 | 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' |
7962 | else |
7963 | 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' |
7964 | fi |
7965 | aix_use_runtimelinking=no |
7966 | |
7967 | # Test if we are trying to use run time linking or normal |
7968 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
7969 | # need to do runtime linking. |
7970 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
7971 | for ld_flag in $LDFLAGS; do |
7972 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
7973 | aix_use_runtimelinking=yes |
7974 | break |
7975 | fi |
7976 | done |
7977 | ;; |
7978 | esac |
7979 | |
7980 | exp_sym_flag='-bexport' |
7981 | no_entry_flag='-bnoentry' |
7982 | fi |
7983 | |
7984 | # When large executables or shared objects are built, AIX ld can |
7985 | # have problems creating the table of contents. If linking a library |
7986 | # or program results in "error TOC overflow" add -mminimal-toc to |
7987 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
7988 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
7989 | |
7990 | archive_cmds='' |
7991 | hardcode_direct=yes |
7992 | hardcode_libdir_separator=':' |
7993 | link_all_deplibs=yes |
7994 | |
7995 | if test "$GCC" = yes; then |
7996 | case $host_os in aix4.[012]|aix4.[012].*) |
7997 | # We only want to do this on AIX 4.2 and lower, the check |
7998 | # below for broken collect2 doesn't work under 4.3+ |
7999 | collect2name=`${CC} -print-prog-name=collect2` |
8000 | if test -f "$collect2name" && \ |
8001 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
8002 | then |
8003 | # We have reworked collect2 |
ac40fd9e |
8004 | : |
d9898ee8 |
8005 | else |
8006 | # We have old collect2 |
8007 | hardcode_direct=unsupported |
8008 | # It fails to find uninstalled libraries when the uninstalled |
8009 | # path is not listed in the libpath. Setting hardcode_minus_L |
8010 | # to unsupported forces relinking |
8011 | hardcode_minus_L=yes |
8012 | hardcode_libdir_flag_spec='-L$libdir' |
8013 | hardcode_libdir_separator= |
8014 | fi |
8015 | ;; |
8016 | esac |
8017 | shared_flag='-shared' |
8018 | if test "$aix_use_runtimelinking" = yes; then |
8019 | shared_flag="$shared_flag "'${wl}-G' |
8020 | fi |
8021 | else |
8022 | # not using gcc |
8023 | if test "$host_cpu" = ia64; then |
8024 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
8025 | # chokes on -Wl,-G. The following line is correct: |
8026 | shared_flag='-G' |
8027 | else |
8028 | if test "$aix_use_runtimelinking" = yes; then |
8029 | shared_flag='${wl}-G' |
8030 | else |
8031 | shared_flag='${wl}-bM:SRE' |
8032 | fi |
8033 | fi |
8034 | fi |
8035 | |
8036 | # It seems that -bexpall does not export symbols beginning with |
8037 | # underscore (_), so it is better to generate a list of symbols to export. |
8038 | always_export_symbols=yes |
8039 | if test "$aix_use_runtimelinking" = yes; then |
8040 | # Warning - without using the other runtime loading flags (-brtl), |
8041 | # -berok will link without error, but may produce a broken library. |
8042 | allow_undefined_flag='-berok' |
8043 | # Determine the default libpath from the value encoded in an empty executable. |
8044 | cat >conftest.$ac_ext <<_ACEOF |
8045 | /* confdefs.h. */ |
8046 | _ACEOF |
8047 | cat confdefs.h >>conftest.$ac_ext |
8048 | cat >>conftest.$ac_ext <<_ACEOF |
8049 | /* end confdefs.h. */ |
8050 | |
8051 | int |
8052 | main () |
8053 | { |
8054 | |
8055 | ; |
8056 | return 0; |
8057 | } |
8058 | _ACEOF |
8059 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
8060 | if { (ac_try="$ac_link" |
8061 | case "(($ac_try" in |
8062 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8063 | *) ac_try_echo=$ac_try;; |
8064 | esac |
8065 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8066 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
8067 | ac_status=$? |
8068 | grep -v '^ *+' conftest.er1 >conftest.err |
8069 | rm -f conftest.er1 |
8070 | cat conftest.err >&5 |
8071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
8072 | (exit $ac_status); } && { |
8073 | test -z "$ac_c_werror_flag" || |
8074 | test ! -s conftest.err |
8075 | } && test -s conftest$ac_exeext && |
8076 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
8077 | |
ac40fd9e |
8078 | lt_aix_libpath_sed=' |
8079 | /Import File Strings/,/^$/ { |
8080 | /^0/ { |
8081 | s/^0 *\(.*\)$/\1/ |
8082 | p |
8083 | } |
8084 | }' |
8085 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
d9898ee8 |
8086 | # Check for a 64-bit object if we didn't find anything. |
ac40fd9e |
8087 | if test -z "$aix_libpath"; then |
8088 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
8089 | fi |
d9898ee8 |
8090 | else |
8091 | echo "$as_me: failed program was:" >&5 |
8092 | sed 's/^/| /' conftest.$ac_ext >&5 |
8093 | |
dd184caf |
8094 | |
d9898ee8 |
8095 | fi |
dd184caf |
8096 | |
8097 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
8098 | conftest$ac_exeext conftest.$ac_ext |
8099 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
8100 | |
8101 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
8102 | 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" |
8103 | else |
8104 | if test "$host_cpu" = ia64; then |
8105 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
8106 | allow_undefined_flag="-z nodefs" |
8107 | 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" |
8108 | else |
8109 | # Determine the default libpath from the value encoded in an empty executable. |
8110 | cat >conftest.$ac_ext <<_ACEOF |
8111 | /* confdefs.h. */ |
8112 | _ACEOF |
8113 | cat confdefs.h >>conftest.$ac_ext |
8114 | cat >>conftest.$ac_ext <<_ACEOF |
8115 | /* end confdefs.h. */ |
8116 | |
8117 | int |
8118 | main () |
8119 | { |
8120 | |
8121 | ; |
8122 | return 0; |
8123 | } |
8124 | _ACEOF |
8125 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
8126 | if { (ac_try="$ac_link" |
8127 | case "(($ac_try" in |
8128 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8129 | *) ac_try_echo=$ac_try;; |
8130 | esac |
8131 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8132 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
8133 | ac_status=$? |
8134 | grep -v '^ *+' conftest.er1 >conftest.err |
8135 | rm -f conftest.er1 |
8136 | cat conftest.err >&5 |
8137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
8138 | (exit $ac_status); } && { |
8139 | test -z "$ac_c_werror_flag" || |
8140 | test ! -s conftest.err |
8141 | } && test -s conftest$ac_exeext && |
8142 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
8143 | |
ac40fd9e |
8144 | lt_aix_libpath_sed=' |
8145 | /Import File Strings/,/^$/ { |
8146 | /^0/ { |
8147 | s/^0 *\(.*\)$/\1/ |
8148 | p |
8149 | } |
8150 | }' |
8151 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
d9898ee8 |
8152 | # Check for a 64-bit object if we didn't find anything. |
ac40fd9e |
8153 | if test -z "$aix_libpath"; then |
8154 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
8155 | fi |
d9898ee8 |
8156 | else |
8157 | echo "$as_me: failed program was:" >&5 |
8158 | sed 's/^/| /' conftest.$ac_ext >&5 |
8159 | |
dd184caf |
8160 | |
d9898ee8 |
8161 | fi |
dd184caf |
8162 | |
8163 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
8164 | conftest$ac_exeext conftest.$ac_ext |
8165 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
8166 | |
8167 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
8168 | # Warning - without using the other run time loading flags, |
8169 | # -berok will link without error, but may produce a broken library. |
8170 | no_undefined_flag=' ${wl}-bernotok' |
8171 | allow_undefined_flag=' ${wl}-berok' |
8172 | # Exported symbols can be pulled into shared objects from archives |
8173 | whole_archive_flag_spec='$convenience' |
8174 | archive_cmds_need_lc=yes |
8175 | # This is similar to how AIX traditionally builds its shared libraries. |
8176 | 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' |
8177 | fi |
8178 | fi |
8179 | ;; |
8180 | |
8181 | amigaos*) |
8182 | 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)' |
8183 | hardcode_libdir_flag_spec='-L$libdir' |
8184 | hardcode_minus_L=yes |
8185 | # see comment about different semantics on the GNU ld section |
8186 | ld_shlibs=no |
8187 | ;; |
8188 | |
8189 | bsdi[45]*) |
8190 | export_dynamic_flag_spec=-rdynamic |
8191 | ;; |
8192 | |
8193 | cygwin* | mingw* | pw32*) |
8194 | # When not using gcc, we currently assume that we are using |
8195 | # Microsoft Visual C++. |
8196 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
8197 | # no search path for DLLs. |
8198 | hardcode_libdir_flag_spec=' ' |
8199 | allow_undefined_flag=unsupported |
8200 | # Tell ltmain to make .lib files, not .a files. |
8201 | libext=lib |
8202 | # Tell ltmain to make .dll files, not .so files. |
8203 | shrext_cmds=".dll" |
8204 | # FIXME: Setting linknames here is a bad hack. |
8205 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
8206 | # The linker will automatically build a .lib file if we build a DLL. |
8207 | old_archive_From_new_cmds='true' |
8208 | # FIXME: Should let the user specify the lib program. |
ac40fd9e |
8209 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' |
d9898ee8 |
8210 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
8211 | enable_shared_with_static_runtimes=yes |
8212 | ;; |
8213 | |
8214 | darwin* | rhapsody*) |
8215 | case $host_os in |
8216 | rhapsody* | darwin1.[012]) |
8217 | allow_undefined_flag='${wl}-undefined ${wl}suppress' |
8218 | ;; |
8219 | *) # Darwin 1.3 on |
8220 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
8221 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
8222 | else |
8223 | case ${MACOSX_DEPLOYMENT_TARGET} in |
8224 | 10.[012]) |
8225 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
8226 | ;; |
8227 | 10.*) |
8228 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' |
8229 | ;; |
8230 | esac |
8231 | fi |
8232 | ;; |
8233 | esac |
8234 | archive_cmds_need_lc=no |
8235 | hardcode_direct=no |
8236 | hardcode_automatic=yes |
8237 | hardcode_shlibpath_var=unsupported |
8238 | whole_archive_flag_spec='' |
8239 | link_all_deplibs=yes |
8240 | if test "$GCC" = yes ; then |
8241 | output_verbose_link_cmd='echo' |
8242 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
8243 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
8244 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
8245 | 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}' |
8246 | 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}' |
8247 | else |
8248 | case $cc_basename in |
8249 | xlc*) |
8250 | output_verbose_link_cmd='echo' |
ac40fd9e |
8251 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' |
d9898ee8 |
8252 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
8253 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
ac40fd9e |
8254 | 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
d9898ee8 |
8255 | 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}' |
8256 | ;; |
8257 | *) |
8258 | ld_shlibs=no |
8259 | ;; |
8260 | esac |
8261 | fi |
8262 | ;; |
8263 | |
8264 | dgux*) |
8265 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8266 | hardcode_libdir_flag_spec='-L$libdir' |
8267 | hardcode_shlibpath_var=no |
8268 | ;; |
8269 | |
8270 | freebsd1*) |
8271 | ld_shlibs=no |
8272 | ;; |
8273 | |
8274 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
8275 | # support. Future versions do this automatically, but an explicit c++rt0.o |
8276 | # does not break anything, and helps significantly (at the cost of a little |
8277 | # extra space). |
8278 | freebsd2.2*) |
8279 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
8280 | hardcode_libdir_flag_spec='-R$libdir' |
8281 | hardcode_direct=yes |
8282 | hardcode_shlibpath_var=no |
8283 | ;; |
8284 | |
8285 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
8286 | freebsd2*) |
8287 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
8288 | hardcode_direct=yes |
8289 | hardcode_minus_L=yes |
8290 | hardcode_shlibpath_var=no |
8291 | ;; |
8292 | |
8293 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
ac40fd9e |
8294 | freebsd* | dragonfly*) |
d9898ee8 |
8295 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
8296 | hardcode_libdir_flag_spec='-R$libdir' |
8297 | hardcode_direct=yes |
8298 | hardcode_shlibpath_var=no |
8299 | ;; |
8300 | |
8301 | hpux9*) |
8302 | if test "$GCC" = yes; then |
8303 | 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' |
8304 | else |
8305 | 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' |
8306 | fi |
8307 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
8308 | hardcode_libdir_separator=: |
8309 | hardcode_direct=yes |
8310 | |
8311 | # hardcode_minus_L: Not really in the search PATH, |
8312 | # but as the default location of the library. |
8313 | hardcode_minus_L=yes |
8314 | export_dynamic_flag_spec='${wl}-E' |
8315 | ;; |
8316 | |
8317 | hpux10*) |
8318 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
8319 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
8320 | else |
8321 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
8322 | fi |
8323 | if test "$with_gnu_ld" = no; then |
8324 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
8325 | hardcode_libdir_separator=: |
8326 | |
8327 | hardcode_direct=yes |
8328 | export_dynamic_flag_spec='${wl}-E' |
8329 | |
8330 | # hardcode_minus_L: Not really in the search PATH, |
8331 | # but as the default location of the library. |
8332 | hardcode_minus_L=yes |
8333 | fi |
8334 | ;; |
8335 | |
8336 | hpux11*) |
8337 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
8338 | case $host_cpu in |
8339 | hppa*64*) |
8340 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8341 | ;; |
8342 | ia64*) |
8343 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
8344 | ;; |
8345 | *) |
8346 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
8347 | ;; |
8348 | esac |
8349 | else |
8350 | case $host_cpu in |
8351 | hppa*64*) |
8352 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8353 | ;; |
8354 | ia64*) |
8355 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
8356 | ;; |
8357 | *) |
8358 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
8359 | ;; |
8360 | esac |
8361 | fi |
8362 | if test "$with_gnu_ld" = no; then |
8363 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
8364 | hardcode_libdir_separator=: |
8365 | |
8366 | case $host_cpu in |
8367 | hppa*64*|ia64*) |
8368 | hardcode_libdir_flag_spec_ld='+b $libdir' |
8369 | hardcode_direct=no |
8370 | hardcode_shlibpath_var=no |
8371 | ;; |
8372 | *) |
8373 | hardcode_direct=yes |
8374 | export_dynamic_flag_spec='${wl}-E' |
8375 | |
8376 | # hardcode_minus_L: Not really in the search PATH, |
8377 | # but as the default location of the library. |
8378 | hardcode_minus_L=yes |
8379 | ;; |
8380 | esac |
8381 | fi |
8382 | ;; |
8383 | |
8384 | irix5* | irix6* | nonstopux*) |
8385 | if test "$GCC" = yes; then |
8386 | 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' |
8387 | else |
8388 | 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' |
8389 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
8390 | fi |
8391 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
8392 | hardcode_libdir_separator=: |
8393 | link_all_deplibs=yes |
8394 | ;; |
8395 | |
8396 | netbsd*) |
8397 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
8398 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
8399 | else |
8400 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
8401 | fi |
8402 | hardcode_libdir_flag_spec='-R$libdir' |
8403 | hardcode_direct=yes |
8404 | hardcode_shlibpath_var=no |
8405 | ;; |
8406 | |
8407 | newsos6) |
8408 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8409 | hardcode_direct=yes |
8410 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
8411 | hardcode_libdir_separator=: |
8412 | hardcode_shlibpath_var=no |
8413 | ;; |
8414 | |
8415 | openbsd*) |
ac40fd9e |
8416 | if test -f /usr/libexec/ld.so; then |
8417 | hardcode_direct=yes |
8418 | hardcode_shlibpath_var=no |
8419 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
8420 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
8421 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
8422 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
8423 | export_dynamic_flag_spec='${wl}-E' |
8424 | else |
8425 | case $host_os in |
8426 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
8427 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
8428 | hardcode_libdir_flag_spec='-R$libdir' |
8429 | ;; |
8430 | *) |
8431 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
8432 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
8433 | ;; |
8434 | esac |
8435 | fi |
d9898ee8 |
8436 | else |
ac40fd9e |
8437 | ld_shlibs=no |
d9898ee8 |
8438 | fi |
8439 | ;; |
8440 | |
8441 | os2*) |
8442 | hardcode_libdir_flag_spec='-L$libdir' |
8443 | hardcode_minus_L=yes |
8444 | allow_undefined_flag=unsupported |
8445 | 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' |
8446 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
8447 | ;; |
8448 | |
8449 | osf3*) |
8450 | if test "$GCC" = yes; then |
8451 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
8452 | 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' |
8453 | else |
8454 | allow_undefined_flag=' -expect_unresolved \*' |
8455 | 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' |
8456 | fi |
8457 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
8458 | hardcode_libdir_separator=: |
8459 | ;; |
8460 | |
8461 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
8462 | if test "$GCC" = yes; then |
8463 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
8464 | 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' |
8465 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
8466 | else |
8467 | allow_undefined_flag=' -expect_unresolved \*' |
8468 | 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' |
8469 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
8470 | $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' |
8471 | |
8472 | # Both c and cxx compiler support -rpath directly |
8473 | hardcode_libdir_flag_spec='-rpath $libdir' |
8474 | fi |
8475 | hardcode_libdir_separator=: |
8476 | ;; |
8477 | |
8478 | solaris*) |
8479 | no_undefined_flag=' -z text' |
8480 | if test "$GCC" = yes; then |
8481 | wlarc='${wl}' |
8482 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8483 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
8484 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
8485 | else |
8486 | wlarc='' |
8487 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8488 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
8489 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
8490 | fi |
8491 | hardcode_libdir_flag_spec='-R$libdir' |
8492 | hardcode_shlibpath_var=no |
8493 | case $host_os in |
8494 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
8495 | *) |
ac40fd9e |
8496 | # The compiler driver will combine and reorder linker options, |
8497 | # but understands `-z linker_flag'. GCC discards it without `$wl', |
8498 | # but is careful enough not to reorder. |
d9898ee8 |
8499 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
ac40fd9e |
8500 | if test "$GCC" = yes; then |
8501 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
8502 | else |
8503 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' |
8504 | fi |
8505 | ;; |
d9898ee8 |
8506 | esac |
8507 | link_all_deplibs=yes |
8508 | ;; |
8509 | |
8510 | sunos4*) |
8511 | if test "x$host_vendor" = xsequent; then |
8512 | # Use $CC to link under sequent, because it throws in some extra .o |
8513 | # files that make .init and .fini sections work. |
8514 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
8515 | else |
8516 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
8517 | fi |
8518 | hardcode_libdir_flag_spec='-L$libdir' |
8519 | hardcode_direct=yes |
8520 | hardcode_minus_L=yes |
8521 | hardcode_shlibpath_var=no |
8522 | ;; |
8523 | |
8524 | sysv4) |
8525 | case $host_vendor in |
8526 | sni) |
8527 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8528 | hardcode_direct=yes # is this really true??? |
8529 | ;; |
8530 | siemens) |
8531 | ## LD is ld it makes a PLAMLIB |
8532 | ## CC just makes a GrossModule. |
8533 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
8534 | reload_cmds='$CC -r -o $output$reload_objs' |
8535 | hardcode_direct=no |
8536 | ;; |
8537 | motorola) |
8538 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8539 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
8540 | ;; |
8541 | esac |
8542 | runpath_var='LD_RUN_PATH' |
8543 | hardcode_shlibpath_var=no |
8544 | ;; |
8545 | |
8546 | sysv4.3*) |
8547 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8548 | hardcode_shlibpath_var=no |
8549 | export_dynamic_flag_spec='-Bexport' |
8550 | ;; |
8551 | |
8552 | sysv4*MP*) |
8553 | if test -d /usr/nec; then |
8554 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8555 | hardcode_shlibpath_var=no |
8556 | runpath_var=LD_RUN_PATH |
8557 | hardcode_runpath_var=yes |
8558 | ld_shlibs=yes |
8559 | fi |
8560 | ;; |
8561 | |
ac40fd9e |
8562 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
d9898ee8 |
8563 | no_undefined_flag='${wl}-z,text' |
8564 | archive_cmds_need_lc=no |
8565 | hardcode_shlibpath_var=no |
8566 | runpath_var='LD_RUN_PATH' |
8567 | |
8568 | if test "$GCC" = yes; then |
8569 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
8570 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
8571 | else |
8572 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
8573 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
8574 | fi |
8575 | ;; |
8576 | |
8577 | sysv5* | sco3.2v5* | sco5v6*) |
8578 | # Note: We can NOT use -z defs as we might desire, because we do not |
8579 | # link with -lc, and that would cause any symbols used from libc to |
8580 | # always be unresolved, which means just about no library would |
8581 | # ever link correctly. If we're not using GNU ld we use -z text |
8582 | # though, which does catch some bad symbols but isn't as heavy-handed |
8583 | # as -z defs. |
8584 | no_undefined_flag='${wl}-z,text' |
8585 | allow_undefined_flag='${wl}-z,nodefs' |
8586 | archive_cmds_need_lc=no |
8587 | hardcode_shlibpath_var=no |
8588 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
8589 | hardcode_libdir_separator=':' |
8590 | link_all_deplibs=yes |
8591 | export_dynamic_flag_spec='${wl}-Bexport' |
8592 | runpath_var='LD_RUN_PATH' |
8593 | |
8594 | if test "$GCC" = yes; then |
8595 | archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8596 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8597 | else |
8598 | archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8599 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8600 | fi |
8601 | ;; |
8602 | |
8603 | uts4*) |
8604 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8605 | hardcode_libdir_flag_spec='-L$libdir' |
8606 | hardcode_shlibpath_var=no |
8607 | ;; |
8608 | |
8609 | *) |
8610 | ld_shlibs=no |
8611 | ;; |
8612 | esac |
8613 | fi |
8614 | |
dd184caf |
8615 | { echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
8616 | echo "${ECHO_T}$ld_shlibs" >&6; } |
d9898ee8 |
8617 | test "$ld_shlibs" = no && can_build_shared=no |
8618 | |
8619 | # |
8620 | # Do we need to explicitly link libc? |
8621 | # |
8622 | case "x$archive_cmds_need_lc" in |
8623 | x|xyes) |
8624 | # Assume -lc should be added |
8625 | archive_cmds_need_lc=yes |
8626 | |
8627 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
8628 | case $archive_cmds in |
8629 | *'~'*) |
8630 | # FIXME: we may have to deal with multi-command sequences. |
8631 | ;; |
8632 | '$CC '*) |
8633 | # Test whether the compiler implicitly links with -lc since on some |
8634 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
8635 | # to ld, don't add -lc before -lgcc. |
dd184caf |
8636 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
8637 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
d9898ee8 |
8638 | $rm conftest* |
ac40fd9e |
8639 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
d9898ee8 |
8640 | |
8641 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
8642 | (eval $ac_compile) 2>&5 |
8643 | ac_status=$? |
8644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8645 | (exit $ac_status); } 2>conftest.err; then |
8646 | soname=conftest |
8647 | lib=conftest |
8648 | libobjs=conftest.$ac_objext |
8649 | deplibs= |
8650 | wl=$lt_prog_compiler_wl |
8651 | pic_flag=$lt_prog_compiler_pic |
8652 | compiler_flags=-v |
8653 | linker_flags=-v |
8654 | verstring= |
8655 | output_objdir=. |
8656 | libname=conftest |
8657 | lt_save_allow_undefined_flag=$allow_undefined_flag |
8658 | allow_undefined_flag= |
8659 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
8660 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
8661 | ac_status=$? |
8662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8663 | (exit $ac_status); } |
8664 | then |
8665 | archive_cmds_need_lc=no |
8666 | else |
8667 | archive_cmds_need_lc=yes |
8668 | fi |
8669 | allow_undefined_flag=$lt_save_allow_undefined_flag |
8670 | else |
8671 | cat conftest.err 1>&5 |
8672 | fi |
8673 | $rm conftest* |
dd184caf |
8674 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
8675 | echo "${ECHO_T}$archive_cmds_need_lc" >&6; } |
d9898ee8 |
8676 | ;; |
8677 | esac |
8678 | fi |
8679 | ;; |
8680 | esac |
8681 | |
dd184caf |
8682 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
8683 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
d9898ee8 |
8684 | library_names_spec= |
8685 | libname_spec='lib$name' |
8686 | soname_spec= |
8687 | shrext_cmds=".so" |
8688 | postinstall_cmds= |
8689 | postuninstall_cmds= |
8690 | finish_cmds= |
8691 | finish_eval= |
8692 | shlibpath_var= |
8693 | shlibpath_overrides_runpath=unknown |
8694 | version_type=none |
8695 | dynamic_linker="$host_os ld.so" |
8696 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
ac40fd9e |
8697 | |
d9898ee8 |
8698 | if test "$GCC" = yes; then |
ac40fd9e |
8699 | case $host_os in |
8700 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; |
8701 | *) lt_awk_arg="/^libraries:/" ;; |
8702 | esac |
8703 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
8704 | if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then |
d9898ee8 |
8705 | # if the path contains ";" then we assume it to be the separator |
8706 | # otherwise default to the standard path separator (i.e. ":") - it is |
8707 | # assumed that no part of a normal pathname contains ";" but that should |
8708 | # okay in the real world where ";" in dirpaths is itself problematic. |
ac40fd9e |
8709 | lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` |
d9898ee8 |
8710 | else |
ac40fd9e |
8711 | lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
d9898ee8 |
8712 | fi |
ac40fd9e |
8713 | # Ok, now we have the path, separated by spaces, we can step through it |
8714 | # and add multilib dir if necessary. |
8715 | lt_tmp_lt_search_path_spec= |
8716 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
8717 | for lt_sys_path in $lt_search_path_spec; do |
8718 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then |
8719 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" |
8720 | else |
8721 | test -d "$lt_sys_path" && \ |
8722 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
8723 | fi |
8724 | done |
8725 | lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' |
8726 | BEGIN {RS=" "; FS="/|\n";} { |
8727 | lt_foo=""; |
8728 | lt_count=0; |
8729 | for (lt_i = NF; lt_i > 0; lt_i--) { |
8730 | if ($lt_i != "" && $lt_i != ".") { |
8731 | if ($lt_i == "..") { |
8732 | lt_count++; |
8733 | } else { |
8734 | if (lt_count == 0) { |
8735 | lt_foo="/" $lt_i lt_foo; |
8736 | } else { |
8737 | lt_count--; |
8738 | } |
8739 | } |
8740 | } |
8741 | } |
8742 | if (lt_foo != "") { lt_freq[lt_foo]++; } |
8743 | if (lt_freq[lt_foo] == 1) { print lt_foo; } |
8744 | }'` |
8745 | sys_lib_search_path_spec=`echo $lt_search_path_spec` |
d9898ee8 |
8746 | else |
8747 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
8748 | fi |
8749 | need_lib_prefix=unknown |
8750 | hardcode_into_libs=no |
8751 | |
8752 | # when you set need_version to no, make sure it does not cause -set_version |
8753 | # flags to be left without arguments |
8754 | need_version=unknown |
8755 | |
8756 | case $host_os in |
8757 | aix3*) |
8758 | version_type=linux |
8759 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
8760 | shlibpath_var=LIBPATH |
8761 | |
8762 | # AIX 3 has no versioning support, so we append a major version to the name. |
8763 | soname_spec='${libname}${release}${shared_ext}$major' |
8764 | ;; |
8765 | |
8766 | aix4* | aix5*) |
8767 | version_type=linux |
8768 | need_lib_prefix=no |
8769 | need_version=no |
8770 | hardcode_into_libs=yes |
8771 | if test "$host_cpu" = ia64; then |
8772 | # AIX 5 supports IA64 |
8773 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
8774 | shlibpath_var=LD_LIBRARY_PATH |
8775 | else |
8776 | # With GCC up to 2.95.x, collect2 would create an import file |
8777 | # for dependence libraries. The import file would start with |
8778 | # the line `#! .'. This would cause the generated library to |
8779 | # depend on `.', always an invalid library. This was fixed in |
8780 | # development snapshots of GCC prior to 3.0. |
8781 | case $host_os in |
8782 | aix4 | aix4.[01] | aix4.[01].*) |
8783 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
8784 | echo ' yes ' |
8785 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
8786 | : |
8787 | else |
8788 | can_build_shared=no |
8789 | fi |
8790 | ;; |
8791 | esac |
8792 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
8793 | # soname into executable. Probably we can add versioning support to |
8794 | # collect2, so additional links can be useful in future. |
8795 | if test "$aix_use_runtimelinking" = yes; then |
8796 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
8797 | # instead of lib<name>.a to let people know that these are not |
8798 | # typical AIX shared libraries. |
8799 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8800 | else |
8801 | # We preserve .a as extension for shared libraries through AIX4.2 |
8802 | # and later when we are not doing run time linking. |
8803 | library_names_spec='${libname}${release}.a $libname.a' |
8804 | soname_spec='${libname}${release}${shared_ext}$major' |
8805 | fi |
8806 | shlibpath_var=LIBPATH |
8807 | fi |
8808 | ;; |
8809 | |
8810 | amigaos*) |
8811 | library_names_spec='$libname.ixlibrary $libname.a' |
8812 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
8813 | 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' |
8814 | ;; |
8815 | |
8816 | beos*) |
8817 | library_names_spec='${libname}${shared_ext}' |
8818 | dynamic_linker="$host_os ld.so" |
8819 | shlibpath_var=LIBRARY_PATH |
8820 | ;; |
8821 | |
8822 | bsdi[45]*) |
8823 | version_type=linux |
8824 | need_version=no |
8825 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8826 | soname_spec='${libname}${release}${shared_ext}$major' |
8827 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
8828 | shlibpath_var=LD_LIBRARY_PATH |
8829 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
8830 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
8831 | # the default ld.so.conf also contains /usr/contrib/lib and |
8832 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
8833 | # libtool to hard-code these into programs |
8834 | ;; |
8835 | |
8836 | cygwin* | mingw* | pw32*) |
8837 | version_type=windows |
8838 | shrext_cmds=".dll" |
8839 | need_version=no |
8840 | need_lib_prefix=no |
8841 | |
8842 | case $GCC,$host_os in |
8843 | yes,cygwin* | yes,mingw* | yes,pw32*) |
8844 | library_names_spec='$libname.dll.a' |
8845 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
8846 | postinstall_cmds='base_file=`basename \${file}`~ |
8847 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
8848 | dldir=$destdir/`dirname \$dlpath`~ |
8849 | test -d \$dldir || mkdir -p \$dldir~ |
8850 | $install_prog $dir/$dlname \$dldir/$dlname~ |
8851 | chmod a+x \$dldir/$dlname' |
8852 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
8853 | dlpath=$dir/\$dldll~ |
8854 | $rm \$dlpath' |
8855 | shlibpath_overrides_runpath=yes |
8856 | |
8857 | case $host_os in |
8858 | cygwin*) |
8859 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
8860 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
8861 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
8862 | ;; |
8863 | mingw*) |
8864 | # MinGW DLLs use traditional 'lib' prefix |
8865 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
8866 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
8867 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
8868 | # It is most probably a Windows format PATH printed by |
8869 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
8870 | # path with ; separators, and with drive letters. We can handle the |
8871 | # drive letters (cygwin fileutils understands them), so leave them, |
8872 | # especially as we might pass files found there to a mingw objdump, |
8873 | # which wouldn't understand a cygwinified path. Ahh. |
8874 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
8875 | else |
8876 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
8877 | fi |
8878 | ;; |
8879 | pw32*) |
8880 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
8881 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
8882 | ;; |
8883 | esac |
8884 | ;; |
8885 | |
8886 | *) |
8887 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
8888 | ;; |
8889 | esac |
8890 | dynamic_linker='Win32 ld.exe' |
8891 | # FIXME: first we should search . and the directory the executable is in |
8892 | shlibpath_var=PATH |
8893 | ;; |
8894 | |
8895 | darwin* | rhapsody*) |
8896 | dynamic_linker="$host_os dyld" |
8897 | version_type=darwin |
8898 | need_lib_prefix=no |
8899 | need_version=no |
8900 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
8901 | soname_spec='${libname}${release}${major}$shared_ext' |
8902 | shlibpath_overrides_runpath=yes |
8903 | shlibpath_var=DYLD_LIBRARY_PATH |
8904 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
ac40fd9e |
8905 | |
8906 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
d9898ee8 |
8907 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
8908 | ;; |
8909 | |
8910 | dgux*) |
8911 | version_type=linux |
8912 | need_lib_prefix=no |
8913 | need_version=no |
8914 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
8915 | soname_spec='${libname}${release}${shared_ext}$major' |
8916 | shlibpath_var=LD_LIBRARY_PATH |
8917 | ;; |
8918 | |
8919 | freebsd1*) |
8920 | dynamic_linker=no |
8921 | ;; |
8922 | |
d9898ee8 |
8923 | freebsd* | dragonfly*) |
8924 | # DragonFly does not have aout. When/if they implement a new |
8925 | # versioning mechanism, adjust this. |
8926 | if test -x /usr/bin/objformat; then |
8927 | objformat=`/usr/bin/objformat` |
8928 | else |
8929 | case $host_os in |
8930 | freebsd[123]*) objformat=aout ;; |
8931 | *) objformat=elf ;; |
8932 | esac |
8933 | fi |
8934 | version_type=freebsd-$objformat |
8935 | case $version_type in |
8936 | freebsd-elf*) |
8937 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
8938 | need_version=no |
8939 | need_lib_prefix=no |
8940 | ;; |
8941 | freebsd-*) |
8942 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
8943 | need_version=yes |
8944 | ;; |
8945 | esac |
8946 | shlibpath_var=LD_LIBRARY_PATH |
8947 | case $host_os in |
8948 | freebsd2*) |
8949 | shlibpath_overrides_runpath=yes |
8950 | ;; |
8951 | freebsd3.[01]* | freebsdelf3.[01]*) |
8952 | shlibpath_overrides_runpath=yes |
8953 | hardcode_into_libs=yes |
8954 | ;; |
8955 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
8956 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
8957 | shlibpath_overrides_runpath=no |
8958 | hardcode_into_libs=yes |
8959 | ;; |
ac40fd9e |
8960 | *) # from 4.6 on, and DragonFly |
d9898ee8 |
8961 | shlibpath_overrides_runpath=yes |
8962 | hardcode_into_libs=yes |
8963 | ;; |
8964 | esac |
8965 | ;; |
8966 | |
8967 | gnu*) |
8968 | version_type=linux |
8969 | need_lib_prefix=no |
8970 | need_version=no |
8971 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
8972 | soname_spec='${libname}${release}${shared_ext}$major' |
8973 | shlibpath_var=LD_LIBRARY_PATH |
8974 | hardcode_into_libs=yes |
8975 | ;; |
8976 | |
8977 | hpux9* | hpux10* | hpux11*) |
8978 | # Give a soname corresponding to the major version so that dld.sl refuses to |
8979 | # link against other versions. |
8980 | version_type=sunos |
8981 | need_lib_prefix=no |
8982 | need_version=no |
8983 | case $host_cpu in |
8984 | ia64*) |
8985 | shrext_cmds='.so' |
8986 | hardcode_into_libs=yes |
8987 | dynamic_linker="$host_os dld.so" |
8988 | shlibpath_var=LD_LIBRARY_PATH |
8989 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
8990 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8991 | soname_spec='${libname}${release}${shared_ext}$major' |
8992 | if test "X$HPUX_IA64_MODE" = X32; then |
8993 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
8994 | else |
8995 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
8996 | fi |
8997 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
8998 | ;; |
8999 | hppa*64*) |
9000 | shrext_cmds='.sl' |
9001 | hardcode_into_libs=yes |
9002 | dynamic_linker="$host_os dld.sl" |
9003 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
9004 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
9005 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9006 | soname_spec='${libname}${release}${shared_ext}$major' |
9007 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
9008 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
9009 | ;; |
9010 | *) |
9011 | shrext_cmds='.sl' |
9012 | dynamic_linker="$host_os dld.sl" |
9013 | shlibpath_var=SHLIB_PATH |
9014 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
9015 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9016 | soname_spec='${libname}${release}${shared_ext}$major' |
9017 | ;; |
9018 | esac |
9019 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
9020 | postinstall_cmds='chmod 555 $lib' |
9021 | ;; |
9022 | |
ac40fd9e |
9023 | interix[3-9]*) |
d9898ee8 |
9024 | version_type=linux |
9025 | need_lib_prefix=no |
9026 | need_version=no |
9027 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
9028 | soname_spec='${libname}${release}${shared_ext}$major' |
9029 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
9030 | shlibpath_var=LD_LIBRARY_PATH |
9031 | shlibpath_overrides_runpath=no |
9032 | hardcode_into_libs=yes |
9033 | ;; |
9034 | |
9035 | irix5* | irix6* | nonstopux*) |
9036 | case $host_os in |
9037 | nonstopux*) version_type=nonstopux ;; |
9038 | *) |
9039 | if test "$lt_cv_prog_gnu_ld" = yes; then |
9040 | version_type=linux |
9041 | else |
9042 | version_type=irix |
9043 | fi ;; |
9044 | esac |
9045 | need_lib_prefix=no |
9046 | need_version=no |
9047 | soname_spec='${libname}${release}${shared_ext}$major' |
9048 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
9049 | case $host_os in |
9050 | irix5* | nonstopux*) |
9051 | libsuff= shlibsuff= |
9052 | ;; |
9053 | *) |
9054 | case $LD in # libtool.m4 will add one of these switches to LD |
9055 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
9056 | libsuff= shlibsuff= libmagic=32-bit;; |
9057 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
9058 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
9059 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
9060 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
9061 | *) libsuff= shlibsuff= libmagic=never-match;; |
9062 | esac |
9063 | ;; |
9064 | esac |
9065 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
9066 | shlibpath_overrides_runpath=no |
9067 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
9068 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
9069 | hardcode_into_libs=yes |
9070 | ;; |
9071 | |
9072 | # No shared lib support for Linux oldld, aout, or coff. |
9073 | linux*oldld* | linux*aout* | linux*coff*) |
9074 | dynamic_linker=no |
9075 | ;; |
9076 | |
9077 | # This must be Linux ELF. |
ac40fd9e |
9078 | linux* | k*bsd*-gnu) |
d9898ee8 |
9079 | version_type=linux |
9080 | need_lib_prefix=no |
9081 | need_version=no |
9082 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9083 | soname_spec='${libname}${release}${shared_ext}$major' |
9084 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
9085 | shlibpath_var=LD_LIBRARY_PATH |
9086 | shlibpath_overrides_runpath=no |
9087 | # This implies no fast_install, which is unacceptable. |
9088 | # Some rework will be needed to allow for fast_install |
9089 | # before this can be enabled. |
9090 | hardcode_into_libs=yes |
ac40fd9e |
9091 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
9092 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
d9898ee8 |
9093 | |
9094 | # Append ld.so.conf contents to the search path |
9095 | if test -f /etc/ld.so.conf; then |
ac40fd9e |
9096 | 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/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
9097 | sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" |
d9898ee8 |
9098 | fi |
9099 | |
9100 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
9101 | # powerpc, because MkLinux only supported shared libraries with the |
9102 | # GNU dynamic linker. Since this was broken with cross compilers, |
9103 | # most powerpc-linux boxes support dynamic linking these days and |
9104 | # people can always --disable-shared, the test was removed, and we |
9105 | # assume the GNU/Linux dynamic linker is in use. |
9106 | dynamic_linker='GNU/Linux ld.so' |
9107 | ;; |
9108 | |
d9898ee8 |
9109 | netbsd*) |
9110 | version_type=sunos |
9111 | need_lib_prefix=no |
9112 | need_version=no |
9113 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
9114 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
9115 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
9116 | dynamic_linker='NetBSD (a.out) ld.so' |
9117 | else |
9118 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
9119 | soname_spec='${libname}${release}${shared_ext}$major' |
9120 | dynamic_linker='NetBSD ld.elf_so' |
9121 | fi |
9122 | shlibpath_var=LD_LIBRARY_PATH |
9123 | shlibpath_overrides_runpath=yes |
9124 | hardcode_into_libs=yes |
9125 | ;; |
9126 | |
9127 | newsos6) |
9128 | version_type=linux |
9129 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9130 | shlibpath_var=LD_LIBRARY_PATH |
9131 | shlibpath_overrides_runpath=yes |
9132 | ;; |
9133 | |
9134 | nto-qnx*) |
9135 | version_type=linux |
9136 | need_lib_prefix=no |
9137 | need_version=no |
9138 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9139 | soname_spec='${libname}${release}${shared_ext}$major' |
9140 | shlibpath_var=LD_LIBRARY_PATH |
9141 | shlibpath_overrides_runpath=yes |
9142 | ;; |
9143 | |
9144 | openbsd*) |
9145 | version_type=sunos |
9146 | sys_lib_dlsearch_path_spec="/usr/lib" |
9147 | need_lib_prefix=no |
9148 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
9149 | case $host_os in |
9150 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
9151 | *) need_version=no ;; |
9152 | esac |
9153 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
9154 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
9155 | shlibpath_var=LD_LIBRARY_PATH |
9156 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
9157 | case $host_os in |
9158 | openbsd2.[89] | openbsd2.[89].*) |
9159 | shlibpath_overrides_runpath=no |
9160 | ;; |
9161 | *) |
9162 | shlibpath_overrides_runpath=yes |
9163 | ;; |
9164 | esac |
9165 | else |
9166 | shlibpath_overrides_runpath=yes |
9167 | fi |
9168 | ;; |
9169 | |
9170 | os2*) |
9171 | libname_spec='$name' |
9172 | shrext_cmds=".dll" |
9173 | need_lib_prefix=no |
9174 | library_names_spec='$libname${shared_ext} $libname.a' |
9175 | dynamic_linker='OS/2 ld.exe' |
9176 | shlibpath_var=LIBPATH |
9177 | ;; |
9178 | |
9179 | osf3* | osf4* | osf5*) |
9180 | version_type=osf |
9181 | need_lib_prefix=no |
9182 | need_version=no |
9183 | soname_spec='${libname}${release}${shared_ext}$major' |
9184 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9185 | shlibpath_var=LD_LIBRARY_PATH |
9186 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
9187 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
9188 | ;; |
9189 | |
ac40fd9e |
9190 | rdos*) |
9191 | dynamic_linker=no |
9192 | ;; |
9193 | |
d9898ee8 |
9194 | solaris*) |
9195 | version_type=linux |
9196 | need_lib_prefix=no |
9197 | need_version=no |
9198 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9199 | soname_spec='${libname}${release}${shared_ext}$major' |
9200 | shlibpath_var=LD_LIBRARY_PATH |
9201 | shlibpath_overrides_runpath=yes |
9202 | hardcode_into_libs=yes |
9203 | # ldd complains unless libraries are executable |
9204 | postinstall_cmds='chmod +x $lib' |
9205 | ;; |
9206 | |
9207 | sunos4*) |
9208 | version_type=sunos |
9209 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
9210 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
9211 | shlibpath_var=LD_LIBRARY_PATH |
9212 | shlibpath_overrides_runpath=yes |
9213 | if test "$with_gnu_ld" = yes; then |
9214 | need_lib_prefix=no |
9215 | fi |
9216 | need_version=yes |
9217 | ;; |
9218 | |
9219 | sysv4 | sysv4.3*) |
9220 | version_type=linux |
9221 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9222 | soname_spec='${libname}${release}${shared_ext}$major' |
9223 | shlibpath_var=LD_LIBRARY_PATH |
9224 | case $host_vendor in |
9225 | sni) |
9226 | shlibpath_overrides_runpath=no |
9227 | need_lib_prefix=no |
9228 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
9229 | runpath_var=LD_RUN_PATH |
9230 | ;; |
9231 | siemens) |
9232 | need_lib_prefix=no |
9233 | ;; |
9234 | motorola) |
9235 | need_lib_prefix=no |
9236 | need_version=no |
9237 | shlibpath_overrides_runpath=no |
9238 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
9239 | ;; |
9240 | esac |
9241 | ;; |
9242 | |
9243 | sysv4*MP*) |
9244 | if test -d /usr/nec ;then |
9245 | version_type=linux |
9246 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
9247 | soname_spec='$libname${shared_ext}.$major' |
9248 | shlibpath_var=LD_LIBRARY_PATH |
9249 | fi |
9250 | ;; |
9251 | |
9252 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
9253 | version_type=freebsd-elf |
9254 | need_lib_prefix=no |
9255 | need_version=no |
9256 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
9257 | soname_spec='${libname}${release}${shared_ext}$major' |
9258 | shlibpath_var=LD_LIBRARY_PATH |
9259 | hardcode_into_libs=yes |
9260 | if test "$with_gnu_ld" = yes; then |
9261 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
9262 | shlibpath_overrides_runpath=no |
9263 | else |
9264 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
9265 | shlibpath_overrides_runpath=yes |
9266 | case $host_os in |
9267 | sco3.2v5*) |
9268 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
9269 | ;; |
9270 | esac |
9271 | fi |
9272 | sys_lib_dlsearch_path_spec='/usr/lib' |
9273 | ;; |
9274 | |
9275 | uts4*) |
9276 | version_type=linux |
9277 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9278 | soname_spec='${libname}${release}${shared_ext}$major' |
9279 | shlibpath_var=LD_LIBRARY_PATH |
9280 | ;; |
9281 | |
9282 | *) |
9283 | dynamic_linker=no |
9284 | ;; |
9285 | esac |
dd184caf |
9286 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
9287 | echo "${ECHO_T}$dynamic_linker" >&6; } |
d9898ee8 |
9288 | test "$dynamic_linker" = no && can_build_shared=no |
9289 | |
9290 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
9291 | if test "$GCC" = yes; then |
9292 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
9293 | fi |
9294 | |
dd184caf |
9295 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
9296 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
d9898ee8 |
9297 | hardcode_action= |
9298 | if test -n "$hardcode_libdir_flag_spec" || \ |
9299 | test -n "$runpath_var" || \ |
9300 | test "X$hardcode_automatic" = "Xyes" ; then |
9301 | |
9302 | # We can hardcode non-existant directories. |
9303 | if test "$hardcode_direct" != no && |
9304 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
9305 | # have to relink, otherwise we might link with an installed library |
9306 | # when we should be linking with a yet-to-be-installed one |
9307 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
9308 | test "$hardcode_minus_L" != no; then |
9309 | # Linking always hardcodes the temporary library directory. |
9310 | hardcode_action=relink |
9311 | else |
9312 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
9313 | hardcode_action=immediate |
9314 | fi |
9315 | else |
9316 | # We cannot hardcode anything, or else we can only hardcode existing |
9317 | # directories. |
9318 | hardcode_action=unsupported |
9319 | fi |
dd184caf |
9320 | { echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
9321 | echo "${ECHO_T}$hardcode_action" >&6; } |
d9898ee8 |
9322 | |
9323 | if test "$hardcode_action" = relink; then |
9324 | # Fast installation is not supported |
9325 | enable_fast_install=no |
9326 | elif test "$shlibpath_overrides_runpath" = yes || |
9327 | test "$enable_shared" = no; then |
9328 | # Fast installation is not necessary |
9329 | enable_fast_install=needless |
9330 | fi |
9331 | |
9332 | striplib= |
9333 | old_striplib= |
dd184caf |
9334 | { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
9335 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } |
d9898ee8 |
9336 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
9337 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
9338 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
dd184caf |
9339 | { echo "$as_me:$LINENO: result: yes" >&5 |
9340 | echo "${ECHO_T}yes" >&6; } |
d9898ee8 |
9341 | else |
9342 | # FIXME - insert some real tests, host_os isn't really good enough |
9343 | case $host_os in |
9344 | darwin*) |
9345 | if test -n "$STRIP" ; then |
9346 | striplib="$STRIP -x" |
ac40fd9e |
9347 | old_striplib="$STRIP -S" |
dd184caf |
9348 | { echo "$as_me:$LINENO: result: yes" >&5 |
9349 | echo "${ECHO_T}yes" >&6; } |
d9898ee8 |
9350 | else |
dd184caf |
9351 | { echo "$as_me:$LINENO: result: no" >&5 |
9352 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
9353 | fi |
9354 | ;; |
9355 | *) |
dd184caf |
9356 | { echo "$as_me:$LINENO: result: no" >&5 |
9357 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
9358 | ;; |
9359 | esac |
9360 | fi |
9361 | |
9362 | if test "x$enable_dlopen" != xyes; then |
9363 | enable_dlopen=unknown |
9364 | enable_dlopen_self=unknown |
9365 | enable_dlopen_self_static=unknown |
9366 | else |
9367 | lt_cv_dlopen=no |
9368 | lt_cv_dlopen_libs= |
9369 | |
9370 | case $host_os in |
9371 | beos*) |
9372 | lt_cv_dlopen="load_add_on" |
9373 | lt_cv_dlopen_libs= |
9374 | lt_cv_dlopen_self=yes |
9375 | ;; |
9376 | |
9377 | mingw* | pw32*) |
9378 | lt_cv_dlopen="LoadLibrary" |
9379 | lt_cv_dlopen_libs= |
9380 | ;; |
9381 | |
9382 | cygwin*) |
9383 | lt_cv_dlopen="dlopen" |
9384 | lt_cv_dlopen_libs= |
9385 | ;; |
9386 | |
9387 | darwin*) |
9388 | # if libdl is installed we need to link against it |
dd184caf |
9389 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
9390 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
d9898ee8 |
9391 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
9392 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9393 | else |
9394 | ac_check_lib_save_LIBS=$LIBS |
9395 | LIBS="-ldl $LIBS" |
9396 | cat >conftest.$ac_ext <<_ACEOF |
9397 | /* confdefs.h. */ |
9398 | _ACEOF |
9399 | cat confdefs.h >>conftest.$ac_ext |
9400 | cat >>conftest.$ac_ext <<_ACEOF |
9401 | /* end confdefs.h. */ |
9402 | |
dd184caf |
9403 | /* Override any GCC internal prototype to avoid an error. |
9404 | Use char because int might match the return type of a GCC |
9405 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
9406 | #ifdef __cplusplus |
9407 | extern "C" |
9408 | #endif |
d9898ee8 |
9409 | char dlopen (); |
9410 | int |
9411 | main () |
9412 | { |
dd184caf |
9413 | return dlopen (); |
d9898ee8 |
9414 | ; |
9415 | return 0; |
9416 | } |
9417 | _ACEOF |
9418 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
9419 | if { (ac_try="$ac_link" |
9420 | case "(($ac_try" in |
9421 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9422 | *) ac_try_echo=$ac_try;; |
9423 | esac |
9424 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9425 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
9426 | ac_status=$? |
9427 | grep -v '^ *+' conftest.er1 >conftest.err |
9428 | rm -f conftest.er1 |
9429 | cat conftest.err >&5 |
9430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
9431 | (exit $ac_status); } && { |
9432 | test -z "$ac_c_werror_flag" || |
9433 | test ! -s conftest.err |
9434 | } && test -s conftest$ac_exeext && |
9435 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
9436 | ac_cv_lib_dl_dlopen=yes |
9437 | else |
9438 | echo "$as_me: failed program was:" >&5 |
9439 | sed 's/^/| /' conftest.$ac_ext >&5 |
9440 | |
dd184caf |
9441 | ac_cv_lib_dl_dlopen=no |
d9898ee8 |
9442 | fi |
dd184caf |
9443 | |
9444 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
9445 | conftest$ac_exeext conftest.$ac_ext |
9446 | LIBS=$ac_check_lib_save_LIBS |
9447 | fi |
dd184caf |
9448 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
9449 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
d9898ee8 |
9450 | if test $ac_cv_lib_dl_dlopen = yes; then |
9451 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
9452 | else |
9453 | |
9454 | lt_cv_dlopen="dyld" |
9455 | lt_cv_dlopen_libs= |
9456 | lt_cv_dlopen_self=yes |
9457 | |
9458 | fi |
9459 | |
9460 | ;; |
9461 | |
9462 | *) |
dd184caf |
9463 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
9464 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
d9898ee8 |
9465 | if test "${ac_cv_func_shl_load+set}" = set; then |
9466 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9467 | else |
9468 | cat >conftest.$ac_ext <<_ACEOF |
9469 | /* confdefs.h. */ |
9470 | _ACEOF |
9471 | cat confdefs.h >>conftest.$ac_ext |
9472 | cat >>conftest.$ac_ext <<_ACEOF |
9473 | /* end confdefs.h. */ |
9474 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
9475 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
9476 | #define shl_load innocuous_shl_load |
9477 | |
9478 | /* System header to define __stub macros and hopefully few prototypes, |
9479 | which can conflict with char shl_load (); below. |
9480 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
9481 | <limits.h> exists even on freestanding compilers. */ |
9482 | |
9483 | #ifdef __STDC__ |
9484 | # include <limits.h> |
9485 | #else |
9486 | # include <assert.h> |
9487 | #endif |
9488 | |
9489 | #undef shl_load |
9490 | |
dd184caf |
9491 | /* Override any GCC internal prototype to avoid an error. |
9492 | Use char because int might match the return type of a GCC |
9493 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
9494 | #ifdef __cplusplus |
9495 | extern "C" |
d9898ee8 |
9496 | #endif |
d9898ee8 |
9497 | char shl_load (); |
9498 | /* The GNU C library defines this for functions which it implements |
9499 | to always fail with ENOSYS. Some functions are actually named |
9500 | something starting with __ and the normal name is an alias. */ |
dd184caf |
9501 | #if defined __stub_shl_load || defined __stub___shl_load |
d9898ee8 |
9502 | choke me |
d9898ee8 |
9503 | #endif |
9504 | |
9505 | int |
9506 | main () |
9507 | { |
dd184caf |
9508 | return shl_load (); |
d9898ee8 |
9509 | ; |
9510 | return 0; |
9511 | } |
9512 | _ACEOF |
9513 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
9514 | if { (ac_try="$ac_link" |
9515 | case "(($ac_try" in |
9516 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9517 | *) ac_try_echo=$ac_try;; |
9518 | esac |
9519 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9520 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
9521 | ac_status=$? |
9522 | grep -v '^ *+' conftest.er1 >conftest.err |
9523 | rm -f conftest.er1 |
9524 | cat conftest.err >&5 |
9525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
9526 | (exit $ac_status); } && { |
9527 | test -z "$ac_c_werror_flag" || |
9528 | test ! -s conftest.err |
9529 | } && test -s conftest$ac_exeext && |
9530 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
9531 | ac_cv_func_shl_load=yes |
9532 | else |
9533 | echo "$as_me: failed program was:" >&5 |
9534 | sed 's/^/| /' conftest.$ac_ext >&5 |
9535 | |
dd184caf |
9536 | ac_cv_func_shl_load=no |
d9898ee8 |
9537 | fi |
dd184caf |
9538 | |
9539 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
9540 | conftest$ac_exeext conftest.$ac_ext |
9541 | fi |
dd184caf |
9542 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
9543 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
d9898ee8 |
9544 | if test $ac_cv_func_shl_load = yes; then |
9545 | lt_cv_dlopen="shl_load" |
9546 | else |
dd184caf |
9547 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
9548 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
d9898ee8 |
9549 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
9550 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9551 | else |
9552 | ac_check_lib_save_LIBS=$LIBS |
9553 | LIBS="-ldld $LIBS" |
9554 | cat >conftest.$ac_ext <<_ACEOF |
9555 | /* confdefs.h. */ |
9556 | _ACEOF |
9557 | cat confdefs.h >>conftest.$ac_ext |
9558 | cat >>conftest.$ac_ext <<_ACEOF |
9559 | /* end confdefs.h. */ |
9560 | |
dd184caf |
9561 | /* Override any GCC internal prototype to avoid an error. |
9562 | Use char because int might match the return type of a GCC |
9563 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
9564 | #ifdef __cplusplus |
9565 | extern "C" |
9566 | #endif |
d9898ee8 |
9567 | char shl_load (); |
9568 | int |
9569 | main () |
9570 | { |
dd184caf |
9571 | return shl_load (); |
d9898ee8 |
9572 | ; |
9573 | return 0; |
9574 | } |
9575 | _ACEOF |
9576 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
9577 | if { (ac_try="$ac_link" |
9578 | case "(($ac_try" in |
9579 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9580 | *) ac_try_echo=$ac_try;; |
9581 | esac |
9582 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9583 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
9584 | ac_status=$? |
9585 | grep -v '^ *+' conftest.er1 >conftest.err |
9586 | rm -f conftest.er1 |
9587 | cat conftest.err >&5 |
9588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
9589 | (exit $ac_status); } && { |
9590 | test -z "$ac_c_werror_flag" || |
9591 | test ! -s conftest.err |
9592 | } && test -s conftest$ac_exeext && |
9593 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
9594 | ac_cv_lib_dld_shl_load=yes |
9595 | else |
9596 | echo "$as_me: failed program was:" >&5 |
9597 | sed 's/^/| /' conftest.$ac_ext >&5 |
9598 | |
dd184caf |
9599 | ac_cv_lib_dld_shl_load=no |
d9898ee8 |
9600 | fi |
dd184caf |
9601 | |
9602 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
9603 | conftest$ac_exeext conftest.$ac_ext |
9604 | LIBS=$ac_check_lib_save_LIBS |
9605 | fi |
dd184caf |
9606 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
9607 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
d9898ee8 |
9608 | if test $ac_cv_lib_dld_shl_load = yes; then |
9609 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
9610 | else |
dd184caf |
9611 | { echo "$as_me:$LINENO: checking for dlopen" >&5 |
9612 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } |
d9898ee8 |
9613 | if test "${ac_cv_func_dlopen+set}" = set; then |
9614 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9615 | else |
9616 | cat >conftest.$ac_ext <<_ACEOF |
9617 | /* confdefs.h. */ |
9618 | _ACEOF |
9619 | cat confdefs.h >>conftest.$ac_ext |
9620 | cat >>conftest.$ac_ext <<_ACEOF |
9621 | /* end confdefs.h. */ |
9622 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
9623 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
9624 | #define dlopen innocuous_dlopen |
9625 | |
9626 | /* System header to define __stub macros and hopefully few prototypes, |
9627 | which can conflict with char dlopen (); below. |
9628 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
9629 | <limits.h> exists even on freestanding compilers. */ |
9630 | |
9631 | #ifdef __STDC__ |
9632 | # include <limits.h> |
9633 | #else |
9634 | # include <assert.h> |
9635 | #endif |
9636 | |
9637 | #undef dlopen |
9638 | |
dd184caf |
9639 | /* Override any GCC internal prototype to avoid an error. |
9640 | Use char because int might match the return type of a GCC |
9641 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
9642 | #ifdef __cplusplus |
9643 | extern "C" |
d9898ee8 |
9644 | #endif |
d9898ee8 |
9645 | char dlopen (); |
9646 | /* The GNU C library defines this for functions which it implements |
9647 | to always fail with ENOSYS. Some functions are actually named |
9648 | something starting with __ and the normal name is an alias. */ |
dd184caf |
9649 | #if defined __stub_dlopen || defined __stub___dlopen |
d9898ee8 |
9650 | choke me |
d9898ee8 |
9651 | #endif |
9652 | |
9653 | int |
9654 | main () |
9655 | { |
dd184caf |
9656 | return dlopen (); |
d9898ee8 |
9657 | ; |
9658 | return 0; |
9659 | } |
9660 | _ACEOF |
9661 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
9662 | if { (ac_try="$ac_link" |
9663 | case "(($ac_try" in |
9664 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9665 | *) ac_try_echo=$ac_try;; |
9666 | esac |
9667 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9668 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
9669 | ac_status=$? |
9670 | grep -v '^ *+' conftest.er1 >conftest.err |
9671 | rm -f conftest.er1 |
9672 | cat conftest.err >&5 |
9673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
9674 | (exit $ac_status); } && { |
9675 | test -z "$ac_c_werror_flag" || |
9676 | test ! -s conftest.err |
9677 | } && test -s conftest$ac_exeext && |
9678 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
9679 | ac_cv_func_dlopen=yes |
9680 | else |
9681 | echo "$as_me: failed program was:" >&5 |
9682 | sed 's/^/| /' conftest.$ac_ext >&5 |
9683 | |
dd184caf |
9684 | ac_cv_func_dlopen=no |
d9898ee8 |
9685 | fi |
dd184caf |
9686 | |
9687 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
9688 | conftest$ac_exeext conftest.$ac_ext |
9689 | fi |
dd184caf |
9690 | { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
9691 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } |
d9898ee8 |
9692 | if test $ac_cv_func_dlopen = yes; then |
9693 | lt_cv_dlopen="dlopen" |
9694 | else |
dd184caf |
9695 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
9696 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
d9898ee8 |
9697 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
9698 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9699 | else |
9700 | ac_check_lib_save_LIBS=$LIBS |
9701 | LIBS="-ldl $LIBS" |
9702 | cat >conftest.$ac_ext <<_ACEOF |
9703 | /* confdefs.h. */ |
9704 | _ACEOF |
9705 | cat confdefs.h >>conftest.$ac_ext |
9706 | cat >>conftest.$ac_ext <<_ACEOF |
9707 | /* end confdefs.h. */ |
9708 | |
dd184caf |
9709 | /* Override any GCC internal prototype to avoid an error. |
9710 | Use char because int might match the return type of a GCC |
9711 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
9712 | #ifdef __cplusplus |
9713 | extern "C" |
9714 | #endif |
d9898ee8 |
9715 | char dlopen (); |
9716 | int |
9717 | main () |
9718 | { |
dd184caf |
9719 | return dlopen (); |
d9898ee8 |
9720 | ; |
9721 | return 0; |
9722 | } |
9723 | _ACEOF |
9724 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
9725 | if { (ac_try="$ac_link" |
9726 | case "(($ac_try" in |
9727 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9728 | *) ac_try_echo=$ac_try;; |
9729 | esac |
9730 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9731 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
9732 | ac_status=$? |
9733 | grep -v '^ *+' conftest.er1 >conftest.err |
9734 | rm -f conftest.er1 |
9735 | cat conftest.err >&5 |
9736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
9737 | (exit $ac_status); } && { |
9738 | test -z "$ac_c_werror_flag" || |
9739 | test ! -s conftest.err |
9740 | } && test -s conftest$ac_exeext && |
9741 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
9742 | ac_cv_lib_dl_dlopen=yes |
9743 | else |
9744 | echo "$as_me: failed program was:" >&5 |
9745 | sed 's/^/| /' conftest.$ac_ext >&5 |
9746 | |
dd184caf |
9747 | ac_cv_lib_dl_dlopen=no |
d9898ee8 |
9748 | fi |
dd184caf |
9749 | |
9750 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
9751 | conftest$ac_exeext conftest.$ac_ext |
9752 | LIBS=$ac_check_lib_save_LIBS |
9753 | fi |
dd184caf |
9754 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
9755 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
d9898ee8 |
9756 | if test $ac_cv_lib_dl_dlopen = yes; then |
9757 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
9758 | else |
dd184caf |
9759 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
9760 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
d9898ee8 |
9761 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
9762 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9763 | else |
9764 | ac_check_lib_save_LIBS=$LIBS |
9765 | LIBS="-lsvld $LIBS" |
9766 | cat >conftest.$ac_ext <<_ACEOF |
9767 | /* confdefs.h. */ |
9768 | _ACEOF |
9769 | cat confdefs.h >>conftest.$ac_ext |
9770 | cat >>conftest.$ac_ext <<_ACEOF |
9771 | /* end confdefs.h. */ |
9772 | |
dd184caf |
9773 | /* Override any GCC internal prototype to avoid an error. |
9774 | Use char because int might match the return type of a GCC |
9775 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
9776 | #ifdef __cplusplus |
9777 | extern "C" |
9778 | #endif |
d9898ee8 |
9779 | char dlopen (); |
9780 | int |
9781 | main () |
9782 | { |
dd184caf |
9783 | return dlopen (); |
d9898ee8 |
9784 | ; |
9785 | return 0; |
9786 | } |
9787 | _ACEOF |
9788 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
9789 | if { (ac_try="$ac_link" |
9790 | case "(($ac_try" in |
9791 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9792 | *) ac_try_echo=$ac_try;; |
9793 | esac |
9794 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9795 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
9796 | ac_status=$? |
9797 | grep -v '^ *+' conftest.er1 >conftest.err |
9798 | rm -f conftest.er1 |
9799 | cat conftest.err >&5 |
9800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
9801 | (exit $ac_status); } && { |
9802 | test -z "$ac_c_werror_flag" || |
9803 | test ! -s conftest.err |
9804 | } && test -s conftest$ac_exeext && |
9805 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
9806 | ac_cv_lib_svld_dlopen=yes |
9807 | else |
9808 | echo "$as_me: failed program was:" >&5 |
9809 | sed 's/^/| /' conftest.$ac_ext >&5 |
9810 | |
dd184caf |
9811 | ac_cv_lib_svld_dlopen=no |
d9898ee8 |
9812 | fi |
dd184caf |
9813 | |
9814 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
9815 | conftest$ac_exeext conftest.$ac_ext |
9816 | LIBS=$ac_check_lib_save_LIBS |
9817 | fi |
dd184caf |
9818 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
9819 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
d9898ee8 |
9820 | if test $ac_cv_lib_svld_dlopen = yes; then |
9821 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
9822 | else |
dd184caf |
9823 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
9824 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
d9898ee8 |
9825 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
9826 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9827 | else |
9828 | ac_check_lib_save_LIBS=$LIBS |
9829 | LIBS="-ldld $LIBS" |
9830 | cat >conftest.$ac_ext <<_ACEOF |
9831 | /* confdefs.h. */ |
9832 | _ACEOF |
9833 | cat confdefs.h >>conftest.$ac_ext |
9834 | cat >>conftest.$ac_ext <<_ACEOF |
9835 | /* end confdefs.h. */ |
9836 | |
dd184caf |
9837 | /* Override any GCC internal prototype to avoid an error. |
9838 | Use char because int might match the return type of a GCC |
9839 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
9840 | #ifdef __cplusplus |
9841 | extern "C" |
9842 | #endif |
d9898ee8 |
9843 | char dld_link (); |
9844 | int |
9845 | main () |
9846 | { |
dd184caf |
9847 | return dld_link (); |
d9898ee8 |
9848 | ; |
9849 | return 0; |
9850 | } |
9851 | _ACEOF |
9852 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
9853 | if { (ac_try="$ac_link" |
9854 | case "(($ac_try" in |
9855 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9856 | *) ac_try_echo=$ac_try;; |
9857 | esac |
9858 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9859 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
9860 | ac_status=$? |
9861 | grep -v '^ *+' conftest.er1 >conftest.err |
9862 | rm -f conftest.er1 |
9863 | cat conftest.err >&5 |
9864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
9865 | (exit $ac_status); } && { |
9866 | test -z "$ac_c_werror_flag" || |
9867 | test ! -s conftest.err |
9868 | } && test -s conftest$ac_exeext && |
9869 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
9870 | ac_cv_lib_dld_dld_link=yes |
9871 | else |
9872 | echo "$as_me: failed program was:" >&5 |
9873 | sed 's/^/| /' conftest.$ac_ext >&5 |
9874 | |
dd184caf |
9875 | ac_cv_lib_dld_dld_link=no |
d9898ee8 |
9876 | fi |
dd184caf |
9877 | |
9878 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
9879 | conftest$ac_exeext conftest.$ac_ext |
9880 | LIBS=$ac_check_lib_save_LIBS |
9881 | fi |
dd184caf |
9882 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
9883 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
d9898ee8 |
9884 | if test $ac_cv_lib_dld_dld_link = yes; then |
9885 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
9886 | fi |
9887 | |
9888 | |
9889 | fi |
9890 | |
9891 | |
9892 | fi |
9893 | |
9894 | |
9895 | fi |
9896 | |
9897 | |
9898 | fi |
9899 | |
9900 | |
9901 | fi |
9902 | |
9903 | ;; |
9904 | esac |
9905 | |
9906 | if test "x$lt_cv_dlopen" != xno; then |
9907 | enable_dlopen=yes |
9908 | else |
9909 | enable_dlopen=no |
9910 | fi |
9911 | |
9912 | case $lt_cv_dlopen in |
9913 | dlopen) |
9914 | save_CPPFLAGS="$CPPFLAGS" |
9915 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
9916 | |
9917 | save_LDFLAGS="$LDFLAGS" |
9918 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
9919 | |
9920 | save_LIBS="$LIBS" |
9921 | LIBS="$lt_cv_dlopen_libs $LIBS" |
9922 | |
dd184caf |
9923 | { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
9924 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } |
d9898ee8 |
9925 | if test "${lt_cv_dlopen_self+set}" = set; then |
9926 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9927 | else |
9928 | if test "$cross_compiling" = yes; then : |
9929 | lt_cv_dlopen_self=cross |
9930 | else |
9931 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
9932 | lt_status=$lt_dlunknown |
9933 | cat > conftest.$ac_ext <<EOF |
ac40fd9e |
9934 | #line 9934 "configure" |
d9898ee8 |
9935 | #include "confdefs.h" |
9936 | |
9937 | #if HAVE_DLFCN_H |
9938 | #include <dlfcn.h> |
9939 | #endif |
9940 | |
9941 | #include <stdio.h> |
9942 | |
9943 | #ifdef RTLD_GLOBAL |
9944 | # define LT_DLGLOBAL RTLD_GLOBAL |
9945 | #else |
9946 | # ifdef DL_GLOBAL |
9947 | # define LT_DLGLOBAL DL_GLOBAL |
9948 | # else |
9949 | # define LT_DLGLOBAL 0 |
9950 | # endif |
9951 | #endif |
9952 | |
9953 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
9954 | find out it does not work in some platform. */ |
9955 | #ifndef LT_DLLAZY_OR_NOW |
9956 | # ifdef RTLD_LAZY |
9957 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
9958 | # else |
9959 | # ifdef DL_LAZY |
9960 | # define LT_DLLAZY_OR_NOW DL_LAZY |
9961 | # else |
9962 | # ifdef RTLD_NOW |
9963 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
9964 | # else |
9965 | # ifdef DL_NOW |
9966 | # define LT_DLLAZY_OR_NOW DL_NOW |
9967 | # else |
9968 | # define LT_DLLAZY_OR_NOW 0 |
9969 | # endif |
9970 | # endif |
9971 | # endif |
9972 | # endif |
9973 | #endif |
9974 | |
9975 | #ifdef __cplusplus |
9976 | extern "C" void exit (int); |
9977 | #endif |
9978 | |
9979 | void fnord() { int i=42;} |
9980 | int main () |
9981 | { |
9982 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
9983 | int status = $lt_dlunknown; |
9984 | |
9985 | if (self) |
9986 | { |
9987 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
9988 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
9989 | /* dlclose (self); */ |
9990 | } |
9991 | else |
9992 | puts (dlerror ()); |
9993 | |
9994 | exit (status); |
9995 | } |
9996 | EOF |
9997 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9998 | (eval $ac_link) 2>&5 |
9999 | ac_status=$? |
10000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10001 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
10002 | (./conftest; exit; ) >&5 2>/dev/null |
10003 | lt_status=$? |
10004 | case x$lt_status in |
10005 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
10006 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
10007 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
10008 | esac |
10009 | else : |
10010 | # compilation failed |
10011 | lt_cv_dlopen_self=no |
10012 | fi |
10013 | fi |
10014 | rm -fr conftest* |
10015 | |
10016 | |
10017 | fi |
dd184caf |
10018 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
10019 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } |
d9898ee8 |
10020 | |
10021 | if test "x$lt_cv_dlopen_self" = xyes; then |
10022 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
dd184caf |
10023 | { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
10024 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } |
d9898ee8 |
10025 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
10026 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10027 | else |
10028 | if test "$cross_compiling" = yes; then : |
10029 | lt_cv_dlopen_self_static=cross |
10030 | else |
10031 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
10032 | lt_status=$lt_dlunknown |
10033 | cat > conftest.$ac_ext <<EOF |
ac40fd9e |
10034 | #line 10034 "configure" |
d9898ee8 |
10035 | #include "confdefs.h" |
10036 | |
10037 | #if HAVE_DLFCN_H |
10038 | #include <dlfcn.h> |
10039 | #endif |
10040 | |
10041 | #include <stdio.h> |
10042 | |
10043 | #ifdef RTLD_GLOBAL |
10044 | # define LT_DLGLOBAL RTLD_GLOBAL |
10045 | #else |
10046 | # ifdef DL_GLOBAL |
10047 | # define LT_DLGLOBAL DL_GLOBAL |
10048 | # else |
10049 | # define LT_DLGLOBAL 0 |
10050 | # endif |
10051 | #endif |
10052 | |
10053 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
10054 | find out it does not work in some platform. */ |
10055 | #ifndef LT_DLLAZY_OR_NOW |
10056 | # ifdef RTLD_LAZY |
10057 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
10058 | # else |
10059 | # ifdef DL_LAZY |
10060 | # define LT_DLLAZY_OR_NOW DL_LAZY |
10061 | # else |
10062 | # ifdef RTLD_NOW |
10063 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
10064 | # else |
10065 | # ifdef DL_NOW |
10066 | # define LT_DLLAZY_OR_NOW DL_NOW |
10067 | # else |
10068 | # define LT_DLLAZY_OR_NOW 0 |
10069 | # endif |
10070 | # endif |
10071 | # endif |
10072 | # endif |
10073 | #endif |
10074 | |
10075 | #ifdef __cplusplus |
10076 | extern "C" void exit (int); |
10077 | #endif |
10078 | |
10079 | void fnord() { int i=42;} |
10080 | int main () |
10081 | { |
10082 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
10083 | int status = $lt_dlunknown; |
10084 | |
10085 | if (self) |
10086 | { |
10087 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
10088 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
10089 | /* dlclose (self); */ |
10090 | } |
10091 | else |
10092 | puts (dlerror ()); |
10093 | |
10094 | exit (status); |
10095 | } |
10096 | EOF |
10097 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10098 | (eval $ac_link) 2>&5 |
10099 | ac_status=$? |
10100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10101 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
10102 | (./conftest; exit; ) >&5 2>/dev/null |
10103 | lt_status=$? |
10104 | case x$lt_status in |
10105 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
10106 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
10107 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
10108 | esac |
10109 | else : |
10110 | # compilation failed |
10111 | lt_cv_dlopen_self_static=no |
10112 | fi |
10113 | fi |
10114 | rm -fr conftest* |
10115 | |
10116 | |
10117 | fi |
dd184caf |
10118 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
10119 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } |
d9898ee8 |
10120 | fi |
10121 | |
10122 | CPPFLAGS="$save_CPPFLAGS" |
10123 | LDFLAGS="$save_LDFLAGS" |
10124 | LIBS="$save_LIBS" |
10125 | ;; |
10126 | esac |
10127 | |
10128 | case $lt_cv_dlopen_self in |
10129 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
10130 | *) enable_dlopen_self=unknown ;; |
10131 | esac |
10132 | |
10133 | case $lt_cv_dlopen_self_static in |
10134 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
10135 | *) enable_dlopen_self_static=unknown ;; |
10136 | esac |
10137 | fi |
10138 | |
10139 | |
10140 | # Report which library types will actually be built |
dd184caf |
10141 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
10142 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
10143 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
10144 | echo "${ECHO_T}$can_build_shared" >&6; } |
d9898ee8 |
10145 | |
dd184caf |
10146 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
10147 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
d9898ee8 |
10148 | test "$can_build_shared" = "no" && enable_shared=no |
10149 | |
10150 | # On AIX, shared libraries and static libraries use the same namespace, and |
10151 | # are all built from PIC. |
10152 | case $host_os in |
10153 | aix3*) |
10154 | test "$enable_shared" = yes && enable_static=no |
10155 | if test -n "$RANLIB"; then |
10156 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
10157 | postinstall_cmds='$RANLIB $lib' |
10158 | fi |
10159 | ;; |
10160 | |
10161 | aix4* | aix5*) |
10162 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
10163 | test "$enable_shared" = yes && enable_static=no |
10164 | fi |
10165 | ;; |
10166 | esac |
dd184caf |
10167 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
10168 | echo "${ECHO_T}$enable_shared" >&6; } |
d9898ee8 |
10169 | |
dd184caf |
10170 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
10171 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
d9898ee8 |
10172 | # Make sure either enable_shared or enable_static is yes. |
10173 | test "$enable_shared" = yes || enable_static=yes |
dd184caf |
10174 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
10175 | echo "${ECHO_T}$enable_static" >&6; } |
d9898ee8 |
10176 | |
10177 | # The else clause should only fire when bootstrapping the |
10178 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
10179 | # with your package, and you will get complaints that there are |
10180 | # no rules to generate ltmain.sh. |
10181 | if test -f "$ltmain"; then |
10182 | # See if we are running on zsh, and set the options which allow our commands through |
10183 | # without removal of \ escapes. |
10184 | if test -n "${ZSH_VERSION+set}" ; then |
10185 | setopt NO_GLOB_SUBST |
10186 | fi |
10187 | # Now quote all the things that may contain metacharacters while being |
10188 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
10189 | # variables and quote the copies for generation of the libtool script. |
10190 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
10191 | SED SHELL STRIP \ |
10192 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
10193 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
10194 | deplibs_check_method reload_flag reload_cmds need_locks \ |
10195 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
10196 | lt_cv_sys_global_symbol_to_c_name_address \ |
10197 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
10198 | old_postinstall_cmds old_postuninstall_cmds \ |
10199 | compiler \ |
10200 | CC \ |
10201 | LD \ |
10202 | lt_prog_compiler_wl \ |
10203 | lt_prog_compiler_pic \ |
10204 | lt_prog_compiler_static \ |
10205 | lt_prog_compiler_no_builtin_flag \ |
10206 | export_dynamic_flag_spec \ |
10207 | thread_safe_flag_spec \ |
10208 | whole_archive_flag_spec \ |
10209 | enable_shared_with_static_runtimes \ |
10210 | old_archive_cmds \ |
10211 | old_archive_from_new_cmds \ |
10212 | predep_objects \ |
10213 | postdep_objects \ |
10214 | predeps \ |
10215 | postdeps \ |
10216 | compiler_lib_search_path \ |
10217 | archive_cmds \ |
10218 | archive_expsym_cmds \ |
10219 | postinstall_cmds \ |
10220 | postuninstall_cmds \ |
10221 | old_archive_from_expsyms_cmds \ |
10222 | allow_undefined_flag \ |
10223 | no_undefined_flag \ |
10224 | export_symbols_cmds \ |
10225 | hardcode_libdir_flag_spec \ |
10226 | hardcode_libdir_flag_spec_ld \ |
10227 | hardcode_libdir_separator \ |
10228 | hardcode_automatic \ |
10229 | module_cmds \ |
10230 | module_expsym_cmds \ |
10231 | lt_cv_prog_compiler_c_o \ |
ac40fd9e |
10232 | fix_srcfile_path \ |
d9898ee8 |
10233 | exclude_expsyms \ |
10234 | include_expsyms; do |
10235 | |
10236 | case $var in |
10237 | old_archive_cmds | \ |
10238 | old_archive_from_new_cmds | \ |
10239 | archive_cmds | \ |
10240 | archive_expsym_cmds | \ |
10241 | module_cmds | \ |
10242 | module_expsym_cmds | \ |
10243 | old_archive_from_expsyms_cmds | \ |
10244 | export_symbols_cmds | \ |
10245 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
10246 | postinstall_cmds | postuninstall_cmds | \ |
10247 | old_postinstall_cmds | old_postuninstall_cmds | \ |
10248 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
10249 | # Double-quote double-evaled strings. |
10250 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
10251 | ;; |
10252 | *) |
10253 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
10254 | ;; |
10255 | esac |
10256 | done |
10257 | |
10258 | case $lt_echo in |
10259 | *'\$0 --fallback-echo"') |
10260 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
10261 | ;; |
10262 | esac |
10263 | |
10264 | cfgfile="${ofile}T" |
10265 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
10266 | $rm -f "$cfgfile" |
10267 | { echo "$as_me:$LINENO: creating $ofile" >&5 |
10268 | echo "$as_me: creating $ofile" >&6;} |
10269 | |
10270 | cat <<__EOF__ >> "$cfgfile" |
10271 | #! $SHELL |
10272 | |
10273 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
10274 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
10275 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
10276 | # |
ac40fd9e |
10277 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 |
d9898ee8 |
10278 | # Free Software Foundation, Inc. |
10279 | # |
10280 | # This file is part of GNU Libtool: |
10281 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
10282 | # |
10283 | # This program is free software; you can redistribute it and/or modify |
10284 | # it under the terms of the GNU General Public License as published by |
10285 | # the Free Software Foundation; either version 2 of the License, or |
10286 | # (at your option) any later version. |
10287 | # |
10288 | # This program is distributed in the hope that it will be useful, but |
10289 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
10290 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
10291 | # General Public License for more details. |
10292 | # |
10293 | # You should have received a copy of the GNU General Public License |
10294 | # along with this program; if not, write to the Free Software |
10295 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
10296 | # |
10297 | # As a special exception to the GNU General Public License, if you |
10298 | # distribute this file as part of a program that contains a |
10299 | # configuration script generated by Autoconf, you may include it under |
10300 | # the same distribution terms that you use for the rest of that program. |
10301 | |
10302 | # A sed program that does not truncate output. |
10303 | SED=$lt_SED |
10304 | |
10305 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
10306 | Xsed="$SED -e 1s/^X//" |
10307 | |
10308 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
10309 | # if CDPATH is set. |
10310 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
10311 | |
10312 | # The names of the tagged configurations supported by this script. |
10313 | available_tags= |
10314 | |
10315 | # ### BEGIN LIBTOOL CONFIG |
10316 | |
10317 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
10318 | |
10319 | # Shell to use when invoking shell scripts. |
10320 | SHELL=$lt_SHELL |
10321 | |
10322 | # Whether or not to build shared libraries. |
10323 | build_libtool_libs=$enable_shared |
10324 | |
10325 | # Whether or not to build static libraries. |
10326 | build_old_libs=$enable_static |
10327 | |
10328 | # Whether or not to add -lc for building shared libraries. |
10329 | build_libtool_need_lc=$archive_cmds_need_lc |
10330 | |
10331 | # Whether or not to disallow shared libs when runtime libs are static |
10332 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
10333 | |
10334 | # Whether or not to optimize for fast installation. |
10335 | fast_install=$enable_fast_install |
10336 | |
10337 | # The host system. |
10338 | host_alias=$host_alias |
10339 | host=$host |
10340 | host_os=$host_os |
10341 | |
10342 | # The build system. |
10343 | build_alias=$build_alias |
10344 | build=$build |
10345 | build_os=$build_os |
10346 | |
10347 | # An echo program that does not interpret backslashes. |
10348 | echo=$lt_echo |
10349 | |
10350 | # The archiver. |
10351 | AR=$lt_AR |
10352 | AR_FLAGS=$lt_AR_FLAGS |
10353 | |
10354 | # A C compiler. |
10355 | LTCC=$lt_LTCC |
10356 | |
10357 | # LTCC compiler flags. |
10358 | LTCFLAGS=$lt_LTCFLAGS |
10359 | |
10360 | # A language-specific compiler. |
10361 | CC=$lt_compiler |
10362 | |
10363 | # Is the compiler the GNU C compiler? |
10364 | with_gcc=$GCC |
10365 | |
d9898ee8 |
10366 | # An ERE matcher. |
10367 | EGREP=$lt_EGREP |
10368 | |
10369 | # The linker used to build libraries. |
10370 | LD=$lt_LD |
10371 | |
10372 | # Whether we need hard or soft links. |
10373 | LN_S=$lt_LN_S |
10374 | |
10375 | # A BSD-compatible nm program. |
10376 | NM=$lt_NM |
10377 | |
10378 | # A symbol stripping program |
10379 | STRIP=$lt_STRIP |
10380 | |
10381 | # Used to examine libraries when file_magic_cmd begins "file" |
10382 | MAGIC_CMD=$MAGIC_CMD |
10383 | |
10384 | # Used on cygwin: DLL creation program. |
10385 | DLLTOOL="$DLLTOOL" |
10386 | |
10387 | # Used on cygwin: object dumper. |
10388 | OBJDUMP="$OBJDUMP" |
10389 | |
10390 | # Used on cygwin: assembler. |
10391 | AS="$AS" |
10392 | |
10393 | # The name of the directory that contains temporary libtool files. |
10394 | objdir=$objdir |
10395 | |
10396 | # How to create reloadable object files. |
10397 | reload_flag=$lt_reload_flag |
10398 | reload_cmds=$lt_reload_cmds |
10399 | |
10400 | # How to pass a linker flag through the compiler. |
10401 | wl=$lt_lt_prog_compiler_wl |
10402 | |
10403 | # Object file suffix (normally "o"). |
10404 | objext="$ac_objext" |
10405 | |
10406 | # Old archive suffix (normally "a"). |
10407 | libext="$libext" |
10408 | |
10409 | # Shared library suffix (normally ".so"). |
10410 | shrext_cmds='$shrext_cmds' |
10411 | |
10412 | # Executable file suffix (normally ""). |
10413 | exeext="$exeext" |
10414 | |
10415 | # Additional compiler flags for building library objects. |
10416 | pic_flag=$lt_lt_prog_compiler_pic |
10417 | pic_mode=$pic_mode |
10418 | |
10419 | # What is the maximum length of a command? |
10420 | max_cmd_len=$lt_cv_sys_max_cmd_len |
10421 | |
10422 | # Does compiler simultaneously support -c and -o options? |
10423 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
10424 | |
10425 | # Must we lock files when doing compilation? |
10426 | need_locks=$lt_need_locks |
10427 | |
10428 | # Do we need the lib prefix for modules? |
10429 | need_lib_prefix=$need_lib_prefix |
10430 | |
10431 | # Do we need a version for libraries? |
10432 | need_version=$need_version |
10433 | |
10434 | # Whether dlopen is supported. |
10435 | dlopen_support=$enable_dlopen |
10436 | |
10437 | # Whether dlopen of programs is supported. |
10438 | dlopen_self=$enable_dlopen_self |
10439 | |
10440 | # Whether dlopen of statically linked programs is supported. |
10441 | dlopen_self_static=$enable_dlopen_self_static |
10442 | |
10443 | # Compiler flag to prevent dynamic linking. |
10444 | link_static_flag=$lt_lt_prog_compiler_static |
10445 | |
10446 | # Compiler flag to turn off builtin functions. |
10447 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
10448 | |
10449 | # Compiler flag to allow reflexive dlopens. |
10450 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
10451 | |
10452 | # Compiler flag to generate shared objects directly from archives. |
10453 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
10454 | |
10455 | # Compiler flag to generate thread-safe objects. |
10456 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
10457 | |
10458 | # Library versioning type. |
10459 | version_type=$version_type |
10460 | |
10461 | # Format of library name prefix. |
10462 | libname_spec=$lt_libname_spec |
10463 | |
10464 | # List of archive names. First name is the real one, the rest are links. |
10465 | # The last name is the one that the linker finds with -lNAME. |
10466 | library_names_spec=$lt_library_names_spec |
10467 | |
10468 | # The coded name of the library, if different from the real name. |
10469 | soname_spec=$lt_soname_spec |
10470 | |
10471 | # Commands used to build and install an old-style archive. |
10472 | RANLIB=$lt_RANLIB |
10473 | old_archive_cmds=$lt_old_archive_cmds |
10474 | old_postinstall_cmds=$lt_old_postinstall_cmds |
10475 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
10476 | |
10477 | # Create an old-style archive from a shared archive. |
10478 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
10479 | |
10480 | # Create a temporary old-style archive to link instead of a shared archive. |
10481 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
10482 | |
10483 | # Commands used to build and install a shared archive. |
10484 | archive_cmds=$lt_archive_cmds |
10485 | archive_expsym_cmds=$lt_archive_expsym_cmds |
10486 | postinstall_cmds=$lt_postinstall_cmds |
10487 | postuninstall_cmds=$lt_postuninstall_cmds |
10488 | |
10489 | # Commands used to build a loadable module (assumed same as above if empty) |
10490 | module_cmds=$lt_module_cmds |
10491 | module_expsym_cmds=$lt_module_expsym_cmds |
10492 | |
10493 | # Commands to strip libraries. |
10494 | old_striplib=$lt_old_striplib |
10495 | striplib=$lt_striplib |
10496 | |
10497 | # Dependencies to place before the objects being linked to create a |
10498 | # shared library. |
dd184caf |
10499 | predep_objects=$lt_predep_objects |
d9898ee8 |
10500 | |
10501 | # Dependencies to place after the objects being linked to create a |
10502 | # shared library. |
dd184caf |
10503 | postdep_objects=$lt_postdep_objects |
d9898ee8 |
10504 | |
10505 | # Dependencies to place before the objects being linked to create a |
10506 | # shared library. |
10507 | predeps=$lt_predeps |
10508 | |
10509 | # Dependencies to place after the objects being linked to create a |
10510 | # shared library. |
10511 | postdeps=$lt_postdeps |
10512 | |
10513 | # The library search path used internally by the compiler when linking |
10514 | # a shared library. |
dd184caf |
10515 | compiler_lib_search_path=$lt_compiler_lib_search_path |
d9898ee8 |
10516 | |
10517 | # Method to check whether dependent libraries are shared objects. |
10518 | deplibs_check_method=$lt_deplibs_check_method |
10519 | |
10520 | # Command to use when deplibs_check_method == file_magic. |
10521 | file_magic_cmd=$lt_file_magic_cmd |
10522 | |
10523 | # Flag that allows shared libraries with undefined symbols to be built. |
10524 | allow_undefined_flag=$lt_allow_undefined_flag |
10525 | |
10526 | # Flag that forces no undefined symbols. |
10527 | no_undefined_flag=$lt_no_undefined_flag |
10528 | |
10529 | # Commands used to finish a libtool library installation in a directory. |
10530 | finish_cmds=$lt_finish_cmds |
10531 | |
10532 | # Same as above, but a single script fragment to be evaled but not shown. |
10533 | finish_eval=$lt_finish_eval |
10534 | |
10535 | # Take the output of nm and produce a listing of raw symbols and C names. |
10536 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
10537 | |
10538 | # Transform the output of nm in a proper C declaration |
10539 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
10540 | |
10541 | # Transform the output of nm in a C name address pair |
10542 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
10543 | |
10544 | # This is the shared library runtime path variable. |
10545 | runpath_var=$runpath_var |
10546 | |
10547 | # This is the shared library path variable. |
10548 | shlibpath_var=$shlibpath_var |
10549 | |
10550 | # Is shlibpath searched before the hard-coded library search path? |
10551 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
10552 | |
10553 | # How to hardcode a shared library path into an executable. |
10554 | hardcode_action=$hardcode_action |
10555 | |
10556 | # Whether we should hardcode library paths into libraries. |
10557 | hardcode_into_libs=$hardcode_into_libs |
10558 | |
10559 | # Flag to hardcode \$libdir into a binary during linking. |
10560 | # This must work even if \$libdir does not exist. |
10561 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
10562 | |
10563 | # If ld is used when linking, flag to hardcode \$libdir into |
10564 | # a binary during linking. This must work even if \$libdir does |
10565 | # not exist. |
10566 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
10567 | |
10568 | # Whether we need a single -rpath flag with a separated argument. |
10569 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
10570 | |
10571 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
10572 | # resulting binary. |
10573 | hardcode_direct=$hardcode_direct |
10574 | |
10575 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
10576 | # resulting binary. |
10577 | hardcode_minus_L=$hardcode_minus_L |
10578 | |
10579 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
10580 | # the resulting binary. |
10581 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
10582 | |
10583 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
10584 | # and all subsequent libraries and executables linked against it. |
10585 | hardcode_automatic=$hardcode_automatic |
10586 | |
10587 | # Variables whose values should be saved in libtool wrapper scripts and |
10588 | # restored at relink time. |
10589 | variables_saved_for_relink="$variables_saved_for_relink" |
10590 | |
10591 | # Whether libtool must link a program against all its dependency libraries. |
10592 | link_all_deplibs=$link_all_deplibs |
10593 | |
10594 | # Compile-time system search path for libraries |
dd184caf |
10595 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
d9898ee8 |
10596 | |
10597 | # Run-time system search path for libraries |
10598 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
10599 | |
10600 | # Fix the shell variable \$srcfile for the compiler. |
ac40fd9e |
10601 | fix_srcfile_path=$lt_fix_srcfile_path |
d9898ee8 |
10602 | |
10603 | # Set to yes if exported symbols are required. |
10604 | always_export_symbols=$always_export_symbols |
10605 | |
10606 | # The commands to list exported symbols. |
10607 | export_symbols_cmds=$lt_export_symbols_cmds |
10608 | |
10609 | # The commands to extract the exported symbol list from a shared archive. |
10610 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
10611 | |
10612 | # Symbols that should not be listed in the preloaded symbols. |
10613 | exclude_expsyms=$lt_exclude_expsyms |
10614 | |
10615 | # Symbols that must always be exported. |
10616 | include_expsyms=$lt_include_expsyms |
10617 | |
10618 | # ### END LIBTOOL CONFIG |
10619 | |
10620 | __EOF__ |
10621 | |
10622 | |
10623 | case $host_os in |
10624 | aix3*) |
10625 | cat <<\EOF >> "$cfgfile" |
10626 | |
10627 | # AIX sometimes has problems with the GCC collect2 program. For some |
10628 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
10629 | # vanish in a puff of smoke. |
10630 | if test "X${COLLECT_NAMES+set}" != Xset; then |
10631 | COLLECT_NAMES= |
10632 | export COLLECT_NAMES |
10633 | fi |
10634 | EOF |
10635 | ;; |
10636 | esac |
10637 | |
10638 | # We use sed instead of cat because bash on DJGPP gets confused if |
10639 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
10640 | # text mode, it properly converts lines to CR/LF. This bash problem |
10641 | # is reportedly fixed, but why not run on old versions too? |
10642 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
10643 | |
10644 | mv -f "$cfgfile" "$ofile" || \ |
10645 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
10646 | chmod +x "$ofile" |
10647 | |
10648 | else |
10649 | # If there is no Makefile yet, we rely on a make rule to execute |
10650 | # `config.status --recheck' to rerun these tests and create the |
10651 | # libtool script then. |
10652 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
10653 | if test -f "$ltmain_in"; then |
10654 | test -f Makefile && make "$ltmain" |
10655 | fi |
10656 | fi |
10657 | |
10658 | |
10659 | ac_ext=c |
10660 | ac_cpp='$CPP $CPPFLAGS' |
10661 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
10662 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
10663 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
10664 | |
10665 | CC="$lt_save_CC" |
10666 | |
10667 | |
dd184caf |
10668 | # Check whether --with-tags was given. |
d9898ee8 |
10669 | if test "${with_tags+set}" = set; then |
dd184caf |
10670 | withval=$with_tags; tagnames="$withval" |
10671 | fi |
10672 | |
d9898ee8 |
10673 | |
10674 | if test -f "$ltmain" && test -n "$tagnames"; then |
10675 | if test ! -f "${ofile}"; then |
10676 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 |
10677 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} |
10678 | fi |
10679 | |
10680 | if test -z "$LTCC"; then |
10681 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
10682 | if test -z "$LTCC"; then |
10683 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 |
10684 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} |
10685 | else |
10686 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
10687 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
10688 | fi |
10689 | fi |
10690 | if test -z "$LTCFLAGS"; then |
10691 | eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" |
10692 | fi |
10693 | |
10694 | # Extract list of available tagged configurations in $ofile. |
10695 | # Note that this assumes the entire list is on one line. |
10696 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
10697 | |
10698 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
10699 | for tagname in $tagnames; do |
10700 | IFS="$lt_save_ifs" |
10701 | # Check whether tagname contains only valid characters |
10702 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in |
10703 | "") ;; |
10704 | *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 |
10705 | echo "$as_me: error: invalid tag name: $tagname" >&2;} |
10706 | { (exit 1); exit 1; }; } |
10707 | ;; |
10708 | esac |
10709 | |
10710 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
10711 | then |
10712 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 |
10713 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} |
10714 | { (exit 1); exit 1; }; } |
10715 | fi |
10716 | |
10717 | # Update the list of available tags. |
10718 | if test -n "$tagname"; then |
10719 | echo appending configuration tag \"$tagname\" to $ofile |
10720 | |
10721 | case $tagname in |
10722 | CXX) |
10723 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
10724 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
10725 | (test "X$CXX" != "Xg++"))) ; then |
dd184caf |
10726 | ac_ext=cpp |
d9898ee8 |
10727 | ac_cpp='$CXXCPP $CPPFLAGS' |
10728 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
10729 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
10730 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
10731 | |
10732 | |
10733 | |
10734 | |
10735 | archive_cmds_need_lc_CXX=no |
10736 | allow_undefined_flag_CXX= |
10737 | always_export_symbols_CXX=no |
10738 | archive_expsym_cmds_CXX= |
10739 | export_dynamic_flag_spec_CXX= |
10740 | hardcode_direct_CXX=no |
10741 | hardcode_libdir_flag_spec_CXX= |
10742 | hardcode_libdir_flag_spec_ld_CXX= |
10743 | hardcode_libdir_separator_CXX= |
10744 | hardcode_minus_L_CXX=no |
10745 | hardcode_shlibpath_var_CXX=unsupported |
10746 | hardcode_automatic_CXX=no |
10747 | module_cmds_CXX= |
10748 | module_expsym_cmds_CXX= |
10749 | link_all_deplibs_CXX=unknown |
10750 | old_archive_cmds_CXX=$old_archive_cmds |
10751 | no_undefined_flag_CXX= |
10752 | whole_archive_flag_spec_CXX= |
10753 | enable_shared_with_static_runtimes_CXX=no |
10754 | |
10755 | # Dependencies to place before and after the object being linked: |
10756 | predep_objects_CXX= |
10757 | postdep_objects_CXX= |
10758 | predeps_CXX= |
10759 | postdeps_CXX= |
10760 | compiler_lib_search_path_CXX= |
10761 | |
10762 | # Source file extension for C++ test sources. |
10763 | ac_ext=cpp |
10764 | |
10765 | # Object file extension for compiled C++ test sources. |
10766 | objext=o |
10767 | objext_CXX=$objext |
10768 | |
10769 | # Code to be used in simple compile tests |
ac40fd9e |
10770 | lt_simple_compile_test_code="int some_variable = 0;" |
d9898ee8 |
10771 | |
10772 | # Code to be used in simple link tests |
ac40fd9e |
10773 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }' |
d9898ee8 |
10774 | |
10775 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
10776 | |
10777 | # If no C compiler was specified, use CC. |
10778 | LTCC=${LTCC-"$CC"} |
10779 | |
10780 | # If no C compiler flags were specified, use CFLAGS. |
10781 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
10782 | |
10783 | # Allow CC to be a program name with arguments. |
10784 | compiler=$CC |
10785 | |
10786 | |
10787 | # save warnings/boilerplate of simple test code |
10788 | ac_outfile=conftest.$ac_objext |
ac40fd9e |
10789 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
d9898ee8 |
10790 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
10791 | _lt_compiler_boilerplate=`cat conftest.err` |
10792 | $rm conftest* |
10793 | |
10794 | ac_outfile=conftest.$ac_objext |
ac40fd9e |
10795 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
d9898ee8 |
10796 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
10797 | _lt_linker_boilerplate=`cat conftest.err` |
10798 | $rm conftest* |
10799 | |
10800 | |
10801 | # Allow CC to be a program name with arguments. |
10802 | lt_save_CC=$CC |
10803 | lt_save_LD=$LD |
10804 | lt_save_GCC=$GCC |
10805 | GCC=$GXX |
10806 | lt_save_with_gnu_ld=$with_gnu_ld |
10807 | lt_save_path_LD=$lt_cv_path_LD |
10808 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
10809 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
10810 | else |
10811 | $as_unset lt_cv_prog_gnu_ld |
10812 | fi |
10813 | if test -n "${lt_cv_path_LDCXX+set}"; then |
10814 | lt_cv_path_LD=$lt_cv_path_LDCXX |
10815 | else |
10816 | $as_unset lt_cv_path_LD |
10817 | fi |
10818 | test -z "${LDCXX+set}" || LD=$LDCXX |
10819 | CC=${CXX-"c++"} |
10820 | compiler=$CC |
10821 | compiler_CXX=$CC |
10822 | for cc_temp in $compiler""; do |
10823 | case $cc_temp in |
10824 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
10825 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
10826 | \-*) ;; |
10827 | *) break;; |
10828 | esac |
10829 | done |
10830 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
10831 | |
10832 | |
10833 | # We don't want -fno-exception wen compiling C++ code, so set the |
10834 | # no_builtin_flag separately |
10835 | if test "$GXX" = yes; then |
10836 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
10837 | else |
10838 | lt_prog_compiler_no_builtin_flag_CXX= |
10839 | fi |
10840 | |
10841 | if test "$GXX" = yes; then |
10842 | # Set up default GNU C++ configuration |
10843 | |
10844 | |
dd184caf |
10845 | # Check whether --with-gnu-ld was given. |
d9898ee8 |
10846 | if test "${with_gnu_ld+set}" = set; then |
dd184caf |
10847 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
d9898ee8 |
10848 | else |
10849 | with_gnu_ld=no |
dd184caf |
10850 | fi |
10851 | |
d9898ee8 |
10852 | ac_prog=ld |
10853 | if test "$GCC" = yes; then |
10854 | # Check if gcc -print-prog-name=ld gives a path. |
dd184caf |
10855 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
10856 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
d9898ee8 |
10857 | case $host in |
10858 | *-*-mingw*) |
10859 | # gcc leaves a trailing carriage return which upsets mingw |
10860 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
10861 | *) |
10862 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
10863 | esac |
10864 | case $ac_prog in |
10865 | # Accept absolute paths. |
10866 | [\\/]* | ?:[\\/]*) |
10867 | re_direlt='/[^/][^/]*/\.\./' |
10868 | # Canonicalize the pathname of ld |
10869 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
10870 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
10871 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
10872 | done |
10873 | test -z "$LD" && LD="$ac_prog" |
10874 | ;; |
10875 | "") |
10876 | # If it fails, then pretend we aren't using GCC. |
10877 | ac_prog=ld |
10878 | ;; |
10879 | *) |
10880 | # If it is relative, then search for the first ld in PATH. |
10881 | with_gnu_ld=unknown |
10882 | ;; |
10883 | esac |
10884 | elif test "$with_gnu_ld" = yes; then |
dd184caf |
10885 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
10886 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
d9898ee8 |
10887 | else |
dd184caf |
10888 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
10889 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
d9898ee8 |
10890 | fi |
10891 | if test "${lt_cv_path_LD+set}" = set; then |
10892 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10893 | else |
10894 | if test -z "$LD"; then |
10895 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
10896 | for ac_dir in $PATH; do |
10897 | IFS="$lt_save_ifs" |
10898 | test -z "$ac_dir" && ac_dir=. |
10899 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
10900 | lt_cv_path_LD="$ac_dir/$ac_prog" |
10901 | # Check to see if the program is GNU ld. I'd rather use --version, |
10902 | # but apparently some variants of GNU ld only accept -v. |
10903 | # Break only if it was the GNU/non-GNU ld that we prefer. |
10904 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
10905 | *GNU* | *'with BFD'*) |
10906 | test "$with_gnu_ld" != no && break |
10907 | ;; |
10908 | *) |
10909 | test "$with_gnu_ld" != yes && break |
10910 | ;; |
10911 | esac |
10912 | fi |
10913 | done |
10914 | IFS="$lt_save_ifs" |
10915 | else |
10916 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
10917 | fi |
10918 | fi |
10919 | |
10920 | LD="$lt_cv_path_LD" |
10921 | if test -n "$LD"; then |
dd184caf |
10922 | { echo "$as_me:$LINENO: result: $LD" >&5 |
10923 | echo "${ECHO_T}$LD" >&6; } |
d9898ee8 |
10924 | else |
dd184caf |
10925 | { echo "$as_me:$LINENO: result: no" >&5 |
10926 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
10927 | fi |
10928 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
10929 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
10930 | { (exit 1); exit 1; }; } |
dd184caf |
10931 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
10932 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } |
d9898ee8 |
10933 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
10934 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10935 | else |
10936 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
10937 | case `$LD -v 2>&1 </dev/null` in |
10938 | *GNU* | *'with BFD'*) |
10939 | lt_cv_prog_gnu_ld=yes |
10940 | ;; |
10941 | *) |
10942 | lt_cv_prog_gnu_ld=no |
10943 | ;; |
10944 | esac |
10945 | fi |
dd184caf |
10946 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
10947 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
d9898ee8 |
10948 | with_gnu_ld=$lt_cv_prog_gnu_ld |
10949 | |
10950 | |
10951 | |
10952 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
10953 | # archiving commands below assume that GNU ld is being used. |
10954 | if test "$with_gnu_ld" = yes; then |
10955 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
10956 | 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' |
10957 | |
10958 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
10959 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
10960 | |
10961 | # If archive_cmds runs LD, not CC, wlarc should be empty |
10962 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
10963 | # investigate it a little bit more. (MM) |
10964 | wlarc='${wl}' |
10965 | |
10966 | # ancient GNU ld didn't support --whole-archive et. al. |
10967 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
10968 | grep 'no-whole-archive' > /dev/null; then |
10969 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
10970 | else |
10971 | whole_archive_flag_spec_CXX= |
10972 | fi |
10973 | else |
10974 | with_gnu_ld=no |
10975 | wlarc= |
10976 | |
10977 | # A generic and very simple default shared library creation |
10978 | # command for GNU C++ for the case where it uses the native |
10979 | # linker, instead of GNU ld. If possible, this setting should |
10980 | # overridden to take advantage of the native linker features on |
10981 | # the platform it is being used on. |
10982 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
10983 | fi |
10984 | |
10985 | # Commands to make compiler produce verbose output that lists |
10986 | # what "hidden" libraries, object files and flags are used when |
10987 | # linking a shared library. |
10988 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
10989 | |
10990 | else |
10991 | GXX=no |
10992 | with_gnu_ld=no |
10993 | wlarc= |
10994 | fi |
10995 | |
10996 | # PORTME: fill in a description of your system's C++ link characteristics |
dd184caf |
10997 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
10998 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
d9898ee8 |
10999 | ld_shlibs_CXX=yes |
11000 | case $host_os in |
11001 | aix3*) |
11002 | # FIXME: insert proper C++ library support |
11003 | ld_shlibs_CXX=no |
11004 | ;; |
11005 | aix4* | aix5*) |
11006 | if test "$host_cpu" = ia64; then |
11007 | # On IA64, the linker does run time linking by default, so we don't |
11008 | # have to do anything special. |
11009 | aix_use_runtimelinking=no |
11010 | exp_sym_flag='-Bexport' |
11011 | no_entry_flag="" |
11012 | else |
11013 | aix_use_runtimelinking=no |
11014 | |
11015 | # Test if we are trying to use run time linking or normal |
11016 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
11017 | # need to do runtime linking. |
11018 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
11019 | for ld_flag in $LDFLAGS; do |
11020 | case $ld_flag in |
11021 | *-brtl*) |
11022 | aix_use_runtimelinking=yes |
11023 | break |
11024 | ;; |
11025 | esac |
11026 | done |
11027 | ;; |
11028 | esac |
11029 | |
11030 | exp_sym_flag='-bexport' |
11031 | no_entry_flag='-bnoentry' |
11032 | fi |
11033 | |
11034 | # When large executables or shared objects are built, AIX ld can |
11035 | # have problems creating the table of contents. If linking a library |
11036 | # or program results in "error TOC overflow" add -mminimal-toc to |
11037 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
11038 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
11039 | |
11040 | archive_cmds_CXX='' |
11041 | hardcode_direct_CXX=yes |
11042 | hardcode_libdir_separator_CXX=':' |
11043 | link_all_deplibs_CXX=yes |
11044 | |
11045 | if test "$GXX" = yes; then |
11046 | case $host_os in aix4.[012]|aix4.[012].*) |
11047 | # We only want to do this on AIX 4.2 and lower, the check |
11048 | # below for broken collect2 doesn't work under 4.3+ |
11049 | collect2name=`${CC} -print-prog-name=collect2` |
11050 | if test -f "$collect2name" && \ |
11051 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
11052 | then |
11053 | # We have reworked collect2 |
ac40fd9e |
11054 | : |
d9898ee8 |
11055 | else |
11056 | # We have old collect2 |
11057 | hardcode_direct_CXX=unsupported |
11058 | # It fails to find uninstalled libraries when the uninstalled |
11059 | # path is not listed in the libpath. Setting hardcode_minus_L |
11060 | # to unsupported forces relinking |
11061 | hardcode_minus_L_CXX=yes |
11062 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
11063 | hardcode_libdir_separator_CXX= |
11064 | fi |
11065 | ;; |
11066 | esac |
11067 | shared_flag='-shared' |
11068 | if test "$aix_use_runtimelinking" = yes; then |
11069 | shared_flag="$shared_flag "'${wl}-G' |
11070 | fi |
11071 | else |
11072 | # not using gcc |
11073 | if test "$host_cpu" = ia64; then |
11074 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
11075 | # chokes on -Wl,-G. The following line is correct: |
11076 | shared_flag='-G' |
11077 | else |
11078 | if test "$aix_use_runtimelinking" = yes; then |
11079 | shared_flag='${wl}-G' |
11080 | else |
11081 | shared_flag='${wl}-bM:SRE' |
11082 | fi |
11083 | fi |
11084 | fi |
11085 | |
11086 | # It seems that -bexpall does not export symbols beginning with |
11087 | # underscore (_), so it is better to generate a list of symbols to export. |
11088 | always_export_symbols_CXX=yes |
11089 | if test "$aix_use_runtimelinking" = yes; then |
11090 | # Warning - without using the other runtime loading flags (-brtl), |
11091 | # -berok will link without error, but may produce a broken library. |
11092 | allow_undefined_flag_CXX='-berok' |
11093 | # Determine the default libpath from the value encoded in an empty executable. |
11094 | cat >conftest.$ac_ext <<_ACEOF |
11095 | /* confdefs.h. */ |
11096 | _ACEOF |
11097 | cat confdefs.h >>conftest.$ac_ext |
11098 | cat >>conftest.$ac_ext <<_ACEOF |
11099 | /* end confdefs.h. */ |
11100 | |
11101 | int |
11102 | main () |
11103 | { |
11104 | |
11105 | ; |
11106 | return 0; |
11107 | } |
11108 | _ACEOF |
11109 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
11110 | if { (ac_try="$ac_link" |
11111 | case "(($ac_try" in |
11112 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11113 | *) ac_try_echo=$ac_try;; |
11114 | esac |
11115 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11116 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
11117 | ac_status=$? |
11118 | grep -v '^ *+' conftest.er1 >conftest.err |
11119 | rm -f conftest.er1 |
11120 | cat conftest.err >&5 |
11121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
11122 | (exit $ac_status); } && { |
11123 | test -z "$ac_cxx_werror_flag" || |
11124 | test ! -s conftest.err |
11125 | } && test -s conftest$ac_exeext && |
11126 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
11127 | |
ac40fd9e |
11128 | lt_aix_libpath_sed=' |
11129 | /Import File Strings/,/^$/ { |
11130 | /^0/ { |
11131 | s/^0 *\(.*\)$/\1/ |
11132 | p |
11133 | } |
11134 | }' |
11135 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
d9898ee8 |
11136 | # Check for a 64-bit object if we didn't find anything. |
ac40fd9e |
11137 | if test -z "$aix_libpath"; then |
11138 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
11139 | fi |
d9898ee8 |
11140 | else |
11141 | echo "$as_me: failed program was:" >&5 |
11142 | sed 's/^/| /' conftest.$ac_ext >&5 |
11143 | |
dd184caf |
11144 | |
d9898ee8 |
11145 | fi |
dd184caf |
11146 | |
11147 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
11148 | conftest$ac_exeext conftest.$ac_ext |
11149 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
11150 | |
11151 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
11152 | |
11153 | 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" |
11154 | else |
11155 | if test "$host_cpu" = ia64; then |
11156 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
11157 | allow_undefined_flag_CXX="-z nodefs" |
11158 | 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" |
11159 | else |
11160 | # Determine the default libpath from the value encoded in an empty executable. |
11161 | cat >conftest.$ac_ext <<_ACEOF |
11162 | /* confdefs.h. */ |
11163 | _ACEOF |
11164 | cat confdefs.h >>conftest.$ac_ext |
11165 | cat >>conftest.$ac_ext <<_ACEOF |
11166 | /* end confdefs.h. */ |
11167 | |
11168 | int |
11169 | main () |
11170 | { |
11171 | |
11172 | ; |
11173 | return 0; |
11174 | } |
11175 | _ACEOF |
11176 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
11177 | if { (ac_try="$ac_link" |
11178 | case "(($ac_try" in |
11179 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11180 | *) ac_try_echo=$ac_try;; |
11181 | esac |
11182 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11183 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
11184 | ac_status=$? |
11185 | grep -v '^ *+' conftest.er1 >conftest.err |
11186 | rm -f conftest.er1 |
11187 | cat conftest.err >&5 |
11188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
11189 | (exit $ac_status); } && { |
11190 | test -z "$ac_cxx_werror_flag" || |
11191 | test ! -s conftest.err |
11192 | } && test -s conftest$ac_exeext && |
11193 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
11194 | |
ac40fd9e |
11195 | lt_aix_libpath_sed=' |
11196 | /Import File Strings/,/^$/ { |
11197 | /^0/ { |
11198 | s/^0 *\(.*\)$/\1/ |
11199 | p |
11200 | } |
11201 | }' |
11202 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
d9898ee8 |
11203 | # Check for a 64-bit object if we didn't find anything. |
ac40fd9e |
11204 | if test -z "$aix_libpath"; then |
11205 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
11206 | fi |
d9898ee8 |
11207 | else |
11208 | echo "$as_me: failed program was:" >&5 |
11209 | sed 's/^/| /' conftest.$ac_ext >&5 |
11210 | |
dd184caf |
11211 | |
d9898ee8 |
11212 | fi |
dd184caf |
11213 | |
11214 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
11215 | conftest$ac_exeext conftest.$ac_ext |
11216 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
11217 | |
11218 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
11219 | # Warning - without using the other run time loading flags, |
11220 | # -berok will link without error, but may produce a broken library. |
11221 | no_undefined_flag_CXX=' ${wl}-bernotok' |
11222 | allow_undefined_flag_CXX=' ${wl}-berok' |
11223 | # Exported symbols can be pulled into shared objects from archives |
11224 | whole_archive_flag_spec_CXX='$convenience' |
11225 | archive_cmds_need_lc_CXX=yes |
11226 | # This is similar to how AIX traditionally builds its shared libraries. |
11227 | 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' |
11228 | fi |
11229 | fi |
11230 | ;; |
11231 | |
11232 | beos*) |
11233 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
11234 | allow_undefined_flag_CXX=unsupported |
11235 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
11236 | # support --undefined. This deserves some investigation. FIXME |
11237 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
11238 | else |
11239 | ld_shlibs_CXX=no |
11240 | fi |
11241 | ;; |
11242 | |
11243 | chorus*) |
11244 | case $cc_basename in |
11245 | *) |
11246 | # FIXME: insert proper C++ library support |
11247 | ld_shlibs_CXX=no |
11248 | ;; |
11249 | esac |
11250 | ;; |
11251 | |
11252 | cygwin* | mingw* | pw32*) |
11253 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
11254 | # as there is no search path for DLLs. |
11255 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
11256 | allow_undefined_flag_CXX=unsupported |
11257 | always_export_symbols_CXX=no |
11258 | enable_shared_with_static_runtimes_CXX=yes |
11259 | |
11260 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
11261 | 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' |
11262 | # If the export-symbols file already is a .def file (1st line |
11263 | # is EXPORTS), use it as is; otherwise, prepend... |
11264 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
11265 | cp $export_symbols $output_objdir/$soname.def; |
11266 | else |
11267 | echo EXPORTS > $output_objdir/$soname.def; |
11268 | cat $export_symbols >> $output_objdir/$soname.def; |
11269 | fi~ |
11270 | $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' |
11271 | else |
11272 | ld_shlibs_CXX=no |
11273 | fi |
11274 | ;; |
11275 | darwin* | rhapsody*) |
11276 | case $host_os in |
11277 | rhapsody* | darwin1.[012]) |
11278 | allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' |
11279 | ;; |
11280 | *) # Darwin 1.3 on |
11281 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
11282 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
11283 | else |
11284 | case ${MACOSX_DEPLOYMENT_TARGET} in |
11285 | 10.[012]) |
11286 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
11287 | ;; |
11288 | 10.*) |
11289 | allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' |
11290 | ;; |
11291 | esac |
11292 | fi |
11293 | ;; |
11294 | esac |
11295 | archive_cmds_need_lc_CXX=no |
11296 | hardcode_direct_CXX=no |
11297 | hardcode_automatic_CXX=yes |
11298 | hardcode_shlibpath_var_CXX=unsupported |
11299 | whole_archive_flag_spec_CXX='' |
11300 | link_all_deplibs_CXX=yes |
11301 | |
11302 | if test "$GXX" = yes ; then |
11303 | lt_int_apple_cc_single_mod=no |
11304 | output_verbose_link_cmd='echo' |
11305 | if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then |
11306 | lt_int_apple_cc_single_mod=yes |
11307 | fi |
11308 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
11309 | archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
11310 | else |
11311 | 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' |
11312 | fi |
11313 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
11314 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
11315 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
11316 | 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}' |
11317 | else |
11318 | 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}' |
11319 | fi |
11320 | 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}' |
11321 | else |
11322 | case $cc_basename in |
11323 | xlc*) |
11324 | output_verbose_link_cmd='echo' |
ac40fd9e |
11325 | archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' |
d9898ee8 |
11326 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
11327 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
ac40fd9e |
11328 | 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
d9898ee8 |
11329 | 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}' |
11330 | ;; |
11331 | *) |
11332 | ld_shlibs_CXX=no |
11333 | ;; |
11334 | esac |
11335 | fi |
11336 | ;; |
11337 | |
11338 | dgux*) |
11339 | case $cc_basename in |
11340 | ec++*) |
11341 | # FIXME: insert proper C++ library support |
11342 | ld_shlibs_CXX=no |
11343 | ;; |
11344 | ghcx*) |
11345 | # Green Hills C++ Compiler |
11346 | # FIXME: insert proper C++ library support |
11347 | ld_shlibs_CXX=no |
11348 | ;; |
11349 | *) |
11350 | # FIXME: insert proper C++ library support |
11351 | ld_shlibs_CXX=no |
11352 | ;; |
11353 | esac |
11354 | ;; |
11355 | freebsd[12]*) |
11356 | # C++ shared libraries reported to be fairly broken before switch to ELF |
11357 | ld_shlibs_CXX=no |
11358 | ;; |
11359 | freebsd-elf*) |
11360 | archive_cmds_need_lc_CXX=no |
11361 | ;; |
ac40fd9e |
11362 | freebsd* | dragonfly*) |
d9898ee8 |
11363 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
11364 | # conventions |
11365 | ld_shlibs_CXX=yes |
11366 | ;; |
11367 | gnu*) |
11368 | ;; |
11369 | hpux9*) |
11370 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
11371 | hardcode_libdir_separator_CXX=: |
11372 | export_dynamic_flag_spec_CXX='${wl}-E' |
11373 | hardcode_direct_CXX=yes |
11374 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
11375 | # but as the default |
11376 | # location of the library. |
11377 | |
11378 | case $cc_basename in |
11379 | CC*) |
11380 | # FIXME: insert proper C++ library support |
11381 | ld_shlibs_CXX=no |
11382 | ;; |
11383 | aCC*) |
11384 | 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' |
11385 | # Commands to make compiler produce verbose output that lists |
11386 | # what "hidden" libraries, object files and flags are used when |
11387 | # linking a shared library. |
11388 | # |
11389 | # There doesn't appear to be a way to prevent this compiler from |
11390 | # explicitly linking system object files so we need to strip them |
11391 | # from the output so that they don't get included in the library |
11392 | # dependencies. |
11393 | 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' |
11394 | ;; |
11395 | *) |
11396 | if test "$GXX" = yes; then |
11397 | 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' |
11398 | else |
11399 | # FIXME: insert proper C++ library support |
11400 | ld_shlibs_CXX=no |
11401 | fi |
11402 | ;; |
11403 | esac |
11404 | ;; |
11405 | hpux10*|hpux11*) |
11406 | if test $with_gnu_ld = no; then |
11407 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
11408 | hardcode_libdir_separator_CXX=: |
11409 | |
11410 | case $host_cpu in |
ac40fd9e |
11411 | hppa*64*|ia64*) ;; |
d9898ee8 |
11412 | *) |
11413 | export_dynamic_flag_spec_CXX='${wl}-E' |
11414 | ;; |
11415 | esac |
11416 | fi |
11417 | case $host_cpu in |
11418 | hppa*64*|ia64*) |
11419 | hardcode_direct_CXX=no |
11420 | hardcode_shlibpath_var_CXX=no |
11421 | ;; |
11422 | *) |
11423 | hardcode_direct_CXX=yes |
11424 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
11425 | # but as the default |
11426 | # location of the library. |
11427 | ;; |
11428 | esac |
11429 | |
11430 | case $cc_basename in |
11431 | CC*) |
11432 | # FIXME: insert proper C++ library support |
11433 | ld_shlibs_CXX=no |
11434 | ;; |
11435 | aCC*) |
11436 | case $host_cpu in |
11437 | hppa*64*) |
11438 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11439 | ;; |
11440 | ia64*) |
11441 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11442 | ;; |
11443 | *) |
11444 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11445 | ;; |
11446 | esac |
11447 | # Commands to make compiler produce verbose output that lists |
11448 | # what "hidden" libraries, object files and flags are used when |
11449 | # linking a shared library. |
11450 | # |
11451 | # There doesn't appear to be a way to prevent this compiler from |
11452 | # explicitly linking system object files so we need to strip them |
11453 | # from the output so that they don't get included in the library |
11454 | # dependencies. |
11455 | 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' |
11456 | ;; |
11457 | *) |
11458 | if test "$GXX" = yes; then |
11459 | if test $with_gnu_ld = no; then |
11460 | case $host_cpu in |
11461 | hppa*64*) |
11462 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11463 | ;; |
11464 | ia64*) |
11465 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11466 | ;; |
11467 | *) |
11468 | 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' |
11469 | ;; |
11470 | esac |
11471 | fi |
11472 | else |
11473 | # FIXME: insert proper C++ library support |
11474 | ld_shlibs_CXX=no |
11475 | fi |
11476 | ;; |
11477 | esac |
11478 | ;; |
ac40fd9e |
11479 | interix[3-9]*) |
d9898ee8 |
11480 | hardcode_direct_CXX=no |
11481 | hardcode_shlibpath_var_CXX=no |
11482 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
11483 | export_dynamic_flag_spec_CXX='${wl}-E' |
11484 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
11485 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
11486 | # default) and relocated if they conflict, which is a slow very memory |
11487 | # consuming and fragmenting process. To avoid this, we pick a random, |
11488 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
11489 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
11490 | 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' |
11491 | 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' |
11492 | ;; |
11493 | irix5* | irix6*) |
11494 | case $cc_basename in |
11495 | CC*) |
11496 | # SGI C++ |
11497 | 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' |
11498 | |
11499 | # Archives containing C++ object files must be created using |
11500 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
11501 | # necessary to make sure instantiated templates are included |
11502 | # in the archive. |
11503 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
11504 | ;; |
11505 | *) |
11506 | if test "$GXX" = yes; then |
11507 | if test "$with_gnu_ld" = no; then |
11508 | 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' |
11509 | else |
11510 | 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' |
11511 | fi |
11512 | fi |
11513 | link_all_deplibs_CXX=yes |
11514 | ;; |
11515 | esac |
11516 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
11517 | hardcode_libdir_separator_CXX=: |
11518 | ;; |
ac40fd9e |
11519 | linux* | k*bsd*-gnu) |
d9898ee8 |
11520 | case $cc_basename in |
11521 | KCC*) |
11522 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
11523 | |
11524 | # KCC will only create a shared library if the output file |
11525 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
11526 | # to its proper name (with version) after linking. |
11527 | 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' |
11528 | 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' |
11529 | # Commands to make compiler produce verbose output that lists |
11530 | # what "hidden" libraries, object files and flags are used when |
11531 | # linking a shared library. |
11532 | # |
11533 | # There doesn't appear to be a way to prevent this compiler from |
11534 | # explicitly linking system object files so we need to strip them |
11535 | # from the output so that they don't get included in the library |
11536 | # dependencies. |
11537 | 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' |
11538 | |
11539 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' |
11540 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
11541 | |
11542 | # Archives containing C++ object files must be created using |
11543 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
11544 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
11545 | ;; |
11546 | icpc*) |
11547 | # Intel C++ |
11548 | with_gnu_ld=yes |
11549 | # version 8.0 and above of icpc choke on multiply defined symbols |
11550 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
11551 | # earlier do not add the objects themselves. |
11552 | case `$CC -V 2>&1` in |
11553 | *"Version 7."*) |
11554 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
11555 | 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' |
11556 | ;; |
11557 | *) # Version 8.0 or newer |
11558 | tmp_idyn= |
11559 | case $host_cpu in |
11560 | ia64*) tmp_idyn=' -i_dynamic';; |
11561 | esac |
11562 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
11563 | 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' |
11564 | ;; |
11565 | esac |
11566 | archive_cmds_need_lc_CXX=no |
11567 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
11568 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
11569 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
11570 | ;; |
11571 | pgCC*) |
11572 | # Portland Group C++ compiler |
11573 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
11574 | 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' |
11575 | |
11576 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
11577 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
11578 | 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' |
11579 | ;; |
11580 | cxx*) |
11581 | # Compaq C++ |
11582 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
11583 | 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' |
11584 | |
11585 | runpath_var=LD_RUN_PATH |
11586 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
11587 | hardcode_libdir_separator_CXX=: |
11588 | |
11589 | # Commands to make compiler produce verbose output that lists |
11590 | # what "hidden" libraries, object files and flags are used when |
11591 | # linking a shared library. |
11592 | # |
11593 | # There doesn't appear to be a way to prevent this compiler from |
11594 | # explicitly linking system object files so we need to strip them |
11595 | # from the output so that they don't get included in the library |
11596 | # dependencies. |
11597 | 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' |
11598 | ;; |
ac40fd9e |
11599 | *) |
11600 | case `$CC -V 2>&1 | sed 5q` in |
11601 | *Sun\ C*) |
11602 | # Sun C++ 5.9 |
11603 | no_undefined_flag_CXX=' -zdefs' |
11604 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11605 | archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' |
11606 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
11607 | whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
11608 | |
11609 | # Not sure whether something based on |
11610 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 |
11611 | # would be better. |
11612 | output_verbose_link_cmd='echo' |
11613 | |
11614 | # Archives containing C++ object files must be created using |
11615 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
11616 | # necessary to make sure instantiated templates are included |
11617 | # in the archive. |
11618 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
11619 | ;; |
11620 | esac |
11621 | ;; |
d9898ee8 |
11622 | esac |
11623 | ;; |
11624 | lynxos*) |
11625 | # FIXME: insert proper C++ library support |
11626 | ld_shlibs_CXX=no |
11627 | ;; |
11628 | m88k*) |
11629 | # FIXME: insert proper C++ library support |
11630 | ld_shlibs_CXX=no |
11631 | ;; |
11632 | mvs*) |
11633 | case $cc_basename in |
11634 | cxx*) |
11635 | # FIXME: insert proper C++ library support |
11636 | ld_shlibs_CXX=no |
11637 | ;; |
11638 | *) |
11639 | # FIXME: insert proper C++ library support |
11640 | ld_shlibs_CXX=no |
11641 | ;; |
11642 | esac |
11643 | ;; |
11644 | netbsd*) |
11645 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
11646 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
11647 | wlarc= |
11648 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
11649 | hardcode_direct_CXX=yes |
11650 | hardcode_shlibpath_var_CXX=no |
11651 | fi |
11652 | # Workaround some broken pre-1.5 toolchains |
11653 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
11654 | ;; |
11655 | openbsd2*) |
11656 | # C++ shared libraries are fairly broken |
11657 | ld_shlibs_CXX=no |
11658 | ;; |
11659 | openbsd*) |
ac40fd9e |
11660 | if test -f /usr/libexec/ld.so; then |
11661 | hardcode_direct_CXX=yes |
11662 | hardcode_shlibpath_var_CXX=no |
11663 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
11664 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
11665 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
11666 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
11667 | export_dynamic_flag_spec_CXX='${wl}-E' |
11668 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
11669 | fi |
11670 | output_verbose_link_cmd='echo' |
11671 | else |
11672 | ld_shlibs_CXX=no |
d9898ee8 |
11673 | fi |
d9898ee8 |
11674 | ;; |
11675 | osf3*) |
11676 | case $cc_basename in |
11677 | KCC*) |
11678 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
11679 | |
11680 | # KCC will only create a shared library if the output file |
11681 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
11682 | # to its proper name (with version) after linking. |
11683 | 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' |
11684 | |
11685 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
11686 | hardcode_libdir_separator_CXX=: |
11687 | |
11688 | # Archives containing C++ object files must be created using |
11689 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
11690 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
11691 | |
11692 | ;; |
11693 | RCC*) |
11694 | # Rational C++ 2.4.1 |
11695 | # FIXME: insert proper C++ library support |
11696 | ld_shlibs_CXX=no |
11697 | ;; |
11698 | cxx*) |
11699 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
11700 | 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' |
11701 | |
11702 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
11703 | hardcode_libdir_separator_CXX=: |
11704 | |
11705 | # Commands to make compiler produce verbose output that lists |
11706 | # what "hidden" libraries, object files and flags are used when |
11707 | # linking a shared library. |
11708 | # |
11709 | # There doesn't appear to be a way to prevent this compiler from |
11710 | # explicitly linking system object files so we need to strip them |
11711 | # from the output so that they don't get included in the library |
11712 | # dependencies. |
11713 | 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' |
11714 | ;; |
11715 | *) |
11716 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
11717 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
11718 | 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' |
11719 | |
11720 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
11721 | hardcode_libdir_separator_CXX=: |
11722 | |
11723 | # Commands to make compiler produce verbose output that lists |
11724 | # what "hidden" libraries, object files and flags are used when |
11725 | # linking a shared library. |
11726 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
11727 | |
11728 | else |
11729 | # FIXME: insert proper C++ library support |
11730 | ld_shlibs_CXX=no |
11731 | fi |
11732 | ;; |
11733 | esac |
11734 | ;; |
11735 | osf4* | osf5*) |
11736 | case $cc_basename in |
11737 | KCC*) |
11738 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
11739 | |
11740 | # KCC will only create a shared library if the output file |
11741 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
11742 | # to its proper name (with version) after linking. |
11743 | 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' |
11744 | |
11745 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
11746 | hardcode_libdir_separator_CXX=: |
11747 | |
11748 | # Archives containing C++ object files must be created using |
11749 | # the KAI C++ compiler. |
11750 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
11751 | ;; |
11752 | RCC*) |
11753 | # Rational C++ 2.4.1 |
11754 | # FIXME: insert proper C++ library support |
11755 | ld_shlibs_CXX=no |
11756 | ;; |
11757 | cxx*) |
11758 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
11759 | 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' |
11760 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
11761 | echo "-hidden">> $lib.exp~ |
11762 | $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~ |
11763 | $rm $lib.exp' |
11764 | |
11765 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
11766 | hardcode_libdir_separator_CXX=: |
11767 | |
11768 | # Commands to make compiler produce verbose output that lists |
11769 | # what "hidden" libraries, object files and flags are used when |
11770 | # linking a shared library. |
11771 | # |
11772 | # There doesn't appear to be a way to prevent this compiler from |
11773 | # explicitly linking system object files so we need to strip them |
11774 | # from the output so that they don't get included in the library |
11775 | # dependencies. |
11776 | 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' |
11777 | ;; |
11778 | *) |
11779 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
11780 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
11781 | 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' |
11782 | |
11783 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
11784 | hardcode_libdir_separator_CXX=: |
11785 | |
11786 | # Commands to make compiler produce verbose output that lists |
11787 | # what "hidden" libraries, object files and flags are used when |
11788 | # linking a shared library. |
11789 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
11790 | |
11791 | else |
11792 | # FIXME: insert proper C++ library support |
11793 | ld_shlibs_CXX=no |
11794 | fi |
11795 | ;; |
11796 | esac |
11797 | ;; |
11798 | psos*) |
11799 | # FIXME: insert proper C++ library support |
11800 | ld_shlibs_CXX=no |
11801 | ;; |
11802 | sunos4*) |
11803 | case $cc_basename in |
11804 | CC*) |
11805 | # Sun C++ 4.x |
11806 | # FIXME: insert proper C++ library support |
11807 | ld_shlibs_CXX=no |
11808 | ;; |
11809 | lcc*) |
11810 | # Lucid |
11811 | # FIXME: insert proper C++ library support |
11812 | ld_shlibs_CXX=no |
11813 | ;; |
11814 | *) |
11815 | # FIXME: insert proper C++ library support |
11816 | ld_shlibs_CXX=no |
11817 | ;; |
11818 | esac |
11819 | ;; |
11820 | solaris*) |
11821 | case $cc_basename in |
11822 | CC*) |
11823 | # Sun C++ 4.2, 5.x and Centerline C++ |
11824 | archive_cmds_need_lc_CXX=yes |
11825 | no_undefined_flag_CXX=' -zdefs' |
11826 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11827 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
11828 | $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' |
11829 | |
11830 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
11831 | hardcode_shlibpath_var_CXX=no |
11832 | case $host_os in |
11833 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
11834 | *) |
ac40fd9e |
11835 | # The compiler driver will combine and reorder linker options, |
11836 | # but understands `-z linker_flag'. |
d9898ee8 |
11837 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
ac40fd9e |
11838 | whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' |
d9898ee8 |
11839 | ;; |
11840 | esac |
11841 | link_all_deplibs_CXX=yes |
11842 | |
11843 | output_verbose_link_cmd='echo' |
11844 | |
11845 | # Archives containing C++ object files must be created using |
11846 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
11847 | # necessary to make sure instantiated templates are included |
11848 | # in the archive. |
11849 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
11850 | ;; |
11851 | gcx*) |
11852 | # Green Hills C++ Compiler |
11853 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
11854 | |
11855 | # The C++ compiler must be used to create the archive. |
11856 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
11857 | ;; |
11858 | *) |
11859 | # GNU C++ compiler with Solaris linker |
11860 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
11861 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
11862 | if $CC --version | grep -v '^2\.7' > /dev/null; then |
11863 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
11864 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
11865 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
11866 | |
11867 | # Commands to make compiler produce verbose output that lists |
11868 | # what "hidden" libraries, object files and flags are used when |
11869 | # linking a shared library. |
11870 | output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
11871 | else |
11872 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
11873 | # platform. |
11874 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
11875 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
11876 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
11877 | |
11878 | # Commands to make compiler produce verbose output that lists |
11879 | # what "hidden" libraries, object files and flags are used when |
11880 | # linking a shared library. |
11881 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
11882 | fi |
11883 | |
11884 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
ac40fd9e |
11885 | case $host_os in |
11886 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
11887 | *) |
11888 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
11889 | ;; |
11890 | esac |
d9898ee8 |
11891 | fi |
11892 | ;; |
11893 | esac |
11894 | ;; |
11895 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
11896 | no_undefined_flag_CXX='${wl}-z,text' |
11897 | archive_cmds_need_lc_CXX=no |
11898 | hardcode_shlibpath_var_CXX=no |
11899 | runpath_var='LD_RUN_PATH' |
11900 | |
11901 | case $cc_basename in |
11902 | CC*) |
11903 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
11904 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
11905 | ;; |
11906 | *) |
11907 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
11908 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
11909 | ;; |
11910 | esac |
11911 | ;; |
11912 | sysv5* | sco3.2v5* | sco5v6*) |
11913 | # Note: We can NOT use -z defs as we might desire, because we do not |
11914 | # link with -lc, and that would cause any symbols used from libc to |
11915 | # always be unresolved, which means just about no library would |
11916 | # ever link correctly. If we're not using GNU ld we use -z text |
11917 | # though, which does catch some bad symbols but isn't as heavy-handed |
11918 | # as -z defs. |
11919 | # For security reasons, it is highly recommended that you always |
11920 | # use absolute paths for naming shared libraries, and exclude the |
11921 | # DT_RUNPATH tag from executables and libraries. But doing so |
11922 | # requires that you compile everything twice, which is a pain. |
11923 | # So that behaviour is only enabled if SCOABSPATH is set to a |
11924 | # non-empty value in the environment. Most likely only useful for |
11925 | # creating official distributions of packages. |
11926 | # This is a hack until libtool officially supports absolute path |
11927 | # names for shared libraries. |
11928 | no_undefined_flag_CXX='${wl}-z,text' |
11929 | allow_undefined_flag_CXX='${wl}-z,nodefs' |
11930 | archive_cmds_need_lc_CXX=no |
11931 | hardcode_shlibpath_var_CXX=no |
11932 | hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
11933 | hardcode_libdir_separator_CXX=':' |
11934 | link_all_deplibs_CXX=yes |
11935 | export_dynamic_flag_spec_CXX='${wl}-Bexport' |
11936 | runpath_var='LD_RUN_PATH' |
11937 | |
11938 | case $cc_basename in |
11939 | CC*) |
11940 | archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
11941 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
11942 | ;; |
11943 | *) |
11944 | archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
11945 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
11946 | ;; |
11947 | esac |
11948 | ;; |
11949 | tandem*) |
11950 | case $cc_basename in |
11951 | NCC*) |
11952 | # NonStop-UX NCC 3.20 |
11953 | # FIXME: insert proper C++ library support |
11954 | ld_shlibs_CXX=no |
11955 | ;; |
11956 | *) |
11957 | # FIXME: insert proper C++ library support |
11958 | ld_shlibs_CXX=no |
11959 | ;; |
11960 | esac |
11961 | ;; |
11962 | vxworks*) |
11963 | # FIXME: insert proper C++ library support |
11964 | ld_shlibs_CXX=no |
11965 | ;; |
11966 | *) |
11967 | # FIXME: insert proper C++ library support |
11968 | ld_shlibs_CXX=no |
11969 | ;; |
11970 | esac |
dd184caf |
11971 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
11972 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
d9898ee8 |
11973 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
11974 | |
11975 | GCC_CXX="$GXX" |
11976 | LD_CXX="$LD" |
11977 | |
11978 | |
11979 | cat > conftest.$ac_ext <<EOF |
11980 | class Foo |
11981 | { |
11982 | public: |
11983 | Foo (void) { a = 0; } |
11984 | private: |
11985 | int a; |
11986 | }; |
11987 | EOF |
11988 | |
11989 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
11990 | (eval $ac_compile) 2>&5 |
11991 | ac_status=$? |
11992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11993 | (exit $ac_status); }; then |
11994 | # Parse the compiler output and extract the necessary |
11995 | # objects, libraries and library flags. |
11996 | |
11997 | # Sentinel used to keep track of whether or not we are before |
11998 | # the conftest object file. |
11999 | pre_test_object_deps_done=no |
12000 | |
12001 | # The `*' in the case matches for architectures that use `case' in |
12002 | # $output_verbose_cmd can trigger glob expansion during the loop |
12003 | # eval without this substitution. |
12004 | output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` |
12005 | |
12006 | for p in `eval $output_verbose_link_cmd`; do |
12007 | case $p in |
12008 | |
12009 | -L* | -R* | -l*) |
12010 | # Some compilers place space between "-{L,R}" and the path. |
12011 | # Remove the space. |
12012 | if test $p = "-L" \ |
12013 | || test $p = "-R"; then |
12014 | prev=$p |
12015 | continue |
12016 | else |
12017 | prev= |
12018 | fi |
12019 | |
12020 | if test "$pre_test_object_deps_done" = no; then |
12021 | case $p in |
12022 | -L* | -R*) |
12023 | # Internal compiler library paths should come after those |
12024 | # provided the user. The postdeps already come after the |
12025 | # user supplied libs so there is no need to process them. |
12026 | if test -z "$compiler_lib_search_path_CXX"; then |
12027 | compiler_lib_search_path_CXX="${prev}${p}" |
12028 | else |
12029 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
12030 | fi |
12031 | ;; |
12032 | # The "-l" case would never come before the object being |
12033 | # linked, so don't bother handling this case. |
12034 | esac |
12035 | else |
12036 | if test -z "$postdeps_CXX"; then |
12037 | postdeps_CXX="${prev}${p}" |
12038 | else |
12039 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
12040 | fi |
12041 | fi |
12042 | ;; |
12043 | |
12044 | *.$objext) |
12045 | # This assumes that the test object file only shows up |
12046 | # once in the compiler output. |
12047 | if test "$p" = "conftest.$objext"; then |
12048 | pre_test_object_deps_done=yes |
12049 | continue |
12050 | fi |
12051 | |
12052 | if test "$pre_test_object_deps_done" = no; then |
12053 | if test -z "$predep_objects_CXX"; then |
12054 | predep_objects_CXX="$p" |
12055 | else |
12056 | predep_objects_CXX="$predep_objects_CXX $p" |
12057 | fi |
12058 | else |
12059 | if test -z "$postdep_objects_CXX"; then |
12060 | postdep_objects_CXX="$p" |
12061 | else |
12062 | postdep_objects_CXX="$postdep_objects_CXX $p" |
12063 | fi |
12064 | fi |
12065 | ;; |
12066 | |
12067 | *) ;; # Ignore the rest. |
12068 | |
12069 | esac |
12070 | done |
12071 | |
12072 | # Clean up. |
12073 | rm -f a.out a.exe |
12074 | else |
12075 | echo "libtool.m4: error: problem compiling CXX test program" |
12076 | fi |
12077 | |
12078 | $rm -f confest.$objext |
12079 | |
12080 | # PORTME: override above test on systems where it is broken |
12081 | case $host_os in |
ac40fd9e |
12082 | interix[3-9]*) |
d9898ee8 |
12083 | # Interix 3.5 installs completely hosed .la files for C++, so rather than |
12084 | # hack all around it, let's just trust "g++" to DTRT. |
12085 | predep_objects_CXX= |
12086 | postdep_objects_CXX= |
12087 | postdeps_CXX= |
12088 | ;; |
12089 | |
ac40fd9e |
12090 | linux*) |
12091 | case `$CC -V 2>&1 | sed 5q` in |
12092 | *Sun\ C*) |
12093 | # Sun C++ 5.9 |
12094 | # |
12095 | # The more standards-conforming stlport4 library is |
12096 | # incompatible with the Cstd library. Avoid specifying |
12097 | # it if it's in CXXFLAGS. Ignore libCrun as |
12098 | # -library=stlport4 depends on it. |
12099 | case " $CXX $CXXFLAGS " in |
12100 | *" -library=stlport4 "*) |
12101 | solaris_use_stlport4=yes |
12102 | ;; |
12103 | esac |
12104 | if test "$solaris_use_stlport4" != yes; then |
12105 | postdeps_CXX='-library=Cstd -library=Crun' |
12106 | fi |
12107 | ;; |
12108 | esac |
12109 | ;; |
12110 | |
d9898ee8 |
12111 | solaris*) |
12112 | case $cc_basename in |
12113 | CC*) |
ac40fd9e |
12114 | # The more standards-conforming stlport4 library is |
12115 | # incompatible with the Cstd library. Avoid specifying |
12116 | # it if it's in CXXFLAGS. Ignore libCrun as |
12117 | # -library=stlport4 depends on it. |
12118 | case " $CXX $CXXFLAGS " in |
12119 | *" -library=stlport4 "*) |
12120 | solaris_use_stlport4=yes |
12121 | ;; |
12122 | esac |
12123 | |
d9898ee8 |
12124 | # Adding this requires a known-good setup of shared libraries for |
12125 | # Sun compiler versions before 5.6, else PIC objects from an old |
12126 | # archive will be linked into the output, leading to subtle bugs. |
ac40fd9e |
12127 | if test "$solaris_use_stlport4" != yes; then |
12128 | postdeps_CXX='-library=Cstd -library=Crun' |
12129 | fi |
d9898ee8 |
12130 | ;; |
12131 | esac |
12132 | ;; |
12133 | esac |
12134 | |
12135 | |
12136 | case " $postdeps_CXX " in |
12137 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
12138 | esac |
12139 | |
12140 | lt_prog_compiler_wl_CXX= |
12141 | lt_prog_compiler_pic_CXX= |
12142 | lt_prog_compiler_static_CXX= |
12143 | |
dd184caf |
12144 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
12145 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
d9898ee8 |
12146 | |
12147 | # C++ specific cases for pic, static, wl, etc. |
12148 | if test "$GXX" = yes; then |
12149 | lt_prog_compiler_wl_CXX='-Wl,' |
12150 | lt_prog_compiler_static_CXX='-static' |
12151 | |
12152 | case $host_os in |
12153 | aix*) |
12154 | # All AIX code is PIC. |
12155 | if test "$host_cpu" = ia64; then |
12156 | # AIX 5 now supports IA64 processor |
12157 | lt_prog_compiler_static_CXX='-Bstatic' |
12158 | fi |
12159 | ;; |
12160 | amigaos*) |
12161 | # FIXME: we need at least 68020 code to build shared libraries, but |
12162 | # adding the `-m68020' flag to GCC prevents building anything better, |
12163 | # like `-m68040'. |
12164 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
12165 | ;; |
ac40fd9e |
12166 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
d9898ee8 |
12167 | # PIC is the default for these OSes. |
12168 | ;; |
ac40fd9e |
12169 | mingw* | cygwin* | os2* | pw32*) |
d9898ee8 |
12170 | # This hack is so that the source file can tell whether it is being |
12171 | # built for inclusion in a dll (and should export symbols for example). |
ac40fd9e |
12172 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
12173 | # (--disable-auto-import) libraries |
d9898ee8 |
12174 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
12175 | ;; |
12176 | darwin* | rhapsody*) |
12177 | # PIC is the default on this platform |
12178 | # Common symbols not allowed in MH_DYLIB files |
12179 | lt_prog_compiler_pic_CXX='-fno-common' |
12180 | ;; |
12181 | *djgpp*) |
12182 | # DJGPP does not support shared libraries at all |
12183 | lt_prog_compiler_pic_CXX= |
12184 | ;; |
ac40fd9e |
12185 | interix[3-9]*) |
d9898ee8 |
12186 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
12187 | # Instead, we relocate shared libraries at runtime. |
12188 | ;; |
12189 | sysv4*MP*) |
12190 | if test -d /usr/nec; then |
12191 | lt_prog_compiler_pic_CXX=-Kconform_pic |
12192 | fi |
12193 | ;; |
12194 | hpux*) |
12195 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
12196 | # not for PA HP-UX. |
12197 | case $host_cpu in |
12198 | hppa*64*|ia64*) |
12199 | ;; |
12200 | *) |
12201 | lt_prog_compiler_pic_CXX='-fPIC' |
12202 | ;; |
12203 | esac |
12204 | ;; |
12205 | *) |
12206 | lt_prog_compiler_pic_CXX='-fPIC' |
12207 | ;; |
12208 | esac |
12209 | else |
12210 | case $host_os in |
12211 | aix4* | aix5*) |
12212 | # All AIX code is PIC. |
12213 | if test "$host_cpu" = ia64; then |
12214 | # AIX 5 now supports IA64 processor |
12215 | lt_prog_compiler_static_CXX='-Bstatic' |
12216 | else |
12217 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
12218 | fi |
12219 | ;; |
12220 | chorus*) |
12221 | case $cc_basename in |
12222 | cxch68*) |
12223 | # Green Hills C++ Compiler |
12224 | # _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" |
12225 | ;; |
12226 | esac |
12227 | ;; |
12228 | darwin*) |
12229 | # PIC is the default on this platform |
12230 | # Common symbols not allowed in MH_DYLIB files |
12231 | case $cc_basename in |
12232 | xlc*) |
12233 | lt_prog_compiler_pic_CXX='-qnocommon' |
12234 | lt_prog_compiler_wl_CXX='-Wl,' |
12235 | ;; |
12236 | esac |
12237 | ;; |
12238 | dgux*) |
12239 | case $cc_basename in |
12240 | ec++*) |
12241 | lt_prog_compiler_pic_CXX='-KPIC' |
12242 | ;; |
12243 | ghcx*) |
12244 | # Green Hills C++ Compiler |
12245 | lt_prog_compiler_pic_CXX='-pic' |
12246 | ;; |
12247 | *) |
12248 | ;; |
12249 | esac |
12250 | ;; |
ac40fd9e |
12251 | freebsd* | dragonfly*) |
d9898ee8 |
12252 | # FreeBSD uses GNU C++ |
12253 | ;; |
12254 | hpux9* | hpux10* | hpux11*) |
12255 | case $cc_basename in |
12256 | CC*) |
12257 | lt_prog_compiler_wl_CXX='-Wl,' |
12258 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
12259 | if test "$host_cpu" != ia64; then |
12260 | lt_prog_compiler_pic_CXX='+Z' |
12261 | fi |
12262 | ;; |
12263 | aCC*) |
12264 | lt_prog_compiler_wl_CXX='-Wl,' |
12265 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
12266 | case $host_cpu in |
12267 | hppa*64*|ia64*) |
12268 | # +Z the default |
12269 | ;; |
12270 | *) |
12271 | lt_prog_compiler_pic_CXX='+Z' |
12272 | ;; |
12273 | esac |
12274 | ;; |
12275 | *) |
12276 | ;; |
12277 | esac |
12278 | ;; |
12279 | interix*) |
12280 | # This is c89, which is MS Visual C++ (no shared libs) |
12281 | # Anyone wants to do a port? |
12282 | ;; |
12283 | irix5* | irix6* | nonstopux*) |
12284 | case $cc_basename in |
12285 | CC*) |
12286 | lt_prog_compiler_wl_CXX='-Wl,' |
12287 | lt_prog_compiler_static_CXX='-non_shared' |
12288 | # CC pic flag -KPIC is the default. |
12289 | ;; |
12290 | *) |
12291 | ;; |
12292 | esac |
12293 | ;; |
ac40fd9e |
12294 | linux* | k*bsd*-gnu) |
d9898ee8 |
12295 | case $cc_basename in |
12296 | KCC*) |
12297 | # KAI C++ Compiler |
12298 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
12299 | lt_prog_compiler_pic_CXX='-fPIC' |
12300 | ;; |
12301 | icpc* | ecpc*) |
12302 | # Intel C++ |
12303 | lt_prog_compiler_wl_CXX='-Wl,' |
12304 | lt_prog_compiler_pic_CXX='-KPIC' |
12305 | lt_prog_compiler_static_CXX='-static' |
12306 | ;; |
12307 | pgCC*) |
12308 | # Portland Group C++ compiler. |
12309 | lt_prog_compiler_wl_CXX='-Wl,' |
12310 | lt_prog_compiler_pic_CXX='-fpic' |
12311 | lt_prog_compiler_static_CXX='-Bstatic' |
12312 | ;; |
12313 | cxx*) |
12314 | # Compaq C++ |
12315 | # Make sure the PIC flag is empty. It appears that all Alpha |
12316 | # Linux and Compaq Tru64 Unix objects are PIC. |
12317 | lt_prog_compiler_pic_CXX= |
12318 | lt_prog_compiler_static_CXX='-non_shared' |
12319 | ;; |
12320 | *) |
ac40fd9e |
12321 | case `$CC -V 2>&1 | sed 5q` in |
12322 | *Sun\ C*) |
12323 | # Sun C++ 5.9 |
12324 | lt_prog_compiler_pic_CXX='-KPIC' |
12325 | lt_prog_compiler_static_CXX='-Bstatic' |
12326 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
12327 | ;; |
12328 | esac |
d9898ee8 |
12329 | ;; |
12330 | esac |
12331 | ;; |
12332 | lynxos*) |
12333 | ;; |
12334 | m88k*) |
12335 | ;; |
12336 | mvs*) |
12337 | case $cc_basename in |
12338 | cxx*) |
12339 | lt_prog_compiler_pic_CXX='-W c,exportall' |
12340 | ;; |
12341 | *) |
12342 | ;; |
12343 | esac |
12344 | ;; |
12345 | netbsd*) |
12346 | ;; |
12347 | osf3* | osf4* | osf5*) |
12348 | case $cc_basename in |
12349 | KCC*) |
12350 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
12351 | ;; |
12352 | RCC*) |
12353 | # Rational C++ 2.4.1 |
12354 | lt_prog_compiler_pic_CXX='-pic' |
12355 | ;; |
12356 | cxx*) |
12357 | # Digital/Compaq C++ |
12358 | lt_prog_compiler_wl_CXX='-Wl,' |
12359 | # Make sure the PIC flag is empty. It appears that all Alpha |
12360 | # Linux and Compaq Tru64 Unix objects are PIC. |
12361 | lt_prog_compiler_pic_CXX= |
12362 | lt_prog_compiler_static_CXX='-non_shared' |
12363 | ;; |
12364 | *) |
12365 | ;; |
12366 | esac |
12367 | ;; |
12368 | psos*) |
12369 | ;; |
12370 | solaris*) |
12371 | case $cc_basename in |
12372 | CC*) |
12373 | # Sun C++ 4.2, 5.x and Centerline C++ |
12374 | lt_prog_compiler_pic_CXX='-KPIC' |
12375 | lt_prog_compiler_static_CXX='-Bstatic' |
12376 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
12377 | ;; |
12378 | gcx*) |
12379 | # Green Hills C++ Compiler |
12380 | lt_prog_compiler_pic_CXX='-PIC' |
12381 | ;; |
12382 | *) |
12383 | ;; |
12384 | esac |
12385 | ;; |
12386 | sunos4*) |
12387 | case $cc_basename in |
12388 | CC*) |
12389 | # Sun C++ 4.x |
12390 | lt_prog_compiler_pic_CXX='-pic' |
12391 | lt_prog_compiler_static_CXX='-Bstatic' |
12392 | ;; |
12393 | lcc*) |
12394 | # Lucid |
12395 | lt_prog_compiler_pic_CXX='-pic' |
12396 | ;; |
12397 | *) |
12398 | ;; |
12399 | esac |
12400 | ;; |
12401 | tandem*) |
12402 | case $cc_basename in |
12403 | NCC*) |
12404 | # NonStop-UX NCC 3.20 |
12405 | lt_prog_compiler_pic_CXX='-KPIC' |
12406 | ;; |
12407 | *) |
12408 | ;; |
12409 | esac |
12410 | ;; |
12411 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
12412 | case $cc_basename in |
12413 | CC*) |
12414 | lt_prog_compiler_wl_CXX='-Wl,' |
12415 | lt_prog_compiler_pic_CXX='-KPIC' |
12416 | lt_prog_compiler_static_CXX='-Bstatic' |
12417 | ;; |
12418 | esac |
12419 | ;; |
12420 | vxworks*) |
12421 | ;; |
12422 | *) |
12423 | lt_prog_compiler_can_build_shared_CXX=no |
12424 | ;; |
12425 | esac |
12426 | fi |
12427 | |
dd184caf |
12428 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
12429 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } |
d9898ee8 |
12430 | |
12431 | # |
12432 | # Check to make sure the PIC flag actually works. |
12433 | # |
12434 | if test -n "$lt_prog_compiler_pic_CXX"; then |
12435 | |
dd184caf |
12436 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
12437 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } |
d9898ee8 |
12438 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then |
12439 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12440 | else |
12441 | lt_prog_compiler_pic_works_CXX=no |
12442 | ac_outfile=conftest.$ac_objext |
ac40fd9e |
12443 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
d9898ee8 |
12444 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
12445 | # Insert the option either (1) after the last *FLAGS variable, or |
12446 | # (2) before a word containing "conftest.", or (3) at the end. |
12447 | # Note that $ac_compile itself does not contain backslashes and begins |
12448 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
12449 | # The option is referenced via a variable to avoid confusing sed. |
12450 | lt_compile=`echo "$ac_compile" | $SED \ |
12451 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
12452 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
12453 | -e 's:$: $lt_compiler_flag:'` |
ac40fd9e |
12454 | (eval echo "\"\$as_me:12454: $lt_compile\"" >&5) |
d9898ee8 |
12455 | (eval "$lt_compile" 2>conftest.err) |
12456 | ac_status=$? |
12457 | cat conftest.err >&5 |
ac40fd9e |
12458 | echo "$as_me:12458: \$? = $ac_status" >&5 |
d9898ee8 |
12459 | if (exit $ac_status) && test -s "$ac_outfile"; then |
12460 | # The compiler can only warn and ignore the option if not recognized |
12461 | # So say no if there are warnings other than the usual output. |
12462 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
12463 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
12464 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
12465 | lt_prog_compiler_pic_works_CXX=yes |
12466 | fi |
12467 | fi |
12468 | $rm conftest* |
12469 | |
12470 | fi |
dd184caf |
12471 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 |
12472 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } |
d9898ee8 |
12473 | |
12474 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then |
12475 | case $lt_prog_compiler_pic_CXX in |
12476 | "" | " "*) ;; |
12477 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
12478 | esac |
12479 | else |
12480 | lt_prog_compiler_pic_CXX= |
12481 | lt_prog_compiler_can_build_shared_CXX=no |
12482 | fi |
12483 | |
12484 | fi |
12485 | case $host_os in |
12486 | # For platforms which do not support PIC, -DPIC is meaningless: |
12487 | *djgpp*) |
12488 | lt_prog_compiler_pic_CXX= |
12489 | ;; |
12490 | *) |
12491 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
12492 | ;; |
12493 | esac |
12494 | |
12495 | # |
12496 | # Check to make sure the static flag actually works. |
12497 | # |
12498 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" |
dd184caf |
12499 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
12500 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
d9898ee8 |
12501 | if test "${lt_prog_compiler_static_works_CXX+set}" = set; then |
12502 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12503 | else |
12504 | lt_prog_compiler_static_works_CXX=no |
12505 | save_LDFLAGS="$LDFLAGS" |
12506 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
ac40fd9e |
12507 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
d9898ee8 |
12508 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
12509 | # The linker can only warn and ignore the option if not recognized |
12510 | # So say no if there are warnings |
12511 | if test -s conftest.err; then |
12512 | # Append any errors to the config.log. |
12513 | cat conftest.err 1>&5 |
12514 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
12515 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
12516 | if diff conftest.exp conftest.er2 >/dev/null; then |
12517 | lt_prog_compiler_static_works_CXX=yes |
12518 | fi |
12519 | else |
12520 | lt_prog_compiler_static_works_CXX=yes |
12521 | fi |
12522 | fi |
12523 | $rm conftest* |
12524 | LDFLAGS="$save_LDFLAGS" |
12525 | |
12526 | fi |
dd184caf |
12527 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 |
12528 | echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } |
d9898ee8 |
12529 | |
12530 | if test x"$lt_prog_compiler_static_works_CXX" = xyes; then |
12531 | : |
12532 | else |
12533 | lt_prog_compiler_static_CXX= |
12534 | fi |
12535 | |
12536 | |
dd184caf |
12537 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
12538 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
d9898ee8 |
12539 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
12540 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12541 | else |
12542 | lt_cv_prog_compiler_c_o_CXX=no |
12543 | $rm -r conftest 2>/dev/null |
12544 | mkdir conftest |
12545 | cd conftest |
12546 | mkdir out |
ac40fd9e |
12547 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
d9898ee8 |
12548 | |
12549 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
12550 | # Insert the option either (1) after the last *FLAGS variable, or |
12551 | # (2) before a word containing "conftest.", or (3) at the end. |
12552 | # Note that $ac_compile itself does not contain backslashes and begins |
12553 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
12554 | lt_compile=`echo "$ac_compile" | $SED \ |
12555 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
12556 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
12557 | -e 's:$: $lt_compiler_flag:'` |
ac40fd9e |
12558 | (eval echo "\"\$as_me:12558: $lt_compile\"" >&5) |
d9898ee8 |
12559 | (eval "$lt_compile" 2>out/conftest.err) |
12560 | ac_status=$? |
12561 | cat out/conftest.err >&5 |
ac40fd9e |
12562 | echo "$as_me:12562: \$? = $ac_status" >&5 |
d9898ee8 |
12563 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
12564 | then |
12565 | # The compiler can only warn and ignore the option if not recognized |
12566 | # So say no if there are warnings |
12567 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
12568 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
12569 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
12570 | lt_cv_prog_compiler_c_o_CXX=yes |
12571 | fi |
12572 | fi |
12573 | chmod u+w . 2>&5 |
12574 | $rm conftest* |
12575 | # SGI C++ compiler will create directory out/ii_files/ for |
12576 | # template instantiation |
12577 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
12578 | $rm out/* && rmdir out |
12579 | cd .. |
12580 | rmdir conftest |
12581 | $rm conftest* |
12582 | |
12583 | fi |
dd184caf |
12584 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
12585 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } |
d9898ee8 |
12586 | |
12587 | |
12588 | hard_links="nottested" |
12589 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
12590 | # do not overwrite the value of need_locks provided by the user |
dd184caf |
12591 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
12592 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
d9898ee8 |
12593 | hard_links=yes |
12594 | $rm conftest* |
12595 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
12596 | touch conftest.a |
12597 | ln conftest.a conftest.b 2>&5 || hard_links=no |
12598 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
dd184caf |
12599 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
12600 | echo "${ECHO_T}$hard_links" >&6; } |
d9898ee8 |
12601 | if test "$hard_links" = no; then |
12602 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
12603 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
12604 | need_locks=warn |
12605 | fi |
12606 | else |
12607 | need_locks=no |
12608 | fi |
12609 | |
dd184caf |
12610 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
12611 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
d9898ee8 |
12612 | |
12613 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
12614 | case $host_os in |
12615 | aix4* | aix5*) |
12616 | # If we're using GNU nm, then we don't want the "-C" option. |
12617 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
12618 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
12619 | 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' |
12620 | else |
12621 | 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' |
12622 | fi |
12623 | ;; |
12624 | pw32*) |
12625 | export_symbols_cmds_CXX="$ltdll_cmds" |
12626 | ;; |
12627 | cygwin* | mingw*) |
ac40fd9e |
12628 | 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' |
d9898ee8 |
12629 | ;; |
12630 | *) |
12631 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
12632 | ;; |
12633 | esac |
12634 | |
dd184caf |
12635 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
12636 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
d9898ee8 |
12637 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
12638 | |
12639 | # |
12640 | # Do we need to explicitly link libc? |
12641 | # |
12642 | case "x$archive_cmds_need_lc_CXX" in |
12643 | x|xyes) |
12644 | # Assume -lc should be added |
12645 | archive_cmds_need_lc_CXX=yes |
12646 | |
12647 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
12648 | case $archive_cmds_CXX in |
12649 | *'~'*) |
12650 | # FIXME: we may have to deal with multi-command sequences. |
12651 | ;; |
12652 | '$CC '*) |
12653 | # Test whether the compiler implicitly links with -lc since on some |
12654 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
12655 | # to ld, don't add -lc before -lgcc. |
dd184caf |
12656 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
12657 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
d9898ee8 |
12658 | $rm conftest* |
ac40fd9e |
12659 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
d9898ee8 |
12660 | |
12661 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
12662 | (eval $ac_compile) 2>&5 |
12663 | ac_status=$? |
12664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12665 | (exit $ac_status); } 2>conftest.err; then |
12666 | soname=conftest |
12667 | lib=conftest |
12668 | libobjs=conftest.$ac_objext |
12669 | deplibs= |
12670 | wl=$lt_prog_compiler_wl_CXX |
12671 | pic_flag=$lt_prog_compiler_pic_CXX |
12672 | compiler_flags=-v |
12673 | linker_flags=-v |
12674 | verstring= |
12675 | output_objdir=. |
12676 | libname=conftest |
12677 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
12678 | allow_undefined_flag_CXX= |
12679 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
12680 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
12681 | ac_status=$? |
12682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12683 | (exit $ac_status); } |
12684 | then |
12685 | archive_cmds_need_lc_CXX=no |
12686 | else |
12687 | archive_cmds_need_lc_CXX=yes |
12688 | fi |
12689 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
12690 | else |
12691 | cat conftest.err 1>&5 |
12692 | fi |
12693 | $rm conftest* |
dd184caf |
12694 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 |
12695 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } |
d9898ee8 |
12696 | ;; |
12697 | esac |
12698 | fi |
12699 | ;; |
12700 | esac |
12701 | |
dd184caf |
12702 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
12703 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
d9898ee8 |
12704 | library_names_spec= |
12705 | libname_spec='lib$name' |
12706 | soname_spec= |
12707 | shrext_cmds=".so" |
12708 | postinstall_cmds= |
12709 | postuninstall_cmds= |
12710 | finish_cmds= |
12711 | finish_eval= |
12712 | shlibpath_var= |
12713 | shlibpath_overrides_runpath=unknown |
12714 | version_type=none |
12715 | dynamic_linker="$host_os ld.so" |
12716 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
ac40fd9e |
12717 | |
d9898ee8 |
12718 | need_lib_prefix=unknown |
12719 | hardcode_into_libs=no |
12720 | |
12721 | # when you set need_version to no, make sure it does not cause -set_version |
12722 | # flags to be left without arguments |
12723 | need_version=unknown |
12724 | |
12725 | case $host_os in |
12726 | aix3*) |
12727 | version_type=linux |
12728 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
12729 | shlibpath_var=LIBPATH |
12730 | |
12731 | # AIX 3 has no versioning support, so we append a major version to the name. |
12732 | soname_spec='${libname}${release}${shared_ext}$major' |
12733 | ;; |
12734 | |
12735 | aix4* | aix5*) |
12736 | version_type=linux |
12737 | need_lib_prefix=no |
12738 | need_version=no |
12739 | hardcode_into_libs=yes |
12740 | if test "$host_cpu" = ia64; then |
12741 | # AIX 5 supports IA64 |
12742 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
12743 | shlibpath_var=LD_LIBRARY_PATH |
12744 | else |
12745 | # With GCC up to 2.95.x, collect2 would create an import file |
12746 | # for dependence libraries. The import file would start with |
12747 | # the line `#! .'. This would cause the generated library to |
12748 | # depend on `.', always an invalid library. This was fixed in |
12749 | # development snapshots of GCC prior to 3.0. |
12750 | case $host_os in |
12751 | aix4 | aix4.[01] | aix4.[01].*) |
12752 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
12753 | echo ' yes ' |
12754 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
12755 | : |
12756 | else |
12757 | can_build_shared=no |
12758 | fi |
12759 | ;; |
12760 | esac |
12761 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
12762 | # soname into executable. Probably we can add versioning support to |
12763 | # collect2, so additional links can be useful in future. |
12764 | if test "$aix_use_runtimelinking" = yes; then |
12765 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
12766 | # instead of lib<name>.a to let people know that these are not |
12767 | # typical AIX shared libraries. |
12768 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12769 | else |
12770 | # We preserve .a as extension for shared libraries through AIX4.2 |
12771 | # and later when we are not doing run time linking. |
12772 | library_names_spec='${libname}${release}.a $libname.a' |
12773 | soname_spec='${libname}${release}${shared_ext}$major' |
12774 | fi |
12775 | shlibpath_var=LIBPATH |
12776 | fi |
12777 | ;; |
12778 | |
12779 | amigaos*) |
12780 | library_names_spec='$libname.ixlibrary $libname.a' |
12781 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
12782 | 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' |
12783 | ;; |
12784 | |
12785 | beos*) |
12786 | library_names_spec='${libname}${shared_ext}' |
12787 | dynamic_linker="$host_os ld.so" |
12788 | shlibpath_var=LIBRARY_PATH |
12789 | ;; |
12790 | |
12791 | bsdi[45]*) |
12792 | version_type=linux |
12793 | need_version=no |
12794 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12795 | soname_spec='${libname}${release}${shared_ext}$major' |
12796 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
12797 | shlibpath_var=LD_LIBRARY_PATH |
12798 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
12799 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
12800 | # the default ld.so.conf also contains /usr/contrib/lib and |
12801 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
12802 | # libtool to hard-code these into programs |
12803 | ;; |
12804 | |
12805 | cygwin* | mingw* | pw32*) |
12806 | version_type=windows |
12807 | shrext_cmds=".dll" |
12808 | need_version=no |
12809 | need_lib_prefix=no |
12810 | |
12811 | case $GCC,$host_os in |
12812 | yes,cygwin* | yes,mingw* | yes,pw32*) |
12813 | library_names_spec='$libname.dll.a' |
12814 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
12815 | postinstall_cmds='base_file=`basename \${file}`~ |
12816 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
12817 | dldir=$destdir/`dirname \$dlpath`~ |
12818 | test -d \$dldir || mkdir -p \$dldir~ |
12819 | $install_prog $dir/$dlname \$dldir/$dlname~ |
12820 | chmod a+x \$dldir/$dlname' |
12821 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
12822 | dlpath=$dir/\$dldll~ |
12823 | $rm \$dlpath' |
12824 | shlibpath_overrides_runpath=yes |
12825 | |
12826 | case $host_os in |
12827 | cygwin*) |
12828 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
12829 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
12830 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
12831 | ;; |
12832 | mingw*) |
12833 | # MinGW DLLs use traditional 'lib' prefix |
12834 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
12835 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
12836 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
12837 | # It is most probably a Windows format PATH printed by |
12838 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
12839 | # path with ; separators, and with drive letters. We can handle the |
12840 | # drive letters (cygwin fileutils understands them), so leave them, |
12841 | # especially as we might pass files found there to a mingw objdump, |
12842 | # which wouldn't understand a cygwinified path. Ahh. |
12843 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
12844 | else |
12845 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
12846 | fi |
12847 | ;; |
12848 | pw32*) |
12849 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
12850 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
12851 | ;; |
12852 | esac |
12853 | ;; |
12854 | |
12855 | *) |
12856 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
12857 | ;; |
12858 | esac |
12859 | dynamic_linker='Win32 ld.exe' |
12860 | # FIXME: first we should search . and the directory the executable is in |
12861 | shlibpath_var=PATH |
12862 | ;; |
12863 | |
12864 | darwin* | rhapsody*) |
12865 | dynamic_linker="$host_os dyld" |
12866 | version_type=darwin |
12867 | need_lib_prefix=no |
12868 | need_version=no |
12869 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
12870 | soname_spec='${libname}${release}${major}$shared_ext' |
12871 | shlibpath_overrides_runpath=yes |
12872 | shlibpath_var=DYLD_LIBRARY_PATH |
12873 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
ac40fd9e |
12874 | |
d9898ee8 |
12875 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
12876 | ;; |
12877 | |
12878 | dgux*) |
12879 | version_type=linux |
12880 | need_lib_prefix=no |
12881 | need_version=no |
12882 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
12883 | soname_spec='${libname}${release}${shared_ext}$major' |
12884 | shlibpath_var=LD_LIBRARY_PATH |
12885 | ;; |
12886 | |
12887 | freebsd1*) |
12888 | dynamic_linker=no |
12889 | ;; |
12890 | |
d9898ee8 |
12891 | freebsd* | dragonfly*) |
12892 | # DragonFly does not have aout. When/if they implement a new |
12893 | # versioning mechanism, adjust this. |
12894 | if test -x /usr/bin/objformat; then |
12895 | objformat=`/usr/bin/objformat` |
12896 | else |
12897 | case $host_os in |
12898 | freebsd[123]*) objformat=aout ;; |
12899 | *) objformat=elf ;; |
12900 | esac |
12901 | fi |
12902 | version_type=freebsd-$objformat |
12903 | case $version_type in |
12904 | freebsd-elf*) |
12905 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
12906 | need_version=no |
12907 | need_lib_prefix=no |
12908 | ;; |
12909 | freebsd-*) |
12910 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
12911 | need_version=yes |
12912 | ;; |
12913 | esac |
12914 | shlibpath_var=LD_LIBRARY_PATH |
12915 | case $host_os in |
12916 | freebsd2*) |
12917 | shlibpath_overrides_runpath=yes |
12918 | ;; |
12919 | freebsd3.[01]* | freebsdelf3.[01]*) |
12920 | shlibpath_overrides_runpath=yes |
12921 | hardcode_into_libs=yes |
12922 | ;; |
12923 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
12924 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
12925 | shlibpath_overrides_runpath=no |
12926 | hardcode_into_libs=yes |
12927 | ;; |
ac40fd9e |
12928 | *) # from 4.6 on, and DragonFly |
d9898ee8 |
12929 | shlibpath_overrides_runpath=yes |
12930 | hardcode_into_libs=yes |
12931 | ;; |
12932 | esac |
12933 | ;; |
12934 | |
12935 | gnu*) |
12936 | version_type=linux |
12937 | need_lib_prefix=no |
12938 | need_version=no |
12939 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
12940 | soname_spec='${libname}${release}${shared_ext}$major' |
12941 | shlibpath_var=LD_LIBRARY_PATH |
12942 | hardcode_into_libs=yes |
12943 | ;; |
12944 | |
12945 | hpux9* | hpux10* | hpux11*) |
12946 | # Give a soname corresponding to the major version so that dld.sl refuses to |
12947 | # link against other versions. |
12948 | version_type=sunos |
12949 | need_lib_prefix=no |
12950 | need_version=no |
12951 | case $host_cpu in |
12952 | ia64*) |
12953 | shrext_cmds='.so' |
12954 | hardcode_into_libs=yes |
12955 | dynamic_linker="$host_os dld.so" |
12956 | shlibpath_var=LD_LIBRARY_PATH |
12957 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
12958 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12959 | soname_spec='${libname}${release}${shared_ext}$major' |
12960 | if test "X$HPUX_IA64_MODE" = X32; then |
12961 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
12962 | else |
12963 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
12964 | fi |
12965 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
12966 | ;; |
12967 | hppa*64*) |
12968 | shrext_cmds='.sl' |
12969 | hardcode_into_libs=yes |
12970 | dynamic_linker="$host_os dld.sl" |
12971 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
12972 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
12973 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12974 | soname_spec='${libname}${release}${shared_ext}$major' |
12975 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
12976 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
12977 | ;; |
12978 | *) |
12979 | shrext_cmds='.sl' |
12980 | dynamic_linker="$host_os dld.sl" |
12981 | shlibpath_var=SHLIB_PATH |
12982 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
12983 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12984 | soname_spec='${libname}${release}${shared_ext}$major' |
12985 | ;; |
12986 | esac |
12987 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
12988 | postinstall_cmds='chmod 555 $lib' |
12989 | ;; |
12990 | |
ac40fd9e |
12991 | interix[3-9]*) |
d9898ee8 |
12992 | version_type=linux |
12993 | need_lib_prefix=no |
12994 | need_version=no |
12995 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
12996 | soname_spec='${libname}${release}${shared_ext}$major' |
12997 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
12998 | shlibpath_var=LD_LIBRARY_PATH |
12999 | shlibpath_overrides_runpath=no |
13000 | hardcode_into_libs=yes |
13001 | ;; |
13002 | |
13003 | irix5* | irix6* | nonstopux*) |
13004 | case $host_os in |
13005 | nonstopux*) version_type=nonstopux ;; |
13006 | *) |
13007 | if test "$lt_cv_prog_gnu_ld" = yes; then |
13008 | version_type=linux |
13009 | else |
13010 | version_type=irix |
13011 | fi ;; |
13012 | esac |
13013 | need_lib_prefix=no |
13014 | need_version=no |
13015 | soname_spec='${libname}${release}${shared_ext}$major' |
13016 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
13017 | case $host_os in |
13018 | irix5* | nonstopux*) |
13019 | libsuff= shlibsuff= |
13020 | ;; |
13021 | *) |
13022 | case $LD in # libtool.m4 will add one of these switches to LD |
13023 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
13024 | libsuff= shlibsuff= libmagic=32-bit;; |
13025 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
13026 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
13027 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
13028 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
13029 | *) libsuff= shlibsuff= libmagic=never-match;; |
13030 | esac |
13031 | ;; |
13032 | esac |
13033 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
13034 | shlibpath_overrides_runpath=no |
13035 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
13036 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
13037 | hardcode_into_libs=yes |
13038 | ;; |
13039 | |
13040 | # No shared lib support for Linux oldld, aout, or coff. |
13041 | linux*oldld* | linux*aout* | linux*coff*) |
13042 | dynamic_linker=no |
13043 | ;; |
13044 | |
13045 | # This must be Linux ELF. |
ac40fd9e |
13046 | linux* | k*bsd*-gnu) |
d9898ee8 |
13047 | version_type=linux |
13048 | need_lib_prefix=no |
13049 | need_version=no |
13050 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13051 | soname_spec='${libname}${release}${shared_ext}$major' |
13052 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
13053 | shlibpath_var=LD_LIBRARY_PATH |
13054 | shlibpath_overrides_runpath=no |
13055 | # This implies no fast_install, which is unacceptable. |
13056 | # Some rework will be needed to allow for fast_install |
13057 | # before this can be enabled. |
13058 | hardcode_into_libs=yes |
ac40fd9e |
13059 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
13060 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
d9898ee8 |
13061 | |
13062 | # Append ld.so.conf contents to the search path |
13063 | if test -f /etc/ld.so.conf; then |
ac40fd9e |
13064 | 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/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
13065 | sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" |
d9898ee8 |
13066 | fi |
13067 | |
13068 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
13069 | # powerpc, because MkLinux only supported shared libraries with the |
13070 | # GNU dynamic linker. Since this was broken with cross compilers, |
13071 | # most powerpc-linux boxes support dynamic linking these days and |
13072 | # people can always --disable-shared, the test was removed, and we |
13073 | # assume the GNU/Linux dynamic linker is in use. |
13074 | dynamic_linker='GNU/Linux ld.so' |
13075 | ;; |
13076 | |
d9898ee8 |
13077 | netbsd*) |
13078 | version_type=sunos |
13079 | need_lib_prefix=no |
13080 | need_version=no |
13081 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
13082 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
13083 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
13084 | dynamic_linker='NetBSD (a.out) ld.so' |
13085 | else |
13086 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
13087 | soname_spec='${libname}${release}${shared_ext}$major' |
13088 | dynamic_linker='NetBSD ld.elf_so' |
13089 | fi |
13090 | shlibpath_var=LD_LIBRARY_PATH |
13091 | shlibpath_overrides_runpath=yes |
13092 | hardcode_into_libs=yes |
13093 | ;; |
13094 | |
13095 | newsos6) |
13096 | version_type=linux |
13097 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13098 | shlibpath_var=LD_LIBRARY_PATH |
13099 | shlibpath_overrides_runpath=yes |
13100 | ;; |
13101 | |
13102 | nto-qnx*) |
13103 | version_type=linux |
13104 | need_lib_prefix=no |
13105 | need_version=no |
13106 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13107 | soname_spec='${libname}${release}${shared_ext}$major' |
13108 | shlibpath_var=LD_LIBRARY_PATH |
13109 | shlibpath_overrides_runpath=yes |
13110 | ;; |
13111 | |
13112 | openbsd*) |
13113 | version_type=sunos |
13114 | sys_lib_dlsearch_path_spec="/usr/lib" |
13115 | need_lib_prefix=no |
13116 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
13117 | case $host_os in |
13118 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
13119 | *) need_version=no ;; |
13120 | esac |
13121 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
13122 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
13123 | shlibpath_var=LD_LIBRARY_PATH |
13124 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
13125 | case $host_os in |
13126 | openbsd2.[89] | openbsd2.[89].*) |
13127 | shlibpath_overrides_runpath=no |
13128 | ;; |
13129 | *) |
13130 | shlibpath_overrides_runpath=yes |
13131 | ;; |
13132 | esac |
13133 | else |
13134 | shlibpath_overrides_runpath=yes |
13135 | fi |
13136 | ;; |
13137 | |
13138 | os2*) |
13139 | libname_spec='$name' |
13140 | shrext_cmds=".dll" |
13141 | need_lib_prefix=no |
13142 | library_names_spec='$libname${shared_ext} $libname.a' |
13143 | dynamic_linker='OS/2 ld.exe' |
13144 | shlibpath_var=LIBPATH |
13145 | ;; |
13146 | |
13147 | osf3* | osf4* | osf5*) |
13148 | version_type=osf |
13149 | need_lib_prefix=no |
13150 | need_version=no |
13151 | soname_spec='${libname}${release}${shared_ext}$major' |
13152 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13153 | shlibpath_var=LD_LIBRARY_PATH |
13154 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
13155 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
13156 | ;; |
13157 | |
ac40fd9e |
13158 | rdos*) |
13159 | dynamic_linker=no |
13160 | ;; |
13161 | |
d9898ee8 |
13162 | solaris*) |
13163 | version_type=linux |
13164 | need_lib_prefix=no |
13165 | need_version=no |
13166 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13167 | soname_spec='${libname}${release}${shared_ext}$major' |
13168 | shlibpath_var=LD_LIBRARY_PATH |
13169 | shlibpath_overrides_runpath=yes |
13170 | hardcode_into_libs=yes |
13171 | # ldd complains unless libraries are executable |
13172 | postinstall_cmds='chmod +x $lib' |
13173 | ;; |
13174 | |
13175 | sunos4*) |
13176 | version_type=sunos |
13177 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
13178 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
13179 | shlibpath_var=LD_LIBRARY_PATH |
13180 | shlibpath_overrides_runpath=yes |
13181 | if test "$with_gnu_ld" = yes; then |
13182 | need_lib_prefix=no |
13183 | fi |
13184 | need_version=yes |
13185 | ;; |
13186 | |
13187 | sysv4 | sysv4.3*) |
13188 | version_type=linux |
13189 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13190 | soname_spec='${libname}${release}${shared_ext}$major' |
13191 | shlibpath_var=LD_LIBRARY_PATH |
13192 | case $host_vendor in |
13193 | sni) |
13194 | shlibpath_overrides_runpath=no |
13195 | need_lib_prefix=no |
13196 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
13197 | runpath_var=LD_RUN_PATH |
13198 | ;; |
13199 | siemens) |
13200 | need_lib_prefix=no |
13201 | ;; |
13202 | motorola) |
13203 | need_lib_prefix=no |
13204 | need_version=no |
13205 | shlibpath_overrides_runpath=no |
13206 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
13207 | ;; |
13208 | esac |
13209 | ;; |
13210 | |
13211 | sysv4*MP*) |
13212 | if test -d /usr/nec ;then |
13213 | version_type=linux |
13214 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
13215 | soname_spec='$libname${shared_ext}.$major' |
13216 | shlibpath_var=LD_LIBRARY_PATH |
13217 | fi |
13218 | ;; |
13219 | |
13220 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
13221 | version_type=freebsd-elf |
13222 | need_lib_prefix=no |
13223 | need_version=no |
13224 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
13225 | soname_spec='${libname}${release}${shared_ext}$major' |
13226 | shlibpath_var=LD_LIBRARY_PATH |
13227 | hardcode_into_libs=yes |
13228 | if test "$with_gnu_ld" = yes; then |
13229 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
13230 | shlibpath_overrides_runpath=no |
13231 | else |
13232 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
13233 | shlibpath_overrides_runpath=yes |
13234 | case $host_os in |
13235 | sco3.2v5*) |
13236 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
13237 | ;; |
13238 | esac |
13239 | fi |
13240 | sys_lib_dlsearch_path_spec='/usr/lib' |
13241 | ;; |
13242 | |
13243 | uts4*) |
13244 | version_type=linux |
13245 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13246 | soname_spec='${libname}${release}${shared_ext}$major' |
13247 | shlibpath_var=LD_LIBRARY_PATH |
13248 | ;; |
13249 | |
13250 | *) |
13251 | dynamic_linker=no |
13252 | ;; |
13253 | esac |
dd184caf |
13254 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
13255 | echo "${ECHO_T}$dynamic_linker" >&6; } |
d9898ee8 |
13256 | test "$dynamic_linker" = no && can_build_shared=no |
13257 | |
13258 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
13259 | if test "$GCC" = yes; then |
13260 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
13261 | fi |
13262 | |
dd184caf |
13263 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
13264 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
d9898ee8 |
13265 | hardcode_action_CXX= |
13266 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ |
13267 | test -n "$runpath_var_CXX" || \ |
13268 | test "X$hardcode_automatic_CXX" = "Xyes" ; then |
13269 | |
13270 | # We can hardcode non-existant directories. |
13271 | if test "$hardcode_direct_CXX" != no && |
13272 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
13273 | # have to relink, otherwise we might link with an installed library |
13274 | # when we should be linking with a yet-to-be-installed one |
13275 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
13276 | test "$hardcode_minus_L_CXX" != no; then |
13277 | # Linking always hardcodes the temporary library directory. |
13278 | hardcode_action_CXX=relink |
13279 | else |
13280 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
13281 | hardcode_action_CXX=immediate |
13282 | fi |
13283 | else |
13284 | # We cannot hardcode anything, or else we can only hardcode existing |
13285 | # directories. |
13286 | hardcode_action_CXX=unsupported |
13287 | fi |
dd184caf |
13288 | { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
13289 | echo "${ECHO_T}$hardcode_action_CXX" >&6; } |
d9898ee8 |
13290 | |
13291 | if test "$hardcode_action_CXX" = relink; then |
13292 | # Fast installation is not supported |
13293 | enable_fast_install=no |
13294 | elif test "$shlibpath_overrides_runpath" = yes || |
13295 | test "$enable_shared" = no; then |
13296 | # Fast installation is not necessary |
13297 | enable_fast_install=needless |
13298 | fi |
13299 | |
13300 | |
13301 | # The else clause should only fire when bootstrapping the |
13302 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
13303 | # with your package, and you will get complaints that there are |
13304 | # no rules to generate ltmain.sh. |
13305 | if test -f "$ltmain"; then |
13306 | # See if we are running on zsh, and set the options which allow our commands through |
13307 | # without removal of \ escapes. |
13308 | if test -n "${ZSH_VERSION+set}" ; then |
13309 | setopt NO_GLOB_SUBST |
13310 | fi |
13311 | # Now quote all the things that may contain metacharacters while being |
13312 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
13313 | # variables and quote the copies for generation of the libtool script. |
13314 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
13315 | SED SHELL STRIP \ |
13316 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
13317 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
13318 | deplibs_check_method reload_flag reload_cmds need_locks \ |
13319 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
13320 | lt_cv_sys_global_symbol_to_c_name_address \ |
13321 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
13322 | old_postinstall_cmds old_postuninstall_cmds \ |
13323 | compiler_CXX \ |
13324 | CC_CXX \ |
13325 | LD_CXX \ |
13326 | lt_prog_compiler_wl_CXX \ |
13327 | lt_prog_compiler_pic_CXX \ |
13328 | lt_prog_compiler_static_CXX \ |
13329 | lt_prog_compiler_no_builtin_flag_CXX \ |
13330 | export_dynamic_flag_spec_CXX \ |
13331 | thread_safe_flag_spec_CXX \ |
13332 | whole_archive_flag_spec_CXX \ |
13333 | enable_shared_with_static_runtimes_CXX \ |
13334 | old_archive_cmds_CXX \ |
13335 | old_archive_from_new_cmds_CXX \ |
13336 | predep_objects_CXX \ |
13337 | postdep_objects_CXX \ |
13338 | predeps_CXX \ |
13339 | postdeps_CXX \ |
13340 | compiler_lib_search_path_CXX \ |
13341 | archive_cmds_CXX \ |
13342 | archive_expsym_cmds_CXX \ |
13343 | postinstall_cmds_CXX \ |
13344 | postuninstall_cmds_CXX \ |
13345 | old_archive_from_expsyms_cmds_CXX \ |
13346 | allow_undefined_flag_CXX \ |
13347 | no_undefined_flag_CXX \ |
13348 | export_symbols_cmds_CXX \ |
13349 | hardcode_libdir_flag_spec_CXX \ |
13350 | hardcode_libdir_flag_spec_ld_CXX \ |
13351 | hardcode_libdir_separator_CXX \ |
13352 | hardcode_automatic_CXX \ |
13353 | module_cmds_CXX \ |
13354 | module_expsym_cmds_CXX \ |
13355 | lt_cv_prog_compiler_c_o_CXX \ |
ac40fd9e |
13356 | fix_srcfile_path_CXX \ |
d9898ee8 |
13357 | exclude_expsyms_CXX \ |
13358 | include_expsyms_CXX; do |
13359 | |
13360 | case $var in |
13361 | old_archive_cmds_CXX | \ |
13362 | old_archive_from_new_cmds_CXX | \ |
13363 | archive_cmds_CXX | \ |
13364 | archive_expsym_cmds_CXX | \ |
13365 | module_cmds_CXX | \ |
13366 | module_expsym_cmds_CXX | \ |
13367 | old_archive_from_expsyms_cmds_CXX | \ |
13368 | export_symbols_cmds_CXX | \ |
13369 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
13370 | postinstall_cmds | postuninstall_cmds | \ |
13371 | old_postinstall_cmds | old_postuninstall_cmds | \ |
13372 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
13373 | # Double-quote double-evaled strings. |
13374 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
13375 | ;; |
13376 | *) |
13377 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
13378 | ;; |
13379 | esac |
13380 | done |
13381 | |
13382 | case $lt_echo in |
13383 | *'\$0 --fallback-echo"') |
13384 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
13385 | ;; |
13386 | esac |
13387 | |
13388 | cfgfile="$ofile" |
13389 | |
13390 | cat <<__EOF__ >> "$cfgfile" |
13391 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
13392 | |
13393 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
13394 | |
13395 | # Shell to use when invoking shell scripts. |
13396 | SHELL=$lt_SHELL |
13397 | |
13398 | # Whether or not to build shared libraries. |
13399 | build_libtool_libs=$enable_shared |
13400 | |
13401 | # Whether or not to build static libraries. |
13402 | build_old_libs=$enable_static |
13403 | |
13404 | # Whether or not to add -lc for building shared libraries. |
13405 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
13406 | |
13407 | # Whether or not to disallow shared libs when runtime libs are static |
13408 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
13409 | |
13410 | # Whether or not to optimize for fast installation. |
13411 | fast_install=$enable_fast_install |
13412 | |
13413 | # The host system. |
13414 | host_alias=$host_alias |
13415 | host=$host |
13416 | host_os=$host_os |
13417 | |
13418 | # The build system. |
13419 | build_alias=$build_alias |
13420 | build=$build |
13421 | build_os=$build_os |
13422 | |
13423 | # An echo program that does not interpret backslashes. |
13424 | echo=$lt_echo |
13425 | |
13426 | # The archiver. |
13427 | AR=$lt_AR |
13428 | AR_FLAGS=$lt_AR_FLAGS |
13429 | |
13430 | # A C compiler. |
13431 | LTCC=$lt_LTCC |
13432 | |
13433 | # LTCC compiler flags. |
13434 | LTCFLAGS=$lt_LTCFLAGS |
13435 | |
13436 | # A language-specific compiler. |
13437 | CC=$lt_compiler_CXX |
13438 | |
13439 | # Is the compiler the GNU C compiler? |
13440 | with_gcc=$GCC_CXX |
13441 | |
d9898ee8 |
13442 | # An ERE matcher. |
13443 | EGREP=$lt_EGREP |
13444 | |
13445 | # The linker used to build libraries. |
13446 | LD=$lt_LD_CXX |
13447 | |
13448 | # Whether we need hard or soft links. |
13449 | LN_S=$lt_LN_S |
13450 | |
13451 | # A BSD-compatible nm program. |
13452 | NM=$lt_NM |
13453 | |
13454 | # A symbol stripping program |
13455 | STRIP=$lt_STRIP |
13456 | |
13457 | # Used to examine libraries when file_magic_cmd begins "file" |
13458 | MAGIC_CMD=$MAGIC_CMD |
13459 | |
13460 | # Used on cygwin: DLL creation program. |
13461 | DLLTOOL="$DLLTOOL" |
13462 | |
13463 | # Used on cygwin: object dumper. |
13464 | OBJDUMP="$OBJDUMP" |
13465 | |
13466 | # Used on cygwin: assembler. |
13467 | AS="$AS" |
13468 | |
13469 | # The name of the directory that contains temporary libtool files. |
13470 | objdir=$objdir |
13471 | |
13472 | # How to create reloadable object files. |
13473 | reload_flag=$lt_reload_flag |
13474 | reload_cmds=$lt_reload_cmds |
13475 | |
13476 | # How to pass a linker flag through the compiler. |
13477 | wl=$lt_lt_prog_compiler_wl_CXX |
13478 | |
13479 | # Object file suffix (normally "o"). |
13480 | objext="$ac_objext" |
13481 | |
13482 | # Old archive suffix (normally "a"). |
13483 | libext="$libext" |
13484 | |
13485 | # Shared library suffix (normally ".so"). |
13486 | shrext_cmds='$shrext_cmds' |
13487 | |
13488 | # Executable file suffix (normally ""). |
13489 | exeext="$exeext" |
13490 | |
13491 | # Additional compiler flags for building library objects. |
13492 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
13493 | pic_mode=$pic_mode |
13494 | |
13495 | # What is the maximum length of a command? |
13496 | max_cmd_len=$lt_cv_sys_max_cmd_len |
13497 | |
13498 | # Does compiler simultaneously support -c and -o options? |
13499 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
13500 | |
13501 | # Must we lock files when doing compilation? |
13502 | need_locks=$lt_need_locks |
13503 | |
13504 | # Do we need the lib prefix for modules? |
13505 | need_lib_prefix=$need_lib_prefix |
13506 | |
13507 | # Do we need a version for libraries? |
13508 | need_version=$need_version |
13509 | |
13510 | # Whether dlopen is supported. |
13511 | dlopen_support=$enable_dlopen |
13512 | |
13513 | # Whether dlopen of programs is supported. |
13514 | dlopen_self=$enable_dlopen_self |
13515 | |
13516 | # Whether dlopen of statically linked programs is supported. |
13517 | dlopen_self_static=$enable_dlopen_self_static |
13518 | |
13519 | # Compiler flag to prevent dynamic linking. |
13520 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
13521 | |
13522 | # Compiler flag to turn off builtin functions. |
13523 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
13524 | |
13525 | # Compiler flag to allow reflexive dlopens. |
13526 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
13527 | |
13528 | # Compiler flag to generate shared objects directly from archives. |
13529 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
13530 | |
13531 | # Compiler flag to generate thread-safe objects. |
13532 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX |
13533 | |
13534 | # Library versioning type. |
13535 | version_type=$version_type |
13536 | |
13537 | # Format of library name prefix. |
13538 | libname_spec=$lt_libname_spec |
13539 | |
13540 | # List of archive names. First name is the real one, the rest are links. |
13541 | # The last name is the one that the linker finds with -lNAME. |
13542 | library_names_spec=$lt_library_names_spec |
13543 | |
13544 | # The coded name of the library, if different from the real name. |
13545 | soname_spec=$lt_soname_spec |
13546 | |
13547 | # Commands used to build and install an old-style archive. |
13548 | RANLIB=$lt_RANLIB |
13549 | old_archive_cmds=$lt_old_archive_cmds_CXX |
13550 | old_postinstall_cmds=$lt_old_postinstall_cmds |
13551 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
13552 | |
13553 | # Create an old-style archive from a shared archive. |
13554 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
13555 | |
13556 | # Create a temporary old-style archive to link instead of a shared archive. |
13557 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
13558 | |
13559 | # Commands used to build and install a shared archive. |
13560 | archive_cmds=$lt_archive_cmds_CXX |
13561 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
13562 | postinstall_cmds=$lt_postinstall_cmds |
13563 | postuninstall_cmds=$lt_postuninstall_cmds |
13564 | |
13565 | # Commands used to build a loadable module (assumed same as above if empty) |
13566 | module_cmds=$lt_module_cmds_CXX |
13567 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
13568 | |
13569 | # Commands to strip libraries. |
13570 | old_striplib=$lt_old_striplib |
13571 | striplib=$lt_striplib |
13572 | |
13573 | # Dependencies to place before the objects being linked to create a |
13574 | # shared library. |
dd184caf |
13575 | predep_objects=$lt_predep_objects_CXX |
d9898ee8 |
13576 | |
13577 | # Dependencies to place after the objects being linked to create a |
13578 | # shared library. |
dd184caf |
13579 | postdep_objects=$lt_postdep_objects_CXX |
d9898ee8 |
13580 | |
13581 | # Dependencies to place before the objects being linked to create a |
13582 | # shared library. |
13583 | predeps=$lt_predeps_CXX |
13584 | |
13585 | # Dependencies to place after the objects being linked to create a |
13586 | # shared library. |
13587 | postdeps=$lt_postdeps_CXX |
13588 | |
13589 | # The library search path used internally by the compiler when linking |
13590 | # a shared library. |
dd184caf |
13591 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
d9898ee8 |
13592 | |
13593 | # Method to check whether dependent libraries are shared objects. |
13594 | deplibs_check_method=$lt_deplibs_check_method |
13595 | |
13596 | # Command to use when deplibs_check_method == file_magic. |
13597 | file_magic_cmd=$lt_file_magic_cmd |
13598 | |
13599 | # Flag that allows shared libraries with undefined symbols to be built. |
13600 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
13601 | |
13602 | # Flag that forces no undefined symbols. |
13603 | no_undefined_flag=$lt_no_undefined_flag_CXX |
13604 | |
13605 | # Commands used to finish a libtool library installation in a directory. |
13606 | finish_cmds=$lt_finish_cmds |
13607 | |
13608 | # Same as above, but a single script fragment to be evaled but not shown. |
13609 | finish_eval=$lt_finish_eval |
13610 | |
13611 | # Take the output of nm and produce a listing of raw symbols and C names. |
13612 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
13613 | |
13614 | # Transform the output of nm in a proper C declaration |
13615 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
13616 | |
13617 | # Transform the output of nm in a C name address pair |
13618 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
13619 | |
13620 | # This is the shared library runtime path variable. |
13621 | runpath_var=$runpath_var |
13622 | |
13623 | # This is the shared library path variable. |
13624 | shlibpath_var=$shlibpath_var |
13625 | |
13626 | # Is shlibpath searched before the hard-coded library search path? |
13627 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
13628 | |
13629 | # How to hardcode a shared library path into an executable. |
13630 | hardcode_action=$hardcode_action_CXX |
13631 | |
13632 | # Whether we should hardcode library paths into libraries. |
13633 | hardcode_into_libs=$hardcode_into_libs |
13634 | |
13635 | # Flag to hardcode \$libdir into a binary during linking. |
13636 | # This must work even if \$libdir does not exist. |
13637 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
13638 | |
13639 | # If ld is used when linking, flag to hardcode \$libdir into |
13640 | # a binary during linking. This must work even if \$libdir does |
13641 | # not exist. |
13642 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
13643 | |
13644 | # Whether we need a single -rpath flag with a separated argument. |
13645 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
13646 | |
13647 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
13648 | # resulting binary. |
13649 | hardcode_direct=$hardcode_direct_CXX |
13650 | |
13651 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
13652 | # resulting binary. |
13653 | hardcode_minus_L=$hardcode_minus_L_CXX |
13654 | |
13655 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
13656 | # the resulting binary. |
13657 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
13658 | |
13659 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
13660 | # and all subsequent libraries and executables linked against it. |
13661 | hardcode_automatic=$hardcode_automatic_CXX |
13662 | |
13663 | # Variables whose values should be saved in libtool wrapper scripts and |
13664 | # restored at relink time. |
13665 | variables_saved_for_relink="$variables_saved_for_relink" |
13666 | |
13667 | # Whether libtool must link a program against all its dependency libraries. |
13668 | link_all_deplibs=$link_all_deplibs_CXX |
13669 | |
13670 | # Compile-time system search path for libraries |
dd184caf |
13671 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
d9898ee8 |
13672 | |
13673 | # Run-time system search path for libraries |
13674 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
13675 | |
13676 | # Fix the shell variable \$srcfile for the compiler. |
ac40fd9e |
13677 | fix_srcfile_path=$lt_fix_srcfile_path |
d9898ee8 |
13678 | |
13679 | # Set to yes if exported symbols are required. |
13680 | always_export_symbols=$always_export_symbols_CXX |
13681 | |
13682 | # The commands to list exported symbols. |
13683 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
13684 | |
13685 | # The commands to extract the exported symbol list from a shared archive. |
13686 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
13687 | |
13688 | # Symbols that should not be listed in the preloaded symbols. |
13689 | exclude_expsyms=$lt_exclude_expsyms_CXX |
13690 | |
13691 | # Symbols that must always be exported. |
13692 | include_expsyms=$lt_include_expsyms_CXX |
13693 | |
13694 | # ### END LIBTOOL TAG CONFIG: $tagname |
13695 | |
13696 | __EOF__ |
13697 | |
13698 | |
13699 | else |
13700 | # If there is no Makefile yet, we rely on a make rule to execute |
13701 | # `config.status --recheck' to rerun these tests and create the |
13702 | # libtool script then. |
13703 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
13704 | if test -f "$ltmain_in"; then |
13705 | test -f Makefile && make "$ltmain" |
13706 | fi |
13707 | fi |
13708 | |
13709 | |
13710 | ac_ext=c |
13711 | ac_cpp='$CPP $CPPFLAGS' |
13712 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
13713 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
13714 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
13715 | |
13716 | CC=$lt_save_CC |
13717 | LDCXX=$LD |
13718 | LD=$lt_save_LD |
13719 | GCC=$lt_save_GCC |
13720 | with_gnu_ldcxx=$with_gnu_ld |
13721 | with_gnu_ld=$lt_save_with_gnu_ld |
13722 | lt_cv_path_LDCXX=$lt_cv_path_LD |
13723 | lt_cv_path_LD=$lt_save_path_LD |
13724 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
13725 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
13726 | |
13727 | else |
13728 | tagname="" |
13729 | fi |
13730 | ;; |
13731 | |
13732 | F77) |
13733 | if test -n "$F77" && test "X$F77" != "Xno"; then |
13734 | |
13735 | ac_ext=f |
13736 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
13737 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
13738 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
13739 | |
13740 | |
13741 | archive_cmds_need_lc_F77=no |
13742 | allow_undefined_flag_F77= |
13743 | always_export_symbols_F77=no |
13744 | archive_expsym_cmds_F77= |
13745 | export_dynamic_flag_spec_F77= |
13746 | hardcode_direct_F77=no |
13747 | hardcode_libdir_flag_spec_F77= |
13748 | hardcode_libdir_flag_spec_ld_F77= |
13749 | hardcode_libdir_separator_F77= |
13750 | hardcode_minus_L_F77=no |
13751 | hardcode_automatic_F77=no |
13752 | module_cmds_F77= |
13753 | module_expsym_cmds_F77= |
13754 | link_all_deplibs_F77=unknown |
13755 | old_archive_cmds_F77=$old_archive_cmds |
13756 | no_undefined_flag_F77= |
13757 | whole_archive_flag_spec_F77= |
13758 | enable_shared_with_static_runtimes_F77=no |
13759 | |
13760 | # Source file extension for f77 test sources. |
13761 | ac_ext=f |
13762 | |
13763 | # Object file extension for compiled f77 test sources. |
13764 | objext=o |
13765 | objext_F77=$objext |
13766 | |
13767 | # Code to be used in simple compile tests |
ac40fd9e |
13768 | lt_simple_compile_test_code="\ |
13769 | subroutine t |
13770 | return |
13771 | end |
13772 | " |
d9898ee8 |
13773 | |
13774 | # Code to be used in simple link tests |
ac40fd9e |
13775 | lt_simple_link_test_code="\ |
13776 | program t |
13777 | end |
13778 | " |
d9898ee8 |
13779 | |
13780 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
13781 | |
13782 | # If no C compiler was specified, use CC. |
13783 | LTCC=${LTCC-"$CC"} |
13784 | |
13785 | # If no C compiler flags were specified, use CFLAGS. |
13786 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
13787 | |
13788 | # Allow CC to be a program name with arguments. |
13789 | compiler=$CC |
13790 | |
13791 | |
13792 | # save warnings/boilerplate of simple test code |
13793 | ac_outfile=conftest.$ac_objext |
ac40fd9e |
13794 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
d9898ee8 |
13795 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
13796 | _lt_compiler_boilerplate=`cat conftest.err` |
13797 | $rm conftest* |
13798 | |
13799 | ac_outfile=conftest.$ac_objext |
ac40fd9e |
13800 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
d9898ee8 |
13801 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
13802 | _lt_linker_boilerplate=`cat conftest.err` |
13803 | $rm conftest* |
13804 | |
13805 | |
13806 | # Allow CC to be a program name with arguments. |
13807 | lt_save_CC="$CC" |
13808 | CC=${F77-"f77"} |
13809 | compiler=$CC |
13810 | compiler_F77=$CC |
13811 | for cc_temp in $compiler""; do |
13812 | case $cc_temp in |
13813 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
13814 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
13815 | \-*) ;; |
13816 | *) break;; |
13817 | esac |
13818 | done |
13819 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
13820 | |
13821 | |
dd184caf |
13822 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
13823 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
13824 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
13825 | echo "${ECHO_T}$can_build_shared" >&6; } |
d9898ee8 |
13826 | |
dd184caf |
13827 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
13828 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
d9898ee8 |
13829 | test "$can_build_shared" = "no" && enable_shared=no |
13830 | |
13831 | # On AIX, shared libraries and static libraries use the same namespace, and |
13832 | # are all built from PIC. |
13833 | case $host_os in |
13834 | aix3*) |
13835 | test "$enable_shared" = yes && enable_static=no |
13836 | if test -n "$RANLIB"; then |
13837 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
13838 | postinstall_cmds='$RANLIB $lib' |
13839 | fi |
13840 | ;; |
13841 | aix4* | aix5*) |
13842 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
13843 | test "$enable_shared" = yes && enable_static=no |
13844 | fi |
13845 | ;; |
13846 | esac |
dd184caf |
13847 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
13848 | echo "${ECHO_T}$enable_shared" >&6; } |
d9898ee8 |
13849 | |
dd184caf |
13850 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
13851 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
d9898ee8 |
13852 | # Make sure either enable_shared or enable_static is yes. |
13853 | test "$enable_shared" = yes || enable_static=yes |
dd184caf |
13854 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
13855 | echo "${ECHO_T}$enable_static" >&6; } |
d9898ee8 |
13856 | |
13857 | GCC_F77="$G77" |
13858 | LD_F77="$LD" |
13859 | |
13860 | lt_prog_compiler_wl_F77= |
13861 | lt_prog_compiler_pic_F77= |
13862 | lt_prog_compiler_static_F77= |
13863 | |
dd184caf |
13864 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
13865 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
d9898ee8 |
13866 | |
13867 | if test "$GCC" = yes; then |
13868 | lt_prog_compiler_wl_F77='-Wl,' |
13869 | lt_prog_compiler_static_F77='-static' |
13870 | |
13871 | case $host_os in |
13872 | aix*) |
13873 | # All AIX code is PIC. |
13874 | if test "$host_cpu" = ia64; then |
13875 | # AIX 5 now supports IA64 processor |
13876 | lt_prog_compiler_static_F77='-Bstatic' |
13877 | fi |
13878 | ;; |
13879 | |
13880 | amigaos*) |
13881 | # FIXME: we need at least 68020 code to build shared libraries, but |
13882 | # adding the `-m68020' flag to GCC prevents building anything better, |
13883 | # like `-m68040'. |
13884 | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' |
13885 | ;; |
13886 | |
ac40fd9e |
13887 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
d9898ee8 |
13888 | # PIC is the default for these OSes. |
13889 | ;; |
13890 | |
ac40fd9e |
13891 | mingw* | cygwin* | pw32* | os2*) |
d9898ee8 |
13892 | # This hack is so that the source file can tell whether it is being |
13893 | # built for inclusion in a dll (and should export symbols for example). |
ac40fd9e |
13894 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
13895 | # (--disable-auto-import) libraries |
d9898ee8 |
13896 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
13897 | ;; |
13898 | |
13899 | darwin* | rhapsody*) |
13900 | # PIC is the default on this platform |
13901 | # Common symbols not allowed in MH_DYLIB files |
13902 | lt_prog_compiler_pic_F77='-fno-common' |
13903 | ;; |
13904 | |
ac40fd9e |
13905 | interix[3-9]*) |
d9898ee8 |
13906 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
13907 | # Instead, we relocate shared libraries at runtime. |
13908 | ;; |
13909 | |
13910 | msdosdjgpp*) |
13911 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
13912 | # on systems that don't support them. |
13913 | lt_prog_compiler_can_build_shared_F77=no |
13914 | enable_shared=no |
13915 | ;; |
13916 | |
13917 | sysv4*MP*) |
13918 | if test -d /usr/nec; then |
13919 | lt_prog_compiler_pic_F77=-Kconform_pic |
13920 | fi |
13921 | ;; |
13922 | |
13923 | hpux*) |
13924 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
13925 | # not for PA HP-UX. |
13926 | case $host_cpu in |
13927 | hppa*64*|ia64*) |
13928 | # +Z the default |
13929 | ;; |
13930 | *) |
13931 | lt_prog_compiler_pic_F77='-fPIC' |
13932 | ;; |
13933 | esac |
13934 | ;; |
13935 | |
13936 | *) |
13937 | lt_prog_compiler_pic_F77='-fPIC' |
13938 | ;; |
13939 | esac |
13940 | else |
13941 | # PORTME Check for flag to pass linker flags through the system compiler. |
13942 | case $host_os in |
13943 | aix*) |
13944 | lt_prog_compiler_wl_F77='-Wl,' |
13945 | if test "$host_cpu" = ia64; then |
13946 | # AIX 5 now supports IA64 processor |
13947 | lt_prog_compiler_static_F77='-Bstatic' |
13948 | else |
13949 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' |
13950 | fi |
13951 | ;; |
13952 | darwin*) |
13953 | # PIC is the default on this platform |
13954 | # Common symbols not allowed in MH_DYLIB files |
13955 | case $cc_basename in |
13956 | xlc*) |
13957 | lt_prog_compiler_pic_F77='-qnocommon' |
13958 | lt_prog_compiler_wl_F77='-Wl,' |
13959 | ;; |
13960 | esac |
13961 | ;; |
13962 | |
ac40fd9e |
13963 | mingw* | cygwin* | pw32* | os2*) |
d9898ee8 |
13964 | # This hack is so that the source file can tell whether it is being |
13965 | # built for inclusion in a dll (and should export symbols for example). |
13966 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
13967 | ;; |
13968 | |
13969 | hpux9* | hpux10* | hpux11*) |
13970 | lt_prog_compiler_wl_F77='-Wl,' |
13971 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
13972 | # not for PA HP-UX. |
13973 | case $host_cpu in |
13974 | hppa*64*|ia64*) |
13975 | # +Z the default |
13976 | ;; |
13977 | *) |
13978 | lt_prog_compiler_pic_F77='+Z' |
13979 | ;; |
13980 | esac |
13981 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
13982 | lt_prog_compiler_static_F77='${wl}-a ${wl}archive' |
13983 | ;; |
13984 | |
13985 | irix5* | irix6* | nonstopux*) |
13986 | lt_prog_compiler_wl_F77='-Wl,' |
13987 | # PIC (with -KPIC) is the default. |
13988 | lt_prog_compiler_static_F77='-non_shared' |
13989 | ;; |
13990 | |
13991 | newsos6) |
13992 | lt_prog_compiler_pic_F77='-KPIC' |
13993 | lt_prog_compiler_static_F77='-Bstatic' |
13994 | ;; |
13995 | |
ac40fd9e |
13996 | linux* | k*bsd*-gnu) |
d9898ee8 |
13997 | case $cc_basename in |
13998 | icc* | ecc*) |
13999 | lt_prog_compiler_wl_F77='-Wl,' |
14000 | lt_prog_compiler_pic_F77='-KPIC' |
14001 | lt_prog_compiler_static_F77='-static' |
14002 | ;; |
14003 | pgcc* | pgf77* | pgf90* | pgf95*) |
14004 | # Portland Group compilers (*not* the Pentium gcc compiler, |
14005 | # which looks to be a dead project) |
14006 | lt_prog_compiler_wl_F77='-Wl,' |
14007 | lt_prog_compiler_pic_F77='-fpic' |
14008 | lt_prog_compiler_static_F77='-Bstatic' |
14009 | ;; |
14010 | ccc*) |
14011 | lt_prog_compiler_wl_F77='-Wl,' |
14012 | # All Alpha code is PIC. |
14013 | lt_prog_compiler_static_F77='-non_shared' |
14014 | ;; |
ac40fd9e |
14015 | *) |
14016 | case `$CC -V 2>&1 | sed 5q` in |
14017 | *Sun\ C*) |
14018 | # Sun C 5.9 |
14019 | lt_prog_compiler_pic_F77='-KPIC' |
14020 | lt_prog_compiler_static_F77='-Bstatic' |
14021 | lt_prog_compiler_wl_F77='-Wl,' |
14022 | ;; |
14023 | *Sun\ F*) |
14024 | # Sun Fortran 8.3 passes all unrecognized flags to the linker |
14025 | lt_prog_compiler_pic_F77='-KPIC' |
14026 | lt_prog_compiler_static_F77='-Bstatic' |
14027 | lt_prog_compiler_wl_F77='' |
14028 | ;; |
14029 | esac |
14030 | ;; |
d9898ee8 |
14031 | esac |
14032 | ;; |
14033 | |
14034 | osf3* | osf4* | osf5*) |
14035 | lt_prog_compiler_wl_F77='-Wl,' |
14036 | # All OSF/1 code is PIC. |
14037 | lt_prog_compiler_static_F77='-non_shared' |
14038 | ;; |
14039 | |
ac40fd9e |
14040 | rdos*) |
14041 | lt_prog_compiler_static_F77='-non_shared' |
14042 | ;; |
14043 | |
d9898ee8 |
14044 | solaris*) |
14045 | lt_prog_compiler_pic_F77='-KPIC' |
14046 | lt_prog_compiler_static_F77='-Bstatic' |
14047 | case $cc_basename in |
14048 | f77* | f90* | f95*) |
14049 | lt_prog_compiler_wl_F77='-Qoption ld ';; |
14050 | *) |
14051 | lt_prog_compiler_wl_F77='-Wl,';; |
14052 | esac |
14053 | ;; |
14054 | |
14055 | sunos4*) |
14056 | lt_prog_compiler_wl_F77='-Qoption ld ' |
14057 | lt_prog_compiler_pic_F77='-PIC' |
14058 | lt_prog_compiler_static_F77='-Bstatic' |
14059 | ;; |
14060 | |
14061 | sysv4 | sysv4.2uw2* | sysv4.3*) |
14062 | lt_prog_compiler_wl_F77='-Wl,' |
14063 | lt_prog_compiler_pic_F77='-KPIC' |
14064 | lt_prog_compiler_static_F77='-Bstatic' |
14065 | ;; |
14066 | |
14067 | sysv4*MP*) |
14068 | if test -d /usr/nec ;then |
14069 | lt_prog_compiler_pic_F77='-Kconform_pic' |
14070 | lt_prog_compiler_static_F77='-Bstatic' |
14071 | fi |
14072 | ;; |
14073 | |
14074 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
14075 | lt_prog_compiler_wl_F77='-Wl,' |
14076 | lt_prog_compiler_pic_F77='-KPIC' |
14077 | lt_prog_compiler_static_F77='-Bstatic' |
14078 | ;; |
14079 | |
14080 | unicos*) |
14081 | lt_prog_compiler_wl_F77='-Wl,' |
14082 | lt_prog_compiler_can_build_shared_F77=no |
14083 | ;; |
14084 | |
14085 | uts4*) |
14086 | lt_prog_compiler_pic_F77='-pic' |
14087 | lt_prog_compiler_static_F77='-Bstatic' |
14088 | ;; |
14089 | |
14090 | *) |
14091 | lt_prog_compiler_can_build_shared_F77=no |
14092 | ;; |
14093 | esac |
14094 | fi |
14095 | |
dd184caf |
14096 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 |
14097 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } |
d9898ee8 |
14098 | |
14099 | # |
14100 | # Check to make sure the PIC flag actually works. |
14101 | # |
14102 | if test -n "$lt_prog_compiler_pic_F77"; then |
14103 | |
dd184caf |
14104 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 |
14105 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } |
d9898ee8 |
14106 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then |
14107 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14108 | else |
14109 | lt_prog_compiler_pic_works_F77=no |
14110 | ac_outfile=conftest.$ac_objext |
ac40fd9e |
14111 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
d9898ee8 |
14112 | lt_compiler_flag="$lt_prog_compiler_pic_F77" |
14113 | # Insert the option either (1) after the last *FLAGS variable, or |
14114 | # (2) before a word containing "conftest.", or (3) at the end. |
14115 | # Note that $ac_compile itself does not contain backslashes and begins |
14116 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
14117 | # The option is referenced via a variable to avoid confusing sed. |
14118 | lt_compile=`echo "$ac_compile" | $SED \ |
14119 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
14120 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
14121 | -e 's:$: $lt_compiler_flag:'` |
ac40fd9e |
14122 | (eval echo "\"\$as_me:14122: $lt_compile\"" >&5) |
d9898ee8 |
14123 | (eval "$lt_compile" 2>conftest.err) |
14124 | ac_status=$? |
14125 | cat conftest.err >&5 |
ac40fd9e |
14126 | echo "$as_me:14126: \$? = $ac_status" >&5 |
d9898ee8 |
14127 | if (exit $ac_status) && test -s "$ac_outfile"; then |
14128 | # The compiler can only warn and ignore the option if not recognized |
14129 | # So say no if there are warnings other than the usual output. |
14130 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
14131 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
14132 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
14133 | lt_prog_compiler_pic_works_F77=yes |
14134 | fi |
14135 | fi |
14136 | $rm conftest* |
14137 | |
14138 | fi |
dd184caf |
14139 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 |
14140 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } |
d9898ee8 |
14141 | |
14142 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then |
14143 | case $lt_prog_compiler_pic_F77 in |
14144 | "" | " "*) ;; |
14145 | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; |
14146 | esac |
14147 | else |
14148 | lt_prog_compiler_pic_F77= |
14149 | lt_prog_compiler_can_build_shared_F77=no |
14150 | fi |
14151 | |
14152 | fi |
14153 | case $host_os in |
14154 | # For platforms which do not support PIC, -DPIC is meaningless: |
14155 | *djgpp*) |
14156 | lt_prog_compiler_pic_F77= |
14157 | ;; |
14158 | *) |
14159 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" |
14160 | ;; |
14161 | esac |
14162 | |
14163 | # |
14164 | # Check to make sure the static flag actually works. |
14165 | # |
14166 | wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" |
dd184caf |
14167 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
14168 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
d9898ee8 |
14169 | if test "${lt_prog_compiler_static_works_F77+set}" = set; then |
14170 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14171 | else |
14172 | lt_prog_compiler_static_works_F77=no |
14173 | save_LDFLAGS="$LDFLAGS" |
14174 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
ac40fd9e |
14175 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
d9898ee8 |
14176 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
14177 | # The linker can only warn and ignore the option if not recognized |
14178 | # So say no if there are warnings |
14179 | if test -s conftest.err; then |
14180 | # Append any errors to the config.log. |
14181 | cat conftest.err 1>&5 |
14182 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
14183 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
14184 | if diff conftest.exp conftest.er2 >/dev/null; then |
14185 | lt_prog_compiler_static_works_F77=yes |
14186 | fi |
14187 | else |
14188 | lt_prog_compiler_static_works_F77=yes |
14189 | fi |
14190 | fi |
14191 | $rm conftest* |
14192 | LDFLAGS="$save_LDFLAGS" |
14193 | |
14194 | fi |
dd184caf |
14195 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 |
14196 | echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } |
d9898ee8 |
14197 | |
14198 | if test x"$lt_prog_compiler_static_works_F77" = xyes; then |
14199 | : |
14200 | else |
14201 | lt_prog_compiler_static_F77= |
14202 | fi |
14203 | |
14204 | |
dd184caf |
14205 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
14206 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
d9898ee8 |
14207 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then |
14208 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14209 | else |
14210 | lt_cv_prog_compiler_c_o_F77=no |
14211 | $rm -r conftest 2>/dev/null |
14212 | mkdir conftest |
14213 | cd conftest |
14214 | mkdir out |
ac40fd9e |
14215 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
d9898ee8 |
14216 | |
14217 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
14218 | # Insert the option either (1) after the last *FLAGS variable, or |
14219 | # (2) before a word containing "conftest.", or (3) at the end. |
14220 | # Note that $ac_compile itself does not contain backslashes and begins |
14221 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
14222 | lt_compile=`echo "$ac_compile" | $SED \ |
14223 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
14224 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
14225 | -e 's:$: $lt_compiler_flag:'` |
ac40fd9e |
14226 | (eval echo "\"\$as_me:14226: $lt_compile\"" >&5) |
d9898ee8 |
14227 | (eval "$lt_compile" 2>out/conftest.err) |
14228 | ac_status=$? |
14229 | cat out/conftest.err >&5 |
ac40fd9e |
14230 | echo "$as_me:14230: \$? = $ac_status" >&5 |
d9898ee8 |
14231 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
14232 | then |
14233 | # The compiler can only warn and ignore the option if not recognized |
14234 | # So say no if there are warnings |
14235 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
14236 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
14237 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
14238 | lt_cv_prog_compiler_c_o_F77=yes |
14239 | fi |
14240 | fi |
14241 | chmod u+w . 2>&5 |
14242 | $rm conftest* |
14243 | # SGI C++ compiler will create directory out/ii_files/ for |
14244 | # template instantiation |
14245 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
14246 | $rm out/* && rmdir out |
14247 | cd .. |
14248 | rmdir conftest |
14249 | $rm conftest* |
14250 | |
14251 | fi |
dd184caf |
14252 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 |
14253 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } |
d9898ee8 |
14254 | |
14255 | |
14256 | hard_links="nottested" |
14257 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then |
14258 | # do not overwrite the value of need_locks provided by the user |
dd184caf |
14259 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
14260 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
d9898ee8 |
14261 | hard_links=yes |
14262 | $rm conftest* |
14263 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
14264 | touch conftest.a |
14265 | ln conftest.a conftest.b 2>&5 || hard_links=no |
14266 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
dd184caf |
14267 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
14268 | echo "${ECHO_T}$hard_links" >&6; } |
d9898ee8 |
14269 | if test "$hard_links" = no; then |
14270 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
14271 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
14272 | need_locks=warn |
14273 | fi |
14274 | else |
14275 | need_locks=no |
14276 | fi |
14277 | |
dd184caf |
14278 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
14279 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
d9898ee8 |
14280 | |
14281 | runpath_var= |
14282 | allow_undefined_flag_F77= |
14283 | enable_shared_with_static_runtimes_F77=no |
14284 | archive_cmds_F77= |
14285 | archive_expsym_cmds_F77= |
14286 | old_archive_From_new_cmds_F77= |
14287 | old_archive_from_expsyms_cmds_F77= |
14288 | export_dynamic_flag_spec_F77= |
14289 | whole_archive_flag_spec_F77= |
14290 | thread_safe_flag_spec_F77= |
14291 | hardcode_libdir_flag_spec_F77= |
14292 | hardcode_libdir_flag_spec_ld_F77= |
14293 | hardcode_libdir_separator_F77= |
14294 | hardcode_direct_F77=no |
14295 | hardcode_minus_L_F77=no |
14296 | hardcode_shlibpath_var_F77=unsupported |
14297 | link_all_deplibs_F77=unknown |
14298 | hardcode_automatic_F77=no |
14299 | module_cmds_F77= |
14300 | module_expsym_cmds_F77= |
14301 | always_export_symbols_F77=no |
14302 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
14303 | # include_expsyms should be a list of space-separated symbols to be *always* |
14304 | # included in the symbol list |
14305 | include_expsyms_F77= |
14306 | # exclude_expsyms can be an extended regexp of symbols to exclude |
14307 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
14308 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
14309 | # as well as any symbol that contains `d'. |
14310 | exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" |
14311 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
14312 | # platforms (ab)use it in PIC code, but their linkers get confused if |
14313 | # the symbol is explicitly referenced. Since portable code cannot |
14314 | # rely on this symbol name, it's probably fine to never include it in |
14315 | # preloaded symbol tables. |
14316 | extract_expsyms_cmds= |
14317 | # Just being paranoid about ensuring that cc_basename is set. |
14318 | for cc_temp in $compiler""; do |
14319 | case $cc_temp in |
14320 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
14321 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
14322 | \-*) ;; |
14323 | *) break;; |
14324 | esac |
14325 | done |
14326 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
14327 | |
14328 | case $host_os in |
14329 | cygwin* | mingw* | pw32*) |
14330 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
14331 | # When not using gcc, we currently assume that we are using |
14332 | # Microsoft Visual C++. |
14333 | if test "$GCC" != yes; then |
14334 | with_gnu_ld=no |
14335 | fi |
14336 | ;; |
14337 | interix*) |
14338 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
14339 | with_gnu_ld=yes |
14340 | ;; |
14341 | openbsd*) |
14342 | with_gnu_ld=no |
14343 | ;; |
14344 | esac |
14345 | |
14346 | ld_shlibs_F77=yes |
14347 | if test "$with_gnu_ld" = yes; then |
14348 | # If archive_cmds runs LD, not CC, wlarc should be empty |
14349 | wlarc='${wl}' |
14350 | |
14351 | # Set some defaults for GNU ld with shared library support. These |
14352 | # are reset later if shared libraries are not supported. Putting them |
14353 | # here allows them to be overridden if necessary. |
14354 | runpath_var=LD_RUN_PATH |
14355 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' |
14356 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' |
14357 | # ancient GNU ld didn't support --whole-archive et. al. |
14358 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
14359 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
14360 | else |
14361 | whole_archive_flag_spec_F77= |
14362 | fi |
14363 | supports_anon_versioning=no |
14364 | case `$LD -v 2>/dev/null` in |
14365 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
14366 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
14367 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
14368 | *\ 2.11.*) ;; # other 2.11 versions |
14369 | *) supports_anon_versioning=yes ;; |
14370 | esac |
14371 | |
14372 | # See if GNU ld supports shared libraries. |
14373 | case $host_os in |
14374 | aix3* | aix4* | aix5*) |
14375 | # On AIX/PPC, the GNU linker is very broken |
14376 | if test "$host_cpu" != ia64; then |
14377 | ld_shlibs_F77=no |
14378 | cat <<EOF 1>&2 |
14379 | |
14380 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
14381 | *** to be unable to reliably create shared libraries on AIX. |
14382 | *** Therefore, libtool is disabling shared libraries support. If you |
14383 | *** really care for shared libraries, you may want to modify your PATH |
14384 | *** so that a non-GNU linker is found, and then restart. |
14385 | |
14386 | EOF |
14387 | fi |
14388 | ;; |
14389 | |
14390 | amigaos*) |
14391 | 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)' |
14392 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14393 | hardcode_minus_L_F77=yes |
14394 | |
14395 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
14396 | # that the semantics of dynamic libraries on AmigaOS, at least up |
14397 | # to version 4, is to share data among multiple programs linked |
14398 | # with the same dynamic library. Since this doesn't match the |
14399 | # behavior of shared libraries on other platforms, we can't use |
14400 | # them. |
14401 | ld_shlibs_F77=no |
14402 | ;; |
14403 | |
14404 | beos*) |
14405 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
14406 | allow_undefined_flag_F77=unsupported |
14407 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
14408 | # support --undefined. This deserves some investigation. FIXME |
14409 | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
14410 | else |
14411 | ld_shlibs_F77=no |
14412 | fi |
14413 | ;; |
14414 | |
14415 | cygwin* | mingw* | pw32*) |
14416 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, |
14417 | # as there is no search path for DLLs. |
14418 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14419 | allow_undefined_flag_F77=unsupported |
14420 | always_export_symbols_F77=no |
14421 | enable_shared_with_static_runtimes_F77=yes |
ac40fd9e |
14422 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
d9898ee8 |
14423 | |
14424 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
14425 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
14426 | # If the export-symbols file already is a .def file (1st line |
14427 | # is EXPORTS), use it as is; otherwise, prepend... |
14428 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
14429 | cp $export_symbols $output_objdir/$soname.def; |
14430 | else |
14431 | echo EXPORTS > $output_objdir/$soname.def; |
14432 | cat $export_symbols >> $output_objdir/$soname.def; |
14433 | fi~ |
14434 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
14435 | else |
14436 | ld_shlibs_F77=no |
14437 | fi |
14438 | ;; |
14439 | |
ac40fd9e |
14440 | interix[3-9]*) |
d9898ee8 |
14441 | hardcode_direct_F77=no |
14442 | hardcode_shlibpath_var_F77=no |
14443 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
14444 | export_dynamic_flag_spec_F77='${wl}-E' |
14445 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
14446 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
14447 | # default) and relocated if they conflict, which is a slow very memory |
14448 | # consuming and fragmenting process. To avoid this, we pick a random, |
14449 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
14450 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
14451 | 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' |
14452 | 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' |
14453 | ;; |
14454 | |
ac40fd9e |
14455 | gnu* | linux* | k*bsd*-gnu) |
d9898ee8 |
14456 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
14457 | tmp_addflag= |
14458 | case $cc_basename,$host_cpu in |
14459 | pgcc*) # Portland Group C compiler |
14460 | 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' |
14461 | tmp_addflag=' $pic_flag' |
14462 | ;; |
14463 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
14464 | 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' |
14465 | tmp_addflag=' $pic_flag -Mnomain' ;; |
14466 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
14467 | tmp_addflag=' -i_dynamic' ;; |
14468 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
14469 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
14470 | ifc* | ifort*) # Intel Fortran compiler |
14471 | tmp_addflag=' -nofor_main' ;; |
14472 | esac |
ac40fd9e |
14473 | case `$CC -V 2>&1 | sed 5q` in |
14474 | *Sun\ C*) # Sun C 5.9 |
14475 | whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
14476 | tmp_sharedflag='-G' ;; |
14477 | *Sun\ F*) # Sun Fortran 8.3 |
14478 | tmp_sharedflag='-G' ;; |
14479 | *) |
14480 | tmp_sharedflag='-shared' ;; |
14481 | esac |
14482 | archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
d9898ee8 |
14483 | |
14484 | if test $supports_anon_versioning = yes; then |
14485 | archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ |
14486 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
14487 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
ac40fd9e |
14488 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
d9898ee8 |
14489 | fi |
14490 | else |
14491 | ld_shlibs_F77=no |
14492 | fi |
14493 | ;; |
14494 | |
14495 | netbsd*) |
14496 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
14497 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
14498 | wlarc= |
14499 | else |
14500 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
14501 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
14502 | fi |
14503 | ;; |
14504 | |
14505 | solaris*) |
14506 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
14507 | ld_shlibs_F77=no |
14508 | cat <<EOF 1>&2 |
14509 | |
14510 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
14511 | *** create shared libraries on Solaris systems. Therefore, libtool |
14512 | *** is disabling shared libraries support. We urge you to upgrade GNU |
14513 | *** binutils to release 2.9.1 or newer. Another option is to modify |
14514 | *** your PATH or compiler configuration so that the native linker is |
14515 | *** used, and then restart. |
14516 | |
14517 | EOF |
14518 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
14519 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
14520 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
14521 | else |
14522 | ld_shlibs_F77=no |
14523 | fi |
14524 | ;; |
14525 | |
14526 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
14527 | case `$LD -v 2>&1` in |
14528 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
14529 | ld_shlibs_F77=no |
14530 | cat <<_LT_EOF 1>&2 |
14531 | |
14532 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
14533 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
14534 | *** is disabling shared libraries support. We urge you to upgrade GNU |
14535 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
14536 | *** your PATH or compiler configuration so that the native linker is |
14537 | *** used, and then restart. |
14538 | |
14539 | _LT_EOF |
14540 | ;; |
14541 | *) |
14542 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
14543 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
14544 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
14545 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
14546 | else |
14547 | ld_shlibs_F77=no |
14548 | fi |
14549 | ;; |
14550 | esac |
14551 | ;; |
14552 | |
14553 | sunos4*) |
14554 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
14555 | wlarc= |
14556 | hardcode_direct_F77=yes |
14557 | hardcode_shlibpath_var_F77=no |
14558 | ;; |
14559 | |
14560 | *) |
14561 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
14562 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
14563 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
14564 | else |
14565 | ld_shlibs_F77=no |
14566 | fi |
14567 | ;; |
14568 | esac |
14569 | |
14570 | if test "$ld_shlibs_F77" = no; then |
14571 | runpath_var= |
14572 | hardcode_libdir_flag_spec_F77= |
14573 | export_dynamic_flag_spec_F77= |
14574 | whole_archive_flag_spec_F77= |
14575 | fi |
14576 | else |
14577 | # PORTME fill in a description of your system's linker (not GNU ld) |
14578 | case $host_os in |
14579 | aix3*) |
14580 | allow_undefined_flag_F77=unsupported |
14581 | always_export_symbols_F77=yes |
14582 | 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' |
14583 | # Note: this linker hardcodes the directories in LIBPATH if there |
14584 | # are no directories specified by -L. |
14585 | hardcode_minus_L_F77=yes |
14586 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
14587 | # Neither direct hardcoding nor static linking is supported with a |
14588 | # broken collect2. |
14589 | hardcode_direct_F77=unsupported |
14590 | fi |
14591 | ;; |
14592 | |
14593 | aix4* | aix5*) |
14594 | if test "$host_cpu" = ia64; then |
14595 | # On IA64, the linker does run time linking by default, so we don't |
14596 | # have to do anything special. |
14597 | aix_use_runtimelinking=no |
14598 | exp_sym_flag='-Bexport' |
14599 | no_entry_flag="" |
14600 | else |
14601 | # If we're using GNU nm, then we don't want the "-C" option. |
14602 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
14603 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
14604 | 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' |
14605 | else |
14606 | 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' |
14607 | fi |
14608 | aix_use_runtimelinking=no |
14609 | |
14610 | # Test if we are trying to use run time linking or normal |
14611 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
14612 | # need to do runtime linking. |
14613 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
14614 | for ld_flag in $LDFLAGS; do |
14615 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
14616 | aix_use_runtimelinking=yes |
14617 | break |
14618 | fi |
14619 | done |
14620 | ;; |
14621 | esac |
14622 | |
14623 | exp_sym_flag='-bexport' |
14624 | no_entry_flag='-bnoentry' |
14625 | fi |
14626 | |
14627 | # When large executables or shared objects are built, AIX ld can |
14628 | # have problems creating the table of contents. If linking a library |
14629 | # or program results in "error TOC overflow" add -mminimal-toc to |
14630 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
14631 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
14632 | |
14633 | archive_cmds_F77='' |
14634 | hardcode_direct_F77=yes |
14635 | hardcode_libdir_separator_F77=':' |
14636 | link_all_deplibs_F77=yes |
14637 | |
14638 | if test "$GCC" = yes; then |
14639 | case $host_os in aix4.[012]|aix4.[012].*) |
14640 | # We only want to do this on AIX 4.2 and lower, the check |
14641 | # below for broken collect2 doesn't work under 4.3+ |
14642 | collect2name=`${CC} -print-prog-name=collect2` |
14643 | if test -f "$collect2name" && \ |
14644 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
14645 | then |
14646 | # We have reworked collect2 |
ac40fd9e |
14647 | : |
d9898ee8 |
14648 | else |
14649 | # We have old collect2 |
14650 | hardcode_direct_F77=unsupported |
14651 | # It fails to find uninstalled libraries when the uninstalled |
14652 | # path is not listed in the libpath. Setting hardcode_minus_L |
14653 | # to unsupported forces relinking |
14654 | hardcode_minus_L_F77=yes |
14655 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14656 | hardcode_libdir_separator_F77= |
14657 | fi |
14658 | ;; |
14659 | esac |
14660 | shared_flag='-shared' |
14661 | if test "$aix_use_runtimelinking" = yes; then |
14662 | shared_flag="$shared_flag "'${wl}-G' |
14663 | fi |
14664 | else |
14665 | # not using gcc |
14666 | if test "$host_cpu" = ia64; then |
14667 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
14668 | # chokes on -Wl,-G. The following line is correct: |
14669 | shared_flag='-G' |
14670 | else |
14671 | if test "$aix_use_runtimelinking" = yes; then |
14672 | shared_flag='${wl}-G' |
14673 | else |
14674 | shared_flag='${wl}-bM:SRE' |
14675 | fi |
14676 | fi |
14677 | fi |
14678 | |
14679 | # It seems that -bexpall does not export symbols beginning with |
14680 | # underscore (_), so it is better to generate a list of symbols to export. |
14681 | always_export_symbols_F77=yes |
14682 | if test "$aix_use_runtimelinking" = yes; then |
14683 | # Warning - without using the other runtime loading flags (-brtl), |
14684 | # -berok will link without error, but may produce a broken library. |
14685 | allow_undefined_flag_F77='-berok' |
14686 | # Determine the default libpath from the value encoded in an empty executable. |
14687 | cat >conftest.$ac_ext <<_ACEOF |
14688 | program main |
14689 | |
14690 | end |
14691 | _ACEOF |
14692 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
14693 | if { (ac_try="$ac_link" |
14694 | case "(($ac_try" in |
14695 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
14696 | *) ac_try_echo=$ac_try;; |
14697 | esac |
14698 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
14699 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
14700 | ac_status=$? |
14701 | grep -v '^ *+' conftest.er1 >conftest.err |
14702 | rm -f conftest.er1 |
14703 | cat conftest.err >&5 |
14704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
14705 | (exit $ac_status); } && { |
14706 | test -z "$ac_f77_werror_flag" || |
14707 | test ! -s conftest.err |
14708 | } && test -s conftest$ac_exeext && |
14709 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
14710 | |
ac40fd9e |
14711 | lt_aix_libpath_sed=' |
14712 | /Import File Strings/,/^$/ { |
14713 | /^0/ { |
14714 | s/^0 *\(.*\)$/\1/ |
14715 | p |
14716 | } |
14717 | }' |
14718 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
d9898ee8 |
14719 | # Check for a 64-bit object if we didn't find anything. |
ac40fd9e |
14720 | if test -z "$aix_libpath"; then |
14721 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
14722 | fi |
d9898ee8 |
14723 | else |
14724 | echo "$as_me: failed program was:" >&5 |
14725 | sed 's/^/| /' conftest.$ac_ext >&5 |
14726 | |
dd184caf |
14727 | |
d9898ee8 |
14728 | fi |
dd184caf |
14729 | |
14730 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
14731 | conftest$ac_exeext conftest.$ac_ext |
14732 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
14733 | |
14734 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
14735 | 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" |
14736 | else |
14737 | if test "$host_cpu" = ia64; then |
14738 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' |
14739 | allow_undefined_flag_F77="-z nodefs" |
14740 | 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" |
14741 | else |
14742 | # Determine the default libpath from the value encoded in an empty executable. |
14743 | cat >conftest.$ac_ext <<_ACEOF |
14744 | program main |
14745 | |
14746 | end |
14747 | _ACEOF |
14748 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
14749 | if { (ac_try="$ac_link" |
14750 | case "(($ac_try" in |
14751 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
14752 | *) ac_try_echo=$ac_try;; |
14753 | esac |
14754 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
14755 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
14756 | ac_status=$? |
14757 | grep -v '^ *+' conftest.er1 >conftest.err |
14758 | rm -f conftest.er1 |
14759 | cat conftest.err >&5 |
14760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
14761 | (exit $ac_status); } && { |
14762 | test -z "$ac_f77_werror_flag" || |
14763 | test ! -s conftest.err |
14764 | } && test -s conftest$ac_exeext && |
14765 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
14766 | |
ac40fd9e |
14767 | lt_aix_libpath_sed=' |
14768 | /Import File Strings/,/^$/ { |
14769 | /^0/ { |
14770 | s/^0 *\(.*\)$/\1/ |
14771 | p |
14772 | } |
14773 | }' |
14774 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
d9898ee8 |
14775 | # Check for a 64-bit object if we didn't find anything. |
ac40fd9e |
14776 | if test -z "$aix_libpath"; then |
14777 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
14778 | fi |
d9898ee8 |
14779 | else |
14780 | echo "$as_me: failed program was:" >&5 |
14781 | sed 's/^/| /' conftest.$ac_ext >&5 |
14782 | |
dd184caf |
14783 | |
d9898ee8 |
14784 | fi |
dd184caf |
14785 | |
14786 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
14787 | conftest$ac_exeext conftest.$ac_ext |
14788 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
14789 | |
14790 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
14791 | # Warning - without using the other run time loading flags, |
14792 | # -berok will link without error, but may produce a broken library. |
14793 | no_undefined_flag_F77=' ${wl}-bernotok' |
14794 | allow_undefined_flag_F77=' ${wl}-berok' |
14795 | # Exported symbols can be pulled into shared objects from archives |
14796 | whole_archive_flag_spec_F77='$convenience' |
14797 | archive_cmds_need_lc_F77=yes |
14798 | # This is similar to how AIX traditionally builds its shared libraries. |
14799 | 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' |
14800 | fi |
14801 | fi |
14802 | ;; |
14803 | |
14804 | amigaos*) |
14805 | 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)' |
14806 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14807 | hardcode_minus_L_F77=yes |
14808 | # see comment about different semantics on the GNU ld section |
14809 | ld_shlibs_F77=no |
14810 | ;; |
14811 | |
14812 | bsdi[45]*) |
14813 | export_dynamic_flag_spec_F77=-rdynamic |
14814 | ;; |
14815 | |
14816 | cygwin* | mingw* | pw32*) |
14817 | # When not using gcc, we currently assume that we are using |
14818 | # Microsoft Visual C++. |
14819 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
14820 | # no search path for DLLs. |
14821 | hardcode_libdir_flag_spec_F77=' ' |
14822 | allow_undefined_flag_F77=unsupported |
14823 | # Tell ltmain to make .lib files, not .a files. |
14824 | libext=lib |
14825 | # Tell ltmain to make .dll files, not .so files. |
14826 | shrext_cmds=".dll" |
14827 | # FIXME: Setting linknames here is a bad hack. |
14828 | archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
14829 | # The linker will automatically build a .lib file if we build a DLL. |
14830 | old_archive_From_new_cmds_F77='true' |
14831 | # FIXME: Should let the user specify the lib program. |
ac40fd9e |
14832 | old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' |
d9898ee8 |
14833 | fix_srcfile_path_F77='`cygpath -w "$srcfile"`' |
14834 | enable_shared_with_static_runtimes_F77=yes |
14835 | ;; |
14836 | |
14837 | darwin* | rhapsody*) |
14838 | case $host_os in |
14839 | rhapsody* | darwin1.[012]) |
14840 | allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' |
14841 | ;; |
14842 | *) # Darwin 1.3 on |
14843 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
14844 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
14845 | else |
14846 | case ${MACOSX_DEPLOYMENT_TARGET} in |
14847 | 10.[012]) |
14848 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
14849 | ;; |
14850 | 10.*) |
14851 | allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' |
14852 | ;; |
14853 | esac |
14854 | fi |
14855 | ;; |
14856 | esac |
14857 | archive_cmds_need_lc_F77=no |
14858 | hardcode_direct_F77=no |
14859 | hardcode_automatic_F77=yes |
14860 | hardcode_shlibpath_var_F77=unsupported |
14861 | whole_archive_flag_spec_F77='' |
14862 | link_all_deplibs_F77=yes |
14863 | if test "$GCC" = yes ; then |
14864 | output_verbose_link_cmd='echo' |
14865 | archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
14866 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
14867 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
14868 | 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}' |
14869 | 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}' |
14870 | else |
14871 | case $cc_basename in |
14872 | xlc*) |
14873 | output_verbose_link_cmd='echo' |
ac40fd9e |
14874 | archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' |
d9898ee8 |
14875 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
14876 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
ac40fd9e |
14877 | 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
d9898ee8 |
14878 | 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}' |
14879 | ;; |
14880 | *) |
14881 | ld_shlibs_F77=no |
14882 | ;; |
14883 | esac |
14884 | fi |
14885 | ;; |
14886 | |
14887 | dgux*) |
14888 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14889 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14890 | hardcode_shlibpath_var_F77=no |
14891 | ;; |
14892 | |
14893 | freebsd1*) |
14894 | ld_shlibs_F77=no |
14895 | ;; |
14896 | |
14897 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
14898 | # support. Future versions do this automatically, but an explicit c++rt0.o |
14899 | # does not break anything, and helps significantly (at the cost of a little |
14900 | # extra space). |
14901 | freebsd2.2*) |
14902 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
14903 | hardcode_libdir_flag_spec_F77='-R$libdir' |
14904 | hardcode_direct_F77=yes |
14905 | hardcode_shlibpath_var_F77=no |
14906 | ;; |
14907 | |
14908 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
14909 | freebsd2*) |
14910 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
14911 | hardcode_direct_F77=yes |
14912 | hardcode_minus_L_F77=yes |
14913 | hardcode_shlibpath_var_F77=no |
14914 | ;; |
14915 | |
14916 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
ac40fd9e |
14917 | freebsd* | dragonfly*) |
d9898ee8 |
14918 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
14919 | hardcode_libdir_flag_spec_F77='-R$libdir' |
14920 | hardcode_direct_F77=yes |
14921 | hardcode_shlibpath_var_F77=no |
14922 | ;; |
14923 | |
14924 | hpux9*) |
14925 | if test "$GCC" = yes; then |
14926 | 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' |
14927 | else |
14928 | 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' |
14929 | fi |
14930 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
14931 | hardcode_libdir_separator_F77=: |
14932 | hardcode_direct_F77=yes |
14933 | |
14934 | # hardcode_minus_L: Not really in the search PATH, |
14935 | # but as the default location of the library. |
14936 | hardcode_minus_L_F77=yes |
14937 | export_dynamic_flag_spec_F77='${wl}-E' |
14938 | ;; |
14939 | |
14940 | hpux10*) |
14941 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
14942 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
14943 | else |
14944 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
14945 | fi |
14946 | if test "$with_gnu_ld" = no; then |
14947 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
14948 | hardcode_libdir_separator_F77=: |
14949 | |
14950 | hardcode_direct_F77=yes |
14951 | export_dynamic_flag_spec_F77='${wl}-E' |
14952 | |
14953 | # hardcode_minus_L: Not really in the search PATH, |
14954 | # but as the default location of the library. |
14955 | hardcode_minus_L_F77=yes |
14956 | fi |
14957 | ;; |
14958 | |
14959 | hpux11*) |
14960 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
14961 | case $host_cpu in |
14962 | hppa*64*) |
14963 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14964 | ;; |
14965 | ia64*) |
14966 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
14967 | ;; |
14968 | *) |
14969 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
14970 | ;; |
14971 | esac |
14972 | else |
14973 | case $host_cpu in |
14974 | hppa*64*) |
14975 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14976 | ;; |
14977 | ia64*) |
14978 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
14979 | ;; |
14980 | *) |
14981 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
14982 | ;; |
14983 | esac |
14984 | fi |
14985 | if test "$with_gnu_ld" = no; then |
14986 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
14987 | hardcode_libdir_separator_F77=: |
14988 | |
14989 | case $host_cpu in |
14990 | hppa*64*|ia64*) |
14991 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' |
14992 | hardcode_direct_F77=no |
14993 | hardcode_shlibpath_var_F77=no |
14994 | ;; |
14995 | *) |
14996 | hardcode_direct_F77=yes |
14997 | export_dynamic_flag_spec_F77='${wl}-E' |
14998 | |
14999 | # hardcode_minus_L: Not really in the search PATH, |
15000 | # but as the default location of the library. |
15001 | hardcode_minus_L_F77=yes |
15002 | ;; |
15003 | esac |
15004 | fi |
15005 | ;; |
15006 | |
15007 | irix5* | irix6* | nonstopux*) |
15008 | if test "$GCC" = yes; then |
15009 | 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' |
15010 | else |
15011 | 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' |
15012 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' |
15013 | fi |
15014 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
15015 | hardcode_libdir_separator_F77=: |
15016 | link_all_deplibs_F77=yes |
15017 | ;; |
15018 | |
15019 | netbsd*) |
15020 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
15021 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
15022 | else |
15023 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
15024 | fi |
15025 | hardcode_libdir_flag_spec_F77='-R$libdir' |
15026 | hardcode_direct_F77=yes |
15027 | hardcode_shlibpath_var_F77=no |
15028 | ;; |
15029 | |
15030 | newsos6) |
15031 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15032 | hardcode_direct_F77=yes |
15033 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
15034 | hardcode_libdir_separator_F77=: |
15035 | hardcode_shlibpath_var_F77=no |
15036 | ;; |
15037 | |
15038 | openbsd*) |
ac40fd9e |
15039 | if test -f /usr/libexec/ld.so; then |
15040 | hardcode_direct_F77=yes |
15041 | hardcode_shlibpath_var_F77=no |
15042 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
15043 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
15044 | archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
15045 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
15046 | export_dynamic_flag_spec_F77='${wl}-E' |
15047 | else |
15048 | case $host_os in |
15049 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
15050 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
15051 | hardcode_libdir_flag_spec_F77='-R$libdir' |
15052 | ;; |
15053 | *) |
15054 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
15055 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
15056 | ;; |
15057 | esac |
15058 | fi |
d9898ee8 |
15059 | else |
ac40fd9e |
15060 | ld_shlibs_F77=no |
d9898ee8 |
15061 | fi |
15062 | ;; |
15063 | |
15064 | os2*) |
15065 | hardcode_libdir_flag_spec_F77='-L$libdir' |
15066 | hardcode_minus_L_F77=yes |
15067 | allow_undefined_flag_F77=unsupported |
15068 | 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' |
15069 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
15070 | ;; |
15071 | |
15072 | osf3*) |
15073 | if test "$GCC" = yes; then |
15074 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
15075 | 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' |
15076 | else |
15077 | allow_undefined_flag_F77=' -expect_unresolved \*' |
15078 | 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' |
15079 | fi |
15080 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
15081 | hardcode_libdir_separator_F77=: |
15082 | ;; |
15083 | |
15084 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
15085 | if test "$GCC" = yes; then |
15086 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
15087 | 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' |
15088 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
15089 | else |
15090 | allow_undefined_flag_F77=' -expect_unresolved \*' |
15091 | 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' |
15092 | 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~ |
15093 | $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' |
15094 | |
15095 | # Both c and cxx compiler support -rpath directly |
15096 | hardcode_libdir_flag_spec_F77='-rpath $libdir' |
15097 | fi |
15098 | hardcode_libdir_separator_F77=: |
15099 | ;; |
15100 | |
15101 | solaris*) |
15102 | no_undefined_flag_F77=' -z text' |
15103 | if test "$GCC" = yes; then |
15104 | wlarc='${wl}' |
15105 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
15106 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
15107 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
15108 | else |
15109 | wlarc='' |
15110 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15111 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
15112 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
15113 | fi |
15114 | hardcode_libdir_flag_spec_F77='-R$libdir' |
15115 | hardcode_shlibpath_var_F77=no |
15116 | case $host_os in |
15117 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
15118 | *) |
ac40fd9e |
15119 | # The compiler driver will combine and reorder linker options, |
15120 | # but understands `-z linker_flag'. GCC discards it without `$wl', |
15121 | # but is careful enough not to reorder. |
d9898ee8 |
15122 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
ac40fd9e |
15123 | if test "$GCC" = yes; then |
15124 | whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
15125 | else |
15126 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' |
15127 | fi |
15128 | ;; |
d9898ee8 |
15129 | esac |
15130 | link_all_deplibs_F77=yes |
15131 | ;; |
15132 | |
15133 | sunos4*) |
15134 | if test "x$host_vendor" = xsequent; then |
15135 | # Use $CC to link under sequent, because it throws in some extra .o |
15136 | # files that make .init and .fini sections work. |
15137 | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
15138 | else |
15139 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
15140 | fi |
15141 | hardcode_libdir_flag_spec_F77='-L$libdir' |
15142 | hardcode_direct_F77=yes |
15143 | hardcode_minus_L_F77=yes |
15144 | hardcode_shlibpath_var_F77=no |
15145 | ;; |
15146 | |
15147 | sysv4) |
15148 | case $host_vendor in |
15149 | sni) |
15150 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15151 | hardcode_direct_F77=yes # is this really true??? |
15152 | ;; |
15153 | siemens) |
15154 | ## LD is ld it makes a PLAMLIB |
15155 | ## CC just makes a GrossModule. |
15156 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
15157 | reload_cmds_F77='$CC -r -o $output$reload_objs' |
15158 | hardcode_direct_F77=no |
15159 | ;; |
15160 | motorola) |
15161 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15162 | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie |
15163 | ;; |
15164 | esac |
15165 | runpath_var='LD_RUN_PATH' |
15166 | hardcode_shlibpath_var_F77=no |
15167 | ;; |
15168 | |
15169 | sysv4.3*) |
15170 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15171 | hardcode_shlibpath_var_F77=no |
15172 | export_dynamic_flag_spec_F77='-Bexport' |
15173 | ;; |
15174 | |
15175 | sysv4*MP*) |
15176 | if test -d /usr/nec; then |
15177 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15178 | hardcode_shlibpath_var_F77=no |
15179 | runpath_var=LD_RUN_PATH |
15180 | hardcode_runpath_var=yes |
15181 | ld_shlibs_F77=yes |
15182 | fi |
15183 | ;; |
15184 | |
ac40fd9e |
15185 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
d9898ee8 |
15186 | no_undefined_flag_F77='${wl}-z,text' |
15187 | archive_cmds_need_lc_F77=no |
15188 | hardcode_shlibpath_var_F77=no |
15189 | runpath_var='LD_RUN_PATH' |
15190 | |
15191 | if test "$GCC" = yes; then |
15192 | archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
15193 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
15194 | else |
15195 | archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
15196 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
15197 | fi |
15198 | ;; |
15199 | |
15200 | sysv5* | sco3.2v5* | sco5v6*) |
15201 | # Note: We can NOT use -z defs as we might desire, because we do not |
15202 | # link with -lc, and that would cause any symbols used from libc to |
15203 | # always be unresolved, which means just about no library would |
15204 | # ever link correctly. If we're not using GNU ld we use -z text |
15205 | # though, which does catch some bad symbols but isn't as heavy-handed |
15206 | # as -z defs. |
15207 | no_undefined_flag_F77='${wl}-z,text' |
15208 | allow_undefined_flag_F77='${wl}-z,nodefs' |
15209 | archive_cmds_need_lc_F77=no |
15210 | hardcode_shlibpath_var_F77=no |
15211 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
15212 | hardcode_libdir_separator_F77=':' |
15213 | link_all_deplibs_F77=yes |
15214 | export_dynamic_flag_spec_F77='${wl}-Bexport' |
15215 | runpath_var='LD_RUN_PATH' |
15216 | |
15217 | if test "$GCC" = yes; then |
15218 | archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
15219 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
15220 | else |
15221 | archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
15222 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
15223 | fi |
15224 | ;; |
15225 | |
15226 | uts4*) |
15227 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15228 | hardcode_libdir_flag_spec_F77='-L$libdir' |
15229 | hardcode_shlibpath_var_F77=no |
15230 | ;; |
15231 | |
15232 | *) |
15233 | ld_shlibs_F77=no |
15234 | ;; |
15235 | esac |
15236 | fi |
15237 | |
dd184caf |
15238 | { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 |
15239 | echo "${ECHO_T}$ld_shlibs_F77" >&6; } |
d9898ee8 |
15240 | test "$ld_shlibs_F77" = no && can_build_shared=no |
15241 | |
15242 | # |
15243 | # Do we need to explicitly link libc? |
15244 | # |
15245 | case "x$archive_cmds_need_lc_F77" in |
15246 | x|xyes) |
15247 | # Assume -lc should be added |
15248 | archive_cmds_need_lc_F77=yes |
15249 | |
15250 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
15251 | case $archive_cmds_F77 in |
15252 | *'~'*) |
15253 | # FIXME: we may have to deal with multi-command sequences. |
15254 | ;; |
15255 | '$CC '*) |
15256 | # Test whether the compiler implicitly links with -lc since on some |
15257 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
15258 | # to ld, don't add -lc before -lgcc. |
dd184caf |
15259 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
15260 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
d9898ee8 |
15261 | $rm conftest* |
ac40fd9e |
15262 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
d9898ee8 |
15263 | |
15264 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
15265 | (eval $ac_compile) 2>&5 |
15266 | ac_status=$? |
15267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15268 | (exit $ac_status); } 2>conftest.err; then |
15269 | soname=conftest |
15270 | lib=conftest |
15271 | libobjs=conftest.$ac_objext |
15272 | deplibs= |
15273 | wl=$lt_prog_compiler_wl_F77 |
15274 | pic_flag=$lt_prog_compiler_pic_F77 |
15275 | compiler_flags=-v |
15276 | linker_flags=-v |
15277 | verstring= |
15278 | output_objdir=. |
15279 | libname=conftest |
15280 | lt_save_allow_undefined_flag=$allow_undefined_flag_F77 |
15281 | allow_undefined_flag_F77= |
15282 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
15283 | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
15284 | ac_status=$? |
15285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15286 | (exit $ac_status); } |
15287 | then |
15288 | archive_cmds_need_lc_F77=no |
15289 | else |
15290 | archive_cmds_need_lc_F77=yes |
15291 | fi |
15292 | allow_undefined_flag_F77=$lt_save_allow_undefined_flag |
15293 | else |
15294 | cat conftest.err 1>&5 |
15295 | fi |
15296 | $rm conftest* |
dd184caf |
15297 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 |
15298 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } |
d9898ee8 |
15299 | ;; |
15300 | esac |
15301 | fi |
15302 | ;; |
15303 | esac |
15304 | |
dd184caf |
15305 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
15306 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
d9898ee8 |
15307 | library_names_spec= |
15308 | libname_spec='lib$name' |
15309 | soname_spec= |
15310 | shrext_cmds=".so" |
15311 | postinstall_cmds= |
15312 | postuninstall_cmds= |
15313 | finish_cmds= |
15314 | finish_eval= |
15315 | shlibpath_var= |
15316 | shlibpath_overrides_runpath=unknown |
15317 | version_type=none |
15318 | dynamic_linker="$host_os ld.so" |
15319 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
ac40fd9e |
15320 | |
d9898ee8 |
15321 | need_lib_prefix=unknown |
15322 | hardcode_into_libs=no |
15323 | |
15324 | # when you set need_version to no, make sure it does not cause -set_version |
15325 | # flags to be left without arguments |
15326 | need_version=unknown |
15327 | |
15328 | case $host_os in |
15329 | aix3*) |
15330 | version_type=linux |
15331 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
15332 | shlibpath_var=LIBPATH |
15333 | |
15334 | # AIX 3 has no versioning support, so we append a major version to the name. |
15335 | soname_spec='${libname}${release}${shared_ext}$major' |
15336 | ;; |
15337 | |
15338 | aix4* | aix5*) |
15339 | version_type=linux |
15340 | need_lib_prefix=no |
15341 | need_version=no |
15342 | hardcode_into_libs=yes |
15343 | if test "$host_cpu" = ia64; then |
15344 | # AIX 5 supports IA64 |
15345 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
15346 | shlibpath_var=LD_LIBRARY_PATH |
15347 | else |
15348 | # With GCC up to 2.95.x, collect2 would create an import file |
15349 | # for dependence libraries. The import file would start with |
15350 | # the line `#! .'. This would cause the generated library to |
15351 | # depend on `.', always an invalid library. This was fixed in |
15352 | # development snapshots of GCC prior to 3.0. |
15353 | case $host_os in |
15354 | aix4 | aix4.[01] | aix4.[01].*) |
15355 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
15356 | echo ' yes ' |
15357 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
15358 | : |
15359 | else |
15360 | can_build_shared=no |
15361 | fi |
15362 | ;; |
15363 | esac |
15364 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
15365 | # soname into executable. Probably we can add versioning support to |
15366 | # collect2, so additional links can be useful in future. |
15367 | if test "$aix_use_runtimelinking" = yes; then |
15368 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
15369 | # instead of lib<name>.a to let people know that these are not |
15370 | # typical AIX shared libraries. |
15371 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15372 | else |
15373 | # We preserve .a as extension for shared libraries through AIX4.2 |
15374 | # and later when we are not doing run time linking. |
15375 | library_names_spec='${libname}${release}.a $libname.a' |
15376 | soname_spec='${libname}${release}${shared_ext}$major' |
15377 | fi |
15378 | shlibpath_var=LIBPATH |
15379 | fi |
15380 | ;; |
15381 | |
15382 | amigaos*) |
15383 | library_names_spec='$libname.ixlibrary $libname.a' |
15384 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
15385 | 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' |
15386 | ;; |
15387 | |
15388 | beos*) |
15389 | library_names_spec='${libname}${shared_ext}' |
15390 | dynamic_linker="$host_os ld.so" |
15391 | shlibpath_var=LIBRARY_PATH |
15392 | ;; |
15393 | |
15394 | bsdi[45]*) |
15395 | version_type=linux |
15396 | need_version=no |
15397 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15398 | soname_spec='${libname}${release}${shared_ext}$major' |
15399 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
15400 | shlibpath_var=LD_LIBRARY_PATH |
15401 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
15402 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
15403 | # the default ld.so.conf also contains /usr/contrib/lib and |
15404 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
15405 | # libtool to hard-code these into programs |
15406 | ;; |
15407 | |
15408 | cygwin* | mingw* | pw32*) |
15409 | version_type=windows |
15410 | shrext_cmds=".dll" |
15411 | need_version=no |
15412 | need_lib_prefix=no |
15413 | |
15414 | case $GCC,$host_os in |
15415 | yes,cygwin* | yes,mingw* | yes,pw32*) |
15416 | library_names_spec='$libname.dll.a' |
15417 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
15418 | postinstall_cmds='base_file=`basename \${file}`~ |
15419 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
15420 | dldir=$destdir/`dirname \$dlpath`~ |
15421 | test -d \$dldir || mkdir -p \$dldir~ |
15422 | $install_prog $dir/$dlname \$dldir/$dlname~ |
15423 | chmod a+x \$dldir/$dlname' |
15424 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
15425 | dlpath=$dir/\$dldll~ |
15426 | $rm \$dlpath' |
15427 | shlibpath_overrides_runpath=yes |
15428 | |
15429 | case $host_os in |
15430 | cygwin*) |
15431 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
15432 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
15433 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
15434 | ;; |
15435 | mingw*) |
15436 | # MinGW DLLs use traditional 'lib' prefix |
15437 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
15438 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
15439 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
15440 | # It is most probably a Windows format PATH printed by |
15441 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
15442 | # path with ; separators, and with drive letters. We can handle the |
15443 | # drive letters (cygwin fileutils understands them), so leave them, |
15444 | # especially as we might pass files found there to a mingw objdump, |
15445 | # which wouldn't understand a cygwinified path. Ahh. |
15446 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
15447 | else |
15448 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
15449 | fi |
15450 | ;; |
15451 | pw32*) |
15452 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
15453 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
15454 | ;; |
15455 | esac |
15456 | ;; |
15457 | |
15458 | *) |
15459 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
15460 | ;; |
15461 | esac |
15462 | dynamic_linker='Win32 ld.exe' |
15463 | # FIXME: first we should search . and the directory the executable is in |
15464 | shlibpath_var=PATH |
15465 | ;; |
15466 | |
15467 | darwin* | rhapsody*) |
15468 | dynamic_linker="$host_os dyld" |
15469 | version_type=darwin |
15470 | need_lib_prefix=no |
15471 | need_version=no |
15472 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
15473 | soname_spec='${libname}${release}${major}$shared_ext' |
15474 | shlibpath_overrides_runpath=yes |
15475 | shlibpath_var=DYLD_LIBRARY_PATH |
15476 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
ac40fd9e |
15477 | |
d9898ee8 |
15478 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
15479 | ;; |
15480 | |
15481 | dgux*) |
15482 | version_type=linux |
15483 | need_lib_prefix=no |
15484 | need_version=no |
15485 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
15486 | soname_spec='${libname}${release}${shared_ext}$major' |
15487 | shlibpath_var=LD_LIBRARY_PATH |
15488 | ;; |
15489 | |
15490 | freebsd1*) |
15491 | dynamic_linker=no |
15492 | ;; |
15493 | |
d9898ee8 |
15494 | freebsd* | dragonfly*) |
15495 | # DragonFly does not have aout. When/if they implement a new |
15496 | # versioning mechanism, adjust this. |
15497 | if test -x /usr/bin/objformat; then |
15498 | objformat=`/usr/bin/objformat` |
15499 | else |
15500 | case $host_os in |
15501 | freebsd[123]*) objformat=aout ;; |
15502 | *) objformat=elf ;; |
15503 | esac |
15504 | fi |
15505 | version_type=freebsd-$objformat |
15506 | case $version_type in |
15507 | freebsd-elf*) |
15508 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
15509 | need_version=no |
15510 | need_lib_prefix=no |
15511 | ;; |
15512 | freebsd-*) |
15513 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
15514 | need_version=yes |
15515 | ;; |
15516 | esac |
15517 | shlibpath_var=LD_LIBRARY_PATH |
15518 | case $host_os in |
15519 | freebsd2*) |
15520 | shlibpath_overrides_runpath=yes |
15521 | ;; |
15522 | freebsd3.[01]* | freebsdelf3.[01]*) |
15523 | shlibpath_overrides_runpath=yes |
15524 | hardcode_into_libs=yes |
15525 | ;; |
15526 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
15527 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
15528 | shlibpath_overrides_runpath=no |
15529 | hardcode_into_libs=yes |
15530 | ;; |
ac40fd9e |
15531 | *) # from 4.6 on, and DragonFly |
d9898ee8 |
15532 | shlibpath_overrides_runpath=yes |
15533 | hardcode_into_libs=yes |
15534 | ;; |
15535 | esac |
15536 | ;; |
15537 | |
15538 | gnu*) |
15539 | version_type=linux |
15540 | need_lib_prefix=no |
15541 | need_version=no |
15542 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
15543 | soname_spec='${libname}${release}${shared_ext}$major' |
15544 | shlibpath_var=LD_LIBRARY_PATH |
15545 | hardcode_into_libs=yes |
15546 | ;; |
15547 | |
15548 | hpux9* | hpux10* | hpux11*) |
15549 | # Give a soname corresponding to the major version so that dld.sl refuses to |
15550 | # link against other versions. |
15551 | version_type=sunos |
15552 | need_lib_prefix=no |
15553 | need_version=no |
15554 | case $host_cpu in |
15555 | ia64*) |
15556 | shrext_cmds='.so' |
15557 | hardcode_into_libs=yes |
15558 | dynamic_linker="$host_os dld.so" |
15559 | shlibpath_var=LD_LIBRARY_PATH |
15560 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
15561 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15562 | soname_spec='${libname}${release}${shared_ext}$major' |
15563 | if test "X$HPUX_IA64_MODE" = X32; then |
15564 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
15565 | else |
15566 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
15567 | fi |
15568 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
15569 | ;; |
15570 | hppa*64*) |
15571 | shrext_cmds='.sl' |
15572 | hardcode_into_libs=yes |
15573 | dynamic_linker="$host_os dld.sl" |
15574 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
15575 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
15576 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15577 | soname_spec='${libname}${release}${shared_ext}$major' |
15578 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
15579 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
15580 | ;; |
15581 | *) |
15582 | shrext_cmds='.sl' |
15583 | dynamic_linker="$host_os dld.sl" |
15584 | shlibpath_var=SHLIB_PATH |
15585 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
15586 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15587 | soname_spec='${libname}${release}${shared_ext}$major' |
15588 | ;; |
15589 | esac |
15590 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
15591 | postinstall_cmds='chmod 555 $lib' |
15592 | ;; |
15593 | |
ac40fd9e |
15594 | interix[3-9]*) |
d9898ee8 |
15595 | version_type=linux |
15596 | need_lib_prefix=no |
15597 | need_version=no |
15598 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
15599 | soname_spec='${libname}${release}${shared_ext}$major' |
15600 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
15601 | shlibpath_var=LD_LIBRARY_PATH |
15602 | shlibpath_overrides_runpath=no |
15603 | hardcode_into_libs=yes |
15604 | ;; |
15605 | |
15606 | irix5* | irix6* | nonstopux*) |
15607 | case $host_os in |
15608 | nonstopux*) version_type=nonstopux ;; |
15609 | *) |
15610 | if test "$lt_cv_prog_gnu_ld" = yes; then |
15611 | version_type=linux |
15612 | else |
15613 | version_type=irix |
15614 | fi ;; |
15615 | esac |
15616 | need_lib_prefix=no |
15617 | need_version=no |
15618 | soname_spec='${libname}${release}${shared_ext}$major' |
15619 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
15620 | case $host_os in |
15621 | irix5* | nonstopux*) |
15622 | libsuff= shlibsuff= |
15623 | ;; |
15624 | *) |
15625 | case $LD in # libtool.m4 will add one of these switches to LD |
15626 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
15627 | libsuff= shlibsuff= libmagic=32-bit;; |
15628 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
15629 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
15630 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
15631 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
15632 | *) libsuff= shlibsuff= libmagic=never-match;; |
15633 | esac |
15634 | ;; |
15635 | esac |
15636 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
15637 | shlibpath_overrides_runpath=no |
15638 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
15639 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
15640 | hardcode_into_libs=yes |
15641 | ;; |
15642 | |
15643 | # No shared lib support for Linux oldld, aout, or coff. |
15644 | linux*oldld* | linux*aout* | linux*coff*) |
15645 | dynamic_linker=no |
15646 | ;; |
15647 | |
15648 | # This must be Linux ELF. |
ac40fd9e |
15649 | linux* | k*bsd*-gnu) |
d9898ee8 |
15650 | version_type=linux |
15651 | need_lib_prefix=no |
15652 | need_version=no |
15653 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15654 | soname_spec='${libname}${release}${shared_ext}$major' |
15655 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
15656 | shlibpath_var=LD_LIBRARY_PATH |
15657 | shlibpath_overrides_runpath=no |
15658 | # This implies no fast_install, which is unacceptable. |
15659 | # Some rework will be needed to allow for fast_install |
15660 | # before this can be enabled. |
15661 | hardcode_into_libs=yes |
ac40fd9e |
15662 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
15663 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
d9898ee8 |
15664 | |
15665 | # Append ld.so.conf contents to the search path |
15666 | if test -f /etc/ld.so.conf; then |
ac40fd9e |
15667 | 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/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
15668 | sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" |
d9898ee8 |
15669 | fi |
15670 | |
15671 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
15672 | # powerpc, because MkLinux only supported shared libraries with the |
15673 | # GNU dynamic linker. Since this was broken with cross compilers, |
15674 | # most powerpc-linux boxes support dynamic linking these days and |
15675 | # people can always --disable-shared, the test was removed, and we |
15676 | # assume the GNU/Linux dynamic linker is in use. |
15677 | dynamic_linker='GNU/Linux ld.so' |
15678 | ;; |
15679 | |
d9898ee8 |
15680 | netbsd*) |
15681 | version_type=sunos |
15682 | need_lib_prefix=no |
15683 | need_version=no |
15684 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
15685 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
15686 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
15687 | dynamic_linker='NetBSD (a.out) ld.so' |
15688 | else |
15689 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
15690 | soname_spec='${libname}${release}${shared_ext}$major' |
15691 | dynamic_linker='NetBSD ld.elf_so' |
15692 | fi |
15693 | shlibpath_var=LD_LIBRARY_PATH |
15694 | shlibpath_overrides_runpath=yes |
15695 | hardcode_into_libs=yes |
15696 | ;; |
15697 | |
15698 | newsos6) |
15699 | version_type=linux |
15700 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15701 | shlibpath_var=LD_LIBRARY_PATH |
15702 | shlibpath_overrides_runpath=yes |
15703 | ;; |
15704 | |
15705 | nto-qnx*) |
15706 | version_type=linux |
15707 | need_lib_prefix=no |
15708 | need_version=no |
15709 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15710 | soname_spec='${libname}${release}${shared_ext}$major' |
15711 | shlibpath_var=LD_LIBRARY_PATH |
15712 | shlibpath_overrides_runpath=yes |
15713 | ;; |
15714 | |
15715 | openbsd*) |
15716 | version_type=sunos |
15717 | sys_lib_dlsearch_path_spec="/usr/lib" |
15718 | need_lib_prefix=no |
15719 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
15720 | case $host_os in |
15721 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
15722 | *) need_version=no ;; |
15723 | esac |
15724 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
15725 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
15726 | shlibpath_var=LD_LIBRARY_PATH |
15727 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
15728 | case $host_os in |
15729 | openbsd2.[89] | openbsd2.[89].*) |
15730 | shlibpath_overrides_runpath=no |
15731 | ;; |
15732 | *) |
15733 | shlibpath_overrides_runpath=yes |
15734 | ;; |
15735 | esac |
15736 | else |
15737 | shlibpath_overrides_runpath=yes |
15738 | fi |
15739 | ;; |
15740 | |
15741 | os2*) |
15742 | libname_spec='$name' |
15743 | shrext_cmds=".dll" |
15744 | need_lib_prefix=no |
15745 | library_names_spec='$libname${shared_ext} $libname.a' |
15746 | dynamic_linker='OS/2 ld.exe' |
15747 | shlibpath_var=LIBPATH |
15748 | ;; |
15749 | |
15750 | osf3* | osf4* | osf5*) |
15751 | version_type=osf |
15752 | need_lib_prefix=no |
15753 | need_version=no |
15754 | soname_spec='${libname}${release}${shared_ext}$major' |
15755 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15756 | shlibpath_var=LD_LIBRARY_PATH |
15757 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
15758 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
15759 | ;; |
15760 | |
ac40fd9e |
15761 | rdos*) |
15762 | dynamic_linker=no |
15763 | ;; |
15764 | |
d9898ee8 |
15765 | solaris*) |
15766 | version_type=linux |
15767 | need_lib_prefix=no |
15768 | need_version=no |
15769 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15770 | soname_spec='${libname}${release}${shared_ext}$major' |
15771 | shlibpath_var=LD_LIBRARY_PATH |
15772 | shlibpath_overrides_runpath=yes |
15773 | hardcode_into_libs=yes |
15774 | # ldd complains unless libraries are executable |
15775 | postinstall_cmds='chmod +x $lib' |
15776 | ;; |
15777 | |
15778 | sunos4*) |
15779 | version_type=sunos |
15780 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
15781 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
15782 | shlibpath_var=LD_LIBRARY_PATH |
15783 | shlibpath_overrides_runpath=yes |
15784 | if test "$with_gnu_ld" = yes; then |
15785 | need_lib_prefix=no |
15786 | fi |
15787 | need_version=yes |
15788 | ;; |
15789 | |
15790 | sysv4 | sysv4.3*) |
15791 | version_type=linux |
15792 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15793 | soname_spec='${libname}${release}${shared_ext}$major' |
15794 | shlibpath_var=LD_LIBRARY_PATH |
15795 | case $host_vendor in |
15796 | sni) |
15797 | shlibpath_overrides_runpath=no |
15798 | need_lib_prefix=no |
15799 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
15800 | runpath_var=LD_RUN_PATH |
15801 | ;; |
15802 | siemens) |
15803 | need_lib_prefix=no |
15804 | ;; |
15805 | motorola) |
15806 | need_lib_prefix=no |
15807 | need_version=no |
15808 | shlibpath_overrides_runpath=no |
15809 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
15810 | ;; |
15811 | esac |
15812 | ;; |
15813 | |
15814 | sysv4*MP*) |
15815 | if test -d /usr/nec ;then |
15816 | version_type=linux |
15817 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
15818 | soname_spec='$libname${shared_ext}.$major' |
15819 | shlibpath_var=LD_LIBRARY_PATH |
15820 | fi |
15821 | ;; |
15822 | |
15823 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
15824 | version_type=freebsd-elf |
15825 | need_lib_prefix=no |
15826 | need_version=no |
15827 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
15828 | soname_spec='${libname}${release}${shared_ext}$major' |
15829 | shlibpath_var=LD_LIBRARY_PATH |
15830 | hardcode_into_libs=yes |
15831 | if test "$with_gnu_ld" = yes; then |
15832 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
15833 | shlibpath_overrides_runpath=no |
15834 | else |
15835 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
15836 | shlibpath_overrides_runpath=yes |
15837 | case $host_os in |
15838 | sco3.2v5*) |
15839 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
15840 | ;; |
15841 | esac |
15842 | fi |
15843 | sys_lib_dlsearch_path_spec='/usr/lib' |
15844 | ;; |
15845 | |
15846 | uts4*) |
15847 | version_type=linux |
15848 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15849 | soname_spec='${libname}${release}${shared_ext}$major' |
15850 | shlibpath_var=LD_LIBRARY_PATH |
15851 | ;; |
15852 | |
15853 | *) |
15854 | dynamic_linker=no |
15855 | ;; |
15856 | esac |
dd184caf |
15857 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
15858 | echo "${ECHO_T}$dynamic_linker" >&6; } |
d9898ee8 |
15859 | test "$dynamic_linker" = no && can_build_shared=no |
15860 | |
15861 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
15862 | if test "$GCC" = yes; then |
15863 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
15864 | fi |
15865 | |
dd184caf |
15866 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
15867 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
d9898ee8 |
15868 | hardcode_action_F77= |
15869 | if test -n "$hardcode_libdir_flag_spec_F77" || \ |
15870 | test -n "$runpath_var_F77" || \ |
15871 | test "X$hardcode_automatic_F77" = "Xyes" ; then |
15872 | |
15873 | # We can hardcode non-existant directories. |
15874 | if test "$hardcode_direct_F77" != no && |
15875 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
15876 | # have to relink, otherwise we might link with an installed library |
15877 | # when we should be linking with a yet-to-be-installed one |
15878 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && |
15879 | test "$hardcode_minus_L_F77" != no; then |
15880 | # Linking always hardcodes the temporary library directory. |
15881 | hardcode_action_F77=relink |
15882 | else |
15883 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
15884 | hardcode_action_F77=immediate |
15885 | fi |
15886 | else |
15887 | # We cannot hardcode anything, or else we can only hardcode existing |
15888 | # directories. |
15889 | hardcode_action_F77=unsupported |
15890 | fi |
dd184caf |
15891 | { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 |
15892 | echo "${ECHO_T}$hardcode_action_F77" >&6; } |
d9898ee8 |
15893 | |
15894 | if test "$hardcode_action_F77" = relink; then |
15895 | # Fast installation is not supported |
15896 | enable_fast_install=no |
15897 | elif test "$shlibpath_overrides_runpath" = yes || |
15898 | test "$enable_shared" = no; then |
15899 | # Fast installation is not necessary |
15900 | enable_fast_install=needless |
15901 | fi |
15902 | |
15903 | |
15904 | # The else clause should only fire when bootstrapping the |
15905 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
15906 | # with your package, and you will get complaints that there are |
15907 | # no rules to generate ltmain.sh. |
15908 | if test -f "$ltmain"; then |
15909 | # See if we are running on zsh, and set the options which allow our commands through |
15910 | # without removal of \ escapes. |
15911 | if test -n "${ZSH_VERSION+set}" ; then |
15912 | setopt NO_GLOB_SUBST |
15913 | fi |
15914 | # Now quote all the things that may contain metacharacters while being |
15915 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
15916 | # variables and quote the copies for generation of the libtool script. |
15917 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
15918 | SED SHELL STRIP \ |
15919 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
15920 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
15921 | deplibs_check_method reload_flag reload_cmds need_locks \ |
15922 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
15923 | lt_cv_sys_global_symbol_to_c_name_address \ |
15924 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
15925 | old_postinstall_cmds old_postuninstall_cmds \ |
15926 | compiler_F77 \ |
15927 | CC_F77 \ |
15928 | LD_F77 \ |
15929 | lt_prog_compiler_wl_F77 \ |
15930 | lt_prog_compiler_pic_F77 \ |
15931 | lt_prog_compiler_static_F77 \ |
15932 | lt_prog_compiler_no_builtin_flag_F77 \ |
15933 | export_dynamic_flag_spec_F77 \ |
15934 | thread_safe_flag_spec_F77 \ |
15935 | whole_archive_flag_spec_F77 \ |
15936 | enable_shared_with_static_runtimes_F77 \ |
15937 | old_archive_cmds_F77 \ |
15938 | old_archive_from_new_cmds_F77 \ |
15939 | predep_objects_F77 \ |
15940 | postdep_objects_F77 \ |
15941 | predeps_F77 \ |
15942 | postdeps_F77 \ |
15943 | compiler_lib_search_path_F77 \ |
15944 | archive_cmds_F77 \ |
15945 | archive_expsym_cmds_F77 \ |
15946 | postinstall_cmds_F77 \ |
15947 | postuninstall_cmds_F77 \ |
15948 | old_archive_from_expsyms_cmds_F77 \ |
15949 | allow_undefined_flag_F77 \ |
15950 | no_undefined_flag_F77 \ |
15951 | export_symbols_cmds_F77 \ |
15952 | hardcode_libdir_flag_spec_F77 \ |
15953 | hardcode_libdir_flag_spec_ld_F77 \ |
15954 | hardcode_libdir_separator_F77 \ |
15955 | hardcode_automatic_F77 \ |
15956 | module_cmds_F77 \ |
15957 | module_expsym_cmds_F77 \ |
15958 | lt_cv_prog_compiler_c_o_F77 \ |
ac40fd9e |
15959 | fix_srcfile_path_F77 \ |
d9898ee8 |
15960 | exclude_expsyms_F77 \ |
15961 | include_expsyms_F77; do |
15962 | |
15963 | case $var in |
15964 | old_archive_cmds_F77 | \ |
15965 | old_archive_from_new_cmds_F77 | \ |
15966 | archive_cmds_F77 | \ |
15967 | archive_expsym_cmds_F77 | \ |
15968 | module_cmds_F77 | \ |
15969 | module_expsym_cmds_F77 | \ |
15970 | old_archive_from_expsyms_cmds_F77 | \ |
15971 | export_symbols_cmds_F77 | \ |
15972 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
15973 | postinstall_cmds | postuninstall_cmds | \ |
15974 | old_postinstall_cmds | old_postuninstall_cmds | \ |
15975 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
15976 | # Double-quote double-evaled strings. |
15977 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
15978 | ;; |
15979 | *) |
15980 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
15981 | ;; |
15982 | esac |
15983 | done |
15984 | |
15985 | case $lt_echo in |
15986 | *'\$0 --fallback-echo"') |
15987 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
15988 | ;; |
15989 | esac |
15990 | |
15991 | cfgfile="$ofile" |
15992 | |
15993 | cat <<__EOF__ >> "$cfgfile" |
15994 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
15995 | |
15996 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
15997 | |
15998 | # Shell to use when invoking shell scripts. |
15999 | SHELL=$lt_SHELL |
16000 | |
16001 | # Whether or not to build shared libraries. |
16002 | build_libtool_libs=$enable_shared |
16003 | |
16004 | # Whether or not to build static libraries. |
16005 | build_old_libs=$enable_static |
16006 | |
16007 | # Whether or not to add -lc for building shared libraries. |
16008 | build_libtool_need_lc=$archive_cmds_need_lc_F77 |
16009 | |
16010 | # Whether or not to disallow shared libs when runtime libs are static |
16011 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 |
16012 | |
16013 | # Whether or not to optimize for fast installation. |
16014 | fast_install=$enable_fast_install |
16015 | |
16016 | # The host system. |
16017 | host_alias=$host_alias |
16018 | host=$host |
16019 | host_os=$host_os |
16020 | |
16021 | # The build system. |
16022 | build_alias=$build_alias |
16023 | build=$build |
16024 | build_os=$build_os |
16025 | |
16026 | # An echo program that does not interpret backslashes. |
16027 | echo=$lt_echo |
16028 | |
16029 | # The archiver. |
16030 | AR=$lt_AR |
16031 | AR_FLAGS=$lt_AR_FLAGS |
16032 | |
16033 | # A C compiler. |
16034 | LTCC=$lt_LTCC |
16035 | |
16036 | # LTCC compiler flags. |
16037 | LTCFLAGS=$lt_LTCFLAGS |
16038 | |
16039 | # A language-specific compiler. |
16040 | CC=$lt_compiler_F77 |
16041 | |
16042 | # Is the compiler the GNU C compiler? |
16043 | with_gcc=$GCC_F77 |
16044 | |
d9898ee8 |
16045 | # An ERE matcher. |
16046 | EGREP=$lt_EGREP |
16047 | |
16048 | # The linker used to build libraries. |
16049 | LD=$lt_LD_F77 |
16050 | |
16051 | # Whether we need hard or soft links. |
16052 | LN_S=$lt_LN_S |
16053 | |
16054 | # A BSD-compatible nm program. |
16055 | NM=$lt_NM |
16056 | |
16057 | # A symbol stripping program |
16058 | STRIP=$lt_STRIP |
16059 | |
16060 | # Used to examine libraries when file_magic_cmd begins "file" |
16061 | MAGIC_CMD=$MAGIC_CMD |
16062 | |
16063 | # Used on cygwin: DLL creation program. |
16064 | DLLTOOL="$DLLTOOL" |
16065 | |
16066 | # Used on cygwin: object dumper. |
16067 | OBJDUMP="$OBJDUMP" |
16068 | |
16069 | # Used on cygwin: assembler. |
16070 | AS="$AS" |
16071 | |
16072 | # The name of the directory that contains temporary libtool files. |
16073 | objdir=$objdir |
16074 | |
16075 | # How to create reloadable object files. |
16076 | reload_flag=$lt_reload_flag |
16077 | reload_cmds=$lt_reload_cmds |
16078 | |
16079 | # How to pass a linker flag through the compiler. |
16080 | wl=$lt_lt_prog_compiler_wl_F77 |
16081 | |
16082 | # Object file suffix (normally "o"). |
16083 | objext="$ac_objext" |
16084 | |
16085 | # Old archive suffix (normally "a"). |
16086 | libext="$libext" |
16087 | |
16088 | # Shared library suffix (normally ".so"). |
16089 | shrext_cmds='$shrext_cmds' |
16090 | |
16091 | # Executable file suffix (normally ""). |
16092 | exeext="$exeext" |
16093 | |
16094 | # Additional compiler flags for building library objects. |
16095 | pic_flag=$lt_lt_prog_compiler_pic_F77 |
16096 | pic_mode=$pic_mode |
16097 | |
16098 | # What is the maximum length of a command? |
16099 | max_cmd_len=$lt_cv_sys_max_cmd_len |
16100 | |
16101 | # Does compiler simultaneously support -c and -o options? |
16102 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 |
16103 | |
16104 | # Must we lock files when doing compilation? |
16105 | need_locks=$lt_need_locks |
16106 | |
16107 | # Do we need the lib prefix for modules? |
16108 | need_lib_prefix=$need_lib_prefix |
16109 | |
16110 | # Do we need a version for libraries? |
16111 | need_version=$need_version |
16112 | |
16113 | # Whether dlopen is supported. |
16114 | dlopen_support=$enable_dlopen |
16115 | |
16116 | # Whether dlopen of programs is supported. |
16117 | dlopen_self=$enable_dlopen_self |
16118 | |
16119 | # Whether dlopen of statically linked programs is supported. |
16120 | dlopen_self_static=$enable_dlopen_self_static |
16121 | |
16122 | # Compiler flag to prevent dynamic linking. |
16123 | link_static_flag=$lt_lt_prog_compiler_static_F77 |
16124 | |
16125 | # Compiler flag to turn off builtin functions. |
16126 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 |
16127 | |
16128 | # Compiler flag to allow reflexive dlopens. |
16129 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 |
16130 | |
16131 | # Compiler flag to generate shared objects directly from archives. |
16132 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 |
16133 | |
16134 | # Compiler flag to generate thread-safe objects. |
16135 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 |
16136 | |
16137 | # Library versioning type. |
16138 | version_type=$version_type |
16139 | |
16140 | # Format of library name prefix. |
16141 | libname_spec=$lt_libname_spec |
16142 | |
16143 | # List of archive names. First name is the real one, the rest are links. |
16144 | # The last name is the one that the linker finds with -lNAME. |
16145 | library_names_spec=$lt_library_names_spec |
16146 | |
16147 | # The coded name of the library, if different from the real name. |
16148 | soname_spec=$lt_soname_spec |
16149 | |
16150 | # Commands used to build and install an old-style archive. |
16151 | RANLIB=$lt_RANLIB |
16152 | old_archive_cmds=$lt_old_archive_cmds_F77 |
16153 | old_postinstall_cmds=$lt_old_postinstall_cmds |
16154 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
16155 | |
16156 | # Create an old-style archive from a shared archive. |
16157 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 |
16158 | |
16159 | # Create a temporary old-style archive to link instead of a shared archive. |
16160 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 |
16161 | |
16162 | # Commands used to build and install a shared archive. |
16163 | archive_cmds=$lt_archive_cmds_F77 |
16164 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 |
16165 | postinstall_cmds=$lt_postinstall_cmds |
16166 | postuninstall_cmds=$lt_postuninstall_cmds |
16167 | |
16168 | # Commands used to build a loadable module (assumed same as above if empty) |
16169 | module_cmds=$lt_module_cmds_F77 |
16170 | module_expsym_cmds=$lt_module_expsym_cmds_F77 |
16171 | |
16172 | # Commands to strip libraries. |
16173 | old_striplib=$lt_old_striplib |
16174 | striplib=$lt_striplib |
16175 | |
16176 | # Dependencies to place before the objects being linked to create a |
16177 | # shared library. |
dd184caf |
16178 | predep_objects=$lt_predep_objects_F77 |
d9898ee8 |
16179 | |
16180 | # Dependencies to place after the objects being linked to create a |
16181 | # shared library. |
dd184caf |
16182 | postdep_objects=$lt_postdep_objects_F77 |
d9898ee8 |
16183 | |
16184 | # Dependencies to place before the objects being linked to create a |
16185 | # shared library. |
16186 | predeps=$lt_predeps_F77 |
16187 | |
16188 | # Dependencies to place after the objects being linked to create a |
16189 | # shared library. |
16190 | postdeps=$lt_postdeps_F77 |
16191 | |
16192 | # The library search path used internally by the compiler when linking |
16193 | # a shared library. |
dd184caf |
16194 | compiler_lib_search_path=$lt_compiler_lib_search_path_F77 |
d9898ee8 |
16195 | |
16196 | # Method to check whether dependent libraries are shared objects. |
16197 | deplibs_check_method=$lt_deplibs_check_method |
16198 | |
16199 | # Command to use when deplibs_check_method == file_magic. |
16200 | file_magic_cmd=$lt_file_magic_cmd |
16201 | |
16202 | # Flag that allows shared libraries with undefined symbols to be built. |
16203 | allow_undefined_flag=$lt_allow_undefined_flag_F77 |
16204 | |
16205 | # Flag that forces no undefined symbols. |
16206 | no_undefined_flag=$lt_no_undefined_flag_F77 |
16207 | |
16208 | # Commands used to finish a libtool library installation in a directory. |
16209 | finish_cmds=$lt_finish_cmds |
16210 | |
16211 | # Same as above, but a single script fragment to be evaled but not shown. |
16212 | finish_eval=$lt_finish_eval |
16213 | |
16214 | # Take the output of nm and produce a listing of raw symbols and C names. |
16215 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
16216 | |
16217 | # Transform the output of nm in a proper C declaration |
16218 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
16219 | |
16220 | # Transform the output of nm in a C name address pair |
16221 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
16222 | |
16223 | # This is the shared library runtime path variable. |
16224 | runpath_var=$runpath_var |
16225 | |
16226 | # This is the shared library path variable. |
16227 | shlibpath_var=$shlibpath_var |
16228 | |
16229 | # Is shlibpath searched before the hard-coded library search path? |
16230 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
16231 | |
16232 | # How to hardcode a shared library path into an executable. |
16233 | hardcode_action=$hardcode_action_F77 |
16234 | |
16235 | # Whether we should hardcode library paths into libraries. |
16236 | hardcode_into_libs=$hardcode_into_libs |
16237 | |
16238 | # Flag to hardcode \$libdir into a binary during linking. |
16239 | # This must work even if \$libdir does not exist. |
16240 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 |
16241 | |
16242 | # If ld is used when linking, flag to hardcode \$libdir into |
16243 | # a binary during linking. This must work even if \$libdir does |
16244 | # not exist. |
16245 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 |
16246 | |
16247 | # Whether we need a single -rpath flag with a separated argument. |
16248 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 |
16249 | |
16250 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
16251 | # resulting binary. |
16252 | hardcode_direct=$hardcode_direct_F77 |
16253 | |
16254 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
16255 | # resulting binary. |
16256 | hardcode_minus_L=$hardcode_minus_L_F77 |
16257 | |
16258 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
16259 | # the resulting binary. |
16260 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 |
16261 | |
16262 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
16263 | # and all subsequent libraries and executables linked against it. |
16264 | hardcode_automatic=$hardcode_automatic_F77 |
16265 | |
16266 | # Variables whose values should be saved in libtool wrapper scripts and |
16267 | # restored at relink time. |
16268 | variables_saved_for_relink="$variables_saved_for_relink" |
16269 | |
16270 | # Whether libtool must link a program against all its dependency libraries. |
16271 | link_all_deplibs=$link_all_deplibs_F77 |
16272 | |
16273 | # Compile-time system search path for libraries |
dd184caf |
16274 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
d9898ee8 |
16275 | |
16276 | # Run-time system search path for libraries |
16277 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
16278 | |
16279 | # Fix the shell variable \$srcfile for the compiler. |
ac40fd9e |
16280 | fix_srcfile_path=$lt_fix_srcfile_path |
d9898ee8 |
16281 | |
16282 | # Set to yes if exported symbols are required. |
16283 | always_export_symbols=$always_export_symbols_F77 |
16284 | |
16285 | # The commands to list exported symbols. |
16286 | export_symbols_cmds=$lt_export_symbols_cmds_F77 |
16287 | |
16288 | # The commands to extract the exported symbol list from a shared archive. |
16289 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
16290 | |
16291 | # Symbols that should not be listed in the preloaded symbols. |
16292 | exclude_expsyms=$lt_exclude_expsyms_F77 |
16293 | |
16294 | # Symbols that must always be exported. |
16295 | include_expsyms=$lt_include_expsyms_F77 |
16296 | |
16297 | # ### END LIBTOOL TAG CONFIG: $tagname |
16298 | |
16299 | __EOF__ |
16300 | |
16301 | |
16302 | else |
16303 | # If there is no Makefile yet, we rely on a make rule to execute |
16304 | # `config.status --recheck' to rerun these tests and create the |
16305 | # libtool script then. |
16306 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
16307 | if test -f "$ltmain_in"; then |
16308 | test -f Makefile && make "$ltmain" |
16309 | fi |
16310 | fi |
16311 | |
16312 | |
16313 | ac_ext=c |
16314 | ac_cpp='$CPP $CPPFLAGS' |
16315 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
16316 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
16317 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
16318 | |
16319 | CC="$lt_save_CC" |
16320 | |
16321 | else |
16322 | tagname="" |
16323 | fi |
16324 | ;; |
16325 | |
16326 | GCJ) |
16327 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
16328 | |
16329 | |
d9898ee8 |
16330 | # Source file extension for Java test sources. |
16331 | ac_ext=java |
16332 | |
16333 | # Object file extension for compiled Java test sources. |
16334 | objext=o |
16335 | objext_GCJ=$objext |
16336 | |
16337 | # Code to be used in simple compile tests |
ac40fd9e |
16338 | lt_simple_compile_test_code="class foo {}" |
d9898ee8 |
16339 | |
16340 | # Code to be used in simple link tests |
ac40fd9e |
16341 | lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }' |
d9898ee8 |
16342 | |
16343 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
16344 | |
16345 | # If no C compiler was specified, use CC. |
16346 | LTCC=${LTCC-"$CC"} |
16347 | |
16348 | # If no C compiler flags were specified, use CFLAGS. |
16349 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
16350 | |
16351 | # Allow CC to be a program name with arguments. |
16352 | compiler=$CC |
16353 | |
16354 | |
16355 | # save warnings/boilerplate of simple test code |
16356 | ac_outfile=conftest.$ac_objext |
ac40fd9e |
16357 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
d9898ee8 |
16358 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
16359 | _lt_compiler_boilerplate=`cat conftest.err` |
16360 | $rm conftest* |
16361 | |
16362 | ac_outfile=conftest.$ac_objext |
ac40fd9e |
16363 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
d9898ee8 |
16364 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
16365 | _lt_linker_boilerplate=`cat conftest.err` |
16366 | $rm conftest* |
16367 | |
16368 | |
16369 | # Allow CC to be a program name with arguments. |
16370 | lt_save_CC="$CC" |
16371 | CC=${GCJ-"gcj"} |
16372 | compiler=$CC |
16373 | compiler_GCJ=$CC |
16374 | for cc_temp in $compiler""; do |
16375 | case $cc_temp in |
16376 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
16377 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
16378 | \-*) ;; |
16379 | *) break;; |
16380 | esac |
16381 | done |
16382 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
16383 | |
16384 | |
16385 | # GCJ did not exist at the time GCC didn't implicitly link libc in. |
16386 | archive_cmds_need_lc_GCJ=no |
16387 | |
16388 | old_archive_cmds_GCJ=$old_archive_cmds |
16389 | |
16390 | |
16391 | lt_prog_compiler_no_builtin_flag_GCJ= |
16392 | |
16393 | if test "$GCC" = yes; then |
16394 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' |
16395 | |
16396 | |
dd184caf |
16397 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
16398 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } |
d9898ee8 |
16399 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
16400 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16401 | else |
16402 | lt_cv_prog_compiler_rtti_exceptions=no |
16403 | ac_outfile=conftest.$ac_objext |
ac40fd9e |
16404 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
d9898ee8 |
16405 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
16406 | # Insert the option either (1) after the last *FLAGS variable, or |
16407 | # (2) before a word containing "conftest.", or (3) at the end. |
16408 | # Note that $ac_compile itself does not contain backslashes and begins |
16409 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
16410 | # The option is referenced via a variable to avoid confusing sed. |
16411 | lt_compile=`echo "$ac_compile" | $SED \ |
16412 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
16413 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
16414 | -e 's:$: $lt_compiler_flag:'` |
ac40fd9e |
16415 | (eval echo "\"\$as_me:16415: $lt_compile\"" >&5) |
d9898ee8 |
16416 | (eval "$lt_compile" 2>conftest.err) |
16417 | ac_status=$? |
16418 | cat conftest.err >&5 |
ac40fd9e |
16419 | echo "$as_me:16419: \$? = $ac_status" >&5 |
d9898ee8 |
16420 | if (exit $ac_status) && test -s "$ac_outfile"; then |
16421 | # The compiler can only warn and ignore the option if not recognized |
16422 | # So say no if there are warnings other than the usual output. |
16423 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
16424 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
16425 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
16426 | lt_cv_prog_compiler_rtti_exceptions=yes |
16427 | fi |
16428 | fi |
16429 | $rm conftest* |
16430 | |
16431 | fi |
dd184caf |
16432 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
16433 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
d9898ee8 |
16434 | |
16435 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
16436 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" |
16437 | else |
16438 | : |
16439 | fi |
16440 | |
16441 | fi |
16442 | |
16443 | lt_prog_compiler_wl_GCJ= |
16444 | lt_prog_compiler_pic_GCJ= |
16445 | lt_prog_compiler_static_GCJ= |
16446 | |
dd184caf |
16447 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
16448 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
d9898ee8 |
16449 | |
16450 | if test "$GCC" = yes; then |
16451 | lt_prog_compiler_wl_GCJ='-Wl,' |
16452 | lt_prog_compiler_static_GCJ='-static' |
16453 | |
16454 | case $host_os in |
16455 | aix*) |
16456 | # All AIX code is PIC. |
16457 | if test "$host_cpu" = ia64; then |
16458 | # AIX 5 now supports IA64 processor |
16459 | lt_prog_compiler_static_GCJ='-Bstatic' |
16460 | fi |
16461 | ;; |
16462 | |
16463 | amigaos*) |
16464 | # FIXME: we need at least 68020 code to build shared libraries, but |
16465 | # adding the `-m68020' flag to GCC prevents building anything better, |
16466 | # like `-m68040'. |
16467 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' |
16468 | ;; |
16469 | |
ac40fd9e |
16470 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
d9898ee8 |
16471 | # PIC is the default for these OSes. |
16472 | ;; |
16473 | |
ac40fd9e |
16474 | mingw* | cygwin* | pw32* | os2*) |
d9898ee8 |
16475 | # This hack is so that the source file can tell whether it is being |
16476 | # built for inclusion in a dll (and should export symbols for example). |
ac40fd9e |
16477 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
16478 | # (--disable-auto-import) libraries |
d9898ee8 |
16479 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
16480 | ;; |
16481 | |
16482 | darwin* | rhapsody*) |
16483 | # PIC is the default on this platform |
16484 | # Common symbols not allowed in MH_DYLIB files |
16485 | lt_prog_compiler_pic_GCJ='-fno-common' |
16486 | ;; |
16487 | |
ac40fd9e |
16488 | interix[3-9]*) |
d9898ee8 |
16489 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
16490 | # Instead, we relocate shared libraries at runtime. |
16491 | ;; |
16492 | |
16493 | msdosdjgpp*) |
16494 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
16495 | # on systems that don't support them. |
16496 | lt_prog_compiler_can_build_shared_GCJ=no |
16497 | enable_shared=no |
16498 | ;; |
16499 | |
16500 | sysv4*MP*) |
16501 | if test -d /usr/nec; then |
16502 | lt_prog_compiler_pic_GCJ=-Kconform_pic |
16503 | fi |
16504 | ;; |
16505 | |
16506 | hpux*) |
16507 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
16508 | # not for PA HP-UX. |
16509 | case $host_cpu in |
16510 | hppa*64*|ia64*) |
16511 | # +Z the default |
16512 | ;; |
16513 | *) |
16514 | lt_prog_compiler_pic_GCJ='-fPIC' |
16515 | ;; |
16516 | esac |
16517 | ;; |
16518 | |
16519 | *) |
16520 | lt_prog_compiler_pic_GCJ='-fPIC' |
16521 | ;; |
16522 | esac |
16523 | else |
16524 | # PORTME Check for flag to pass linker flags through the system compiler. |
16525 | case $host_os in |
16526 | aix*) |
16527 | lt_prog_compiler_wl_GCJ='-Wl,' |
16528 | if test "$host_cpu" = ia64; then |
16529 | # AIX 5 now supports IA64 processor |
16530 | lt_prog_compiler_static_GCJ='-Bstatic' |
16531 | else |
16532 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' |
16533 | fi |
16534 | ;; |
16535 | darwin*) |
16536 | # PIC is the default on this platform |
16537 | # Common symbols not allowed in MH_DYLIB files |
16538 | case $cc_basename in |
16539 | xlc*) |
16540 | lt_prog_compiler_pic_GCJ='-qnocommon' |
16541 | lt_prog_compiler_wl_GCJ='-Wl,' |
16542 | ;; |
16543 | esac |
16544 | ;; |
16545 | |
ac40fd9e |
16546 | mingw* | cygwin* | pw32* | os2*) |
d9898ee8 |
16547 | # This hack is so that the source file can tell whether it is being |
16548 | # built for inclusion in a dll (and should export symbols for example). |
16549 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
16550 | ;; |
16551 | |
16552 | hpux9* | hpux10* | hpux11*) |
16553 | lt_prog_compiler_wl_GCJ='-Wl,' |
16554 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
16555 | # not for PA HP-UX. |
16556 | case $host_cpu in |
16557 | hppa*64*|ia64*) |
16558 | # +Z the default |
16559 | ;; |
16560 | *) |
16561 | lt_prog_compiler_pic_GCJ='+Z' |
16562 | ;; |
16563 | esac |
16564 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
16565 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' |
16566 | ;; |
16567 | |
16568 | irix5* | irix6* | nonstopux*) |
16569 | lt_prog_compiler_wl_GCJ='-Wl,' |
16570 | # PIC (with -KPIC) is the default. |
16571 | lt_prog_compiler_static_GCJ='-non_shared' |
16572 | ;; |
16573 | |
16574 | newsos6) |
16575 | lt_prog_compiler_pic_GCJ='-KPIC' |
16576 | lt_prog_compiler_static_GCJ='-Bstatic' |
16577 | ;; |
16578 | |
ac40fd9e |
16579 | linux* | k*bsd*-gnu) |
d9898ee8 |
16580 | case $cc_basename in |
16581 | icc* | ecc*) |
16582 | lt_prog_compiler_wl_GCJ='-Wl,' |
16583 | lt_prog_compiler_pic_GCJ='-KPIC' |
16584 | lt_prog_compiler_static_GCJ='-static' |
16585 | ;; |
16586 | pgcc* | pgf77* | pgf90* | pgf95*) |
16587 | # Portland Group compilers (*not* the Pentium gcc compiler, |
16588 | # which looks to be a dead project) |
16589 | lt_prog_compiler_wl_GCJ='-Wl,' |
16590 | lt_prog_compiler_pic_GCJ='-fpic' |
16591 | lt_prog_compiler_static_GCJ='-Bstatic' |
16592 | ;; |
16593 | ccc*) |
16594 | lt_prog_compiler_wl_GCJ='-Wl,' |
16595 | # All Alpha code is PIC. |
16596 | lt_prog_compiler_static_GCJ='-non_shared' |
16597 | ;; |
ac40fd9e |
16598 | *) |
16599 | case `$CC -V 2>&1 | sed 5q` in |
16600 | *Sun\ C*) |
16601 | # Sun C 5.9 |
16602 | lt_prog_compiler_pic_GCJ='-KPIC' |
16603 | lt_prog_compiler_static_GCJ='-Bstatic' |
16604 | lt_prog_compiler_wl_GCJ='-Wl,' |
16605 | ;; |
16606 | *Sun\ F*) |
16607 | # Sun Fortran 8.3 passes all unrecognized flags to the linker |
16608 | lt_prog_compiler_pic_GCJ='-KPIC' |
16609 | lt_prog_compiler_static_GCJ='-Bstatic' |
16610 | lt_prog_compiler_wl_GCJ='' |
16611 | ;; |
16612 | esac |
16613 | ;; |
d9898ee8 |
16614 | esac |
16615 | ;; |
16616 | |
16617 | osf3* | osf4* | osf5*) |
16618 | lt_prog_compiler_wl_GCJ='-Wl,' |
16619 | # All OSF/1 code is PIC. |
16620 | lt_prog_compiler_static_GCJ='-non_shared' |
16621 | ;; |
16622 | |
ac40fd9e |
16623 | rdos*) |
16624 | lt_prog_compiler_static_GCJ='-non_shared' |
16625 | ;; |
16626 | |
d9898ee8 |
16627 | solaris*) |
16628 | lt_prog_compiler_pic_GCJ='-KPIC' |
16629 | lt_prog_compiler_static_GCJ='-Bstatic' |
16630 | case $cc_basename in |
16631 | f77* | f90* | f95*) |
16632 | lt_prog_compiler_wl_GCJ='-Qoption ld ';; |
16633 | *) |
16634 | lt_prog_compiler_wl_GCJ='-Wl,';; |
16635 | esac |
16636 | ;; |
16637 | |
16638 | sunos4*) |
16639 | lt_prog_compiler_wl_GCJ='-Qoption ld ' |
16640 | lt_prog_compiler_pic_GCJ='-PIC' |
16641 | lt_prog_compiler_static_GCJ='-Bstatic' |
16642 | ;; |
16643 | |
16644 | sysv4 | sysv4.2uw2* | sysv4.3*) |
16645 | lt_prog_compiler_wl_GCJ='-Wl,' |
16646 | lt_prog_compiler_pic_GCJ='-KPIC' |
16647 | lt_prog_compiler_static_GCJ='-Bstatic' |
16648 | ;; |
16649 | |
16650 | sysv4*MP*) |
16651 | if test -d /usr/nec ;then |
16652 | lt_prog_compiler_pic_GCJ='-Kconform_pic' |
16653 | lt_prog_compiler_static_GCJ='-Bstatic' |
16654 | fi |
16655 | ;; |
16656 | |
16657 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
16658 | lt_prog_compiler_wl_GCJ='-Wl,' |
16659 | lt_prog_compiler_pic_GCJ='-KPIC' |
16660 | lt_prog_compiler_static_GCJ='-Bstatic' |
16661 | ;; |
16662 | |
16663 | unicos*) |
16664 | lt_prog_compiler_wl_GCJ='-Wl,' |
16665 | lt_prog_compiler_can_build_shared_GCJ=no |
16666 | ;; |
16667 | |
16668 | uts4*) |
16669 | lt_prog_compiler_pic_GCJ='-pic' |
16670 | lt_prog_compiler_static_GCJ='-Bstatic' |
16671 | ;; |
16672 | |
16673 | *) |
16674 | lt_prog_compiler_can_build_shared_GCJ=no |
16675 | ;; |
16676 | esac |
16677 | fi |
16678 | |
dd184caf |
16679 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 |
16680 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } |
d9898ee8 |
16681 | |
16682 | # |
16683 | # Check to make sure the PIC flag actually works. |
16684 | # |
16685 | if test -n "$lt_prog_compiler_pic_GCJ"; then |
16686 | |
dd184caf |
16687 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 |
16688 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } |
d9898ee8 |
16689 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then |
16690 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16691 | else |
16692 | lt_prog_compiler_pic_works_GCJ=no |
16693 | ac_outfile=conftest.$ac_objext |
ac40fd9e |
16694 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
d9898ee8 |
16695 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ" |
16696 | # Insert the option either (1) after the last *FLAGS variable, or |
16697 | # (2) before a word containing "conftest.", or (3) at the end. |
16698 | # Note that $ac_compile itself does not contain backslashes and begins |
16699 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
16700 | # The option is referenced via a variable to avoid confusing sed. |
16701 | lt_compile=`echo "$ac_compile" | $SED \ |
16702 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
16703 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
16704 | -e 's:$: $lt_compiler_flag:'` |
ac40fd9e |
16705 | (eval echo "\"\$as_me:16705: $lt_compile\"" >&5) |
d9898ee8 |
16706 | (eval "$lt_compile" 2>conftest.err) |
16707 | ac_status=$? |
16708 | cat conftest.err >&5 |
ac40fd9e |
16709 | echo "$as_me:16709: \$? = $ac_status" >&5 |
d9898ee8 |
16710 | if (exit $ac_status) && test -s "$ac_outfile"; then |
16711 | # The compiler can only warn and ignore the option if not recognized |
16712 | # So say no if there are warnings other than the usual output. |
16713 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
16714 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
16715 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
16716 | lt_prog_compiler_pic_works_GCJ=yes |
16717 | fi |
16718 | fi |
16719 | $rm conftest* |
16720 | |
16721 | fi |
dd184caf |
16722 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 |
16723 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } |
d9898ee8 |
16724 | |
16725 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then |
16726 | case $lt_prog_compiler_pic_GCJ in |
16727 | "" | " "*) ;; |
16728 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; |
16729 | esac |
16730 | else |
16731 | lt_prog_compiler_pic_GCJ= |
16732 | lt_prog_compiler_can_build_shared_GCJ=no |
16733 | fi |
16734 | |
16735 | fi |
16736 | case $host_os in |
16737 | # For platforms which do not support PIC, -DPIC is meaningless: |
16738 | *djgpp*) |
16739 | lt_prog_compiler_pic_GCJ= |
16740 | ;; |
16741 | *) |
16742 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" |
16743 | ;; |
16744 | esac |
16745 | |
16746 | # |
16747 | # Check to make sure the static flag actually works. |
16748 | # |
16749 | wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" |
dd184caf |
16750 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
16751 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
d9898ee8 |
16752 | if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then |
16753 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16754 | else |
16755 | lt_prog_compiler_static_works_GCJ=no |
16756 | save_LDFLAGS="$LDFLAGS" |
16757 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
ac40fd9e |
16758 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
d9898ee8 |
16759 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
16760 | # The linker can only warn and ignore the option if not recognized |
16761 | # So say no if there are warnings |
16762 | if test -s conftest.err; then |
16763 | # Append any errors to the config.log. |
16764 | cat conftest.err 1>&5 |
16765 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
16766 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
16767 | if diff conftest.exp conftest.er2 >/dev/null; then |
16768 | lt_prog_compiler_static_works_GCJ=yes |
16769 | fi |
16770 | else |
16771 | lt_prog_compiler_static_works_GCJ=yes |
16772 | fi |
16773 | fi |
16774 | $rm conftest* |
16775 | LDFLAGS="$save_LDFLAGS" |
16776 | |
16777 | fi |
dd184caf |
16778 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 |
16779 | echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } |
d9898ee8 |
16780 | |
16781 | if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then |
16782 | : |
16783 | else |
16784 | lt_prog_compiler_static_GCJ= |
16785 | fi |
16786 | |
16787 | |
dd184caf |
16788 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
16789 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
d9898ee8 |
16790 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
16791 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16792 | else |
16793 | lt_cv_prog_compiler_c_o_GCJ=no |
16794 | $rm -r conftest 2>/dev/null |
16795 | mkdir conftest |
16796 | cd conftest |
16797 | mkdir out |
ac40fd9e |
16798 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
d9898ee8 |
16799 | |
16800 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
16801 | # Insert the option either (1) after the last *FLAGS variable, or |
16802 | # (2) before a word containing "conftest.", or (3) at the end. |
16803 | # Note that $ac_compile itself does not contain backslashes and begins |
16804 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
16805 | lt_compile=`echo "$ac_compile" | $SED \ |
16806 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
16807 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
16808 | -e 's:$: $lt_compiler_flag:'` |
ac40fd9e |
16809 | (eval echo "\"\$as_me:16809: $lt_compile\"" >&5) |
d9898ee8 |
16810 | (eval "$lt_compile" 2>out/conftest.err) |
16811 | ac_status=$? |
16812 | cat out/conftest.err >&5 |
ac40fd9e |
16813 | echo "$as_me:16813: \$? = $ac_status" >&5 |
d9898ee8 |
16814 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
16815 | then |
16816 | # The compiler can only warn and ignore the option if not recognized |
16817 | # So say no if there are warnings |
16818 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
16819 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
16820 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
16821 | lt_cv_prog_compiler_c_o_GCJ=yes |
16822 | fi |
16823 | fi |
16824 | chmod u+w . 2>&5 |
16825 | $rm conftest* |
16826 | # SGI C++ compiler will create directory out/ii_files/ for |
16827 | # template instantiation |
16828 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
16829 | $rm out/* && rmdir out |
16830 | cd .. |
16831 | rmdir conftest |
16832 | $rm conftest* |
16833 | |
16834 | fi |
dd184caf |
16835 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
16836 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } |
d9898ee8 |
16837 | |
16838 | |
16839 | hard_links="nottested" |
16840 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then |
16841 | # do not overwrite the value of need_locks provided by the user |
dd184caf |
16842 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
16843 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
d9898ee8 |
16844 | hard_links=yes |
16845 | $rm conftest* |
16846 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
16847 | touch conftest.a |
16848 | ln conftest.a conftest.b 2>&5 || hard_links=no |
16849 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
dd184caf |
16850 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
16851 | echo "${ECHO_T}$hard_links" >&6; } |
d9898ee8 |
16852 | if test "$hard_links" = no; then |
16853 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
16854 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
16855 | need_locks=warn |
16856 | fi |
16857 | else |
16858 | need_locks=no |
16859 | fi |
16860 | |
dd184caf |
16861 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
16862 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
d9898ee8 |
16863 | |
16864 | runpath_var= |
16865 | allow_undefined_flag_GCJ= |
16866 | enable_shared_with_static_runtimes_GCJ=no |
16867 | archive_cmds_GCJ= |
16868 | archive_expsym_cmds_GCJ= |
16869 | old_archive_From_new_cmds_GCJ= |
16870 | old_archive_from_expsyms_cmds_GCJ= |
16871 | export_dynamic_flag_spec_GCJ= |
16872 | whole_archive_flag_spec_GCJ= |
16873 | thread_safe_flag_spec_GCJ= |
16874 | hardcode_libdir_flag_spec_GCJ= |
16875 | hardcode_libdir_flag_spec_ld_GCJ= |
16876 | hardcode_libdir_separator_GCJ= |
16877 | hardcode_direct_GCJ=no |
16878 | hardcode_minus_L_GCJ=no |
16879 | hardcode_shlibpath_var_GCJ=unsupported |
16880 | link_all_deplibs_GCJ=unknown |
16881 | hardcode_automatic_GCJ=no |
16882 | module_cmds_GCJ= |
16883 | module_expsym_cmds_GCJ= |
16884 | always_export_symbols_GCJ=no |
16885 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
16886 | # include_expsyms should be a list of space-separated symbols to be *always* |
16887 | # included in the symbol list |
16888 | include_expsyms_GCJ= |
16889 | # exclude_expsyms can be an extended regexp of symbols to exclude |
16890 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
16891 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
16892 | # as well as any symbol that contains `d'. |
16893 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" |
16894 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
16895 | # platforms (ab)use it in PIC code, but their linkers get confused if |
16896 | # the symbol is explicitly referenced. Since portable code cannot |
16897 | # rely on this symbol name, it's probably fine to never include it in |
16898 | # preloaded symbol tables. |
16899 | extract_expsyms_cmds= |
16900 | # Just being paranoid about ensuring that cc_basename is set. |
16901 | for cc_temp in $compiler""; do |
16902 | case $cc_temp in |
16903 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
16904 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
16905 | \-*) ;; |
16906 | *) break;; |
16907 | esac |
16908 | done |
16909 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
16910 | |
16911 | case $host_os in |
16912 | cygwin* | mingw* | pw32*) |
16913 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
16914 | # When not using gcc, we currently assume that we are using |
16915 | # Microsoft Visual C++. |
16916 | if test "$GCC" != yes; then |
16917 | with_gnu_ld=no |
16918 | fi |
16919 | ;; |
16920 | interix*) |
16921 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
16922 | with_gnu_ld=yes |
16923 | ;; |
16924 | openbsd*) |
16925 | with_gnu_ld=no |
16926 | ;; |
16927 | esac |
16928 | |
16929 | ld_shlibs_GCJ=yes |
16930 | if test "$with_gnu_ld" = yes; then |
16931 | # If archive_cmds runs LD, not CC, wlarc should be empty |
16932 | wlarc='${wl}' |
16933 | |
16934 | # Set some defaults for GNU ld with shared library support. These |
16935 | # are reset later if shared libraries are not supported. Putting them |
16936 | # here allows them to be overridden if necessary. |
16937 | runpath_var=LD_RUN_PATH |
16938 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' |
16939 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' |
16940 | # ancient GNU ld didn't support --whole-archive et. al. |
16941 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
16942 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
16943 | else |
16944 | whole_archive_flag_spec_GCJ= |
16945 | fi |
16946 | supports_anon_versioning=no |
16947 | case `$LD -v 2>/dev/null` in |
16948 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
16949 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
16950 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
16951 | *\ 2.11.*) ;; # other 2.11 versions |
16952 | *) supports_anon_versioning=yes ;; |
16953 | esac |
16954 | |
16955 | # See if GNU ld supports shared libraries. |
16956 | case $host_os in |
16957 | aix3* | aix4* | aix5*) |
16958 | # On AIX/PPC, the GNU linker is very broken |
16959 | if test "$host_cpu" != ia64; then |
16960 | ld_shlibs_GCJ=no |
16961 | cat <<EOF 1>&2 |
16962 | |
16963 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
16964 | *** to be unable to reliably create shared libraries on AIX. |
16965 | *** Therefore, libtool is disabling shared libraries support. If you |
16966 | *** really care for shared libraries, you may want to modify your PATH |
16967 | *** so that a non-GNU linker is found, and then restart. |
16968 | |
16969 | EOF |
16970 | fi |
16971 | ;; |
16972 | |
16973 | amigaos*) |
16974 | 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)' |
16975 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16976 | hardcode_minus_L_GCJ=yes |
16977 | |
16978 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
16979 | # that the semantics of dynamic libraries on AmigaOS, at least up |
16980 | # to version 4, is to share data among multiple programs linked |
16981 | # with the same dynamic library. Since this doesn't match the |
16982 | # behavior of shared libraries on other platforms, we can't use |
16983 | # them. |
16984 | ld_shlibs_GCJ=no |
16985 | ;; |
16986 | |
16987 | beos*) |
16988 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
16989 | allow_undefined_flag_GCJ=unsupported |
16990 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
16991 | # support --undefined. This deserves some investigation. FIXME |
16992 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
16993 | else |
16994 | ld_shlibs_GCJ=no |
16995 | fi |
16996 | ;; |
16997 | |
16998 | cygwin* | mingw* | pw32*) |
16999 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, |
17000 | # as there is no search path for DLLs. |
17001 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17002 | allow_undefined_flag_GCJ=unsupported |
17003 | always_export_symbols_GCJ=no |
17004 | enable_shared_with_static_runtimes_GCJ=yes |
ac40fd9e |
17005 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
d9898ee8 |
17006 | |
17007 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
17008 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
17009 | # If the export-symbols file already is a .def file (1st line |
17010 | # is EXPORTS), use it as is; otherwise, prepend... |
17011 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
17012 | cp $export_symbols $output_objdir/$soname.def; |
17013 | else |
17014 | echo EXPORTS > $output_objdir/$soname.def; |
17015 | cat $export_symbols >> $output_objdir/$soname.def; |
17016 | fi~ |
17017 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
17018 | else |
17019 | ld_shlibs_GCJ=no |
17020 | fi |
17021 | ;; |
17022 | |
ac40fd9e |
17023 | interix[3-9]*) |
d9898ee8 |
17024 | hardcode_direct_GCJ=no |
17025 | hardcode_shlibpath_var_GCJ=no |
17026 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
17027 | export_dynamic_flag_spec_GCJ='${wl}-E' |
17028 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
17029 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
17030 | # default) and relocated if they conflict, which is a slow very memory |
17031 | # consuming and fragmenting process. To avoid this, we pick a random, |
17032 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
17033 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
17034 | 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' |
17035 | 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' |
17036 | ;; |
17037 | |
ac40fd9e |
17038 | gnu* | linux* | k*bsd*-gnu) |
d9898ee8 |
17039 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
17040 | tmp_addflag= |
17041 | case $cc_basename,$host_cpu in |
17042 | pgcc*) # Portland Group C compiler |
17043 | 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' |
17044 | tmp_addflag=' $pic_flag' |
17045 | ;; |
17046 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
17047 | 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' |
17048 | tmp_addflag=' $pic_flag -Mnomain' ;; |
17049 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
17050 | tmp_addflag=' -i_dynamic' ;; |
17051 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
17052 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
17053 | ifc* | ifort*) # Intel Fortran compiler |
17054 | tmp_addflag=' -nofor_main' ;; |
17055 | esac |
ac40fd9e |
17056 | case `$CC -V 2>&1 | sed 5q` in |
17057 | *Sun\ C*) # Sun C 5.9 |
17058 | whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
17059 | tmp_sharedflag='-G' ;; |
17060 | *Sun\ F*) # Sun Fortran 8.3 |
17061 | tmp_sharedflag='-G' ;; |
17062 | *) |
17063 | tmp_sharedflag='-shared' ;; |
17064 | esac |
17065 | archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
d9898ee8 |
17066 | |
17067 | if test $supports_anon_versioning = yes; then |
17068 | archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ |
17069 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
17070 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
ac40fd9e |
17071 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
d9898ee8 |
17072 | fi |
17073 | else |
17074 | ld_shlibs_GCJ=no |
17075 | fi |
17076 | ;; |
17077 | |
17078 | netbsd*) |
17079 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
17080 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
17081 | wlarc= |
17082 | else |
17083 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
17084 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
17085 | fi |
17086 | ;; |
17087 | |
17088 | solaris*) |
17089 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
17090 | ld_shlibs_GCJ=no |
17091 | cat <<EOF 1>&2 |
17092 | |
17093 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
17094 | *** create shared libraries on Solaris systems. Therefore, libtool |
17095 | *** is disabling shared libraries support. We urge you to upgrade GNU |
17096 | *** binutils to release 2.9.1 or newer. Another option is to modify |
17097 | *** your PATH or compiler configuration so that the native linker is |
17098 | *** used, and then restart. |
17099 | |
17100 | EOF |
17101 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
17102 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
17103 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
17104 | else |
17105 | ld_shlibs_GCJ=no |
17106 | fi |
17107 | ;; |
17108 | |
17109 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
17110 | case `$LD -v 2>&1` in |
17111 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
17112 | ld_shlibs_GCJ=no |
17113 | cat <<_LT_EOF 1>&2 |
17114 | |
17115 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
17116 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
17117 | *** is disabling shared libraries support. We urge you to upgrade GNU |
17118 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
17119 | *** your PATH or compiler configuration so that the native linker is |
17120 | *** used, and then restart. |
17121 | |
17122 | _LT_EOF |
17123 | ;; |
17124 | *) |
17125 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
17126 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
17127 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
17128 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
17129 | else |
17130 | ld_shlibs_GCJ=no |
17131 | fi |
17132 | ;; |
17133 | esac |
17134 | ;; |
17135 | |
17136 | sunos4*) |
17137 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
17138 | wlarc= |
17139 | hardcode_direct_GCJ=yes |
17140 | hardcode_shlibpath_var_GCJ=no |
17141 | ;; |
17142 | |
17143 | *) |
17144 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
17145 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
17146 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
17147 | else |
17148 | ld_shlibs_GCJ=no |
17149 | fi |
17150 | ;; |
17151 | esac |
17152 | |
17153 | if test "$ld_shlibs_GCJ" = no; then |
17154 | runpath_var= |
17155 | hardcode_libdir_flag_spec_GCJ= |
17156 | export_dynamic_flag_spec_GCJ= |
17157 | whole_archive_flag_spec_GCJ= |
17158 | fi |
17159 | else |
17160 | # PORTME fill in a description of your system's linker (not GNU ld) |
17161 | case $host_os in |
17162 | aix3*) |
17163 | allow_undefined_flag_GCJ=unsupported |
17164 | always_export_symbols_GCJ=yes |
17165 | 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' |
17166 | # Note: this linker hardcodes the directories in LIBPATH if there |
17167 | # are no directories specified by -L. |
17168 | hardcode_minus_L_GCJ=yes |
17169 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
17170 | # Neither direct hardcoding nor static linking is supported with a |
17171 | # broken collect2. |
17172 | hardcode_direct_GCJ=unsupported |
17173 | fi |
17174 | ;; |
17175 | |
17176 | aix4* | aix5*) |
17177 | if test "$host_cpu" = ia64; then |
17178 | # On IA64, the linker does run time linking by default, so we don't |
17179 | # have to do anything special. |
17180 | aix_use_runtimelinking=no |
17181 | exp_sym_flag='-Bexport' |
17182 | no_entry_flag="" |
17183 | else |
17184 | # If we're using GNU nm, then we don't want the "-C" option. |
17185 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
17186 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
17187 | 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' |
17188 | else |
17189 | 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' |
17190 | fi |
17191 | aix_use_runtimelinking=no |
17192 | |
17193 | # Test if we are trying to use run time linking or normal |
17194 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
17195 | # need to do runtime linking. |
17196 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
17197 | for ld_flag in $LDFLAGS; do |
17198 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
17199 | aix_use_runtimelinking=yes |
17200 | break |
17201 | fi |
17202 | done |
17203 | ;; |
17204 | esac |
17205 | |
17206 | exp_sym_flag='-bexport' |
17207 | no_entry_flag='-bnoentry' |
17208 | fi |
17209 | |
17210 | # When large executables or shared objects are built, AIX ld can |
17211 | # have problems creating the table of contents. If linking a library |
17212 | # or program results in "error TOC overflow" add -mminimal-toc to |
17213 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
17214 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
17215 | |
17216 | archive_cmds_GCJ='' |
17217 | hardcode_direct_GCJ=yes |
17218 | hardcode_libdir_separator_GCJ=':' |
17219 | link_all_deplibs_GCJ=yes |
17220 | |
17221 | if test "$GCC" = yes; then |
17222 | case $host_os in aix4.[012]|aix4.[012].*) |
17223 | # We only want to do this on AIX 4.2 and lower, the check |
17224 | # below for broken collect2 doesn't work under 4.3+ |
17225 | collect2name=`${CC} -print-prog-name=collect2` |
17226 | if test -f "$collect2name" && \ |
17227 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
17228 | then |
17229 | # We have reworked collect2 |
ac40fd9e |
17230 | : |
d9898ee8 |
17231 | else |
17232 | # We have old collect2 |
17233 | hardcode_direct_GCJ=unsupported |
17234 | # It fails to find uninstalled libraries when the uninstalled |
17235 | # path is not listed in the libpath. Setting hardcode_minus_L |
17236 | # to unsupported forces relinking |
17237 | hardcode_minus_L_GCJ=yes |
17238 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17239 | hardcode_libdir_separator_GCJ= |
17240 | fi |
17241 | ;; |
17242 | esac |
17243 | shared_flag='-shared' |
17244 | if test "$aix_use_runtimelinking" = yes; then |
17245 | shared_flag="$shared_flag "'${wl}-G' |
17246 | fi |
17247 | else |
17248 | # not using gcc |
17249 | if test "$host_cpu" = ia64; then |
17250 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
17251 | # chokes on -Wl,-G. The following line is correct: |
17252 | shared_flag='-G' |
17253 | else |
17254 | if test "$aix_use_runtimelinking" = yes; then |
17255 | shared_flag='${wl}-G' |
17256 | else |
17257 | shared_flag='${wl}-bM:SRE' |
17258 | fi |
17259 | fi |
17260 | fi |
17261 | |
17262 | # It seems that -bexpall does not export symbols beginning with |
17263 | # underscore (_), so it is better to generate a list of symbols to export. |
17264 | always_export_symbols_GCJ=yes |
17265 | if test "$aix_use_runtimelinking" = yes; then |
17266 | # Warning - without using the other runtime loading flags (-brtl), |
17267 | # -berok will link without error, but may produce a broken library. |
17268 | allow_undefined_flag_GCJ='-berok' |
17269 | # Determine the default libpath from the value encoded in an empty executable. |
17270 | cat >conftest.$ac_ext <<_ACEOF |
17271 | /* confdefs.h. */ |
17272 | _ACEOF |
17273 | cat confdefs.h >>conftest.$ac_ext |
17274 | cat >>conftest.$ac_ext <<_ACEOF |
17275 | /* end confdefs.h. */ |
17276 | |
17277 | int |
17278 | main () |
17279 | { |
17280 | |
17281 | ; |
17282 | return 0; |
17283 | } |
17284 | _ACEOF |
17285 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
17286 | if { (ac_try="$ac_link" |
17287 | case "(($ac_try" in |
17288 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
17289 | *) ac_try_echo=$ac_try;; |
17290 | esac |
17291 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
17292 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
17293 | ac_status=$? |
17294 | grep -v '^ *+' conftest.er1 >conftest.err |
17295 | rm -f conftest.er1 |
17296 | cat conftest.err >&5 |
17297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
17298 | (exit $ac_status); } && { |
17299 | test -z "$ac_c_werror_flag" || |
17300 | test ! -s conftest.err |
17301 | } && test -s conftest$ac_exeext && |
17302 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
17303 | |
ac40fd9e |
17304 | lt_aix_libpath_sed=' |
17305 | /Import File Strings/,/^$/ { |
17306 | /^0/ { |
17307 | s/^0 *\(.*\)$/\1/ |
17308 | p |
17309 | } |
17310 | }' |
17311 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
d9898ee8 |
17312 | # Check for a 64-bit object if we didn't find anything. |
ac40fd9e |
17313 | if test -z "$aix_libpath"; then |
17314 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
17315 | fi |
d9898ee8 |
17316 | else |
17317 | echo "$as_me: failed program was:" >&5 |
17318 | sed 's/^/| /' conftest.$ac_ext >&5 |
17319 | |
dd184caf |
17320 | |
d9898ee8 |
17321 | fi |
dd184caf |
17322 | |
17323 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
17324 | conftest$ac_exeext conftest.$ac_ext |
17325 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
17326 | |
17327 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
17328 | 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" |
17329 | else |
17330 | if test "$host_cpu" = ia64; then |
17331 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' |
17332 | allow_undefined_flag_GCJ="-z nodefs" |
17333 | 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" |
17334 | else |
17335 | # Determine the default libpath from the value encoded in an empty executable. |
17336 | cat >conftest.$ac_ext <<_ACEOF |
17337 | /* confdefs.h. */ |
17338 | _ACEOF |
17339 | cat confdefs.h >>conftest.$ac_ext |
17340 | cat >>conftest.$ac_ext <<_ACEOF |
17341 | /* end confdefs.h. */ |
17342 | |
17343 | int |
17344 | main () |
17345 | { |
17346 | |
17347 | ; |
17348 | return 0; |
17349 | } |
17350 | _ACEOF |
17351 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
17352 | if { (ac_try="$ac_link" |
17353 | case "(($ac_try" in |
17354 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
17355 | *) ac_try_echo=$ac_try;; |
17356 | esac |
17357 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
17358 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
17359 | ac_status=$? |
17360 | grep -v '^ *+' conftest.er1 >conftest.err |
17361 | rm -f conftest.er1 |
17362 | cat conftest.err >&5 |
17363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
17364 | (exit $ac_status); } && { |
17365 | test -z "$ac_c_werror_flag" || |
17366 | test ! -s conftest.err |
17367 | } && test -s conftest$ac_exeext && |
17368 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
17369 | |
ac40fd9e |
17370 | lt_aix_libpath_sed=' |
17371 | /Import File Strings/,/^$/ { |
17372 | /^0/ { |
17373 | s/^0 *\(.*\)$/\1/ |
17374 | p |
17375 | } |
17376 | }' |
17377 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
d9898ee8 |
17378 | # Check for a 64-bit object if we didn't find anything. |
ac40fd9e |
17379 | if test -z "$aix_libpath"; then |
17380 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
17381 | fi |
d9898ee8 |
17382 | else |
17383 | echo "$as_me: failed program was:" >&5 |
17384 | sed 's/^/| /' conftest.$ac_ext >&5 |
17385 | |
dd184caf |
17386 | |
d9898ee8 |
17387 | fi |
dd184caf |
17388 | |
17389 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
17390 | conftest$ac_exeext conftest.$ac_ext |
17391 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
17392 | |
17393 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
17394 | # Warning - without using the other run time loading flags, |
17395 | # -berok will link without error, but may produce a broken library. |
17396 | no_undefined_flag_GCJ=' ${wl}-bernotok' |
17397 | allow_undefined_flag_GCJ=' ${wl}-berok' |
17398 | # Exported symbols can be pulled into shared objects from archives |
17399 | whole_archive_flag_spec_GCJ='$convenience' |
17400 | archive_cmds_need_lc_GCJ=yes |
17401 | # This is similar to how AIX traditionally builds its shared libraries. |
17402 | 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' |
17403 | fi |
17404 | fi |
17405 | ;; |
17406 | |
17407 | amigaos*) |
17408 | 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)' |
17409 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17410 | hardcode_minus_L_GCJ=yes |
17411 | # see comment about different semantics on the GNU ld section |
17412 | ld_shlibs_GCJ=no |
17413 | ;; |
17414 | |
17415 | bsdi[45]*) |
17416 | export_dynamic_flag_spec_GCJ=-rdynamic |
17417 | ;; |
17418 | |
17419 | cygwin* | mingw* | pw32*) |
17420 | # When not using gcc, we currently assume that we are using |
17421 | # Microsoft Visual C++. |
17422 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
17423 | # no search path for DLLs. |
17424 | hardcode_libdir_flag_spec_GCJ=' ' |
17425 | allow_undefined_flag_GCJ=unsupported |
17426 | # Tell ltmain to make .lib files, not .a files. |
17427 | libext=lib |
17428 | # Tell ltmain to make .dll files, not .so files. |
17429 | shrext_cmds=".dll" |
17430 | # FIXME: Setting linknames here is a bad hack. |
17431 | archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
17432 | # The linker will automatically build a .lib file if we build a DLL. |
17433 | old_archive_From_new_cmds_GCJ='true' |
17434 | # FIXME: Should let the user specify the lib program. |
ac40fd9e |
17435 | old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs' |
d9898ee8 |
17436 | fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' |
17437 | enable_shared_with_static_runtimes_GCJ=yes |
17438 | ;; |
17439 | |
17440 | darwin* | rhapsody*) |
17441 | case $host_os in |
17442 | rhapsody* | darwin1.[012]) |
17443 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' |
17444 | ;; |
17445 | *) # Darwin 1.3 on |
17446 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
17447 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
17448 | else |
17449 | case ${MACOSX_DEPLOYMENT_TARGET} in |
17450 | 10.[012]) |
17451 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
17452 | ;; |
17453 | 10.*) |
17454 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' |
17455 | ;; |
17456 | esac |
17457 | fi |
17458 | ;; |
17459 | esac |
17460 | archive_cmds_need_lc_GCJ=no |
17461 | hardcode_direct_GCJ=no |
17462 | hardcode_automatic_GCJ=yes |
17463 | hardcode_shlibpath_var_GCJ=unsupported |
17464 | whole_archive_flag_spec_GCJ='' |
17465 | link_all_deplibs_GCJ=yes |
17466 | if test "$GCC" = yes ; then |
17467 | output_verbose_link_cmd='echo' |
17468 | archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
17469 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
17470 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
17471 | 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}' |
17472 | 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}' |
17473 | else |
17474 | case $cc_basename in |
17475 | xlc*) |
17476 | output_verbose_link_cmd='echo' |
ac40fd9e |
17477 | archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' |
d9898ee8 |
17478 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
17479 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
ac40fd9e |
17480 | 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
d9898ee8 |
17481 | 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}' |
17482 | ;; |
17483 | *) |
17484 | ld_shlibs_GCJ=no |
17485 | ;; |
17486 | esac |
17487 | fi |
17488 | ;; |
17489 | |
17490 | dgux*) |
17491 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17492 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17493 | hardcode_shlibpath_var_GCJ=no |
17494 | ;; |
17495 | |
17496 | freebsd1*) |
17497 | ld_shlibs_GCJ=no |
17498 | ;; |
17499 | |
17500 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
17501 | # support. Future versions do this automatically, but an explicit c++rt0.o |
17502 | # does not break anything, and helps significantly (at the cost of a little |
17503 | # extra space). |
17504 | freebsd2.2*) |
17505 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
17506 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
17507 | hardcode_direct_GCJ=yes |
17508 | hardcode_shlibpath_var_GCJ=no |
17509 | ;; |
17510 | |
17511 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
17512 | freebsd2*) |
17513 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
17514 | hardcode_direct_GCJ=yes |
17515 | hardcode_minus_L_GCJ=yes |
17516 | hardcode_shlibpath_var_GCJ=no |
17517 | ;; |
17518 | |
17519 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
ac40fd9e |
17520 | freebsd* | dragonfly*) |
d9898ee8 |
17521 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
17522 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
17523 | hardcode_direct_GCJ=yes |
17524 | hardcode_shlibpath_var_GCJ=no |
17525 | ;; |
17526 | |
17527 | hpux9*) |
17528 | if test "$GCC" = yes; then |
17529 | 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' |
17530 | else |
17531 | 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' |
17532 | fi |
17533 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
17534 | hardcode_libdir_separator_GCJ=: |
17535 | hardcode_direct_GCJ=yes |
17536 | |
17537 | # hardcode_minus_L: Not really in the search PATH, |
17538 | # but as the default location of the library. |
17539 | hardcode_minus_L_GCJ=yes |
17540 | export_dynamic_flag_spec_GCJ='${wl}-E' |
17541 | ;; |
17542 | |
17543 | hpux10*) |
17544 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
17545 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
17546 | else |
17547 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
17548 | fi |
17549 | if test "$with_gnu_ld" = no; then |
17550 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
17551 | hardcode_libdir_separator_GCJ=: |
17552 | |
17553 | hardcode_direct_GCJ=yes |
17554 | export_dynamic_flag_spec_GCJ='${wl}-E' |
17555 | |
17556 | # hardcode_minus_L: Not really in the search PATH, |
17557 | # but as the default location of the library. |
17558 | hardcode_minus_L_GCJ=yes |
17559 | fi |
17560 | ;; |
17561 | |
17562 | hpux11*) |
17563 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
17564 | case $host_cpu in |
17565 | hppa*64*) |
17566 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17567 | ;; |
17568 | ia64*) |
17569 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
17570 | ;; |
17571 | *) |
17572 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
17573 | ;; |
17574 | esac |
17575 | else |
17576 | case $host_cpu in |
17577 | hppa*64*) |
17578 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17579 | ;; |
17580 | ia64*) |
17581 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
17582 | ;; |
17583 | *) |
17584 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
17585 | ;; |
17586 | esac |
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 | case $host_cpu in |
17593 | hppa*64*|ia64*) |
17594 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' |
17595 | hardcode_direct_GCJ=no |
17596 | hardcode_shlibpath_var_GCJ=no |
17597 | ;; |
17598 | *) |
17599 | hardcode_direct_GCJ=yes |
17600 | export_dynamic_flag_spec_GCJ='${wl}-E' |
17601 | |
17602 | # hardcode_minus_L: Not really in the search PATH, |
17603 | # but as the default location of the library. |
17604 | hardcode_minus_L_GCJ=yes |
17605 | ;; |
17606 | esac |
17607 | fi |
17608 | ;; |
17609 | |
17610 | irix5* | irix6* | nonstopux*) |
17611 | if test "$GCC" = yes; then |
17612 | 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' |
17613 | else |
17614 | 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' |
17615 | hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' |
17616 | fi |
17617 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
17618 | hardcode_libdir_separator_GCJ=: |
17619 | link_all_deplibs_GCJ=yes |
17620 | ;; |
17621 | |
17622 | netbsd*) |
17623 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
17624 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
17625 | else |
17626 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
17627 | fi |
17628 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
17629 | hardcode_direct_GCJ=yes |
17630 | hardcode_shlibpath_var_GCJ=no |
17631 | ;; |
17632 | |
17633 | newsos6) |
17634 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17635 | hardcode_direct_GCJ=yes |
17636 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
17637 | hardcode_libdir_separator_GCJ=: |
17638 | hardcode_shlibpath_var_GCJ=no |
17639 | ;; |
17640 | |
17641 | openbsd*) |
ac40fd9e |
17642 | if test -f /usr/libexec/ld.so; then |
17643 | hardcode_direct_GCJ=yes |
17644 | hardcode_shlibpath_var_GCJ=no |
17645 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
17646 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
17647 | archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
17648 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
17649 | export_dynamic_flag_spec_GCJ='${wl}-E' |
17650 | else |
17651 | case $host_os in |
17652 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
17653 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
17654 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
17655 | ;; |
17656 | *) |
17657 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
17658 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
17659 | ;; |
17660 | esac |
17661 | fi |
d9898ee8 |
17662 | else |
ac40fd9e |
17663 | ld_shlibs_GCJ=no |
d9898ee8 |
17664 | fi |
17665 | ;; |
17666 | |
17667 | os2*) |
17668 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17669 | hardcode_minus_L_GCJ=yes |
17670 | allow_undefined_flag_GCJ=unsupported |
17671 | 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' |
17672 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
17673 | ;; |
17674 | |
17675 | osf3*) |
17676 | if test "$GCC" = yes; then |
17677 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
17678 | 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' |
17679 | else |
17680 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
17681 | 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' |
17682 | fi |
17683 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
17684 | hardcode_libdir_separator_GCJ=: |
17685 | ;; |
17686 | |
17687 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
17688 | if test "$GCC" = yes; then |
17689 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
17690 | 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' |
17691 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
17692 | else |
17693 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
17694 | 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' |
17695 | 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~ |
17696 | $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' |
17697 | |
17698 | # Both c and cxx compiler support -rpath directly |
17699 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' |
17700 | fi |
17701 | hardcode_libdir_separator_GCJ=: |
17702 | ;; |
17703 | |
17704 | solaris*) |
17705 | no_undefined_flag_GCJ=' -z text' |
17706 | if test "$GCC" = yes; then |
17707 | wlarc='${wl}' |
17708 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17709 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
17710 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
17711 | else |
17712 | wlarc='' |
17713 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17714 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
17715 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
17716 | fi |
17717 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
17718 | hardcode_shlibpath_var_GCJ=no |
17719 | case $host_os in |
17720 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
17721 | *) |
ac40fd9e |
17722 | # The compiler driver will combine and reorder linker options, |
17723 | # but understands `-z linker_flag'. GCC discards it without `$wl', |
17724 | # but is careful enough not to reorder. |
d9898ee8 |
17725 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
ac40fd9e |
17726 | if test "$GCC" = yes; then |
17727 | whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
17728 | else |
17729 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' |
17730 | fi |
17731 | ;; |
d9898ee8 |
17732 | esac |
17733 | link_all_deplibs_GCJ=yes |
17734 | ;; |
17735 | |
17736 | sunos4*) |
17737 | if test "x$host_vendor" = xsequent; then |
17738 | # Use $CC to link under sequent, because it throws in some extra .o |
17739 | # files that make .init and .fini sections work. |
17740 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
17741 | else |
17742 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
17743 | fi |
17744 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17745 | hardcode_direct_GCJ=yes |
17746 | hardcode_minus_L_GCJ=yes |
17747 | hardcode_shlibpath_var_GCJ=no |
17748 | ;; |
17749 | |
17750 | sysv4) |
17751 | case $host_vendor in |
17752 | sni) |
17753 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17754 | hardcode_direct_GCJ=yes # is this really true??? |
17755 | ;; |
17756 | siemens) |
17757 | ## LD is ld it makes a PLAMLIB |
17758 | ## CC just makes a GrossModule. |
17759 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
17760 | reload_cmds_GCJ='$CC -r -o $output$reload_objs' |
17761 | hardcode_direct_GCJ=no |
17762 | ;; |
17763 | motorola) |
17764 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17765 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie |
17766 | ;; |
17767 | esac |
17768 | runpath_var='LD_RUN_PATH' |
17769 | hardcode_shlibpath_var_GCJ=no |
17770 | ;; |
17771 | |
17772 | sysv4.3*) |
17773 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17774 | hardcode_shlibpath_var_GCJ=no |
17775 | export_dynamic_flag_spec_GCJ='-Bexport' |
17776 | ;; |
17777 | |
17778 | sysv4*MP*) |
17779 | if test -d /usr/nec; then |
17780 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17781 | hardcode_shlibpath_var_GCJ=no |
17782 | runpath_var=LD_RUN_PATH |
17783 | hardcode_runpath_var=yes |
17784 | ld_shlibs_GCJ=yes |
17785 | fi |
17786 | ;; |
17787 | |
ac40fd9e |
17788 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
d9898ee8 |
17789 | no_undefined_flag_GCJ='${wl}-z,text' |
17790 | archive_cmds_need_lc_GCJ=no |
17791 | hardcode_shlibpath_var_GCJ=no |
17792 | runpath_var='LD_RUN_PATH' |
17793 | |
17794 | if test "$GCC" = yes; then |
17795 | archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
17796 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
17797 | else |
17798 | archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
17799 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
17800 | fi |
17801 | ;; |
17802 | |
17803 | sysv5* | sco3.2v5* | sco5v6*) |
17804 | # Note: We can NOT use -z defs as we might desire, because we do not |
17805 | # link with -lc, and that would cause any symbols used from libc to |
17806 | # always be unresolved, which means just about no library would |
17807 | # ever link correctly. If we're not using GNU ld we use -z text |
17808 | # though, which does catch some bad symbols but isn't as heavy-handed |
17809 | # as -z defs. |
17810 | no_undefined_flag_GCJ='${wl}-z,text' |
17811 | allow_undefined_flag_GCJ='${wl}-z,nodefs' |
17812 | archive_cmds_need_lc_GCJ=no |
17813 | hardcode_shlibpath_var_GCJ=no |
17814 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
17815 | hardcode_libdir_separator_GCJ=':' |
17816 | link_all_deplibs_GCJ=yes |
17817 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' |
17818 | runpath_var='LD_RUN_PATH' |
17819 | |
17820 | if test "$GCC" = yes; then |
17821 | archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17822 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17823 | else |
17824 | archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17825 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17826 | fi |
17827 | ;; |
17828 | |
17829 | uts4*) |
17830 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17831 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17832 | hardcode_shlibpath_var_GCJ=no |
17833 | ;; |
17834 | |
17835 | *) |
17836 | ld_shlibs_GCJ=no |
17837 | ;; |
17838 | esac |
17839 | fi |
17840 | |
dd184caf |
17841 | { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 |
17842 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } |
d9898ee8 |
17843 | test "$ld_shlibs_GCJ" = no && can_build_shared=no |
17844 | |
17845 | # |
17846 | # Do we need to explicitly link libc? |
17847 | # |
17848 | case "x$archive_cmds_need_lc_GCJ" in |
17849 | x|xyes) |
17850 | # Assume -lc should be added |
17851 | archive_cmds_need_lc_GCJ=yes |
17852 | |
17853 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
17854 | case $archive_cmds_GCJ in |
17855 | *'~'*) |
17856 | # FIXME: we may have to deal with multi-command sequences. |
17857 | ;; |
17858 | '$CC '*) |
17859 | # Test whether the compiler implicitly links with -lc since on some |
17860 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
17861 | # to ld, don't add -lc before -lgcc. |
dd184caf |
17862 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
17863 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
d9898ee8 |
17864 | $rm conftest* |
ac40fd9e |
17865 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
d9898ee8 |
17866 | |
17867 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
17868 | (eval $ac_compile) 2>&5 |
17869 | ac_status=$? |
17870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17871 | (exit $ac_status); } 2>conftest.err; then |
17872 | soname=conftest |
17873 | lib=conftest |
17874 | libobjs=conftest.$ac_objext |
17875 | deplibs= |
17876 | wl=$lt_prog_compiler_wl_GCJ |
17877 | pic_flag=$lt_prog_compiler_pic_GCJ |
17878 | compiler_flags=-v |
17879 | linker_flags=-v |
17880 | verstring= |
17881 | output_objdir=. |
17882 | libname=conftest |
17883 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ |
17884 | allow_undefined_flag_GCJ= |
17885 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
17886 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
17887 | ac_status=$? |
17888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17889 | (exit $ac_status); } |
17890 | then |
17891 | archive_cmds_need_lc_GCJ=no |
17892 | else |
17893 | archive_cmds_need_lc_GCJ=yes |
17894 | fi |
17895 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag |
17896 | else |
17897 | cat conftest.err 1>&5 |
17898 | fi |
17899 | $rm conftest* |
dd184caf |
17900 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 |
17901 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } |
d9898ee8 |
17902 | ;; |
17903 | esac |
17904 | fi |
17905 | ;; |
17906 | esac |
17907 | |
dd184caf |
17908 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
17909 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
d9898ee8 |
17910 | library_names_spec= |
17911 | libname_spec='lib$name' |
17912 | soname_spec= |
17913 | shrext_cmds=".so" |
17914 | postinstall_cmds= |
17915 | postuninstall_cmds= |
17916 | finish_cmds= |
17917 | finish_eval= |
17918 | shlibpath_var= |
17919 | shlibpath_overrides_runpath=unknown |
17920 | version_type=none |
17921 | dynamic_linker="$host_os ld.so" |
17922 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
ac40fd9e |
17923 | |
d9898ee8 |
17924 | need_lib_prefix=unknown |
17925 | hardcode_into_libs=no |
17926 | |
17927 | # when you set need_version to no, make sure it does not cause -set_version |
17928 | # flags to be left without arguments |
17929 | need_version=unknown |
17930 | |
17931 | case $host_os in |
17932 | aix3*) |
17933 | version_type=linux |
17934 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
17935 | shlibpath_var=LIBPATH |
17936 | |
17937 | # AIX 3 has no versioning support, so we append a major version to the name. |
17938 | soname_spec='${libname}${release}${shared_ext}$major' |
17939 | ;; |
17940 | |
17941 | aix4* | aix5*) |
17942 | version_type=linux |
17943 | need_lib_prefix=no |
17944 | need_version=no |
17945 | hardcode_into_libs=yes |
17946 | if test "$host_cpu" = ia64; then |
17947 | # AIX 5 supports IA64 |
17948 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
17949 | shlibpath_var=LD_LIBRARY_PATH |
17950 | else |
17951 | # With GCC up to 2.95.x, collect2 would create an import file |
17952 | # for dependence libraries. The import file would start with |
17953 | # the line `#! .'. This would cause the generated library to |
17954 | # depend on `.', always an invalid library. This was fixed in |
17955 | # development snapshots of GCC prior to 3.0. |
17956 | case $host_os in |
17957 | aix4 | aix4.[01] | aix4.[01].*) |
17958 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
17959 | echo ' yes ' |
17960 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
17961 | : |
17962 | else |
17963 | can_build_shared=no |
17964 | fi |
17965 | ;; |
17966 | esac |
17967 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
17968 | # soname into executable. Probably we can add versioning support to |
17969 | # collect2, so additional links can be useful in future. |
17970 | if test "$aix_use_runtimelinking" = yes; then |
17971 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
17972 | # instead of lib<name>.a to let people know that these are not |
17973 | # typical AIX shared libraries. |
17974 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17975 | else |
17976 | # We preserve .a as extension for shared libraries through AIX4.2 |
17977 | # and later when we are not doing run time linking. |
17978 | library_names_spec='${libname}${release}.a $libname.a' |
17979 | soname_spec='${libname}${release}${shared_ext}$major' |
17980 | fi |
17981 | shlibpath_var=LIBPATH |
17982 | fi |
17983 | ;; |
17984 | |
17985 | amigaos*) |
17986 | library_names_spec='$libname.ixlibrary $libname.a' |
17987 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
17988 | 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' |
17989 | ;; |
17990 | |
17991 | beos*) |
17992 | library_names_spec='${libname}${shared_ext}' |
17993 | dynamic_linker="$host_os ld.so" |
17994 | shlibpath_var=LIBRARY_PATH |
17995 | ;; |
17996 | |
17997 | bsdi[45]*) |
17998 | version_type=linux |
17999 | need_version=no |
18000 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18001 | soname_spec='${libname}${release}${shared_ext}$major' |
18002 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
18003 | shlibpath_var=LD_LIBRARY_PATH |
18004 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
18005 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
18006 | # the default ld.so.conf also contains /usr/contrib/lib and |
18007 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
18008 | # libtool to hard-code these into programs |
18009 | ;; |
18010 | |
18011 | cygwin* | mingw* | pw32*) |
18012 | version_type=windows |
18013 | shrext_cmds=".dll" |
18014 | need_version=no |
18015 | need_lib_prefix=no |
18016 | |
18017 | case $GCC,$host_os in |
18018 | yes,cygwin* | yes,mingw* | yes,pw32*) |
18019 | library_names_spec='$libname.dll.a' |
18020 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
18021 | postinstall_cmds='base_file=`basename \${file}`~ |
18022 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
18023 | dldir=$destdir/`dirname \$dlpath`~ |
18024 | test -d \$dldir || mkdir -p \$dldir~ |
18025 | $install_prog $dir/$dlname \$dldir/$dlname~ |
18026 | chmod a+x \$dldir/$dlname' |
18027 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
18028 | dlpath=$dir/\$dldll~ |
18029 | $rm \$dlpath' |
18030 | shlibpath_overrides_runpath=yes |
18031 | |
18032 | case $host_os in |
18033 | cygwin*) |
18034 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
18035 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
18036 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
18037 | ;; |
18038 | mingw*) |
18039 | # MinGW DLLs use traditional 'lib' prefix |
18040 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
18041 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
18042 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
18043 | # It is most probably a Windows format PATH printed by |
18044 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
18045 | # path with ; separators, and with drive letters. We can handle the |
18046 | # drive letters (cygwin fileutils understands them), so leave them, |
18047 | # especially as we might pass files found there to a mingw objdump, |
18048 | # which wouldn't understand a cygwinified path. Ahh. |
18049 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
18050 | else |
18051 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
18052 | fi |
18053 | ;; |
18054 | pw32*) |
18055 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
18056 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
18057 | ;; |
18058 | esac |
18059 | ;; |
18060 | |
18061 | *) |
18062 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
18063 | ;; |
18064 | esac |
18065 | dynamic_linker='Win32 ld.exe' |
18066 | # FIXME: first we should search . and the directory the executable is in |
18067 | shlibpath_var=PATH |
18068 | ;; |
18069 | |
18070 | darwin* | rhapsody*) |
18071 | dynamic_linker="$host_os dyld" |
18072 | version_type=darwin |
18073 | need_lib_prefix=no |
18074 | need_version=no |
18075 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
18076 | soname_spec='${libname}${release}${major}$shared_ext' |
18077 | shlibpath_overrides_runpath=yes |
18078 | shlibpath_var=DYLD_LIBRARY_PATH |
18079 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
ac40fd9e |
18080 | |
d9898ee8 |
18081 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
18082 | ;; |
18083 | |
18084 | dgux*) |
18085 | version_type=linux |
18086 | need_lib_prefix=no |
18087 | need_version=no |
18088 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
18089 | soname_spec='${libname}${release}${shared_ext}$major' |
18090 | shlibpath_var=LD_LIBRARY_PATH |
18091 | ;; |
18092 | |
18093 | freebsd1*) |
18094 | dynamic_linker=no |
18095 | ;; |
18096 | |
d9898ee8 |
18097 | freebsd* | dragonfly*) |
18098 | # DragonFly does not have aout. When/if they implement a new |
18099 | # versioning mechanism, adjust this. |
18100 | if test -x /usr/bin/objformat; then |
18101 | objformat=`/usr/bin/objformat` |
18102 | else |
18103 | case $host_os in |
18104 | freebsd[123]*) objformat=aout ;; |
18105 | *) objformat=elf ;; |
18106 | esac |
18107 | fi |
18108 | version_type=freebsd-$objformat |
18109 | case $version_type in |
18110 | freebsd-elf*) |
18111 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
18112 | need_version=no |
18113 | need_lib_prefix=no |
18114 | ;; |
18115 | freebsd-*) |
18116 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
18117 | need_version=yes |
18118 | ;; |
18119 | esac |
18120 | shlibpath_var=LD_LIBRARY_PATH |
18121 | case $host_os in |
18122 | freebsd2*) |
18123 | shlibpath_overrides_runpath=yes |
18124 | ;; |
18125 | freebsd3.[01]* | freebsdelf3.[01]*) |
18126 | shlibpath_overrides_runpath=yes |
18127 | hardcode_into_libs=yes |
18128 | ;; |
18129 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
18130 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
18131 | shlibpath_overrides_runpath=no |
18132 | hardcode_into_libs=yes |
18133 | ;; |
ac40fd9e |
18134 | *) # from 4.6 on, and DragonFly |
d9898ee8 |
18135 | shlibpath_overrides_runpath=yes |
18136 | hardcode_into_libs=yes |
18137 | ;; |
18138 | esac |
18139 | ;; |
18140 | |
18141 | gnu*) |
18142 | version_type=linux |
18143 | need_lib_prefix=no |
18144 | need_version=no |
18145 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
18146 | soname_spec='${libname}${release}${shared_ext}$major' |
18147 | shlibpath_var=LD_LIBRARY_PATH |
18148 | hardcode_into_libs=yes |
18149 | ;; |
18150 | |
18151 | hpux9* | hpux10* | hpux11*) |
18152 | # Give a soname corresponding to the major version so that dld.sl refuses to |
18153 | # link against other versions. |
18154 | version_type=sunos |
18155 | need_lib_prefix=no |
18156 | need_version=no |
18157 | case $host_cpu in |
18158 | ia64*) |
18159 | shrext_cmds='.so' |
18160 | hardcode_into_libs=yes |
18161 | dynamic_linker="$host_os dld.so" |
18162 | shlibpath_var=LD_LIBRARY_PATH |
18163 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
18164 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18165 | soname_spec='${libname}${release}${shared_ext}$major' |
18166 | if test "X$HPUX_IA64_MODE" = X32; then |
18167 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
18168 | else |
18169 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
18170 | fi |
18171 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
18172 | ;; |
18173 | hppa*64*) |
18174 | shrext_cmds='.sl' |
18175 | hardcode_into_libs=yes |
18176 | dynamic_linker="$host_os dld.sl" |
18177 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
18178 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
18179 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18180 | soname_spec='${libname}${release}${shared_ext}$major' |
18181 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
18182 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
18183 | ;; |
18184 | *) |
18185 | shrext_cmds='.sl' |
18186 | dynamic_linker="$host_os dld.sl" |
18187 | shlibpath_var=SHLIB_PATH |
18188 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
18189 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18190 | soname_spec='${libname}${release}${shared_ext}$major' |
18191 | ;; |
18192 | esac |
18193 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
18194 | postinstall_cmds='chmod 555 $lib' |
18195 | ;; |
18196 | |
ac40fd9e |
18197 | interix[3-9]*) |
d9898ee8 |
18198 | version_type=linux |
18199 | need_lib_prefix=no |
18200 | need_version=no |
18201 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
18202 | soname_spec='${libname}${release}${shared_ext}$major' |
18203 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
18204 | shlibpath_var=LD_LIBRARY_PATH |
18205 | shlibpath_overrides_runpath=no |
18206 | hardcode_into_libs=yes |
18207 | ;; |
18208 | |
18209 | irix5* | irix6* | nonstopux*) |
18210 | case $host_os in |
18211 | nonstopux*) version_type=nonstopux ;; |
18212 | *) |
18213 | if test "$lt_cv_prog_gnu_ld" = yes; then |
18214 | version_type=linux |
18215 | else |
18216 | version_type=irix |
18217 | fi ;; |
18218 | esac |
18219 | need_lib_prefix=no |
18220 | need_version=no |
18221 | soname_spec='${libname}${release}${shared_ext}$major' |
18222 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
18223 | case $host_os in |
18224 | irix5* | nonstopux*) |
18225 | libsuff= shlibsuff= |
18226 | ;; |
18227 | *) |
18228 | case $LD in # libtool.m4 will add one of these switches to LD |
18229 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
18230 | libsuff= shlibsuff= libmagic=32-bit;; |
18231 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
18232 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
18233 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
18234 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
18235 | *) libsuff= shlibsuff= libmagic=never-match;; |
18236 | esac |
18237 | ;; |
18238 | esac |
18239 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
18240 | shlibpath_overrides_runpath=no |
18241 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
18242 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
18243 | hardcode_into_libs=yes |
18244 | ;; |
18245 | |
18246 | # No shared lib support for Linux oldld, aout, or coff. |
18247 | linux*oldld* | linux*aout* | linux*coff*) |
18248 | dynamic_linker=no |
18249 | ;; |
18250 | |
18251 | # This must be Linux ELF. |
ac40fd9e |
18252 | linux* | k*bsd*-gnu) |
d9898ee8 |
18253 | version_type=linux |
18254 | need_lib_prefix=no |
18255 | need_version=no |
18256 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18257 | soname_spec='${libname}${release}${shared_ext}$major' |
18258 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
18259 | shlibpath_var=LD_LIBRARY_PATH |
18260 | shlibpath_overrides_runpath=no |
18261 | # This implies no fast_install, which is unacceptable. |
18262 | # Some rework will be needed to allow for fast_install |
18263 | # before this can be enabled. |
18264 | hardcode_into_libs=yes |
ac40fd9e |
18265 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
18266 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
d9898ee8 |
18267 | |
18268 | # Append ld.so.conf contents to the search path |
18269 | if test -f /etc/ld.so.conf; then |
ac40fd9e |
18270 | 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/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
18271 | sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" |
d9898ee8 |
18272 | fi |
18273 | |
18274 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
18275 | # powerpc, because MkLinux only supported shared libraries with the |
18276 | # GNU dynamic linker. Since this was broken with cross compilers, |
18277 | # most powerpc-linux boxes support dynamic linking these days and |
18278 | # people can always --disable-shared, the test was removed, and we |
18279 | # assume the GNU/Linux dynamic linker is in use. |
18280 | dynamic_linker='GNU/Linux ld.so' |
18281 | ;; |
18282 | |
d9898ee8 |
18283 | netbsd*) |
18284 | version_type=sunos |
18285 | need_lib_prefix=no |
18286 | need_version=no |
18287 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
18288 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
18289 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
18290 | dynamic_linker='NetBSD (a.out) ld.so' |
18291 | else |
18292 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
18293 | soname_spec='${libname}${release}${shared_ext}$major' |
18294 | dynamic_linker='NetBSD ld.elf_so' |
18295 | fi |
18296 | shlibpath_var=LD_LIBRARY_PATH |
18297 | shlibpath_overrides_runpath=yes |
18298 | hardcode_into_libs=yes |
18299 | ;; |
18300 | |
18301 | newsos6) |
18302 | version_type=linux |
18303 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18304 | shlibpath_var=LD_LIBRARY_PATH |
18305 | shlibpath_overrides_runpath=yes |
18306 | ;; |
18307 | |
18308 | nto-qnx*) |
18309 | version_type=linux |
18310 | need_lib_prefix=no |
18311 | need_version=no |
18312 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18313 | soname_spec='${libname}${release}${shared_ext}$major' |
18314 | shlibpath_var=LD_LIBRARY_PATH |
18315 | shlibpath_overrides_runpath=yes |
18316 | ;; |
18317 | |
18318 | openbsd*) |
18319 | version_type=sunos |
18320 | sys_lib_dlsearch_path_spec="/usr/lib" |
18321 | need_lib_prefix=no |
18322 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
18323 | case $host_os in |
18324 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
18325 | *) need_version=no ;; |
18326 | esac |
18327 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
18328 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
18329 | shlibpath_var=LD_LIBRARY_PATH |
18330 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
18331 | case $host_os in |
18332 | openbsd2.[89] | openbsd2.[89].*) |
18333 | shlibpath_overrides_runpath=no |
18334 | ;; |
18335 | *) |
18336 | shlibpath_overrides_runpath=yes |
18337 | ;; |
18338 | esac |
18339 | else |
18340 | shlibpath_overrides_runpath=yes |
18341 | fi |
18342 | ;; |
18343 | |
18344 | os2*) |
18345 | libname_spec='$name' |
18346 | shrext_cmds=".dll" |
18347 | need_lib_prefix=no |
18348 | library_names_spec='$libname${shared_ext} $libname.a' |
18349 | dynamic_linker='OS/2 ld.exe' |
18350 | shlibpath_var=LIBPATH |
18351 | ;; |
18352 | |
18353 | osf3* | osf4* | osf5*) |
18354 | version_type=osf |
18355 | need_lib_prefix=no |
18356 | need_version=no |
18357 | soname_spec='${libname}${release}${shared_ext}$major' |
18358 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18359 | shlibpath_var=LD_LIBRARY_PATH |
18360 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
18361 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
18362 | ;; |
18363 | |
ac40fd9e |
18364 | rdos*) |
18365 | dynamic_linker=no |
18366 | ;; |
18367 | |
d9898ee8 |
18368 | solaris*) |
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=yes |
18376 | hardcode_into_libs=yes |
18377 | # ldd complains unless libraries are executable |
18378 | postinstall_cmds='chmod +x $lib' |
18379 | ;; |
18380 | |
18381 | sunos4*) |
18382 | version_type=sunos |
18383 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
18384 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
18385 | shlibpath_var=LD_LIBRARY_PATH |
18386 | shlibpath_overrides_runpath=yes |
18387 | if test "$with_gnu_ld" = yes; then |
18388 | need_lib_prefix=no |
18389 | fi |
18390 | need_version=yes |
18391 | ;; |
18392 | |
18393 | sysv4 | sysv4.3*) |
18394 | version_type=linux |
18395 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18396 | soname_spec='${libname}${release}${shared_ext}$major' |
18397 | shlibpath_var=LD_LIBRARY_PATH |
18398 | case $host_vendor in |
18399 | sni) |
18400 | shlibpath_overrides_runpath=no |
18401 | need_lib_prefix=no |
18402 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
18403 | runpath_var=LD_RUN_PATH |
18404 | ;; |
18405 | siemens) |
18406 | need_lib_prefix=no |
18407 | ;; |
18408 | motorola) |
18409 | need_lib_prefix=no |
18410 | need_version=no |
18411 | shlibpath_overrides_runpath=no |
18412 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
18413 | ;; |
18414 | esac |
18415 | ;; |
18416 | |
18417 | sysv4*MP*) |
18418 | if test -d /usr/nec ;then |
18419 | version_type=linux |
18420 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
18421 | soname_spec='$libname${shared_ext}.$major' |
18422 | shlibpath_var=LD_LIBRARY_PATH |
18423 | fi |
18424 | ;; |
18425 | |
18426 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
18427 | version_type=freebsd-elf |
18428 | need_lib_prefix=no |
18429 | need_version=no |
18430 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
18431 | soname_spec='${libname}${release}${shared_ext}$major' |
18432 | shlibpath_var=LD_LIBRARY_PATH |
18433 | hardcode_into_libs=yes |
18434 | if test "$with_gnu_ld" = yes; then |
18435 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
18436 | shlibpath_overrides_runpath=no |
18437 | else |
18438 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
18439 | shlibpath_overrides_runpath=yes |
18440 | case $host_os in |
18441 | sco3.2v5*) |
18442 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
18443 | ;; |
18444 | esac |
18445 | fi |
18446 | sys_lib_dlsearch_path_spec='/usr/lib' |
18447 | ;; |
18448 | |
18449 | uts4*) |
18450 | version_type=linux |
18451 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18452 | soname_spec='${libname}${release}${shared_ext}$major' |
18453 | shlibpath_var=LD_LIBRARY_PATH |
18454 | ;; |
18455 | |
18456 | *) |
18457 | dynamic_linker=no |
18458 | ;; |
18459 | esac |
dd184caf |
18460 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
18461 | echo "${ECHO_T}$dynamic_linker" >&6; } |
d9898ee8 |
18462 | test "$dynamic_linker" = no && can_build_shared=no |
18463 | |
18464 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
18465 | if test "$GCC" = yes; then |
18466 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
18467 | fi |
18468 | |
dd184caf |
18469 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
18470 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
d9898ee8 |
18471 | hardcode_action_GCJ= |
18472 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ |
18473 | test -n "$runpath_var_GCJ" || \ |
18474 | test "X$hardcode_automatic_GCJ" = "Xyes" ; then |
18475 | |
18476 | # We can hardcode non-existant directories. |
18477 | if test "$hardcode_direct_GCJ" != no && |
18478 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
18479 | # have to relink, otherwise we might link with an installed library |
18480 | # when we should be linking with a yet-to-be-installed one |
18481 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && |
18482 | test "$hardcode_minus_L_GCJ" != no; then |
18483 | # Linking always hardcodes the temporary library directory. |
18484 | hardcode_action_GCJ=relink |
18485 | else |
18486 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
18487 | hardcode_action_GCJ=immediate |
18488 | fi |
18489 | else |
18490 | # We cannot hardcode anything, or else we can only hardcode existing |
18491 | # directories. |
18492 | hardcode_action_GCJ=unsupported |
18493 | fi |
dd184caf |
18494 | { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 |
18495 | echo "${ECHO_T}$hardcode_action_GCJ" >&6; } |
d9898ee8 |
18496 | |
18497 | if test "$hardcode_action_GCJ" = relink; then |
18498 | # Fast installation is not supported |
18499 | enable_fast_install=no |
18500 | elif test "$shlibpath_overrides_runpath" = yes || |
18501 | test "$enable_shared" = no; then |
18502 | # Fast installation is not necessary |
18503 | enable_fast_install=needless |
18504 | fi |
18505 | |
18506 | |
18507 | # The else clause should only fire when bootstrapping the |
18508 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
18509 | # with your package, and you will get complaints that there are |
18510 | # no rules to generate ltmain.sh. |
18511 | if test -f "$ltmain"; then |
18512 | # See if we are running on zsh, and set the options which allow our commands through |
18513 | # without removal of \ escapes. |
18514 | if test -n "${ZSH_VERSION+set}" ; then |
18515 | setopt NO_GLOB_SUBST |
18516 | fi |
18517 | # Now quote all the things that may contain metacharacters while being |
18518 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
18519 | # variables and quote the copies for generation of the libtool script. |
18520 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
18521 | SED SHELL STRIP \ |
18522 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
18523 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
18524 | deplibs_check_method reload_flag reload_cmds need_locks \ |
18525 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
18526 | lt_cv_sys_global_symbol_to_c_name_address \ |
18527 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
18528 | old_postinstall_cmds old_postuninstall_cmds \ |
18529 | compiler_GCJ \ |
18530 | CC_GCJ \ |
18531 | LD_GCJ \ |
18532 | lt_prog_compiler_wl_GCJ \ |
18533 | lt_prog_compiler_pic_GCJ \ |
18534 | lt_prog_compiler_static_GCJ \ |
18535 | lt_prog_compiler_no_builtin_flag_GCJ \ |
18536 | export_dynamic_flag_spec_GCJ \ |
18537 | thread_safe_flag_spec_GCJ \ |
18538 | whole_archive_flag_spec_GCJ \ |
18539 | enable_shared_with_static_runtimes_GCJ \ |
18540 | old_archive_cmds_GCJ \ |
18541 | old_archive_from_new_cmds_GCJ \ |
18542 | predep_objects_GCJ \ |
18543 | postdep_objects_GCJ \ |
18544 | predeps_GCJ \ |
18545 | postdeps_GCJ \ |
18546 | compiler_lib_search_path_GCJ \ |
18547 | archive_cmds_GCJ \ |
18548 | archive_expsym_cmds_GCJ \ |
18549 | postinstall_cmds_GCJ \ |
18550 | postuninstall_cmds_GCJ \ |
18551 | old_archive_from_expsyms_cmds_GCJ \ |
18552 | allow_undefined_flag_GCJ \ |
18553 | no_undefined_flag_GCJ \ |
18554 | export_symbols_cmds_GCJ \ |
18555 | hardcode_libdir_flag_spec_GCJ \ |
18556 | hardcode_libdir_flag_spec_ld_GCJ \ |
18557 | hardcode_libdir_separator_GCJ \ |
18558 | hardcode_automatic_GCJ \ |
18559 | module_cmds_GCJ \ |
18560 | module_expsym_cmds_GCJ \ |
18561 | lt_cv_prog_compiler_c_o_GCJ \ |
ac40fd9e |
18562 | fix_srcfile_path_GCJ \ |
d9898ee8 |
18563 | exclude_expsyms_GCJ \ |
18564 | include_expsyms_GCJ; do |
18565 | |
18566 | case $var in |
18567 | old_archive_cmds_GCJ | \ |
18568 | old_archive_from_new_cmds_GCJ | \ |
18569 | archive_cmds_GCJ | \ |
18570 | archive_expsym_cmds_GCJ | \ |
18571 | module_cmds_GCJ | \ |
18572 | module_expsym_cmds_GCJ | \ |
18573 | old_archive_from_expsyms_cmds_GCJ | \ |
18574 | export_symbols_cmds_GCJ | \ |
18575 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
18576 | postinstall_cmds | postuninstall_cmds | \ |
18577 | old_postinstall_cmds | old_postuninstall_cmds | \ |
18578 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
18579 | # Double-quote double-evaled strings. |
18580 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
18581 | ;; |
18582 | *) |
18583 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
18584 | ;; |
18585 | esac |
18586 | done |
18587 | |
18588 | case $lt_echo in |
18589 | *'\$0 --fallback-echo"') |
18590 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
18591 | ;; |
18592 | esac |
18593 | |
18594 | cfgfile="$ofile" |
18595 | |
18596 | cat <<__EOF__ >> "$cfgfile" |
18597 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
18598 | |
18599 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
18600 | |
18601 | # Shell to use when invoking shell scripts. |
18602 | SHELL=$lt_SHELL |
18603 | |
18604 | # Whether or not to build shared libraries. |
18605 | build_libtool_libs=$enable_shared |
18606 | |
18607 | # Whether or not to build static libraries. |
18608 | build_old_libs=$enable_static |
18609 | |
18610 | # Whether or not to add -lc for building shared libraries. |
18611 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ |
18612 | |
18613 | # Whether or not to disallow shared libs when runtime libs are static |
18614 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ |
18615 | |
18616 | # Whether or not to optimize for fast installation. |
18617 | fast_install=$enable_fast_install |
18618 | |
18619 | # The host system. |
18620 | host_alias=$host_alias |
18621 | host=$host |
18622 | host_os=$host_os |
18623 | |
18624 | # The build system. |
18625 | build_alias=$build_alias |
18626 | build=$build |
18627 | build_os=$build_os |
18628 | |
18629 | # An echo program that does not interpret backslashes. |
18630 | echo=$lt_echo |
18631 | |
18632 | # The archiver. |
18633 | AR=$lt_AR |
18634 | AR_FLAGS=$lt_AR_FLAGS |
18635 | |
18636 | # A C compiler. |
18637 | LTCC=$lt_LTCC |
18638 | |
18639 | # LTCC compiler flags. |
18640 | LTCFLAGS=$lt_LTCFLAGS |
18641 | |
18642 | # A language-specific compiler. |
18643 | CC=$lt_compiler_GCJ |
18644 | |
18645 | # Is the compiler the GNU C compiler? |
18646 | with_gcc=$GCC_GCJ |
18647 | |
d9898ee8 |
18648 | # An ERE matcher. |
18649 | EGREP=$lt_EGREP |
18650 | |
18651 | # The linker used to build libraries. |
18652 | LD=$lt_LD_GCJ |
18653 | |
18654 | # Whether we need hard or soft links. |
18655 | LN_S=$lt_LN_S |
18656 | |
18657 | # A BSD-compatible nm program. |
18658 | NM=$lt_NM |
18659 | |
18660 | # A symbol stripping program |
18661 | STRIP=$lt_STRIP |
18662 | |
18663 | # Used to examine libraries when file_magic_cmd begins "file" |
18664 | MAGIC_CMD=$MAGIC_CMD |
18665 | |
18666 | # Used on cygwin: DLL creation program. |
18667 | DLLTOOL="$DLLTOOL" |
18668 | |
18669 | # Used on cygwin: object dumper. |
18670 | OBJDUMP="$OBJDUMP" |
18671 | |
18672 | # Used on cygwin: assembler. |
18673 | AS="$AS" |
18674 | |
18675 | # The name of the directory that contains temporary libtool files. |
18676 | objdir=$objdir |
18677 | |
18678 | # How to create reloadable object files. |
18679 | reload_flag=$lt_reload_flag |
18680 | reload_cmds=$lt_reload_cmds |
18681 | |
18682 | # How to pass a linker flag through the compiler. |
18683 | wl=$lt_lt_prog_compiler_wl_GCJ |
18684 | |
18685 | # Object file suffix (normally "o"). |
18686 | objext="$ac_objext" |
18687 | |
18688 | # Old archive suffix (normally "a"). |
18689 | libext="$libext" |
18690 | |
18691 | # Shared library suffix (normally ".so"). |
18692 | shrext_cmds='$shrext_cmds' |
18693 | |
18694 | # Executable file suffix (normally ""). |
18695 | exeext="$exeext" |
18696 | |
18697 | # Additional compiler flags for building library objects. |
18698 | pic_flag=$lt_lt_prog_compiler_pic_GCJ |
18699 | pic_mode=$pic_mode |
18700 | |
18701 | # What is the maximum length of a command? |
18702 | max_cmd_len=$lt_cv_sys_max_cmd_len |
18703 | |
18704 | # Does compiler simultaneously support -c and -o options? |
18705 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ |
18706 | |
18707 | # Must we lock files when doing compilation? |
18708 | need_locks=$lt_need_locks |
18709 | |
18710 | # Do we need the lib prefix for modules? |
18711 | need_lib_prefix=$need_lib_prefix |
18712 | |
18713 | # Do we need a version for libraries? |
18714 | need_version=$need_version |
18715 | |
18716 | # Whether dlopen is supported. |
18717 | dlopen_support=$enable_dlopen |
18718 | |
18719 | # Whether dlopen of programs is supported. |
18720 | dlopen_self=$enable_dlopen_self |
18721 | |
18722 | # Whether dlopen of statically linked programs is supported. |
18723 | dlopen_self_static=$enable_dlopen_self_static |
18724 | |
18725 | # Compiler flag to prevent dynamic linking. |
18726 | link_static_flag=$lt_lt_prog_compiler_static_GCJ |
18727 | |
18728 | # Compiler flag to turn off builtin functions. |
18729 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ |
18730 | |
18731 | # Compiler flag to allow reflexive dlopens. |
18732 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ |
18733 | |
18734 | # Compiler flag to generate shared objects directly from archives. |
18735 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ |
18736 | |
18737 | # Compiler flag to generate thread-safe objects. |
18738 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ |
18739 | |
18740 | # Library versioning type. |
18741 | version_type=$version_type |
18742 | |
18743 | # Format of library name prefix. |
18744 | libname_spec=$lt_libname_spec |
18745 | |
18746 | # List of archive names. First name is the real one, the rest are links. |
18747 | # The last name is the one that the linker finds with -lNAME. |
18748 | library_names_spec=$lt_library_names_spec |
18749 | |
18750 | # The coded name of the library, if different from the real name. |
18751 | soname_spec=$lt_soname_spec |
18752 | |
18753 | # Commands used to build and install an old-style archive. |
18754 | RANLIB=$lt_RANLIB |
18755 | old_archive_cmds=$lt_old_archive_cmds_GCJ |
18756 | old_postinstall_cmds=$lt_old_postinstall_cmds |
18757 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
18758 | |
18759 | # Create an old-style archive from a shared archive. |
18760 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ |
18761 | |
18762 | # Create a temporary old-style archive to link instead of a shared archive. |
18763 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ |
18764 | |
18765 | # Commands used to build and install a shared archive. |
18766 | archive_cmds=$lt_archive_cmds_GCJ |
18767 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ |
18768 | postinstall_cmds=$lt_postinstall_cmds |
18769 | postuninstall_cmds=$lt_postuninstall_cmds |
18770 | |
18771 | # Commands used to build a loadable module (assumed same as above if empty) |
18772 | module_cmds=$lt_module_cmds_GCJ |
18773 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ |
18774 | |
18775 | # Commands to strip libraries. |
18776 | old_striplib=$lt_old_striplib |
18777 | striplib=$lt_striplib |
18778 | |
18779 | # Dependencies to place before the objects being linked to create a |
18780 | # shared library. |
dd184caf |
18781 | predep_objects=$lt_predep_objects_GCJ |
d9898ee8 |
18782 | |
18783 | # Dependencies to place after the objects being linked to create a |
18784 | # shared library. |
dd184caf |
18785 | postdep_objects=$lt_postdep_objects_GCJ |
d9898ee8 |
18786 | |
18787 | # Dependencies to place before the objects being linked to create a |
18788 | # shared library. |
18789 | predeps=$lt_predeps_GCJ |
18790 | |
18791 | # Dependencies to place after the objects being linked to create a |
18792 | # shared library. |
18793 | postdeps=$lt_postdeps_GCJ |
18794 | |
18795 | # The library search path used internally by the compiler when linking |
18796 | # a shared library. |
dd184caf |
18797 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ |
d9898ee8 |
18798 | |
18799 | # Method to check whether dependent libraries are shared objects. |
18800 | deplibs_check_method=$lt_deplibs_check_method |
18801 | |
18802 | # Command to use when deplibs_check_method == file_magic. |
18803 | file_magic_cmd=$lt_file_magic_cmd |
18804 | |
18805 | # Flag that allows shared libraries with undefined symbols to be built. |
18806 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ |
18807 | |
18808 | # Flag that forces no undefined symbols. |
18809 | no_undefined_flag=$lt_no_undefined_flag_GCJ |
18810 | |
18811 | # Commands used to finish a libtool library installation in a directory. |
18812 | finish_cmds=$lt_finish_cmds |
18813 | |
18814 | # Same as above, but a single script fragment to be evaled but not shown. |
18815 | finish_eval=$lt_finish_eval |
18816 | |
18817 | # Take the output of nm and produce a listing of raw symbols and C names. |
18818 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
18819 | |
18820 | # Transform the output of nm in a proper C declaration |
18821 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
18822 | |
18823 | # Transform the output of nm in a C name address pair |
18824 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
18825 | |
18826 | # This is the shared library runtime path variable. |
18827 | runpath_var=$runpath_var |
18828 | |
18829 | # This is the shared library path variable. |
18830 | shlibpath_var=$shlibpath_var |
18831 | |
18832 | # Is shlibpath searched before the hard-coded library search path? |
18833 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
18834 | |
18835 | # How to hardcode a shared library path into an executable. |
18836 | hardcode_action=$hardcode_action_GCJ |
18837 | |
18838 | # Whether we should hardcode library paths into libraries. |
18839 | hardcode_into_libs=$hardcode_into_libs |
18840 | |
18841 | # Flag to hardcode \$libdir into a binary during linking. |
18842 | # This must work even if \$libdir does not exist. |
18843 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ |
18844 | |
18845 | # If ld is used when linking, flag to hardcode \$libdir into |
18846 | # a binary during linking. This must work even if \$libdir does |
18847 | # not exist. |
18848 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ |
18849 | |
18850 | # Whether we need a single -rpath flag with a separated argument. |
18851 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ |
18852 | |
18853 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
18854 | # resulting binary. |
18855 | hardcode_direct=$hardcode_direct_GCJ |
18856 | |
18857 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
18858 | # resulting binary. |
18859 | hardcode_minus_L=$hardcode_minus_L_GCJ |
18860 | |
18861 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
18862 | # the resulting binary. |
18863 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ |
18864 | |
18865 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
18866 | # and all subsequent libraries and executables linked against it. |
18867 | hardcode_automatic=$hardcode_automatic_GCJ |
18868 | |
18869 | # Variables whose values should be saved in libtool wrapper scripts and |
18870 | # restored at relink time. |
18871 | variables_saved_for_relink="$variables_saved_for_relink" |
18872 | |
18873 | # Whether libtool must link a program against all its dependency libraries. |
18874 | link_all_deplibs=$link_all_deplibs_GCJ |
18875 | |
18876 | # Compile-time system search path for libraries |
dd184caf |
18877 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
d9898ee8 |
18878 | |
18879 | # Run-time system search path for libraries |
18880 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
18881 | |
18882 | # Fix the shell variable \$srcfile for the compiler. |
ac40fd9e |
18883 | fix_srcfile_path=$lt_fix_srcfile_path |
d9898ee8 |
18884 | |
18885 | # Set to yes if exported symbols are required. |
18886 | always_export_symbols=$always_export_symbols_GCJ |
18887 | |
18888 | # The commands to list exported symbols. |
18889 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ |
18890 | |
18891 | # The commands to extract the exported symbol list from a shared archive. |
18892 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
18893 | |
18894 | # Symbols that should not be listed in the preloaded symbols. |
18895 | exclude_expsyms=$lt_exclude_expsyms_GCJ |
18896 | |
18897 | # Symbols that must always be exported. |
18898 | include_expsyms=$lt_include_expsyms_GCJ |
18899 | |
18900 | # ### END LIBTOOL TAG CONFIG: $tagname |
18901 | |
18902 | __EOF__ |
18903 | |
18904 | |
18905 | else |
18906 | # If there is no Makefile yet, we rely on a make rule to execute |
18907 | # `config.status --recheck' to rerun these tests and create the |
18908 | # libtool script then. |
18909 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
18910 | if test -f "$ltmain_in"; then |
18911 | test -f Makefile && make "$ltmain" |
18912 | fi |
18913 | fi |
18914 | |
18915 | |
18916 | ac_ext=c |
18917 | ac_cpp='$CPP $CPPFLAGS' |
18918 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
18919 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
18920 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
18921 | |
18922 | CC="$lt_save_CC" |
18923 | |
18924 | else |
18925 | tagname="" |
18926 | fi |
18927 | ;; |
18928 | |
18929 | RC) |
18930 | |
18931 | |
d9898ee8 |
18932 | # Source file extension for RC test sources. |
18933 | ac_ext=rc |
18934 | |
18935 | # Object file extension for compiled RC test sources. |
18936 | objext=o |
18937 | objext_RC=$objext |
18938 | |
18939 | # Code to be used in simple compile tests |
ac40fd9e |
18940 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' |
d9898ee8 |
18941 | |
18942 | # Code to be used in simple link tests |
18943 | lt_simple_link_test_code="$lt_simple_compile_test_code" |
18944 | |
18945 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
18946 | |
18947 | # If no C compiler was specified, use CC. |
18948 | LTCC=${LTCC-"$CC"} |
18949 | |
18950 | # If no C compiler flags were specified, use CFLAGS. |
18951 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
18952 | |
18953 | # Allow CC to be a program name with arguments. |
18954 | compiler=$CC |
18955 | |
18956 | |
18957 | # save warnings/boilerplate of simple test code |
18958 | ac_outfile=conftest.$ac_objext |
ac40fd9e |
18959 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
d9898ee8 |
18960 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
18961 | _lt_compiler_boilerplate=`cat conftest.err` |
18962 | $rm conftest* |
18963 | |
18964 | ac_outfile=conftest.$ac_objext |
ac40fd9e |
18965 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
d9898ee8 |
18966 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
18967 | _lt_linker_boilerplate=`cat conftest.err` |
18968 | $rm conftest* |
18969 | |
18970 | |
18971 | # Allow CC to be a program name with arguments. |
18972 | lt_save_CC="$CC" |
18973 | CC=${RC-"windres"} |
18974 | compiler=$CC |
18975 | compiler_RC=$CC |
18976 | for cc_temp in $compiler""; do |
18977 | case $cc_temp in |
18978 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
18979 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
18980 | \-*) ;; |
18981 | *) break;; |
18982 | esac |
18983 | done |
18984 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
18985 | |
18986 | lt_cv_prog_compiler_c_o_RC=yes |
18987 | |
18988 | # The else clause should only fire when bootstrapping the |
18989 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
18990 | # with your package, and you will get complaints that there are |
18991 | # no rules to generate ltmain.sh. |
18992 | if test -f "$ltmain"; then |
18993 | # See if we are running on zsh, and set the options which allow our commands through |
18994 | # without removal of \ escapes. |
18995 | if test -n "${ZSH_VERSION+set}" ; then |
18996 | setopt NO_GLOB_SUBST |
18997 | fi |
18998 | # Now quote all the things that may contain metacharacters while being |
18999 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
19000 | # variables and quote the copies for generation of the libtool script. |
19001 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
19002 | SED SHELL STRIP \ |
19003 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
19004 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
19005 | deplibs_check_method reload_flag reload_cmds need_locks \ |
19006 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
19007 | lt_cv_sys_global_symbol_to_c_name_address \ |
19008 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
19009 | old_postinstall_cmds old_postuninstall_cmds \ |
19010 | compiler_RC \ |
19011 | CC_RC \ |
19012 | LD_RC \ |
19013 | lt_prog_compiler_wl_RC \ |
19014 | lt_prog_compiler_pic_RC \ |
19015 | lt_prog_compiler_static_RC \ |
19016 | lt_prog_compiler_no_builtin_flag_RC \ |
19017 | export_dynamic_flag_spec_RC \ |
19018 | thread_safe_flag_spec_RC \ |
19019 | whole_archive_flag_spec_RC \ |
19020 | enable_shared_with_static_runtimes_RC \ |
19021 | old_archive_cmds_RC \ |
19022 | old_archive_from_new_cmds_RC \ |
19023 | predep_objects_RC \ |
19024 | postdep_objects_RC \ |
19025 | predeps_RC \ |
19026 | postdeps_RC \ |
19027 | compiler_lib_search_path_RC \ |
19028 | archive_cmds_RC \ |
19029 | archive_expsym_cmds_RC \ |
19030 | postinstall_cmds_RC \ |
19031 | postuninstall_cmds_RC \ |
19032 | old_archive_from_expsyms_cmds_RC \ |
19033 | allow_undefined_flag_RC \ |
19034 | no_undefined_flag_RC \ |
19035 | export_symbols_cmds_RC \ |
19036 | hardcode_libdir_flag_spec_RC \ |
19037 | hardcode_libdir_flag_spec_ld_RC \ |
19038 | hardcode_libdir_separator_RC \ |
19039 | hardcode_automatic_RC \ |
19040 | module_cmds_RC \ |
19041 | module_expsym_cmds_RC \ |
19042 | lt_cv_prog_compiler_c_o_RC \ |
ac40fd9e |
19043 | fix_srcfile_path_RC \ |
d9898ee8 |
19044 | exclude_expsyms_RC \ |
19045 | include_expsyms_RC; do |
19046 | |
19047 | case $var in |
19048 | old_archive_cmds_RC | \ |
19049 | old_archive_from_new_cmds_RC | \ |
19050 | archive_cmds_RC | \ |
19051 | archive_expsym_cmds_RC | \ |
19052 | module_cmds_RC | \ |
19053 | module_expsym_cmds_RC | \ |
19054 | old_archive_from_expsyms_cmds_RC | \ |
19055 | export_symbols_cmds_RC | \ |
19056 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
19057 | postinstall_cmds | postuninstall_cmds | \ |
19058 | old_postinstall_cmds | old_postuninstall_cmds | \ |
19059 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
19060 | # Double-quote double-evaled strings. |
19061 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
19062 | ;; |
19063 | *) |
19064 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
19065 | ;; |
19066 | esac |
19067 | done |
19068 | |
19069 | case $lt_echo in |
19070 | *'\$0 --fallback-echo"') |
19071 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
19072 | ;; |
19073 | esac |
19074 | |
19075 | cfgfile="$ofile" |
19076 | |
19077 | cat <<__EOF__ >> "$cfgfile" |
19078 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
19079 | |
19080 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
19081 | |
19082 | # Shell to use when invoking shell scripts. |
19083 | SHELL=$lt_SHELL |
19084 | |
19085 | # Whether or not to build shared libraries. |
19086 | build_libtool_libs=$enable_shared |
19087 | |
19088 | # Whether or not to build static libraries. |
19089 | build_old_libs=$enable_static |
19090 | |
19091 | # Whether or not to add -lc for building shared libraries. |
19092 | build_libtool_need_lc=$archive_cmds_need_lc_RC |
19093 | |
19094 | # Whether or not to disallow shared libs when runtime libs are static |
19095 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC |
19096 | |
19097 | # Whether or not to optimize for fast installation. |
19098 | fast_install=$enable_fast_install |
19099 | |
19100 | # The host system. |
19101 | host_alias=$host_alias |
19102 | host=$host |
19103 | host_os=$host_os |
19104 | |
19105 | # The build system. |
19106 | build_alias=$build_alias |
19107 | build=$build |
19108 | build_os=$build_os |
19109 | |
19110 | # An echo program that does not interpret backslashes. |
19111 | echo=$lt_echo |
19112 | |
19113 | # The archiver. |
19114 | AR=$lt_AR |
19115 | AR_FLAGS=$lt_AR_FLAGS |
19116 | |
19117 | # A C compiler. |
19118 | LTCC=$lt_LTCC |
19119 | |
19120 | # LTCC compiler flags. |
19121 | LTCFLAGS=$lt_LTCFLAGS |
19122 | |
19123 | # A language-specific compiler. |
19124 | CC=$lt_compiler_RC |
19125 | |
19126 | # Is the compiler the GNU C compiler? |
19127 | with_gcc=$GCC_RC |
19128 | |
d9898ee8 |
19129 | # An ERE matcher. |
19130 | EGREP=$lt_EGREP |
19131 | |
19132 | # The linker used to build libraries. |
19133 | LD=$lt_LD_RC |
19134 | |
19135 | # Whether we need hard or soft links. |
19136 | LN_S=$lt_LN_S |
19137 | |
19138 | # A BSD-compatible nm program. |
19139 | NM=$lt_NM |
19140 | |
19141 | # A symbol stripping program |
19142 | STRIP=$lt_STRIP |
19143 | |
19144 | # Used to examine libraries when file_magic_cmd begins "file" |
19145 | MAGIC_CMD=$MAGIC_CMD |
19146 | |
19147 | # Used on cygwin: DLL creation program. |
19148 | DLLTOOL="$DLLTOOL" |
19149 | |
19150 | # Used on cygwin: object dumper. |
19151 | OBJDUMP="$OBJDUMP" |
19152 | |
19153 | # Used on cygwin: assembler. |
19154 | AS="$AS" |
19155 | |
19156 | # The name of the directory that contains temporary libtool files. |
19157 | objdir=$objdir |
19158 | |
19159 | # How to create reloadable object files. |
19160 | reload_flag=$lt_reload_flag |
19161 | reload_cmds=$lt_reload_cmds |
19162 | |
19163 | # How to pass a linker flag through the compiler. |
19164 | wl=$lt_lt_prog_compiler_wl_RC |
19165 | |
19166 | # Object file suffix (normally "o"). |
19167 | objext="$ac_objext" |
19168 | |
19169 | # Old archive suffix (normally "a"). |
19170 | libext="$libext" |
19171 | |
19172 | # Shared library suffix (normally ".so"). |
19173 | shrext_cmds='$shrext_cmds' |
19174 | |
19175 | # Executable file suffix (normally ""). |
19176 | exeext="$exeext" |
19177 | |
19178 | # Additional compiler flags for building library objects. |
19179 | pic_flag=$lt_lt_prog_compiler_pic_RC |
19180 | pic_mode=$pic_mode |
19181 | |
19182 | # What is the maximum length of a command? |
19183 | max_cmd_len=$lt_cv_sys_max_cmd_len |
19184 | |
19185 | # Does compiler simultaneously support -c and -o options? |
19186 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC |
19187 | |
19188 | # Must we lock files when doing compilation? |
19189 | need_locks=$lt_need_locks |
19190 | |
19191 | # Do we need the lib prefix for modules? |
19192 | need_lib_prefix=$need_lib_prefix |
19193 | |
19194 | # Do we need a version for libraries? |
19195 | need_version=$need_version |
19196 | |
19197 | # Whether dlopen is supported. |
19198 | dlopen_support=$enable_dlopen |
19199 | |
19200 | # Whether dlopen of programs is supported. |
19201 | dlopen_self=$enable_dlopen_self |
19202 | |
19203 | # Whether dlopen of statically linked programs is supported. |
19204 | dlopen_self_static=$enable_dlopen_self_static |
19205 | |
19206 | # Compiler flag to prevent dynamic linking. |
19207 | link_static_flag=$lt_lt_prog_compiler_static_RC |
19208 | |
19209 | # Compiler flag to turn off builtin functions. |
19210 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC |
19211 | |
19212 | # Compiler flag to allow reflexive dlopens. |
19213 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC |
19214 | |
19215 | # Compiler flag to generate shared objects directly from archives. |
19216 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC |
19217 | |
19218 | # Compiler flag to generate thread-safe objects. |
19219 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC |
19220 | |
19221 | # Library versioning type. |
19222 | version_type=$version_type |
19223 | |
19224 | # Format of library name prefix. |
19225 | libname_spec=$lt_libname_spec |
19226 | |
19227 | # List of archive names. First name is the real one, the rest are links. |
19228 | # The last name is the one that the linker finds with -lNAME. |
19229 | library_names_spec=$lt_library_names_spec |
19230 | |
19231 | # The coded name of the library, if different from the real name. |
19232 | soname_spec=$lt_soname_spec |
19233 | |
19234 | # Commands used to build and install an old-style archive. |
19235 | RANLIB=$lt_RANLIB |
19236 | old_archive_cmds=$lt_old_archive_cmds_RC |
19237 | old_postinstall_cmds=$lt_old_postinstall_cmds |
19238 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
19239 | |
19240 | # Create an old-style archive from a shared archive. |
19241 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC |
19242 | |
19243 | # Create a temporary old-style archive to link instead of a shared archive. |
19244 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC |
19245 | |
19246 | # Commands used to build and install a shared archive. |
19247 | archive_cmds=$lt_archive_cmds_RC |
19248 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC |
19249 | postinstall_cmds=$lt_postinstall_cmds |
19250 | postuninstall_cmds=$lt_postuninstall_cmds |
19251 | |
19252 | # Commands used to build a loadable module (assumed same as above if empty) |
19253 | module_cmds=$lt_module_cmds_RC |
19254 | module_expsym_cmds=$lt_module_expsym_cmds_RC |
19255 | |
19256 | # Commands to strip libraries. |
19257 | old_striplib=$lt_old_striplib |
19258 | striplib=$lt_striplib |
19259 | |
19260 | # Dependencies to place before the objects being linked to create a |
19261 | # shared library. |
dd184caf |
19262 | predep_objects=$lt_predep_objects_RC |
d9898ee8 |
19263 | |
19264 | # Dependencies to place after the objects being linked to create a |
19265 | # shared library. |
dd184caf |
19266 | postdep_objects=$lt_postdep_objects_RC |
d9898ee8 |
19267 | |
19268 | # Dependencies to place before the objects being linked to create a |
19269 | # shared library. |
19270 | predeps=$lt_predeps_RC |
19271 | |
19272 | # Dependencies to place after the objects being linked to create a |
19273 | # shared library. |
19274 | postdeps=$lt_postdeps_RC |
19275 | |
19276 | # The library search path used internally by the compiler when linking |
19277 | # a shared library. |
dd184caf |
19278 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC |
d9898ee8 |
19279 | |
19280 | # Method to check whether dependent libraries are shared objects. |
19281 | deplibs_check_method=$lt_deplibs_check_method |
19282 | |
19283 | # Command to use when deplibs_check_method == file_magic. |
19284 | file_magic_cmd=$lt_file_magic_cmd |
19285 | |
19286 | # Flag that allows shared libraries with undefined symbols to be built. |
19287 | allow_undefined_flag=$lt_allow_undefined_flag_RC |
19288 | |
19289 | # Flag that forces no undefined symbols. |
19290 | no_undefined_flag=$lt_no_undefined_flag_RC |
19291 | |
19292 | # Commands used to finish a libtool library installation in a directory. |
19293 | finish_cmds=$lt_finish_cmds |
19294 | |
19295 | # Same as above, but a single script fragment to be evaled but not shown. |
19296 | finish_eval=$lt_finish_eval |
19297 | |
19298 | # Take the output of nm and produce a listing of raw symbols and C names. |
19299 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
19300 | |
19301 | # Transform the output of nm in a proper C declaration |
19302 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
19303 | |
19304 | # Transform the output of nm in a C name address pair |
19305 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
19306 | |
19307 | # This is the shared library runtime path variable. |
19308 | runpath_var=$runpath_var |
19309 | |
19310 | # This is the shared library path variable. |
19311 | shlibpath_var=$shlibpath_var |
19312 | |
19313 | # Is shlibpath searched before the hard-coded library search path? |
19314 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
19315 | |
19316 | # How to hardcode a shared library path into an executable. |
19317 | hardcode_action=$hardcode_action_RC |
19318 | |
19319 | # Whether we should hardcode library paths into libraries. |
19320 | hardcode_into_libs=$hardcode_into_libs |
19321 | |
19322 | # Flag to hardcode \$libdir into a binary during linking. |
19323 | # This must work even if \$libdir does not exist. |
19324 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC |
19325 | |
19326 | # If ld is used when linking, flag to hardcode \$libdir into |
19327 | # a binary during linking. This must work even if \$libdir does |
19328 | # not exist. |
19329 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC |
19330 | |
19331 | # Whether we need a single -rpath flag with a separated argument. |
19332 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC |
19333 | |
19334 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
19335 | # resulting binary. |
19336 | hardcode_direct=$hardcode_direct_RC |
19337 | |
19338 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
19339 | # resulting binary. |
19340 | hardcode_minus_L=$hardcode_minus_L_RC |
19341 | |
19342 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
19343 | # the resulting binary. |
19344 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC |
19345 | |
19346 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
19347 | # and all subsequent libraries and executables linked against it. |
19348 | hardcode_automatic=$hardcode_automatic_RC |
19349 | |
19350 | # Variables whose values should be saved in libtool wrapper scripts and |
19351 | # restored at relink time. |
19352 | variables_saved_for_relink="$variables_saved_for_relink" |
19353 | |
19354 | # Whether libtool must link a program against all its dependency libraries. |
19355 | link_all_deplibs=$link_all_deplibs_RC |
19356 | |
19357 | # Compile-time system search path for libraries |
dd184caf |
19358 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
d9898ee8 |
19359 | |
19360 | # Run-time system search path for libraries |
19361 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
19362 | |
19363 | # Fix the shell variable \$srcfile for the compiler. |
ac40fd9e |
19364 | fix_srcfile_path=$lt_fix_srcfile_path |
d9898ee8 |
19365 | |
19366 | # Set to yes if exported symbols are required. |
19367 | always_export_symbols=$always_export_symbols_RC |
19368 | |
19369 | # The commands to list exported symbols. |
19370 | export_symbols_cmds=$lt_export_symbols_cmds_RC |
19371 | |
19372 | # The commands to extract the exported symbol list from a shared archive. |
19373 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
19374 | |
19375 | # Symbols that should not be listed in the preloaded symbols. |
19376 | exclude_expsyms=$lt_exclude_expsyms_RC |
19377 | |
19378 | # Symbols that must always be exported. |
19379 | include_expsyms=$lt_include_expsyms_RC |
19380 | |
19381 | # ### END LIBTOOL TAG CONFIG: $tagname |
19382 | |
19383 | __EOF__ |
19384 | |
19385 | |
19386 | else |
19387 | # If there is no Makefile yet, we rely on a make rule to execute |
19388 | # `config.status --recheck' to rerun these tests and create the |
19389 | # libtool script then. |
19390 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
19391 | if test -f "$ltmain_in"; then |
19392 | test -f Makefile && make "$ltmain" |
19393 | fi |
19394 | fi |
19395 | |
19396 | |
19397 | ac_ext=c |
19398 | ac_cpp='$CPP $CPPFLAGS' |
19399 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
19400 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
19401 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
19402 | |
19403 | CC="$lt_save_CC" |
19404 | |
19405 | ;; |
19406 | |
19407 | *) |
19408 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 |
19409 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} |
19410 | { (exit 1); exit 1; }; } |
19411 | ;; |
19412 | esac |
19413 | |
19414 | # Append the new tag name to the list of available tags. |
19415 | if test -n "$tagname" ; then |
19416 | available_tags="$available_tags $tagname" |
19417 | fi |
19418 | fi |
19419 | done |
19420 | IFS="$lt_save_ifs" |
19421 | |
19422 | # Now substitute the updated list of available tags. |
19423 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
19424 | mv "${ofile}T" "$ofile" |
19425 | chmod +x "$ofile" |
19426 | else |
19427 | rm -f "${ofile}T" |
19428 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 |
19429 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} |
19430 | { (exit 1); exit 1; }; } |
19431 | fi |
19432 | fi |
19433 | |
19434 | |
19435 | |
19436 | # This can be used to rebuild libtool when needed |
19437 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
19438 | |
19439 | # Always use our own libtool. |
19440 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
19441 | |
19442 | # Prevent multiple expansion |
19443 | |
19444 | |
19445 | |
19446 | |
19447 | |
19448 | |
19449 | |
19450 | |
19451 | |
19452 | |
19453 | |
19454 | |
19455 | |
19456 | |
19457 | |
19458 | |
19459 | |
19460 | |
19461 | |
19462 | |
19463 | |
19464 | if test "$GCC" = yes |
19465 | then |
19466 | CFLAGS="-Wall $CFLAGS" |
19467 | fi |
19468 | |
19469 | CFLAGS="$CFLAGS -I$srcdir/.. -I.." |
19470 | |
19471 | |
dd184caf |
19472 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
19473 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
d9898ee8 |
19474 | if test "${ac_cv_header_stdc+set}" = set; then |
19475 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19476 | else |
19477 | cat >conftest.$ac_ext <<_ACEOF |
19478 | /* confdefs.h. */ |
19479 | _ACEOF |
19480 | cat confdefs.h >>conftest.$ac_ext |
19481 | cat >>conftest.$ac_ext <<_ACEOF |
19482 | /* end confdefs.h. */ |
19483 | #include <stdlib.h> |
19484 | #include <stdarg.h> |
19485 | #include <string.h> |
19486 | #include <float.h> |
19487 | |
19488 | int |
19489 | main () |
19490 | { |
19491 | |
19492 | ; |
19493 | return 0; |
19494 | } |
19495 | _ACEOF |
19496 | rm -f conftest.$ac_objext |
dd184caf |
19497 | if { (ac_try="$ac_compile" |
19498 | case "(($ac_try" in |
19499 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
19500 | *) ac_try_echo=$ac_try;; |
19501 | esac |
19502 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
19503 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
19504 | ac_status=$? |
19505 | grep -v '^ *+' conftest.er1 >conftest.err |
19506 | rm -f conftest.er1 |
19507 | cat conftest.err >&5 |
19508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
19509 | (exit $ac_status); } && { |
19510 | test -z "$ac_c_werror_flag" || |
19511 | test ! -s conftest.err |
19512 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
19513 | ac_cv_header_stdc=yes |
19514 | else |
19515 | echo "$as_me: failed program was:" >&5 |
19516 | sed 's/^/| /' conftest.$ac_ext >&5 |
19517 | |
dd184caf |
19518 | ac_cv_header_stdc=no |
d9898ee8 |
19519 | fi |
dd184caf |
19520 | |
19521 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
19522 | |
19523 | if test $ac_cv_header_stdc = yes; then |
19524 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
19525 | cat >conftest.$ac_ext <<_ACEOF |
19526 | /* confdefs.h. */ |
19527 | _ACEOF |
19528 | cat confdefs.h >>conftest.$ac_ext |
19529 | cat >>conftest.$ac_ext <<_ACEOF |
19530 | /* end confdefs.h. */ |
19531 | #include <string.h> |
19532 | |
19533 | _ACEOF |
19534 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
19535 | $EGREP "memchr" >/dev/null 2>&1; then |
19536 | : |
19537 | else |
19538 | ac_cv_header_stdc=no |
19539 | fi |
19540 | rm -f conftest* |
19541 | |
19542 | fi |
19543 | |
19544 | if test $ac_cv_header_stdc = yes; then |
19545 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
19546 | cat >conftest.$ac_ext <<_ACEOF |
19547 | /* confdefs.h. */ |
19548 | _ACEOF |
19549 | cat confdefs.h >>conftest.$ac_ext |
19550 | cat >>conftest.$ac_ext <<_ACEOF |
19551 | /* end confdefs.h. */ |
19552 | #include <stdlib.h> |
19553 | |
19554 | _ACEOF |
19555 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
19556 | $EGREP "free" >/dev/null 2>&1; then |
19557 | : |
19558 | else |
19559 | ac_cv_header_stdc=no |
19560 | fi |
19561 | rm -f conftest* |
19562 | |
19563 | fi |
19564 | |
19565 | if test $ac_cv_header_stdc = yes; then |
19566 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
19567 | if test "$cross_compiling" = yes; then |
19568 | : |
19569 | else |
19570 | cat >conftest.$ac_ext <<_ACEOF |
19571 | /* confdefs.h. */ |
19572 | _ACEOF |
19573 | cat confdefs.h >>conftest.$ac_ext |
19574 | cat >>conftest.$ac_ext <<_ACEOF |
19575 | /* end confdefs.h. */ |
19576 | #include <ctype.h> |
dd184caf |
19577 | #include <stdlib.h> |
d9898ee8 |
19578 | #if ((' ' & 0x0FF) == 0x020) |
19579 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
19580 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
19581 | #else |
19582 | # define ISLOWER(c) \ |
19583 | (('a' <= (c) && (c) <= 'i') \ |
19584 | || ('j' <= (c) && (c) <= 'r') \ |
19585 | || ('s' <= (c) && (c) <= 'z')) |
19586 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
19587 | #endif |
19588 | |
19589 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
19590 | int |
19591 | main () |
19592 | { |
19593 | int i; |
19594 | for (i = 0; i < 256; i++) |
19595 | if (XOR (islower (i), ISLOWER (i)) |
19596 | || toupper (i) != TOUPPER (i)) |
dd184caf |
19597 | return 2; |
19598 | return 0; |
d9898ee8 |
19599 | } |
19600 | _ACEOF |
19601 | rm -f conftest$ac_exeext |
dd184caf |
19602 | if { (ac_try="$ac_link" |
19603 | case "(($ac_try" in |
19604 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
19605 | *) ac_try_echo=$ac_try;; |
19606 | esac |
19607 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
19608 | (eval "$ac_link") 2>&5 |
d9898ee8 |
19609 | ac_status=$? |
19610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19611 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
dd184caf |
19612 | { (case "(($ac_try" in |
19613 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
19614 | *) ac_try_echo=$ac_try;; |
19615 | esac |
19616 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
19617 | (eval "$ac_try") 2>&5 |
d9898ee8 |
19618 | ac_status=$? |
19619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19620 | (exit $ac_status); }; }; then |
19621 | : |
19622 | else |
19623 | echo "$as_me: program exited with status $ac_status" >&5 |
19624 | echo "$as_me: failed program was:" >&5 |
19625 | sed 's/^/| /' conftest.$ac_ext >&5 |
19626 | |
19627 | ( exit $ac_status ) |
19628 | ac_cv_header_stdc=no |
19629 | fi |
dd184caf |
19630 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
19631 | fi |
dd184caf |
19632 | |
19633 | |
d9898ee8 |
19634 | fi |
19635 | fi |
dd184caf |
19636 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
19637 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
d9898ee8 |
19638 | if test $ac_cv_header_stdc = yes; then |
19639 | |
19640 | cat >>confdefs.h <<\_ACEOF |
19641 | #define STDC_HEADERS 1 |
19642 | _ACEOF |
19643 | |
19644 | fi |
19645 | |
19646 | |
19647 | |
19648 | for ac_header in sys/types.h |
19649 | do |
19650 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
dd184caf |
19651 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
19652 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
19653 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
19654 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
19655 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19656 | fi |
dd184caf |
19657 | ac_res=`eval echo '${'$as_ac_Header'}'` |
19658 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
19659 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
19660 | else |
19661 | # Is the header compilable? |
dd184caf |
19662 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
19663 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
d9898ee8 |
19664 | cat >conftest.$ac_ext <<_ACEOF |
19665 | /* confdefs.h. */ |
19666 | _ACEOF |
19667 | cat confdefs.h >>conftest.$ac_ext |
19668 | cat >>conftest.$ac_ext <<_ACEOF |
19669 | /* end confdefs.h. */ |
19670 | $ac_includes_default |
19671 | #include <$ac_header> |
19672 | _ACEOF |
19673 | rm -f conftest.$ac_objext |
dd184caf |
19674 | if { (ac_try="$ac_compile" |
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_compile") 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_objext; then |
d9898ee8 |
19690 | ac_header_compiler=yes |
19691 | else |
19692 | echo "$as_me: failed program was:" >&5 |
19693 | sed 's/^/| /' conftest.$ac_ext >&5 |
19694 | |
dd184caf |
19695 | ac_header_compiler=no |
d9898ee8 |
19696 | fi |
dd184caf |
19697 | |
19698 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
19699 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
19700 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
d9898ee8 |
19701 | |
19702 | # Is the header present? |
dd184caf |
19703 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
19704 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
d9898ee8 |
19705 | cat >conftest.$ac_ext <<_ACEOF |
19706 | /* confdefs.h. */ |
19707 | _ACEOF |
19708 | cat confdefs.h >>conftest.$ac_ext |
19709 | cat >>conftest.$ac_ext <<_ACEOF |
19710 | /* end confdefs.h. */ |
19711 | #include <$ac_header> |
19712 | _ACEOF |
dd184caf |
19713 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
19714 | case "(($ac_try" in |
19715 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
19716 | *) ac_try_echo=$ac_try;; |
19717 | esac |
19718 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
19719 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
19720 | ac_status=$? |
19721 | grep -v '^ *+' conftest.er1 >conftest.err |
19722 | rm -f conftest.er1 |
19723 | cat conftest.err >&5 |
19724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
19725 | (exit $ac_status); } >/dev/null && { |
19726 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
19727 | test ! -s conftest.err |
19728 | }; then |
d9898ee8 |
19729 | ac_header_preproc=yes |
19730 | else |
19731 | echo "$as_me: failed program was:" >&5 |
19732 | sed 's/^/| /' conftest.$ac_ext >&5 |
19733 | |
19734 | ac_header_preproc=no |
19735 | fi |
dd184caf |
19736 | |
d9898ee8 |
19737 | rm -f conftest.err conftest.$ac_ext |
dd184caf |
19738 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
19739 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
d9898ee8 |
19740 | |
19741 | # So? What about this header? |
19742 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
19743 | yes:no: ) |
19744 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
19745 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
19746 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
19747 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
19748 | ac_header_preproc=yes |
19749 | ;; |
19750 | no:yes:* ) |
19751 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
19752 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
19753 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
19754 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
19755 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
19756 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
19757 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
19758 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
19759 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19760 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
19761 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
19762 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
dd184caf |
19763 | ( cat <<\_ASBOX |
d9898ee8 |
19764 | ## -------------------------------------------------- ## |
19765 | ## Report this to courier-users@lists.sourceforge.net ## |
19766 | ## -------------------------------------------------- ## |
19767 | _ASBOX |
dd184caf |
19768 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
d9898ee8 |
19769 | ;; |
19770 | esac |
dd184caf |
19771 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
19772 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
19773 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
19774 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19775 | else |
19776 | eval "$as_ac_Header=\$ac_header_preproc" |
19777 | fi |
dd184caf |
19778 | ac_res=`eval echo '${'$as_ac_Header'}'` |
19779 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
19780 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
19781 | |
19782 | fi |
19783 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
19784 | cat >>confdefs.h <<_ACEOF |
19785 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
19786 | _ACEOF |
19787 | |
19788 | fi |
19789 | |
19790 | done |
19791 | |
19792 | |
19793 | |
19794 | |
dd184caf |
19795 | # Check whether --with-int32 was given. |
d9898ee8 |
19796 | if test "${with_int32+set}" = set; then |
dd184caf |
19797 | withval=$with_int32; int32="$withval" |
d9898ee8 |
19798 | else |
19799 | |
19800 | |
dd184caf |
19801 | { echo "$as_me:$LINENO: checking for uint32_t" >&5 |
19802 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; } |
d9898ee8 |
19803 | |
19804 | cat >conftest.$ac_ext <<_ACEOF |
19805 | /* confdefs.h. */ |
19806 | _ACEOF |
19807 | cat confdefs.h >>conftest.$ac_ext |
19808 | cat >>conftest.$ac_ext <<_ACEOF |
19809 | /* end confdefs.h. */ |
19810 | |
19811 | #if HAVE_SYS_TYPES_H |
19812 | #include <sys/types.h> |
19813 | #endif |
19814 | |
19815 | int |
19816 | main () |
19817 | { |
19818 | |
19819 | uint32_t i=0; |
19820 | |
19821 | ; |
19822 | return 0; |
19823 | } |
19824 | _ACEOF |
19825 | rm -f conftest.$ac_objext |
dd184caf |
19826 | if { (ac_try="$ac_compile" |
19827 | case "(($ac_try" in |
19828 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
19829 | *) ac_try_echo=$ac_try;; |
19830 | esac |
19831 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
19832 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
19833 | ac_status=$? |
19834 | grep -v '^ *+' conftest.er1 >conftest.err |
19835 | rm -f conftest.er1 |
19836 | cat conftest.err >&5 |
19837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
19838 | (exit $ac_status); } && { |
19839 | test -z "$ac_c_werror_flag" || |
19840 | test ! -s conftest.err |
19841 | } && test -s conftest.$ac_objext; then |
19842 | { echo "$as_me:$LINENO: result: yes" >&5 |
19843 | echo "${ECHO_T}yes" >&6; } ; int32="uint32_t" |
d9898ee8 |
19844 | else |
19845 | echo "$as_me: failed program was:" >&5 |
19846 | sed 's/^/| /' conftest.$ac_ext >&5 |
19847 | |
19848 | |
19849 | |
dd184caf |
19850 | { echo "$as_me:$LINENO: result: no" >&5 |
19851 | echo "${ECHO_T}no" >&6; } |
19852 | { echo "$as_me:$LINENO: checking for u_int_32_t" >&5 |
19853 | echo $ECHO_N "checking for u_int_32_t... $ECHO_C" >&6; } |
d9898ee8 |
19854 | |
19855 | cat >conftest.$ac_ext <<_ACEOF |
19856 | /* confdefs.h. */ |
19857 | _ACEOF |
19858 | cat confdefs.h >>conftest.$ac_ext |
19859 | cat >>conftest.$ac_ext <<_ACEOF |
19860 | /* end confdefs.h. */ |
19861 | |
19862 | #if HAVE_SYS_TYPES_H |
19863 | #include <sys/types.h> |
19864 | #endif |
19865 | |
19866 | int |
19867 | main () |
19868 | { |
19869 | |
19870 | u_int32_t i=0; |
19871 | |
19872 | ; |
19873 | return 0; |
19874 | } |
19875 | _ACEOF |
19876 | rm -f conftest.$ac_objext |
dd184caf |
19877 | if { (ac_try="$ac_compile" |
19878 | case "(($ac_try" in |
19879 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
19880 | *) ac_try_echo=$ac_try;; |
19881 | esac |
19882 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
19883 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
19884 | ac_status=$? |
19885 | grep -v '^ *+' conftest.er1 >conftest.err |
19886 | rm -f conftest.er1 |
19887 | cat conftest.err >&5 |
19888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
19889 | (exit $ac_status); } && { |
19890 | test -z "$ac_c_werror_flag" || |
19891 | test ! -s conftest.err |
19892 | } && test -s conftest.$ac_objext; then |
19893 | { echo "$as_me:$LINENO: result: yes" >&5 |
19894 | echo "${ECHO_T}yes" >&6; }; int32="u_int32_t" |
d9898ee8 |
19895 | else |
19896 | echo "$as_me: failed program was:" >&5 |
19897 | sed 's/^/| /' conftest.$ac_ext >&5 |
19898 | |
19899 | |
19900 | |
dd184caf |
19901 | { echo "$as_me:$LINENO: result: no" >&5 |
19902 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
19903 | |
dd184caf |
19904 | { echo "$as_me:$LINENO: checking for unsigned" >&5 |
19905 | echo $ECHO_N "checking for unsigned... $ECHO_C" >&6; } |
d9898ee8 |
19906 | if test "${ac_cv_type_unsigned+set}" = set; then |
19907 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19908 | else |
19909 | cat >conftest.$ac_ext <<_ACEOF |
19910 | /* confdefs.h. */ |
19911 | _ACEOF |
19912 | cat confdefs.h >>conftest.$ac_ext |
19913 | cat >>conftest.$ac_ext <<_ACEOF |
19914 | /* end confdefs.h. */ |
19915 | $ac_includes_default |
dd184caf |
19916 | typedef unsigned ac__type_new_; |
d9898ee8 |
19917 | int |
19918 | main () |
19919 | { |
dd184caf |
19920 | if ((ac__type_new_ *) 0) |
d9898ee8 |
19921 | return 0; |
dd184caf |
19922 | if (sizeof (ac__type_new_)) |
d9898ee8 |
19923 | return 0; |
19924 | ; |
19925 | return 0; |
19926 | } |
19927 | _ACEOF |
19928 | rm -f conftest.$ac_objext |
dd184caf |
19929 | if { (ac_try="$ac_compile" |
19930 | case "(($ac_try" in |
19931 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
19932 | *) ac_try_echo=$ac_try;; |
19933 | esac |
19934 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
19935 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
19936 | ac_status=$? |
19937 | grep -v '^ *+' conftest.er1 >conftest.err |
19938 | rm -f conftest.er1 |
19939 | cat conftest.err >&5 |
19940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
19941 | (exit $ac_status); } && { |
19942 | test -z "$ac_c_werror_flag" || |
19943 | test ! -s conftest.err |
19944 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
19945 | ac_cv_type_unsigned=yes |
19946 | else |
19947 | echo "$as_me: failed program was:" >&5 |
19948 | sed 's/^/| /' conftest.$ac_ext >&5 |
19949 | |
dd184caf |
19950 | ac_cv_type_unsigned=no |
d9898ee8 |
19951 | fi |
dd184caf |
19952 | |
19953 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
19954 | fi |
dd184caf |
19955 | { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned" >&5 |
19956 | echo "${ECHO_T}$ac_cv_type_unsigned" >&6; } |
d9898ee8 |
19957 | |
dd184caf |
19958 | # The cast to long int works around a bug in the HP C Compiler |
19959 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
19960 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
19961 | # This bug is HP SR number 8606223364. |
19962 | { echo "$as_me:$LINENO: checking size of unsigned" >&5 |
19963 | echo $ECHO_N "checking size of unsigned... $ECHO_C" >&6; } |
d9898ee8 |
19964 | if test "${ac_cv_sizeof_unsigned+set}" = set; then |
19965 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19966 | else |
d9898ee8 |
19967 | if test "$cross_compiling" = yes; then |
19968 | # Depending upon the size, compute the lo and hi bounds. |
19969 | cat >conftest.$ac_ext <<_ACEOF |
19970 | /* confdefs.h. */ |
19971 | _ACEOF |
19972 | cat confdefs.h >>conftest.$ac_ext |
19973 | cat >>conftest.$ac_ext <<_ACEOF |
19974 | /* end confdefs.h. */ |
19975 | $ac_includes_default |
dd184caf |
19976 | typedef unsigned ac__type_sizeof_; |
d9898ee8 |
19977 | int |
19978 | main () |
19979 | { |
dd184caf |
19980 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
d9898ee8 |
19981 | test_array [0] = 0 |
19982 | |
19983 | ; |
19984 | return 0; |
19985 | } |
19986 | _ACEOF |
19987 | rm -f conftest.$ac_objext |
dd184caf |
19988 | if { (ac_try="$ac_compile" |
19989 | case "(($ac_try" in |
19990 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
19991 | *) ac_try_echo=$ac_try;; |
19992 | esac |
19993 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
19994 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
19995 | ac_status=$? |
19996 | grep -v '^ *+' conftest.er1 >conftest.err |
19997 | rm -f conftest.er1 |
19998 | cat conftest.err >&5 |
19999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
20000 | (exit $ac_status); } && { |
20001 | test -z "$ac_c_werror_flag" || |
20002 | test ! -s conftest.err |
20003 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
20004 | ac_lo=0 ac_mid=0 |
20005 | while :; do |
20006 | cat >conftest.$ac_ext <<_ACEOF |
20007 | /* confdefs.h. */ |
20008 | _ACEOF |
20009 | cat confdefs.h >>conftest.$ac_ext |
20010 | cat >>conftest.$ac_ext <<_ACEOF |
20011 | /* end confdefs.h. */ |
20012 | $ac_includes_default |
dd184caf |
20013 | typedef unsigned ac__type_sizeof_; |
d9898ee8 |
20014 | int |
20015 | main () |
20016 | { |
dd184caf |
20017 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
d9898ee8 |
20018 | test_array [0] = 0 |
20019 | |
20020 | ; |
20021 | return 0; |
20022 | } |
20023 | _ACEOF |
20024 | rm -f conftest.$ac_objext |
dd184caf |
20025 | if { (ac_try="$ac_compile" |
20026 | case "(($ac_try" in |
20027 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20028 | *) ac_try_echo=$ac_try;; |
20029 | esac |
20030 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20031 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
20032 | ac_status=$? |
20033 | grep -v '^ *+' conftest.er1 >conftest.err |
20034 | rm -f conftest.er1 |
20035 | cat conftest.err >&5 |
20036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
20037 | (exit $ac_status); } && { |
20038 | test -z "$ac_c_werror_flag" || |
20039 | test ! -s conftest.err |
20040 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
20041 | ac_hi=$ac_mid; break |
20042 | else |
20043 | echo "$as_me: failed program was:" >&5 |
20044 | sed 's/^/| /' conftest.$ac_ext >&5 |
20045 | |
dd184caf |
20046 | ac_lo=`expr $ac_mid + 1` |
20047 | if test $ac_lo -le $ac_mid; then |
20048 | ac_lo= ac_hi= |
20049 | break |
20050 | fi |
20051 | ac_mid=`expr 2 '*' $ac_mid + 1` |
d9898ee8 |
20052 | fi |
dd184caf |
20053 | |
20054 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
20055 | done |
20056 | else |
20057 | echo "$as_me: failed program was:" >&5 |
20058 | sed 's/^/| /' conftest.$ac_ext >&5 |
20059 | |
dd184caf |
20060 | cat >conftest.$ac_ext <<_ACEOF |
d9898ee8 |
20061 | /* confdefs.h. */ |
20062 | _ACEOF |
20063 | cat confdefs.h >>conftest.$ac_ext |
20064 | cat >>conftest.$ac_ext <<_ACEOF |
20065 | /* end confdefs.h. */ |
20066 | $ac_includes_default |
dd184caf |
20067 | typedef unsigned ac__type_sizeof_; |
d9898ee8 |
20068 | int |
20069 | main () |
20070 | { |
dd184caf |
20071 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
d9898ee8 |
20072 | test_array [0] = 0 |
20073 | |
20074 | ; |
20075 | return 0; |
20076 | } |
20077 | _ACEOF |
20078 | rm -f conftest.$ac_objext |
dd184caf |
20079 | if { (ac_try="$ac_compile" |
20080 | case "(($ac_try" in |
20081 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20082 | *) ac_try_echo=$ac_try;; |
20083 | esac |
20084 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20085 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
20086 | ac_status=$? |
20087 | grep -v '^ *+' conftest.er1 >conftest.err |
20088 | rm -f conftest.er1 |
20089 | cat conftest.err >&5 |
20090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
20091 | (exit $ac_status); } && { |
20092 | test -z "$ac_c_werror_flag" || |
20093 | test ! -s conftest.err |
20094 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
20095 | ac_hi=-1 ac_mid=-1 |
20096 | while :; do |
20097 | cat >conftest.$ac_ext <<_ACEOF |
20098 | /* confdefs.h. */ |
20099 | _ACEOF |
20100 | cat confdefs.h >>conftest.$ac_ext |
20101 | cat >>conftest.$ac_ext <<_ACEOF |
20102 | /* end confdefs.h. */ |
20103 | $ac_includes_default |
dd184caf |
20104 | typedef unsigned ac__type_sizeof_; |
d9898ee8 |
20105 | int |
20106 | main () |
20107 | { |
dd184caf |
20108 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
d9898ee8 |
20109 | test_array [0] = 0 |
20110 | |
20111 | ; |
20112 | return 0; |
20113 | } |
20114 | _ACEOF |
20115 | rm -f conftest.$ac_objext |
dd184caf |
20116 | if { (ac_try="$ac_compile" |
20117 | case "(($ac_try" in |
20118 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20119 | *) ac_try_echo=$ac_try;; |
20120 | esac |
20121 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20122 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
20123 | ac_status=$? |
20124 | grep -v '^ *+' conftest.er1 >conftest.err |
20125 | rm -f conftest.er1 |
20126 | cat conftest.err >&5 |
20127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
20128 | (exit $ac_status); } && { |
20129 | test -z "$ac_c_werror_flag" || |
20130 | test ! -s conftest.err |
20131 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
20132 | ac_lo=$ac_mid; break |
20133 | else |
20134 | echo "$as_me: failed program was:" >&5 |
20135 | sed 's/^/| /' conftest.$ac_ext >&5 |
20136 | |
dd184caf |
20137 | ac_hi=`expr '(' $ac_mid ')' - 1` |
20138 | if test $ac_mid -le $ac_hi; then |
20139 | ac_lo= ac_hi= |
20140 | break |
20141 | fi |
20142 | ac_mid=`expr 2 '*' $ac_mid` |
d9898ee8 |
20143 | fi |
dd184caf |
20144 | |
20145 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
20146 | done |
20147 | else |
20148 | echo "$as_me: failed program was:" >&5 |
20149 | sed 's/^/| /' conftest.$ac_ext >&5 |
20150 | |
dd184caf |
20151 | ac_lo= ac_hi= |
d9898ee8 |
20152 | fi |
dd184caf |
20153 | |
20154 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
20155 | fi |
dd184caf |
20156 | |
20157 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
20158 | # Binary search between lo and hi bounds. |
20159 | while test "x$ac_lo" != "x$ac_hi"; do |
20160 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
20161 | cat >conftest.$ac_ext <<_ACEOF |
20162 | /* confdefs.h. */ |
20163 | _ACEOF |
20164 | cat confdefs.h >>conftest.$ac_ext |
20165 | cat >>conftest.$ac_ext <<_ACEOF |
20166 | /* end confdefs.h. */ |
20167 | $ac_includes_default |
dd184caf |
20168 | typedef unsigned ac__type_sizeof_; |
d9898ee8 |
20169 | int |
20170 | main () |
20171 | { |
dd184caf |
20172 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
d9898ee8 |
20173 | test_array [0] = 0 |
20174 | |
20175 | ; |
20176 | return 0; |
20177 | } |
20178 | _ACEOF |
20179 | rm -f conftest.$ac_objext |
dd184caf |
20180 | if { (ac_try="$ac_compile" |
20181 | case "(($ac_try" in |
20182 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20183 | *) ac_try_echo=$ac_try;; |
20184 | esac |
20185 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20186 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
20187 | ac_status=$? |
20188 | grep -v '^ *+' conftest.er1 >conftest.err |
20189 | rm -f conftest.er1 |
20190 | cat conftest.err >&5 |
20191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
20192 | (exit $ac_status); } && { |
20193 | test -z "$ac_c_werror_flag" || |
20194 | test ! -s conftest.err |
20195 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
20196 | ac_hi=$ac_mid |
20197 | else |
20198 | echo "$as_me: failed program was:" >&5 |
20199 | sed 's/^/| /' conftest.$ac_ext >&5 |
20200 | |
dd184caf |
20201 | ac_lo=`expr '(' $ac_mid ')' + 1` |
d9898ee8 |
20202 | fi |
dd184caf |
20203 | |
20204 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
20205 | done |
20206 | case $ac_lo in |
20207 | ?*) ac_cv_sizeof_unsigned=$ac_lo;; |
dd184caf |
20208 | '') if test "$ac_cv_type_unsigned" = yes; then |
20209 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned) |
d9898ee8 |
20210 | See \`config.log' for more details." >&5 |
dd184caf |
20211 | echo "$as_me: error: cannot compute sizeof (unsigned) |
d9898ee8 |
20212 | See \`config.log' for more details." >&2;} |
dd184caf |
20213 | { (exit 77); exit 77; }; } |
20214 | else |
20215 | ac_cv_sizeof_unsigned=0 |
20216 | fi ;; |
d9898ee8 |
20217 | esac |
d9898ee8 |
20218 | else |
20219 | cat >conftest.$ac_ext <<_ACEOF |
20220 | /* confdefs.h. */ |
20221 | _ACEOF |
20222 | cat confdefs.h >>conftest.$ac_ext |
20223 | cat >>conftest.$ac_ext <<_ACEOF |
20224 | /* end confdefs.h. */ |
20225 | $ac_includes_default |
dd184caf |
20226 | typedef unsigned ac__type_sizeof_; |
20227 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
20228 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
d9898ee8 |
20229 | #include <stdio.h> |
20230 | #include <stdlib.h> |
20231 | int |
20232 | main () |
20233 | { |
20234 | |
20235 | FILE *f = fopen ("conftest.val", "w"); |
20236 | if (! f) |
dd184caf |
20237 | return 1; |
20238 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
d9898ee8 |
20239 | { |
dd184caf |
20240 | long int i = longval (); |
20241 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
20242 | return 1; |
d9898ee8 |
20243 | fprintf (f, "%ld\n", i); |
20244 | } |
20245 | else |
20246 | { |
dd184caf |
20247 | unsigned long int i = ulongval (); |
20248 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
20249 | return 1; |
d9898ee8 |
20250 | fprintf (f, "%lu\n", i); |
20251 | } |
dd184caf |
20252 | return ferror (f) || fclose (f) != 0; |
d9898ee8 |
20253 | |
20254 | ; |
20255 | return 0; |
20256 | } |
20257 | _ACEOF |
20258 | rm -f conftest$ac_exeext |
dd184caf |
20259 | if { (ac_try="$ac_link" |
20260 | case "(($ac_try" in |
20261 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20262 | *) ac_try_echo=$ac_try;; |
20263 | esac |
20264 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20265 | (eval "$ac_link") 2>&5 |
d9898ee8 |
20266 | ac_status=$? |
20267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20268 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
dd184caf |
20269 | { (case "(($ac_try" in |
20270 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20271 | *) ac_try_echo=$ac_try;; |
20272 | esac |
20273 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20274 | (eval "$ac_try") 2>&5 |
d9898ee8 |
20275 | ac_status=$? |
20276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20277 | (exit $ac_status); }; }; then |
20278 | ac_cv_sizeof_unsigned=`cat conftest.val` |
20279 | else |
20280 | echo "$as_me: program exited with status $ac_status" >&5 |
20281 | echo "$as_me: failed program was:" >&5 |
20282 | sed 's/^/| /' conftest.$ac_ext >&5 |
20283 | |
20284 | ( exit $ac_status ) |
dd184caf |
20285 | if test "$ac_cv_type_unsigned" = yes; then |
20286 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned) |
d9898ee8 |
20287 | See \`config.log' for more details." >&5 |
dd184caf |
20288 | echo "$as_me: error: cannot compute sizeof (unsigned) |
d9898ee8 |
20289 | See \`config.log' for more details." >&2;} |
dd184caf |
20290 | { (exit 77); exit 77; }; } |
20291 | else |
20292 | ac_cv_sizeof_unsigned=0 |
20293 | fi |
d9898ee8 |
20294 | fi |
dd184caf |
20295 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
20296 | fi |
20297 | rm -f conftest.val |
d9898ee8 |
20298 | fi |
dd184caf |
20299 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned" >&5 |
20300 | echo "${ECHO_T}$ac_cv_sizeof_unsigned" >&6; } |
20301 | |
20302 | |
20303 | |
d9898ee8 |
20304 | cat >>confdefs.h <<_ACEOF |
20305 | #define SIZEOF_UNSIGNED $ac_cv_sizeof_unsigned |
20306 | _ACEOF |
20307 | |
20308 | |
20309 | if test "$ac_cv_sizeof_unsigned" != 4 |
20310 | then |
dd184caf |
20311 | { echo "$as_me:$LINENO: checking for unsigned long" >&5 |
20312 | echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; } |
d9898ee8 |
20313 | if test "${ac_cv_type_unsigned_long+set}" = set; then |
20314 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20315 | else |
20316 | cat >conftest.$ac_ext <<_ACEOF |
20317 | /* confdefs.h. */ |
20318 | _ACEOF |
20319 | cat confdefs.h >>conftest.$ac_ext |
20320 | cat >>conftest.$ac_ext <<_ACEOF |
20321 | /* end confdefs.h. */ |
20322 | $ac_includes_default |
dd184caf |
20323 | typedef unsigned long ac__type_new_; |
d9898ee8 |
20324 | int |
20325 | main () |
20326 | { |
dd184caf |
20327 | if ((ac__type_new_ *) 0) |
d9898ee8 |
20328 | return 0; |
dd184caf |
20329 | if (sizeof (ac__type_new_)) |
d9898ee8 |
20330 | return 0; |
20331 | ; |
20332 | return 0; |
20333 | } |
20334 | _ACEOF |
20335 | rm -f conftest.$ac_objext |
dd184caf |
20336 | if { (ac_try="$ac_compile" |
20337 | case "(($ac_try" in |
20338 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20339 | *) ac_try_echo=$ac_try;; |
20340 | esac |
20341 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20342 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
20343 | ac_status=$? |
20344 | grep -v '^ *+' conftest.er1 >conftest.err |
20345 | rm -f conftest.er1 |
20346 | cat conftest.err >&5 |
20347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
20348 | (exit $ac_status); } && { |
20349 | test -z "$ac_c_werror_flag" || |
20350 | test ! -s conftest.err |
20351 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
20352 | ac_cv_type_unsigned_long=yes |
20353 | else |
20354 | echo "$as_me: failed program was:" >&5 |
20355 | sed 's/^/| /' conftest.$ac_ext >&5 |
20356 | |
dd184caf |
20357 | ac_cv_type_unsigned_long=no |
d9898ee8 |
20358 | fi |
dd184caf |
20359 | |
20360 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
20361 | fi |
dd184caf |
20362 | { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5 |
20363 | echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; } |
d9898ee8 |
20364 | |
dd184caf |
20365 | # The cast to long int works around a bug in the HP C Compiler |
20366 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
20367 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
20368 | # This bug is HP SR number 8606223364. |
20369 | { echo "$as_me:$LINENO: checking size of unsigned long" >&5 |
20370 | echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; } |
d9898ee8 |
20371 | if test "${ac_cv_sizeof_unsigned_long+set}" = set; then |
20372 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20373 | else |
d9898ee8 |
20374 | if test "$cross_compiling" = yes; then |
20375 | # Depending upon the size, compute the lo and hi bounds. |
20376 | cat >conftest.$ac_ext <<_ACEOF |
20377 | /* confdefs.h. */ |
20378 | _ACEOF |
20379 | cat confdefs.h >>conftest.$ac_ext |
20380 | cat >>conftest.$ac_ext <<_ACEOF |
20381 | /* end confdefs.h. */ |
20382 | $ac_includes_default |
dd184caf |
20383 | typedef unsigned long ac__type_sizeof_; |
d9898ee8 |
20384 | int |
20385 | main () |
20386 | { |
dd184caf |
20387 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
d9898ee8 |
20388 | test_array [0] = 0 |
20389 | |
20390 | ; |
20391 | return 0; |
20392 | } |
20393 | _ACEOF |
20394 | rm -f conftest.$ac_objext |
dd184caf |
20395 | if { (ac_try="$ac_compile" |
20396 | case "(($ac_try" in |
20397 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20398 | *) ac_try_echo=$ac_try;; |
20399 | esac |
20400 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20401 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
20402 | ac_status=$? |
20403 | grep -v '^ *+' conftest.er1 >conftest.err |
20404 | rm -f conftest.er1 |
20405 | cat conftest.err >&5 |
20406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
20407 | (exit $ac_status); } && { |
20408 | test -z "$ac_c_werror_flag" || |
20409 | test ! -s conftest.err |
20410 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
20411 | ac_lo=0 ac_mid=0 |
20412 | while :; do |
20413 | cat >conftest.$ac_ext <<_ACEOF |
20414 | /* confdefs.h. */ |
20415 | _ACEOF |
20416 | cat confdefs.h >>conftest.$ac_ext |
20417 | cat >>conftest.$ac_ext <<_ACEOF |
20418 | /* end confdefs.h. */ |
20419 | $ac_includes_default |
dd184caf |
20420 | typedef unsigned long ac__type_sizeof_; |
d9898ee8 |
20421 | int |
20422 | main () |
20423 | { |
dd184caf |
20424 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
d9898ee8 |
20425 | test_array [0] = 0 |
20426 | |
20427 | ; |
20428 | return 0; |
20429 | } |
20430 | _ACEOF |
20431 | rm -f conftest.$ac_objext |
dd184caf |
20432 | if { (ac_try="$ac_compile" |
20433 | case "(($ac_try" in |
20434 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20435 | *) ac_try_echo=$ac_try;; |
20436 | esac |
20437 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20438 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
20439 | ac_status=$? |
20440 | grep -v '^ *+' conftest.er1 >conftest.err |
20441 | rm -f conftest.er1 |
20442 | cat conftest.err >&5 |
20443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
20444 | (exit $ac_status); } && { |
20445 | test -z "$ac_c_werror_flag" || |
20446 | test ! -s conftest.err |
20447 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
20448 | ac_hi=$ac_mid; break |
20449 | else |
20450 | echo "$as_me: failed program was:" >&5 |
20451 | sed 's/^/| /' conftest.$ac_ext >&5 |
20452 | |
dd184caf |
20453 | ac_lo=`expr $ac_mid + 1` |
20454 | if test $ac_lo -le $ac_mid; then |
20455 | ac_lo= ac_hi= |
20456 | break |
20457 | fi |
20458 | ac_mid=`expr 2 '*' $ac_mid + 1` |
d9898ee8 |
20459 | fi |
dd184caf |
20460 | |
20461 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
20462 | done |
20463 | else |
20464 | echo "$as_me: failed program was:" >&5 |
20465 | sed 's/^/| /' conftest.$ac_ext >&5 |
20466 | |
dd184caf |
20467 | cat >conftest.$ac_ext <<_ACEOF |
d9898ee8 |
20468 | /* confdefs.h. */ |
20469 | _ACEOF |
20470 | cat confdefs.h >>conftest.$ac_ext |
20471 | cat >>conftest.$ac_ext <<_ACEOF |
20472 | /* end confdefs.h. */ |
20473 | $ac_includes_default |
dd184caf |
20474 | typedef unsigned long ac__type_sizeof_; |
d9898ee8 |
20475 | int |
20476 | main () |
20477 | { |
dd184caf |
20478 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
d9898ee8 |
20479 | test_array [0] = 0 |
20480 | |
20481 | ; |
20482 | return 0; |
20483 | } |
20484 | _ACEOF |
20485 | rm -f conftest.$ac_objext |
dd184caf |
20486 | if { (ac_try="$ac_compile" |
20487 | case "(($ac_try" in |
20488 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20489 | *) ac_try_echo=$ac_try;; |
20490 | esac |
20491 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20492 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
20493 | ac_status=$? |
20494 | grep -v '^ *+' conftest.er1 >conftest.err |
20495 | rm -f conftest.er1 |
20496 | cat conftest.err >&5 |
20497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
20498 | (exit $ac_status); } && { |
20499 | test -z "$ac_c_werror_flag" || |
20500 | test ! -s conftest.err |
20501 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
20502 | ac_hi=-1 ac_mid=-1 |
20503 | while :; do |
20504 | cat >conftest.$ac_ext <<_ACEOF |
20505 | /* confdefs.h. */ |
20506 | _ACEOF |
20507 | cat confdefs.h >>conftest.$ac_ext |
20508 | cat >>conftest.$ac_ext <<_ACEOF |
20509 | /* end confdefs.h. */ |
20510 | $ac_includes_default |
dd184caf |
20511 | typedef unsigned long ac__type_sizeof_; |
d9898ee8 |
20512 | int |
20513 | main () |
20514 | { |
dd184caf |
20515 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
d9898ee8 |
20516 | test_array [0] = 0 |
20517 | |
20518 | ; |
20519 | return 0; |
20520 | } |
20521 | _ACEOF |
20522 | rm -f conftest.$ac_objext |
dd184caf |
20523 | if { (ac_try="$ac_compile" |
20524 | case "(($ac_try" in |
20525 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20526 | *) ac_try_echo=$ac_try;; |
20527 | esac |
20528 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20529 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
20530 | ac_status=$? |
20531 | grep -v '^ *+' conftest.er1 >conftest.err |
20532 | rm -f conftest.er1 |
20533 | cat conftest.err >&5 |
20534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
20535 | (exit $ac_status); } && { |
20536 | test -z "$ac_c_werror_flag" || |
20537 | test ! -s conftest.err |
20538 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
20539 | ac_lo=$ac_mid; break |
20540 | else |
20541 | echo "$as_me: failed program was:" >&5 |
20542 | sed 's/^/| /' conftest.$ac_ext >&5 |
20543 | |
dd184caf |
20544 | ac_hi=`expr '(' $ac_mid ')' - 1` |
20545 | if test $ac_mid -le $ac_hi; then |
20546 | ac_lo= ac_hi= |
20547 | break |
20548 | fi |
20549 | ac_mid=`expr 2 '*' $ac_mid` |
d9898ee8 |
20550 | fi |
dd184caf |
20551 | |
20552 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
20553 | done |
20554 | else |
20555 | echo "$as_me: failed program was:" >&5 |
20556 | sed 's/^/| /' conftest.$ac_ext >&5 |
20557 | |
dd184caf |
20558 | ac_lo= ac_hi= |
d9898ee8 |
20559 | fi |
dd184caf |
20560 | |
20561 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
20562 | fi |
dd184caf |
20563 | |
20564 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
20565 | # Binary search between lo and hi bounds. |
20566 | while test "x$ac_lo" != "x$ac_hi"; do |
20567 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
20568 | cat >conftest.$ac_ext <<_ACEOF |
20569 | /* confdefs.h. */ |
20570 | _ACEOF |
20571 | cat confdefs.h >>conftest.$ac_ext |
20572 | cat >>conftest.$ac_ext <<_ACEOF |
20573 | /* end confdefs.h. */ |
20574 | $ac_includes_default |
dd184caf |
20575 | typedef unsigned long ac__type_sizeof_; |
d9898ee8 |
20576 | int |
20577 | main () |
20578 | { |
dd184caf |
20579 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
d9898ee8 |
20580 | test_array [0] = 0 |
20581 | |
20582 | ; |
20583 | return 0; |
20584 | } |
20585 | _ACEOF |
20586 | rm -f conftest.$ac_objext |
dd184caf |
20587 | if { (ac_try="$ac_compile" |
20588 | case "(($ac_try" in |
20589 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20590 | *) ac_try_echo=$ac_try;; |
20591 | esac |
20592 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20593 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
20594 | ac_status=$? |
20595 | grep -v '^ *+' conftest.er1 >conftest.err |
20596 | rm -f conftest.er1 |
20597 | cat conftest.err >&5 |
20598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
20599 | (exit $ac_status); } && { |
20600 | test -z "$ac_c_werror_flag" || |
20601 | test ! -s conftest.err |
20602 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
20603 | ac_hi=$ac_mid |
20604 | else |
20605 | echo "$as_me: failed program was:" >&5 |
20606 | sed 's/^/| /' conftest.$ac_ext >&5 |
20607 | |
dd184caf |
20608 | ac_lo=`expr '(' $ac_mid ')' + 1` |
d9898ee8 |
20609 | fi |
dd184caf |
20610 | |
20611 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
20612 | done |
20613 | case $ac_lo in |
20614 | ?*) ac_cv_sizeof_unsigned_long=$ac_lo;; |
dd184caf |
20615 | '') if test "$ac_cv_type_unsigned_long" = yes; then |
20616 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long) |
d9898ee8 |
20617 | See \`config.log' for more details." >&5 |
dd184caf |
20618 | echo "$as_me: error: cannot compute sizeof (unsigned long) |
d9898ee8 |
20619 | See \`config.log' for more details." >&2;} |
dd184caf |
20620 | { (exit 77); exit 77; }; } |
20621 | else |
20622 | ac_cv_sizeof_unsigned_long=0 |
20623 | fi ;; |
d9898ee8 |
20624 | esac |
d9898ee8 |
20625 | else |
20626 | cat >conftest.$ac_ext <<_ACEOF |
20627 | /* confdefs.h. */ |
20628 | _ACEOF |
20629 | cat confdefs.h >>conftest.$ac_ext |
20630 | cat >>conftest.$ac_ext <<_ACEOF |
20631 | /* end confdefs.h. */ |
20632 | $ac_includes_default |
dd184caf |
20633 | typedef unsigned long ac__type_sizeof_; |
20634 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
20635 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
d9898ee8 |
20636 | #include <stdio.h> |
20637 | #include <stdlib.h> |
20638 | int |
20639 | main () |
20640 | { |
20641 | |
20642 | FILE *f = fopen ("conftest.val", "w"); |
20643 | if (! f) |
dd184caf |
20644 | return 1; |
20645 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
d9898ee8 |
20646 | { |
dd184caf |
20647 | long int i = longval (); |
20648 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
20649 | return 1; |
d9898ee8 |
20650 | fprintf (f, "%ld\n", i); |
20651 | } |
20652 | else |
20653 | { |
dd184caf |
20654 | unsigned long int i = ulongval (); |
20655 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
20656 | return 1; |
d9898ee8 |
20657 | fprintf (f, "%lu\n", i); |
20658 | } |
dd184caf |
20659 | return ferror (f) || fclose (f) != 0; |
d9898ee8 |
20660 | |
20661 | ; |
20662 | return 0; |
20663 | } |
20664 | _ACEOF |
20665 | rm -f conftest$ac_exeext |
dd184caf |
20666 | if { (ac_try="$ac_link" |
20667 | case "(($ac_try" in |
20668 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20669 | *) ac_try_echo=$ac_try;; |
20670 | esac |
20671 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20672 | (eval "$ac_link") 2>&5 |
d9898ee8 |
20673 | ac_status=$? |
20674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20675 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
dd184caf |
20676 | { (case "(($ac_try" in |
20677 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20678 | *) ac_try_echo=$ac_try;; |
20679 | esac |
20680 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20681 | (eval "$ac_try") 2>&5 |
d9898ee8 |
20682 | ac_status=$? |
20683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20684 | (exit $ac_status); }; }; then |
20685 | ac_cv_sizeof_unsigned_long=`cat conftest.val` |
20686 | else |
20687 | echo "$as_me: program exited with status $ac_status" >&5 |
20688 | echo "$as_me: failed program was:" >&5 |
20689 | sed 's/^/| /' conftest.$ac_ext >&5 |
20690 | |
20691 | ( exit $ac_status ) |
dd184caf |
20692 | if test "$ac_cv_type_unsigned_long" = yes; then |
20693 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long) |
d9898ee8 |
20694 | See \`config.log' for more details." >&5 |
dd184caf |
20695 | echo "$as_me: error: cannot compute sizeof (unsigned long) |
d9898ee8 |
20696 | See \`config.log' for more details." >&2;} |
dd184caf |
20697 | { (exit 77); exit 77; }; } |
20698 | else |
20699 | ac_cv_sizeof_unsigned_long=0 |
20700 | fi |
d9898ee8 |
20701 | fi |
dd184caf |
20702 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
20703 | fi |
20704 | rm -f conftest.val |
d9898ee8 |
20705 | fi |
dd184caf |
20706 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5 |
20707 | echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; } |
20708 | |
20709 | |
20710 | |
d9898ee8 |
20711 | cat >>confdefs.h <<_ACEOF |
20712 | #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long |
20713 | _ACEOF |
20714 | |
20715 | |
20716 | if test "$ac_cv_sizeof_unsigned_long" != 4 |
20717 | then |
dd184caf |
20718 | { echo "$as_me:$LINENO: checking for unsigned short" >&5 |
20719 | echo $ECHO_N "checking for unsigned short... $ECHO_C" >&6; } |
d9898ee8 |
20720 | if test "${ac_cv_type_unsigned_short+set}" = set; then |
20721 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20722 | else |
20723 | cat >conftest.$ac_ext <<_ACEOF |
20724 | /* confdefs.h. */ |
20725 | _ACEOF |
20726 | cat confdefs.h >>conftest.$ac_ext |
20727 | cat >>conftest.$ac_ext <<_ACEOF |
20728 | /* end confdefs.h. */ |
20729 | $ac_includes_default |
dd184caf |
20730 | typedef unsigned short ac__type_new_; |
d9898ee8 |
20731 | int |
20732 | main () |
20733 | { |
dd184caf |
20734 | if ((ac__type_new_ *) 0) |
d9898ee8 |
20735 | return 0; |
dd184caf |
20736 | if (sizeof (ac__type_new_)) |
d9898ee8 |
20737 | return 0; |
20738 | ; |
20739 | return 0; |
20740 | } |
20741 | _ACEOF |
20742 | rm -f conftest.$ac_objext |
dd184caf |
20743 | if { (ac_try="$ac_compile" |
20744 | case "(($ac_try" in |
20745 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20746 | *) ac_try_echo=$ac_try;; |
20747 | esac |
20748 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20749 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
20750 | ac_status=$? |
20751 | grep -v '^ *+' conftest.er1 >conftest.err |
20752 | rm -f conftest.er1 |
20753 | cat conftest.err >&5 |
20754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
20755 | (exit $ac_status); } && { |
20756 | test -z "$ac_c_werror_flag" || |
20757 | test ! -s conftest.err |
20758 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
20759 | ac_cv_type_unsigned_short=yes |
20760 | else |
20761 | echo "$as_me: failed program was:" >&5 |
20762 | sed 's/^/| /' conftest.$ac_ext >&5 |
20763 | |
dd184caf |
20764 | ac_cv_type_unsigned_short=no |
d9898ee8 |
20765 | fi |
dd184caf |
20766 | |
20767 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
20768 | fi |
dd184caf |
20769 | { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_short" >&5 |
20770 | echo "${ECHO_T}$ac_cv_type_unsigned_short" >&6; } |
d9898ee8 |
20771 | |
dd184caf |
20772 | # The cast to long int works around a bug in the HP C Compiler |
20773 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
20774 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
20775 | # This bug is HP SR number 8606223364. |
20776 | { echo "$as_me:$LINENO: checking size of unsigned short" >&5 |
20777 | echo $ECHO_N "checking size of unsigned short... $ECHO_C" >&6; } |
d9898ee8 |
20778 | if test "${ac_cv_sizeof_unsigned_short+set}" = set; then |
20779 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20780 | else |
d9898ee8 |
20781 | if test "$cross_compiling" = yes; then |
20782 | # Depending upon the size, compute the lo and hi bounds. |
20783 | cat >conftest.$ac_ext <<_ACEOF |
20784 | /* confdefs.h. */ |
20785 | _ACEOF |
20786 | cat confdefs.h >>conftest.$ac_ext |
20787 | cat >>conftest.$ac_ext <<_ACEOF |
20788 | /* end confdefs.h. */ |
20789 | $ac_includes_default |
dd184caf |
20790 | typedef unsigned short ac__type_sizeof_; |
d9898ee8 |
20791 | int |
20792 | main () |
20793 | { |
dd184caf |
20794 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
d9898ee8 |
20795 | test_array [0] = 0 |
20796 | |
20797 | ; |
20798 | return 0; |
20799 | } |
20800 | _ACEOF |
20801 | rm -f conftest.$ac_objext |
dd184caf |
20802 | if { (ac_try="$ac_compile" |
20803 | case "(($ac_try" in |
20804 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20805 | *) ac_try_echo=$ac_try;; |
20806 | esac |
20807 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20808 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
20809 | ac_status=$? |
20810 | grep -v '^ *+' conftest.er1 >conftest.err |
20811 | rm -f conftest.er1 |
20812 | cat conftest.err >&5 |
20813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
20814 | (exit $ac_status); } && { |
20815 | test -z "$ac_c_werror_flag" || |
20816 | test ! -s conftest.err |
20817 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
20818 | ac_lo=0 ac_mid=0 |
20819 | while :; do |
20820 | cat >conftest.$ac_ext <<_ACEOF |
20821 | /* confdefs.h. */ |
20822 | _ACEOF |
20823 | cat confdefs.h >>conftest.$ac_ext |
20824 | cat >>conftest.$ac_ext <<_ACEOF |
20825 | /* end confdefs.h. */ |
20826 | $ac_includes_default |
dd184caf |
20827 | typedef unsigned short ac__type_sizeof_; |
d9898ee8 |
20828 | int |
20829 | main () |
20830 | { |
dd184caf |
20831 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
d9898ee8 |
20832 | test_array [0] = 0 |
20833 | |
20834 | ; |
20835 | return 0; |
20836 | } |
20837 | _ACEOF |
20838 | rm -f conftest.$ac_objext |
dd184caf |
20839 | if { (ac_try="$ac_compile" |
20840 | case "(($ac_try" in |
20841 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20842 | *) ac_try_echo=$ac_try;; |
20843 | esac |
20844 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20845 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
20846 | ac_status=$? |
20847 | grep -v '^ *+' conftest.er1 >conftest.err |
20848 | rm -f conftest.er1 |
20849 | cat conftest.err >&5 |
20850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
20851 | (exit $ac_status); } && { |
20852 | test -z "$ac_c_werror_flag" || |
20853 | test ! -s conftest.err |
20854 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
20855 | ac_hi=$ac_mid; break |
20856 | else |
20857 | echo "$as_me: failed program was:" >&5 |
20858 | sed 's/^/| /' conftest.$ac_ext >&5 |
20859 | |
dd184caf |
20860 | ac_lo=`expr $ac_mid + 1` |
20861 | if test $ac_lo -le $ac_mid; then |
20862 | ac_lo= ac_hi= |
20863 | break |
20864 | fi |
20865 | ac_mid=`expr 2 '*' $ac_mid + 1` |
d9898ee8 |
20866 | fi |
dd184caf |
20867 | |
20868 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
20869 | done |
20870 | else |
20871 | echo "$as_me: failed program was:" >&5 |
20872 | sed 's/^/| /' conftest.$ac_ext >&5 |
20873 | |
dd184caf |
20874 | cat >conftest.$ac_ext <<_ACEOF |
d9898ee8 |
20875 | /* confdefs.h. */ |
20876 | _ACEOF |
20877 | cat confdefs.h >>conftest.$ac_ext |
20878 | cat >>conftest.$ac_ext <<_ACEOF |
20879 | /* end confdefs.h. */ |
20880 | $ac_includes_default |
dd184caf |
20881 | typedef unsigned short ac__type_sizeof_; |
d9898ee8 |
20882 | int |
20883 | main () |
20884 | { |
dd184caf |
20885 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
d9898ee8 |
20886 | test_array [0] = 0 |
20887 | |
20888 | ; |
20889 | return 0; |
20890 | } |
20891 | _ACEOF |
20892 | rm -f conftest.$ac_objext |
dd184caf |
20893 | if { (ac_try="$ac_compile" |
20894 | case "(($ac_try" in |
20895 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20896 | *) ac_try_echo=$ac_try;; |
20897 | esac |
20898 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20899 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
20900 | ac_status=$? |
20901 | grep -v '^ *+' conftest.er1 >conftest.err |
20902 | rm -f conftest.er1 |
20903 | cat conftest.err >&5 |
20904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
20905 | (exit $ac_status); } && { |
20906 | test -z "$ac_c_werror_flag" || |
20907 | test ! -s conftest.err |
20908 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
20909 | ac_hi=-1 ac_mid=-1 |
20910 | while :; do |
20911 | cat >conftest.$ac_ext <<_ACEOF |
20912 | /* confdefs.h. */ |
20913 | _ACEOF |
20914 | cat confdefs.h >>conftest.$ac_ext |
20915 | cat >>conftest.$ac_ext <<_ACEOF |
20916 | /* end confdefs.h. */ |
20917 | $ac_includes_default |
dd184caf |
20918 | typedef unsigned short ac__type_sizeof_; |
d9898ee8 |
20919 | int |
20920 | main () |
20921 | { |
dd184caf |
20922 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
d9898ee8 |
20923 | test_array [0] = 0 |
20924 | |
20925 | ; |
20926 | return 0; |
20927 | } |
20928 | _ACEOF |
20929 | rm -f conftest.$ac_objext |
dd184caf |
20930 | if { (ac_try="$ac_compile" |
20931 | case "(($ac_try" in |
20932 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20933 | *) ac_try_echo=$ac_try;; |
20934 | esac |
20935 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20936 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
20937 | ac_status=$? |
20938 | grep -v '^ *+' conftest.er1 >conftest.err |
20939 | rm -f conftest.er1 |
20940 | cat conftest.err >&5 |
20941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
20942 | (exit $ac_status); } && { |
20943 | test -z "$ac_c_werror_flag" || |
20944 | test ! -s conftest.err |
20945 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
20946 | ac_lo=$ac_mid; break |
20947 | else |
20948 | echo "$as_me: failed program was:" >&5 |
20949 | sed 's/^/| /' conftest.$ac_ext >&5 |
20950 | |
dd184caf |
20951 | ac_hi=`expr '(' $ac_mid ')' - 1` |
20952 | if test $ac_mid -le $ac_hi; then |
20953 | ac_lo= ac_hi= |
20954 | break |
20955 | fi |
20956 | ac_mid=`expr 2 '*' $ac_mid` |
d9898ee8 |
20957 | fi |
dd184caf |
20958 | |
20959 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
20960 | done |
20961 | else |
20962 | echo "$as_me: failed program was:" >&5 |
20963 | sed 's/^/| /' conftest.$ac_ext >&5 |
20964 | |
dd184caf |
20965 | ac_lo= ac_hi= |
d9898ee8 |
20966 | fi |
dd184caf |
20967 | |
20968 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
20969 | fi |
dd184caf |
20970 | |
20971 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
20972 | # Binary search between lo and hi bounds. |
20973 | while test "x$ac_lo" != "x$ac_hi"; do |
20974 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
20975 | cat >conftest.$ac_ext <<_ACEOF |
20976 | /* confdefs.h. */ |
20977 | _ACEOF |
20978 | cat confdefs.h >>conftest.$ac_ext |
20979 | cat >>conftest.$ac_ext <<_ACEOF |
20980 | /* end confdefs.h. */ |
20981 | $ac_includes_default |
dd184caf |
20982 | typedef unsigned short ac__type_sizeof_; |
d9898ee8 |
20983 | int |
20984 | main () |
20985 | { |
dd184caf |
20986 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
d9898ee8 |
20987 | test_array [0] = 0 |
20988 | |
20989 | ; |
20990 | return 0; |
20991 | } |
20992 | _ACEOF |
20993 | rm -f conftest.$ac_objext |
dd184caf |
20994 | if { (ac_try="$ac_compile" |
20995 | case "(($ac_try" in |
20996 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20997 | *) ac_try_echo=$ac_try;; |
20998 | esac |
20999 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
21000 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
21001 | ac_status=$? |
21002 | grep -v '^ *+' conftest.er1 >conftest.err |
21003 | rm -f conftest.er1 |
21004 | cat conftest.err >&5 |
21005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
21006 | (exit $ac_status); } && { |
21007 | test -z "$ac_c_werror_flag" || |
21008 | test ! -s conftest.err |
21009 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
21010 | ac_hi=$ac_mid |
21011 | else |
21012 | echo "$as_me: failed program was:" >&5 |
21013 | sed 's/^/| /' conftest.$ac_ext >&5 |
21014 | |
dd184caf |
21015 | ac_lo=`expr '(' $ac_mid ')' + 1` |
d9898ee8 |
21016 | fi |
dd184caf |
21017 | |
21018 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
21019 | done |
21020 | case $ac_lo in |
21021 | ?*) ac_cv_sizeof_unsigned_short=$ac_lo;; |
dd184caf |
21022 | '') if test "$ac_cv_type_unsigned_short" = yes; then |
21023 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short) |
d9898ee8 |
21024 | See \`config.log' for more details." >&5 |
dd184caf |
21025 | echo "$as_me: error: cannot compute sizeof (unsigned short) |
d9898ee8 |
21026 | See \`config.log' for more details." >&2;} |
dd184caf |
21027 | { (exit 77); exit 77; }; } |
21028 | else |
21029 | ac_cv_sizeof_unsigned_short=0 |
21030 | fi ;; |
d9898ee8 |
21031 | esac |
d9898ee8 |
21032 | else |
21033 | cat >conftest.$ac_ext <<_ACEOF |
21034 | /* confdefs.h. */ |
21035 | _ACEOF |
21036 | cat confdefs.h >>conftest.$ac_ext |
21037 | cat >>conftest.$ac_ext <<_ACEOF |
21038 | /* end confdefs.h. */ |
21039 | $ac_includes_default |
dd184caf |
21040 | typedef unsigned short ac__type_sizeof_; |
21041 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
21042 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
d9898ee8 |
21043 | #include <stdio.h> |
21044 | #include <stdlib.h> |
21045 | int |
21046 | main () |
21047 | { |
21048 | |
21049 | FILE *f = fopen ("conftest.val", "w"); |
21050 | if (! f) |
dd184caf |
21051 | return 1; |
21052 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
d9898ee8 |
21053 | { |
dd184caf |
21054 | long int i = longval (); |
21055 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
21056 | return 1; |
d9898ee8 |
21057 | fprintf (f, "%ld\n", i); |
21058 | } |
21059 | else |
21060 | { |
dd184caf |
21061 | unsigned long int i = ulongval (); |
21062 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
21063 | return 1; |
d9898ee8 |
21064 | fprintf (f, "%lu\n", i); |
21065 | } |
dd184caf |
21066 | return ferror (f) || fclose (f) != 0; |
d9898ee8 |
21067 | |
21068 | ; |
21069 | return 0; |
21070 | } |
21071 | _ACEOF |
21072 | rm -f conftest$ac_exeext |
dd184caf |
21073 | if { (ac_try="$ac_link" |
21074 | case "(($ac_try" in |
21075 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
21076 | *) ac_try_echo=$ac_try;; |
21077 | esac |
21078 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
21079 | (eval "$ac_link") 2>&5 |
d9898ee8 |
21080 | ac_status=$? |
21081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21082 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
dd184caf |
21083 | { (case "(($ac_try" in |
21084 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
21085 | *) ac_try_echo=$ac_try;; |
21086 | esac |
21087 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
21088 | (eval "$ac_try") 2>&5 |
d9898ee8 |
21089 | ac_status=$? |
21090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21091 | (exit $ac_status); }; }; then |
21092 | ac_cv_sizeof_unsigned_short=`cat conftest.val` |
21093 | else |
21094 | echo "$as_me: program exited with status $ac_status" >&5 |
21095 | echo "$as_me: failed program was:" >&5 |
21096 | sed 's/^/| /' conftest.$ac_ext >&5 |
21097 | |
21098 | ( exit $ac_status ) |
dd184caf |
21099 | if test "$ac_cv_type_unsigned_short" = yes; then |
21100 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short) |
d9898ee8 |
21101 | See \`config.log' for more details." >&5 |
dd184caf |
21102 | echo "$as_me: error: cannot compute sizeof (unsigned short) |
d9898ee8 |
21103 | See \`config.log' for more details." >&2;} |
dd184caf |
21104 | { (exit 77); exit 77; }; } |
21105 | else |
21106 | ac_cv_sizeof_unsigned_short=0 |
21107 | fi |
d9898ee8 |
21108 | fi |
dd184caf |
21109 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
21110 | fi |
21111 | rm -f conftest.val |
d9898ee8 |
21112 | fi |
dd184caf |
21113 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short" >&5 |
21114 | echo "${ECHO_T}$ac_cv_sizeof_unsigned_short" >&6; } |
21115 | |
21116 | |
21117 | |
d9898ee8 |
21118 | cat >>confdefs.h <<_ACEOF |
21119 | #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short |
21120 | _ACEOF |
21121 | |
21122 | |
21123 | if test "$ac_cv_sizeof_unsigned_short" != 4 |
21124 | then |
21125 | { { echo "$as_me:$LINENO: error: --with-int32 option is required" >&5 |
21126 | echo "$as_me: error: --with-int32 option is required" >&2;} |
21127 | { (exit 1); exit 1; }; } |
21128 | fi |
21129 | int32="unsigned short" |
21130 | fi |
21131 | int32="unsigned long" |
21132 | else |
21133 | int32="unsigned" |
21134 | fi |
21135 | |
21136 | fi |
dd184caf |
21137 | |
21138 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
21139 | |
21140 | fi |
d9898ee8 |
21141 | |
dd184caf |
21142 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
21143 | |
21144 | |
21145 | fi |
d9898ee8 |
21146 | |
d9898ee8 |
21147 | UINT32="$int32" |
21148 | |
21149 | |
21150 | cat >>confdefs.h <<_ACEOF |
21151 | #define MD5_WORD $UINT32 |
21152 | _ACEOF |
21153 | |
21154 | |
dd184caf |
21155 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
21156 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } |
d9898ee8 |
21157 | if test "${ac_cv_c_const+set}" = set; then |
21158 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21159 | else |
21160 | cat >conftest.$ac_ext <<_ACEOF |
21161 | /* confdefs.h. */ |
21162 | _ACEOF |
21163 | cat confdefs.h >>conftest.$ac_ext |
21164 | cat >>conftest.$ac_ext <<_ACEOF |
21165 | /* end confdefs.h. */ |
21166 | |
21167 | int |
21168 | main () |
21169 | { |
21170 | /* FIXME: Include the comments suggested by Paul. */ |
21171 | #ifndef __cplusplus |
21172 | /* Ultrix mips cc rejects this. */ |
21173 | typedef int charset[2]; |
dd184caf |
21174 | const charset cs; |
d9898ee8 |
21175 | /* SunOS 4.1.1 cc rejects this. */ |
dd184caf |
21176 | char const *const *pcpcc; |
21177 | char **ppc; |
d9898ee8 |
21178 | /* NEC SVR4.0.2 mips cc rejects this. */ |
21179 | struct point {int x, y;}; |
21180 | static struct point const zero = {0,0}; |
21181 | /* AIX XL C 1.02.0.0 rejects this. |
21182 | It does not let you subtract one const X* pointer from another in |
21183 | an arm of an if-expression whose if-part is not a constant |
21184 | expression */ |
21185 | const char *g = "string"; |
dd184caf |
21186 | pcpcc = &g + (g ? g-g : 0); |
d9898ee8 |
21187 | /* HPUX 7.0 cc rejects these. */ |
dd184caf |
21188 | ++pcpcc; |
21189 | ppc = (char**) pcpcc; |
21190 | pcpcc = (char const *const *) ppc; |
d9898ee8 |
21191 | { /* SCO 3.2v4 cc rejects this. */ |
21192 | char *t; |
21193 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
21194 | |
21195 | *t++ = 0; |
dd184caf |
21196 | if (s) return 0; |
d9898ee8 |
21197 | } |
21198 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
21199 | int x[] = {25, 17}; |
21200 | const int *foo = &x[0]; |
21201 | ++foo; |
21202 | } |
21203 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
21204 | typedef const int *iptr; |
21205 | iptr p = 0; |
21206 | ++p; |
21207 | } |
21208 | { /* AIX XL C 1.02.0.0 rejects this saying |
21209 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
21210 | struct s { int j; const int *ap[3]; }; |
21211 | struct s *b; b->j = 5; |
21212 | } |
21213 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
21214 | const int foo = 10; |
dd184caf |
21215 | if (!foo) return 0; |
d9898ee8 |
21216 | } |
dd184caf |
21217 | return !cs[0] && !zero.x; |
d9898ee8 |
21218 | #endif |
21219 | |
21220 | ; |
21221 | return 0; |
21222 | } |
21223 | _ACEOF |
21224 | rm -f conftest.$ac_objext |
dd184caf |
21225 | if { (ac_try="$ac_compile" |
21226 | case "(($ac_try" in |
21227 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
21228 | *) ac_try_echo=$ac_try;; |
21229 | esac |
21230 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
21231 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
21232 | ac_status=$? |
21233 | grep -v '^ *+' conftest.er1 >conftest.err |
21234 | rm -f conftest.er1 |
21235 | cat conftest.err >&5 |
21236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
21237 | (exit $ac_status); } && { |
21238 | test -z "$ac_c_werror_flag" || |
21239 | test ! -s conftest.err |
21240 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
21241 | ac_cv_c_const=yes |
21242 | else |
21243 | echo "$as_me: failed program was:" >&5 |
21244 | sed 's/^/| /' conftest.$ac_ext >&5 |
21245 | |
dd184caf |
21246 | ac_cv_c_const=no |
d9898ee8 |
21247 | fi |
dd184caf |
21248 | |
21249 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
21250 | fi |
dd184caf |
21251 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
21252 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
d9898ee8 |
21253 | if test $ac_cv_c_const = no; then |
21254 | |
21255 | cat >>confdefs.h <<\_ACEOF |
21256 | #define const |
21257 | _ACEOF |
21258 | |
21259 | fi |
21260 | |
21261 | |
21262 | |
dd184caf |
21263 | ac_config_files="$ac_config_files Makefile" |
21264 | |
d9898ee8 |
21265 | cat >confcache <<\_ACEOF |
21266 | # This file is a shell script that caches the results of configure |
21267 | # tests run on this system so they can be shared between configure |
21268 | # scripts and configure runs, see configure's option --config-cache. |
21269 | # It is not useful on other systems. If it contains results you don't |
21270 | # want to keep, you may remove or edit it. |
21271 | # |
21272 | # config.status only pays attention to the cache file if you give it |
21273 | # the --recheck option to rerun configure. |
21274 | # |
21275 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
21276 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
21277 | # following values. |
21278 | |
21279 | _ACEOF |
21280 | |
21281 | # The following way of writing the cache mishandles newlines in values, |
21282 | # but we know of no workaround that is simple, portable, and efficient. |
dd184caf |
21283 | # So, we kill variables containing newlines. |
d9898ee8 |
21284 | # Ultrix sh set writes to stderr and can't be redirected directly, |
21285 | # and sets the high bit in the cache file unless we assign to the vars. |
dd184caf |
21286 | ( |
21287 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
21288 | eval ac_val=\$$ac_var |
21289 | case $ac_val in #( |
21290 | *${as_nl}*) |
21291 | case $ac_var in #( |
21292 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
21293 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
21294 | esac |
21295 | case $ac_var in #( |
21296 | _ | IFS | as_nl) ;; #( |
21297 | *) $as_unset $ac_var ;; |
21298 | esac ;; |
21299 | esac |
21300 | done |
21301 | |
d9898ee8 |
21302 | (set) 2>&1 | |
dd184caf |
21303 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
21304 | *${as_nl}ac_space=\ *) |
d9898ee8 |
21305 | # `set' does not quote correctly, so add quotes (double-quote |
21306 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
21307 | sed -n \ |
21308 | "s/'/'\\\\''/g; |
21309 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
dd184caf |
21310 | ;; #( |
d9898ee8 |
21311 | *) |
21312 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
dd184caf |
21313 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
d9898ee8 |
21314 | ;; |
dd184caf |
21315 | esac | |
21316 | sort |
21317 | ) | |
d9898ee8 |
21318 | sed ' |
dd184caf |
21319 | /^ac_cv_env_/b end |
d9898ee8 |
21320 | t clear |
dd184caf |
21321 | :clear |
d9898ee8 |
21322 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
21323 | t end |
dd184caf |
21324 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
21325 | :end' >>confcache |
21326 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
21327 | if test -w "$cache_file"; then |
21328 | test "x$cache_file" != "x/dev/null" && |
21329 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
21330 | echo "$as_me: updating cache $cache_file" >&6;} |
d9898ee8 |
21331 | cat confcache >$cache_file |
21332 | else |
dd184caf |
21333 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
21334 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
d9898ee8 |
21335 | fi |
21336 | fi |
21337 | rm -f confcache |
21338 | |
21339 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
21340 | # Let make expand exec_prefix. |
21341 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
21342 | |
d9898ee8 |
21343 | DEFS=-DHAVE_CONFIG_H |
21344 | |
21345 | ac_libobjs= |
21346 | ac_ltlibobjs= |
21347 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
21348 | # 1. Remove the extension, and $U if already installed. |
dd184caf |
21349 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
21350 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
21351 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
21352 | # will be set to the directory where LIBOBJS objects are built. |
21353 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
21354 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
d9898ee8 |
21355 | done |
21356 | LIBOBJS=$ac_libobjs |
21357 | |
21358 | LTLIBOBJS=$ac_ltlibobjs |
21359 | |
21360 | |
21361 | if test -z "${HMACC_TRUE}" && test -z "${HMACC_FALSE}"; then |
21362 | { { echo "$as_me:$LINENO: error: conditional \"HMACC\" was never defined. |
21363 | Usually this means the macro was only invoked conditionally." >&5 |
21364 | echo "$as_me: error: conditional \"HMACC\" was never defined. |
21365 | Usually this means the macro was only invoked conditionally." >&2;} |
21366 | { (exit 1); exit 1; }; } |
21367 | fi |
21368 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
21369 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
21370 | Usually this means the macro was only invoked conditionally." >&5 |
21371 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
21372 | Usually this means the macro was only invoked conditionally." >&2;} |
21373 | { (exit 1); exit 1; }; } |
21374 | fi |
21375 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
21376 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
21377 | Usually this means the macro was only invoked conditionally." >&5 |
21378 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
21379 | Usually this means the macro was only invoked conditionally." >&2;} |
21380 | { (exit 1); exit 1; }; } |
21381 | fi |
21382 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
21383 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
21384 | Usually this means the macro was only invoked conditionally." >&5 |
21385 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
21386 | Usually this means the macro was only invoked conditionally." >&2;} |
21387 | { (exit 1); exit 1; }; } |
21388 | fi |
21389 | |
21390 | : ${CONFIG_STATUS=./config.status} |
21391 | ac_clean_files_save=$ac_clean_files |
21392 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
21393 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
21394 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
21395 | cat >$CONFIG_STATUS <<_ACEOF |
21396 | #! $SHELL |
21397 | # Generated by $as_me. |
21398 | # Run this file to recreate the current configuration. |
21399 | # Compiler output produced by configure, useful for debugging |
21400 | # configure, is in config.log if it exists. |
21401 | |
21402 | debug=false |
21403 | ac_cs_recheck=false |
21404 | ac_cs_silent=false |
21405 | SHELL=\${CONFIG_SHELL-$SHELL} |
21406 | _ACEOF |
21407 | |
21408 | cat >>$CONFIG_STATUS <<\_ACEOF |
21409 | ## --------------------- ## |
21410 | ## M4sh Initialization. ## |
21411 | ## --------------------- ## |
21412 | |
dd184caf |
21413 | # Be more Bourne compatible |
21414 | DUALCASE=1; export DUALCASE # for MKS sh |
d9898ee8 |
21415 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
21416 | emulate sh |
21417 | NULLCMD=: |
21418 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
21419 | # is contrary to our usage. Disable this feature. |
21420 | alias -g '${1+"$@"}'='"$@"' |
dd184caf |
21421 | setopt NO_GLOB_SUBST |
21422 | else |
21423 | case `(set -o) 2>/dev/null` in |
21424 | *posix*) set -o posix ;; |
21425 | esac |
21426 | |
21427 | fi |
21428 | |
21429 | |
21430 | |
21431 | |
21432 | # PATH needs CR |
21433 | # Avoid depending upon Character Ranges. |
21434 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
21435 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
21436 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
21437 | as_cr_digits='0123456789' |
21438 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
21439 | |
21440 | # The user is always right. |
21441 | if test "${PATH_SEPARATOR+set}" != set; then |
21442 | echo "#! /bin/sh" >conf$$.sh |
21443 | echo "exit 0" >>conf$$.sh |
21444 | chmod +x conf$$.sh |
21445 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
21446 | PATH_SEPARATOR=';' |
21447 | else |
21448 | PATH_SEPARATOR=: |
21449 | fi |
21450 | rm -f conf$$.sh |
d9898ee8 |
21451 | fi |
d9898ee8 |
21452 | |
21453 | # Support unset when possible. |
21454 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
21455 | as_unset=unset |
21456 | else |
21457 | as_unset=false |
21458 | fi |
21459 | |
21460 | |
dd184caf |
21461 | # IFS |
21462 | # We need space, tab and new line, in precisely that order. Quoting is |
21463 | # there to prevent editors from complaining about space-tab. |
21464 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
21465 | # splitting by setting IFS to empty value.) |
21466 | as_nl=' |
21467 | ' |
21468 | IFS=" "" $as_nl" |
21469 | |
21470 | # Find who we are. Look in the path if we contain no directory separator. |
21471 | case $0 in |
21472 | *[\\/]* ) as_myself=$0 ;; |
21473 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
21474 | for as_dir in $PATH |
21475 | do |
21476 | IFS=$as_save_IFS |
21477 | test -z "$as_dir" && as_dir=. |
21478 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
21479 | done |
21480 | IFS=$as_save_IFS |
21481 | |
21482 | ;; |
21483 | esac |
21484 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
21485 | # in which case we are not to be found in the path. |
21486 | if test "x$as_myself" = x; then |
21487 | as_myself=$0 |
21488 | fi |
21489 | if test ! -f "$as_myself"; then |
21490 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
21491 | { (exit 1); exit 1; } |
21492 | fi |
21493 | |
d9898ee8 |
21494 | # Work around bugs in pre-3.0 UWIN ksh. |
dd184caf |
21495 | for as_var in ENV MAIL MAILPATH |
21496 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
21497 | done |
d9898ee8 |
21498 | PS1='$ ' |
21499 | PS2='> ' |
21500 | PS4='+ ' |
21501 | |
21502 | # NLS nuisances. |
21503 | for as_var in \ |
21504 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
21505 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
21506 | LC_TELEPHONE LC_TIME |
21507 | do |
21508 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
21509 | eval $as_var=C; export $as_var |
21510 | else |
dd184caf |
21511 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
d9898ee8 |
21512 | fi |
21513 | done |
21514 | |
21515 | # Required to use basename. |
dd184caf |
21516 | if expr a : '\(a\)' >/dev/null 2>&1 && |
21517 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
d9898ee8 |
21518 | as_expr=expr |
21519 | else |
21520 | as_expr=false |
21521 | fi |
21522 | |
dd184caf |
21523 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
d9898ee8 |
21524 | as_basename=basename |
21525 | else |
21526 | as_basename=false |
21527 | fi |
21528 | |
21529 | |
21530 | # Name of the executable. |
dd184caf |
21531 | as_me=`$as_basename -- "$0" || |
d9898ee8 |
21532 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
21533 | X"$0" : 'X\(//\)$' \| \ |
dd184caf |
21534 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
21535 | echo X/"$0" | |
dd184caf |
21536 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
21537 | s//\1/ |
21538 | q |
21539 | } |
21540 | /^X\/\(\/\/\)$/{ |
21541 | s//\1/ |
21542 | q |
21543 | } |
21544 | /^X\/\(\/\).*/{ |
21545 | s//\1/ |
21546 | q |
21547 | } |
21548 | s/.*/./; q'` |
d9898ee8 |
21549 | |
dd184caf |
21550 | # CDPATH. |
21551 | $as_unset CDPATH |
d9898ee8 |
21552 | |
d9898ee8 |
21553 | |
21554 | |
21555 | as_lineno_1=$LINENO |
21556 | as_lineno_2=$LINENO |
d9898ee8 |
21557 | test "x$as_lineno_1" != "x$as_lineno_2" && |
dd184caf |
21558 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
d9898ee8 |
21559 | |
21560 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
21561 | # uniformly replaced by the line number. The first 'sed' inserts a |
dd184caf |
21562 | # line-number line after each line using $LINENO; the second 'sed' |
21563 | # does the real work. The second script uses 'N' to pair each |
21564 | # line-number line with the line containing $LINENO, and appends |
21565 | # trailing '-' during substitution so that $LINENO is not a special |
21566 | # case at line end. |
d9898ee8 |
21567 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
dd184caf |
21568 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
21569 | # E. McMahon (1931-1989) for sed's syntax. :-) |
21570 | sed -n ' |
21571 | p |
21572 | /[$]LINENO/= |
21573 | ' <$as_myself | |
d9898ee8 |
21574 | sed ' |
dd184caf |
21575 | s/[$]LINENO.*/&-/ |
21576 | t lineno |
21577 | b |
21578 | :lineno |
d9898ee8 |
21579 | N |
dd184caf |
21580 | :loop |
21581 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
d9898ee8 |
21582 | t loop |
dd184caf |
21583 | s/-\n.*// |
d9898ee8 |
21584 | ' >$as_me.lineno && |
dd184caf |
21585 | chmod +x "$as_me.lineno" || |
21586 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
d9898ee8 |
21587 | { (exit 1); exit 1; }; } |
21588 | |
21589 | # Don't try to exec as it changes $[0], causing all sort of problems |
21590 | # (the dirname of $[0] is not the place where we might find the |
dd184caf |
21591 | # original and so on. Autoconf is especially sensitive to this). |
21592 | . "./$as_me.lineno" |
d9898ee8 |
21593 | # Exit status is that of the last command. |
21594 | exit |
21595 | } |
21596 | |
21597 | |
dd184caf |
21598 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
21599 | as_dirname=dirname |
21600 | else |
21601 | as_dirname=false |
21602 | fi |
21603 | |
21604 | ECHO_C= ECHO_N= ECHO_T= |
21605 | case `echo -n x` in |
21606 | -n*) |
21607 | case `echo 'x\c'` in |
21608 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
21609 | *) ECHO_C='\c';; |
21610 | esac;; |
21611 | *) |
21612 | ECHO_N='-n';; |
d9898ee8 |
21613 | esac |
21614 | |
dd184caf |
21615 | if expr a : '\(a\)' >/dev/null 2>&1 && |
21616 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
d9898ee8 |
21617 | as_expr=expr |
21618 | else |
21619 | as_expr=false |
21620 | fi |
21621 | |
21622 | rm -f conf$$ conf$$.exe conf$$.file |
dd184caf |
21623 | if test -d conf$$.dir; then |
21624 | rm -f conf$$.dir/conf$$.file |
21625 | else |
21626 | rm -f conf$$.dir |
21627 | mkdir conf$$.dir |
21628 | fi |
d9898ee8 |
21629 | echo >conf$$.file |
21630 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
dd184caf |
21631 | as_ln_s='ln -s' |
21632 | # ... but there are two gotchas: |
21633 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
21634 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
21635 | # In both cases, we have to default to `cp -p'. |
21636 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
d9898ee8 |
21637 | as_ln_s='cp -p' |
d9898ee8 |
21638 | elif ln conf$$.file conf$$ 2>/dev/null; then |
21639 | as_ln_s=ln |
21640 | else |
21641 | as_ln_s='cp -p' |
21642 | fi |
dd184caf |
21643 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
21644 | rmdir conf$$.dir 2>/dev/null |
d9898ee8 |
21645 | |
21646 | if mkdir -p . 2>/dev/null; then |
21647 | as_mkdir_p=: |
21648 | else |
21649 | test -d ./-p && rmdir ./-p |
21650 | as_mkdir_p=false |
21651 | fi |
21652 | |
dd184caf |
21653 | if test -x / >/dev/null 2>&1; then |
21654 | as_test_x='test -x' |
21655 | else |
21656 | if ls -dL / >/dev/null 2>&1; then |
21657 | as_ls_L_option=L |
21658 | else |
21659 | as_ls_L_option= |
21660 | fi |
21661 | as_test_x=' |
21662 | eval sh -c '\'' |
21663 | if test -d "$1"; then |
21664 | test -d "$1/."; |
21665 | else |
21666 | case $1 in |
21667 | -*)set "./$1";; |
21668 | esac; |
21669 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
21670 | ???[sx]*):;;*)false;;esac;fi |
21671 | '\'' sh |
21672 | ' |
21673 | fi |
21674 | as_executable_p=$as_test_x |
d9898ee8 |
21675 | |
21676 | # Sed expression to map a string onto a valid CPP name. |
21677 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
21678 | |
21679 | # Sed expression to map a string onto a valid variable name. |
21680 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
21681 | |
21682 | |
d9898ee8 |
21683 | exec 6>&1 |
21684 | |
dd184caf |
21685 | # Save the log message, to keep $[0] and so on meaningful, and to |
d9898ee8 |
21686 | # report actual input values of CONFIG_FILES etc. instead of their |
dd184caf |
21687 | # values after options handling. |
21688 | ac_log=" |
d9898ee8 |
21689 | This file was extended by libmd5 $as_me 1.21, which was |
dd184caf |
21690 | generated by GNU Autoconf 2.61. Invocation command line was |
d9898ee8 |
21691 | |
21692 | CONFIG_FILES = $CONFIG_FILES |
21693 | CONFIG_HEADERS = $CONFIG_HEADERS |
21694 | CONFIG_LINKS = $CONFIG_LINKS |
21695 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
21696 | $ $0 $@ |
21697 | |
dd184caf |
21698 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
21699 | " |
21700 | |
d9898ee8 |
21701 | _ACEOF |
21702 | |
dd184caf |
21703 | cat >>$CONFIG_STATUS <<_ACEOF |
d9898ee8 |
21704 | # Files that config.status was made for. |
dd184caf |
21705 | config_files="$ac_config_files" |
21706 | config_headers="$ac_config_headers" |
21707 | config_commands="$ac_config_commands" |
d9898ee8 |
21708 | |
dd184caf |
21709 | _ACEOF |
d9898ee8 |
21710 | |
21711 | cat >>$CONFIG_STATUS <<\_ACEOF |
d9898ee8 |
21712 | ac_cs_usage="\ |
21713 | \`$as_me' instantiates files from templates according to the |
21714 | current configuration. |
21715 | |
21716 | Usage: $0 [OPTIONS] [FILE]... |
21717 | |
21718 | -h, --help print this help, then exit |
dd184caf |
21719 | -V, --version print version number and configuration settings, then exit |
d9898ee8 |
21720 | -q, --quiet do not print progress messages |
21721 | -d, --debug don't remove temporary files |
21722 | --recheck update $as_me by reconfiguring in the same conditions |
21723 | --file=FILE[:TEMPLATE] |
21724 | instantiate the configuration file FILE |
21725 | --header=FILE[:TEMPLATE] |
21726 | instantiate the configuration header FILE |
21727 | |
21728 | Configuration files: |
21729 | $config_files |
21730 | |
21731 | Configuration headers: |
21732 | $config_headers |
21733 | |
21734 | Configuration commands: |
21735 | $config_commands |
21736 | |
21737 | Report bugs to <bug-autoconf@gnu.org>." |
d9898ee8 |
21738 | |
dd184caf |
21739 | _ACEOF |
d9898ee8 |
21740 | cat >>$CONFIG_STATUS <<_ACEOF |
21741 | ac_cs_version="\\ |
21742 | libmd5 config.status 1.21 |
dd184caf |
21743 | configured by $0, generated by GNU Autoconf 2.61, |
21744 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
d9898ee8 |
21745 | |
dd184caf |
21746 | Copyright (C) 2006 Free Software Foundation, Inc. |
d9898ee8 |
21747 | This config.status script is free software; the Free Software Foundation |
21748 | gives unlimited permission to copy, distribute and modify it." |
dd184caf |
21749 | |
21750 | ac_pwd='$ac_pwd' |
21751 | srcdir='$srcdir' |
21752 | INSTALL='$INSTALL' |
21753 | MKDIR_P='$MKDIR_P' |
d9898ee8 |
21754 | _ACEOF |
21755 | |
21756 | cat >>$CONFIG_STATUS <<\_ACEOF |
21757 | # If no file are specified by the user, then we need to provide default |
21758 | # value. By we need to know if files were specified by the user. |
21759 | ac_need_defaults=: |
21760 | while test $# != 0 |
21761 | do |
21762 | case $1 in |
21763 | --*=*) |
dd184caf |
21764 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
21765 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
d9898ee8 |
21766 | ac_shift=: |
21767 | ;; |
dd184caf |
21768 | *) |
d9898ee8 |
21769 | ac_option=$1 |
21770 | ac_optarg=$2 |
21771 | ac_shift=shift |
21772 | ;; |
d9898ee8 |
21773 | esac |
21774 | |
21775 | case $ac_option in |
21776 | # Handling of the options. |
d9898ee8 |
21777 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
21778 | ac_cs_recheck=: ;; |
dd184caf |
21779 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
21780 | echo "$ac_cs_version"; exit ;; |
21781 | --debug | --debu | --deb | --de | --d | -d ) |
d9898ee8 |
21782 | debug=: ;; |
21783 | --file | --fil | --fi | --f ) |
21784 | $ac_shift |
21785 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
21786 | ac_need_defaults=false;; |
21787 | --header | --heade | --head | --hea ) |
21788 | $ac_shift |
21789 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
21790 | ac_need_defaults=false;; |
dd184caf |
21791 | --he | --h) |
21792 | # Conflict between --help and --header |
21793 | { echo "$as_me: error: ambiguous option: $1 |
21794 | Try \`$0 --help' for more information." >&2 |
21795 | { (exit 1); exit 1; }; };; |
21796 | --help | --hel | -h ) |
21797 | echo "$ac_cs_usage"; exit ;; |
d9898ee8 |
21798 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
21799 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
21800 | ac_cs_silent=: ;; |
21801 | |
21802 | # This is an error. |
dd184caf |
21803 | -*) { echo "$as_me: error: unrecognized option: $1 |
21804 | Try \`$0 --help' for more information." >&2 |
d9898ee8 |
21805 | { (exit 1); exit 1; }; } ;; |
21806 | |
dd184caf |
21807 | *) ac_config_targets="$ac_config_targets $1" |
21808 | ac_need_defaults=false ;; |
d9898ee8 |
21809 | |
21810 | esac |
21811 | shift |
21812 | done |
21813 | |
21814 | ac_configure_extra_args= |
21815 | |
21816 | if $ac_cs_silent; then |
21817 | exec 6>/dev/null |
21818 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
21819 | fi |
21820 | |
21821 | _ACEOF |
21822 | cat >>$CONFIG_STATUS <<_ACEOF |
21823 | if \$ac_cs_recheck; then |
dd184caf |
21824 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
21825 | CONFIG_SHELL=$SHELL |
21826 | export CONFIG_SHELL |
21827 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
d9898ee8 |
21828 | fi |
21829 | |
21830 | _ACEOF |
dd184caf |
21831 | cat >>$CONFIG_STATUS <<\_ACEOF |
21832 | exec 5>>config.log |
21833 | { |
21834 | echo |
21835 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
21836 | ## Running $as_me. ## |
21837 | _ASBOX |
21838 | echo "$ac_log" |
21839 | } >&5 |
d9898ee8 |
21840 | |
dd184caf |
21841 | _ACEOF |
d9898ee8 |
21842 | cat >>$CONFIG_STATUS <<_ACEOF |
21843 | # |
dd184caf |
21844 | # INIT-COMMANDS |
d9898ee8 |
21845 | # |
d9898ee8 |
21846 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
21847 | |
21848 | _ACEOF |
21849 | |
d9898ee8 |
21850 | cat >>$CONFIG_STATUS <<\_ACEOF |
dd184caf |
21851 | |
21852 | # Handling of arguments. |
d9898ee8 |
21853 | for ac_config_target in $ac_config_targets |
21854 | do |
dd184caf |
21855 | case $ac_config_target in |
21856 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
21857 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
21858 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
21859 | |
d9898ee8 |
21860 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
21861 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
21862 | { (exit 1); exit 1; }; };; |
21863 | esac |
21864 | done |
21865 | |
dd184caf |
21866 | |
d9898ee8 |
21867 | # If the user did not use the arguments to specify the items to instantiate, |
21868 | # then the envvar interface is used. Set only those that are not. |
21869 | # We use the long form for the default assignment because of an extremely |
21870 | # bizarre bug on SunOS 4.1.3. |
21871 | if $ac_need_defaults; then |
21872 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
21873 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
21874 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
21875 | fi |
21876 | |
21877 | # Have a temporary directory for convenience. Make it in the build tree |
dd184caf |
21878 | # simply because there is no reason against having it here, and in addition, |
d9898ee8 |
21879 | # creating and moving files from /tmp can sometimes cause problems. |
dd184caf |
21880 | # Hook for its removal unless debugging. |
21881 | # Note that there is a small window in which the directory will not be cleaned: |
21882 | # after its creation but before its name has been assigned to `$tmp'. |
d9898ee8 |
21883 | $debug || |
21884 | { |
dd184caf |
21885 | tmp= |
21886 | trap 'exit_status=$? |
21887 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
21888 | ' 0 |
d9898ee8 |
21889 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
21890 | } |
d9898ee8 |
21891 | # Create a (secure) tmp directory for tmp files. |
21892 | |
21893 | { |
dd184caf |
21894 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
d9898ee8 |
21895 | test -n "$tmp" && test -d "$tmp" |
21896 | } || |
21897 | { |
dd184caf |
21898 | tmp=./conf$$-$RANDOM |
21899 | (umask 077 && mkdir "$tmp") |
d9898ee8 |
21900 | } || |
21901 | { |
21902 | echo "$me: cannot create a temporary directory in ." >&2 |
21903 | { (exit 1); exit 1; } |
21904 | } |
21905 | |
d9898ee8 |
21906 | # |
dd184caf |
21907 | # Set up the sed scripts for CONFIG_FILES section. |
d9898ee8 |
21908 | # |
21909 | |
21910 | # No need to generate the scripts if there are no CONFIG_FILES. |
21911 | # This happens for instance when ./config.status config.h |
dd184caf |
21912 | if test -n "$CONFIG_FILES"; then |
d9898ee8 |
21913 | |
21914 | _ACEOF |
21915 | |
dd184caf |
21916 | |
21917 | |
21918 | ac_delim='%!_!# ' |
21919 | for ac_last_try in false false false false false :; do |
21920 | cat >conf$$subs.sed <<_ACEOF |
21921 | SHELL!$SHELL$ac_delim |
21922 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
21923 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
21924 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
21925 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
21926 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
21927 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
21928 | exec_prefix!$exec_prefix$ac_delim |
21929 | prefix!$prefix$ac_delim |
21930 | program_transform_name!$program_transform_name$ac_delim |
21931 | bindir!$bindir$ac_delim |
21932 | sbindir!$sbindir$ac_delim |
21933 | libexecdir!$libexecdir$ac_delim |
21934 | datarootdir!$datarootdir$ac_delim |
21935 | datadir!$datadir$ac_delim |
21936 | sysconfdir!$sysconfdir$ac_delim |
21937 | sharedstatedir!$sharedstatedir$ac_delim |
21938 | localstatedir!$localstatedir$ac_delim |
21939 | includedir!$includedir$ac_delim |
21940 | oldincludedir!$oldincludedir$ac_delim |
21941 | docdir!$docdir$ac_delim |
21942 | infodir!$infodir$ac_delim |
21943 | htmldir!$htmldir$ac_delim |
21944 | dvidir!$dvidir$ac_delim |
21945 | pdfdir!$pdfdir$ac_delim |
21946 | psdir!$psdir$ac_delim |
21947 | libdir!$libdir$ac_delim |
21948 | localedir!$localedir$ac_delim |
21949 | mandir!$mandir$ac_delim |
21950 | DEFS!$DEFS$ac_delim |
21951 | ECHO_C!$ECHO_C$ac_delim |
21952 | ECHO_N!$ECHO_N$ac_delim |
21953 | ECHO_T!$ECHO_T$ac_delim |
21954 | LIBS!$LIBS$ac_delim |
21955 | build_alias!$build_alias$ac_delim |
21956 | host_alias!$host_alias$ac_delim |
21957 | target_alias!$target_alias$ac_delim |
21958 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
21959 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
21960 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
21961 | am__isrc!$am__isrc$ac_delim |
21962 | CYGPATH_W!$CYGPATH_W$ac_delim |
21963 | PACKAGE!$PACKAGE$ac_delim |
21964 | VERSION!$VERSION$ac_delim |
21965 | ACLOCAL!$ACLOCAL$ac_delim |
21966 | AUTOCONF!$AUTOCONF$ac_delim |
21967 | AUTOMAKE!$AUTOMAKE$ac_delim |
21968 | AUTOHEADER!$AUTOHEADER$ac_delim |
21969 | MAKEINFO!$MAKEINFO$ac_delim |
21970 | install_sh!$install_sh$ac_delim |
21971 | STRIP!$STRIP$ac_delim |
21972 | INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim |
21973 | mkdir_p!$mkdir_p$ac_delim |
21974 | AWK!$AWK$ac_delim |
21975 | SET_MAKE!$SET_MAKE$ac_delim |
21976 | am__leading_dot!$am__leading_dot$ac_delim |
21977 | AMTAR!$AMTAR$ac_delim |
21978 | am__tar!$am__tar$ac_delim |
21979 | am__untar!$am__untar$ac_delim |
21980 | HMACC_TRUE!$HMACC_TRUE$ac_delim |
21981 | HMACC_FALSE!$HMACC_FALSE$ac_delim |
21982 | LN_S!$LN_S$ac_delim |
21983 | CC!$CC$ac_delim |
21984 | CFLAGS!$CFLAGS$ac_delim |
21985 | LDFLAGS!$LDFLAGS$ac_delim |
21986 | CPPFLAGS!$CPPFLAGS$ac_delim |
21987 | ac_ct_CC!$ac_ct_CC$ac_delim |
21988 | EXEEXT!$EXEEXT$ac_delim |
21989 | OBJEXT!$OBJEXT$ac_delim |
21990 | DEPDIR!$DEPDIR$ac_delim |
21991 | am__include!$am__include$ac_delim |
21992 | am__quote!$am__quote$ac_delim |
21993 | AMDEP_TRUE!$AMDEP_TRUE$ac_delim |
21994 | AMDEP_FALSE!$AMDEP_FALSE$ac_delim |
21995 | AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim |
21996 | CCDEPMODE!$CCDEPMODE$ac_delim |
21997 | am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim |
21998 | am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim |
21999 | build!$build$ac_delim |
22000 | build_cpu!$build_cpu$ac_delim |
22001 | build_vendor!$build_vendor$ac_delim |
22002 | build_os!$build_os$ac_delim |
22003 | host!$host$ac_delim |
22004 | host_cpu!$host_cpu$ac_delim |
22005 | host_vendor!$host_vendor$ac_delim |
22006 | host_os!$host_os$ac_delim |
22007 | SED!$SED$ac_delim |
22008 | GREP!$GREP$ac_delim |
22009 | EGREP!$EGREP$ac_delim |
22010 | ECHO!$ECHO$ac_delim |
22011 | AR!$AR$ac_delim |
22012 | RANLIB!$RANLIB$ac_delim |
22013 | CPP!$CPP$ac_delim |
22014 | CXX!$CXX$ac_delim |
22015 | CXXFLAGS!$CXXFLAGS$ac_delim |
22016 | ac_ct_CXX!$ac_ct_CXX$ac_delim |
22017 | CXXDEPMODE!$CXXDEPMODE$ac_delim |
22018 | _ACEOF |
22019 | |
22020 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
22021 | break |
22022 | elif $ac_last_try; then |
22023 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
22024 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
22025 | { (exit 1); exit 1; }; } |
22026 | else |
22027 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
d9898ee8 |
22028 | fi |
dd184caf |
22029 | done |
22030 | |
22031 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
22032 | if test -n "$ac_eof"; then |
22033 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
22034 | ac_eof=`expr $ac_eof + 1` |
22035 | fi |
d9898ee8 |
22036 | |
dd184caf |
22037 | cat >>$CONFIG_STATUS <<_ACEOF |
22038 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
22039 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
d9898ee8 |
22040 | _ACEOF |
dd184caf |
22041 | sed ' |
22042 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
22043 | s/^/s,@/; s/!/@,|#_!!_#|/ |
22044 | :n |
22045 | t n |
22046 | s/'"$ac_delim"'$/,g/; t |
22047 | s/$/\\/; p |
22048 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
22049 | ' >>$CONFIG_STATUS <conf$$subs.sed |
22050 | rm -f conf$$subs.sed |
22051 | cat >>$CONFIG_STATUS <<_ACEOF |
22052 | CEOF$ac_eof |
22053 | _ACEOF |
22054 | |
22055 | |
22056 | ac_delim='%!_!# ' |
22057 | for ac_last_try in false false false false false :; do |
22058 | cat >conf$$subs.sed <<_ACEOF |
22059 | am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim |
22060 | am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim |
22061 | CXXCPP!$CXXCPP$ac_delim |
22062 | F77!$F77$ac_delim |
22063 | FFLAGS!$FFLAGS$ac_delim |
22064 | ac_ct_F77!$ac_ct_F77$ac_delim |
22065 | LIBTOOL!$LIBTOOL$ac_delim |
22066 | LIBOBJS!$LIBOBJS$ac_delim |
22067 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
22068 | _ACEOF |
22069 | |
22070 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 9; then |
22071 | break |
22072 | elif $ac_last_try; then |
22073 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
22074 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
22075 | { (exit 1); exit 1; }; } |
22076 | else |
22077 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
22078 | fi |
22079 | done |
22080 | |
22081 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
22082 | if test -n "$ac_eof"; then |
22083 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
22084 | ac_eof=`expr $ac_eof + 1` |
22085 | fi |
22086 | |
22087 | cat >>$CONFIG_STATUS <<_ACEOF |
22088 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
22089 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
22090 | _ACEOF |
22091 | sed ' |
22092 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
22093 | s/^/s,@/; s/!/@,|#_!!_#|/ |
22094 | :n |
22095 | t n |
22096 | s/'"$ac_delim"'$/,g/; t |
22097 | s/$/\\/; p |
22098 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
22099 | ' >>$CONFIG_STATUS <conf$$subs.sed |
22100 | rm -f conf$$subs.sed |
22101 | cat >>$CONFIG_STATUS <<_ACEOF |
22102 | :end |
22103 | s/|#_!!_#|//g |
22104 | CEOF$ac_eof |
22105 | _ACEOF |
22106 | |
22107 | |
22108 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
22109 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
22110 | # trailing colons and then remove the whole line if VPATH becomes empty |
22111 | # (actually we leave an empty line to preserve line numbers). |
22112 | if test "x$srcdir" = x.; then |
22113 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
22114 | s/:*\$(srcdir):*/:/ |
22115 | s/:*\${srcdir}:*/:/ |
22116 | s/:*@srcdir@:*/:/ |
22117 | s/^\([^=]*=[ ]*\):*/\1/ |
22118 | s/:*$// |
22119 | s/^[^=]*=[ ]*$// |
22120 | }' |
22121 | fi |
22122 | |
d9898ee8 |
22123 | cat >>$CONFIG_STATUS <<\_ACEOF |
dd184caf |
22124 | fi # test -n "$CONFIG_FILES" |
22125 | |
22126 | |
22127 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS |
22128 | do |
22129 | case $ac_tag in |
22130 | :[FHLC]) ac_mode=$ac_tag; continue;; |
22131 | esac |
22132 | case $ac_mode$ac_tag in |
22133 | :[FHL]*:*);; |
22134 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
22135 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
22136 | { (exit 1); exit 1; }; };; |
22137 | :[FH]-) ac_tag=-:-;; |
22138 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
22139 | esac |
22140 | ac_save_IFS=$IFS |
22141 | IFS=: |
22142 | set x $ac_tag |
22143 | IFS=$ac_save_IFS |
22144 | shift |
22145 | ac_file=$1 |
22146 | shift |
22147 | |
22148 | case $ac_mode in |
22149 | :L) ac_source=$1;; |
22150 | :[FH]) |
22151 | ac_file_inputs= |
22152 | for ac_f |
22153 | do |
22154 | case $ac_f in |
22155 | -) ac_f="$tmp/stdin";; |
22156 | *) # Look for the file first in the build tree, then in the source tree |
22157 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
22158 | # because $ac_f cannot contain `:'. |
22159 | test -f "$ac_f" || |
22160 | case $ac_f in |
22161 | [\\/$]*) false;; |
22162 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
22163 | esac || |
22164 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
22165 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
22166 | { (exit 1); exit 1; }; };; |
22167 | esac |
22168 | ac_file_inputs="$ac_file_inputs $ac_f" |
22169 | done |
22170 | |
22171 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
22172 | # use $as_me), people would be surprised to read: |
22173 | # /* config.h. Generated by config.status. */ |
22174 | configure_input="Generated from "`IFS=: |
22175 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
22176 | if test x"$ac_file" != x-; then |
22177 | configure_input="$ac_file. $configure_input" |
22178 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
22179 | echo "$as_me: creating $ac_file" >&6;} |
22180 | fi |
22181 | |
22182 | case $ac_tag in |
22183 | *:-:* | *:-) cat >"$tmp/stdin";; |
22184 | esac |
22185 | ;; |
d9898ee8 |
22186 | esac |
22187 | |
dd184caf |
22188 | ac_dir=`$as_dirname -- "$ac_file" || |
d9898ee8 |
22189 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
22190 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
22191 | X"$ac_file" : 'X\(//\)$' \| \ |
dd184caf |
22192 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
22193 | echo X"$ac_file" | |
dd184caf |
22194 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
22195 | s//\1/ |
22196 | q |
22197 | } |
22198 | /^X\(\/\/\)[^/].*/{ |
22199 | s//\1/ |
22200 | q |
22201 | } |
22202 | /^X\(\/\/\)$/{ |
22203 | s//\1/ |
22204 | q |
22205 | } |
22206 | /^X\(\/\).*/{ |
22207 | s//\1/ |
22208 | q |
22209 | } |
22210 | s/.*/./; q'` |
22211 | { as_dir="$ac_dir" |
22212 | case $as_dir in #( |
22213 | -*) as_dir=./$as_dir;; |
22214 | esac |
22215 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
d9898ee8 |
22216 | as_dirs= |
dd184caf |
22217 | while :; do |
22218 | case $as_dir in #( |
22219 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
22220 | *) as_qdir=$as_dir;; |
22221 | esac |
22222 | as_dirs="'$as_qdir' $as_dirs" |
22223 | as_dir=`$as_dirname -- "$as_dir" || |
d9898ee8 |
22224 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
22225 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
22226 | X"$as_dir" : 'X\(//\)$' \| \ |
dd184caf |
22227 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
22228 | echo X"$as_dir" | |
dd184caf |
22229 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
22230 | s//\1/ |
22231 | q |
22232 | } |
22233 | /^X\(\/\/\)[^/].*/{ |
22234 | s//\1/ |
22235 | q |
22236 | } |
22237 | /^X\(\/\/\)$/{ |
22238 | s//\1/ |
22239 | q |
22240 | } |
22241 | /^X\(\/\).*/{ |
22242 | s//\1/ |
22243 | q |
22244 | } |
22245 | s/.*/./; q'` |
22246 | test -d "$as_dir" && break |
d9898ee8 |
22247 | done |
dd184caf |
22248 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
22249 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
22250 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
d9898ee8 |
22251 | { (exit 1); exit 1; }; }; } |
d9898ee8 |
22252 | ac_builddir=. |
22253 | |
dd184caf |
22254 | case "$ac_dir" in |
22255 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
22256 | *) |
d9898ee8 |
22257 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
dd184caf |
22258 | # A ".." for each directory in $ac_dir_suffix. |
22259 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
22260 | case $ac_top_builddir_sub in |
22261 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
22262 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
22263 | esac ;; |
22264 | esac |
22265 | ac_abs_top_builddir=$ac_pwd |
22266 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
22267 | # for backward compatibility: |
22268 | ac_top_builddir=$ac_top_build_prefix |
d9898ee8 |
22269 | |
22270 | case $srcdir in |
dd184caf |
22271 | .) # We are building in place. |
d9898ee8 |
22272 | ac_srcdir=. |
dd184caf |
22273 | ac_top_srcdir=$ac_top_builddir_sub |
22274 | ac_abs_top_srcdir=$ac_pwd ;; |
22275 | [\\/]* | ?:[\\/]* ) # Absolute name. |
d9898ee8 |
22276 | ac_srcdir=$srcdir$ac_dir_suffix; |
dd184caf |
22277 | ac_top_srcdir=$srcdir |
22278 | ac_abs_top_srcdir=$srcdir ;; |
22279 | *) # Relative name. |
22280 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
22281 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
22282 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
d9898ee8 |
22283 | esac |
dd184caf |
22284 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
d9898ee8 |
22285 | |
d9898ee8 |
22286 | |
dd184caf |
22287 | case $ac_mode in |
22288 | :F) |
22289 | # |
22290 | # CONFIG_FILE |
22291 | # |
d9898ee8 |
22292 | |
22293 | case $INSTALL in |
22294 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
dd184caf |
22295 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
22296 | esac |
22297 | ac_MKDIR_P=$MKDIR_P |
22298 | case $MKDIR_P in |
22299 | [\\/$]* | ?:[\\/]* ) ;; |
22300 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
d9898ee8 |
22301 | esac |
dd184caf |
22302 | _ACEOF |
d9898ee8 |
22303 | |
dd184caf |
22304 | cat >>$CONFIG_STATUS <<\_ACEOF |
22305 | # If the template does not know about datarootdir, expand it. |
22306 | # FIXME: This hack should be removed a few years after 2.60. |
22307 | ac_datarootdir_hack=; ac_datarootdir_seen= |
22308 | |
22309 | case `sed -n '/datarootdir/ { |
22310 | p |
22311 | q |
22312 | } |
22313 | /@datadir@/p |
22314 | /@docdir@/p |
22315 | /@infodir@/p |
22316 | /@localedir@/p |
22317 | /@mandir@/p |
22318 | ' $ac_file_inputs` in |
22319 | *datarootdir*) ac_datarootdir_seen=yes;; |
22320 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
22321 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
22322 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
d9898ee8 |
22323 | _ACEOF |
dd184caf |
22324 | cat >>$CONFIG_STATUS <<_ACEOF |
22325 | ac_datarootdir_hack=' |
22326 | s&@datadir@&$datadir&g |
22327 | s&@docdir@&$docdir&g |
22328 | s&@infodir@&$infodir&g |
22329 | s&@localedir@&$localedir&g |
22330 | s&@mandir@&$mandir&g |
22331 | s&\\\${datarootdir}&$datarootdir&g' ;; |
22332 | esac |
22333 | _ACEOF |
22334 | |
22335 | # Neutralize VPATH when `$srcdir' = `.'. |
22336 | # Shell code in configure.ac might set extrasub. |
22337 | # FIXME: do we really want to maintain this feature? |
d9898ee8 |
22338 | cat >>$CONFIG_STATUS <<_ACEOF |
22339 | sed "$ac_vpsub |
22340 | $extrasub |
22341 | _ACEOF |
22342 | cat >>$CONFIG_STATUS <<\_ACEOF |
22343 | :t |
22344 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
dd184caf |
22345 | s&@configure_input@&$configure_input&;t t |
22346 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
22347 | s&@srcdir@&$ac_srcdir&;t t |
22348 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
22349 | s&@top_srcdir@&$ac_top_srcdir&;t t |
22350 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
22351 | s&@builddir@&$ac_builddir&;t t |
22352 | s&@abs_builddir@&$ac_abs_builddir&;t t |
22353 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
22354 | s&@INSTALL@&$ac_INSTALL&;t t |
22355 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
22356 | $ac_datarootdir_hack |
22357 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out |
22358 | |
22359 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
22360 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
22361 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
22362 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
22363 | which seems to be undefined. Please make sure it is defined." >&5 |
22364 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
22365 | which seems to be undefined. Please make sure it is defined." >&2;} |
22366 | |
22367 | rm -f "$tmp/stdin" |
d9898ee8 |
22368 | case $ac_file in |
dd184caf |
22369 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
22370 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
d9898ee8 |
22371 | esac |
dd184caf |
22372 | ;; |
22373 | :H) |
22374 | # |
22375 | # CONFIG_HEADER |
22376 | # |
d9898ee8 |
22377 | _ACEOF |
22378 | |
dd184caf |
22379 | # Transform confdefs.h into a sed script `conftest.defines', that |
22380 | # substitutes the proper values into config.h.in to produce config.h. |
22381 | rm -f conftest.defines conftest.tail |
22382 | # First, append a space to every undef/define line, to ease matching. |
22383 | echo 's/$/ /' >conftest.defines |
22384 | # Then, protect against being on the right side of a sed subst, or in |
22385 | # an unquoted here document, in config.status. If some macros were |
22386 | # called several times there might be several #defines for the same |
22387 | # symbol, which is useless. But do not sort them, since the last |
22388 | # AC_DEFINE must be honored. |
22389 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
22390 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
22391 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
22392 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
22393 | # just an empty string. |
22394 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
22395 | ac_dB='\\)[ (].*,\\1define\\2' |
22396 | ac_dC=' ' |
22397 | ac_dD=' ,' |
22398 | |
22399 | uniq confdefs.h | |
22400 | sed -n ' |
22401 | t rset |
22402 | :rset |
22403 | s/^[ ]*#[ ]*define[ ][ ]*// |
22404 | t ok |
22405 | d |
22406 | :ok |
22407 | s/[\\&,]/\\&/g |
22408 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
22409 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
22410 | ' >>conftest.defines |
22411 | |
22412 | # Remove the space that was appended to ease matching. |
22413 | # Then replace #undef with comments. This is necessary, for |
d9898ee8 |
22414 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
22415 | # on some systems where configure will not decide to define it. |
dd184caf |
22416 | # (The regexp can be short, since the line contains either #define or #undef.) |
22417 | echo 's/ $// |
22418 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
22419 | |
22420 | # Break up conftest.defines: |
22421 | ac_max_sed_lines=50 |
22422 | |
22423 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
22424 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
22425 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
22426 | # et cetera. |
22427 | ac_in='$ac_file_inputs' |
22428 | ac_out='"$tmp/out1"' |
22429 | ac_nxt='"$tmp/out2"' |
22430 | |
22431 | while : |
d9898ee8 |
22432 | do |
dd184caf |
22433 | # Write a here document: |
22434 | cat >>$CONFIG_STATUS <<_ACEOF |
22435 | # First, check the format of the line: |
22436 | cat >"\$tmp/defines.sed" <<\\CEOF |
22437 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
22438 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
22439 | b |
22440 | :def |
22441 | _ACEOF |
22442 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
d9898ee8 |
22443 | echo 'CEOF |
dd184caf |
22444 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
22445 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
22446 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
22447 | grep . conftest.tail >/dev/null || break |
d9898ee8 |
22448 | rm -f conftest.defines |
22449 | mv conftest.tail conftest.defines |
22450 | done |
dd184caf |
22451 | rm -f conftest.defines conftest.tail |
d9898ee8 |
22452 | |
dd184caf |
22453 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
d9898ee8 |
22454 | cat >>$CONFIG_STATUS <<\_ACEOF |
d9898ee8 |
22455 | if test x"$ac_file" != x-; then |
dd184caf |
22456 | echo "/* $configure_input */" >"$tmp/config.h" |
22457 | cat "$ac_result" >>"$tmp/config.h" |
22458 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
d9898ee8 |
22459 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
22460 | echo "$as_me: $ac_file is unchanged" >&6;} |
22461 | else |
d9898ee8 |
22462 | rm -f $ac_file |
dd184caf |
22463 | mv "$tmp/config.h" $ac_file |
d9898ee8 |
22464 | fi |
22465 | else |
dd184caf |
22466 | echo "/* $configure_input */" |
22467 | cat "$ac_result" |
d9898ee8 |
22468 | fi |
dd184caf |
22469 | rm -f "$tmp/out12" |
d9898ee8 |
22470 | # Compute $ac_file's index in $config_headers. |
ac40fd9e |
22471 | _am_arg=$ac_file |
d9898ee8 |
22472 | _am_stamp_count=1 |
22473 | for _am_header in $config_headers :; do |
22474 | case $_am_header in |
ac40fd9e |
22475 | $_am_arg | $_am_arg:* ) |
d9898ee8 |
22476 | break ;; |
22477 | * ) |
22478 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
22479 | esac |
22480 | done |
ac40fd9e |
22481 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
22482 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
22483 | X"$_am_arg" : 'X\(//\)[^/]' \| \ |
22484 | X"$_am_arg" : 'X\(//\)$' \| \ |
22485 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || |
22486 | echo X"$_am_arg" | |
dd184caf |
22487 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
22488 | s//\1/ |
22489 | q |
22490 | } |
22491 | /^X\(\/\/\)[^/].*/{ |
22492 | s//\1/ |
22493 | q |
22494 | } |
22495 | /^X\(\/\/\)$/{ |
22496 | s//\1/ |
22497 | q |
22498 | } |
22499 | /^X\(\/\).*/{ |
22500 | s//\1/ |
22501 | q |
22502 | } |
22503 | s/.*/./; q'`/stamp-h$_am_stamp_count |
22504 | ;; |
d9898ee8 |
22505 | |
dd184caf |
22506 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
22507 | echo "$as_me: executing $ac_file commands" >&6;} |
22508 | ;; |
22509 | esac |
d9898ee8 |
22510 | |
22511 | |
dd184caf |
22512 | case $ac_file$ac_mode in |
22513 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
d9898ee8 |
22514 | # Strip MF so we end up with the name of the file. |
22515 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
22516 | # Check whether this is an Automake generated Makefile or not. |
22517 | # We used to match only the files named `Makefile.in', but |
22518 | # some people rename them; so instead we look at the file content. |
22519 | # Grep'ing the first line is not enough: some people post-process |
22520 | # each Makefile.in and add a new line on top of each file to say so. |
dd184caf |
22521 | # Grep'ing the whole file is not good either: AIX grep has a line |
22522 | # limit of 2048, but all sed's we know have understand at least 4000. |
ac40fd9e |
22523 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
dd184caf |
22524 | dirpart=`$as_dirname -- "$mf" || |
d9898ee8 |
22525 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
22526 | X"$mf" : 'X\(//\)[^/]' \| \ |
22527 | X"$mf" : 'X\(//\)$' \| \ |
dd184caf |
22528 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
22529 | echo X"$mf" | |
dd184caf |
22530 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
22531 | s//\1/ |
22532 | q |
22533 | } |
22534 | /^X\(\/\/\)[^/].*/{ |
22535 | s//\1/ |
22536 | q |
22537 | } |
22538 | /^X\(\/\/\)$/{ |
22539 | s//\1/ |
22540 | q |
22541 | } |
22542 | /^X\(\/\).*/{ |
22543 | s//\1/ |
22544 | q |
22545 | } |
22546 | s/.*/./; q'` |
d9898ee8 |
22547 | else |
22548 | continue |
22549 | fi |
22550 | # Extract the definition of DEPDIR, am__include, and am__quote |
22551 | # from the Makefile without running `make'. |
22552 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
22553 | test -z "$DEPDIR" && continue |
22554 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
22555 | test -z "am__include" && continue |
22556 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
22557 | # When using ansi2knr, U may be empty or an underscore; expand it |
22558 | U=`sed -n 's/^U = //p' < "$mf"` |
22559 | # Find all dependency output files, they are included files with |
22560 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
22561 | # simplest approach to changing $(DEPDIR) to its actual value in the |
22562 | # expansion. |
22563 | for file in `sed -n " |
22564 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
22565 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
22566 | # Make sure the directory exists. |
22567 | test -f "$dirpart/$file" && continue |
dd184caf |
22568 | fdir=`$as_dirname -- "$file" || |
d9898ee8 |
22569 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
22570 | X"$file" : 'X\(//\)[^/]' \| \ |
22571 | X"$file" : 'X\(//\)$' \| \ |
dd184caf |
22572 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
22573 | echo X"$file" | |
dd184caf |
22574 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
22575 | s//\1/ |
22576 | q |
22577 | } |
22578 | /^X\(\/\/\)[^/].*/{ |
22579 | s//\1/ |
22580 | q |
22581 | } |
22582 | /^X\(\/\/\)$/{ |
22583 | s//\1/ |
22584 | q |
22585 | } |
22586 | /^X\(\/\).*/{ |
22587 | s//\1/ |
22588 | q |
22589 | } |
22590 | s/.*/./; q'` |
22591 | { as_dir=$dirpart/$fdir |
22592 | case $as_dir in #( |
22593 | -*) as_dir=./$as_dir;; |
22594 | esac |
22595 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
d9898ee8 |
22596 | as_dirs= |
dd184caf |
22597 | while :; do |
22598 | case $as_dir in #( |
22599 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
22600 | *) as_qdir=$as_dir;; |
22601 | esac |
22602 | as_dirs="'$as_qdir' $as_dirs" |
22603 | as_dir=`$as_dirname -- "$as_dir" || |
d9898ee8 |
22604 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
22605 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
22606 | X"$as_dir" : 'X\(//\)$' \| \ |
dd184caf |
22607 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
22608 | echo X"$as_dir" | |
dd184caf |
22609 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
22610 | s//\1/ |
22611 | q |
22612 | } |
22613 | /^X\(\/\/\)[^/].*/{ |
22614 | s//\1/ |
22615 | q |
22616 | } |
22617 | /^X\(\/\/\)$/{ |
22618 | s//\1/ |
22619 | q |
22620 | } |
22621 | /^X\(\/\).*/{ |
22622 | s//\1/ |
22623 | q |
22624 | } |
22625 | s/.*/./; q'` |
22626 | test -d "$as_dir" && break |
d9898ee8 |
22627 | done |
dd184caf |
22628 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
22629 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
22630 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
d9898ee8 |
22631 | { (exit 1); exit 1; }; }; } |
d9898ee8 |
22632 | # echo "creating $dirpart/$file" |
22633 | echo '# dummy' > "$dirpart/$file" |
22634 | done |
22635 | done |
22636 | ;; |
dd184caf |
22637 | |
d9898ee8 |
22638 | esac |
dd184caf |
22639 | done # for ac_tag |
d9898ee8 |
22640 | |
d9898ee8 |
22641 | |
22642 | { (exit 0); exit 0; } |
22643 | _ACEOF |
22644 | chmod +x $CONFIG_STATUS |
22645 | ac_clean_files=$ac_clean_files_save |
22646 | |
22647 | |
22648 | # configure is writing to config.log, and then calls config.status. |
22649 | # config.status does its own redirection, appending to config.log. |
22650 | # Unfortunately, on DOS this fails, as config.log is still kept open |
22651 | # by configure, so config.status won't be able to write to it; its |
22652 | # output is simply discarded. So we exec the FD to /dev/null, |
22653 | # effectively closing config.log, so it can be properly (re)opened and |
22654 | # appended to by config.status. When coming back to configure, we |
22655 | # need to make the FD available again. |
22656 | if test "$no_create" != yes; then |
22657 | ac_cs_success=: |
22658 | ac_config_status_args= |
22659 | test "$silent" = yes && |
22660 | ac_config_status_args="$ac_config_status_args --quiet" |
22661 | exec 5>/dev/null |
22662 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
22663 | exec 5>>config.log |
22664 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
22665 | # would make configure fail if this is the last instruction. |
22666 | $ac_cs_success || { (exit 1); exit 1; } |
22667 | fi |
22668 | |