d9898ee8 |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. |
64ff59ba |
3 | # Generated by GNU Autoconf 2.61 for libuserdb 0.10. |
d9898ee8 |
4 | # |
5 | # Report bugs to <courier-users@lists.sourceforge.net>. |
6 | # |
64ff59ba |
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 | |
64ff59ba |
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+"$@"}'='"$@"' |
64ff59ba |
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 | |
64ff59ba |
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. |
64ff59ba |
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 |
64ff59ba |
113 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
d9898ee8 |
114 | fi |
115 | done |
116 | |
117 | # Required to use basename. |
64ff59ba |
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 | |
64ff59ba |
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. |
64ff59ba |
133 | as_me=`$as_basename -- "$0" || |
d9898ee8 |
134 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
135 | X"$0" : 'X\(//\)$' \| \ |
64ff59ba |
136 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
137 | echo X/"$0" | |
64ff59ba |
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 | |
64ff59ba |
152 | # CDPATH. |
153 | $as_unset CDPATH |
d9898ee8 |
154 | |
d9898ee8 |
155 | |
64ff59ba |
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 | |
64ff59ba |
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 | |
64ff59ba |
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 | |
64ff59ba |
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=. |
64ff59ba |
228 | case $as_dir in |
d9898ee8 |
229 | /*) |
64ff59ba |
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" && |
64ff59ba |
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 |
64ff59ba |
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 |
64ff59ba |
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 ' |
64ff59ba |
445 | s/[$]LINENO.*/&-/ |
446 | t lineno |
447 | b |
448 | :lineno |
d9898ee8 |
449 | N |
64ff59ba |
450 | :loop |
451 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
d9898ee8 |
452 | t loop |
64ff59ba |
453 | s/-\n.*// |
d9898ee8 |
454 | ' >$as_me.lineno && |
64ff59ba |
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 |
64ff59ba |
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 | |
64ff59ba |
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 | |
64ff59ba |
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 |
64ff59ba |
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 |
64ff59ba |
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 |
64ff59ba |
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 | |
64ff59ba |
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 | |
64ff59ba |
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 |
64ff59ba |
719 | ac_clean_files= |
d9898ee8 |
720 | ac_config_libobj_dir=. |
64ff59ba |
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='libuserdb' |
730 | PACKAGE_TARNAME='libuserdb' |
731 | PACKAGE_VERSION='0.10' |
732 | PACKAGE_STRING='libuserdb 0.10' |
733 | PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net' |
734 | |
735 | ac_unique_file="userdb.c" |
736 | # Factoring default headers for most tests. |
737 | ac_includes_default="\ |
738 | #include <stdio.h> |
64ff59ba |
739 | #ifdef HAVE_SYS_TYPES_H |
d9898ee8 |
740 | # include <sys/types.h> |
741 | #endif |
64ff59ba |
742 | #ifdef HAVE_SYS_STAT_H |
d9898ee8 |
743 | # include <sys/stat.h> |
744 | #endif |
64ff59ba |
745 | #ifdef STDC_HEADERS |
d9898ee8 |
746 | # include <stdlib.h> |
747 | # include <stddef.h> |
748 | #else |
64ff59ba |
749 | # ifdef HAVE_STDLIB_H |
d9898ee8 |
750 | # include <stdlib.h> |
751 | # endif |
752 | #endif |
64ff59ba |
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 |
64ff59ba |
759 | #ifdef HAVE_STRINGS_H |
d9898ee8 |
760 | # include <strings.h> |
761 | #endif |
64ff59ba |
762 | #ifdef HAVE_INTTYPES_H |
d9898ee8 |
763 | # include <inttypes.h> |
d9898ee8 |
764 | #endif |
64ff59ba |
765 | #ifdef HAVE_STDINT_H |
766 | # include <stdint.h> |
767 | #endif |
768 | #ifdef HAVE_UNISTD_H |
d9898ee8 |
769 | # include <unistd.h> |
770 | #endif" |
771 | |
64ff59ba |
772 | ac_subst_vars='SHELL |
773 | PATH_SEPARATOR |
774 | PACKAGE_NAME |
775 | PACKAGE_TARNAME |
776 | PACKAGE_VERSION |
777 | PACKAGE_STRING |
778 | PACKAGE_BUGREPORT |
779 | exec_prefix |
780 | prefix |
781 | program_transform_name |
782 | bindir |
783 | sbindir |
784 | libexecdir |
785 | datarootdir |
786 | datadir |
787 | sysconfdir |
788 | sharedstatedir |
789 | localstatedir |
790 | includedir |
791 | oldincludedir |
792 | docdir |
793 | infodir |
794 | htmldir |
795 | dvidir |
796 | pdfdir |
797 | psdir |
798 | libdir |
799 | localedir |
800 | mandir |
801 | DEFS |
802 | ECHO_C |
803 | ECHO_N |
804 | ECHO_T |
805 | LIBS |
806 | build_alias |
807 | host_alias |
808 | target_alias |
809 | INSTALL_PROGRAM |
810 | INSTALL_SCRIPT |
811 | INSTALL_DATA |
812 | am__isrc |
813 | CYGPATH_W |
814 | PACKAGE |
815 | VERSION |
816 | ACLOCAL |
817 | AUTOCONF |
818 | AUTOMAKE |
819 | AUTOHEADER |
820 | MAKEINFO |
821 | install_sh |
822 | STRIP |
823 | INSTALL_STRIP_PROGRAM |
824 | mkdir_p |
825 | AWK |
826 | SET_MAKE |
827 | am__leading_dot |
828 | AMTAR |
829 | am__tar |
830 | am__untar |
831 | CC |
832 | CFLAGS |
833 | LDFLAGS |
834 | CPPFLAGS |
835 | ac_ct_CC |
836 | EXEEXT |
837 | OBJEXT |
838 | DEPDIR |
839 | am__include |
840 | am__quote |
841 | AMDEP_TRUE |
842 | AMDEP_FALSE |
843 | AMDEPBACKSLASH |
844 | CCDEPMODE |
845 | am__fastdepCC_TRUE |
846 | am__fastdepCC_FALSE |
847 | LN_S |
848 | build |
849 | build_cpu |
850 | build_vendor |
851 | build_os |
852 | host |
853 | host_cpu |
854 | host_vendor |
855 | host_os |
856 | SED |
857 | GREP |
858 | EGREP |
859 | ECHO |
860 | AR |
861 | RANLIB |
862 | CPP |
863 | CXX |
864 | CXXFLAGS |
865 | ac_ct_CXX |
866 | CXXDEPMODE |
867 | am__fastdepCXX_TRUE |
868 | am__fastdepCXX_FALSE |
869 | CXXCPP |
870 | F77 |
871 | FFLAGS |
872 | ac_ct_F77 |
873 | LIBTOOL |
874 | PERL |
875 | userdb |
876 | USERDB |
877 | userdbtmpdir |
878 | tmpdir |
879 | makedat |
880 | MD5LIB |
881 | SHA1LIB |
882 | HMACLIB |
883 | CRYPTLIBS |
884 | HAVE_SGML_TRUE |
885 | HAVE_SGML_FALSE |
886 | LIBOBJS |
887 | LTLIBOBJS' |
d9898ee8 |
888 | ac_subst_files='' |
64ff59ba |
889 | ac_precious_vars='build_alias |
890 | host_alias |
891 | target_alias |
892 | CC |
893 | CFLAGS |
894 | LDFLAGS |
895 | LIBS |
896 | CPPFLAGS |
897 | CPP |
898 | CXX |
899 | CXXFLAGS |
900 | CCC |
901 | CXXCPP |
902 | F77 |
903 | FFLAGS' |
904 | |
d9898ee8 |
905 | |
906 | # Initialize some variables set by options. |
907 | ac_init_help= |
908 | ac_init_version=false |
909 | # The variables have the same names as the options, with |
910 | # dashes changed to underlines. |
911 | cache_file=/dev/null |
912 | exec_prefix=NONE |
913 | no_create= |
914 | no_recursion= |
915 | prefix=NONE |
916 | program_prefix=NONE |
917 | program_suffix=NONE |
918 | program_transform_name=s,x,x, |
919 | silent= |
920 | site= |
921 | srcdir= |
922 | verbose= |
923 | x_includes=NONE |
924 | x_libraries=NONE |
925 | |
926 | # Installation directory options. |
927 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
928 | # and all the variables that are supposed to be based on exec_prefix |
929 | # by default will actually change. |
930 | # Use braces instead of parens because sh, perl, etc. also accept them. |
64ff59ba |
931 | # (The list follows the same order as the GNU Coding Standards.) |
d9898ee8 |
932 | bindir='${exec_prefix}/bin' |
933 | sbindir='${exec_prefix}/sbin' |
934 | libexecdir='${exec_prefix}/libexec' |
64ff59ba |
935 | datarootdir='${prefix}/share' |
936 | datadir='${datarootdir}' |
d9898ee8 |
937 | sysconfdir='${prefix}/etc' |
938 | sharedstatedir='${prefix}/com' |
939 | localstatedir='${prefix}/var' |
d9898ee8 |
940 | includedir='${prefix}/include' |
941 | oldincludedir='/usr/include' |
64ff59ba |
942 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
943 | infodir='${datarootdir}/info' |
944 | htmldir='${docdir}' |
945 | dvidir='${docdir}' |
946 | pdfdir='${docdir}' |
947 | psdir='${docdir}' |
948 | libdir='${exec_prefix}/lib' |
949 | localedir='${datarootdir}/locale' |
950 | mandir='${datarootdir}/man' |
d9898ee8 |
951 | |
952 | ac_prev= |
64ff59ba |
953 | ac_dashdash= |
d9898ee8 |
954 | for ac_option |
955 | do |
956 | # If the previous option needs an argument, assign it. |
957 | if test -n "$ac_prev"; then |
64ff59ba |
958 | eval $ac_prev=\$ac_option |
d9898ee8 |
959 | ac_prev= |
960 | continue |
961 | fi |
962 | |
64ff59ba |
963 | case $ac_option in |
964 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
965 | *) ac_optarg=yes ;; |
966 | esac |
d9898ee8 |
967 | |
968 | # Accept the important Cygnus configure options, so we can diagnose typos. |
969 | |
64ff59ba |
970 | case $ac_dashdash$ac_option in |
971 | --) |
972 | ac_dashdash=yes ;; |
d9898ee8 |
973 | |
974 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
975 | ac_prev=bindir ;; |
976 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
977 | bindir=$ac_optarg ;; |
978 | |
979 | -build | --build | --buil | --bui | --bu) |
980 | ac_prev=build_alias ;; |
981 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
982 | build_alias=$ac_optarg ;; |
983 | |
984 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
985 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
986 | ac_prev=cache_file ;; |
987 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
988 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
989 | cache_file=$ac_optarg ;; |
990 | |
991 | --config-cache | -C) |
992 | cache_file=config.cache ;; |
993 | |
64ff59ba |
994 | -datadir | --datadir | --datadi | --datad) |
d9898ee8 |
995 | ac_prev=datadir ;; |
64ff59ba |
996 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
d9898ee8 |
997 | datadir=$ac_optarg ;; |
998 | |
64ff59ba |
999 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
1000 | | --dataroo | --dataro | --datar) |
1001 | ac_prev=datarootdir ;; |
1002 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
1003 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
1004 | datarootdir=$ac_optarg ;; |
1005 | |
d9898ee8 |
1006 | -disable-* | --disable-*) |
1007 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
1008 | # Reject names that are not valid shell variable names. |
64ff59ba |
1009 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
d9898ee8 |
1010 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
1011 | { (exit 1); exit 1; }; } |
64ff59ba |
1012 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
1013 | eval enable_$ac_feature=no ;; |
1014 | |
1015 | -docdir | --docdir | --docdi | --doc | --do) |
1016 | ac_prev=docdir ;; |
1017 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
1018 | docdir=$ac_optarg ;; |
1019 | |
1020 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
1021 | ac_prev=dvidir ;; |
1022 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
1023 | dvidir=$ac_optarg ;; |
d9898ee8 |
1024 | |
1025 | -enable-* | --enable-*) |
1026 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
1027 | # Reject names that are not valid shell variable names. |
64ff59ba |
1028 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
d9898ee8 |
1029 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
1030 | { (exit 1); exit 1; }; } |
64ff59ba |
1031 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
1032 | eval enable_$ac_feature=\$ac_optarg ;; |
d9898ee8 |
1033 | |
1034 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
1035 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
1036 | | --exec | --exe | --ex) |
1037 | ac_prev=exec_prefix ;; |
1038 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
1039 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
1040 | | --exec=* | --exe=* | --ex=*) |
1041 | exec_prefix=$ac_optarg ;; |
1042 | |
1043 | -gas | --gas | --ga | --g) |
1044 | # Obsolete; use --with-gas. |
1045 | with_gas=yes ;; |
1046 | |
1047 | -help | --help | --hel | --he | -h) |
1048 | ac_init_help=long ;; |
1049 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
1050 | ac_init_help=recursive ;; |
1051 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
1052 | ac_init_help=short ;; |
1053 | |
1054 | -host | --host | --hos | --ho) |
1055 | ac_prev=host_alias ;; |
1056 | -host=* | --host=* | --hos=* | --ho=*) |
1057 | host_alias=$ac_optarg ;; |
1058 | |
64ff59ba |
1059 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1060 | ac_prev=htmldir ;; |
1061 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
1062 | | --ht=*) |
1063 | htmldir=$ac_optarg ;; |
1064 | |
d9898ee8 |
1065 | -includedir | --includedir | --includedi | --included | --include \ |
1066 | | --includ | --inclu | --incl | --inc) |
1067 | ac_prev=includedir ;; |
1068 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
1069 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
1070 | includedir=$ac_optarg ;; |
1071 | |
1072 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
1073 | ac_prev=infodir ;; |
1074 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
1075 | infodir=$ac_optarg ;; |
1076 | |
1077 | -libdir | --libdir | --libdi | --libd) |
1078 | ac_prev=libdir ;; |
1079 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
1080 | libdir=$ac_optarg ;; |
1081 | |
1082 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
1083 | | --libexe | --libex | --libe) |
1084 | ac_prev=libexecdir ;; |
1085 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
1086 | | --libexe=* | --libex=* | --libe=*) |
1087 | libexecdir=$ac_optarg ;; |
1088 | |
64ff59ba |
1089 | -localedir | --localedir | --localedi | --localed | --locale) |
1090 | ac_prev=localedir ;; |
1091 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
1092 | localedir=$ac_optarg ;; |
1093 | |
d9898ee8 |
1094 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
64ff59ba |
1095 | | --localstate | --localstat | --localsta | --localst | --locals) |
d9898ee8 |
1096 | ac_prev=localstatedir ;; |
1097 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
64ff59ba |
1098 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
d9898ee8 |
1099 | localstatedir=$ac_optarg ;; |
1100 | |
1101 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
1102 | ac_prev=mandir ;; |
1103 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
1104 | mandir=$ac_optarg ;; |
1105 | |
1106 | -nfp | --nfp | --nf) |
1107 | # Obsolete; use --without-fp. |
1108 | with_fp=no ;; |
1109 | |
1110 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
1111 | | --no-cr | --no-c | -n) |
1112 | no_create=yes ;; |
1113 | |
1114 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
1115 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
1116 | no_recursion=yes ;; |
1117 | |
1118 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
1119 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
1120 | | --oldin | --oldi | --old | --ol | --o) |
1121 | ac_prev=oldincludedir ;; |
1122 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
1123 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
1124 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
1125 | oldincludedir=$ac_optarg ;; |
1126 | |
1127 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
1128 | ac_prev=prefix ;; |
1129 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
1130 | prefix=$ac_optarg ;; |
1131 | |
1132 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
1133 | | --program-pre | --program-pr | --program-p) |
1134 | ac_prev=program_prefix ;; |
1135 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
1136 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
1137 | program_prefix=$ac_optarg ;; |
1138 | |
1139 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
1140 | | --program-suf | --program-su | --program-s) |
1141 | ac_prev=program_suffix ;; |
1142 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
1143 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
1144 | program_suffix=$ac_optarg ;; |
1145 | |
1146 | -program-transform-name | --program-transform-name \ |
1147 | | --program-transform-nam | --program-transform-na \ |
1148 | | --program-transform-n | --program-transform- \ |
1149 | | --program-transform | --program-transfor \ |
1150 | | --program-transfo | --program-transf \ |
1151 | | --program-trans | --program-tran \ |
1152 | | --progr-tra | --program-tr | --program-t) |
1153 | ac_prev=program_transform_name ;; |
1154 | -program-transform-name=* | --program-transform-name=* \ |
1155 | | --program-transform-nam=* | --program-transform-na=* \ |
1156 | | --program-transform-n=* | --program-transform-=* \ |
1157 | | --program-transform=* | --program-transfor=* \ |
1158 | | --program-transfo=* | --program-transf=* \ |
1159 | | --program-trans=* | --program-tran=* \ |
1160 | | --progr-tra=* | --program-tr=* | --program-t=*) |
1161 | program_transform_name=$ac_optarg ;; |
1162 | |
64ff59ba |
1163 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1164 | ac_prev=pdfdir ;; |
1165 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
1166 | pdfdir=$ac_optarg ;; |
1167 | |
1168 | -psdir | --psdir | --psdi | --psd | --ps) |
1169 | ac_prev=psdir ;; |
1170 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
1171 | psdir=$ac_optarg ;; |
1172 | |
d9898ee8 |
1173 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1174 | | -silent | --silent | --silen | --sile | --sil) |
1175 | silent=yes ;; |
1176 | |
1177 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
1178 | ac_prev=sbindir ;; |
1179 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
1180 | | --sbi=* | --sb=*) |
1181 | sbindir=$ac_optarg ;; |
1182 | |
1183 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
1184 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
1185 | | --sharedst | --shareds | --shared | --share | --shar \ |
1186 | | --sha | --sh) |
1187 | ac_prev=sharedstatedir ;; |
1188 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
1189 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
1190 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
1191 | | --sha=* | --sh=*) |
1192 | sharedstatedir=$ac_optarg ;; |
1193 | |
1194 | -site | --site | --sit) |
1195 | ac_prev=site ;; |
1196 | -site=* | --site=* | --sit=*) |
1197 | site=$ac_optarg ;; |
1198 | |
1199 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
1200 | ac_prev=srcdir ;; |
1201 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
1202 | srcdir=$ac_optarg ;; |
1203 | |
1204 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
1205 | | --syscon | --sysco | --sysc | --sys | --sy) |
1206 | ac_prev=sysconfdir ;; |
1207 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
1208 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
1209 | sysconfdir=$ac_optarg ;; |
1210 | |
1211 | -target | --target | --targe | --targ | --tar | --ta | --t) |
1212 | ac_prev=target_alias ;; |
1213 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
1214 | target_alias=$ac_optarg ;; |
1215 | |
1216 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
1217 | verbose=yes ;; |
1218 | |
1219 | -version | --version | --versio | --versi | --vers | -V) |
1220 | ac_init_version=: ;; |
1221 | |
1222 | -with-* | --with-*) |
1223 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
1224 | # Reject names that are not valid shell variable names. |
64ff59ba |
1225 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
d9898ee8 |
1226 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
1227 | { (exit 1); exit 1; }; } |
64ff59ba |
1228 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1229 | eval with_$ac_package=\$ac_optarg ;; |
d9898ee8 |
1230 | |
1231 | -without-* | --without-*) |
1232 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
1233 | # Reject names that are not valid shell variable names. |
64ff59ba |
1234 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
d9898ee8 |
1235 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
1236 | { (exit 1); exit 1; }; } |
64ff59ba |
1237 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1238 | eval with_$ac_package=no ;; |
d9898ee8 |
1239 | |
1240 | --x) |
1241 | # Obsolete; use --with-x. |
1242 | with_x=yes ;; |
1243 | |
1244 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
1245 | | --x-incl | --x-inc | --x-in | --x-i) |
1246 | ac_prev=x_includes ;; |
1247 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
1248 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
1249 | x_includes=$ac_optarg ;; |
1250 | |
1251 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
1252 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
1253 | ac_prev=x_libraries ;; |
1254 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
1255 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
1256 | x_libraries=$ac_optarg ;; |
1257 | |
1258 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
1259 | Try \`$0 --help' for more information." >&2 |
1260 | { (exit 1); exit 1; }; } |
1261 | ;; |
1262 | |
1263 | *=*) |
1264 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
1265 | # Reject names that are not valid shell variable names. |
1266 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
1267 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
1268 | { (exit 1); exit 1; }; } |
64ff59ba |
1269 | eval $ac_envvar=\$ac_optarg |
d9898ee8 |
1270 | export $ac_envvar ;; |
1271 | |
1272 | *) |
1273 | # FIXME: should be removed in autoconf 3.0. |
1274 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
1275 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1276 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
1277 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
1278 | ;; |
1279 | |
1280 | esac |
1281 | done |
1282 | |
1283 | if test -n "$ac_prev"; then |
1284 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
1285 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
1286 | { (exit 1); exit 1; }; } |
1287 | fi |
1288 | |
64ff59ba |
1289 | # Be sure to have absolute directory names. |
1290 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1291 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
1292 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
1293 | libdir localedir mandir |
d9898ee8 |
1294 | do |
64ff59ba |
1295 | eval ac_val=\$$ac_var |
d9898ee8 |
1296 | case $ac_val in |
64ff59ba |
1297 | [\\/$]* | ?:[\\/]* ) continue;; |
1298 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
d9898ee8 |
1299 | esac |
64ff59ba |
1300 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
1301 | { (exit 1); exit 1; }; } |
d9898ee8 |
1302 | done |
1303 | |
1304 | # There might be people who depend on the old broken behavior: `$host' |
1305 | # used to hold the argument of --host etc. |
1306 | # FIXME: To remove some day. |
1307 | build=$build_alias |
1308 | host=$host_alias |
1309 | target=$target_alias |
1310 | |
1311 | # FIXME: To remove some day. |
1312 | if test "x$host_alias" != x; then |
1313 | if test "x$build_alias" = x; then |
1314 | cross_compiling=maybe |
1315 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
1316 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1317 | elif test "x$build_alias" != "x$host_alias"; then |
1318 | cross_compiling=yes |
1319 | fi |
1320 | fi |
1321 | |
1322 | ac_tool_prefix= |
1323 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
1324 | |
1325 | test "$silent" = yes && exec 6>/dev/null |
1326 | |
1327 | |
64ff59ba |
1328 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1329 | ac_ls_di=`ls -di .` && |
1330 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
1331 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
1332 | { (exit 1); exit 1; }; } |
1333 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
1334 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
1335 | { (exit 1); exit 1; }; } |
1336 | |
1337 | |
d9898ee8 |
1338 | # Find the source files, if location was not specified. |
1339 | if test -z "$srcdir"; then |
1340 | ac_srcdir_defaulted=yes |
64ff59ba |
1341 | # Try the directory containing this script, then the parent directory. |
1342 | ac_confdir=`$as_dirname -- "$0" || |
d9898ee8 |
1343 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
1344 | X"$0" : 'X\(//\)[^/]' \| \ |
1345 | X"$0" : 'X\(//\)$' \| \ |
64ff59ba |
1346 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
1347 | echo X"$0" | |
64ff59ba |
1348 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1349 | s//\1/ |
1350 | q |
1351 | } |
1352 | /^X\(\/\/\)[^/].*/{ |
1353 | s//\1/ |
1354 | q |
1355 | } |
1356 | /^X\(\/\/\)$/{ |
1357 | s//\1/ |
1358 | q |
1359 | } |
1360 | /^X\(\/\).*/{ |
1361 | s//\1/ |
1362 | q |
1363 | } |
1364 | s/.*/./; q'` |
d9898ee8 |
1365 | srcdir=$ac_confdir |
64ff59ba |
1366 | if test ! -r "$srcdir/$ac_unique_file"; then |
d9898ee8 |
1367 | srcdir=.. |
1368 | fi |
1369 | else |
1370 | ac_srcdir_defaulted=no |
1371 | fi |
64ff59ba |
1372 | if test ! -r "$srcdir/$ac_unique_file"; then |
1373 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
1374 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
d9898ee8 |
1375 | { (exit 1); exit 1; }; } |
d9898ee8 |
1376 | fi |
64ff59ba |
1377 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1378 | ac_abs_confdir=`( |
1379 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
d9898ee8 |
1380 | { (exit 1); exit 1; }; } |
64ff59ba |
1381 | pwd)` |
1382 | # When building in place, set srcdir=. |
1383 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
1384 | srcdir=. |
1385 | fi |
1386 | # Remove unnecessary trailing slashes from srcdir. |
1387 | # Double slashes in file names in object file debugging info |
1388 | # mess up M-x gdb in Emacs. |
1389 | case $srcdir in |
1390 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
1391 | esac |
1392 | for ac_var in $ac_precious_vars; do |
1393 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
1394 | eval ac_env_${ac_var}_value=\$${ac_var} |
1395 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
1396 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
1397 | done |
d9898ee8 |
1398 | |
1399 | # |
1400 | # Report the --help message. |
1401 | # |
1402 | if test "$ac_init_help" = "long"; then |
1403 | # Omit some internal or obsolete options to make the list less imposing. |
1404 | # This message is too long to be a string in the A/UX 3.1 sh. |
1405 | cat <<_ACEOF |
1406 | \`configure' configures libuserdb 0.10 to adapt to many kinds of systems. |
1407 | |
1408 | Usage: $0 [OPTION]... [VAR=VALUE]... |
1409 | |
1410 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
1411 | VAR=VALUE. See below for descriptions of some of the useful variables. |
1412 | |
1413 | Defaults for the options are specified in brackets. |
1414 | |
1415 | Configuration: |
1416 | -h, --help display this help and exit |
1417 | --help=short display options specific to this package |
1418 | --help=recursive display the short help of all the included packages |
1419 | -V, --version display version information and exit |
1420 | -q, --quiet, --silent do not print \`checking...' messages |
1421 | --cache-file=FILE cache test results in FILE [disabled] |
1422 | -C, --config-cache alias for \`--cache-file=config.cache' |
1423 | -n, --no-create do not create output files |
1424 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
1425 | |
d9898ee8 |
1426 | Installation directories: |
1427 | --prefix=PREFIX install architecture-independent files in PREFIX |
1428 | [$ac_default_prefix] |
1429 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
1430 | [PREFIX] |
1431 | |
1432 | By default, \`make install' will install all the files in |
1433 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
1434 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
1435 | for instance \`--prefix=\$HOME'. |
1436 | |
1437 | For better control, use the options below. |
1438 | |
1439 | Fine tuning of the installation directories: |
1440 | --bindir=DIR user executables [EPREFIX/bin] |
1441 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
1442 | --libexecdir=DIR program executables [EPREFIX/libexec] |
d9898ee8 |
1443 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1444 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
1445 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
1446 | --libdir=DIR object code libraries [EPREFIX/lib] |
1447 | --includedir=DIR C header files [PREFIX/include] |
1448 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
64ff59ba |
1449 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
1450 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
1451 | --infodir=DIR info documentation [DATAROOTDIR/info] |
1452 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
1453 | --mandir=DIR man documentation [DATAROOTDIR/man] |
1454 | --docdir=DIR documentation root [DATAROOTDIR/doc/libuserdb] |
1455 | --htmldir=DIR html documentation [DOCDIR] |
1456 | --dvidir=DIR dvi documentation [DOCDIR] |
1457 | --pdfdir=DIR pdf documentation [DOCDIR] |
1458 | --psdir=DIR ps documentation [DOCDIR] |
d9898ee8 |
1459 | _ACEOF |
1460 | |
1461 | cat <<\_ACEOF |
1462 | |
1463 | Program names: |
1464 | --program-prefix=PREFIX prepend PREFIX to installed program names |
1465 | --program-suffix=SUFFIX append SUFFIX to installed program names |
1466 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
1467 | |
1468 | System types: |
1469 | --build=BUILD configure for building on BUILD [guessed] |
1470 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
1471 | _ACEOF |
1472 | fi |
1473 | |
1474 | if test -n "$ac_init_help"; then |
1475 | case $ac_init_help in |
1476 | short | recursive ) echo "Configuration of libuserdb 0.10:";; |
1477 | esac |
1478 | cat <<\_ACEOF |
1479 | |
1480 | Optional Features: |
1481 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1482 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1483 | --disable-dependency-tracking speeds up one-time build |
1484 | --enable-dependency-tracking do not reject slow dependency extractors |
64ff59ba |
1485 | --enable-shared[=PKGS] build shared libraries [default=yes] |
1486 | --enable-static[=PKGS] build static libraries [default=yes] |
d9898ee8 |
1487 | --enable-fast-install[=PKGS] |
1488 | optimize for fast installation [default=yes] |
1489 | --disable-libtool-lock avoid locking (might break parallel builds) |
1490 | |
1491 | Optional Packages: |
1492 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1493 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1494 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
1495 | --with-pic try to use only PIC/non-PIC objects [default=use |
1496 | both] |
64ff59ba |
1497 | --with-tags[=TAGS] include additional configurations [automatic] |
d9898ee8 |
1498 | |
1499 | --with-random=/dev/urandom - location of the system random file generator |
1500 | --without-random - there is no system random file generator |
1501 | |
1502 | Some influential environment variables: |
1503 | CC C compiler command |
1504 | CFLAGS C compiler flags |
1505 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1506 | nonstandard directory <lib dir> |
64ff59ba |
1507 | LIBS libraries to pass to the linker, e.g. -l<library> |
1508 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1509 | you have headers in a nonstandard directory <include dir> |
d9898ee8 |
1510 | CPP C preprocessor |
1511 | CXX C++ compiler command |
1512 | CXXFLAGS C++ compiler flags |
1513 | CXXCPP C++ preprocessor |
1514 | F77 Fortran 77 compiler command |
1515 | FFLAGS Fortran 77 compiler flags |
1516 | |
1517 | Use these variables to override the choices made by `configure' or to help |
1518 | it to find libraries and programs with nonstandard names/locations. |
1519 | |
1520 | Report bugs to <courier-users@lists.sourceforge.net>. |
1521 | _ACEOF |
64ff59ba |
1522 | ac_status=$? |
d9898ee8 |
1523 | fi |
1524 | |
1525 | if test "$ac_init_help" = "recursive"; then |
1526 | # If there are subdirs, report their specific --help. |
d9898ee8 |
1527 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
64ff59ba |
1528 | test -d "$ac_dir" || continue |
d9898ee8 |
1529 | ac_builddir=. |
1530 | |
64ff59ba |
1531 | case "$ac_dir" in |
1532 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1533 | *) |
d9898ee8 |
1534 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
64ff59ba |
1535 | # A ".." for each directory in $ac_dir_suffix. |
1536 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
1537 | case $ac_top_builddir_sub in |
1538 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1539 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
1540 | esac ;; |
1541 | esac |
1542 | ac_abs_top_builddir=$ac_pwd |
1543 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
1544 | # for backward compatibility: |
1545 | ac_top_builddir=$ac_top_build_prefix |
d9898ee8 |
1546 | |
1547 | case $srcdir in |
64ff59ba |
1548 | .) # We are building in place. |
d9898ee8 |
1549 | ac_srcdir=. |
64ff59ba |
1550 | ac_top_srcdir=$ac_top_builddir_sub |
1551 | ac_abs_top_srcdir=$ac_pwd ;; |
1552 | [\\/]* | ?:[\\/]* ) # Absolute name. |
d9898ee8 |
1553 | ac_srcdir=$srcdir$ac_dir_suffix; |
64ff59ba |
1554 | ac_top_srcdir=$srcdir |
1555 | ac_abs_top_srcdir=$srcdir ;; |
1556 | *) # Relative name. |
1557 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
1558 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
1559 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
d9898ee8 |
1560 | esac |
64ff59ba |
1561 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1562 | |
1563 | cd "$ac_dir" || { ac_status=$?; continue; } |
1564 | # Check for guested configure. |
1565 | if test -f "$ac_srcdir/configure.gnu"; then |
1566 | echo && |
1567 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
1568 | elif test -f "$ac_srcdir/configure"; then |
1569 | echo && |
1570 | $SHELL "$ac_srcdir/configure" --help=recursive |
d9898ee8 |
1571 | else |
1572 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
64ff59ba |
1573 | fi || ac_status=$? |
1574 | cd "$ac_pwd" || { ac_status=$?; break; } |
d9898ee8 |
1575 | done |
1576 | fi |
1577 | |
64ff59ba |
1578 | test -n "$ac_init_help" && exit $ac_status |
d9898ee8 |
1579 | if $ac_init_version; then |
1580 | cat <<\_ACEOF |
1581 | libuserdb configure 0.10 |
64ff59ba |
1582 | generated by GNU Autoconf 2.61 |
d9898ee8 |
1583 | |
64ff59ba |
1584 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
1585 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
d9898ee8 |
1586 | This configure script is free software; the Free Software Foundation |
1587 | gives unlimited permission to copy, distribute and modify it. |
1588 | _ACEOF |
64ff59ba |
1589 | exit |
d9898ee8 |
1590 | fi |
64ff59ba |
1591 | cat >config.log <<_ACEOF |
d9898ee8 |
1592 | This file contains any messages produced by compilers while |
1593 | running configure, to aid debugging if configure makes a mistake. |
1594 | |
1595 | It was created by libuserdb $as_me 0.10, which was |
64ff59ba |
1596 | generated by GNU Autoconf 2.61. Invocation command line was |
d9898ee8 |
1597 | |
1598 | $ $0 $@ |
1599 | |
1600 | _ACEOF |
64ff59ba |
1601 | exec 5>>config.log |
d9898ee8 |
1602 | { |
1603 | cat <<_ASUNAME |
1604 | ## --------- ## |
1605 | ## Platform. ## |
1606 | ## --------- ## |
1607 | |
1608 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
1609 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
1610 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
1611 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
1612 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
1613 | |
1614 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
1615 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
1616 | |
1617 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
1618 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
1619 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
64ff59ba |
1620 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
d9898ee8 |
1621 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1622 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
1623 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
1624 | |
1625 | _ASUNAME |
1626 | |
1627 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1628 | for as_dir in $PATH |
1629 | do |
1630 | IFS=$as_save_IFS |
1631 | test -z "$as_dir" && as_dir=. |
1632 | echo "PATH: $as_dir" |
1633 | done |
64ff59ba |
1634 | IFS=$as_save_IFS |
d9898ee8 |
1635 | |
1636 | } >&5 |
1637 | |
1638 | cat >&5 <<_ACEOF |
1639 | |
1640 | |
1641 | ## ----------- ## |
1642 | ## Core tests. ## |
1643 | ## ----------- ## |
1644 | |
1645 | _ACEOF |
1646 | |
1647 | |
1648 | # Keep a trace of the command line. |
1649 | # Strip out --no-create and --no-recursion so they do not pile up. |
1650 | # Strip out --silent because we don't want to record it for future runs. |
1651 | # Also quote any args containing shell meta-characters. |
1652 | # Make two passes to allow for proper duplicate-argument suppression. |
1653 | ac_configure_args= |
1654 | ac_configure_args0= |
1655 | ac_configure_args1= |
d9898ee8 |
1656 | ac_must_keep_next=false |
1657 | for ac_pass in 1 2 |
1658 | do |
1659 | for ac_arg |
1660 | do |
1661 | case $ac_arg in |
1662 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
1663 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1664 | | -silent | --silent | --silen | --sile | --sil) |
1665 | continue ;; |
64ff59ba |
1666 | *\'*) |
d9898ee8 |
1667 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1668 | esac |
1669 | case $ac_pass in |
1670 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
1671 | 2) |
1672 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
1673 | if test $ac_must_keep_next = true; then |
1674 | ac_must_keep_next=false # Got value, back to normal. |
1675 | else |
1676 | case $ac_arg in |
1677 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
1678 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
1679 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
1680 | | -with-* | --with-* | -without-* | --without-* | --x) |
1681 | case "$ac_configure_args0 " in |
1682 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
1683 | esac |
1684 | ;; |
1685 | -* ) ac_must_keep_next=true ;; |
1686 | esac |
1687 | fi |
64ff59ba |
1688 | ac_configure_args="$ac_configure_args '$ac_arg'" |
d9898ee8 |
1689 | ;; |
1690 | esac |
1691 | done |
1692 | done |
1693 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
1694 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
1695 | |
1696 | # When interrupted or exit'd, cleanup temporary files, and complete |
1697 | # config.log. We remove comments because anyway the quotes in there |
1698 | # would cause problems or look ugly. |
64ff59ba |
1699 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1700 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
d9898ee8 |
1701 | trap 'exit_status=$? |
1702 | # Save into config.log some information that might help in debugging. |
1703 | { |
1704 | echo |
1705 | |
1706 | cat <<\_ASBOX |
1707 | ## ---------------- ## |
1708 | ## Cache variables. ## |
1709 | ## ---------------- ## |
1710 | _ASBOX |
1711 | echo |
1712 | # The following way of writing the cache mishandles newlines in values, |
64ff59ba |
1713 | ( |
1714 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
1715 | eval ac_val=\$$ac_var |
1716 | case $ac_val in #( |
1717 | *${as_nl}*) |
1718 | case $ac_var in #( |
1719 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
1720 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
1721 | esac |
1722 | case $ac_var in #( |
1723 | _ | IFS | as_nl) ;; #( |
1724 | *) $as_unset $ac_var ;; |
1725 | esac ;; |
1726 | esac |
1727 | done |
d9898ee8 |
1728 | (set) 2>&1 | |
64ff59ba |
1729 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1730 | *${as_nl}ac_space=\ *) |
d9898ee8 |
1731 | sed -n \ |
64ff59ba |
1732 | "s/'\''/'\''\\\\'\'''\''/g; |
1733 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
1734 | ;; #( |
d9898ee8 |
1735 | *) |
64ff59ba |
1736 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
d9898ee8 |
1737 | ;; |
64ff59ba |
1738 | esac | |
1739 | sort |
1740 | ) |
d9898ee8 |
1741 | echo |
1742 | |
1743 | cat <<\_ASBOX |
1744 | ## ----------------- ## |
1745 | ## Output variables. ## |
1746 | ## ----------------- ## |
1747 | _ASBOX |
1748 | echo |
1749 | for ac_var in $ac_subst_vars |
1750 | do |
64ff59ba |
1751 | eval ac_val=\$$ac_var |
1752 | case $ac_val in |
1753 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
1754 | esac |
1755 | echo "$ac_var='\''$ac_val'\''" |
d9898ee8 |
1756 | done | sort |
1757 | echo |
1758 | |
1759 | if test -n "$ac_subst_files"; then |
1760 | cat <<\_ASBOX |
64ff59ba |
1761 | ## ------------------- ## |
1762 | ## File substitutions. ## |
1763 | ## ------------------- ## |
d9898ee8 |
1764 | _ASBOX |
1765 | echo |
1766 | for ac_var in $ac_subst_files |
1767 | do |
64ff59ba |
1768 | eval ac_val=\$$ac_var |
1769 | case $ac_val in |
1770 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
1771 | esac |
1772 | echo "$ac_var='\''$ac_val'\''" |
d9898ee8 |
1773 | done | sort |
1774 | echo |
1775 | fi |
1776 | |
1777 | if test -s confdefs.h; then |
1778 | cat <<\_ASBOX |
1779 | ## ----------- ## |
1780 | ## confdefs.h. ## |
1781 | ## ----------- ## |
1782 | _ASBOX |
1783 | echo |
64ff59ba |
1784 | cat confdefs.h |
d9898ee8 |
1785 | echo |
1786 | fi |
1787 | test "$ac_signal" != 0 && |
1788 | echo "$as_me: caught signal $ac_signal" |
1789 | echo "$as_me: exit $exit_status" |
1790 | } >&5 |
64ff59ba |
1791 | rm -f core *.core core.conftest.* && |
1792 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
d9898ee8 |
1793 | exit $exit_status |
64ff59ba |
1794 | ' 0 |
d9898ee8 |
1795 | for ac_signal in 1 2 13 15; do |
1796 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
1797 | done |
1798 | ac_signal=0 |
1799 | |
1800 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
64ff59ba |
1801 | rm -f -r conftest* confdefs.h |
d9898ee8 |
1802 | |
1803 | # Predefined preprocessor variables. |
1804 | |
1805 | cat >>confdefs.h <<_ACEOF |
1806 | #define PACKAGE_NAME "$PACKAGE_NAME" |
1807 | _ACEOF |
1808 | |
1809 | |
1810 | cat >>confdefs.h <<_ACEOF |
1811 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
1812 | _ACEOF |
1813 | |
1814 | |
1815 | cat >>confdefs.h <<_ACEOF |
1816 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
1817 | _ACEOF |
1818 | |
1819 | |
1820 | cat >>confdefs.h <<_ACEOF |
1821 | #define PACKAGE_STRING "$PACKAGE_STRING" |
1822 | _ACEOF |
1823 | |
1824 | |
1825 | cat >>confdefs.h <<_ACEOF |
1826 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
1827 | _ACEOF |
1828 | |
1829 | |
1830 | # Let the site file select an alternate cache file if it wants to. |
1831 | # Prefer explicitly selected file to automatically selected ones. |
64ff59ba |
1832 | if test -n "$CONFIG_SITE"; then |
1833 | set x "$CONFIG_SITE" |
1834 | elif test "x$prefix" != xNONE; then |
1835 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
1836 | else |
1837 | set x "$ac_default_prefix/share/config.site" \ |
1838 | "$ac_default_prefix/etc/config.site" |
d9898ee8 |
1839 | fi |
64ff59ba |
1840 | shift |
1841 | for ac_site_file |
1842 | do |
d9898ee8 |
1843 | if test -r "$ac_site_file"; then |
1844 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1845 | echo "$as_me: loading site script $ac_site_file" >&6;} |
1846 | sed 's/^/| /' "$ac_site_file" >&5 |
1847 | . "$ac_site_file" |
1848 | fi |
1849 | done |
1850 | |
1851 | if test -r "$cache_file"; then |
1852 | # Some versions of bash will fail to source /dev/null (special |
1853 | # files actually), so we avoid doing that. |
1854 | if test -f "$cache_file"; then |
1855 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1856 | echo "$as_me: loading cache $cache_file" >&6;} |
1857 | case $cache_file in |
64ff59ba |
1858 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1859 | *) . "./$cache_file";; |
d9898ee8 |
1860 | esac |
1861 | fi |
1862 | else |
1863 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1864 | echo "$as_me: creating cache $cache_file" >&6;} |
1865 | >$cache_file |
1866 | fi |
1867 | |
1868 | # Check that the precious variables saved in the cache have kept the same |
1869 | # value. |
1870 | ac_cache_corrupted=false |
64ff59ba |
1871 | for ac_var in $ac_precious_vars; do |
d9898ee8 |
1872 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1873 | eval ac_new_set=\$ac_env_${ac_var}_set |
64ff59ba |
1874 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1875 | eval ac_new_val=\$ac_env_${ac_var}_value |
d9898ee8 |
1876 | case $ac_old_set,$ac_new_set in |
1877 | set,) |
1878 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1879 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
1880 | ac_cache_corrupted=: ;; |
1881 | ,set) |
1882 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
1883 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
1884 | ac_cache_corrupted=: ;; |
1885 | ,);; |
1886 | *) |
1887 | if test "x$ac_old_val" != "x$ac_new_val"; then |
1888 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
1889 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
1890 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
1891 | echo "$as_me: former value: $ac_old_val" >&2;} |
1892 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
1893 | echo "$as_me: current value: $ac_new_val" >&2;} |
1894 | ac_cache_corrupted=: |
1895 | fi;; |
1896 | esac |
1897 | # Pass precious variables to config.status. |
1898 | if test "$ac_new_set" = set; then |
1899 | case $ac_new_val in |
64ff59ba |
1900 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
d9898ee8 |
1901 | *) ac_arg=$ac_var=$ac_new_val ;; |
1902 | esac |
1903 | case " $ac_configure_args " in |
1904 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
1905 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
1906 | esac |
1907 | fi |
1908 | done |
1909 | if $ac_cache_corrupted; then |
1910 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
1911 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
1912 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
1913 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
1914 | { (exit 1); exit 1; }; } |
1915 | fi |
1916 | |
d9898ee8 |
1917 | |
1918 | |
1919 | |
1920 | |
1921 | |
1922 | |
1923 | |
1924 | |
1925 | |
1926 | |
1927 | |
1928 | |
1929 | |
1930 | |
1931 | |
1932 | |
1933 | |
1934 | |
1935 | |
1936 | |
1937 | |
1938 | |
1939 | |
1940 | |
64ff59ba |
1941 | ac_ext=c |
1942 | ac_cpp='$CPP $CPPFLAGS' |
1943 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1944 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
1945 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
d9898ee8 |
1946 | |
1947 | |
1948 | |
1949 | >confdefs.h # Kill PACKAGE_ macros. |
1950 | |
1951 | LPATH="$PATH:/usr/local/bin" |
1952 | |
1953 | |
64ff59ba |
1954 | am__api_version='1.10' |
1955 | |
d9898ee8 |
1956 | ac_aux_dir= |
64ff59ba |
1957 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
1958 | if test -f "$ac_dir/install-sh"; then |
d9898ee8 |
1959 | ac_aux_dir=$ac_dir |
1960 | ac_install_sh="$ac_aux_dir/install-sh -c" |
1961 | break |
64ff59ba |
1962 | elif test -f "$ac_dir/install.sh"; then |
d9898ee8 |
1963 | ac_aux_dir=$ac_dir |
1964 | ac_install_sh="$ac_aux_dir/install.sh -c" |
1965 | break |
64ff59ba |
1966 | elif test -f "$ac_dir/shtool"; then |
d9898ee8 |
1967 | ac_aux_dir=$ac_dir |
1968 | ac_install_sh="$ac_aux_dir/shtool install -c" |
1969 | break |
1970 | fi |
1971 | done |
1972 | if test -z "$ac_aux_dir"; then |
64ff59ba |
1973 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
1974 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} |
d9898ee8 |
1975 | { (exit 1); exit 1; }; } |
1976 | fi |
64ff59ba |
1977 | |
1978 | # These three variables are undocumented and unsupported, |
1979 | # and are intended to be withdrawn in a future Autoconf release. |
1980 | # They can cause serious problems if a builder's source tree is in a directory |
1981 | # whose full name contains unusual characters. |
1982 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
1983 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
1984 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
1985 | |
d9898ee8 |
1986 | |
1987 | # Find a good install program. We prefer a C program (faster), |
1988 | # so one script is as good as another. But avoid the broken or |
1989 | # incompatible versions: |
1990 | # SysV /etc/install, /usr/sbin/install |
1991 | # SunOS /usr/etc/install |
1992 | # IRIX /sbin/install |
1993 | # AIX /bin/install |
1994 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
1995 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
1996 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
1997 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
1998 | # OS/2's system install, which has a completely different semantic |
1999 | # ./install, which can be erroneously created by make from ./install.sh. |
64ff59ba |
2000 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
2001 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
d9898ee8 |
2002 | if test -z "$INSTALL"; then |
2003 | if test "${ac_cv_path_install+set}" = set; then |
2004 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2005 | else |
2006 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2007 | for as_dir in $PATH |
2008 | do |
2009 | IFS=$as_save_IFS |
2010 | test -z "$as_dir" && as_dir=. |
2011 | # Account for people who put trailing slashes in PATH elements. |
2012 | case $as_dir/ in |
2013 | ./ | .// | /cC/* | \ |
2014 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
2015 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
2016 | /usr/ucb/* ) ;; |
2017 | *) |
2018 | # OSF1 and SCO ODT 3.0 have their own names for install. |
2019 | # Don't use installbsd from OSF since it installs stuff as root |
2020 | # by default. |
2021 | for ac_prog in ginstall scoinst install; do |
2022 | for ac_exec_ext in '' $ac_executable_extensions; do |
64ff59ba |
2023 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
d9898ee8 |
2024 | if test $ac_prog = install && |
2025 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
2026 | # AIX install. It has an incompatible calling convention. |
2027 | : |
2028 | elif test $ac_prog = install && |
2029 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
2030 | # program-specific install script used by HP pwplus--don't use. |
2031 | : |
2032 | else |
2033 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
2034 | break 3 |
2035 | fi |
2036 | fi |
2037 | done |
2038 | done |
2039 | ;; |
2040 | esac |
2041 | done |
64ff59ba |
2042 | IFS=$as_save_IFS |
d9898ee8 |
2043 | |
2044 | |
2045 | fi |
2046 | if test "${ac_cv_path_install+set}" = set; then |
2047 | INSTALL=$ac_cv_path_install |
2048 | else |
64ff59ba |
2049 | # As a last resort, use the slow shell script. Don't cache a |
2050 | # value for INSTALL within a source directory, because that will |
d9898ee8 |
2051 | # break other packages using the cache if that directory is |
64ff59ba |
2052 | # removed, or if the value is a relative name. |
d9898ee8 |
2053 | INSTALL=$ac_install_sh |
2054 | fi |
2055 | fi |
64ff59ba |
2056 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
2057 | echo "${ECHO_T}$INSTALL" >&6; } |
d9898ee8 |
2058 | |
2059 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
2060 | # It thinks the first close brace ends the variable substitution. |
2061 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
2062 | |
2063 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
2064 | |
2065 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
2066 | |
64ff59ba |
2067 | { echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
2068 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } |
d9898ee8 |
2069 | # Just in case |
2070 | sleep 1 |
2071 | echo timestamp > conftest.file |
2072 | # Do `set' in a subshell so we don't clobber the current shell's |
2073 | # arguments. Must try -L first in case configure is actually a |
2074 | # symlink; some systems play weird games with the mod time of symlinks |
2075 | # (eg FreeBSD returns the mod time of the symlink's containing |
2076 | # directory). |
2077 | if ( |
2078 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
2079 | if test "$*" = "X"; then |
2080 | # -L didn't work. |
2081 | set X `ls -t $srcdir/configure conftest.file` |
2082 | fi |
2083 | rm -f conftest.file |
2084 | if test "$*" != "X $srcdir/configure conftest.file" \ |
2085 | && test "$*" != "X conftest.file $srcdir/configure"; then |
2086 | |
2087 | # If neither matched, then we have a broken ls. This can happen |
2088 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
2089 | # broken ls alias from the environment. This has actually |
2090 | # happened. Such a system could not be considered "sane". |
2091 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
2092 | alias in your environment" >&5 |
2093 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
2094 | alias in your environment" >&2;} |
2095 | { (exit 1); exit 1; }; } |
2096 | fi |
2097 | |
2098 | test "$2" = conftest.file |
2099 | ) |
2100 | then |
2101 | # Ok. |
2102 | : |
2103 | else |
2104 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
2105 | Check your system clock" >&5 |
2106 | echo "$as_me: error: newly created file is older than distributed files! |
2107 | Check your system clock" >&2;} |
2108 | { (exit 1); exit 1; }; } |
2109 | fi |
64ff59ba |
2110 | { echo "$as_me:$LINENO: result: yes" >&5 |
2111 | echo "${ECHO_T}yes" >&6; } |
d9898ee8 |
2112 | test "$program_prefix" != NONE && |
64ff59ba |
2113 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
d9898ee8 |
2114 | # Use a double $ so make ignores it. |
2115 | test "$program_suffix" != NONE && |
64ff59ba |
2116 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
d9898ee8 |
2117 | # Double any \ or $. echo might interpret backslashes. |
2118 | # By default was `s,x,x', remove it if useless. |
2119 | cat <<\_ACEOF >conftest.sed |
2120 | s/[\\$]/&&/g;s/;s,x,x,$// |
2121 | _ACEOF |
2122 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
64ff59ba |
2123 | rm -f conftest.sed |
d9898ee8 |
2124 | |
2125 | # expand $ac_aux_dir to an absolute path |
2126 | am_aux_dir=`cd $ac_aux_dir && pwd` |
2127 | |
2128 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
2129 | # Use eval to expand $SHELL |
2130 | if eval "$MISSING --run true"; then |
2131 | am_missing_run="$MISSING --run " |
2132 | else |
2133 | am_missing_run= |
2134 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
2135 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
2136 | fi |
2137 | |
64ff59ba |
2138 | { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 |
2139 | echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } |
2140 | if test -z "$MKDIR_P"; then |
2141 | if test "${ac_cv_path_mkdir+set}" = set; then |
2142 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2143 | else |
2144 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2145 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
2146 | do |
2147 | IFS=$as_save_IFS |
2148 | test -z "$as_dir" && as_dir=. |
2149 | for ac_prog in mkdir gmkdir; do |
2150 | for ac_exec_ext in '' $ac_executable_extensions; do |
2151 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue |
2152 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
2153 | 'mkdir (GNU coreutils) '* | \ |
2154 | 'mkdir (coreutils) '* | \ |
2155 | 'mkdir (fileutils) '4.1*) |
2156 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
2157 | break 3;; |
2158 | esac |
2159 | done |
2160 | done |
2161 | done |
2162 | IFS=$as_save_IFS |
2163 | |
2164 | fi |
2165 | |
2166 | if test "${ac_cv_path_mkdir+set}" = set; then |
2167 | MKDIR_P="$ac_cv_path_mkdir -p" |
d9898ee8 |
2168 | else |
64ff59ba |
2169 | # As a last resort, use the slow shell script. Don't cache a |
2170 | # value for MKDIR_P within a source directory, because that will |
2171 | # break other packages using the cache if that directory is |
2172 | # removed, or if the value is a relative name. |
2173 | test -d ./--version && rmdir ./--version |
2174 | MKDIR_P="$ac_install_sh -d" |
d9898ee8 |
2175 | fi |
2176 | fi |
64ff59ba |
2177 | { echo "$as_me:$LINENO: result: $MKDIR_P" >&5 |
2178 | echo "${ECHO_T}$MKDIR_P" >&6; } |
2179 | |
2180 | mkdir_p="$MKDIR_P" |
2181 | case $mkdir_p in |
2182 | [\\/$]* | ?:[\\/]*) ;; |
2183 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; |
2184 | esac |
d9898ee8 |
2185 | |
2186 | for ac_prog in gawk mawk nawk awk |
2187 | do |
2188 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2189 | set dummy $ac_prog; ac_word=$2 |
64ff59ba |
2190 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2191 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2192 | if test "${ac_cv_prog_AWK+set}" = set; then |
2193 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2194 | else |
2195 | if test -n "$AWK"; then |
2196 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
2197 | else |
2198 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2199 | for as_dir in $PATH |
2200 | do |
2201 | IFS=$as_save_IFS |
2202 | test -z "$as_dir" && as_dir=. |
2203 | for ac_exec_ext in '' $ac_executable_extensions; do |
64ff59ba |
2204 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2205 | ac_cv_prog_AWK="$ac_prog" |
2206 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2207 | break 2 |
2208 | fi |
2209 | done |
2210 | done |
64ff59ba |
2211 | IFS=$as_save_IFS |
d9898ee8 |
2212 | |
2213 | fi |
2214 | fi |
2215 | AWK=$ac_cv_prog_AWK |
2216 | if test -n "$AWK"; then |
64ff59ba |
2217 | { echo "$as_me:$LINENO: result: $AWK" >&5 |
2218 | echo "${ECHO_T}$AWK" >&6; } |
d9898ee8 |
2219 | else |
64ff59ba |
2220 | { echo "$as_me:$LINENO: result: no" >&5 |
2221 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2222 | fi |
2223 | |
64ff59ba |
2224 | |
d9898ee8 |
2225 | test -n "$AWK" && break |
2226 | done |
2227 | |
64ff59ba |
2228 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
2229 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } |
2230 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
2231 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
2232 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2233 | else |
2234 | cat >conftest.make <<\_ACEOF |
64ff59ba |
2235 | SHELL = /bin/sh |
d9898ee8 |
2236 | all: |
64ff59ba |
2237 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
d9898ee8 |
2238 | _ACEOF |
2239 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
64ff59ba |
2240 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
2241 | *@@@%%%=?*=@@@%%%*) |
2242 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
2243 | *) |
2244 | eval ac_cv_prog_make_${ac_make}_set=no;; |
2245 | esac |
d9898ee8 |
2246 | rm -f conftest.make |
2247 | fi |
64ff59ba |
2248 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
2249 | { echo "$as_me:$LINENO: result: yes" >&5 |
2250 | echo "${ECHO_T}yes" >&6; } |
d9898ee8 |
2251 | SET_MAKE= |
2252 | else |
64ff59ba |
2253 | { echo "$as_me:$LINENO: result: no" >&5 |
2254 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2255 | SET_MAKE="MAKE=${MAKE-make}" |
2256 | fi |
2257 | |
2258 | rm -rf .tst 2>/dev/null |
2259 | mkdir .tst 2>/dev/null |
2260 | if test -d .tst; then |
2261 | am__leading_dot=. |
2262 | else |
2263 | am__leading_dot=_ |
2264 | fi |
2265 | rmdir .tst 2>/dev/null |
2266 | |
64ff59ba |
2267 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
2268 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
2269 | # is not polluted with repeated "-I." |
2270 | am__isrc=' -I$(srcdir)' |
2271 | # test to see if srcdir already configured |
2272 | if test -f $srcdir/config.status; then |
2273 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
d9898ee8 |
2274 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
2275 | { (exit 1); exit 1; }; } |
64ff59ba |
2276 | fi |
d9898ee8 |
2277 | fi |
2278 | |
2279 | # test whether we have cygpath |
2280 | if test -z "$CYGPATH_W"; then |
2281 | if (cygpath --version) >/dev/null 2>/dev/null; then |
2282 | CYGPATH_W='cygpath -w' |
2283 | else |
2284 | CYGPATH_W=echo |
2285 | fi |
2286 | fi |
2287 | |
2288 | |
2289 | # Define the identity of the package. |
2290 | PACKAGE='libuserdb' |
2291 | VERSION='0.10' |
2292 | |
2293 | |
2294 | # Some tools Automake needs. |
2295 | |
2296 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
2297 | |
2298 | |
2299 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
2300 | |
2301 | |
2302 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
2303 | |
2304 | |
2305 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
2306 | |
2307 | |
2308 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
2309 | |
64ff59ba |
2310 | install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} |
d9898ee8 |
2311 | |
2312 | # Installed binaries are usually stripped using `strip' when the user |
2313 | # run `make install-strip'. However `strip' might not be the right |
2314 | # tool to use in cross-compilation environments, therefore Automake |
2315 | # will honor the `STRIP' environment variable to overrule this program. |
2316 | if test "$cross_compiling" != no; then |
2317 | if test -n "$ac_tool_prefix"; then |
2318 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
2319 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
64ff59ba |
2320 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2321 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2322 | if test "${ac_cv_prog_STRIP+set}" = set; then |
2323 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2324 | else |
2325 | if test -n "$STRIP"; then |
2326 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
2327 | else |
2328 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2329 | for as_dir in $PATH |
2330 | do |
2331 | IFS=$as_save_IFS |
2332 | test -z "$as_dir" && as_dir=. |
2333 | for ac_exec_ext in '' $ac_executable_extensions; do |
64ff59ba |
2334 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2335 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
2336 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2337 | break 2 |
2338 | fi |
2339 | done |
2340 | done |
64ff59ba |
2341 | IFS=$as_save_IFS |
d9898ee8 |
2342 | |
2343 | fi |
2344 | fi |
2345 | STRIP=$ac_cv_prog_STRIP |
2346 | if test -n "$STRIP"; then |
64ff59ba |
2347 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
2348 | echo "${ECHO_T}$STRIP" >&6; } |
d9898ee8 |
2349 | else |
64ff59ba |
2350 | { echo "$as_me:$LINENO: result: no" >&5 |
2351 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2352 | fi |
2353 | |
64ff59ba |
2354 | |
d9898ee8 |
2355 | fi |
2356 | if test -z "$ac_cv_prog_STRIP"; then |
2357 | ac_ct_STRIP=$STRIP |
2358 | # Extract the first word of "strip", so it can be a program name with args. |
2359 | set dummy strip; ac_word=$2 |
64ff59ba |
2360 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2361 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2362 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
2363 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2364 | else |
2365 | if test -n "$ac_ct_STRIP"; then |
2366 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
2367 | else |
2368 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2369 | for as_dir in $PATH |
2370 | do |
2371 | IFS=$as_save_IFS |
2372 | test -z "$as_dir" && as_dir=. |
2373 | for ac_exec_ext in '' $ac_executable_extensions; do |
64ff59ba |
2374 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2375 | ac_cv_prog_ac_ct_STRIP="strip" |
2376 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2377 | break 2 |
2378 | fi |
2379 | done |
2380 | done |
64ff59ba |
2381 | IFS=$as_save_IFS |
d9898ee8 |
2382 | |
d9898ee8 |
2383 | fi |
2384 | fi |
2385 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
2386 | if test -n "$ac_ct_STRIP"; then |
64ff59ba |
2387 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
2388 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
d9898ee8 |
2389 | else |
64ff59ba |
2390 | { echo "$as_me:$LINENO: result: no" >&5 |
2391 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2392 | fi |
2393 | |
64ff59ba |
2394 | if test "x$ac_ct_STRIP" = x; then |
2395 | STRIP=":" |
2396 | else |
2397 | case $cross_compiling:$ac_tool_warned in |
2398 | yes:) |
2399 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
2400 | whose name does not start with the host triplet. If you think this |
2401 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
2402 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
2403 | whose name does not start with the host triplet. If you think this |
2404 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
2405 | ac_tool_warned=yes ;; |
2406 | esac |
2407 | STRIP=$ac_ct_STRIP |
2408 | fi |
d9898ee8 |
2409 | else |
2410 | STRIP="$ac_cv_prog_STRIP" |
2411 | fi |
2412 | |
2413 | fi |
64ff59ba |
2414 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
d9898ee8 |
2415 | |
2416 | # We need awk for the "check" target. The system "awk" is bad on |
2417 | # some platforms. |
2418 | # Always define AMTAR for backward compatibility. |
2419 | |
2420 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
2421 | |
2422 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
2423 | |
2424 | |
2425 | |
2426 | |
2427 | |
2428 | |
2429 | for ac_prog in gawk mawk nawk awk |
2430 | do |
2431 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2432 | set dummy $ac_prog; ac_word=$2 |
64ff59ba |
2433 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2434 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2435 | if test "${ac_cv_prog_AWK+set}" = set; then |
2436 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2437 | else |
2438 | if test -n "$AWK"; then |
2439 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
2440 | else |
2441 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2442 | for as_dir in $PATH |
2443 | do |
2444 | IFS=$as_save_IFS |
2445 | test -z "$as_dir" && as_dir=. |
2446 | for ac_exec_ext in '' $ac_executable_extensions; do |
64ff59ba |
2447 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2448 | ac_cv_prog_AWK="$ac_prog" |
2449 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2450 | break 2 |
2451 | fi |
2452 | done |
2453 | done |
64ff59ba |
2454 | IFS=$as_save_IFS |
d9898ee8 |
2455 | |
2456 | fi |
2457 | fi |
2458 | AWK=$ac_cv_prog_AWK |
2459 | if test -n "$AWK"; then |
64ff59ba |
2460 | { echo "$as_me:$LINENO: result: $AWK" >&5 |
2461 | echo "${ECHO_T}$AWK" >&6; } |
d9898ee8 |
2462 | else |
64ff59ba |
2463 | { echo "$as_me:$LINENO: result: no" >&5 |
2464 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2465 | fi |
2466 | |
64ff59ba |
2467 | |
d9898ee8 |
2468 | test -n "$AWK" && break |
2469 | done |
2470 | |
2471 | ac_ext=c |
2472 | ac_cpp='$CPP $CPPFLAGS' |
2473 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2474 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2475 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2476 | if test -n "$ac_tool_prefix"; then |
2477 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
2478 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
64ff59ba |
2479 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2480 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2481 | if test "${ac_cv_prog_CC+set}" = set; then |
2482 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2483 | else |
2484 | if test -n "$CC"; then |
2485 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2486 | else |
2487 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2488 | for as_dir in $PATH |
2489 | do |
2490 | IFS=$as_save_IFS |
2491 | test -z "$as_dir" && as_dir=. |
2492 | for ac_exec_ext in '' $ac_executable_extensions; do |
64ff59ba |
2493 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2494 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
2495 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2496 | break 2 |
2497 | fi |
2498 | done |
2499 | done |
64ff59ba |
2500 | IFS=$as_save_IFS |
d9898ee8 |
2501 | |
2502 | fi |
2503 | fi |
2504 | CC=$ac_cv_prog_CC |
2505 | if test -n "$CC"; then |
64ff59ba |
2506 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2507 | echo "${ECHO_T}$CC" >&6; } |
d9898ee8 |
2508 | else |
64ff59ba |
2509 | { echo "$as_me:$LINENO: result: no" >&5 |
2510 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2511 | fi |
2512 | |
64ff59ba |
2513 | |
d9898ee8 |
2514 | fi |
2515 | if test -z "$ac_cv_prog_CC"; then |
2516 | ac_ct_CC=$CC |
2517 | # Extract the first word of "gcc", so it can be a program name with args. |
2518 | set dummy gcc; ac_word=$2 |
64ff59ba |
2519 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2520 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2521 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2522 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2523 | else |
2524 | if test -n "$ac_ct_CC"; then |
2525 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2526 | else |
2527 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2528 | for as_dir in $PATH |
2529 | do |
2530 | IFS=$as_save_IFS |
2531 | test -z "$as_dir" && as_dir=. |
2532 | for ac_exec_ext in '' $ac_executable_extensions; do |
64ff59ba |
2533 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2534 | ac_cv_prog_ac_ct_CC="gcc" |
2535 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2536 | break 2 |
2537 | fi |
2538 | done |
2539 | done |
64ff59ba |
2540 | IFS=$as_save_IFS |
d9898ee8 |
2541 | |
2542 | fi |
2543 | fi |
2544 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2545 | if test -n "$ac_ct_CC"; then |
64ff59ba |
2546 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2547 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
d9898ee8 |
2548 | else |
64ff59ba |
2549 | { echo "$as_me:$LINENO: result: no" >&5 |
2550 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2551 | fi |
2552 | |
64ff59ba |
2553 | if test "x$ac_ct_CC" = x; then |
2554 | CC="" |
2555 | else |
2556 | case $cross_compiling:$ac_tool_warned in |
2557 | yes:) |
2558 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
2559 | whose name does not start with the host triplet. If you think this |
2560 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
2561 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
2562 | whose name does not start with the host triplet. If you think this |
2563 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
2564 | ac_tool_warned=yes ;; |
2565 | esac |
2566 | CC=$ac_ct_CC |
2567 | fi |
d9898ee8 |
2568 | else |
2569 | CC="$ac_cv_prog_CC" |
2570 | fi |
2571 | |
2572 | if test -z "$CC"; then |
64ff59ba |
2573 | if test -n "$ac_tool_prefix"; then |
2574 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
d9898ee8 |
2575 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
64ff59ba |
2576 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2577 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2578 | if test "${ac_cv_prog_CC+set}" = set; then |
2579 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2580 | else |
2581 | if test -n "$CC"; then |
2582 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2583 | else |
2584 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2585 | for as_dir in $PATH |
2586 | do |
2587 | IFS=$as_save_IFS |
2588 | test -z "$as_dir" && as_dir=. |
2589 | for ac_exec_ext in '' $ac_executable_extensions; do |
64ff59ba |
2590 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2591 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
2592 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2593 | break 2 |
2594 | fi |
2595 | done |
2596 | done |
64ff59ba |
2597 | IFS=$as_save_IFS |
d9898ee8 |
2598 | |
2599 | fi |
2600 | fi |
2601 | CC=$ac_cv_prog_CC |
2602 | if test -n "$CC"; then |
64ff59ba |
2603 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2604 | echo "${ECHO_T}$CC" >&6; } |
d9898ee8 |
2605 | else |
64ff59ba |
2606 | { echo "$as_me:$LINENO: result: no" >&5 |
2607 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2608 | fi |
2609 | |
d9898ee8 |
2610 | |
64ff59ba |
2611 | fi |
d9898ee8 |
2612 | fi |
2613 | if test -z "$CC"; then |
2614 | # Extract the first word of "cc", so it can be a program name with args. |
2615 | set dummy cc; ac_word=$2 |
64ff59ba |
2616 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2617 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2618 | if test "${ac_cv_prog_CC+set}" = set; then |
2619 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2620 | else |
2621 | if test -n "$CC"; then |
2622 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2623 | else |
2624 | ac_prog_rejected=no |
2625 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2626 | for as_dir in $PATH |
2627 | do |
2628 | IFS=$as_save_IFS |
2629 | test -z "$as_dir" && as_dir=. |
2630 | for ac_exec_ext in '' $ac_executable_extensions; do |
64ff59ba |
2631 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2632 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2633 | ac_prog_rejected=yes |
2634 | continue |
2635 | fi |
2636 | ac_cv_prog_CC="cc" |
2637 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2638 | break 2 |
2639 | fi |
2640 | done |
2641 | done |
64ff59ba |
2642 | IFS=$as_save_IFS |
d9898ee8 |
2643 | |
2644 | if test $ac_prog_rejected = yes; then |
2645 | # We found a bogon in the path, so make sure we never use it. |
2646 | set dummy $ac_cv_prog_CC |
2647 | shift |
2648 | if test $# != 0; then |
2649 | # We chose a different compiler from the bogus one. |
2650 | # However, it has the same basename, so the bogon will be chosen |
2651 | # first if we set CC to just the basename; use the full file name. |
2652 | shift |
2653 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
2654 | fi |
2655 | fi |
2656 | fi |
2657 | fi |
2658 | CC=$ac_cv_prog_CC |
2659 | if test -n "$CC"; then |
64ff59ba |
2660 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2661 | echo "${ECHO_T}$CC" >&6; } |
d9898ee8 |
2662 | else |
64ff59ba |
2663 | { echo "$as_me:$LINENO: result: no" >&5 |
2664 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2665 | fi |
2666 | |
64ff59ba |
2667 | |
d9898ee8 |
2668 | fi |
2669 | if test -z "$CC"; then |
2670 | if test -n "$ac_tool_prefix"; then |
64ff59ba |
2671 | for ac_prog in cl.exe |
d9898ee8 |
2672 | do |
2673 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
2674 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
64ff59ba |
2675 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2676 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2677 | if test "${ac_cv_prog_CC+set}" = set; then |
2678 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2679 | else |
2680 | if test -n "$CC"; then |
2681 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2682 | else |
2683 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2684 | for as_dir in $PATH |
2685 | do |
2686 | IFS=$as_save_IFS |
2687 | test -z "$as_dir" && as_dir=. |
2688 | for ac_exec_ext in '' $ac_executable_extensions; do |
64ff59ba |
2689 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2690 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
2691 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2692 | break 2 |
2693 | fi |
2694 | done |
2695 | done |
64ff59ba |
2696 | IFS=$as_save_IFS |
d9898ee8 |
2697 | |
2698 | fi |
2699 | fi |
2700 | CC=$ac_cv_prog_CC |
2701 | if test -n "$CC"; then |
64ff59ba |
2702 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2703 | echo "${ECHO_T}$CC" >&6; } |
d9898ee8 |
2704 | else |
64ff59ba |
2705 | { echo "$as_me:$LINENO: result: no" >&5 |
2706 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2707 | fi |
2708 | |
64ff59ba |
2709 | |
d9898ee8 |
2710 | test -n "$CC" && break |
2711 | done |
2712 | fi |
2713 | if test -z "$CC"; then |
2714 | ac_ct_CC=$CC |
64ff59ba |
2715 | for ac_prog in cl.exe |
d9898ee8 |
2716 | do |
2717 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2718 | set dummy $ac_prog; ac_word=$2 |
64ff59ba |
2719 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2720 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2721 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2722 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2723 | else |
2724 | if test -n "$ac_ct_CC"; then |
2725 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2726 | else |
2727 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2728 | for as_dir in $PATH |
2729 | do |
2730 | IFS=$as_save_IFS |
2731 | test -z "$as_dir" && as_dir=. |
2732 | for ac_exec_ext in '' $ac_executable_extensions; do |
64ff59ba |
2733 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2734 | ac_cv_prog_ac_ct_CC="$ac_prog" |
2735 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2736 | break 2 |
2737 | fi |
2738 | done |
2739 | done |
64ff59ba |
2740 | IFS=$as_save_IFS |
d9898ee8 |
2741 | |
2742 | fi |
2743 | fi |
2744 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2745 | if test -n "$ac_ct_CC"; then |
64ff59ba |
2746 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2747 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
d9898ee8 |
2748 | else |
64ff59ba |
2749 | { echo "$as_me:$LINENO: result: no" >&5 |
2750 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2751 | fi |
2752 | |
64ff59ba |
2753 | |
d9898ee8 |
2754 | test -n "$ac_ct_CC" && break |
2755 | done |
2756 | |
64ff59ba |
2757 | if test "x$ac_ct_CC" = x; then |
2758 | CC="" |
2759 | else |
2760 | case $cross_compiling:$ac_tool_warned in |
2761 | yes:) |
2762 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
2763 | whose name does not start with the host triplet. If you think this |
2764 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
2765 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
2766 | whose name does not start with the host triplet. If you think this |
2767 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
2768 | ac_tool_warned=yes ;; |
2769 | esac |
2770 | CC=$ac_ct_CC |
2771 | fi |
d9898ee8 |
2772 | fi |
2773 | |
2774 | fi |
2775 | |
2776 | |
2777 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
2778 | See \`config.log' for more details." >&5 |
2779 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
2780 | See \`config.log' for more details." >&2;} |
2781 | { (exit 1); exit 1; }; } |
2782 | |
2783 | # Provide some information about the compiler. |
64ff59ba |
2784 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
d9898ee8 |
2785 | ac_compiler=`set X $ac_compile; echo $2` |
64ff59ba |
2786 | { (ac_try="$ac_compiler --version >&5" |
2787 | case "(($ac_try" in |
2788 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2789 | *) ac_try_echo=$ac_try;; |
2790 | esac |
2791 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2792 | (eval "$ac_compiler --version >&5") 2>&5 |
d9898ee8 |
2793 | ac_status=$? |
2794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2795 | (exit $ac_status); } |
64ff59ba |
2796 | { (ac_try="$ac_compiler -v >&5" |
2797 | case "(($ac_try" in |
2798 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2799 | *) ac_try_echo=$ac_try;; |
2800 | esac |
2801 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2802 | (eval "$ac_compiler -v >&5") 2>&5 |
d9898ee8 |
2803 | ac_status=$? |
2804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2805 | (exit $ac_status); } |
64ff59ba |
2806 | { (ac_try="$ac_compiler -V >&5" |
2807 | case "(($ac_try" in |
2808 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2809 | *) ac_try_echo=$ac_try;; |
2810 | esac |
2811 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2812 | (eval "$ac_compiler -V >&5") 2>&5 |
d9898ee8 |
2813 | ac_status=$? |
2814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2815 | (exit $ac_status); } |
2816 | |
2817 | cat >conftest.$ac_ext <<_ACEOF |
2818 | /* confdefs.h. */ |
2819 | _ACEOF |
2820 | cat confdefs.h >>conftest.$ac_ext |
2821 | cat >>conftest.$ac_ext <<_ACEOF |
2822 | /* end confdefs.h. */ |
2823 | |
2824 | int |
2825 | main () |
2826 | { |
2827 | |
2828 | ; |
2829 | return 0; |
2830 | } |
2831 | _ACEOF |
2832 | ac_clean_files_save=$ac_clean_files |
2833 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
2834 | # Try to create an executable without -o first, disregard a.out. |
2835 | # It will help us diagnose broken compilers, and finding out an intuition |
2836 | # of exeext. |
64ff59ba |
2837 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2838 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
d9898ee8 |
2839 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
64ff59ba |
2840 | # |
2841 | # List of possible output files, starting from the most likely. |
2842 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
2843 | # only as a last resort. b.out is created by i960 compilers. |
2844 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
2845 | # |
2846 | # The IRIX 6 linker writes into existing files which may not be |
2847 | # executable, retaining their permissions. Remove them first so a |
2848 | # subsequent execution test works. |
2849 | ac_rmfiles= |
2850 | for ac_file in $ac_files |
2851 | do |
2852 | case $ac_file in |
2853 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
2854 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
2855 | esac |
2856 | done |
2857 | rm -f $ac_rmfiles |
2858 | |
2859 | if { (ac_try="$ac_link_default" |
2860 | case "(($ac_try" in |
2861 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2862 | *) ac_try_echo=$ac_try;; |
2863 | esac |
2864 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2865 | (eval "$ac_link_default") 2>&5 |
d9898ee8 |
2866 | ac_status=$? |
2867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2868 | (exit $ac_status); }; then |
64ff59ba |
2869 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2870 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
2871 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
2872 | # so that the user can short-circuit this test for compilers unknown to |
2873 | # Autoconf. |
2874 | for ac_file in $ac_files '' |
d9898ee8 |
2875 | do |
2876 | test -f "$ac_file" || continue |
2877 | case $ac_file in |
64ff59ba |
2878 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
d9898ee8 |
2879 | ;; |
2880 | [ab].out ) |
2881 | # We found the default executable, but exeext='' is most |
2882 | # certainly right. |
2883 | break;; |
2884 | *.* ) |
64ff59ba |
2885 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2886 | then :; else |
2887 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2888 | fi |
2889 | # We set ac_cv_exeext here because the later test for it is not |
2890 | # safe: cross compilers may not add the suffix if given an `-o' |
2891 | # argument, so we may need to know it at that point already. |
2892 | # Even if this section looks crufty: it has the advantage of |
2893 | # actually working. |
d9898ee8 |
2894 | break;; |
2895 | * ) |
2896 | break;; |
2897 | esac |
2898 | done |
64ff59ba |
2899 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2900 | |
d9898ee8 |
2901 | else |
64ff59ba |
2902 | ac_file='' |
2903 | fi |
2904 | |
2905 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
2906 | echo "${ECHO_T}$ac_file" >&6; } |
2907 | if test -z "$ac_file"; then |
d9898ee8 |
2908 | echo "$as_me: failed program was:" >&5 |
2909 | sed 's/^/| /' conftest.$ac_ext >&5 |
2910 | |
2911 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
2912 | See \`config.log' for more details." >&5 |
2913 | echo "$as_me: error: C compiler cannot create executables |
2914 | See \`config.log' for more details." >&2;} |
2915 | { (exit 77); exit 77; }; } |
2916 | fi |
2917 | |
2918 | ac_exeext=$ac_cv_exeext |
d9898ee8 |
2919 | |
64ff59ba |
2920 | # Check that the compiler produces executables we can run. If not, either |
d9898ee8 |
2921 | # the compiler is broken, or we cross compile. |
64ff59ba |
2922 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2923 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
d9898ee8 |
2924 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2925 | # If not cross compiling, check that we can run a simple program. |
2926 | if test "$cross_compiling" != yes; then |
2927 | if { ac_try='./$ac_file' |
64ff59ba |
2928 | { (case "(($ac_try" in |
2929 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2930 | *) ac_try_echo=$ac_try;; |
2931 | esac |
2932 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2933 | (eval "$ac_try") 2>&5 |
d9898ee8 |
2934 | ac_status=$? |
2935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2936 | (exit $ac_status); }; }; then |
2937 | cross_compiling=no |
2938 | else |
2939 | if test "$cross_compiling" = maybe; then |
2940 | cross_compiling=yes |
2941 | else |
2942 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
2943 | If you meant to cross compile, use \`--host'. |
2944 | See \`config.log' for more details." >&5 |
2945 | echo "$as_me: error: cannot run C compiled programs. |
2946 | If you meant to cross compile, use \`--host'. |
2947 | See \`config.log' for more details." >&2;} |
2948 | { (exit 1); exit 1; }; } |
2949 | fi |
2950 | fi |
2951 | fi |
64ff59ba |
2952 | { echo "$as_me:$LINENO: result: yes" >&5 |
2953 | echo "${ECHO_T}yes" >&6; } |
d9898ee8 |
2954 | |
2955 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
2956 | ac_clean_files=$ac_clean_files_save |
64ff59ba |
2957 | # Check that the compiler produces executables we can run. If not, either |
d9898ee8 |
2958 | # the compiler is broken, or we cross compile. |
64ff59ba |
2959 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2960 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
2961 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
2962 | echo "${ECHO_T}$cross_compiling" >&6; } |
2963 | |
2964 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
2965 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
2966 | if { (ac_try="$ac_link" |
2967 | case "(($ac_try" in |
2968 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2969 | *) ac_try_echo=$ac_try;; |
2970 | esac |
2971 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2972 | (eval "$ac_link") 2>&5 |
d9898ee8 |
2973 | ac_status=$? |
2974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2975 | (exit $ac_status); }; then |
2976 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
2977 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
2978 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
2979 | # `rm'. |
2980 | for ac_file in conftest.exe conftest conftest.*; do |
2981 | test -f "$ac_file" || continue |
2982 | case $ac_file in |
64ff59ba |
2983 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
d9898ee8 |
2984 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
d9898ee8 |
2985 | break;; |
2986 | * ) break;; |
2987 | esac |
2988 | done |
2989 | else |
2990 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
2991 | See \`config.log' for more details." >&5 |
2992 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
2993 | See \`config.log' for more details." >&2;} |
2994 | { (exit 1); exit 1; }; } |
2995 | fi |
2996 | |
2997 | rm -f conftest$ac_cv_exeext |
64ff59ba |
2998 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2999 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
d9898ee8 |
3000 | |
3001 | rm -f conftest.$ac_ext |
3002 | EXEEXT=$ac_cv_exeext |
3003 | ac_exeext=$EXEEXT |
64ff59ba |
3004 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
3005 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
d9898ee8 |
3006 | if test "${ac_cv_objext+set}" = set; then |
3007 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3008 | else |
3009 | cat >conftest.$ac_ext <<_ACEOF |
3010 | /* confdefs.h. */ |
3011 | _ACEOF |
3012 | cat confdefs.h >>conftest.$ac_ext |
3013 | cat >>conftest.$ac_ext <<_ACEOF |
3014 | /* end confdefs.h. */ |
3015 | |
3016 | int |
3017 | main () |
3018 | { |
3019 | |
3020 | ; |
3021 | return 0; |
3022 | } |
3023 | _ACEOF |
3024 | rm -f conftest.o conftest.obj |
64ff59ba |
3025 | if { (ac_try="$ac_compile" |
3026 | case "(($ac_try" in |
3027 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3028 | *) ac_try_echo=$ac_try;; |
3029 | esac |
3030 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3031 | (eval "$ac_compile") 2>&5 |
d9898ee8 |
3032 | ac_status=$? |
3033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3034 | (exit $ac_status); }; then |
64ff59ba |
3035 | for ac_file in conftest.o conftest.obj conftest.*; do |
3036 | test -f "$ac_file" || continue; |
d9898ee8 |
3037 | case $ac_file in |
64ff59ba |
3038 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
d9898ee8 |
3039 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3040 | break;; |
3041 | esac |
3042 | done |
3043 | else |
3044 | echo "$as_me: failed program was:" >&5 |
3045 | sed 's/^/| /' conftest.$ac_ext >&5 |
3046 | |
3047 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
3048 | See \`config.log' for more details." >&5 |
3049 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
3050 | See \`config.log' for more details." >&2;} |
3051 | { (exit 1); exit 1; }; } |
3052 | fi |
3053 | |
3054 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3055 | fi |
64ff59ba |
3056 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
3057 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
d9898ee8 |
3058 | OBJEXT=$ac_cv_objext |
3059 | ac_objext=$OBJEXT |
64ff59ba |
3060 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
3061 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
d9898ee8 |
3062 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
3063 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3064 | else |
3065 | cat >conftest.$ac_ext <<_ACEOF |
3066 | /* confdefs.h. */ |
3067 | _ACEOF |
3068 | cat confdefs.h >>conftest.$ac_ext |
3069 | cat >>conftest.$ac_ext <<_ACEOF |
3070 | /* end confdefs.h. */ |
3071 | |
3072 | int |
3073 | main () |
3074 | { |
3075 | #ifndef __GNUC__ |
3076 | choke me |
3077 | #endif |
3078 | |
3079 | ; |
3080 | return 0; |
3081 | } |
3082 | _ACEOF |
3083 | rm -f conftest.$ac_objext |
64ff59ba |
3084 | if { (ac_try="$ac_compile" |
3085 | case "(($ac_try" in |
3086 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3087 | *) ac_try_echo=$ac_try;; |
3088 | esac |
3089 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3090 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
3091 | ac_status=$? |
3092 | grep -v '^ *+' conftest.er1 >conftest.err |
3093 | rm -f conftest.er1 |
3094 | cat conftest.err >&5 |
3095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
3096 | (exit $ac_status); } && { |
3097 | test -z "$ac_c_werror_flag" || |
3098 | test ! -s conftest.err |
3099 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
3100 | ac_compiler_gnu=yes |
3101 | else |
3102 | echo "$as_me: failed program was:" >&5 |
3103 | sed 's/^/| /' conftest.$ac_ext >&5 |
3104 | |
64ff59ba |
3105 | ac_compiler_gnu=no |
d9898ee8 |
3106 | fi |
64ff59ba |
3107 | |
3108 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
3109 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3110 | |
3111 | fi |
64ff59ba |
3112 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
3113 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
d9898ee8 |
3114 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
3115 | ac_test_CFLAGS=${CFLAGS+set} |
3116 | ac_save_CFLAGS=$CFLAGS |
64ff59ba |
3117 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
3118 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
d9898ee8 |
3119 | if test "${ac_cv_prog_cc_g+set}" = set; then |
3120 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3121 | else |
64ff59ba |
3122 | ac_save_c_werror_flag=$ac_c_werror_flag |
3123 | ac_c_werror_flag=yes |
3124 | ac_cv_prog_cc_g=no |
3125 | CFLAGS="-g" |
3126 | cat >conftest.$ac_ext <<_ACEOF |
d9898ee8 |
3127 | /* confdefs.h. */ |
3128 | _ACEOF |
3129 | cat confdefs.h >>conftest.$ac_ext |
3130 | cat >>conftest.$ac_ext <<_ACEOF |
3131 | /* end confdefs.h. */ |
3132 | |
3133 | int |
3134 | main () |
3135 | { |
3136 | |
3137 | ; |
3138 | return 0; |
3139 | } |
3140 | _ACEOF |
3141 | rm -f conftest.$ac_objext |
64ff59ba |
3142 | if { (ac_try="$ac_compile" |
3143 | case "(($ac_try" in |
3144 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3145 | *) ac_try_echo=$ac_try;; |
3146 | esac |
3147 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3148 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
3149 | ac_status=$? |
3150 | grep -v '^ *+' conftest.er1 >conftest.err |
3151 | rm -f conftest.er1 |
3152 | cat conftest.err >&5 |
3153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
3154 | (exit $ac_status); } && { |
3155 | test -z "$ac_c_werror_flag" || |
3156 | test ! -s conftest.err |
3157 | } && test -s conftest.$ac_objext; then |
3158 | ac_cv_prog_cc_g=yes |
3159 | else |
3160 | echo "$as_me: failed program was:" >&5 |
3161 | sed 's/^/| /' conftest.$ac_ext >&5 |
3162 | |
3163 | CFLAGS="" |
3164 | cat >conftest.$ac_ext <<_ACEOF |
3165 | /* confdefs.h. */ |
3166 | _ACEOF |
3167 | cat confdefs.h >>conftest.$ac_ext |
3168 | cat >>conftest.$ac_ext <<_ACEOF |
3169 | /* end confdefs.h. */ |
3170 | |
3171 | int |
3172 | main () |
3173 | { |
3174 | |
3175 | ; |
3176 | return 0; |
3177 | } |
3178 | _ACEOF |
3179 | rm -f conftest.$ac_objext |
3180 | if { (ac_try="$ac_compile" |
3181 | case "(($ac_try" in |
3182 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3183 | *) ac_try_echo=$ac_try;; |
3184 | esac |
3185 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3186 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
3187 | ac_status=$? |
64ff59ba |
3188 | grep -v '^ *+' conftest.er1 >conftest.err |
3189 | rm -f conftest.er1 |
3190 | cat conftest.err >&5 |
d9898ee8 |
3191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
3192 | (exit $ac_status); } && { |
3193 | test -z "$ac_c_werror_flag" || |
3194 | test ! -s conftest.err |
3195 | } && test -s conftest.$ac_objext; then |
3196 | : |
3197 | else |
3198 | echo "$as_me: failed program was:" >&5 |
3199 | sed 's/^/| /' conftest.$ac_ext >&5 |
3200 | |
3201 | ac_c_werror_flag=$ac_save_c_werror_flag |
3202 | CFLAGS="-g" |
3203 | cat >conftest.$ac_ext <<_ACEOF |
3204 | /* confdefs.h. */ |
3205 | _ACEOF |
3206 | cat confdefs.h >>conftest.$ac_ext |
3207 | cat >>conftest.$ac_ext <<_ACEOF |
3208 | /* end confdefs.h. */ |
3209 | |
3210 | int |
3211 | main () |
3212 | { |
3213 | |
3214 | ; |
3215 | return 0; |
3216 | } |
3217 | _ACEOF |
3218 | rm -f conftest.$ac_objext |
3219 | if { (ac_try="$ac_compile" |
3220 | case "(($ac_try" in |
3221 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3222 | *) ac_try_echo=$ac_try;; |
3223 | esac |
3224 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3225 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
3226 | ac_status=$? |
64ff59ba |
3227 | grep -v '^ *+' conftest.er1 >conftest.err |
3228 | rm -f conftest.er1 |
3229 | cat conftest.err >&5 |
d9898ee8 |
3230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
3231 | (exit $ac_status); } && { |
3232 | test -z "$ac_c_werror_flag" || |
3233 | test ! -s conftest.err |
3234 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
3235 | ac_cv_prog_cc_g=yes |
3236 | else |
3237 | echo "$as_me: failed program was:" >&5 |
3238 | sed 's/^/| /' conftest.$ac_ext >&5 |
3239 | |
64ff59ba |
3240 | |
3241 | fi |
3242 | |
3243 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3244 | fi |
3245 | |
3246 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
3247 | fi |
64ff59ba |
3248 | |
3249 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3250 | ac_c_werror_flag=$ac_save_c_werror_flag |
d9898ee8 |
3251 | fi |
64ff59ba |
3252 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
3253 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
d9898ee8 |
3254 | if test "$ac_test_CFLAGS" = set; then |
3255 | CFLAGS=$ac_save_CFLAGS |
3256 | elif test $ac_cv_prog_cc_g = yes; then |
3257 | if test "$GCC" = yes; then |
3258 | CFLAGS="-g -O2" |
3259 | else |
3260 | CFLAGS="-g" |
3261 | fi |
3262 | else |
3263 | if test "$GCC" = yes; then |
3264 | CFLAGS="-O2" |
3265 | else |
3266 | CFLAGS= |
3267 | fi |
3268 | fi |
64ff59ba |
3269 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
3270 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
3271 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
d9898ee8 |
3272 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3273 | else |
64ff59ba |
3274 | ac_cv_prog_cc_c89=no |
d9898ee8 |
3275 | ac_save_CC=$CC |
3276 | cat >conftest.$ac_ext <<_ACEOF |
3277 | /* confdefs.h. */ |
3278 | _ACEOF |
3279 | cat confdefs.h >>conftest.$ac_ext |
3280 | cat >>conftest.$ac_ext <<_ACEOF |
3281 | /* end confdefs.h. */ |
3282 | #include <stdarg.h> |
3283 | #include <stdio.h> |
3284 | #include <sys/types.h> |
3285 | #include <sys/stat.h> |
3286 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
3287 | struct buf { int x; }; |
3288 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
3289 | static char *e (p, i) |
3290 | char **p; |
3291 | int i; |
3292 | { |
3293 | return p[i]; |
3294 | } |
3295 | static char *f (char * (*g) (char **, int), char **p, ...) |
3296 | { |
3297 | char *s; |
3298 | va_list v; |
3299 | va_start (v,p); |
3300 | s = g (p, va_arg (v,int)); |
3301 | va_end (v); |
3302 | return s; |
3303 | } |
3304 | |
3305 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
3306 | function prototypes and stuff, but not '\xHH' hex character constants. |
3307 | These don't provoke an error unfortunately, instead are silently treated |
64ff59ba |
3308 | as 'x'. The following induces an error, until -std is added to get |
d9898ee8 |
3309 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3310 | array size at least. It's necessary to write '\x00'==0 to get something |
64ff59ba |
3311 | that's true only with -std. */ |
d9898ee8 |
3312 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3313 | |
64ff59ba |
3314 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3315 | inside strings and character constants. */ |
3316 | #define FOO(x) 'x' |
3317 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
3318 | |
d9898ee8 |
3319 | int test (int i, double x); |
3320 | struct s1 {int (*f) (int a);}; |
3321 | struct s2 {int (*f) (double a);}; |
3322 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
3323 | int argc; |
3324 | char **argv; |
3325 | int |
3326 | main () |
3327 | { |
3328 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
3329 | ; |
3330 | return 0; |
3331 | } |
3332 | _ACEOF |
64ff59ba |
3333 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3334 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
d9898ee8 |
3335 | do |
3336 | CC="$ac_save_CC $ac_arg" |
3337 | rm -f conftest.$ac_objext |
64ff59ba |
3338 | if { (ac_try="$ac_compile" |
3339 | case "(($ac_try" in |
3340 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3341 | *) ac_try_echo=$ac_try;; |
3342 | esac |
3343 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3344 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
3345 | ac_status=$? |
3346 | grep -v '^ *+' conftest.er1 >conftest.err |
3347 | rm -f conftest.er1 |
3348 | cat conftest.err >&5 |
3349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
3350 | (exit $ac_status); } && { |
3351 | test -z "$ac_c_werror_flag" || |
3352 | test ! -s conftest.err |
3353 | } && test -s conftest.$ac_objext; then |
3354 | ac_cv_prog_cc_c89=$ac_arg |
d9898ee8 |
3355 | else |
3356 | echo "$as_me: failed program was:" >&5 |
3357 | sed 's/^/| /' conftest.$ac_ext >&5 |
3358 | |
64ff59ba |
3359 | |
d9898ee8 |
3360 | fi |
64ff59ba |
3361 | |
3362 | rm -f core conftest.err conftest.$ac_objext |
3363 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
d9898ee8 |
3364 | done |
64ff59ba |
3365 | rm -f conftest.$ac_ext |
d9898ee8 |
3366 | CC=$ac_save_CC |
3367 | |
3368 | fi |
64ff59ba |
3369 | # AC_CACHE_VAL |
3370 | case "x$ac_cv_prog_cc_c89" in |
3371 | x) |
3372 | { echo "$as_me:$LINENO: result: none needed" >&5 |
3373 | echo "${ECHO_T}none needed" >&6; } ;; |
3374 | xno) |
3375 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
3376 | echo "${ECHO_T}unsupported" >&6; } ;; |
d9898ee8 |
3377 | *) |
64ff59ba |
3378 | CC="$CC $ac_cv_prog_cc_c89" |
3379 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
3380 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
d9898ee8 |
3381 | esac |
3382 | |
d9898ee8 |
3383 | |
d9898ee8 |
3384 | ac_ext=c |
3385 | ac_cpp='$CPP $CPPFLAGS' |
3386 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3387 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3388 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3389 | DEPDIR="${am__leading_dot}deps" |
3390 | |
64ff59ba |
3391 | ac_config_commands="$ac_config_commands depfiles" |
d9898ee8 |
3392 | |
3393 | |
3394 | am_make=${MAKE-make} |
3395 | cat > confinc << 'END' |
3396 | am__doit: |
3397 | @echo done |
3398 | .PHONY: am__doit |
3399 | END |
3400 | # If we don't find an include directive, just comment out the code. |
64ff59ba |
3401 | { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
3402 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } |
d9898ee8 |
3403 | am__include="#" |
3404 | am__quote= |
3405 | _am_result=none |
3406 | # First try GNU make style include. |
3407 | echo "include confinc" > confmf |
3408 | # We grep out `Entering directory' and `Leaving directory' |
3409 | # messages which can occur if `w' ends up in MAKEFLAGS. |
3410 | # In particular we don't look at `^make:' because GNU make might |
3411 | # be invoked under some other name (usually "gmake"), in which |
3412 | # case it prints its new name instead of `make'. |
3413 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
3414 | am__include=include |
3415 | am__quote= |
3416 | _am_result=GNU |
3417 | fi |
3418 | # Now try BSD make style include. |
3419 | if test "$am__include" = "#"; then |
3420 | echo '.include "confinc"' > confmf |
3421 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
3422 | am__include=.include |
3423 | am__quote="\"" |
3424 | _am_result=BSD |
3425 | fi |
3426 | fi |
3427 | |
3428 | |
64ff59ba |
3429 | { echo "$as_me:$LINENO: result: $_am_result" >&5 |
3430 | echo "${ECHO_T}$_am_result" >&6; } |
d9898ee8 |
3431 | rm -f confinc confmf |
3432 | |
64ff59ba |
3433 | # Check whether --enable-dependency-tracking was given. |
d9898ee8 |
3434 | if test "${enable_dependency_tracking+set}" = set; then |
64ff59ba |
3435 | enableval=$enable_dependency_tracking; |
3436 | fi |
d9898ee8 |
3437 | |
d9898ee8 |
3438 | if test "x$enable_dependency_tracking" != xno; then |
3439 | am_depcomp="$ac_aux_dir/depcomp" |
3440 | AMDEPBACKSLASH='\' |
3441 | fi |
64ff59ba |
3442 | if test "x$enable_dependency_tracking" != xno; then |
d9898ee8 |
3443 | AMDEP_TRUE= |
3444 | AMDEP_FALSE='#' |
3445 | else |
3446 | AMDEP_TRUE='#' |
3447 | AMDEP_FALSE= |
3448 | fi |
3449 | |
3450 | |
3451 | |
d9898ee8 |
3452 | depcc="$CC" am_compiler_list= |
3453 | |
64ff59ba |
3454 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
3455 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } |
d9898ee8 |
3456 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
3457 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3458 | else |
3459 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
3460 | # We make a subdir and do the tests there. Otherwise we can end up |
3461 | # making bogus files that we don't know about and never remove. For |
3462 | # instance it was reported that on HP-UX the gcc test will end up |
3463 | # making a dummy file named `D' -- because `-MD' means `put the output |
3464 | # in D'. |
3465 | mkdir conftest.dir |
3466 | # Copy depcomp to subdir because otherwise we won't find it if we're |
3467 | # using a relative directory. |
3468 | cp "$am_depcomp" conftest.dir |
3469 | cd conftest.dir |
3470 | # We will build objects and dependencies in a subdirectory because |
3471 | # it helps to detect inapplicable dependency modes. For instance |
3472 | # both Tru64's cc and ICC support -MD to output dependencies as a |
3473 | # side effect of compilation, but ICC will put the dependencies in |
3474 | # the current directory while Tru64 will put them in the object |
3475 | # directory. |
3476 | mkdir sub |
3477 | |
3478 | am_cv_CC_dependencies_compiler_type=none |
3479 | if test "$am_compiler_list" = ""; then |
3480 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
3481 | fi |
3482 | for depmode in $am_compiler_list; do |
3483 | # Setup a source with many dependencies, because some compilers |
3484 | # like to wrap large dependency lists on column 80 (with \), and |
3485 | # we should not choose a depcomp mode which is confused by this. |
3486 | # |
3487 | # We need to recreate these files for each test, as the compiler may |
3488 | # overwrite some of them when testing with obscure command lines. |
3489 | # This happens at least with the AIX C compiler. |
3490 | : > sub/conftest.c |
3491 | for i in 1 2 3 4 5 6; do |
3492 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
3493 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
3494 | # Solaris 8's {/usr,}/bin/sh. |
3495 | touch sub/conftst$i.h |
3496 | done |
3497 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
3498 | |
3499 | case $depmode in |
3500 | nosideeffect) |
3501 | # after this tag, mechanisms are not by side-effect, so they'll |
3502 | # only be used when explicitly requested |
3503 | if test "x$enable_dependency_tracking" = xyes; then |
3504 | continue |
3505 | else |
3506 | break |
3507 | fi |
3508 | ;; |
3509 | none) break ;; |
3510 | esac |
3511 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
3512 | # mode. It turns out that the SunPro C++ compiler does not properly |
3513 | # handle `-M -o', and we need to detect this. |
3514 | if depmode=$depmode \ |
3515 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
3516 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
3517 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
3518 | >/dev/null 2>conftest.err && |
64ff59ba |
3519 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
d9898ee8 |
3520 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
3521 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
3522 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
3523 | # icc doesn't choke on unknown options, it will just issue warnings |
3524 | # or remarks (even with -Werror). So we grep stderr for any message |
3525 | # that says an option was ignored or not supported. |
3526 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
3527 | # icc: Command line warning: ignoring option '-M'; no argument required |
3528 | # The diagnosis changed in icc 8.0: |
3529 | # icc: Command line remark: option '-MP' not supported |
3530 | if (grep 'ignoring option' conftest.err || |
3531 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
3532 | am_cv_CC_dependencies_compiler_type=$depmode |
3533 | break |
3534 | fi |
3535 | fi |
3536 | done |
3537 | |
3538 | cd .. |
3539 | rm -rf conftest.dir |
3540 | else |
3541 | am_cv_CC_dependencies_compiler_type=none |
3542 | fi |
3543 | |
3544 | fi |
64ff59ba |
3545 | { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
3546 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } |
d9898ee8 |
3547 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
3548 | |
64ff59ba |
3549 | if |
d9898ee8 |
3550 | test "x$enable_dependency_tracking" != xno \ |
3551 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
3552 | am__fastdepCC_TRUE= |
3553 | am__fastdepCC_FALSE='#' |
3554 | else |
3555 | am__fastdepCC_TRUE='#' |
3556 | am__fastdepCC_FALSE= |
3557 | fi |
3558 | |
3559 | |
3560 | # Find a good install program. We prefer a C program (faster), |
3561 | # so one script is as good as another. But avoid the broken or |
3562 | # incompatible versions: |
3563 | # SysV /etc/install, /usr/sbin/install |
3564 | # SunOS /usr/etc/install |
3565 | # IRIX /sbin/install |
3566 | # AIX /bin/install |
3567 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
3568 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
3569 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
3570 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
3571 | # OS/2's system install, which has a completely different semantic |
3572 | # ./install, which can be erroneously created by make from ./install.sh. |
64ff59ba |
3573 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
3574 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
d9898ee8 |
3575 | if test -z "$INSTALL"; then |
3576 | if test "${ac_cv_path_install+set}" = set; then |
3577 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3578 | else |
3579 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3580 | for as_dir in $PATH |
3581 | do |
3582 | IFS=$as_save_IFS |
3583 | test -z "$as_dir" && as_dir=. |
3584 | # Account for people who put trailing slashes in PATH elements. |
3585 | case $as_dir/ in |
3586 | ./ | .// | /cC/* | \ |
3587 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
3588 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
3589 | /usr/ucb/* ) ;; |
3590 | *) |
3591 | # OSF1 and SCO ODT 3.0 have their own names for install. |
3592 | # Don't use installbsd from OSF since it installs stuff as root |
3593 | # by default. |
3594 | for ac_prog in ginstall scoinst install; do |
3595 | for ac_exec_ext in '' $ac_executable_extensions; do |
64ff59ba |
3596 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
d9898ee8 |
3597 | if test $ac_prog = install && |
3598 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
3599 | # AIX install. It has an incompatible calling convention. |
3600 | : |
3601 | elif test $ac_prog = install && |
3602 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
3603 | # program-specific install script used by HP pwplus--don't use. |
3604 | : |
3605 | else |
3606 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
3607 | break 3 |
3608 | fi |
3609 | fi |
3610 | done |
3611 | done |
3612 | ;; |
3613 | esac |
3614 | done |
64ff59ba |
3615 | IFS=$as_save_IFS |
d9898ee8 |
3616 | |
3617 | |
3618 | fi |
3619 | if test "${ac_cv_path_install+set}" = set; then |
3620 | INSTALL=$ac_cv_path_install |
3621 | else |
64ff59ba |
3622 | # As a last resort, use the slow shell script. Don't cache a |
3623 | # value for INSTALL within a source directory, because that will |
d9898ee8 |
3624 | # break other packages using the cache if that directory is |
64ff59ba |
3625 | # removed, or if the value is a relative name. |
d9898ee8 |
3626 | INSTALL=$ac_install_sh |
3627 | fi |
3628 | fi |
64ff59ba |
3629 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
3630 | echo "${ECHO_T}$INSTALL" >&6; } |
d9898ee8 |
3631 | |
3632 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
3633 | # It thinks the first close brace ends the variable substitution. |
3634 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
3635 | |
3636 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
3637 | |
3638 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3639 | |
64ff59ba |
3640 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
3641 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
d9898ee8 |
3642 | LN_S=$as_ln_s |
3643 | if test "$LN_S" = "ln -s"; then |
64ff59ba |
3644 | { echo "$as_me:$LINENO: result: yes" >&5 |
3645 | echo "${ECHO_T}yes" >&6; } |
d9898ee8 |
3646 | else |
64ff59ba |
3647 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
3648 | echo "${ECHO_T}no, using $LN_S" >&6; } |
d9898ee8 |
3649 | fi |
3650 | |
64ff59ba |
3651 | # Check whether --enable-shared was given. |
d9898ee8 |
3652 | if test "${enable_shared+set}" = set; then |
64ff59ba |
3653 | enableval=$enable_shared; p=${PACKAGE-default} |
d9898ee8 |
3654 | case $enableval in |
3655 | yes) enable_shared=yes ;; |
3656 | no) enable_shared=no ;; |
3657 | *) |
3658 | enable_shared=no |
3659 | # Look at the argument we got. We use all the common list separators. |
3660 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
3661 | for pkg in $enableval; do |
3662 | IFS="$lt_save_ifs" |
3663 | if test "X$pkg" = "X$p"; then |
3664 | enable_shared=yes |
3665 | fi |
3666 | done |
3667 | IFS="$lt_save_ifs" |
3668 | ;; |
3669 | esac |
3670 | else |
3671 | enable_shared=yes |
64ff59ba |
3672 | fi |
3673 | |
d9898ee8 |
3674 | |
64ff59ba |
3675 | # Check whether --enable-static was given. |
d9898ee8 |
3676 | if test "${enable_static+set}" = set; then |
64ff59ba |
3677 | enableval=$enable_static; p=${PACKAGE-default} |
d9898ee8 |
3678 | case $enableval in |
3679 | yes) enable_static=yes ;; |
3680 | no) enable_static=no ;; |
3681 | *) |
3682 | enable_static=no |
3683 | # Look at the argument we got. We use all the common list separators. |
3684 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
3685 | for pkg in $enableval; do |
3686 | IFS="$lt_save_ifs" |
3687 | if test "X$pkg" = "X$p"; then |
3688 | enable_static=yes |
3689 | fi |
3690 | done |
3691 | IFS="$lt_save_ifs" |
3692 | ;; |
3693 | esac |
3694 | else |
3695 | enable_static=yes |
64ff59ba |
3696 | fi |
3697 | |
d9898ee8 |
3698 | |
64ff59ba |
3699 | # Check whether --enable-fast-install was given. |
d9898ee8 |
3700 | if test "${enable_fast_install+set}" = set; then |
64ff59ba |
3701 | enableval=$enable_fast_install; p=${PACKAGE-default} |
d9898ee8 |
3702 | case $enableval in |
3703 | yes) enable_fast_install=yes ;; |
3704 | no) enable_fast_install=no ;; |
3705 | *) |
3706 | enable_fast_install=no |
3707 | # Look at the argument we got. We use all the common list separators. |
3708 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
3709 | for pkg in $enableval; do |
3710 | IFS="$lt_save_ifs" |
3711 | if test "X$pkg" = "X$p"; then |
3712 | enable_fast_install=yes |
3713 | fi |
3714 | done |
3715 | IFS="$lt_save_ifs" |
3716 | ;; |
3717 | esac |
3718 | else |
3719 | enable_fast_install=yes |
64ff59ba |
3720 | fi |
3721 | |
d9898ee8 |
3722 | |
3723 | # Make sure we can run config.sub. |
64ff59ba |
3724 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
3725 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
3726 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} |
d9898ee8 |
3727 | { (exit 1); exit 1; }; } |
3728 | |
64ff59ba |
3729 | { echo "$as_me:$LINENO: checking build system type" >&5 |
3730 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
d9898ee8 |
3731 | if test "${ac_cv_build+set}" = set; then |
3732 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3733 | else |
64ff59ba |
3734 | ac_build_alias=$build_alias |
3735 | test "x$ac_build_alias" = x && |
3736 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
3737 | test "x$ac_build_alias" = x && |
d9898ee8 |
3738 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
3739 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
3740 | { (exit 1); exit 1; }; } |
64ff59ba |
3741 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
3742 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
3743 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} |
d9898ee8 |
3744 | { (exit 1); exit 1; }; } |
3745 | |
3746 | fi |
64ff59ba |
3747 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
3748 | echo "${ECHO_T}$ac_cv_build" >&6; } |
3749 | case $ac_cv_build in |
3750 | *-*-*) ;; |
3751 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
3752 | echo "$as_me: error: invalid value of canonical build" >&2;} |
3753 | { (exit 1); exit 1; }; };; |
3754 | esac |
d9898ee8 |
3755 | build=$ac_cv_build |
64ff59ba |
3756 | ac_save_IFS=$IFS; IFS='-' |
3757 | set x $ac_cv_build |
3758 | shift |
3759 | build_cpu=$1 |
3760 | build_vendor=$2 |
3761 | shift; shift |
3762 | # Remember, the first character of IFS is used to create $*, |
3763 | # except with old shells: |
3764 | build_os=$* |
3765 | IFS=$ac_save_IFS |
3766 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
3767 | |
3768 | |
3769 | { echo "$as_me:$LINENO: checking host system type" >&5 |
3770 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
d9898ee8 |
3771 | if test "${ac_cv_host+set}" = set; then |
3772 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3773 | else |
64ff59ba |
3774 | if test "x$host_alias" = x; then |
3775 | ac_cv_host=$ac_cv_build |
3776 | else |
3777 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
3778 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
3779 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} |
d9898ee8 |
3780 | { (exit 1); exit 1; }; } |
64ff59ba |
3781 | fi |
d9898ee8 |
3782 | |
3783 | fi |
64ff59ba |
3784 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
3785 | echo "${ECHO_T}$ac_cv_host" >&6; } |
3786 | case $ac_cv_host in |
3787 | *-*-*) ;; |
3788 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
3789 | echo "$as_me: error: invalid value of canonical host" >&2;} |
3790 | { (exit 1); exit 1; }; };; |
3791 | esac |
d9898ee8 |
3792 | host=$ac_cv_host |
64ff59ba |
3793 | ac_save_IFS=$IFS; IFS='-' |
3794 | set x $ac_cv_host |
3795 | shift |
3796 | host_cpu=$1 |
3797 | host_vendor=$2 |
3798 | shift; shift |
3799 | # Remember, the first character of IFS is used to create $*, |
3800 | # except with old shells: |
3801 | host_os=$* |
3802 | IFS=$ac_save_IFS |
3803 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
3804 | |
3805 | |
3806 | { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
3807 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } |
d9898ee8 |
3808 | if test "${lt_cv_path_SED+set}" = set; then |
3809 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3810 | else |
3811 | # Loop through the user's path and test for sed and gsed. |
3812 | # Then use that list of sed's as ones to test for truncation. |
3813 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3814 | for as_dir in $PATH |
3815 | do |
3816 | IFS=$as_save_IFS |
3817 | test -z "$as_dir" && as_dir=. |
3818 | for lt_ac_prog in sed gsed; do |
3819 | for ac_exec_ext in '' $ac_executable_extensions; do |
3820 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
3821 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
3822 | fi |
3823 | done |
3824 | done |
3825 | done |
3826 | IFS=$as_save_IFS |
3827 | lt_ac_max=0 |
3828 | lt_ac_count=0 |
3829 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
3830 | # along with /bin/sed that truncates output. |
3831 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
3832 | test ! -f $lt_ac_sed && continue |
3833 | cat /dev/null > conftest.in |
3834 | lt_ac_count=0 |
3835 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
3836 | # Check for GNU sed and select it if it is found. |
3837 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
3838 | lt_cv_path_SED=$lt_ac_sed |
3839 | break |
3840 | fi |
3841 | while true; do |
3842 | cat conftest.in conftest.in >conftest.tmp |
3843 | mv conftest.tmp conftest.in |
3844 | cp conftest.in conftest.nl |
3845 | echo >>conftest.nl |
3846 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
3847 | cmp -s conftest.out conftest.nl || break |
3848 | # 10000 chars as input seems more than enough |
3849 | test $lt_ac_count -gt 10 && break |
3850 | lt_ac_count=`expr $lt_ac_count + 1` |
3851 | if test $lt_ac_count -gt $lt_ac_max; then |
3852 | lt_ac_max=$lt_ac_count |
3853 | lt_cv_path_SED=$lt_ac_sed |
3854 | fi |
3855 | done |
3856 | done |
3857 | |
3858 | fi |
3859 | |
3860 | SED=$lt_cv_path_SED |
3861 | |
64ff59ba |
3862 | { echo "$as_me:$LINENO: result: $SED" >&5 |
3863 | echo "${ECHO_T}$SED" >&6; } |
3864 | |
3865 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
3866 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
3867 | if test "${ac_cv_path_GREP+set}" = set; then |
3868 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3869 | else |
3870 | # Extract the first word of "grep ggrep" to use in msg output |
3871 | if test -z "$GREP"; then |
3872 | set dummy grep ggrep; ac_prog_name=$2 |
3873 | if test "${ac_cv_path_GREP+set}" = set; then |
3874 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3875 | else |
3876 | ac_path_GREP_found=false |
3877 | # Loop through the user's path and test for each of PROGNAME-LIST |
3878 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3879 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
3880 | do |
3881 | IFS=$as_save_IFS |
3882 | test -z "$as_dir" && as_dir=. |
3883 | for ac_prog in grep ggrep; do |
3884 | for ac_exec_ext in '' $ac_executable_extensions; do |
3885 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
3886 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
3887 | # Check for GNU ac_path_GREP and select it if it is found. |
3888 | # Check for GNU $ac_path_GREP |
3889 | case `"$ac_path_GREP" --version 2>&1` in |
3890 | *GNU*) |
3891 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
3892 | *) |
3893 | ac_count=0 |
3894 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
3895 | while : |
3896 | do |
3897 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
3898 | mv "conftest.tmp" "conftest.in" |
3899 | cp "conftest.in" "conftest.nl" |
3900 | echo 'GREP' >> "conftest.nl" |
3901 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3902 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
3903 | ac_count=`expr $ac_count + 1` |
3904 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
3905 | # Best one so far, save it but keep looking for a better one |
3906 | ac_cv_path_GREP="$ac_path_GREP" |
3907 | ac_path_GREP_max=$ac_count |
3908 | fi |
3909 | # 10*(2^10) chars as input seems more than enough |
3910 | test $ac_count -gt 10 && break |
3911 | done |
3912 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
3913 | esac |
3914 | |
3915 | |
3916 | $ac_path_GREP_found && break 3 |
3917 | done |
3918 | done |
3919 | |
3920 | done |
3921 | IFS=$as_save_IFS |
3922 | |
3923 | |
3924 | fi |
3925 | |
3926 | GREP="$ac_cv_path_GREP" |
3927 | if test -z "$GREP"; then |
3928 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
3929 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
3930 | { (exit 1); exit 1; }; } |
3931 | fi |
3932 | |
3933 | else |
3934 | ac_cv_path_GREP=$GREP |
3935 | fi |
3936 | |
d9898ee8 |
3937 | |
64ff59ba |
3938 | fi |
3939 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
3940 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
3941 | GREP="$ac_cv_path_GREP" |
3942 | |
3943 | |
3944 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
3945 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
3946 | if test "${ac_cv_path_EGREP+set}" = set; then |
3947 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3948 | else |
3949 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
3950 | then ac_cv_path_EGREP="$GREP -E" |
3951 | else |
3952 | # Extract the first word of "egrep" to use in msg output |
3953 | if test -z "$EGREP"; then |
3954 | set dummy egrep; ac_prog_name=$2 |
3955 | if test "${ac_cv_path_EGREP+set}" = set; then |
d9898ee8 |
3956 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3957 | else |
64ff59ba |
3958 | ac_path_EGREP_found=false |
3959 | # Loop through the user's path and test for each of PROGNAME-LIST |
3960 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3961 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
3962 | do |
3963 | IFS=$as_save_IFS |
3964 | test -z "$as_dir" && as_dir=. |
3965 | for ac_prog in egrep; do |
3966 | for ac_exec_ext in '' $ac_executable_extensions; do |
3967 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
3968 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
3969 | # Check for GNU ac_path_EGREP and select it if it is found. |
3970 | # Check for GNU $ac_path_EGREP |
3971 | case `"$ac_path_EGREP" --version 2>&1` in |
3972 | *GNU*) |
3973 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
3974 | *) |
3975 | ac_count=0 |
3976 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
3977 | while : |
3978 | do |
3979 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
3980 | mv "conftest.tmp" "conftest.in" |
3981 | cp "conftest.in" "conftest.nl" |
3982 | echo 'EGREP' >> "conftest.nl" |
3983 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3984 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
3985 | ac_count=`expr $ac_count + 1` |
3986 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
3987 | # Best one so far, save it but keep looking for a better one |
3988 | ac_cv_path_EGREP="$ac_path_EGREP" |
3989 | ac_path_EGREP_max=$ac_count |
d9898ee8 |
3990 | fi |
64ff59ba |
3991 | # 10*(2^10) chars as input seems more than enough |
3992 | test $ac_count -gt 10 && break |
3993 | done |
3994 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
3995 | esac |
3996 | |
3997 | |
3998 | $ac_path_EGREP_found && break 3 |
3999 | done |
4000 | done |
4001 | |
4002 | done |
4003 | IFS=$as_save_IFS |
4004 | |
4005 | |
4006 | fi |
4007 | |
4008 | EGREP="$ac_cv_path_EGREP" |
4009 | if test -z "$EGREP"; then |
4010 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
4011 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
4012 | { (exit 1); exit 1; }; } |
4013 | fi |
4014 | |
4015 | else |
4016 | ac_cv_path_EGREP=$EGREP |
4017 | fi |
4018 | |
4019 | |
4020 | fi |
d9898ee8 |
4021 | fi |
64ff59ba |
4022 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
4023 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
4024 | EGREP="$ac_cv_path_EGREP" |
d9898ee8 |
4025 | |
4026 | |
4027 | |
64ff59ba |
4028 | # Check whether --with-gnu-ld was given. |
d9898ee8 |
4029 | if test "${with_gnu_ld+set}" = set; then |
64ff59ba |
4030 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
d9898ee8 |
4031 | else |
4032 | with_gnu_ld=no |
64ff59ba |
4033 | fi |
4034 | |
d9898ee8 |
4035 | ac_prog=ld |
4036 | if test "$GCC" = yes; then |
4037 | # Check if gcc -print-prog-name=ld gives a path. |
64ff59ba |
4038 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
4039 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
d9898ee8 |
4040 | case $host in |
4041 | *-*-mingw*) |
4042 | # gcc leaves a trailing carriage return which upsets mingw |
4043 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
4044 | *) |
4045 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
4046 | esac |
4047 | case $ac_prog in |
4048 | # Accept absolute paths. |
4049 | [\\/]* | ?:[\\/]*) |
4050 | re_direlt='/[^/][^/]*/\.\./' |
4051 | # Canonicalize the pathname of ld |
4052 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
4053 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
4054 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
4055 | done |
4056 | test -z "$LD" && LD="$ac_prog" |
4057 | ;; |
4058 | "") |
4059 | # If it fails, then pretend we aren't using GCC. |
4060 | ac_prog=ld |
4061 | ;; |
4062 | *) |
4063 | # If it is relative, then search for the first ld in PATH. |
4064 | with_gnu_ld=unknown |
4065 | ;; |
4066 | esac |
4067 | elif test "$with_gnu_ld" = yes; then |
64ff59ba |
4068 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
4069 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
d9898ee8 |
4070 | else |
64ff59ba |
4071 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
4072 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
d9898ee8 |
4073 | fi |
4074 | if test "${lt_cv_path_LD+set}" = set; then |
4075 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4076 | else |
4077 | if test -z "$LD"; then |
4078 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
4079 | for ac_dir in $PATH; do |
4080 | IFS="$lt_save_ifs" |
4081 | test -z "$ac_dir" && ac_dir=. |
4082 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
4083 | lt_cv_path_LD="$ac_dir/$ac_prog" |
4084 | # Check to see if the program is GNU ld. I'd rather use --version, |
4085 | # but apparently some variants of GNU ld only accept -v. |
4086 | # Break only if it was the GNU/non-GNU ld that we prefer. |
4087 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
4088 | *GNU* | *'with BFD'*) |
4089 | test "$with_gnu_ld" != no && break |
4090 | ;; |
4091 | *) |
4092 | test "$with_gnu_ld" != yes && break |
4093 | ;; |
4094 | esac |
4095 | fi |
4096 | done |
4097 | IFS="$lt_save_ifs" |
4098 | else |
4099 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
4100 | fi |
4101 | fi |
4102 | |
4103 | LD="$lt_cv_path_LD" |
4104 | if test -n "$LD"; then |
64ff59ba |
4105 | { echo "$as_me:$LINENO: result: $LD" >&5 |
4106 | echo "${ECHO_T}$LD" >&6; } |
d9898ee8 |
4107 | else |
64ff59ba |
4108 | { echo "$as_me:$LINENO: result: no" >&5 |
4109 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
4110 | fi |
4111 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
4112 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
4113 | { (exit 1); exit 1; }; } |
64ff59ba |
4114 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
4115 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } |
d9898ee8 |
4116 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
4117 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4118 | else |
4119 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
4120 | case `$LD -v 2>&1 </dev/null` in |
4121 | *GNU* | *'with BFD'*) |
4122 | lt_cv_prog_gnu_ld=yes |
4123 | ;; |
4124 | *) |
4125 | lt_cv_prog_gnu_ld=no |
4126 | ;; |
4127 | esac |
4128 | fi |
64ff59ba |
4129 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
4130 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
d9898ee8 |
4131 | with_gnu_ld=$lt_cv_prog_gnu_ld |
4132 | |
4133 | |
64ff59ba |
4134 | { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
4135 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } |
d9898ee8 |
4136 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
4137 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4138 | else |
4139 | lt_cv_ld_reload_flag='-r' |
4140 | fi |
64ff59ba |
4141 | { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
4142 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } |
d9898ee8 |
4143 | reload_flag=$lt_cv_ld_reload_flag |
4144 | case $reload_flag in |
4145 | "" | " "*) ;; |
4146 | *) reload_flag=" $reload_flag" ;; |
4147 | esac |
4148 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
4149 | case $host_os in |
4150 | darwin*) |
4151 | if test "$GCC" = yes; then |
4152 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
4153 | else |
4154 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
4155 | fi |
4156 | ;; |
4157 | esac |
4158 | |
64ff59ba |
4159 | { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
4160 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } |
d9898ee8 |
4161 | if test "${lt_cv_path_NM+set}" = set; then |
4162 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4163 | else |
4164 | if test -n "$NM"; then |
4165 | # Let the user override the test. |
4166 | lt_cv_path_NM="$NM" |
4167 | else |
4168 | lt_nm_to_check="${ac_tool_prefix}nm" |
4169 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
4170 | lt_nm_to_check="$lt_nm_to_check nm" |
4171 | fi |
4172 | for lt_tmp_nm in $lt_nm_to_check; do |
4173 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
4174 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
4175 | IFS="$lt_save_ifs" |
4176 | test -z "$ac_dir" && ac_dir=. |
4177 | tmp_nm="$ac_dir/$lt_tmp_nm" |
4178 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
4179 | # Check to see if the nm accepts a BSD-compat flag. |
4180 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
4181 | # nm: unknown option "B" ignored |
4182 | # Tru64's nm complains that /dev/null is an invalid object file |
4183 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
4184 | */dev/null* | *'Invalid file or object type'*) |
4185 | lt_cv_path_NM="$tmp_nm -B" |
4186 | break |
4187 | ;; |
4188 | *) |
4189 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
4190 | */dev/null*) |
4191 | lt_cv_path_NM="$tmp_nm -p" |
4192 | break |
4193 | ;; |
4194 | *) |
4195 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
4196 | continue # so that we can try to find one that supports BSD flags |
4197 | ;; |
4198 | esac |
4199 | ;; |
4200 | esac |
4201 | fi |
4202 | done |
4203 | IFS="$lt_save_ifs" |
4204 | done |
4205 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
4206 | fi |
4207 | fi |
64ff59ba |
4208 | { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
4209 | echo "${ECHO_T}$lt_cv_path_NM" >&6; } |
d9898ee8 |
4210 | NM="$lt_cv_path_NM" |
4211 | |
64ff59ba |
4212 | { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
4213 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } |
d9898ee8 |
4214 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
4215 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4216 | else |
4217 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
4218 | lt_cv_file_magic_test_file= |
4219 | lt_cv_deplibs_check_method='unknown' |
4220 | # Need to set the preceding variable on all platforms that support |
4221 | # interlibrary dependencies. |
4222 | # 'none' -- dependencies not supported. |
4223 | # `unknown' -- same as none, but documents that we really don't know. |
4224 | # 'pass_all' -- all dependencies passed with no checks. |
4225 | # 'test_compile' -- check by making test program. |
4226 | # 'file_magic [[regex]]' -- check by looking for files in library path |
4227 | # which responds to the $file_magic_cmd with a given extended regex. |
4228 | # If you have `file' or equivalent on your system and you're not sure |
4229 | # whether `pass_all' will *always* work, you probably want this one. |
4230 | |
4231 | case $host_os in |
4232 | aix4* | aix5*) |
4233 | lt_cv_deplibs_check_method=pass_all |
4234 | ;; |
4235 | |
4236 | beos*) |
4237 | lt_cv_deplibs_check_method=pass_all |
4238 | ;; |
4239 | |
4240 | bsdi[45]*) |
4241 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
4242 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
4243 | lt_cv_file_magic_test_file=/shlib/libc.so |
4244 | ;; |
4245 | |
4246 | cygwin*) |
4247 | # func_win32_libid is a shell function defined in ltmain.sh |
4248 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
4249 | lt_cv_file_magic_cmd='func_win32_libid' |
4250 | ;; |
4251 | |
4252 | mingw* | pw32*) |
4253 | # Base MSYS/MinGW do not provide the 'file' command needed by |
4254 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. |
4255 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
4256 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
4257 | ;; |
4258 | |
4259 | darwin* | rhapsody*) |
4260 | lt_cv_deplibs_check_method=pass_all |
4261 | ;; |
4262 | |
4263 | freebsd* | kfreebsd*-gnu | dragonfly*) |
4264 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
4265 | case $host_cpu in |
4266 | i*86 ) |
4267 | # Not sure whether the presence of OpenBSD here was a mistake. |
4268 | # Let's accept both of them until this is cleared up. |
4269 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
4270 | lt_cv_file_magic_cmd=/usr/bin/file |
4271 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
4272 | ;; |
4273 | esac |
4274 | else |
4275 | lt_cv_deplibs_check_method=pass_all |
4276 | fi |
4277 | ;; |
4278 | |
4279 | gnu*) |
4280 | lt_cv_deplibs_check_method=pass_all |
4281 | ;; |
4282 | |
4283 | hpux10.20* | hpux11*) |
4284 | lt_cv_file_magic_cmd=/usr/bin/file |
4285 | case $host_cpu in |
4286 | ia64*) |
4287 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
4288 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
4289 | ;; |
4290 | hppa*64*) |
4291 | 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]' |
4292 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
4293 | ;; |
4294 | *) |
4295 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
4296 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
4297 | ;; |
4298 | esac |
4299 | ;; |
4300 | |
4301 | interix3*) |
4302 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
4303 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
4304 | ;; |
4305 | |
4306 | irix5* | irix6* | nonstopux*) |
4307 | case $LD in |
4308 | *-32|*"-32 ") libmagic=32-bit;; |
4309 | *-n32|*"-n32 ") libmagic=N32;; |
4310 | *-64|*"-64 ") libmagic=64-bit;; |
4311 | *) libmagic=never-match;; |
4312 | esac |
4313 | lt_cv_deplibs_check_method=pass_all |
4314 | ;; |
4315 | |
4316 | # This must be Linux ELF. |
4317 | linux*) |
4318 | lt_cv_deplibs_check_method=pass_all |
4319 | ;; |
4320 | |
4321 | netbsd*) |
4322 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
4323 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
4324 | else |
4325 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
4326 | fi |
4327 | ;; |
4328 | |
4329 | newos6*) |
4330 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
4331 | lt_cv_file_magic_cmd=/usr/bin/file |
4332 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
4333 | ;; |
4334 | |
4335 | nto-qnx*) |
4336 | lt_cv_deplibs_check_method=unknown |
4337 | ;; |
4338 | |
4339 | openbsd*) |
4340 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
4341 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
4342 | else |
4343 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
4344 | fi |
4345 | ;; |
4346 | |
4347 | osf3* | osf4* | osf5*) |
4348 | lt_cv_deplibs_check_method=pass_all |
4349 | ;; |
4350 | |
4351 | solaris*) |
4352 | lt_cv_deplibs_check_method=pass_all |
4353 | ;; |
4354 | |
4355 | sysv4 | sysv4.3*) |
4356 | case $host_vendor in |
4357 | motorola) |
4358 | 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]' |
4359 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
4360 | ;; |
4361 | ncr) |
4362 | lt_cv_deplibs_check_method=pass_all |
4363 | ;; |
4364 | sequent) |
4365 | lt_cv_file_magic_cmd='/bin/file' |
4366 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
4367 | ;; |
4368 | sni) |
4369 | lt_cv_file_magic_cmd='/bin/file' |
4370 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
4371 | lt_cv_file_magic_test_file=/lib/libc.so |
4372 | ;; |
4373 | siemens) |
4374 | lt_cv_deplibs_check_method=pass_all |
4375 | ;; |
4376 | pc) |
4377 | lt_cv_deplibs_check_method=pass_all |
4378 | ;; |
4379 | esac |
4380 | ;; |
4381 | |
4382 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
4383 | lt_cv_deplibs_check_method=pass_all |
4384 | ;; |
4385 | esac |
4386 | |
4387 | fi |
64ff59ba |
4388 | { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
4389 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } |
d9898ee8 |
4390 | file_magic_cmd=$lt_cv_file_magic_cmd |
4391 | deplibs_check_method=$lt_cv_deplibs_check_method |
4392 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
4393 | |
4394 | |
4395 | |
4396 | |
4397 | # If no C compiler was specified, use CC. |
4398 | LTCC=${LTCC-"$CC"} |
4399 | |
4400 | # If no C compiler flags were specified, use CFLAGS. |
4401 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
4402 | |
4403 | # Allow CC to be a program name with arguments. |
4404 | compiler=$CC |
4405 | |
4406 | |
64ff59ba |
4407 | # Check whether --enable-libtool-lock was given. |
d9898ee8 |
4408 | if test "${enable_libtool_lock+set}" = set; then |
64ff59ba |
4409 | enableval=$enable_libtool_lock; |
4410 | fi |
d9898ee8 |
4411 | |
d9898ee8 |
4412 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
4413 | |
4414 | # Some flags need to be propagated to the compiler or linker for good |
4415 | # libtool support. |
4416 | case $host in |
4417 | ia64-*-hpux*) |
4418 | # Find out which ABI we are using. |
4419 | echo 'int i;' > conftest.$ac_ext |
4420 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4421 | (eval $ac_compile) 2>&5 |
4422 | ac_status=$? |
4423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4424 | (exit $ac_status); }; then |
4425 | case `/usr/bin/file conftest.$ac_objext` in |
4426 | *ELF-32*) |
4427 | HPUX_IA64_MODE="32" |
4428 | ;; |
4429 | *ELF-64*) |
4430 | HPUX_IA64_MODE="64" |
4431 | ;; |
4432 | esac |
4433 | fi |
4434 | rm -rf conftest* |
4435 | ;; |
4436 | *-*-irix6*) |
4437 | # Find out which ABI we are using. |
64ff59ba |
4438 | echo '#line 4438 "configure"' > conftest.$ac_ext |
d9898ee8 |
4439 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4440 | (eval $ac_compile) 2>&5 |
4441 | ac_status=$? |
4442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4443 | (exit $ac_status); }; then |
4444 | if test "$lt_cv_prog_gnu_ld" = yes; then |
4445 | case `/usr/bin/file conftest.$ac_objext` in |
4446 | *32-bit*) |
4447 | LD="${LD-ld} -melf32bsmip" |
4448 | ;; |
4449 | *N32*) |
4450 | LD="${LD-ld} -melf32bmipn32" |
4451 | ;; |
4452 | *64-bit*) |
4453 | LD="${LD-ld} -melf64bmip" |
4454 | ;; |
4455 | esac |
4456 | else |
4457 | case `/usr/bin/file conftest.$ac_objext` in |
4458 | *32-bit*) |
4459 | LD="${LD-ld} -32" |
4460 | ;; |
4461 | *N32*) |
4462 | LD="${LD-ld} -n32" |
4463 | ;; |
4464 | *64-bit*) |
4465 | LD="${LD-ld} -64" |
4466 | ;; |
4467 | esac |
4468 | fi |
4469 | fi |
4470 | rm -rf conftest* |
4471 | ;; |
4472 | |
4473 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
4474 | # Find out which ABI we are using. |
4475 | echo 'int i;' > conftest.$ac_ext |
4476 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4477 | (eval $ac_compile) 2>&5 |
4478 | ac_status=$? |
4479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4480 | (exit $ac_status); }; then |
4481 | case `/usr/bin/file conftest.o` in |
4482 | *32-bit*) |
4483 | case $host in |
4484 | x86_64-*linux*) |
4485 | LD="${LD-ld} -m elf_i386" |
4486 | ;; |
4487 | ppc64-*linux*|powerpc64-*linux*) |
4488 | LD="${LD-ld} -m elf32ppclinux" |
4489 | ;; |
4490 | s390x-*linux*) |
4491 | LD="${LD-ld} -m elf_s390" |
4492 | ;; |
4493 | sparc64-*linux*) |
4494 | LD="${LD-ld} -m elf32_sparc" |
4495 | ;; |
4496 | esac |
4497 | ;; |
4498 | *64-bit*) |
4499 | case $host in |
4500 | x86_64-*linux*) |
4501 | LD="${LD-ld} -m elf_x86_64" |
4502 | ;; |
4503 | ppc*-*linux*|powerpc*-*linux*) |
4504 | LD="${LD-ld} -m elf64ppc" |
4505 | ;; |
4506 | s390*-*linux*) |
4507 | LD="${LD-ld} -m elf64_s390" |
4508 | ;; |
4509 | sparc*-*linux*) |
4510 | LD="${LD-ld} -m elf64_sparc" |
4511 | ;; |
4512 | esac |
4513 | ;; |
4514 | esac |
4515 | fi |
4516 | rm -rf conftest* |
4517 | ;; |
4518 | |
4519 | *-*-sco3.2v5*) |
4520 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
4521 | SAVE_CFLAGS="$CFLAGS" |
4522 | CFLAGS="$CFLAGS -belf" |
64ff59ba |
4523 | { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
4524 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } |
d9898ee8 |
4525 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
4526 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4527 | else |
4528 | ac_ext=c |
4529 | ac_cpp='$CPP $CPPFLAGS' |
4530 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4531 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4532 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4533 | |
4534 | cat >conftest.$ac_ext <<_ACEOF |
4535 | /* confdefs.h. */ |
4536 | _ACEOF |
4537 | cat confdefs.h >>conftest.$ac_ext |
4538 | cat >>conftest.$ac_ext <<_ACEOF |
4539 | /* end confdefs.h. */ |
4540 | |
4541 | int |
4542 | main () |
4543 | { |
4544 | |
4545 | ; |
4546 | return 0; |
4547 | } |
4548 | _ACEOF |
4549 | rm -f conftest.$ac_objext conftest$ac_exeext |
64ff59ba |
4550 | if { (ac_try="$ac_link" |
4551 | case "(($ac_try" in |
4552 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4553 | *) ac_try_echo=$ac_try;; |
4554 | esac |
4555 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4556 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
4557 | ac_status=$? |
4558 | grep -v '^ *+' conftest.er1 >conftest.err |
4559 | rm -f conftest.er1 |
4560 | cat conftest.err >&5 |
4561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
4562 | (exit $ac_status); } && { |
4563 | test -z "$ac_c_werror_flag" || |
4564 | test ! -s conftest.err |
4565 | } && test -s conftest$ac_exeext && |
4566 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
4567 | lt_cv_cc_needs_belf=yes |
4568 | else |
4569 | echo "$as_me: failed program was:" >&5 |
4570 | sed 's/^/| /' conftest.$ac_ext >&5 |
4571 | |
64ff59ba |
4572 | lt_cv_cc_needs_belf=no |
d9898ee8 |
4573 | fi |
64ff59ba |
4574 | |
4575 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
4576 | conftest$ac_exeext conftest.$ac_ext |
4577 | ac_ext=c |
4578 | ac_cpp='$CPP $CPPFLAGS' |
4579 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4580 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4581 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4582 | |
4583 | fi |
64ff59ba |
4584 | { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
4585 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } |
d9898ee8 |
4586 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
4587 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
4588 | CFLAGS="$SAVE_CFLAGS" |
4589 | fi |
4590 | ;; |
4591 | sparc*-*solaris*) |
4592 | # Find out which ABI we are using. |
4593 | echo 'int i;' > conftest.$ac_ext |
4594 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4595 | (eval $ac_compile) 2>&5 |
4596 | ac_status=$? |
4597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4598 | (exit $ac_status); }; then |
4599 | case `/usr/bin/file conftest.o` in |
4600 | *64-bit*) |
4601 | case $lt_cv_prog_gnu_ld in |
4602 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
4603 | *) LD="${LD-ld} -64" ;; |
4604 | esac |
4605 | ;; |
4606 | esac |
4607 | fi |
4608 | rm -rf conftest* |
4609 | ;; |
4610 | |
4611 | |
4612 | esac |
4613 | |
4614 | need_locks="$enable_libtool_lock" |
4615 | |
4616 | |
4617 | ac_ext=c |
4618 | ac_cpp='$CPP $CPPFLAGS' |
4619 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4620 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4621 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
64ff59ba |
4622 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
4623 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
d9898ee8 |
4624 | # On Suns, sometimes $CPP names a directory. |
4625 | if test -n "$CPP" && test -d "$CPP"; then |
4626 | CPP= |
4627 | fi |
4628 | if test -z "$CPP"; then |
4629 | if test "${ac_cv_prog_CPP+set}" = set; then |
4630 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4631 | else |
4632 | # Double quotes because CPP needs to be expanded |
4633 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
4634 | do |
4635 | ac_preproc_ok=false |
4636 | for ac_c_preproc_warn_flag in '' yes |
4637 | do |
4638 | # Use a header file that comes with gcc, so configuring glibc |
4639 | # with a fresh cross-compiler works. |
4640 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
4641 | # <limits.h> exists even on freestanding compilers. |
4642 | # On the NeXT, cc -E runs the code through the compiler's parser, |
4643 | # not just through cpp. "Syntax error" is here to catch this case. |
4644 | cat >conftest.$ac_ext <<_ACEOF |
4645 | /* confdefs.h. */ |
4646 | _ACEOF |
4647 | cat confdefs.h >>conftest.$ac_ext |
4648 | cat >>conftest.$ac_ext <<_ACEOF |
4649 | /* end confdefs.h. */ |
4650 | #ifdef __STDC__ |
4651 | # include <limits.h> |
4652 | #else |
4653 | # include <assert.h> |
4654 | #endif |
4655 | Syntax error |
4656 | _ACEOF |
64ff59ba |
4657 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4658 | case "(($ac_try" in |
4659 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4660 | *) ac_try_echo=$ac_try;; |
4661 | esac |
4662 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4663 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
4664 | ac_status=$? |
4665 | grep -v '^ *+' conftest.er1 >conftest.err |
4666 | rm -f conftest.er1 |
4667 | cat conftest.err >&5 |
4668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
4669 | (exit $ac_status); } >/dev/null && { |
4670 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
4671 | test ! -s conftest.err |
4672 | }; then |
d9898ee8 |
4673 | : |
4674 | else |
4675 | echo "$as_me: failed program was:" >&5 |
4676 | sed 's/^/| /' conftest.$ac_ext >&5 |
4677 | |
4678 | # Broken: fails on valid input. |
4679 | continue |
4680 | fi |
64ff59ba |
4681 | |
d9898ee8 |
4682 | rm -f conftest.err conftest.$ac_ext |
4683 | |
64ff59ba |
4684 | # OK, works on sane cases. Now check whether nonexistent headers |
d9898ee8 |
4685 | # can be detected and how. |
4686 | cat >conftest.$ac_ext <<_ACEOF |
4687 | /* confdefs.h. */ |
4688 | _ACEOF |
4689 | cat confdefs.h >>conftest.$ac_ext |
4690 | cat >>conftest.$ac_ext <<_ACEOF |
4691 | /* end confdefs.h. */ |
4692 | #include <ac_nonexistent.h> |
4693 | _ACEOF |
64ff59ba |
4694 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4695 | case "(($ac_try" in |
4696 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4697 | *) ac_try_echo=$ac_try;; |
4698 | esac |
4699 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4700 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
4701 | ac_status=$? |
4702 | grep -v '^ *+' conftest.er1 >conftest.err |
4703 | rm -f conftest.er1 |
4704 | cat conftest.err >&5 |
4705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
4706 | (exit $ac_status); } >/dev/null && { |
4707 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
4708 | test ! -s conftest.err |
4709 | }; then |
d9898ee8 |
4710 | # Broken: success on invalid input. |
4711 | continue |
4712 | else |
4713 | echo "$as_me: failed program was:" >&5 |
4714 | sed 's/^/| /' conftest.$ac_ext >&5 |
4715 | |
4716 | # Passes both tests. |
4717 | ac_preproc_ok=: |
4718 | break |
4719 | fi |
64ff59ba |
4720 | |
d9898ee8 |
4721 | rm -f conftest.err conftest.$ac_ext |
4722 | |
4723 | done |
4724 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
4725 | rm -f conftest.err conftest.$ac_ext |
4726 | if $ac_preproc_ok; then |
4727 | break |
4728 | fi |
4729 | |
4730 | done |
4731 | ac_cv_prog_CPP=$CPP |
4732 | |
4733 | fi |
4734 | CPP=$ac_cv_prog_CPP |
4735 | else |
4736 | ac_cv_prog_CPP=$CPP |
4737 | fi |
64ff59ba |
4738 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
4739 | echo "${ECHO_T}$CPP" >&6; } |
d9898ee8 |
4740 | ac_preproc_ok=false |
4741 | for ac_c_preproc_warn_flag in '' yes |
4742 | do |
4743 | # Use a header file that comes with gcc, so configuring glibc |
4744 | # with a fresh cross-compiler works. |
4745 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
4746 | # <limits.h> exists even on freestanding compilers. |
4747 | # On the NeXT, cc -E runs the code through the compiler's parser, |
4748 | # not just through cpp. "Syntax error" is here to catch this case. |
4749 | cat >conftest.$ac_ext <<_ACEOF |
4750 | /* confdefs.h. */ |
4751 | _ACEOF |
4752 | cat confdefs.h >>conftest.$ac_ext |
4753 | cat >>conftest.$ac_ext <<_ACEOF |
4754 | /* end confdefs.h. */ |
4755 | #ifdef __STDC__ |
4756 | # include <limits.h> |
4757 | #else |
4758 | # include <assert.h> |
4759 | #endif |
4760 | Syntax error |
4761 | _ACEOF |
64ff59ba |
4762 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4763 | case "(($ac_try" in |
4764 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4765 | *) ac_try_echo=$ac_try;; |
4766 | esac |
4767 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4768 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
4769 | ac_status=$? |
4770 | grep -v '^ *+' conftest.er1 >conftest.err |
4771 | rm -f conftest.er1 |
4772 | cat conftest.err >&5 |
4773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
4774 | (exit $ac_status); } >/dev/null && { |
4775 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
4776 | test ! -s conftest.err |
4777 | }; then |
d9898ee8 |
4778 | : |
4779 | else |
4780 | echo "$as_me: failed program was:" >&5 |
4781 | sed 's/^/| /' conftest.$ac_ext >&5 |
4782 | |
4783 | # Broken: fails on valid input. |
4784 | continue |
4785 | fi |
64ff59ba |
4786 | |
d9898ee8 |
4787 | rm -f conftest.err conftest.$ac_ext |
4788 | |
64ff59ba |
4789 | # OK, works on sane cases. Now check whether nonexistent headers |
d9898ee8 |
4790 | # can be detected and how. |
4791 | cat >conftest.$ac_ext <<_ACEOF |
4792 | /* confdefs.h. */ |
4793 | _ACEOF |
4794 | cat confdefs.h >>conftest.$ac_ext |
4795 | cat >>conftest.$ac_ext <<_ACEOF |
4796 | /* end confdefs.h. */ |
4797 | #include <ac_nonexistent.h> |
4798 | _ACEOF |
64ff59ba |
4799 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4800 | case "(($ac_try" in |
4801 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4802 | *) ac_try_echo=$ac_try;; |
4803 | esac |
4804 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4805 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
4806 | ac_status=$? |
4807 | grep -v '^ *+' conftest.er1 >conftest.err |
4808 | rm -f conftest.er1 |
4809 | cat conftest.err >&5 |
4810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
4811 | (exit $ac_status); } >/dev/null && { |
4812 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
4813 | test ! -s conftest.err |
4814 | }; then |
d9898ee8 |
4815 | # Broken: success on invalid input. |
4816 | continue |
4817 | else |
4818 | echo "$as_me: failed program was:" >&5 |
4819 | sed 's/^/| /' conftest.$ac_ext >&5 |
4820 | |
4821 | # Passes both tests. |
4822 | ac_preproc_ok=: |
4823 | break |
4824 | fi |
64ff59ba |
4825 | |
d9898ee8 |
4826 | rm -f conftest.err conftest.$ac_ext |
4827 | |
4828 | done |
4829 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
4830 | rm -f conftest.err conftest.$ac_ext |
4831 | if $ac_preproc_ok; then |
4832 | : |
4833 | else |
4834 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
4835 | See \`config.log' for more details." >&5 |
4836 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
4837 | See \`config.log' for more details." >&2;} |
4838 | { (exit 1); exit 1; }; } |
4839 | fi |
4840 | |
4841 | ac_ext=c |
4842 | ac_cpp='$CPP $CPPFLAGS' |
4843 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4844 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4845 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4846 | |
4847 | |
64ff59ba |
4848 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4849 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
d9898ee8 |
4850 | if test "${ac_cv_header_stdc+set}" = set; then |
4851 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4852 | else |
4853 | cat >conftest.$ac_ext <<_ACEOF |
4854 | /* confdefs.h. */ |
4855 | _ACEOF |
4856 | cat confdefs.h >>conftest.$ac_ext |
4857 | cat >>conftest.$ac_ext <<_ACEOF |
4858 | /* end confdefs.h. */ |
4859 | #include <stdlib.h> |
4860 | #include <stdarg.h> |
4861 | #include <string.h> |
4862 | #include <float.h> |
4863 | |
4864 | int |
4865 | main () |
4866 | { |
4867 | |
4868 | ; |
4869 | return 0; |
4870 | } |
4871 | _ACEOF |
4872 | rm -f conftest.$ac_objext |
64ff59ba |
4873 | if { (ac_try="$ac_compile" |
4874 | case "(($ac_try" in |
4875 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4876 | *) ac_try_echo=$ac_try;; |
4877 | esac |
4878 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4879 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
4880 | ac_status=$? |
4881 | grep -v '^ *+' conftest.er1 >conftest.err |
4882 | rm -f conftest.er1 |
4883 | cat conftest.err >&5 |
4884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
4885 | (exit $ac_status); } && { |
4886 | test -z "$ac_c_werror_flag" || |
4887 | test ! -s conftest.err |
4888 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
4889 | ac_cv_header_stdc=yes |
4890 | else |
4891 | echo "$as_me: failed program was:" >&5 |
4892 | sed 's/^/| /' conftest.$ac_ext >&5 |
4893 | |
64ff59ba |
4894 | ac_cv_header_stdc=no |
d9898ee8 |
4895 | fi |
64ff59ba |
4896 | |
4897 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
4898 | |
4899 | if test $ac_cv_header_stdc = yes; then |
4900 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
4901 | cat >conftest.$ac_ext <<_ACEOF |
4902 | /* confdefs.h. */ |
4903 | _ACEOF |
4904 | cat confdefs.h >>conftest.$ac_ext |
4905 | cat >>conftest.$ac_ext <<_ACEOF |
4906 | /* end confdefs.h. */ |
4907 | #include <string.h> |
4908 | |
4909 | _ACEOF |
4910 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4911 | $EGREP "memchr" >/dev/null 2>&1; then |
4912 | : |
4913 | else |
4914 | ac_cv_header_stdc=no |
4915 | fi |
4916 | rm -f conftest* |
4917 | |
4918 | fi |
4919 | |
4920 | if test $ac_cv_header_stdc = yes; then |
4921 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
4922 | cat >conftest.$ac_ext <<_ACEOF |
4923 | /* confdefs.h. */ |
4924 | _ACEOF |
4925 | cat confdefs.h >>conftest.$ac_ext |
4926 | cat >>conftest.$ac_ext <<_ACEOF |
4927 | /* end confdefs.h. */ |
4928 | #include <stdlib.h> |
4929 | |
4930 | _ACEOF |
4931 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4932 | $EGREP "free" >/dev/null 2>&1; then |
4933 | : |
4934 | else |
4935 | ac_cv_header_stdc=no |
4936 | fi |
4937 | rm -f conftest* |
4938 | |
4939 | fi |
4940 | |
4941 | if test $ac_cv_header_stdc = yes; then |
4942 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
4943 | if test "$cross_compiling" = yes; then |
4944 | : |
4945 | else |
4946 | cat >conftest.$ac_ext <<_ACEOF |
4947 | /* confdefs.h. */ |
4948 | _ACEOF |
4949 | cat confdefs.h >>conftest.$ac_ext |
4950 | cat >>conftest.$ac_ext <<_ACEOF |
4951 | /* end confdefs.h. */ |
4952 | #include <ctype.h> |
64ff59ba |
4953 | #include <stdlib.h> |
d9898ee8 |
4954 | #if ((' ' & 0x0FF) == 0x020) |
4955 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
4956 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
4957 | #else |
4958 | # define ISLOWER(c) \ |
4959 | (('a' <= (c) && (c) <= 'i') \ |
4960 | || ('j' <= (c) && (c) <= 'r') \ |
4961 | || ('s' <= (c) && (c) <= 'z')) |
4962 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
4963 | #endif |
4964 | |
4965 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
4966 | int |
4967 | main () |
4968 | { |
4969 | int i; |
4970 | for (i = 0; i < 256; i++) |
4971 | if (XOR (islower (i), ISLOWER (i)) |
4972 | || toupper (i) != TOUPPER (i)) |
64ff59ba |
4973 | return 2; |
4974 | return 0; |
d9898ee8 |
4975 | } |
4976 | _ACEOF |
4977 | rm -f conftest$ac_exeext |
64ff59ba |
4978 | if { (ac_try="$ac_link" |
4979 | case "(($ac_try" in |
4980 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4981 | *) ac_try_echo=$ac_try;; |
4982 | esac |
4983 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4984 | (eval "$ac_link") 2>&5 |
d9898ee8 |
4985 | ac_status=$? |
4986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4987 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
64ff59ba |
4988 | { (case "(($ac_try" in |
4989 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4990 | *) ac_try_echo=$ac_try;; |
4991 | esac |
4992 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4993 | (eval "$ac_try") 2>&5 |
d9898ee8 |
4994 | ac_status=$? |
4995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4996 | (exit $ac_status); }; }; then |
4997 | : |
4998 | else |
4999 | echo "$as_me: program exited with status $ac_status" >&5 |
5000 | echo "$as_me: failed program was:" >&5 |
5001 | sed 's/^/| /' conftest.$ac_ext >&5 |
5002 | |
5003 | ( exit $ac_status ) |
5004 | ac_cv_header_stdc=no |
5005 | fi |
64ff59ba |
5006 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
5007 | fi |
64ff59ba |
5008 | |
5009 | |
d9898ee8 |
5010 | fi |
5011 | fi |
64ff59ba |
5012 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
5013 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
d9898ee8 |
5014 | if test $ac_cv_header_stdc = yes; then |
5015 | |
5016 | cat >>confdefs.h <<\_ACEOF |
5017 | #define STDC_HEADERS 1 |
5018 | _ACEOF |
5019 | |
5020 | fi |
5021 | |
5022 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
5023 | |
5024 | |
5025 | |
5026 | |
5027 | |
5028 | |
5029 | |
5030 | |
5031 | |
5032 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
5033 | inttypes.h stdint.h unistd.h |
5034 | do |
5035 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
64ff59ba |
5036 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5037 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
5038 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
5039 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5040 | else |
5041 | cat >conftest.$ac_ext <<_ACEOF |
5042 | /* confdefs.h. */ |
5043 | _ACEOF |
5044 | cat confdefs.h >>conftest.$ac_ext |
5045 | cat >>conftest.$ac_ext <<_ACEOF |
5046 | /* end confdefs.h. */ |
5047 | $ac_includes_default |
5048 | |
5049 | #include <$ac_header> |
5050 | _ACEOF |
5051 | rm -f conftest.$ac_objext |
64ff59ba |
5052 | if { (ac_try="$ac_compile" |
5053 | case "(($ac_try" in |
5054 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5055 | *) ac_try_echo=$ac_try;; |
5056 | esac |
5057 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5058 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
5059 | ac_status=$? |
5060 | grep -v '^ *+' conftest.er1 >conftest.err |
5061 | rm -f conftest.er1 |
5062 | cat conftest.err >&5 |
5063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
5064 | (exit $ac_status); } && { |
5065 | test -z "$ac_c_werror_flag" || |
5066 | test ! -s conftest.err |
5067 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
5068 | eval "$as_ac_Header=yes" |
5069 | else |
5070 | echo "$as_me: failed program was:" >&5 |
5071 | sed 's/^/| /' conftest.$ac_ext >&5 |
5072 | |
64ff59ba |
5073 | eval "$as_ac_Header=no" |
d9898ee8 |
5074 | fi |
64ff59ba |
5075 | |
5076 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
5077 | fi |
64ff59ba |
5078 | ac_res=`eval echo '${'$as_ac_Header'}'` |
5079 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
5080 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
5081 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
5082 | cat >>confdefs.h <<_ACEOF |
5083 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
5084 | _ACEOF |
5085 | |
5086 | fi |
5087 | |
5088 | done |
5089 | |
5090 | |
5091 | |
5092 | for ac_header in dlfcn.h |
5093 | do |
5094 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
64ff59ba |
5095 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5096 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5097 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
5098 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
5099 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5100 | fi |
64ff59ba |
5101 | ac_res=`eval echo '${'$as_ac_Header'}'` |
5102 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
5103 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
5104 | else |
5105 | # Is the header compilable? |
64ff59ba |
5106 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5107 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
d9898ee8 |
5108 | cat >conftest.$ac_ext <<_ACEOF |
5109 | /* confdefs.h. */ |
5110 | _ACEOF |
5111 | cat confdefs.h >>conftest.$ac_ext |
5112 | cat >>conftest.$ac_ext <<_ACEOF |
5113 | /* end confdefs.h. */ |
5114 | $ac_includes_default |
5115 | #include <$ac_header> |
5116 | _ACEOF |
5117 | rm -f conftest.$ac_objext |
64ff59ba |
5118 | if { (ac_try="$ac_compile" |
5119 | case "(($ac_try" in |
5120 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5121 | *) ac_try_echo=$ac_try;; |
5122 | esac |
5123 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5124 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
5125 | ac_status=$? |
5126 | grep -v '^ *+' conftest.er1 >conftest.err |
5127 | rm -f conftest.er1 |
5128 | cat conftest.err >&5 |
5129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
5130 | (exit $ac_status); } && { |
5131 | test -z "$ac_c_werror_flag" || |
5132 | test ! -s conftest.err |
5133 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
5134 | ac_header_compiler=yes |
5135 | else |
5136 | echo "$as_me: failed program was:" >&5 |
5137 | sed 's/^/| /' conftest.$ac_ext >&5 |
5138 | |
64ff59ba |
5139 | ac_header_compiler=no |
d9898ee8 |
5140 | fi |
64ff59ba |
5141 | |
5142 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5143 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5144 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
d9898ee8 |
5145 | |
5146 | # Is the header present? |
64ff59ba |
5147 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5148 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
d9898ee8 |
5149 | cat >conftest.$ac_ext <<_ACEOF |
5150 | /* confdefs.h. */ |
5151 | _ACEOF |
5152 | cat confdefs.h >>conftest.$ac_ext |
5153 | cat >>conftest.$ac_ext <<_ACEOF |
5154 | /* end confdefs.h. */ |
5155 | #include <$ac_header> |
5156 | _ACEOF |
64ff59ba |
5157 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5158 | case "(($ac_try" in |
5159 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5160 | *) ac_try_echo=$ac_try;; |
5161 | esac |
5162 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5163 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
5164 | ac_status=$? |
5165 | grep -v '^ *+' conftest.er1 >conftest.err |
5166 | rm -f conftest.er1 |
5167 | cat conftest.err >&5 |
5168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
5169 | (exit $ac_status); } >/dev/null && { |
5170 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
5171 | test ! -s conftest.err |
5172 | }; then |
d9898ee8 |
5173 | ac_header_preproc=yes |
5174 | else |
5175 | echo "$as_me: failed program was:" >&5 |
5176 | sed 's/^/| /' conftest.$ac_ext >&5 |
5177 | |
5178 | ac_header_preproc=no |
5179 | fi |
64ff59ba |
5180 | |
d9898ee8 |
5181 | rm -f conftest.err conftest.$ac_ext |
64ff59ba |
5182 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5183 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
d9898ee8 |
5184 | |
5185 | # So? What about this header? |
5186 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5187 | yes:no: ) |
5188 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5189 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
5190 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
5191 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
5192 | ac_header_preproc=yes |
5193 | ;; |
5194 | no:yes:* ) |
5195 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5196 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
5197 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
5198 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
5199 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
5200 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
5201 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
5202 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
5203 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
5204 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
5205 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
5206 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
64ff59ba |
5207 | ( cat <<\_ASBOX |
d9898ee8 |
5208 | ## -------------------------------------------------- ## |
5209 | ## Report this to courier-users@lists.sourceforge.net ## |
5210 | ## -------------------------------------------------- ## |
5211 | _ASBOX |
64ff59ba |
5212 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
d9898ee8 |
5213 | ;; |
5214 | esac |
64ff59ba |
5215 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5216 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
5217 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
5218 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5219 | else |
5220 | eval "$as_ac_Header=\$ac_header_preproc" |
5221 | fi |
64ff59ba |
5222 | ac_res=`eval echo '${'$as_ac_Header'}'` |
5223 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
5224 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
5225 | |
5226 | fi |
5227 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
5228 | cat >>confdefs.h <<_ACEOF |
5229 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
5230 | _ACEOF |
5231 | |
5232 | fi |
5233 | |
5234 | done |
5235 | |
64ff59ba |
5236 | ac_ext=cpp |
d9898ee8 |
5237 | ac_cpp='$CXXCPP $CPPFLAGS' |
5238 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5239 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5240 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
64ff59ba |
5241 | if test -z "$CXX"; then |
5242 | if test -n "$CCC"; then |
5243 | CXX=$CCC |
5244 | else |
5245 | if test -n "$ac_tool_prefix"; then |
5246 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
d9898ee8 |
5247 | do |
5248 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
5249 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
64ff59ba |
5250 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5251 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
5252 | if test "${ac_cv_prog_CXX+set}" = set; then |
5253 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5254 | else |
5255 | if test -n "$CXX"; then |
5256 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
5257 | else |
5258 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5259 | for as_dir in $PATH |
5260 | do |
5261 | IFS=$as_save_IFS |
5262 | test -z "$as_dir" && as_dir=. |
5263 | for ac_exec_ext in '' $ac_executable_extensions; do |
64ff59ba |
5264 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
5265 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
5266 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5267 | break 2 |
5268 | fi |
5269 | done |
5270 | done |
64ff59ba |
5271 | IFS=$as_save_IFS |
d9898ee8 |
5272 | |
5273 | fi |
5274 | fi |
5275 | CXX=$ac_cv_prog_CXX |
5276 | if test -n "$CXX"; then |
64ff59ba |
5277 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
5278 | echo "${ECHO_T}$CXX" >&6; } |
d9898ee8 |
5279 | else |
64ff59ba |
5280 | { echo "$as_me:$LINENO: result: no" >&5 |
5281 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
5282 | fi |
5283 | |
64ff59ba |
5284 | |
d9898ee8 |
5285 | test -n "$CXX" && break |
5286 | done |
5287 | fi |
5288 | if test -z "$CXX"; then |
5289 | ac_ct_CXX=$CXX |
64ff59ba |
5290 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
d9898ee8 |
5291 | do |
5292 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
5293 | set dummy $ac_prog; ac_word=$2 |
64ff59ba |
5294 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5295 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
5296 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
5297 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5298 | else |
5299 | if test -n "$ac_ct_CXX"; then |
5300 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
5301 | else |
5302 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5303 | for as_dir in $PATH |
5304 | do |
5305 | IFS=$as_save_IFS |
5306 | test -z "$as_dir" && as_dir=. |
5307 | for ac_exec_ext in '' $ac_executable_extensions; do |
64ff59ba |
5308 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
5309 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
5310 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5311 | break 2 |
5312 | fi |
5313 | done |
5314 | done |
64ff59ba |
5315 | IFS=$as_save_IFS |
d9898ee8 |
5316 | |
5317 | fi |
5318 | fi |
5319 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
5320 | if test -n "$ac_ct_CXX"; then |
64ff59ba |
5321 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
5322 | echo "${ECHO_T}$ac_ct_CXX" >&6; } |
d9898ee8 |
5323 | else |
64ff59ba |
5324 | { echo "$as_me:$LINENO: result: no" >&5 |
5325 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
5326 | fi |
5327 | |
64ff59ba |
5328 | |
d9898ee8 |
5329 | test -n "$ac_ct_CXX" && break |
5330 | done |
d9898ee8 |
5331 | |
64ff59ba |
5332 | if test "x$ac_ct_CXX" = x; then |
5333 | CXX="g++" |
5334 | else |
5335 | case $cross_compiling:$ac_tool_warned in |
5336 | yes:) |
5337 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
5338 | whose name does not start with the host triplet. If you think this |
5339 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
5340 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
5341 | whose name does not start with the host triplet. If you think this |
5342 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
5343 | ac_tool_warned=yes ;; |
5344 | esac |
5345 | CXX=$ac_ct_CXX |
5346 | fi |
d9898ee8 |
5347 | fi |
5348 | |
64ff59ba |
5349 | fi |
5350 | fi |
d9898ee8 |
5351 | # Provide some information about the compiler. |
64ff59ba |
5352 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
d9898ee8 |
5353 | ac_compiler=`set X $ac_compile; echo $2` |
64ff59ba |
5354 | { (ac_try="$ac_compiler --version >&5" |
5355 | case "(($ac_try" in |
5356 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5357 | *) ac_try_echo=$ac_try;; |
5358 | esac |
5359 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5360 | (eval "$ac_compiler --version >&5") 2>&5 |
d9898ee8 |
5361 | ac_status=$? |
5362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5363 | (exit $ac_status); } |
64ff59ba |
5364 | { (ac_try="$ac_compiler -v >&5" |
5365 | case "(($ac_try" in |
5366 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5367 | *) ac_try_echo=$ac_try;; |
5368 | esac |
5369 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5370 | (eval "$ac_compiler -v >&5") 2>&5 |
d9898ee8 |
5371 | ac_status=$? |
5372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5373 | (exit $ac_status); } |
64ff59ba |
5374 | { (ac_try="$ac_compiler -V >&5" |
5375 | case "(($ac_try" in |
5376 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5377 | *) ac_try_echo=$ac_try;; |
5378 | esac |
5379 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5380 | (eval "$ac_compiler -V >&5") 2>&5 |
d9898ee8 |
5381 | ac_status=$? |
5382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5383 | (exit $ac_status); } |
5384 | |
64ff59ba |
5385 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
5386 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
d9898ee8 |
5387 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
5388 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5389 | else |
5390 | cat >conftest.$ac_ext <<_ACEOF |
5391 | /* confdefs.h. */ |
5392 | _ACEOF |
5393 | cat confdefs.h >>conftest.$ac_ext |
5394 | cat >>conftest.$ac_ext <<_ACEOF |
5395 | /* end confdefs.h. */ |
5396 | |
5397 | int |
5398 | main () |
5399 | { |
5400 | #ifndef __GNUC__ |
5401 | choke me |
5402 | #endif |
5403 | |
5404 | ; |
5405 | return 0; |
5406 | } |
5407 | _ACEOF |
5408 | rm -f conftest.$ac_objext |
64ff59ba |
5409 | if { (ac_try="$ac_compile" |
5410 | case "(($ac_try" in |
5411 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5412 | *) ac_try_echo=$ac_try;; |
5413 | esac |
5414 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5415 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
5416 | ac_status=$? |
5417 | grep -v '^ *+' conftest.er1 >conftest.err |
5418 | rm -f conftest.er1 |
5419 | cat conftest.err >&5 |
5420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
5421 | (exit $ac_status); } && { |
5422 | test -z "$ac_cxx_werror_flag" || |
5423 | test ! -s conftest.err |
5424 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
5425 | ac_compiler_gnu=yes |
5426 | else |
5427 | echo "$as_me: failed program was:" >&5 |
5428 | sed 's/^/| /' conftest.$ac_ext >&5 |
5429 | |
64ff59ba |
5430 | ac_compiler_gnu=no |
d9898ee8 |
5431 | fi |
64ff59ba |
5432 | |
5433 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
5434 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
5435 | |
5436 | fi |
64ff59ba |
5437 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
5438 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
d9898ee8 |
5439 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
5440 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
5441 | ac_save_CXXFLAGS=$CXXFLAGS |
64ff59ba |
5442 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
5443 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
d9898ee8 |
5444 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
5445 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5446 | else |
64ff59ba |
5447 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
5448 | ac_cxx_werror_flag=yes |
5449 | ac_cv_prog_cxx_g=no |
5450 | CXXFLAGS="-g" |
5451 | cat >conftest.$ac_ext <<_ACEOF |
d9898ee8 |
5452 | /* confdefs.h. */ |
5453 | _ACEOF |
5454 | cat confdefs.h >>conftest.$ac_ext |
5455 | cat >>conftest.$ac_ext <<_ACEOF |
5456 | /* end confdefs.h. */ |
5457 | |
5458 | int |
5459 | main () |
5460 | { |
5461 | |
5462 | ; |
5463 | return 0; |
5464 | } |
5465 | _ACEOF |
5466 | rm -f conftest.$ac_objext |
64ff59ba |
5467 | if { (ac_try="$ac_compile" |
5468 | case "(($ac_try" in |
5469 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5470 | *) ac_try_echo=$ac_try;; |
5471 | esac |
5472 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5473 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
5474 | ac_status=$? |
5475 | grep -v '^ *+' conftest.er1 >conftest.err |
5476 | rm -f conftest.er1 |
5477 | cat conftest.err >&5 |
5478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
5479 | (exit $ac_status); } && { |
5480 | test -z "$ac_cxx_werror_flag" || |
5481 | test ! -s conftest.err |
5482 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
5483 | ac_cv_prog_cxx_g=yes |
5484 | else |
5485 | echo "$as_me: failed program was:" >&5 |
5486 | sed 's/^/| /' conftest.$ac_ext >&5 |
5487 | |
64ff59ba |
5488 | CXXFLAGS="" |
5489 | cat >conftest.$ac_ext <<_ACEOF |
d9898ee8 |
5490 | /* confdefs.h. */ |
5491 | _ACEOF |
5492 | cat confdefs.h >>conftest.$ac_ext |
5493 | cat >>conftest.$ac_ext <<_ACEOF |
5494 | /* end confdefs.h. */ |
64ff59ba |
5495 | |
d9898ee8 |
5496 | int |
5497 | main () |
5498 | { |
64ff59ba |
5499 | |
d9898ee8 |
5500 | ; |
5501 | return 0; |
5502 | } |
5503 | _ACEOF |
5504 | rm -f conftest.$ac_objext |
64ff59ba |
5505 | if { (ac_try="$ac_compile" |
5506 | case "(($ac_try" in |
5507 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5508 | *) ac_try_echo=$ac_try;; |
5509 | esac |
5510 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5511 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
5512 | ac_status=$? |
5513 | grep -v '^ *+' conftest.er1 >conftest.err |
5514 | rm -f conftest.er1 |
5515 | cat conftest.err >&5 |
5516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
5517 | (exit $ac_status); } && { |
5518 | test -z "$ac_cxx_werror_flag" || |
5519 | test ! -s conftest.err |
5520 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
5521 | : |
5522 | else |
5523 | echo "$as_me: failed program was:" >&5 |
5524 | sed 's/^/| /' conftest.$ac_ext >&5 |
5525 | |
64ff59ba |
5526 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
5527 | CXXFLAGS="-g" |
5528 | cat >conftest.$ac_ext <<_ACEOF |
d9898ee8 |
5529 | /* confdefs.h. */ |
5530 | _ACEOF |
5531 | cat confdefs.h >>conftest.$ac_ext |
5532 | cat >>conftest.$ac_ext <<_ACEOF |
5533 | /* end confdefs.h. */ |
64ff59ba |
5534 | |
d9898ee8 |
5535 | int |
5536 | main () |
5537 | { |
64ff59ba |
5538 | |
d9898ee8 |
5539 | ; |
5540 | return 0; |
5541 | } |
5542 | _ACEOF |
5543 | rm -f conftest.$ac_objext |
64ff59ba |
5544 | if { (ac_try="$ac_compile" |
5545 | case "(($ac_try" in |
5546 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5547 | *) ac_try_echo=$ac_try;; |
5548 | esac |
5549 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5550 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
5551 | ac_status=$? |
5552 | grep -v '^ *+' conftest.er1 >conftest.err |
5553 | rm -f conftest.er1 |
5554 | cat conftest.err >&5 |
5555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
5556 | (exit $ac_status); } && { |
5557 | test -z "$ac_cxx_werror_flag" || |
5558 | test ! -s conftest.err |
5559 | } && test -s conftest.$ac_objext; then |
5560 | ac_cv_prog_cxx_g=yes |
d9898ee8 |
5561 | else |
5562 | echo "$as_me: failed program was:" >&5 |
5563 | sed 's/^/| /' conftest.$ac_ext >&5 |
5564 | |
64ff59ba |
5565 | |
d9898ee8 |
5566 | fi |
64ff59ba |
5567 | |
5568 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5569 | fi |
5570 | |
5571 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
5572 | fi |
5573 | |
64ff59ba |
5574 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5575 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
5576 | fi |
5577 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
5578 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
5579 | if test "$ac_test_CXXFLAGS" = set; then |
5580 | CXXFLAGS=$ac_save_CXXFLAGS |
5581 | elif test $ac_cv_prog_cxx_g = yes; then |
5582 | if test "$GXX" = yes; then |
5583 | CXXFLAGS="-g -O2" |
5584 | else |
5585 | CXXFLAGS="-g" |
5586 | fi |
5587 | else |
5588 | if test "$GXX" = yes; then |
5589 | CXXFLAGS="-O2" |
5590 | else |
5591 | CXXFLAGS= |
5592 | fi |
5593 | fi |
5594 | ac_ext=cpp |
d9898ee8 |
5595 | ac_cpp='$CXXCPP $CPPFLAGS' |
5596 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5597 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5598 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
5599 | |
5600 | depcc="$CXX" am_compiler_list= |
5601 | |
64ff59ba |
5602 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
5603 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } |
d9898ee8 |
5604 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
5605 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5606 | else |
5607 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
5608 | # We make a subdir and do the tests there. Otherwise we can end up |
5609 | # making bogus files that we don't know about and never remove. For |
5610 | # instance it was reported that on HP-UX the gcc test will end up |
5611 | # making a dummy file named `D' -- because `-MD' means `put the output |
5612 | # in D'. |
5613 | mkdir conftest.dir |
5614 | # Copy depcomp to subdir because otherwise we won't find it if we're |
5615 | # using a relative directory. |
5616 | cp "$am_depcomp" conftest.dir |
5617 | cd conftest.dir |
5618 | # We will build objects and dependencies in a subdirectory because |
5619 | # it helps to detect inapplicable dependency modes. For instance |
5620 | # both Tru64's cc and ICC support -MD to output dependencies as a |
5621 | # side effect of compilation, but ICC will put the dependencies in |
5622 | # the current directory while Tru64 will put them in the object |
5623 | # directory. |
5624 | mkdir sub |
5625 | |
5626 | am_cv_CXX_dependencies_compiler_type=none |
5627 | if test "$am_compiler_list" = ""; then |
5628 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
5629 | fi |
5630 | for depmode in $am_compiler_list; do |
5631 | # Setup a source with many dependencies, because some compilers |
5632 | # like to wrap large dependency lists on column 80 (with \), and |
5633 | # we should not choose a depcomp mode which is confused by this. |
5634 | # |
5635 | # We need to recreate these files for each test, as the compiler may |
5636 | # overwrite some of them when testing with obscure command lines. |
5637 | # This happens at least with the AIX C compiler. |
5638 | : > sub/conftest.c |
5639 | for i in 1 2 3 4 5 6; do |
5640 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
5641 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
5642 | # Solaris 8's {/usr,}/bin/sh. |
5643 | touch sub/conftst$i.h |
5644 | done |
5645 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
5646 | |
5647 | case $depmode in |
5648 | nosideeffect) |
5649 | # after this tag, mechanisms are not by side-effect, so they'll |
5650 | # only be used when explicitly requested |
5651 | if test "x$enable_dependency_tracking" = xyes; then |
5652 | continue |
5653 | else |
5654 | break |
5655 | fi |
5656 | ;; |
5657 | none) break ;; |
5658 | esac |
5659 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
5660 | # mode. It turns out that the SunPro C++ compiler does not properly |
5661 | # handle `-M -o', and we need to detect this. |
5662 | if depmode=$depmode \ |
5663 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
5664 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
5665 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
5666 | >/dev/null 2>conftest.err && |
64ff59ba |
5667 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
d9898ee8 |
5668 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
5669 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
5670 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
5671 | # icc doesn't choke on unknown options, it will just issue warnings |
5672 | # or remarks (even with -Werror). So we grep stderr for any message |
5673 | # that says an option was ignored or not supported. |
5674 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
5675 | # icc: Command line warning: ignoring option '-M'; no argument required |
5676 | # The diagnosis changed in icc 8.0: |
5677 | # icc: Command line remark: option '-MP' not supported |
5678 | if (grep 'ignoring option' conftest.err || |
5679 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
5680 | am_cv_CXX_dependencies_compiler_type=$depmode |
5681 | break |
5682 | fi |
5683 | fi |
5684 | done |
5685 | |
5686 | cd .. |
5687 | rm -rf conftest.dir |
5688 | else |
5689 | am_cv_CXX_dependencies_compiler_type=none |
5690 | fi |
5691 | |
5692 | fi |
64ff59ba |
5693 | { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
5694 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } |
d9898ee8 |
5695 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
5696 | |
64ff59ba |
5697 | if |
d9898ee8 |
5698 | test "x$enable_dependency_tracking" != xno \ |
5699 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
5700 | am__fastdepCXX_TRUE= |
5701 | am__fastdepCXX_FALSE='#' |
5702 | else |
5703 | am__fastdepCXX_TRUE='#' |
5704 | am__fastdepCXX_FALSE= |
5705 | fi |
5706 | |
5707 | |
5708 | |
5709 | |
5710 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
5711 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
5712 | (test "X$CXX" != "Xg++"))) ; then |
64ff59ba |
5713 | ac_ext=cpp |
d9898ee8 |
5714 | ac_cpp='$CXXCPP $CPPFLAGS' |
5715 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5716 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5717 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
64ff59ba |
5718 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
5719 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } |
d9898ee8 |
5720 | if test -z "$CXXCPP"; then |
5721 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
5722 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5723 | else |
5724 | # Double quotes because CXXCPP needs to be expanded |
5725 | for CXXCPP in "$CXX -E" "/lib/cpp" |
5726 | do |
5727 | ac_preproc_ok=false |
5728 | for ac_cxx_preproc_warn_flag in '' yes |
5729 | do |
5730 | # Use a header file that comes with gcc, so configuring glibc |
5731 | # with a fresh cross-compiler works. |
5732 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
5733 | # <limits.h> exists even on freestanding compilers. |
5734 | # On the NeXT, cc -E runs the code through the compiler's parser, |
5735 | # not just through cpp. "Syntax error" is here to catch this case. |
5736 | cat >conftest.$ac_ext <<_ACEOF |
5737 | /* confdefs.h. */ |
5738 | _ACEOF |
5739 | cat confdefs.h >>conftest.$ac_ext |
5740 | cat >>conftest.$ac_ext <<_ACEOF |
5741 | /* end confdefs.h. */ |
5742 | #ifdef __STDC__ |
5743 | # include <limits.h> |
5744 | #else |
5745 | # include <assert.h> |
5746 | #endif |
5747 | Syntax error |
5748 | _ACEOF |
64ff59ba |
5749 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5750 | case "(($ac_try" in |
5751 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5752 | *) ac_try_echo=$ac_try;; |
5753 | esac |
5754 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5755 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
5756 | ac_status=$? |
5757 | grep -v '^ *+' conftest.er1 >conftest.err |
5758 | rm -f conftest.er1 |
5759 | cat conftest.err >&5 |
5760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
5761 | (exit $ac_status); } >/dev/null && { |
5762 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
5763 | test ! -s conftest.err |
5764 | }; then |
d9898ee8 |
5765 | : |
5766 | else |
5767 | echo "$as_me: failed program was:" >&5 |
5768 | sed 's/^/| /' conftest.$ac_ext >&5 |
5769 | |
5770 | # Broken: fails on valid input. |
5771 | continue |
5772 | fi |
64ff59ba |
5773 | |
d9898ee8 |
5774 | rm -f conftest.err conftest.$ac_ext |
5775 | |
64ff59ba |
5776 | # OK, works on sane cases. Now check whether nonexistent headers |
d9898ee8 |
5777 | # can be detected and how. |
5778 | cat >conftest.$ac_ext <<_ACEOF |
5779 | /* confdefs.h. */ |
5780 | _ACEOF |
5781 | cat confdefs.h >>conftest.$ac_ext |
5782 | cat >>conftest.$ac_ext <<_ACEOF |
5783 | /* end confdefs.h. */ |
5784 | #include <ac_nonexistent.h> |
5785 | _ACEOF |
64ff59ba |
5786 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5787 | case "(($ac_try" in |
5788 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5789 | *) ac_try_echo=$ac_try;; |
5790 | esac |
5791 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5792 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
5793 | ac_status=$? |
5794 | grep -v '^ *+' conftest.er1 >conftest.err |
5795 | rm -f conftest.er1 |
5796 | cat conftest.err >&5 |
5797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
5798 | (exit $ac_status); } >/dev/null && { |
5799 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
5800 | test ! -s conftest.err |
5801 | }; then |
d9898ee8 |
5802 | # Broken: success on invalid input. |
5803 | continue |
5804 | else |
5805 | echo "$as_me: failed program was:" >&5 |
5806 | sed 's/^/| /' conftest.$ac_ext >&5 |
5807 | |
5808 | # Passes both tests. |
5809 | ac_preproc_ok=: |
5810 | break |
5811 | fi |
64ff59ba |
5812 | |
d9898ee8 |
5813 | rm -f conftest.err conftest.$ac_ext |
5814 | |
5815 | done |
5816 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
5817 | rm -f conftest.err conftest.$ac_ext |
5818 | if $ac_preproc_ok; then |
5819 | break |
5820 | fi |
5821 | |
5822 | done |
5823 | ac_cv_prog_CXXCPP=$CXXCPP |
5824 | |
5825 | fi |
5826 | CXXCPP=$ac_cv_prog_CXXCPP |
5827 | else |
5828 | ac_cv_prog_CXXCPP=$CXXCPP |
5829 | fi |
64ff59ba |
5830 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
5831 | echo "${ECHO_T}$CXXCPP" >&6; } |
d9898ee8 |
5832 | ac_preproc_ok=false |
5833 | for ac_cxx_preproc_warn_flag in '' yes |
5834 | do |
5835 | # Use a header file that comes with gcc, so configuring glibc |
5836 | # with a fresh cross-compiler works. |
5837 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
5838 | # <limits.h> exists even on freestanding compilers. |
5839 | # On the NeXT, cc -E runs the code through the compiler's parser, |
5840 | # not just through cpp. "Syntax error" is here to catch this case. |
5841 | cat >conftest.$ac_ext <<_ACEOF |
5842 | /* confdefs.h. */ |
5843 | _ACEOF |
5844 | cat confdefs.h >>conftest.$ac_ext |
5845 | cat >>conftest.$ac_ext <<_ACEOF |
5846 | /* end confdefs.h. */ |
5847 | #ifdef __STDC__ |
5848 | # include <limits.h> |
5849 | #else |
5850 | # include <assert.h> |
5851 | #endif |
5852 | Syntax error |
5853 | _ACEOF |
64ff59ba |
5854 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5855 | case "(($ac_try" in |
5856 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5857 | *) ac_try_echo=$ac_try;; |
5858 | esac |
5859 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5860 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
5861 | ac_status=$? |
5862 | grep -v '^ *+' conftest.er1 >conftest.err |
5863 | rm -f conftest.er1 |
5864 | cat conftest.err >&5 |
5865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
5866 | (exit $ac_status); } >/dev/null && { |
5867 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
5868 | test ! -s conftest.err |
5869 | }; then |
d9898ee8 |
5870 | : |
5871 | else |
5872 | echo "$as_me: failed program was:" >&5 |
5873 | sed 's/^/| /' conftest.$ac_ext >&5 |
5874 | |
5875 | # Broken: fails on valid input. |
5876 | continue |
5877 | fi |
64ff59ba |
5878 | |
d9898ee8 |
5879 | rm -f conftest.err conftest.$ac_ext |
5880 | |
64ff59ba |
5881 | # OK, works on sane cases. Now check whether nonexistent headers |
d9898ee8 |
5882 | # can be detected and how. |
5883 | cat >conftest.$ac_ext <<_ACEOF |
5884 | /* confdefs.h. */ |
5885 | _ACEOF |
5886 | cat confdefs.h >>conftest.$ac_ext |
5887 | cat >>conftest.$ac_ext <<_ACEOF |
5888 | /* end confdefs.h. */ |
5889 | #include <ac_nonexistent.h> |
5890 | _ACEOF |
64ff59ba |
5891 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5892 | case "(($ac_try" in |
5893 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5894 | *) ac_try_echo=$ac_try;; |
5895 | esac |
5896 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5897 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
5898 | ac_status=$? |
5899 | grep -v '^ *+' conftest.er1 >conftest.err |
5900 | rm -f conftest.er1 |
5901 | cat conftest.err >&5 |
5902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
5903 | (exit $ac_status); } >/dev/null && { |
5904 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
5905 | test ! -s conftest.err |
5906 | }; then |
d9898ee8 |
5907 | # Broken: success on invalid input. |
5908 | continue |
5909 | else |
5910 | echo "$as_me: failed program was:" >&5 |
5911 | sed 's/^/| /' conftest.$ac_ext >&5 |
5912 | |
5913 | # Passes both tests. |
5914 | ac_preproc_ok=: |
5915 | break |
5916 | fi |
64ff59ba |
5917 | |
d9898ee8 |
5918 | rm -f conftest.err conftest.$ac_ext |
5919 | |
5920 | done |
5921 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
5922 | rm -f conftest.err conftest.$ac_ext |
5923 | if $ac_preproc_ok; then |
5924 | : |
5925 | else |
5926 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
5927 | See \`config.log' for more details." >&5 |
5928 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
5929 | See \`config.log' for more details." >&2;} |
5930 | { (exit 1); exit 1; }; } |
5931 | fi |
5932 | |
64ff59ba |
5933 | ac_ext=cpp |
d9898ee8 |
5934 | ac_cpp='$CXXCPP $CPPFLAGS' |
5935 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5936 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5937 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
5938 | |
5939 | fi |
5940 | |
5941 | |
5942 | ac_ext=f |
5943 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
5944 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5945 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
5946 | if test -n "$ac_tool_prefix"; then |
64ff59ba |
5947 | 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 |
5948 | do |
5949 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
5950 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
64ff59ba |
5951 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5952 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
5953 | if test "${ac_cv_prog_F77+set}" = set; then |
5954 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5955 | else |
5956 | if test -n "$F77"; then |
5957 | ac_cv_prog_F77="$F77" # Let the user override the test. |
5958 | else |
5959 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5960 | for as_dir in $PATH |
5961 | do |
5962 | IFS=$as_save_IFS |
5963 | test -z "$as_dir" && as_dir=. |
5964 | for ac_exec_ext in '' $ac_executable_extensions; do |
64ff59ba |
5965 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
5966 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
5967 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5968 | break 2 |
5969 | fi |
5970 | done |
5971 | done |
64ff59ba |
5972 | IFS=$as_save_IFS |
d9898ee8 |
5973 | |
5974 | fi |
5975 | fi |
5976 | F77=$ac_cv_prog_F77 |
5977 | if test -n "$F77"; then |
64ff59ba |
5978 | { echo "$as_me:$LINENO: result: $F77" >&5 |
5979 | echo "${ECHO_T}$F77" >&6; } |
d9898ee8 |
5980 | else |
64ff59ba |
5981 | { echo "$as_me:$LINENO: result: no" >&5 |
5982 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
5983 | fi |
5984 | |
64ff59ba |
5985 | |
d9898ee8 |
5986 | test -n "$F77" && break |
5987 | done |
5988 | fi |
5989 | if test -z "$F77"; then |
5990 | ac_ct_F77=$F77 |
64ff59ba |
5991 | 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 |
5992 | do |
5993 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
5994 | set dummy $ac_prog; ac_word=$2 |
64ff59ba |
5995 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5996 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
5997 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
5998 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5999 | else |
6000 | if test -n "$ac_ct_F77"; then |
6001 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
6002 | else |
6003 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6004 | for as_dir in $PATH |
6005 | do |
6006 | IFS=$as_save_IFS |
6007 | test -z "$as_dir" && as_dir=. |
6008 | for ac_exec_ext in '' $ac_executable_extensions; do |
64ff59ba |
6009 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
6010 | ac_cv_prog_ac_ct_F77="$ac_prog" |
6011 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6012 | break 2 |
6013 | fi |
6014 | done |
6015 | done |
64ff59ba |
6016 | IFS=$as_save_IFS |
d9898ee8 |
6017 | |
6018 | fi |
6019 | fi |
6020 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
6021 | if test -n "$ac_ct_F77"; then |
64ff59ba |
6022 | { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
6023 | echo "${ECHO_T}$ac_ct_F77" >&6; } |
d9898ee8 |
6024 | else |
64ff59ba |
6025 | { echo "$as_me:$LINENO: result: no" >&5 |
6026 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
6027 | fi |
6028 | |
64ff59ba |
6029 | |
d9898ee8 |
6030 | test -n "$ac_ct_F77" && break |
6031 | done |
6032 | |
64ff59ba |
6033 | if test "x$ac_ct_F77" = x; then |
6034 | F77="" |
6035 | else |
6036 | case $cross_compiling:$ac_tool_warned in |
6037 | yes:) |
6038 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
6039 | whose name does not start with the host triplet. If you think this |
6040 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
6041 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
6042 | whose name does not start with the host triplet. If you think this |
6043 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
6044 | ac_tool_warned=yes ;; |
6045 | esac |
6046 | F77=$ac_ct_F77 |
6047 | fi |
d9898ee8 |
6048 | fi |
6049 | |
6050 | |
6051 | # Provide some information about the compiler. |
64ff59ba |
6052 | echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 |
d9898ee8 |
6053 | ac_compiler=`set X $ac_compile; echo $2` |
64ff59ba |
6054 | { (ac_try="$ac_compiler --version >&5" |
6055 | case "(($ac_try" in |
6056 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6057 | *) ac_try_echo=$ac_try;; |
6058 | esac |
6059 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6060 | (eval "$ac_compiler --version >&5") 2>&5 |
d9898ee8 |
6061 | ac_status=$? |
6062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6063 | (exit $ac_status); } |
64ff59ba |
6064 | { (ac_try="$ac_compiler -v >&5" |
6065 | case "(($ac_try" in |
6066 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6067 | *) ac_try_echo=$ac_try;; |
6068 | esac |
6069 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6070 | (eval "$ac_compiler -v >&5") 2>&5 |
d9898ee8 |
6071 | ac_status=$? |
6072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6073 | (exit $ac_status); } |
64ff59ba |
6074 | { (ac_try="$ac_compiler -V >&5" |
6075 | case "(($ac_try" in |
6076 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6077 | *) ac_try_echo=$ac_try;; |
6078 | esac |
6079 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6080 | (eval "$ac_compiler -V >&5") 2>&5 |
d9898ee8 |
6081 | ac_status=$? |
6082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6083 | (exit $ac_status); } |
6084 | rm -f a.out |
6085 | |
6086 | # If we don't use `.F' as extension, the preprocessor is not run on the |
6087 | # input file. (Note that this only needs to work for GNU compilers.) |
6088 | ac_save_ext=$ac_ext |
6089 | ac_ext=F |
64ff59ba |
6090 | { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
6091 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } |
d9898ee8 |
6092 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
6093 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6094 | else |
6095 | cat >conftest.$ac_ext <<_ACEOF |
6096 | program main |
6097 | #ifndef __GNUC__ |
6098 | choke me |
6099 | #endif |
6100 | |
6101 | end |
6102 | _ACEOF |
6103 | rm -f conftest.$ac_objext |
64ff59ba |
6104 | if { (ac_try="$ac_compile" |
6105 | case "(($ac_try" in |
6106 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6107 | *) ac_try_echo=$ac_try;; |
6108 | esac |
6109 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6110 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
6111 | ac_status=$? |
6112 | grep -v '^ *+' conftest.er1 >conftest.err |
6113 | rm -f conftest.er1 |
6114 | cat conftest.err >&5 |
6115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
6116 | (exit $ac_status); } && { |
6117 | test -z "$ac_f77_werror_flag" || |
6118 | test ! -s conftest.err |
6119 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
6120 | ac_compiler_gnu=yes |
6121 | else |
6122 | echo "$as_me: failed program was:" >&5 |
6123 | sed 's/^/| /' conftest.$ac_ext >&5 |
6124 | |
64ff59ba |
6125 | ac_compiler_gnu=no |
d9898ee8 |
6126 | fi |
64ff59ba |
6127 | |
6128 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
6129 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
6130 | |
6131 | fi |
64ff59ba |
6132 | { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
6133 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } |
d9898ee8 |
6134 | ac_ext=$ac_save_ext |
6135 | ac_test_FFLAGS=${FFLAGS+set} |
6136 | ac_save_FFLAGS=$FFLAGS |
6137 | FFLAGS= |
64ff59ba |
6138 | { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
6139 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } |
d9898ee8 |
6140 | if test "${ac_cv_prog_f77_g+set}" = set; then |
6141 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6142 | else |
6143 | FFLAGS=-g |
6144 | cat >conftest.$ac_ext <<_ACEOF |
6145 | program main |
6146 | |
6147 | end |
6148 | _ACEOF |
6149 | rm -f conftest.$ac_objext |
64ff59ba |
6150 | if { (ac_try="$ac_compile" |
6151 | case "(($ac_try" in |
6152 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6153 | *) ac_try_echo=$ac_try;; |
6154 | esac |
6155 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6156 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
6157 | ac_status=$? |
6158 | grep -v '^ *+' conftest.er1 >conftest.err |
6159 | rm -f conftest.er1 |
6160 | cat conftest.err >&5 |
6161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
6162 | (exit $ac_status); } && { |
6163 | test -z "$ac_f77_werror_flag" || |
6164 | test ! -s conftest.err |
6165 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
6166 | ac_cv_prog_f77_g=yes |
6167 | else |
6168 | echo "$as_me: failed program was:" >&5 |
6169 | sed 's/^/| /' conftest.$ac_ext >&5 |
6170 | |
64ff59ba |
6171 | ac_cv_prog_f77_g=no |
d9898ee8 |
6172 | fi |
64ff59ba |
6173 | |
6174 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
6175 | |
6176 | fi |
64ff59ba |
6177 | { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
6178 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } |
d9898ee8 |
6179 | if test "$ac_test_FFLAGS" = set; then |
6180 | FFLAGS=$ac_save_FFLAGS |
6181 | elif test $ac_cv_prog_f77_g = yes; then |
6182 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
6183 | FFLAGS="-g -O2" |
6184 | else |
6185 | FFLAGS="-g" |
6186 | fi |
6187 | else |
6188 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
6189 | FFLAGS="-O2" |
6190 | else |
6191 | FFLAGS= |
6192 | fi |
6193 | fi |
6194 | |
6195 | G77=`test $ac_compiler_gnu = yes && echo yes` |
6196 | ac_ext=c |
6197 | ac_cpp='$CPP $CPPFLAGS' |
6198 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6199 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6200 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
6201 | |
6202 | |
6203 | |
6204 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
6205 | |
6206 | # find the maximum length of command line arguments |
64ff59ba |
6207 | { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
6208 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } |
d9898ee8 |
6209 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
6210 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6211 | else |
6212 | i=0 |
6213 | teststring="ABCD" |
6214 | |
6215 | case $build_os in |
6216 | msdosdjgpp*) |
6217 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
6218 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
6219 | # during glob expansion). Even if it were fixed, the result of this |
6220 | # check would be larger than it should be. |
6221 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
6222 | ;; |
6223 | |
6224 | gnu*) |
6225 | # Under GNU Hurd, this test is not required because there is |
6226 | # no limit to the length of command line arguments. |
6227 | # Libtool will interpret -1 as no limit whatsoever |
6228 | lt_cv_sys_max_cmd_len=-1; |
6229 | ;; |
6230 | |
6231 | cygwin* | mingw*) |
6232 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
6233 | # about 5 minutes as the teststring grows exponentially. |
6234 | # Worse, since 9x/ME are not pre-emptively multitasking, |
6235 | # you end up with a "frozen" computer, even though with patience |
6236 | # the test eventually succeeds (with a max line length of 256k). |
6237 | # Instead, let's just punt: use the minimum linelength reported by |
6238 | # all of the supported platforms: 8192 (on NT/2K/XP). |
6239 | lt_cv_sys_max_cmd_len=8192; |
6240 | ;; |
6241 | |
6242 | amigaos*) |
6243 | # On AmigaOS with pdksh, this test takes hours, literally. |
6244 | # So we just punt and use a minimum line length of 8192. |
6245 | lt_cv_sys_max_cmd_len=8192; |
6246 | ;; |
6247 | |
6248 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
6249 | # This has been around since 386BSD, at least. Likely further. |
6250 | if test -x /sbin/sysctl; then |
6251 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
6252 | elif test -x /usr/sbin/sysctl; then |
6253 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
6254 | else |
6255 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
6256 | fi |
6257 | # And add a safety zone |
6258 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
6259 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
6260 | ;; |
6261 | |
6262 | interix*) |
6263 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
6264 | lt_cv_sys_max_cmd_len=196608 |
6265 | ;; |
6266 | |
6267 | osf*) |
6268 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
6269 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
6270 | # nice to cause kernel panics so lets avoid the loop below. |
6271 | # First set a reasonable default. |
6272 | lt_cv_sys_max_cmd_len=16384 |
6273 | # |
6274 | if test -x /sbin/sysconfig; then |
6275 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
6276 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
6277 | esac |
6278 | fi |
6279 | ;; |
6280 | sco3.2v5*) |
6281 | lt_cv_sys_max_cmd_len=102400 |
6282 | ;; |
6283 | sysv5* | sco5v6* | sysv4.2uw2*) |
6284 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
6285 | if test -n "$kargmax"; then |
6286 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
6287 | else |
6288 | lt_cv_sys_max_cmd_len=32768 |
6289 | fi |
6290 | ;; |
6291 | *) |
6292 | # If test is not a shell built-in, we'll probably end up computing a |
6293 | # maximum length that is only half of the actual maximum length, but |
6294 | # we can't tell. |
6295 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
6296 | while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
6297 | = "XX$teststring") >/dev/null 2>&1 && |
6298 | new_result=`expr "X$teststring" : ".*" 2>&1` && |
6299 | lt_cv_sys_max_cmd_len=$new_result && |
6300 | test $i != 17 # 1/2 MB should be enough |
6301 | do |
6302 | i=`expr $i + 1` |
6303 | teststring=$teststring$teststring |
6304 | done |
6305 | teststring= |
6306 | # Add a significant safety factor because C++ compilers can tack on massive |
6307 | # amounts of additional arguments before passing them to the linker. |
6308 | # It appears as though 1/2 is a usable value. |
6309 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
6310 | ;; |
6311 | esac |
6312 | |
6313 | fi |
6314 | |
6315 | if test -n $lt_cv_sys_max_cmd_len ; then |
64ff59ba |
6316 | { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
6317 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } |
d9898ee8 |
6318 | else |
64ff59ba |
6319 | { echo "$as_me:$LINENO: result: none" >&5 |
6320 | echo "${ECHO_T}none" >&6; } |
d9898ee8 |
6321 | fi |
6322 | |
6323 | |
6324 | |
6325 | |
6326 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
64ff59ba |
6327 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
6328 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } |
d9898ee8 |
6329 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
6330 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6331 | else |
6332 | |
6333 | # These are sane defaults that work on at least a few old systems. |
6334 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
6335 | |
6336 | # Character class describing NM global symbol codes. |
6337 | symcode='[BCDEGRST]' |
6338 | |
6339 | # Regexp to match symbols that can be accessed directly from C. |
6340 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
6341 | |
6342 | # Transform an extracted symbol line into a proper C declaration |
6343 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
6344 | |
6345 | # Transform an extracted symbol line into symbol name and symbol address |
6346 | 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'" |
6347 | |
6348 | # Define system-specific variables. |
6349 | case $host_os in |
6350 | aix*) |
6351 | symcode='[BCDT]' |
6352 | ;; |
6353 | cygwin* | mingw* | pw32*) |
6354 | symcode='[ABCDGISTW]' |
6355 | ;; |
6356 | hpux*) # Its linker distinguishes data from code symbols |
6357 | if test "$host_cpu" = ia64; then |
6358 | symcode='[ABCDEGRST]' |
6359 | fi |
6360 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
6361 | 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'" |
6362 | ;; |
6363 | linux*) |
6364 | if test "$host_cpu" = ia64; then |
6365 | symcode='[ABCDGIRSTW]' |
6366 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
6367 | 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'" |
6368 | fi |
6369 | ;; |
6370 | irix* | nonstopux*) |
6371 | symcode='[BCDEGRST]' |
6372 | ;; |
6373 | osf*) |
6374 | symcode='[BCDEGQRST]' |
6375 | ;; |
6376 | solaris*) |
6377 | symcode='[BDRT]' |
6378 | ;; |
6379 | sco3.2v5*) |
6380 | symcode='[DT]' |
6381 | ;; |
6382 | sysv4.2uw2*) |
6383 | symcode='[DT]' |
6384 | ;; |
6385 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
6386 | symcode='[ABDT]' |
6387 | ;; |
6388 | sysv4) |
6389 | symcode='[DFNSTU]' |
6390 | ;; |
6391 | esac |
6392 | |
6393 | # Handle CRLF in mingw tool chain |
6394 | opt_cr= |
6395 | case $build_os in |
6396 | mingw*) |
6397 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
6398 | ;; |
6399 | esac |
6400 | |
6401 | # If we're using GNU nm, then use its standard symbol codes. |
6402 | case `$NM -V 2>&1` in |
6403 | *GNU* | *'with BFD'*) |
6404 | symcode='[ABCDGIRSTW]' ;; |
6405 | esac |
6406 | |
6407 | # Try without a prefix undercore, then with it. |
6408 | for ac_symprfx in "" "_"; do |
6409 | |
6410 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
6411 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
6412 | |
6413 | # Write the raw and C identifiers. |
6414 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
6415 | |
6416 | # Check to see that the pipe works correctly. |
6417 | pipe_works=no |
6418 | |
6419 | rm -f conftest* |
6420 | cat > conftest.$ac_ext <<EOF |
6421 | #ifdef __cplusplus |
6422 | extern "C" { |
6423 | #endif |
6424 | char nm_test_var; |
6425 | void nm_test_func(){} |
6426 | #ifdef __cplusplus |
6427 | } |
6428 | #endif |
6429 | int main(){nm_test_var='a';nm_test_func();return(0);} |
6430 | EOF |
6431 | |
6432 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
6433 | (eval $ac_compile) 2>&5 |
6434 | ac_status=$? |
6435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6436 | (exit $ac_status); }; then |
6437 | # Now try to grab the symbols. |
6438 | nlist=conftest.nm |
6439 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
6440 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
6441 | ac_status=$? |
6442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6443 | (exit $ac_status); } && test -s "$nlist"; then |
6444 | # Try sorting and uniquifying the output. |
6445 | if sort "$nlist" | uniq > "$nlist"T; then |
6446 | mv -f "$nlist"T "$nlist" |
6447 | else |
6448 | rm -f "$nlist"T |
6449 | fi |
6450 | |
6451 | # Make sure that we snagged all the symbols we need. |
6452 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
6453 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
6454 | cat <<EOF > conftest.$ac_ext |
6455 | #ifdef __cplusplus |
6456 | extern "C" { |
6457 | #endif |
6458 | |
6459 | EOF |
6460 | # Now generate the symbol file. |
6461 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
6462 | |
6463 | cat <<EOF >> conftest.$ac_ext |
6464 | #if defined (__STDC__) && __STDC__ |
6465 | # define lt_ptr_t void * |
6466 | #else |
6467 | # define lt_ptr_t char * |
6468 | # define const |
6469 | #endif |
6470 | |
6471 | /* The mapping between symbol names and symbols. */ |
6472 | const struct { |
6473 | const char *name; |
6474 | lt_ptr_t address; |
6475 | } |
6476 | lt_preloaded_symbols[] = |
6477 | { |
6478 | EOF |
6479 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
6480 | cat <<\EOF >> conftest.$ac_ext |
6481 | {0, (lt_ptr_t) 0} |
6482 | }; |
6483 | |
6484 | #ifdef __cplusplus |
6485 | } |
6486 | #endif |
6487 | EOF |
6488 | # Now try linking the two files. |
6489 | mv conftest.$ac_objext conftstm.$ac_objext |
6490 | lt_save_LIBS="$LIBS" |
6491 | lt_save_CFLAGS="$CFLAGS" |
6492 | LIBS="conftstm.$ac_objext" |
6493 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
6494 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
6495 | (eval $ac_link) 2>&5 |
6496 | ac_status=$? |
6497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6498 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
6499 | pipe_works=yes |
6500 | fi |
6501 | LIBS="$lt_save_LIBS" |
6502 | CFLAGS="$lt_save_CFLAGS" |
6503 | else |
6504 | echo "cannot find nm_test_func in $nlist" >&5 |
6505 | fi |
6506 | else |
6507 | echo "cannot find nm_test_var in $nlist" >&5 |
6508 | fi |
6509 | else |
6510 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
6511 | fi |
6512 | else |
6513 | echo "$progname: failed program was:" >&5 |
6514 | cat conftest.$ac_ext >&5 |
6515 | fi |
6516 | rm -f conftest* conftst* |
6517 | |
6518 | # Do not use the global_symbol_pipe unless it works. |
6519 | if test "$pipe_works" = yes; then |
6520 | break |
6521 | else |
6522 | lt_cv_sys_global_symbol_pipe= |
6523 | fi |
6524 | done |
6525 | |
6526 | fi |
6527 | |
6528 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
6529 | lt_cv_sys_global_symbol_to_cdecl= |
6530 | fi |
6531 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
64ff59ba |
6532 | { echo "$as_me:$LINENO: result: failed" >&5 |
6533 | echo "${ECHO_T}failed" >&6; } |
d9898ee8 |
6534 | else |
64ff59ba |
6535 | { echo "$as_me:$LINENO: result: ok" >&5 |
6536 | echo "${ECHO_T}ok" >&6; } |
d9898ee8 |
6537 | fi |
6538 | |
64ff59ba |
6539 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
6540 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
d9898ee8 |
6541 | if test "${lt_cv_objdir+set}" = set; then |
6542 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6543 | else |
6544 | rm -f .libs 2>/dev/null |
6545 | mkdir .libs 2>/dev/null |
6546 | if test -d .libs; then |
6547 | lt_cv_objdir=.libs |
6548 | else |
6549 | # MS-DOS does not allow filenames that begin with a dot. |
6550 | lt_cv_objdir=_libs |
6551 | fi |
6552 | rmdir .libs 2>/dev/null |
6553 | fi |
64ff59ba |
6554 | { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
6555 | echo "${ECHO_T}$lt_cv_objdir" >&6; } |
d9898ee8 |
6556 | objdir=$lt_cv_objdir |
6557 | |
6558 | |
6559 | |
6560 | |
6561 | |
6562 | case $host_os in |
6563 | aix3*) |
6564 | # AIX sometimes has problems with the GCC collect2 program. For some |
6565 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
6566 | # vanish in a puff of smoke. |
6567 | if test "X${COLLECT_NAMES+set}" != Xset; then |
6568 | COLLECT_NAMES= |
6569 | export COLLECT_NAMES |
6570 | fi |
6571 | ;; |
6572 | esac |
6573 | |
6574 | # Sed substitution that helps us do robust quoting. It backslashifies |
6575 | # metacharacters that are still active within double-quoted strings. |
6576 | Xsed='sed -e 1s/^X//' |
6577 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
6578 | |
6579 | # Same as above, but do not quote variable references. |
6580 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
6581 | |
6582 | # Sed substitution to delay expansion of an escaped shell variable in a |
6583 | # double_quote_subst'ed string. |
6584 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
6585 | |
6586 | # Sed substitution to avoid accidental globbing in evaled expressions |
6587 | no_glob_subst='s/\*/\\\*/g' |
6588 | |
6589 | # Constants: |
6590 | rm="rm -f" |
6591 | |
6592 | # Global variables: |
6593 | default_ofile=libtool |
6594 | can_build_shared=yes |
6595 | |
6596 | # All known linkers require a `.a' archive for static linking (except MSVC, |
6597 | # which needs '.lib'). |
6598 | libext=a |
6599 | ltmain="$ac_aux_dir/ltmain.sh" |
6600 | ofile="$default_ofile" |
6601 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
6602 | |
6603 | if test -n "$ac_tool_prefix"; then |
6604 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
6605 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
64ff59ba |
6606 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6607 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
6608 | if test "${ac_cv_prog_AR+set}" = set; then |
6609 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6610 | else |
6611 | if test -n "$AR"; then |
6612 | ac_cv_prog_AR="$AR" # Let the user override the test. |
6613 | else |
6614 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6615 | for as_dir in $PATH |
6616 | do |
6617 | IFS=$as_save_IFS |
6618 | test -z "$as_dir" && as_dir=. |
6619 | for ac_exec_ext in '' $ac_executable_extensions; do |
64ff59ba |
6620 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
6621 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
6622 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6623 | break 2 |
6624 | fi |
6625 | done |
6626 | done |
64ff59ba |
6627 | IFS=$as_save_IFS |
d9898ee8 |
6628 | |
6629 | fi |
6630 | fi |
6631 | AR=$ac_cv_prog_AR |
6632 | if test -n "$AR"; then |
64ff59ba |
6633 | { echo "$as_me:$LINENO: result: $AR" >&5 |
6634 | echo "${ECHO_T}$AR" >&6; } |
d9898ee8 |
6635 | else |
64ff59ba |
6636 | { echo "$as_me:$LINENO: result: no" >&5 |
6637 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
6638 | fi |
6639 | |
64ff59ba |
6640 | |
d9898ee8 |
6641 | fi |
6642 | if test -z "$ac_cv_prog_AR"; then |
6643 | ac_ct_AR=$AR |
6644 | # Extract the first word of "ar", so it can be a program name with args. |
6645 | set dummy ar; ac_word=$2 |
64ff59ba |
6646 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6647 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
6648 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
6649 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6650 | else |
6651 | if test -n "$ac_ct_AR"; then |
6652 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
6653 | else |
6654 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6655 | for as_dir in $PATH |
6656 | do |
6657 | IFS=$as_save_IFS |
6658 | test -z "$as_dir" && as_dir=. |
6659 | for ac_exec_ext in '' $ac_executable_extensions; do |
64ff59ba |
6660 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
6661 | ac_cv_prog_ac_ct_AR="ar" |
6662 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6663 | break 2 |
6664 | fi |
6665 | done |
6666 | done |
64ff59ba |
6667 | IFS=$as_save_IFS |
d9898ee8 |
6668 | |
d9898ee8 |
6669 | fi |
6670 | fi |
6671 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
6672 | if test -n "$ac_ct_AR"; then |
64ff59ba |
6673 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
6674 | echo "${ECHO_T}$ac_ct_AR" >&6; } |
d9898ee8 |
6675 | else |
64ff59ba |
6676 | { echo "$as_me:$LINENO: result: no" >&5 |
6677 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
6678 | fi |
6679 | |
64ff59ba |
6680 | if test "x$ac_ct_AR" = x; then |
6681 | AR="false" |
6682 | else |
6683 | case $cross_compiling:$ac_tool_warned in |
6684 | yes:) |
6685 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
6686 | whose name does not start with the host triplet. If you think this |
6687 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
6688 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
6689 | whose name does not start with the host triplet. If you think this |
6690 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
6691 | ac_tool_warned=yes ;; |
6692 | esac |
6693 | AR=$ac_ct_AR |
6694 | fi |
d9898ee8 |
6695 | else |
6696 | AR="$ac_cv_prog_AR" |
6697 | fi |
6698 | |
6699 | if test -n "$ac_tool_prefix"; then |
6700 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
6701 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
64ff59ba |
6702 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6703 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
6704 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
6705 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6706 | else |
6707 | if test -n "$RANLIB"; then |
6708 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
6709 | else |
6710 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6711 | for as_dir in $PATH |
6712 | do |
6713 | IFS=$as_save_IFS |
6714 | test -z "$as_dir" && as_dir=. |
6715 | for ac_exec_ext in '' $ac_executable_extensions; do |
64ff59ba |
6716 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
6717 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
6718 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6719 | break 2 |
6720 | fi |
6721 | done |
6722 | done |
64ff59ba |
6723 | IFS=$as_save_IFS |
d9898ee8 |
6724 | |
6725 | fi |
6726 | fi |
6727 | RANLIB=$ac_cv_prog_RANLIB |
6728 | if test -n "$RANLIB"; then |
64ff59ba |
6729 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
6730 | echo "${ECHO_T}$RANLIB" >&6; } |
d9898ee8 |
6731 | else |
64ff59ba |
6732 | { echo "$as_me:$LINENO: result: no" >&5 |
6733 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
6734 | fi |
6735 | |
64ff59ba |
6736 | |
d9898ee8 |
6737 | fi |
6738 | if test -z "$ac_cv_prog_RANLIB"; then |
6739 | ac_ct_RANLIB=$RANLIB |
6740 | # Extract the first word of "ranlib", so it can be a program name with args. |
6741 | set dummy ranlib; ac_word=$2 |
64ff59ba |
6742 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6743 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
6744 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
6745 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6746 | else |
6747 | if test -n "$ac_ct_RANLIB"; then |
6748 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
6749 | else |
6750 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6751 | for as_dir in $PATH |
6752 | do |
6753 | IFS=$as_save_IFS |
6754 | test -z "$as_dir" && as_dir=. |
6755 | for ac_exec_ext in '' $ac_executable_extensions; do |
64ff59ba |
6756 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
6757 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
6758 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6759 | break 2 |
6760 | fi |
6761 | done |
6762 | done |
64ff59ba |
6763 | IFS=$as_save_IFS |
d9898ee8 |
6764 | |
d9898ee8 |
6765 | fi |
6766 | fi |
6767 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
6768 | if test -n "$ac_ct_RANLIB"; then |
64ff59ba |
6769 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
6770 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
d9898ee8 |
6771 | else |
64ff59ba |
6772 | { echo "$as_me:$LINENO: result: no" >&5 |
6773 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
6774 | fi |
6775 | |
64ff59ba |
6776 | if test "x$ac_ct_RANLIB" = x; then |
6777 | RANLIB=":" |
6778 | else |
6779 | case $cross_compiling:$ac_tool_warned in |
6780 | yes:) |
6781 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
6782 | whose name does not start with the host triplet. If you think this |
6783 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
6784 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
6785 | whose name does not start with the host triplet. If you think this |
6786 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
6787 | ac_tool_warned=yes ;; |
6788 | esac |
6789 | RANLIB=$ac_ct_RANLIB |
6790 | fi |
d9898ee8 |
6791 | else |
6792 | RANLIB="$ac_cv_prog_RANLIB" |
6793 | fi |
6794 | |
6795 | if test -n "$ac_tool_prefix"; then |
6796 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
6797 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
64ff59ba |
6798 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6799 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
6800 | if test "${ac_cv_prog_STRIP+set}" = set; then |
6801 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6802 | else |
6803 | if test -n "$STRIP"; then |
6804 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
6805 | else |
6806 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6807 | for as_dir in $PATH |
6808 | do |
6809 | IFS=$as_save_IFS |
6810 | test -z "$as_dir" && as_dir=. |
6811 | for ac_exec_ext in '' $ac_executable_extensions; do |
64ff59ba |
6812 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
6813 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
6814 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6815 | break 2 |
6816 | fi |
6817 | done |
6818 | done |
64ff59ba |
6819 | IFS=$as_save_IFS |
d9898ee8 |
6820 | |
6821 | fi |
6822 | fi |
6823 | STRIP=$ac_cv_prog_STRIP |
6824 | if test -n "$STRIP"; then |
64ff59ba |
6825 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
6826 | echo "${ECHO_T}$STRIP" >&6; } |
d9898ee8 |
6827 | else |
64ff59ba |
6828 | { echo "$as_me:$LINENO: result: no" >&5 |
6829 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
6830 | fi |
6831 | |
64ff59ba |
6832 | |
d9898ee8 |
6833 | fi |
6834 | if test -z "$ac_cv_prog_STRIP"; then |
6835 | ac_ct_STRIP=$STRIP |
6836 | # Extract the first word of "strip", so it can be a program name with args. |
6837 | set dummy strip; ac_word=$2 |
64ff59ba |
6838 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6839 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
6840 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
6841 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6842 | else |
6843 | if test -n "$ac_ct_STRIP"; then |
6844 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
6845 | else |
6846 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6847 | for as_dir in $PATH |
6848 | do |
6849 | IFS=$as_save_IFS |
6850 | test -z "$as_dir" && as_dir=. |
6851 | for ac_exec_ext in '' $ac_executable_extensions; do |
64ff59ba |
6852 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
6853 | ac_cv_prog_ac_ct_STRIP="strip" |
6854 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6855 | break 2 |
6856 | fi |
6857 | done |
6858 | done |
64ff59ba |
6859 | IFS=$as_save_IFS |
d9898ee8 |
6860 | |
d9898ee8 |
6861 | fi |
6862 | fi |
6863 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
6864 | if test -n "$ac_ct_STRIP"; then |
64ff59ba |
6865 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
6866 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
d9898ee8 |
6867 | else |
64ff59ba |
6868 | { echo "$as_me:$LINENO: result: no" >&5 |
6869 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
6870 | fi |
6871 | |
64ff59ba |
6872 | if test "x$ac_ct_STRIP" = x; then |
6873 | STRIP=":" |
6874 | else |
6875 | case $cross_compiling:$ac_tool_warned in |
6876 | yes:) |
6877 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
6878 | whose name does not start with the host triplet. If you think this |
6879 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
6880 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
6881 | whose name does not start with the host triplet. If you think this |
6882 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
6883 | ac_tool_warned=yes ;; |
6884 | esac |
6885 | STRIP=$ac_ct_STRIP |
6886 | fi |
d9898ee8 |
6887 | else |
6888 | STRIP="$ac_cv_prog_STRIP" |
6889 | fi |
6890 | |
6891 | |
6892 | old_CC="$CC" |
6893 | old_CFLAGS="$CFLAGS" |
6894 | |
6895 | # Set sane defaults for various variables |
6896 | test -z "$AR" && AR=ar |
6897 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
6898 | test -z "$AS" && AS=as |
6899 | test -z "$CC" && CC=cc |
6900 | test -z "$LTCC" && LTCC=$CC |
6901 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
6902 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
6903 | test -z "$LD" && LD=ld |
6904 | test -z "$LN_S" && LN_S="ln -s" |
6905 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
6906 | test -z "$NM" && NM=nm |
6907 | test -z "$SED" && SED=sed |
6908 | test -z "$OBJDUMP" && OBJDUMP=objdump |
6909 | test -z "$RANLIB" && RANLIB=: |
6910 | test -z "$STRIP" && STRIP=: |
6911 | test -z "$ac_objext" && ac_objext=o |
6912 | |
6913 | # Determine commands to create old-style static archives. |
6914 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
6915 | old_postinstall_cmds='chmod 644 $oldlib' |
6916 | old_postuninstall_cmds= |
6917 | |
6918 | if test -n "$RANLIB"; then |
6919 | case $host_os in |
6920 | openbsd*) |
6921 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
6922 | ;; |
6923 | *) |
6924 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
6925 | ;; |
6926 | esac |
6927 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
6928 | fi |
6929 | |
6930 | for cc_temp in $compiler""; do |
6931 | case $cc_temp in |
6932 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
6933 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
6934 | \-*) ;; |
6935 | *) break;; |
6936 | esac |
6937 | done |
6938 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
6939 | |
6940 | |
6941 | # Only perform the check for file, if the check method requires it |
6942 | case $deplibs_check_method in |
6943 | file_magic*) |
6944 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
64ff59ba |
6945 | { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
6946 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } |
d9898ee8 |
6947 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
6948 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6949 | else |
6950 | case $MAGIC_CMD in |
6951 | [\\/*] | ?:[\\/]*) |
6952 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
6953 | ;; |
6954 | *) |
6955 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
6956 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
6957 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
6958 | for ac_dir in $ac_dummy; do |
6959 | IFS="$lt_save_ifs" |
6960 | test -z "$ac_dir" && ac_dir=. |
6961 | if test -f $ac_dir/${ac_tool_prefix}file; then |
6962 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
6963 | if test -n "$file_magic_test_file"; then |
6964 | case $deplibs_check_method in |
6965 | "file_magic "*) |
6966 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
6967 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
6968 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
6969 | $EGREP "$file_magic_regex" > /dev/null; then |
6970 | : |
6971 | else |
6972 | cat <<EOF 1>&2 |
6973 | |
6974 | *** Warning: the command libtool uses to detect shared libraries, |
6975 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
6976 | *** The result is that libtool may fail to recognize shared libraries |
6977 | *** as such. This will affect the creation of libtool libraries that |
6978 | *** depend on shared libraries, but programs linked with such libtool |
6979 | *** libraries will work regardless of this problem. Nevertheless, you |
6980 | *** may want to report the problem to your system manager and/or to |
6981 | *** bug-libtool@gnu.org |
6982 | |
6983 | EOF |
6984 | fi ;; |
6985 | esac |
6986 | fi |
6987 | break |
6988 | fi |
6989 | done |
6990 | IFS="$lt_save_ifs" |
6991 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
6992 | ;; |
6993 | esac |
6994 | fi |
6995 | |
6996 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
6997 | if test -n "$MAGIC_CMD"; then |
64ff59ba |
6998 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
6999 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
d9898ee8 |
7000 | else |
64ff59ba |
7001 | { echo "$as_me:$LINENO: result: no" >&5 |
7002 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
7003 | fi |
7004 | |
7005 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
7006 | if test -n "$ac_tool_prefix"; then |
64ff59ba |
7007 | { echo "$as_me:$LINENO: checking for file" >&5 |
7008 | echo $ECHO_N "checking for file... $ECHO_C" >&6; } |
d9898ee8 |
7009 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
7010 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7011 | else |
7012 | case $MAGIC_CMD in |
7013 | [\\/*] | ?:[\\/]*) |
7014 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
7015 | ;; |
7016 | *) |
7017 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
7018 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
7019 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
7020 | for ac_dir in $ac_dummy; do |
7021 | IFS="$lt_save_ifs" |
7022 | test -z "$ac_dir" && ac_dir=. |
7023 | if test -f $ac_dir/file; then |
7024 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
7025 | if test -n "$file_magic_test_file"; then |
7026 | case $deplibs_check_method in |
7027 | "file_magic "*) |
7028 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
7029 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
7030 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
7031 | $EGREP "$file_magic_regex" > /dev/null; then |
7032 | : |
7033 | else |
7034 | cat <<EOF 1>&2 |
7035 | |
7036 | *** Warning: the command libtool uses to detect shared libraries, |
7037 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
7038 | *** The result is that libtool may fail to recognize shared libraries |
7039 | *** as such. This will affect the creation of libtool libraries that |
7040 | *** depend on shared libraries, but programs linked with such libtool |
7041 | *** libraries will work regardless of this problem. Nevertheless, you |
7042 | *** may want to report the problem to your system manager and/or to |
7043 | *** bug-libtool@gnu.org |
7044 | |
7045 | EOF |
7046 | fi ;; |
7047 | esac |
7048 | fi |
7049 | break |
7050 | fi |
7051 | done |
7052 | IFS="$lt_save_ifs" |
7053 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
7054 | ;; |
7055 | esac |
7056 | fi |
7057 | |
7058 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
7059 | if test -n "$MAGIC_CMD"; then |
64ff59ba |
7060 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
7061 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
d9898ee8 |
7062 | else |
64ff59ba |
7063 | { echo "$as_me:$LINENO: result: no" >&5 |
7064 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
7065 | fi |
7066 | |
7067 | else |
7068 | MAGIC_CMD=: |
7069 | fi |
7070 | fi |
7071 | |
7072 | fi |
7073 | ;; |
7074 | esac |
7075 | |
7076 | enable_dlopen=no |
7077 | enable_win32_dll=no |
7078 | |
64ff59ba |
7079 | # Check whether --enable-libtool-lock was given. |
d9898ee8 |
7080 | if test "${enable_libtool_lock+set}" = set; then |
64ff59ba |
7081 | enableval=$enable_libtool_lock; |
7082 | fi |
d9898ee8 |
7083 | |
d9898ee8 |
7084 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
7085 | |
7086 | |
64ff59ba |
7087 | # Check whether --with-pic was given. |
d9898ee8 |
7088 | if test "${with_pic+set}" = set; then |
64ff59ba |
7089 | withval=$with_pic; pic_mode="$withval" |
d9898ee8 |
7090 | else |
7091 | pic_mode=default |
64ff59ba |
7092 | fi |
7093 | |
d9898ee8 |
7094 | test -z "$pic_mode" && pic_mode=default |
7095 | |
7096 | # Use C for the default configuration in the libtool script |
7097 | tagname= |
7098 | lt_save_CC="$CC" |
7099 | ac_ext=c |
7100 | ac_cpp='$CPP $CPPFLAGS' |
7101 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
7102 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
7103 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
7104 | |
7105 | |
7106 | # Source file extension for C test sources. |
7107 | ac_ext=c |
7108 | |
7109 | # Object file extension for compiled C test sources. |
7110 | objext=o |
7111 | objext=$objext |
7112 | |
7113 | # Code to be used in simple compile tests |
7114 | lt_simple_compile_test_code="int some_variable = 0;\n" |
7115 | |
7116 | # Code to be used in simple link tests |
7117 | lt_simple_link_test_code='int main(){return(0);}\n' |
7118 | |
7119 | |
7120 | # If no C compiler was specified, use CC. |
7121 | LTCC=${LTCC-"$CC"} |
7122 | |
7123 | # If no C compiler flags were specified, use CFLAGS. |
7124 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
7125 | |
7126 | # Allow CC to be a program name with arguments. |
7127 | compiler=$CC |
7128 | |
7129 | |
7130 | # save warnings/boilerplate of simple test code |
7131 | ac_outfile=conftest.$ac_objext |
7132 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
7133 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
7134 | _lt_compiler_boilerplate=`cat conftest.err` |
7135 | $rm conftest* |
7136 | |
7137 | ac_outfile=conftest.$ac_objext |
7138 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
7139 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
7140 | _lt_linker_boilerplate=`cat conftest.err` |
7141 | $rm conftest* |
7142 | |
7143 | |
7144 | |
7145 | lt_prog_compiler_no_builtin_flag= |
7146 | |
7147 | if test "$GCC" = yes; then |
7148 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
7149 | |
7150 | |
64ff59ba |
7151 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
7152 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } |
d9898ee8 |
7153 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
7154 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7155 | else |
7156 | lt_cv_prog_compiler_rtti_exceptions=no |
7157 | ac_outfile=conftest.$ac_objext |
7158 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
7159 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
7160 | # Insert the option either (1) after the last *FLAGS variable, or |
7161 | # (2) before a word containing "conftest.", or (3) at the end. |
7162 | # Note that $ac_compile itself does not contain backslashes and begins |
7163 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
7164 | # The option is referenced via a variable to avoid confusing sed. |
7165 | lt_compile=`echo "$ac_compile" | $SED \ |
7166 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
7167 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
7168 | -e 's:$: $lt_compiler_flag:'` |
64ff59ba |
7169 | (eval echo "\"\$as_me:7169: $lt_compile\"" >&5) |
d9898ee8 |
7170 | (eval "$lt_compile" 2>conftest.err) |
7171 | ac_status=$? |
7172 | cat conftest.err >&5 |
64ff59ba |
7173 | echo "$as_me:7173: \$? = $ac_status" >&5 |
d9898ee8 |
7174 | if (exit $ac_status) && test -s "$ac_outfile"; then |
7175 | # The compiler can only warn and ignore the option if not recognized |
7176 | # So say no if there are warnings other than the usual output. |
7177 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
7178 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
7179 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
7180 | lt_cv_prog_compiler_rtti_exceptions=yes |
7181 | fi |
7182 | fi |
7183 | $rm conftest* |
7184 | |
7185 | fi |
64ff59ba |
7186 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
7187 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
d9898ee8 |
7188 | |
7189 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
7190 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
7191 | else |
7192 | : |
7193 | fi |
7194 | |
7195 | fi |
7196 | |
7197 | lt_prog_compiler_wl= |
7198 | lt_prog_compiler_pic= |
7199 | lt_prog_compiler_static= |
7200 | |
64ff59ba |
7201 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
7202 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
d9898ee8 |
7203 | |
7204 | if test "$GCC" = yes; then |
7205 | lt_prog_compiler_wl='-Wl,' |
7206 | lt_prog_compiler_static='-static' |
7207 | |
7208 | case $host_os in |
7209 | aix*) |
7210 | # All AIX code is PIC. |
7211 | if test "$host_cpu" = ia64; then |
7212 | # AIX 5 now supports IA64 processor |
7213 | lt_prog_compiler_static='-Bstatic' |
7214 | fi |
7215 | ;; |
7216 | |
7217 | amigaos*) |
7218 | # FIXME: we need at least 68020 code to build shared libraries, but |
7219 | # adding the `-m68020' flag to GCC prevents building anything better, |
7220 | # like `-m68040'. |
7221 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
7222 | ;; |
7223 | |
7224 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
7225 | # PIC is the default for these OSes. |
7226 | ;; |
7227 | |
7228 | mingw* | pw32* | os2*) |
7229 | # This hack is so that the source file can tell whether it is being |
7230 | # built for inclusion in a dll (and should export symbols for example). |
7231 | lt_prog_compiler_pic='-DDLL_EXPORT' |
7232 | ;; |
7233 | |
7234 | darwin* | rhapsody*) |
7235 | # PIC is the default on this platform |
7236 | # Common symbols not allowed in MH_DYLIB files |
7237 | lt_prog_compiler_pic='-fno-common' |
7238 | ;; |
7239 | |
7240 | interix3*) |
7241 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
7242 | # Instead, we relocate shared libraries at runtime. |
7243 | ;; |
7244 | |
7245 | msdosdjgpp*) |
7246 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
7247 | # on systems that don't support them. |
7248 | lt_prog_compiler_can_build_shared=no |
7249 | enable_shared=no |
7250 | ;; |
7251 | |
7252 | sysv4*MP*) |
7253 | if test -d /usr/nec; then |
7254 | lt_prog_compiler_pic=-Kconform_pic |
7255 | fi |
7256 | ;; |
7257 | |
7258 | hpux*) |
7259 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
7260 | # not for PA HP-UX. |
7261 | case $host_cpu in |
7262 | hppa*64*|ia64*) |
7263 | # +Z the default |
7264 | ;; |
7265 | *) |
7266 | lt_prog_compiler_pic='-fPIC' |
7267 | ;; |
7268 | esac |
7269 | ;; |
7270 | |
7271 | *) |
7272 | lt_prog_compiler_pic='-fPIC' |
7273 | ;; |
7274 | esac |
7275 | else |
7276 | # PORTME Check for flag to pass linker flags through the system compiler. |
7277 | case $host_os in |
7278 | aix*) |
7279 | lt_prog_compiler_wl='-Wl,' |
7280 | if test "$host_cpu" = ia64; then |
7281 | # AIX 5 now supports IA64 processor |
7282 | lt_prog_compiler_static='-Bstatic' |
7283 | else |
7284 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
7285 | fi |
7286 | ;; |
7287 | darwin*) |
7288 | # PIC is the default on this platform |
7289 | # Common symbols not allowed in MH_DYLIB files |
7290 | case $cc_basename in |
7291 | xlc*) |
7292 | lt_prog_compiler_pic='-qnocommon' |
7293 | lt_prog_compiler_wl='-Wl,' |
7294 | ;; |
7295 | esac |
7296 | ;; |
7297 | |
7298 | mingw* | pw32* | os2*) |
7299 | # This hack is so that the source file can tell whether it is being |
7300 | # built for inclusion in a dll (and should export symbols for example). |
7301 | lt_prog_compiler_pic='-DDLL_EXPORT' |
7302 | ;; |
7303 | |
7304 | hpux9* | hpux10* | hpux11*) |
7305 | lt_prog_compiler_wl='-Wl,' |
7306 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
7307 | # not for PA HP-UX. |
7308 | case $host_cpu in |
7309 | hppa*64*|ia64*) |
7310 | # +Z the default |
7311 | ;; |
7312 | *) |
7313 | lt_prog_compiler_pic='+Z' |
7314 | ;; |
7315 | esac |
7316 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
7317 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
7318 | ;; |
7319 | |
7320 | irix5* | irix6* | nonstopux*) |
7321 | lt_prog_compiler_wl='-Wl,' |
7322 | # PIC (with -KPIC) is the default. |
7323 | lt_prog_compiler_static='-non_shared' |
7324 | ;; |
7325 | |
7326 | newsos6) |
7327 | lt_prog_compiler_pic='-KPIC' |
7328 | lt_prog_compiler_static='-Bstatic' |
7329 | ;; |
7330 | |
7331 | linux*) |
7332 | case $cc_basename in |
7333 | icc* | ecc*) |
7334 | lt_prog_compiler_wl='-Wl,' |
7335 | lt_prog_compiler_pic='-KPIC' |
7336 | lt_prog_compiler_static='-static' |
7337 | ;; |
7338 | pgcc* | pgf77* | pgf90* | pgf95*) |
7339 | # Portland Group compilers (*not* the Pentium gcc compiler, |
7340 | # which looks to be a dead project) |
7341 | lt_prog_compiler_wl='-Wl,' |
7342 | lt_prog_compiler_pic='-fpic' |
7343 | lt_prog_compiler_static='-Bstatic' |
7344 | ;; |
7345 | ccc*) |
7346 | lt_prog_compiler_wl='-Wl,' |
7347 | # All Alpha code is PIC. |
7348 | lt_prog_compiler_static='-non_shared' |
7349 | ;; |
7350 | esac |
7351 | ;; |
7352 | |
7353 | osf3* | osf4* | osf5*) |
7354 | lt_prog_compiler_wl='-Wl,' |
7355 | # All OSF/1 code is PIC. |
7356 | lt_prog_compiler_static='-non_shared' |
7357 | ;; |
7358 | |
7359 | solaris*) |
7360 | lt_prog_compiler_pic='-KPIC' |
7361 | lt_prog_compiler_static='-Bstatic' |
7362 | case $cc_basename in |
7363 | f77* | f90* | f95*) |
7364 | lt_prog_compiler_wl='-Qoption ld ';; |
7365 | *) |
7366 | lt_prog_compiler_wl='-Wl,';; |
7367 | esac |
7368 | ;; |
7369 | |
7370 | sunos4*) |
7371 | lt_prog_compiler_wl='-Qoption ld ' |
7372 | lt_prog_compiler_pic='-PIC' |
7373 | lt_prog_compiler_static='-Bstatic' |
7374 | ;; |
7375 | |
7376 | sysv4 | sysv4.2uw2* | sysv4.3*) |
7377 | lt_prog_compiler_wl='-Wl,' |
7378 | lt_prog_compiler_pic='-KPIC' |
7379 | lt_prog_compiler_static='-Bstatic' |
7380 | ;; |
7381 | |
7382 | sysv4*MP*) |
7383 | if test -d /usr/nec ;then |
7384 | lt_prog_compiler_pic='-Kconform_pic' |
7385 | lt_prog_compiler_static='-Bstatic' |
7386 | fi |
7387 | ;; |
7388 | |
7389 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
7390 | lt_prog_compiler_wl='-Wl,' |
7391 | lt_prog_compiler_pic='-KPIC' |
7392 | lt_prog_compiler_static='-Bstatic' |
7393 | ;; |
7394 | |
7395 | unicos*) |
7396 | lt_prog_compiler_wl='-Wl,' |
7397 | lt_prog_compiler_can_build_shared=no |
7398 | ;; |
7399 | |
7400 | uts4*) |
7401 | lt_prog_compiler_pic='-pic' |
7402 | lt_prog_compiler_static='-Bstatic' |
7403 | ;; |
7404 | |
7405 | *) |
7406 | lt_prog_compiler_can_build_shared=no |
7407 | ;; |
7408 | esac |
7409 | fi |
7410 | |
64ff59ba |
7411 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
7412 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } |
d9898ee8 |
7413 | |
7414 | # |
7415 | # Check to make sure the PIC flag actually works. |
7416 | # |
7417 | if test -n "$lt_prog_compiler_pic"; then |
7418 | |
64ff59ba |
7419 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
7420 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } |
d9898ee8 |
7421 | if test "${lt_prog_compiler_pic_works+set}" = set; then |
7422 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7423 | else |
7424 | lt_prog_compiler_pic_works=no |
7425 | ac_outfile=conftest.$ac_objext |
7426 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
7427 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
7428 | # Insert the option either (1) after the last *FLAGS variable, or |
7429 | # (2) before a word containing "conftest.", or (3) at the end. |
7430 | # Note that $ac_compile itself does not contain backslashes and begins |
7431 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
7432 | # The option is referenced via a variable to avoid confusing sed. |
7433 | lt_compile=`echo "$ac_compile" | $SED \ |
7434 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
7435 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
7436 | -e 's:$: $lt_compiler_flag:'` |
64ff59ba |
7437 | (eval echo "\"\$as_me:7437: $lt_compile\"" >&5) |
d9898ee8 |
7438 | (eval "$lt_compile" 2>conftest.err) |
7439 | ac_status=$? |
7440 | cat conftest.err >&5 |
64ff59ba |
7441 | echo "$as_me:7441: \$? = $ac_status" >&5 |
d9898ee8 |
7442 | if (exit $ac_status) && test -s "$ac_outfile"; then |
7443 | # The compiler can only warn and ignore the option if not recognized |
7444 | # So say no if there are warnings other than the usual output. |
7445 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
7446 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
7447 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
7448 | lt_prog_compiler_pic_works=yes |
7449 | fi |
7450 | fi |
7451 | $rm conftest* |
7452 | |
7453 | fi |
64ff59ba |
7454 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
7455 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } |
d9898ee8 |
7456 | |
7457 | if test x"$lt_prog_compiler_pic_works" = xyes; then |
7458 | case $lt_prog_compiler_pic in |
7459 | "" | " "*) ;; |
7460 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
7461 | esac |
7462 | else |
7463 | lt_prog_compiler_pic= |
7464 | lt_prog_compiler_can_build_shared=no |
7465 | fi |
7466 | |
7467 | fi |
7468 | case $host_os in |
7469 | # For platforms which do not support PIC, -DPIC is meaningless: |
7470 | *djgpp*) |
7471 | lt_prog_compiler_pic= |
7472 | ;; |
7473 | *) |
7474 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
7475 | ;; |
7476 | esac |
7477 | |
7478 | # |
7479 | # Check to make sure the static flag actually works. |
7480 | # |
7481 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
64ff59ba |
7482 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
7483 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
d9898ee8 |
7484 | if test "${lt_prog_compiler_static_works+set}" = set; then |
7485 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7486 | else |
7487 | lt_prog_compiler_static_works=no |
7488 | save_LDFLAGS="$LDFLAGS" |
7489 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
7490 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
7491 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
7492 | # The linker can only warn and ignore the option if not recognized |
7493 | # So say no if there are warnings |
7494 | if test -s conftest.err; then |
7495 | # Append any errors to the config.log. |
7496 | cat conftest.err 1>&5 |
7497 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
7498 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
7499 | if diff conftest.exp conftest.er2 >/dev/null; then |
7500 | lt_prog_compiler_static_works=yes |
7501 | fi |
7502 | else |
7503 | lt_prog_compiler_static_works=yes |
7504 | fi |
7505 | fi |
7506 | $rm conftest* |
7507 | LDFLAGS="$save_LDFLAGS" |
7508 | |
7509 | fi |
64ff59ba |
7510 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
7511 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } |
d9898ee8 |
7512 | |
7513 | if test x"$lt_prog_compiler_static_works" = xyes; then |
7514 | : |
7515 | else |
7516 | lt_prog_compiler_static= |
7517 | fi |
7518 | |
7519 | |
64ff59ba |
7520 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
7521 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
d9898ee8 |
7522 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
7523 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7524 | else |
7525 | lt_cv_prog_compiler_c_o=no |
7526 | $rm -r conftest 2>/dev/null |
7527 | mkdir conftest |
7528 | cd conftest |
7529 | mkdir out |
7530 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
7531 | |
7532 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
7533 | # Insert the option either (1) after the last *FLAGS variable, or |
7534 | # (2) before a word containing "conftest.", or (3) at the end. |
7535 | # Note that $ac_compile itself does not contain backslashes and begins |
7536 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
7537 | lt_compile=`echo "$ac_compile" | $SED \ |
7538 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
7539 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
7540 | -e 's:$: $lt_compiler_flag:'` |
64ff59ba |
7541 | (eval echo "\"\$as_me:7541: $lt_compile\"" >&5) |
d9898ee8 |
7542 | (eval "$lt_compile" 2>out/conftest.err) |
7543 | ac_status=$? |
7544 | cat out/conftest.err >&5 |
64ff59ba |
7545 | echo "$as_me:7545: \$? = $ac_status" >&5 |
d9898ee8 |
7546 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
7547 | then |
7548 | # The compiler can only warn and ignore the option if not recognized |
7549 | # So say no if there are warnings |
7550 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
7551 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
7552 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
7553 | lt_cv_prog_compiler_c_o=yes |
7554 | fi |
7555 | fi |
7556 | chmod u+w . 2>&5 |
7557 | $rm conftest* |
7558 | # SGI C++ compiler will create directory out/ii_files/ for |
7559 | # template instantiation |
7560 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
7561 | $rm out/* && rmdir out |
7562 | cd .. |
7563 | rmdir conftest |
7564 | $rm conftest* |
7565 | |
7566 | fi |
64ff59ba |
7567 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
7568 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } |
d9898ee8 |
7569 | |
7570 | |
7571 | hard_links="nottested" |
7572 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
7573 | # do not overwrite the value of need_locks provided by the user |
64ff59ba |
7574 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
7575 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
d9898ee8 |
7576 | hard_links=yes |
7577 | $rm conftest* |
7578 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
7579 | touch conftest.a |
7580 | ln conftest.a conftest.b 2>&5 || hard_links=no |
7581 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
64ff59ba |
7582 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
7583 | echo "${ECHO_T}$hard_links" >&6; } |
d9898ee8 |
7584 | if test "$hard_links" = no; then |
7585 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
7586 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
7587 | need_locks=warn |
7588 | fi |
7589 | else |
7590 | need_locks=no |
7591 | fi |
7592 | |
64ff59ba |
7593 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
7594 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
d9898ee8 |
7595 | |
7596 | runpath_var= |
7597 | allow_undefined_flag= |
7598 | enable_shared_with_static_runtimes=no |
7599 | archive_cmds= |
7600 | archive_expsym_cmds= |
7601 | old_archive_From_new_cmds= |
7602 | old_archive_from_expsyms_cmds= |
7603 | export_dynamic_flag_spec= |
7604 | whole_archive_flag_spec= |
7605 | thread_safe_flag_spec= |
7606 | hardcode_libdir_flag_spec= |
7607 | hardcode_libdir_flag_spec_ld= |
7608 | hardcode_libdir_separator= |
7609 | hardcode_direct=no |
7610 | hardcode_minus_L=no |
7611 | hardcode_shlibpath_var=unsupported |
7612 | link_all_deplibs=unknown |
7613 | hardcode_automatic=no |
7614 | module_cmds= |
7615 | module_expsym_cmds= |
7616 | always_export_symbols=no |
7617 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
7618 | # include_expsyms should be a list of space-separated symbols to be *always* |
7619 | # included in the symbol list |
7620 | include_expsyms= |
7621 | # exclude_expsyms can be an extended regexp of symbols to exclude |
7622 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
7623 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
7624 | # as well as any symbol that contains `d'. |
7625 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
7626 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
7627 | # platforms (ab)use it in PIC code, but their linkers get confused if |
7628 | # the symbol is explicitly referenced. Since portable code cannot |
7629 | # rely on this symbol name, it's probably fine to never include it in |
7630 | # preloaded symbol tables. |
7631 | extract_expsyms_cmds= |
7632 | # Just being paranoid about ensuring that cc_basename is set. |
7633 | for cc_temp in $compiler""; do |
7634 | case $cc_temp in |
7635 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
7636 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
7637 | \-*) ;; |
7638 | *) break;; |
7639 | esac |
7640 | done |
7641 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
7642 | |
7643 | case $host_os in |
7644 | cygwin* | mingw* | pw32*) |
7645 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
7646 | # When not using gcc, we currently assume that we are using |
7647 | # Microsoft Visual C++. |
7648 | if test "$GCC" != yes; then |
7649 | with_gnu_ld=no |
7650 | fi |
7651 | ;; |
7652 | interix*) |
7653 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
7654 | with_gnu_ld=yes |
7655 | ;; |
7656 | openbsd*) |
7657 | with_gnu_ld=no |
7658 | ;; |
7659 | esac |
7660 | |
7661 | ld_shlibs=yes |
7662 | if test "$with_gnu_ld" = yes; then |
7663 | # If archive_cmds runs LD, not CC, wlarc should be empty |
7664 | wlarc='${wl}' |
7665 | |
7666 | # Set some defaults for GNU ld with shared library support. These |
7667 | # are reset later if shared libraries are not supported. Putting them |
7668 | # here allows them to be overridden if necessary. |
7669 | runpath_var=LD_RUN_PATH |
7670 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
7671 | export_dynamic_flag_spec='${wl}--export-dynamic' |
7672 | # ancient GNU ld didn't support --whole-archive et. al. |
7673 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
7674 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
7675 | else |
7676 | whole_archive_flag_spec= |
7677 | fi |
7678 | supports_anon_versioning=no |
7679 | case `$LD -v 2>/dev/null` in |
7680 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
7681 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
7682 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
7683 | *\ 2.11.*) ;; # other 2.11 versions |
7684 | *) supports_anon_versioning=yes ;; |
7685 | esac |
7686 | |
7687 | # See if GNU ld supports shared libraries. |
7688 | case $host_os in |
7689 | aix3* | aix4* | aix5*) |
7690 | # On AIX/PPC, the GNU linker is very broken |
7691 | if test "$host_cpu" != ia64; then |
7692 | ld_shlibs=no |
7693 | cat <<EOF 1>&2 |
7694 | |
7695 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
7696 | *** to be unable to reliably create shared libraries on AIX. |
7697 | *** Therefore, libtool is disabling shared libraries support. If you |
7698 | *** really care for shared libraries, you may want to modify your PATH |
7699 | *** so that a non-GNU linker is found, and then restart. |
7700 | |
7701 | EOF |
7702 | fi |
7703 | ;; |
7704 | |
7705 | amigaos*) |
7706 | 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)' |
7707 | hardcode_libdir_flag_spec='-L$libdir' |
7708 | hardcode_minus_L=yes |
7709 | |
7710 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
7711 | # that the semantics of dynamic libraries on AmigaOS, at least up |
7712 | # to version 4, is to share data among multiple programs linked |
7713 | # with the same dynamic library. Since this doesn't match the |
7714 | # behavior of shared libraries on other platforms, we can't use |
7715 | # them. |
7716 | ld_shlibs=no |
7717 | ;; |
7718 | |
7719 | beos*) |
7720 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7721 | allow_undefined_flag=unsupported |
7722 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
7723 | # support --undefined. This deserves some investigation. FIXME |
7724 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7725 | else |
7726 | ld_shlibs=no |
7727 | fi |
7728 | ;; |
7729 | |
7730 | cygwin* | mingw* | pw32*) |
7731 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
7732 | # as there is no search path for DLLs. |
7733 | hardcode_libdir_flag_spec='-L$libdir' |
7734 | allow_undefined_flag=unsupported |
7735 | always_export_symbols=no |
7736 | enable_shared_with_static_runtimes=yes |
7737 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
7738 | |
7739 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
7740 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
7741 | # If the export-symbols file already is a .def file (1st line |
7742 | # is EXPORTS), use it as is; otherwise, prepend... |
7743 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
7744 | cp $export_symbols $output_objdir/$soname.def; |
7745 | else |
7746 | echo EXPORTS > $output_objdir/$soname.def; |
7747 | cat $export_symbols >> $output_objdir/$soname.def; |
7748 | fi~ |
7749 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
7750 | else |
7751 | ld_shlibs=no |
7752 | fi |
7753 | ;; |
7754 | |
7755 | interix3*) |
7756 | hardcode_direct=no |
7757 | hardcode_shlibpath_var=no |
7758 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
7759 | export_dynamic_flag_spec='${wl}-E' |
7760 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
7761 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
7762 | # default) and relocated if they conflict, which is a slow very memory |
7763 | # consuming and fragmenting process. To avoid this, we pick a random, |
7764 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
7765 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
7766 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
7767 | 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' |
7768 | ;; |
7769 | |
7770 | linux*) |
7771 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7772 | tmp_addflag= |
7773 | case $cc_basename,$host_cpu in |
7774 | pgcc*) # Portland Group C compiler |
7775 | 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' |
7776 | tmp_addflag=' $pic_flag' |
7777 | ;; |
7778 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
7779 | 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' |
7780 | tmp_addflag=' $pic_flag -Mnomain' ;; |
7781 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
7782 | tmp_addflag=' -i_dynamic' ;; |
7783 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
7784 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
7785 | ifc* | ifort*) # Intel Fortran compiler |
7786 | tmp_addflag=' -nofor_main' ;; |
7787 | esac |
7788 | archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7789 | |
7790 | if test $supports_anon_versioning = yes; then |
7791 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
7792 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
7793 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
7794 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
7795 | fi |
7796 | else |
7797 | ld_shlibs=no |
7798 | fi |
7799 | ;; |
7800 | |
7801 | netbsd*) |
7802 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
7803 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
7804 | wlarc= |
7805 | else |
7806 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7807 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
7808 | fi |
7809 | ;; |
7810 | |
7811 | solaris*) |
7812 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
7813 | ld_shlibs=no |
7814 | cat <<EOF 1>&2 |
7815 | |
7816 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
7817 | *** create shared libraries on Solaris systems. Therefore, libtool |
7818 | *** is disabling shared libraries support. We urge you to upgrade GNU |
7819 | *** binutils to release 2.9.1 or newer. Another option is to modify |
7820 | *** your PATH or compiler configuration so that the native linker is |
7821 | *** used, and then restart. |
7822 | |
7823 | EOF |
7824 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7825 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7826 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
7827 | else |
7828 | ld_shlibs=no |
7829 | fi |
7830 | ;; |
7831 | |
7832 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
7833 | case `$LD -v 2>&1` in |
7834 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
7835 | ld_shlibs=no |
7836 | cat <<_LT_EOF 1>&2 |
7837 | |
7838 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
7839 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
7840 | *** is disabling shared libraries support. We urge you to upgrade GNU |
7841 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
7842 | *** your PATH or compiler configuration so that the native linker is |
7843 | *** used, and then restart. |
7844 | |
7845 | _LT_EOF |
7846 | ;; |
7847 | *) |
7848 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7849 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
7850 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
7851 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
7852 | else |
7853 | ld_shlibs=no |
7854 | fi |
7855 | ;; |
7856 | esac |
7857 | ;; |
7858 | |
7859 | sunos4*) |
7860 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
7861 | wlarc= |
7862 | hardcode_direct=yes |
7863 | hardcode_shlibpath_var=no |
7864 | ;; |
7865 | |
7866 | *) |
7867 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7868 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7869 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
7870 | else |
7871 | ld_shlibs=no |
7872 | fi |
7873 | ;; |
7874 | esac |
7875 | |
7876 | if test "$ld_shlibs" = no; then |
7877 | runpath_var= |
7878 | hardcode_libdir_flag_spec= |
7879 | export_dynamic_flag_spec= |
7880 | whole_archive_flag_spec= |
7881 | fi |
7882 | else |
7883 | # PORTME fill in a description of your system's linker (not GNU ld) |
7884 | case $host_os in |
7885 | aix3*) |
7886 | allow_undefined_flag=unsupported |
7887 | always_export_symbols=yes |
7888 | 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' |
7889 | # Note: this linker hardcodes the directories in LIBPATH if there |
7890 | # are no directories specified by -L. |
7891 | hardcode_minus_L=yes |
7892 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
7893 | # Neither direct hardcoding nor static linking is supported with a |
7894 | # broken collect2. |
7895 | hardcode_direct=unsupported |
7896 | fi |
7897 | ;; |
7898 | |
7899 | aix4* | aix5*) |
7900 | if test "$host_cpu" = ia64; then |
7901 | # On IA64, the linker does run time linking by default, so we don't |
7902 | # have to do anything special. |
7903 | aix_use_runtimelinking=no |
7904 | exp_sym_flag='-Bexport' |
7905 | no_entry_flag="" |
7906 | else |
7907 | # If we're using GNU nm, then we don't want the "-C" option. |
7908 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
7909 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
7910 | 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' |
7911 | else |
7912 | 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' |
7913 | fi |
7914 | aix_use_runtimelinking=no |
7915 | |
7916 | # Test if we are trying to use run time linking or normal |
7917 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
7918 | # need to do runtime linking. |
7919 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
7920 | for ld_flag in $LDFLAGS; do |
7921 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
7922 | aix_use_runtimelinking=yes |
7923 | break |
7924 | fi |
7925 | done |
7926 | ;; |
7927 | esac |
7928 | |
7929 | exp_sym_flag='-bexport' |
7930 | no_entry_flag='-bnoentry' |
7931 | fi |
7932 | |
7933 | # When large executables or shared objects are built, AIX ld can |
7934 | # have problems creating the table of contents. If linking a library |
7935 | # or program results in "error TOC overflow" add -mminimal-toc to |
7936 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
7937 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
7938 | |
7939 | archive_cmds='' |
7940 | hardcode_direct=yes |
7941 | hardcode_libdir_separator=':' |
7942 | link_all_deplibs=yes |
7943 | |
7944 | if test "$GCC" = yes; then |
7945 | case $host_os in aix4.[012]|aix4.[012].*) |
7946 | # We only want to do this on AIX 4.2 and lower, the check |
7947 | # below for broken collect2 doesn't work under 4.3+ |
7948 | collect2name=`${CC} -print-prog-name=collect2` |
7949 | if test -f "$collect2name" && \ |
7950 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
7951 | then |
7952 | # We have reworked collect2 |
7953 | hardcode_direct=yes |
7954 | else |
7955 | # We have old collect2 |
7956 | hardcode_direct=unsupported |
7957 | # It fails to find uninstalled libraries when the uninstalled |
7958 | # path is not listed in the libpath. Setting hardcode_minus_L |
7959 | # to unsupported forces relinking |
7960 | hardcode_minus_L=yes |
7961 | hardcode_libdir_flag_spec='-L$libdir' |
7962 | hardcode_libdir_separator= |
7963 | fi |
7964 | ;; |
7965 | esac |
7966 | shared_flag='-shared' |
7967 | if test "$aix_use_runtimelinking" = yes; then |
7968 | shared_flag="$shared_flag "'${wl}-G' |
7969 | fi |
7970 | else |
7971 | # not using gcc |
7972 | if test "$host_cpu" = ia64; then |
7973 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
7974 | # chokes on -Wl,-G. The following line is correct: |
7975 | shared_flag='-G' |
7976 | else |
7977 | if test "$aix_use_runtimelinking" = yes; then |
7978 | shared_flag='${wl}-G' |
7979 | else |
7980 | shared_flag='${wl}-bM:SRE' |
7981 | fi |
7982 | fi |
7983 | fi |
7984 | |
7985 | # It seems that -bexpall does not export symbols beginning with |
7986 | # underscore (_), so it is better to generate a list of symbols to export. |
7987 | always_export_symbols=yes |
7988 | if test "$aix_use_runtimelinking" = yes; then |
7989 | # Warning - without using the other runtime loading flags (-brtl), |
7990 | # -berok will link without error, but may produce a broken library. |
7991 | allow_undefined_flag='-berok' |
7992 | # Determine the default libpath from the value encoded in an empty executable. |
7993 | cat >conftest.$ac_ext <<_ACEOF |
7994 | /* confdefs.h. */ |
7995 | _ACEOF |
7996 | cat confdefs.h >>conftest.$ac_ext |
7997 | cat >>conftest.$ac_ext <<_ACEOF |
7998 | /* end confdefs.h. */ |
7999 | |
8000 | int |
8001 | main () |
8002 | { |
8003 | |
8004 | ; |
8005 | return 0; |
8006 | } |
8007 | _ACEOF |
8008 | rm -f conftest.$ac_objext conftest$ac_exeext |
64ff59ba |
8009 | if { (ac_try="$ac_link" |
8010 | case "(($ac_try" in |
8011 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8012 | *) ac_try_echo=$ac_try;; |
8013 | esac |
8014 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8015 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
8016 | ac_status=$? |
8017 | grep -v '^ *+' conftest.er1 >conftest.err |
8018 | rm -f conftest.er1 |
8019 | cat conftest.err >&5 |
8020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
8021 | (exit $ac_status); } && { |
8022 | test -z "$ac_c_werror_flag" || |
8023 | test ! -s conftest.err |
8024 | } && test -s conftest$ac_exeext && |
8025 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
8026 | |
8027 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
8028 | }'` |
8029 | # Check for a 64-bit object if we didn't find anything. |
8030 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
8031 | }'`; fi |
8032 | else |
8033 | echo "$as_me: failed program was:" >&5 |
8034 | sed 's/^/| /' conftest.$ac_ext >&5 |
8035 | |
64ff59ba |
8036 | |
d9898ee8 |
8037 | fi |
64ff59ba |
8038 | |
8039 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
8040 | conftest$ac_exeext conftest.$ac_ext |
8041 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
8042 | |
8043 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
8044 | 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" |
8045 | else |
8046 | if test "$host_cpu" = ia64; then |
8047 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
8048 | allow_undefined_flag="-z nodefs" |
8049 | 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" |
8050 | else |
8051 | # Determine the default libpath from the value encoded in an empty executable. |
8052 | cat >conftest.$ac_ext <<_ACEOF |
8053 | /* confdefs.h. */ |
8054 | _ACEOF |
8055 | cat confdefs.h >>conftest.$ac_ext |
8056 | cat >>conftest.$ac_ext <<_ACEOF |
8057 | /* end confdefs.h. */ |
8058 | |
8059 | int |
8060 | main () |
8061 | { |
8062 | |
8063 | ; |
8064 | return 0; |
8065 | } |
8066 | _ACEOF |
8067 | rm -f conftest.$ac_objext conftest$ac_exeext |
64ff59ba |
8068 | if { (ac_try="$ac_link" |
8069 | case "(($ac_try" in |
8070 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8071 | *) ac_try_echo=$ac_try;; |
8072 | esac |
8073 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8074 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
8075 | ac_status=$? |
8076 | grep -v '^ *+' conftest.er1 >conftest.err |
8077 | rm -f conftest.er1 |
8078 | cat conftest.err >&5 |
8079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
8080 | (exit $ac_status); } && { |
8081 | test -z "$ac_c_werror_flag" || |
8082 | test ! -s conftest.err |
8083 | } && test -s conftest$ac_exeext && |
8084 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
8085 | |
8086 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
8087 | }'` |
8088 | # Check for a 64-bit object if we didn't find anything. |
8089 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
8090 | }'`; fi |
8091 | else |
8092 | echo "$as_me: failed program was:" >&5 |
8093 | sed 's/^/| /' conftest.$ac_ext >&5 |
8094 | |
64ff59ba |
8095 | |
d9898ee8 |
8096 | fi |
64ff59ba |
8097 | |
8098 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
8099 | conftest$ac_exeext conftest.$ac_ext |
8100 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
8101 | |
8102 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
8103 | # Warning - without using the other run time loading flags, |
8104 | # -berok will link without error, but may produce a broken library. |
8105 | no_undefined_flag=' ${wl}-bernotok' |
8106 | allow_undefined_flag=' ${wl}-berok' |
8107 | # Exported symbols can be pulled into shared objects from archives |
8108 | whole_archive_flag_spec='$convenience' |
8109 | archive_cmds_need_lc=yes |
8110 | # This is similar to how AIX traditionally builds its shared libraries. |
8111 | 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' |
8112 | fi |
8113 | fi |
8114 | ;; |
8115 | |
8116 | amigaos*) |
8117 | 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)' |
8118 | hardcode_libdir_flag_spec='-L$libdir' |
8119 | hardcode_minus_L=yes |
8120 | # see comment about different semantics on the GNU ld section |
8121 | ld_shlibs=no |
8122 | ;; |
8123 | |
8124 | bsdi[45]*) |
8125 | export_dynamic_flag_spec=-rdynamic |
8126 | ;; |
8127 | |
8128 | cygwin* | mingw* | pw32*) |
8129 | # When not using gcc, we currently assume that we are using |
8130 | # Microsoft Visual C++. |
8131 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
8132 | # no search path for DLLs. |
8133 | hardcode_libdir_flag_spec=' ' |
8134 | allow_undefined_flag=unsupported |
8135 | # Tell ltmain to make .lib files, not .a files. |
8136 | libext=lib |
8137 | # Tell ltmain to make .dll files, not .so files. |
8138 | shrext_cmds=".dll" |
8139 | # FIXME: Setting linknames here is a bad hack. |
8140 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
8141 | # The linker will automatically build a .lib file if we build a DLL. |
8142 | old_archive_From_new_cmds='true' |
8143 | # FIXME: Should let the user specify the lib program. |
8144 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
8145 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
8146 | enable_shared_with_static_runtimes=yes |
8147 | ;; |
8148 | |
8149 | darwin* | rhapsody*) |
8150 | case $host_os in |
8151 | rhapsody* | darwin1.[012]) |
8152 | allow_undefined_flag='${wl}-undefined ${wl}suppress' |
8153 | ;; |
8154 | *) # Darwin 1.3 on |
8155 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
8156 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
8157 | else |
8158 | case ${MACOSX_DEPLOYMENT_TARGET} in |
8159 | 10.[012]) |
8160 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
8161 | ;; |
8162 | 10.*) |
8163 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' |
8164 | ;; |
8165 | esac |
8166 | fi |
8167 | ;; |
8168 | esac |
8169 | archive_cmds_need_lc=no |
8170 | hardcode_direct=no |
8171 | hardcode_automatic=yes |
8172 | hardcode_shlibpath_var=unsupported |
8173 | whole_archive_flag_spec='' |
8174 | link_all_deplibs=yes |
8175 | if test "$GCC" = yes ; then |
8176 | output_verbose_link_cmd='echo' |
8177 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
8178 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
8179 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
8180 | 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}' |
8181 | 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}' |
8182 | else |
8183 | case $cc_basename in |
8184 | xlc*) |
8185 | output_verbose_link_cmd='echo' |
8186 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
8187 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
8188 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
8189 | archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
8190 | 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}' |
8191 | ;; |
8192 | *) |
8193 | ld_shlibs=no |
8194 | ;; |
8195 | esac |
8196 | fi |
8197 | ;; |
8198 | |
8199 | dgux*) |
8200 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8201 | hardcode_libdir_flag_spec='-L$libdir' |
8202 | hardcode_shlibpath_var=no |
8203 | ;; |
8204 | |
8205 | freebsd1*) |
8206 | ld_shlibs=no |
8207 | ;; |
8208 | |
8209 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
8210 | # support. Future versions do this automatically, but an explicit c++rt0.o |
8211 | # does not break anything, and helps significantly (at the cost of a little |
8212 | # extra space). |
8213 | freebsd2.2*) |
8214 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
8215 | hardcode_libdir_flag_spec='-R$libdir' |
8216 | hardcode_direct=yes |
8217 | hardcode_shlibpath_var=no |
8218 | ;; |
8219 | |
8220 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
8221 | freebsd2*) |
8222 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
8223 | hardcode_direct=yes |
8224 | hardcode_minus_L=yes |
8225 | hardcode_shlibpath_var=no |
8226 | ;; |
8227 | |
8228 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
8229 | freebsd* | kfreebsd*-gnu | dragonfly*) |
8230 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
8231 | hardcode_libdir_flag_spec='-R$libdir' |
8232 | hardcode_direct=yes |
8233 | hardcode_shlibpath_var=no |
8234 | ;; |
8235 | |
8236 | hpux9*) |
8237 | if test "$GCC" = yes; then |
8238 | 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' |
8239 | else |
8240 | 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' |
8241 | fi |
8242 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
8243 | hardcode_libdir_separator=: |
8244 | hardcode_direct=yes |
8245 | |
8246 | # hardcode_minus_L: Not really in the search PATH, |
8247 | # but as the default location of the library. |
8248 | hardcode_minus_L=yes |
8249 | export_dynamic_flag_spec='${wl}-E' |
8250 | ;; |
8251 | |
8252 | hpux10*) |
8253 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
8254 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
8255 | else |
8256 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
8257 | fi |
8258 | if test "$with_gnu_ld" = no; then |
8259 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
8260 | hardcode_libdir_separator=: |
8261 | |
8262 | hardcode_direct=yes |
8263 | export_dynamic_flag_spec='${wl}-E' |
8264 | |
8265 | # hardcode_minus_L: Not really in the search PATH, |
8266 | # but as the default location of the library. |
8267 | hardcode_minus_L=yes |
8268 | fi |
8269 | ;; |
8270 | |
8271 | hpux11*) |
8272 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
8273 | case $host_cpu in |
8274 | hppa*64*) |
8275 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8276 | ;; |
8277 | ia64*) |
8278 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
8279 | ;; |
8280 | *) |
8281 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
8282 | ;; |
8283 | esac |
8284 | else |
8285 | case $host_cpu in |
8286 | hppa*64*) |
8287 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8288 | ;; |
8289 | ia64*) |
8290 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
8291 | ;; |
8292 | *) |
8293 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
8294 | ;; |
8295 | esac |
8296 | fi |
8297 | if test "$with_gnu_ld" = no; then |
8298 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
8299 | hardcode_libdir_separator=: |
8300 | |
8301 | case $host_cpu in |
8302 | hppa*64*|ia64*) |
8303 | hardcode_libdir_flag_spec_ld='+b $libdir' |
8304 | hardcode_direct=no |
8305 | hardcode_shlibpath_var=no |
8306 | ;; |
8307 | *) |
8308 | hardcode_direct=yes |
8309 | export_dynamic_flag_spec='${wl}-E' |
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 | ;; |
8315 | esac |
8316 | fi |
8317 | ;; |
8318 | |
8319 | irix5* | irix6* | nonstopux*) |
8320 | if test "$GCC" = yes; then |
8321 | 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' |
8322 | else |
8323 | 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' |
8324 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
8325 | fi |
8326 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
8327 | hardcode_libdir_separator=: |
8328 | link_all_deplibs=yes |
8329 | ;; |
8330 | |
8331 | netbsd*) |
8332 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
8333 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
8334 | else |
8335 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
8336 | fi |
8337 | hardcode_libdir_flag_spec='-R$libdir' |
8338 | hardcode_direct=yes |
8339 | hardcode_shlibpath_var=no |
8340 | ;; |
8341 | |
8342 | newsos6) |
8343 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8344 | hardcode_direct=yes |
8345 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
8346 | hardcode_libdir_separator=: |
8347 | hardcode_shlibpath_var=no |
8348 | ;; |
8349 | |
8350 | openbsd*) |
8351 | hardcode_direct=yes |
8352 | hardcode_shlibpath_var=no |
8353 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
8354 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
8355 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
8356 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
8357 | export_dynamic_flag_spec='${wl}-E' |
8358 | else |
8359 | case $host_os in |
8360 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
8361 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
8362 | hardcode_libdir_flag_spec='-R$libdir' |
8363 | ;; |
8364 | *) |
8365 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
8366 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
8367 | ;; |
8368 | esac |
8369 | fi |
8370 | ;; |
8371 | |
8372 | os2*) |
8373 | hardcode_libdir_flag_spec='-L$libdir' |
8374 | hardcode_minus_L=yes |
8375 | allow_undefined_flag=unsupported |
8376 | 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' |
8377 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
8378 | ;; |
8379 | |
8380 | osf3*) |
8381 | if test "$GCC" = yes; then |
8382 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
8383 | 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' |
8384 | else |
8385 | allow_undefined_flag=' -expect_unresolved \*' |
8386 | 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' |
8387 | fi |
8388 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
8389 | hardcode_libdir_separator=: |
8390 | ;; |
8391 | |
8392 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
8393 | if test "$GCC" = yes; then |
8394 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
8395 | 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' |
8396 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
8397 | else |
8398 | allow_undefined_flag=' -expect_unresolved \*' |
8399 | 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' |
8400 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
8401 | $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' |
8402 | |
8403 | # Both c and cxx compiler support -rpath directly |
8404 | hardcode_libdir_flag_spec='-rpath $libdir' |
8405 | fi |
8406 | hardcode_libdir_separator=: |
8407 | ;; |
8408 | |
8409 | solaris*) |
8410 | no_undefined_flag=' -z text' |
8411 | if test "$GCC" = yes; then |
8412 | wlarc='${wl}' |
8413 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8414 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
8415 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
8416 | else |
8417 | wlarc='' |
8418 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8419 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
8420 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
8421 | fi |
8422 | hardcode_libdir_flag_spec='-R$libdir' |
8423 | hardcode_shlibpath_var=no |
8424 | case $host_os in |
8425 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
8426 | *) |
8427 | # The compiler driver will combine linker options so we |
8428 | # cannot just pass the convience library names through |
8429 | # without $wl, iff we do not link with $LD. |
8430 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
8431 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
8432 | case $wlarc in |
8433 | '') |
8434 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
8435 | *) |
8436 | whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; |
8437 | esac ;; |
8438 | esac |
8439 | link_all_deplibs=yes |
8440 | ;; |
8441 | |
8442 | sunos4*) |
8443 | if test "x$host_vendor" = xsequent; then |
8444 | # Use $CC to link under sequent, because it throws in some extra .o |
8445 | # files that make .init and .fini sections work. |
8446 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
8447 | else |
8448 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
8449 | fi |
8450 | hardcode_libdir_flag_spec='-L$libdir' |
8451 | hardcode_direct=yes |
8452 | hardcode_minus_L=yes |
8453 | hardcode_shlibpath_var=no |
8454 | ;; |
8455 | |
8456 | sysv4) |
8457 | case $host_vendor in |
8458 | sni) |
8459 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8460 | hardcode_direct=yes # is this really true??? |
8461 | ;; |
8462 | siemens) |
8463 | ## LD is ld it makes a PLAMLIB |
8464 | ## CC just makes a GrossModule. |
8465 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
8466 | reload_cmds='$CC -r -o $output$reload_objs' |
8467 | hardcode_direct=no |
8468 | ;; |
8469 | motorola) |
8470 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8471 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
8472 | ;; |
8473 | esac |
8474 | runpath_var='LD_RUN_PATH' |
8475 | hardcode_shlibpath_var=no |
8476 | ;; |
8477 | |
8478 | sysv4.3*) |
8479 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8480 | hardcode_shlibpath_var=no |
8481 | export_dynamic_flag_spec='-Bexport' |
8482 | ;; |
8483 | |
8484 | sysv4*MP*) |
8485 | if test -d /usr/nec; then |
8486 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8487 | hardcode_shlibpath_var=no |
8488 | runpath_var=LD_RUN_PATH |
8489 | hardcode_runpath_var=yes |
8490 | ld_shlibs=yes |
8491 | fi |
8492 | ;; |
8493 | |
8494 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
8495 | no_undefined_flag='${wl}-z,text' |
8496 | archive_cmds_need_lc=no |
8497 | hardcode_shlibpath_var=no |
8498 | runpath_var='LD_RUN_PATH' |
8499 | |
8500 | if test "$GCC" = yes; then |
8501 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
8502 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
8503 | else |
8504 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
8505 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
8506 | fi |
8507 | ;; |
8508 | |
8509 | sysv5* | sco3.2v5* | sco5v6*) |
8510 | # Note: We can NOT use -z defs as we might desire, because we do not |
8511 | # link with -lc, and that would cause any symbols used from libc to |
8512 | # always be unresolved, which means just about no library would |
8513 | # ever link correctly. If we're not using GNU ld we use -z text |
8514 | # though, which does catch some bad symbols but isn't as heavy-handed |
8515 | # as -z defs. |
8516 | no_undefined_flag='${wl}-z,text' |
8517 | allow_undefined_flag='${wl}-z,nodefs' |
8518 | archive_cmds_need_lc=no |
8519 | hardcode_shlibpath_var=no |
8520 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
8521 | hardcode_libdir_separator=':' |
8522 | link_all_deplibs=yes |
8523 | export_dynamic_flag_spec='${wl}-Bexport' |
8524 | runpath_var='LD_RUN_PATH' |
8525 | |
8526 | if test "$GCC" = yes; then |
8527 | archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8528 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8529 | else |
8530 | archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8531 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8532 | fi |
8533 | ;; |
8534 | |
8535 | uts4*) |
8536 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8537 | hardcode_libdir_flag_spec='-L$libdir' |
8538 | hardcode_shlibpath_var=no |
8539 | ;; |
8540 | |
8541 | *) |
8542 | ld_shlibs=no |
8543 | ;; |
8544 | esac |
8545 | fi |
8546 | |
64ff59ba |
8547 | { echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
8548 | echo "${ECHO_T}$ld_shlibs" >&6; } |
d9898ee8 |
8549 | test "$ld_shlibs" = no && can_build_shared=no |
8550 | |
8551 | # |
8552 | # Do we need to explicitly link libc? |
8553 | # |
8554 | case "x$archive_cmds_need_lc" in |
8555 | x|xyes) |
8556 | # Assume -lc should be added |
8557 | archive_cmds_need_lc=yes |
8558 | |
8559 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
8560 | case $archive_cmds in |
8561 | *'~'*) |
8562 | # FIXME: we may have to deal with multi-command sequences. |
8563 | ;; |
8564 | '$CC '*) |
8565 | # Test whether the compiler implicitly links with -lc since on some |
8566 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
8567 | # to ld, don't add -lc before -lgcc. |
64ff59ba |
8568 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
8569 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
d9898ee8 |
8570 | $rm conftest* |
8571 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
8572 | |
8573 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
8574 | (eval $ac_compile) 2>&5 |
8575 | ac_status=$? |
8576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8577 | (exit $ac_status); } 2>conftest.err; then |
8578 | soname=conftest |
8579 | lib=conftest |
8580 | libobjs=conftest.$ac_objext |
8581 | deplibs= |
8582 | wl=$lt_prog_compiler_wl |
8583 | pic_flag=$lt_prog_compiler_pic |
8584 | compiler_flags=-v |
8585 | linker_flags=-v |
8586 | verstring= |
8587 | output_objdir=. |
8588 | libname=conftest |
8589 | lt_save_allow_undefined_flag=$allow_undefined_flag |
8590 | allow_undefined_flag= |
8591 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
8592 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
8593 | ac_status=$? |
8594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8595 | (exit $ac_status); } |
8596 | then |
8597 | archive_cmds_need_lc=no |
8598 | else |
8599 | archive_cmds_need_lc=yes |
8600 | fi |
8601 | allow_undefined_flag=$lt_save_allow_undefined_flag |
8602 | else |
8603 | cat conftest.err 1>&5 |
8604 | fi |
8605 | $rm conftest* |
64ff59ba |
8606 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
8607 | echo "${ECHO_T}$archive_cmds_need_lc" >&6; } |
d9898ee8 |
8608 | ;; |
8609 | esac |
8610 | fi |
8611 | ;; |
8612 | esac |
8613 | |
64ff59ba |
8614 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
8615 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
d9898ee8 |
8616 | library_names_spec= |
8617 | libname_spec='lib$name' |
8618 | soname_spec= |
8619 | shrext_cmds=".so" |
8620 | postinstall_cmds= |
8621 | postuninstall_cmds= |
8622 | finish_cmds= |
8623 | finish_eval= |
8624 | shlibpath_var= |
8625 | shlibpath_overrides_runpath=unknown |
8626 | version_type=none |
8627 | dynamic_linker="$host_os ld.so" |
8628 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
8629 | if test "$GCC" = yes; then |
8630 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
8631 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
8632 | # if the path contains ";" then we assume it to be the separator |
8633 | # otherwise default to the standard path separator (i.e. ":") - it is |
8634 | # assumed that no part of a normal pathname contains ";" but that should |
8635 | # okay in the real world where ";" in dirpaths is itself problematic. |
8636 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
8637 | else |
8638 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
8639 | fi |
8640 | else |
8641 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
8642 | fi |
8643 | need_lib_prefix=unknown |
8644 | hardcode_into_libs=no |
8645 | |
8646 | # when you set need_version to no, make sure it does not cause -set_version |
8647 | # flags to be left without arguments |
8648 | need_version=unknown |
8649 | |
8650 | case $host_os in |
8651 | aix3*) |
8652 | version_type=linux |
8653 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
8654 | shlibpath_var=LIBPATH |
8655 | |
8656 | # AIX 3 has no versioning support, so we append a major version to the name. |
8657 | soname_spec='${libname}${release}${shared_ext}$major' |
8658 | ;; |
8659 | |
8660 | aix4* | aix5*) |
8661 | version_type=linux |
8662 | need_lib_prefix=no |
8663 | need_version=no |
8664 | hardcode_into_libs=yes |
8665 | if test "$host_cpu" = ia64; then |
8666 | # AIX 5 supports IA64 |
8667 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
8668 | shlibpath_var=LD_LIBRARY_PATH |
8669 | else |
8670 | # With GCC up to 2.95.x, collect2 would create an import file |
8671 | # for dependence libraries. The import file would start with |
8672 | # the line `#! .'. This would cause the generated library to |
8673 | # depend on `.', always an invalid library. This was fixed in |
8674 | # development snapshots of GCC prior to 3.0. |
8675 | case $host_os in |
8676 | aix4 | aix4.[01] | aix4.[01].*) |
8677 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
8678 | echo ' yes ' |
8679 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
8680 | : |
8681 | else |
8682 | can_build_shared=no |
8683 | fi |
8684 | ;; |
8685 | esac |
8686 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
8687 | # soname into executable. Probably we can add versioning support to |
8688 | # collect2, so additional links can be useful in future. |
8689 | if test "$aix_use_runtimelinking" = yes; then |
8690 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
8691 | # instead of lib<name>.a to let people know that these are not |
8692 | # typical AIX shared libraries. |
8693 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8694 | else |
8695 | # We preserve .a as extension for shared libraries through AIX4.2 |
8696 | # and later when we are not doing run time linking. |
8697 | library_names_spec='${libname}${release}.a $libname.a' |
8698 | soname_spec='${libname}${release}${shared_ext}$major' |
8699 | fi |
8700 | shlibpath_var=LIBPATH |
8701 | fi |
8702 | ;; |
8703 | |
8704 | amigaos*) |
8705 | library_names_spec='$libname.ixlibrary $libname.a' |
8706 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
8707 | 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' |
8708 | ;; |
8709 | |
8710 | beos*) |
8711 | library_names_spec='${libname}${shared_ext}' |
8712 | dynamic_linker="$host_os ld.so" |
8713 | shlibpath_var=LIBRARY_PATH |
8714 | ;; |
8715 | |
8716 | bsdi[45]*) |
8717 | version_type=linux |
8718 | need_version=no |
8719 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8720 | soname_spec='${libname}${release}${shared_ext}$major' |
8721 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
8722 | shlibpath_var=LD_LIBRARY_PATH |
8723 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
8724 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
8725 | # the default ld.so.conf also contains /usr/contrib/lib and |
8726 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
8727 | # libtool to hard-code these into programs |
8728 | ;; |
8729 | |
8730 | cygwin* | mingw* | pw32*) |
8731 | version_type=windows |
8732 | shrext_cmds=".dll" |
8733 | need_version=no |
8734 | need_lib_prefix=no |
8735 | |
8736 | case $GCC,$host_os in |
8737 | yes,cygwin* | yes,mingw* | yes,pw32*) |
8738 | library_names_spec='$libname.dll.a' |
8739 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
8740 | postinstall_cmds='base_file=`basename \${file}`~ |
8741 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
8742 | dldir=$destdir/`dirname \$dlpath`~ |
8743 | test -d \$dldir || mkdir -p \$dldir~ |
8744 | $install_prog $dir/$dlname \$dldir/$dlname~ |
8745 | chmod a+x \$dldir/$dlname' |
8746 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
8747 | dlpath=$dir/\$dldll~ |
8748 | $rm \$dlpath' |
8749 | shlibpath_overrides_runpath=yes |
8750 | |
8751 | case $host_os in |
8752 | cygwin*) |
8753 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
8754 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
8755 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
8756 | ;; |
8757 | mingw*) |
8758 | # MinGW DLLs use traditional 'lib' prefix |
8759 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
8760 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
8761 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
8762 | # It is most probably a Windows format PATH printed by |
8763 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
8764 | # path with ; separators, and with drive letters. We can handle the |
8765 | # drive letters (cygwin fileutils understands them), so leave them, |
8766 | # especially as we might pass files found there to a mingw objdump, |
8767 | # which wouldn't understand a cygwinified path. Ahh. |
8768 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
8769 | else |
8770 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
8771 | fi |
8772 | ;; |
8773 | pw32*) |
8774 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
8775 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
8776 | ;; |
8777 | esac |
8778 | ;; |
8779 | |
8780 | *) |
8781 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
8782 | ;; |
8783 | esac |
8784 | dynamic_linker='Win32 ld.exe' |
8785 | # FIXME: first we should search . and the directory the executable is in |
8786 | shlibpath_var=PATH |
8787 | ;; |
8788 | |
8789 | darwin* | rhapsody*) |
8790 | dynamic_linker="$host_os dyld" |
8791 | version_type=darwin |
8792 | need_lib_prefix=no |
8793 | need_version=no |
8794 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
8795 | soname_spec='${libname}${release}${major}$shared_ext' |
8796 | shlibpath_overrides_runpath=yes |
8797 | shlibpath_var=DYLD_LIBRARY_PATH |
8798 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
8799 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
8800 | if test "$GCC" = yes; then |
8801 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
8802 | else |
8803 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
8804 | fi |
8805 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
8806 | ;; |
8807 | |
8808 | dgux*) |
8809 | version_type=linux |
8810 | need_lib_prefix=no |
8811 | need_version=no |
8812 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
8813 | soname_spec='${libname}${release}${shared_ext}$major' |
8814 | shlibpath_var=LD_LIBRARY_PATH |
8815 | ;; |
8816 | |
8817 | freebsd1*) |
8818 | dynamic_linker=no |
8819 | ;; |
8820 | |
8821 | kfreebsd*-gnu) |
8822 | version_type=linux |
8823 | need_lib_prefix=no |
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 | shlibpath_var=LD_LIBRARY_PATH |
8828 | shlibpath_overrides_runpath=no |
8829 | hardcode_into_libs=yes |
8830 | dynamic_linker='GNU ld.so' |
8831 | ;; |
8832 | |
8833 | freebsd* | dragonfly*) |
8834 | # DragonFly does not have aout. When/if they implement a new |
8835 | # versioning mechanism, adjust this. |
8836 | if test -x /usr/bin/objformat; then |
8837 | objformat=`/usr/bin/objformat` |
8838 | else |
8839 | case $host_os in |
8840 | freebsd[123]*) objformat=aout ;; |
8841 | *) objformat=elf ;; |
8842 | esac |
8843 | fi |
8844 | version_type=freebsd-$objformat |
8845 | case $version_type in |
8846 | freebsd-elf*) |
8847 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
8848 | need_version=no |
8849 | need_lib_prefix=no |
8850 | ;; |
8851 | freebsd-*) |
8852 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
8853 | need_version=yes |
8854 | ;; |
8855 | esac |
8856 | shlibpath_var=LD_LIBRARY_PATH |
8857 | case $host_os in |
8858 | freebsd2*) |
8859 | shlibpath_overrides_runpath=yes |
8860 | ;; |
8861 | freebsd3.[01]* | freebsdelf3.[01]*) |
8862 | shlibpath_overrides_runpath=yes |
8863 | hardcode_into_libs=yes |
8864 | ;; |
8865 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
8866 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
8867 | shlibpath_overrides_runpath=no |
8868 | hardcode_into_libs=yes |
8869 | ;; |
8870 | freebsd*) # from 4.6 on |
8871 | shlibpath_overrides_runpath=yes |
8872 | hardcode_into_libs=yes |
8873 | ;; |
8874 | esac |
8875 | ;; |
8876 | |
8877 | gnu*) |
8878 | version_type=linux |
8879 | need_lib_prefix=no |
8880 | need_version=no |
8881 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
8882 | soname_spec='${libname}${release}${shared_ext}$major' |
8883 | shlibpath_var=LD_LIBRARY_PATH |
8884 | hardcode_into_libs=yes |
8885 | ;; |
8886 | |
8887 | hpux9* | hpux10* | hpux11*) |
8888 | # Give a soname corresponding to the major version so that dld.sl refuses to |
8889 | # link against other versions. |
8890 | version_type=sunos |
8891 | need_lib_prefix=no |
8892 | need_version=no |
8893 | case $host_cpu in |
8894 | ia64*) |
8895 | shrext_cmds='.so' |
8896 | hardcode_into_libs=yes |
8897 | dynamic_linker="$host_os dld.so" |
8898 | shlibpath_var=LD_LIBRARY_PATH |
8899 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
8900 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8901 | soname_spec='${libname}${release}${shared_ext}$major' |
8902 | if test "X$HPUX_IA64_MODE" = X32; then |
8903 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
8904 | else |
8905 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
8906 | fi |
8907 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
8908 | ;; |
8909 | hppa*64*) |
8910 | shrext_cmds='.sl' |
8911 | hardcode_into_libs=yes |
8912 | dynamic_linker="$host_os dld.sl" |
8913 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
8914 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
8915 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8916 | soname_spec='${libname}${release}${shared_ext}$major' |
8917 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
8918 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
8919 | ;; |
8920 | *) |
8921 | shrext_cmds='.sl' |
8922 | dynamic_linker="$host_os dld.sl" |
8923 | shlibpath_var=SHLIB_PATH |
8924 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
8925 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8926 | soname_spec='${libname}${release}${shared_ext}$major' |
8927 | ;; |
8928 | esac |
8929 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
8930 | postinstall_cmds='chmod 555 $lib' |
8931 | ;; |
8932 | |
8933 | interix3*) |
8934 | version_type=linux |
8935 | need_lib_prefix=no |
8936 | need_version=no |
8937 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
8938 | soname_spec='${libname}${release}${shared_ext}$major' |
8939 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
8940 | shlibpath_var=LD_LIBRARY_PATH |
8941 | shlibpath_overrides_runpath=no |
8942 | hardcode_into_libs=yes |
8943 | ;; |
8944 | |
8945 | irix5* | irix6* | nonstopux*) |
8946 | case $host_os in |
8947 | nonstopux*) version_type=nonstopux ;; |
8948 | *) |
8949 | if test "$lt_cv_prog_gnu_ld" = yes; then |
8950 | version_type=linux |
8951 | else |
8952 | version_type=irix |
8953 | fi ;; |
8954 | esac |
8955 | need_lib_prefix=no |
8956 | need_version=no |
8957 | soname_spec='${libname}${release}${shared_ext}$major' |
8958 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
8959 | case $host_os in |
8960 | irix5* | nonstopux*) |
8961 | libsuff= shlibsuff= |
8962 | ;; |
8963 | *) |
8964 | case $LD in # libtool.m4 will add one of these switches to LD |
8965 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
8966 | libsuff= shlibsuff= libmagic=32-bit;; |
8967 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
8968 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
8969 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
8970 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
8971 | *) libsuff= shlibsuff= libmagic=never-match;; |
8972 | esac |
8973 | ;; |
8974 | esac |
8975 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
8976 | shlibpath_overrides_runpath=no |
8977 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
8978 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
8979 | hardcode_into_libs=yes |
8980 | ;; |
8981 | |
8982 | # No shared lib support for Linux oldld, aout, or coff. |
8983 | linux*oldld* | linux*aout* | linux*coff*) |
8984 | dynamic_linker=no |
8985 | ;; |
8986 | |
8987 | # This must be Linux ELF. |
8988 | linux*) |
8989 | version_type=linux |
8990 | need_lib_prefix=no |
8991 | need_version=no |
8992 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8993 | soname_spec='${libname}${release}${shared_ext}$major' |
8994 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
8995 | shlibpath_var=LD_LIBRARY_PATH |
8996 | shlibpath_overrides_runpath=no |
8997 | # This implies no fast_install, which is unacceptable. |
8998 | # Some rework will be needed to allow for fast_install |
8999 | # before this can be enabled. |
9000 | hardcode_into_libs=yes |
9001 | |
9002 | # find out which ABI we are using |
9003 | libsuff= |
9004 | case "$host_cpu" in |
9005 | x86_64*|s390x*|powerpc64*) |
64ff59ba |
9006 | echo '#line 9006 "configure"' > conftest.$ac_ext |
d9898ee8 |
9007 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
9008 | (eval $ac_compile) 2>&5 |
9009 | ac_status=$? |
9010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9011 | (exit $ac_status); }; then |
9012 | case `/usr/bin/file conftest.$ac_objext` in |
9013 | *64-bit*) |
9014 | libsuff=64 |
9015 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" |
9016 | ;; |
9017 | esac |
9018 | fi |
9019 | rm -rf conftest* |
9020 | ;; |
9021 | esac |
9022 | |
9023 | # Append ld.so.conf contents to the search path |
9024 | if test -f /etc/ld.so.conf; then |
64ff59ba |
9025 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/^ *//;s/#.*//;/^[^\/]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
d9898ee8 |
9026 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" |
9027 | fi |
9028 | |
9029 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
9030 | # powerpc, because MkLinux only supported shared libraries with the |
9031 | # GNU dynamic linker. Since this was broken with cross compilers, |
9032 | # most powerpc-linux boxes support dynamic linking these days and |
9033 | # people can always --disable-shared, the test was removed, and we |
9034 | # assume the GNU/Linux dynamic linker is in use. |
9035 | dynamic_linker='GNU/Linux ld.so' |
9036 | ;; |
9037 | |
9038 | knetbsd*-gnu) |
9039 | version_type=linux |
9040 | need_lib_prefix=no |
9041 | need_version=no |
9042 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
9043 | soname_spec='${libname}${release}${shared_ext}$major' |
9044 | shlibpath_var=LD_LIBRARY_PATH |
9045 | shlibpath_overrides_runpath=no |
9046 | hardcode_into_libs=yes |
9047 | dynamic_linker='GNU ld.so' |
9048 | ;; |
9049 | |
9050 | netbsd*) |
9051 | version_type=sunos |
9052 | need_lib_prefix=no |
9053 | need_version=no |
9054 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
9055 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
9056 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
9057 | dynamic_linker='NetBSD (a.out) ld.so' |
9058 | else |
9059 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
9060 | soname_spec='${libname}${release}${shared_ext}$major' |
9061 | dynamic_linker='NetBSD ld.elf_so' |
9062 | fi |
9063 | shlibpath_var=LD_LIBRARY_PATH |
9064 | shlibpath_overrides_runpath=yes |
9065 | hardcode_into_libs=yes |
9066 | ;; |
9067 | |
9068 | newsos6) |
9069 | version_type=linux |
9070 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9071 | shlibpath_var=LD_LIBRARY_PATH |
9072 | shlibpath_overrides_runpath=yes |
9073 | ;; |
9074 | |
9075 | nto-qnx*) |
9076 | version_type=linux |
9077 | need_lib_prefix=no |
9078 | need_version=no |
9079 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9080 | soname_spec='${libname}${release}${shared_ext}$major' |
9081 | shlibpath_var=LD_LIBRARY_PATH |
9082 | shlibpath_overrides_runpath=yes |
9083 | ;; |
9084 | |
9085 | openbsd*) |
9086 | version_type=sunos |
9087 | sys_lib_dlsearch_path_spec="/usr/lib" |
9088 | need_lib_prefix=no |
9089 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
9090 | case $host_os in |
9091 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
9092 | *) need_version=no ;; |
9093 | esac |
9094 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
9095 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
9096 | shlibpath_var=LD_LIBRARY_PATH |
9097 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
9098 | case $host_os in |
9099 | openbsd2.[89] | openbsd2.[89].*) |
9100 | shlibpath_overrides_runpath=no |
9101 | ;; |
9102 | *) |
9103 | shlibpath_overrides_runpath=yes |
9104 | ;; |
9105 | esac |
9106 | else |
9107 | shlibpath_overrides_runpath=yes |
9108 | fi |
9109 | ;; |
9110 | |
9111 | os2*) |
9112 | libname_spec='$name' |
9113 | shrext_cmds=".dll" |
9114 | need_lib_prefix=no |
9115 | library_names_spec='$libname${shared_ext} $libname.a' |
9116 | dynamic_linker='OS/2 ld.exe' |
9117 | shlibpath_var=LIBPATH |
9118 | ;; |
9119 | |
9120 | osf3* | osf4* | osf5*) |
9121 | version_type=osf |
9122 | need_lib_prefix=no |
9123 | need_version=no |
9124 | soname_spec='${libname}${release}${shared_ext}$major' |
9125 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9126 | shlibpath_var=LD_LIBRARY_PATH |
9127 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
9128 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
9129 | ;; |
9130 | |
9131 | solaris*) |
9132 | version_type=linux |
9133 | need_lib_prefix=no |
9134 | need_version=no |
9135 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9136 | soname_spec='${libname}${release}${shared_ext}$major' |
9137 | shlibpath_var=LD_LIBRARY_PATH |
9138 | shlibpath_overrides_runpath=yes |
9139 | hardcode_into_libs=yes |
9140 | # ldd complains unless libraries are executable |
9141 | postinstall_cmds='chmod +x $lib' |
9142 | ;; |
9143 | |
9144 | sunos4*) |
9145 | version_type=sunos |
9146 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
9147 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
9148 | shlibpath_var=LD_LIBRARY_PATH |
9149 | shlibpath_overrides_runpath=yes |
9150 | if test "$with_gnu_ld" = yes; then |
9151 | need_lib_prefix=no |
9152 | fi |
9153 | need_version=yes |
9154 | ;; |
9155 | |
9156 | sysv4 | sysv4.3*) |
9157 | version_type=linux |
9158 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9159 | soname_spec='${libname}${release}${shared_ext}$major' |
9160 | shlibpath_var=LD_LIBRARY_PATH |
9161 | case $host_vendor in |
9162 | sni) |
9163 | shlibpath_overrides_runpath=no |
9164 | need_lib_prefix=no |
9165 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
9166 | runpath_var=LD_RUN_PATH |
9167 | ;; |
9168 | siemens) |
9169 | need_lib_prefix=no |
9170 | ;; |
9171 | motorola) |
9172 | need_lib_prefix=no |
9173 | need_version=no |
9174 | shlibpath_overrides_runpath=no |
9175 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
9176 | ;; |
9177 | esac |
9178 | ;; |
9179 | |
9180 | sysv4*MP*) |
9181 | if test -d /usr/nec ;then |
9182 | version_type=linux |
9183 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
9184 | soname_spec='$libname${shared_ext}.$major' |
9185 | shlibpath_var=LD_LIBRARY_PATH |
9186 | fi |
9187 | ;; |
9188 | |
9189 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
9190 | version_type=freebsd-elf |
9191 | need_lib_prefix=no |
9192 | need_version=no |
9193 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
9194 | soname_spec='${libname}${release}${shared_ext}$major' |
9195 | shlibpath_var=LD_LIBRARY_PATH |
9196 | hardcode_into_libs=yes |
9197 | if test "$with_gnu_ld" = yes; then |
9198 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
9199 | shlibpath_overrides_runpath=no |
9200 | else |
9201 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
9202 | shlibpath_overrides_runpath=yes |
9203 | case $host_os in |
9204 | sco3.2v5*) |
9205 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
9206 | ;; |
9207 | esac |
9208 | fi |
9209 | sys_lib_dlsearch_path_spec='/usr/lib' |
9210 | ;; |
9211 | |
9212 | uts4*) |
9213 | version_type=linux |
9214 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9215 | soname_spec='${libname}${release}${shared_ext}$major' |
9216 | shlibpath_var=LD_LIBRARY_PATH |
9217 | ;; |
9218 | |
9219 | *) |
9220 | dynamic_linker=no |
9221 | ;; |
9222 | esac |
64ff59ba |
9223 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
9224 | echo "${ECHO_T}$dynamic_linker" >&6; } |
d9898ee8 |
9225 | test "$dynamic_linker" = no && can_build_shared=no |
9226 | |
9227 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
9228 | if test "$GCC" = yes; then |
9229 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
9230 | fi |
9231 | |
64ff59ba |
9232 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
9233 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
d9898ee8 |
9234 | hardcode_action= |
9235 | if test -n "$hardcode_libdir_flag_spec" || \ |
9236 | test -n "$runpath_var" || \ |
9237 | test "X$hardcode_automatic" = "Xyes" ; then |
9238 | |
9239 | # We can hardcode non-existant directories. |
9240 | if test "$hardcode_direct" != no && |
9241 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
9242 | # have to relink, otherwise we might link with an installed library |
9243 | # when we should be linking with a yet-to-be-installed one |
9244 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
9245 | test "$hardcode_minus_L" != no; then |
9246 | # Linking always hardcodes the temporary library directory. |
9247 | hardcode_action=relink |
9248 | else |
9249 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
9250 | hardcode_action=immediate |
9251 | fi |
9252 | else |
9253 | # We cannot hardcode anything, or else we can only hardcode existing |
9254 | # directories. |
9255 | hardcode_action=unsupported |
9256 | fi |
64ff59ba |
9257 | { echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
9258 | echo "${ECHO_T}$hardcode_action" >&6; } |
d9898ee8 |
9259 | |
9260 | if test "$hardcode_action" = relink; then |
9261 | # Fast installation is not supported |
9262 | enable_fast_install=no |
9263 | elif test "$shlibpath_overrides_runpath" = yes || |
9264 | test "$enable_shared" = no; then |
9265 | # Fast installation is not necessary |
9266 | enable_fast_install=needless |
9267 | fi |
9268 | |
9269 | striplib= |
9270 | old_striplib= |
64ff59ba |
9271 | { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
9272 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } |
d9898ee8 |
9273 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
9274 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
9275 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
64ff59ba |
9276 | { echo "$as_me:$LINENO: result: yes" >&5 |
9277 | echo "${ECHO_T}yes" >&6; } |
d9898ee8 |
9278 | else |
9279 | # FIXME - insert some real tests, host_os isn't really good enough |
9280 | case $host_os in |
9281 | darwin*) |
9282 | if test -n "$STRIP" ; then |
9283 | striplib="$STRIP -x" |
64ff59ba |
9284 | { echo "$as_me:$LINENO: result: yes" >&5 |
9285 | echo "${ECHO_T}yes" >&6; } |
d9898ee8 |
9286 | else |
64ff59ba |
9287 | { echo "$as_me:$LINENO: result: no" >&5 |
9288 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
9289 | fi |
9290 | ;; |
9291 | *) |
64ff59ba |
9292 | { echo "$as_me:$LINENO: result: no" >&5 |
9293 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
9294 | ;; |
9295 | esac |
9296 | fi |
9297 | |
9298 | if test "x$enable_dlopen" != xyes; then |
9299 | enable_dlopen=unknown |
9300 | enable_dlopen_self=unknown |
9301 | enable_dlopen_self_static=unknown |
9302 | else |
9303 | lt_cv_dlopen=no |
9304 | lt_cv_dlopen_libs= |
9305 | |
9306 | case $host_os in |
9307 | beos*) |
9308 | lt_cv_dlopen="load_add_on" |
9309 | lt_cv_dlopen_libs= |
9310 | lt_cv_dlopen_self=yes |
9311 | ;; |
9312 | |
9313 | mingw* | pw32*) |
9314 | lt_cv_dlopen="LoadLibrary" |
9315 | lt_cv_dlopen_libs= |
9316 | ;; |
9317 | |
9318 | cygwin*) |
9319 | lt_cv_dlopen="dlopen" |
9320 | lt_cv_dlopen_libs= |
9321 | ;; |
9322 | |
9323 | darwin*) |
9324 | # if libdl is installed we need to link against it |
64ff59ba |
9325 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
9326 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
d9898ee8 |
9327 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
9328 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9329 | else |
9330 | ac_check_lib_save_LIBS=$LIBS |
9331 | LIBS="-ldl $LIBS" |
9332 | cat >conftest.$ac_ext <<_ACEOF |
9333 | /* confdefs.h. */ |
9334 | _ACEOF |
9335 | cat confdefs.h >>conftest.$ac_ext |
9336 | cat >>conftest.$ac_ext <<_ACEOF |
9337 | /* end confdefs.h. */ |
9338 | |
64ff59ba |
9339 | /* Override any GCC internal prototype to avoid an error. |
9340 | Use char because int might match the return type of a GCC |
9341 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
9342 | #ifdef __cplusplus |
9343 | extern "C" |
9344 | #endif |
d9898ee8 |
9345 | char dlopen (); |
9346 | int |
9347 | main () |
9348 | { |
64ff59ba |
9349 | return dlopen (); |
d9898ee8 |
9350 | ; |
9351 | return 0; |
9352 | } |
9353 | _ACEOF |
9354 | rm -f conftest.$ac_objext conftest$ac_exeext |
64ff59ba |
9355 | if { (ac_try="$ac_link" |
9356 | case "(($ac_try" in |
9357 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9358 | *) ac_try_echo=$ac_try;; |
9359 | esac |
9360 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9361 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
9362 | ac_status=$? |
9363 | grep -v '^ *+' conftest.er1 >conftest.err |
9364 | rm -f conftest.er1 |
9365 | cat conftest.err >&5 |
9366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
9367 | (exit $ac_status); } && { |
9368 | test -z "$ac_c_werror_flag" || |
9369 | test ! -s conftest.err |
9370 | } && test -s conftest$ac_exeext && |
9371 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
9372 | ac_cv_lib_dl_dlopen=yes |
9373 | else |
9374 | echo "$as_me: failed program was:" >&5 |
9375 | sed 's/^/| /' conftest.$ac_ext >&5 |
9376 | |
64ff59ba |
9377 | ac_cv_lib_dl_dlopen=no |
d9898ee8 |
9378 | fi |
64ff59ba |
9379 | |
9380 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
9381 | conftest$ac_exeext conftest.$ac_ext |
9382 | LIBS=$ac_check_lib_save_LIBS |
9383 | fi |
64ff59ba |
9384 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
9385 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
d9898ee8 |
9386 | if test $ac_cv_lib_dl_dlopen = yes; then |
9387 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
9388 | else |
9389 | |
9390 | lt_cv_dlopen="dyld" |
9391 | lt_cv_dlopen_libs= |
9392 | lt_cv_dlopen_self=yes |
9393 | |
9394 | fi |
9395 | |
9396 | ;; |
9397 | |
9398 | *) |
64ff59ba |
9399 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
9400 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
d9898ee8 |
9401 | if test "${ac_cv_func_shl_load+set}" = set; then |
9402 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9403 | else |
9404 | cat >conftest.$ac_ext <<_ACEOF |
9405 | /* confdefs.h. */ |
9406 | _ACEOF |
9407 | cat confdefs.h >>conftest.$ac_ext |
9408 | cat >>conftest.$ac_ext <<_ACEOF |
9409 | /* end confdefs.h. */ |
9410 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
9411 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
9412 | #define shl_load innocuous_shl_load |
9413 | |
9414 | /* System header to define __stub macros and hopefully few prototypes, |
9415 | which can conflict with char shl_load (); below. |
9416 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
9417 | <limits.h> exists even on freestanding compilers. */ |
9418 | |
9419 | #ifdef __STDC__ |
9420 | # include <limits.h> |
9421 | #else |
9422 | # include <assert.h> |
9423 | #endif |
9424 | |
9425 | #undef shl_load |
9426 | |
64ff59ba |
9427 | /* Override any GCC internal prototype to avoid an error. |
9428 | Use char because int might match the return type of a GCC |
9429 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
9430 | #ifdef __cplusplus |
9431 | extern "C" |
d9898ee8 |
9432 | #endif |
d9898ee8 |
9433 | char shl_load (); |
9434 | /* The GNU C library defines this for functions which it implements |
9435 | to always fail with ENOSYS. Some functions are actually named |
9436 | something starting with __ and the normal name is an alias. */ |
64ff59ba |
9437 | #if defined __stub_shl_load || defined __stub___shl_load |
d9898ee8 |
9438 | choke me |
d9898ee8 |
9439 | #endif |
9440 | |
9441 | int |
9442 | main () |
9443 | { |
64ff59ba |
9444 | return shl_load (); |
d9898ee8 |
9445 | ; |
9446 | return 0; |
9447 | } |
9448 | _ACEOF |
9449 | rm -f conftest.$ac_objext conftest$ac_exeext |
64ff59ba |
9450 | if { (ac_try="$ac_link" |
9451 | case "(($ac_try" in |
9452 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9453 | *) ac_try_echo=$ac_try;; |
9454 | esac |
9455 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9456 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
9457 | ac_status=$? |
9458 | grep -v '^ *+' conftest.er1 >conftest.err |
9459 | rm -f conftest.er1 |
9460 | cat conftest.err >&5 |
9461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
9462 | (exit $ac_status); } && { |
9463 | test -z "$ac_c_werror_flag" || |
9464 | test ! -s conftest.err |
9465 | } && test -s conftest$ac_exeext && |
9466 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
9467 | ac_cv_func_shl_load=yes |
9468 | else |
9469 | echo "$as_me: failed program was:" >&5 |
9470 | sed 's/^/| /' conftest.$ac_ext >&5 |
9471 | |
64ff59ba |
9472 | ac_cv_func_shl_load=no |
d9898ee8 |
9473 | fi |
64ff59ba |
9474 | |
9475 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
9476 | conftest$ac_exeext conftest.$ac_ext |
9477 | fi |
64ff59ba |
9478 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
9479 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
d9898ee8 |
9480 | if test $ac_cv_func_shl_load = yes; then |
9481 | lt_cv_dlopen="shl_load" |
9482 | else |
64ff59ba |
9483 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
9484 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
d9898ee8 |
9485 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
9486 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9487 | else |
9488 | ac_check_lib_save_LIBS=$LIBS |
9489 | LIBS="-ldld $LIBS" |
9490 | cat >conftest.$ac_ext <<_ACEOF |
9491 | /* confdefs.h. */ |
9492 | _ACEOF |
9493 | cat confdefs.h >>conftest.$ac_ext |
9494 | cat >>conftest.$ac_ext <<_ACEOF |
9495 | /* end confdefs.h. */ |
9496 | |
64ff59ba |
9497 | /* Override any GCC internal prototype to avoid an error. |
9498 | Use char because int might match the return type of a GCC |
9499 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
9500 | #ifdef __cplusplus |
9501 | extern "C" |
9502 | #endif |
d9898ee8 |
9503 | char shl_load (); |
9504 | int |
9505 | main () |
9506 | { |
64ff59ba |
9507 | return shl_load (); |
d9898ee8 |
9508 | ; |
9509 | return 0; |
9510 | } |
9511 | _ACEOF |
9512 | rm -f conftest.$ac_objext conftest$ac_exeext |
64ff59ba |
9513 | if { (ac_try="$ac_link" |
9514 | case "(($ac_try" in |
9515 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9516 | *) ac_try_echo=$ac_try;; |
9517 | esac |
9518 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9519 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
9520 | ac_status=$? |
9521 | grep -v '^ *+' conftest.er1 >conftest.err |
9522 | rm -f conftest.er1 |
9523 | cat conftest.err >&5 |
9524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
9525 | (exit $ac_status); } && { |
9526 | test -z "$ac_c_werror_flag" || |
9527 | test ! -s conftest.err |
9528 | } && test -s conftest$ac_exeext && |
9529 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
9530 | ac_cv_lib_dld_shl_load=yes |
9531 | else |
9532 | echo "$as_me: failed program was:" >&5 |
9533 | sed 's/^/| /' conftest.$ac_ext >&5 |
9534 | |
64ff59ba |
9535 | ac_cv_lib_dld_shl_load=no |
d9898ee8 |
9536 | fi |
64ff59ba |
9537 | |
9538 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
9539 | conftest$ac_exeext conftest.$ac_ext |
9540 | LIBS=$ac_check_lib_save_LIBS |
9541 | fi |
64ff59ba |
9542 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
9543 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
d9898ee8 |
9544 | if test $ac_cv_lib_dld_shl_load = yes; then |
9545 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
9546 | else |
64ff59ba |
9547 | { echo "$as_me:$LINENO: checking for dlopen" >&5 |
9548 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } |
d9898ee8 |
9549 | if test "${ac_cv_func_dlopen+set}" = set; then |
9550 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9551 | else |
9552 | cat >conftest.$ac_ext <<_ACEOF |
9553 | /* confdefs.h. */ |
9554 | _ACEOF |
9555 | cat confdefs.h >>conftest.$ac_ext |
9556 | cat >>conftest.$ac_ext <<_ACEOF |
9557 | /* end confdefs.h. */ |
9558 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
9559 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
9560 | #define dlopen innocuous_dlopen |
9561 | |
9562 | /* System header to define __stub macros and hopefully few prototypes, |
9563 | which can conflict with char dlopen (); below. |
9564 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
9565 | <limits.h> exists even on freestanding compilers. */ |
9566 | |
9567 | #ifdef __STDC__ |
9568 | # include <limits.h> |
9569 | #else |
9570 | # include <assert.h> |
9571 | #endif |
9572 | |
9573 | #undef dlopen |
9574 | |
64ff59ba |
9575 | /* Override any GCC internal prototype to avoid an error. |
9576 | Use char because int might match the return type of a GCC |
9577 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
9578 | #ifdef __cplusplus |
9579 | extern "C" |
d9898ee8 |
9580 | #endif |
d9898ee8 |
9581 | char dlopen (); |
9582 | /* The GNU C library defines this for functions which it implements |
9583 | to always fail with ENOSYS. Some functions are actually named |
9584 | something starting with __ and the normal name is an alias. */ |
64ff59ba |
9585 | #if defined __stub_dlopen || defined __stub___dlopen |
d9898ee8 |
9586 | choke me |
d9898ee8 |
9587 | #endif |
9588 | |
9589 | int |
9590 | main () |
9591 | { |
64ff59ba |
9592 | return dlopen (); |
d9898ee8 |
9593 | ; |
9594 | return 0; |
9595 | } |
9596 | _ACEOF |
9597 | rm -f conftest.$ac_objext conftest$ac_exeext |
64ff59ba |
9598 | if { (ac_try="$ac_link" |
9599 | case "(($ac_try" in |
9600 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9601 | *) ac_try_echo=$ac_try;; |
9602 | esac |
9603 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9604 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
9605 | ac_status=$? |
9606 | grep -v '^ *+' conftest.er1 >conftest.err |
9607 | rm -f conftest.er1 |
9608 | cat conftest.err >&5 |
9609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
9610 | (exit $ac_status); } && { |
9611 | test -z "$ac_c_werror_flag" || |
9612 | test ! -s conftest.err |
9613 | } && test -s conftest$ac_exeext && |
9614 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
9615 | ac_cv_func_dlopen=yes |
9616 | else |
9617 | echo "$as_me: failed program was:" >&5 |
9618 | sed 's/^/| /' conftest.$ac_ext >&5 |
9619 | |
64ff59ba |
9620 | ac_cv_func_dlopen=no |
d9898ee8 |
9621 | fi |
64ff59ba |
9622 | |
9623 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
9624 | conftest$ac_exeext conftest.$ac_ext |
9625 | fi |
64ff59ba |
9626 | { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
9627 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } |
d9898ee8 |
9628 | if test $ac_cv_func_dlopen = yes; then |
9629 | lt_cv_dlopen="dlopen" |
9630 | else |
64ff59ba |
9631 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
9632 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
d9898ee8 |
9633 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
9634 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9635 | else |
9636 | ac_check_lib_save_LIBS=$LIBS |
9637 | LIBS="-ldl $LIBS" |
9638 | cat >conftest.$ac_ext <<_ACEOF |
9639 | /* confdefs.h. */ |
9640 | _ACEOF |
9641 | cat confdefs.h >>conftest.$ac_ext |
9642 | cat >>conftest.$ac_ext <<_ACEOF |
9643 | /* end confdefs.h. */ |
9644 | |
64ff59ba |
9645 | /* Override any GCC internal prototype to avoid an error. |
9646 | Use char because int might match the return type of a GCC |
9647 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
9648 | #ifdef __cplusplus |
9649 | extern "C" |
9650 | #endif |
d9898ee8 |
9651 | char dlopen (); |
9652 | int |
9653 | main () |
9654 | { |
64ff59ba |
9655 | return dlopen (); |
d9898ee8 |
9656 | ; |
9657 | return 0; |
9658 | } |
9659 | _ACEOF |
9660 | rm -f conftest.$ac_objext conftest$ac_exeext |
64ff59ba |
9661 | if { (ac_try="$ac_link" |
9662 | case "(($ac_try" in |
9663 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9664 | *) ac_try_echo=$ac_try;; |
9665 | esac |
9666 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9667 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
9668 | ac_status=$? |
9669 | grep -v '^ *+' conftest.er1 >conftest.err |
9670 | rm -f conftest.er1 |
9671 | cat conftest.err >&5 |
9672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
9673 | (exit $ac_status); } && { |
9674 | test -z "$ac_c_werror_flag" || |
9675 | test ! -s conftest.err |
9676 | } && test -s conftest$ac_exeext && |
9677 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
9678 | ac_cv_lib_dl_dlopen=yes |
9679 | else |
9680 | echo "$as_me: failed program was:" >&5 |
9681 | sed 's/^/| /' conftest.$ac_ext >&5 |
9682 | |
64ff59ba |
9683 | ac_cv_lib_dl_dlopen=no |
d9898ee8 |
9684 | fi |
64ff59ba |
9685 | |
9686 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
9687 | conftest$ac_exeext conftest.$ac_ext |
9688 | LIBS=$ac_check_lib_save_LIBS |
9689 | fi |
64ff59ba |
9690 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
9691 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
d9898ee8 |
9692 | if test $ac_cv_lib_dl_dlopen = yes; then |
9693 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
9694 | else |
64ff59ba |
9695 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
9696 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
d9898ee8 |
9697 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
9698 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9699 | else |
9700 | ac_check_lib_save_LIBS=$LIBS |
9701 | LIBS="-lsvld $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 | |
64ff59ba |
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 | { |
64ff59ba |
9719 | return dlopen (); |
d9898ee8 |
9720 | ; |
9721 | return 0; |
9722 | } |
9723 | _ACEOF |
9724 | rm -f conftest.$ac_objext conftest$ac_exeext |
64ff59ba |
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 |
64ff59ba |
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_svld_dlopen=yes |
9743 | else |
9744 | echo "$as_me: failed program was:" >&5 |
9745 | sed 's/^/| /' conftest.$ac_ext >&5 |
9746 | |
64ff59ba |
9747 | ac_cv_lib_svld_dlopen=no |
d9898ee8 |
9748 | fi |
64ff59ba |
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 |
64ff59ba |
9754 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
9755 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
d9898ee8 |
9756 | if test $ac_cv_lib_svld_dlopen = yes; then |
9757 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
9758 | else |
64ff59ba |
9759 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
9760 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
d9898ee8 |
9761 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
9762 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9763 | else |
9764 | ac_check_lib_save_LIBS=$LIBS |
9765 | LIBS="-ldld $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 | |
64ff59ba |
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 dld_link (); |
9780 | int |
9781 | main () |
9782 | { |
64ff59ba |
9783 | return dld_link (); |
d9898ee8 |
9784 | ; |
9785 | return 0; |
9786 | } |
9787 | _ACEOF |
9788 | rm -f conftest.$ac_objext conftest$ac_exeext |
64ff59ba |
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 |
64ff59ba |
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_dld_dld_link=yes |
9807 | else |
9808 | echo "$as_me: failed program was:" >&5 |
9809 | sed 's/^/| /' conftest.$ac_ext >&5 |
9810 | |
64ff59ba |
9811 | ac_cv_lib_dld_dld_link=no |
d9898ee8 |
9812 | fi |
64ff59ba |
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 |
64ff59ba |
9818 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
9819 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
d9898ee8 |
9820 | if test $ac_cv_lib_dld_dld_link = yes; then |
9821 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
9822 | fi |
9823 | |
9824 | |
9825 | fi |
9826 | |
9827 | |
9828 | fi |
9829 | |
9830 | |
9831 | fi |
9832 | |
9833 | |
9834 | fi |
9835 | |
9836 | |
9837 | fi |
9838 | |
9839 | ;; |
9840 | esac |
9841 | |
9842 | if test "x$lt_cv_dlopen" != xno; then |
9843 | enable_dlopen=yes |
9844 | else |
9845 | enable_dlopen=no |
9846 | fi |
9847 | |
9848 | case $lt_cv_dlopen in |
9849 | dlopen) |
9850 | save_CPPFLAGS="$CPPFLAGS" |
9851 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
9852 | |
9853 | save_LDFLAGS="$LDFLAGS" |
9854 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
9855 | |
9856 | save_LIBS="$LIBS" |
9857 | LIBS="$lt_cv_dlopen_libs $LIBS" |
9858 | |
64ff59ba |
9859 | { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
9860 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } |
d9898ee8 |
9861 | if test "${lt_cv_dlopen_self+set}" = set; then |
9862 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9863 | else |
9864 | if test "$cross_compiling" = yes; then : |
9865 | lt_cv_dlopen_self=cross |
9866 | else |
9867 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
9868 | lt_status=$lt_dlunknown |
9869 | cat > conftest.$ac_ext <<EOF |
64ff59ba |
9870 | #line 9870 "configure" |
d9898ee8 |
9871 | #include "confdefs.h" |
9872 | |
9873 | #if HAVE_DLFCN_H |
9874 | #include <dlfcn.h> |
9875 | #endif |
9876 | |
9877 | #include <stdio.h> |
9878 | |
9879 | #ifdef RTLD_GLOBAL |
9880 | # define LT_DLGLOBAL RTLD_GLOBAL |
9881 | #else |
9882 | # ifdef DL_GLOBAL |
9883 | # define LT_DLGLOBAL DL_GLOBAL |
9884 | # else |
9885 | # define LT_DLGLOBAL 0 |
9886 | # endif |
9887 | #endif |
9888 | |
9889 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
9890 | find out it does not work in some platform. */ |
9891 | #ifndef LT_DLLAZY_OR_NOW |
9892 | # ifdef RTLD_LAZY |
9893 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
9894 | # else |
9895 | # ifdef DL_LAZY |
9896 | # define LT_DLLAZY_OR_NOW DL_LAZY |
9897 | # else |
9898 | # ifdef RTLD_NOW |
9899 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
9900 | # else |
9901 | # ifdef DL_NOW |
9902 | # define LT_DLLAZY_OR_NOW DL_NOW |
9903 | # else |
9904 | # define LT_DLLAZY_OR_NOW 0 |
9905 | # endif |
9906 | # endif |
9907 | # endif |
9908 | # endif |
9909 | #endif |
9910 | |
9911 | #ifdef __cplusplus |
9912 | extern "C" void exit (int); |
9913 | #endif |
9914 | |
9915 | void fnord() { int i=42;} |
9916 | int main () |
9917 | { |
9918 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
9919 | int status = $lt_dlunknown; |
9920 | |
9921 | if (self) |
9922 | { |
9923 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
9924 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
9925 | /* dlclose (self); */ |
9926 | } |
9927 | else |
9928 | puts (dlerror ()); |
9929 | |
9930 | exit (status); |
9931 | } |
9932 | EOF |
9933 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9934 | (eval $ac_link) 2>&5 |
9935 | ac_status=$? |
9936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9937 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
9938 | (./conftest; exit; ) >&5 2>/dev/null |
9939 | lt_status=$? |
9940 | case x$lt_status in |
9941 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
9942 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
9943 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
9944 | esac |
9945 | else : |
9946 | # compilation failed |
9947 | lt_cv_dlopen_self=no |
9948 | fi |
9949 | fi |
9950 | rm -fr conftest* |
9951 | |
9952 | |
9953 | fi |
64ff59ba |
9954 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
9955 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } |
d9898ee8 |
9956 | |
9957 | if test "x$lt_cv_dlopen_self" = xyes; then |
9958 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
64ff59ba |
9959 | { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
9960 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } |
d9898ee8 |
9961 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
9962 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9963 | else |
9964 | if test "$cross_compiling" = yes; then : |
9965 | lt_cv_dlopen_self_static=cross |
9966 | else |
9967 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
9968 | lt_status=$lt_dlunknown |
9969 | cat > conftest.$ac_ext <<EOF |
64ff59ba |
9970 | #line 9970 "configure" |
d9898ee8 |
9971 | #include "confdefs.h" |
9972 | |
9973 | #if HAVE_DLFCN_H |
9974 | #include <dlfcn.h> |
9975 | #endif |
9976 | |
9977 | #include <stdio.h> |
9978 | |
9979 | #ifdef RTLD_GLOBAL |
9980 | # define LT_DLGLOBAL RTLD_GLOBAL |
9981 | #else |
9982 | # ifdef DL_GLOBAL |
9983 | # define LT_DLGLOBAL DL_GLOBAL |
9984 | # else |
9985 | # define LT_DLGLOBAL 0 |
9986 | # endif |
9987 | #endif |
9988 | |
9989 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
9990 | find out it does not work in some platform. */ |
9991 | #ifndef LT_DLLAZY_OR_NOW |
9992 | # ifdef RTLD_LAZY |
9993 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
9994 | # else |
9995 | # ifdef DL_LAZY |
9996 | # define LT_DLLAZY_OR_NOW DL_LAZY |
9997 | # else |
9998 | # ifdef RTLD_NOW |
9999 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
10000 | # else |
10001 | # ifdef DL_NOW |
10002 | # define LT_DLLAZY_OR_NOW DL_NOW |
10003 | # else |
10004 | # define LT_DLLAZY_OR_NOW 0 |
10005 | # endif |
10006 | # endif |
10007 | # endif |
10008 | # endif |
10009 | #endif |
10010 | |
10011 | #ifdef __cplusplus |
10012 | extern "C" void exit (int); |
10013 | #endif |
10014 | |
10015 | void fnord() { int i=42;} |
10016 | int main () |
10017 | { |
10018 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
10019 | int status = $lt_dlunknown; |
10020 | |
10021 | if (self) |
10022 | { |
10023 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
10024 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
10025 | /* dlclose (self); */ |
10026 | } |
10027 | else |
10028 | puts (dlerror ()); |
10029 | |
10030 | exit (status); |
10031 | } |
10032 | EOF |
10033 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10034 | (eval $ac_link) 2>&5 |
10035 | ac_status=$? |
10036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10037 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
10038 | (./conftest; exit; ) >&5 2>/dev/null |
10039 | lt_status=$? |
10040 | case x$lt_status in |
10041 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
10042 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
10043 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
10044 | esac |
10045 | else : |
10046 | # compilation failed |
10047 | lt_cv_dlopen_self_static=no |
10048 | fi |
10049 | fi |
10050 | rm -fr conftest* |
10051 | |
10052 | |
10053 | fi |
64ff59ba |
10054 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
10055 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } |
d9898ee8 |
10056 | fi |
10057 | |
10058 | CPPFLAGS="$save_CPPFLAGS" |
10059 | LDFLAGS="$save_LDFLAGS" |
10060 | LIBS="$save_LIBS" |
10061 | ;; |
10062 | esac |
10063 | |
10064 | case $lt_cv_dlopen_self in |
10065 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
10066 | *) enable_dlopen_self=unknown ;; |
10067 | esac |
10068 | |
10069 | case $lt_cv_dlopen_self_static in |
10070 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
10071 | *) enable_dlopen_self_static=unknown ;; |
10072 | esac |
10073 | fi |
10074 | |
10075 | |
10076 | # Report which library types will actually be built |
64ff59ba |
10077 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
10078 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
10079 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
10080 | echo "${ECHO_T}$can_build_shared" >&6; } |
d9898ee8 |
10081 | |
64ff59ba |
10082 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
10083 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
d9898ee8 |
10084 | test "$can_build_shared" = "no" && enable_shared=no |
10085 | |
10086 | # On AIX, shared libraries and static libraries use the same namespace, and |
10087 | # are all built from PIC. |
10088 | case $host_os in |
10089 | aix3*) |
10090 | test "$enable_shared" = yes && enable_static=no |
10091 | if test -n "$RANLIB"; then |
10092 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
10093 | postinstall_cmds='$RANLIB $lib' |
10094 | fi |
10095 | ;; |
10096 | |
10097 | aix4* | aix5*) |
10098 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
10099 | test "$enable_shared" = yes && enable_static=no |
10100 | fi |
10101 | ;; |
10102 | esac |
64ff59ba |
10103 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
10104 | echo "${ECHO_T}$enable_shared" >&6; } |
d9898ee8 |
10105 | |
64ff59ba |
10106 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
10107 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
d9898ee8 |
10108 | # Make sure either enable_shared or enable_static is yes. |
10109 | test "$enable_shared" = yes || enable_static=yes |
64ff59ba |
10110 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
10111 | echo "${ECHO_T}$enable_static" >&6; } |
d9898ee8 |
10112 | |
10113 | # The else clause should only fire when bootstrapping the |
10114 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
10115 | # with your package, and you will get complaints that there are |
10116 | # no rules to generate ltmain.sh. |
10117 | if test -f "$ltmain"; then |
10118 | # See if we are running on zsh, and set the options which allow our commands through |
10119 | # without removal of \ escapes. |
10120 | if test -n "${ZSH_VERSION+set}" ; then |
10121 | setopt NO_GLOB_SUBST |
10122 | fi |
10123 | # Now quote all the things that may contain metacharacters while being |
10124 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
10125 | # variables and quote the copies for generation of the libtool script. |
10126 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
10127 | SED SHELL STRIP \ |
10128 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
10129 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
10130 | deplibs_check_method reload_flag reload_cmds need_locks \ |
10131 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
10132 | lt_cv_sys_global_symbol_to_c_name_address \ |
10133 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
10134 | old_postinstall_cmds old_postuninstall_cmds \ |
10135 | compiler \ |
10136 | CC \ |
10137 | LD \ |
10138 | lt_prog_compiler_wl \ |
10139 | lt_prog_compiler_pic \ |
10140 | lt_prog_compiler_static \ |
10141 | lt_prog_compiler_no_builtin_flag \ |
10142 | export_dynamic_flag_spec \ |
10143 | thread_safe_flag_spec \ |
10144 | whole_archive_flag_spec \ |
10145 | enable_shared_with_static_runtimes \ |
10146 | old_archive_cmds \ |
10147 | old_archive_from_new_cmds \ |
10148 | predep_objects \ |
10149 | postdep_objects \ |
10150 | predeps \ |
10151 | postdeps \ |
10152 | compiler_lib_search_path \ |
10153 | archive_cmds \ |
10154 | archive_expsym_cmds \ |
10155 | postinstall_cmds \ |
10156 | postuninstall_cmds \ |
10157 | old_archive_from_expsyms_cmds \ |
10158 | allow_undefined_flag \ |
10159 | no_undefined_flag \ |
10160 | export_symbols_cmds \ |
10161 | hardcode_libdir_flag_spec \ |
10162 | hardcode_libdir_flag_spec_ld \ |
10163 | hardcode_libdir_separator \ |
10164 | hardcode_automatic \ |
10165 | module_cmds \ |
10166 | module_expsym_cmds \ |
10167 | lt_cv_prog_compiler_c_o \ |
10168 | exclude_expsyms \ |
10169 | include_expsyms; do |
10170 | |
10171 | case $var in |
10172 | old_archive_cmds | \ |
10173 | old_archive_from_new_cmds | \ |
10174 | archive_cmds | \ |
10175 | archive_expsym_cmds | \ |
10176 | module_cmds | \ |
10177 | module_expsym_cmds | \ |
10178 | old_archive_from_expsyms_cmds | \ |
10179 | export_symbols_cmds | \ |
10180 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
10181 | postinstall_cmds | postuninstall_cmds | \ |
10182 | old_postinstall_cmds | old_postuninstall_cmds | \ |
10183 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
10184 | # Double-quote double-evaled strings. |
10185 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
10186 | ;; |
10187 | *) |
10188 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
10189 | ;; |
10190 | esac |
10191 | done |
10192 | |
10193 | case $lt_echo in |
10194 | *'\$0 --fallback-echo"') |
10195 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
10196 | ;; |
10197 | esac |
10198 | |
10199 | cfgfile="${ofile}T" |
10200 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
10201 | $rm -f "$cfgfile" |
10202 | { echo "$as_me:$LINENO: creating $ofile" >&5 |
10203 | echo "$as_me: creating $ofile" >&6;} |
10204 | |
10205 | cat <<__EOF__ >> "$cfgfile" |
10206 | #! $SHELL |
10207 | |
10208 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
10209 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
10210 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
10211 | # |
10212 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 |
10213 | # Free Software Foundation, Inc. |
10214 | # |
10215 | # This file is part of GNU Libtool: |
10216 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
10217 | # |
10218 | # This program is free software; you can redistribute it and/or modify |
10219 | # it under the terms of the GNU General Public License as published by |
10220 | # the Free Software Foundation; either version 2 of the License, or |
10221 | # (at your option) any later version. |
10222 | # |
10223 | # This program is distributed in the hope that it will be useful, but |
10224 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
10225 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
10226 | # General Public License for more details. |
10227 | # |
10228 | # You should have received a copy of the GNU General Public License |
10229 | # along with this program; if not, write to the Free Software |
10230 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
10231 | # |
10232 | # As a special exception to the GNU General Public License, if you |
10233 | # distribute this file as part of a program that contains a |
10234 | # configuration script generated by Autoconf, you may include it under |
10235 | # the same distribution terms that you use for the rest of that program. |
10236 | |
10237 | # A sed program that does not truncate output. |
10238 | SED=$lt_SED |
10239 | |
10240 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
10241 | Xsed="$SED -e 1s/^X//" |
10242 | |
10243 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
10244 | # if CDPATH is set. |
10245 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
10246 | |
10247 | # The names of the tagged configurations supported by this script. |
10248 | available_tags= |
10249 | |
10250 | # ### BEGIN LIBTOOL CONFIG |
10251 | |
10252 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
10253 | |
10254 | # Shell to use when invoking shell scripts. |
10255 | SHELL=$lt_SHELL |
10256 | |
10257 | # Whether or not to build shared libraries. |
10258 | build_libtool_libs=$enable_shared |
10259 | |
10260 | # Whether or not to build static libraries. |
10261 | build_old_libs=$enable_static |
10262 | |
10263 | # Whether or not to add -lc for building shared libraries. |
10264 | build_libtool_need_lc=$archive_cmds_need_lc |
10265 | |
10266 | # Whether or not to disallow shared libs when runtime libs are static |
10267 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
10268 | |
10269 | # Whether or not to optimize for fast installation. |
10270 | fast_install=$enable_fast_install |
10271 | |
10272 | # The host system. |
10273 | host_alias=$host_alias |
10274 | host=$host |
10275 | host_os=$host_os |
10276 | |
10277 | # The build system. |
10278 | build_alias=$build_alias |
10279 | build=$build |
10280 | build_os=$build_os |
10281 | |
10282 | # An echo program that does not interpret backslashes. |
10283 | echo=$lt_echo |
10284 | |
10285 | # The archiver. |
10286 | AR=$lt_AR |
10287 | AR_FLAGS=$lt_AR_FLAGS |
10288 | |
10289 | # A C compiler. |
10290 | LTCC=$lt_LTCC |
10291 | |
10292 | # LTCC compiler flags. |
10293 | LTCFLAGS=$lt_LTCFLAGS |
10294 | |
10295 | # A language-specific compiler. |
10296 | CC=$lt_compiler |
10297 | |
10298 | # Is the compiler the GNU C compiler? |
10299 | with_gcc=$GCC |
10300 | |
d9898ee8 |
10301 | # An ERE matcher. |
10302 | EGREP=$lt_EGREP |
10303 | |
10304 | # The linker used to build libraries. |
10305 | LD=$lt_LD |
10306 | |
10307 | # Whether we need hard or soft links. |
10308 | LN_S=$lt_LN_S |
10309 | |
10310 | # A BSD-compatible nm program. |
10311 | NM=$lt_NM |
10312 | |
10313 | # A symbol stripping program |
10314 | STRIP=$lt_STRIP |
10315 | |
10316 | # Used to examine libraries when file_magic_cmd begins "file" |
10317 | MAGIC_CMD=$MAGIC_CMD |
10318 | |
10319 | # Used on cygwin: DLL creation program. |
10320 | DLLTOOL="$DLLTOOL" |
10321 | |
10322 | # Used on cygwin: object dumper. |
10323 | OBJDUMP="$OBJDUMP" |
10324 | |
10325 | # Used on cygwin: assembler. |
10326 | AS="$AS" |
10327 | |
10328 | # The name of the directory that contains temporary libtool files. |
10329 | objdir=$objdir |
10330 | |
10331 | # How to create reloadable object files. |
10332 | reload_flag=$lt_reload_flag |
10333 | reload_cmds=$lt_reload_cmds |
10334 | |
10335 | # How to pass a linker flag through the compiler. |
10336 | wl=$lt_lt_prog_compiler_wl |
10337 | |
10338 | # Object file suffix (normally "o"). |
10339 | objext="$ac_objext" |
10340 | |
10341 | # Old archive suffix (normally "a"). |
10342 | libext="$libext" |
10343 | |
10344 | # Shared library suffix (normally ".so"). |
10345 | shrext_cmds='$shrext_cmds' |
10346 | |
10347 | # Executable file suffix (normally ""). |
10348 | exeext="$exeext" |
10349 | |
10350 | # Additional compiler flags for building library objects. |
10351 | pic_flag=$lt_lt_prog_compiler_pic |
10352 | pic_mode=$pic_mode |
10353 | |
10354 | # What is the maximum length of a command? |
10355 | max_cmd_len=$lt_cv_sys_max_cmd_len |
10356 | |
10357 | # Does compiler simultaneously support -c and -o options? |
10358 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
10359 | |
10360 | # Must we lock files when doing compilation? |
10361 | need_locks=$lt_need_locks |
10362 | |
10363 | # Do we need the lib prefix for modules? |
10364 | need_lib_prefix=$need_lib_prefix |
10365 | |
10366 | # Do we need a version for libraries? |
10367 | need_version=$need_version |
10368 | |
10369 | # Whether dlopen is supported. |
10370 | dlopen_support=$enable_dlopen |
10371 | |
10372 | # Whether dlopen of programs is supported. |
10373 | dlopen_self=$enable_dlopen_self |
10374 | |
10375 | # Whether dlopen of statically linked programs is supported. |
10376 | dlopen_self_static=$enable_dlopen_self_static |
10377 | |
10378 | # Compiler flag to prevent dynamic linking. |
10379 | link_static_flag=$lt_lt_prog_compiler_static |
10380 | |
10381 | # Compiler flag to turn off builtin functions. |
10382 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
10383 | |
10384 | # Compiler flag to allow reflexive dlopens. |
10385 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
10386 | |
10387 | # Compiler flag to generate shared objects directly from archives. |
10388 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
10389 | |
10390 | # Compiler flag to generate thread-safe objects. |
10391 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
10392 | |
10393 | # Library versioning type. |
10394 | version_type=$version_type |
10395 | |
10396 | # Format of library name prefix. |
10397 | libname_spec=$lt_libname_spec |
10398 | |
10399 | # List of archive names. First name is the real one, the rest are links. |
10400 | # The last name is the one that the linker finds with -lNAME. |
10401 | library_names_spec=$lt_library_names_spec |
10402 | |
10403 | # The coded name of the library, if different from the real name. |
10404 | soname_spec=$lt_soname_spec |
10405 | |
10406 | # Commands used to build and install an old-style archive. |
10407 | RANLIB=$lt_RANLIB |
10408 | old_archive_cmds=$lt_old_archive_cmds |
10409 | old_postinstall_cmds=$lt_old_postinstall_cmds |
10410 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
10411 | |
10412 | # Create an old-style archive from a shared archive. |
10413 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
10414 | |
10415 | # Create a temporary old-style archive to link instead of a shared archive. |
10416 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
10417 | |
10418 | # Commands used to build and install a shared archive. |
10419 | archive_cmds=$lt_archive_cmds |
10420 | archive_expsym_cmds=$lt_archive_expsym_cmds |
10421 | postinstall_cmds=$lt_postinstall_cmds |
10422 | postuninstall_cmds=$lt_postuninstall_cmds |
10423 | |
10424 | # Commands used to build a loadable module (assumed same as above if empty) |
10425 | module_cmds=$lt_module_cmds |
10426 | module_expsym_cmds=$lt_module_expsym_cmds |
10427 | |
10428 | # Commands to strip libraries. |
10429 | old_striplib=$lt_old_striplib |
10430 | striplib=$lt_striplib |
10431 | |
10432 | # Dependencies to place before the objects being linked to create a |
10433 | # shared library. |
64ff59ba |
10434 | predep_objects=$lt_predep_objects |
d9898ee8 |
10435 | |
10436 | # Dependencies to place after the objects being linked to create a |
10437 | # shared library. |
64ff59ba |
10438 | postdep_objects=$lt_postdep_objects |
d9898ee8 |
10439 | |
10440 | # Dependencies to place before the objects being linked to create a |
10441 | # shared library. |
10442 | predeps=$lt_predeps |
10443 | |
10444 | # Dependencies to place after the objects being linked to create a |
10445 | # shared library. |
10446 | postdeps=$lt_postdeps |
10447 | |
10448 | # The library search path used internally by the compiler when linking |
10449 | # a shared library. |
64ff59ba |
10450 | compiler_lib_search_path=$lt_compiler_lib_search_path |
d9898ee8 |
10451 | |
10452 | # Method to check whether dependent libraries are shared objects. |
10453 | deplibs_check_method=$lt_deplibs_check_method |
10454 | |
10455 | # Command to use when deplibs_check_method == file_magic. |
10456 | file_magic_cmd=$lt_file_magic_cmd |
10457 | |
10458 | # Flag that allows shared libraries with undefined symbols to be built. |
10459 | allow_undefined_flag=$lt_allow_undefined_flag |
10460 | |
10461 | # Flag that forces no undefined symbols. |
10462 | no_undefined_flag=$lt_no_undefined_flag |
10463 | |
10464 | # Commands used to finish a libtool library installation in a directory. |
10465 | finish_cmds=$lt_finish_cmds |
10466 | |
10467 | # Same as above, but a single script fragment to be evaled but not shown. |
10468 | finish_eval=$lt_finish_eval |
10469 | |
10470 | # Take the output of nm and produce a listing of raw symbols and C names. |
10471 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
10472 | |
10473 | # Transform the output of nm in a proper C declaration |
10474 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
10475 | |
10476 | # Transform the output of nm in a C name address pair |
10477 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
10478 | |
10479 | # This is the shared library runtime path variable. |
10480 | runpath_var=$runpath_var |
10481 | |
10482 | # This is the shared library path variable. |
10483 | shlibpath_var=$shlibpath_var |
10484 | |
10485 | # Is shlibpath searched before the hard-coded library search path? |
10486 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
10487 | |
10488 | # How to hardcode a shared library path into an executable. |
10489 | hardcode_action=$hardcode_action |
10490 | |
10491 | # Whether we should hardcode library paths into libraries. |
10492 | hardcode_into_libs=$hardcode_into_libs |
10493 | |
10494 | # Flag to hardcode \$libdir into a binary during linking. |
10495 | # This must work even if \$libdir does not exist. |
10496 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
10497 | |
10498 | # If ld is used when linking, flag to hardcode \$libdir into |
10499 | # a binary during linking. This must work even if \$libdir does |
10500 | # not exist. |
10501 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
10502 | |
10503 | # Whether we need a single -rpath flag with a separated argument. |
10504 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
10505 | |
10506 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
10507 | # resulting binary. |
10508 | hardcode_direct=$hardcode_direct |
10509 | |
10510 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
10511 | # resulting binary. |
10512 | hardcode_minus_L=$hardcode_minus_L |
10513 | |
10514 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
10515 | # the resulting binary. |
10516 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
10517 | |
10518 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
10519 | # and all subsequent libraries and executables linked against it. |
10520 | hardcode_automatic=$hardcode_automatic |
10521 | |
10522 | # Variables whose values should be saved in libtool wrapper scripts and |
10523 | # restored at relink time. |
10524 | variables_saved_for_relink="$variables_saved_for_relink" |
10525 | |
10526 | # Whether libtool must link a program against all its dependency libraries. |
10527 | link_all_deplibs=$link_all_deplibs |
10528 | |
10529 | # Compile-time system search path for libraries |
64ff59ba |
10530 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
d9898ee8 |
10531 | |
10532 | # Run-time system search path for libraries |
10533 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
10534 | |
10535 | # Fix the shell variable \$srcfile for the compiler. |
10536 | fix_srcfile_path="$fix_srcfile_path" |
10537 | |
10538 | # Set to yes if exported symbols are required. |
10539 | always_export_symbols=$always_export_symbols |
10540 | |
10541 | # The commands to list exported symbols. |
10542 | export_symbols_cmds=$lt_export_symbols_cmds |
10543 | |
10544 | # The commands to extract the exported symbol list from a shared archive. |
10545 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
10546 | |
10547 | # Symbols that should not be listed in the preloaded symbols. |
10548 | exclude_expsyms=$lt_exclude_expsyms |
10549 | |
10550 | # Symbols that must always be exported. |
10551 | include_expsyms=$lt_include_expsyms |
10552 | |
10553 | # ### END LIBTOOL CONFIG |
10554 | |
10555 | __EOF__ |
10556 | |
10557 | |
10558 | case $host_os in |
10559 | aix3*) |
10560 | cat <<\EOF >> "$cfgfile" |
10561 | |
10562 | # AIX sometimes has problems with the GCC collect2 program. For some |
10563 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
10564 | # vanish in a puff of smoke. |
10565 | if test "X${COLLECT_NAMES+set}" != Xset; then |
10566 | COLLECT_NAMES= |
10567 | export COLLECT_NAMES |
10568 | fi |
10569 | EOF |
10570 | ;; |
10571 | esac |
10572 | |
10573 | # We use sed instead of cat because bash on DJGPP gets confused if |
10574 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
10575 | # text mode, it properly converts lines to CR/LF. This bash problem |
10576 | # is reportedly fixed, but why not run on old versions too? |
10577 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
10578 | |
10579 | mv -f "$cfgfile" "$ofile" || \ |
10580 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
10581 | chmod +x "$ofile" |
10582 | |
10583 | else |
10584 | # If there is no Makefile yet, we rely on a make rule to execute |
10585 | # `config.status --recheck' to rerun these tests and create the |
10586 | # libtool script then. |
10587 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
10588 | if test -f "$ltmain_in"; then |
10589 | test -f Makefile && make "$ltmain" |
10590 | fi |
10591 | fi |
10592 | |
10593 | |
10594 | ac_ext=c |
10595 | ac_cpp='$CPP $CPPFLAGS' |
10596 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
10597 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
10598 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
10599 | |
10600 | CC="$lt_save_CC" |
10601 | |
10602 | |
64ff59ba |
10603 | # Check whether --with-tags was given. |
d9898ee8 |
10604 | if test "${with_tags+set}" = set; then |
64ff59ba |
10605 | withval=$with_tags; tagnames="$withval" |
10606 | fi |
10607 | |
d9898ee8 |
10608 | |
10609 | if test -f "$ltmain" && test -n "$tagnames"; then |
10610 | if test ! -f "${ofile}"; then |
10611 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 |
10612 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} |
10613 | fi |
10614 | |
10615 | if test -z "$LTCC"; then |
10616 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
10617 | if test -z "$LTCC"; then |
10618 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 |
10619 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} |
10620 | else |
10621 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
10622 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
10623 | fi |
10624 | fi |
10625 | if test -z "$LTCFLAGS"; then |
10626 | eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" |
10627 | fi |
10628 | |
10629 | # Extract list of available tagged configurations in $ofile. |
10630 | # Note that this assumes the entire list is on one line. |
10631 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
10632 | |
10633 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
10634 | for tagname in $tagnames; do |
10635 | IFS="$lt_save_ifs" |
10636 | # Check whether tagname contains only valid characters |
10637 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in |
10638 | "") ;; |
10639 | *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 |
10640 | echo "$as_me: error: invalid tag name: $tagname" >&2;} |
10641 | { (exit 1); exit 1; }; } |
10642 | ;; |
10643 | esac |
10644 | |
10645 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
10646 | then |
10647 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 |
10648 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} |
10649 | { (exit 1); exit 1; }; } |
10650 | fi |
10651 | |
10652 | # Update the list of available tags. |
10653 | if test -n "$tagname"; then |
10654 | echo appending configuration tag \"$tagname\" to $ofile |
10655 | |
10656 | case $tagname in |
10657 | CXX) |
10658 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
10659 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
10660 | (test "X$CXX" != "Xg++"))) ; then |
64ff59ba |
10661 | ac_ext=cpp |
d9898ee8 |
10662 | ac_cpp='$CXXCPP $CPPFLAGS' |
10663 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
10664 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
10665 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
10666 | |
10667 | |
10668 | |
10669 | |
10670 | archive_cmds_need_lc_CXX=no |
10671 | allow_undefined_flag_CXX= |
10672 | always_export_symbols_CXX=no |
10673 | archive_expsym_cmds_CXX= |
10674 | export_dynamic_flag_spec_CXX= |
10675 | hardcode_direct_CXX=no |
10676 | hardcode_libdir_flag_spec_CXX= |
10677 | hardcode_libdir_flag_spec_ld_CXX= |
10678 | hardcode_libdir_separator_CXX= |
10679 | hardcode_minus_L_CXX=no |
10680 | hardcode_shlibpath_var_CXX=unsupported |
10681 | hardcode_automatic_CXX=no |
10682 | module_cmds_CXX= |
10683 | module_expsym_cmds_CXX= |
10684 | link_all_deplibs_CXX=unknown |
10685 | old_archive_cmds_CXX=$old_archive_cmds |
10686 | no_undefined_flag_CXX= |
10687 | whole_archive_flag_spec_CXX= |
10688 | enable_shared_with_static_runtimes_CXX=no |
10689 | |
10690 | # Dependencies to place before and after the object being linked: |
10691 | predep_objects_CXX= |
10692 | postdep_objects_CXX= |
10693 | predeps_CXX= |
10694 | postdeps_CXX= |
10695 | compiler_lib_search_path_CXX= |
10696 | |
10697 | # Source file extension for C++ test sources. |
10698 | ac_ext=cpp |
10699 | |
10700 | # Object file extension for compiled C++ test sources. |
10701 | objext=o |
10702 | objext_CXX=$objext |
10703 | |
10704 | # Code to be used in simple compile tests |
10705 | lt_simple_compile_test_code="int some_variable = 0;\n" |
10706 | |
10707 | # Code to be used in simple link tests |
10708 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' |
10709 | |
10710 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
10711 | |
10712 | # If no C compiler was specified, use CC. |
10713 | LTCC=${LTCC-"$CC"} |
10714 | |
10715 | # If no C compiler flags were specified, use CFLAGS. |
10716 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
10717 | |
10718 | # Allow CC to be a program name with arguments. |
10719 | compiler=$CC |
10720 | |
10721 | |
10722 | # save warnings/boilerplate of simple test code |
10723 | ac_outfile=conftest.$ac_objext |
10724 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
10725 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
10726 | _lt_compiler_boilerplate=`cat conftest.err` |
10727 | $rm conftest* |
10728 | |
10729 | ac_outfile=conftest.$ac_objext |
10730 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
10731 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
10732 | _lt_linker_boilerplate=`cat conftest.err` |
10733 | $rm conftest* |
10734 | |
10735 | |
10736 | # Allow CC to be a program name with arguments. |
10737 | lt_save_CC=$CC |
10738 | lt_save_LD=$LD |
10739 | lt_save_GCC=$GCC |
10740 | GCC=$GXX |
10741 | lt_save_with_gnu_ld=$with_gnu_ld |
10742 | lt_save_path_LD=$lt_cv_path_LD |
10743 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
10744 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
10745 | else |
10746 | $as_unset lt_cv_prog_gnu_ld |
10747 | fi |
10748 | if test -n "${lt_cv_path_LDCXX+set}"; then |
10749 | lt_cv_path_LD=$lt_cv_path_LDCXX |
10750 | else |
10751 | $as_unset lt_cv_path_LD |
10752 | fi |
10753 | test -z "${LDCXX+set}" || LD=$LDCXX |
10754 | CC=${CXX-"c++"} |
10755 | compiler=$CC |
10756 | compiler_CXX=$CC |
10757 | for cc_temp in $compiler""; do |
10758 | case $cc_temp in |
10759 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
10760 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
10761 | \-*) ;; |
10762 | *) break;; |
10763 | esac |
10764 | done |
10765 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
10766 | |
10767 | |
10768 | # We don't want -fno-exception wen compiling C++ code, so set the |
10769 | # no_builtin_flag separately |
10770 | if test "$GXX" = yes; then |
10771 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
10772 | else |
10773 | lt_prog_compiler_no_builtin_flag_CXX= |
10774 | fi |
10775 | |
10776 | if test "$GXX" = yes; then |
10777 | # Set up default GNU C++ configuration |
10778 | |
10779 | |
64ff59ba |
10780 | # Check whether --with-gnu-ld was given. |
d9898ee8 |
10781 | if test "${with_gnu_ld+set}" = set; then |
64ff59ba |
10782 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
d9898ee8 |
10783 | else |
10784 | with_gnu_ld=no |
64ff59ba |
10785 | fi |
10786 | |
d9898ee8 |
10787 | ac_prog=ld |
10788 | if test "$GCC" = yes; then |
10789 | # Check if gcc -print-prog-name=ld gives a path. |
64ff59ba |
10790 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
10791 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
d9898ee8 |
10792 | case $host in |
10793 | *-*-mingw*) |
10794 | # gcc leaves a trailing carriage return which upsets mingw |
10795 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
10796 | *) |
10797 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
10798 | esac |
10799 | case $ac_prog in |
10800 | # Accept absolute paths. |
10801 | [\\/]* | ?:[\\/]*) |
10802 | re_direlt='/[^/][^/]*/\.\./' |
10803 | # Canonicalize the pathname of ld |
10804 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
10805 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
10806 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
10807 | done |
10808 | test -z "$LD" && LD="$ac_prog" |
10809 | ;; |
10810 | "") |
10811 | # If it fails, then pretend we aren't using GCC. |
10812 | ac_prog=ld |
10813 | ;; |
10814 | *) |
10815 | # If it is relative, then search for the first ld in PATH. |
10816 | with_gnu_ld=unknown |
10817 | ;; |
10818 | esac |
10819 | elif test "$with_gnu_ld" = yes; then |
64ff59ba |
10820 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
10821 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
d9898ee8 |
10822 | else |
64ff59ba |
10823 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
10824 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
d9898ee8 |
10825 | fi |
10826 | if test "${lt_cv_path_LD+set}" = set; then |
10827 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10828 | else |
10829 | if test -z "$LD"; then |
10830 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
10831 | for ac_dir in $PATH; do |
10832 | IFS="$lt_save_ifs" |
10833 | test -z "$ac_dir" && ac_dir=. |
10834 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
10835 | lt_cv_path_LD="$ac_dir/$ac_prog" |
10836 | # Check to see if the program is GNU ld. I'd rather use --version, |
10837 | # but apparently some variants of GNU ld only accept -v. |
10838 | # Break only if it was the GNU/non-GNU ld that we prefer. |
10839 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
10840 | *GNU* | *'with BFD'*) |
10841 | test "$with_gnu_ld" != no && break |
10842 | ;; |
10843 | *) |
10844 | test "$with_gnu_ld" != yes && break |
10845 | ;; |
10846 | esac |
10847 | fi |
10848 | done |
10849 | IFS="$lt_save_ifs" |
10850 | else |
10851 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
10852 | fi |
10853 | fi |
10854 | |
10855 | LD="$lt_cv_path_LD" |
10856 | if test -n "$LD"; then |
64ff59ba |
10857 | { echo "$as_me:$LINENO: result: $LD" >&5 |
10858 | echo "${ECHO_T}$LD" >&6; } |
d9898ee8 |
10859 | else |
64ff59ba |
10860 | { echo "$as_me:$LINENO: result: no" >&5 |
10861 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
10862 | fi |
10863 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
10864 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
10865 | { (exit 1); exit 1; }; } |
64ff59ba |
10866 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
10867 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } |
d9898ee8 |
10868 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
10869 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10870 | else |
10871 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
10872 | case `$LD -v 2>&1 </dev/null` in |
10873 | *GNU* | *'with BFD'*) |
10874 | lt_cv_prog_gnu_ld=yes |
10875 | ;; |
10876 | *) |
10877 | lt_cv_prog_gnu_ld=no |
10878 | ;; |
10879 | esac |
10880 | fi |
64ff59ba |
10881 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
10882 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
d9898ee8 |
10883 | with_gnu_ld=$lt_cv_prog_gnu_ld |
10884 | |
10885 | |
10886 | |
10887 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
10888 | # archiving commands below assume that GNU ld is being used. |
10889 | if test "$with_gnu_ld" = yes; then |
10890 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
10891 | 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' |
10892 | |
10893 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
10894 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
10895 | |
10896 | # If archive_cmds runs LD, not CC, wlarc should be empty |
10897 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
10898 | # investigate it a little bit more. (MM) |
10899 | wlarc='${wl}' |
10900 | |
10901 | # ancient GNU ld didn't support --whole-archive et. al. |
10902 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
10903 | grep 'no-whole-archive' > /dev/null; then |
10904 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
10905 | else |
10906 | whole_archive_flag_spec_CXX= |
10907 | fi |
10908 | else |
10909 | with_gnu_ld=no |
10910 | wlarc= |
10911 | |
10912 | # A generic and very simple default shared library creation |
10913 | # command for GNU C++ for the case where it uses the native |
10914 | # linker, instead of GNU ld. If possible, this setting should |
10915 | # overridden to take advantage of the native linker features on |
10916 | # the platform it is being used on. |
10917 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
10918 | fi |
10919 | |
10920 | # Commands to make compiler produce verbose output that lists |
10921 | # what "hidden" libraries, object files and flags are used when |
10922 | # linking a shared library. |
10923 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
10924 | |
10925 | else |
10926 | GXX=no |
10927 | with_gnu_ld=no |
10928 | wlarc= |
10929 | fi |
10930 | |
10931 | # PORTME: fill in a description of your system's C++ link characteristics |
64ff59ba |
10932 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
10933 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
d9898ee8 |
10934 | ld_shlibs_CXX=yes |
10935 | case $host_os in |
10936 | aix3*) |
10937 | # FIXME: insert proper C++ library support |
10938 | ld_shlibs_CXX=no |
10939 | ;; |
10940 | aix4* | aix5*) |
10941 | if test "$host_cpu" = ia64; then |
10942 | # On IA64, the linker does run time linking by default, so we don't |
10943 | # have to do anything special. |
10944 | aix_use_runtimelinking=no |
10945 | exp_sym_flag='-Bexport' |
10946 | no_entry_flag="" |
10947 | else |
10948 | aix_use_runtimelinking=no |
10949 | |
10950 | # Test if we are trying to use run time linking or normal |
10951 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
10952 | # need to do runtime linking. |
10953 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
10954 | for ld_flag in $LDFLAGS; do |
10955 | case $ld_flag in |
10956 | *-brtl*) |
10957 | aix_use_runtimelinking=yes |
10958 | break |
10959 | ;; |
10960 | esac |
10961 | done |
10962 | ;; |
10963 | esac |
10964 | |
10965 | exp_sym_flag='-bexport' |
10966 | no_entry_flag='-bnoentry' |
10967 | fi |
10968 | |
10969 | # When large executables or shared objects are built, AIX ld can |
10970 | # have problems creating the table of contents. If linking a library |
10971 | # or program results in "error TOC overflow" add -mminimal-toc to |
10972 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
10973 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
10974 | |
10975 | archive_cmds_CXX='' |
10976 | hardcode_direct_CXX=yes |
10977 | hardcode_libdir_separator_CXX=':' |
10978 | link_all_deplibs_CXX=yes |
10979 | |
10980 | if test "$GXX" = yes; then |
10981 | case $host_os in aix4.[012]|aix4.[012].*) |
10982 | # We only want to do this on AIX 4.2 and lower, the check |
10983 | # below for broken collect2 doesn't work under 4.3+ |
10984 | collect2name=`${CC} -print-prog-name=collect2` |
10985 | if test -f "$collect2name" && \ |
10986 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
10987 | then |
10988 | # We have reworked collect2 |
10989 | hardcode_direct_CXX=yes |
10990 | else |
10991 | # We have old collect2 |
10992 | hardcode_direct_CXX=unsupported |
10993 | # It fails to find uninstalled libraries when the uninstalled |
10994 | # path is not listed in the libpath. Setting hardcode_minus_L |
10995 | # to unsupported forces relinking |
10996 | hardcode_minus_L_CXX=yes |
10997 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
10998 | hardcode_libdir_separator_CXX= |
10999 | fi |
11000 | ;; |
11001 | esac |
11002 | shared_flag='-shared' |
11003 | if test "$aix_use_runtimelinking" = yes; then |
11004 | shared_flag="$shared_flag "'${wl}-G' |
11005 | fi |
11006 | else |
11007 | # not using gcc |
11008 | if test "$host_cpu" = ia64; then |
11009 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
11010 | # chokes on -Wl,-G. The following line is correct: |
11011 | shared_flag='-G' |
11012 | else |
11013 | if test "$aix_use_runtimelinking" = yes; then |
11014 | shared_flag='${wl}-G' |
11015 | else |
11016 | shared_flag='${wl}-bM:SRE' |
11017 | fi |
11018 | fi |
11019 | fi |
11020 | |
11021 | # It seems that -bexpall does not export symbols beginning with |
11022 | # underscore (_), so it is better to generate a list of symbols to export. |
11023 | always_export_symbols_CXX=yes |
11024 | if test "$aix_use_runtimelinking" = yes; then |
11025 | # Warning - without using the other runtime loading flags (-brtl), |
11026 | # -berok will link without error, but may produce a broken library. |
11027 | allow_undefined_flag_CXX='-berok' |
11028 | # Determine the default libpath from the value encoded in an empty executable. |
11029 | cat >conftest.$ac_ext <<_ACEOF |
11030 | /* confdefs.h. */ |
11031 | _ACEOF |
11032 | cat confdefs.h >>conftest.$ac_ext |
11033 | cat >>conftest.$ac_ext <<_ACEOF |
11034 | /* end confdefs.h. */ |
11035 | |
11036 | int |
11037 | main () |
11038 | { |
11039 | |
11040 | ; |
11041 | return 0; |
11042 | } |
11043 | _ACEOF |
11044 | rm -f conftest.$ac_objext conftest$ac_exeext |
64ff59ba |
11045 | if { (ac_try="$ac_link" |
11046 | case "(($ac_try" in |
11047 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11048 | *) ac_try_echo=$ac_try;; |
11049 | esac |
11050 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11051 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
11052 | ac_status=$? |
11053 | grep -v '^ *+' conftest.er1 >conftest.err |
11054 | rm -f conftest.er1 |
11055 | cat conftest.err >&5 |
11056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
11057 | (exit $ac_status); } && { |
11058 | test -z "$ac_cxx_werror_flag" || |
11059 | test ! -s conftest.err |
11060 | } && test -s conftest$ac_exeext && |
11061 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
11062 | |
11063 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
11064 | }'` |
11065 | # Check for a 64-bit object if we didn't find anything. |
11066 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
11067 | }'`; fi |
11068 | else |
11069 | echo "$as_me: failed program was:" >&5 |
11070 | sed 's/^/| /' conftest.$ac_ext >&5 |
11071 | |
64ff59ba |
11072 | |
d9898ee8 |
11073 | fi |
64ff59ba |
11074 | |
11075 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
11076 | conftest$ac_exeext conftest.$ac_ext |
11077 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
11078 | |
11079 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
11080 | |
11081 | 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" |
11082 | else |
11083 | if test "$host_cpu" = ia64; then |
11084 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
11085 | allow_undefined_flag_CXX="-z nodefs" |
11086 | 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" |
11087 | else |
11088 | # Determine the default libpath from the value encoded in an empty executable. |
11089 | cat >conftest.$ac_ext <<_ACEOF |
11090 | /* confdefs.h. */ |
11091 | _ACEOF |
11092 | cat confdefs.h >>conftest.$ac_ext |
11093 | cat >>conftest.$ac_ext <<_ACEOF |
11094 | /* end confdefs.h. */ |
11095 | |
11096 | int |
11097 | main () |
11098 | { |
11099 | |
11100 | ; |
11101 | return 0; |
11102 | } |
11103 | _ACEOF |
11104 | rm -f conftest.$ac_objext conftest$ac_exeext |
64ff59ba |
11105 | if { (ac_try="$ac_link" |
11106 | case "(($ac_try" in |
11107 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11108 | *) ac_try_echo=$ac_try;; |
11109 | esac |
11110 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11111 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
11112 | ac_status=$? |
11113 | grep -v '^ *+' conftest.er1 >conftest.err |
11114 | rm -f conftest.er1 |
11115 | cat conftest.err >&5 |
11116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
11117 | (exit $ac_status); } && { |
11118 | test -z "$ac_cxx_werror_flag" || |
11119 | test ! -s conftest.err |
11120 | } && test -s conftest$ac_exeext && |
11121 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
11122 | |
11123 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
11124 | }'` |
11125 | # Check for a 64-bit object if we didn't find anything. |
11126 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
11127 | }'`; fi |
11128 | else |
11129 | echo "$as_me: failed program was:" >&5 |
11130 | sed 's/^/| /' conftest.$ac_ext >&5 |
11131 | |
64ff59ba |
11132 | |
d9898ee8 |
11133 | fi |
64ff59ba |
11134 | |
11135 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
11136 | conftest$ac_exeext conftest.$ac_ext |
11137 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
11138 | |
11139 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
11140 | # Warning - without using the other run time loading flags, |
11141 | # -berok will link without error, but may produce a broken library. |
11142 | no_undefined_flag_CXX=' ${wl}-bernotok' |
11143 | allow_undefined_flag_CXX=' ${wl}-berok' |
11144 | # Exported symbols can be pulled into shared objects from archives |
11145 | whole_archive_flag_spec_CXX='$convenience' |
11146 | archive_cmds_need_lc_CXX=yes |
11147 | # This is similar to how AIX traditionally builds its shared libraries. |
11148 | 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' |
11149 | fi |
11150 | fi |
11151 | ;; |
11152 | |
11153 | beos*) |
11154 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
11155 | allow_undefined_flag_CXX=unsupported |
11156 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
11157 | # support --undefined. This deserves some investigation. FIXME |
11158 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
11159 | else |
11160 | ld_shlibs_CXX=no |
11161 | fi |
11162 | ;; |
11163 | |
11164 | chorus*) |
11165 | case $cc_basename in |
11166 | *) |
11167 | # FIXME: insert proper C++ library support |
11168 | ld_shlibs_CXX=no |
11169 | ;; |
11170 | esac |
11171 | ;; |
11172 | |
11173 | cygwin* | mingw* | pw32*) |
11174 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
11175 | # as there is no search path for DLLs. |
11176 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
11177 | allow_undefined_flag_CXX=unsupported |
11178 | always_export_symbols_CXX=no |
11179 | enable_shared_with_static_runtimes_CXX=yes |
11180 | |
11181 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
11182 | 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' |
11183 | # If the export-symbols file already is a .def file (1st line |
11184 | # is EXPORTS), use it as is; otherwise, prepend... |
11185 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
11186 | cp $export_symbols $output_objdir/$soname.def; |
11187 | else |
11188 | echo EXPORTS > $output_objdir/$soname.def; |
11189 | cat $export_symbols >> $output_objdir/$soname.def; |
11190 | fi~ |
11191 | $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' |
11192 | else |
11193 | ld_shlibs_CXX=no |
11194 | fi |
11195 | ;; |
11196 | darwin* | rhapsody*) |
11197 | case $host_os in |
11198 | rhapsody* | darwin1.[012]) |
11199 | allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' |
11200 | ;; |
11201 | *) # Darwin 1.3 on |
11202 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
11203 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
11204 | else |
11205 | case ${MACOSX_DEPLOYMENT_TARGET} in |
11206 | 10.[012]) |
11207 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
11208 | ;; |
11209 | 10.*) |
11210 | allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' |
11211 | ;; |
11212 | esac |
11213 | fi |
11214 | ;; |
11215 | esac |
11216 | archive_cmds_need_lc_CXX=no |
11217 | hardcode_direct_CXX=no |
11218 | hardcode_automatic_CXX=yes |
11219 | hardcode_shlibpath_var_CXX=unsupported |
11220 | whole_archive_flag_spec_CXX='' |
11221 | link_all_deplibs_CXX=yes |
11222 | |
11223 | if test "$GXX" = yes ; then |
11224 | lt_int_apple_cc_single_mod=no |
11225 | output_verbose_link_cmd='echo' |
11226 | if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then |
11227 | lt_int_apple_cc_single_mod=yes |
11228 | fi |
11229 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
11230 | archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
11231 | else |
11232 | 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' |
11233 | fi |
11234 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
11235 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
11236 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
11237 | 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}' |
11238 | else |
11239 | 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}' |
11240 | fi |
11241 | 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}' |
11242 | else |
11243 | case $cc_basename in |
11244 | xlc*) |
11245 | output_verbose_link_cmd='echo' |
11246 | archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
11247 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
11248 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
11249 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
11250 | 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}' |
11251 | ;; |
11252 | *) |
11253 | ld_shlibs_CXX=no |
11254 | ;; |
11255 | esac |
11256 | fi |
11257 | ;; |
11258 | |
11259 | dgux*) |
11260 | case $cc_basename in |
11261 | ec++*) |
11262 | # FIXME: insert proper C++ library support |
11263 | ld_shlibs_CXX=no |
11264 | ;; |
11265 | ghcx*) |
11266 | # Green Hills C++ Compiler |
11267 | # FIXME: insert proper C++ library support |
11268 | ld_shlibs_CXX=no |
11269 | ;; |
11270 | *) |
11271 | # FIXME: insert proper C++ library support |
11272 | ld_shlibs_CXX=no |
11273 | ;; |
11274 | esac |
11275 | ;; |
11276 | freebsd[12]*) |
11277 | # C++ shared libraries reported to be fairly broken before switch to ELF |
11278 | ld_shlibs_CXX=no |
11279 | ;; |
11280 | freebsd-elf*) |
11281 | archive_cmds_need_lc_CXX=no |
11282 | ;; |
11283 | freebsd* | kfreebsd*-gnu | dragonfly*) |
11284 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
11285 | # conventions |
11286 | ld_shlibs_CXX=yes |
11287 | ;; |
11288 | gnu*) |
11289 | ;; |
11290 | hpux9*) |
11291 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
11292 | hardcode_libdir_separator_CXX=: |
11293 | export_dynamic_flag_spec_CXX='${wl}-E' |
11294 | hardcode_direct_CXX=yes |
11295 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
11296 | # but as the default |
11297 | # location of the library. |
11298 | |
11299 | case $cc_basename in |
11300 | CC*) |
11301 | # FIXME: insert proper C++ library support |
11302 | ld_shlibs_CXX=no |
11303 | ;; |
11304 | aCC*) |
11305 | 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' |
11306 | # Commands to make compiler produce verbose output that lists |
11307 | # what "hidden" libraries, object files and flags are used when |
11308 | # linking a shared library. |
11309 | # |
11310 | # There doesn't appear to be a way to prevent this compiler from |
11311 | # explicitly linking system object files so we need to strip them |
11312 | # from the output so that they don't get included in the library |
11313 | # dependencies. |
11314 | 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' |
11315 | ;; |
11316 | *) |
11317 | if test "$GXX" = yes; then |
11318 | 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' |
11319 | else |
11320 | # FIXME: insert proper C++ library support |
11321 | ld_shlibs_CXX=no |
11322 | fi |
11323 | ;; |
11324 | esac |
11325 | ;; |
11326 | hpux10*|hpux11*) |
11327 | if test $with_gnu_ld = no; then |
11328 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
11329 | hardcode_libdir_separator_CXX=: |
11330 | |
11331 | case $host_cpu in |
11332 | hppa*64*|ia64*) |
11333 | hardcode_libdir_flag_spec_ld_CXX='+b $libdir' |
11334 | ;; |
11335 | *) |
11336 | export_dynamic_flag_spec_CXX='${wl}-E' |
11337 | ;; |
11338 | esac |
11339 | fi |
11340 | case $host_cpu in |
11341 | hppa*64*|ia64*) |
11342 | hardcode_direct_CXX=no |
11343 | hardcode_shlibpath_var_CXX=no |
11344 | ;; |
11345 | *) |
11346 | hardcode_direct_CXX=yes |
11347 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
11348 | # but as the default |
11349 | # location of the library. |
11350 | ;; |
11351 | esac |
11352 | |
11353 | case $cc_basename in |
11354 | CC*) |
11355 | # FIXME: insert proper C++ library support |
11356 | ld_shlibs_CXX=no |
11357 | ;; |
11358 | aCC*) |
11359 | case $host_cpu in |
11360 | hppa*64*) |
11361 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11362 | ;; |
11363 | ia64*) |
11364 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11365 | ;; |
11366 | *) |
11367 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11368 | ;; |
11369 | esac |
11370 | # Commands to make compiler produce verbose output that lists |
11371 | # what "hidden" libraries, object files and flags are used when |
11372 | # linking a shared library. |
11373 | # |
11374 | # There doesn't appear to be a way to prevent this compiler from |
11375 | # explicitly linking system object files so we need to strip them |
11376 | # from the output so that they don't get included in the library |
11377 | # dependencies. |
11378 | 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' |
11379 | ;; |
11380 | *) |
11381 | if test "$GXX" = yes; then |
11382 | if test $with_gnu_ld = no; then |
11383 | case $host_cpu in |
11384 | hppa*64*) |
11385 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11386 | ;; |
11387 | ia64*) |
11388 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11389 | ;; |
11390 | *) |
11391 | 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' |
11392 | ;; |
11393 | esac |
11394 | fi |
11395 | else |
11396 | # FIXME: insert proper C++ library support |
11397 | ld_shlibs_CXX=no |
11398 | fi |
11399 | ;; |
11400 | esac |
11401 | ;; |
11402 | interix3*) |
11403 | hardcode_direct_CXX=no |
11404 | hardcode_shlibpath_var_CXX=no |
11405 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
11406 | export_dynamic_flag_spec_CXX='${wl}-E' |
11407 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
11408 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
11409 | # default) and relocated if they conflict, which is a slow very memory |
11410 | # consuming and fragmenting process. To avoid this, we pick a random, |
11411 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
11412 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
11413 | 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' |
11414 | 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' |
11415 | ;; |
11416 | irix5* | irix6*) |
11417 | case $cc_basename in |
11418 | CC*) |
11419 | # SGI C++ |
11420 | 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' |
11421 | |
11422 | # Archives containing C++ object files must be created using |
11423 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
11424 | # necessary to make sure instantiated templates are included |
11425 | # in the archive. |
11426 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
11427 | ;; |
11428 | *) |
11429 | if test "$GXX" = yes; then |
11430 | if test "$with_gnu_ld" = no; then |
11431 | 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' |
11432 | else |
11433 | 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' |
11434 | fi |
11435 | fi |
11436 | link_all_deplibs_CXX=yes |
11437 | ;; |
11438 | esac |
11439 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
11440 | hardcode_libdir_separator_CXX=: |
11441 | ;; |
11442 | linux*) |
11443 | case $cc_basename in |
11444 | KCC*) |
11445 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
11446 | |
11447 | # KCC will only create a shared library if the output file |
11448 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
11449 | # to its proper name (with version) after linking. |
11450 | 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' |
11451 | 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' |
11452 | # Commands to make compiler produce verbose output that lists |
11453 | # what "hidden" libraries, object files and flags are used when |
11454 | # linking a shared library. |
11455 | # |
11456 | # There doesn't appear to be a way to prevent this compiler from |
11457 | # explicitly linking system object files so we need to strip them |
11458 | # from the output so that they don't get included in the library |
11459 | # dependencies. |
11460 | 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' |
11461 | |
11462 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' |
11463 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
11464 | |
11465 | # Archives containing C++ object files must be created using |
11466 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
11467 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
11468 | ;; |
11469 | icpc*) |
11470 | # Intel C++ |
11471 | with_gnu_ld=yes |
11472 | # version 8.0 and above of icpc choke on multiply defined symbols |
11473 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
11474 | # earlier do not add the objects themselves. |
11475 | case `$CC -V 2>&1` in |
11476 | *"Version 7."*) |
11477 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
11478 | 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' |
11479 | ;; |
11480 | *) # Version 8.0 or newer |
11481 | tmp_idyn= |
11482 | case $host_cpu in |
11483 | ia64*) tmp_idyn=' -i_dynamic';; |
11484 | esac |
11485 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
11486 | 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' |
11487 | ;; |
11488 | esac |
11489 | archive_cmds_need_lc_CXX=no |
11490 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
11491 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
11492 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
11493 | ;; |
11494 | pgCC*) |
11495 | # Portland Group C++ compiler |
11496 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
11497 | 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' |
11498 | |
11499 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
11500 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
11501 | 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' |
11502 | ;; |
11503 | cxx*) |
11504 | # Compaq C++ |
11505 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
11506 | 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' |
11507 | |
11508 | runpath_var=LD_RUN_PATH |
11509 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
11510 | hardcode_libdir_separator_CXX=: |
11511 | |
11512 | # Commands to make compiler produce verbose output that lists |
11513 | # what "hidden" libraries, object files and flags are used when |
11514 | # linking a shared library. |
11515 | # |
11516 | # There doesn't appear to be a way to prevent this compiler from |
11517 | # explicitly linking system object files so we need to strip them |
11518 | # from the output so that they don't get included in the library |
11519 | # dependencies. |
11520 | 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' |
11521 | ;; |
11522 | esac |
11523 | ;; |
11524 | lynxos*) |
11525 | # FIXME: insert proper C++ library support |
11526 | ld_shlibs_CXX=no |
11527 | ;; |
11528 | m88k*) |
11529 | # FIXME: insert proper C++ library support |
11530 | ld_shlibs_CXX=no |
11531 | ;; |
11532 | mvs*) |
11533 | case $cc_basename in |
11534 | cxx*) |
11535 | # FIXME: insert proper C++ library support |
11536 | ld_shlibs_CXX=no |
11537 | ;; |
11538 | *) |
11539 | # FIXME: insert proper C++ library support |
11540 | ld_shlibs_CXX=no |
11541 | ;; |
11542 | esac |
11543 | ;; |
11544 | netbsd*) |
11545 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
11546 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
11547 | wlarc= |
11548 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
11549 | hardcode_direct_CXX=yes |
11550 | hardcode_shlibpath_var_CXX=no |
11551 | fi |
11552 | # Workaround some broken pre-1.5 toolchains |
11553 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
11554 | ;; |
11555 | openbsd2*) |
11556 | # C++ shared libraries are fairly broken |
11557 | ld_shlibs_CXX=no |
11558 | ;; |
11559 | openbsd*) |
11560 | hardcode_direct_CXX=yes |
11561 | hardcode_shlibpath_var_CXX=no |
11562 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
11563 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
11564 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
11565 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
11566 | export_dynamic_flag_spec_CXX='${wl}-E' |
11567 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
11568 | fi |
11569 | output_verbose_link_cmd='echo' |
11570 | ;; |
11571 | osf3*) |
11572 | case $cc_basename in |
11573 | KCC*) |
11574 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
11575 | |
11576 | # KCC will only create a shared library if the output file |
11577 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
11578 | # to its proper name (with version) after linking. |
11579 | 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' |
11580 | |
11581 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
11582 | hardcode_libdir_separator_CXX=: |
11583 | |
11584 | # Archives containing C++ object files must be created using |
11585 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
11586 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
11587 | |
11588 | ;; |
11589 | RCC*) |
11590 | # Rational C++ 2.4.1 |
11591 | # FIXME: insert proper C++ library support |
11592 | ld_shlibs_CXX=no |
11593 | ;; |
11594 | cxx*) |
11595 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
11596 | 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' |
11597 | |
11598 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
11599 | hardcode_libdir_separator_CXX=: |
11600 | |
11601 | # Commands to make compiler produce verbose output that lists |
11602 | # what "hidden" libraries, object files and flags are used when |
11603 | # linking a shared library. |
11604 | # |
11605 | # There doesn't appear to be a way to prevent this compiler from |
11606 | # explicitly linking system object files so we need to strip them |
11607 | # from the output so that they don't get included in the library |
11608 | # dependencies. |
11609 | 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' |
11610 | ;; |
11611 | *) |
11612 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
11613 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
11614 | 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' |
11615 | |
11616 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
11617 | hardcode_libdir_separator_CXX=: |
11618 | |
11619 | # Commands to make compiler produce verbose output that lists |
11620 | # what "hidden" libraries, object files and flags are used when |
11621 | # linking a shared library. |
11622 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
11623 | |
11624 | else |
11625 | # FIXME: insert proper C++ library support |
11626 | ld_shlibs_CXX=no |
11627 | fi |
11628 | ;; |
11629 | esac |
11630 | ;; |
11631 | osf4* | osf5*) |
11632 | case $cc_basename in |
11633 | KCC*) |
11634 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
11635 | |
11636 | # KCC will only create a shared library if the output file |
11637 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
11638 | # to its proper name (with version) after linking. |
11639 | 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' |
11640 | |
11641 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
11642 | hardcode_libdir_separator_CXX=: |
11643 | |
11644 | # Archives containing C++ object files must be created using |
11645 | # the KAI C++ compiler. |
11646 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
11647 | ;; |
11648 | RCC*) |
11649 | # Rational C++ 2.4.1 |
11650 | # FIXME: insert proper C++ library support |
11651 | ld_shlibs_CXX=no |
11652 | ;; |
11653 | cxx*) |
11654 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
11655 | 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' |
11656 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
11657 | echo "-hidden">> $lib.exp~ |
11658 | $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~ |
11659 | $rm $lib.exp' |
11660 | |
11661 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
11662 | hardcode_libdir_separator_CXX=: |
11663 | |
11664 | # Commands to make compiler produce verbose output that lists |
11665 | # what "hidden" libraries, object files and flags are used when |
11666 | # linking a shared library. |
11667 | # |
11668 | # There doesn't appear to be a way to prevent this compiler from |
11669 | # explicitly linking system object files so we need to strip them |
11670 | # from the output so that they don't get included in the library |
11671 | # dependencies. |
11672 | 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' |
11673 | ;; |
11674 | *) |
11675 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
11676 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
11677 | 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' |
11678 | |
11679 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
11680 | hardcode_libdir_separator_CXX=: |
11681 | |
11682 | # Commands to make compiler produce verbose output that lists |
11683 | # what "hidden" libraries, object files and flags are used when |
11684 | # linking a shared library. |
11685 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
11686 | |
11687 | else |
11688 | # FIXME: insert proper C++ library support |
11689 | ld_shlibs_CXX=no |
11690 | fi |
11691 | ;; |
11692 | esac |
11693 | ;; |
11694 | psos*) |
11695 | # FIXME: insert proper C++ library support |
11696 | ld_shlibs_CXX=no |
11697 | ;; |
11698 | sunos4*) |
11699 | case $cc_basename in |
11700 | CC*) |
11701 | # Sun C++ 4.x |
11702 | # FIXME: insert proper C++ library support |
11703 | ld_shlibs_CXX=no |
11704 | ;; |
11705 | lcc*) |
11706 | # Lucid |
11707 | # FIXME: insert proper C++ library support |
11708 | ld_shlibs_CXX=no |
11709 | ;; |
11710 | *) |
11711 | # FIXME: insert proper C++ library support |
11712 | ld_shlibs_CXX=no |
11713 | ;; |
11714 | esac |
11715 | ;; |
11716 | solaris*) |
11717 | case $cc_basename in |
11718 | CC*) |
11719 | # Sun C++ 4.2, 5.x and Centerline C++ |
11720 | archive_cmds_need_lc_CXX=yes |
11721 | no_undefined_flag_CXX=' -zdefs' |
11722 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11723 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
11724 | $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' |
11725 | |
11726 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
11727 | hardcode_shlibpath_var_CXX=no |
11728 | case $host_os in |
11729 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
11730 | *) |
11731 | # The C++ compiler is used as linker so we must use $wl |
11732 | # flag to pass the commands to the underlying system |
11733 | # linker. We must also pass each convience library through |
11734 | # to the system linker between allextract/defaultextract. |
11735 | # The C++ compiler will combine linker options so we |
11736 | # cannot just pass the convience library names through |
11737 | # without $wl. |
11738 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
11739 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' |
11740 | ;; |
11741 | esac |
11742 | link_all_deplibs_CXX=yes |
11743 | |
11744 | output_verbose_link_cmd='echo' |
11745 | |
11746 | # Archives containing C++ object files must be created using |
11747 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
11748 | # necessary to make sure instantiated templates are included |
11749 | # in the archive. |
11750 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
11751 | ;; |
11752 | gcx*) |
11753 | # Green Hills C++ Compiler |
11754 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
11755 | |
11756 | # The C++ compiler must be used to create the archive. |
11757 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
11758 | ;; |
11759 | *) |
11760 | # GNU C++ compiler with Solaris linker |
11761 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
11762 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
11763 | if $CC --version | grep -v '^2\.7' > /dev/null; then |
11764 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
11765 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
11766 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
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 | output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
11772 | else |
11773 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
11774 | # platform. |
11775 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
11776 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
11777 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
11778 | |
11779 | # Commands to make compiler produce verbose output that lists |
11780 | # what "hidden" libraries, object files and flags are used when |
11781 | # linking a shared library. |
11782 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
11783 | fi |
11784 | |
11785 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
11786 | fi |
11787 | ;; |
11788 | esac |
11789 | ;; |
11790 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
11791 | no_undefined_flag_CXX='${wl}-z,text' |
11792 | archive_cmds_need_lc_CXX=no |
11793 | hardcode_shlibpath_var_CXX=no |
11794 | runpath_var='LD_RUN_PATH' |
11795 | |
11796 | case $cc_basename in |
11797 | CC*) |
11798 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
11799 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
11800 | ;; |
11801 | *) |
11802 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
11803 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
11804 | ;; |
11805 | esac |
11806 | ;; |
11807 | sysv5* | sco3.2v5* | sco5v6*) |
11808 | # Note: We can NOT use -z defs as we might desire, because we do not |
11809 | # link with -lc, and that would cause any symbols used from libc to |
11810 | # always be unresolved, which means just about no library would |
11811 | # ever link correctly. If we're not using GNU ld we use -z text |
11812 | # though, which does catch some bad symbols but isn't as heavy-handed |
11813 | # as -z defs. |
11814 | # For security reasons, it is highly recommended that you always |
11815 | # use absolute paths for naming shared libraries, and exclude the |
11816 | # DT_RUNPATH tag from executables and libraries. But doing so |
11817 | # requires that you compile everything twice, which is a pain. |
11818 | # So that behaviour is only enabled if SCOABSPATH is set to a |
11819 | # non-empty value in the environment. Most likely only useful for |
11820 | # creating official distributions of packages. |
11821 | # This is a hack until libtool officially supports absolute path |
11822 | # names for shared libraries. |
11823 | no_undefined_flag_CXX='${wl}-z,text' |
11824 | allow_undefined_flag_CXX='${wl}-z,nodefs' |
11825 | archive_cmds_need_lc_CXX=no |
11826 | hardcode_shlibpath_var_CXX=no |
11827 | hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
11828 | hardcode_libdir_separator_CXX=':' |
11829 | link_all_deplibs_CXX=yes |
11830 | export_dynamic_flag_spec_CXX='${wl}-Bexport' |
11831 | runpath_var='LD_RUN_PATH' |
11832 | |
11833 | case $cc_basename in |
11834 | CC*) |
11835 | archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
11836 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
11837 | ;; |
11838 | *) |
11839 | archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
11840 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
11841 | ;; |
11842 | esac |
11843 | ;; |
11844 | tandem*) |
11845 | case $cc_basename in |
11846 | NCC*) |
11847 | # NonStop-UX NCC 3.20 |
11848 | # FIXME: insert proper C++ library support |
11849 | ld_shlibs_CXX=no |
11850 | ;; |
11851 | *) |
11852 | # FIXME: insert proper C++ library support |
11853 | ld_shlibs_CXX=no |
11854 | ;; |
11855 | esac |
11856 | ;; |
11857 | vxworks*) |
11858 | # FIXME: insert proper C++ library support |
11859 | ld_shlibs_CXX=no |
11860 | ;; |
11861 | *) |
11862 | # FIXME: insert proper C++ library support |
11863 | ld_shlibs_CXX=no |
11864 | ;; |
11865 | esac |
64ff59ba |
11866 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
11867 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
d9898ee8 |
11868 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
11869 | |
11870 | GCC_CXX="$GXX" |
11871 | LD_CXX="$LD" |
11872 | |
11873 | |
11874 | cat > conftest.$ac_ext <<EOF |
11875 | class Foo |
11876 | { |
11877 | public: |
11878 | Foo (void) { a = 0; } |
11879 | private: |
11880 | int a; |
11881 | }; |
11882 | EOF |
11883 | |
11884 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
11885 | (eval $ac_compile) 2>&5 |
11886 | ac_status=$? |
11887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11888 | (exit $ac_status); }; then |
11889 | # Parse the compiler output and extract the necessary |
11890 | # objects, libraries and library flags. |
11891 | |
11892 | # Sentinel used to keep track of whether or not we are before |
11893 | # the conftest object file. |
11894 | pre_test_object_deps_done=no |
11895 | |
11896 | # The `*' in the case matches for architectures that use `case' in |
11897 | # $output_verbose_cmd can trigger glob expansion during the loop |
11898 | # eval without this substitution. |
11899 | output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` |
11900 | |
11901 | for p in `eval $output_verbose_link_cmd`; do |
11902 | case $p in |
11903 | |
11904 | -L* | -R* | -l*) |
11905 | # Some compilers place space between "-{L,R}" and the path. |
11906 | # Remove the space. |
11907 | if test $p = "-L" \ |
11908 | || test $p = "-R"; then |
11909 | prev=$p |
11910 | continue |
11911 | else |
11912 | prev= |
11913 | fi |
11914 | |
11915 | if test "$pre_test_object_deps_done" = no; then |
11916 | case $p in |
11917 | -L* | -R*) |
11918 | # Internal compiler library paths should come after those |
11919 | # provided the user. The postdeps already come after the |
11920 | # user supplied libs so there is no need to process them. |
11921 | if test -z "$compiler_lib_search_path_CXX"; then |
11922 | compiler_lib_search_path_CXX="${prev}${p}" |
11923 | else |
11924 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
11925 | fi |
11926 | ;; |
11927 | # The "-l" case would never come before the object being |
11928 | # linked, so don't bother handling this case. |
11929 | esac |
11930 | else |
11931 | if test -z "$postdeps_CXX"; then |
11932 | postdeps_CXX="${prev}${p}" |
11933 | else |
11934 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
11935 | fi |
11936 | fi |
11937 | ;; |
11938 | |
11939 | *.$objext) |
11940 | # This assumes that the test object file only shows up |
11941 | # once in the compiler output. |
11942 | if test "$p" = "conftest.$objext"; then |
11943 | pre_test_object_deps_done=yes |
11944 | continue |
11945 | fi |
11946 | |
11947 | if test "$pre_test_object_deps_done" = no; then |
11948 | if test -z "$predep_objects_CXX"; then |
11949 | predep_objects_CXX="$p" |
11950 | else |
11951 | predep_objects_CXX="$predep_objects_CXX $p" |
11952 | fi |
11953 | else |
11954 | if test -z "$postdep_objects_CXX"; then |
11955 | postdep_objects_CXX="$p" |
11956 | else |
11957 | postdep_objects_CXX="$postdep_objects_CXX $p" |
11958 | fi |
11959 | fi |
11960 | ;; |
11961 | |
11962 | *) ;; # Ignore the rest. |
11963 | |
11964 | esac |
11965 | done |
11966 | |
11967 | # Clean up. |
11968 | rm -f a.out a.exe |
11969 | else |
11970 | echo "libtool.m4: error: problem compiling CXX test program" |
11971 | fi |
11972 | |
11973 | $rm -f confest.$objext |
11974 | |
11975 | # PORTME: override above test on systems where it is broken |
11976 | case $host_os in |
11977 | interix3*) |
11978 | # Interix 3.5 installs completely hosed .la files for C++, so rather than |
11979 | # hack all around it, let's just trust "g++" to DTRT. |
11980 | predep_objects_CXX= |
11981 | postdep_objects_CXX= |
11982 | postdeps_CXX= |
11983 | ;; |
11984 | |
11985 | solaris*) |
11986 | case $cc_basename in |
11987 | CC*) |
11988 | # Adding this requires a known-good setup of shared libraries for |
11989 | # Sun compiler versions before 5.6, else PIC objects from an old |
11990 | # archive will be linked into the output, leading to subtle bugs. |
11991 | postdeps_CXX='-lCstd -lCrun' |
11992 | ;; |
11993 | esac |
11994 | ;; |
11995 | esac |
11996 | |
11997 | |
11998 | case " $postdeps_CXX " in |
11999 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
12000 | esac |
12001 | |
12002 | lt_prog_compiler_wl_CXX= |
12003 | lt_prog_compiler_pic_CXX= |
12004 | lt_prog_compiler_static_CXX= |
12005 | |
64ff59ba |
12006 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
12007 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
d9898ee8 |
12008 | |
12009 | # C++ specific cases for pic, static, wl, etc. |
12010 | if test "$GXX" = yes; then |
12011 | lt_prog_compiler_wl_CXX='-Wl,' |
12012 | lt_prog_compiler_static_CXX='-static' |
12013 | |
12014 | case $host_os in |
12015 | aix*) |
12016 | # All AIX code is PIC. |
12017 | if test "$host_cpu" = ia64; then |
12018 | # AIX 5 now supports IA64 processor |
12019 | lt_prog_compiler_static_CXX='-Bstatic' |
12020 | fi |
12021 | ;; |
12022 | amigaos*) |
12023 | # FIXME: we need at least 68020 code to build shared libraries, but |
12024 | # adding the `-m68020' flag to GCC prevents building anything better, |
12025 | # like `-m68040'. |
12026 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
12027 | ;; |
12028 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
12029 | # PIC is the default for these OSes. |
12030 | ;; |
12031 | mingw* | os2* | pw32*) |
12032 | # This hack is so that the source file can tell whether it is being |
12033 | # built for inclusion in a dll (and should export symbols for example). |
12034 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
12035 | ;; |
12036 | darwin* | rhapsody*) |
12037 | # PIC is the default on this platform |
12038 | # Common symbols not allowed in MH_DYLIB files |
12039 | lt_prog_compiler_pic_CXX='-fno-common' |
12040 | ;; |
12041 | *djgpp*) |
12042 | # DJGPP does not support shared libraries at all |
12043 | lt_prog_compiler_pic_CXX= |
12044 | ;; |
12045 | interix3*) |
12046 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
12047 | # Instead, we relocate shared libraries at runtime. |
12048 | ;; |
12049 | sysv4*MP*) |
12050 | if test -d /usr/nec; then |
12051 | lt_prog_compiler_pic_CXX=-Kconform_pic |
12052 | fi |
12053 | ;; |
12054 | hpux*) |
12055 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
12056 | # not for PA HP-UX. |
12057 | case $host_cpu in |
12058 | hppa*64*|ia64*) |
12059 | ;; |
12060 | *) |
12061 | lt_prog_compiler_pic_CXX='-fPIC' |
12062 | ;; |
12063 | esac |
12064 | ;; |
12065 | *) |
12066 | lt_prog_compiler_pic_CXX='-fPIC' |
12067 | ;; |
12068 | esac |
12069 | else |
12070 | case $host_os in |
12071 | aix4* | aix5*) |
12072 | # All AIX code is PIC. |
12073 | if test "$host_cpu" = ia64; then |
12074 | # AIX 5 now supports IA64 processor |
12075 | lt_prog_compiler_static_CXX='-Bstatic' |
12076 | else |
12077 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
12078 | fi |
12079 | ;; |
12080 | chorus*) |
12081 | case $cc_basename in |
12082 | cxch68*) |
12083 | # Green Hills C++ Compiler |
12084 | # _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" |
12085 | ;; |
12086 | esac |
12087 | ;; |
12088 | darwin*) |
12089 | # PIC is the default on this platform |
12090 | # Common symbols not allowed in MH_DYLIB files |
12091 | case $cc_basename in |
12092 | xlc*) |
12093 | lt_prog_compiler_pic_CXX='-qnocommon' |
12094 | lt_prog_compiler_wl_CXX='-Wl,' |
12095 | ;; |
12096 | esac |
12097 | ;; |
12098 | dgux*) |
12099 | case $cc_basename in |
12100 | ec++*) |
12101 | lt_prog_compiler_pic_CXX='-KPIC' |
12102 | ;; |
12103 | ghcx*) |
12104 | # Green Hills C++ Compiler |
12105 | lt_prog_compiler_pic_CXX='-pic' |
12106 | ;; |
12107 | *) |
12108 | ;; |
12109 | esac |
12110 | ;; |
12111 | freebsd* | kfreebsd*-gnu | dragonfly*) |
12112 | # FreeBSD uses GNU C++ |
12113 | ;; |
12114 | hpux9* | hpux10* | hpux11*) |
12115 | case $cc_basename in |
12116 | CC*) |
12117 | lt_prog_compiler_wl_CXX='-Wl,' |
12118 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
12119 | if test "$host_cpu" != ia64; then |
12120 | lt_prog_compiler_pic_CXX='+Z' |
12121 | fi |
12122 | ;; |
12123 | aCC*) |
12124 | lt_prog_compiler_wl_CXX='-Wl,' |
12125 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
12126 | case $host_cpu in |
12127 | hppa*64*|ia64*) |
12128 | # +Z the default |
12129 | ;; |
12130 | *) |
12131 | lt_prog_compiler_pic_CXX='+Z' |
12132 | ;; |
12133 | esac |
12134 | ;; |
12135 | *) |
12136 | ;; |
12137 | esac |
12138 | ;; |
12139 | interix*) |
12140 | # This is c89, which is MS Visual C++ (no shared libs) |
12141 | # Anyone wants to do a port? |
12142 | ;; |
12143 | irix5* | irix6* | nonstopux*) |
12144 | case $cc_basename in |
12145 | CC*) |
12146 | lt_prog_compiler_wl_CXX='-Wl,' |
12147 | lt_prog_compiler_static_CXX='-non_shared' |
12148 | # CC pic flag -KPIC is the default. |
12149 | ;; |
12150 | *) |
12151 | ;; |
12152 | esac |
12153 | ;; |
12154 | linux*) |
12155 | case $cc_basename in |
12156 | KCC*) |
12157 | # KAI C++ Compiler |
12158 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
12159 | lt_prog_compiler_pic_CXX='-fPIC' |
12160 | ;; |
12161 | icpc* | ecpc*) |
12162 | # Intel C++ |
12163 | lt_prog_compiler_wl_CXX='-Wl,' |
12164 | lt_prog_compiler_pic_CXX='-KPIC' |
12165 | lt_prog_compiler_static_CXX='-static' |
12166 | ;; |
12167 | pgCC*) |
12168 | # Portland Group C++ compiler. |
12169 | lt_prog_compiler_wl_CXX='-Wl,' |
12170 | lt_prog_compiler_pic_CXX='-fpic' |
12171 | lt_prog_compiler_static_CXX='-Bstatic' |
12172 | ;; |
12173 | cxx*) |
12174 | # Compaq C++ |
12175 | # Make sure the PIC flag is empty. It appears that all Alpha |
12176 | # Linux and Compaq Tru64 Unix objects are PIC. |
12177 | lt_prog_compiler_pic_CXX= |
12178 | lt_prog_compiler_static_CXX='-non_shared' |
12179 | ;; |
12180 | *) |
12181 | ;; |
12182 | esac |
12183 | ;; |
12184 | lynxos*) |
12185 | ;; |
12186 | m88k*) |
12187 | ;; |
12188 | mvs*) |
12189 | case $cc_basename in |
12190 | cxx*) |
12191 | lt_prog_compiler_pic_CXX='-W c,exportall' |
12192 | ;; |
12193 | *) |
12194 | ;; |
12195 | esac |
12196 | ;; |
12197 | netbsd*) |
12198 | ;; |
12199 | osf3* | osf4* | osf5*) |
12200 | case $cc_basename in |
12201 | KCC*) |
12202 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
12203 | ;; |
12204 | RCC*) |
12205 | # Rational C++ 2.4.1 |
12206 | lt_prog_compiler_pic_CXX='-pic' |
12207 | ;; |
12208 | cxx*) |
12209 | # Digital/Compaq C++ |
12210 | lt_prog_compiler_wl_CXX='-Wl,' |
12211 | # Make sure the PIC flag is empty. It appears that all Alpha |
12212 | # Linux and Compaq Tru64 Unix objects are PIC. |
12213 | lt_prog_compiler_pic_CXX= |
12214 | lt_prog_compiler_static_CXX='-non_shared' |
12215 | ;; |
12216 | *) |
12217 | ;; |
12218 | esac |
12219 | ;; |
12220 | psos*) |
12221 | ;; |
12222 | solaris*) |
12223 | case $cc_basename in |
12224 | CC*) |
12225 | # Sun C++ 4.2, 5.x and Centerline C++ |
12226 | lt_prog_compiler_pic_CXX='-KPIC' |
12227 | lt_prog_compiler_static_CXX='-Bstatic' |
12228 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
12229 | ;; |
12230 | gcx*) |
12231 | # Green Hills C++ Compiler |
12232 | lt_prog_compiler_pic_CXX='-PIC' |
12233 | ;; |
12234 | *) |
12235 | ;; |
12236 | esac |
12237 | ;; |
12238 | sunos4*) |
12239 | case $cc_basename in |
12240 | CC*) |
12241 | # Sun C++ 4.x |
12242 | lt_prog_compiler_pic_CXX='-pic' |
12243 | lt_prog_compiler_static_CXX='-Bstatic' |
12244 | ;; |
12245 | lcc*) |
12246 | # Lucid |
12247 | lt_prog_compiler_pic_CXX='-pic' |
12248 | ;; |
12249 | *) |
12250 | ;; |
12251 | esac |
12252 | ;; |
12253 | tandem*) |
12254 | case $cc_basename in |
12255 | NCC*) |
12256 | # NonStop-UX NCC 3.20 |
12257 | lt_prog_compiler_pic_CXX='-KPIC' |
12258 | ;; |
12259 | *) |
12260 | ;; |
12261 | esac |
12262 | ;; |
12263 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
12264 | case $cc_basename in |
12265 | CC*) |
12266 | lt_prog_compiler_wl_CXX='-Wl,' |
12267 | lt_prog_compiler_pic_CXX='-KPIC' |
12268 | lt_prog_compiler_static_CXX='-Bstatic' |
12269 | ;; |
12270 | esac |
12271 | ;; |
12272 | vxworks*) |
12273 | ;; |
12274 | *) |
12275 | lt_prog_compiler_can_build_shared_CXX=no |
12276 | ;; |
12277 | esac |
12278 | fi |
12279 | |
64ff59ba |
12280 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
12281 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } |
d9898ee8 |
12282 | |
12283 | # |
12284 | # Check to make sure the PIC flag actually works. |
12285 | # |
12286 | if test -n "$lt_prog_compiler_pic_CXX"; then |
12287 | |
64ff59ba |
12288 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
12289 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } |
d9898ee8 |
12290 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then |
12291 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12292 | else |
12293 | lt_prog_compiler_pic_works_CXX=no |
12294 | ac_outfile=conftest.$ac_objext |
12295 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
12296 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
12297 | # Insert the option either (1) after the last *FLAGS variable, or |
12298 | # (2) before a word containing "conftest.", or (3) at the end. |
12299 | # Note that $ac_compile itself does not contain backslashes and begins |
12300 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
12301 | # The option is referenced via a variable to avoid confusing sed. |
12302 | lt_compile=`echo "$ac_compile" | $SED \ |
12303 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
12304 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
12305 | -e 's:$: $lt_compiler_flag:'` |
64ff59ba |
12306 | (eval echo "\"\$as_me:12306: $lt_compile\"" >&5) |
d9898ee8 |
12307 | (eval "$lt_compile" 2>conftest.err) |
12308 | ac_status=$? |
12309 | cat conftest.err >&5 |
64ff59ba |
12310 | echo "$as_me:12310: \$? = $ac_status" >&5 |
d9898ee8 |
12311 | if (exit $ac_status) && test -s "$ac_outfile"; then |
12312 | # The compiler can only warn and ignore the option if not recognized |
12313 | # So say no if there are warnings other than the usual output. |
12314 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
12315 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
12316 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
12317 | lt_prog_compiler_pic_works_CXX=yes |
12318 | fi |
12319 | fi |
12320 | $rm conftest* |
12321 | |
12322 | fi |
64ff59ba |
12323 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 |
12324 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } |
d9898ee8 |
12325 | |
12326 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then |
12327 | case $lt_prog_compiler_pic_CXX in |
12328 | "" | " "*) ;; |
12329 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
12330 | esac |
12331 | else |
12332 | lt_prog_compiler_pic_CXX= |
12333 | lt_prog_compiler_can_build_shared_CXX=no |
12334 | fi |
12335 | |
12336 | fi |
12337 | case $host_os in |
12338 | # For platforms which do not support PIC, -DPIC is meaningless: |
12339 | *djgpp*) |
12340 | lt_prog_compiler_pic_CXX= |
12341 | ;; |
12342 | *) |
12343 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
12344 | ;; |
12345 | esac |
12346 | |
12347 | # |
12348 | # Check to make sure the static flag actually works. |
12349 | # |
12350 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" |
64ff59ba |
12351 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
12352 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
d9898ee8 |
12353 | if test "${lt_prog_compiler_static_works_CXX+set}" = set; then |
12354 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12355 | else |
12356 | lt_prog_compiler_static_works_CXX=no |
12357 | save_LDFLAGS="$LDFLAGS" |
12358 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
12359 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
12360 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
12361 | # The linker can only warn and ignore the option if not recognized |
12362 | # So say no if there are warnings |
12363 | if test -s conftest.err; then |
12364 | # Append any errors to the config.log. |
12365 | cat conftest.err 1>&5 |
12366 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
12367 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
12368 | if diff conftest.exp conftest.er2 >/dev/null; then |
12369 | lt_prog_compiler_static_works_CXX=yes |
12370 | fi |
12371 | else |
12372 | lt_prog_compiler_static_works_CXX=yes |
12373 | fi |
12374 | fi |
12375 | $rm conftest* |
12376 | LDFLAGS="$save_LDFLAGS" |
12377 | |
12378 | fi |
64ff59ba |
12379 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 |
12380 | echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } |
d9898ee8 |
12381 | |
12382 | if test x"$lt_prog_compiler_static_works_CXX" = xyes; then |
12383 | : |
12384 | else |
12385 | lt_prog_compiler_static_CXX= |
12386 | fi |
12387 | |
12388 | |
64ff59ba |
12389 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
12390 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
d9898ee8 |
12391 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
12392 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12393 | else |
12394 | lt_cv_prog_compiler_c_o_CXX=no |
12395 | $rm -r conftest 2>/dev/null |
12396 | mkdir conftest |
12397 | cd conftest |
12398 | mkdir out |
12399 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
12400 | |
12401 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
12402 | # Insert the option either (1) after the last *FLAGS variable, or |
12403 | # (2) before a word containing "conftest.", or (3) at the end. |
12404 | # Note that $ac_compile itself does not contain backslashes and begins |
12405 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
12406 | lt_compile=`echo "$ac_compile" | $SED \ |
12407 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
12408 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
12409 | -e 's:$: $lt_compiler_flag:'` |
64ff59ba |
12410 | (eval echo "\"\$as_me:12410: $lt_compile\"" >&5) |
d9898ee8 |
12411 | (eval "$lt_compile" 2>out/conftest.err) |
12412 | ac_status=$? |
12413 | cat out/conftest.err >&5 |
64ff59ba |
12414 | echo "$as_me:12414: \$? = $ac_status" >&5 |
d9898ee8 |
12415 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
12416 | then |
12417 | # The compiler can only warn and ignore the option if not recognized |
12418 | # So say no if there are warnings |
12419 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
12420 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
12421 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
12422 | lt_cv_prog_compiler_c_o_CXX=yes |
12423 | fi |
12424 | fi |
12425 | chmod u+w . 2>&5 |
12426 | $rm conftest* |
12427 | # SGI C++ compiler will create directory out/ii_files/ for |
12428 | # template instantiation |
12429 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
12430 | $rm out/* && rmdir out |
12431 | cd .. |
12432 | rmdir conftest |
12433 | $rm conftest* |
12434 | |
12435 | fi |
64ff59ba |
12436 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
12437 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } |
d9898ee8 |
12438 | |
12439 | |
12440 | hard_links="nottested" |
12441 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
12442 | # do not overwrite the value of need_locks provided by the user |
64ff59ba |
12443 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
12444 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
d9898ee8 |
12445 | hard_links=yes |
12446 | $rm conftest* |
12447 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
12448 | touch conftest.a |
12449 | ln conftest.a conftest.b 2>&5 || hard_links=no |
12450 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
64ff59ba |
12451 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
12452 | echo "${ECHO_T}$hard_links" >&6; } |
d9898ee8 |
12453 | if test "$hard_links" = no; then |
12454 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
12455 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
12456 | need_locks=warn |
12457 | fi |
12458 | else |
12459 | need_locks=no |
12460 | fi |
12461 | |
64ff59ba |
12462 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
12463 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
d9898ee8 |
12464 | |
12465 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
12466 | case $host_os in |
12467 | aix4* | aix5*) |
12468 | # If we're using GNU nm, then we don't want the "-C" option. |
12469 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
12470 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
12471 | 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' |
12472 | else |
12473 | 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' |
12474 | fi |
12475 | ;; |
12476 | pw32*) |
12477 | export_symbols_cmds_CXX="$ltdll_cmds" |
12478 | ;; |
12479 | cygwin* | mingw*) |
12480 | 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' |
12481 | ;; |
12482 | *) |
12483 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
12484 | ;; |
12485 | esac |
12486 | |
64ff59ba |
12487 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
12488 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
d9898ee8 |
12489 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
12490 | |
12491 | # |
12492 | # Do we need to explicitly link libc? |
12493 | # |
12494 | case "x$archive_cmds_need_lc_CXX" in |
12495 | x|xyes) |
12496 | # Assume -lc should be added |
12497 | archive_cmds_need_lc_CXX=yes |
12498 | |
12499 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
12500 | case $archive_cmds_CXX in |
12501 | *'~'*) |
12502 | # FIXME: we may have to deal with multi-command sequences. |
12503 | ;; |
12504 | '$CC '*) |
12505 | # Test whether the compiler implicitly links with -lc since on some |
12506 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
12507 | # to ld, don't add -lc before -lgcc. |
64ff59ba |
12508 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
12509 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
d9898ee8 |
12510 | $rm conftest* |
12511 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
12512 | |
12513 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
12514 | (eval $ac_compile) 2>&5 |
12515 | ac_status=$? |
12516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12517 | (exit $ac_status); } 2>conftest.err; then |
12518 | soname=conftest |
12519 | lib=conftest |
12520 | libobjs=conftest.$ac_objext |
12521 | deplibs= |
12522 | wl=$lt_prog_compiler_wl_CXX |
12523 | pic_flag=$lt_prog_compiler_pic_CXX |
12524 | compiler_flags=-v |
12525 | linker_flags=-v |
12526 | verstring= |
12527 | output_objdir=. |
12528 | libname=conftest |
12529 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
12530 | allow_undefined_flag_CXX= |
12531 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
12532 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
12533 | ac_status=$? |
12534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12535 | (exit $ac_status); } |
12536 | then |
12537 | archive_cmds_need_lc_CXX=no |
12538 | else |
12539 | archive_cmds_need_lc_CXX=yes |
12540 | fi |
12541 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
12542 | else |
12543 | cat conftest.err 1>&5 |
12544 | fi |
12545 | $rm conftest* |
64ff59ba |
12546 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 |
12547 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } |
d9898ee8 |
12548 | ;; |
12549 | esac |
12550 | fi |
12551 | ;; |
12552 | esac |
12553 | |
64ff59ba |
12554 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
12555 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
d9898ee8 |
12556 | library_names_spec= |
12557 | libname_spec='lib$name' |
12558 | soname_spec= |
12559 | shrext_cmds=".so" |
12560 | postinstall_cmds= |
12561 | postuninstall_cmds= |
12562 | finish_cmds= |
12563 | finish_eval= |
12564 | shlibpath_var= |
12565 | shlibpath_overrides_runpath=unknown |
12566 | version_type=none |
12567 | dynamic_linker="$host_os ld.so" |
12568 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
12569 | if test "$GCC" = yes; then |
12570 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
12571 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
12572 | # if the path contains ";" then we assume it to be the separator |
12573 | # otherwise default to the standard path separator (i.e. ":") - it is |
12574 | # assumed that no part of a normal pathname contains ";" but that should |
12575 | # okay in the real world where ";" in dirpaths is itself problematic. |
12576 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
12577 | else |
12578 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
12579 | fi |
12580 | else |
12581 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
12582 | fi |
12583 | need_lib_prefix=unknown |
12584 | hardcode_into_libs=no |
12585 | |
12586 | # when you set need_version to no, make sure it does not cause -set_version |
12587 | # flags to be left without arguments |
12588 | need_version=unknown |
12589 | |
12590 | case $host_os in |
12591 | aix3*) |
12592 | version_type=linux |
12593 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
12594 | shlibpath_var=LIBPATH |
12595 | |
12596 | # AIX 3 has no versioning support, so we append a major version to the name. |
12597 | soname_spec='${libname}${release}${shared_ext}$major' |
12598 | ;; |
12599 | |
12600 | aix4* | aix5*) |
12601 | version_type=linux |
12602 | need_lib_prefix=no |
12603 | need_version=no |
12604 | hardcode_into_libs=yes |
12605 | if test "$host_cpu" = ia64; then |
12606 | # AIX 5 supports IA64 |
12607 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
12608 | shlibpath_var=LD_LIBRARY_PATH |
12609 | else |
12610 | # With GCC up to 2.95.x, collect2 would create an import file |
12611 | # for dependence libraries. The import file would start with |
12612 | # the line `#! .'. This would cause the generated library to |
12613 | # depend on `.', always an invalid library. This was fixed in |
12614 | # development snapshots of GCC prior to 3.0. |
12615 | case $host_os in |
12616 | aix4 | aix4.[01] | aix4.[01].*) |
12617 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
12618 | echo ' yes ' |
12619 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
12620 | : |
12621 | else |
12622 | can_build_shared=no |
12623 | fi |
12624 | ;; |
12625 | esac |
12626 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
12627 | # soname into executable. Probably we can add versioning support to |
12628 | # collect2, so additional links can be useful in future. |
12629 | if test "$aix_use_runtimelinking" = yes; then |
12630 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
12631 | # instead of lib<name>.a to let people know that these are not |
12632 | # typical AIX shared libraries. |
12633 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12634 | else |
12635 | # We preserve .a as extension for shared libraries through AIX4.2 |
12636 | # and later when we are not doing run time linking. |
12637 | library_names_spec='${libname}${release}.a $libname.a' |
12638 | soname_spec='${libname}${release}${shared_ext}$major' |
12639 | fi |
12640 | shlibpath_var=LIBPATH |
12641 | fi |
12642 | ;; |
12643 | |
12644 | amigaos*) |
12645 | library_names_spec='$libname.ixlibrary $libname.a' |
12646 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
12647 | 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' |
12648 | ;; |
12649 | |
12650 | beos*) |
12651 | library_names_spec='${libname}${shared_ext}' |
12652 | dynamic_linker="$host_os ld.so" |
12653 | shlibpath_var=LIBRARY_PATH |
12654 | ;; |
12655 | |
12656 | bsdi[45]*) |
12657 | version_type=linux |
12658 | need_version=no |
12659 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12660 | soname_spec='${libname}${release}${shared_ext}$major' |
12661 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
12662 | shlibpath_var=LD_LIBRARY_PATH |
12663 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
12664 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
12665 | # the default ld.so.conf also contains /usr/contrib/lib and |
12666 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
12667 | # libtool to hard-code these into programs |
12668 | ;; |
12669 | |
12670 | cygwin* | mingw* | pw32*) |
12671 | version_type=windows |
12672 | shrext_cmds=".dll" |
12673 | need_version=no |
12674 | need_lib_prefix=no |
12675 | |
12676 | case $GCC,$host_os in |
12677 | yes,cygwin* | yes,mingw* | yes,pw32*) |
12678 | library_names_spec='$libname.dll.a' |
12679 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
12680 | postinstall_cmds='base_file=`basename \${file}`~ |
12681 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
12682 | dldir=$destdir/`dirname \$dlpath`~ |
12683 | test -d \$dldir || mkdir -p \$dldir~ |
12684 | $install_prog $dir/$dlname \$dldir/$dlname~ |
12685 | chmod a+x \$dldir/$dlname' |
12686 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
12687 | dlpath=$dir/\$dldll~ |
12688 | $rm \$dlpath' |
12689 | shlibpath_overrides_runpath=yes |
12690 | |
12691 | case $host_os in |
12692 | cygwin*) |
12693 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
12694 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
12695 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
12696 | ;; |
12697 | mingw*) |
12698 | # MinGW DLLs use traditional 'lib' prefix |
12699 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
12700 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
12701 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
12702 | # It is most probably a Windows format PATH printed by |
12703 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
12704 | # path with ; separators, and with drive letters. We can handle the |
12705 | # drive letters (cygwin fileutils understands them), so leave them, |
12706 | # especially as we might pass files found there to a mingw objdump, |
12707 | # which wouldn't understand a cygwinified path. Ahh. |
12708 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
12709 | else |
12710 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
12711 | fi |
12712 | ;; |
12713 | pw32*) |
12714 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
12715 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
12716 | ;; |
12717 | esac |
12718 | ;; |
12719 | |
12720 | *) |
12721 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
12722 | ;; |
12723 | esac |
12724 | dynamic_linker='Win32 ld.exe' |
12725 | # FIXME: first we should search . and the directory the executable is in |
12726 | shlibpath_var=PATH |
12727 | ;; |
12728 | |
12729 | darwin* | rhapsody*) |
12730 | dynamic_linker="$host_os dyld" |
12731 | version_type=darwin |
12732 | need_lib_prefix=no |
12733 | need_version=no |
12734 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
12735 | soname_spec='${libname}${release}${major}$shared_ext' |
12736 | shlibpath_overrides_runpath=yes |
12737 | shlibpath_var=DYLD_LIBRARY_PATH |
12738 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
12739 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
12740 | if test "$GCC" = yes; then |
12741 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
12742 | else |
12743 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
12744 | fi |
12745 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
12746 | ;; |
12747 | |
12748 | dgux*) |
12749 | version_type=linux |
12750 | need_lib_prefix=no |
12751 | need_version=no |
12752 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
12753 | soname_spec='${libname}${release}${shared_ext}$major' |
12754 | shlibpath_var=LD_LIBRARY_PATH |
12755 | ;; |
12756 | |
12757 | freebsd1*) |
12758 | dynamic_linker=no |
12759 | ;; |
12760 | |
12761 | kfreebsd*-gnu) |
12762 | version_type=linux |
12763 | need_lib_prefix=no |
12764 | need_version=no |
12765 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
12766 | soname_spec='${libname}${release}${shared_ext}$major' |
12767 | shlibpath_var=LD_LIBRARY_PATH |
12768 | shlibpath_overrides_runpath=no |
12769 | hardcode_into_libs=yes |
12770 | dynamic_linker='GNU ld.so' |
12771 | ;; |
12772 | |
12773 | freebsd* | dragonfly*) |
12774 | # DragonFly does not have aout. When/if they implement a new |
12775 | # versioning mechanism, adjust this. |
12776 | if test -x /usr/bin/objformat; then |
12777 | objformat=`/usr/bin/objformat` |
12778 | else |
12779 | case $host_os in |
12780 | freebsd[123]*) objformat=aout ;; |
12781 | *) objformat=elf ;; |
12782 | esac |
12783 | fi |
12784 | version_type=freebsd-$objformat |
12785 | case $version_type in |
12786 | freebsd-elf*) |
12787 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
12788 | need_version=no |
12789 | need_lib_prefix=no |
12790 | ;; |
12791 | freebsd-*) |
12792 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
12793 | need_version=yes |
12794 | ;; |
12795 | esac |
12796 | shlibpath_var=LD_LIBRARY_PATH |
12797 | case $host_os in |
12798 | freebsd2*) |
12799 | shlibpath_overrides_runpath=yes |
12800 | ;; |
12801 | freebsd3.[01]* | freebsdelf3.[01]*) |
12802 | shlibpath_overrides_runpath=yes |
12803 | hardcode_into_libs=yes |
12804 | ;; |
12805 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
12806 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
12807 | shlibpath_overrides_runpath=no |
12808 | hardcode_into_libs=yes |
12809 | ;; |
12810 | freebsd*) # from 4.6 on |
12811 | shlibpath_overrides_runpath=yes |
12812 | hardcode_into_libs=yes |
12813 | ;; |
12814 | esac |
12815 | ;; |
12816 | |
12817 | gnu*) |
12818 | version_type=linux |
12819 | need_lib_prefix=no |
12820 | need_version=no |
12821 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
12822 | soname_spec='${libname}${release}${shared_ext}$major' |
12823 | shlibpath_var=LD_LIBRARY_PATH |
12824 | hardcode_into_libs=yes |
12825 | ;; |
12826 | |
12827 | hpux9* | hpux10* | hpux11*) |
12828 | # Give a soname corresponding to the major version so that dld.sl refuses to |
12829 | # link against other versions. |
12830 | version_type=sunos |
12831 | need_lib_prefix=no |
12832 | need_version=no |
12833 | case $host_cpu in |
12834 | ia64*) |
12835 | shrext_cmds='.so' |
12836 | hardcode_into_libs=yes |
12837 | dynamic_linker="$host_os dld.so" |
12838 | shlibpath_var=LD_LIBRARY_PATH |
12839 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
12840 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12841 | soname_spec='${libname}${release}${shared_ext}$major' |
12842 | if test "X$HPUX_IA64_MODE" = X32; then |
12843 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
12844 | else |
12845 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
12846 | fi |
12847 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
12848 | ;; |
12849 | hppa*64*) |
12850 | shrext_cmds='.sl' |
12851 | hardcode_into_libs=yes |
12852 | dynamic_linker="$host_os dld.sl" |
12853 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
12854 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
12855 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12856 | soname_spec='${libname}${release}${shared_ext}$major' |
12857 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
12858 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
12859 | ;; |
12860 | *) |
12861 | shrext_cmds='.sl' |
12862 | dynamic_linker="$host_os dld.sl" |
12863 | shlibpath_var=SHLIB_PATH |
12864 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
12865 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12866 | soname_spec='${libname}${release}${shared_ext}$major' |
12867 | ;; |
12868 | esac |
12869 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
12870 | postinstall_cmds='chmod 555 $lib' |
12871 | ;; |
12872 | |
12873 | interix3*) |
12874 | version_type=linux |
12875 | need_lib_prefix=no |
12876 | need_version=no |
12877 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
12878 | soname_spec='${libname}${release}${shared_ext}$major' |
12879 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
12880 | shlibpath_var=LD_LIBRARY_PATH |
12881 | shlibpath_overrides_runpath=no |
12882 | hardcode_into_libs=yes |
12883 | ;; |
12884 | |
12885 | irix5* | irix6* | nonstopux*) |
12886 | case $host_os in |
12887 | nonstopux*) version_type=nonstopux ;; |
12888 | *) |
12889 | if test "$lt_cv_prog_gnu_ld" = yes; then |
12890 | version_type=linux |
12891 | else |
12892 | version_type=irix |
12893 | fi ;; |
12894 | esac |
12895 | need_lib_prefix=no |
12896 | need_version=no |
12897 | soname_spec='${libname}${release}${shared_ext}$major' |
12898 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
12899 | case $host_os in |
12900 | irix5* | nonstopux*) |
12901 | libsuff= shlibsuff= |
12902 | ;; |
12903 | *) |
12904 | case $LD in # libtool.m4 will add one of these switches to LD |
12905 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
12906 | libsuff= shlibsuff= libmagic=32-bit;; |
12907 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
12908 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
12909 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
12910 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
12911 | *) libsuff= shlibsuff= libmagic=never-match;; |
12912 | esac |
12913 | ;; |
12914 | esac |
12915 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
12916 | shlibpath_overrides_runpath=no |
12917 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
12918 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
12919 | hardcode_into_libs=yes |
12920 | ;; |
12921 | |
12922 | # No shared lib support for Linux oldld, aout, or coff. |
12923 | linux*oldld* | linux*aout* | linux*coff*) |
12924 | dynamic_linker=no |
12925 | ;; |
12926 | |
12927 | # This must be Linux ELF. |
12928 | linux*) |
12929 | version_type=linux |
12930 | need_lib_prefix=no |
12931 | need_version=no |
12932 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12933 | soname_spec='${libname}${release}${shared_ext}$major' |
12934 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
12935 | shlibpath_var=LD_LIBRARY_PATH |
12936 | shlibpath_overrides_runpath=no |
12937 | # This implies no fast_install, which is unacceptable. |
12938 | # Some rework will be needed to allow for fast_install |
12939 | # before this can be enabled. |
12940 | hardcode_into_libs=yes |
12941 | |
12942 | # find out which ABI we are using |
12943 | libsuff= |
12944 | case "$host_cpu" in |
12945 | x86_64*|s390x*|powerpc64*) |
64ff59ba |
12946 | echo '#line 12946 "configure"' > conftest.$ac_ext |
d9898ee8 |
12947 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
12948 | (eval $ac_compile) 2>&5 |
12949 | ac_status=$? |
12950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12951 | (exit $ac_status); }; then |
12952 | case `/usr/bin/file conftest.$ac_objext` in |
12953 | *64-bit*) |
12954 | libsuff=64 |
12955 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" |
12956 | ;; |
12957 | esac |
12958 | fi |
12959 | rm -rf conftest* |
12960 | ;; |
12961 | esac |
12962 | |
12963 | # Append ld.so.conf contents to the search path |
12964 | if test -f /etc/ld.so.conf; then |
64ff59ba |
12965 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/^ *//;s/#.*//;/^[^\/]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
d9898ee8 |
12966 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" |
12967 | fi |
12968 | |
12969 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
12970 | # powerpc, because MkLinux only supported shared libraries with the |
12971 | # GNU dynamic linker. Since this was broken with cross compilers, |
12972 | # most powerpc-linux boxes support dynamic linking these days and |
12973 | # people can always --disable-shared, the test was removed, and we |
12974 | # assume the GNU/Linux dynamic linker is in use. |
12975 | dynamic_linker='GNU/Linux ld.so' |
12976 | ;; |
12977 | |
12978 | knetbsd*-gnu) |
12979 | version_type=linux |
12980 | need_lib_prefix=no |
12981 | need_version=no |
12982 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
12983 | soname_spec='${libname}${release}${shared_ext}$major' |
12984 | shlibpath_var=LD_LIBRARY_PATH |
12985 | shlibpath_overrides_runpath=no |
12986 | hardcode_into_libs=yes |
12987 | dynamic_linker='GNU ld.so' |
12988 | ;; |
12989 | |
12990 | netbsd*) |
12991 | version_type=sunos |
12992 | need_lib_prefix=no |
12993 | need_version=no |
12994 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
12995 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
12996 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
12997 | dynamic_linker='NetBSD (a.out) ld.so' |
12998 | else |
12999 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
13000 | soname_spec='${libname}${release}${shared_ext}$major' |
13001 | dynamic_linker='NetBSD ld.elf_so' |
13002 | fi |
13003 | shlibpath_var=LD_LIBRARY_PATH |
13004 | shlibpath_overrides_runpath=yes |
13005 | hardcode_into_libs=yes |
13006 | ;; |
13007 | |
13008 | newsos6) |
13009 | version_type=linux |
13010 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13011 | shlibpath_var=LD_LIBRARY_PATH |
13012 | shlibpath_overrides_runpath=yes |
13013 | ;; |
13014 | |
13015 | nto-qnx*) |
13016 | version_type=linux |
13017 | need_lib_prefix=no |
13018 | need_version=no |
13019 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13020 | soname_spec='${libname}${release}${shared_ext}$major' |
13021 | shlibpath_var=LD_LIBRARY_PATH |
13022 | shlibpath_overrides_runpath=yes |
13023 | ;; |
13024 | |
13025 | openbsd*) |
13026 | version_type=sunos |
13027 | sys_lib_dlsearch_path_spec="/usr/lib" |
13028 | need_lib_prefix=no |
13029 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
13030 | case $host_os in |
13031 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
13032 | *) need_version=no ;; |
13033 | esac |
13034 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
13035 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
13036 | shlibpath_var=LD_LIBRARY_PATH |
13037 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
13038 | case $host_os in |
13039 | openbsd2.[89] | openbsd2.[89].*) |
13040 | shlibpath_overrides_runpath=no |
13041 | ;; |
13042 | *) |
13043 | shlibpath_overrides_runpath=yes |
13044 | ;; |
13045 | esac |
13046 | else |
13047 | shlibpath_overrides_runpath=yes |
13048 | fi |
13049 | ;; |
13050 | |
13051 | os2*) |
13052 | libname_spec='$name' |
13053 | shrext_cmds=".dll" |
13054 | need_lib_prefix=no |
13055 | library_names_spec='$libname${shared_ext} $libname.a' |
13056 | dynamic_linker='OS/2 ld.exe' |
13057 | shlibpath_var=LIBPATH |
13058 | ;; |
13059 | |
13060 | osf3* | osf4* | osf5*) |
13061 | version_type=osf |
13062 | need_lib_prefix=no |
13063 | need_version=no |
13064 | soname_spec='${libname}${release}${shared_ext}$major' |
13065 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13066 | shlibpath_var=LD_LIBRARY_PATH |
13067 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
13068 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
13069 | ;; |
13070 | |
13071 | solaris*) |
13072 | version_type=linux |
13073 | need_lib_prefix=no |
13074 | need_version=no |
13075 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13076 | soname_spec='${libname}${release}${shared_ext}$major' |
13077 | shlibpath_var=LD_LIBRARY_PATH |
13078 | shlibpath_overrides_runpath=yes |
13079 | hardcode_into_libs=yes |
13080 | # ldd complains unless libraries are executable |
13081 | postinstall_cmds='chmod +x $lib' |
13082 | ;; |
13083 | |
13084 | sunos4*) |
13085 | version_type=sunos |
13086 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
13087 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
13088 | shlibpath_var=LD_LIBRARY_PATH |
13089 | shlibpath_overrides_runpath=yes |
13090 | if test "$with_gnu_ld" = yes; then |
13091 | need_lib_prefix=no |
13092 | fi |
13093 | need_version=yes |
13094 | ;; |
13095 | |
13096 | sysv4 | sysv4.3*) |
13097 | version_type=linux |
13098 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13099 | soname_spec='${libname}${release}${shared_ext}$major' |
13100 | shlibpath_var=LD_LIBRARY_PATH |
13101 | case $host_vendor in |
13102 | sni) |
13103 | shlibpath_overrides_runpath=no |
13104 | need_lib_prefix=no |
13105 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
13106 | runpath_var=LD_RUN_PATH |
13107 | ;; |
13108 | siemens) |
13109 | need_lib_prefix=no |
13110 | ;; |
13111 | motorola) |
13112 | need_lib_prefix=no |
13113 | need_version=no |
13114 | shlibpath_overrides_runpath=no |
13115 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
13116 | ;; |
13117 | esac |
13118 | ;; |
13119 | |
13120 | sysv4*MP*) |
13121 | if test -d /usr/nec ;then |
13122 | version_type=linux |
13123 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
13124 | soname_spec='$libname${shared_ext}.$major' |
13125 | shlibpath_var=LD_LIBRARY_PATH |
13126 | fi |
13127 | ;; |
13128 | |
13129 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
13130 | version_type=freebsd-elf |
13131 | need_lib_prefix=no |
13132 | need_version=no |
13133 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
13134 | soname_spec='${libname}${release}${shared_ext}$major' |
13135 | shlibpath_var=LD_LIBRARY_PATH |
13136 | hardcode_into_libs=yes |
13137 | if test "$with_gnu_ld" = yes; then |
13138 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
13139 | shlibpath_overrides_runpath=no |
13140 | else |
13141 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
13142 | shlibpath_overrides_runpath=yes |
13143 | case $host_os in |
13144 | sco3.2v5*) |
13145 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
13146 | ;; |
13147 | esac |
13148 | fi |
13149 | sys_lib_dlsearch_path_spec='/usr/lib' |
13150 | ;; |
13151 | |
13152 | uts4*) |
13153 | version_type=linux |
13154 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13155 | soname_spec='${libname}${release}${shared_ext}$major' |
13156 | shlibpath_var=LD_LIBRARY_PATH |
13157 | ;; |
13158 | |
13159 | *) |
13160 | dynamic_linker=no |
13161 | ;; |
13162 | esac |
64ff59ba |
13163 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
13164 | echo "${ECHO_T}$dynamic_linker" >&6; } |
d9898ee8 |
13165 | test "$dynamic_linker" = no && can_build_shared=no |
13166 | |
13167 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
13168 | if test "$GCC" = yes; then |
13169 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
13170 | fi |
13171 | |
64ff59ba |
13172 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
13173 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
d9898ee8 |
13174 | hardcode_action_CXX= |
13175 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ |
13176 | test -n "$runpath_var_CXX" || \ |
13177 | test "X$hardcode_automatic_CXX" = "Xyes" ; then |
13178 | |
13179 | # We can hardcode non-existant directories. |
13180 | if test "$hardcode_direct_CXX" != no && |
13181 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
13182 | # have to relink, otherwise we might link with an installed library |
13183 | # when we should be linking with a yet-to-be-installed one |
13184 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
13185 | test "$hardcode_minus_L_CXX" != no; then |
13186 | # Linking always hardcodes the temporary library directory. |
13187 | hardcode_action_CXX=relink |
13188 | else |
13189 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
13190 | hardcode_action_CXX=immediate |
13191 | fi |
13192 | else |
13193 | # We cannot hardcode anything, or else we can only hardcode existing |
13194 | # directories. |
13195 | hardcode_action_CXX=unsupported |
13196 | fi |
64ff59ba |
13197 | { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
13198 | echo "${ECHO_T}$hardcode_action_CXX" >&6; } |
d9898ee8 |
13199 | |
13200 | if test "$hardcode_action_CXX" = relink; then |
13201 | # Fast installation is not supported |
13202 | enable_fast_install=no |
13203 | elif test "$shlibpath_overrides_runpath" = yes || |
13204 | test "$enable_shared" = no; then |
13205 | # Fast installation is not necessary |
13206 | enable_fast_install=needless |
13207 | fi |
13208 | |
13209 | |
13210 | # The else clause should only fire when bootstrapping the |
13211 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
13212 | # with your package, and you will get complaints that there are |
13213 | # no rules to generate ltmain.sh. |
13214 | if test -f "$ltmain"; then |
13215 | # See if we are running on zsh, and set the options which allow our commands through |
13216 | # without removal of \ escapes. |
13217 | if test -n "${ZSH_VERSION+set}" ; then |
13218 | setopt NO_GLOB_SUBST |
13219 | fi |
13220 | # Now quote all the things that may contain metacharacters while being |
13221 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
13222 | # variables and quote the copies for generation of the libtool script. |
13223 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
13224 | SED SHELL STRIP \ |
13225 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
13226 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
13227 | deplibs_check_method reload_flag reload_cmds need_locks \ |
13228 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
13229 | lt_cv_sys_global_symbol_to_c_name_address \ |
13230 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
13231 | old_postinstall_cmds old_postuninstall_cmds \ |
13232 | compiler_CXX \ |
13233 | CC_CXX \ |
13234 | LD_CXX \ |
13235 | lt_prog_compiler_wl_CXX \ |
13236 | lt_prog_compiler_pic_CXX \ |
13237 | lt_prog_compiler_static_CXX \ |
13238 | lt_prog_compiler_no_builtin_flag_CXX \ |
13239 | export_dynamic_flag_spec_CXX \ |
13240 | thread_safe_flag_spec_CXX \ |
13241 | whole_archive_flag_spec_CXX \ |
13242 | enable_shared_with_static_runtimes_CXX \ |
13243 | old_archive_cmds_CXX \ |
13244 | old_archive_from_new_cmds_CXX \ |
13245 | predep_objects_CXX \ |
13246 | postdep_objects_CXX \ |
13247 | predeps_CXX \ |
13248 | postdeps_CXX \ |
13249 | compiler_lib_search_path_CXX \ |
13250 | archive_cmds_CXX \ |
13251 | archive_expsym_cmds_CXX \ |
13252 | postinstall_cmds_CXX \ |
13253 | postuninstall_cmds_CXX \ |
13254 | old_archive_from_expsyms_cmds_CXX \ |
13255 | allow_undefined_flag_CXX \ |
13256 | no_undefined_flag_CXX \ |
13257 | export_symbols_cmds_CXX \ |
13258 | hardcode_libdir_flag_spec_CXX \ |
13259 | hardcode_libdir_flag_spec_ld_CXX \ |
13260 | hardcode_libdir_separator_CXX \ |
13261 | hardcode_automatic_CXX \ |
13262 | module_cmds_CXX \ |
13263 | module_expsym_cmds_CXX \ |
13264 | lt_cv_prog_compiler_c_o_CXX \ |
13265 | exclude_expsyms_CXX \ |
13266 | include_expsyms_CXX; do |
13267 | |
13268 | case $var in |
13269 | old_archive_cmds_CXX | \ |
13270 | old_archive_from_new_cmds_CXX | \ |
13271 | archive_cmds_CXX | \ |
13272 | archive_expsym_cmds_CXX | \ |
13273 | module_cmds_CXX | \ |
13274 | module_expsym_cmds_CXX | \ |
13275 | old_archive_from_expsyms_cmds_CXX | \ |
13276 | export_symbols_cmds_CXX | \ |
13277 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
13278 | postinstall_cmds | postuninstall_cmds | \ |
13279 | old_postinstall_cmds | old_postuninstall_cmds | \ |
13280 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
13281 | # Double-quote double-evaled strings. |
13282 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
13283 | ;; |
13284 | *) |
13285 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
13286 | ;; |
13287 | esac |
13288 | done |
13289 | |
13290 | case $lt_echo in |
13291 | *'\$0 --fallback-echo"') |
13292 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
13293 | ;; |
13294 | esac |
13295 | |
13296 | cfgfile="$ofile" |
13297 | |
13298 | cat <<__EOF__ >> "$cfgfile" |
13299 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
13300 | |
13301 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
13302 | |
13303 | # Shell to use when invoking shell scripts. |
13304 | SHELL=$lt_SHELL |
13305 | |
13306 | # Whether or not to build shared libraries. |
13307 | build_libtool_libs=$enable_shared |
13308 | |
13309 | # Whether or not to build static libraries. |
13310 | build_old_libs=$enable_static |
13311 | |
13312 | # Whether or not to add -lc for building shared libraries. |
13313 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
13314 | |
13315 | # Whether or not to disallow shared libs when runtime libs are static |
13316 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
13317 | |
13318 | # Whether or not to optimize for fast installation. |
13319 | fast_install=$enable_fast_install |
13320 | |
13321 | # The host system. |
13322 | host_alias=$host_alias |
13323 | host=$host |
13324 | host_os=$host_os |
13325 | |
13326 | # The build system. |
13327 | build_alias=$build_alias |
13328 | build=$build |
13329 | build_os=$build_os |
13330 | |
13331 | # An echo program that does not interpret backslashes. |
13332 | echo=$lt_echo |
13333 | |
13334 | # The archiver. |
13335 | AR=$lt_AR |
13336 | AR_FLAGS=$lt_AR_FLAGS |
13337 | |
13338 | # A C compiler. |
13339 | LTCC=$lt_LTCC |
13340 | |
13341 | # LTCC compiler flags. |
13342 | LTCFLAGS=$lt_LTCFLAGS |
13343 | |
13344 | # A language-specific compiler. |
13345 | CC=$lt_compiler_CXX |
13346 | |
13347 | # Is the compiler the GNU C compiler? |
13348 | with_gcc=$GCC_CXX |
13349 | |
d9898ee8 |
13350 | # An ERE matcher. |
13351 | EGREP=$lt_EGREP |
13352 | |
13353 | # The linker used to build libraries. |
13354 | LD=$lt_LD_CXX |
13355 | |
13356 | # Whether we need hard or soft links. |
13357 | LN_S=$lt_LN_S |
13358 | |
13359 | # A BSD-compatible nm program. |
13360 | NM=$lt_NM |
13361 | |
13362 | # A symbol stripping program |
13363 | STRIP=$lt_STRIP |
13364 | |
13365 | # Used to examine libraries when file_magic_cmd begins "file" |
13366 | MAGIC_CMD=$MAGIC_CMD |
13367 | |
13368 | # Used on cygwin: DLL creation program. |
13369 | DLLTOOL="$DLLTOOL" |
13370 | |
13371 | # Used on cygwin: object dumper. |
13372 | OBJDUMP="$OBJDUMP" |
13373 | |
13374 | # Used on cygwin: assembler. |
13375 | AS="$AS" |
13376 | |
13377 | # The name of the directory that contains temporary libtool files. |
13378 | objdir=$objdir |
13379 | |
13380 | # How to create reloadable object files. |
13381 | reload_flag=$lt_reload_flag |
13382 | reload_cmds=$lt_reload_cmds |
13383 | |
13384 | # How to pass a linker flag through the compiler. |
13385 | wl=$lt_lt_prog_compiler_wl_CXX |
13386 | |
13387 | # Object file suffix (normally "o"). |
13388 | objext="$ac_objext" |
13389 | |
13390 | # Old archive suffix (normally "a"). |
13391 | libext="$libext" |
13392 | |
13393 | # Shared library suffix (normally ".so"). |
13394 | shrext_cmds='$shrext_cmds' |
13395 | |
13396 | # Executable file suffix (normally ""). |
13397 | exeext="$exeext" |
13398 | |
13399 | # Additional compiler flags for building library objects. |
13400 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
13401 | pic_mode=$pic_mode |
13402 | |
13403 | # What is the maximum length of a command? |
13404 | max_cmd_len=$lt_cv_sys_max_cmd_len |
13405 | |
13406 | # Does compiler simultaneously support -c and -o options? |
13407 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
13408 | |
13409 | # Must we lock files when doing compilation? |
13410 | need_locks=$lt_need_locks |
13411 | |
13412 | # Do we need the lib prefix for modules? |
13413 | need_lib_prefix=$need_lib_prefix |
13414 | |
13415 | # Do we need a version for libraries? |
13416 | need_version=$need_version |
13417 | |
13418 | # Whether dlopen is supported. |
13419 | dlopen_support=$enable_dlopen |
13420 | |
13421 | # Whether dlopen of programs is supported. |
13422 | dlopen_self=$enable_dlopen_self |
13423 | |
13424 | # Whether dlopen of statically linked programs is supported. |
13425 | dlopen_self_static=$enable_dlopen_self_static |
13426 | |
13427 | # Compiler flag to prevent dynamic linking. |
13428 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
13429 | |
13430 | # Compiler flag to turn off builtin functions. |
13431 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
13432 | |
13433 | # Compiler flag to allow reflexive dlopens. |
13434 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
13435 | |
13436 | # Compiler flag to generate shared objects directly from archives. |
13437 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
13438 | |
13439 | # Compiler flag to generate thread-safe objects. |
13440 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX |
13441 | |
13442 | # Library versioning type. |
13443 | version_type=$version_type |
13444 | |
13445 | # Format of library name prefix. |
13446 | libname_spec=$lt_libname_spec |
13447 | |
13448 | # List of archive names. First name is the real one, the rest are links. |
13449 | # The last name is the one that the linker finds with -lNAME. |
13450 | library_names_spec=$lt_library_names_spec |
13451 | |
13452 | # The coded name of the library, if different from the real name. |
13453 | soname_spec=$lt_soname_spec |
13454 | |
13455 | # Commands used to build and install an old-style archive. |
13456 | RANLIB=$lt_RANLIB |
13457 | old_archive_cmds=$lt_old_archive_cmds_CXX |
13458 | old_postinstall_cmds=$lt_old_postinstall_cmds |
13459 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
13460 | |
13461 | # Create an old-style archive from a shared archive. |
13462 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
13463 | |
13464 | # Create a temporary old-style archive to link instead of a shared archive. |
13465 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
13466 | |
13467 | # Commands used to build and install a shared archive. |
13468 | archive_cmds=$lt_archive_cmds_CXX |
13469 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
13470 | postinstall_cmds=$lt_postinstall_cmds |
13471 | postuninstall_cmds=$lt_postuninstall_cmds |
13472 | |
13473 | # Commands used to build a loadable module (assumed same as above if empty) |
13474 | module_cmds=$lt_module_cmds_CXX |
13475 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
13476 | |
13477 | # Commands to strip libraries. |
13478 | old_striplib=$lt_old_striplib |
13479 | striplib=$lt_striplib |
13480 | |
13481 | # Dependencies to place before the objects being linked to create a |
13482 | # shared library. |
64ff59ba |
13483 | predep_objects=$lt_predep_objects_CXX |
d9898ee8 |
13484 | |
13485 | # Dependencies to place after the objects being linked to create a |
13486 | # shared library. |
64ff59ba |
13487 | postdep_objects=$lt_postdep_objects_CXX |
d9898ee8 |
13488 | |
13489 | # Dependencies to place before the objects being linked to create a |
13490 | # shared library. |
13491 | predeps=$lt_predeps_CXX |
13492 | |
13493 | # Dependencies to place after the objects being linked to create a |
13494 | # shared library. |
13495 | postdeps=$lt_postdeps_CXX |
13496 | |
13497 | # The library search path used internally by the compiler when linking |
13498 | # a shared library. |
64ff59ba |
13499 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
d9898ee8 |
13500 | |
13501 | # Method to check whether dependent libraries are shared objects. |
13502 | deplibs_check_method=$lt_deplibs_check_method |
13503 | |
13504 | # Command to use when deplibs_check_method == file_magic. |
13505 | file_magic_cmd=$lt_file_magic_cmd |
13506 | |
13507 | # Flag that allows shared libraries with undefined symbols to be built. |
13508 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
13509 | |
13510 | # Flag that forces no undefined symbols. |
13511 | no_undefined_flag=$lt_no_undefined_flag_CXX |
13512 | |
13513 | # Commands used to finish a libtool library installation in a directory. |
13514 | finish_cmds=$lt_finish_cmds |
13515 | |
13516 | # Same as above, but a single script fragment to be evaled but not shown. |
13517 | finish_eval=$lt_finish_eval |
13518 | |
13519 | # Take the output of nm and produce a listing of raw symbols and C names. |
13520 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
13521 | |
13522 | # Transform the output of nm in a proper C declaration |
13523 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
13524 | |
13525 | # Transform the output of nm in a C name address pair |
13526 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
13527 | |
13528 | # This is the shared library runtime path variable. |
13529 | runpath_var=$runpath_var |
13530 | |
13531 | # This is the shared library path variable. |
13532 | shlibpath_var=$shlibpath_var |
13533 | |
13534 | # Is shlibpath searched before the hard-coded library search path? |
13535 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
13536 | |
13537 | # How to hardcode a shared library path into an executable. |
13538 | hardcode_action=$hardcode_action_CXX |
13539 | |
13540 | # Whether we should hardcode library paths into libraries. |
13541 | hardcode_into_libs=$hardcode_into_libs |
13542 | |
13543 | # Flag to hardcode \$libdir into a binary during linking. |
13544 | # This must work even if \$libdir does not exist. |
13545 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
13546 | |
13547 | # If ld is used when linking, flag to hardcode \$libdir into |
13548 | # a binary during linking. This must work even if \$libdir does |
13549 | # not exist. |
13550 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
13551 | |
13552 | # Whether we need a single -rpath flag with a separated argument. |
13553 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
13554 | |
13555 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
13556 | # resulting binary. |
13557 | hardcode_direct=$hardcode_direct_CXX |
13558 | |
13559 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
13560 | # resulting binary. |
13561 | hardcode_minus_L=$hardcode_minus_L_CXX |
13562 | |
13563 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
13564 | # the resulting binary. |
13565 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
13566 | |
13567 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
13568 | # and all subsequent libraries and executables linked against it. |
13569 | hardcode_automatic=$hardcode_automatic_CXX |
13570 | |
13571 | # Variables whose values should be saved in libtool wrapper scripts and |
13572 | # restored at relink time. |
13573 | variables_saved_for_relink="$variables_saved_for_relink" |
13574 | |
13575 | # Whether libtool must link a program against all its dependency libraries. |
13576 | link_all_deplibs=$link_all_deplibs_CXX |
13577 | |
13578 | # Compile-time system search path for libraries |
64ff59ba |
13579 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
d9898ee8 |
13580 | |
13581 | # Run-time system search path for libraries |
13582 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
13583 | |
13584 | # Fix the shell variable \$srcfile for the compiler. |
13585 | fix_srcfile_path="$fix_srcfile_path_CXX" |
13586 | |
13587 | # Set to yes if exported symbols are required. |
13588 | always_export_symbols=$always_export_symbols_CXX |
13589 | |
13590 | # The commands to list exported symbols. |
13591 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
13592 | |
13593 | # The commands to extract the exported symbol list from a shared archive. |
13594 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
13595 | |
13596 | # Symbols that should not be listed in the preloaded symbols. |
13597 | exclude_expsyms=$lt_exclude_expsyms_CXX |
13598 | |
13599 | # Symbols that must always be exported. |
13600 | include_expsyms=$lt_include_expsyms_CXX |
13601 | |
13602 | # ### END LIBTOOL TAG CONFIG: $tagname |
13603 | |
13604 | __EOF__ |
13605 | |
13606 | |
13607 | else |
13608 | # If there is no Makefile yet, we rely on a make rule to execute |
13609 | # `config.status --recheck' to rerun these tests and create the |
13610 | # libtool script then. |
13611 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
13612 | if test -f "$ltmain_in"; then |
13613 | test -f Makefile && make "$ltmain" |
13614 | fi |
13615 | fi |
13616 | |
13617 | |
13618 | ac_ext=c |
13619 | ac_cpp='$CPP $CPPFLAGS' |
13620 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
13621 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
13622 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
13623 | |
13624 | CC=$lt_save_CC |
13625 | LDCXX=$LD |
13626 | LD=$lt_save_LD |
13627 | GCC=$lt_save_GCC |
13628 | with_gnu_ldcxx=$with_gnu_ld |
13629 | with_gnu_ld=$lt_save_with_gnu_ld |
13630 | lt_cv_path_LDCXX=$lt_cv_path_LD |
13631 | lt_cv_path_LD=$lt_save_path_LD |
13632 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
13633 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
13634 | |
13635 | else |
13636 | tagname="" |
13637 | fi |
13638 | ;; |
13639 | |
13640 | F77) |
13641 | if test -n "$F77" && test "X$F77" != "Xno"; then |
13642 | |
13643 | ac_ext=f |
13644 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
13645 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
13646 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
13647 | |
13648 | |
13649 | archive_cmds_need_lc_F77=no |
13650 | allow_undefined_flag_F77= |
13651 | always_export_symbols_F77=no |
13652 | archive_expsym_cmds_F77= |
13653 | export_dynamic_flag_spec_F77= |
13654 | hardcode_direct_F77=no |
13655 | hardcode_libdir_flag_spec_F77= |
13656 | hardcode_libdir_flag_spec_ld_F77= |
13657 | hardcode_libdir_separator_F77= |
13658 | hardcode_minus_L_F77=no |
13659 | hardcode_automatic_F77=no |
13660 | module_cmds_F77= |
13661 | module_expsym_cmds_F77= |
13662 | link_all_deplibs_F77=unknown |
13663 | old_archive_cmds_F77=$old_archive_cmds |
13664 | no_undefined_flag_F77= |
13665 | whole_archive_flag_spec_F77= |
13666 | enable_shared_with_static_runtimes_F77=no |
13667 | |
13668 | # Source file extension for f77 test sources. |
13669 | ac_ext=f |
13670 | |
13671 | # Object file extension for compiled f77 test sources. |
13672 | objext=o |
13673 | objext_F77=$objext |
13674 | |
13675 | # Code to be used in simple compile tests |
13676 | lt_simple_compile_test_code=" subroutine t\n return\n end\n" |
13677 | |
13678 | # Code to be used in simple link tests |
13679 | lt_simple_link_test_code=" program t\n end\n" |
13680 | |
13681 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
13682 | |
13683 | # If no C compiler was specified, use CC. |
13684 | LTCC=${LTCC-"$CC"} |
13685 | |
13686 | # If no C compiler flags were specified, use CFLAGS. |
13687 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
13688 | |
13689 | # Allow CC to be a program name with arguments. |
13690 | compiler=$CC |
13691 | |
13692 | |
13693 | # save warnings/boilerplate of simple test code |
13694 | ac_outfile=conftest.$ac_objext |
13695 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
13696 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
13697 | _lt_compiler_boilerplate=`cat conftest.err` |
13698 | $rm conftest* |
13699 | |
13700 | ac_outfile=conftest.$ac_objext |
13701 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
13702 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
13703 | _lt_linker_boilerplate=`cat conftest.err` |
13704 | $rm conftest* |
13705 | |
13706 | |
13707 | # Allow CC to be a program name with arguments. |
13708 | lt_save_CC="$CC" |
13709 | CC=${F77-"f77"} |
13710 | compiler=$CC |
13711 | compiler_F77=$CC |
13712 | for cc_temp in $compiler""; do |
13713 | case $cc_temp in |
13714 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
13715 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
13716 | \-*) ;; |
13717 | *) break;; |
13718 | esac |
13719 | done |
13720 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
13721 | |
13722 | |
64ff59ba |
13723 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
13724 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
13725 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
13726 | echo "${ECHO_T}$can_build_shared" >&6; } |
d9898ee8 |
13727 | |
64ff59ba |
13728 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
13729 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
d9898ee8 |
13730 | test "$can_build_shared" = "no" && enable_shared=no |
13731 | |
13732 | # On AIX, shared libraries and static libraries use the same namespace, and |
13733 | # are all built from PIC. |
13734 | case $host_os in |
13735 | aix3*) |
13736 | test "$enable_shared" = yes && enable_static=no |
13737 | if test -n "$RANLIB"; then |
13738 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
13739 | postinstall_cmds='$RANLIB $lib' |
13740 | fi |
13741 | ;; |
13742 | aix4* | aix5*) |
13743 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
13744 | test "$enable_shared" = yes && enable_static=no |
13745 | fi |
13746 | ;; |
13747 | esac |
64ff59ba |
13748 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
13749 | echo "${ECHO_T}$enable_shared" >&6; } |
d9898ee8 |
13750 | |
64ff59ba |
13751 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
13752 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
d9898ee8 |
13753 | # Make sure either enable_shared or enable_static is yes. |
13754 | test "$enable_shared" = yes || enable_static=yes |
64ff59ba |
13755 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
13756 | echo "${ECHO_T}$enable_static" >&6; } |
d9898ee8 |
13757 | |
13758 | GCC_F77="$G77" |
13759 | LD_F77="$LD" |
13760 | |
13761 | lt_prog_compiler_wl_F77= |
13762 | lt_prog_compiler_pic_F77= |
13763 | lt_prog_compiler_static_F77= |
13764 | |
64ff59ba |
13765 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
13766 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
d9898ee8 |
13767 | |
13768 | if test "$GCC" = yes; then |
13769 | lt_prog_compiler_wl_F77='-Wl,' |
13770 | lt_prog_compiler_static_F77='-static' |
13771 | |
13772 | case $host_os in |
13773 | aix*) |
13774 | # All AIX code is PIC. |
13775 | if test "$host_cpu" = ia64; then |
13776 | # AIX 5 now supports IA64 processor |
13777 | lt_prog_compiler_static_F77='-Bstatic' |
13778 | fi |
13779 | ;; |
13780 | |
13781 | amigaos*) |
13782 | # FIXME: we need at least 68020 code to build shared libraries, but |
13783 | # adding the `-m68020' flag to GCC prevents building anything better, |
13784 | # like `-m68040'. |
13785 | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' |
13786 | ;; |
13787 | |
13788 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
13789 | # PIC is the default for these OSes. |
13790 | ;; |
13791 | |
13792 | mingw* | pw32* | os2*) |
13793 | # This hack is so that the source file can tell whether it is being |
13794 | # built for inclusion in a dll (and should export symbols for example). |
13795 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
13796 | ;; |
13797 | |
13798 | darwin* | rhapsody*) |
13799 | # PIC is the default on this platform |
13800 | # Common symbols not allowed in MH_DYLIB files |
13801 | lt_prog_compiler_pic_F77='-fno-common' |
13802 | ;; |
13803 | |
13804 | interix3*) |
13805 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
13806 | # Instead, we relocate shared libraries at runtime. |
13807 | ;; |
13808 | |
13809 | msdosdjgpp*) |
13810 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
13811 | # on systems that don't support them. |
13812 | lt_prog_compiler_can_build_shared_F77=no |
13813 | enable_shared=no |
13814 | ;; |
13815 | |
13816 | sysv4*MP*) |
13817 | if test -d /usr/nec; then |
13818 | lt_prog_compiler_pic_F77=-Kconform_pic |
13819 | fi |
13820 | ;; |
13821 | |
13822 | hpux*) |
13823 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
13824 | # not for PA HP-UX. |
13825 | case $host_cpu in |
13826 | hppa*64*|ia64*) |
13827 | # +Z the default |
13828 | ;; |
13829 | *) |
13830 | lt_prog_compiler_pic_F77='-fPIC' |
13831 | ;; |
13832 | esac |
13833 | ;; |
13834 | |
13835 | *) |
13836 | lt_prog_compiler_pic_F77='-fPIC' |
13837 | ;; |
13838 | esac |
13839 | else |
13840 | # PORTME Check for flag to pass linker flags through the system compiler. |
13841 | case $host_os in |
13842 | aix*) |
13843 | lt_prog_compiler_wl_F77='-Wl,' |
13844 | if test "$host_cpu" = ia64; then |
13845 | # AIX 5 now supports IA64 processor |
13846 | lt_prog_compiler_static_F77='-Bstatic' |
13847 | else |
13848 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' |
13849 | fi |
13850 | ;; |
13851 | darwin*) |
13852 | # PIC is the default on this platform |
13853 | # Common symbols not allowed in MH_DYLIB files |
13854 | case $cc_basename in |
13855 | xlc*) |
13856 | lt_prog_compiler_pic_F77='-qnocommon' |
13857 | lt_prog_compiler_wl_F77='-Wl,' |
13858 | ;; |
13859 | esac |
13860 | ;; |
13861 | |
13862 | mingw* | pw32* | os2*) |
13863 | # This hack is so that the source file can tell whether it is being |
13864 | # built for inclusion in a dll (and should export symbols for example). |
13865 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
13866 | ;; |
13867 | |
13868 | hpux9* | hpux10* | hpux11*) |
13869 | lt_prog_compiler_wl_F77='-Wl,' |
13870 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
13871 | # not for PA HP-UX. |
13872 | case $host_cpu in |
13873 | hppa*64*|ia64*) |
13874 | # +Z the default |
13875 | ;; |
13876 | *) |
13877 | lt_prog_compiler_pic_F77='+Z' |
13878 | ;; |
13879 | esac |
13880 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
13881 | lt_prog_compiler_static_F77='${wl}-a ${wl}archive' |
13882 | ;; |
13883 | |
13884 | irix5* | irix6* | nonstopux*) |
13885 | lt_prog_compiler_wl_F77='-Wl,' |
13886 | # PIC (with -KPIC) is the default. |
13887 | lt_prog_compiler_static_F77='-non_shared' |
13888 | ;; |
13889 | |
13890 | newsos6) |
13891 | lt_prog_compiler_pic_F77='-KPIC' |
13892 | lt_prog_compiler_static_F77='-Bstatic' |
13893 | ;; |
13894 | |
13895 | linux*) |
13896 | case $cc_basename in |
13897 | icc* | ecc*) |
13898 | lt_prog_compiler_wl_F77='-Wl,' |
13899 | lt_prog_compiler_pic_F77='-KPIC' |
13900 | lt_prog_compiler_static_F77='-static' |
13901 | ;; |
13902 | pgcc* | pgf77* | pgf90* | pgf95*) |
13903 | # Portland Group compilers (*not* the Pentium gcc compiler, |
13904 | # which looks to be a dead project) |
13905 | lt_prog_compiler_wl_F77='-Wl,' |
13906 | lt_prog_compiler_pic_F77='-fpic' |
13907 | lt_prog_compiler_static_F77='-Bstatic' |
13908 | ;; |
13909 | ccc*) |
13910 | lt_prog_compiler_wl_F77='-Wl,' |
13911 | # All Alpha code is PIC. |
13912 | lt_prog_compiler_static_F77='-non_shared' |
13913 | ;; |
13914 | esac |
13915 | ;; |
13916 | |
13917 | osf3* | osf4* | osf5*) |
13918 | lt_prog_compiler_wl_F77='-Wl,' |
13919 | # All OSF/1 code is PIC. |
13920 | lt_prog_compiler_static_F77='-non_shared' |
13921 | ;; |
13922 | |
13923 | solaris*) |
13924 | lt_prog_compiler_pic_F77='-KPIC' |
13925 | lt_prog_compiler_static_F77='-Bstatic' |
13926 | case $cc_basename in |
13927 | f77* | f90* | f95*) |
13928 | lt_prog_compiler_wl_F77='-Qoption ld ';; |
13929 | *) |
13930 | lt_prog_compiler_wl_F77='-Wl,';; |
13931 | esac |
13932 | ;; |
13933 | |
13934 | sunos4*) |
13935 | lt_prog_compiler_wl_F77='-Qoption ld ' |
13936 | lt_prog_compiler_pic_F77='-PIC' |
13937 | lt_prog_compiler_static_F77='-Bstatic' |
13938 | ;; |
13939 | |
13940 | sysv4 | sysv4.2uw2* | sysv4.3*) |
13941 | lt_prog_compiler_wl_F77='-Wl,' |
13942 | lt_prog_compiler_pic_F77='-KPIC' |
13943 | lt_prog_compiler_static_F77='-Bstatic' |
13944 | ;; |
13945 | |
13946 | sysv4*MP*) |
13947 | if test -d /usr/nec ;then |
13948 | lt_prog_compiler_pic_F77='-Kconform_pic' |
13949 | lt_prog_compiler_static_F77='-Bstatic' |
13950 | fi |
13951 | ;; |
13952 | |
13953 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
13954 | lt_prog_compiler_wl_F77='-Wl,' |
13955 | lt_prog_compiler_pic_F77='-KPIC' |
13956 | lt_prog_compiler_static_F77='-Bstatic' |
13957 | ;; |
13958 | |
13959 | unicos*) |
13960 | lt_prog_compiler_wl_F77='-Wl,' |
13961 | lt_prog_compiler_can_build_shared_F77=no |
13962 | ;; |
13963 | |
13964 | uts4*) |
13965 | lt_prog_compiler_pic_F77='-pic' |
13966 | lt_prog_compiler_static_F77='-Bstatic' |
13967 | ;; |
13968 | |
13969 | *) |
13970 | lt_prog_compiler_can_build_shared_F77=no |
13971 | ;; |
13972 | esac |
13973 | fi |
13974 | |
64ff59ba |
13975 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 |
13976 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } |
d9898ee8 |
13977 | |
13978 | # |
13979 | # Check to make sure the PIC flag actually works. |
13980 | # |
13981 | if test -n "$lt_prog_compiler_pic_F77"; then |
13982 | |
64ff59ba |
13983 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 |
13984 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } |
d9898ee8 |
13985 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then |
13986 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13987 | else |
13988 | lt_prog_compiler_pic_works_F77=no |
13989 | ac_outfile=conftest.$ac_objext |
13990 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
13991 | lt_compiler_flag="$lt_prog_compiler_pic_F77" |
13992 | # Insert the option either (1) after the last *FLAGS variable, or |
13993 | # (2) before a word containing "conftest.", or (3) at the end. |
13994 | # Note that $ac_compile itself does not contain backslashes and begins |
13995 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
13996 | # The option is referenced via a variable to avoid confusing sed. |
13997 | lt_compile=`echo "$ac_compile" | $SED \ |
13998 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
13999 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
14000 | -e 's:$: $lt_compiler_flag:'` |
64ff59ba |
14001 | (eval echo "\"\$as_me:14001: $lt_compile\"" >&5) |
d9898ee8 |
14002 | (eval "$lt_compile" 2>conftest.err) |
14003 | ac_status=$? |
14004 | cat conftest.err >&5 |
64ff59ba |
14005 | echo "$as_me:14005: \$? = $ac_status" >&5 |
d9898ee8 |
14006 | if (exit $ac_status) && test -s "$ac_outfile"; then |
14007 | # The compiler can only warn and ignore the option if not recognized |
14008 | # So say no if there are warnings other than the usual output. |
14009 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
14010 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
14011 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
14012 | lt_prog_compiler_pic_works_F77=yes |
14013 | fi |
14014 | fi |
14015 | $rm conftest* |
14016 | |
14017 | fi |
64ff59ba |
14018 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 |
14019 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } |
d9898ee8 |
14020 | |
14021 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then |
14022 | case $lt_prog_compiler_pic_F77 in |
14023 | "" | " "*) ;; |
14024 | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; |
14025 | esac |
14026 | else |
14027 | lt_prog_compiler_pic_F77= |
14028 | lt_prog_compiler_can_build_shared_F77=no |
14029 | fi |
14030 | |
14031 | fi |
14032 | case $host_os in |
14033 | # For platforms which do not support PIC, -DPIC is meaningless: |
14034 | *djgpp*) |
14035 | lt_prog_compiler_pic_F77= |
14036 | ;; |
14037 | *) |
14038 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" |
14039 | ;; |
14040 | esac |
14041 | |
14042 | # |
14043 | # Check to make sure the static flag actually works. |
14044 | # |
14045 | wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" |
64ff59ba |
14046 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
14047 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
d9898ee8 |
14048 | if test "${lt_prog_compiler_static_works_F77+set}" = set; then |
14049 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14050 | else |
14051 | lt_prog_compiler_static_works_F77=no |
14052 | save_LDFLAGS="$LDFLAGS" |
14053 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
14054 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
14055 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
14056 | # The linker can only warn and ignore the option if not recognized |
14057 | # So say no if there are warnings |
14058 | if test -s conftest.err; then |
14059 | # Append any errors to the config.log. |
14060 | cat conftest.err 1>&5 |
14061 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
14062 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
14063 | if diff conftest.exp conftest.er2 >/dev/null; then |
14064 | lt_prog_compiler_static_works_F77=yes |
14065 | fi |
14066 | else |
14067 | lt_prog_compiler_static_works_F77=yes |
14068 | fi |
14069 | fi |
14070 | $rm conftest* |
14071 | LDFLAGS="$save_LDFLAGS" |
14072 | |
14073 | fi |
64ff59ba |
14074 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 |
14075 | echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } |
d9898ee8 |
14076 | |
14077 | if test x"$lt_prog_compiler_static_works_F77" = xyes; then |
14078 | : |
14079 | else |
14080 | lt_prog_compiler_static_F77= |
14081 | fi |
14082 | |
14083 | |
64ff59ba |
14084 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
14085 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
d9898ee8 |
14086 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then |
14087 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14088 | else |
14089 | lt_cv_prog_compiler_c_o_F77=no |
14090 | $rm -r conftest 2>/dev/null |
14091 | mkdir conftest |
14092 | cd conftest |
14093 | mkdir out |
14094 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
14095 | |
14096 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
14097 | # Insert the option either (1) after the last *FLAGS variable, or |
14098 | # (2) before a word containing "conftest.", or (3) at the end. |
14099 | # Note that $ac_compile itself does not contain backslashes and begins |
14100 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
14101 | lt_compile=`echo "$ac_compile" | $SED \ |
14102 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
14103 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
14104 | -e 's:$: $lt_compiler_flag:'` |
64ff59ba |
14105 | (eval echo "\"\$as_me:14105: $lt_compile\"" >&5) |
d9898ee8 |
14106 | (eval "$lt_compile" 2>out/conftest.err) |
14107 | ac_status=$? |
14108 | cat out/conftest.err >&5 |
64ff59ba |
14109 | echo "$as_me:14109: \$? = $ac_status" >&5 |
d9898ee8 |
14110 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
14111 | then |
14112 | # The compiler can only warn and ignore the option if not recognized |
14113 | # So say no if there are warnings |
14114 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
14115 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
14116 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
14117 | lt_cv_prog_compiler_c_o_F77=yes |
14118 | fi |
14119 | fi |
14120 | chmod u+w . 2>&5 |
14121 | $rm conftest* |
14122 | # SGI C++ compiler will create directory out/ii_files/ for |
14123 | # template instantiation |
14124 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
14125 | $rm out/* && rmdir out |
14126 | cd .. |
14127 | rmdir conftest |
14128 | $rm conftest* |
14129 | |
14130 | fi |
64ff59ba |
14131 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 |
14132 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } |
d9898ee8 |
14133 | |
14134 | |
14135 | hard_links="nottested" |
14136 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then |
14137 | # do not overwrite the value of need_locks provided by the user |
64ff59ba |
14138 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
14139 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
d9898ee8 |
14140 | hard_links=yes |
14141 | $rm conftest* |
14142 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
14143 | touch conftest.a |
14144 | ln conftest.a conftest.b 2>&5 || hard_links=no |
14145 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
64ff59ba |
14146 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
14147 | echo "${ECHO_T}$hard_links" >&6; } |
d9898ee8 |
14148 | if test "$hard_links" = no; then |
14149 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
14150 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
14151 | need_locks=warn |
14152 | fi |
14153 | else |
14154 | need_locks=no |
14155 | fi |
14156 | |
64ff59ba |
14157 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
14158 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
d9898ee8 |
14159 | |
14160 | runpath_var= |
14161 | allow_undefined_flag_F77= |
14162 | enable_shared_with_static_runtimes_F77=no |
14163 | archive_cmds_F77= |
14164 | archive_expsym_cmds_F77= |
14165 | old_archive_From_new_cmds_F77= |
14166 | old_archive_from_expsyms_cmds_F77= |
14167 | export_dynamic_flag_spec_F77= |
14168 | whole_archive_flag_spec_F77= |
14169 | thread_safe_flag_spec_F77= |
14170 | hardcode_libdir_flag_spec_F77= |
14171 | hardcode_libdir_flag_spec_ld_F77= |
14172 | hardcode_libdir_separator_F77= |
14173 | hardcode_direct_F77=no |
14174 | hardcode_minus_L_F77=no |
14175 | hardcode_shlibpath_var_F77=unsupported |
14176 | link_all_deplibs_F77=unknown |
14177 | hardcode_automatic_F77=no |
14178 | module_cmds_F77= |
14179 | module_expsym_cmds_F77= |
14180 | always_export_symbols_F77=no |
14181 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
14182 | # include_expsyms should be a list of space-separated symbols to be *always* |
14183 | # included in the symbol list |
14184 | include_expsyms_F77= |
14185 | # exclude_expsyms can be an extended regexp of symbols to exclude |
14186 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
14187 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
14188 | # as well as any symbol that contains `d'. |
14189 | exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" |
14190 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
14191 | # platforms (ab)use it in PIC code, but their linkers get confused if |
14192 | # the symbol is explicitly referenced. Since portable code cannot |
14193 | # rely on this symbol name, it's probably fine to never include it in |
14194 | # preloaded symbol tables. |
14195 | extract_expsyms_cmds= |
14196 | # Just being paranoid about ensuring that cc_basename is set. |
14197 | for cc_temp in $compiler""; do |
14198 | case $cc_temp in |
14199 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
14200 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
14201 | \-*) ;; |
14202 | *) break;; |
14203 | esac |
14204 | done |
14205 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
14206 | |
14207 | case $host_os in |
14208 | cygwin* | mingw* | pw32*) |
14209 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
14210 | # When not using gcc, we currently assume that we are using |
14211 | # Microsoft Visual C++. |
14212 | if test "$GCC" != yes; then |
14213 | with_gnu_ld=no |
14214 | fi |
14215 | ;; |
14216 | interix*) |
14217 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
14218 | with_gnu_ld=yes |
14219 | ;; |
14220 | openbsd*) |
14221 | with_gnu_ld=no |
14222 | ;; |
14223 | esac |
14224 | |
14225 | ld_shlibs_F77=yes |
14226 | if test "$with_gnu_ld" = yes; then |
14227 | # If archive_cmds runs LD, not CC, wlarc should be empty |
14228 | wlarc='${wl}' |
14229 | |
14230 | # Set some defaults for GNU ld with shared library support. These |
14231 | # are reset later if shared libraries are not supported. Putting them |
14232 | # here allows them to be overridden if necessary. |
14233 | runpath_var=LD_RUN_PATH |
14234 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' |
14235 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' |
14236 | # ancient GNU ld didn't support --whole-archive et. al. |
14237 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
14238 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
14239 | else |
14240 | whole_archive_flag_spec_F77= |
14241 | fi |
14242 | supports_anon_versioning=no |
14243 | case `$LD -v 2>/dev/null` in |
14244 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
14245 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
14246 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
14247 | *\ 2.11.*) ;; # other 2.11 versions |
14248 | *) supports_anon_versioning=yes ;; |
14249 | esac |
14250 | |
14251 | # See if GNU ld supports shared libraries. |
14252 | case $host_os in |
14253 | aix3* | aix4* | aix5*) |
14254 | # On AIX/PPC, the GNU linker is very broken |
14255 | if test "$host_cpu" != ia64; then |
14256 | ld_shlibs_F77=no |
14257 | cat <<EOF 1>&2 |
14258 | |
14259 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
14260 | *** to be unable to reliably create shared libraries on AIX. |
14261 | *** Therefore, libtool is disabling shared libraries support. If you |
14262 | *** really care for shared libraries, you may want to modify your PATH |
14263 | *** so that a non-GNU linker is found, and then restart. |
14264 | |
14265 | EOF |
14266 | fi |
14267 | ;; |
14268 | |
14269 | amigaos*) |
14270 | 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)' |
14271 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14272 | hardcode_minus_L_F77=yes |
14273 | |
14274 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
14275 | # that the semantics of dynamic libraries on AmigaOS, at least up |
14276 | # to version 4, is to share data among multiple programs linked |
14277 | # with the same dynamic library. Since this doesn't match the |
14278 | # behavior of shared libraries on other platforms, we can't use |
14279 | # them. |
14280 | ld_shlibs_F77=no |
14281 | ;; |
14282 | |
14283 | beos*) |
14284 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
14285 | allow_undefined_flag_F77=unsupported |
14286 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
14287 | # support --undefined. This deserves some investigation. FIXME |
14288 | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
14289 | else |
14290 | ld_shlibs_F77=no |
14291 | fi |
14292 | ;; |
14293 | |
14294 | cygwin* | mingw* | pw32*) |
14295 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, |
14296 | # as there is no search path for DLLs. |
14297 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14298 | allow_undefined_flag_F77=unsupported |
14299 | always_export_symbols_F77=no |
14300 | enable_shared_with_static_runtimes_F77=yes |
14301 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
14302 | |
14303 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
14304 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
14305 | # If the export-symbols file already is a .def file (1st line |
14306 | # is EXPORTS), use it as is; otherwise, prepend... |
14307 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
14308 | cp $export_symbols $output_objdir/$soname.def; |
14309 | else |
14310 | echo EXPORTS > $output_objdir/$soname.def; |
14311 | cat $export_symbols >> $output_objdir/$soname.def; |
14312 | fi~ |
14313 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
14314 | else |
14315 | ld_shlibs_F77=no |
14316 | fi |
14317 | ;; |
14318 | |
14319 | interix3*) |
14320 | hardcode_direct_F77=no |
14321 | hardcode_shlibpath_var_F77=no |
14322 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
14323 | export_dynamic_flag_spec_F77='${wl}-E' |
14324 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
14325 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
14326 | # default) and relocated if they conflict, which is a slow very memory |
14327 | # consuming and fragmenting process. To avoid this, we pick a random, |
14328 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
14329 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
14330 | 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' |
14331 | 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' |
14332 | ;; |
14333 | |
14334 | linux*) |
14335 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
14336 | tmp_addflag= |
14337 | case $cc_basename,$host_cpu in |
14338 | pgcc*) # Portland Group C compiler |
14339 | 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' |
14340 | tmp_addflag=' $pic_flag' |
14341 | ;; |
14342 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
14343 | 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' |
14344 | tmp_addflag=' $pic_flag -Mnomain' ;; |
14345 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
14346 | tmp_addflag=' -i_dynamic' ;; |
14347 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
14348 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
14349 | ifc* | ifort*) # Intel Fortran compiler |
14350 | tmp_addflag=' -nofor_main' ;; |
14351 | esac |
14352 | archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
14353 | |
14354 | if test $supports_anon_versioning = yes; then |
14355 | archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ |
14356 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
14357 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
14358 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
14359 | fi |
14360 | else |
14361 | ld_shlibs_F77=no |
14362 | fi |
14363 | ;; |
14364 | |
14365 | netbsd*) |
14366 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
14367 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
14368 | wlarc= |
14369 | else |
14370 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
14371 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
14372 | fi |
14373 | ;; |
14374 | |
14375 | solaris*) |
14376 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
14377 | ld_shlibs_F77=no |
14378 | cat <<EOF 1>&2 |
14379 | |
14380 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
14381 | *** create shared libraries on Solaris systems. Therefore, libtool |
14382 | *** is disabling shared libraries support. We urge you to upgrade GNU |
14383 | *** binutils to release 2.9.1 or newer. Another option is to modify |
14384 | *** your PATH or compiler configuration so that the native linker is |
14385 | *** used, and then restart. |
14386 | |
14387 | EOF |
14388 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
14389 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
14390 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
14391 | else |
14392 | ld_shlibs_F77=no |
14393 | fi |
14394 | ;; |
14395 | |
14396 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
14397 | case `$LD -v 2>&1` in |
14398 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
14399 | ld_shlibs_F77=no |
14400 | cat <<_LT_EOF 1>&2 |
14401 | |
14402 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
14403 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
14404 | *** is disabling shared libraries support. We urge you to upgrade GNU |
14405 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
14406 | *** your PATH or compiler configuration so that the native linker is |
14407 | *** used, and then restart. |
14408 | |
14409 | _LT_EOF |
14410 | ;; |
14411 | *) |
14412 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
14413 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
14414 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
14415 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
14416 | else |
14417 | ld_shlibs_F77=no |
14418 | fi |
14419 | ;; |
14420 | esac |
14421 | ;; |
14422 | |
14423 | sunos4*) |
14424 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
14425 | wlarc= |
14426 | hardcode_direct_F77=yes |
14427 | hardcode_shlibpath_var_F77=no |
14428 | ;; |
14429 | |
14430 | *) |
14431 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
14432 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
14433 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
14434 | else |
14435 | ld_shlibs_F77=no |
14436 | fi |
14437 | ;; |
14438 | esac |
14439 | |
14440 | if test "$ld_shlibs_F77" = no; then |
14441 | runpath_var= |
14442 | hardcode_libdir_flag_spec_F77= |
14443 | export_dynamic_flag_spec_F77= |
14444 | whole_archive_flag_spec_F77= |
14445 | fi |
14446 | else |
14447 | # PORTME fill in a description of your system's linker (not GNU ld) |
14448 | case $host_os in |
14449 | aix3*) |
14450 | allow_undefined_flag_F77=unsupported |
14451 | always_export_symbols_F77=yes |
14452 | 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' |
14453 | # Note: this linker hardcodes the directories in LIBPATH if there |
14454 | # are no directories specified by -L. |
14455 | hardcode_minus_L_F77=yes |
14456 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
14457 | # Neither direct hardcoding nor static linking is supported with a |
14458 | # broken collect2. |
14459 | hardcode_direct_F77=unsupported |
14460 | fi |
14461 | ;; |
14462 | |
14463 | aix4* | aix5*) |
14464 | if test "$host_cpu" = ia64; then |
14465 | # On IA64, the linker does run time linking by default, so we don't |
14466 | # have to do anything special. |
14467 | aix_use_runtimelinking=no |
14468 | exp_sym_flag='-Bexport' |
14469 | no_entry_flag="" |
14470 | else |
14471 | # If we're using GNU nm, then we don't want the "-C" option. |
14472 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
14473 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
14474 | 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' |
14475 | else |
14476 | 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' |
14477 | fi |
14478 | aix_use_runtimelinking=no |
14479 | |
14480 | # Test if we are trying to use run time linking or normal |
14481 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
14482 | # need to do runtime linking. |
14483 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
14484 | for ld_flag in $LDFLAGS; do |
14485 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
14486 | aix_use_runtimelinking=yes |
14487 | break |
14488 | fi |
14489 | done |
14490 | ;; |
14491 | esac |
14492 | |
14493 | exp_sym_flag='-bexport' |
14494 | no_entry_flag='-bnoentry' |
14495 | fi |
14496 | |
14497 | # When large executables or shared objects are built, AIX ld can |
14498 | # have problems creating the table of contents. If linking a library |
14499 | # or program results in "error TOC overflow" add -mminimal-toc to |
14500 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
14501 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
14502 | |
14503 | archive_cmds_F77='' |
14504 | hardcode_direct_F77=yes |
14505 | hardcode_libdir_separator_F77=':' |
14506 | link_all_deplibs_F77=yes |
14507 | |
14508 | if test "$GCC" = yes; then |
14509 | case $host_os in aix4.[012]|aix4.[012].*) |
14510 | # We only want to do this on AIX 4.2 and lower, the check |
14511 | # below for broken collect2 doesn't work under 4.3+ |
14512 | collect2name=`${CC} -print-prog-name=collect2` |
14513 | if test -f "$collect2name" && \ |
14514 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
14515 | then |
14516 | # We have reworked collect2 |
14517 | hardcode_direct_F77=yes |
14518 | else |
14519 | # We have old collect2 |
14520 | hardcode_direct_F77=unsupported |
14521 | # It fails to find uninstalled libraries when the uninstalled |
14522 | # path is not listed in the libpath. Setting hardcode_minus_L |
14523 | # to unsupported forces relinking |
14524 | hardcode_minus_L_F77=yes |
14525 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14526 | hardcode_libdir_separator_F77= |
14527 | fi |
14528 | ;; |
14529 | esac |
14530 | shared_flag='-shared' |
14531 | if test "$aix_use_runtimelinking" = yes; then |
14532 | shared_flag="$shared_flag "'${wl}-G' |
14533 | fi |
14534 | else |
14535 | # not using gcc |
14536 | if test "$host_cpu" = ia64; then |
14537 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
14538 | # chokes on -Wl,-G. The following line is correct: |
14539 | shared_flag='-G' |
14540 | else |
14541 | if test "$aix_use_runtimelinking" = yes; then |
14542 | shared_flag='${wl}-G' |
14543 | else |
14544 | shared_flag='${wl}-bM:SRE' |
14545 | fi |
14546 | fi |
14547 | fi |
14548 | |
14549 | # It seems that -bexpall does not export symbols beginning with |
14550 | # underscore (_), so it is better to generate a list of symbols to export. |
14551 | always_export_symbols_F77=yes |
14552 | if test "$aix_use_runtimelinking" = yes; then |
14553 | # Warning - without using the other runtime loading flags (-brtl), |
14554 | # -berok will link without error, but may produce a broken library. |
14555 | allow_undefined_flag_F77='-berok' |
14556 | # Determine the default libpath from the value encoded in an empty executable. |
14557 | cat >conftest.$ac_ext <<_ACEOF |
14558 | program main |
14559 | |
14560 | end |
14561 | _ACEOF |
14562 | rm -f conftest.$ac_objext conftest$ac_exeext |
64ff59ba |
14563 | if { (ac_try="$ac_link" |
14564 | case "(($ac_try" in |
14565 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
14566 | *) ac_try_echo=$ac_try;; |
14567 | esac |
14568 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
14569 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
14570 | ac_status=$? |
14571 | grep -v '^ *+' conftest.er1 >conftest.err |
14572 | rm -f conftest.er1 |
14573 | cat conftest.err >&5 |
14574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
14575 | (exit $ac_status); } && { |
14576 | test -z "$ac_f77_werror_flag" || |
14577 | test ! -s conftest.err |
14578 | } && test -s conftest$ac_exeext && |
14579 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
14580 | |
14581 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
14582 | }'` |
14583 | # Check for a 64-bit object if we didn't find anything. |
14584 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
14585 | }'`; fi |
14586 | else |
14587 | echo "$as_me: failed program was:" >&5 |
14588 | sed 's/^/| /' conftest.$ac_ext >&5 |
14589 | |
64ff59ba |
14590 | |
d9898ee8 |
14591 | fi |
64ff59ba |
14592 | |
14593 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
14594 | conftest$ac_exeext conftest.$ac_ext |
14595 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
14596 | |
14597 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
14598 | 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" |
14599 | else |
14600 | if test "$host_cpu" = ia64; then |
14601 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' |
14602 | allow_undefined_flag_F77="-z nodefs" |
14603 | 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" |
14604 | else |
14605 | # Determine the default libpath from the value encoded in an empty executable. |
14606 | cat >conftest.$ac_ext <<_ACEOF |
14607 | program main |
14608 | |
14609 | end |
14610 | _ACEOF |
14611 | rm -f conftest.$ac_objext conftest$ac_exeext |
64ff59ba |
14612 | if { (ac_try="$ac_link" |
14613 | case "(($ac_try" in |
14614 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
14615 | *) ac_try_echo=$ac_try;; |
14616 | esac |
14617 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
14618 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
14619 | ac_status=$? |
14620 | grep -v '^ *+' conftest.er1 >conftest.err |
14621 | rm -f conftest.er1 |
14622 | cat conftest.err >&5 |
14623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
14624 | (exit $ac_status); } && { |
14625 | test -z "$ac_f77_werror_flag" || |
14626 | test ! -s conftest.err |
14627 | } && test -s conftest$ac_exeext && |
14628 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
14629 | |
14630 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
14631 | }'` |
14632 | # Check for a 64-bit object if we didn't find anything. |
14633 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
14634 | }'`; fi |
14635 | else |
14636 | echo "$as_me: failed program was:" >&5 |
14637 | sed 's/^/| /' conftest.$ac_ext >&5 |
14638 | |
64ff59ba |
14639 | |
d9898ee8 |
14640 | fi |
64ff59ba |
14641 | |
14642 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
14643 | conftest$ac_exeext conftest.$ac_ext |
14644 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
14645 | |
14646 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
14647 | # Warning - without using the other run time loading flags, |
14648 | # -berok will link without error, but may produce a broken library. |
14649 | no_undefined_flag_F77=' ${wl}-bernotok' |
14650 | allow_undefined_flag_F77=' ${wl}-berok' |
14651 | # Exported symbols can be pulled into shared objects from archives |
14652 | whole_archive_flag_spec_F77='$convenience' |
14653 | archive_cmds_need_lc_F77=yes |
14654 | # This is similar to how AIX traditionally builds its shared libraries. |
14655 | 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' |
14656 | fi |
14657 | fi |
14658 | ;; |
14659 | |
14660 | amigaos*) |
14661 | 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)' |
14662 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14663 | hardcode_minus_L_F77=yes |
14664 | # see comment about different semantics on the GNU ld section |
14665 | ld_shlibs_F77=no |
14666 | ;; |
14667 | |
14668 | bsdi[45]*) |
14669 | export_dynamic_flag_spec_F77=-rdynamic |
14670 | ;; |
14671 | |
14672 | cygwin* | mingw* | pw32*) |
14673 | # When not using gcc, we currently assume that we are using |
14674 | # Microsoft Visual C++. |
14675 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
14676 | # no search path for DLLs. |
14677 | hardcode_libdir_flag_spec_F77=' ' |
14678 | allow_undefined_flag_F77=unsupported |
14679 | # Tell ltmain to make .lib files, not .a files. |
14680 | libext=lib |
14681 | # Tell ltmain to make .dll files, not .so files. |
14682 | shrext_cmds=".dll" |
14683 | # FIXME: Setting linknames here is a bad hack. |
14684 | archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
14685 | # The linker will automatically build a .lib file if we build a DLL. |
14686 | old_archive_From_new_cmds_F77='true' |
14687 | # FIXME: Should let the user specify the lib program. |
14688 | old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' |
14689 | fix_srcfile_path_F77='`cygpath -w "$srcfile"`' |
14690 | enable_shared_with_static_runtimes_F77=yes |
14691 | ;; |
14692 | |
14693 | darwin* | rhapsody*) |
14694 | case $host_os in |
14695 | rhapsody* | darwin1.[012]) |
14696 | allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' |
14697 | ;; |
14698 | *) # Darwin 1.3 on |
14699 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
14700 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
14701 | else |
14702 | case ${MACOSX_DEPLOYMENT_TARGET} in |
14703 | 10.[012]) |
14704 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
14705 | ;; |
14706 | 10.*) |
14707 | allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' |
14708 | ;; |
14709 | esac |
14710 | fi |
14711 | ;; |
14712 | esac |
14713 | archive_cmds_need_lc_F77=no |
14714 | hardcode_direct_F77=no |
14715 | hardcode_automatic_F77=yes |
14716 | hardcode_shlibpath_var_F77=unsupported |
14717 | whole_archive_flag_spec_F77='' |
14718 | link_all_deplibs_F77=yes |
14719 | if test "$GCC" = yes ; then |
14720 | output_verbose_link_cmd='echo' |
14721 | archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
14722 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
14723 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
14724 | 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}' |
14725 | 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}' |
14726 | else |
14727 | case $cc_basename in |
14728 | xlc*) |
14729 | output_verbose_link_cmd='echo' |
14730 | archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
14731 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
14732 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
14733 | archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
14734 | 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}' |
14735 | ;; |
14736 | *) |
14737 | ld_shlibs_F77=no |
14738 | ;; |
14739 | esac |
14740 | fi |
14741 | ;; |
14742 | |
14743 | dgux*) |
14744 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14745 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14746 | hardcode_shlibpath_var_F77=no |
14747 | ;; |
14748 | |
14749 | freebsd1*) |
14750 | ld_shlibs_F77=no |
14751 | ;; |
14752 | |
14753 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
14754 | # support. Future versions do this automatically, but an explicit c++rt0.o |
14755 | # does not break anything, and helps significantly (at the cost of a little |
14756 | # extra space). |
14757 | freebsd2.2*) |
14758 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
14759 | hardcode_libdir_flag_spec_F77='-R$libdir' |
14760 | hardcode_direct_F77=yes |
14761 | hardcode_shlibpath_var_F77=no |
14762 | ;; |
14763 | |
14764 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
14765 | freebsd2*) |
14766 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
14767 | hardcode_direct_F77=yes |
14768 | hardcode_minus_L_F77=yes |
14769 | hardcode_shlibpath_var_F77=no |
14770 | ;; |
14771 | |
14772 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
14773 | freebsd* | kfreebsd*-gnu | dragonfly*) |
14774 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
14775 | hardcode_libdir_flag_spec_F77='-R$libdir' |
14776 | hardcode_direct_F77=yes |
14777 | hardcode_shlibpath_var_F77=no |
14778 | ;; |
14779 | |
14780 | hpux9*) |
14781 | if test "$GCC" = yes; then |
14782 | 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' |
14783 | else |
14784 | 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' |
14785 | fi |
14786 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
14787 | hardcode_libdir_separator_F77=: |
14788 | hardcode_direct_F77=yes |
14789 | |
14790 | # hardcode_minus_L: Not really in the search PATH, |
14791 | # but as the default location of the library. |
14792 | hardcode_minus_L_F77=yes |
14793 | export_dynamic_flag_spec_F77='${wl}-E' |
14794 | ;; |
14795 | |
14796 | hpux10*) |
14797 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
14798 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
14799 | else |
14800 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
14801 | fi |
14802 | if test "$with_gnu_ld" = no; then |
14803 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
14804 | hardcode_libdir_separator_F77=: |
14805 | |
14806 | hardcode_direct_F77=yes |
14807 | export_dynamic_flag_spec_F77='${wl}-E' |
14808 | |
14809 | # hardcode_minus_L: Not really in the search PATH, |
14810 | # but as the default location of the library. |
14811 | hardcode_minus_L_F77=yes |
14812 | fi |
14813 | ;; |
14814 | |
14815 | hpux11*) |
14816 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
14817 | case $host_cpu in |
14818 | hppa*64*) |
14819 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14820 | ;; |
14821 | ia64*) |
14822 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
14823 | ;; |
14824 | *) |
14825 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
14826 | ;; |
14827 | esac |
14828 | else |
14829 | case $host_cpu in |
14830 | hppa*64*) |
14831 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14832 | ;; |
14833 | ia64*) |
14834 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
14835 | ;; |
14836 | *) |
14837 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
14838 | ;; |
14839 | esac |
14840 | fi |
14841 | if test "$with_gnu_ld" = no; then |
14842 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
14843 | hardcode_libdir_separator_F77=: |
14844 | |
14845 | case $host_cpu in |
14846 | hppa*64*|ia64*) |
14847 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' |
14848 | hardcode_direct_F77=no |
14849 | hardcode_shlibpath_var_F77=no |
14850 | ;; |
14851 | *) |
14852 | hardcode_direct_F77=yes |
14853 | export_dynamic_flag_spec_F77='${wl}-E' |
14854 | |
14855 | # hardcode_minus_L: Not really in the search PATH, |
14856 | # but as the default location of the library. |
14857 | hardcode_minus_L_F77=yes |
14858 | ;; |
14859 | esac |
14860 | fi |
14861 | ;; |
14862 | |
14863 | irix5* | irix6* | nonstopux*) |
14864 | if test "$GCC" = yes; then |
14865 | 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' |
14866 | else |
14867 | 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' |
14868 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' |
14869 | fi |
14870 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
14871 | hardcode_libdir_separator_F77=: |
14872 | link_all_deplibs_F77=yes |
14873 | ;; |
14874 | |
14875 | netbsd*) |
14876 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
14877 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
14878 | else |
14879 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
14880 | fi |
14881 | hardcode_libdir_flag_spec_F77='-R$libdir' |
14882 | hardcode_direct_F77=yes |
14883 | hardcode_shlibpath_var_F77=no |
14884 | ;; |
14885 | |
14886 | newsos6) |
14887 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14888 | hardcode_direct_F77=yes |
14889 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
14890 | hardcode_libdir_separator_F77=: |
14891 | hardcode_shlibpath_var_F77=no |
14892 | ;; |
14893 | |
14894 | openbsd*) |
14895 | hardcode_direct_F77=yes |
14896 | hardcode_shlibpath_var_F77=no |
14897 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
14898 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
14899 | archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
14900 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
14901 | export_dynamic_flag_spec_F77='${wl}-E' |
14902 | else |
14903 | case $host_os in |
14904 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
14905 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
14906 | hardcode_libdir_flag_spec_F77='-R$libdir' |
14907 | ;; |
14908 | *) |
14909 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
14910 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
14911 | ;; |
14912 | esac |
14913 | fi |
14914 | ;; |
14915 | |
14916 | os2*) |
14917 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14918 | hardcode_minus_L_F77=yes |
14919 | allow_undefined_flag_F77=unsupported |
14920 | 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' |
14921 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
14922 | ;; |
14923 | |
14924 | osf3*) |
14925 | if test "$GCC" = yes; then |
14926 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
14927 | 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' |
14928 | else |
14929 | allow_undefined_flag_F77=' -expect_unresolved \*' |
14930 | 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' |
14931 | fi |
14932 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
14933 | hardcode_libdir_separator_F77=: |
14934 | ;; |
14935 | |
14936 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
14937 | if test "$GCC" = yes; then |
14938 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
14939 | 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' |
14940 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
14941 | else |
14942 | allow_undefined_flag_F77=' -expect_unresolved \*' |
14943 | 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' |
14944 | 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~ |
14945 | $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' |
14946 | |
14947 | # Both c and cxx compiler support -rpath directly |
14948 | hardcode_libdir_flag_spec_F77='-rpath $libdir' |
14949 | fi |
14950 | hardcode_libdir_separator_F77=: |
14951 | ;; |
14952 | |
14953 | solaris*) |
14954 | no_undefined_flag_F77=' -z text' |
14955 | if test "$GCC" = yes; then |
14956 | wlarc='${wl}' |
14957 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14958 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
14959 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
14960 | else |
14961 | wlarc='' |
14962 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14963 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
14964 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
14965 | fi |
14966 | hardcode_libdir_flag_spec_F77='-R$libdir' |
14967 | hardcode_shlibpath_var_F77=no |
14968 | case $host_os in |
14969 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
14970 | *) |
14971 | # The compiler driver will combine linker options so we |
14972 | # cannot just pass the convience library names through |
14973 | # without $wl, iff we do not link with $LD. |
14974 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
14975 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
14976 | case $wlarc in |
14977 | '') |
14978 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; |
14979 | *) |
14980 | whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; |
14981 | esac ;; |
14982 | esac |
14983 | link_all_deplibs_F77=yes |
14984 | ;; |
14985 | |
14986 | sunos4*) |
14987 | if test "x$host_vendor" = xsequent; then |
14988 | # Use $CC to link under sequent, because it throws in some extra .o |
14989 | # files that make .init and .fini sections work. |
14990 | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
14991 | else |
14992 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
14993 | fi |
14994 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14995 | hardcode_direct_F77=yes |
14996 | hardcode_minus_L_F77=yes |
14997 | hardcode_shlibpath_var_F77=no |
14998 | ;; |
14999 | |
15000 | sysv4) |
15001 | case $host_vendor in |
15002 | sni) |
15003 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15004 | hardcode_direct_F77=yes # is this really true??? |
15005 | ;; |
15006 | siemens) |
15007 | ## LD is ld it makes a PLAMLIB |
15008 | ## CC just makes a GrossModule. |
15009 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
15010 | reload_cmds_F77='$CC -r -o $output$reload_objs' |
15011 | hardcode_direct_F77=no |
15012 | ;; |
15013 | motorola) |
15014 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15015 | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie |
15016 | ;; |
15017 | esac |
15018 | runpath_var='LD_RUN_PATH' |
15019 | hardcode_shlibpath_var_F77=no |
15020 | ;; |
15021 | |
15022 | sysv4.3*) |
15023 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15024 | hardcode_shlibpath_var_F77=no |
15025 | export_dynamic_flag_spec_F77='-Bexport' |
15026 | ;; |
15027 | |
15028 | sysv4*MP*) |
15029 | if test -d /usr/nec; then |
15030 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15031 | hardcode_shlibpath_var_F77=no |
15032 | runpath_var=LD_RUN_PATH |
15033 | hardcode_runpath_var=yes |
15034 | ld_shlibs_F77=yes |
15035 | fi |
15036 | ;; |
15037 | |
15038 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
15039 | no_undefined_flag_F77='${wl}-z,text' |
15040 | archive_cmds_need_lc_F77=no |
15041 | hardcode_shlibpath_var_F77=no |
15042 | runpath_var='LD_RUN_PATH' |
15043 | |
15044 | if test "$GCC" = yes; then |
15045 | archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
15046 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
15047 | else |
15048 | archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
15049 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
15050 | fi |
15051 | ;; |
15052 | |
15053 | sysv5* | sco3.2v5* | sco5v6*) |
15054 | # Note: We can NOT use -z defs as we might desire, because we do not |
15055 | # link with -lc, and that would cause any symbols used from libc to |
15056 | # always be unresolved, which means just about no library would |
15057 | # ever link correctly. If we're not using GNU ld we use -z text |
15058 | # though, which does catch some bad symbols but isn't as heavy-handed |
15059 | # as -z defs. |
15060 | no_undefined_flag_F77='${wl}-z,text' |
15061 | allow_undefined_flag_F77='${wl}-z,nodefs' |
15062 | archive_cmds_need_lc_F77=no |
15063 | hardcode_shlibpath_var_F77=no |
15064 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
15065 | hardcode_libdir_separator_F77=':' |
15066 | link_all_deplibs_F77=yes |
15067 | export_dynamic_flag_spec_F77='${wl}-Bexport' |
15068 | runpath_var='LD_RUN_PATH' |
15069 | |
15070 | if test "$GCC" = yes; then |
15071 | archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
15072 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
15073 | else |
15074 | archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
15075 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
15076 | fi |
15077 | ;; |
15078 | |
15079 | uts4*) |
15080 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15081 | hardcode_libdir_flag_spec_F77='-L$libdir' |
15082 | hardcode_shlibpath_var_F77=no |
15083 | ;; |
15084 | |
15085 | *) |
15086 | ld_shlibs_F77=no |
15087 | ;; |
15088 | esac |
15089 | fi |
15090 | |
64ff59ba |
15091 | { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 |
15092 | echo "${ECHO_T}$ld_shlibs_F77" >&6; } |
d9898ee8 |
15093 | test "$ld_shlibs_F77" = no && can_build_shared=no |
15094 | |
15095 | # |
15096 | # Do we need to explicitly link libc? |
15097 | # |
15098 | case "x$archive_cmds_need_lc_F77" in |
15099 | x|xyes) |
15100 | # Assume -lc should be added |
15101 | archive_cmds_need_lc_F77=yes |
15102 | |
15103 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
15104 | case $archive_cmds_F77 in |
15105 | *'~'*) |
15106 | # FIXME: we may have to deal with multi-command sequences. |
15107 | ;; |
15108 | '$CC '*) |
15109 | # Test whether the compiler implicitly links with -lc since on some |
15110 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
15111 | # to ld, don't add -lc before -lgcc. |
64ff59ba |
15112 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
15113 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
d9898ee8 |
15114 | $rm conftest* |
15115 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
15116 | |
15117 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
15118 | (eval $ac_compile) 2>&5 |
15119 | ac_status=$? |
15120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15121 | (exit $ac_status); } 2>conftest.err; then |
15122 | soname=conftest |
15123 | lib=conftest |
15124 | libobjs=conftest.$ac_objext |
15125 | deplibs= |
15126 | wl=$lt_prog_compiler_wl_F77 |
15127 | pic_flag=$lt_prog_compiler_pic_F77 |
15128 | compiler_flags=-v |
15129 | linker_flags=-v |
15130 | verstring= |
15131 | output_objdir=. |
15132 | libname=conftest |
15133 | lt_save_allow_undefined_flag=$allow_undefined_flag_F77 |
15134 | allow_undefined_flag_F77= |
15135 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
15136 | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
15137 | ac_status=$? |
15138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15139 | (exit $ac_status); } |
15140 | then |
15141 | archive_cmds_need_lc_F77=no |
15142 | else |
15143 | archive_cmds_need_lc_F77=yes |
15144 | fi |
15145 | allow_undefined_flag_F77=$lt_save_allow_undefined_flag |
15146 | else |
15147 | cat conftest.err 1>&5 |
15148 | fi |
15149 | $rm conftest* |
64ff59ba |
15150 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 |
15151 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } |
d9898ee8 |
15152 | ;; |
15153 | esac |
15154 | fi |
15155 | ;; |
15156 | esac |
15157 | |
64ff59ba |
15158 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
15159 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
d9898ee8 |
15160 | library_names_spec= |
15161 | libname_spec='lib$name' |
15162 | soname_spec= |
15163 | shrext_cmds=".so" |
15164 | postinstall_cmds= |
15165 | postuninstall_cmds= |
15166 | finish_cmds= |
15167 | finish_eval= |
15168 | shlibpath_var= |
15169 | shlibpath_overrides_runpath=unknown |
15170 | version_type=none |
15171 | dynamic_linker="$host_os ld.so" |
15172 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
15173 | if test "$GCC" = yes; then |
15174 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
15175 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
15176 | # if the path contains ";" then we assume it to be the separator |
15177 | # otherwise default to the standard path separator (i.e. ":") - it is |
15178 | # assumed that no part of a normal pathname contains ";" but that should |
15179 | # okay in the real world where ";" in dirpaths is itself problematic. |
15180 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
15181 | else |
15182 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
15183 | fi |
15184 | else |
15185 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
15186 | fi |
15187 | need_lib_prefix=unknown |
15188 | hardcode_into_libs=no |
15189 | |
15190 | # when you set need_version to no, make sure it does not cause -set_version |
15191 | # flags to be left without arguments |
15192 | need_version=unknown |
15193 | |
15194 | case $host_os in |
15195 | aix3*) |
15196 | version_type=linux |
15197 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
15198 | shlibpath_var=LIBPATH |
15199 | |
15200 | # AIX 3 has no versioning support, so we append a major version to the name. |
15201 | soname_spec='${libname}${release}${shared_ext}$major' |
15202 | ;; |
15203 | |
15204 | aix4* | aix5*) |
15205 | version_type=linux |
15206 | need_lib_prefix=no |
15207 | need_version=no |
15208 | hardcode_into_libs=yes |
15209 | if test "$host_cpu" = ia64; then |
15210 | # AIX 5 supports IA64 |
15211 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
15212 | shlibpath_var=LD_LIBRARY_PATH |
15213 | else |
15214 | # With GCC up to 2.95.x, collect2 would create an import file |
15215 | # for dependence libraries. The import file would start with |
15216 | # the line `#! .'. This would cause the generated library to |
15217 | # depend on `.', always an invalid library. This was fixed in |
15218 | # development snapshots of GCC prior to 3.0. |
15219 | case $host_os in |
15220 | aix4 | aix4.[01] | aix4.[01].*) |
15221 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
15222 | echo ' yes ' |
15223 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
15224 | : |
15225 | else |
15226 | can_build_shared=no |
15227 | fi |
15228 | ;; |
15229 | esac |
15230 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
15231 | # soname into executable. Probably we can add versioning support to |
15232 | # collect2, so additional links can be useful in future. |
15233 | if test "$aix_use_runtimelinking" = yes; then |
15234 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
15235 | # instead of lib<name>.a to let people know that these are not |
15236 | # typical AIX shared libraries. |
15237 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15238 | else |
15239 | # We preserve .a as extension for shared libraries through AIX4.2 |
15240 | # and later when we are not doing run time linking. |
15241 | library_names_spec='${libname}${release}.a $libname.a' |
15242 | soname_spec='${libname}${release}${shared_ext}$major' |
15243 | fi |
15244 | shlibpath_var=LIBPATH |
15245 | fi |
15246 | ;; |
15247 | |
15248 | amigaos*) |
15249 | library_names_spec='$libname.ixlibrary $libname.a' |
15250 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
15251 | 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' |
15252 | ;; |
15253 | |
15254 | beos*) |
15255 | library_names_spec='${libname}${shared_ext}' |
15256 | dynamic_linker="$host_os ld.so" |
15257 | shlibpath_var=LIBRARY_PATH |
15258 | ;; |
15259 | |
15260 | bsdi[45]*) |
15261 | version_type=linux |
15262 | need_version=no |
15263 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15264 | soname_spec='${libname}${release}${shared_ext}$major' |
15265 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
15266 | shlibpath_var=LD_LIBRARY_PATH |
15267 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
15268 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
15269 | # the default ld.so.conf also contains /usr/contrib/lib and |
15270 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
15271 | # libtool to hard-code these into programs |
15272 | ;; |
15273 | |
15274 | cygwin* | mingw* | pw32*) |
15275 | version_type=windows |
15276 | shrext_cmds=".dll" |
15277 | need_version=no |
15278 | need_lib_prefix=no |
15279 | |
15280 | case $GCC,$host_os in |
15281 | yes,cygwin* | yes,mingw* | yes,pw32*) |
15282 | library_names_spec='$libname.dll.a' |
15283 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
15284 | postinstall_cmds='base_file=`basename \${file}`~ |
15285 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
15286 | dldir=$destdir/`dirname \$dlpath`~ |
15287 | test -d \$dldir || mkdir -p \$dldir~ |
15288 | $install_prog $dir/$dlname \$dldir/$dlname~ |
15289 | chmod a+x \$dldir/$dlname' |
15290 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
15291 | dlpath=$dir/\$dldll~ |
15292 | $rm \$dlpath' |
15293 | shlibpath_overrides_runpath=yes |
15294 | |
15295 | case $host_os in |
15296 | cygwin*) |
15297 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
15298 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
15299 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
15300 | ;; |
15301 | mingw*) |
15302 | # MinGW DLLs use traditional 'lib' prefix |
15303 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
15304 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
15305 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
15306 | # It is most probably a Windows format PATH printed by |
15307 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
15308 | # path with ; separators, and with drive letters. We can handle the |
15309 | # drive letters (cygwin fileutils understands them), so leave them, |
15310 | # especially as we might pass files found there to a mingw objdump, |
15311 | # which wouldn't understand a cygwinified path. Ahh. |
15312 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
15313 | else |
15314 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
15315 | fi |
15316 | ;; |
15317 | pw32*) |
15318 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
15319 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
15320 | ;; |
15321 | esac |
15322 | ;; |
15323 | |
15324 | *) |
15325 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
15326 | ;; |
15327 | esac |
15328 | dynamic_linker='Win32 ld.exe' |
15329 | # FIXME: first we should search . and the directory the executable is in |
15330 | shlibpath_var=PATH |
15331 | ;; |
15332 | |
15333 | darwin* | rhapsody*) |
15334 | dynamic_linker="$host_os dyld" |
15335 | version_type=darwin |
15336 | need_lib_prefix=no |
15337 | need_version=no |
15338 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
15339 | soname_spec='${libname}${release}${major}$shared_ext' |
15340 | shlibpath_overrides_runpath=yes |
15341 | shlibpath_var=DYLD_LIBRARY_PATH |
15342 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
15343 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
15344 | if test "$GCC" = yes; then |
15345 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
15346 | else |
15347 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
15348 | fi |
15349 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
15350 | ;; |
15351 | |
15352 | dgux*) |
15353 | version_type=linux |
15354 | need_lib_prefix=no |
15355 | need_version=no |
15356 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
15357 | soname_spec='${libname}${release}${shared_ext}$major' |
15358 | shlibpath_var=LD_LIBRARY_PATH |
15359 | ;; |
15360 | |
15361 | freebsd1*) |
15362 | dynamic_linker=no |
15363 | ;; |
15364 | |
15365 | kfreebsd*-gnu) |
15366 | version_type=linux |
15367 | need_lib_prefix=no |
15368 | need_version=no |
15369 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
15370 | soname_spec='${libname}${release}${shared_ext}$major' |
15371 | shlibpath_var=LD_LIBRARY_PATH |
15372 | shlibpath_overrides_runpath=no |
15373 | hardcode_into_libs=yes |
15374 | dynamic_linker='GNU ld.so' |
15375 | ;; |
15376 | |
15377 | freebsd* | dragonfly*) |
15378 | # DragonFly does not have aout. When/if they implement a new |
15379 | # versioning mechanism, adjust this. |
15380 | if test -x /usr/bin/objformat; then |
15381 | objformat=`/usr/bin/objformat` |
15382 | else |
15383 | case $host_os in |
15384 | freebsd[123]*) objformat=aout ;; |
15385 | *) objformat=elf ;; |
15386 | esac |
15387 | fi |
15388 | version_type=freebsd-$objformat |
15389 | case $version_type in |
15390 | freebsd-elf*) |
15391 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
15392 | need_version=no |
15393 | need_lib_prefix=no |
15394 | ;; |
15395 | freebsd-*) |
15396 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
15397 | need_version=yes |
15398 | ;; |
15399 | esac |
15400 | shlibpath_var=LD_LIBRARY_PATH |
15401 | case $host_os in |
15402 | freebsd2*) |
15403 | shlibpath_overrides_runpath=yes |
15404 | ;; |
15405 | freebsd3.[01]* | freebsdelf3.[01]*) |
15406 | shlibpath_overrides_runpath=yes |
15407 | hardcode_into_libs=yes |
15408 | ;; |
15409 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
15410 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
15411 | shlibpath_overrides_runpath=no |
15412 | hardcode_into_libs=yes |
15413 | ;; |
15414 | freebsd*) # from 4.6 on |
15415 | shlibpath_overrides_runpath=yes |
15416 | hardcode_into_libs=yes |
15417 | ;; |
15418 | esac |
15419 | ;; |
15420 | |
15421 | gnu*) |
15422 | version_type=linux |
15423 | need_lib_prefix=no |
15424 | need_version=no |
15425 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
15426 | soname_spec='${libname}${release}${shared_ext}$major' |
15427 | shlibpath_var=LD_LIBRARY_PATH |
15428 | hardcode_into_libs=yes |
15429 | ;; |
15430 | |
15431 | hpux9* | hpux10* | hpux11*) |
15432 | # Give a soname corresponding to the major version so that dld.sl refuses to |
15433 | # link against other versions. |
15434 | version_type=sunos |
15435 | need_lib_prefix=no |
15436 | need_version=no |
15437 | case $host_cpu in |
15438 | ia64*) |
15439 | shrext_cmds='.so' |
15440 | hardcode_into_libs=yes |
15441 | dynamic_linker="$host_os dld.so" |
15442 | shlibpath_var=LD_LIBRARY_PATH |
15443 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
15444 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15445 | soname_spec='${libname}${release}${shared_ext}$major' |
15446 | if test "X$HPUX_IA64_MODE" = X32; then |
15447 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
15448 | else |
15449 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
15450 | fi |
15451 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
15452 | ;; |
15453 | hppa*64*) |
15454 | shrext_cmds='.sl' |
15455 | hardcode_into_libs=yes |
15456 | dynamic_linker="$host_os dld.sl" |
15457 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
15458 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
15459 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15460 | soname_spec='${libname}${release}${shared_ext}$major' |
15461 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
15462 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
15463 | ;; |
15464 | *) |
15465 | shrext_cmds='.sl' |
15466 | dynamic_linker="$host_os dld.sl" |
15467 | shlibpath_var=SHLIB_PATH |
15468 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
15469 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15470 | soname_spec='${libname}${release}${shared_ext}$major' |
15471 | ;; |
15472 | esac |
15473 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
15474 | postinstall_cmds='chmod 555 $lib' |
15475 | ;; |
15476 | |
15477 | interix3*) |
15478 | version_type=linux |
15479 | need_lib_prefix=no |
15480 | need_version=no |
15481 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
15482 | soname_spec='${libname}${release}${shared_ext}$major' |
15483 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
15484 | shlibpath_var=LD_LIBRARY_PATH |
15485 | shlibpath_overrides_runpath=no |
15486 | hardcode_into_libs=yes |
15487 | ;; |
15488 | |
15489 | irix5* | irix6* | nonstopux*) |
15490 | case $host_os in |
15491 | nonstopux*) version_type=nonstopux ;; |
15492 | *) |
15493 | if test "$lt_cv_prog_gnu_ld" = yes; then |
15494 | version_type=linux |
15495 | else |
15496 | version_type=irix |
15497 | fi ;; |
15498 | esac |
15499 | need_lib_prefix=no |
15500 | need_version=no |
15501 | soname_spec='${libname}${release}${shared_ext}$major' |
15502 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
15503 | case $host_os in |
15504 | irix5* | nonstopux*) |
15505 | libsuff= shlibsuff= |
15506 | ;; |
15507 | *) |
15508 | case $LD in # libtool.m4 will add one of these switches to LD |
15509 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
15510 | libsuff= shlibsuff= libmagic=32-bit;; |
15511 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
15512 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
15513 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
15514 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
15515 | *) libsuff= shlibsuff= libmagic=never-match;; |
15516 | esac |
15517 | ;; |
15518 | esac |
15519 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
15520 | shlibpath_overrides_runpath=no |
15521 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
15522 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
15523 | hardcode_into_libs=yes |
15524 | ;; |
15525 | |
15526 | # No shared lib support for Linux oldld, aout, or coff. |
15527 | linux*oldld* | linux*aout* | linux*coff*) |
15528 | dynamic_linker=no |
15529 | ;; |
15530 | |
15531 | # This must be Linux ELF. |
15532 | linux*) |
15533 | version_type=linux |
15534 | need_lib_prefix=no |
15535 | need_version=no |
15536 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15537 | soname_spec='${libname}${release}${shared_ext}$major' |
15538 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
15539 | shlibpath_var=LD_LIBRARY_PATH |
15540 | shlibpath_overrides_runpath=no |
15541 | # This implies no fast_install, which is unacceptable. |
15542 | # Some rework will be needed to allow for fast_install |
15543 | # before this can be enabled. |
15544 | hardcode_into_libs=yes |
15545 | |
15546 | # find out which ABI we are using |
15547 | libsuff= |
15548 | case "$host_cpu" in |
15549 | x86_64*|s390x*|powerpc64*) |
64ff59ba |
15550 | echo '#line 15550 "configure"' > conftest.$ac_ext |
d9898ee8 |
15551 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
15552 | (eval $ac_compile) 2>&5 |
15553 | ac_status=$? |
15554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15555 | (exit $ac_status); }; then |
15556 | case `/usr/bin/file conftest.$ac_objext` in |
15557 | *64-bit*) |
15558 | libsuff=64 |
15559 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" |
15560 | ;; |
15561 | esac |
15562 | fi |
15563 | rm -rf conftest* |
15564 | ;; |
15565 | esac |
15566 | |
15567 | # Append ld.so.conf contents to the search path |
15568 | if test -f /etc/ld.so.conf; then |
64ff59ba |
15569 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/^ *//;s/#.*//;/^[^\/]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
d9898ee8 |
15570 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" |
15571 | fi |
15572 | |
15573 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
15574 | # powerpc, because MkLinux only supported shared libraries with the |
15575 | # GNU dynamic linker. Since this was broken with cross compilers, |
15576 | # most powerpc-linux boxes support dynamic linking these days and |
15577 | # people can always --disable-shared, the test was removed, and we |
15578 | # assume the GNU/Linux dynamic linker is in use. |
15579 | dynamic_linker='GNU/Linux ld.so' |
15580 | ;; |
15581 | |
15582 | knetbsd*-gnu) |
15583 | version_type=linux |
15584 | need_lib_prefix=no |
15585 | need_version=no |
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 | shlibpath_var=LD_LIBRARY_PATH |
15589 | shlibpath_overrides_runpath=no |
15590 | hardcode_into_libs=yes |
15591 | dynamic_linker='GNU ld.so' |
15592 | ;; |
15593 | |
15594 | netbsd*) |
15595 | version_type=sunos |
15596 | need_lib_prefix=no |
15597 | need_version=no |
15598 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
15599 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
15600 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
15601 | dynamic_linker='NetBSD (a.out) ld.so' |
15602 | else |
15603 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
15604 | soname_spec='${libname}${release}${shared_ext}$major' |
15605 | dynamic_linker='NetBSD ld.elf_so' |
15606 | fi |
15607 | shlibpath_var=LD_LIBRARY_PATH |
15608 | shlibpath_overrides_runpath=yes |
15609 | hardcode_into_libs=yes |
15610 | ;; |
15611 | |
15612 | newsos6) |
15613 | version_type=linux |
15614 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15615 | shlibpath_var=LD_LIBRARY_PATH |
15616 | shlibpath_overrides_runpath=yes |
15617 | ;; |
15618 | |
15619 | nto-qnx*) |
15620 | version_type=linux |
15621 | need_lib_prefix=no |
15622 | need_version=no |
15623 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15624 | soname_spec='${libname}${release}${shared_ext}$major' |
15625 | shlibpath_var=LD_LIBRARY_PATH |
15626 | shlibpath_overrides_runpath=yes |
15627 | ;; |
15628 | |
15629 | openbsd*) |
15630 | version_type=sunos |
15631 | sys_lib_dlsearch_path_spec="/usr/lib" |
15632 | need_lib_prefix=no |
15633 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
15634 | case $host_os in |
15635 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
15636 | *) need_version=no ;; |
15637 | esac |
15638 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
15639 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
15640 | shlibpath_var=LD_LIBRARY_PATH |
15641 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
15642 | case $host_os in |
15643 | openbsd2.[89] | openbsd2.[89].*) |
15644 | shlibpath_overrides_runpath=no |
15645 | ;; |
15646 | *) |
15647 | shlibpath_overrides_runpath=yes |
15648 | ;; |
15649 | esac |
15650 | else |
15651 | shlibpath_overrides_runpath=yes |
15652 | fi |
15653 | ;; |
15654 | |
15655 | os2*) |
15656 | libname_spec='$name' |
15657 | shrext_cmds=".dll" |
15658 | need_lib_prefix=no |
15659 | library_names_spec='$libname${shared_ext} $libname.a' |
15660 | dynamic_linker='OS/2 ld.exe' |
15661 | shlibpath_var=LIBPATH |
15662 | ;; |
15663 | |
15664 | osf3* | osf4* | osf5*) |
15665 | version_type=osf |
15666 | need_lib_prefix=no |
15667 | need_version=no |
15668 | soname_spec='${libname}${release}${shared_ext}$major' |
15669 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15670 | shlibpath_var=LD_LIBRARY_PATH |
15671 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
15672 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
15673 | ;; |
15674 | |
15675 | solaris*) |
15676 | version_type=linux |
15677 | need_lib_prefix=no |
15678 | need_version=no |
15679 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15680 | soname_spec='${libname}${release}${shared_ext}$major' |
15681 | shlibpath_var=LD_LIBRARY_PATH |
15682 | shlibpath_overrides_runpath=yes |
15683 | hardcode_into_libs=yes |
15684 | # ldd complains unless libraries are executable |
15685 | postinstall_cmds='chmod +x $lib' |
15686 | ;; |
15687 | |
15688 | sunos4*) |
15689 | version_type=sunos |
15690 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
15691 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
15692 | shlibpath_var=LD_LIBRARY_PATH |
15693 | shlibpath_overrides_runpath=yes |
15694 | if test "$with_gnu_ld" = yes; then |
15695 | need_lib_prefix=no |
15696 | fi |
15697 | need_version=yes |
15698 | ;; |
15699 | |
15700 | sysv4 | sysv4.3*) |
15701 | version_type=linux |
15702 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15703 | soname_spec='${libname}${release}${shared_ext}$major' |
15704 | shlibpath_var=LD_LIBRARY_PATH |
15705 | case $host_vendor in |
15706 | sni) |
15707 | shlibpath_overrides_runpath=no |
15708 | need_lib_prefix=no |
15709 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
15710 | runpath_var=LD_RUN_PATH |
15711 | ;; |
15712 | siemens) |
15713 | need_lib_prefix=no |
15714 | ;; |
15715 | motorola) |
15716 | need_lib_prefix=no |
15717 | need_version=no |
15718 | shlibpath_overrides_runpath=no |
15719 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
15720 | ;; |
15721 | esac |
15722 | ;; |
15723 | |
15724 | sysv4*MP*) |
15725 | if test -d /usr/nec ;then |
15726 | version_type=linux |
15727 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
15728 | soname_spec='$libname${shared_ext}.$major' |
15729 | shlibpath_var=LD_LIBRARY_PATH |
15730 | fi |
15731 | ;; |
15732 | |
15733 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
15734 | version_type=freebsd-elf |
15735 | need_lib_prefix=no |
15736 | need_version=no |
15737 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
15738 | soname_spec='${libname}${release}${shared_ext}$major' |
15739 | shlibpath_var=LD_LIBRARY_PATH |
15740 | hardcode_into_libs=yes |
15741 | if test "$with_gnu_ld" = yes; then |
15742 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
15743 | shlibpath_overrides_runpath=no |
15744 | else |
15745 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
15746 | shlibpath_overrides_runpath=yes |
15747 | case $host_os in |
15748 | sco3.2v5*) |
15749 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
15750 | ;; |
15751 | esac |
15752 | fi |
15753 | sys_lib_dlsearch_path_spec='/usr/lib' |
15754 | ;; |
15755 | |
15756 | uts4*) |
15757 | version_type=linux |
15758 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15759 | soname_spec='${libname}${release}${shared_ext}$major' |
15760 | shlibpath_var=LD_LIBRARY_PATH |
15761 | ;; |
15762 | |
15763 | *) |
15764 | dynamic_linker=no |
15765 | ;; |
15766 | esac |
64ff59ba |
15767 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
15768 | echo "${ECHO_T}$dynamic_linker" >&6; } |
d9898ee8 |
15769 | test "$dynamic_linker" = no && can_build_shared=no |
15770 | |
15771 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
15772 | if test "$GCC" = yes; then |
15773 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
15774 | fi |
15775 | |
64ff59ba |
15776 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
15777 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
d9898ee8 |
15778 | hardcode_action_F77= |
15779 | if test -n "$hardcode_libdir_flag_spec_F77" || \ |
15780 | test -n "$runpath_var_F77" || \ |
15781 | test "X$hardcode_automatic_F77" = "Xyes" ; then |
15782 | |
15783 | # We can hardcode non-existant directories. |
15784 | if test "$hardcode_direct_F77" != no && |
15785 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
15786 | # have to relink, otherwise we might link with an installed library |
15787 | # when we should be linking with a yet-to-be-installed one |
15788 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && |
15789 | test "$hardcode_minus_L_F77" != no; then |
15790 | # Linking always hardcodes the temporary library directory. |
15791 | hardcode_action_F77=relink |
15792 | else |
15793 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
15794 | hardcode_action_F77=immediate |
15795 | fi |
15796 | else |
15797 | # We cannot hardcode anything, or else we can only hardcode existing |
15798 | # directories. |
15799 | hardcode_action_F77=unsupported |
15800 | fi |
64ff59ba |
15801 | { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 |
15802 | echo "${ECHO_T}$hardcode_action_F77" >&6; } |
d9898ee8 |
15803 | |
15804 | if test "$hardcode_action_F77" = relink; then |
15805 | # Fast installation is not supported |
15806 | enable_fast_install=no |
15807 | elif test "$shlibpath_overrides_runpath" = yes || |
15808 | test "$enable_shared" = no; then |
15809 | # Fast installation is not necessary |
15810 | enable_fast_install=needless |
15811 | fi |
15812 | |
15813 | |
15814 | # The else clause should only fire when bootstrapping the |
15815 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
15816 | # with your package, and you will get complaints that there are |
15817 | # no rules to generate ltmain.sh. |
15818 | if test -f "$ltmain"; then |
15819 | # See if we are running on zsh, and set the options which allow our commands through |
15820 | # without removal of \ escapes. |
15821 | if test -n "${ZSH_VERSION+set}" ; then |
15822 | setopt NO_GLOB_SUBST |
15823 | fi |
15824 | # Now quote all the things that may contain metacharacters while being |
15825 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
15826 | # variables and quote the copies for generation of the libtool script. |
15827 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
15828 | SED SHELL STRIP \ |
15829 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
15830 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
15831 | deplibs_check_method reload_flag reload_cmds need_locks \ |
15832 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
15833 | lt_cv_sys_global_symbol_to_c_name_address \ |
15834 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
15835 | old_postinstall_cmds old_postuninstall_cmds \ |
15836 | compiler_F77 \ |
15837 | CC_F77 \ |
15838 | LD_F77 \ |
15839 | lt_prog_compiler_wl_F77 \ |
15840 | lt_prog_compiler_pic_F77 \ |
15841 | lt_prog_compiler_static_F77 \ |
15842 | lt_prog_compiler_no_builtin_flag_F77 \ |
15843 | export_dynamic_flag_spec_F77 \ |
15844 | thread_safe_flag_spec_F77 \ |
15845 | whole_archive_flag_spec_F77 \ |
15846 | enable_shared_with_static_runtimes_F77 \ |
15847 | old_archive_cmds_F77 \ |
15848 | old_archive_from_new_cmds_F77 \ |
15849 | predep_objects_F77 \ |
15850 | postdep_objects_F77 \ |
15851 | predeps_F77 \ |
15852 | postdeps_F77 \ |
15853 | compiler_lib_search_path_F77 \ |
15854 | archive_cmds_F77 \ |
15855 | archive_expsym_cmds_F77 \ |
15856 | postinstall_cmds_F77 \ |
15857 | postuninstall_cmds_F77 \ |
15858 | old_archive_from_expsyms_cmds_F77 \ |
15859 | allow_undefined_flag_F77 \ |
15860 | no_undefined_flag_F77 \ |
15861 | export_symbols_cmds_F77 \ |
15862 | hardcode_libdir_flag_spec_F77 \ |
15863 | hardcode_libdir_flag_spec_ld_F77 \ |
15864 | hardcode_libdir_separator_F77 \ |
15865 | hardcode_automatic_F77 \ |
15866 | module_cmds_F77 \ |
15867 | module_expsym_cmds_F77 \ |
15868 | lt_cv_prog_compiler_c_o_F77 \ |
15869 | exclude_expsyms_F77 \ |
15870 | include_expsyms_F77; do |
15871 | |
15872 | case $var in |
15873 | old_archive_cmds_F77 | \ |
15874 | old_archive_from_new_cmds_F77 | \ |
15875 | archive_cmds_F77 | \ |
15876 | archive_expsym_cmds_F77 | \ |
15877 | module_cmds_F77 | \ |
15878 | module_expsym_cmds_F77 | \ |
15879 | old_archive_from_expsyms_cmds_F77 | \ |
15880 | export_symbols_cmds_F77 | \ |
15881 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
15882 | postinstall_cmds | postuninstall_cmds | \ |
15883 | old_postinstall_cmds | old_postuninstall_cmds | \ |
15884 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
15885 | # Double-quote double-evaled strings. |
15886 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
15887 | ;; |
15888 | *) |
15889 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
15890 | ;; |
15891 | esac |
15892 | done |
15893 | |
15894 | case $lt_echo in |
15895 | *'\$0 --fallback-echo"') |
15896 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
15897 | ;; |
15898 | esac |
15899 | |
15900 | cfgfile="$ofile" |
15901 | |
15902 | cat <<__EOF__ >> "$cfgfile" |
15903 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
15904 | |
15905 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
15906 | |
15907 | # Shell to use when invoking shell scripts. |
15908 | SHELL=$lt_SHELL |
15909 | |
15910 | # Whether or not to build shared libraries. |
15911 | build_libtool_libs=$enable_shared |
15912 | |
15913 | # Whether or not to build static libraries. |
15914 | build_old_libs=$enable_static |
15915 | |
15916 | # Whether or not to add -lc for building shared libraries. |
15917 | build_libtool_need_lc=$archive_cmds_need_lc_F77 |
15918 | |
15919 | # Whether or not to disallow shared libs when runtime libs are static |
15920 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 |
15921 | |
15922 | # Whether or not to optimize for fast installation. |
15923 | fast_install=$enable_fast_install |
15924 | |
15925 | # The host system. |
15926 | host_alias=$host_alias |
15927 | host=$host |
15928 | host_os=$host_os |
15929 | |
15930 | # The build system. |
15931 | build_alias=$build_alias |
15932 | build=$build |
15933 | build_os=$build_os |
15934 | |
15935 | # An echo program that does not interpret backslashes. |
15936 | echo=$lt_echo |
15937 | |
15938 | # The archiver. |
15939 | AR=$lt_AR |
15940 | AR_FLAGS=$lt_AR_FLAGS |
15941 | |
15942 | # A C compiler. |
15943 | LTCC=$lt_LTCC |
15944 | |
15945 | # LTCC compiler flags. |
15946 | LTCFLAGS=$lt_LTCFLAGS |
15947 | |
15948 | # A language-specific compiler. |
15949 | CC=$lt_compiler_F77 |
15950 | |
15951 | # Is the compiler the GNU C compiler? |
15952 | with_gcc=$GCC_F77 |
15953 | |
d9898ee8 |
15954 | # An ERE matcher. |
15955 | EGREP=$lt_EGREP |
15956 | |
15957 | # The linker used to build libraries. |
15958 | LD=$lt_LD_F77 |
15959 | |
15960 | # Whether we need hard or soft links. |
15961 | LN_S=$lt_LN_S |
15962 | |
15963 | # A BSD-compatible nm program. |
15964 | NM=$lt_NM |
15965 | |
15966 | # A symbol stripping program |
15967 | STRIP=$lt_STRIP |
15968 | |
15969 | # Used to examine libraries when file_magic_cmd begins "file" |
15970 | MAGIC_CMD=$MAGIC_CMD |
15971 | |
15972 | # Used on cygwin: DLL creation program. |
15973 | DLLTOOL="$DLLTOOL" |
15974 | |
15975 | # Used on cygwin: object dumper. |
15976 | OBJDUMP="$OBJDUMP" |
15977 | |
15978 | # Used on cygwin: assembler. |
15979 | AS="$AS" |
15980 | |
15981 | # The name of the directory that contains temporary libtool files. |
15982 | objdir=$objdir |
15983 | |
15984 | # How to create reloadable object files. |
15985 | reload_flag=$lt_reload_flag |
15986 | reload_cmds=$lt_reload_cmds |
15987 | |
15988 | # How to pass a linker flag through the compiler. |
15989 | wl=$lt_lt_prog_compiler_wl_F77 |
15990 | |
15991 | # Object file suffix (normally "o"). |
15992 | objext="$ac_objext" |
15993 | |
15994 | # Old archive suffix (normally "a"). |
15995 | libext="$libext" |
15996 | |
15997 | # Shared library suffix (normally ".so"). |
15998 | shrext_cmds='$shrext_cmds' |
15999 | |
16000 | # Executable file suffix (normally ""). |
16001 | exeext="$exeext" |
16002 | |
16003 | # Additional compiler flags for building library objects. |
16004 | pic_flag=$lt_lt_prog_compiler_pic_F77 |
16005 | pic_mode=$pic_mode |
16006 | |
16007 | # What is the maximum length of a command? |
16008 | max_cmd_len=$lt_cv_sys_max_cmd_len |
16009 | |
16010 | # Does compiler simultaneously support -c and -o options? |
16011 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 |
16012 | |
16013 | # Must we lock files when doing compilation? |
16014 | need_locks=$lt_need_locks |
16015 | |
16016 | # Do we need the lib prefix for modules? |
16017 | need_lib_prefix=$need_lib_prefix |
16018 | |
16019 | # Do we need a version for libraries? |
16020 | need_version=$need_version |
16021 | |
16022 | # Whether dlopen is supported. |
16023 | dlopen_support=$enable_dlopen |
16024 | |
16025 | # Whether dlopen of programs is supported. |
16026 | dlopen_self=$enable_dlopen_self |
16027 | |
16028 | # Whether dlopen of statically linked programs is supported. |
16029 | dlopen_self_static=$enable_dlopen_self_static |
16030 | |
16031 | # Compiler flag to prevent dynamic linking. |
16032 | link_static_flag=$lt_lt_prog_compiler_static_F77 |
16033 | |
16034 | # Compiler flag to turn off builtin functions. |
16035 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 |
16036 | |
16037 | # Compiler flag to allow reflexive dlopens. |
16038 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 |
16039 | |
16040 | # Compiler flag to generate shared objects directly from archives. |
16041 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 |
16042 | |
16043 | # Compiler flag to generate thread-safe objects. |
16044 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 |
16045 | |
16046 | # Library versioning type. |
16047 | version_type=$version_type |
16048 | |
16049 | # Format of library name prefix. |
16050 | libname_spec=$lt_libname_spec |
16051 | |
16052 | # List of archive names. First name is the real one, the rest are links. |
16053 | # The last name is the one that the linker finds with -lNAME. |
16054 | library_names_spec=$lt_library_names_spec |
16055 | |
16056 | # The coded name of the library, if different from the real name. |
16057 | soname_spec=$lt_soname_spec |
16058 | |
16059 | # Commands used to build and install an old-style archive. |
16060 | RANLIB=$lt_RANLIB |
16061 | old_archive_cmds=$lt_old_archive_cmds_F77 |
16062 | old_postinstall_cmds=$lt_old_postinstall_cmds |
16063 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
16064 | |
16065 | # Create an old-style archive from a shared archive. |
16066 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 |
16067 | |
16068 | # Create a temporary old-style archive to link instead of a shared archive. |
16069 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 |
16070 | |
16071 | # Commands used to build and install a shared archive. |
16072 | archive_cmds=$lt_archive_cmds_F77 |
16073 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 |
16074 | postinstall_cmds=$lt_postinstall_cmds |
16075 | postuninstall_cmds=$lt_postuninstall_cmds |
16076 | |
16077 | # Commands used to build a loadable module (assumed same as above if empty) |
16078 | module_cmds=$lt_module_cmds_F77 |
16079 | module_expsym_cmds=$lt_module_expsym_cmds_F77 |
16080 | |
16081 | # Commands to strip libraries. |
16082 | old_striplib=$lt_old_striplib |
16083 | striplib=$lt_striplib |
16084 | |
16085 | # Dependencies to place before the objects being linked to create a |
16086 | # shared library. |
64ff59ba |
16087 | predep_objects=$lt_predep_objects_F77 |
d9898ee8 |
16088 | |
16089 | # Dependencies to place after the objects being linked to create a |
16090 | # shared library. |
64ff59ba |
16091 | postdep_objects=$lt_postdep_objects_F77 |
d9898ee8 |
16092 | |
16093 | # Dependencies to place before the objects being linked to create a |
16094 | # shared library. |
16095 | predeps=$lt_predeps_F77 |
16096 | |
16097 | # Dependencies to place after the objects being linked to create a |
16098 | # shared library. |
16099 | postdeps=$lt_postdeps_F77 |
16100 | |
16101 | # The library search path used internally by the compiler when linking |
16102 | # a shared library. |
64ff59ba |
16103 | compiler_lib_search_path=$lt_compiler_lib_search_path_F77 |
d9898ee8 |
16104 | |
16105 | # Method to check whether dependent libraries are shared objects. |
16106 | deplibs_check_method=$lt_deplibs_check_method |
16107 | |
16108 | # Command to use when deplibs_check_method == file_magic. |
16109 | file_magic_cmd=$lt_file_magic_cmd |
16110 | |
16111 | # Flag that allows shared libraries with undefined symbols to be built. |
16112 | allow_undefined_flag=$lt_allow_undefined_flag_F77 |
16113 | |
16114 | # Flag that forces no undefined symbols. |
16115 | no_undefined_flag=$lt_no_undefined_flag_F77 |
16116 | |
16117 | # Commands used to finish a libtool library installation in a directory. |
16118 | finish_cmds=$lt_finish_cmds |
16119 | |
16120 | # Same as above, but a single script fragment to be evaled but not shown. |
16121 | finish_eval=$lt_finish_eval |
16122 | |
16123 | # Take the output of nm and produce a listing of raw symbols and C names. |
16124 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
16125 | |
16126 | # Transform the output of nm in a proper C declaration |
16127 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
16128 | |
16129 | # Transform the output of nm in a C name address pair |
16130 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
16131 | |
16132 | # This is the shared library runtime path variable. |
16133 | runpath_var=$runpath_var |
16134 | |
16135 | # This is the shared library path variable. |
16136 | shlibpath_var=$shlibpath_var |
16137 | |
16138 | # Is shlibpath searched before the hard-coded library search path? |
16139 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
16140 | |
16141 | # How to hardcode a shared library path into an executable. |
16142 | hardcode_action=$hardcode_action_F77 |
16143 | |
16144 | # Whether we should hardcode library paths into libraries. |
16145 | hardcode_into_libs=$hardcode_into_libs |
16146 | |
16147 | # Flag to hardcode \$libdir into a binary during linking. |
16148 | # This must work even if \$libdir does not exist. |
16149 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 |
16150 | |
16151 | # If ld is used when linking, flag to hardcode \$libdir into |
16152 | # a binary during linking. This must work even if \$libdir does |
16153 | # not exist. |
16154 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 |
16155 | |
16156 | # Whether we need a single -rpath flag with a separated argument. |
16157 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 |
16158 | |
16159 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
16160 | # resulting binary. |
16161 | hardcode_direct=$hardcode_direct_F77 |
16162 | |
16163 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
16164 | # resulting binary. |
16165 | hardcode_minus_L=$hardcode_minus_L_F77 |
16166 | |
16167 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
16168 | # the resulting binary. |
16169 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 |
16170 | |
16171 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
16172 | # and all subsequent libraries and executables linked against it. |
16173 | hardcode_automatic=$hardcode_automatic_F77 |
16174 | |
16175 | # Variables whose values should be saved in libtool wrapper scripts and |
16176 | # restored at relink time. |
16177 | variables_saved_for_relink="$variables_saved_for_relink" |
16178 | |
16179 | # Whether libtool must link a program against all its dependency libraries. |
16180 | link_all_deplibs=$link_all_deplibs_F77 |
16181 | |
16182 | # Compile-time system search path for libraries |
64ff59ba |
16183 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
d9898ee8 |
16184 | |
16185 | # Run-time system search path for libraries |
16186 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
16187 | |
16188 | # Fix the shell variable \$srcfile for the compiler. |
16189 | fix_srcfile_path="$fix_srcfile_path_F77" |
16190 | |
16191 | # Set to yes if exported symbols are required. |
16192 | always_export_symbols=$always_export_symbols_F77 |
16193 | |
16194 | # The commands to list exported symbols. |
16195 | export_symbols_cmds=$lt_export_symbols_cmds_F77 |
16196 | |
16197 | # The commands to extract the exported symbol list from a shared archive. |
16198 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
16199 | |
16200 | # Symbols that should not be listed in the preloaded symbols. |
16201 | exclude_expsyms=$lt_exclude_expsyms_F77 |
16202 | |
16203 | # Symbols that must always be exported. |
16204 | include_expsyms=$lt_include_expsyms_F77 |
16205 | |
16206 | # ### END LIBTOOL TAG CONFIG: $tagname |
16207 | |
16208 | __EOF__ |
16209 | |
16210 | |
16211 | else |
16212 | # If there is no Makefile yet, we rely on a make rule to execute |
16213 | # `config.status --recheck' to rerun these tests and create the |
16214 | # libtool script then. |
16215 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
16216 | if test -f "$ltmain_in"; then |
16217 | test -f Makefile && make "$ltmain" |
16218 | fi |
16219 | fi |
16220 | |
16221 | |
16222 | ac_ext=c |
16223 | ac_cpp='$CPP $CPPFLAGS' |
16224 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
16225 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
16226 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
16227 | |
16228 | CC="$lt_save_CC" |
16229 | |
16230 | else |
16231 | tagname="" |
16232 | fi |
16233 | ;; |
16234 | |
16235 | GCJ) |
16236 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
16237 | |
16238 | |
d9898ee8 |
16239 | # Source file extension for Java test sources. |
16240 | ac_ext=java |
16241 | |
16242 | # Object file extension for compiled Java test sources. |
16243 | objext=o |
16244 | objext_GCJ=$objext |
16245 | |
16246 | # Code to be used in simple compile tests |
16247 | lt_simple_compile_test_code="class foo {}\n" |
16248 | |
16249 | # Code to be used in simple link tests |
16250 | lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' |
16251 | |
16252 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
16253 | |
16254 | # If no C compiler was specified, use CC. |
16255 | LTCC=${LTCC-"$CC"} |
16256 | |
16257 | # If no C compiler flags were specified, use CFLAGS. |
16258 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
16259 | |
16260 | # Allow CC to be a program name with arguments. |
16261 | compiler=$CC |
16262 | |
16263 | |
16264 | # save warnings/boilerplate of simple test code |
16265 | ac_outfile=conftest.$ac_objext |
16266 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
16267 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
16268 | _lt_compiler_boilerplate=`cat conftest.err` |
16269 | $rm conftest* |
16270 | |
16271 | ac_outfile=conftest.$ac_objext |
16272 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
16273 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
16274 | _lt_linker_boilerplate=`cat conftest.err` |
16275 | $rm conftest* |
16276 | |
16277 | |
16278 | # Allow CC to be a program name with arguments. |
16279 | lt_save_CC="$CC" |
16280 | CC=${GCJ-"gcj"} |
16281 | compiler=$CC |
16282 | compiler_GCJ=$CC |
16283 | for cc_temp in $compiler""; do |
16284 | case $cc_temp in |
16285 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
16286 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
16287 | \-*) ;; |
16288 | *) break;; |
16289 | esac |
16290 | done |
16291 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
16292 | |
16293 | |
16294 | # GCJ did not exist at the time GCC didn't implicitly link libc in. |
16295 | archive_cmds_need_lc_GCJ=no |
16296 | |
16297 | old_archive_cmds_GCJ=$old_archive_cmds |
16298 | |
16299 | |
16300 | lt_prog_compiler_no_builtin_flag_GCJ= |
16301 | |
16302 | if test "$GCC" = yes; then |
16303 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' |
16304 | |
16305 | |
64ff59ba |
16306 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
16307 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } |
d9898ee8 |
16308 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
16309 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16310 | else |
16311 | lt_cv_prog_compiler_rtti_exceptions=no |
16312 | ac_outfile=conftest.$ac_objext |
16313 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
16314 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
16315 | # Insert the option either (1) after the last *FLAGS variable, or |
16316 | # (2) before a word containing "conftest.", or (3) at the end. |
16317 | # Note that $ac_compile itself does not contain backslashes and begins |
16318 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
16319 | # The option is referenced via a variable to avoid confusing sed. |
16320 | lt_compile=`echo "$ac_compile" | $SED \ |
16321 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
16322 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
16323 | -e 's:$: $lt_compiler_flag:'` |
64ff59ba |
16324 | (eval echo "\"\$as_me:16324: $lt_compile\"" >&5) |
d9898ee8 |
16325 | (eval "$lt_compile" 2>conftest.err) |
16326 | ac_status=$? |
16327 | cat conftest.err >&5 |
64ff59ba |
16328 | echo "$as_me:16328: \$? = $ac_status" >&5 |
d9898ee8 |
16329 | if (exit $ac_status) && test -s "$ac_outfile"; then |
16330 | # The compiler can only warn and ignore the option if not recognized |
16331 | # So say no if there are warnings other than the usual output. |
16332 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
16333 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
16334 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
16335 | lt_cv_prog_compiler_rtti_exceptions=yes |
16336 | fi |
16337 | fi |
16338 | $rm conftest* |
16339 | |
16340 | fi |
64ff59ba |
16341 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
16342 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
d9898ee8 |
16343 | |
16344 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
16345 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" |
16346 | else |
16347 | : |
16348 | fi |
16349 | |
16350 | fi |
16351 | |
16352 | lt_prog_compiler_wl_GCJ= |
16353 | lt_prog_compiler_pic_GCJ= |
16354 | lt_prog_compiler_static_GCJ= |
16355 | |
64ff59ba |
16356 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
16357 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
d9898ee8 |
16358 | |
16359 | if test "$GCC" = yes; then |
16360 | lt_prog_compiler_wl_GCJ='-Wl,' |
16361 | lt_prog_compiler_static_GCJ='-static' |
16362 | |
16363 | case $host_os in |
16364 | aix*) |
16365 | # All AIX code is PIC. |
16366 | if test "$host_cpu" = ia64; then |
16367 | # AIX 5 now supports IA64 processor |
16368 | lt_prog_compiler_static_GCJ='-Bstatic' |
16369 | fi |
16370 | ;; |
16371 | |
16372 | amigaos*) |
16373 | # FIXME: we need at least 68020 code to build shared libraries, but |
16374 | # adding the `-m68020' flag to GCC prevents building anything better, |
16375 | # like `-m68040'. |
16376 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' |
16377 | ;; |
16378 | |
16379 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
16380 | # PIC is the default for these OSes. |
16381 | ;; |
16382 | |
16383 | mingw* | pw32* | os2*) |
16384 | # This hack is so that the source file can tell whether it is being |
16385 | # built for inclusion in a dll (and should export symbols for example). |
16386 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
16387 | ;; |
16388 | |
16389 | darwin* | rhapsody*) |
16390 | # PIC is the default on this platform |
16391 | # Common symbols not allowed in MH_DYLIB files |
16392 | lt_prog_compiler_pic_GCJ='-fno-common' |
16393 | ;; |
16394 | |
16395 | interix3*) |
16396 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
16397 | # Instead, we relocate shared libraries at runtime. |
16398 | ;; |
16399 | |
16400 | msdosdjgpp*) |
16401 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
16402 | # on systems that don't support them. |
16403 | lt_prog_compiler_can_build_shared_GCJ=no |
16404 | enable_shared=no |
16405 | ;; |
16406 | |
16407 | sysv4*MP*) |
16408 | if test -d /usr/nec; then |
16409 | lt_prog_compiler_pic_GCJ=-Kconform_pic |
16410 | fi |
16411 | ;; |
16412 | |
16413 | hpux*) |
16414 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
16415 | # not for PA HP-UX. |
16416 | case $host_cpu in |
16417 | hppa*64*|ia64*) |
16418 | # +Z the default |
16419 | ;; |
16420 | *) |
16421 | lt_prog_compiler_pic_GCJ='-fPIC' |
16422 | ;; |
16423 | esac |
16424 | ;; |
16425 | |
16426 | *) |
16427 | lt_prog_compiler_pic_GCJ='-fPIC' |
16428 | ;; |
16429 | esac |
16430 | else |
16431 | # PORTME Check for flag to pass linker flags through the system compiler. |
16432 | case $host_os in |
16433 | aix*) |
16434 | lt_prog_compiler_wl_GCJ='-Wl,' |
16435 | if test "$host_cpu" = ia64; then |
16436 | # AIX 5 now supports IA64 processor |
16437 | lt_prog_compiler_static_GCJ='-Bstatic' |
16438 | else |
16439 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' |
16440 | fi |
16441 | ;; |
16442 | darwin*) |
16443 | # PIC is the default on this platform |
16444 | # Common symbols not allowed in MH_DYLIB files |
16445 | case $cc_basename in |
16446 | xlc*) |
16447 | lt_prog_compiler_pic_GCJ='-qnocommon' |
16448 | lt_prog_compiler_wl_GCJ='-Wl,' |
16449 | ;; |
16450 | esac |
16451 | ;; |
16452 | |
16453 | mingw* | pw32* | os2*) |
16454 | # This hack is so that the source file can tell whether it is being |
16455 | # built for inclusion in a dll (and should export symbols for example). |
16456 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
16457 | ;; |
16458 | |
16459 | hpux9* | hpux10* | hpux11*) |
16460 | lt_prog_compiler_wl_GCJ='-Wl,' |
16461 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
16462 | # not for PA HP-UX. |
16463 | case $host_cpu in |
16464 | hppa*64*|ia64*) |
16465 | # +Z the default |
16466 | ;; |
16467 | *) |
16468 | lt_prog_compiler_pic_GCJ='+Z' |
16469 | ;; |
16470 | esac |
16471 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
16472 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' |
16473 | ;; |
16474 | |
16475 | irix5* | irix6* | nonstopux*) |
16476 | lt_prog_compiler_wl_GCJ='-Wl,' |
16477 | # PIC (with -KPIC) is the default. |
16478 | lt_prog_compiler_static_GCJ='-non_shared' |
16479 | ;; |
16480 | |
16481 | newsos6) |
16482 | lt_prog_compiler_pic_GCJ='-KPIC' |
16483 | lt_prog_compiler_static_GCJ='-Bstatic' |
16484 | ;; |
16485 | |
16486 | linux*) |
16487 | case $cc_basename in |
16488 | icc* | ecc*) |
16489 | lt_prog_compiler_wl_GCJ='-Wl,' |
16490 | lt_prog_compiler_pic_GCJ='-KPIC' |
16491 | lt_prog_compiler_static_GCJ='-static' |
16492 | ;; |
16493 | pgcc* | pgf77* | pgf90* | pgf95*) |
16494 | # Portland Group compilers (*not* the Pentium gcc compiler, |
16495 | # which looks to be a dead project) |
16496 | lt_prog_compiler_wl_GCJ='-Wl,' |
16497 | lt_prog_compiler_pic_GCJ='-fpic' |
16498 | lt_prog_compiler_static_GCJ='-Bstatic' |
16499 | ;; |
16500 | ccc*) |
16501 | lt_prog_compiler_wl_GCJ='-Wl,' |
16502 | # All Alpha code is PIC. |
16503 | lt_prog_compiler_static_GCJ='-non_shared' |
16504 | ;; |
16505 | esac |
16506 | ;; |
16507 | |
16508 | osf3* | osf4* | osf5*) |
16509 | lt_prog_compiler_wl_GCJ='-Wl,' |
16510 | # All OSF/1 code is PIC. |
16511 | lt_prog_compiler_static_GCJ='-non_shared' |
16512 | ;; |
16513 | |
16514 | solaris*) |
16515 | lt_prog_compiler_pic_GCJ='-KPIC' |
16516 | lt_prog_compiler_static_GCJ='-Bstatic' |
16517 | case $cc_basename in |
16518 | f77* | f90* | f95*) |
16519 | lt_prog_compiler_wl_GCJ='-Qoption ld ';; |
16520 | *) |
16521 | lt_prog_compiler_wl_GCJ='-Wl,';; |
16522 | esac |
16523 | ;; |
16524 | |
16525 | sunos4*) |
16526 | lt_prog_compiler_wl_GCJ='-Qoption ld ' |
16527 | lt_prog_compiler_pic_GCJ='-PIC' |
16528 | lt_prog_compiler_static_GCJ='-Bstatic' |
16529 | ;; |
16530 | |
16531 | sysv4 | sysv4.2uw2* | sysv4.3*) |
16532 | lt_prog_compiler_wl_GCJ='-Wl,' |
16533 | lt_prog_compiler_pic_GCJ='-KPIC' |
16534 | lt_prog_compiler_static_GCJ='-Bstatic' |
16535 | ;; |
16536 | |
16537 | sysv4*MP*) |
16538 | if test -d /usr/nec ;then |
16539 | lt_prog_compiler_pic_GCJ='-Kconform_pic' |
16540 | lt_prog_compiler_static_GCJ='-Bstatic' |
16541 | fi |
16542 | ;; |
16543 | |
16544 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
16545 | lt_prog_compiler_wl_GCJ='-Wl,' |
16546 | lt_prog_compiler_pic_GCJ='-KPIC' |
16547 | lt_prog_compiler_static_GCJ='-Bstatic' |
16548 | ;; |
16549 | |
16550 | unicos*) |
16551 | lt_prog_compiler_wl_GCJ='-Wl,' |
16552 | lt_prog_compiler_can_build_shared_GCJ=no |
16553 | ;; |
16554 | |
16555 | uts4*) |
16556 | lt_prog_compiler_pic_GCJ='-pic' |
16557 | lt_prog_compiler_static_GCJ='-Bstatic' |
16558 | ;; |
16559 | |
16560 | *) |
16561 | lt_prog_compiler_can_build_shared_GCJ=no |
16562 | ;; |
16563 | esac |
16564 | fi |
16565 | |
64ff59ba |
16566 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 |
16567 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } |
d9898ee8 |
16568 | |
16569 | # |
16570 | # Check to make sure the PIC flag actually works. |
16571 | # |
16572 | if test -n "$lt_prog_compiler_pic_GCJ"; then |
16573 | |
64ff59ba |
16574 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 |
16575 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } |
d9898ee8 |
16576 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then |
16577 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16578 | else |
16579 | lt_prog_compiler_pic_works_GCJ=no |
16580 | ac_outfile=conftest.$ac_objext |
16581 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
16582 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ" |
16583 | # Insert the option either (1) after the last *FLAGS variable, or |
16584 | # (2) before a word containing "conftest.", or (3) at the end. |
16585 | # Note that $ac_compile itself does not contain backslashes and begins |
16586 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
16587 | # The option is referenced via a variable to avoid confusing sed. |
16588 | lt_compile=`echo "$ac_compile" | $SED \ |
16589 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
16590 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
16591 | -e 's:$: $lt_compiler_flag:'` |
64ff59ba |
16592 | (eval echo "\"\$as_me:16592: $lt_compile\"" >&5) |
d9898ee8 |
16593 | (eval "$lt_compile" 2>conftest.err) |
16594 | ac_status=$? |
16595 | cat conftest.err >&5 |
64ff59ba |
16596 | echo "$as_me:16596: \$? = $ac_status" >&5 |
d9898ee8 |
16597 | if (exit $ac_status) && test -s "$ac_outfile"; then |
16598 | # The compiler can only warn and ignore the option if not recognized |
16599 | # So say no if there are warnings other than the usual output. |
16600 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
16601 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
16602 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
16603 | lt_prog_compiler_pic_works_GCJ=yes |
16604 | fi |
16605 | fi |
16606 | $rm conftest* |
16607 | |
16608 | fi |
64ff59ba |
16609 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 |
16610 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } |
d9898ee8 |
16611 | |
16612 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then |
16613 | case $lt_prog_compiler_pic_GCJ in |
16614 | "" | " "*) ;; |
16615 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; |
16616 | esac |
16617 | else |
16618 | lt_prog_compiler_pic_GCJ= |
16619 | lt_prog_compiler_can_build_shared_GCJ=no |
16620 | fi |
16621 | |
16622 | fi |
16623 | case $host_os in |
16624 | # For platforms which do not support PIC, -DPIC is meaningless: |
16625 | *djgpp*) |
16626 | lt_prog_compiler_pic_GCJ= |
16627 | ;; |
16628 | *) |
16629 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" |
16630 | ;; |
16631 | esac |
16632 | |
16633 | # |
16634 | # Check to make sure the static flag actually works. |
16635 | # |
16636 | wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" |
64ff59ba |
16637 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
16638 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
d9898ee8 |
16639 | if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then |
16640 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16641 | else |
16642 | lt_prog_compiler_static_works_GCJ=no |
16643 | save_LDFLAGS="$LDFLAGS" |
16644 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
16645 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
16646 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
16647 | # The linker can only warn and ignore the option if not recognized |
16648 | # So say no if there are warnings |
16649 | if test -s conftest.err; then |
16650 | # Append any errors to the config.log. |
16651 | cat conftest.err 1>&5 |
16652 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
16653 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
16654 | if diff conftest.exp conftest.er2 >/dev/null; then |
16655 | lt_prog_compiler_static_works_GCJ=yes |
16656 | fi |
16657 | else |
16658 | lt_prog_compiler_static_works_GCJ=yes |
16659 | fi |
16660 | fi |
16661 | $rm conftest* |
16662 | LDFLAGS="$save_LDFLAGS" |
16663 | |
16664 | fi |
64ff59ba |
16665 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 |
16666 | echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } |
d9898ee8 |
16667 | |
16668 | if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then |
16669 | : |
16670 | else |
16671 | lt_prog_compiler_static_GCJ= |
16672 | fi |
16673 | |
16674 | |
64ff59ba |
16675 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
16676 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
d9898ee8 |
16677 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
16678 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16679 | else |
16680 | lt_cv_prog_compiler_c_o_GCJ=no |
16681 | $rm -r conftest 2>/dev/null |
16682 | mkdir conftest |
16683 | cd conftest |
16684 | mkdir out |
16685 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
16686 | |
16687 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
16688 | # Insert the option either (1) after the last *FLAGS variable, or |
16689 | # (2) before a word containing "conftest.", or (3) at the end. |
16690 | # Note that $ac_compile itself does not contain backslashes and begins |
16691 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
16692 | lt_compile=`echo "$ac_compile" | $SED \ |
16693 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
16694 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
16695 | -e 's:$: $lt_compiler_flag:'` |
64ff59ba |
16696 | (eval echo "\"\$as_me:16696: $lt_compile\"" >&5) |
d9898ee8 |
16697 | (eval "$lt_compile" 2>out/conftest.err) |
16698 | ac_status=$? |
16699 | cat out/conftest.err >&5 |
64ff59ba |
16700 | echo "$as_me:16700: \$? = $ac_status" >&5 |
d9898ee8 |
16701 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
16702 | then |
16703 | # The compiler can only warn and ignore the option if not recognized |
16704 | # So say no if there are warnings |
16705 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
16706 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
16707 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
16708 | lt_cv_prog_compiler_c_o_GCJ=yes |
16709 | fi |
16710 | fi |
16711 | chmod u+w . 2>&5 |
16712 | $rm conftest* |
16713 | # SGI C++ compiler will create directory out/ii_files/ for |
16714 | # template instantiation |
16715 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
16716 | $rm out/* && rmdir out |
16717 | cd .. |
16718 | rmdir conftest |
16719 | $rm conftest* |
16720 | |
16721 | fi |
64ff59ba |
16722 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
16723 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } |
d9898ee8 |
16724 | |
16725 | |
16726 | hard_links="nottested" |
16727 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then |
16728 | # do not overwrite the value of need_locks provided by the user |
64ff59ba |
16729 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
16730 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
d9898ee8 |
16731 | hard_links=yes |
16732 | $rm conftest* |
16733 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
16734 | touch conftest.a |
16735 | ln conftest.a conftest.b 2>&5 || hard_links=no |
16736 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
64ff59ba |
16737 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
16738 | echo "${ECHO_T}$hard_links" >&6; } |
d9898ee8 |
16739 | if test "$hard_links" = no; then |
16740 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
16741 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
16742 | need_locks=warn |
16743 | fi |
16744 | else |
16745 | need_locks=no |
16746 | fi |
16747 | |
64ff59ba |
16748 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
16749 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
d9898ee8 |
16750 | |
16751 | runpath_var= |
16752 | allow_undefined_flag_GCJ= |
16753 | enable_shared_with_static_runtimes_GCJ=no |
16754 | archive_cmds_GCJ= |
16755 | archive_expsym_cmds_GCJ= |
16756 | old_archive_From_new_cmds_GCJ= |
16757 | old_archive_from_expsyms_cmds_GCJ= |
16758 | export_dynamic_flag_spec_GCJ= |
16759 | whole_archive_flag_spec_GCJ= |
16760 | thread_safe_flag_spec_GCJ= |
16761 | hardcode_libdir_flag_spec_GCJ= |
16762 | hardcode_libdir_flag_spec_ld_GCJ= |
16763 | hardcode_libdir_separator_GCJ= |
16764 | hardcode_direct_GCJ=no |
16765 | hardcode_minus_L_GCJ=no |
16766 | hardcode_shlibpath_var_GCJ=unsupported |
16767 | link_all_deplibs_GCJ=unknown |
16768 | hardcode_automatic_GCJ=no |
16769 | module_cmds_GCJ= |
16770 | module_expsym_cmds_GCJ= |
16771 | always_export_symbols_GCJ=no |
16772 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
16773 | # include_expsyms should be a list of space-separated symbols to be *always* |
16774 | # included in the symbol list |
16775 | include_expsyms_GCJ= |
16776 | # exclude_expsyms can be an extended regexp of symbols to exclude |
16777 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
16778 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
16779 | # as well as any symbol that contains `d'. |
16780 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" |
16781 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
16782 | # platforms (ab)use it in PIC code, but their linkers get confused if |
16783 | # the symbol is explicitly referenced. Since portable code cannot |
16784 | # rely on this symbol name, it's probably fine to never include it in |
16785 | # preloaded symbol tables. |
16786 | extract_expsyms_cmds= |
16787 | # Just being paranoid about ensuring that cc_basename is set. |
16788 | for cc_temp in $compiler""; do |
16789 | case $cc_temp in |
16790 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
16791 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
16792 | \-*) ;; |
16793 | *) break;; |
16794 | esac |
16795 | done |
16796 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
16797 | |
16798 | case $host_os in |
16799 | cygwin* | mingw* | pw32*) |
16800 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
16801 | # When not using gcc, we currently assume that we are using |
16802 | # Microsoft Visual C++. |
16803 | if test "$GCC" != yes; then |
16804 | with_gnu_ld=no |
16805 | fi |
16806 | ;; |
16807 | interix*) |
16808 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
16809 | with_gnu_ld=yes |
16810 | ;; |
16811 | openbsd*) |
16812 | with_gnu_ld=no |
16813 | ;; |
16814 | esac |
16815 | |
16816 | ld_shlibs_GCJ=yes |
16817 | if test "$with_gnu_ld" = yes; then |
16818 | # If archive_cmds runs LD, not CC, wlarc should be empty |
16819 | wlarc='${wl}' |
16820 | |
16821 | # Set some defaults for GNU ld with shared library support. These |
16822 | # are reset later if shared libraries are not supported. Putting them |
16823 | # here allows them to be overridden if necessary. |
16824 | runpath_var=LD_RUN_PATH |
16825 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' |
16826 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' |
16827 | # ancient GNU ld didn't support --whole-archive et. al. |
16828 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
16829 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
16830 | else |
16831 | whole_archive_flag_spec_GCJ= |
16832 | fi |
16833 | supports_anon_versioning=no |
16834 | case `$LD -v 2>/dev/null` in |
16835 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
16836 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
16837 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
16838 | *\ 2.11.*) ;; # other 2.11 versions |
16839 | *) supports_anon_versioning=yes ;; |
16840 | esac |
16841 | |
16842 | # See if GNU ld supports shared libraries. |
16843 | case $host_os in |
16844 | aix3* | aix4* | aix5*) |
16845 | # On AIX/PPC, the GNU linker is very broken |
16846 | if test "$host_cpu" != ia64; then |
16847 | ld_shlibs_GCJ=no |
16848 | cat <<EOF 1>&2 |
16849 | |
16850 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
16851 | *** to be unable to reliably create shared libraries on AIX. |
16852 | *** Therefore, libtool is disabling shared libraries support. If you |
16853 | *** really care for shared libraries, you may want to modify your PATH |
16854 | *** so that a non-GNU linker is found, and then restart. |
16855 | |
16856 | EOF |
16857 | fi |
16858 | ;; |
16859 | |
16860 | amigaos*) |
16861 | 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)' |
16862 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16863 | hardcode_minus_L_GCJ=yes |
16864 | |
16865 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
16866 | # that the semantics of dynamic libraries on AmigaOS, at least up |
16867 | # to version 4, is to share data among multiple programs linked |
16868 | # with the same dynamic library. Since this doesn't match the |
16869 | # behavior of shared libraries on other platforms, we can't use |
16870 | # them. |
16871 | ld_shlibs_GCJ=no |
16872 | ;; |
16873 | |
16874 | beos*) |
16875 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
16876 | allow_undefined_flag_GCJ=unsupported |
16877 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
16878 | # support --undefined. This deserves some investigation. FIXME |
16879 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
16880 | else |
16881 | ld_shlibs_GCJ=no |
16882 | fi |
16883 | ;; |
16884 | |
16885 | cygwin* | mingw* | pw32*) |
16886 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, |
16887 | # as there is no search path for DLLs. |
16888 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16889 | allow_undefined_flag_GCJ=unsupported |
16890 | always_export_symbols_GCJ=no |
16891 | enable_shared_with_static_runtimes_GCJ=yes |
16892 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
16893 | |
16894 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
16895 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
16896 | # If the export-symbols file already is a .def file (1st line |
16897 | # is EXPORTS), use it as is; otherwise, prepend... |
16898 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
16899 | cp $export_symbols $output_objdir/$soname.def; |
16900 | else |
16901 | echo EXPORTS > $output_objdir/$soname.def; |
16902 | cat $export_symbols >> $output_objdir/$soname.def; |
16903 | fi~ |
16904 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
16905 | else |
16906 | ld_shlibs_GCJ=no |
16907 | fi |
16908 | ;; |
16909 | |
16910 | interix3*) |
16911 | hardcode_direct_GCJ=no |
16912 | hardcode_shlibpath_var_GCJ=no |
16913 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
16914 | export_dynamic_flag_spec_GCJ='${wl}-E' |
16915 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
16916 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
16917 | # default) and relocated if they conflict, which is a slow very memory |
16918 | # consuming and fragmenting process. To avoid this, we pick a random, |
16919 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
16920 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
16921 | 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' |
16922 | 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' |
16923 | ;; |
16924 | |
16925 | linux*) |
16926 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
16927 | tmp_addflag= |
16928 | case $cc_basename,$host_cpu in |
16929 | pgcc*) # Portland Group C compiler |
16930 | 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' |
16931 | tmp_addflag=' $pic_flag' |
16932 | ;; |
16933 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
16934 | 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' |
16935 | tmp_addflag=' $pic_flag -Mnomain' ;; |
16936 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
16937 | tmp_addflag=' -i_dynamic' ;; |
16938 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
16939 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
16940 | ifc* | ifort*) # Intel Fortran compiler |
16941 | tmp_addflag=' -nofor_main' ;; |
16942 | esac |
16943 | archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
16944 | |
16945 | if test $supports_anon_versioning = yes; then |
16946 | archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ |
16947 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
16948 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
16949 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
16950 | fi |
16951 | else |
16952 | ld_shlibs_GCJ=no |
16953 | fi |
16954 | ;; |
16955 | |
16956 | netbsd*) |
16957 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
16958 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
16959 | wlarc= |
16960 | else |
16961 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
16962 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
16963 | fi |
16964 | ;; |
16965 | |
16966 | solaris*) |
16967 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
16968 | ld_shlibs_GCJ=no |
16969 | cat <<EOF 1>&2 |
16970 | |
16971 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
16972 | *** create shared libraries on Solaris systems. Therefore, libtool |
16973 | *** is disabling shared libraries support. We urge you to upgrade GNU |
16974 | *** binutils to release 2.9.1 or newer. Another option is to modify |
16975 | *** your PATH or compiler configuration so that the native linker is |
16976 | *** used, and then restart. |
16977 | |
16978 | EOF |
16979 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
16980 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
16981 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
16982 | else |
16983 | ld_shlibs_GCJ=no |
16984 | fi |
16985 | ;; |
16986 | |
16987 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
16988 | case `$LD -v 2>&1` in |
16989 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
16990 | ld_shlibs_GCJ=no |
16991 | cat <<_LT_EOF 1>&2 |
16992 | |
16993 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
16994 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
16995 | *** is disabling shared libraries support. We urge you to upgrade GNU |
16996 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
16997 | *** your PATH or compiler configuration so that the native linker is |
16998 | *** used, and then restart. |
16999 | |
17000 | _LT_EOF |
17001 | ;; |
17002 | *) |
17003 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
17004 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
17005 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
17006 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
17007 | else |
17008 | ld_shlibs_GCJ=no |
17009 | fi |
17010 | ;; |
17011 | esac |
17012 | ;; |
17013 | |
17014 | sunos4*) |
17015 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
17016 | wlarc= |
17017 | hardcode_direct_GCJ=yes |
17018 | hardcode_shlibpath_var_GCJ=no |
17019 | ;; |
17020 | |
17021 | *) |
17022 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
17023 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
17024 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
17025 | else |
17026 | ld_shlibs_GCJ=no |
17027 | fi |
17028 | ;; |
17029 | esac |
17030 | |
17031 | if test "$ld_shlibs_GCJ" = no; then |
17032 | runpath_var= |
17033 | hardcode_libdir_flag_spec_GCJ= |
17034 | export_dynamic_flag_spec_GCJ= |
17035 | whole_archive_flag_spec_GCJ= |
17036 | fi |
17037 | else |
17038 | # PORTME fill in a description of your system's linker (not GNU ld) |
17039 | case $host_os in |
17040 | aix3*) |
17041 | allow_undefined_flag_GCJ=unsupported |
17042 | always_export_symbols_GCJ=yes |
17043 | 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' |
17044 | # Note: this linker hardcodes the directories in LIBPATH if there |
17045 | # are no directories specified by -L. |
17046 | hardcode_minus_L_GCJ=yes |
17047 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
17048 | # Neither direct hardcoding nor static linking is supported with a |
17049 | # broken collect2. |
17050 | hardcode_direct_GCJ=unsupported |
17051 | fi |
17052 | ;; |
17053 | |
17054 | aix4* | aix5*) |
17055 | if test "$host_cpu" = ia64; then |
17056 | # On IA64, the linker does run time linking by default, so we don't |
17057 | # have to do anything special. |
17058 | aix_use_runtimelinking=no |
17059 | exp_sym_flag='-Bexport' |
17060 | no_entry_flag="" |
17061 | else |
17062 | # If we're using GNU nm, then we don't want the "-C" option. |
17063 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
17064 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
17065 | 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' |
17066 | else |
17067 | 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' |
17068 | fi |
17069 | aix_use_runtimelinking=no |
17070 | |
17071 | # Test if we are trying to use run time linking or normal |
17072 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
17073 | # need to do runtime linking. |
17074 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
17075 | for ld_flag in $LDFLAGS; do |
17076 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
17077 | aix_use_runtimelinking=yes |
17078 | break |
17079 | fi |
17080 | done |
17081 | ;; |
17082 | esac |
17083 | |
17084 | exp_sym_flag='-bexport' |
17085 | no_entry_flag='-bnoentry' |
17086 | fi |
17087 | |
17088 | # When large executables or shared objects are built, AIX ld can |
17089 | # have problems creating the table of contents. If linking a library |
17090 | # or program results in "error TOC overflow" add -mminimal-toc to |
17091 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
17092 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
17093 | |
17094 | archive_cmds_GCJ='' |
17095 | hardcode_direct_GCJ=yes |
17096 | hardcode_libdir_separator_GCJ=':' |
17097 | link_all_deplibs_GCJ=yes |
17098 | |
17099 | if test "$GCC" = yes; then |
17100 | case $host_os in aix4.[012]|aix4.[012].*) |
17101 | # We only want to do this on AIX 4.2 and lower, the check |
17102 | # below for broken collect2 doesn't work under 4.3+ |
17103 | collect2name=`${CC} -print-prog-name=collect2` |
17104 | if test -f "$collect2name" && \ |
17105 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
17106 | then |
17107 | # We have reworked collect2 |
17108 | hardcode_direct_GCJ=yes |
17109 | else |
17110 | # We have old collect2 |
17111 | hardcode_direct_GCJ=unsupported |
17112 | # It fails to find uninstalled libraries when the uninstalled |
17113 | # path is not listed in the libpath. Setting hardcode_minus_L |
17114 | # to unsupported forces relinking |
17115 | hardcode_minus_L_GCJ=yes |
17116 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17117 | hardcode_libdir_separator_GCJ= |
17118 | fi |
17119 | ;; |
17120 | esac |
17121 | shared_flag='-shared' |
17122 | if test "$aix_use_runtimelinking" = yes; then |
17123 | shared_flag="$shared_flag "'${wl}-G' |
17124 | fi |
17125 | else |
17126 | # not using gcc |
17127 | if test "$host_cpu" = ia64; then |
17128 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
17129 | # chokes on -Wl,-G. The following line is correct: |
17130 | shared_flag='-G' |
17131 | else |
17132 | if test "$aix_use_runtimelinking" = yes; then |
17133 | shared_flag='${wl}-G' |
17134 | else |
17135 | shared_flag='${wl}-bM:SRE' |
17136 | fi |
17137 | fi |
17138 | fi |
17139 | |
17140 | # It seems that -bexpall does not export symbols beginning with |
17141 | # underscore (_), so it is better to generate a list of symbols to export. |
17142 | always_export_symbols_GCJ=yes |
17143 | if test "$aix_use_runtimelinking" = yes; then |
17144 | # Warning - without using the other runtime loading flags (-brtl), |
17145 | # -berok will link without error, but may produce a broken library. |
17146 | allow_undefined_flag_GCJ='-berok' |
17147 | # Determine the default libpath from the value encoded in an empty executable. |
17148 | cat >conftest.$ac_ext <<_ACEOF |
17149 | /* confdefs.h. */ |
17150 | _ACEOF |
17151 | cat confdefs.h >>conftest.$ac_ext |
17152 | cat >>conftest.$ac_ext <<_ACEOF |
17153 | /* end confdefs.h. */ |
17154 | |
17155 | int |
17156 | main () |
17157 | { |
17158 | |
17159 | ; |
17160 | return 0; |
17161 | } |
17162 | _ACEOF |
17163 | rm -f conftest.$ac_objext conftest$ac_exeext |
64ff59ba |
17164 | if { (ac_try="$ac_link" |
17165 | case "(($ac_try" in |
17166 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
17167 | *) ac_try_echo=$ac_try;; |
17168 | esac |
17169 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
17170 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
17171 | ac_status=$? |
17172 | grep -v '^ *+' conftest.er1 >conftest.err |
17173 | rm -f conftest.er1 |
17174 | cat conftest.err >&5 |
17175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
17176 | (exit $ac_status); } && { |
17177 | test -z "$ac_c_werror_flag" || |
17178 | test ! -s conftest.err |
17179 | } && test -s conftest$ac_exeext && |
17180 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
17181 | |
17182 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
17183 | }'` |
17184 | # Check for a 64-bit object if we didn't find anything. |
17185 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
17186 | }'`; fi |
17187 | else |
17188 | echo "$as_me: failed program was:" >&5 |
17189 | sed 's/^/| /' conftest.$ac_ext >&5 |
17190 | |
64ff59ba |
17191 | |
d9898ee8 |
17192 | fi |
64ff59ba |
17193 | |
17194 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
17195 | conftest$ac_exeext conftest.$ac_ext |
17196 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
17197 | |
17198 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
17199 | 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" |
17200 | else |
17201 | if test "$host_cpu" = ia64; then |
17202 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' |
17203 | allow_undefined_flag_GCJ="-z nodefs" |
17204 | 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" |
17205 | else |
17206 | # Determine the default libpath from the value encoded in an empty executable. |
17207 | cat >conftest.$ac_ext <<_ACEOF |
17208 | /* confdefs.h. */ |
17209 | _ACEOF |
17210 | cat confdefs.h >>conftest.$ac_ext |
17211 | cat >>conftest.$ac_ext <<_ACEOF |
17212 | /* end confdefs.h. */ |
17213 | |
17214 | int |
17215 | main () |
17216 | { |
17217 | |
17218 | ; |
17219 | return 0; |
17220 | } |
17221 | _ACEOF |
17222 | rm -f conftest.$ac_objext conftest$ac_exeext |
64ff59ba |
17223 | if { (ac_try="$ac_link" |
17224 | case "(($ac_try" in |
17225 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
17226 | *) ac_try_echo=$ac_try;; |
17227 | esac |
17228 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
17229 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
17230 | ac_status=$? |
17231 | grep -v '^ *+' conftest.er1 >conftest.err |
17232 | rm -f conftest.er1 |
17233 | cat conftest.err >&5 |
17234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
17235 | (exit $ac_status); } && { |
17236 | test -z "$ac_c_werror_flag" || |
17237 | test ! -s conftest.err |
17238 | } && test -s conftest$ac_exeext && |
17239 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
17240 | |
17241 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
17242 | }'` |
17243 | # Check for a 64-bit object if we didn't find anything. |
17244 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
17245 | }'`; fi |
17246 | else |
17247 | echo "$as_me: failed program was:" >&5 |
17248 | sed 's/^/| /' conftest.$ac_ext >&5 |
17249 | |
64ff59ba |
17250 | |
d9898ee8 |
17251 | fi |
64ff59ba |
17252 | |
17253 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
17254 | conftest$ac_exeext conftest.$ac_ext |
17255 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
17256 | |
17257 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
17258 | # Warning - without using the other run time loading flags, |
17259 | # -berok will link without error, but may produce a broken library. |
17260 | no_undefined_flag_GCJ=' ${wl}-bernotok' |
17261 | allow_undefined_flag_GCJ=' ${wl}-berok' |
17262 | # Exported symbols can be pulled into shared objects from archives |
17263 | whole_archive_flag_spec_GCJ='$convenience' |
17264 | archive_cmds_need_lc_GCJ=yes |
17265 | # This is similar to how AIX traditionally builds its shared libraries. |
17266 | 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' |
17267 | fi |
17268 | fi |
17269 | ;; |
17270 | |
17271 | amigaos*) |
17272 | 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)' |
17273 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17274 | hardcode_minus_L_GCJ=yes |
17275 | # see comment about different semantics on the GNU ld section |
17276 | ld_shlibs_GCJ=no |
17277 | ;; |
17278 | |
17279 | bsdi[45]*) |
17280 | export_dynamic_flag_spec_GCJ=-rdynamic |
17281 | ;; |
17282 | |
17283 | cygwin* | mingw* | pw32*) |
17284 | # When not using gcc, we currently assume that we are using |
17285 | # Microsoft Visual C++. |
17286 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
17287 | # no search path for DLLs. |
17288 | hardcode_libdir_flag_spec_GCJ=' ' |
17289 | allow_undefined_flag_GCJ=unsupported |
17290 | # Tell ltmain to make .lib files, not .a files. |
17291 | libext=lib |
17292 | # Tell ltmain to make .dll files, not .so files. |
17293 | shrext_cmds=".dll" |
17294 | # FIXME: Setting linknames here is a bad hack. |
17295 | archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
17296 | # The linker will automatically build a .lib file if we build a DLL. |
17297 | old_archive_From_new_cmds_GCJ='true' |
17298 | # FIXME: Should let the user specify the lib program. |
17299 | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' |
17300 | fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' |
17301 | enable_shared_with_static_runtimes_GCJ=yes |
17302 | ;; |
17303 | |
17304 | darwin* | rhapsody*) |
17305 | case $host_os in |
17306 | rhapsody* | darwin1.[012]) |
17307 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' |
17308 | ;; |
17309 | *) # Darwin 1.3 on |
17310 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
17311 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
17312 | else |
17313 | case ${MACOSX_DEPLOYMENT_TARGET} in |
17314 | 10.[012]) |
17315 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
17316 | ;; |
17317 | 10.*) |
17318 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' |
17319 | ;; |
17320 | esac |
17321 | fi |
17322 | ;; |
17323 | esac |
17324 | archive_cmds_need_lc_GCJ=no |
17325 | hardcode_direct_GCJ=no |
17326 | hardcode_automatic_GCJ=yes |
17327 | hardcode_shlibpath_var_GCJ=unsupported |
17328 | whole_archive_flag_spec_GCJ='' |
17329 | link_all_deplibs_GCJ=yes |
17330 | if test "$GCC" = yes ; then |
17331 | output_verbose_link_cmd='echo' |
17332 | archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
17333 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
17334 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
17335 | 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}' |
17336 | 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}' |
17337 | else |
17338 | case $cc_basename in |
17339 | xlc*) |
17340 | output_verbose_link_cmd='echo' |
17341 | archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
17342 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
17343 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
17344 | archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
17345 | 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}' |
17346 | ;; |
17347 | *) |
17348 | ld_shlibs_GCJ=no |
17349 | ;; |
17350 | esac |
17351 | fi |
17352 | ;; |
17353 | |
17354 | dgux*) |
17355 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17356 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17357 | hardcode_shlibpath_var_GCJ=no |
17358 | ;; |
17359 | |
17360 | freebsd1*) |
17361 | ld_shlibs_GCJ=no |
17362 | ;; |
17363 | |
17364 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
17365 | # support. Future versions do this automatically, but an explicit c++rt0.o |
17366 | # does not break anything, and helps significantly (at the cost of a little |
17367 | # extra space). |
17368 | freebsd2.2*) |
17369 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
17370 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
17371 | hardcode_direct_GCJ=yes |
17372 | hardcode_shlibpath_var_GCJ=no |
17373 | ;; |
17374 | |
17375 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
17376 | freebsd2*) |
17377 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
17378 | hardcode_direct_GCJ=yes |
17379 | hardcode_minus_L_GCJ=yes |
17380 | hardcode_shlibpath_var_GCJ=no |
17381 | ;; |
17382 | |
17383 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
17384 | freebsd* | kfreebsd*-gnu | dragonfly*) |
17385 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
17386 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
17387 | hardcode_direct_GCJ=yes |
17388 | hardcode_shlibpath_var_GCJ=no |
17389 | ;; |
17390 | |
17391 | hpux9*) |
17392 | if test "$GCC" = yes; then |
17393 | 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' |
17394 | else |
17395 | 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' |
17396 | fi |
17397 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
17398 | hardcode_libdir_separator_GCJ=: |
17399 | hardcode_direct_GCJ=yes |
17400 | |
17401 | # hardcode_minus_L: Not really in the search PATH, |
17402 | # but as the default location of the library. |
17403 | hardcode_minus_L_GCJ=yes |
17404 | export_dynamic_flag_spec_GCJ='${wl}-E' |
17405 | ;; |
17406 | |
17407 | hpux10*) |
17408 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
17409 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
17410 | else |
17411 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
17412 | fi |
17413 | if test "$with_gnu_ld" = no; then |
17414 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
17415 | hardcode_libdir_separator_GCJ=: |
17416 | |
17417 | hardcode_direct_GCJ=yes |
17418 | export_dynamic_flag_spec_GCJ='${wl}-E' |
17419 | |
17420 | # hardcode_minus_L: Not really in the search PATH, |
17421 | # but as the default location of the library. |
17422 | hardcode_minus_L_GCJ=yes |
17423 | fi |
17424 | ;; |
17425 | |
17426 | hpux11*) |
17427 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
17428 | case $host_cpu in |
17429 | hppa*64*) |
17430 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17431 | ;; |
17432 | ia64*) |
17433 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
17434 | ;; |
17435 | *) |
17436 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
17437 | ;; |
17438 | esac |
17439 | else |
17440 | case $host_cpu in |
17441 | hppa*64*) |
17442 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17443 | ;; |
17444 | ia64*) |
17445 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
17446 | ;; |
17447 | *) |
17448 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
17449 | ;; |
17450 | esac |
17451 | fi |
17452 | if test "$with_gnu_ld" = no; then |
17453 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
17454 | hardcode_libdir_separator_GCJ=: |
17455 | |
17456 | case $host_cpu in |
17457 | hppa*64*|ia64*) |
17458 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' |
17459 | hardcode_direct_GCJ=no |
17460 | hardcode_shlibpath_var_GCJ=no |
17461 | ;; |
17462 | *) |
17463 | hardcode_direct_GCJ=yes |
17464 | export_dynamic_flag_spec_GCJ='${wl}-E' |
17465 | |
17466 | # hardcode_minus_L: Not really in the search PATH, |
17467 | # but as the default location of the library. |
17468 | hardcode_minus_L_GCJ=yes |
17469 | ;; |
17470 | esac |
17471 | fi |
17472 | ;; |
17473 | |
17474 | irix5* | irix6* | nonstopux*) |
17475 | if test "$GCC" = yes; then |
17476 | 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' |
17477 | else |
17478 | 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' |
17479 | hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' |
17480 | fi |
17481 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
17482 | hardcode_libdir_separator_GCJ=: |
17483 | link_all_deplibs_GCJ=yes |
17484 | ;; |
17485 | |
17486 | netbsd*) |
17487 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
17488 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
17489 | else |
17490 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
17491 | fi |
17492 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
17493 | hardcode_direct_GCJ=yes |
17494 | hardcode_shlibpath_var_GCJ=no |
17495 | ;; |
17496 | |
17497 | newsos6) |
17498 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17499 | hardcode_direct_GCJ=yes |
17500 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
17501 | hardcode_libdir_separator_GCJ=: |
17502 | hardcode_shlibpath_var_GCJ=no |
17503 | ;; |
17504 | |
17505 | openbsd*) |
17506 | hardcode_direct_GCJ=yes |
17507 | hardcode_shlibpath_var_GCJ=no |
17508 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
17509 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
17510 | archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
17511 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
17512 | export_dynamic_flag_spec_GCJ='${wl}-E' |
17513 | else |
17514 | case $host_os in |
17515 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
17516 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
17517 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
17518 | ;; |
17519 | *) |
17520 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
17521 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
17522 | ;; |
17523 | esac |
17524 | fi |
17525 | ;; |
17526 | |
17527 | os2*) |
17528 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17529 | hardcode_minus_L_GCJ=yes |
17530 | allow_undefined_flag_GCJ=unsupported |
17531 | 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' |
17532 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
17533 | ;; |
17534 | |
17535 | osf3*) |
17536 | if test "$GCC" = yes; then |
17537 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
17538 | 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' |
17539 | else |
17540 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
17541 | 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' |
17542 | fi |
17543 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
17544 | hardcode_libdir_separator_GCJ=: |
17545 | ;; |
17546 | |
17547 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
17548 | if test "$GCC" = yes; then |
17549 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
17550 | 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' |
17551 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
17552 | else |
17553 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
17554 | 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' |
17555 | 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~ |
17556 | $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' |
17557 | |
17558 | # Both c and cxx compiler support -rpath directly |
17559 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' |
17560 | fi |
17561 | hardcode_libdir_separator_GCJ=: |
17562 | ;; |
17563 | |
17564 | solaris*) |
17565 | no_undefined_flag_GCJ=' -z text' |
17566 | if test "$GCC" = yes; then |
17567 | wlarc='${wl}' |
17568 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17569 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
17570 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
17571 | else |
17572 | wlarc='' |
17573 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17574 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
17575 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
17576 | fi |
17577 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
17578 | hardcode_shlibpath_var_GCJ=no |
17579 | case $host_os in |
17580 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
17581 | *) |
17582 | # The compiler driver will combine linker options so we |
17583 | # cannot just pass the convience library names through |
17584 | # without $wl, iff we do not link with $LD. |
17585 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
17586 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
17587 | case $wlarc in |
17588 | '') |
17589 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; |
17590 | *) |
17591 | whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; |
17592 | esac ;; |
17593 | esac |
17594 | link_all_deplibs_GCJ=yes |
17595 | ;; |
17596 | |
17597 | sunos4*) |
17598 | if test "x$host_vendor" = xsequent; then |
17599 | # Use $CC to link under sequent, because it throws in some extra .o |
17600 | # files that make .init and .fini sections work. |
17601 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
17602 | else |
17603 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
17604 | fi |
17605 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17606 | hardcode_direct_GCJ=yes |
17607 | hardcode_minus_L_GCJ=yes |
17608 | hardcode_shlibpath_var_GCJ=no |
17609 | ;; |
17610 | |
17611 | sysv4) |
17612 | case $host_vendor in |
17613 | sni) |
17614 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17615 | hardcode_direct_GCJ=yes # is this really true??? |
17616 | ;; |
17617 | siemens) |
17618 | ## LD is ld it makes a PLAMLIB |
17619 | ## CC just makes a GrossModule. |
17620 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
17621 | reload_cmds_GCJ='$CC -r -o $output$reload_objs' |
17622 | hardcode_direct_GCJ=no |
17623 | ;; |
17624 | motorola) |
17625 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17626 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie |
17627 | ;; |
17628 | esac |
17629 | runpath_var='LD_RUN_PATH' |
17630 | hardcode_shlibpath_var_GCJ=no |
17631 | ;; |
17632 | |
17633 | sysv4.3*) |
17634 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17635 | hardcode_shlibpath_var_GCJ=no |
17636 | export_dynamic_flag_spec_GCJ='-Bexport' |
17637 | ;; |
17638 | |
17639 | sysv4*MP*) |
17640 | if test -d /usr/nec; then |
17641 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17642 | hardcode_shlibpath_var_GCJ=no |
17643 | runpath_var=LD_RUN_PATH |
17644 | hardcode_runpath_var=yes |
17645 | ld_shlibs_GCJ=yes |
17646 | fi |
17647 | ;; |
17648 | |
17649 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
17650 | no_undefined_flag_GCJ='${wl}-z,text' |
17651 | archive_cmds_need_lc_GCJ=no |
17652 | hardcode_shlibpath_var_GCJ=no |
17653 | runpath_var='LD_RUN_PATH' |
17654 | |
17655 | if test "$GCC" = yes; then |
17656 | archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
17657 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
17658 | else |
17659 | archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
17660 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
17661 | fi |
17662 | ;; |
17663 | |
17664 | sysv5* | sco3.2v5* | sco5v6*) |
17665 | # Note: We can NOT use -z defs as we might desire, because we do not |
17666 | # link with -lc, and that would cause any symbols used from libc to |
17667 | # always be unresolved, which means just about no library would |
17668 | # ever link correctly. If we're not using GNU ld we use -z text |
17669 | # though, which does catch some bad symbols but isn't as heavy-handed |
17670 | # as -z defs. |
17671 | no_undefined_flag_GCJ='${wl}-z,text' |
17672 | allow_undefined_flag_GCJ='${wl}-z,nodefs' |
17673 | archive_cmds_need_lc_GCJ=no |
17674 | hardcode_shlibpath_var_GCJ=no |
17675 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
17676 | hardcode_libdir_separator_GCJ=':' |
17677 | link_all_deplibs_GCJ=yes |
17678 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' |
17679 | runpath_var='LD_RUN_PATH' |
17680 | |
17681 | if test "$GCC" = yes; then |
17682 | archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17683 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17684 | else |
17685 | archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17686 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17687 | fi |
17688 | ;; |
17689 | |
17690 | uts4*) |
17691 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17692 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17693 | hardcode_shlibpath_var_GCJ=no |
17694 | ;; |
17695 | |
17696 | *) |
17697 | ld_shlibs_GCJ=no |
17698 | ;; |
17699 | esac |
17700 | fi |
17701 | |
64ff59ba |
17702 | { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 |
17703 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } |
d9898ee8 |
17704 | test "$ld_shlibs_GCJ" = no && can_build_shared=no |
17705 | |
17706 | # |
17707 | # Do we need to explicitly link libc? |
17708 | # |
17709 | case "x$archive_cmds_need_lc_GCJ" in |
17710 | x|xyes) |
17711 | # Assume -lc should be added |
17712 | archive_cmds_need_lc_GCJ=yes |
17713 | |
17714 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
17715 | case $archive_cmds_GCJ in |
17716 | *'~'*) |
17717 | # FIXME: we may have to deal with multi-command sequences. |
17718 | ;; |
17719 | '$CC '*) |
17720 | # Test whether the compiler implicitly links with -lc since on some |
17721 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
17722 | # to ld, don't add -lc before -lgcc. |
64ff59ba |
17723 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
17724 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
d9898ee8 |
17725 | $rm conftest* |
17726 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
17727 | |
17728 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
17729 | (eval $ac_compile) 2>&5 |
17730 | ac_status=$? |
17731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17732 | (exit $ac_status); } 2>conftest.err; then |
17733 | soname=conftest |
17734 | lib=conftest |
17735 | libobjs=conftest.$ac_objext |
17736 | deplibs= |
17737 | wl=$lt_prog_compiler_wl_GCJ |
17738 | pic_flag=$lt_prog_compiler_pic_GCJ |
17739 | compiler_flags=-v |
17740 | linker_flags=-v |
17741 | verstring= |
17742 | output_objdir=. |
17743 | libname=conftest |
17744 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ |
17745 | allow_undefined_flag_GCJ= |
17746 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
17747 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
17748 | ac_status=$? |
17749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17750 | (exit $ac_status); } |
17751 | then |
17752 | archive_cmds_need_lc_GCJ=no |
17753 | else |
17754 | archive_cmds_need_lc_GCJ=yes |
17755 | fi |
17756 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag |
17757 | else |
17758 | cat conftest.err 1>&5 |
17759 | fi |
17760 | $rm conftest* |
64ff59ba |
17761 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 |
17762 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } |
d9898ee8 |
17763 | ;; |
17764 | esac |
17765 | fi |
17766 | ;; |
17767 | esac |
17768 | |
64ff59ba |
17769 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
17770 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
d9898ee8 |
17771 | library_names_spec= |
17772 | libname_spec='lib$name' |
17773 | soname_spec= |
17774 | shrext_cmds=".so" |
17775 | postinstall_cmds= |
17776 | postuninstall_cmds= |
17777 | finish_cmds= |
17778 | finish_eval= |
17779 | shlibpath_var= |
17780 | shlibpath_overrides_runpath=unknown |
17781 | version_type=none |
17782 | dynamic_linker="$host_os ld.so" |
17783 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
17784 | if test "$GCC" = yes; then |
17785 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
17786 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
17787 | # if the path contains ";" then we assume it to be the separator |
17788 | # otherwise default to the standard path separator (i.e. ":") - it is |
17789 | # assumed that no part of a normal pathname contains ";" but that should |
17790 | # okay in the real world where ";" in dirpaths is itself problematic. |
17791 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
17792 | else |
17793 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
17794 | fi |
17795 | else |
17796 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
17797 | fi |
17798 | need_lib_prefix=unknown |
17799 | hardcode_into_libs=no |
17800 | |
17801 | # when you set need_version to no, make sure it does not cause -set_version |
17802 | # flags to be left without arguments |
17803 | need_version=unknown |
17804 | |
17805 | case $host_os in |
17806 | aix3*) |
17807 | version_type=linux |
17808 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
17809 | shlibpath_var=LIBPATH |
17810 | |
17811 | # AIX 3 has no versioning support, so we append a major version to the name. |
17812 | soname_spec='${libname}${release}${shared_ext}$major' |
17813 | ;; |
17814 | |
17815 | aix4* | aix5*) |
17816 | version_type=linux |
17817 | need_lib_prefix=no |
17818 | need_version=no |
17819 | hardcode_into_libs=yes |
17820 | if test "$host_cpu" = ia64; then |
17821 | # AIX 5 supports IA64 |
17822 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
17823 | shlibpath_var=LD_LIBRARY_PATH |
17824 | else |
17825 | # With GCC up to 2.95.x, collect2 would create an import file |
17826 | # for dependence libraries. The import file would start with |
17827 | # the line `#! .'. This would cause the generated library to |
17828 | # depend on `.', always an invalid library. This was fixed in |
17829 | # development snapshots of GCC prior to 3.0. |
17830 | case $host_os in |
17831 | aix4 | aix4.[01] | aix4.[01].*) |
17832 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
17833 | echo ' yes ' |
17834 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
17835 | : |
17836 | else |
17837 | can_build_shared=no |
17838 | fi |
17839 | ;; |
17840 | esac |
17841 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
17842 | # soname into executable. Probably we can add versioning support to |
17843 | # collect2, so additional links can be useful in future. |
17844 | if test "$aix_use_runtimelinking" = yes; then |
17845 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
17846 | # instead of lib<name>.a to let people know that these are not |
17847 | # typical AIX shared libraries. |
17848 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17849 | else |
17850 | # We preserve .a as extension for shared libraries through AIX4.2 |
17851 | # and later when we are not doing run time linking. |
17852 | library_names_spec='${libname}${release}.a $libname.a' |
17853 | soname_spec='${libname}${release}${shared_ext}$major' |
17854 | fi |
17855 | shlibpath_var=LIBPATH |
17856 | fi |
17857 | ;; |
17858 | |
17859 | amigaos*) |
17860 | library_names_spec='$libname.ixlibrary $libname.a' |
17861 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
17862 | 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' |
17863 | ;; |
17864 | |
17865 | beos*) |
17866 | library_names_spec='${libname}${shared_ext}' |
17867 | dynamic_linker="$host_os ld.so" |
17868 | shlibpath_var=LIBRARY_PATH |
17869 | ;; |
17870 | |
17871 | bsdi[45]*) |
17872 | version_type=linux |
17873 | need_version=no |
17874 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17875 | soname_spec='${libname}${release}${shared_ext}$major' |
17876 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
17877 | shlibpath_var=LD_LIBRARY_PATH |
17878 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
17879 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
17880 | # the default ld.so.conf also contains /usr/contrib/lib and |
17881 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
17882 | # libtool to hard-code these into programs |
17883 | ;; |
17884 | |
17885 | cygwin* | mingw* | pw32*) |
17886 | version_type=windows |
17887 | shrext_cmds=".dll" |
17888 | need_version=no |
17889 | need_lib_prefix=no |
17890 | |
17891 | case $GCC,$host_os in |
17892 | yes,cygwin* | yes,mingw* | yes,pw32*) |
17893 | library_names_spec='$libname.dll.a' |
17894 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
17895 | postinstall_cmds='base_file=`basename \${file}`~ |
17896 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
17897 | dldir=$destdir/`dirname \$dlpath`~ |
17898 | test -d \$dldir || mkdir -p \$dldir~ |
17899 | $install_prog $dir/$dlname \$dldir/$dlname~ |
17900 | chmod a+x \$dldir/$dlname' |
17901 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
17902 | dlpath=$dir/\$dldll~ |
17903 | $rm \$dlpath' |
17904 | shlibpath_overrides_runpath=yes |
17905 | |
17906 | case $host_os in |
17907 | cygwin*) |
17908 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
17909 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
17910 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
17911 | ;; |
17912 | mingw*) |
17913 | # MinGW DLLs use traditional 'lib' prefix |
17914 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
17915 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
17916 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
17917 | # It is most probably a Windows format PATH printed by |
17918 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
17919 | # path with ; separators, and with drive letters. We can handle the |
17920 | # drive letters (cygwin fileutils understands them), so leave them, |
17921 | # especially as we might pass files found there to a mingw objdump, |
17922 | # which wouldn't understand a cygwinified path. Ahh. |
17923 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
17924 | else |
17925 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
17926 | fi |
17927 | ;; |
17928 | pw32*) |
17929 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
17930 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
17931 | ;; |
17932 | esac |
17933 | ;; |
17934 | |
17935 | *) |
17936 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
17937 | ;; |
17938 | esac |
17939 | dynamic_linker='Win32 ld.exe' |
17940 | # FIXME: first we should search . and the directory the executable is in |
17941 | shlibpath_var=PATH |
17942 | ;; |
17943 | |
17944 | darwin* | rhapsody*) |
17945 | dynamic_linker="$host_os dyld" |
17946 | version_type=darwin |
17947 | need_lib_prefix=no |
17948 | need_version=no |
17949 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
17950 | soname_spec='${libname}${release}${major}$shared_ext' |
17951 | shlibpath_overrides_runpath=yes |
17952 | shlibpath_var=DYLD_LIBRARY_PATH |
17953 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
17954 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
17955 | if test "$GCC" = yes; then |
17956 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
17957 | else |
17958 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
17959 | fi |
17960 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
17961 | ;; |
17962 | |
17963 | dgux*) |
17964 | version_type=linux |
17965 | need_lib_prefix=no |
17966 | need_version=no |
17967 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
17968 | soname_spec='${libname}${release}${shared_ext}$major' |
17969 | shlibpath_var=LD_LIBRARY_PATH |
17970 | ;; |
17971 | |
17972 | freebsd1*) |
17973 | dynamic_linker=no |
17974 | ;; |
17975 | |
17976 | kfreebsd*-gnu) |
17977 | version_type=linux |
17978 | need_lib_prefix=no |
17979 | need_version=no |
17980 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
17981 | soname_spec='${libname}${release}${shared_ext}$major' |
17982 | shlibpath_var=LD_LIBRARY_PATH |
17983 | shlibpath_overrides_runpath=no |
17984 | hardcode_into_libs=yes |
17985 | dynamic_linker='GNU ld.so' |
17986 | ;; |
17987 | |
17988 | freebsd* | dragonfly*) |
17989 | # DragonFly does not have aout. When/if they implement a new |
17990 | # versioning mechanism, adjust this. |
17991 | if test -x /usr/bin/objformat; then |
17992 | objformat=`/usr/bin/objformat` |
17993 | else |
17994 | case $host_os in |
17995 | freebsd[123]*) objformat=aout ;; |
17996 | *) objformat=elf ;; |
17997 | esac |
17998 | fi |
17999 | version_type=freebsd-$objformat |
18000 | case $version_type in |
18001 | freebsd-elf*) |
18002 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
18003 | need_version=no |
18004 | need_lib_prefix=no |
18005 | ;; |
18006 | freebsd-*) |
18007 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
18008 | need_version=yes |
18009 | ;; |
18010 | esac |
18011 | shlibpath_var=LD_LIBRARY_PATH |
18012 | case $host_os in |
18013 | freebsd2*) |
18014 | shlibpath_overrides_runpath=yes |
18015 | ;; |
18016 | freebsd3.[01]* | freebsdelf3.[01]*) |
18017 | shlibpath_overrides_runpath=yes |
18018 | hardcode_into_libs=yes |
18019 | ;; |
18020 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
18021 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
18022 | shlibpath_overrides_runpath=no |
18023 | hardcode_into_libs=yes |
18024 | ;; |
18025 | freebsd*) # from 4.6 on |
18026 | shlibpath_overrides_runpath=yes |
18027 | hardcode_into_libs=yes |
18028 | ;; |
18029 | esac |
18030 | ;; |
18031 | |
18032 | gnu*) |
18033 | version_type=linux |
18034 | need_lib_prefix=no |
18035 | need_version=no |
18036 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
18037 | soname_spec='${libname}${release}${shared_ext}$major' |
18038 | shlibpath_var=LD_LIBRARY_PATH |
18039 | hardcode_into_libs=yes |
18040 | ;; |
18041 | |
18042 | hpux9* | hpux10* | hpux11*) |
18043 | # Give a soname corresponding to the major version so that dld.sl refuses to |
18044 | # link against other versions. |
18045 | version_type=sunos |
18046 | need_lib_prefix=no |
18047 | need_version=no |
18048 | case $host_cpu in |
18049 | ia64*) |
18050 | shrext_cmds='.so' |
18051 | hardcode_into_libs=yes |
18052 | dynamic_linker="$host_os dld.so" |
18053 | shlibpath_var=LD_LIBRARY_PATH |
18054 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
18055 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18056 | soname_spec='${libname}${release}${shared_ext}$major' |
18057 | if test "X$HPUX_IA64_MODE" = X32; then |
18058 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
18059 | else |
18060 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
18061 | fi |
18062 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
18063 | ;; |
18064 | hppa*64*) |
18065 | shrext_cmds='.sl' |
18066 | hardcode_into_libs=yes |
18067 | dynamic_linker="$host_os dld.sl" |
18068 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
18069 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
18070 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18071 | soname_spec='${libname}${release}${shared_ext}$major' |
18072 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
18073 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
18074 | ;; |
18075 | *) |
18076 | shrext_cmds='.sl' |
18077 | dynamic_linker="$host_os dld.sl" |
18078 | shlibpath_var=SHLIB_PATH |
18079 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
18080 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18081 | soname_spec='${libname}${release}${shared_ext}$major' |
18082 | ;; |
18083 | esac |
18084 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
18085 | postinstall_cmds='chmod 555 $lib' |
18086 | ;; |
18087 | |
18088 | interix3*) |
18089 | version_type=linux |
18090 | need_lib_prefix=no |
18091 | need_version=no |
18092 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
18093 | soname_spec='${libname}${release}${shared_ext}$major' |
18094 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
18095 | shlibpath_var=LD_LIBRARY_PATH |
18096 | shlibpath_overrides_runpath=no |
18097 | hardcode_into_libs=yes |
18098 | ;; |
18099 | |
18100 | irix5* | irix6* | nonstopux*) |
18101 | case $host_os in |
18102 | nonstopux*) version_type=nonstopux ;; |
18103 | *) |
18104 | if test "$lt_cv_prog_gnu_ld" = yes; then |
18105 | version_type=linux |
18106 | else |
18107 | version_type=irix |
18108 | fi ;; |
18109 | esac |
18110 | need_lib_prefix=no |
18111 | need_version=no |
18112 | soname_spec='${libname}${release}${shared_ext}$major' |
18113 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
18114 | case $host_os in |
18115 | irix5* | nonstopux*) |
18116 | libsuff= shlibsuff= |
18117 | ;; |
18118 | *) |
18119 | case $LD in # libtool.m4 will add one of these switches to LD |
18120 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
18121 | libsuff= shlibsuff= libmagic=32-bit;; |
18122 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
18123 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
18124 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
18125 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
18126 | *) libsuff= shlibsuff= libmagic=never-match;; |
18127 | esac |
18128 | ;; |
18129 | esac |
18130 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
18131 | shlibpath_overrides_runpath=no |
18132 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
18133 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
18134 | hardcode_into_libs=yes |
18135 | ;; |
18136 | |
18137 | # No shared lib support for Linux oldld, aout, or coff. |
18138 | linux*oldld* | linux*aout* | linux*coff*) |
18139 | dynamic_linker=no |
18140 | ;; |
18141 | |
18142 | # This must be Linux ELF. |
18143 | linux*) |
18144 | version_type=linux |
18145 | need_lib_prefix=no |
18146 | need_version=no |
18147 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18148 | soname_spec='${libname}${release}${shared_ext}$major' |
18149 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
18150 | shlibpath_var=LD_LIBRARY_PATH |
18151 | shlibpath_overrides_runpath=no |
18152 | # This implies no fast_install, which is unacceptable. |
18153 | # Some rework will be needed to allow for fast_install |
18154 | # before this can be enabled. |
18155 | hardcode_into_libs=yes |
18156 | |
18157 | # find out which ABI we are using |
18158 | libsuff= |
18159 | case "$host_cpu" in |
18160 | x86_64*|s390x*|powerpc64*) |
64ff59ba |
18161 | echo '#line 18161 "configure"' > conftest.$ac_ext |
d9898ee8 |
18162 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
18163 | (eval $ac_compile) 2>&5 |
18164 | ac_status=$? |
18165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18166 | (exit $ac_status); }; then |
18167 | case `/usr/bin/file conftest.$ac_objext` in |
18168 | *64-bit*) |
18169 | libsuff=64 |
18170 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" |
18171 | ;; |
18172 | esac |
18173 | fi |
18174 | rm -rf conftest* |
18175 | ;; |
18176 | esac |
18177 | |
18178 | # Append ld.so.conf contents to the search path |
18179 | if test -f /etc/ld.so.conf; then |
64ff59ba |
18180 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/^ *//;s/#.*//;/^[^\/]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
d9898ee8 |
18181 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" |
18182 | fi |
18183 | |
18184 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
18185 | # powerpc, because MkLinux only supported shared libraries with the |
18186 | # GNU dynamic linker. Since this was broken with cross compilers, |
18187 | # most powerpc-linux boxes support dynamic linking these days and |
18188 | # people can always --disable-shared, the test was removed, and we |
18189 | # assume the GNU/Linux dynamic linker is in use. |
18190 | dynamic_linker='GNU/Linux ld.so' |
18191 | ;; |
18192 | |
18193 | knetbsd*-gnu) |
18194 | version_type=linux |
18195 | need_lib_prefix=no |
18196 | need_version=no |
18197 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
18198 | soname_spec='${libname}${release}${shared_ext}$major' |
18199 | shlibpath_var=LD_LIBRARY_PATH |
18200 | shlibpath_overrides_runpath=no |
18201 | hardcode_into_libs=yes |
18202 | dynamic_linker='GNU ld.so' |
18203 | ;; |
18204 | |
18205 | netbsd*) |
18206 | version_type=sunos |
18207 | need_lib_prefix=no |
18208 | need_version=no |
18209 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
18210 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
18211 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
18212 | dynamic_linker='NetBSD (a.out) ld.so' |
18213 | else |
18214 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
18215 | soname_spec='${libname}${release}${shared_ext}$major' |
18216 | dynamic_linker='NetBSD ld.elf_so' |
18217 | fi |
18218 | shlibpath_var=LD_LIBRARY_PATH |
18219 | shlibpath_overrides_runpath=yes |
18220 | hardcode_into_libs=yes |
18221 | ;; |
18222 | |
18223 | newsos6) |
18224 | version_type=linux |
18225 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18226 | shlibpath_var=LD_LIBRARY_PATH |
18227 | shlibpath_overrides_runpath=yes |
18228 | ;; |
18229 | |
18230 | nto-qnx*) |
18231 | version_type=linux |
18232 | need_lib_prefix=no |
18233 | need_version=no |
18234 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18235 | soname_spec='${libname}${release}${shared_ext}$major' |
18236 | shlibpath_var=LD_LIBRARY_PATH |
18237 | shlibpath_overrides_runpath=yes |
18238 | ;; |
18239 | |
18240 | openbsd*) |
18241 | version_type=sunos |
18242 | sys_lib_dlsearch_path_spec="/usr/lib" |
18243 | need_lib_prefix=no |
18244 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
18245 | case $host_os in |
18246 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
18247 | *) need_version=no ;; |
18248 | esac |
18249 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
18250 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
18251 | shlibpath_var=LD_LIBRARY_PATH |
18252 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
18253 | case $host_os in |
18254 | openbsd2.[89] | openbsd2.[89].*) |
18255 | shlibpath_overrides_runpath=no |
18256 | ;; |
18257 | *) |
18258 | shlibpath_overrides_runpath=yes |
18259 | ;; |
18260 | esac |
18261 | else |
18262 | shlibpath_overrides_runpath=yes |
18263 | fi |
18264 | ;; |
18265 | |
18266 | os2*) |
18267 | libname_spec='$name' |
18268 | shrext_cmds=".dll" |
18269 | need_lib_prefix=no |
18270 | library_names_spec='$libname${shared_ext} $libname.a' |
18271 | dynamic_linker='OS/2 ld.exe' |
18272 | shlibpath_var=LIBPATH |
18273 | ;; |
18274 | |
18275 | osf3* | osf4* | osf5*) |
18276 | version_type=osf |
18277 | need_lib_prefix=no |
18278 | need_version=no |
18279 | soname_spec='${libname}${release}${shared_ext}$major' |
18280 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18281 | shlibpath_var=LD_LIBRARY_PATH |
18282 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
18283 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
18284 | ;; |
18285 | |
18286 | solaris*) |
18287 | version_type=linux |
18288 | need_lib_prefix=no |
18289 | need_version=no |
18290 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18291 | soname_spec='${libname}${release}${shared_ext}$major' |
18292 | shlibpath_var=LD_LIBRARY_PATH |
18293 | shlibpath_overrides_runpath=yes |
18294 | hardcode_into_libs=yes |
18295 | # ldd complains unless libraries are executable |
18296 | postinstall_cmds='chmod +x $lib' |
18297 | ;; |
18298 | |
18299 | sunos4*) |
18300 | version_type=sunos |
18301 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
18302 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
18303 | shlibpath_var=LD_LIBRARY_PATH |
18304 | shlibpath_overrides_runpath=yes |
18305 | if test "$with_gnu_ld" = yes; then |
18306 | need_lib_prefix=no |
18307 | fi |
18308 | need_version=yes |
18309 | ;; |
18310 | |
18311 | sysv4 | sysv4.3*) |
18312 | version_type=linux |
18313 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18314 | soname_spec='${libname}${release}${shared_ext}$major' |
18315 | shlibpath_var=LD_LIBRARY_PATH |
18316 | case $host_vendor in |
18317 | sni) |
18318 | shlibpath_overrides_runpath=no |
18319 | need_lib_prefix=no |
18320 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
18321 | runpath_var=LD_RUN_PATH |
18322 | ;; |
18323 | siemens) |
18324 | need_lib_prefix=no |
18325 | ;; |
18326 | motorola) |
18327 | need_lib_prefix=no |
18328 | need_version=no |
18329 | shlibpath_overrides_runpath=no |
18330 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
18331 | ;; |
18332 | esac |
18333 | ;; |
18334 | |
18335 | sysv4*MP*) |
18336 | if test -d /usr/nec ;then |
18337 | version_type=linux |
18338 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
18339 | soname_spec='$libname${shared_ext}.$major' |
18340 | shlibpath_var=LD_LIBRARY_PATH |
18341 | fi |
18342 | ;; |
18343 | |
18344 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
18345 | version_type=freebsd-elf |
18346 | need_lib_prefix=no |
18347 | need_version=no |
18348 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
18349 | soname_spec='${libname}${release}${shared_ext}$major' |
18350 | shlibpath_var=LD_LIBRARY_PATH |
18351 | hardcode_into_libs=yes |
18352 | if test "$with_gnu_ld" = yes; then |
18353 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
18354 | shlibpath_overrides_runpath=no |
18355 | else |
18356 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
18357 | shlibpath_overrides_runpath=yes |
18358 | case $host_os in |
18359 | sco3.2v5*) |
18360 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
18361 | ;; |
18362 | esac |
18363 | fi |
18364 | sys_lib_dlsearch_path_spec='/usr/lib' |
18365 | ;; |
18366 | |
18367 | uts4*) |
18368 | version_type=linux |
18369 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18370 | soname_spec='${libname}${release}${shared_ext}$major' |
18371 | shlibpath_var=LD_LIBRARY_PATH |
18372 | ;; |
18373 | |
18374 | *) |
18375 | dynamic_linker=no |
18376 | ;; |
18377 | esac |
64ff59ba |
18378 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
18379 | echo "${ECHO_T}$dynamic_linker" >&6; } |
d9898ee8 |
18380 | test "$dynamic_linker" = no && can_build_shared=no |
18381 | |
18382 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
18383 | if test "$GCC" = yes; then |
18384 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
18385 | fi |
18386 | |
64ff59ba |
18387 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
18388 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
d9898ee8 |
18389 | hardcode_action_GCJ= |
18390 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ |
18391 | test -n "$runpath_var_GCJ" || \ |
18392 | test "X$hardcode_automatic_GCJ" = "Xyes" ; then |
18393 | |
18394 | # We can hardcode non-existant directories. |
18395 | if test "$hardcode_direct_GCJ" != no && |
18396 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
18397 | # have to relink, otherwise we might link with an installed library |
18398 | # when we should be linking with a yet-to-be-installed one |
18399 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && |
18400 | test "$hardcode_minus_L_GCJ" != no; then |
18401 | # Linking always hardcodes the temporary library directory. |
18402 | hardcode_action_GCJ=relink |
18403 | else |
18404 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
18405 | hardcode_action_GCJ=immediate |
18406 | fi |
18407 | else |
18408 | # We cannot hardcode anything, or else we can only hardcode existing |
18409 | # directories. |
18410 | hardcode_action_GCJ=unsupported |
18411 | fi |
64ff59ba |
18412 | { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 |
18413 | echo "${ECHO_T}$hardcode_action_GCJ" >&6; } |
d9898ee8 |
18414 | |
18415 | if test "$hardcode_action_GCJ" = relink; then |
18416 | # Fast installation is not supported |
18417 | enable_fast_install=no |
18418 | elif test "$shlibpath_overrides_runpath" = yes || |
18419 | test "$enable_shared" = no; then |
18420 | # Fast installation is not necessary |
18421 | enable_fast_install=needless |
18422 | fi |
18423 | |
18424 | |
18425 | # The else clause should only fire when bootstrapping the |
18426 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
18427 | # with your package, and you will get complaints that there are |
18428 | # no rules to generate ltmain.sh. |
18429 | if test -f "$ltmain"; then |
18430 | # See if we are running on zsh, and set the options which allow our commands through |
18431 | # without removal of \ escapes. |
18432 | if test -n "${ZSH_VERSION+set}" ; then |
18433 | setopt NO_GLOB_SUBST |
18434 | fi |
18435 | # Now quote all the things that may contain metacharacters while being |
18436 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
18437 | # variables and quote the copies for generation of the libtool script. |
18438 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
18439 | SED SHELL STRIP \ |
18440 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
18441 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
18442 | deplibs_check_method reload_flag reload_cmds need_locks \ |
18443 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
18444 | lt_cv_sys_global_symbol_to_c_name_address \ |
18445 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
18446 | old_postinstall_cmds old_postuninstall_cmds \ |
18447 | compiler_GCJ \ |
18448 | CC_GCJ \ |
18449 | LD_GCJ \ |
18450 | lt_prog_compiler_wl_GCJ \ |
18451 | lt_prog_compiler_pic_GCJ \ |
18452 | lt_prog_compiler_static_GCJ \ |
18453 | lt_prog_compiler_no_builtin_flag_GCJ \ |
18454 | export_dynamic_flag_spec_GCJ \ |
18455 | thread_safe_flag_spec_GCJ \ |
18456 | whole_archive_flag_spec_GCJ \ |
18457 | enable_shared_with_static_runtimes_GCJ \ |
18458 | old_archive_cmds_GCJ \ |
18459 | old_archive_from_new_cmds_GCJ \ |
18460 | predep_objects_GCJ \ |
18461 | postdep_objects_GCJ \ |
18462 | predeps_GCJ \ |
18463 | postdeps_GCJ \ |
18464 | compiler_lib_search_path_GCJ \ |
18465 | archive_cmds_GCJ \ |
18466 | archive_expsym_cmds_GCJ \ |
18467 | postinstall_cmds_GCJ \ |
18468 | postuninstall_cmds_GCJ \ |
18469 | old_archive_from_expsyms_cmds_GCJ \ |
18470 | allow_undefined_flag_GCJ \ |
18471 | no_undefined_flag_GCJ \ |
18472 | export_symbols_cmds_GCJ \ |
18473 | hardcode_libdir_flag_spec_GCJ \ |
18474 | hardcode_libdir_flag_spec_ld_GCJ \ |
18475 | hardcode_libdir_separator_GCJ \ |
18476 | hardcode_automatic_GCJ \ |
18477 | module_cmds_GCJ \ |
18478 | module_expsym_cmds_GCJ \ |
18479 | lt_cv_prog_compiler_c_o_GCJ \ |
18480 | exclude_expsyms_GCJ \ |
18481 | include_expsyms_GCJ; do |
18482 | |
18483 | case $var in |
18484 | old_archive_cmds_GCJ | \ |
18485 | old_archive_from_new_cmds_GCJ | \ |
18486 | archive_cmds_GCJ | \ |
18487 | archive_expsym_cmds_GCJ | \ |
18488 | module_cmds_GCJ | \ |
18489 | module_expsym_cmds_GCJ | \ |
18490 | old_archive_from_expsyms_cmds_GCJ | \ |
18491 | export_symbols_cmds_GCJ | \ |
18492 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
18493 | postinstall_cmds | postuninstall_cmds | \ |
18494 | old_postinstall_cmds | old_postuninstall_cmds | \ |
18495 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
18496 | # Double-quote double-evaled strings. |
18497 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
18498 | ;; |
18499 | *) |
18500 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
18501 | ;; |
18502 | esac |
18503 | done |
18504 | |
18505 | case $lt_echo in |
18506 | *'\$0 --fallback-echo"') |
18507 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
18508 | ;; |
18509 | esac |
18510 | |
18511 | cfgfile="$ofile" |
18512 | |
18513 | cat <<__EOF__ >> "$cfgfile" |
18514 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
18515 | |
18516 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
18517 | |
18518 | # Shell to use when invoking shell scripts. |
18519 | SHELL=$lt_SHELL |
18520 | |
18521 | # Whether or not to build shared libraries. |
18522 | build_libtool_libs=$enable_shared |
18523 | |
18524 | # Whether or not to build static libraries. |
18525 | build_old_libs=$enable_static |
18526 | |
18527 | # Whether or not to add -lc for building shared libraries. |
18528 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ |
18529 | |
18530 | # Whether or not to disallow shared libs when runtime libs are static |
18531 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ |
18532 | |
18533 | # Whether or not to optimize for fast installation. |
18534 | fast_install=$enable_fast_install |
18535 | |
18536 | # The host system. |
18537 | host_alias=$host_alias |
18538 | host=$host |
18539 | host_os=$host_os |
18540 | |
18541 | # The build system. |
18542 | build_alias=$build_alias |
18543 | build=$build |
18544 | build_os=$build_os |
18545 | |
18546 | # An echo program that does not interpret backslashes. |
18547 | echo=$lt_echo |
18548 | |
18549 | # The archiver. |
18550 | AR=$lt_AR |
18551 | AR_FLAGS=$lt_AR_FLAGS |
18552 | |
18553 | # A C compiler. |
18554 | LTCC=$lt_LTCC |
18555 | |
18556 | # LTCC compiler flags. |
18557 | LTCFLAGS=$lt_LTCFLAGS |
18558 | |
18559 | # A language-specific compiler. |
18560 | CC=$lt_compiler_GCJ |
18561 | |
18562 | # Is the compiler the GNU C compiler? |
18563 | with_gcc=$GCC_GCJ |
18564 | |
d9898ee8 |
18565 | # An ERE matcher. |
18566 | EGREP=$lt_EGREP |
18567 | |
18568 | # The linker used to build libraries. |
18569 | LD=$lt_LD_GCJ |
18570 | |
18571 | # Whether we need hard or soft links. |
18572 | LN_S=$lt_LN_S |
18573 | |
18574 | # A BSD-compatible nm program. |
18575 | NM=$lt_NM |
18576 | |
18577 | # A symbol stripping program |
18578 | STRIP=$lt_STRIP |
18579 | |
18580 | # Used to examine libraries when file_magic_cmd begins "file" |
18581 | MAGIC_CMD=$MAGIC_CMD |
18582 | |
18583 | # Used on cygwin: DLL creation program. |
18584 | DLLTOOL="$DLLTOOL" |
18585 | |
18586 | # Used on cygwin: object dumper. |
18587 | OBJDUMP="$OBJDUMP" |
18588 | |
18589 | # Used on cygwin: assembler. |
18590 | AS="$AS" |
18591 | |
18592 | # The name of the directory that contains temporary libtool files. |
18593 | objdir=$objdir |
18594 | |
18595 | # How to create reloadable object files. |
18596 | reload_flag=$lt_reload_flag |
18597 | reload_cmds=$lt_reload_cmds |
18598 | |
18599 | # How to pass a linker flag through the compiler. |
18600 | wl=$lt_lt_prog_compiler_wl_GCJ |
18601 | |
18602 | # Object file suffix (normally "o"). |
18603 | objext="$ac_objext" |
18604 | |
18605 | # Old archive suffix (normally "a"). |
18606 | libext="$libext" |
18607 | |
18608 | # Shared library suffix (normally ".so"). |
18609 | shrext_cmds='$shrext_cmds' |
18610 | |
18611 | # Executable file suffix (normally ""). |
18612 | exeext="$exeext" |
18613 | |
18614 | # Additional compiler flags for building library objects. |
18615 | pic_flag=$lt_lt_prog_compiler_pic_GCJ |
18616 | pic_mode=$pic_mode |
18617 | |
18618 | # What is the maximum length of a command? |
18619 | max_cmd_len=$lt_cv_sys_max_cmd_len |
18620 | |
18621 | # Does compiler simultaneously support -c and -o options? |
18622 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ |
18623 | |
18624 | # Must we lock files when doing compilation? |
18625 | need_locks=$lt_need_locks |
18626 | |
18627 | # Do we need the lib prefix for modules? |
18628 | need_lib_prefix=$need_lib_prefix |
18629 | |
18630 | # Do we need a version for libraries? |
18631 | need_version=$need_version |
18632 | |
18633 | # Whether dlopen is supported. |
18634 | dlopen_support=$enable_dlopen |
18635 | |
18636 | # Whether dlopen of programs is supported. |
18637 | dlopen_self=$enable_dlopen_self |
18638 | |
18639 | # Whether dlopen of statically linked programs is supported. |
18640 | dlopen_self_static=$enable_dlopen_self_static |
18641 | |
18642 | # Compiler flag to prevent dynamic linking. |
18643 | link_static_flag=$lt_lt_prog_compiler_static_GCJ |
18644 | |
18645 | # Compiler flag to turn off builtin functions. |
18646 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ |
18647 | |
18648 | # Compiler flag to allow reflexive dlopens. |
18649 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ |
18650 | |
18651 | # Compiler flag to generate shared objects directly from archives. |
18652 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ |
18653 | |
18654 | # Compiler flag to generate thread-safe objects. |
18655 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ |
18656 | |
18657 | # Library versioning type. |
18658 | version_type=$version_type |
18659 | |
18660 | # Format of library name prefix. |
18661 | libname_spec=$lt_libname_spec |
18662 | |
18663 | # List of archive names. First name is the real one, the rest are links. |
18664 | # The last name is the one that the linker finds with -lNAME. |
18665 | library_names_spec=$lt_library_names_spec |
18666 | |
18667 | # The coded name of the library, if different from the real name. |
18668 | soname_spec=$lt_soname_spec |
18669 | |
18670 | # Commands used to build and install an old-style archive. |
18671 | RANLIB=$lt_RANLIB |
18672 | old_archive_cmds=$lt_old_archive_cmds_GCJ |
18673 | old_postinstall_cmds=$lt_old_postinstall_cmds |
18674 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
18675 | |
18676 | # Create an old-style archive from a shared archive. |
18677 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ |
18678 | |
18679 | # Create a temporary old-style archive to link instead of a shared archive. |
18680 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ |
18681 | |
18682 | # Commands used to build and install a shared archive. |
18683 | archive_cmds=$lt_archive_cmds_GCJ |
18684 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ |
18685 | postinstall_cmds=$lt_postinstall_cmds |
18686 | postuninstall_cmds=$lt_postuninstall_cmds |
18687 | |
18688 | # Commands used to build a loadable module (assumed same as above if empty) |
18689 | module_cmds=$lt_module_cmds_GCJ |
18690 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ |
18691 | |
18692 | # Commands to strip libraries. |
18693 | old_striplib=$lt_old_striplib |
18694 | striplib=$lt_striplib |
18695 | |
18696 | # Dependencies to place before the objects being linked to create a |
18697 | # shared library. |
64ff59ba |
18698 | predep_objects=$lt_predep_objects_GCJ |
d9898ee8 |
18699 | |
18700 | # Dependencies to place after the objects being linked to create a |
18701 | # shared library. |
64ff59ba |
18702 | postdep_objects=$lt_postdep_objects_GCJ |
d9898ee8 |
18703 | |
18704 | # Dependencies to place before the objects being linked to create a |
18705 | # shared library. |
18706 | predeps=$lt_predeps_GCJ |
18707 | |
18708 | # Dependencies to place after the objects being linked to create a |
18709 | # shared library. |
18710 | postdeps=$lt_postdeps_GCJ |
18711 | |
18712 | # The library search path used internally by the compiler when linking |
18713 | # a shared library. |
64ff59ba |
18714 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ |
d9898ee8 |
18715 | |
18716 | # Method to check whether dependent libraries are shared objects. |
18717 | deplibs_check_method=$lt_deplibs_check_method |
18718 | |
18719 | # Command to use when deplibs_check_method == file_magic. |
18720 | file_magic_cmd=$lt_file_magic_cmd |
18721 | |
18722 | # Flag that allows shared libraries with undefined symbols to be built. |
18723 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ |
18724 | |
18725 | # Flag that forces no undefined symbols. |
18726 | no_undefined_flag=$lt_no_undefined_flag_GCJ |
18727 | |
18728 | # Commands used to finish a libtool library installation in a directory. |
18729 | finish_cmds=$lt_finish_cmds |
18730 | |
18731 | # Same as above, but a single script fragment to be evaled but not shown. |
18732 | finish_eval=$lt_finish_eval |
18733 | |
18734 | # Take the output of nm and produce a listing of raw symbols and C names. |
18735 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
18736 | |
18737 | # Transform the output of nm in a proper C declaration |
18738 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
18739 | |
18740 | # Transform the output of nm in a C name address pair |
18741 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
18742 | |
18743 | # This is the shared library runtime path variable. |
18744 | runpath_var=$runpath_var |
18745 | |
18746 | # This is the shared library path variable. |
18747 | shlibpath_var=$shlibpath_var |
18748 | |
18749 | # Is shlibpath searched before the hard-coded library search path? |
18750 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
18751 | |
18752 | # How to hardcode a shared library path into an executable. |
18753 | hardcode_action=$hardcode_action_GCJ |
18754 | |
18755 | # Whether we should hardcode library paths into libraries. |
18756 | hardcode_into_libs=$hardcode_into_libs |
18757 | |
18758 | # Flag to hardcode \$libdir into a binary during linking. |
18759 | # This must work even if \$libdir does not exist. |
18760 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ |
18761 | |
18762 | # If ld is used when linking, flag to hardcode \$libdir into |
18763 | # a binary during linking. This must work even if \$libdir does |
18764 | # not exist. |
18765 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ |
18766 | |
18767 | # Whether we need a single -rpath flag with a separated argument. |
18768 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ |
18769 | |
18770 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
18771 | # resulting binary. |
18772 | hardcode_direct=$hardcode_direct_GCJ |
18773 | |
18774 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
18775 | # resulting binary. |
18776 | hardcode_minus_L=$hardcode_minus_L_GCJ |
18777 | |
18778 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
18779 | # the resulting binary. |
18780 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ |
18781 | |
18782 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
18783 | # and all subsequent libraries and executables linked against it. |
18784 | hardcode_automatic=$hardcode_automatic_GCJ |
18785 | |
18786 | # Variables whose values should be saved in libtool wrapper scripts and |
18787 | # restored at relink time. |
18788 | variables_saved_for_relink="$variables_saved_for_relink" |
18789 | |
18790 | # Whether libtool must link a program against all its dependency libraries. |
18791 | link_all_deplibs=$link_all_deplibs_GCJ |
18792 | |
18793 | # Compile-time system search path for libraries |
64ff59ba |
18794 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
d9898ee8 |
18795 | |
18796 | # Run-time system search path for libraries |
18797 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
18798 | |
18799 | # Fix the shell variable \$srcfile for the compiler. |
18800 | fix_srcfile_path="$fix_srcfile_path_GCJ" |
18801 | |
18802 | # Set to yes if exported symbols are required. |
18803 | always_export_symbols=$always_export_symbols_GCJ |
18804 | |
18805 | # The commands to list exported symbols. |
18806 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ |
18807 | |
18808 | # The commands to extract the exported symbol list from a shared archive. |
18809 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
18810 | |
18811 | # Symbols that should not be listed in the preloaded symbols. |
18812 | exclude_expsyms=$lt_exclude_expsyms_GCJ |
18813 | |
18814 | # Symbols that must always be exported. |
18815 | include_expsyms=$lt_include_expsyms_GCJ |
18816 | |
18817 | # ### END LIBTOOL TAG CONFIG: $tagname |
18818 | |
18819 | __EOF__ |
18820 | |
18821 | |
18822 | else |
18823 | # If there is no Makefile yet, we rely on a make rule to execute |
18824 | # `config.status --recheck' to rerun these tests and create the |
18825 | # libtool script then. |
18826 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
18827 | if test -f "$ltmain_in"; then |
18828 | test -f Makefile && make "$ltmain" |
18829 | fi |
18830 | fi |
18831 | |
18832 | |
18833 | ac_ext=c |
18834 | ac_cpp='$CPP $CPPFLAGS' |
18835 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
18836 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
18837 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
18838 | |
18839 | CC="$lt_save_CC" |
18840 | |
18841 | else |
18842 | tagname="" |
18843 | fi |
18844 | ;; |
18845 | |
18846 | RC) |
18847 | |
18848 | |
d9898ee8 |
18849 | # Source file extension for RC test sources. |
18850 | ac_ext=rc |
18851 | |
18852 | # Object file extension for compiled RC test sources. |
18853 | objext=o |
18854 | objext_RC=$objext |
18855 | |
18856 | # Code to be used in simple compile tests |
18857 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' |
18858 | |
18859 | # Code to be used in simple link tests |
18860 | lt_simple_link_test_code="$lt_simple_compile_test_code" |
18861 | |
18862 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
18863 | |
18864 | # If no C compiler was specified, use CC. |
18865 | LTCC=${LTCC-"$CC"} |
18866 | |
18867 | # If no C compiler flags were specified, use CFLAGS. |
18868 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
18869 | |
18870 | # Allow CC to be a program name with arguments. |
18871 | compiler=$CC |
18872 | |
18873 | |
18874 | # save warnings/boilerplate of simple test code |
18875 | ac_outfile=conftest.$ac_objext |
18876 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
18877 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
18878 | _lt_compiler_boilerplate=`cat conftest.err` |
18879 | $rm conftest* |
18880 | |
18881 | ac_outfile=conftest.$ac_objext |
18882 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
18883 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
18884 | _lt_linker_boilerplate=`cat conftest.err` |
18885 | $rm conftest* |
18886 | |
18887 | |
18888 | # Allow CC to be a program name with arguments. |
18889 | lt_save_CC="$CC" |
18890 | CC=${RC-"windres"} |
18891 | compiler=$CC |
18892 | compiler_RC=$CC |
18893 | for cc_temp in $compiler""; do |
18894 | case $cc_temp in |
18895 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
18896 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
18897 | \-*) ;; |
18898 | *) break;; |
18899 | esac |
18900 | done |
18901 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
18902 | |
18903 | lt_cv_prog_compiler_c_o_RC=yes |
18904 | |
18905 | # The else clause should only fire when bootstrapping the |
18906 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
18907 | # with your package, and you will get complaints that there are |
18908 | # no rules to generate ltmain.sh. |
18909 | if test -f "$ltmain"; then |
18910 | # See if we are running on zsh, and set the options which allow our commands through |
18911 | # without removal of \ escapes. |
18912 | if test -n "${ZSH_VERSION+set}" ; then |
18913 | setopt NO_GLOB_SUBST |
18914 | fi |
18915 | # Now quote all the things that may contain metacharacters while being |
18916 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
18917 | # variables and quote the copies for generation of the libtool script. |
18918 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
18919 | SED SHELL STRIP \ |
18920 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
18921 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
18922 | deplibs_check_method reload_flag reload_cmds need_locks \ |
18923 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
18924 | lt_cv_sys_global_symbol_to_c_name_address \ |
18925 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
18926 | old_postinstall_cmds old_postuninstall_cmds \ |
18927 | compiler_RC \ |
18928 | CC_RC \ |
18929 | LD_RC \ |
18930 | lt_prog_compiler_wl_RC \ |
18931 | lt_prog_compiler_pic_RC \ |
18932 | lt_prog_compiler_static_RC \ |
18933 | lt_prog_compiler_no_builtin_flag_RC \ |
18934 | export_dynamic_flag_spec_RC \ |
18935 | thread_safe_flag_spec_RC \ |
18936 | whole_archive_flag_spec_RC \ |
18937 | enable_shared_with_static_runtimes_RC \ |
18938 | old_archive_cmds_RC \ |
18939 | old_archive_from_new_cmds_RC \ |
18940 | predep_objects_RC \ |
18941 | postdep_objects_RC \ |
18942 | predeps_RC \ |
18943 | postdeps_RC \ |
18944 | compiler_lib_search_path_RC \ |
18945 | archive_cmds_RC \ |
18946 | archive_expsym_cmds_RC \ |
18947 | postinstall_cmds_RC \ |
18948 | postuninstall_cmds_RC \ |
18949 | old_archive_from_expsyms_cmds_RC \ |
18950 | allow_undefined_flag_RC \ |
18951 | no_undefined_flag_RC \ |
18952 | export_symbols_cmds_RC \ |
18953 | hardcode_libdir_flag_spec_RC \ |
18954 | hardcode_libdir_flag_spec_ld_RC \ |
18955 | hardcode_libdir_separator_RC \ |
18956 | hardcode_automatic_RC \ |
18957 | module_cmds_RC \ |
18958 | module_expsym_cmds_RC \ |
18959 | lt_cv_prog_compiler_c_o_RC \ |
18960 | exclude_expsyms_RC \ |
18961 | include_expsyms_RC; do |
18962 | |
18963 | case $var in |
18964 | old_archive_cmds_RC | \ |
18965 | old_archive_from_new_cmds_RC | \ |
18966 | archive_cmds_RC | \ |
18967 | archive_expsym_cmds_RC | \ |
18968 | module_cmds_RC | \ |
18969 | module_expsym_cmds_RC | \ |
18970 | old_archive_from_expsyms_cmds_RC | \ |
18971 | export_symbols_cmds_RC | \ |
18972 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
18973 | postinstall_cmds | postuninstall_cmds | \ |
18974 | old_postinstall_cmds | old_postuninstall_cmds | \ |
18975 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
18976 | # Double-quote double-evaled strings. |
18977 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
18978 | ;; |
18979 | *) |
18980 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
18981 | ;; |
18982 | esac |
18983 | done |
18984 | |
18985 | case $lt_echo in |
18986 | *'\$0 --fallback-echo"') |
18987 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
18988 | ;; |
18989 | esac |
18990 | |
18991 | cfgfile="$ofile" |
18992 | |
18993 | cat <<__EOF__ >> "$cfgfile" |
18994 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
18995 | |
18996 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
18997 | |
18998 | # Shell to use when invoking shell scripts. |
18999 | SHELL=$lt_SHELL |
19000 | |
19001 | # Whether or not to build shared libraries. |
19002 | build_libtool_libs=$enable_shared |
19003 | |
19004 | # Whether or not to build static libraries. |
19005 | build_old_libs=$enable_static |
19006 | |
19007 | # Whether or not to add -lc for building shared libraries. |
19008 | build_libtool_need_lc=$archive_cmds_need_lc_RC |
19009 | |
19010 | # Whether or not to disallow shared libs when runtime libs are static |
19011 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC |
19012 | |
19013 | # Whether or not to optimize for fast installation. |
19014 | fast_install=$enable_fast_install |
19015 | |
19016 | # The host system. |
19017 | host_alias=$host_alias |
19018 | host=$host |
19019 | host_os=$host_os |
19020 | |
19021 | # The build system. |
19022 | build_alias=$build_alias |
19023 | build=$build |
19024 | build_os=$build_os |
19025 | |
19026 | # An echo program that does not interpret backslashes. |
19027 | echo=$lt_echo |
19028 | |
19029 | # The archiver. |
19030 | AR=$lt_AR |
19031 | AR_FLAGS=$lt_AR_FLAGS |
19032 | |
19033 | # A C compiler. |
19034 | LTCC=$lt_LTCC |
19035 | |
19036 | # LTCC compiler flags. |
19037 | LTCFLAGS=$lt_LTCFLAGS |
19038 | |
19039 | # A language-specific compiler. |
19040 | CC=$lt_compiler_RC |
19041 | |
19042 | # Is the compiler the GNU C compiler? |
19043 | with_gcc=$GCC_RC |
19044 | |
d9898ee8 |
19045 | # An ERE matcher. |
19046 | EGREP=$lt_EGREP |
19047 | |
19048 | # The linker used to build libraries. |
19049 | LD=$lt_LD_RC |
19050 | |
19051 | # Whether we need hard or soft links. |
19052 | LN_S=$lt_LN_S |
19053 | |
19054 | # A BSD-compatible nm program. |
19055 | NM=$lt_NM |
19056 | |
19057 | # A symbol stripping program |
19058 | STRIP=$lt_STRIP |
19059 | |
19060 | # Used to examine libraries when file_magic_cmd begins "file" |
19061 | MAGIC_CMD=$MAGIC_CMD |
19062 | |
19063 | # Used on cygwin: DLL creation program. |
19064 | DLLTOOL="$DLLTOOL" |
19065 | |
19066 | # Used on cygwin: object dumper. |
19067 | OBJDUMP="$OBJDUMP" |
19068 | |
19069 | # Used on cygwin: assembler. |
19070 | AS="$AS" |
19071 | |
19072 | # The name of the directory that contains temporary libtool files. |
19073 | objdir=$objdir |
19074 | |
19075 | # How to create reloadable object files. |
19076 | reload_flag=$lt_reload_flag |
19077 | reload_cmds=$lt_reload_cmds |
19078 | |
19079 | # How to pass a linker flag through the compiler. |
19080 | wl=$lt_lt_prog_compiler_wl_RC |
19081 | |
19082 | # Object file suffix (normally "o"). |
19083 | objext="$ac_objext" |
19084 | |
19085 | # Old archive suffix (normally "a"). |
19086 | libext="$libext" |
19087 | |
19088 | # Shared library suffix (normally ".so"). |
19089 | shrext_cmds='$shrext_cmds' |
19090 | |
19091 | # Executable file suffix (normally ""). |
19092 | exeext="$exeext" |
19093 | |
19094 | # Additional compiler flags for building library objects. |
19095 | pic_flag=$lt_lt_prog_compiler_pic_RC |
19096 | pic_mode=$pic_mode |
19097 | |
19098 | # What is the maximum length of a command? |
19099 | max_cmd_len=$lt_cv_sys_max_cmd_len |
19100 | |
19101 | # Does compiler simultaneously support -c and -o options? |
19102 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC |
19103 | |
19104 | # Must we lock files when doing compilation? |
19105 | need_locks=$lt_need_locks |
19106 | |
19107 | # Do we need the lib prefix for modules? |
19108 | need_lib_prefix=$need_lib_prefix |
19109 | |
19110 | # Do we need a version for libraries? |
19111 | need_version=$need_version |
19112 | |
19113 | # Whether dlopen is supported. |
19114 | dlopen_support=$enable_dlopen |
19115 | |
19116 | # Whether dlopen of programs is supported. |
19117 | dlopen_self=$enable_dlopen_self |
19118 | |
19119 | # Whether dlopen of statically linked programs is supported. |
19120 | dlopen_self_static=$enable_dlopen_self_static |
19121 | |
19122 | # Compiler flag to prevent dynamic linking. |
19123 | link_static_flag=$lt_lt_prog_compiler_static_RC |
19124 | |
19125 | # Compiler flag to turn off builtin functions. |
19126 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC |
19127 | |
19128 | # Compiler flag to allow reflexive dlopens. |
19129 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC |
19130 | |
19131 | # Compiler flag to generate shared objects directly from archives. |
19132 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC |
19133 | |
19134 | # Compiler flag to generate thread-safe objects. |
19135 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC |
19136 | |
19137 | # Library versioning type. |
19138 | version_type=$version_type |
19139 | |
19140 | # Format of library name prefix. |
19141 | libname_spec=$lt_libname_spec |
19142 | |
19143 | # List of archive names. First name is the real one, the rest are links. |
19144 | # The last name is the one that the linker finds with -lNAME. |
19145 | library_names_spec=$lt_library_names_spec |
19146 | |
19147 | # The coded name of the library, if different from the real name. |
19148 | soname_spec=$lt_soname_spec |
19149 | |
19150 | # Commands used to build and install an old-style archive. |
19151 | RANLIB=$lt_RANLIB |
19152 | old_archive_cmds=$lt_old_archive_cmds_RC |
19153 | old_postinstall_cmds=$lt_old_postinstall_cmds |
19154 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
19155 | |
19156 | # Create an old-style archive from a shared archive. |
19157 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC |
19158 | |
19159 | # Create a temporary old-style archive to link instead of a shared archive. |
19160 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC |
19161 | |
19162 | # Commands used to build and install a shared archive. |
19163 | archive_cmds=$lt_archive_cmds_RC |
19164 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC |
19165 | postinstall_cmds=$lt_postinstall_cmds |
19166 | postuninstall_cmds=$lt_postuninstall_cmds |
19167 | |
19168 | # Commands used to build a loadable module (assumed same as above if empty) |
19169 | module_cmds=$lt_module_cmds_RC |
19170 | module_expsym_cmds=$lt_module_expsym_cmds_RC |
19171 | |
19172 | # Commands to strip libraries. |
19173 | old_striplib=$lt_old_striplib |
19174 | striplib=$lt_striplib |
19175 | |
19176 | # Dependencies to place before the objects being linked to create a |
19177 | # shared library. |
64ff59ba |
19178 | predep_objects=$lt_predep_objects_RC |
d9898ee8 |
19179 | |
19180 | # Dependencies to place after the objects being linked to create a |
19181 | # shared library. |
64ff59ba |
19182 | postdep_objects=$lt_postdep_objects_RC |
d9898ee8 |
19183 | |
19184 | # Dependencies to place before the objects being linked to create a |
19185 | # shared library. |
19186 | predeps=$lt_predeps_RC |
19187 | |
19188 | # Dependencies to place after the objects being linked to create a |
19189 | # shared library. |
19190 | postdeps=$lt_postdeps_RC |
19191 | |
19192 | # The library search path used internally by the compiler when linking |
19193 | # a shared library. |
64ff59ba |
19194 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC |
d9898ee8 |
19195 | |
19196 | # Method to check whether dependent libraries are shared objects. |
19197 | deplibs_check_method=$lt_deplibs_check_method |
19198 | |
19199 | # Command to use when deplibs_check_method == file_magic. |
19200 | file_magic_cmd=$lt_file_magic_cmd |
19201 | |
19202 | # Flag that allows shared libraries with undefined symbols to be built. |
19203 | allow_undefined_flag=$lt_allow_undefined_flag_RC |
19204 | |
19205 | # Flag that forces no undefined symbols. |
19206 | no_undefined_flag=$lt_no_undefined_flag_RC |
19207 | |
19208 | # Commands used to finish a libtool library installation in a directory. |
19209 | finish_cmds=$lt_finish_cmds |
19210 | |
19211 | # Same as above, but a single script fragment to be evaled but not shown. |
19212 | finish_eval=$lt_finish_eval |
19213 | |
19214 | # Take the output of nm and produce a listing of raw symbols and C names. |
19215 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
19216 | |
19217 | # Transform the output of nm in a proper C declaration |
19218 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
19219 | |
19220 | # Transform the output of nm in a C name address pair |
19221 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
19222 | |
19223 | # This is the shared library runtime path variable. |
19224 | runpath_var=$runpath_var |
19225 | |
19226 | # This is the shared library path variable. |
19227 | shlibpath_var=$shlibpath_var |
19228 | |
19229 | # Is shlibpath searched before the hard-coded library search path? |
19230 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
19231 | |
19232 | # How to hardcode a shared library path into an executable. |
19233 | hardcode_action=$hardcode_action_RC |
19234 | |
19235 | # Whether we should hardcode library paths into libraries. |
19236 | hardcode_into_libs=$hardcode_into_libs |
19237 | |
19238 | # Flag to hardcode \$libdir into a binary during linking. |
19239 | # This must work even if \$libdir does not exist. |
19240 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC |
19241 | |
19242 | # If ld is used when linking, flag to hardcode \$libdir into |
19243 | # a binary during linking. This must work even if \$libdir does |
19244 | # not exist. |
19245 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC |
19246 | |
19247 | # Whether we need a single -rpath flag with a separated argument. |
19248 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC |
19249 | |
19250 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
19251 | # resulting binary. |
19252 | hardcode_direct=$hardcode_direct_RC |
19253 | |
19254 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
19255 | # resulting binary. |
19256 | hardcode_minus_L=$hardcode_minus_L_RC |
19257 | |
19258 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
19259 | # the resulting binary. |
19260 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC |
19261 | |
19262 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
19263 | # and all subsequent libraries and executables linked against it. |
19264 | hardcode_automatic=$hardcode_automatic_RC |
19265 | |
19266 | # Variables whose values should be saved in libtool wrapper scripts and |
19267 | # restored at relink time. |
19268 | variables_saved_for_relink="$variables_saved_for_relink" |
19269 | |
19270 | # Whether libtool must link a program against all its dependency libraries. |
19271 | link_all_deplibs=$link_all_deplibs_RC |
19272 | |
19273 | # Compile-time system search path for libraries |
64ff59ba |
19274 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
d9898ee8 |
19275 | |
19276 | # Run-time system search path for libraries |
19277 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
19278 | |
19279 | # Fix the shell variable \$srcfile for the compiler. |
19280 | fix_srcfile_path="$fix_srcfile_path_RC" |
19281 | |
19282 | # Set to yes if exported symbols are required. |
19283 | always_export_symbols=$always_export_symbols_RC |
19284 | |
19285 | # The commands to list exported symbols. |
19286 | export_symbols_cmds=$lt_export_symbols_cmds_RC |
19287 | |
19288 | # The commands to extract the exported symbol list from a shared archive. |
19289 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
19290 | |
19291 | # Symbols that should not be listed in the preloaded symbols. |
19292 | exclude_expsyms=$lt_exclude_expsyms_RC |
19293 | |
19294 | # Symbols that must always be exported. |
19295 | include_expsyms=$lt_include_expsyms_RC |
19296 | |
19297 | # ### END LIBTOOL TAG CONFIG: $tagname |
19298 | |
19299 | __EOF__ |
19300 | |
19301 | |
19302 | else |
19303 | # If there is no Makefile yet, we rely on a make rule to execute |
19304 | # `config.status --recheck' to rerun these tests and create the |
19305 | # libtool script then. |
19306 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
19307 | if test -f "$ltmain_in"; then |
19308 | test -f Makefile && make "$ltmain" |
19309 | fi |
19310 | fi |
19311 | |
19312 | |
19313 | ac_ext=c |
19314 | ac_cpp='$CPP $CPPFLAGS' |
19315 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
19316 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
19317 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
19318 | |
19319 | CC="$lt_save_CC" |
19320 | |
19321 | ;; |
19322 | |
19323 | *) |
19324 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 |
19325 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} |
19326 | { (exit 1); exit 1; }; } |
19327 | ;; |
19328 | esac |
19329 | |
19330 | # Append the new tag name to the list of available tags. |
19331 | if test -n "$tagname" ; then |
19332 | available_tags="$available_tags $tagname" |
19333 | fi |
19334 | fi |
19335 | done |
19336 | IFS="$lt_save_ifs" |
19337 | |
19338 | # Now substitute the updated list of available tags. |
19339 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
19340 | mv "${ofile}T" "$ofile" |
19341 | chmod +x "$ofile" |
19342 | else |
19343 | rm -f "${ofile}T" |
19344 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 |
19345 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} |
19346 | { (exit 1); exit 1; }; } |
19347 | fi |
19348 | fi |
19349 | |
19350 | |
19351 | |
19352 | # This can be used to rebuild libtool when needed |
19353 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
19354 | |
19355 | # Always use our own libtool. |
19356 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
19357 | |
19358 | # Prevent multiple expansion |
19359 | |
19360 | |
19361 | |
19362 | |
19363 | |
19364 | |
19365 | |
19366 | |
19367 | |
19368 | |
19369 | |
19370 | |
19371 | |
19372 | |
19373 | |
19374 | |
19375 | |
19376 | |
19377 | |
19378 | |
19379 | for ac_prog in perl5 perl |
19380 | do |
19381 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
19382 | set dummy $ac_prog; ac_word=$2 |
64ff59ba |
19383 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
19384 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
19385 | if test "${ac_cv_path_PERL+set}" = set; then |
19386 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19387 | else |
19388 | case $PERL in |
19389 | [\\/]* | ?:[\\/]*) |
19390 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
19391 | ;; |
19392 | *) |
19393 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
19394 | for as_dir in $LPATH |
19395 | do |
19396 | IFS=$as_save_IFS |
19397 | test -z "$as_dir" && as_dir=. |
19398 | for ac_exec_ext in '' $ac_executable_extensions; do |
64ff59ba |
19399 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
19400 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
19401 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
19402 | break 2 |
19403 | fi |
19404 | done |
19405 | done |
64ff59ba |
19406 | IFS=$as_save_IFS |
d9898ee8 |
19407 | |
19408 | ;; |
19409 | esac |
19410 | fi |
19411 | PERL=$ac_cv_path_PERL |
d9898ee8 |
19412 | if test -n "$PERL"; then |
64ff59ba |
19413 | { echo "$as_me:$LINENO: result: $PERL" >&5 |
19414 | echo "${ECHO_T}$PERL" >&6; } |
d9898ee8 |
19415 | else |
64ff59ba |
19416 | { echo "$as_me:$LINENO: result: no" >&5 |
19417 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
19418 | fi |
19419 | |
64ff59ba |
19420 | |
d9898ee8 |
19421 | test -n "$PERL" && break |
19422 | done |
19423 | test -n "$PERL" || PERL="perl" |
19424 | |
19425 | |
19426 | if test "$PERL" = "perl" |
19427 | then |
19428 | { { echo "$as_me:$LINENO: error: Perl not found." >&5 |
19429 | echo "$as_me: error: Perl not found." >&2;} |
19430 | { (exit 1); exit 1; }; } |
19431 | fi |
19432 | |
19433 | if test "$GCC" = "yes" |
19434 | then |
19435 | CFLAGS="$CFLAGS -Wall" |
19436 | fi |
19437 | |
19438 | CFLAGS="$CFLAGS -I.. -I${srcdir}/.." |
19439 | |
19440 | |
19441 | |
64ff59ba |
19442 | # Check whether --with-userdb was given. |
d9898ee8 |
19443 | if test "${with_userdb+set}" = set; then |
64ff59ba |
19444 | withval=$with_userdb; userdb="$withval" |
d9898ee8 |
19445 | else |
19446 | userdb="/etc/userdb" |
64ff59ba |
19447 | fi |
19448 | |
d9898ee8 |
19449 | |
19450 | USERDB="`echo $userdb | tr 'a-z' 'A-Z'`" |
19451 | |
19452 | |
19453 | |
64ff59ba |
19454 | # Check whether --with-userdbmandir was given. |
d9898ee8 |
19455 | if test "${with_userdbmandir+set}" = set; then |
64ff59ba |
19456 | withval=$with_userdbmandir; mandir="$withval" |
19457 | fi |
d9898ee8 |
19458 | |
19459 | |
64ff59ba |
19460 | |
19461 | # Check whether --with-userdbtmpdir was given. |
d9898ee8 |
19462 | if test "${with_userdbtmpdir+set}" = set; then |
64ff59ba |
19463 | withval=$with_userdbtmpdir; tmpdir="$withval" |
d9898ee8 |
19464 | else |
19465 | tmpdir="" |
64ff59ba |
19466 | fi |
19467 | |
d9898ee8 |
19468 | |
19469 | |
19470 | |
19471 | if test "$tmpdir" = "" |
19472 | then |
19473 | tmpdir=`echo "$userdb" | sed 's/\/[^\/]*$//'` |
19474 | fi |
19475 | |
19476 | |
19477 | |
19478 | |
19479 | |
19480 | |
19481 | |
64ff59ba |
19482 | # Check whether --with-makedatprog was given. |
d9898ee8 |
19483 | if test "${with_makedatprog+set}" = set; then |
64ff59ba |
19484 | withval=$with_makedatprog; makedat="$withval" |
d9898ee8 |
19485 | else |
19486 | makedat="$bindir/makedat" |
64ff59ba |
19487 | fi |
19488 | |
d9898ee8 |
19489 | |
19490 | |
19491 | if test -d ${srcdir}/../md5 |
19492 | then |
19493 | |
19494 | cat >>confdefs.h <<_ACEOF |
19495 | #define HAVE_MD5 1 |
19496 | _ACEOF |
19497 | |
19498 | MD5LIB=../md5/libmd5.la |
19499 | else |
19500 | MD5LIB="" |
19501 | fi |
19502 | |
19503 | |
19504 | if test -d ${srcdir}/../sha1 |
19505 | then |
19506 | SHA1LIB=../sha1/libsha1.la |
19507 | else |
19508 | SHA1LIB="" |
19509 | fi |
19510 | |
19511 | |
19512 | if test -d ${srcdir}/../libhmac |
19513 | then |
19514 | |
19515 | cat >>confdefs.h <<_ACEOF |
19516 | #define HAVE_HMAC 1 |
19517 | _ACEOF |
19518 | |
19519 | HMACLIB=../libhmac/libhmac.la |
19520 | else |
19521 | HMACLIB="" |
19522 | fi |
19523 | |
19524 | |
64ff59ba |
19525 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
19526 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
d9898ee8 |
19527 | if test "${ac_cv_header_stdc+set}" = set; then |
19528 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19529 | else |
19530 | cat >conftest.$ac_ext <<_ACEOF |
19531 | /* confdefs.h. */ |
19532 | _ACEOF |
19533 | cat confdefs.h >>conftest.$ac_ext |
19534 | cat >>conftest.$ac_ext <<_ACEOF |
19535 | /* end confdefs.h. */ |
19536 | #include <stdlib.h> |
19537 | #include <stdarg.h> |
19538 | #include <string.h> |
19539 | #include <float.h> |
19540 | |
19541 | int |
19542 | main () |
19543 | { |
19544 | |
19545 | ; |
19546 | return 0; |
19547 | } |
19548 | _ACEOF |
19549 | rm -f conftest.$ac_objext |
64ff59ba |
19550 | if { (ac_try="$ac_compile" |
19551 | case "(($ac_try" in |
19552 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
19553 | *) ac_try_echo=$ac_try;; |
19554 | esac |
19555 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
19556 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
19557 | ac_status=$? |
19558 | grep -v '^ *+' conftest.er1 >conftest.err |
19559 | rm -f conftest.er1 |
19560 | cat conftest.err >&5 |
19561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
19562 | (exit $ac_status); } && { |
19563 | test -z "$ac_c_werror_flag" || |
19564 | test ! -s conftest.err |
19565 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
19566 | ac_cv_header_stdc=yes |
19567 | else |
19568 | echo "$as_me: failed program was:" >&5 |
19569 | sed 's/^/| /' conftest.$ac_ext >&5 |
19570 | |
64ff59ba |
19571 | ac_cv_header_stdc=no |
d9898ee8 |
19572 | fi |
64ff59ba |
19573 | |
19574 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
19575 | |
19576 | if test $ac_cv_header_stdc = yes; then |
19577 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
19578 | cat >conftest.$ac_ext <<_ACEOF |
19579 | /* confdefs.h. */ |
19580 | _ACEOF |
19581 | cat confdefs.h >>conftest.$ac_ext |
19582 | cat >>conftest.$ac_ext <<_ACEOF |
19583 | /* end confdefs.h. */ |
19584 | #include <string.h> |
19585 | |
19586 | _ACEOF |
19587 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
19588 | $EGREP "memchr" >/dev/null 2>&1; then |
19589 | : |
19590 | else |
19591 | ac_cv_header_stdc=no |
19592 | fi |
19593 | rm -f conftest* |
19594 | |
19595 | fi |
19596 | |
19597 | if test $ac_cv_header_stdc = yes; then |
19598 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
19599 | cat >conftest.$ac_ext <<_ACEOF |
19600 | /* confdefs.h. */ |
19601 | _ACEOF |
19602 | cat confdefs.h >>conftest.$ac_ext |
19603 | cat >>conftest.$ac_ext <<_ACEOF |
19604 | /* end confdefs.h. */ |
19605 | #include <stdlib.h> |
19606 | |
19607 | _ACEOF |
19608 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
19609 | $EGREP "free" >/dev/null 2>&1; then |
19610 | : |
19611 | else |
19612 | ac_cv_header_stdc=no |
19613 | fi |
19614 | rm -f conftest* |
19615 | |
19616 | fi |
19617 | |
19618 | if test $ac_cv_header_stdc = yes; then |
19619 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
19620 | if test "$cross_compiling" = yes; then |
19621 | : |
19622 | else |
19623 | cat >conftest.$ac_ext <<_ACEOF |
19624 | /* confdefs.h. */ |
19625 | _ACEOF |
19626 | cat confdefs.h >>conftest.$ac_ext |
19627 | cat >>conftest.$ac_ext <<_ACEOF |
19628 | /* end confdefs.h. */ |
19629 | #include <ctype.h> |
64ff59ba |
19630 | #include <stdlib.h> |
d9898ee8 |
19631 | #if ((' ' & 0x0FF) == 0x020) |
19632 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
19633 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
19634 | #else |
19635 | # define ISLOWER(c) \ |
19636 | (('a' <= (c) && (c) <= 'i') \ |
19637 | || ('j' <= (c) && (c) <= 'r') \ |
19638 | || ('s' <= (c) && (c) <= 'z')) |
19639 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
19640 | #endif |
19641 | |
19642 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
19643 | int |
19644 | main () |
19645 | { |
19646 | int i; |
19647 | for (i = 0; i < 256; i++) |
19648 | if (XOR (islower (i), ISLOWER (i)) |
19649 | || toupper (i) != TOUPPER (i)) |
64ff59ba |
19650 | return 2; |
19651 | return 0; |
d9898ee8 |
19652 | } |
19653 | _ACEOF |
19654 | rm -f conftest$ac_exeext |
64ff59ba |
19655 | if { (ac_try="$ac_link" |
19656 | case "(($ac_try" in |
19657 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
19658 | *) ac_try_echo=$ac_try;; |
19659 | esac |
19660 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
19661 | (eval "$ac_link") 2>&5 |
d9898ee8 |
19662 | ac_status=$? |
19663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19664 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
64ff59ba |
19665 | { (case "(($ac_try" in |
19666 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
19667 | *) ac_try_echo=$ac_try;; |
19668 | esac |
19669 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
19670 | (eval "$ac_try") 2>&5 |
d9898ee8 |
19671 | ac_status=$? |
19672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19673 | (exit $ac_status); }; }; then |
19674 | : |
19675 | else |
19676 | echo "$as_me: program exited with status $ac_status" >&5 |
19677 | echo "$as_me: failed program was:" >&5 |
19678 | sed 's/^/| /' conftest.$ac_ext >&5 |
19679 | |
19680 | ( exit $ac_status ) |
19681 | ac_cv_header_stdc=no |
19682 | fi |
64ff59ba |
19683 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
19684 | fi |
64ff59ba |
19685 | |
19686 | |
d9898ee8 |
19687 | fi |
19688 | fi |
64ff59ba |
19689 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
19690 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
d9898ee8 |
19691 | if test $ac_cv_header_stdc = yes; then |
19692 | |
19693 | cat >>confdefs.h <<\_ACEOF |
19694 | #define STDC_HEADERS 1 |
19695 | _ACEOF |
19696 | |
19697 | fi |
19698 | |
19699 | |
19700 | |
19701 | |
19702 | |
19703 | |
19704 | |
19705 | for ac_header in sys/stat.h sys/time.h unistd.h fcntl.h termios.h crypt.h |
19706 | do |
19707 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
64ff59ba |
19708 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
19709 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
19710 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
19711 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
19712 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19713 | fi |
64ff59ba |
19714 | ac_res=`eval echo '${'$as_ac_Header'}'` |
19715 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
19716 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
19717 | else |
19718 | # Is the header compilable? |
64ff59ba |
19719 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
19720 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
d9898ee8 |
19721 | cat >conftest.$ac_ext <<_ACEOF |
19722 | /* confdefs.h. */ |
19723 | _ACEOF |
19724 | cat confdefs.h >>conftest.$ac_ext |
19725 | cat >>conftest.$ac_ext <<_ACEOF |
19726 | /* end confdefs.h. */ |
19727 | $ac_includes_default |
19728 | #include <$ac_header> |
19729 | _ACEOF |
19730 | rm -f conftest.$ac_objext |
64ff59ba |
19731 | if { (ac_try="$ac_compile" |
19732 | case "(($ac_try" in |
19733 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
19734 | *) ac_try_echo=$ac_try;; |
19735 | esac |
19736 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
19737 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
19738 | ac_status=$? |
19739 | grep -v '^ *+' conftest.er1 >conftest.err |
19740 | rm -f conftest.er1 |
19741 | cat conftest.err >&5 |
19742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
19743 | (exit $ac_status); } && { |
19744 | test -z "$ac_c_werror_flag" || |
19745 | test ! -s conftest.err |
19746 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
19747 | ac_header_compiler=yes |
19748 | else |
19749 | echo "$as_me: failed program was:" >&5 |
19750 | sed 's/^/| /' conftest.$ac_ext >&5 |
19751 | |
64ff59ba |
19752 | ac_header_compiler=no |
d9898ee8 |
19753 | fi |
64ff59ba |
19754 | |
19755 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
19756 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
19757 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
d9898ee8 |
19758 | |
19759 | # Is the header present? |
64ff59ba |
19760 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
19761 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
d9898ee8 |
19762 | cat >conftest.$ac_ext <<_ACEOF |
19763 | /* confdefs.h. */ |
19764 | _ACEOF |
19765 | cat confdefs.h >>conftest.$ac_ext |
19766 | cat >>conftest.$ac_ext <<_ACEOF |
19767 | /* end confdefs.h. */ |
19768 | #include <$ac_header> |
19769 | _ACEOF |
64ff59ba |
19770 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
19771 | case "(($ac_try" in |
19772 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
19773 | *) ac_try_echo=$ac_try;; |
19774 | esac |
19775 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
19776 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
19777 | ac_status=$? |
19778 | grep -v '^ *+' conftest.er1 >conftest.err |
19779 | rm -f conftest.er1 |
19780 | cat conftest.err >&5 |
19781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
19782 | (exit $ac_status); } >/dev/null && { |
19783 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
19784 | test ! -s conftest.err |
19785 | }; then |
d9898ee8 |
19786 | ac_header_preproc=yes |
19787 | else |
19788 | echo "$as_me: failed program was:" >&5 |
19789 | sed 's/^/| /' conftest.$ac_ext >&5 |
19790 | |
19791 | ac_header_preproc=no |
19792 | fi |
64ff59ba |
19793 | |
d9898ee8 |
19794 | rm -f conftest.err conftest.$ac_ext |
64ff59ba |
19795 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
19796 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
d9898ee8 |
19797 | |
19798 | # So? What about this header? |
19799 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
19800 | yes:no: ) |
19801 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
19802 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
19803 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
19804 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
19805 | ac_header_preproc=yes |
19806 | ;; |
19807 | no:yes:* ) |
19808 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
19809 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
19810 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
19811 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
19812 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
19813 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
19814 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
19815 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
19816 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19817 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
19818 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
19819 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
64ff59ba |
19820 | ( cat <<\_ASBOX |
d9898ee8 |
19821 | ## -------------------------------------------------- ## |
19822 | ## Report this to courier-users@lists.sourceforge.net ## |
19823 | ## -------------------------------------------------- ## |
19824 | _ASBOX |
64ff59ba |
19825 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
d9898ee8 |
19826 | ;; |
19827 | esac |
64ff59ba |
19828 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
19829 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
19830 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
19831 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19832 | else |
19833 | eval "$as_ac_Header=\$ac_header_preproc" |
19834 | fi |
64ff59ba |
19835 | ac_res=`eval echo '${'$as_ac_Header'}'` |
19836 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
19837 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
19838 | |
19839 | fi |
19840 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
19841 | cat >>confdefs.h <<_ACEOF |
19842 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
19843 | _ACEOF |
19844 | |
19845 | fi |
19846 | |
19847 | done |
19848 | |
64ff59ba |
19849 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
19850 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } |
d9898ee8 |
19851 | if test "${ac_cv_header_time+set}" = set; then |
19852 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19853 | else |
19854 | cat >conftest.$ac_ext <<_ACEOF |
19855 | /* confdefs.h. */ |
19856 | _ACEOF |
19857 | cat confdefs.h >>conftest.$ac_ext |
19858 | cat >>conftest.$ac_ext <<_ACEOF |
19859 | /* end confdefs.h. */ |
19860 | #include <sys/types.h> |
19861 | #include <sys/time.h> |
19862 | #include <time.h> |
19863 | |
19864 | int |
19865 | main () |
19866 | { |
19867 | if ((struct tm *) 0) |
19868 | return 0; |
19869 | ; |
19870 | return 0; |
19871 | } |
19872 | _ACEOF |
19873 | rm -f conftest.$ac_objext |
64ff59ba |
19874 | if { (ac_try="$ac_compile" |
19875 | case "(($ac_try" in |
19876 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
19877 | *) ac_try_echo=$ac_try;; |
19878 | esac |
19879 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
19880 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
19881 | ac_status=$? |
19882 | grep -v '^ *+' conftest.er1 >conftest.err |
19883 | rm -f conftest.er1 |
19884 | cat conftest.err >&5 |
19885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
19886 | (exit $ac_status); } && { |
19887 | test -z "$ac_c_werror_flag" || |
19888 | test ! -s conftest.err |
19889 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
19890 | ac_cv_header_time=yes |
19891 | else |
19892 | echo "$as_me: failed program was:" >&5 |
19893 | sed 's/^/| /' conftest.$ac_ext >&5 |
19894 | |
64ff59ba |
19895 | ac_cv_header_time=no |
d9898ee8 |
19896 | fi |
64ff59ba |
19897 | |
19898 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
19899 | fi |
64ff59ba |
19900 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
19901 | echo "${ECHO_T}$ac_cv_header_time" >&6; } |
d9898ee8 |
19902 | if test $ac_cv_header_time = yes; then |
19903 | |
19904 | cat >>confdefs.h <<\_ACEOF |
19905 | #define TIME_WITH_SYS_TIME 1 |
19906 | _ACEOF |
19907 | |
19908 | fi |
19909 | |
19910 | |
64ff59ba |
19911 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
19912 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } |
d9898ee8 |
19913 | if test "${ac_cv_c_const+set}" = set; then |
19914 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19915 | else |
19916 | cat >conftest.$ac_ext <<_ACEOF |
19917 | /* confdefs.h. */ |
19918 | _ACEOF |
19919 | cat confdefs.h >>conftest.$ac_ext |
19920 | cat >>conftest.$ac_ext <<_ACEOF |
19921 | /* end confdefs.h. */ |
19922 | |
19923 | int |
19924 | main () |
19925 | { |
19926 | /* FIXME: Include the comments suggested by Paul. */ |
19927 | #ifndef __cplusplus |
19928 | /* Ultrix mips cc rejects this. */ |
19929 | typedef int charset[2]; |
64ff59ba |
19930 | const charset cs; |
d9898ee8 |
19931 | /* SunOS 4.1.1 cc rejects this. */ |
64ff59ba |
19932 | char const *const *pcpcc; |
19933 | char **ppc; |
d9898ee8 |
19934 | /* NEC SVR4.0.2 mips cc rejects this. */ |
19935 | struct point {int x, y;}; |
19936 | static struct point const zero = {0,0}; |
19937 | /* AIX XL C 1.02.0.0 rejects this. |
19938 | It does not let you subtract one const X* pointer from another in |
19939 | an arm of an if-expression whose if-part is not a constant |
19940 | expression */ |
19941 | const char *g = "string"; |
64ff59ba |
19942 | pcpcc = &g + (g ? g-g : 0); |
d9898ee8 |
19943 | /* HPUX 7.0 cc rejects these. */ |
64ff59ba |
19944 | ++pcpcc; |
19945 | ppc = (char**) pcpcc; |
19946 | pcpcc = (char const *const *) ppc; |
d9898ee8 |
19947 | { /* SCO 3.2v4 cc rejects this. */ |
19948 | char *t; |
19949 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
19950 | |
19951 | *t++ = 0; |
64ff59ba |
19952 | if (s) return 0; |
d9898ee8 |
19953 | } |
19954 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
19955 | int x[] = {25, 17}; |
19956 | const int *foo = &x[0]; |
19957 | ++foo; |
19958 | } |
19959 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
19960 | typedef const int *iptr; |
19961 | iptr p = 0; |
19962 | ++p; |
19963 | } |
19964 | { /* AIX XL C 1.02.0.0 rejects this saying |
19965 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
19966 | struct s { int j; const int *ap[3]; }; |
19967 | struct s *b; b->j = 5; |
19968 | } |
19969 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
19970 | const int foo = 10; |
64ff59ba |
19971 | if (!foo) return 0; |
d9898ee8 |
19972 | } |
64ff59ba |
19973 | return !cs[0] && !zero.x; |
d9898ee8 |
19974 | #endif |
19975 | |
19976 | ; |
19977 | return 0; |
19978 | } |
19979 | _ACEOF |
19980 | rm -f conftest.$ac_objext |
64ff59ba |
19981 | if { (ac_try="$ac_compile" |
19982 | case "(($ac_try" in |
19983 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
19984 | *) ac_try_echo=$ac_try;; |
19985 | esac |
19986 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
19987 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
19988 | ac_status=$? |
19989 | grep -v '^ *+' conftest.er1 >conftest.err |
19990 | rm -f conftest.er1 |
19991 | cat conftest.err >&5 |
19992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
19993 | (exit $ac_status); } && { |
19994 | test -z "$ac_c_werror_flag" || |
19995 | test ! -s conftest.err |
19996 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
19997 | ac_cv_c_const=yes |
19998 | else |
19999 | echo "$as_me: failed program was:" >&5 |
20000 | sed 's/^/| /' conftest.$ac_ext >&5 |
20001 | |
64ff59ba |
20002 | ac_cv_c_const=no |
d9898ee8 |
20003 | fi |
64ff59ba |
20004 | |
20005 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
20006 | fi |
64ff59ba |
20007 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
20008 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
d9898ee8 |
20009 | if test $ac_cv_c_const = no; then |
20010 | |
20011 | cat >>confdefs.h <<\_ACEOF |
20012 | #define const |
20013 | _ACEOF |
20014 | |
20015 | fi |
20016 | |
64ff59ba |
20017 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
20018 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
d9898ee8 |
20019 | if test "${ac_cv_type_pid_t+set}" = set; then |
20020 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20021 | else |
20022 | cat >conftest.$ac_ext <<_ACEOF |
20023 | /* confdefs.h. */ |
20024 | _ACEOF |
20025 | cat confdefs.h >>conftest.$ac_ext |
20026 | cat >>conftest.$ac_ext <<_ACEOF |
20027 | /* end confdefs.h. */ |
20028 | $ac_includes_default |
64ff59ba |
20029 | typedef pid_t ac__type_new_; |
d9898ee8 |
20030 | int |
20031 | main () |
20032 | { |
64ff59ba |
20033 | if ((ac__type_new_ *) 0) |
d9898ee8 |
20034 | return 0; |
64ff59ba |
20035 | if (sizeof (ac__type_new_)) |
d9898ee8 |
20036 | return 0; |
20037 | ; |
20038 | return 0; |
20039 | } |
20040 | _ACEOF |
20041 | rm -f conftest.$ac_objext |
64ff59ba |
20042 | if { (ac_try="$ac_compile" |
20043 | case "(($ac_try" in |
20044 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20045 | *) ac_try_echo=$ac_try;; |
20046 | esac |
20047 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20048 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
20049 | ac_status=$? |
20050 | grep -v '^ *+' conftest.er1 >conftest.err |
20051 | rm -f conftest.er1 |
20052 | cat conftest.err >&5 |
20053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
20054 | (exit $ac_status); } && { |
20055 | test -z "$ac_c_werror_flag" || |
20056 | test ! -s conftest.err |
20057 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
20058 | ac_cv_type_pid_t=yes |
20059 | else |
20060 | echo "$as_me: failed program was:" >&5 |
20061 | sed 's/^/| /' conftest.$ac_ext >&5 |
20062 | |
64ff59ba |
20063 | ac_cv_type_pid_t=no |
d9898ee8 |
20064 | fi |
64ff59ba |
20065 | |
20066 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
20067 | fi |
64ff59ba |
20068 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
20069 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
d9898ee8 |
20070 | if test $ac_cv_type_pid_t = yes; then |
20071 | : |
20072 | else |
20073 | |
20074 | cat >>confdefs.h <<_ACEOF |
20075 | #define pid_t int |
20076 | _ACEOF |
20077 | |
20078 | fi |
20079 | |
64ff59ba |
20080 | { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
20081 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; } |
d9898ee8 |
20082 | if test "${ac_cv_type_uid_t+set}" = set; then |
20083 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20084 | else |
20085 | cat >conftest.$ac_ext <<_ACEOF |
20086 | /* confdefs.h. */ |
20087 | _ACEOF |
20088 | cat confdefs.h >>conftest.$ac_ext |
20089 | cat >>conftest.$ac_ext <<_ACEOF |
20090 | /* end confdefs.h. */ |
20091 | #include <sys/types.h> |
20092 | |
20093 | _ACEOF |
20094 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
20095 | $EGREP "uid_t" >/dev/null 2>&1; then |
20096 | ac_cv_type_uid_t=yes |
20097 | else |
20098 | ac_cv_type_uid_t=no |
20099 | fi |
20100 | rm -f conftest* |
20101 | |
20102 | fi |
64ff59ba |
20103 | { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
20104 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6; } |
d9898ee8 |
20105 | if test $ac_cv_type_uid_t = no; then |
20106 | |
20107 | cat >>confdefs.h <<\_ACEOF |
20108 | #define uid_t int |
20109 | _ACEOF |
20110 | |
20111 | |
20112 | cat >>confdefs.h <<\_ACEOF |
20113 | #define gid_t int |
20114 | _ACEOF |
20115 | |
20116 | fi |
20117 | |
64ff59ba |
20118 | { echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
20119 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } |
d9898ee8 |
20120 | if test "${ac_cv_type_signal+set}" = set; then |
20121 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20122 | else |
20123 | cat >conftest.$ac_ext <<_ACEOF |
20124 | /* confdefs.h. */ |
20125 | _ACEOF |
20126 | cat confdefs.h >>conftest.$ac_ext |
20127 | cat >>conftest.$ac_ext <<_ACEOF |
20128 | /* end confdefs.h. */ |
20129 | #include <sys/types.h> |
20130 | #include <signal.h> |
d9898ee8 |
20131 | |
20132 | int |
20133 | main () |
20134 | { |
64ff59ba |
20135 | return *(signal (0, 0)) (0) == 1; |
d9898ee8 |
20136 | ; |
20137 | return 0; |
20138 | } |
20139 | _ACEOF |
20140 | rm -f conftest.$ac_objext |
64ff59ba |
20141 | if { (ac_try="$ac_compile" |
20142 | case "(($ac_try" in |
20143 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20144 | *) ac_try_echo=$ac_try;; |
20145 | esac |
20146 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20147 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
20148 | ac_status=$? |
20149 | grep -v '^ *+' conftest.er1 >conftest.err |
20150 | rm -f conftest.er1 |
20151 | cat conftest.err >&5 |
20152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
20153 | (exit $ac_status); } && { |
20154 | test -z "$ac_c_werror_flag" || |
20155 | test ! -s conftest.err |
20156 | } && test -s conftest.$ac_objext; then |
20157 | ac_cv_type_signal=int |
d9898ee8 |
20158 | else |
20159 | echo "$as_me: failed program was:" >&5 |
20160 | sed 's/^/| /' conftest.$ac_ext >&5 |
20161 | |
64ff59ba |
20162 | ac_cv_type_signal=void |
d9898ee8 |
20163 | fi |
64ff59ba |
20164 | |
20165 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
20166 | fi |
64ff59ba |
20167 | { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
20168 | echo "${ECHO_T}$ac_cv_type_signal" >&6; } |
d9898ee8 |
20169 | |
20170 | cat >>confdefs.h <<_ACEOF |
20171 | #define RETSIGTYPE $ac_cv_type_signal |
20172 | _ACEOF |
20173 | |
20174 | |
20175 | |
20176 | |
64ff59ba |
20177 | { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5 |
20178 | echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; } |
d9898ee8 |
20179 | if test "${ac_cv_lib_crypt_crypt+set}" = set; then |
20180 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20181 | else |
20182 | ac_check_lib_save_LIBS=$LIBS |
20183 | LIBS="-lcrypt $LIBS" |
20184 | cat >conftest.$ac_ext <<_ACEOF |
20185 | /* confdefs.h. */ |
20186 | _ACEOF |
20187 | cat confdefs.h >>conftest.$ac_ext |
20188 | cat >>conftest.$ac_ext <<_ACEOF |
20189 | /* end confdefs.h. */ |
20190 | |
64ff59ba |
20191 | /* Override any GCC internal prototype to avoid an error. |
20192 | Use char because int might match the return type of a GCC |
20193 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
20194 | #ifdef __cplusplus |
20195 | extern "C" |
20196 | #endif |
d9898ee8 |
20197 | char crypt (); |
20198 | int |
20199 | main () |
20200 | { |
64ff59ba |
20201 | return crypt (); |
d9898ee8 |
20202 | ; |
20203 | return 0; |
20204 | } |
20205 | _ACEOF |
20206 | rm -f conftest.$ac_objext conftest$ac_exeext |
64ff59ba |
20207 | if { (ac_try="$ac_link" |
20208 | case "(($ac_try" in |
20209 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20210 | *) ac_try_echo=$ac_try;; |
20211 | esac |
20212 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20213 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
20214 | ac_status=$? |
20215 | grep -v '^ *+' conftest.er1 >conftest.err |
20216 | rm -f conftest.er1 |
20217 | cat conftest.err >&5 |
20218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
20219 | (exit $ac_status); } && { |
20220 | test -z "$ac_c_werror_flag" || |
20221 | test ! -s conftest.err |
20222 | } && test -s conftest$ac_exeext && |
20223 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
20224 | ac_cv_lib_crypt_crypt=yes |
20225 | else |
20226 | echo "$as_me: failed program was:" >&5 |
20227 | sed 's/^/| /' conftest.$ac_ext >&5 |
20228 | |
64ff59ba |
20229 | ac_cv_lib_crypt_crypt=no |
d9898ee8 |
20230 | fi |
64ff59ba |
20231 | |
20232 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
20233 | conftest$ac_exeext conftest.$ac_ext |
20234 | LIBS=$ac_check_lib_save_LIBS |
20235 | fi |
64ff59ba |
20236 | { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5 |
20237 | echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; } |
d9898ee8 |
20238 | if test $ac_cv_lib_crypt_crypt = yes; then |
20239 | CRYPTLIBS="-lcrypt" |
20240 | fi |
20241 | |
20242 | saveLIBS="$LIBS" |
20243 | LIBS="$CRYPTLIBS $LIBS" |
64ff59ba |
20244 | { echo "$as_me:$LINENO: checking for crypt" >&5 |
20245 | echo $ECHO_N "checking for crypt... $ECHO_C" >&6; } |
d9898ee8 |
20246 | if test "${ac_cv_func_crypt+set}" = set; then |
20247 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20248 | else |
20249 | cat >conftest.$ac_ext <<_ACEOF |
20250 | /* confdefs.h. */ |
20251 | _ACEOF |
20252 | cat confdefs.h >>conftest.$ac_ext |
20253 | cat >>conftest.$ac_ext <<_ACEOF |
20254 | /* end confdefs.h. */ |
20255 | /* Define crypt to an innocuous variant, in case <limits.h> declares crypt. |
20256 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
20257 | #define crypt innocuous_crypt |
20258 | |
20259 | /* System header to define __stub macros and hopefully few prototypes, |
20260 | which can conflict with char crypt (); below. |
20261 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
20262 | <limits.h> exists even on freestanding compilers. */ |
20263 | |
20264 | #ifdef __STDC__ |
20265 | # include <limits.h> |
20266 | #else |
20267 | # include <assert.h> |
20268 | #endif |
20269 | |
20270 | #undef crypt |
20271 | |
64ff59ba |
20272 | /* Override any GCC internal prototype to avoid an error. |
20273 | Use char because int might match the return type of a GCC |
20274 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
20275 | #ifdef __cplusplus |
20276 | extern "C" |
d9898ee8 |
20277 | #endif |
d9898ee8 |
20278 | char crypt (); |
20279 | /* The GNU C library defines this for functions which it implements |
20280 | to always fail with ENOSYS. Some functions are actually named |
20281 | something starting with __ and the normal name is an alias. */ |
64ff59ba |
20282 | #if defined __stub_crypt || defined __stub___crypt |
d9898ee8 |
20283 | choke me |
d9898ee8 |
20284 | #endif |
20285 | |
20286 | int |
20287 | main () |
20288 | { |
64ff59ba |
20289 | return crypt (); |
d9898ee8 |
20290 | ; |
20291 | return 0; |
20292 | } |
20293 | _ACEOF |
20294 | rm -f conftest.$ac_objext conftest$ac_exeext |
64ff59ba |
20295 | if { (ac_try="$ac_link" |
20296 | case "(($ac_try" in |
20297 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20298 | *) ac_try_echo=$ac_try;; |
20299 | esac |
20300 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20301 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
20302 | ac_status=$? |
20303 | grep -v '^ *+' conftest.er1 >conftest.err |
20304 | rm -f conftest.er1 |
20305 | cat conftest.err >&5 |
20306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
20307 | (exit $ac_status); } && { |
20308 | test -z "$ac_c_werror_flag" || |
20309 | test ! -s conftest.err |
20310 | } && test -s conftest$ac_exeext && |
20311 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
20312 | ac_cv_func_crypt=yes |
20313 | else |
20314 | echo "$as_me: failed program was:" >&5 |
20315 | sed 's/^/| /' conftest.$ac_ext >&5 |
20316 | |
64ff59ba |
20317 | ac_cv_func_crypt=no |
d9898ee8 |
20318 | fi |
64ff59ba |
20319 | |
20320 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
20321 | conftest$ac_exeext conftest.$ac_ext |
20322 | fi |
64ff59ba |
20323 | { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5 |
20324 | echo "${ECHO_T}$ac_cv_func_crypt" >&6; } |
d9898ee8 |
20325 | if test $ac_cv_func_crypt = yes; then |
20326 | |
20327 | cat >>confdefs.h <<_ACEOF |
20328 | #define HAVE_CRYPT 1 |
20329 | _ACEOF |
20330 | |
20331 | fi |
20332 | |
20333 | LIBS="$saveLIBS" |
64ff59ba |
20334 | { echo "$as_me:$LINENO: checking for crypt() prototype" >&5 |
20335 | echo $ECHO_N "checking for crypt() prototype... $ECHO_C" >&6; } |
d9898ee8 |
20336 | if test "${userdb_cv_NEED_CRYPT_PROTOTYPE+set}" = set; then |
20337 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20338 | else |
20339 | cat >conftest.$ac_ext <<_ACEOF |
20340 | /* confdefs.h. */ |
20341 | _ACEOF |
20342 | cat confdefs.h >>conftest.$ac_ext |
20343 | cat >>conftest.$ac_ext <<_ACEOF |
20344 | /* end confdefs.h. */ |
20345 | |
20346 | #if HAVE_CRYPT_H |
20347 | #include <crypt.h> |
20348 | #endif |
20349 | #if HAVE_UNISTD_H |
20350 | #include <unistd.h> |
20351 | #endif |
20352 | int crypt(int, int); |
20353 | |
20354 | |
20355 | int |
20356 | main () |
20357 | { |
20358 | |
20359 | ; |
20360 | return 0; |
20361 | } |
20362 | _ACEOF |
20363 | rm -f conftest.$ac_objext |
64ff59ba |
20364 | if { (ac_try="$ac_compile" |
20365 | case "(($ac_try" in |
20366 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20367 | *) ac_try_echo=$ac_try;; |
20368 | esac |
20369 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20370 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
20371 | ac_status=$? |
20372 | grep -v '^ *+' conftest.er1 >conftest.err |
20373 | rm -f conftest.er1 |
20374 | cat conftest.err >&5 |
20375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
20376 | (exit $ac_status); } && { |
20377 | test -z "$ac_c_werror_flag" || |
20378 | test ! -s conftest.err |
20379 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
20380 | userdb_cv_NEED_CRYPT_PROTOTYPE=1 |
20381 | else |
20382 | echo "$as_me: failed program was:" >&5 |
20383 | sed 's/^/| /' conftest.$ac_ext >&5 |
20384 | |
64ff59ba |
20385 | userdb_cv_NEED_CRYPT_PROTOTYPE=0 |
d9898ee8 |
20386 | fi |
64ff59ba |
20387 | |
20388 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
20389 | |
20390 | |
20391 | fi |
64ff59ba |
20392 | { echo "$as_me:$LINENO: result: $userdb_cv_NEED_CRYPT_PROTOTYPE" >&5 |
20393 | echo "${ECHO_T}$userdb_cv_NEED_CRYPT_PROTOTYPE" >&6; } |
d9898ee8 |
20394 | |
20395 | |
20396 | cat >>confdefs.h <<_ACEOF |
20397 | #define NEED_CRYPT_PROTOTYPE $userdb_cv_NEED_CRYPT_PROTOTYPE |
20398 | _ACEOF |
20399 | |
20400 | |
20401 | |
20402 | |
20403 | |
20404 | for ac_func in isatty gettimeofday |
20405 | do |
20406 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
64ff59ba |
20407 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
20408 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
20409 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
20410 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20411 | else |
20412 | cat >conftest.$ac_ext <<_ACEOF |
20413 | /* confdefs.h. */ |
20414 | _ACEOF |
20415 | cat confdefs.h >>conftest.$ac_ext |
20416 | cat >>conftest.$ac_ext <<_ACEOF |
20417 | /* end confdefs.h. */ |
20418 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
20419 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
20420 | #define $ac_func innocuous_$ac_func |
20421 | |
20422 | /* System header to define __stub macros and hopefully few prototypes, |
20423 | which can conflict with char $ac_func (); below. |
20424 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
20425 | <limits.h> exists even on freestanding compilers. */ |
20426 | |
20427 | #ifdef __STDC__ |
20428 | # include <limits.h> |
20429 | #else |
20430 | # include <assert.h> |
20431 | #endif |
20432 | |
20433 | #undef $ac_func |
20434 | |
64ff59ba |
20435 | /* Override any GCC internal prototype to avoid an error. |
20436 | Use char because int might match the return type of a GCC |
20437 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
20438 | #ifdef __cplusplus |
20439 | extern "C" |
d9898ee8 |
20440 | #endif |
d9898ee8 |
20441 | char $ac_func (); |
20442 | /* The GNU C library defines this for functions which it implements |
20443 | to always fail with ENOSYS. Some functions are actually named |
20444 | something starting with __ and the normal name is an alias. */ |
64ff59ba |
20445 | #if defined __stub_$ac_func || defined __stub___$ac_func |
d9898ee8 |
20446 | choke me |
d9898ee8 |
20447 | #endif |
20448 | |
20449 | int |
20450 | main () |
20451 | { |
64ff59ba |
20452 | return $ac_func (); |
d9898ee8 |
20453 | ; |
20454 | return 0; |
20455 | } |
20456 | _ACEOF |
20457 | rm -f conftest.$ac_objext conftest$ac_exeext |
64ff59ba |
20458 | if { (ac_try="$ac_link" |
20459 | case "(($ac_try" in |
20460 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20461 | *) ac_try_echo=$ac_try;; |
20462 | esac |
20463 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20464 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
20465 | ac_status=$? |
20466 | grep -v '^ *+' conftest.er1 >conftest.err |
20467 | rm -f conftest.er1 |
20468 | cat conftest.err >&5 |
20469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
20470 | (exit $ac_status); } && { |
20471 | test -z "$ac_c_werror_flag" || |
20472 | test ! -s conftest.err |
20473 | } && test -s conftest$ac_exeext && |
20474 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
20475 | eval "$as_ac_var=yes" |
20476 | else |
20477 | echo "$as_me: failed program was:" >&5 |
20478 | sed 's/^/| /' conftest.$ac_ext >&5 |
20479 | |
64ff59ba |
20480 | eval "$as_ac_var=no" |
d9898ee8 |
20481 | fi |
64ff59ba |
20482 | |
20483 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
20484 | conftest$ac_exeext conftest.$ac_ext |
20485 | fi |
64ff59ba |
20486 | ac_res=`eval echo '${'$as_ac_var'}'` |
20487 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
20488 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
20489 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
20490 | cat >>confdefs.h <<_ACEOF |
20491 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
20492 | _ACEOF |
20493 | |
20494 | fi |
20495 | done |
20496 | |
20497 | |
20498 | |
64ff59ba |
20499 | # Check whether --with-random was given. |
d9898ee8 |
20500 | if test "${with_random+set}" = set; then |
64ff59ba |
20501 | withval=$with_random; random="$withval" |
d9898ee8 |
20502 | else |
20503 | random="y" |
64ff59ba |
20504 | fi |
20505 | |
d9898ee8 |
20506 | |
20507 | case "$random" in |
20508 | /*) |
20509 | ;; |
20510 | y*|1*) |
64ff59ba |
20511 | { echo "$as_me:$LINENO: checking for random source" >&5 |
20512 | echo $ECHO_N "checking for random source... $ECHO_C" >&6; } |
d9898ee8 |
20513 | if test "${userdb_cv_RANDOM+set}" = set; then |
20514 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20515 | else |
20516 | if test -c /dev/urandom |
20517 | then |
20518 | userdb_cv_RANDOM=/dev/urandom |
20519 | else |
20520 | if test -c /dev/random |
20521 | then |
20522 | userdb_cv_RANDOM=/dev/random |
20523 | else |
20524 | userdb_cv_RANDOM="none" |
20525 | fi |
20526 | fi |
20527 | |
20528 | fi |
64ff59ba |
20529 | { echo "$as_me:$LINENO: result: $userdb_cv_RANDOM" >&5 |
20530 | echo "${ECHO_T}$userdb_cv_RANDOM" >&6; } |
d9898ee8 |
20531 | random="$userdb_cv_RANDOM" |
20532 | ;; |
20533 | *) |
20534 | random="none" |
20535 | ;; |
20536 | esac |
20537 | |
20538 | if test "$random" != "none" |
20539 | then |
20540 | |
20541 | cat >>confdefs.h <<_ACEOF |
20542 | #define RANDOM "$random" |
20543 | _ACEOF |
20544 | |
20545 | fi |
20546 | |
64ff59ba |
20547 | if test -d ${srcdir}/../docbook; then |
d9898ee8 |
20548 | HAVE_SGML_TRUE= |
20549 | HAVE_SGML_FALSE='#' |
20550 | else |
20551 | HAVE_SGML_TRUE='#' |
20552 | HAVE_SGML_FALSE= |
20553 | fi |
20554 | |
20555 | |
64ff59ba |
20556 | ac_config_files="$ac_config_files Makefile userdb.pl makeuserdb pw2userdb vchkpw2userdb" |
20557 | |
d9898ee8 |
20558 | cat >confcache <<\_ACEOF |
20559 | # This file is a shell script that caches the results of configure |
20560 | # tests run on this system so they can be shared between configure |
20561 | # scripts and configure runs, see configure's option --config-cache. |
20562 | # It is not useful on other systems. If it contains results you don't |
20563 | # want to keep, you may remove or edit it. |
20564 | # |
20565 | # config.status only pays attention to the cache file if you give it |
20566 | # the --recheck option to rerun configure. |
20567 | # |
20568 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
20569 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
20570 | # following values. |
20571 | |
20572 | _ACEOF |
20573 | |
20574 | # The following way of writing the cache mishandles newlines in values, |
20575 | # but we know of no workaround that is simple, portable, and efficient. |
64ff59ba |
20576 | # So, we kill variables containing newlines. |
d9898ee8 |
20577 | # Ultrix sh set writes to stderr and can't be redirected directly, |
20578 | # and sets the high bit in the cache file unless we assign to the vars. |
64ff59ba |
20579 | ( |
20580 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
20581 | eval ac_val=\$$ac_var |
20582 | case $ac_val in #( |
20583 | *${as_nl}*) |
20584 | case $ac_var in #( |
20585 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
20586 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
20587 | esac |
20588 | case $ac_var in #( |
20589 | _ | IFS | as_nl) ;; #( |
20590 | *) $as_unset $ac_var ;; |
20591 | esac ;; |
20592 | esac |
20593 | done |
20594 | |
d9898ee8 |
20595 | (set) 2>&1 | |
64ff59ba |
20596 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
20597 | *${as_nl}ac_space=\ *) |
d9898ee8 |
20598 | # `set' does not quote correctly, so add quotes (double-quote |
20599 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
20600 | sed -n \ |
20601 | "s/'/'\\\\''/g; |
20602 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
64ff59ba |
20603 | ;; #( |
d9898ee8 |
20604 | *) |
20605 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
64ff59ba |
20606 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
d9898ee8 |
20607 | ;; |
64ff59ba |
20608 | esac | |
20609 | sort |
20610 | ) | |
d9898ee8 |
20611 | sed ' |
64ff59ba |
20612 | /^ac_cv_env_/b end |
d9898ee8 |
20613 | t clear |
64ff59ba |
20614 | :clear |
d9898ee8 |
20615 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
20616 | t end |
64ff59ba |
20617 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
20618 | :end' >>confcache |
20619 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
20620 | if test -w "$cache_file"; then |
20621 | test "x$cache_file" != "x/dev/null" && |
20622 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
20623 | echo "$as_me: updating cache $cache_file" >&6;} |
d9898ee8 |
20624 | cat confcache >$cache_file |
20625 | else |
64ff59ba |
20626 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
20627 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
d9898ee8 |
20628 | fi |
20629 | fi |
20630 | rm -f confcache |
20631 | |
20632 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
20633 | # Let make expand exec_prefix. |
20634 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
20635 | |
d9898ee8 |
20636 | # Transform confdefs.h into DEFS. |
20637 | # Protect against shell expansion while executing Makefile rules. |
20638 | # Protect against Makefile macro expansion. |
20639 | # |
20640 | # If the first sed substitution is executed (which looks for macros that |
64ff59ba |
20641 | # take arguments), then branch to the quote section. Otherwise, |
d9898ee8 |
20642 | # look for a macro that doesn't take arguments. |
64ff59ba |
20643 | ac_script=' |
d9898ee8 |
20644 | t clear |
64ff59ba |
20645 | :clear |
20646 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g |
d9898ee8 |
20647 | t quote |
64ff59ba |
20648 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
d9898ee8 |
20649 | t quote |
64ff59ba |
20650 | b any |
20651 | :quote |
20652 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g |
20653 | s/\[/\\&/g |
20654 | s/\]/\\&/g |
20655 | s/\$/$$/g |
20656 | H |
20657 | :any |
20658 | ${ |
20659 | g |
20660 | s/^\n// |
20661 | s/\n/ /g |
20662 | p |
20663 | } |
20664 | ' |
20665 | DEFS=`sed -n "$ac_script" confdefs.h` |
d9898ee8 |
20666 | |
20667 | |
20668 | ac_libobjs= |
20669 | ac_ltlibobjs= |
20670 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
20671 | # 1. Remove the extension, and $U if already installed. |
64ff59ba |
20672 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
20673 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
20674 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
20675 | # will be set to the directory where LIBOBJS objects are built. |
20676 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
20677 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
d9898ee8 |
20678 | done |
20679 | LIBOBJS=$ac_libobjs |
20680 | |
20681 | LTLIBOBJS=$ac_ltlibobjs |
20682 | |
20683 | |
20684 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
20685 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
20686 | Usually this means the macro was only invoked conditionally." >&5 |
20687 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
20688 | Usually this means the macro was only invoked conditionally." >&2;} |
20689 | { (exit 1); exit 1; }; } |
20690 | fi |
20691 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
20692 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
20693 | Usually this means the macro was only invoked conditionally." >&5 |
20694 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
20695 | Usually this means the macro was only invoked conditionally." >&2;} |
20696 | { (exit 1); exit 1; }; } |
20697 | fi |
20698 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
20699 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
20700 | Usually this means the macro was only invoked conditionally." >&5 |
20701 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
20702 | Usually this means the macro was only invoked conditionally." >&2;} |
20703 | { (exit 1); exit 1; }; } |
20704 | fi |
20705 | if test -z "${HAVE_SGML_TRUE}" && test -z "${HAVE_SGML_FALSE}"; then |
20706 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_SGML\" was never defined. |
20707 | Usually this means the macro was only invoked conditionally." >&5 |
20708 | echo "$as_me: error: conditional \"HAVE_SGML\" was never defined. |
20709 | Usually this means the macro was only invoked conditionally." >&2;} |
20710 | { (exit 1); exit 1; }; } |
20711 | fi |
20712 | |
20713 | : ${CONFIG_STATUS=./config.status} |
20714 | ac_clean_files_save=$ac_clean_files |
20715 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
20716 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
20717 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
20718 | cat >$CONFIG_STATUS <<_ACEOF |
20719 | #! $SHELL |
20720 | # Generated by $as_me. |
20721 | # Run this file to recreate the current configuration. |
20722 | # Compiler output produced by configure, useful for debugging |
20723 | # configure, is in config.log if it exists. |
20724 | |
20725 | debug=false |
20726 | ac_cs_recheck=false |
20727 | ac_cs_silent=false |
20728 | SHELL=\${CONFIG_SHELL-$SHELL} |
20729 | _ACEOF |
20730 | |
20731 | cat >>$CONFIG_STATUS <<\_ACEOF |
20732 | ## --------------------- ## |
20733 | ## M4sh Initialization. ## |
20734 | ## --------------------- ## |
20735 | |
64ff59ba |
20736 | # Be more Bourne compatible |
20737 | DUALCASE=1; export DUALCASE # for MKS sh |
d9898ee8 |
20738 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
20739 | emulate sh |
20740 | NULLCMD=: |
20741 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
20742 | # is contrary to our usage. Disable this feature. |
20743 | alias -g '${1+"$@"}'='"$@"' |
64ff59ba |
20744 | setopt NO_GLOB_SUBST |
d9898ee8 |
20745 | else |
64ff59ba |
20746 | case `(set -o) 2>/dev/null` in |
20747 | *posix*) set -o posix ;; |
20748 | esac |
d9898ee8 |
20749 | |
d9898ee8 |
20750 | fi |
20751 | |
20752 | |
d9898ee8 |
20753 | |
20754 | |
64ff59ba |
20755 | # PATH needs CR |
d9898ee8 |
20756 | # Avoid depending upon Character Ranges. |
20757 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
20758 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
20759 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
20760 | as_cr_digits='0123456789' |
20761 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
20762 | |
20763 | # The user is always right. |
20764 | if test "${PATH_SEPARATOR+set}" != set; then |
20765 | echo "#! /bin/sh" >conf$$.sh |
20766 | echo "exit 0" >>conf$$.sh |
20767 | chmod +x conf$$.sh |
20768 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
20769 | PATH_SEPARATOR=';' |
20770 | else |
20771 | PATH_SEPARATOR=: |
20772 | fi |
20773 | rm -f conf$$.sh |
20774 | fi |
20775 | |
64ff59ba |
20776 | # Support unset when possible. |
20777 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
20778 | as_unset=unset |
20779 | else |
20780 | as_unset=false |
20781 | fi |
20782 | |
20783 | |
20784 | # IFS |
20785 | # We need space, tab and new line, in precisely that order. Quoting is |
20786 | # there to prevent editors from complaining about space-tab. |
20787 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
20788 | # splitting by setting IFS to empty value.) |
20789 | as_nl=' |
20790 | ' |
20791 | IFS=" "" $as_nl" |
20792 | |
20793 | # Find who we are. Look in the path if we contain no directory separator. |
20794 | case $0 in |
20795 | *[\\/]* ) as_myself=$0 ;; |
20796 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
d9898ee8 |
20797 | for as_dir in $PATH |
20798 | do |
20799 | IFS=$as_save_IFS |
20800 | test -z "$as_dir" && as_dir=. |
20801 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
20802 | done |
64ff59ba |
20803 | IFS=$as_save_IFS |
d9898ee8 |
20804 | |
64ff59ba |
20805 | ;; |
20806 | esac |
20807 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
20808 | # in which case we are not to be found in the path. |
20809 | if test "x$as_myself" = x; then |
20810 | as_myself=$0 |
20811 | fi |
20812 | if test ! -f "$as_myself"; then |
20813 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
20814 | { (exit 1); exit 1; } |
20815 | fi |
20816 | |
20817 | # Work around bugs in pre-3.0 UWIN ksh. |
20818 | for as_var in ENV MAIL MAILPATH |
20819 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
20820 | done |
20821 | PS1='$ ' |
20822 | PS2='> ' |
20823 | PS4='+ ' |
20824 | |
20825 | # NLS nuisances. |
20826 | for as_var in \ |
20827 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
20828 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
20829 | LC_TELEPHONE LC_TIME |
d9898ee8 |
20830 | do |
64ff59ba |
20831 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
20832 | eval $as_var=C; export $as_var |
20833 | else |
20834 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
20835 | fi |
20836 | done |
20837 | |
20838 | # Required to use basename. |
20839 | if expr a : '\(a\)' >/dev/null 2>&1 && |
20840 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
20841 | as_expr=expr |
20842 | else |
20843 | as_expr=false |
20844 | fi |
20845 | |
20846 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
20847 | as_basename=basename |
20848 | else |
20849 | as_basename=false |
20850 | fi |
20851 | |
20852 | |
20853 | # Name of the executable. |
20854 | as_me=`$as_basename -- "$0" || |
20855 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
20856 | X"$0" : 'X\(//\)$' \| \ |
20857 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
20858 | echo X/"$0" | |
20859 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
20860 | s//\1/ |
20861 | q |
20862 | } |
20863 | /^X\/\(\/\/\)$/{ |
20864 | s//\1/ |
20865 | q |
20866 | } |
20867 | /^X\/\(\/\).*/{ |
20868 | s//\1/ |
20869 | q |
20870 | } |
20871 | s/.*/./; q'` |
20872 | |
20873 | # CDPATH. |
20874 | $as_unset CDPATH |
20875 | |
20876 | |
20877 | |
d9898ee8 |
20878 | as_lineno_1=$LINENO |
20879 | as_lineno_2=$LINENO |
d9898ee8 |
20880 | test "x$as_lineno_1" != "x$as_lineno_2" && |
64ff59ba |
20881 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
d9898ee8 |
20882 | |
20883 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
20884 | # uniformly replaced by the line number. The first 'sed' inserts a |
64ff59ba |
20885 | # line-number line after each line using $LINENO; the second 'sed' |
20886 | # does the real work. The second script uses 'N' to pair each |
20887 | # line-number line with the line containing $LINENO, and appends |
20888 | # trailing '-' during substitution so that $LINENO is not a special |
20889 | # case at line end. |
d9898ee8 |
20890 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
64ff59ba |
20891 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
20892 | # E. McMahon (1931-1989) for sed's syntax. :-) |
20893 | sed -n ' |
20894 | p |
20895 | /[$]LINENO/= |
20896 | ' <$as_myself | |
d9898ee8 |
20897 | sed ' |
64ff59ba |
20898 | s/[$]LINENO.*/&-/ |
20899 | t lineno |
20900 | b |
20901 | :lineno |
d9898ee8 |
20902 | N |
64ff59ba |
20903 | :loop |
20904 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
d9898ee8 |
20905 | t loop |
64ff59ba |
20906 | s/-\n.*// |
d9898ee8 |
20907 | ' >$as_me.lineno && |
64ff59ba |
20908 | chmod +x "$as_me.lineno" || |
20909 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
d9898ee8 |
20910 | { (exit 1); exit 1; }; } |
20911 | |
20912 | # Don't try to exec as it changes $[0], causing all sort of problems |
20913 | # (the dirname of $[0] is not the place where we might find the |
64ff59ba |
20914 | # original and so on. Autoconf is especially sensitive to this). |
20915 | . "./$as_me.lineno" |
d9898ee8 |
20916 | # Exit status is that of the last command. |
20917 | exit |
20918 | } |
20919 | |
20920 | |
64ff59ba |
20921 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
20922 | as_dirname=dirname |
20923 | else |
20924 | as_dirname=false |
20925 | fi |
20926 | |
20927 | ECHO_C= ECHO_N= ECHO_T= |
20928 | case `echo -n x` in |
20929 | -n*) |
20930 | case `echo 'x\c'` in |
20931 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
20932 | *) ECHO_C='\c';; |
20933 | esac;; |
20934 | *) |
20935 | ECHO_N='-n';; |
d9898ee8 |
20936 | esac |
20937 | |
64ff59ba |
20938 | if expr a : '\(a\)' >/dev/null 2>&1 && |
20939 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
d9898ee8 |
20940 | as_expr=expr |
20941 | else |
20942 | as_expr=false |
20943 | fi |
20944 | |
20945 | rm -f conf$$ conf$$.exe conf$$.file |
64ff59ba |
20946 | if test -d conf$$.dir; then |
20947 | rm -f conf$$.dir/conf$$.file |
20948 | else |
20949 | rm -f conf$$.dir |
20950 | mkdir conf$$.dir |
20951 | fi |
d9898ee8 |
20952 | echo >conf$$.file |
20953 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
64ff59ba |
20954 | as_ln_s='ln -s' |
20955 | # ... but there are two gotchas: |
20956 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
20957 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
20958 | # In both cases, we have to default to `cp -p'. |
20959 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
d9898ee8 |
20960 | as_ln_s='cp -p' |
d9898ee8 |
20961 | elif ln conf$$.file conf$$ 2>/dev/null; then |
20962 | as_ln_s=ln |
20963 | else |
20964 | as_ln_s='cp -p' |
20965 | fi |
64ff59ba |
20966 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
20967 | rmdir conf$$.dir 2>/dev/null |
d9898ee8 |
20968 | |
20969 | if mkdir -p . 2>/dev/null; then |
20970 | as_mkdir_p=: |
20971 | else |
20972 | test -d ./-p && rmdir ./-p |
20973 | as_mkdir_p=false |
20974 | fi |
20975 | |
64ff59ba |
20976 | if test -x / >/dev/null 2>&1; then |
20977 | as_test_x='test -x' |
20978 | else |
20979 | if ls -dL / >/dev/null 2>&1; then |
20980 | as_ls_L_option=L |
20981 | else |
20982 | as_ls_L_option= |
20983 | fi |
20984 | as_test_x=' |
20985 | eval sh -c '\'' |
20986 | if test -d "$1"; then |
20987 | test -d "$1/."; |
20988 | else |
20989 | case $1 in |
20990 | -*)set "./$1";; |
20991 | esac; |
20992 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
20993 | ???[sx]*):;;*)false;;esac;fi |
20994 | '\'' sh |
20995 | ' |
20996 | fi |
20997 | as_executable_p=$as_test_x |
d9898ee8 |
20998 | |
20999 | # Sed expression to map a string onto a valid CPP name. |
21000 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
21001 | |
21002 | # Sed expression to map a string onto a valid variable name. |
21003 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
21004 | |
21005 | |
d9898ee8 |
21006 | exec 6>&1 |
21007 | |
64ff59ba |
21008 | # Save the log message, to keep $[0] and so on meaningful, and to |
d9898ee8 |
21009 | # report actual input values of CONFIG_FILES etc. instead of their |
64ff59ba |
21010 | # values after options handling. |
21011 | ac_log=" |
d9898ee8 |
21012 | This file was extended by libuserdb $as_me 0.10, which was |
64ff59ba |
21013 | generated by GNU Autoconf 2.61. Invocation command line was |
d9898ee8 |
21014 | |
21015 | CONFIG_FILES = $CONFIG_FILES |
21016 | CONFIG_HEADERS = $CONFIG_HEADERS |
21017 | CONFIG_LINKS = $CONFIG_LINKS |
21018 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
21019 | $ $0 $@ |
21020 | |
64ff59ba |
21021 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
21022 | " |
21023 | |
d9898ee8 |
21024 | _ACEOF |
21025 | |
64ff59ba |
21026 | cat >>$CONFIG_STATUS <<_ACEOF |
d9898ee8 |
21027 | # Files that config.status was made for. |
64ff59ba |
21028 | config_files="$ac_config_files" |
21029 | config_commands="$ac_config_commands" |
d9898ee8 |
21030 | |
64ff59ba |
21031 | _ACEOF |
d9898ee8 |
21032 | |
21033 | cat >>$CONFIG_STATUS <<\_ACEOF |
d9898ee8 |
21034 | ac_cs_usage="\ |
21035 | \`$as_me' instantiates files from templates according to the |
21036 | current configuration. |
21037 | |
21038 | Usage: $0 [OPTIONS] [FILE]... |
21039 | |
21040 | -h, --help print this help, then exit |
64ff59ba |
21041 | -V, --version print version number and configuration settings, then exit |
d9898ee8 |
21042 | -q, --quiet do not print progress messages |
21043 | -d, --debug don't remove temporary files |
21044 | --recheck update $as_me by reconfiguring in the same conditions |
21045 | --file=FILE[:TEMPLATE] |
21046 | instantiate the configuration file FILE |
21047 | |
21048 | Configuration files: |
21049 | $config_files |
21050 | |
21051 | Configuration commands: |
21052 | $config_commands |
21053 | |
21054 | Report bugs to <bug-autoconf@gnu.org>." |
d9898ee8 |
21055 | |
64ff59ba |
21056 | _ACEOF |
d9898ee8 |
21057 | cat >>$CONFIG_STATUS <<_ACEOF |
21058 | ac_cs_version="\\ |
21059 | libuserdb config.status 0.10 |
64ff59ba |
21060 | configured by $0, generated by GNU Autoconf 2.61, |
21061 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
d9898ee8 |
21062 | |
64ff59ba |
21063 | Copyright (C) 2006 Free Software Foundation, Inc. |
d9898ee8 |
21064 | This config.status script is free software; the Free Software Foundation |
21065 | gives unlimited permission to copy, distribute and modify it." |
64ff59ba |
21066 | |
21067 | ac_pwd='$ac_pwd' |
21068 | srcdir='$srcdir' |
21069 | INSTALL='$INSTALL' |
21070 | MKDIR_P='$MKDIR_P' |
d9898ee8 |
21071 | _ACEOF |
21072 | |
21073 | cat >>$CONFIG_STATUS <<\_ACEOF |
21074 | # If no file are specified by the user, then we need to provide default |
21075 | # value. By we need to know if files were specified by the user. |
21076 | ac_need_defaults=: |
21077 | while test $# != 0 |
21078 | do |
21079 | case $1 in |
21080 | --*=*) |
64ff59ba |
21081 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
21082 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
d9898ee8 |
21083 | ac_shift=: |
21084 | ;; |
64ff59ba |
21085 | *) |
d9898ee8 |
21086 | ac_option=$1 |
21087 | ac_optarg=$2 |
21088 | ac_shift=shift |
21089 | ;; |
d9898ee8 |
21090 | esac |
21091 | |
21092 | case $ac_option in |
21093 | # Handling of the options. |
d9898ee8 |
21094 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
21095 | ac_cs_recheck=: ;; |
64ff59ba |
21096 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
21097 | echo "$ac_cs_version"; exit ;; |
21098 | --debug | --debu | --deb | --de | --d | -d ) |
d9898ee8 |
21099 | debug=: ;; |
21100 | --file | --fil | --fi | --f ) |
21101 | $ac_shift |
21102 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
21103 | ac_need_defaults=false;; |
64ff59ba |
21104 | --he | --h | --help | --hel | -h ) |
21105 | echo "$ac_cs_usage"; exit ;; |
d9898ee8 |
21106 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
21107 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
21108 | ac_cs_silent=: ;; |
21109 | |
21110 | # This is an error. |
64ff59ba |
21111 | -*) { echo "$as_me: error: unrecognized option: $1 |
21112 | Try \`$0 --help' for more information." >&2 |
d9898ee8 |
21113 | { (exit 1); exit 1; }; } ;; |
21114 | |
64ff59ba |
21115 | *) ac_config_targets="$ac_config_targets $1" |
21116 | ac_need_defaults=false ;; |
d9898ee8 |
21117 | |
21118 | esac |
21119 | shift |
21120 | done |
21121 | |
21122 | ac_configure_extra_args= |
21123 | |
21124 | if $ac_cs_silent; then |
21125 | exec 6>/dev/null |
21126 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
21127 | fi |
21128 | |
21129 | _ACEOF |
21130 | cat >>$CONFIG_STATUS <<_ACEOF |
21131 | if \$ac_cs_recheck; then |
64ff59ba |
21132 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
21133 | CONFIG_SHELL=$SHELL |
21134 | export CONFIG_SHELL |
21135 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
d9898ee8 |
21136 | fi |
21137 | |
21138 | _ACEOF |
64ff59ba |
21139 | cat >>$CONFIG_STATUS <<\_ACEOF |
21140 | exec 5>>config.log |
21141 | { |
21142 | echo |
21143 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
21144 | ## Running $as_me. ## |
21145 | _ASBOX |
21146 | echo "$ac_log" |
21147 | } >&5 |
d9898ee8 |
21148 | |
64ff59ba |
21149 | _ACEOF |
d9898ee8 |
21150 | cat >>$CONFIG_STATUS <<_ACEOF |
21151 | # |
64ff59ba |
21152 | # INIT-COMMANDS |
d9898ee8 |
21153 | # |
d9898ee8 |
21154 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
21155 | |
21156 | _ACEOF |
21157 | |
d9898ee8 |
21158 | cat >>$CONFIG_STATUS <<\_ACEOF |
64ff59ba |
21159 | |
21160 | # Handling of arguments. |
d9898ee8 |
21161 | for ac_config_target in $ac_config_targets |
21162 | do |
64ff59ba |
21163 | case $ac_config_target in |
21164 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
21165 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
21166 | "userdb.pl") CONFIG_FILES="$CONFIG_FILES userdb.pl" ;; |
21167 | "makeuserdb") CONFIG_FILES="$CONFIG_FILES makeuserdb" ;; |
21168 | "pw2userdb") CONFIG_FILES="$CONFIG_FILES pw2userdb" ;; |
21169 | "vchkpw2userdb") CONFIG_FILES="$CONFIG_FILES vchkpw2userdb" ;; |
21170 | |
d9898ee8 |
21171 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
21172 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
21173 | { (exit 1); exit 1; }; };; |
21174 | esac |
21175 | done |
21176 | |
64ff59ba |
21177 | |
d9898ee8 |
21178 | # If the user did not use the arguments to specify the items to instantiate, |
21179 | # then the envvar interface is used. Set only those that are not. |
21180 | # We use the long form for the default assignment because of an extremely |
21181 | # bizarre bug on SunOS 4.1.3. |
21182 | if $ac_need_defaults; then |
21183 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
21184 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
21185 | fi |
21186 | |
21187 | # Have a temporary directory for convenience. Make it in the build tree |
64ff59ba |
21188 | # simply because there is no reason against having it here, and in addition, |
d9898ee8 |
21189 | # creating and moving files from /tmp can sometimes cause problems. |
64ff59ba |
21190 | # Hook for its removal unless debugging. |
21191 | # Note that there is a small window in which the directory will not be cleaned: |
21192 | # after its creation but before its name has been assigned to `$tmp'. |
d9898ee8 |
21193 | $debug || |
21194 | { |
64ff59ba |
21195 | tmp= |
21196 | trap 'exit_status=$? |
21197 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
21198 | ' 0 |
d9898ee8 |
21199 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
21200 | } |
d9898ee8 |
21201 | # Create a (secure) tmp directory for tmp files. |
21202 | |
21203 | { |
64ff59ba |
21204 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
d9898ee8 |
21205 | test -n "$tmp" && test -d "$tmp" |
21206 | } || |
21207 | { |
64ff59ba |
21208 | tmp=./conf$$-$RANDOM |
21209 | (umask 077 && mkdir "$tmp") |
d9898ee8 |
21210 | } || |
21211 | { |
21212 | echo "$me: cannot create a temporary directory in ." >&2 |
21213 | { (exit 1); exit 1; } |
21214 | } |
21215 | |
d9898ee8 |
21216 | # |
64ff59ba |
21217 | # Set up the sed scripts for CONFIG_FILES section. |
d9898ee8 |
21218 | # |
21219 | |
21220 | # No need to generate the scripts if there are no CONFIG_FILES. |
21221 | # This happens for instance when ./config.status config.h |
64ff59ba |
21222 | if test -n "$CONFIG_FILES"; then |
d9898ee8 |
21223 | |
21224 | _ACEOF |
21225 | |
64ff59ba |
21226 | |
21227 | |
21228 | ac_delim='%!_!# ' |
21229 | for ac_last_try in false false false false false :; do |
21230 | cat >conf$$subs.sed <<_ACEOF |
21231 | SHELL!$SHELL$ac_delim |
21232 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
21233 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
21234 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
21235 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
21236 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
21237 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
21238 | exec_prefix!$exec_prefix$ac_delim |
21239 | prefix!$prefix$ac_delim |
21240 | program_transform_name!$program_transform_name$ac_delim |
21241 | bindir!$bindir$ac_delim |
21242 | sbindir!$sbindir$ac_delim |
21243 | libexecdir!$libexecdir$ac_delim |
21244 | datarootdir!$datarootdir$ac_delim |
21245 | datadir!$datadir$ac_delim |
21246 | sysconfdir!$sysconfdir$ac_delim |
21247 | sharedstatedir!$sharedstatedir$ac_delim |
21248 | localstatedir!$localstatedir$ac_delim |
21249 | includedir!$includedir$ac_delim |
21250 | oldincludedir!$oldincludedir$ac_delim |
21251 | docdir!$docdir$ac_delim |
21252 | infodir!$infodir$ac_delim |
21253 | htmldir!$htmldir$ac_delim |
21254 | dvidir!$dvidir$ac_delim |
21255 | pdfdir!$pdfdir$ac_delim |
21256 | psdir!$psdir$ac_delim |
21257 | libdir!$libdir$ac_delim |
21258 | localedir!$localedir$ac_delim |
21259 | mandir!$mandir$ac_delim |
21260 | DEFS!$DEFS$ac_delim |
21261 | ECHO_C!$ECHO_C$ac_delim |
21262 | ECHO_N!$ECHO_N$ac_delim |
21263 | ECHO_T!$ECHO_T$ac_delim |
21264 | LIBS!$LIBS$ac_delim |
21265 | build_alias!$build_alias$ac_delim |
21266 | host_alias!$host_alias$ac_delim |
21267 | target_alias!$target_alias$ac_delim |
21268 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
21269 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
21270 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
21271 | am__isrc!$am__isrc$ac_delim |
21272 | CYGPATH_W!$CYGPATH_W$ac_delim |
21273 | PACKAGE!$PACKAGE$ac_delim |
21274 | VERSION!$VERSION$ac_delim |
21275 | ACLOCAL!$ACLOCAL$ac_delim |
21276 | AUTOCONF!$AUTOCONF$ac_delim |
21277 | AUTOMAKE!$AUTOMAKE$ac_delim |
21278 | AUTOHEADER!$AUTOHEADER$ac_delim |
21279 | MAKEINFO!$MAKEINFO$ac_delim |
21280 | install_sh!$install_sh$ac_delim |
21281 | STRIP!$STRIP$ac_delim |
21282 | INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim |
21283 | mkdir_p!$mkdir_p$ac_delim |
21284 | AWK!$AWK$ac_delim |
21285 | SET_MAKE!$SET_MAKE$ac_delim |
21286 | am__leading_dot!$am__leading_dot$ac_delim |
21287 | AMTAR!$AMTAR$ac_delim |
21288 | am__tar!$am__tar$ac_delim |
21289 | am__untar!$am__untar$ac_delim |
21290 | CC!$CC$ac_delim |
21291 | CFLAGS!$CFLAGS$ac_delim |
21292 | LDFLAGS!$LDFLAGS$ac_delim |
21293 | CPPFLAGS!$CPPFLAGS$ac_delim |
21294 | ac_ct_CC!$ac_ct_CC$ac_delim |
21295 | EXEEXT!$EXEEXT$ac_delim |
21296 | OBJEXT!$OBJEXT$ac_delim |
21297 | DEPDIR!$DEPDIR$ac_delim |
21298 | am__include!$am__include$ac_delim |
21299 | am__quote!$am__quote$ac_delim |
21300 | AMDEP_TRUE!$AMDEP_TRUE$ac_delim |
21301 | AMDEP_FALSE!$AMDEP_FALSE$ac_delim |
21302 | AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim |
21303 | CCDEPMODE!$CCDEPMODE$ac_delim |
21304 | am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim |
21305 | am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim |
21306 | LN_S!$LN_S$ac_delim |
21307 | build!$build$ac_delim |
21308 | build_cpu!$build_cpu$ac_delim |
21309 | build_vendor!$build_vendor$ac_delim |
21310 | build_os!$build_os$ac_delim |
21311 | host!$host$ac_delim |
21312 | host_cpu!$host_cpu$ac_delim |
21313 | host_vendor!$host_vendor$ac_delim |
21314 | host_os!$host_os$ac_delim |
21315 | SED!$SED$ac_delim |
21316 | GREP!$GREP$ac_delim |
21317 | EGREP!$EGREP$ac_delim |
21318 | ECHO!$ECHO$ac_delim |
21319 | AR!$AR$ac_delim |
21320 | RANLIB!$RANLIB$ac_delim |
21321 | CPP!$CPP$ac_delim |
21322 | CXX!$CXX$ac_delim |
21323 | CXXFLAGS!$CXXFLAGS$ac_delim |
21324 | ac_ct_CXX!$ac_ct_CXX$ac_delim |
21325 | CXXDEPMODE!$CXXDEPMODE$ac_delim |
21326 | am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim |
21327 | am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim |
21328 | _ACEOF |
21329 | |
21330 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
21331 | break |
21332 | elif $ac_last_try; then |
21333 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
21334 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
21335 | { (exit 1); exit 1; }; } |
21336 | else |
21337 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
d9898ee8 |
21338 | fi |
64ff59ba |
21339 | done |
21340 | |
21341 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
21342 | if test -n "$ac_eof"; then |
21343 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
21344 | ac_eof=`expr $ac_eof + 1` |
21345 | fi |
21346 | |
21347 | cat >>$CONFIG_STATUS <<_ACEOF |
21348 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
21349 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
21350 | _ACEOF |
21351 | sed ' |
21352 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
21353 | s/^/s,@/; s/!/@,|#_!!_#|/ |
21354 | :n |
21355 | t n |
21356 | s/'"$ac_delim"'$/,g/; t |
21357 | s/$/\\/; p |
21358 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
21359 | ' >>$CONFIG_STATUS <conf$$subs.sed |
21360 | rm -f conf$$subs.sed |
21361 | cat >>$CONFIG_STATUS <<_ACEOF |
21362 | CEOF$ac_eof |
21363 | _ACEOF |
21364 | |
d9898ee8 |
21365 | |
64ff59ba |
21366 | ac_delim='%!_!# ' |
21367 | for ac_last_try in false false false false false :; do |
21368 | cat >conf$$subs.sed <<_ACEOF |
21369 | CXXCPP!$CXXCPP$ac_delim |
21370 | F77!$F77$ac_delim |
21371 | FFLAGS!$FFLAGS$ac_delim |
21372 | ac_ct_F77!$ac_ct_F77$ac_delim |
21373 | LIBTOOL!$LIBTOOL$ac_delim |
21374 | PERL!$PERL$ac_delim |
21375 | userdb!$userdb$ac_delim |
21376 | USERDB!$USERDB$ac_delim |
21377 | userdbtmpdir!$userdbtmpdir$ac_delim |
21378 | tmpdir!$tmpdir$ac_delim |
21379 | makedat!$makedat$ac_delim |
21380 | MD5LIB!$MD5LIB$ac_delim |
21381 | SHA1LIB!$SHA1LIB$ac_delim |
21382 | HMACLIB!$HMACLIB$ac_delim |
21383 | CRYPTLIBS!$CRYPTLIBS$ac_delim |
21384 | HAVE_SGML_TRUE!$HAVE_SGML_TRUE$ac_delim |
21385 | HAVE_SGML_FALSE!$HAVE_SGML_FALSE$ac_delim |
21386 | LIBOBJS!$LIBOBJS$ac_delim |
21387 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
d9898ee8 |
21388 | _ACEOF |
64ff59ba |
21389 | |
21390 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 19; then |
21391 | break |
21392 | elif $ac_last_try; then |
21393 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
21394 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
21395 | { (exit 1); exit 1; }; } |
21396 | else |
21397 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
21398 | fi |
21399 | done |
21400 | |
21401 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
21402 | if test -n "$ac_eof"; then |
21403 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
21404 | ac_eof=`expr $ac_eof + 1` |
21405 | fi |
21406 | |
21407 | cat >>$CONFIG_STATUS <<_ACEOF |
21408 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
21409 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
21410 | _ACEOF |
21411 | sed ' |
21412 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
21413 | s/^/s,@/; s/!/@,|#_!!_#|/ |
21414 | :n |
21415 | t n |
21416 | s/'"$ac_delim"'$/,g/; t |
21417 | s/$/\\/; p |
21418 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
21419 | ' >>$CONFIG_STATUS <conf$$subs.sed |
21420 | rm -f conf$$subs.sed |
21421 | cat >>$CONFIG_STATUS <<_ACEOF |
21422 | :end |
21423 | s/|#_!!_#|//g |
21424 | CEOF$ac_eof |
21425 | _ACEOF |
21426 | |
21427 | |
21428 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
21429 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
21430 | # trailing colons and then remove the whole line if VPATH becomes empty |
21431 | # (actually we leave an empty line to preserve line numbers). |
21432 | if test "x$srcdir" = x.; then |
21433 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
21434 | s/:*\$(srcdir):*/:/ |
21435 | s/:*\${srcdir}:*/:/ |
21436 | s/:*@srcdir@:*/:/ |
21437 | s/^\([^=]*=[ ]*\):*/\1/ |
21438 | s/:*$// |
21439 | s/^[^=]*=[ ]*$// |
21440 | }' |
21441 | fi |
21442 | |
d9898ee8 |
21443 | cat >>$CONFIG_STATUS <<\_ACEOF |
64ff59ba |
21444 | fi # test -n "$CONFIG_FILES" |
21445 | |
21446 | |
21447 | for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS |
21448 | do |
21449 | case $ac_tag in |
21450 | :[FHLC]) ac_mode=$ac_tag; continue;; |
21451 | esac |
21452 | case $ac_mode$ac_tag in |
21453 | :[FHL]*:*);; |
21454 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
21455 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
21456 | { (exit 1); exit 1; }; };; |
21457 | :[FH]-) ac_tag=-:-;; |
21458 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
21459 | esac |
21460 | ac_save_IFS=$IFS |
21461 | IFS=: |
21462 | set x $ac_tag |
21463 | IFS=$ac_save_IFS |
21464 | shift |
21465 | ac_file=$1 |
21466 | shift |
21467 | |
21468 | case $ac_mode in |
21469 | :L) ac_source=$1;; |
21470 | :[FH]) |
21471 | ac_file_inputs= |
21472 | for ac_f |
21473 | do |
21474 | case $ac_f in |
21475 | -) ac_f="$tmp/stdin";; |
21476 | *) # Look for the file first in the build tree, then in the source tree |
21477 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
21478 | # because $ac_f cannot contain `:'. |
21479 | test -f "$ac_f" || |
21480 | case $ac_f in |
21481 | [\\/$]*) false;; |
21482 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
21483 | esac || |
21484 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
21485 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
21486 | { (exit 1); exit 1; }; };; |
21487 | esac |
21488 | ac_file_inputs="$ac_file_inputs $ac_f" |
21489 | done |
21490 | |
21491 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
21492 | # use $as_me), people would be surprised to read: |
21493 | # /* config.h. Generated by config.status. */ |
21494 | configure_input="Generated from "`IFS=: |
21495 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
21496 | if test x"$ac_file" != x-; then |
21497 | configure_input="$ac_file. $configure_input" |
21498 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
21499 | echo "$as_me: creating $ac_file" >&6;} |
21500 | fi |
21501 | |
21502 | case $ac_tag in |
21503 | *:-:* | *:-) cat >"$tmp/stdin";; |
21504 | esac |
21505 | ;; |
d9898ee8 |
21506 | esac |
21507 | |
64ff59ba |
21508 | ac_dir=`$as_dirname -- "$ac_file" || |
d9898ee8 |
21509 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
21510 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
21511 | X"$ac_file" : 'X\(//\)$' \| \ |
64ff59ba |
21512 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
21513 | echo X"$ac_file" | |
64ff59ba |
21514 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
21515 | s//\1/ |
21516 | q |
21517 | } |
21518 | /^X\(\/\/\)[^/].*/{ |
21519 | s//\1/ |
21520 | q |
21521 | } |
21522 | /^X\(\/\/\)$/{ |
21523 | s//\1/ |
21524 | q |
21525 | } |
21526 | /^X\(\/\).*/{ |
21527 | s//\1/ |
21528 | q |
21529 | } |
21530 | s/.*/./; q'` |
21531 | { as_dir="$ac_dir" |
21532 | case $as_dir in #( |
21533 | -*) as_dir=./$as_dir;; |
21534 | esac |
21535 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
d9898ee8 |
21536 | as_dirs= |
64ff59ba |
21537 | while :; do |
21538 | case $as_dir in #( |
21539 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
21540 | *) as_qdir=$as_dir;; |
21541 | esac |
21542 | as_dirs="'$as_qdir' $as_dirs" |
21543 | as_dir=`$as_dirname -- "$as_dir" || |
d9898ee8 |
21544 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
21545 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
21546 | X"$as_dir" : 'X\(//\)$' \| \ |
64ff59ba |
21547 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
21548 | echo X"$as_dir" | |
64ff59ba |
21549 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
21550 | s//\1/ |
21551 | q |
21552 | } |
21553 | /^X\(\/\/\)[^/].*/{ |
21554 | s//\1/ |
21555 | q |
21556 | } |
21557 | /^X\(\/\/\)$/{ |
21558 | s//\1/ |
21559 | q |
21560 | } |
21561 | /^X\(\/\).*/{ |
21562 | s//\1/ |
21563 | q |
21564 | } |
21565 | s/.*/./; q'` |
21566 | test -d "$as_dir" && break |
d9898ee8 |
21567 | done |
64ff59ba |
21568 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
21569 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
21570 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
d9898ee8 |
21571 | { (exit 1); exit 1; }; }; } |
d9898ee8 |
21572 | ac_builddir=. |
21573 | |
64ff59ba |
21574 | case "$ac_dir" in |
21575 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
21576 | *) |
d9898ee8 |
21577 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
64ff59ba |
21578 | # A ".." for each directory in $ac_dir_suffix. |
21579 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
21580 | case $ac_top_builddir_sub in |
21581 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
21582 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
21583 | esac ;; |
21584 | esac |
21585 | ac_abs_top_builddir=$ac_pwd |
21586 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
21587 | # for backward compatibility: |
21588 | ac_top_builddir=$ac_top_build_prefix |
d9898ee8 |
21589 | |
21590 | case $srcdir in |
64ff59ba |
21591 | .) # We are building in place. |
d9898ee8 |
21592 | ac_srcdir=. |
64ff59ba |
21593 | ac_top_srcdir=$ac_top_builddir_sub |
21594 | ac_abs_top_srcdir=$ac_pwd ;; |
21595 | [\\/]* | ?:[\\/]* ) # Absolute name. |
d9898ee8 |
21596 | ac_srcdir=$srcdir$ac_dir_suffix; |
64ff59ba |
21597 | ac_top_srcdir=$srcdir |
21598 | ac_abs_top_srcdir=$srcdir ;; |
21599 | *) # Relative name. |
21600 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
21601 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
21602 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
d9898ee8 |
21603 | esac |
64ff59ba |
21604 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
d9898ee8 |
21605 | |
d9898ee8 |
21606 | |
64ff59ba |
21607 | case $ac_mode in |
21608 | :F) |
21609 | # |
21610 | # CONFIG_FILE |
21611 | # |
d9898ee8 |
21612 | |
21613 | case $INSTALL in |
21614 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
64ff59ba |
21615 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
21616 | esac |
21617 | ac_MKDIR_P=$MKDIR_P |
21618 | case $MKDIR_P in |
21619 | [\\/$]* | ?:[\\/]* ) ;; |
21620 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
d9898ee8 |
21621 | esac |
64ff59ba |
21622 | _ACEOF |
d9898ee8 |
21623 | |
64ff59ba |
21624 | cat >>$CONFIG_STATUS <<\_ACEOF |
21625 | # If the template does not know about datarootdir, expand it. |
21626 | # FIXME: This hack should be removed a few years after 2.60. |
21627 | ac_datarootdir_hack=; ac_datarootdir_seen= |
21628 | |
21629 | case `sed -n '/datarootdir/ { |
21630 | p |
21631 | q |
21632 | } |
21633 | /@datadir@/p |
21634 | /@docdir@/p |
21635 | /@infodir@/p |
21636 | /@localedir@/p |
21637 | /@mandir@/p |
21638 | ' $ac_file_inputs` in |
21639 | *datarootdir*) ac_datarootdir_seen=yes;; |
21640 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
21641 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
21642 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
d9898ee8 |
21643 | _ACEOF |
64ff59ba |
21644 | cat >>$CONFIG_STATUS <<_ACEOF |
21645 | ac_datarootdir_hack=' |
21646 | s&@datadir@&$datadir&g |
21647 | s&@docdir@&$docdir&g |
21648 | s&@infodir@&$infodir&g |
21649 | s&@localedir@&$localedir&g |
21650 | s&@mandir@&$mandir&g |
21651 | s&\\\${datarootdir}&$datarootdir&g' ;; |
21652 | esac |
21653 | _ACEOF |
21654 | |
21655 | # Neutralize VPATH when `$srcdir' = `.'. |
21656 | # Shell code in configure.ac might set extrasub. |
21657 | # FIXME: do we really want to maintain this feature? |
d9898ee8 |
21658 | cat >>$CONFIG_STATUS <<_ACEOF |
21659 | sed "$ac_vpsub |
21660 | $extrasub |
21661 | _ACEOF |
21662 | cat >>$CONFIG_STATUS <<\_ACEOF |
21663 | :t |
21664 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
64ff59ba |
21665 | s&@configure_input@&$configure_input&;t t |
21666 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
21667 | s&@srcdir@&$ac_srcdir&;t t |
21668 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
21669 | s&@top_srcdir@&$ac_top_srcdir&;t t |
21670 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
21671 | s&@builddir@&$ac_builddir&;t t |
21672 | s&@abs_builddir@&$ac_abs_builddir&;t t |
21673 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
21674 | s&@INSTALL@&$ac_INSTALL&;t t |
21675 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
21676 | $ac_datarootdir_hack |
21677 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out |
21678 | |
21679 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
21680 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
21681 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
21682 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
21683 | which seems to be undefined. Please make sure it is defined." >&5 |
21684 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
21685 | which seems to be undefined. Please make sure it is defined." >&2;} |
21686 | |
21687 | rm -f "$tmp/stdin" |
21688 | case $ac_file in |
21689 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
21690 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
21691 | esac |
21692 | ;; |
d9898ee8 |
21693 | |
d9898ee8 |
21694 | |
64ff59ba |
21695 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
21696 | echo "$as_me: executing $ac_file commands" >&6;} |
21697 | ;; |
21698 | esac |
d9898ee8 |
21699 | |
21700 | |
64ff59ba |
21701 | case $ac_file$ac_mode in |
21702 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
d9898ee8 |
21703 | # Strip MF so we end up with the name of the file. |
21704 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
21705 | # Check whether this is an Automake generated Makefile or not. |
21706 | # We used to match only the files named `Makefile.in', but |
21707 | # some people rename them; so instead we look at the file content. |
21708 | # Grep'ing the first line is not enough: some people post-process |
21709 | # each Makefile.in and add a new line on top of each file to say so. |
64ff59ba |
21710 | # Grep'ing the whole file is not good either: AIX grep has a line |
21711 | # limit of 2048, but all sed's we know have understand at least 4000. |
21712 | if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then |
21713 | dirpart=`$as_dirname -- "$mf" || |
d9898ee8 |
21714 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
21715 | X"$mf" : 'X\(//\)[^/]' \| \ |
21716 | X"$mf" : 'X\(//\)$' \| \ |
64ff59ba |
21717 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
21718 | echo X"$mf" | |
64ff59ba |
21719 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
21720 | s//\1/ |
21721 | q |
21722 | } |
21723 | /^X\(\/\/\)[^/].*/{ |
21724 | s//\1/ |
21725 | q |
21726 | } |
21727 | /^X\(\/\/\)$/{ |
21728 | s//\1/ |
21729 | q |
21730 | } |
21731 | /^X\(\/\).*/{ |
21732 | s//\1/ |
21733 | q |
21734 | } |
21735 | s/.*/./; q'` |
d9898ee8 |
21736 | else |
21737 | continue |
21738 | fi |
21739 | # Extract the definition of DEPDIR, am__include, and am__quote |
21740 | # from the Makefile without running `make'. |
21741 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
21742 | test -z "$DEPDIR" && continue |
21743 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
21744 | test -z "am__include" && continue |
21745 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
21746 | # When using ansi2knr, U may be empty or an underscore; expand it |
21747 | U=`sed -n 's/^U = //p' < "$mf"` |
21748 | # Find all dependency output files, they are included files with |
21749 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
21750 | # simplest approach to changing $(DEPDIR) to its actual value in the |
21751 | # expansion. |
21752 | for file in `sed -n " |
21753 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
21754 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
21755 | # Make sure the directory exists. |
21756 | test -f "$dirpart/$file" && continue |
64ff59ba |
21757 | fdir=`$as_dirname -- "$file" || |
d9898ee8 |
21758 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
21759 | X"$file" : 'X\(//\)[^/]' \| \ |
21760 | X"$file" : 'X\(//\)$' \| \ |
64ff59ba |
21761 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
21762 | echo X"$file" | |
64ff59ba |
21763 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
21764 | s//\1/ |
21765 | q |
21766 | } |
21767 | /^X\(\/\/\)[^/].*/{ |
21768 | s//\1/ |
21769 | q |
21770 | } |
21771 | /^X\(\/\/\)$/{ |
21772 | s//\1/ |
21773 | q |
21774 | } |
21775 | /^X\(\/\).*/{ |
21776 | s//\1/ |
21777 | q |
21778 | } |
21779 | s/.*/./; q'` |
21780 | { as_dir=$dirpart/$fdir |
21781 | case $as_dir in #( |
21782 | -*) as_dir=./$as_dir;; |
21783 | esac |
21784 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
d9898ee8 |
21785 | as_dirs= |
64ff59ba |
21786 | while :; do |
21787 | case $as_dir in #( |
21788 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
21789 | *) as_qdir=$as_dir;; |
21790 | esac |
21791 | as_dirs="'$as_qdir' $as_dirs" |
21792 | as_dir=`$as_dirname -- "$as_dir" || |
d9898ee8 |
21793 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
21794 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
21795 | X"$as_dir" : 'X\(//\)$' \| \ |
64ff59ba |
21796 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
21797 | echo X"$as_dir" | |
64ff59ba |
21798 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
21799 | s//\1/ |
21800 | q |
21801 | } |
21802 | /^X\(\/\/\)[^/].*/{ |
21803 | s//\1/ |
21804 | q |
21805 | } |
21806 | /^X\(\/\/\)$/{ |
21807 | s//\1/ |
21808 | q |
21809 | } |
21810 | /^X\(\/\).*/{ |
21811 | s//\1/ |
21812 | q |
21813 | } |
21814 | s/.*/./; q'` |
21815 | test -d "$as_dir" && break |
d9898ee8 |
21816 | done |
64ff59ba |
21817 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
21818 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
21819 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
d9898ee8 |
21820 | { (exit 1); exit 1; }; }; } |
d9898ee8 |
21821 | # echo "creating $dirpart/$file" |
21822 | echo '# dummy' > "$dirpart/$file" |
21823 | done |
21824 | done |
21825 | ;; |
64ff59ba |
21826 | |
d9898ee8 |
21827 | esac |
64ff59ba |
21828 | done # for ac_tag |
d9898ee8 |
21829 | |
d9898ee8 |
21830 | |
21831 | { (exit 0); exit 0; } |
21832 | _ACEOF |
21833 | chmod +x $CONFIG_STATUS |
21834 | ac_clean_files=$ac_clean_files_save |
21835 | |
21836 | |
21837 | # configure is writing to config.log, and then calls config.status. |
21838 | # config.status does its own redirection, appending to config.log. |
21839 | # Unfortunately, on DOS this fails, as config.log is still kept open |
21840 | # by configure, so config.status won't be able to write to it; its |
21841 | # output is simply discarded. So we exec the FD to /dev/null, |
21842 | # effectively closing config.log, so it can be properly (re)opened and |
21843 | # appended to by config.status. When coming back to configure, we |
21844 | # need to make the FD available again. |
21845 | if test "$no_create" != yes; then |
21846 | ac_cs_success=: |
21847 | ac_config_status_args= |
21848 | test "$silent" = yes && |
21849 | ac_config_status_args="$ac_config_status_args --quiet" |
21850 | exec 5>/dev/null |
21851 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
21852 | exec 5>>config.log |
21853 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
21854 | # would make configure fail if this is the last instruction. |
21855 | $ac_cs_success || { (exit 1); exit 1; } |
21856 | fi |
21857 | |