d9898ee8 |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. |
dd184caf |
3 | # Generated by GNU Autoconf 2.61 for liblock 0.60. |
d9898ee8 |
4 | # |
5 | # Report bugs to <courier-users@lists.sourceforge.net>. |
6 | # |
dd184caf |
7 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
8 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
d9898ee8 |
9 | # This configure script is free software; the Free Software Foundation |
10 | # gives unlimited permission to copy, distribute and modify it. |
11 | ## --------------------- ## |
12 | ## M4sh Initialization. ## |
13 | ## --------------------- ## |
14 | |
dd184caf |
15 | # Be more Bourne compatible |
16 | DUALCASE=1; export DUALCASE # for MKS sh |
d9898ee8 |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
18 | emulate sh |
19 | NULLCMD=: |
20 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' |
dd184caf |
23 | setopt NO_GLOB_SUBST |
24 | else |
25 | case `(set -o) 2>/dev/null` in |
26 | *posix*) set -o posix ;; |
27 | esac |
28 | |
29 | fi |
30 | |
31 | |
32 | |
33 | |
34 | # PATH needs CR |
35 | # Avoid depending upon Character Ranges. |
36 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
37 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
38 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
39 | as_cr_digits='0123456789' |
40 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
41 | |
42 | # The user is always right. |
43 | if test "${PATH_SEPARATOR+set}" != set; then |
44 | echo "#! /bin/sh" >conf$$.sh |
45 | echo "exit 0" >>conf$$.sh |
46 | chmod +x conf$$.sh |
47 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
48 | PATH_SEPARATOR=';' |
49 | else |
50 | PATH_SEPARATOR=: |
51 | fi |
52 | rm -f conf$$.sh |
d9898ee8 |
53 | fi |
d9898ee8 |
54 | |
55 | # Support unset when possible. |
56 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
57 | as_unset=unset |
58 | else |
59 | as_unset=false |
60 | fi |
61 | |
62 | |
dd184caf |
63 | # IFS |
64 | # We need space, tab and new line, in precisely that order. Quoting is |
65 | # there to prevent editors from complaining about space-tab. |
66 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
67 | # splitting by setting IFS to empty value.) |
68 | as_nl=' |
69 | ' |
70 | IFS=" "" $as_nl" |
71 | |
72 | # Find who we are. Look in the path if we contain no directory separator. |
73 | case $0 in |
74 | *[\\/]* ) as_myself=$0 ;; |
75 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
76 | for as_dir in $PATH |
77 | do |
78 | IFS=$as_save_IFS |
79 | test -z "$as_dir" && as_dir=. |
80 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
81 | done |
82 | IFS=$as_save_IFS |
83 | |
84 | ;; |
85 | esac |
86 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
87 | # in which case we are not to be found in the path. |
88 | if test "x$as_myself" = x; then |
89 | as_myself=$0 |
90 | fi |
91 | if test ! -f "$as_myself"; then |
92 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
93 | { (exit 1); exit 1; } |
94 | fi |
95 | |
d9898ee8 |
96 | # Work around bugs in pre-3.0 UWIN ksh. |
dd184caf |
97 | for as_var in ENV MAIL MAILPATH |
98 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
99 | done |
d9898ee8 |
100 | PS1='$ ' |
101 | PS2='> ' |
102 | PS4='+ ' |
103 | |
104 | # NLS nuisances. |
105 | for as_var in \ |
106 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
107 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
108 | LC_TELEPHONE LC_TIME |
109 | do |
110 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
111 | eval $as_var=C; export $as_var |
112 | else |
dd184caf |
113 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
d9898ee8 |
114 | fi |
115 | done |
116 | |
117 | # Required to use basename. |
dd184caf |
118 | if expr a : '\(a\)' >/dev/null 2>&1 && |
119 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
d9898ee8 |
120 | as_expr=expr |
121 | else |
122 | as_expr=false |
123 | fi |
124 | |
dd184caf |
125 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
d9898ee8 |
126 | as_basename=basename |
127 | else |
128 | as_basename=false |
129 | fi |
130 | |
131 | |
132 | # Name of the executable. |
dd184caf |
133 | as_me=`$as_basename -- "$0" || |
d9898ee8 |
134 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
135 | X"$0" : 'X\(//\)$' \| \ |
dd184caf |
136 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
137 | echo X/"$0" | |
dd184caf |
138 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
139 | s//\1/ |
140 | q |
141 | } |
142 | /^X\/\(\/\/\)$/{ |
143 | s//\1/ |
144 | q |
145 | } |
146 | /^X\/\(\/\).*/{ |
147 | s//\1/ |
148 | q |
149 | } |
150 | s/.*/./; q'` |
d9898ee8 |
151 | |
dd184caf |
152 | # CDPATH. |
153 | $as_unset CDPATH |
d9898ee8 |
154 | |
d9898ee8 |
155 | |
dd184caf |
156 | if test "x$CONFIG_SHELL" = x; then |
157 | if (eval ":") 2>/dev/null; then |
158 | as_have_required=yes |
159 | else |
160 | as_have_required=no |
d9898ee8 |
161 | fi |
162 | |
dd184caf |
163 | if test $as_have_required = yes && (eval ": |
164 | (as_func_return () { |
165 | (exit \$1) |
166 | } |
167 | as_func_success () { |
168 | as_func_return 0 |
169 | } |
170 | as_func_failure () { |
171 | as_func_return 1 |
172 | } |
173 | as_func_ret_success () { |
174 | return 0 |
175 | } |
176 | as_func_ret_failure () { |
177 | return 1 |
178 | } |
d9898ee8 |
179 | |
dd184caf |
180 | exitcode=0 |
181 | if as_func_success; then |
182 | : |
183 | else |
184 | exitcode=1 |
185 | echo as_func_success failed. |
186 | fi |
d9898ee8 |
187 | |
dd184caf |
188 | if as_func_failure; then |
189 | exitcode=1 |
190 | echo as_func_failure succeeded. |
191 | fi |
192 | |
193 | if as_func_ret_success; then |
194 | : |
195 | else |
196 | exitcode=1 |
197 | echo as_func_ret_success failed. |
198 | fi |
199 | |
200 | if as_func_ret_failure; then |
201 | exitcode=1 |
202 | echo as_func_ret_failure succeeded. |
203 | fi |
204 | |
205 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
206 | : |
207 | else |
208 | exitcode=1 |
209 | echo positional parameters were not saved. |
210 | fi |
211 | |
212 | test \$exitcode = 0) || { (exit 1); exit 1; } |
213 | |
214 | ( |
215 | as_lineno_1=\$LINENO |
216 | as_lineno_2=\$LINENO |
217 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && |
218 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } |
219 | ") 2> /dev/null; then |
220 | : |
221 | else |
222 | as_candidate_shells= |
d9898ee8 |
223 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
224 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
225 | do |
226 | IFS=$as_save_IFS |
227 | test -z "$as_dir" && as_dir=. |
dd184caf |
228 | case $as_dir in |
d9898ee8 |
229 | /*) |
dd184caf |
230 | for as_base in sh bash ksh sh5; do |
231 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" |
232 | done;; |
233 | esac |
234 | done |
235 | IFS=$as_save_IFS |
236 | |
237 | |
238 | for as_shell in $as_candidate_shells $SHELL; do |
239 | # Try only shells that exist, to save several forks. |
240 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
241 | { ("$as_shell") 2> /dev/null <<\_ASEOF |
242 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
243 | emulate sh |
244 | NULLCMD=: |
245 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
246 | # is contrary to our usage. Disable this feature. |
247 | alias -g '${1+"$@"}'='"$@"' |
248 | setopt NO_GLOB_SUBST |
249 | else |
250 | case `(set -o) 2>/dev/null` in |
251 | *posix*) set -o posix ;; |
252 | esac |
253 | |
254 | fi |
255 | |
256 | |
257 | : |
258 | _ASEOF |
259 | }; then |
260 | CONFIG_SHELL=$as_shell |
261 | as_have_required=yes |
262 | if { "$as_shell" 2> /dev/null <<\_ASEOF |
263 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
264 | emulate sh |
265 | NULLCMD=: |
266 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
267 | # is contrary to our usage. Disable this feature. |
268 | alias -g '${1+"$@"}'='"$@"' |
269 | setopt NO_GLOB_SUBST |
270 | else |
271 | case `(set -o) 2>/dev/null` in |
272 | *posix*) set -o posix ;; |
273 | esac |
274 | |
275 | fi |
276 | |
277 | |
278 | : |
279 | (as_func_return () { |
280 | (exit $1) |
281 | } |
282 | as_func_success () { |
283 | as_func_return 0 |
284 | } |
285 | as_func_failure () { |
286 | as_func_return 1 |
287 | } |
288 | as_func_ret_success () { |
289 | return 0 |
290 | } |
291 | as_func_ret_failure () { |
292 | return 1 |
293 | } |
294 | |
295 | exitcode=0 |
296 | if as_func_success; then |
297 | : |
298 | else |
299 | exitcode=1 |
300 | echo as_func_success failed. |
301 | fi |
302 | |
303 | if as_func_failure; then |
304 | exitcode=1 |
305 | echo as_func_failure succeeded. |
306 | fi |
307 | |
308 | if as_func_ret_success; then |
309 | : |
310 | else |
311 | exitcode=1 |
312 | echo as_func_ret_success failed. |
313 | fi |
314 | |
315 | if as_func_ret_failure; then |
316 | exitcode=1 |
317 | echo as_func_ret_failure succeeded. |
318 | fi |
319 | |
320 | if ( set x; as_func_ret_success y && test x = "$1" ); then |
321 | : |
322 | else |
323 | exitcode=1 |
324 | echo positional parameters were not saved. |
325 | fi |
326 | |
327 | test $exitcode = 0) || { (exit 1); exit 1; } |
328 | |
329 | ( |
d9898ee8 |
330 | as_lineno_1=$LINENO |
331 | as_lineno_2=$LINENO |
d9898ee8 |
332 | test "x$as_lineno_1" != "x$as_lineno_2" && |
dd184caf |
333 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
334 | |
335 | _ASEOF |
336 | }; then |
337 | break |
338 | fi |
339 | |
340 | fi |
341 | |
342 | done |
343 | |
344 | if test "x$CONFIG_SHELL" != x; then |
345 | for as_var in BASH_ENV ENV |
346 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
347 | done |
348 | export CONFIG_SHELL |
349 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
350 | fi |
351 | |
352 | |
353 | if test $as_have_required = no; then |
354 | echo This script requires a shell more modern than all the |
355 | echo shells that I found on your system. Please install a |
356 | echo modern shell, or manually run the script under such a |
357 | echo shell if you do have one. |
358 | { (exit 1); exit 1; } |
359 | fi |
360 | |
361 | |
362 | fi |
363 | |
364 | fi |
365 | |
366 | |
367 | |
368 | (eval "as_func_return () { |
369 | (exit \$1) |
370 | } |
371 | as_func_success () { |
372 | as_func_return 0 |
373 | } |
374 | as_func_failure () { |
375 | as_func_return 1 |
376 | } |
377 | as_func_ret_success () { |
378 | return 0 |
379 | } |
380 | as_func_ret_failure () { |
381 | return 1 |
382 | } |
383 | |
384 | exitcode=0 |
385 | if as_func_success; then |
386 | : |
387 | else |
388 | exitcode=1 |
389 | echo as_func_success failed. |
390 | fi |
391 | |
392 | if as_func_failure; then |
393 | exitcode=1 |
394 | echo as_func_failure succeeded. |
395 | fi |
396 | |
397 | if as_func_ret_success; then |
398 | : |
399 | else |
400 | exitcode=1 |
401 | echo as_func_ret_success failed. |
402 | fi |
403 | |
404 | if as_func_ret_failure; then |
405 | exitcode=1 |
406 | echo as_func_ret_failure succeeded. |
407 | fi |
408 | |
409 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
410 | : |
411 | else |
412 | exitcode=1 |
413 | echo positional parameters were not saved. |
414 | fi |
415 | |
416 | test \$exitcode = 0") || { |
417 | echo No shell found that supports shell functions. |
418 | echo Please tell autoconf@gnu.org about your system, |
419 | echo including any error possibly output before this |
420 | echo message |
421 | } |
422 | |
423 | |
424 | |
425 | as_lineno_1=$LINENO |
426 | as_lineno_2=$LINENO |
427 | test "x$as_lineno_1" != "x$as_lineno_2" && |
428 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
d9898ee8 |
429 | |
430 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
431 | # uniformly replaced by the line number. The first 'sed' inserts a |
dd184caf |
432 | # line-number line after each line using $LINENO; the second 'sed' |
433 | # does the real work. The second script uses 'N' to pair each |
434 | # line-number line with the line containing $LINENO, and appends |
435 | # trailing '-' during substitution so that $LINENO is not a special |
436 | # case at line end. |
d9898ee8 |
437 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
dd184caf |
438 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
439 | # E. McMahon (1931-1989) for sed's syntax. :-) |
440 | sed -n ' |
441 | p |
442 | /[$]LINENO/= |
443 | ' <$as_myself | |
d9898ee8 |
444 | sed ' |
dd184caf |
445 | s/[$]LINENO.*/&-/ |
446 | t lineno |
447 | b |
448 | :lineno |
d9898ee8 |
449 | N |
dd184caf |
450 | :loop |
451 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
d9898ee8 |
452 | t loop |
dd184caf |
453 | s/-\n.*// |
d9898ee8 |
454 | ' >$as_me.lineno && |
dd184caf |
455 | chmod +x "$as_me.lineno" || |
d9898ee8 |
456 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
457 | { (exit 1); exit 1; }; } |
458 | |
459 | # Don't try to exec as it changes $[0], causing all sort of problems |
460 | # (the dirname of $[0] is not the place where we might find the |
dd184caf |
461 | # original and so on. Autoconf is especially sensitive to this). |
462 | . "./$as_me.lineno" |
d9898ee8 |
463 | # Exit status is that of the last command. |
464 | exit |
465 | } |
466 | |
467 | |
dd184caf |
468 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
469 | as_dirname=dirname |
470 | else |
471 | as_dirname=false |
472 | fi |
473 | |
474 | ECHO_C= ECHO_N= ECHO_T= |
475 | case `echo -n x` in |
476 | -n*) |
477 | case `echo 'x\c'` in |
478 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
479 | *) ECHO_C='\c';; |
480 | esac;; |
481 | *) |
482 | ECHO_N='-n';; |
d9898ee8 |
483 | esac |
484 | |
dd184caf |
485 | if expr a : '\(a\)' >/dev/null 2>&1 && |
486 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
d9898ee8 |
487 | as_expr=expr |
488 | else |
489 | as_expr=false |
490 | fi |
491 | |
492 | rm -f conf$$ conf$$.exe conf$$.file |
dd184caf |
493 | if test -d conf$$.dir; then |
494 | rm -f conf$$.dir/conf$$.file |
495 | else |
496 | rm -f conf$$.dir |
497 | mkdir conf$$.dir |
498 | fi |
d9898ee8 |
499 | echo >conf$$.file |
500 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
dd184caf |
501 | as_ln_s='ln -s' |
502 | # ... but there are two gotchas: |
503 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
504 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
505 | # In both cases, we have to default to `cp -p'. |
506 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
d9898ee8 |
507 | as_ln_s='cp -p' |
d9898ee8 |
508 | elif ln conf$$.file conf$$ 2>/dev/null; then |
509 | as_ln_s=ln |
510 | else |
511 | as_ln_s='cp -p' |
512 | fi |
dd184caf |
513 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
514 | rmdir conf$$.dir 2>/dev/null |
d9898ee8 |
515 | |
516 | if mkdir -p . 2>/dev/null; then |
517 | as_mkdir_p=: |
518 | else |
519 | test -d ./-p && rmdir ./-p |
520 | as_mkdir_p=false |
521 | fi |
522 | |
dd184caf |
523 | if test -x / >/dev/null 2>&1; then |
524 | as_test_x='test -x' |
525 | else |
526 | if ls -dL / >/dev/null 2>&1; then |
527 | as_ls_L_option=L |
528 | else |
529 | as_ls_L_option= |
530 | fi |
531 | as_test_x=' |
532 | eval sh -c '\'' |
533 | if test -d "$1"; then |
534 | test -d "$1/."; |
535 | else |
536 | case $1 in |
537 | -*)set "./$1";; |
538 | esac; |
539 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
540 | ???[sx]*):;;*)false;;esac;fi |
541 | '\'' sh |
542 | ' |
543 | fi |
544 | as_executable_p=$as_test_x |
d9898ee8 |
545 | |
546 | # Sed expression to map a string onto a valid CPP name. |
547 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
548 | |
549 | # Sed expression to map a string onto a valid variable name. |
550 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
551 | |
552 | |
d9898ee8 |
553 | |
554 | |
555 | # Check that we are running under the correct shell. |
556 | SHELL=${CONFIG_SHELL-/bin/sh} |
557 | |
558 | case X$ECHO in |
559 | X*--fallback-echo) |
560 | # Remove one level of quotation (which was required for Make). |
561 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` |
562 | ;; |
563 | esac |
564 | |
565 | echo=${ECHO-echo} |
566 | if test "X$1" = X--no-reexec; then |
567 | # Discard the --no-reexec flag, and continue. |
568 | shift |
569 | elif test "X$1" = X--fallback-echo; then |
570 | # Avoid inline document here, it may be left over |
571 | : |
572 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then |
573 | # Yippee, $echo works! |
574 | : |
575 | else |
576 | # Restart under the correct shell. |
577 | exec $SHELL "$0" --no-reexec ${1+"$@"} |
578 | fi |
579 | |
580 | if test "X$1" = X--fallback-echo; then |
581 | # used as fallback echo |
582 | shift |
583 | cat <<EOF |
584 | $* |
585 | EOF |
586 | exit 0 |
587 | fi |
588 | |
589 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
590 | # if CDPATH is set. |
591 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
592 | |
593 | if test -z "$ECHO"; then |
594 | if test "X${echo_test_string+set}" != Xset; then |
595 | # find a string as large as possible, as long as the shell can cope with it |
596 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
597 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
598 | if (echo_test_string=`eval $cmd`) 2>/dev/null && |
599 | echo_test_string=`eval $cmd` && |
600 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
601 | then |
602 | break |
603 | fi |
604 | done |
605 | fi |
606 | |
607 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
608 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
609 | test "X$echo_testing_string" = "X$echo_test_string"; then |
610 | : |
611 | else |
612 | # The Solaris, AIX, and Digital Unix default echo programs unquote |
613 | # backslashes. This makes it impossible to quote backslashes using |
614 | # echo "$something" | sed 's/\\/\\\\/g' |
615 | # |
616 | # So, first we look for a working echo in the user's PATH. |
617 | |
618 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
619 | for dir in $PATH /usr/ucb; do |
620 | IFS="$lt_save_ifs" |
621 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
622 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
623 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
624 | test "X$echo_testing_string" = "X$echo_test_string"; then |
625 | echo="$dir/echo" |
626 | break |
627 | fi |
628 | done |
629 | IFS="$lt_save_ifs" |
630 | |
631 | if test "X$echo" = Xecho; then |
632 | # We didn't find a better echo, so look for alternatives. |
633 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && |
634 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && |
635 | test "X$echo_testing_string" = "X$echo_test_string"; then |
636 | # This shell has a builtin print -r that does the trick. |
637 | echo='print -r' |
638 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && |
639 | test "X$CONFIG_SHELL" != X/bin/ksh; then |
640 | # If we have ksh, try running configure again with it. |
641 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
642 | export ORIGINAL_CONFIG_SHELL |
643 | CONFIG_SHELL=/bin/ksh |
644 | export CONFIG_SHELL |
645 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
646 | else |
647 | # Try using printf. |
648 | echo='printf %s\n' |
649 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
650 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
651 | test "X$echo_testing_string" = "X$echo_test_string"; then |
652 | # Cool, printf works |
653 | : |
654 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
655 | test "X$echo_testing_string" = 'X\t' && |
656 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
657 | test "X$echo_testing_string" = "X$echo_test_string"; then |
658 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
659 | export CONFIG_SHELL |
660 | SHELL="$CONFIG_SHELL" |
661 | export SHELL |
662 | echo="$CONFIG_SHELL $0 --fallback-echo" |
663 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
664 | test "X$echo_testing_string" = 'X\t' && |
665 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
666 | test "X$echo_testing_string" = "X$echo_test_string"; then |
667 | echo="$CONFIG_SHELL $0 --fallback-echo" |
668 | else |
669 | # maybe with a smaller string... |
670 | prev=: |
671 | |
672 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
673 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null |
674 | then |
675 | break |
676 | fi |
677 | prev="$cmd" |
678 | done |
679 | |
680 | if test "$prev" != 'sed 50q "$0"'; then |
681 | echo_test_string=`eval $prev` |
682 | export echo_test_string |
683 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
684 | else |
685 | # Oops. We lost completely, so just stick with echo. |
686 | echo=echo |
687 | fi |
688 | fi |
689 | fi |
690 | fi |
691 | fi |
692 | fi |
693 | |
694 | # Copy echo and quote the copy suitably for passing to libtool from |
695 | # the Makefile, instead of quoting the original, which is used later. |
696 | ECHO=$echo |
697 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
698 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
699 | fi |
700 | |
701 | |
702 | |
703 | |
704 | tagnames=${tagnames+${tagnames},}CXX |
705 | |
706 | tagnames=${tagnames+${tagnames},}F77 |
707 | |
dd184caf |
708 | exec 7<&0 </dev/null 6>&1 |
709 | |
d9898ee8 |
710 | # Name of the host. |
711 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
712 | # so uname gets run too. |
713 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
714 | |
d9898ee8 |
715 | # |
716 | # Initializations. |
717 | # |
718 | ac_default_prefix=/usr/local |
dd184caf |
719 | ac_clean_files= |
d9898ee8 |
720 | ac_config_libobj_dir=. |
dd184caf |
721 | LIBOBJS= |
d9898ee8 |
722 | cross_compiling=no |
723 | subdirs= |
724 | MFLAGS= |
725 | MAKEFLAGS= |
726 | SHELL=${CONFIG_SHELL-/bin/sh} |
727 | |
d9898ee8 |
728 | # Identity of this package. |
729 | PACKAGE_NAME='liblock' |
730 | PACKAGE_TARNAME='liblock' |
731 | PACKAGE_VERSION='0.60' |
732 | PACKAGE_STRING='liblock 0.60' |
733 | PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net' |
734 | |
735 | ac_unique_file="liblock.h" |
736 | # Factoring default headers for most tests. |
737 | ac_includes_default="\ |
738 | #include <stdio.h> |
dd184caf |
739 | #ifdef HAVE_SYS_TYPES_H |
d9898ee8 |
740 | # include <sys/types.h> |
741 | #endif |
dd184caf |
742 | #ifdef HAVE_SYS_STAT_H |
d9898ee8 |
743 | # include <sys/stat.h> |
744 | #endif |
dd184caf |
745 | #ifdef STDC_HEADERS |
d9898ee8 |
746 | # include <stdlib.h> |
747 | # include <stddef.h> |
748 | #else |
dd184caf |
749 | # ifdef HAVE_STDLIB_H |
d9898ee8 |
750 | # include <stdlib.h> |
751 | # endif |
752 | #endif |
dd184caf |
753 | #ifdef HAVE_STRING_H |
754 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
d9898ee8 |
755 | # include <memory.h> |
756 | # endif |
757 | # include <string.h> |
758 | #endif |
dd184caf |
759 | #ifdef HAVE_STRINGS_H |
d9898ee8 |
760 | # include <strings.h> |
761 | #endif |
dd184caf |
762 | #ifdef HAVE_INTTYPES_H |
d9898ee8 |
763 | # include <inttypes.h> |
d9898ee8 |
764 | #endif |
dd184caf |
765 | #ifdef HAVE_STDINT_H |
766 | # include <stdint.h> |
767 | #endif |
768 | #ifdef HAVE_UNISTD_H |
d9898ee8 |
769 | # include <unistd.h> |
770 | #endif" |
771 | |
dd184caf |
772 | ac_subst_vars='SHELL |
773 | PATH_SEPARATOR |
774 | PACKAGE_NAME |
775 | PACKAGE_TARNAME |
776 | PACKAGE_VERSION |
777 | PACKAGE_STRING |
778 | PACKAGE_BUGREPORT |
779 | exec_prefix |
780 | prefix |
781 | program_transform_name |
782 | bindir |
783 | sbindir |
784 | libexecdir |
785 | datarootdir |
786 | datadir |
787 | sysconfdir |
788 | sharedstatedir |
789 | localstatedir |
790 | includedir |
791 | oldincludedir |
792 | docdir |
793 | infodir |
794 | htmldir |
795 | dvidir |
796 | pdfdir |
797 | psdir |
798 | libdir |
799 | localedir |
800 | mandir |
801 | DEFS |
802 | ECHO_C |
803 | ECHO_N |
804 | ECHO_T |
805 | LIBS |
806 | build_alias |
807 | host_alias |
808 | target_alias |
809 | INSTALL_PROGRAM |
810 | INSTALL_SCRIPT |
811 | INSTALL_DATA |
812 | am__isrc |
813 | CYGPATH_W |
814 | PACKAGE |
815 | VERSION |
816 | ACLOCAL |
817 | AUTOCONF |
818 | AUTOMAKE |
819 | AUTOHEADER |
820 | MAKEINFO |
821 | install_sh |
822 | STRIP |
823 | INSTALL_STRIP_PROGRAM |
824 | mkdir_p |
825 | AWK |
826 | SET_MAKE |
827 | am__leading_dot |
828 | AMTAR |
829 | am__tar |
830 | am__untar |
831 | CC |
832 | CFLAGS |
833 | LDFLAGS |
834 | CPPFLAGS |
835 | ac_ct_CC |
836 | EXEEXT |
837 | OBJEXT |
838 | DEPDIR |
839 | am__include |
840 | am__quote |
841 | AMDEP_TRUE |
842 | AMDEP_FALSE |
843 | AMDEPBACKSLASH |
844 | CCDEPMODE |
845 | am__fastdepCC_TRUE |
846 | am__fastdepCC_FALSE |
847 | LN_S |
848 | build |
849 | build_cpu |
850 | build_vendor |
851 | build_os |
852 | host |
853 | host_cpu |
854 | host_vendor |
855 | host_os |
dd184caf |
856 | GREP |
857 | EGREP |
858 | ECHO |
859 | AR |
860 | RANLIB |
861 | CPP |
862 | CXX |
863 | CXXFLAGS |
864 | ac_ct_CXX |
865 | CXXDEPMODE |
866 | am__fastdepCXX_TRUE |
867 | am__fastdepCXX_FALSE |
868 | CXXCPP |
869 | F77 |
870 | FFLAGS |
871 | ac_ct_F77 |
872 | LIBTOOL |
873 | USE_FCNTL_TRUE |
874 | USE_FCNTL_FALSE |
875 | USE_FLOCK_TRUE |
876 | USE_FLOCK_FALSE |
877 | USE_LOCKF_TRUE |
878 | USE_LOCKF_FALSE |
879 | HAVE_SGML_TRUE |
880 | HAVE_SGML_FALSE |
881 | LIBOBJS |
882 | LTLIBOBJS' |
d9898ee8 |
883 | ac_subst_files='' |
dd184caf |
884 | ac_precious_vars='build_alias |
885 | host_alias |
886 | target_alias |
887 | CC |
888 | CFLAGS |
889 | LDFLAGS |
890 | LIBS |
891 | CPPFLAGS |
892 | CPP |
893 | CXX |
894 | CXXFLAGS |
895 | CCC |
896 | CXXCPP |
897 | F77 |
898 | FFLAGS' |
899 | |
d9898ee8 |
900 | |
901 | # Initialize some variables set by options. |
902 | ac_init_help= |
903 | ac_init_version=false |
904 | # The variables have the same names as the options, with |
905 | # dashes changed to underlines. |
906 | cache_file=/dev/null |
907 | exec_prefix=NONE |
908 | no_create= |
909 | no_recursion= |
910 | prefix=NONE |
911 | program_prefix=NONE |
912 | program_suffix=NONE |
913 | program_transform_name=s,x,x, |
914 | silent= |
915 | site= |
916 | srcdir= |
917 | verbose= |
918 | x_includes=NONE |
919 | x_libraries=NONE |
920 | |
921 | # Installation directory options. |
922 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
923 | # and all the variables that are supposed to be based on exec_prefix |
924 | # by default will actually change. |
925 | # Use braces instead of parens because sh, perl, etc. also accept them. |
dd184caf |
926 | # (The list follows the same order as the GNU Coding Standards.) |
d9898ee8 |
927 | bindir='${exec_prefix}/bin' |
928 | sbindir='${exec_prefix}/sbin' |
929 | libexecdir='${exec_prefix}/libexec' |
dd184caf |
930 | datarootdir='${prefix}/share' |
931 | datadir='${datarootdir}' |
d9898ee8 |
932 | sysconfdir='${prefix}/etc' |
933 | sharedstatedir='${prefix}/com' |
934 | localstatedir='${prefix}/var' |
d9898ee8 |
935 | includedir='${prefix}/include' |
936 | oldincludedir='/usr/include' |
dd184caf |
937 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
938 | infodir='${datarootdir}/info' |
939 | htmldir='${docdir}' |
940 | dvidir='${docdir}' |
941 | pdfdir='${docdir}' |
942 | psdir='${docdir}' |
943 | libdir='${exec_prefix}/lib' |
944 | localedir='${datarootdir}/locale' |
945 | mandir='${datarootdir}/man' |
d9898ee8 |
946 | |
947 | ac_prev= |
dd184caf |
948 | ac_dashdash= |
d9898ee8 |
949 | for ac_option |
950 | do |
951 | # If the previous option needs an argument, assign it. |
952 | if test -n "$ac_prev"; then |
dd184caf |
953 | eval $ac_prev=\$ac_option |
d9898ee8 |
954 | ac_prev= |
955 | continue |
956 | fi |
957 | |
dd184caf |
958 | case $ac_option in |
959 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
960 | *) ac_optarg=yes ;; |
961 | esac |
d9898ee8 |
962 | |
963 | # Accept the important Cygnus configure options, so we can diagnose typos. |
964 | |
dd184caf |
965 | case $ac_dashdash$ac_option in |
966 | --) |
967 | ac_dashdash=yes ;; |
d9898ee8 |
968 | |
969 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
970 | ac_prev=bindir ;; |
971 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
972 | bindir=$ac_optarg ;; |
973 | |
974 | -build | --build | --buil | --bui | --bu) |
975 | ac_prev=build_alias ;; |
976 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
977 | build_alias=$ac_optarg ;; |
978 | |
979 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
980 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
981 | ac_prev=cache_file ;; |
982 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
983 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
984 | cache_file=$ac_optarg ;; |
985 | |
986 | --config-cache | -C) |
987 | cache_file=config.cache ;; |
988 | |
dd184caf |
989 | -datadir | --datadir | --datadi | --datad) |
d9898ee8 |
990 | ac_prev=datadir ;; |
dd184caf |
991 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
d9898ee8 |
992 | datadir=$ac_optarg ;; |
993 | |
dd184caf |
994 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
995 | | --dataroo | --dataro | --datar) |
996 | ac_prev=datarootdir ;; |
997 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
998 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
999 | datarootdir=$ac_optarg ;; |
1000 | |
d9898ee8 |
1001 | -disable-* | --disable-*) |
1002 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
1003 | # Reject names that are not valid shell variable names. |
dd184caf |
1004 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
d9898ee8 |
1005 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
1006 | { (exit 1); exit 1; }; } |
dd184caf |
1007 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
1008 | eval enable_$ac_feature=no ;; |
1009 | |
1010 | -docdir | --docdir | --docdi | --doc | --do) |
1011 | ac_prev=docdir ;; |
1012 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
1013 | docdir=$ac_optarg ;; |
1014 | |
1015 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
1016 | ac_prev=dvidir ;; |
1017 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
1018 | dvidir=$ac_optarg ;; |
d9898ee8 |
1019 | |
1020 | -enable-* | --enable-*) |
1021 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
1022 | # Reject names that are not valid shell variable names. |
dd184caf |
1023 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
d9898ee8 |
1024 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
1025 | { (exit 1); exit 1; }; } |
dd184caf |
1026 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
1027 | eval enable_$ac_feature=\$ac_optarg ;; |
d9898ee8 |
1028 | |
1029 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
1030 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
1031 | | --exec | --exe | --ex) |
1032 | ac_prev=exec_prefix ;; |
1033 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
1034 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
1035 | | --exec=* | --exe=* | --ex=*) |
1036 | exec_prefix=$ac_optarg ;; |
1037 | |
1038 | -gas | --gas | --ga | --g) |
1039 | # Obsolete; use --with-gas. |
1040 | with_gas=yes ;; |
1041 | |
1042 | -help | --help | --hel | --he | -h) |
1043 | ac_init_help=long ;; |
1044 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
1045 | ac_init_help=recursive ;; |
1046 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
1047 | ac_init_help=short ;; |
1048 | |
1049 | -host | --host | --hos | --ho) |
1050 | ac_prev=host_alias ;; |
1051 | -host=* | --host=* | --hos=* | --ho=*) |
1052 | host_alias=$ac_optarg ;; |
1053 | |
dd184caf |
1054 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1055 | ac_prev=htmldir ;; |
1056 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
1057 | | --ht=*) |
1058 | htmldir=$ac_optarg ;; |
1059 | |
d9898ee8 |
1060 | -includedir | --includedir | --includedi | --included | --include \ |
1061 | | --includ | --inclu | --incl | --inc) |
1062 | ac_prev=includedir ;; |
1063 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
1064 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
1065 | includedir=$ac_optarg ;; |
1066 | |
1067 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
1068 | ac_prev=infodir ;; |
1069 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
1070 | infodir=$ac_optarg ;; |
1071 | |
1072 | -libdir | --libdir | --libdi | --libd) |
1073 | ac_prev=libdir ;; |
1074 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
1075 | libdir=$ac_optarg ;; |
1076 | |
1077 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
1078 | | --libexe | --libex | --libe) |
1079 | ac_prev=libexecdir ;; |
1080 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
1081 | | --libexe=* | --libex=* | --libe=*) |
1082 | libexecdir=$ac_optarg ;; |
1083 | |
dd184caf |
1084 | -localedir | --localedir | --localedi | --localed | --locale) |
1085 | ac_prev=localedir ;; |
1086 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
1087 | localedir=$ac_optarg ;; |
1088 | |
d9898ee8 |
1089 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
dd184caf |
1090 | | --localstate | --localstat | --localsta | --localst | --locals) |
d9898ee8 |
1091 | ac_prev=localstatedir ;; |
1092 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
dd184caf |
1093 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
d9898ee8 |
1094 | localstatedir=$ac_optarg ;; |
1095 | |
1096 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
1097 | ac_prev=mandir ;; |
1098 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
1099 | mandir=$ac_optarg ;; |
1100 | |
1101 | -nfp | --nfp | --nf) |
1102 | # Obsolete; use --without-fp. |
1103 | with_fp=no ;; |
1104 | |
1105 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
1106 | | --no-cr | --no-c | -n) |
1107 | no_create=yes ;; |
1108 | |
1109 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
1110 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
1111 | no_recursion=yes ;; |
1112 | |
1113 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
1114 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
1115 | | --oldin | --oldi | --old | --ol | --o) |
1116 | ac_prev=oldincludedir ;; |
1117 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
1118 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
1119 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
1120 | oldincludedir=$ac_optarg ;; |
1121 | |
1122 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
1123 | ac_prev=prefix ;; |
1124 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
1125 | prefix=$ac_optarg ;; |
1126 | |
1127 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
1128 | | --program-pre | --program-pr | --program-p) |
1129 | ac_prev=program_prefix ;; |
1130 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
1131 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
1132 | program_prefix=$ac_optarg ;; |
1133 | |
1134 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
1135 | | --program-suf | --program-su | --program-s) |
1136 | ac_prev=program_suffix ;; |
1137 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
1138 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
1139 | program_suffix=$ac_optarg ;; |
1140 | |
1141 | -program-transform-name | --program-transform-name \ |
1142 | | --program-transform-nam | --program-transform-na \ |
1143 | | --program-transform-n | --program-transform- \ |
1144 | | --program-transform | --program-transfor \ |
1145 | | --program-transfo | --program-transf \ |
1146 | | --program-trans | --program-tran \ |
1147 | | --progr-tra | --program-tr | --program-t) |
1148 | ac_prev=program_transform_name ;; |
1149 | -program-transform-name=* | --program-transform-name=* \ |
1150 | | --program-transform-nam=* | --program-transform-na=* \ |
1151 | | --program-transform-n=* | --program-transform-=* \ |
1152 | | --program-transform=* | --program-transfor=* \ |
1153 | | --program-transfo=* | --program-transf=* \ |
1154 | | --program-trans=* | --program-tran=* \ |
1155 | | --progr-tra=* | --program-tr=* | --program-t=*) |
1156 | program_transform_name=$ac_optarg ;; |
1157 | |
dd184caf |
1158 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1159 | ac_prev=pdfdir ;; |
1160 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
1161 | pdfdir=$ac_optarg ;; |
1162 | |
1163 | -psdir | --psdir | --psdi | --psd | --ps) |
1164 | ac_prev=psdir ;; |
1165 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
1166 | psdir=$ac_optarg ;; |
1167 | |
d9898ee8 |
1168 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1169 | | -silent | --silent | --silen | --sile | --sil) |
1170 | silent=yes ;; |
1171 | |
1172 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
1173 | ac_prev=sbindir ;; |
1174 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
1175 | | --sbi=* | --sb=*) |
1176 | sbindir=$ac_optarg ;; |
1177 | |
1178 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
1179 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
1180 | | --sharedst | --shareds | --shared | --share | --shar \ |
1181 | | --sha | --sh) |
1182 | ac_prev=sharedstatedir ;; |
1183 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
1184 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
1185 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
1186 | | --sha=* | --sh=*) |
1187 | sharedstatedir=$ac_optarg ;; |
1188 | |
1189 | -site | --site | --sit) |
1190 | ac_prev=site ;; |
1191 | -site=* | --site=* | --sit=*) |
1192 | site=$ac_optarg ;; |
1193 | |
1194 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
1195 | ac_prev=srcdir ;; |
1196 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
1197 | srcdir=$ac_optarg ;; |
1198 | |
1199 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
1200 | | --syscon | --sysco | --sysc | --sys | --sy) |
1201 | ac_prev=sysconfdir ;; |
1202 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
1203 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
1204 | sysconfdir=$ac_optarg ;; |
1205 | |
1206 | -target | --target | --targe | --targ | --tar | --ta | --t) |
1207 | ac_prev=target_alias ;; |
1208 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
1209 | target_alias=$ac_optarg ;; |
1210 | |
1211 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
1212 | verbose=yes ;; |
1213 | |
1214 | -version | --version | --versio | --versi | --vers | -V) |
1215 | ac_init_version=: ;; |
1216 | |
1217 | -with-* | --with-*) |
1218 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
1219 | # Reject names that are not valid shell variable names. |
dd184caf |
1220 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
d9898ee8 |
1221 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
1222 | { (exit 1); exit 1; }; } |
dd184caf |
1223 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1224 | eval with_$ac_package=\$ac_optarg ;; |
d9898ee8 |
1225 | |
1226 | -without-* | --without-*) |
1227 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
1228 | # Reject names that are not valid shell variable names. |
dd184caf |
1229 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
d9898ee8 |
1230 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
1231 | { (exit 1); exit 1; }; } |
dd184caf |
1232 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1233 | eval with_$ac_package=no ;; |
d9898ee8 |
1234 | |
1235 | --x) |
1236 | # Obsolete; use --with-x. |
1237 | with_x=yes ;; |
1238 | |
1239 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
1240 | | --x-incl | --x-inc | --x-in | --x-i) |
1241 | ac_prev=x_includes ;; |
1242 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
1243 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
1244 | x_includes=$ac_optarg ;; |
1245 | |
1246 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
1247 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
1248 | ac_prev=x_libraries ;; |
1249 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
1250 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
1251 | x_libraries=$ac_optarg ;; |
1252 | |
1253 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
1254 | Try \`$0 --help' for more information." >&2 |
1255 | { (exit 1); exit 1; }; } |
1256 | ;; |
1257 | |
1258 | *=*) |
1259 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
1260 | # Reject names that are not valid shell variable names. |
1261 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
1262 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
1263 | { (exit 1); exit 1; }; } |
dd184caf |
1264 | eval $ac_envvar=\$ac_optarg |
d9898ee8 |
1265 | export $ac_envvar ;; |
1266 | |
1267 | *) |
1268 | # FIXME: should be removed in autoconf 3.0. |
1269 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
1270 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1271 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
1272 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
1273 | ;; |
1274 | |
1275 | esac |
1276 | done |
1277 | |
1278 | if test -n "$ac_prev"; then |
1279 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
1280 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
1281 | { (exit 1); exit 1; }; } |
1282 | fi |
1283 | |
dd184caf |
1284 | # Be sure to have absolute directory names. |
1285 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1286 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
1287 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
1288 | libdir localedir mandir |
d9898ee8 |
1289 | do |
dd184caf |
1290 | eval ac_val=\$$ac_var |
d9898ee8 |
1291 | case $ac_val in |
dd184caf |
1292 | [\\/$]* | ?:[\\/]* ) continue;; |
1293 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
d9898ee8 |
1294 | esac |
dd184caf |
1295 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
1296 | { (exit 1); exit 1; }; } |
d9898ee8 |
1297 | done |
1298 | |
1299 | # There might be people who depend on the old broken behavior: `$host' |
1300 | # used to hold the argument of --host etc. |
1301 | # FIXME: To remove some day. |
1302 | build=$build_alias |
1303 | host=$host_alias |
1304 | target=$target_alias |
1305 | |
1306 | # FIXME: To remove some day. |
1307 | if test "x$host_alias" != x; then |
1308 | if test "x$build_alias" = x; then |
1309 | cross_compiling=maybe |
1310 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
1311 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1312 | elif test "x$build_alias" != "x$host_alias"; then |
1313 | cross_compiling=yes |
1314 | fi |
1315 | fi |
1316 | |
1317 | ac_tool_prefix= |
1318 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
1319 | |
1320 | test "$silent" = yes && exec 6>/dev/null |
1321 | |
1322 | |
dd184caf |
1323 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1324 | ac_ls_di=`ls -di .` && |
1325 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
1326 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
1327 | { (exit 1); exit 1; }; } |
1328 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
1329 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
1330 | { (exit 1); exit 1; }; } |
1331 | |
1332 | |
d9898ee8 |
1333 | # Find the source files, if location was not specified. |
1334 | if test -z "$srcdir"; then |
1335 | ac_srcdir_defaulted=yes |
dd184caf |
1336 | # Try the directory containing this script, then the parent directory. |
1337 | ac_confdir=`$as_dirname -- "$0" || |
d9898ee8 |
1338 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
1339 | X"$0" : 'X\(//\)[^/]' \| \ |
1340 | X"$0" : 'X\(//\)$' \| \ |
dd184caf |
1341 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
1342 | echo X"$0" | |
dd184caf |
1343 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1344 | s//\1/ |
1345 | q |
1346 | } |
1347 | /^X\(\/\/\)[^/].*/{ |
1348 | s//\1/ |
1349 | q |
1350 | } |
1351 | /^X\(\/\/\)$/{ |
1352 | s//\1/ |
1353 | q |
1354 | } |
1355 | /^X\(\/\).*/{ |
1356 | s//\1/ |
1357 | q |
1358 | } |
1359 | s/.*/./; q'` |
d9898ee8 |
1360 | srcdir=$ac_confdir |
dd184caf |
1361 | if test ! -r "$srcdir/$ac_unique_file"; then |
d9898ee8 |
1362 | srcdir=.. |
1363 | fi |
1364 | else |
1365 | ac_srcdir_defaulted=no |
1366 | fi |
dd184caf |
1367 | if test ! -r "$srcdir/$ac_unique_file"; then |
1368 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
1369 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
d9898ee8 |
1370 | { (exit 1); exit 1; }; } |
d9898ee8 |
1371 | fi |
dd184caf |
1372 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1373 | ac_abs_confdir=`( |
1374 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
d9898ee8 |
1375 | { (exit 1); exit 1; }; } |
dd184caf |
1376 | pwd)` |
1377 | # When building in place, set srcdir=. |
1378 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
1379 | srcdir=. |
1380 | fi |
1381 | # Remove unnecessary trailing slashes from srcdir. |
1382 | # Double slashes in file names in object file debugging info |
1383 | # mess up M-x gdb in Emacs. |
1384 | case $srcdir in |
1385 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
1386 | esac |
1387 | for ac_var in $ac_precious_vars; do |
1388 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
1389 | eval ac_env_${ac_var}_value=\$${ac_var} |
1390 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
1391 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
1392 | done |
d9898ee8 |
1393 | |
1394 | # |
1395 | # Report the --help message. |
1396 | # |
1397 | if test "$ac_init_help" = "long"; then |
1398 | # Omit some internal or obsolete options to make the list less imposing. |
1399 | # This message is too long to be a string in the A/UX 3.1 sh. |
1400 | cat <<_ACEOF |
1401 | \`configure' configures liblock 0.60 to adapt to many kinds of systems. |
1402 | |
1403 | Usage: $0 [OPTION]... [VAR=VALUE]... |
1404 | |
1405 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
1406 | VAR=VALUE. See below for descriptions of some of the useful variables. |
1407 | |
1408 | Defaults for the options are specified in brackets. |
1409 | |
1410 | Configuration: |
1411 | -h, --help display this help and exit |
1412 | --help=short display options specific to this package |
1413 | --help=recursive display the short help of all the included packages |
1414 | -V, --version display version information and exit |
1415 | -q, --quiet, --silent do not print \`checking...' messages |
1416 | --cache-file=FILE cache test results in FILE [disabled] |
1417 | -C, --config-cache alias for \`--cache-file=config.cache' |
1418 | -n, --no-create do not create output files |
1419 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
1420 | |
d9898ee8 |
1421 | Installation directories: |
1422 | --prefix=PREFIX install architecture-independent files in PREFIX |
1423 | [$ac_default_prefix] |
1424 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
1425 | [PREFIX] |
1426 | |
1427 | By default, \`make install' will install all the files in |
1428 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
1429 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
1430 | for instance \`--prefix=\$HOME'. |
1431 | |
1432 | For better control, use the options below. |
1433 | |
1434 | Fine tuning of the installation directories: |
1435 | --bindir=DIR user executables [EPREFIX/bin] |
1436 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
1437 | --libexecdir=DIR program executables [EPREFIX/libexec] |
d9898ee8 |
1438 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1439 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
1440 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
1441 | --libdir=DIR object code libraries [EPREFIX/lib] |
1442 | --includedir=DIR C header files [PREFIX/include] |
1443 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
dd184caf |
1444 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
1445 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
1446 | --infodir=DIR info documentation [DATAROOTDIR/info] |
1447 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
1448 | --mandir=DIR man documentation [DATAROOTDIR/man] |
1449 | --docdir=DIR documentation root [DATAROOTDIR/doc/liblock] |
1450 | --htmldir=DIR html documentation [DOCDIR] |
1451 | --dvidir=DIR dvi documentation [DOCDIR] |
1452 | --pdfdir=DIR pdf documentation [DOCDIR] |
1453 | --psdir=DIR ps documentation [DOCDIR] |
d9898ee8 |
1454 | _ACEOF |
1455 | |
1456 | cat <<\_ACEOF |
1457 | |
1458 | Program names: |
1459 | --program-prefix=PREFIX prepend PREFIX to installed program names |
1460 | --program-suffix=SUFFIX append SUFFIX to installed program names |
1461 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
1462 | |
1463 | System types: |
1464 | --build=BUILD configure for building on BUILD [guessed] |
1465 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
1466 | _ACEOF |
1467 | fi |
1468 | |
1469 | if test -n "$ac_init_help"; then |
1470 | case $ac_init_help in |
1471 | short | recursive ) echo "Configuration of liblock 0.60:";; |
1472 | esac |
1473 | cat <<\_ACEOF |
1474 | |
1475 | Optional Features: |
1476 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1477 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1478 | --disable-dependency-tracking speeds up one-time build |
1479 | --enable-dependency-tracking do not reject slow dependency extractors |
dd184caf |
1480 | --enable-shared[=PKGS] build shared libraries [default=yes] |
1481 | --enable-static[=PKGS] build static libraries [default=yes] |
d9898ee8 |
1482 | --enable-fast-install[=PKGS] |
1483 | optimize for fast installation [default=yes] |
1484 | --disable-libtool-lock avoid locking (might break parallel builds) |
1485 | |
1486 | Optional Packages: |
1487 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1488 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1489 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
1490 | --with-pic try to use only PIC/non-PIC objects [default=use |
1491 | both] |
dd184caf |
1492 | --with-tags[=TAGS] include additional configurations [automatic] |
d9898ee8 |
1493 | |
1494 | |
1495 | Some influential environment variables: |
1496 | CC C compiler command |
1497 | CFLAGS C compiler flags |
1498 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1499 | nonstandard directory <lib dir> |
dd184caf |
1500 | LIBS libraries to pass to the linker, e.g. -l<library> |
1501 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1502 | you have headers in a nonstandard directory <include dir> |
d9898ee8 |
1503 | CPP C preprocessor |
1504 | CXX C++ compiler command |
1505 | CXXFLAGS C++ compiler flags |
1506 | CXXCPP C++ preprocessor |
1507 | F77 Fortran 77 compiler command |
1508 | FFLAGS Fortran 77 compiler flags |
1509 | |
1510 | Use these variables to override the choices made by `configure' or to help |
1511 | it to find libraries and programs with nonstandard names/locations. |
1512 | |
1513 | Report bugs to <courier-users@lists.sourceforge.net>. |
1514 | _ACEOF |
dd184caf |
1515 | ac_status=$? |
d9898ee8 |
1516 | fi |
1517 | |
1518 | if test "$ac_init_help" = "recursive"; then |
1519 | # If there are subdirs, report their specific --help. |
d9898ee8 |
1520 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
dd184caf |
1521 | test -d "$ac_dir" || continue |
d9898ee8 |
1522 | ac_builddir=. |
1523 | |
dd184caf |
1524 | case "$ac_dir" in |
1525 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1526 | *) |
d9898ee8 |
1527 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
dd184caf |
1528 | # A ".." for each directory in $ac_dir_suffix. |
1529 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
1530 | case $ac_top_builddir_sub in |
1531 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1532 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
1533 | esac ;; |
1534 | esac |
1535 | ac_abs_top_builddir=$ac_pwd |
1536 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
1537 | # for backward compatibility: |
1538 | ac_top_builddir=$ac_top_build_prefix |
d9898ee8 |
1539 | |
1540 | case $srcdir in |
dd184caf |
1541 | .) # We are building in place. |
d9898ee8 |
1542 | ac_srcdir=. |
dd184caf |
1543 | ac_top_srcdir=$ac_top_builddir_sub |
1544 | ac_abs_top_srcdir=$ac_pwd ;; |
1545 | [\\/]* | ?:[\\/]* ) # Absolute name. |
d9898ee8 |
1546 | ac_srcdir=$srcdir$ac_dir_suffix; |
dd184caf |
1547 | ac_top_srcdir=$srcdir |
1548 | ac_abs_top_srcdir=$srcdir ;; |
1549 | *) # Relative name. |
1550 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
1551 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
1552 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
d9898ee8 |
1553 | esac |
dd184caf |
1554 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1555 | |
1556 | cd "$ac_dir" || { ac_status=$?; continue; } |
1557 | # Check for guested configure. |
1558 | if test -f "$ac_srcdir/configure.gnu"; then |
1559 | echo && |
1560 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
1561 | elif test -f "$ac_srcdir/configure"; then |
1562 | echo && |
1563 | $SHELL "$ac_srcdir/configure" --help=recursive |
d9898ee8 |
1564 | else |
1565 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
dd184caf |
1566 | fi || ac_status=$? |
1567 | cd "$ac_pwd" || { ac_status=$?; break; } |
d9898ee8 |
1568 | done |
1569 | fi |
1570 | |
dd184caf |
1571 | test -n "$ac_init_help" && exit $ac_status |
d9898ee8 |
1572 | if $ac_init_version; then |
1573 | cat <<\_ACEOF |
1574 | liblock configure 0.60 |
dd184caf |
1575 | generated by GNU Autoconf 2.61 |
d9898ee8 |
1576 | |
dd184caf |
1577 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
1578 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
d9898ee8 |
1579 | This configure script is free software; the Free Software Foundation |
1580 | gives unlimited permission to copy, distribute and modify it. |
1581 | _ACEOF |
dd184caf |
1582 | exit |
d9898ee8 |
1583 | fi |
dd184caf |
1584 | cat >config.log <<_ACEOF |
d9898ee8 |
1585 | This file contains any messages produced by compilers while |
1586 | running configure, to aid debugging if configure makes a mistake. |
1587 | |
1588 | It was created by liblock $as_me 0.60, which was |
dd184caf |
1589 | generated by GNU Autoconf 2.61. Invocation command line was |
d9898ee8 |
1590 | |
1591 | $ $0 $@ |
1592 | |
1593 | _ACEOF |
dd184caf |
1594 | exec 5>>config.log |
d9898ee8 |
1595 | { |
1596 | cat <<_ASUNAME |
1597 | ## --------- ## |
1598 | ## Platform. ## |
1599 | ## --------- ## |
1600 | |
1601 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
1602 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
1603 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
1604 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
1605 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
1606 | |
1607 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
1608 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
1609 | |
1610 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
1611 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
1612 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
dd184caf |
1613 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
d9898ee8 |
1614 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1615 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
1616 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
1617 | |
1618 | _ASUNAME |
1619 | |
1620 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1621 | for as_dir in $PATH |
1622 | do |
1623 | IFS=$as_save_IFS |
1624 | test -z "$as_dir" && as_dir=. |
1625 | echo "PATH: $as_dir" |
1626 | done |
dd184caf |
1627 | IFS=$as_save_IFS |
d9898ee8 |
1628 | |
1629 | } >&5 |
1630 | |
1631 | cat >&5 <<_ACEOF |
1632 | |
1633 | |
1634 | ## ----------- ## |
1635 | ## Core tests. ## |
1636 | ## ----------- ## |
1637 | |
1638 | _ACEOF |
1639 | |
1640 | |
1641 | # Keep a trace of the command line. |
1642 | # Strip out --no-create and --no-recursion so they do not pile up. |
1643 | # Strip out --silent because we don't want to record it for future runs. |
1644 | # Also quote any args containing shell meta-characters. |
1645 | # Make two passes to allow for proper duplicate-argument suppression. |
1646 | ac_configure_args= |
1647 | ac_configure_args0= |
1648 | ac_configure_args1= |
d9898ee8 |
1649 | ac_must_keep_next=false |
1650 | for ac_pass in 1 2 |
1651 | do |
1652 | for ac_arg |
1653 | do |
1654 | case $ac_arg in |
1655 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
1656 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1657 | | -silent | --silent | --silen | --sile | --sil) |
1658 | continue ;; |
dd184caf |
1659 | *\'*) |
d9898ee8 |
1660 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1661 | esac |
1662 | case $ac_pass in |
1663 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
1664 | 2) |
1665 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
1666 | if test $ac_must_keep_next = true; then |
1667 | ac_must_keep_next=false # Got value, back to normal. |
1668 | else |
1669 | case $ac_arg in |
1670 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
1671 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
1672 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
1673 | | -with-* | --with-* | -without-* | --without-* | --x) |
1674 | case "$ac_configure_args0 " in |
1675 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
1676 | esac |
1677 | ;; |
1678 | -* ) ac_must_keep_next=true ;; |
1679 | esac |
1680 | fi |
dd184caf |
1681 | ac_configure_args="$ac_configure_args '$ac_arg'" |
d9898ee8 |
1682 | ;; |
1683 | esac |
1684 | done |
1685 | done |
1686 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
1687 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
1688 | |
1689 | # When interrupted or exit'd, cleanup temporary files, and complete |
1690 | # config.log. We remove comments because anyway the quotes in there |
1691 | # would cause problems or look ugly. |
dd184caf |
1692 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1693 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
d9898ee8 |
1694 | trap 'exit_status=$? |
1695 | # Save into config.log some information that might help in debugging. |
1696 | { |
1697 | echo |
1698 | |
1699 | cat <<\_ASBOX |
1700 | ## ---------------- ## |
1701 | ## Cache variables. ## |
1702 | ## ---------------- ## |
1703 | _ASBOX |
1704 | echo |
1705 | # The following way of writing the cache mishandles newlines in values, |
dd184caf |
1706 | ( |
1707 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
1708 | eval ac_val=\$$ac_var |
1709 | case $ac_val in #( |
1710 | *${as_nl}*) |
1711 | case $ac_var in #( |
1712 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
1713 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
1714 | esac |
1715 | case $ac_var in #( |
1716 | _ | IFS | as_nl) ;; #( |
1717 | *) $as_unset $ac_var ;; |
1718 | esac ;; |
1719 | esac |
1720 | done |
d9898ee8 |
1721 | (set) 2>&1 | |
dd184caf |
1722 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1723 | *${as_nl}ac_space=\ *) |
d9898ee8 |
1724 | sed -n \ |
dd184caf |
1725 | "s/'\''/'\''\\\\'\'''\''/g; |
1726 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
1727 | ;; #( |
d9898ee8 |
1728 | *) |
dd184caf |
1729 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
d9898ee8 |
1730 | ;; |
dd184caf |
1731 | esac | |
1732 | sort |
1733 | ) |
d9898ee8 |
1734 | echo |
1735 | |
1736 | cat <<\_ASBOX |
1737 | ## ----------------- ## |
1738 | ## Output variables. ## |
1739 | ## ----------------- ## |
1740 | _ASBOX |
1741 | echo |
1742 | for ac_var in $ac_subst_vars |
1743 | do |
dd184caf |
1744 | eval ac_val=\$$ac_var |
1745 | case $ac_val in |
1746 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
1747 | esac |
1748 | echo "$ac_var='\''$ac_val'\''" |
d9898ee8 |
1749 | done | sort |
1750 | echo |
1751 | |
1752 | if test -n "$ac_subst_files"; then |
1753 | cat <<\_ASBOX |
dd184caf |
1754 | ## ------------------- ## |
1755 | ## File substitutions. ## |
1756 | ## ------------------- ## |
d9898ee8 |
1757 | _ASBOX |
1758 | echo |
1759 | for ac_var in $ac_subst_files |
1760 | do |
dd184caf |
1761 | eval ac_val=\$$ac_var |
1762 | case $ac_val in |
1763 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
1764 | esac |
1765 | echo "$ac_var='\''$ac_val'\''" |
d9898ee8 |
1766 | done | sort |
1767 | echo |
1768 | fi |
1769 | |
1770 | if test -s confdefs.h; then |
1771 | cat <<\_ASBOX |
1772 | ## ----------- ## |
1773 | ## confdefs.h. ## |
1774 | ## ----------- ## |
1775 | _ASBOX |
1776 | echo |
dd184caf |
1777 | cat confdefs.h |
d9898ee8 |
1778 | echo |
1779 | fi |
1780 | test "$ac_signal" != 0 && |
1781 | echo "$as_me: caught signal $ac_signal" |
1782 | echo "$as_me: exit $exit_status" |
1783 | } >&5 |
dd184caf |
1784 | rm -f core *.core core.conftest.* && |
1785 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
d9898ee8 |
1786 | exit $exit_status |
dd184caf |
1787 | ' 0 |
d9898ee8 |
1788 | for ac_signal in 1 2 13 15; do |
1789 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
1790 | done |
1791 | ac_signal=0 |
1792 | |
1793 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
dd184caf |
1794 | rm -f -r conftest* confdefs.h |
d9898ee8 |
1795 | |
1796 | # Predefined preprocessor variables. |
1797 | |
1798 | cat >>confdefs.h <<_ACEOF |
1799 | #define PACKAGE_NAME "$PACKAGE_NAME" |
1800 | _ACEOF |
1801 | |
1802 | |
1803 | cat >>confdefs.h <<_ACEOF |
1804 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
1805 | _ACEOF |
1806 | |
1807 | |
1808 | cat >>confdefs.h <<_ACEOF |
1809 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
1810 | _ACEOF |
1811 | |
1812 | |
1813 | cat >>confdefs.h <<_ACEOF |
1814 | #define PACKAGE_STRING "$PACKAGE_STRING" |
1815 | _ACEOF |
1816 | |
1817 | |
1818 | cat >>confdefs.h <<_ACEOF |
1819 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
1820 | _ACEOF |
1821 | |
1822 | |
1823 | # Let the site file select an alternate cache file if it wants to. |
1824 | # Prefer explicitly selected file to automatically selected ones. |
dd184caf |
1825 | if test -n "$CONFIG_SITE"; then |
1826 | set x "$CONFIG_SITE" |
1827 | elif test "x$prefix" != xNONE; then |
1828 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
1829 | else |
1830 | set x "$ac_default_prefix/share/config.site" \ |
1831 | "$ac_default_prefix/etc/config.site" |
d9898ee8 |
1832 | fi |
dd184caf |
1833 | shift |
1834 | for ac_site_file |
1835 | do |
d9898ee8 |
1836 | if test -r "$ac_site_file"; then |
1837 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1838 | echo "$as_me: loading site script $ac_site_file" >&6;} |
1839 | sed 's/^/| /' "$ac_site_file" >&5 |
1840 | . "$ac_site_file" |
1841 | fi |
1842 | done |
1843 | |
1844 | if test -r "$cache_file"; then |
1845 | # Some versions of bash will fail to source /dev/null (special |
1846 | # files actually), so we avoid doing that. |
1847 | if test -f "$cache_file"; then |
1848 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1849 | echo "$as_me: loading cache $cache_file" >&6;} |
1850 | case $cache_file in |
dd184caf |
1851 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1852 | *) . "./$cache_file";; |
d9898ee8 |
1853 | esac |
1854 | fi |
1855 | else |
1856 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1857 | echo "$as_me: creating cache $cache_file" >&6;} |
1858 | >$cache_file |
1859 | fi |
1860 | |
1861 | # Check that the precious variables saved in the cache have kept the same |
1862 | # value. |
1863 | ac_cache_corrupted=false |
dd184caf |
1864 | for ac_var in $ac_precious_vars; do |
d9898ee8 |
1865 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1866 | eval ac_new_set=\$ac_env_${ac_var}_set |
dd184caf |
1867 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1868 | eval ac_new_val=\$ac_env_${ac_var}_value |
d9898ee8 |
1869 | case $ac_old_set,$ac_new_set in |
1870 | set,) |
1871 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1872 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
1873 | ac_cache_corrupted=: ;; |
1874 | ,set) |
1875 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
1876 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
1877 | ac_cache_corrupted=: ;; |
1878 | ,);; |
1879 | *) |
1880 | if test "x$ac_old_val" != "x$ac_new_val"; then |
1881 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
1882 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
1883 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
1884 | echo "$as_me: former value: $ac_old_val" >&2;} |
1885 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
1886 | echo "$as_me: current value: $ac_new_val" >&2;} |
1887 | ac_cache_corrupted=: |
1888 | fi;; |
1889 | esac |
1890 | # Pass precious variables to config.status. |
1891 | if test "$ac_new_set" = set; then |
1892 | case $ac_new_val in |
dd184caf |
1893 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
d9898ee8 |
1894 | *) ac_arg=$ac_var=$ac_new_val ;; |
1895 | esac |
1896 | case " $ac_configure_args " in |
1897 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
1898 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
1899 | esac |
1900 | fi |
1901 | done |
1902 | if $ac_cache_corrupted; then |
1903 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
1904 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
1905 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
1906 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
1907 | { (exit 1); exit 1; }; } |
1908 | fi |
1909 | |
d9898ee8 |
1910 | |
1911 | |
1912 | |
1913 | |
1914 | |
1915 | |
1916 | |
1917 | |
1918 | |
1919 | |
1920 | |
1921 | |
1922 | |
1923 | |
1924 | |
1925 | |
1926 | |
1927 | |
1928 | |
1929 | |
1930 | |
1931 | |
1932 | |
1933 | |
dd184caf |
1934 | ac_ext=c |
1935 | ac_cpp='$CPP $CPPFLAGS' |
1936 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1937 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
1938 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
d9898ee8 |
1939 | |
1940 | |
1941 | |
1942 | >confdefs.h # Kill PACKAGE_ macros |
1943 | |
1944 | |
dd184caf |
1945 | ac_config_headers="$ac_config_headers config.h" |
1946 | |
1947 | am__api_version='1.10' |
d9898ee8 |
1948 | |
d9898ee8 |
1949 | ac_aux_dir= |
dd184caf |
1950 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
1951 | if test -f "$ac_dir/install-sh"; then |
d9898ee8 |
1952 | ac_aux_dir=$ac_dir |
1953 | ac_install_sh="$ac_aux_dir/install-sh -c" |
1954 | break |
dd184caf |
1955 | elif test -f "$ac_dir/install.sh"; then |
d9898ee8 |
1956 | ac_aux_dir=$ac_dir |
1957 | ac_install_sh="$ac_aux_dir/install.sh -c" |
1958 | break |
dd184caf |
1959 | elif test -f "$ac_dir/shtool"; then |
d9898ee8 |
1960 | ac_aux_dir=$ac_dir |
1961 | ac_install_sh="$ac_aux_dir/shtool install -c" |
1962 | break |
1963 | fi |
1964 | done |
1965 | if test -z "$ac_aux_dir"; then |
dd184caf |
1966 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
1967 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} |
d9898ee8 |
1968 | { (exit 1); exit 1; }; } |
1969 | fi |
dd184caf |
1970 | |
1971 | # These three variables are undocumented and unsupported, |
1972 | # and are intended to be withdrawn in a future Autoconf release. |
1973 | # They can cause serious problems if a builder's source tree is in a directory |
1974 | # whose full name contains unusual characters. |
1975 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
1976 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
1977 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
1978 | |
d9898ee8 |
1979 | |
1980 | # Find a good install program. We prefer a C program (faster), |
1981 | # so one script is as good as another. But avoid the broken or |
1982 | # incompatible versions: |
1983 | # SysV /etc/install, /usr/sbin/install |
1984 | # SunOS /usr/etc/install |
1985 | # IRIX /sbin/install |
1986 | # AIX /bin/install |
1987 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
1988 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
1989 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
1990 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
1991 | # OS/2's system install, which has a completely different semantic |
1992 | # ./install, which can be erroneously created by make from ./install.sh. |
dd184caf |
1993 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
1994 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
d9898ee8 |
1995 | if test -z "$INSTALL"; then |
1996 | if test "${ac_cv_path_install+set}" = set; then |
1997 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1998 | else |
1999 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2000 | for as_dir in $PATH |
2001 | do |
2002 | IFS=$as_save_IFS |
2003 | test -z "$as_dir" && as_dir=. |
2004 | # Account for people who put trailing slashes in PATH elements. |
2005 | case $as_dir/ in |
2006 | ./ | .// | /cC/* | \ |
2007 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
2008 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
2009 | /usr/ucb/* ) ;; |
2010 | *) |
2011 | # OSF1 and SCO ODT 3.0 have their own names for install. |
2012 | # Don't use installbsd from OSF since it installs stuff as root |
2013 | # by default. |
2014 | for ac_prog in ginstall scoinst install; do |
2015 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2016 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
d9898ee8 |
2017 | if test $ac_prog = install && |
2018 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
2019 | # AIX install. It has an incompatible calling convention. |
2020 | : |
2021 | elif test $ac_prog = install && |
2022 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
2023 | # program-specific install script used by HP pwplus--don't use. |
2024 | : |
2025 | else |
2026 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
2027 | break 3 |
2028 | fi |
2029 | fi |
2030 | done |
2031 | done |
2032 | ;; |
2033 | esac |
2034 | done |
dd184caf |
2035 | IFS=$as_save_IFS |
d9898ee8 |
2036 | |
2037 | |
2038 | fi |
2039 | if test "${ac_cv_path_install+set}" = set; then |
2040 | INSTALL=$ac_cv_path_install |
2041 | else |
dd184caf |
2042 | # As a last resort, use the slow shell script. Don't cache a |
2043 | # value for INSTALL within a source directory, because that will |
d9898ee8 |
2044 | # break other packages using the cache if that directory is |
dd184caf |
2045 | # removed, or if the value is a relative name. |
d9898ee8 |
2046 | INSTALL=$ac_install_sh |
2047 | fi |
2048 | fi |
dd184caf |
2049 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
2050 | echo "${ECHO_T}$INSTALL" >&6; } |
d9898ee8 |
2051 | |
2052 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
2053 | # It thinks the first close brace ends the variable substitution. |
2054 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
2055 | |
2056 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
2057 | |
2058 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
2059 | |
dd184caf |
2060 | { echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
2061 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } |
d9898ee8 |
2062 | # Just in case |
2063 | sleep 1 |
2064 | echo timestamp > conftest.file |
2065 | # Do `set' in a subshell so we don't clobber the current shell's |
2066 | # arguments. Must try -L first in case configure is actually a |
2067 | # symlink; some systems play weird games with the mod time of symlinks |
2068 | # (eg FreeBSD returns the mod time of the symlink's containing |
2069 | # directory). |
2070 | if ( |
2071 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
2072 | if test "$*" = "X"; then |
2073 | # -L didn't work. |
2074 | set X `ls -t $srcdir/configure conftest.file` |
2075 | fi |
2076 | rm -f conftest.file |
2077 | if test "$*" != "X $srcdir/configure conftest.file" \ |
2078 | && test "$*" != "X conftest.file $srcdir/configure"; then |
2079 | |
2080 | # If neither matched, then we have a broken ls. This can happen |
2081 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
2082 | # broken ls alias from the environment. This has actually |
2083 | # happened. Such a system could not be considered "sane". |
2084 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
2085 | alias in your environment" >&5 |
2086 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
2087 | alias in your environment" >&2;} |
2088 | { (exit 1); exit 1; }; } |
2089 | fi |
2090 | |
2091 | test "$2" = conftest.file |
2092 | ) |
2093 | then |
2094 | # Ok. |
2095 | : |
2096 | else |
2097 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
2098 | Check your system clock" >&5 |
2099 | echo "$as_me: error: newly created file is older than distributed files! |
2100 | Check your system clock" >&2;} |
2101 | { (exit 1); exit 1; }; } |
2102 | fi |
dd184caf |
2103 | { echo "$as_me:$LINENO: result: yes" >&5 |
2104 | echo "${ECHO_T}yes" >&6; } |
d9898ee8 |
2105 | test "$program_prefix" != NONE && |
dd184caf |
2106 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
d9898ee8 |
2107 | # Use a double $ so make ignores it. |
2108 | test "$program_suffix" != NONE && |
dd184caf |
2109 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
d9898ee8 |
2110 | # Double any \ or $. echo might interpret backslashes. |
2111 | # By default was `s,x,x', remove it if useless. |
2112 | cat <<\_ACEOF >conftest.sed |
2113 | s/[\\$]/&&/g;s/;s,x,x,$// |
2114 | _ACEOF |
2115 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
dd184caf |
2116 | rm -f conftest.sed |
d9898ee8 |
2117 | |
2118 | # expand $ac_aux_dir to an absolute path |
2119 | am_aux_dir=`cd $ac_aux_dir && pwd` |
2120 | |
2121 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
2122 | # Use eval to expand $SHELL |
2123 | if eval "$MISSING --run true"; then |
2124 | am_missing_run="$MISSING --run " |
2125 | else |
2126 | am_missing_run= |
2127 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
2128 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
2129 | fi |
2130 | |
dd184caf |
2131 | { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 |
2132 | echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } |
2133 | if test -z "$MKDIR_P"; then |
2134 | if test "${ac_cv_path_mkdir+set}" = set; then |
2135 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2136 | else |
2137 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2138 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
2139 | do |
2140 | IFS=$as_save_IFS |
2141 | test -z "$as_dir" && as_dir=. |
2142 | for ac_prog in mkdir gmkdir; do |
2143 | for ac_exec_ext in '' $ac_executable_extensions; do |
2144 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue |
2145 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
2146 | 'mkdir (GNU coreutils) '* | \ |
2147 | 'mkdir (coreutils) '* | \ |
2148 | 'mkdir (fileutils) '4.1*) |
2149 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
2150 | break 3;; |
2151 | esac |
2152 | done |
2153 | done |
2154 | done |
2155 | IFS=$as_save_IFS |
2156 | |
2157 | fi |
2158 | |
2159 | if test "${ac_cv_path_mkdir+set}" = set; then |
2160 | MKDIR_P="$ac_cv_path_mkdir -p" |
d9898ee8 |
2161 | else |
dd184caf |
2162 | # As a last resort, use the slow shell script. Don't cache a |
2163 | # value for MKDIR_P within a source directory, because that will |
2164 | # break other packages using the cache if that directory is |
2165 | # removed, or if the value is a relative name. |
2166 | test -d ./--version && rmdir ./--version |
2167 | MKDIR_P="$ac_install_sh -d" |
d9898ee8 |
2168 | fi |
2169 | fi |
dd184caf |
2170 | { echo "$as_me:$LINENO: result: $MKDIR_P" >&5 |
2171 | echo "${ECHO_T}$MKDIR_P" >&6; } |
2172 | |
2173 | mkdir_p="$MKDIR_P" |
2174 | case $mkdir_p in |
2175 | [\\/$]* | ?:[\\/]*) ;; |
2176 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; |
2177 | esac |
d9898ee8 |
2178 | |
2179 | for ac_prog in gawk mawk nawk awk |
2180 | do |
2181 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2182 | set dummy $ac_prog; ac_word=$2 |
dd184caf |
2183 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2184 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2185 | if test "${ac_cv_prog_AWK+set}" = set; then |
2186 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2187 | else |
2188 | if test -n "$AWK"; then |
2189 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
2190 | else |
2191 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2192 | for as_dir in $PATH |
2193 | do |
2194 | IFS=$as_save_IFS |
2195 | test -z "$as_dir" && as_dir=. |
2196 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2197 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2198 | ac_cv_prog_AWK="$ac_prog" |
2199 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2200 | break 2 |
2201 | fi |
2202 | done |
2203 | done |
dd184caf |
2204 | IFS=$as_save_IFS |
d9898ee8 |
2205 | |
2206 | fi |
2207 | fi |
2208 | AWK=$ac_cv_prog_AWK |
2209 | if test -n "$AWK"; then |
dd184caf |
2210 | { echo "$as_me:$LINENO: result: $AWK" >&5 |
2211 | echo "${ECHO_T}$AWK" >&6; } |
d9898ee8 |
2212 | else |
dd184caf |
2213 | { echo "$as_me:$LINENO: result: no" >&5 |
2214 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2215 | fi |
2216 | |
dd184caf |
2217 | |
d9898ee8 |
2218 | test -n "$AWK" && break |
2219 | done |
2220 | |
dd184caf |
2221 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
2222 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } |
2223 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
2224 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
2225 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2226 | else |
2227 | cat >conftest.make <<\_ACEOF |
dd184caf |
2228 | SHELL = /bin/sh |
d9898ee8 |
2229 | all: |
dd184caf |
2230 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
d9898ee8 |
2231 | _ACEOF |
2232 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
dd184caf |
2233 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
2234 | *@@@%%%=?*=@@@%%%*) |
2235 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
2236 | *) |
2237 | eval ac_cv_prog_make_${ac_make}_set=no;; |
2238 | esac |
d9898ee8 |
2239 | rm -f conftest.make |
2240 | fi |
dd184caf |
2241 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
2242 | { echo "$as_me:$LINENO: result: yes" >&5 |
2243 | echo "${ECHO_T}yes" >&6; } |
d9898ee8 |
2244 | SET_MAKE= |
2245 | else |
dd184caf |
2246 | { echo "$as_me:$LINENO: result: no" >&5 |
2247 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2248 | SET_MAKE="MAKE=${MAKE-make}" |
2249 | fi |
2250 | |
2251 | rm -rf .tst 2>/dev/null |
2252 | mkdir .tst 2>/dev/null |
2253 | if test -d .tst; then |
2254 | am__leading_dot=. |
2255 | else |
2256 | am__leading_dot=_ |
2257 | fi |
2258 | rmdir .tst 2>/dev/null |
2259 | |
dd184caf |
2260 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
2261 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
2262 | # is not polluted with repeated "-I." |
2263 | am__isrc=' -I$(srcdir)' |
2264 | # test to see if srcdir already configured |
2265 | if test -f $srcdir/config.status; then |
2266 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
d9898ee8 |
2267 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
2268 | { (exit 1); exit 1; }; } |
dd184caf |
2269 | fi |
d9898ee8 |
2270 | fi |
2271 | |
2272 | # test whether we have cygpath |
2273 | if test -z "$CYGPATH_W"; then |
2274 | if (cygpath --version) >/dev/null 2>/dev/null; then |
2275 | CYGPATH_W='cygpath -w' |
2276 | else |
2277 | CYGPATH_W=echo |
2278 | fi |
2279 | fi |
2280 | |
2281 | |
2282 | # Define the identity of the package. |
2283 | PACKAGE='liblock' |
2284 | VERSION='0.60' |
2285 | |
2286 | |
2287 | # Some tools Automake needs. |
2288 | |
2289 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
2290 | |
2291 | |
2292 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
2293 | |
2294 | |
2295 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
2296 | |
2297 | |
2298 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
2299 | |
2300 | |
2301 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
2302 | |
dd184caf |
2303 | install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} |
d9898ee8 |
2304 | |
2305 | # Installed binaries are usually stripped using `strip' when the user |
2306 | # run `make install-strip'. However `strip' might not be the right |
2307 | # tool to use in cross-compilation environments, therefore Automake |
2308 | # will honor the `STRIP' environment variable to overrule this program. |
2309 | if test "$cross_compiling" != no; then |
2310 | if test -n "$ac_tool_prefix"; then |
2311 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
2312 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
dd184caf |
2313 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2314 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2315 | if test "${ac_cv_prog_STRIP+set}" = set; then |
2316 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2317 | else |
2318 | if test -n "$STRIP"; then |
2319 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
2320 | else |
2321 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2322 | for as_dir in $PATH |
2323 | do |
2324 | IFS=$as_save_IFS |
2325 | test -z "$as_dir" && as_dir=. |
2326 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2327 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2328 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
2329 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2330 | break 2 |
2331 | fi |
2332 | done |
2333 | done |
dd184caf |
2334 | IFS=$as_save_IFS |
d9898ee8 |
2335 | |
2336 | fi |
2337 | fi |
2338 | STRIP=$ac_cv_prog_STRIP |
2339 | if test -n "$STRIP"; then |
dd184caf |
2340 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
2341 | echo "${ECHO_T}$STRIP" >&6; } |
d9898ee8 |
2342 | else |
dd184caf |
2343 | { echo "$as_me:$LINENO: result: no" >&5 |
2344 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2345 | fi |
2346 | |
dd184caf |
2347 | |
d9898ee8 |
2348 | fi |
2349 | if test -z "$ac_cv_prog_STRIP"; then |
2350 | ac_ct_STRIP=$STRIP |
2351 | # Extract the first word of "strip", so it can be a program name with args. |
2352 | set dummy strip; ac_word=$2 |
dd184caf |
2353 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2354 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2355 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
2356 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2357 | else |
2358 | if test -n "$ac_ct_STRIP"; then |
2359 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
2360 | else |
2361 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2362 | for as_dir in $PATH |
2363 | do |
2364 | IFS=$as_save_IFS |
2365 | test -z "$as_dir" && as_dir=. |
2366 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2367 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2368 | ac_cv_prog_ac_ct_STRIP="strip" |
2369 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2370 | break 2 |
2371 | fi |
2372 | done |
2373 | done |
dd184caf |
2374 | IFS=$as_save_IFS |
d9898ee8 |
2375 | |
d9898ee8 |
2376 | fi |
2377 | fi |
2378 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
2379 | if test -n "$ac_ct_STRIP"; then |
dd184caf |
2380 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
2381 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
d9898ee8 |
2382 | else |
dd184caf |
2383 | { echo "$as_me:$LINENO: result: no" >&5 |
2384 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2385 | fi |
2386 | |
dd184caf |
2387 | if test "x$ac_ct_STRIP" = x; then |
2388 | STRIP=":" |
2389 | else |
2390 | case $cross_compiling:$ac_tool_warned in |
2391 | yes:) |
2392 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
2393 | whose name does not start with the host triplet. If you think this |
2394 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
2395 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
2396 | whose name does not start with the host triplet. If you think this |
2397 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
2398 | ac_tool_warned=yes ;; |
2399 | esac |
2400 | STRIP=$ac_ct_STRIP |
2401 | fi |
d9898ee8 |
2402 | else |
2403 | STRIP="$ac_cv_prog_STRIP" |
2404 | fi |
2405 | |
2406 | fi |
dd184caf |
2407 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
d9898ee8 |
2408 | |
2409 | # We need awk for the "check" target. The system "awk" is bad on |
2410 | # some platforms. |
2411 | # Always define AMTAR for backward compatibility. |
2412 | |
2413 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
2414 | |
2415 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
2416 | |
2417 | |
2418 | |
2419 | |
2420 | |
2421 | |
2422 | for ac_prog in gawk mawk nawk awk |
2423 | do |
2424 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2425 | set dummy $ac_prog; ac_word=$2 |
dd184caf |
2426 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2427 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2428 | if test "${ac_cv_prog_AWK+set}" = set; then |
2429 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2430 | else |
2431 | if test -n "$AWK"; then |
2432 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
2433 | else |
2434 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2435 | for as_dir in $PATH |
2436 | do |
2437 | IFS=$as_save_IFS |
2438 | test -z "$as_dir" && as_dir=. |
2439 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2440 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2441 | ac_cv_prog_AWK="$ac_prog" |
2442 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2443 | break 2 |
2444 | fi |
2445 | done |
2446 | done |
dd184caf |
2447 | IFS=$as_save_IFS |
d9898ee8 |
2448 | |
2449 | fi |
2450 | fi |
2451 | AWK=$ac_cv_prog_AWK |
2452 | if test -n "$AWK"; then |
dd184caf |
2453 | { echo "$as_me:$LINENO: result: $AWK" >&5 |
2454 | echo "${ECHO_T}$AWK" >&6; } |
d9898ee8 |
2455 | else |
dd184caf |
2456 | { echo "$as_me:$LINENO: result: no" >&5 |
2457 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2458 | fi |
2459 | |
dd184caf |
2460 | |
d9898ee8 |
2461 | test -n "$AWK" && break |
2462 | done |
2463 | |
2464 | ac_ext=c |
2465 | ac_cpp='$CPP $CPPFLAGS' |
2466 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2467 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2468 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2469 | if test -n "$ac_tool_prefix"; then |
2470 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
2471 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
dd184caf |
2472 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2473 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2474 | if test "${ac_cv_prog_CC+set}" = set; then |
2475 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2476 | else |
2477 | if test -n "$CC"; then |
2478 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2479 | else |
2480 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2481 | for as_dir in $PATH |
2482 | do |
2483 | IFS=$as_save_IFS |
2484 | test -z "$as_dir" && as_dir=. |
2485 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2486 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2487 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
2488 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2489 | break 2 |
2490 | fi |
2491 | done |
2492 | done |
dd184caf |
2493 | IFS=$as_save_IFS |
d9898ee8 |
2494 | |
2495 | fi |
2496 | fi |
2497 | CC=$ac_cv_prog_CC |
2498 | if test -n "$CC"; then |
dd184caf |
2499 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2500 | echo "${ECHO_T}$CC" >&6; } |
d9898ee8 |
2501 | else |
dd184caf |
2502 | { echo "$as_me:$LINENO: result: no" >&5 |
2503 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2504 | fi |
2505 | |
dd184caf |
2506 | |
d9898ee8 |
2507 | fi |
2508 | if test -z "$ac_cv_prog_CC"; then |
2509 | ac_ct_CC=$CC |
2510 | # Extract the first word of "gcc", so it can be a program name with args. |
2511 | set dummy gcc; ac_word=$2 |
dd184caf |
2512 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2513 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2514 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2515 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2516 | else |
2517 | if test -n "$ac_ct_CC"; then |
2518 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2519 | else |
2520 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2521 | for as_dir in $PATH |
2522 | do |
2523 | IFS=$as_save_IFS |
2524 | test -z "$as_dir" && as_dir=. |
2525 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2526 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2527 | ac_cv_prog_ac_ct_CC="gcc" |
2528 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2529 | break 2 |
2530 | fi |
2531 | done |
2532 | done |
dd184caf |
2533 | IFS=$as_save_IFS |
d9898ee8 |
2534 | |
2535 | fi |
2536 | fi |
2537 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2538 | if test -n "$ac_ct_CC"; then |
dd184caf |
2539 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2540 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
d9898ee8 |
2541 | else |
dd184caf |
2542 | { echo "$as_me:$LINENO: result: no" >&5 |
2543 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2544 | fi |
2545 | |
dd184caf |
2546 | if test "x$ac_ct_CC" = x; then |
2547 | CC="" |
2548 | else |
2549 | case $cross_compiling:$ac_tool_warned in |
2550 | yes:) |
2551 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
2552 | whose name does not start with the host triplet. If you think this |
2553 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
2554 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
2555 | whose name does not start with the host triplet. If you think this |
2556 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
2557 | ac_tool_warned=yes ;; |
2558 | esac |
2559 | CC=$ac_ct_CC |
2560 | fi |
d9898ee8 |
2561 | else |
2562 | CC="$ac_cv_prog_CC" |
2563 | fi |
2564 | |
2565 | if test -z "$CC"; then |
dd184caf |
2566 | if test -n "$ac_tool_prefix"; then |
2567 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
d9898ee8 |
2568 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
dd184caf |
2569 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2570 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2571 | if test "${ac_cv_prog_CC+set}" = set; then |
2572 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2573 | else |
2574 | if test -n "$CC"; then |
2575 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2576 | else |
2577 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2578 | for as_dir in $PATH |
2579 | do |
2580 | IFS=$as_save_IFS |
2581 | test -z "$as_dir" && as_dir=. |
2582 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2583 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2584 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
2585 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2586 | break 2 |
2587 | fi |
2588 | done |
2589 | done |
dd184caf |
2590 | IFS=$as_save_IFS |
d9898ee8 |
2591 | |
2592 | fi |
2593 | fi |
2594 | CC=$ac_cv_prog_CC |
2595 | if test -n "$CC"; then |
dd184caf |
2596 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2597 | echo "${ECHO_T}$CC" >&6; } |
d9898ee8 |
2598 | else |
dd184caf |
2599 | { echo "$as_me:$LINENO: result: no" >&5 |
2600 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2601 | fi |
2602 | |
d9898ee8 |
2603 | |
dd184caf |
2604 | fi |
d9898ee8 |
2605 | fi |
2606 | if test -z "$CC"; then |
2607 | # Extract the first word of "cc", so it can be a program name with args. |
2608 | set dummy cc; ac_word=$2 |
dd184caf |
2609 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2610 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2611 | if test "${ac_cv_prog_CC+set}" = set; then |
2612 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2613 | else |
2614 | if test -n "$CC"; then |
2615 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2616 | else |
2617 | ac_prog_rejected=no |
2618 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2619 | for as_dir in $PATH |
2620 | do |
2621 | IFS=$as_save_IFS |
2622 | test -z "$as_dir" && as_dir=. |
2623 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2624 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2625 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2626 | ac_prog_rejected=yes |
2627 | continue |
2628 | fi |
2629 | ac_cv_prog_CC="cc" |
2630 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2631 | break 2 |
2632 | fi |
2633 | done |
2634 | done |
dd184caf |
2635 | IFS=$as_save_IFS |
d9898ee8 |
2636 | |
2637 | if test $ac_prog_rejected = yes; then |
2638 | # We found a bogon in the path, so make sure we never use it. |
2639 | set dummy $ac_cv_prog_CC |
2640 | shift |
2641 | if test $# != 0; then |
2642 | # We chose a different compiler from the bogus one. |
2643 | # However, it has the same basename, so the bogon will be chosen |
2644 | # first if we set CC to just the basename; use the full file name. |
2645 | shift |
2646 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
2647 | fi |
2648 | fi |
2649 | fi |
2650 | fi |
2651 | CC=$ac_cv_prog_CC |
2652 | if test -n "$CC"; then |
dd184caf |
2653 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2654 | echo "${ECHO_T}$CC" >&6; } |
d9898ee8 |
2655 | else |
dd184caf |
2656 | { echo "$as_me:$LINENO: result: no" >&5 |
2657 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2658 | fi |
2659 | |
dd184caf |
2660 | |
d9898ee8 |
2661 | fi |
2662 | if test -z "$CC"; then |
2663 | if test -n "$ac_tool_prefix"; then |
dd184caf |
2664 | for ac_prog in cl.exe |
d9898ee8 |
2665 | do |
2666 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
2667 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
dd184caf |
2668 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2669 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2670 | if test "${ac_cv_prog_CC+set}" = set; then |
2671 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2672 | else |
2673 | if test -n "$CC"; then |
2674 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2675 | else |
2676 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2677 | for as_dir in $PATH |
2678 | do |
2679 | IFS=$as_save_IFS |
2680 | test -z "$as_dir" && as_dir=. |
2681 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2682 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2683 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
2684 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2685 | break 2 |
2686 | fi |
2687 | done |
2688 | done |
dd184caf |
2689 | IFS=$as_save_IFS |
d9898ee8 |
2690 | |
2691 | fi |
2692 | fi |
2693 | CC=$ac_cv_prog_CC |
2694 | if test -n "$CC"; then |
dd184caf |
2695 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2696 | echo "${ECHO_T}$CC" >&6; } |
d9898ee8 |
2697 | else |
dd184caf |
2698 | { echo "$as_me:$LINENO: result: no" >&5 |
2699 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2700 | fi |
2701 | |
dd184caf |
2702 | |
d9898ee8 |
2703 | test -n "$CC" && break |
2704 | done |
2705 | fi |
2706 | if test -z "$CC"; then |
2707 | ac_ct_CC=$CC |
dd184caf |
2708 | for ac_prog in cl.exe |
d9898ee8 |
2709 | do |
2710 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2711 | set dummy $ac_prog; ac_word=$2 |
dd184caf |
2712 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2713 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2714 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2715 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2716 | else |
2717 | if test -n "$ac_ct_CC"; then |
2718 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2719 | else |
2720 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2721 | for as_dir in $PATH |
2722 | do |
2723 | IFS=$as_save_IFS |
2724 | test -z "$as_dir" && as_dir=. |
2725 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2726 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2727 | ac_cv_prog_ac_ct_CC="$ac_prog" |
2728 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2729 | break 2 |
2730 | fi |
2731 | done |
2732 | done |
dd184caf |
2733 | IFS=$as_save_IFS |
d9898ee8 |
2734 | |
2735 | fi |
2736 | fi |
2737 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2738 | if test -n "$ac_ct_CC"; then |
dd184caf |
2739 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2740 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
d9898ee8 |
2741 | else |
dd184caf |
2742 | { echo "$as_me:$LINENO: result: no" >&5 |
2743 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2744 | fi |
2745 | |
dd184caf |
2746 | |
d9898ee8 |
2747 | test -n "$ac_ct_CC" && break |
2748 | done |
2749 | |
dd184caf |
2750 | if test "x$ac_ct_CC" = x; then |
2751 | CC="" |
2752 | else |
2753 | case $cross_compiling:$ac_tool_warned in |
2754 | yes:) |
2755 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
2756 | whose name does not start with the host triplet. If you think this |
2757 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
2758 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
2759 | whose name does not start with the host triplet. If you think this |
2760 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
2761 | ac_tool_warned=yes ;; |
2762 | esac |
2763 | CC=$ac_ct_CC |
2764 | fi |
d9898ee8 |
2765 | fi |
2766 | |
2767 | fi |
2768 | |
2769 | |
2770 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
2771 | See \`config.log' for more details." >&5 |
2772 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
2773 | See \`config.log' for more details." >&2;} |
2774 | { (exit 1); exit 1; }; } |
2775 | |
2776 | # Provide some information about the compiler. |
dd184caf |
2777 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
d9898ee8 |
2778 | ac_compiler=`set X $ac_compile; echo $2` |
dd184caf |
2779 | { (ac_try="$ac_compiler --version >&5" |
2780 | case "(($ac_try" in |
2781 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2782 | *) ac_try_echo=$ac_try;; |
2783 | esac |
2784 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2785 | (eval "$ac_compiler --version >&5") 2>&5 |
d9898ee8 |
2786 | ac_status=$? |
2787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2788 | (exit $ac_status); } |
dd184caf |
2789 | { (ac_try="$ac_compiler -v >&5" |
2790 | case "(($ac_try" in |
2791 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2792 | *) ac_try_echo=$ac_try;; |
2793 | esac |
2794 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2795 | (eval "$ac_compiler -v >&5") 2>&5 |
d9898ee8 |
2796 | ac_status=$? |
2797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2798 | (exit $ac_status); } |
dd184caf |
2799 | { (ac_try="$ac_compiler -V >&5" |
2800 | case "(($ac_try" in |
2801 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2802 | *) ac_try_echo=$ac_try;; |
2803 | esac |
2804 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2805 | (eval "$ac_compiler -V >&5") 2>&5 |
d9898ee8 |
2806 | ac_status=$? |
2807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2808 | (exit $ac_status); } |
2809 | |
2810 | cat >conftest.$ac_ext <<_ACEOF |
2811 | /* confdefs.h. */ |
2812 | _ACEOF |
2813 | cat confdefs.h >>conftest.$ac_ext |
2814 | cat >>conftest.$ac_ext <<_ACEOF |
2815 | /* end confdefs.h. */ |
2816 | |
2817 | int |
2818 | main () |
2819 | { |
2820 | |
2821 | ; |
2822 | return 0; |
2823 | } |
2824 | _ACEOF |
2825 | ac_clean_files_save=$ac_clean_files |
2826 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
2827 | # Try to create an executable without -o first, disregard a.out. |
2828 | # It will help us diagnose broken compilers, and finding out an intuition |
2829 | # of exeext. |
dd184caf |
2830 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2831 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
d9898ee8 |
2832 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
dd184caf |
2833 | # |
2834 | # List of possible output files, starting from the most likely. |
2835 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
2836 | # only as a last resort. b.out is created by i960 compilers. |
2837 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
2838 | # |
2839 | # The IRIX 6 linker writes into existing files which may not be |
2840 | # executable, retaining their permissions. Remove them first so a |
2841 | # subsequent execution test works. |
2842 | ac_rmfiles= |
2843 | for ac_file in $ac_files |
2844 | do |
2845 | case $ac_file in |
2846 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
2847 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
2848 | esac |
2849 | done |
2850 | rm -f $ac_rmfiles |
2851 | |
2852 | if { (ac_try="$ac_link_default" |
2853 | case "(($ac_try" in |
2854 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2855 | *) ac_try_echo=$ac_try;; |
2856 | esac |
2857 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2858 | (eval "$ac_link_default") 2>&5 |
d9898ee8 |
2859 | ac_status=$? |
2860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2861 | (exit $ac_status); }; then |
dd184caf |
2862 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2863 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
2864 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
2865 | # so that the user can short-circuit this test for compilers unknown to |
2866 | # Autoconf. |
2867 | for ac_file in $ac_files '' |
d9898ee8 |
2868 | do |
2869 | test -f "$ac_file" || continue |
2870 | case $ac_file in |
dd184caf |
2871 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
d9898ee8 |
2872 | ;; |
2873 | [ab].out ) |
2874 | # We found the default executable, but exeext='' is most |
2875 | # certainly right. |
2876 | break;; |
2877 | *.* ) |
dd184caf |
2878 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2879 | then :; else |
2880 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2881 | fi |
2882 | # We set ac_cv_exeext here because the later test for it is not |
2883 | # safe: cross compilers may not add the suffix if given an `-o' |
2884 | # argument, so we may need to know it at that point already. |
2885 | # Even if this section looks crufty: it has the advantage of |
2886 | # actually working. |
d9898ee8 |
2887 | break;; |
2888 | * ) |
2889 | break;; |
2890 | esac |
2891 | done |
dd184caf |
2892 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2893 | |
d9898ee8 |
2894 | else |
dd184caf |
2895 | ac_file='' |
2896 | fi |
2897 | |
2898 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
2899 | echo "${ECHO_T}$ac_file" >&6; } |
2900 | if test -z "$ac_file"; then |
d9898ee8 |
2901 | echo "$as_me: failed program was:" >&5 |
2902 | sed 's/^/| /' conftest.$ac_ext >&5 |
2903 | |
2904 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
2905 | See \`config.log' for more details." >&5 |
2906 | echo "$as_me: error: C compiler cannot create executables |
2907 | See \`config.log' for more details." >&2;} |
2908 | { (exit 77); exit 77; }; } |
2909 | fi |
2910 | |
2911 | ac_exeext=$ac_cv_exeext |
d9898ee8 |
2912 | |
dd184caf |
2913 | # Check that the compiler produces executables we can run. If not, either |
d9898ee8 |
2914 | # the compiler is broken, or we cross compile. |
dd184caf |
2915 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2916 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
d9898ee8 |
2917 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2918 | # If not cross compiling, check that we can run a simple program. |
2919 | if test "$cross_compiling" != yes; then |
2920 | if { ac_try='./$ac_file' |
dd184caf |
2921 | { (case "(($ac_try" in |
2922 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2923 | *) ac_try_echo=$ac_try;; |
2924 | esac |
2925 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2926 | (eval "$ac_try") 2>&5 |
d9898ee8 |
2927 | ac_status=$? |
2928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2929 | (exit $ac_status); }; }; then |
2930 | cross_compiling=no |
2931 | else |
2932 | if test "$cross_compiling" = maybe; then |
2933 | cross_compiling=yes |
2934 | else |
2935 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
2936 | If you meant to cross compile, use \`--host'. |
2937 | See \`config.log' for more details." >&5 |
2938 | echo "$as_me: error: cannot run C compiled programs. |
2939 | If you meant to cross compile, use \`--host'. |
2940 | See \`config.log' for more details." >&2;} |
2941 | { (exit 1); exit 1; }; } |
2942 | fi |
2943 | fi |
2944 | fi |
dd184caf |
2945 | { echo "$as_me:$LINENO: result: yes" >&5 |
2946 | echo "${ECHO_T}yes" >&6; } |
d9898ee8 |
2947 | |
2948 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
2949 | ac_clean_files=$ac_clean_files_save |
dd184caf |
2950 | # Check that the compiler produces executables we can run. If not, either |
d9898ee8 |
2951 | # the compiler is broken, or we cross compile. |
dd184caf |
2952 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2953 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
2954 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
2955 | echo "${ECHO_T}$cross_compiling" >&6; } |
2956 | |
2957 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
2958 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
2959 | if { (ac_try="$ac_link" |
2960 | case "(($ac_try" in |
2961 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2962 | *) ac_try_echo=$ac_try;; |
2963 | esac |
2964 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2965 | (eval "$ac_link") 2>&5 |
d9898ee8 |
2966 | ac_status=$? |
2967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2968 | (exit $ac_status); }; then |
2969 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
2970 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
2971 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
2972 | # `rm'. |
2973 | for ac_file in conftest.exe conftest conftest.*; do |
2974 | test -f "$ac_file" || continue |
2975 | case $ac_file in |
dd184caf |
2976 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
d9898ee8 |
2977 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
d9898ee8 |
2978 | break;; |
2979 | * ) break;; |
2980 | esac |
2981 | done |
2982 | else |
2983 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
2984 | See \`config.log' for more details." >&5 |
2985 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
2986 | See \`config.log' for more details." >&2;} |
2987 | { (exit 1); exit 1; }; } |
2988 | fi |
2989 | |
2990 | rm -f conftest$ac_cv_exeext |
dd184caf |
2991 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2992 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
d9898ee8 |
2993 | |
2994 | rm -f conftest.$ac_ext |
2995 | EXEEXT=$ac_cv_exeext |
2996 | ac_exeext=$EXEEXT |
dd184caf |
2997 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2998 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
d9898ee8 |
2999 | if test "${ac_cv_objext+set}" = set; then |
3000 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3001 | else |
3002 | cat >conftest.$ac_ext <<_ACEOF |
3003 | /* confdefs.h. */ |
3004 | _ACEOF |
3005 | cat confdefs.h >>conftest.$ac_ext |
3006 | cat >>conftest.$ac_ext <<_ACEOF |
3007 | /* end confdefs.h. */ |
3008 | |
3009 | int |
3010 | main () |
3011 | { |
3012 | |
3013 | ; |
3014 | return 0; |
3015 | } |
3016 | _ACEOF |
3017 | rm -f conftest.o conftest.obj |
dd184caf |
3018 | if { (ac_try="$ac_compile" |
3019 | case "(($ac_try" in |
3020 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3021 | *) ac_try_echo=$ac_try;; |
3022 | esac |
3023 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3024 | (eval "$ac_compile") 2>&5 |
d9898ee8 |
3025 | ac_status=$? |
3026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3027 | (exit $ac_status); }; then |
dd184caf |
3028 | for ac_file in conftest.o conftest.obj conftest.*; do |
3029 | test -f "$ac_file" || continue; |
d9898ee8 |
3030 | case $ac_file in |
dd184caf |
3031 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
d9898ee8 |
3032 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3033 | break;; |
3034 | esac |
3035 | done |
3036 | else |
3037 | echo "$as_me: failed program was:" >&5 |
3038 | sed 's/^/| /' conftest.$ac_ext >&5 |
3039 | |
3040 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
3041 | See \`config.log' for more details." >&5 |
3042 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
3043 | See \`config.log' for more details." >&2;} |
3044 | { (exit 1); exit 1; }; } |
3045 | fi |
3046 | |
3047 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3048 | fi |
dd184caf |
3049 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
3050 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
d9898ee8 |
3051 | OBJEXT=$ac_cv_objext |
3052 | ac_objext=$OBJEXT |
dd184caf |
3053 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
3054 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
d9898ee8 |
3055 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
3056 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3057 | else |
3058 | cat >conftest.$ac_ext <<_ACEOF |
3059 | /* confdefs.h. */ |
3060 | _ACEOF |
3061 | cat confdefs.h >>conftest.$ac_ext |
3062 | cat >>conftest.$ac_ext <<_ACEOF |
3063 | /* end confdefs.h. */ |
3064 | |
3065 | int |
3066 | main () |
3067 | { |
3068 | #ifndef __GNUC__ |
3069 | choke me |
3070 | #endif |
3071 | |
3072 | ; |
3073 | return 0; |
3074 | } |
3075 | _ACEOF |
3076 | rm -f conftest.$ac_objext |
dd184caf |
3077 | if { (ac_try="$ac_compile" |
3078 | case "(($ac_try" in |
3079 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3080 | *) ac_try_echo=$ac_try;; |
3081 | esac |
3082 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3083 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
3084 | ac_status=$? |
3085 | grep -v '^ *+' conftest.er1 >conftest.err |
3086 | rm -f conftest.er1 |
3087 | cat conftest.err >&5 |
3088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
3089 | (exit $ac_status); } && { |
3090 | test -z "$ac_c_werror_flag" || |
3091 | test ! -s conftest.err |
3092 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
3093 | ac_compiler_gnu=yes |
3094 | else |
3095 | echo "$as_me: failed program was:" >&5 |
3096 | sed 's/^/| /' conftest.$ac_ext >&5 |
3097 | |
dd184caf |
3098 | ac_compiler_gnu=no |
d9898ee8 |
3099 | fi |
dd184caf |
3100 | |
3101 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
3102 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3103 | |
3104 | fi |
dd184caf |
3105 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
3106 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
d9898ee8 |
3107 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
3108 | ac_test_CFLAGS=${CFLAGS+set} |
3109 | ac_save_CFLAGS=$CFLAGS |
dd184caf |
3110 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
3111 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
d9898ee8 |
3112 | if test "${ac_cv_prog_cc_g+set}" = set; then |
3113 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3114 | else |
dd184caf |
3115 | ac_save_c_werror_flag=$ac_c_werror_flag |
3116 | ac_c_werror_flag=yes |
3117 | ac_cv_prog_cc_g=no |
3118 | CFLAGS="-g" |
3119 | cat >conftest.$ac_ext <<_ACEOF |
d9898ee8 |
3120 | /* confdefs.h. */ |
3121 | _ACEOF |
3122 | cat confdefs.h >>conftest.$ac_ext |
3123 | cat >>conftest.$ac_ext <<_ACEOF |
3124 | /* end confdefs.h. */ |
3125 | |
3126 | int |
3127 | main () |
3128 | { |
3129 | |
3130 | ; |
3131 | return 0; |
3132 | } |
3133 | _ACEOF |
3134 | rm -f conftest.$ac_objext |
dd184caf |
3135 | if { (ac_try="$ac_compile" |
3136 | case "(($ac_try" in |
3137 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3138 | *) ac_try_echo=$ac_try;; |
3139 | esac |
3140 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3141 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
3142 | ac_status=$? |
3143 | grep -v '^ *+' conftest.er1 >conftest.err |
3144 | rm -f conftest.er1 |
3145 | cat conftest.err >&5 |
3146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
3147 | (exit $ac_status); } && { |
3148 | test -z "$ac_c_werror_flag" || |
3149 | test ! -s conftest.err |
3150 | } && test -s conftest.$ac_objext; then |
3151 | ac_cv_prog_cc_g=yes |
3152 | else |
3153 | echo "$as_me: failed program was:" >&5 |
3154 | sed 's/^/| /' conftest.$ac_ext >&5 |
3155 | |
3156 | CFLAGS="" |
3157 | cat >conftest.$ac_ext <<_ACEOF |
3158 | /* confdefs.h. */ |
3159 | _ACEOF |
3160 | cat confdefs.h >>conftest.$ac_ext |
3161 | cat >>conftest.$ac_ext <<_ACEOF |
3162 | /* end confdefs.h. */ |
3163 | |
3164 | int |
3165 | main () |
3166 | { |
3167 | |
3168 | ; |
3169 | return 0; |
3170 | } |
3171 | _ACEOF |
3172 | rm -f conftest.$ac_objext |
3173 | if { (ac_try="$ac_compile" |
3174 | case "(($ac_try" in |
3175 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3176 | *) ac_try_echo=$ac_try;; |
3177 | esac |
3178 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3179 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
3180 | ac_status=$? |
dd184caf |
3181 | grep -v '^ *+' conftest.er1 >conftest.err |
3182 | rm -f conftest.er1 |
3183 | cat conftest.err >&5 |
d9898ee8 |
3184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
3185 | (exit $ac_status); } && { |
3186 | test -z "$ac_c_werror_flag" || |
3187 | test ! -s conftest.err |
3188 | } && test -s conftest.$ac_objext; then |
3189 | : |
3190 | else |
3191 | echo "$as_me: failed program was:" >&5 |
3192 | sed 's/^/| /' conftest.$ac_ext >&5 |
3193 | |
3194 | ac_c_werror_flag=$ac_save_c_werror_flag |
3195 | CFLAGS="-g" |
3196 | cat >conftest.$ac_ext <<_ACEOF |
3197 | /* confdefs.h. */ |
3198 | _ACEOF |
3199 | cat confdefs.h >>conftest.$ac_ext |
3200 | cat >>conftest.$ac_ext <<_ACEOF |
3201 | /* end confdefs.h. */ |
3202 | |
3203 | int |
3204 | main () |
3205 | { |
3206 | |
3207 | ; |
3208 | return 0; |
3209 | } |
3210 | _ACEOF |
3211 | rm -f conftest.$ac_objext |
3212 | if { (ac_try="$ac_compile" |
3213 | case "(($ac_try" in |
3214 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3215 | *) ac_try_echo=$ac_try;; |
3216 | esac |
3217 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3218 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
3219 | ac_status=$? |
dd184caf |
3220 | grep -v '^ *+' conftest.er1 >conftest.err |
3221 | rm -f conftest.er1 |
3222 | cat conftest.err >&5 |
d9898ee8 |
3223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
3224 | (exit $ac_status); } && { |
3225 | test -z "$ac_c_werror_flag" || |
3226 | test ! -s conftest.err |
3227 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
3228 | ac_cv_prog_cc_g=yes |
3229 | else |
3230 | echo "$as_me: failed program was:" >&5 |
3231 | sed 's/^/| /' conftest.$ac_ext >&5 |
3232 | |
dd184caf |
3233 | |
3234 | fi |
3235 | |
3236 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3237 | fi |
3238 | |
3239 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
3240 | fi |
dd184caf |
3241 | |
3242 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3243 | ac_c_werror_flag=$ac_save_c_werror_flag |
d9898ee8 |
3244 | fi |
dd184caf |
3245 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
3246 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
d9898ee8 |
3247 | if test "$ac_test_CFLAGS" = set; then |
3248 | CFLAGS=$ac_save_CFLAGS |
3249 | elif test $ac_cv_prog_cc_g = yes; then |
3250 | if test "$GCC" = yes; then |
3251 | CFLAGS="-g -O2" |
3252 | else |
3253 | CFLAGS="-g" |
3254 | fi |
3255 | else |
3256 | if test "$GCC" = yes; then |
3257 | CFLAGS="-O2" |
3258 | else |
3259 | CFLAGS= |
3260 | fi |
3261 | fi |
dd184caf |
3262 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
3263 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
3264 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
d9898ee8 |
3265 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3266 | else |
dd184caf |
3267 | ac_cv_prog_cc_c89=no |
d9898ee8 |
3268 | ac_save_CC=$CC |
3269 | cat >conftest.$ac_ext <<_ACEOF |
3270 | /* confdefs.h. */ |
3271 | _ACEOF |
3272 | cat confdefs.h >>conftest.$ac_ext |
3273 | cat >>conftest.$ac_ext <<_ACEOF |
3274 | /* end confdefs.h. */ |
3275 | #include <stdarg.h> |
3276 | #include <stdio.h> |
3277 | #include <sys/types.h> |
3278 | #include <sys/stat.h> |
3279 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
3280 | struct buf { int x; }; |
3281 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
3282 | static char *e (p, i) |
3283 | char **p; |
3284 | int i; |
3285 | { |
3286 | return p[i]; |
3287 | } |
3288 | static char *f (char * (*g) (char **, int), char **p, ...) |
3289 | { |
3290 | char *s; |
3291 | va_list v; |
3292 | va_start (v,p); |
3293 | s = g (p, va_arg (v,int)); |
3294 | va_end (v); |
3295 | return s; |
3296 | } |
3297 | |
3298 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
3299 | function prototypes and stuff, but not '\xHH' hex character constants. |
3300 | These don't provoke an error unfortunately, instead are silently treated |
dd184caf |
3301 | as 'x'. The following induces an error, until -std is added to get |
d9898ee8 |
3302 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3303 | array size at least. It's necessary to write '\x00'==0 to get something |
dd184caf |
3304 | that's true only with -std. */ |
d9898ee8 |
3305 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3306 | |
dd184caf |
3307 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3308 | inside strings and character constants. */ |
3309 | #define FOO(x) 'x' |
3310 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
3311 | |
d9898ee8 |
3312 | int test (int i, double x); |
3313 | struct s1 {int (*f) (int a);}; |
3314 | struct s2 {int (*f) (double a);}; |
3315 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
3316 | int argc; |
3317 | char **argv; |
3318 | int |
3319 | main () |
3320 | { |
3321 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
3322 | ; |
3323 | return 0; |
3324 | } |
3325 | _ACEOF |
dd184caf |
3326 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3327 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
d9898ee8 |
3328 | do |
3329 | CC="$ac_save_CC $ac_arg" |
3330 | rm -f conftest.$ac_objext |
dd184caf |
3331 | if { (ac_try="$ac_compile" |
3332 | case "(($ac_try" in |
3333 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3334 | *) ac_try_echo=$ac_try;; |
3335 | esac |
3336 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3337 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
3338 | ac_status=$? |
3339 | grep -v '^ *+' conftest.er1 >conftest.err |
3340 | rm -f conftest.er1 |
3341 | cat conftest.err >&5 |
3342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
3343 | (exit $ac_status); } && { |
3344 | test -z "$ac_c_werror_flag" || |
3345 | test ! -s conftest.err |
3346 | } && test -s conftest.$ac_objext; then |
3347 | ac_cv_prog_cc_c89=$ac_arg |
d9898ee8 |
3348 | else |
3349 | echo "$as_me: failed program was:" >&5 |
3350 | sed 's/^/| /' conftest.$ac_ext >&5 |
3351 | |
dd184caf |
3352 | |
d9898ee8 |
3353 | fi |
dd184caf |
3354 | |
3355 | rm -f core conftest.err conftest.$ac_objext |
3356 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
d9898ee8 |
3357 | done |
dd184caf |
3358 | rm -f conftest.$ac_ext |
d9898ee8 |
3359 | CC=$ac_save_CC |
3360 | |
3361 | fi |
dd184caf |
3362 | # AC_CACHE_VAL |
3363 | case "x$ac_cv_prog_cc_c89" in |
3364 | x) |
3365 | { echo "$as_me:$LINENO: result: none needed" >&5 |
3366 | echo "${ECHO_T}none needed" >&6; } ;; |
3367 | xno) |
3368 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
3369 | echo "${ECHO_T}unsupported" >&6; } ;; |
d9898ee8 |
3370 | *) |
dd184caf |
3371 | CC="$CC $ac_cv_prog_cc_c89" |
3372 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
3373 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
d9898ee8 |
3374 | esac |
3375 | |
d9898ee8 |
3376 | |
d9898ee8 |
3377 | ac_ext=c |
3378 | ac_cpp='$CPP $CPPFLAGS' |
3379 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3380 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3381 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3382 | DEPDIR="${am__leading_dot}deps" |
3383 | |
dd184caf |
3384 | ac_config_commands="$ac_config_commands depfiles" |
d9898ee8 |
3385 | |
3386 | |
3387 | am_make=${MAKE-make} |
3388 | cat > confinc << 'END' |
3389 | am__doit: |
3390 | @echo done |
3391 | .PHONY: am__doit |
3392 | END |
3393 | # If we don't find an include directive, just comment out the code. |
dd184caf |
3394 | { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
3395 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } |
d9898ee8 |
3396 | am__include="#" |
3397 | am__quote= |
3398 | _am_result=none |
3399 | # First try GNU make style include. |
3400 | echo "include confinc" > confmf |
3401 | # We grep out `Entering directory' and `Leaving directory' |
3402 | # messages which can occur if `w' ends up in MAKEFLAGS. |
3403 | # In particular we don't look at `^make:' because GNU make might |
3404 | # be invoked under some other name (usually "gmake"), in which |
3405 | # case it prints its new name instead of `make'. |
3406 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
3407 | am__include=include |
3408 | am__quote= |
3409 | _am_result=GNU |
3410 | fi |
3411 | # Now try BSD make style include. |
3412 | if test "$am__include" = "#"; then |
3413 | echo '.include "confinc"' > confmf |
3414 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
3415 | am__include=.include |
3416 | am__quote="\"" |
3417 | _am_result=BSD |
3418 | fi |
3419 | fi |
3420 | |
3421 | |
dd184caf |
3422 | { echo "$as_me:$LINENO: result: $_am_result" >&5 |
3423 | echo "${ECHO_T}$_am_result" >&6; } |
d9898ee8 |
3424 | rm -f confinc confmf |
3425 | |
dd184caf |
3426 | # Check whether --enable-dependency-tracking was given. |
d9898ee8 |
3427 | if test "${enable_dependency_tracking+set}" = set; then |
dd184caf |
3428 | enableval=$enable_dependency_tracking; |
3429 | fi |
d9898ee8 |
3430 | |
d9898ee8 |
3431 | if test "x$enable_dependency_tracking" != xno; then |
3432 | am_depcomp="$ac_aux_dir/depcomp" |
3433 | AMDEPBACKSLASH='\' |
3434 | fi |
dd184caf |
3435 | if test "x$enable_dependency_tracking" != xno; then |
d9898ee8 |
3436 | AMDEP_TRUE= |
3437 | AMDEP_FALSE='#' |
3438 | else |
3439 | AMDEP_TRUE='#' |
3440 | AMDEP_FALSE= |
3441 | fi |
3442 | |
3443 | |
3444 | |
d9898ee8 |
3445 | depcc="$CC" am_compiler_list= |
3446 | |
dd184caf |
3447 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
3448 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } |
d9898ee8 |
3449 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
3450 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3451 | else |
3452 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
3453 | # We make a subdir and do the tests there. Otherwise we can end up |
3454 | # making bogus files that we don't know about and never remove. For |
3455 | # instance it was reported that on HP-UX the gcc test will end up |
3456 | # making a dummy file named `D' -- because `-MD' means `put the output |
3457 | # in D'. |
3458 | mkdir conftest.dir |
3459 | # Copy depcomp to subdir because otherwise we won't find it if we're |
3460 | # using a relative directory. |
3461 | cp "$am_depcomp" conftest.dir |
3462 | cd conftest.dir |
3463 | # We will build objects and dependencies in a subdirectory because |
3464 | # it helps to detect inapplicable dependency modes. For instance |
3465 | # both Tru64's cc and ICC support -MD to output dependencies as a |
3466 | # side effect of compilation, but ICC will put the dependencies in |
3467 | # the current directory while Tru64 will put them in the object |
3468 | # directory. |
3469 | mkdir sub |
3470 | |
3471 | am_cv_CC_dependencies_compiler_type=none |
3472 | if test "$am_compiler_list" = ""; then |
3473 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
3474 | fi |
3475 | for depmode in $am_compiler_list; do |
3476 | # Setup a source with many dependencies, because some compilers |
3477 | # like to wrap large dependency lists on column 80 (with \), and |
3478 | # we should not choose a depcomp mode which is confused by this. |
3479 | # |
3480 | # We need to recreate these files for each test, as the compiler may |
3481 | # overwrite some of them when testing with obscure command lines. |
3482 | # This happens at least with the AIX C compiler. |
3483 | : > sub/conftest.c |
3484 | for i in 1 2 3 4 5 6; do |
3485 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
3486 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
3487 | # Solaris 8's {/usr,}/bin/sh. |
3488 | touch sub/conftst$i.h |
3489 | done |
3490 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
3491 | |
3492 | case $depmode in |
3493 | nosideeffect) |
3494 | # after this tag, mechanisms are not by side-effect, so they'll |
3495 | # only be used when explicitly requested |
3496 | if test "x$enable_dependency_tracking" = xyes; then |
3497 | continue |
3498 | else |
3499 | break |
3500 | fi |
3501 | ;; |
3502 | none) break ;; |
3503 | esac |
3504 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
3505 | # mode. It turns out that the SunPro C++ compiler does not properly |
3506 | # handle `-M -o', and we need to detect this. |
3507 | if depmode=$depmode \ |
3508 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
3509 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
3510 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
3511 | >/dev/null 2>conftest.err && |
dd184caf |
3512 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
d9898ee8 |
3513 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
3514 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
3515 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
3516 | # icc doesn't choke on unknown options, it will just issue warnings |
3517 | # or remarks (even with -Werror). So we grep stderr for any message |
3518 | # that says an option was ignored or not supported. |
3519 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
3520 | # icc: Command line warning: ignoring option '-M'; no argument required |
3521 | # The diagnosis changed in icc 8.0: |
3522 | # icc: Command line remark: option '-MP' not supported |
3523 | if (grep 'ignoring option' conftest.err || |
3524 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
3525 | am_cv_CC_dependencies_compiler_type=$depmode |
3526 | break |
3527 | fi |
3528 | fi |
3529 | done |
3530 | |
3531 | cd .. |
3532 | rm -rf conftest.dir |
3533 | else |
3534 | am_cv_CC_dependencies_compiler_type=none |
3535 | fi |
3536 | |
3537 | fi |
dd184caf |
3538 | { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
3539 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } |
d9898ee8 |
3540 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
3541 | |
dd184caf |
3542 | if |
d9898ee8 |
3543 | test "x$enable_dependency_tracking" != xno \ |
3544 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
3545 | am__fastdepCC_TRUE= |
3546 | am__fastdepCC_FALSE='#' |
3547 | else |
3548 | am__fastdepCC_TRUE='#' |
3549 | am__fastdepCC_FALSE= |
3550 | fi |
3551 | |
3552 | |
3553 | # Find a good install program. We prefer a C program (faster), |
3554 | # so one script is as good as another. But avoid the broken or |
3555 | # incompatible versions: |
3556 | # SysV /etc/install, /usr/sbin/install |
3557 | # SunOS /usr/etc/install |
3558 | # IRIX /sbin/install |
3559 | # AIX /bin/install |
3560 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
3561 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
3562 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
3563 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
3564 | # OS/2's system install, which has a completely different semantic |
3565 | # ./install, which can be erroneously created by make from ./install.sh. |
dd184caf |
3566 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
3567 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
d9898ee8 |
3568 | if test -z "$INSTALL"; then |
3569 | if test "${ac_cv_path_install+set}" = set; then |
3570 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3571 | else |
3572 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3573 | for as_dir in $PATH |
3574 | do |
3575 | IFS=$as_save_IFS |
3576 | test -z "$as_dir" && as_dir=. |
3577 | # Account for people who put trailing slashes in PATH elements. |
3578 | case $as_dir/ in |
3579 | ./ | .// | /cC/* | \ |
3580 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
3581 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
3582 | /usr/ucb/* ) ;; |
3583 | *) |
3584 | # OSF1 and SCO ODT 3.0 have their own names for install. |
3585 | # Don't use installbsd from OSF since it installs stuff as root |
3586 | # by default. |
3587 | for ac_prog in ginstall scoinst install; do |
3588 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
3589 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
d9898ee8 |
3590 | if test $ac_prog = install && |
3591 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
3592 | # AIX install. It has an incompatible calling convention. |
3593 | : |
3594 | elif test $ac_prog = install && |
3595 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
3596 | # program-specific install script used by HP pwplus--don't use. |
3597 | : |
3598 | else |
3599 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
3600 | break 3 |
3601 | fi |
3602 | fi |
3603 | done |
3604 | done |
3605 | ;; |
3606 | esac |
3607 | done |
dd184caf |
3608 | IFS=$as_save_IFS |
d9898ee8 |
3609 | |
3610 | |
3611 | fi |
3612 | if test "${ac_cv_path_install+set}" = set; then |
3613 | INSTALL=$ac_cv_path_install |
3614 | else |
dd184caf |
3615 | # As a last resort, use the slow shell script. Don't cache a |
3616 | # value for INSTALL within a source directory, because that will |
d9898ee8 |
3617 | # break other packages using the cache if that directory is |
dd184caf |
3618 | # removed, or if the value is a relative name. |
d9898ee8 |
3619 | INSTALL=$ac_install_sh |
3620 | fi |
3621 | fi |
dd184caf |
3622 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
3623 | echo "${ECHO_T}$INSTALL" >&6; } |
d9898ee8 |
3624 | |
3625 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
3626 | # It thinks the first close brace ends the variable substitution. |
3627 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
3628 | |
3629 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
3630 | |
3631 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3632 | |
dd184caf |
3633 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
3634 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
d9898ee8 |
3635 | LN_S=$as_ln_s |
3636 | if test "$LN_S" = "ln -s"; then |
dd184caf |
3637 | { echo "$as_me:$LINENO: result: yes" >&5 |
3638 | echo "${ECHO_T}yes" >&6; } |
d9898ee8 |
3639 | else |
dd184caf |
3640 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
3641 | echo "${ECHO_T}no, using $LN_S" >&6; } |
d9898ee8 |
3642 | fi |
3643 | |
dd184caf |
3644 | # Check whether --enable-shared was given. |
d9898ee8 |
3645 | if test "${enable_shared+set}" = set; then |
dd184caf |
3646 | enableval=$enable_shared; p=${PACKAGE-default} |
d9898ee8 |
3647 | case $enableval in |
3648 | yes) enable_shared=yes ;; |
3649 | no) enable_shared=no ;; |
3650 | *) |
3651 | enable_shared=no |
3652 | # Look at the argument we got. We use all the common list separators. |
3653 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
3654 | for pkg in $enableval; do |
3655 | IFS="$lt_save_ifs" |
3656 | if test "X$pkg" = "X$p"; then |
3657 | enable_shared=yes |
3658 | fi |
3659 | done |
3660 | IFS="$lt_save_ifs" |
3661 | ;; |
3662 | esac |
3663 | else |
3664 | enable_shared=yes |
dd184caf |
3665 | fi |
3666 | |
d9898ee8 |
3667 | |
dd184caf |
3668 | # Check whether --enable-static was given. |
d9898ee8 |
3669 | if test "${enable_static+set}" = set; then |
dd184caf |
3670 | enableval=$enable_static; p=${PACKAGE-default} |
d9898ee8 |
3671 | case $enableval in |
3672 | yes) enable_static=yes ;; |
3673 | no) enable_static=no ;; |
3674 | *) |
3675 | enable_static=no |
3676 | # Look at the argument we got. We use all the common list separators. |
3677 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
3678 | for pkg in $enableval; do |
3679 | IFS="$lt_save_ifs" |
3680 | if test "X$pkg" = "X$p"; then |
3681 | enable_static=yes |
3682 | fi |
3683 | done |
3684 | IFS="$lt_save_ifs" |
3685 | ;; |
3686 | esac |
3687 | else |
3688 | enable_static=yes |
dd184caf |
3689 | fi |
3690 | |
d9898ee8 |
3691 | |
dd184caf |
3692 | # Check whether --enable-fast-install was given. |
d9898ee8 |
3693 | if test "${enable_fast_install+set}" = set; then |
dd184caf |
3694 | enableval=$enable_fast_install; p=${PACKAGE-default} |
d9898ee8 |
3695 | case $enableval in |
3696 | yes) enable_fast_install=yes ;; |
3697 | no) enable_fast_install=no ;; |
3698 | *) |
3699 | enable_fast_install=no |
3700 | # Look at the argument we got. We use all the common list separators. |
3701 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
3702 | for pkg in $enableval; do |
3703 | IFS="$lt_save_ifs" |
3704 | if test "X$pkg" = "X$p"; then |
3705 | enable_fast_install=yes |
3706 | fi |
3707 | done |
3708 | IFS="$lt_save_ifs" |
3709 | ;; |
3710 | esac |
3711 | else |
3712 | enable_fast_install=yes |
dd184caf |
3713 | fi |
3714 | |
d9898ee8 |
3715 | |
3716 | # Make sure we can run config.sub. |
dd184caf |
3717 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
3718 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
3719 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} |
d9898ee8 |
3720 | { (exit 1); exit 1; }; } |
3721 | |
dd184caf |
3722 | { echo "$as_me:$LINENO: checking build system type" >&5 |
3723 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
d9898ee8 |
3724 | if test "${ac_cv_build+set}" = set; then |
3725 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3726 | else |
dd184caf |
3727 | ac_build_alias=$build_alias |
3728 | test "x$ac_build_alias" = x && |
3729 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
3730 | test "x$ac_build_alias" = x && |
d9898ee8 |
3731 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
3732 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
3733 | { (exit 1); exit 1; }; } |
dd184caf |
3734 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
3735 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
3736 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} |
d9898ee8 |
3737 | { (exit 1); exit 1; }; } |
3738 | |
3739 | fi |
dd184caf |
3740 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
3741 | echo "${ECHO_T}$ac_cv_build" >&6; } |
3742 | case $ac_cv_build in |
3743 | *-*-*) ;; |
3744 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
3745 | echo "$as_me: error: invalid value of canonical build" >&2;} |
3746 | { (exit 1); exit 1; }; };; |
3747 | esac |
d9898ee8 |
3748 | build=$ac_cv_build |
dd184caf |
3749 | ac_save_IFS=$IFS; IFS='-' |
3750 | set x $ac_cv_build |
3751 | shift |
3752 | build_cpu=$1 |
3753 | build_vendor=$2 |
3754 | shift; shift |
3755 | # Remember, the first character of IFS is used to create $*, |
3756 | # except with old shells: |
3757 | build_os=$* |
3758 | IFS=$ac_save_IFS |
3759 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
3760 | |
3761 | |
3762 | { echo "$as_me:$LINENO: checking host system type" >&5 |
3763 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
d9898ee8 |
3764 | if test "${ac_cv_host+set}" = set; then |
3765 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3766 | else |
dd184caf |
3767 | if test "x$host_alias" = x; then |
3768 | ac_cv_host=$ac_cv_build |
3769 | else |
3770 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
3771 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
3772 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} |
d9898ee8 |
3773 | { (exit 1); exit 1; }; } |
dd184caf |
3774 | fi |
d9898ee8 |
3775 | |
3776 | fi |
dd184caf |
3777 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
3778 | echo "${ECHO_T}$ac_cv_host" >&6; } |
3779 | case $ac_cv_host in |
3780 | *-*-*) ;; |
3781 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
3782 | echo "$as_me: error: invalid value of canonical host" >&2;} |
3783 | { (exit 1); exit 1; }; };; |
3784 | esac |
d9898ee8 |
3785 | host=$ac_cv_host |
dd184caf |
3786 | ac_save_IFS=$IFS; IFS='-' |
3787 | set x $ac_cv_host |
3788 | shift |
3789 | host_cpu=$1 |
3790 | host_vendor=$2 |
3791 | shift; shift |
3792 | # Remember, the first character of IFS is used to create $*, |
3793 | # except with old shells: |
3794 | host_os=$* |
3795 | IFS=$ac_save_IFS |
3796 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
3797 | |
3798 | |
3799 | { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
3800 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } |
d9898ee8 |
3801 | if test "${lt_cv_path_SED+set}" = set; then |
3802 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3803 | else |
3804 | # Loop through the user's path and test for sed and gsed. |
3805 | # Then use that list of sed's as ones to test for truncation. |
3806 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3807 | for as_dir in $PATH |
3808 | do |
3809 | IFS=$as_save_IFS |
3810 | test -z "$as_dir" && as_dir=. |
3811 | for lt_ac_prog in sed gsed; do |
3812 | for ac_exec_ext in '' $ac_executable_extensions; do |
3813 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
3814 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
3815 | fi |
3816 | done |
3817 | done |
3818 | done |
d9898ee8 |
3819 | lt_ac_max=0 |
3820 | lt_ac_count=0 |
3821 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
3822 | # along with /bin/sed that truncates output. |
3823 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
3824 | test ! -f $lt_ac_sed && continue |
3825 | cat /dev/null > conftest.in |
3826 | lt_ac_count=0 |
3827 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
3828 | # Check for GNU sed and select it if it is found. |
3829 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
3830 | lt_cv_path_SED=$lt_ac_sed |
3831 | break |
3832 | fi |
3833 | while true; do |
3834 | cat conftest.in conftest.in >conftest.tmp |
3835 | mv conftest.tmp conftest.in |
3836 | cp conftest.in conftest.nl |
3837 | echo >>conftest.nl |
3838 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
3839 | cmp -s conftest.out conftest.nl || break |
3840 | # 10000 chars as input seems more than enough |
3841 | test $lt_ac_count -gt 10 && break |
3842 | lt_ac_count=`expr $lt_ac_count + 1` |
3843 | if test $lt_ac_count -gt $lt_ac_max; then |
3844 | lt_ac_max=$lt_ac_count |
3845 | lt_cv_path_SED=$lt_ac_sed |
3846 | fi |
3847 | done |
3848 | done |
3849 | |
3850 | fi |
3851 | |
3852 | SED=$lt_cv_path_SED |
dd184caf |
3853 | { echo "$as_me:$LINENO: result: $SED" >&5 |
3854 | echo "${ECHO_T}$SED" >&6; } |
3855 | |
3856 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
3857 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
3858 | if test "${ac_cv_path_GREP+set}" = set; then |
3859 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3860 | else |
3861 | # Extract the first word of "grep ggrep" to use in msg output |
3862 | if test -z "$GREP"; then |
3863 | set dummy grep ggrep; ac_prog_name=$2 |
3864 | if test "${ac_cv_path_GREP+set}" = set; then |
3865 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3866 | else |
3867 | ac_path_GREP_found=false |
3868 | # Loop through the user's path and test for each of PROGNAME-LIST |
3869 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3870 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
3871 | do |
3872 | IFS=$as_save_IFS |
3873 | test -z "$as_dir" && as_dir=. |
3874 | for ac_prog in grep ggrep; do |
3875 | for ac_exec_ext in '' $ac_executable_extensions; do |
3876 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
3877 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
3878 | # Check for GNU ac_path_GREP and select it if it is found. |
3879 | # Check for GNU $ac_path_GREP |
3880 | case `"$ac_path_GREP" --version 2>&1` in |
3881 | *GNU*) |
3882 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
3883 | *) |
3884 | ac_count=0 |
3885 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
3886 | while : |
3887 | do |
3888 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
3889 | mv "conftest.tmp" "conftest.in" |
3890 | cp "conftest.in" "conftest.nl" |
3891 | echo 'GREP' >> "conftest.nl" |
3892 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3893 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
3894 | ac_count=`expr $ac_count + 1` |
3895 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
3896 | # Best one so far, save it but keep looking for a better one |
3897 | ac_cv_path_GREP="$ac_path_GREP" |
3898 | ac_path_GREP_max=$ac_count |
3899 | fi |
3900 | # 10*(2^10) chars as input seems more than enough |
3901 | test $ac_count -gt 10 && break |
3902 | done |
3903 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
3904 | esac |
3905 | |
3906 | |
3907 | $ac_path_GREP_found && break 3 |
3908 | done |
3909 | done |
3910 | |
3911 | done |
3912 | IFS=$as_save_IFS |
3913 | |
3914 | |
3915 | fi |
3916 | |
3917 | GREP="$ac_cv_path_GREP" |
3918 | if test -z "$GREP"; then |
3919 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
3920 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
3921 | { (exit 1); exit 1; }; } |
3922 | fi |
3923 | |
3924 | else |
3925 | ac_cv_path_GREP=$GREP |
3926 | fi |
3927 | |
d9898ee8 |
3928 | |
dd184caf |
3929 | fi |
3930 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
3931 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
3932 | GREP="$ac_cv_path_GREP" |
3933 | |
3934 | |
3935 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
3936 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
3937 | if test "${ac_cv_path_EGREP+set}" = set; then |
3938 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3939 | else |
3940 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
3941 | then ac_cv_path_EGREP="$GREP -E" |
3942 | else |
3943 | # Extract the first word of "egrep" to use in msg output |
3944 | if test -z "$EGREP"; then |
3945 | set dummy egrep; ac_prog_name=$2 |
3946 | if test "${ac_cv_path_EGREP+set}" = set; then |
d9898ee8 |
3947 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3948 | else |
dd184caf |
3949 | ac_path_EGREP_found=false |
3950 | # Loop through the user's path and test for each of PROGNAME-LIST |
3951 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3952 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
3953 | do |
3954 | IFS=$as_save_IFS |
3955 | test -z "$as_dir" && as_dir=. |
3956 | for ac_prog in egrep; do |
3957 | for ac_exec_ext in '' $ac_executable_extensions; do |
3958 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
3959 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
3960 | # Check for GNU ac_path_EGREP and select it if it is found. |
3961 | # Check for GNU $ac_path_EGREP |
3962 | case `"$ac_path_EGREP" --version 2>&1` in |
3963 | *GNU*) |
3964 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
3965 | *) |
3966 | ac_count=0 |
3967 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
3968 | while : |
3969 | do |
3970 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
3971 | mv "conftest.tmp" "conftest.in" |
3972 | cp "conftest.in" "conftest.nl" |
3973 | echo 'EGREP' >> "conftest.nl" |
3974 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3975 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
3976 | ac_count=`expr $ac_count + 1` |
3977 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
3978 | # Best one so far, save it but keep looking for a better one |
3979 | ac_cv_path_EGREP="$ac_path_EGREP" |
3980 | ac_path_EGREP_max=$ac_count |
d9898ee8 |
3981 | fi |
dd184caf |
3982 | # 10*(2^10) chars as input seems more than enough |
3983 | test $ac_count -gt 10 && break |
3984 | done |
3985 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
3986 | esac |
3987 | |
3988 | |
3989 | $ac_path_EGREP_found && break 3 |
3990 | done |
3991 | done |
3992 | |
3993 | done |
3994 | IFS=$as_save_IFS |
3995 | |
3996 | |
3997 | fi |
3998 | |
3999 | EGREP="$ac_cv_path_EGREP" |
4000 | if test -z "$EGREP"; then |
4001 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
4002 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
4003 | { (exit 1); exit 1; }; } |
4004 | fi |
4005 | |
4006 | else |
4007 | ac_cv_path_EGREP=$EGREP |
4008 | fi |
4009 | |
4010 | |
4011 | fi |
d9898ee8 |
4012 | fi |
dd184caf |
4013 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
4014 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
4015 | EGREP="$ac_cv_path_EGREP" |
d9898ee8 |
4016 | |
4017 | |
4018 | |
dd184caf |
4019 | # Check whether --with-gnu-ld was given. |
d9898ee8 |
4020 | if test "${with_gnu_ld+set}" = set; then |
dd184caf |
4021 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
d9898ee8 |
4022 | else |
4023 | with_gnu_ld=no |
dd184caf |
4024 | fi |
4025 | |
d9898ee8 |
4026 | ac_prog=ld |
4027 | if test "$GCC" = yes; then |
4028 | # Check if gcc -print-prog-name=ld gives a path. |
dd184caf |
4029 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
4030 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
d9898ee8 |
4031 | case $host in |
4032 | *-*-mingw*) |
4033 | # gcc leaves a trailing carriage return which upsets mingw |
4034 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
4035 | *) |
4036 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
4037 | esac |
4038 | case $ac_prog in |
4039 | # Accept absolute paths. |
4040 | [\\/]* | ?:[\\/]*) |
4041 | re_direlt='/[^/][^/]*/\.\./' |
4042 | # Canonicalize the pathname of ld |
4043 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
4044 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
4045 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
4046 | done |
4047 | test -z "$LD" && LD="$ac_prog" |
4048 | ;; |
4049 | "") |
4050 | # If it fails, then pretend we aren't using GCC. |
4051 | ac_prog=ld |
4052 | ;; |
4053 | *) |
4054 | # If it is relative, then search for the first ld in PATH. |
4055 | with_gnu_ld=unknown |
4056 | ;; |
4057 | esac |
4058 | elif test "$with_gnu_ld" = yes; then |
dd184caf |
4059 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
4060 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
d9898ee8 |
4061 | else |
dd184caf |
4062 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
4063 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
d9898ee8 |
4064 | fi |
4065 | if test "${lt_cv_path_LD+set}" = set; then |
4066 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4067 | else |
4068 | if test -z "$LD"; then |
4069 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
4070 | for ac_dir in $PATH; do |
4071 | IFS="$lt_save_ifs" |
4072 | test -z "$ac_dir" && ac_dir=. |
4073 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
4074 | lt_cv_path_LD="$ac_dir/$ac_prog" |
4075 | # Check to see if the program is GNU ld. I'd rather use --version, |
4076 | # but apparently some variants of GNU ld only accept -v. |
4077 | # Break only if it was the GNU/non-GNU ld that we prefer. |
4078 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
4079 | *GNU* | *'with BFD'*) |
4080 | test "$with_gnu_ld" != no && break |
4081 | ;; |
4082 | *) |
4083 | test "$with_gnu_ld" != yes && break |
4084 | ;; |
4085 | esac |
4086 | fi |
4087 | done |
4088 | IFS="$lt_save_ifs" |
4089 | else |
4090 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
4091 | fi |
4092 | fi |
4093 | |
4094 | LD="$lt_cv_path_LD" |
4095 | if test -n "$LD"; then |
dd184caf |
4096 | { echo "$as_me:$LINENO: result: $LD" >&5 |
4097 | echo "${ECHO_T}$LD" >&6; } |
d9898ee8 |
4098 | else |
dd184caf |
4099 | { echo "$as_me:$LINENO: result: no" >&5 |
4100 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
4101 | fi |
4102 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
4103 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
4104 | { (exit 1); exit 1; }; } |
dd184caf |
4105 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
4106 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } |
d9898ee8 |
4107 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
4108 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4109 | else |
4110 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
4111 | case `$LD -v 2>&1 </dev/null` in |
4112 | *GNU* | *'with BFD'*) |
4113 | lt_cv_prog_gnu_ld=yes |
4114 | ;; |
4115 | *) |
4116 | lt_cv_prog_gnu_ld=no |
4117 | ;; |
4118 | esac |
4119 | fi |
dd184caf |
4120 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
4121 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
d9898ee8 |
4122 | with_gnu_ld=$lt_cv_prog_gnu_ld |
4123 | |
4124 | |
dd184caf |
4125 | { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
4126 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } |
d9898ee8 |
4127 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
4128 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4129 | else |
4130 | lt_cv_ld_reload_flag='-r' |
4131 | fi |
dd184caf |
4132 | { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
4133 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } |
d9898ee8 |
4134 | reload_flag=$lt_cv_ld_reload_flag |
4135 | case $reload_flag in |
4136 | "" | " "*) ;; |
4137 | *) reload_flag=" $reload_flag" ;; |
4138 | esac |
4139 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
4140 | case $host_os in |
4141 | darwin*) |
4142 | if test "$GCC" = yes; then |
4143 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
4144 | else |
4145 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
4146 | fi |
4147 | ;; |
4148 | esac |
4149 | |
dd184caf |
4150 | { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
4151 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } |
d9898ee8 |
4152 | if test "${lt_cv_path_NM+set}" = set; then |
4153 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4154 | else |
4155 | if test -n "$NM"; then |
4156 | # Let the user override the test. |
4157 | lt_cv_path_NM="$NM" |
4158 | else |
4159 | lt_nm_to_check="${ac_tool_prefix}nm" |
4160 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
4161 | lt_nm_to_check="$lt_nm_to_check nm" |
4162 | fi |
4163 | for lt_tmp_nm in $lt_nm_to_check; do |
4164 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
4165 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
4166 | IFS="$lt_save_ifs" |
4167 | test -z "$ac_dir" && ac_dir=. |
4168 | tmp_nm="$ac_dir/$lt_tmp_nm" |
4169 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
4170 | # Check to see if the nm accepts a BSD-compat flag. |
4171 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
4172 | # nm: unknown option "B" ignored |
4173 | # Tru64's nm complains that /dev/null is an invalid object file |
4174 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
4175 | */dev/null* | *'Invalid file or object type'*) |
4176 | lt_cv_path_NM="$tmp_nm -B" |
4177 | break |
4178 | ;; |
4179 | *) |
4180 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
4181 | */dev/null*) |
4182 | lt_cv_path_NM="$tmp_nm -p" |
4183 | break |
4184 | ;; |
4185 | *) |
4186 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
4187 | continue # so that we can try to find one that supports BSD flags |
4188 | ;; |
4189 | esac |
4190 | ;; |
4191 | esac |
4192 | fi |
4193 | done |
4194 | IFS="$lt_save_ifs" |
4195 | done |
4196 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
4197 | fi |
4198 | fi |
dd184caf |
4199 | { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
4200 | echo "${ECHO_T}$lt_cv_path_NM" >&6; } |
d9898ee8 |
4201 | NM="$lt_cv_path_NM" |
4202 | |
dd184caf |
4203 | { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
4204 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } |
d9898ee8 |
4205 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
4206 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4207 | else |
4208 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
4209 | lt_cv_file_magic_test_file= |
4210 | lt_cv_deplibs_check_method='unknown' |
4211 | # Need to set the preceding variable on all platforms that support |
4212 | # interlibrary dependencies. |
4213 | # 'none' -- dependencies not supported. |
4214 | # `unknown' -- same as none, but documents that we really don't know. |
4215 | # 'pass_all' -- all dependencies passed with no checks. |
4216 | # 'test_compile' -- check by making test program. |
4217 | # 'file_magic [[regex]]' -- check by looking for files in library path |
4218 | # which responds to the $file_magic_cmd with a given extended regex. |
4219 | # If you have `file' or equivalent on your system and you're not sure |
4220 | # whether `pass_all' will *always* work, you probably want this one. |
4221 | |
4222 | case $host_os in |
4223 | aix4* | aix5*) |
4224 | lt_cv_deplibs_check_method=pass_all |
4225 | ;; |
4226 | |
4227 | beos*) |
4228 | lt_cv_deplibs_check_method=pass_all |
4229 | ;; |
4230 | |
4231 | bsdi[45]*) |
4232 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
4233 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
4234 | lt_cv_file_magic_test_file=/shlib/libc.so |
4235 | ;; |
4236 | |
4237 | cygwin*) |
4238 | # func_win32_libid is a shell function defined in ltmain.sh |
4239 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
4240 | lt_cv_file_magic_cmd='func_win32_libid' |
4241 | ;; |
4242 | |
4243 | mingw* | pw32*) |
4244 | # Base MSYS/MinGW do not provide the 'file' command needed by |
4245 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. |
4246 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
4247 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
4248 | ;; |
4249 | |
4250 | darwin* | rhapsody*) |
4251 | lt_cv_deplibs_check_method=pass_all |
4252 | ;; |
4253 | |
1dce02f2 |
4254 | freebsd* | dragonfly*) |
d9898ee8 |
4255 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
4256 | case $host_cpu in |
4257 | i*86 ) |
4258 | # Not sure whether the presence of OpenBSD here was a mistake. |
4259 | # Let's accept both of them until this is cleared up. |
4260 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
4261 | lt_cv_file_magic_cmd=/usr/bin/file |
4262 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
4263 | ;; |
4264 | esac |
4265 | else |
4266 | lt_cv_deplibs_check_method=pass_all |
4267 | fi |
4268 | ;; |
4269 | |
4270 | gnu*) |
4271 | lt_cv_deplibs_check_method=pass_all |
4272 | ;; |
4273 | |
4274 | hpux10.20* | hpux11*) |
4275 | lt_cv_file_magic_cmd=/usr/bin/file |
4276 | case $host_cpu in |
4277 | ia64*) |
4278 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
4279 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
4280 | ;; |
4281 | hppa*64*) |
4282 | 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]' |
4283 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
4284 | ;; |
4285 | *) |
4286 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
4287 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
4288 | ;; |
4289 | esac |
4290 | ;; |
4291 | |
4292 | interix3*) |
4293 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
4294 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
4295 | ;; |
4296 | |
4297 | irix5* | irix6* | nonstopux*) |
4298 | case $LD in |
4299 | *-32|*"-32 ") libmagic=32-bit;; |
4300 | *-n32|*"-n32 ") libmagic=N32;; |
4301 | *-64|*"-64 ") libmagic=64-bit;; |
4302 | *) libmagic=never-match;; |
4303 | esac |
4304 | lt_cv_deplibs_check_method=pass_all |
4305 | ;; |
4306 | |
4307 | # This must be Linux ELF. |
1dce02f2 |
4308 | linux* | k*bsd*-gnu) |
d9898ee8 |
4309 | lt_cv_deplibs_check_method=pass_all |
4310 | ;; |
4311 | |
1dce02f2 |
4312 | netbsd* | netbsdelf*-gnu) |
d9898ee8 |
4313 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
4314 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
4315 | else |
4316 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
4317 | fi |
4318 | ;; |
4319 | |
4320 | newos6*) |
4321 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
4322 | lt_cv_file_magic_cmd=/usr/bin/file |
4323 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
4324 | ;; |
4325 | |
4326 | nto-qnx*) |
4327 | lt_cv_deplibs_check_method=unknown |
4328 | ;; |
4329 | |
4330 | openbsd*) |
4331 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
4332 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
4333 | else |
4334 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
4335 | fi |
4336 | ;; |
4337 | |
4338 | osf3* | osf4* | osf5*) |
4339 | lt_cv_deplibs_check_method=pass_all |
4340 | ;; |
4341 | |
4342 | solaris*) |
4343 | lt_cv_deplibs_check_method=pass_all |
4344 | ;; |
4345 | |
4346 | sysv4 | sysv4.3*) |
4347 | case $host_vendor in |
4348 | motorola) |
4349 | 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]' |
4350 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
4351 | ;; |
4352 | ncr) |
4353 | lt_cv_deplibs_check_method=pass_all |
4354 | ;; |
4355 | sequent) |
4356 | lt_cv_file_magic_cmd='/bin/file' |
4357 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
4358 | ;; |
4359 | sni) |
4360 | lt_cv_file_magic_cmd='/bin/file' |
4361 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
4362 | lt_cv_file_magic_test_file=/lib/libc.so |
4363 | ;; |
4364 | siemens) |
4365 | lt_cv_deplibs_check_method=pass_all |
4366 | ;; |
4367 | pc) |
4368 | lt_cv_deplibs_check_method=pass_all |
4369 | ;; |
4370 | esac |
4371 | ;; |
4372 | |
4373 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
4374 | lt_cv_deplibs_check_method=pass_all |
4375 | ;; |
4376 | esac |
4377 | |
4378 | fi |
dd184caf |
4379 | { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
4380 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } |
d9898ee8 |
4381 | file_magic_cmd=$lt_cv_file_magic_cmd |
4382 | deplibs_check_method=$lt_cv_deplibs_check_method |
4383 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
4384 | |
4385 | |
4386 | |
4387 | |
4388 | # If no C compiler was specified, use CC. |
4389 | LTCC=${LTCC-"$CC"} |
4390 | |
4391 | # If no C compiler flags were specified, use CFLAGS. |
4392 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
4393 | |
4394 | # Allow CC to be a program name with arguments. |
4395 | compiler=$CC |
4396 | |
4397 | |
dd184caf |
4398 | # Check whether --enable-libtool-lock was given. |
d9898ee8 |
4399 | if test "${enable_libtool_lock+set}" = set; then |
dd184caf |
4400 | enableval=$enable_libtool_lock; |
4401 | fi |
d9898ee8 |
4402 | |
d9898ee8 |
4403 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
4404 | |
4405 | # Some flags need to be propagated to the compiler or linker for good |
4406 | # libtool support. |
4407 | case $host in |
4408 | ia64-*-hpux*) |
4409 | # Find out which ABI we are using. |
4410 | echo 'int i;' > conftest.$ac_ext |
4411 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4412 | (eval $ac_compile) 2>&5 |
4413 | ac_status=$? |
4414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4415 | (exit $ac_status); }; then |
4416 | case `/usr/bin/file conftest.$ac_objext` in |
4417 | *ELF-32*) |
4418 | HPUX_IA64_MODE="32" |
4419 | ;; |
4420 | *ELF-64*) |
4421 | HPUX_IA64_MODE="64" |
4422 | ;; |
4423 | esac |
4424 | fi |
4425 | rm -rf conftest* |
4426 | ;; |
4427 | *-*-irix6*) |
4428 | # Find out which ABI we are using. |
1dce02f2 |
4429 | echo '#line 4429 "configure"' > conftest.$ac_ext |
d9898ee8 |
4430 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4431 | (eval $ac_compile) 2>&5 |
4432 | ac_status=$? |
4433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4434 | (exit $ac_status); }; then |
4435 | if test "$lt_cv_prog_gnu_ld" = yes; then |
4436 | case `/usr/bin/file conftest.$ac_objext` in |
4437 | *32-bit*) |
4438 | LD="${LD-ld} -melf32bsmip" |
4439 | ;; |
4440 | *N32*) |
4441 | LD="${LD-ld} -melf32bmipn32" |
4442 | ;; |
4443 | *64-bit*) |
4444 | LD="${LD-ld} -melf64bmip" |
4445 | ;; |
4446 | esac |
4447 | else |
4448 | case `/usr/bin/file conftest.$ac_objext` in |
4449 | *32-bit*) |
4450 | LD="${LD-ld} -32" |
4451 | ;; |
4452 | *N32*) |
4453 | LD="${LD-ld} -n32" |
4454 | ;; |
4455 | *64-bit*) |
4456 | LD="${LD-ld} -64" |
4457 | ;; |
4458 | esac |
4459 | fi |
4460 | fi |
4461 | rm -rf conftest* |
4462 | ;; |
4463 | |
4464 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
4465 | # Find out which ABI we are using. |
4466 | echo 'int i;' > conftest.$ac_ext |
4467 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4468 | (eval $ac_compile) 2>&5 |
4469 | ac_status=$? |
4470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4471 | (exit $ac_status); }; then |
4472 | case `/usr/bin/file conftest.o` in |
4473 | *32-bit*) |
4474 | case $host in |
4475 | x86_64-*linux*) |
4476 | LD="${LD-ld} -m elf_i386" |
4477 | ;; |
4478 | ppc64-*linux*|powerpc64-*linux*) |
4479 | LD="${LD-ld} -m elf32ppclinux" |
4480 | ;; |
4481 | s390x-*linux*) |
4482 | LD="${LD-ld} -m elf_s390" |
4483 | ;; |
4484 | sparc64-*linux*) |
4485 | LD="${LD-ld} -m elf32_sparc" |
4486 | ;; |
4487 | esac |
4488 | ;; |
4489 | *64-bit*) |
4490 | case $host in |
4491 | x86_64-*linux*) |
4492 | LD="${LD-ld} -m elf_x86_64" |
4493 | ;; |
4494 | ppc*-*linux*|powerpc*-*linux*) |
4495 | LD="${LD-ld} -m elf64ppc" |
4496 | ;; |
4497 | s390*-*linux*) |
4498 | LD="${LD-ld} -m elf64_s390" |
4499 | ;; |
4500 | sparc*-*linux*) |
4501 | LD="${LD-ld} -m elf64_sparc" |
4502 | ;; |
4503 | esac |
4504 | ;; |
4505 | esac |
4506 | fi |
4507 | rm -rf conftest* |
4508 | ;; |
4509 | |
4510 | *-*-sco3.2v5*) |
4511 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
4512 | SAVE_CFLAGS="$CFLAGS" |
4513 | CFLAGS="$CFLAGS -belf" |
dd184caf |
4514 | { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
4515 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } |
d9898ee8 |
4516 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
4517 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4518 | else |
4519 | ac_ext=c |
4520 | ac_cpp='$CPP $CPPFLAGS' |
4521 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4522 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4523 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4524 | |
4525 | cat >conftest.$ac_ext <<_ACEOF |
4526 | /* confdefs.h. */ |
4527 | _ACEOF |
4528 | cat confdefs.h >>conftest.$ac_ext |
4529 | cat >>conftest.$ac_ext <<_ACEOF |
4530 | /* end confdefs.h. */ |
4531 | |
4532 | int |
4533 | main () |
4534 | { |
4535 | |
4536 | ; |
4537 | return 0; |
4538 | } |
4539 | _ACEOF |
4540 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
4541 | if { (ac_try="$ac_link" |
4542 | case "(($ac_try" in |
4543 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4544 | *) ac_try_echo=$ac_try;; |
4545 | esac |
4546 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4547 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
4548 | ac_status=$? |
4549 | grep -v '^ *+' conftest.er1 >conftest.err |
4550 | rm -f conftest.er1 |
4551 | cat conftest.err >&5 |
4552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
4553 | (exit $ac_status); } && { |
4554 | test -z "$ac_c_werror_flag" || |
4555 | test ! -s conftest.err |
4556 | } && test -s conftest$ac_exeext && |
4557 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
4558 | lt_cv_cc_needs_belf=yes |
4559 | else |
4560 | echo "$as_me: failed program was:" >&5 |
4561 | sed 's/^/| /' conftest.$ac_ext >&5 |
4562 | |
dd184caf |
4563 | lt_cv_cc_needs_belf=no |
d9898ee8 |
4564 | fi |
dd184caf |
4565 | |
4566 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
4567 | conftest$ac_exeext conftest.$ac_ext |
4568 | ac_ext=c |
4569 | ac_cpp='$CPP $CPPFLAGS' |
4570 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4571 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4572 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4573 | |
4574 | fi |
dd184caf |
4575 | { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
4576 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } |
d9898ee8 |
4577 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
4578 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
4579 | CFLAGS="$SAVE_CFLAGS" |
4580 | fi |
4581 | ;; |
4582 | sparc*-*solaris*) |
4583 | # Find out which ABI we are using. |
4584 | echo 'int i;' > conftest.$ac_ext |
4585 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4586 | (eval $ac_compile) 2>&5 |
4587 | ac_status=$? |
4588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4589 | (exit $ac_status); }; then |
4590 | case `/usr/bin/file conftest.o` in |
4591 | *64-bit*) |
4592 | case $lt_cv_prog_gnu_ld in |
4593 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
4594 | *) LD="${LD-ld} -64" ;; |
4595 | esac |
4596 | ;; |
4597 | esac |
4598 | fi |
4599 | rm -rf conftest* |
4600 | ;; |
4601 | |
4602 | |
4603 | esac |
4604 | |
4605 | need_locks="$enable_libtool_lock" |
4606 | |
4607 | |
4608 | ac_ext=c |
4609 | ac_cpp='$CPP $CPPFLAGS' |
4610 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4611 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4612 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
dd184caf |
4613 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
4614 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
d9898ee8 |
4615 | # On Suns, sometimes $CPP names a directory. |
4616 | if test -n "$CPP" && test -d "$CPP"; then |
4617 | CPP= |
4618 | fi |
4619 | if test -z "$CPP"; then |
4620 | if test "${ac_cv_prog_CPP+set}" = set; then |
4621 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4622 | else |
4623 | # Double quotes because CPP needs to be expanded |
4624 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
4625 | do |
4626 | ac_preproc_ok=false |
4627 | for ac_c_preproc_warn_flag in '' yes |
4628 | do |
4629 | # Use a header file that comes with gcc, so configuring glibc |
4630 | # with a fresh cross-compiler works. |
4631 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
4632 | # <limits.h> exists even on freestanding compilers. |
4633 | # On the NeXT, cc -E runs the code through the compiler's parser, |
4634 | # not just through cpp. "Syntax error" is here to catch this case. |
4635 | cat >conftest.$ac_ext <<_ACEOF |
4636 | /* confdefs.h. */ |
4637 | _ACEOF |
4638 | cat confdefs.h >>conftest.$ac_ext |
4639 | cat >>conftest.$ac_ext <<_ACEOF |
4640 | /* end confdefs.h. */ |
4641 | #ifdef __STDC__ |
4642 | # include <limits.h> |
4643 | #else |
4644 | # include <assert.h> |
4645 | #endif |
4646 | Syntax error |
4647 | _ACEOF |
dd184caf |
4648 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4649 | case "(($ac_try" in |
4650 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4651 | *) ac_try_echo=$ac_try;; |
4652 | esac |
4653 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4654 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
4655 | ac_status=$? |
4656 | grep -v '^ *+' conftest.er1 >conftest.err |
4657 | rm -f conftest.er1 |
4658 | cat conftest.err >&5 |
4659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
4660 | (exit $ac_status); } >/dev/null && { |
4661 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
4662 | test ! -s conftest.err |
4663 | }; then |
d9898ee8 |
4664 | : |
4665 | else |
4666 | echo "$as_me: failed program was:" >&5 |
4667 | sed 's/^/| /' conftest.$ac_ext >&5 |
4668 | |
4669 | # Broken: fails on valid input. |
4670 | continue |
4671 | fi |
dd184caf |
4672 | |
d9898ee8 |
4673 | rm -f conftest.err conftest.$ac_ext |
4674 | |
dd184caf |
4675 | # OK, works on sane cases. Now check whether nonexistent headers |
d9898ee8 |
4676 | # can be detected and how. |
4677 | cat >conftest.$ac_ext <<_ACEOF |
4678 | /* confdefs.h. */ |
4679 | _ACEOF |
4680 | cat confdefs.h >>conftest.$ac_ext |
4681 | cat >>conftest.$ac_ext <<_ACEOF |
4682 | /* end confdefs.h. */ |
4683 | #include <ac_nonexistent.h> |
4684 | _ACEOF |
dd184caf |
4685 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4686 | case "(($ac_try" in |
4687 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4688 | *) ac_try_echo=$ac_try;; |
4689 | esac |
4690 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4691 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
4692 | ac_status=$? |
4693 | grep -v '^ *+' conftest.er1 >conftest.err |
4694 | rm -f conftest.er1 |
4695 | cat conftest.err >&5 |
4696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
4697 | (exit $ac_status); } >/dev/null && { |
4698 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
4699 | test ! -s conftest.err |
4700 | }; then |
d9898ee8 |
4701 | # Broken: success on invalid input. |
4702 | continue |
4703 | else |
4704 | echo "$as_me: failed program was:" >&5 |
4705 | sed 's/^/| /' conftest.$ac_ext >&5 |
4706 | |
4707 | # Passes both tests. |
4708 | ac_preproc_ok=: |
4709 | break |
4710 | fi |
dd184caf |
4711 | |
d9898ee8 |
4712 | rm -f conftest.err conftest.$ac_ext |
4713 | |
4714 | done |
4715 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
4716 | rm -f conftest.err conftest.$ac_ext |
4717 | if $ac_preproc_ok; then |
4718 | break |
4719 | fi |
4720 | |
4721 | done |
4722 | ac_cv_prog_CPP=$CPP |
4723 | |
4724 | fi |
4725 | CPP=$ac_cv_prog_CPP |
4726 | else |
4727 | ac_cv_prog_CPP=$CPP |
4728 | fi |
dd184caf |
4729 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
4730 | echo "${ECHO_T}$CPP" >&6; } |
d9898ee8 |
4731 | ac_preproc_ok=false |
4732 | for ac_c_preproc_warn_flag in '' yes |
4733 | do |
4734 | # Use a header file that comes with gcc, so configuring glibc |
4735 | # with a fresh cross-compiler works. |
4736 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
4737 | # <limits.h> exists even on freestanding compilers. |
4738 | # On the NeXT, cc -E runs the code through the compiler's parser, |
4739 | # not just through cpp. "Syntax error" is here to catch this case. |
4740 | cat >conftest.$ac_ext <<_ACEOF |
4741 | /* confdefs.h. */ |
4742 | _ACEOF |
4743 | cat confdefs.h >>conftest.$ac_ext |
4744 | cat >>conftest.$ac_ext <<_ACEOF |
4745 | /* end confdefs.h. */ |
4746 | #ifdef __STDC__ |
4747 | # include <limits.h> |
4748 | #else |
4749 | # include <assert.h> |
4750 | #endif |
4751 | Syntax error |
4752 | _ACEOF |
dd184caf |
4753 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4754 | case "(($ac_try" in |
4755 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4756 | *) ac_try_echo=$ac_try;; |
4757 | esac |
4758 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4759 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
4760 | ac_status=$? |
4761 | grep -v '^ *+' conftest.er1 >conftest.err |
4762 | rm -f conftest.er1 |
4763 | cat conftest.err >&5 |
4764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
4765 | (exit $ac_status); } >/dev/null && { |
4766 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
4767 | test ! -s conftest.err |
4768 | }; then |
d9898ee8 |
4769 | : |
4770 | else |
4771 | echo "$as_me: failed program was:" >&5 |
4772 | sed 's/^/| /' conftest.$ac_ext >&5 |
4773 | |
4774 | # Broken: fails on valid input. |
4775 | continue |
4776 | fi |
dd184caf |
4777 | |
d9898ee8 |
4778 | rm -f conftest.err conftest.$ac_ext |
4779 | |
dd184caf |
4780 | # OK, works on sane cases. Now check whether nonexistent headers |
d9898ee8 |
4781 | # can be detected and how. |
4782 | cat >conftest.$ac_ext <<_ACEOF |
4783 | /* confdefs.h. */ |
4784 | _ACEOF |
4785 | cat confdefs.h >>conftest.$ac_ext |
4786 | cat >>conftest.$ac_ext <<_ACEOF |
4787 | /* end confdefs.h. */ |
4788 | #include <ac_nonexistent.h> |
4789 | _ACEOF |
dd184caf |
4790 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4791 | case "(($ac_try" in |
4792 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4793 | *) ac_try_echo=$ac_try;; |
4794 | esac |
4795 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4796 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
4797 | ac_status=$? |
4798 | grep -v '^ *+' conftest.er1 >conftest.err |
4799 | rm -f conftest.er1 |
4800 | cat conftest.err >&5 |
4801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
4802 | (exit $ac_status); } >/dev/null && { |
4803 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
4804 | test ! -s conftest.err |
4805 | }; then |
d9898ee8 |
4806 | # Broken: success on invalid input. |
4807 | continue |
4808 | else |
4809 | echo "$as_me: failed program was:" >&5 |
4810 | sed 's/^/| /' conftest.$ac_ext >&5 |
4811 | |
4812 | # Passes both tests. |
4813 | ac_preproc_ok=: |
4814 | break |
4815 | fi |
dd184caf |
4816 | |
d9898ee8 |
4817 | rm -f conftest.err conftest.$ac_ext |
4818 | |
4819 | done |
4820 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
4821 | rm -f conftest.err conftest.$ac_ext |
4822 | if $ac_preproc_ok; then |
4823 | : |
4824 | else |
4825 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
4826 | See \`config.log' for more details." >&5 |
4827 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
4828 | See \`config.log' for more details." >&2;} |
4829 | { (exit 1); exit 1; }; } |
4830 | fi |
4831 | |
4832 | ac_ext=c |
4833 | ac_cpp='$CPP $CPPFLAGS' |
4834 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4835 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4836 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4837 | |
4838 | |
dd184caf |
4839 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4840 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
d9898ee8 |
4841 | if test "${ac_cv_header_stdc+set}" = set; then |
4842 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4843 | else |
4844 | cat >conftest.$ac_ext <<_ACEOF |
4845 | /* confdefs.h. */ |
4846 | _ACEOF |
4847 | cat confdefs.h >>conftest.$ac_ext |
4848 | cat >>conftest.$ac_ext <<_ACEOF |
4849 | /* end confdefs.h. */ |
4850 | #include <stdlib.h> |
4851 | #include <stdarg.h> |
4852 | #include <string.h> |
4853 | #include <float.h> |
4854 | |
4855 | int |
4856 | main () |
4857 | { |
4858 | |
4859 | ; |
4860 | return 0; |
4861 | } |
4862 | _ACEOF |
4863 | rm -f conftest.$ac_objext |
dd184caf |
4864 | if { (ac_try="$ac_compile" |
4865 | case "(($ac_try" in |
4866 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4867 | *) ac_try_echo=$ac_try;; |
4868 | esac |
4869 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4870 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
4871 | ac_status=$? |
4872 | grep -v '^ *+' conftest.er1 >conftest.err |
4873 | rm -f conftest.er1 |
4874 | cat conftest.err >&5 |
4875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
4876 | (exit $ac_status); } && { |
4877 | test -z "$ac_c_werror_flag" || |
4878 | test ! -s conftest.err |
4879 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
4880 | ac_cv_header_stdc=yes |
4881 | else |
4882 | echo "$as_me: failed program was:" >&5 |
4883 | sed 's/^/| /' conftest.$ac_ext >&5 |
4884 | |
dd184caf |
4885 | ac_cv_header_stdc=no |
d9898ee8 |
4886 | fi |
dd184caf |
4887 | |
4888 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
4889 | |
4890 | if test $ac_cv_header_stdc = yes; then |
4891 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
4892 | cat >conftest.$ac_ext <<_ACEOF |
4893 | /* confdefs.h. */ |
4894 | _ACEOF |
4895 | cat confdefs.h >>conftest.$ac_ext |
4896 | cat >>conftest.$ac_ext <<_ACEOF |
4897 | /* end confdefs.h. */ |
4898 | #include <string.h> |
4899 | |
4900 | _ACEOF |
4901 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4902 | $EGREP "memchr" >/dev/null 2>&1; then |
4903 | : |
4904 | else |
4905 | ac_cv_header_stdc=no |
4906 | fi |
4907 | rm -f conftest* |
4908 | |
4909 | fi |
4910 | |
4911 | if test $ac_cv_header_stdc = yes; then |
4912 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
4913 | cat >conftest.$ac_ext <<_ACEOF |
4914 | /* confdefs.h. */ |
4915 | _ACEOF |
4916 | cat confdefs.h >>conftest.$ac_ext |
4917 | cat >>conftest.$ac_ext <<_ACEOF |
4918 | /* end confdefs.h. */ |
4919 | #include <stdlib.h> |
4920 | |
4921 | _ACEOF |
4922 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4923 | $EGREP "free" >/dev/null 2>&1; then |
4924 | : |
4925 | else |
4926 | ac_cv_header_stdc=no |
4927 | fi |
4928 | rm -f conftest* |
4929 | |
4930 | fi |
4931 | |
4932 | if test $ac_cv_header_stdc = yes; then |
4933 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
4934 | if test "$cross_compiling" = yes; then |
4935 | : |
4936 | else |
4937 | cat >conftest.$ac_ext <<_ACEOF |
4938 | /* confdefs.h. */ |
4939 | _ACEOF |
4940 | cat confdefs.h >>conftest.$ac_ext |
4941 | cat >>conftest.$ac_ext <<_ACEOF |
4942 | /* end confdefs.h. */ |
4943 | #include <ctype.h> |
dd184caf |
4944 | #include <stdlib.h> |
d9898ee8 |
4945 | #if ((' ' & 0x0FF) == 0x020) |
4946 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
4947 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
4948 | #else |
4949 | # define ISLOWER(c) \ |
4950 | (('a' <= (c) && (c) <= 'i') \ |
4951 | || ('j' <= (c) && (c) <= 'r') \ |
4952 | || ('s' <= (c) && (c) <= 'z')) |
4953 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
4954 | #endif |
4955 | |
4956 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
4957 | int |
4958 | main () |
4959 | { |
4960 | int i; |
4961 | for (i = 0; i < 256; i++) |
4962 | if (XOR (islower (i), ISLOWER (i)) |
4963 | || toupper (i) != TOUPPER (i)) |
dd184caf |
4964 | return 2; |
4965 | return 0; |
d9898ee8 |
4966 | } |
4967 | _ACEOF |
4968 | rm -f conftest$ac_exeext |
dd184caf |
4969 | if { (ac_try="$ac_link" |
4970 | case "(($ac_try" in |
4971 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4972 | *) ac_try_echo=$ac_try;; |
4973 | esac |
4974 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4975 | (eval "$ac_link") 2>&5 |
d9898ee8 |
4976 | ac_status=$? |
4977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4978 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
dd184caf |
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_try") 2>&5 |
d9898ee8 |
4985 | ac_status=$? |
4986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4987 | (exit $ac_status); }; }; then |
4988 | : |
4989 | else |
4990 | echo "$as_me: program exited with status $ac_status" >&5 |
4991 | echo "$as_me: failed program was:" >&5 |
4992 | sed 's/^/| /' conftest.$ac_ext >&5 |
4993 | |
4994 | ( exit $ac_status ) |
4995 | ac_cv_header_stdc=no |
4996 | fi |
dd184caf |
4997 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
4998 | fi |
dd184caf |
4999 | |
5000 | |
d9898ee8 |
5001 | fi |
5002 | fi |
dd184caf |
5003 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
5004 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
d9898ee8 |
5005 | if test $ac_cv_header_stdc = yes; then |
5006 | |
5007 | cat >>confdefs.h <<\_ACEOF |
5008 | #define STDC_HEADERS 1 |
5009 | _ACEOF |
5010 | |
5011 | fi |
5012 | |
5013 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
5014 | |
5015 | |
5016 | |
5017 | |
5018 | |
5019 | |
5020 | |
5021 | |
5022 | |
5023 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
5024 | inttypes.h stdint.h unistd.h |
5025 | do |
5026 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
dd184caf |
5027 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5028 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
5029 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
5030 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5031 | else |
5032 | cat >conftest.$ac_ext <<_ACEOF |
5033 | /* confdefs.h. */ |
5034 | _ACEOF |
5035 | cat confdefs.h >>conftest.$ac_ext |
5036 | cat >>conftest.$ac_ext <<_ACEOF |
5037 | /* end confdefs.h. */ |
5038 | $ac_includes_default |
5039 | |
5040 | #include <$ac_header> |
5041 | _ACEOF |
5042 | rm -f conftest.$ac_objext |
dd184caf |
5043 | if { (ac_try="$ac_compile" |
5044 | case "(($ac_try" in |
5045 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5046 | *) ac_try_echo=$ac_try;; |
5047 | esac |
5048 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5049 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
5050 | ac_status=$? |
5051 | grep -v '^ *+' conftest.er1 >conftest.err |
5052 | rm -f conftest.er1 |
5053 | cat conftest.err >&5 |
5054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
5055 | (exit $ac_status); } && { |
5056 | test -z "$ac_c_werror_flag" || |
5057 | test ! -s conftest.err |
5058 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
5059 | eval "$as_ac_Header=yes" |
5060 | else |
5061 | echo "$as_me: failed program was:" >&5 |
5062 | sed 's/^/| /' conftest.$ac_ext >&5 |
5063 | |
dd184caf |
5064 | eval "$as_ac_Header=no" |
d9898ee8 |
5065 | fi |
dd184caf |
5066 | |
5067 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
5068 | fi |
dd184caf |
5069 | ac_res=`eval echo '${'$as_ac_Header'}'` |
5070 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
5071 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
5072 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
5073 | cat >>confdefs.h <<_ACEOF |
5074 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
5075 | _ACEOF |
5076 | |
5077 | fi |
5078 | |
5079 | done |
5080 | |
5081 | |
5082 | |
5083 | for ac_header in dlfcn.h |
5084 | do |
5085 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
dd184caf |
5086 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5087 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5088 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
5089 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
5090 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5091 | fi |
dd184caf |
5092 | ac_res=`eval echo '${'$as_ac_Header'}'` |
5093 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
5094 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
5095 | else |
5096 | # Is the header compilable? |
dd184caf |
5097 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5098 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
d9898ee8 |
5099 | cat >conftest.$ac_ext <<_ACEOF |
5100 | /* confdefs.h. */ |
5101 | _ACEOF |
5102 | cat confdefs.h >>conftest.$ac_ext |
5103 | cat >>conftest.$ac_ext <<_ACEOF |
5104 | /* end confdefs.h. */ |
5105 | $ac_includes_default |
5106 | #include <$ac_header> |
5107 | _ACEOF |
5108 | rm -f conftest.$ac_objext |
dd184caf |
5109 | if { (ac_try="$ac_compile" |
5110 | case "(($ac_try" in |
5111 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5112 | *) ac_try_echo=$ac_try;; |
5113 | esac |
5114 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5115 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
5116 | ac_status=$? |
5117 | grep -v '^ *+' conftest.er1 >conftest.err |
5118 | rm -f conftest.er1 |
5119 | cat conftest.err >&5 |
5120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
5121 | (exit $ac_status); } && { |
5122 | test -z "$ac_c_werror_flag" || |
5123 | test ! -s conftest.err |
5124 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
5125 | ac_header_compiler=yes |
5126 | else |
5127 | echo "$as_me: failed program was:" >&5 |
5128 | sed 's/^/| /' conftest.$ac_ext >&5 |
5129 | |
dd184caf |
5130 | ac_header_compiler=no |
d9898ee8 |
5131 | fi |
dd184caf |
5132 | |
5133 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5134 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5135 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
d9898ee8 |
5136 | |
5137 | # Is the header present? |
dd184caf |
5138 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5139 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
d9898ee8 |
5140 | cat >conftest.$ac_ext <<_ACEOF |
5141 | /* confdefs.h. */ |
5142 | _ACEOF |
5143 | cat confdefs.h >>conftest.$ac_ext |
5144 | cat >>conftest.$ac_ext <<_ACEOF |
5145 | /* end confdefs.h. */ |
5146 | #include <$ac_header> |
5147 | _ACEOF |
dd184caf |
5148 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5149 | case "(($ac_try" in |
5150 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5151 | *) ac_try_echo=$ac_try;; |
5152 | esac |
5153 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5154 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
5155 | ac_status=$? |
5156 | grep -v '^ *+' conftest.er1 >conftest.err |
5157 | rm -f conftest.er1 |
5158 | cat conftest.err >&5 |
5159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
5160 | (exit $ac_status); } >/dev/null && { |
5161 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
5162 | test ! -s conftest.err |
5163 | }; then |
d9898ee8 |
5164 | ac_header_preproc=yes |
5165 | else |
5166 | echo "$as_me: failed program was:" >&5 |
5167 | sed 's/^/| /' conftest.$ac_ext >&5 |
5168 | |
5169 | ac_header_preproc=no |
5170 | fi |
dd184caf |
5171 | |
d9898ee8 |
5172 | rm -f conftest.err conftest.$ac_ext |
dd184caf |
5173 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5174 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
d9898ee8 |
5175 | |
5176 | # So? What about this header? |
5177 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5178 | yes:no: ) |
5179 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5180 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
5181 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
5182 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
5183 | ac_header_preproc=yes |
5184 | ;; |
5185 | no:yes:* ) |
5186 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5187 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
5188 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
5189 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
5190 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
5191 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
5192 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
5193 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
5194 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
5195 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
5196 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
5197 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
dd184caf |
5198 | ( cat <<\_ASBOX |
d9898ee8 |
5199 | ## -------------------------------------------------- ## |
5200 | ## Report this to courier-users@lists.sourceforge.net ## |
5201 | ## -------------------------------------------------- ## |
5202 | _ASBOX |
dd184caf |
5203 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
d9898ee8 |
5204 | ;; |
5205 | esac |
dd184caf |
5206 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5207 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
5208 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
5209 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5210 | else |
5211 | eval "$as_ac_Header=\$ac_header_preproc" |
5212 | fi |
dd184caf |
5213 | ac_res=`eval echo '${'$as_ac_Header'}'` |
5214 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
5215 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
5216 | |
5217 | fi |
5218 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
5219 | cat >>confdefs.h <<_ACEOF |
5220 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
5221 | _ACEOF |
5222 | |
5223 | fi |
5224 | |
5225 | done |
5226 | |
dd184caf |
5227 | ac_ext=cpp |
d9898ee8 |
5228 | ac_cpp='$CXXCPP $CPPFLAGS' |
5229 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5230 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5231 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
dd184caf |
5232 | if test -z "$CXX"; then |
5233 | if test -n "$CCC"; then |
5234 | CXX=$CCC |
5235 | else |
5236 | if test -n "$ac_tool_prefix"; then |
5237 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
d9898ee8 |
5238 | do |
5239 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
5240 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
dd184caf |
5241 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5242 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
5243 | if test "${ac_cv_prog_CXX+set}" = set; then |
5244 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5245 | else |
5246 | if test -n "$CXX"; then |
5247 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
5248 | else |
5249 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5250 | for as_dir in $PATH |
5251 | do |
5252 | IFS=$as_save_IFS |
5253 | test -z "$as_dir" && as_dir=. |
5254 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
5255 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
5256 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
5257 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5258 | break 2 |
5259 | fi |
5260 | done |
5261 | done |
dd184caf |
5262 | IFS=$as_save_IFS |
d9898ee8 |
5263 | |
5264 | fi |
5265 | fi |
5266 | CXX=$ac_cv_prog_CXX |
5267 | if test -n "$CXX"; then |
dd184caf |
5268 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
5269 | echo "${ECHO_T}$CXX" >&6; } |
d9898ee8 |
5270 | else |
dd184caf |
5271 | { echo "$as_me:$LINENO: result: no" >&5 |
5272 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
5273 | fi |
5274 | |
dd184caf |
5275 | |
d9898ee8 |
5276 | test -n "$CXX" && break |
5277 | done |
5278 | fi |
5279 | if test -z "$CXX"; then |
5280 | ac_ct_CXX=$CXX |
dd184caf |
5281 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
d9898ee8 |
5282 | do |
5283 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
5284 | set dummy $ac_prog; ac_word=$2 |
dd184caf |
5285 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5286 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
5287 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
5288 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5289 | else |
5290 | if test -n "$ac_ct_CXX"; then |
5291 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
5292 | else |
5293 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5294 | for as_dir in $PATH |
5295 | do |
5296 | IFS=$as_save_IFS |
5297 | test -z "$as_dir" && as_dir=. |
5298 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
5299 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
5300 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
5301 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5302 | break 2 |
5303 | fi |
5304 | done |
5305 | done |
dd184caf |
5306 | IFS=$as_save_IFS |
d9898ee8 |
5307 | |
5308 | fi |
5309 | fi |
5310 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
5311 | if test -n "$ac_ct_CXX"; then |
dd184caf |
5312 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
5313 | echo "${ECHO_T}$ac_ct_CXX" >&6; } |
d9898ee8 |
5314 | else |
dd184caf |
5315 | { echo "$as_me:$LINENO: result: no" >&5 |
5316 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
5317 | fi |
5318 | |
dd184caf |
5319 | |
d9898ee8 |
5320 | test -n "$ac_ct_CXX" && break |
5321 | done |
d9898ee8 |
5322 | |
dd184caf |
5323 | if test "x$ac_ct_CXX" = x; then |
5324 | CXX="g++" |
5325 | else |
5326 | case $cross_compiling:$ac_tool_warned in |
5327 | yes:) |
5328 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
5329 | whose name does not start with the host triplet. If you think this |
5330 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
5331 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
5332 | whose name does not start with the host triplet. If you think this |
5333 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
5334 | ac_tool_warned=yes ;; |
5335 | esac |
5336 | CXX=$ac_ct_CXX |
5337 | fi |
d9898ee8 |
5338 | fi |
5339 | |
dd184caf |
5340 | fi |
5341 | fi |
d9898ee8 |
5342 | # Provide some information about the compiler. |
dd184caf |
5343 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
d9898ee8 |
5344 | ac_compiler=`set X $ac_compile; echo $2` |
dd184caf |
5345 | { (ac_try="$ac_compiler --version >&5" |
5346 | case "(($ac_try" in |
5347 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5348 | *) ac_try_echo=$ac_try;; |
5349 | esac |
5350 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5351 | (eval "$ac_compiler --version >&5") 2>&5 |
d9898ee8 |
5352 | ac_status=$? |
5353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5354 | (exit $ac_status); } |
dd184caf |
5355 | { (ac_try="$ac_compiler -v >&5" |
5356 | case "(($ac_try" in |
5357 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5358 | *) ac_try_echo=$ac_try;; |
5359 | esac |
5360 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5361 | (eval "$ac_compiler -v >&5") 2>&5 |
d9898ee8 |
5362 | ac_status=$? |
5363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5364 | (exit $ac_status); } |
dd184caf |
5365 | { (ac_try="$ac_compiler -V >&5" |
5366 | case "(($ac_try" in |
5367 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5368 | *) ac_try_echo=$ac_try;; |
5369 | esac |
5370 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5371 | (eval "$ac_compiler -V >&5") 2>&5 |
d9898ee8 |
5372 | ac_status=$? |
5373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5374 | (exit $ac_status); } |
5375 | |
dd184caf |
5376 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
5377 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
d9898ee8 |
5378 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
5379 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5380 | else |
5381 | cat >conftest.$ac_ext <<_ACEOF |
5382 | /* confdefs.h. */ |
5383 | _ACEOF |
5384 | cat confdefs.h >>conftest.$ac_ext |
5385 | cat >>conftest.$ac_ext <<_ACEOF |
5386 | /* end confdefs.h. */ |
5387 | |
5388 | int |
5389 | main () |
5390 | { |
5391 | #ifndef __GNUC__ |
5392 | choke me |
5393 | #endif |
5394 | |
5395 | ; |
5396 | return 0; |
5397 | } |
5398 | _ACEOF |
5399 | rm -f conftest.$ac_objext |
dd184caf |
5400 | if { (ac_try="$ac_compile" |
5401 | case "(($ac_try" in |
5402 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5403 | *) ac_try_echo=$ac_try;; |
5404 | esac |
5405 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5406 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
5407 | ac_status=$? |
5408 | grep -v '^ *+' conftest.er1 >conftest.err |
5409 | rm -f conftest.er1 |
5410 | cat conftest.err >&5 |
5411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
5412 | (exit $ac_status); } && { |
5413 | test -z "$ac_cxx_werror_flag" || |
5414 | test ! -s conftest.err |
5415 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
5416 | ac_compiler_gnu=yes |
5417 | else |
5418 | echo "$as_me: failed program was:" >&5 |
5419 | sed 's/^/| /' conftest.$ac_ext >&5 |
5420 | |
dd184caf |
5421 | ac_compiler_gnu=no |
d9898ee8 |
5422 | fi |
dd184caf |
5423 | |
5424 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
5425 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
5426 | |
5427 | fi |
dd184caf |
5428 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
5429 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
d9898ee8 |
5430 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
5431 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
5432 | ac_save_CXXFLAGS=$CXXFLAGS |
dd184caf |
5433 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
5434 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
d9898ee8 |
5435 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
5436 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5437 | else |
dd184caf |
5438 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
5439 | ac_cxx_werror_flag=yes |
5440 | ac_cv_prog_cxx_g=no |
5441 | CXXFLAGS="-g" |
5442 | cat >conftest.$ac_ext <<_ACEOF |
d9898ee8 |
5443 | /* confdefs.h. */ |
5444 | _ACEOF |
5445 | cat confdefs.h >>conftest.$ac_ext |
5446 | cat >>conftest.$ac_ext <<_ACEOF |
5447 | /* end confdefs.h. */ |
5448 | |
5449 | int |
5450 | main () |
5451 | { |
5452 | |
5453 | ; |
5454 | return 0; |
5455 | } |
5456 | _ACEOF |
5457 | rm -f conftest.$ac_objext |
dd184caf |
5458 | if { (ac_try="$ac_compile" |
5459 | case "(($ac_try" in |
5460 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5461 | *) ac_try_echo=$ac_try;; |
5462 | esac |
5463 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5464 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
5465 | ac_status=$? |
5466 | grep -v '^ *+' conftest.er1 >conftest.err |
5467 | rm -f conftest.er1 |
5468 | cat conftest.err >&5 |
5469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
5470 | (exit $ac_status); } && { |
5471 | test -z "$ac_cxx_werror_flag" || |
5472 | test ! -s conftest.err |
5473 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
5474 | ac_cv_prog_cxx_g=yes |
5475 | else |
5476 | echo "$as_me: failed program was:" >&5 |
5477 | sed 's/^/| /' conftest.$ac_ext >&5 |
5478 | |
dd184caf |
5479 | CXXFLAGS="" |
5480 | cat >conftest.$ac_ext <<_ACEOF |
d9898ee8 |
5481 | /* confdefs.h. */ |
5482 | _ACEOF |
5483 | cat confdefs.h >>conftest.$ac_ext |
5484 | cat >>conftest.$ac_ext <<_ACEOF |
5485 | /* end confdefs.h. */ |
dd184caf |
5486 | |
d9898ee8 |
5487 | int |
5488 | main () |
5489 | { |
dd184caf |
5490 | |
d9898ee8 |
5491 | ; |
5492 | return 0; |
5493 | } |
5494 | _ACEOF |
5495 | rm -f conftest.$ac_objext |
dd184caf |
5496 | if { (ac_try="$ac_compile" |
5497 | case "(($ac_try" in |
5498 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5499 | *) ac_try_echo=$ac_try;; |
5500 | esac |
5501 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5502 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
5503 | ac_status=$? |
5504 | grep -v '^ *+' conftest.er1 >conftest.err |
5505 | rm -f conftest.er1 |
5506 | cat conftest.err >&5 |
5507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
5508 | (exit $ac_status); } && { |
5509 | test -z "$ac_cxx_werror_flag" || |
5510 | test ! -s conftest.err |
5511 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
5512 | : |
5513 | else |
5514 | echo "$as_me: failed program was:" >&5 |
5515 | sed 's/^/| /' conftest.$ac_ext >&5 |
5516 | |
dd184caf |
5517 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
5518 | CXXFLAGS="-g" |
5519 | cat >conftest.$ac_ext <<_ACEOF |
d9898ee8 |
5520 | /* confdefs.h. */ |
5521 | _ACEOF |
5522 | cat confdefs.h >>conftest.$ac_ext |
5523 | cat >>conftest.$ac_ext <<_ACEOF |
5524 | /* end confdefs.h. */ |
dd184caf |
5525 | |
d9898ee8 |
5526 | int |
5527 | main () |
5528 | { |
dd184caf |
5529 | |
d9898ee8 |
5530 | ; |
5531 | return 0; |
5532 | } |
5533 | _ACEOF |
5534 | rm -f conftest.$ac_objext |
dd184caf |
5535 | if { (ac_try="$ac_compile" |
5536 | case "(($ac_try" in |
5537 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5538 | *) ac_try_echo=$ac_try;; |
5539 | esac |
5540 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5541 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
5542 | ac_status=$? |
5543 | grep -v '^ *+' conftest.er1 >conftest.err |
5544 | rm -f conftest.er1 |
5545 | cat conftest.err >&5 |
5546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
5547 | (exit $ac_status); } && { |
5548 | test -z "$ac_cxx_werror_flag" || |
5549 | test ! -s conftest.err |
5550 | } && test -s conftest.$ac_objext; then |
5551 | ac_cv_prog_cxx_g=yes |
d9898ee8 |
5552 | else |
5553 | echo "$as_me: failed program was:" >&5 |
5554 | sed 's/^/| /' conftest.$ac_ext >&5 |
5555 | |
dd184caf |
5556 | |
d9898ee8 |
5557 | fi |
dd184caf |
5558 | |
5559 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5560 | fi |
5561 | |
5562 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
5563 | fi |
5564 | |
dd184caf |
5565 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5566 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
5567 | fi |
5568 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
5569 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
5570 | if test "$ac_test_CXXFLAGS" = set; then |
5571 | CXXFLAGS=$ac_save_CXXFLAGS |
5572 | elif test $ac_cv_prog_cxx_g = yes; then |
5573 | if test "$GXX" = yes; then |
5574 | CXXFLAGS="-g -O2" |
5575 | else |
5576 | CXXFLAGS="-g" |
5577 | fi |
5578 | else |
5579 | if test "$GXX" = yes; then |
5580 | CXXFLAGS="-O2" |
5581 | else |
5582 | CXXFLAGS= |
5583 | fi |
5584 | fi |
5585 | ac_ext=cpp |
d9898ee8 |
5586 | ac_cpp='$CXXCPP $CPPFLAGS' |
5587 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5588 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5589 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
5590 | |
5591 | depcc="$CXX" am_compiler_list= |
5592 | |
dd184caf |
5593 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
5594 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } |
d9898ee8 |
5595 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
5596 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5597 | else |
5598 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
5599 | # We make a subdir and do the tests there. Otherwise we can end up |
5600 | # making bogus files that we don't know about and never remove. For |
5601 | # instance it was reported that on HP-UX the gcc test will end up |
5602 | # making a dummy file named `D' -- because `-MD' means `put the output |
5603 | # in D'. |
5604 | mkdir conftest.dir |
5605 | # Copy depcomp to subdir because otherwise we won't find it if we're |
5606 | # using a relative directory. |
5607 | cp "$am_depcomp" conftest.dir |
5608 | cd conftest.dir |
5609 | # We will build objects and dependencies in a subdirectory because |
5610 | # it helps to detect inapplicable dependency modes. For instance |
5611 | # both Tru64's cc and ICC support -MD to output dependencies as a |
5612 | # side effect of compilation, but ICC will put the dependencies in |
5613 | # the current directory while Tru64 will put them in the object |
5614 | # directory. |
5615 | mkdir sub |
5616 | |
5617 | am_cv_CXX_dependencies_compiler_type=none |
5618 | if test "$am_compiler_list" = ""; then |
5619 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
5620 | fi |
5621 | for depmode in $am_compiler_list; do |
5622 | # Setup a source with many dependencies, because some compilers |
5623 | # like to wrap large dependency lists on column 80 (with \), and |
5624 | # we should not choose a depcomp mode which is confused by this. |
5625 | # |
5626 | # We need to recreate these files for each test, as the compiler may |
5627 | # overwrite some of them when testing with obscure command lines. |
5628 | # This happens at least with the AIX C compiler. |
5629 | : > sub/conftest.c |
5630 | for i in 1 2 3 4 5 6; do |
5631 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
5632 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
5633 | # Solaris 8's {/usr,}/bin/sh. |
5634 | touch sub/conftst$i.h |
5635 | done |
5636 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
5637 | |
5638 | case $depmode in |
5639 | nosideeffect) |
5640 | # after this tag, mechanisms are not by side-effect, so they'll |
5641 | # only be used when explicitly requested |
5642 | if test "x$enable_dependency_tracking" = xyes; then |
5643 | continue |
5644 | else |
5645 | break |
5646 | fi |
5647 | ;; |
5648 | none) break ;; |
5649 | esac |
5650 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
5651 | # mode. It turns out that the SunPro C++ compiler does not properly |
5652 | # handle `-M -o', and we need to detect this. |
5653 | if depmode=$depmode \ |
5654 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
5655 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
5656 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
5657 | >/dev/null 2>conftest.err && |
dd184caf |
5658 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
d9898ee8 |
5659 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
5660 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
5661 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
5662 | # icc doesn't choke on unknown options, it will just issue warnings |
5663 | # or remarks (even with -Werror). So we grep stderr for any message |
5664 | # that says an option was ignored or not supported. |
5665 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
5666 | # icc: Command line warning: ignoring option '-M'; no argument required |
5667 | # The diagnosis changed in icc 8.0: |
5668 | # icc: Command line remark: option '-MP' not supported |
5669 | if (grep 'ignoring option' conftest.err || |
5670 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
5671 | am_cv_CXX_dependencies_compiler_type=$depmode |
5672 | break |
5673 | fi |
5674 | fi |
5675 | done |
5676 | |
5677 | cd .. |
5678 | rm -rf conftest.dir |
5679 | else |
5680 | am_cv_CXX_dependencies_compiler_type=none |
5681 | fi |
5682 | |
5683 | fi |
dd184caf |
5684 | { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
5685 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } |
d9898ee8 |
5686 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
5687 | |
dd184caf |
5688 | if |
d9898ee8 |
5689 | test "x$enable_dependency_tracking" != xno \ |
5690 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
5691 | am__fastdepCXX_TRUE= |
5692 | am__fastdepCXX_FALSE='#' |
5693 | else |
5694 | am__fastdepCXX_TRUE='#' |
5695 | am__fastdepCXX_FALSE= |
5696 | fi |
5697 | |
5698 | |
5699 | |
5700 | |
5701 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
5702 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
5703 | (test "X$CXX" != "Xg++"))) ; then |
dd184caf |
5704 | ac_ext=cpp |
d9898ee8 |
5705 | ac_cpp='$CXXCPP $CPPFLAGS' |
5706 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5707 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5708 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
dd184caf |
5709 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
5710 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } |
d9898ee8 |
5711 | if test -z "$CXXCPP"; then |
5712 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
5713 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5714 | else |
5715 | # Double quotes because CXXCPP needs to be expanded |
5716 | for CXXCPP in "$CXX -E" "/lib/cpp" |
5717 | do |
5718 | ac_preproc_ok=false |
5719 | for ac_cxx_preproc_warn_flag in '' yes |
5720 | do |
5721 | # Use a header file that comes with gcc, so configuring glibc |
5722 | # with a fresh cross-compiler works. |
5723 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
5724 | # <limits.h> exists even on freestanding compilers. |
5725 | # On the NeXT, cc -E runs the code through the compiler's parser, |
5726 | # not just through cpp. "Syntax error" is here to catch this case. |
5727 | cat >conftest.$ac_ext <<_ACEOF |
5728 | /* confdefs.h. */ |
5729 | _ACEOF |
5730 | cat confdefs.h >>conftest.$ac_ext |
5731 | cat >>conftest.$ac_ext <<_ACEOF |
5732 | /* end confdefs.h. */ |
5733 | #ifdef __STDC__ |
5734 | # include <limits.h> |
5735 | #else |
5736 | # include <assert.h> |
5737 | #endif |
5738 | Syntax error |
5739 | _ACEOF |
dd184caf |
5740 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5741 | case "(($ac_try" in |
5742 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5743 | *) ac_try_echo=$ac_try;; |
5744 | esac |
5745 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5746 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
5747 | ac_status=$? |
5748 | grep -v '^ *+' conftest.er1 >conftest.err |
5749 | rm -f conftest.er1 |
5750 | cat conftest.err >&5 |
5751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
5752 | (exit $ac_status); } >/dev/null && { |
5753 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
5754 | test ! -s conftest.err |
5755 | }; then |
d9898ee8 |
5756 | : |
5757 | else |
5758 | echo "$as_me: failed program was:" >&5 |
5759 | sed 's/^/| /' conftest.$ac_ext >&5 |
5760 | |
5761 | # Broken: fails on valid input. |
5762 | continue |
5763 | fi |
dd184caf |
5764 | |
d9898ee8 |
5765 | rm -f conftest.err conftest.$ac_ext |
5766 | |
dd184caf |
5767 | # OK, works on sane cases. Now check whether nonexistent headers |
d9898ee8 |
5768 | # can be detected and how. |
5769 | cat >conftest.$ac_ext <<_ACEOF |
5770 | /* confdefs.h. */ |
5771 | _ACEOF |
5772 | cat confdefs.h >>conftest.$ac_ext |
5773 | cat >>conftest.$ac_ext <<_ACEOF |
5774 | /* end confdefs.h. */ |
5775 | #include <ac_nonexistent.h> |
5776 | _ACEOF |
dd184caf |
5777 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5778 | case "(($ac_try" in |
5779 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5780 | *) ac_try_echo=$ac_try;; |
5781 | esac |
5782 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5783 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
5784 | ac_status=$? |
5785 | grep -v '^ *+' conftest.er1 >conftest.err |
5786 | rm -f conftest.er1 |
5787 | cat conftest.err >&5 |
5788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
5789 | (exit $ac_status); } >/dev/null && { |
5790 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
5791 | test ! -s conftest.err |
5792 | }; then |
d9898ee8 |
5793 | # Broken: success on invalid input. |
5794 | continue |
5795 | else |
5796 | echo "$as_me: failed program was:" >&5 |
5797 | sed 's/^/| /' conftest.$ac_ext >&5 |
5798 | |
5799 | # Passes both tests. |
5800 | ac_preproc_ok=: |
5801 | break |
5802 | fi |
dd184caf |
5803 | |
d9898ee8 |
5804 | rm -f conftest.err conftest.$ac_ext |
5805 | |
5806 | done |
5807 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
5808 | rm -f conftest.err conftest.$ac_ext |
5809 | if $ac_preproc_ok; then |
5810 | break |
5811 | fi |
5812 | |
5813 | done |
5814 | ac_cv_prog_CXXCPP=$CXXCPP |
5815 | |
5816 | fi |
5817 | CXXCPP=$ac_cv_prog_CXXCPP |
5818 | else |
5819 | ac_cv_prog_CXXCPP=$CXXCPP |
5820 | fi |
dd184caf |
5821 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
5822 | echo "${ECHO_T}$CXXCPP" >&6; } |
d9898ee8 |
5823 | ac_preproc_ok=false |
5824 | for ac_cxx_preproc_warn_flag in '' yes |
5825 | do |
5826 | # Use a header file that comes with gcc, so configuring glibc |
5827 | # with a fresh cross-compiler works. |
5828 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
5829 | # <limits.h> exists even on freestanding compilers. |
5830 | # On the NeXT, cc -E runs the code through the compiler's parser, |
5831 | # not just through cpp. "Syntax error" is here to catch this case. |
5832 | cat >conftest.$ac_ext <<_ACEOF |
5833 | /* confdefs.h. */ |
5834 | _ACEOF |
5835 | cat confdefs.h >>conftest.$ac_ext |
5836 | cat >>conftest.$ac_ext <<_ACEOF |
5837 | /* end confdefs.h. */ |
5838 | #ifdef __STDC__ |
5839 | # include <limits.h> |
5840 | #else |
5841 | # include <assert.h> |
5842 | #endif |
5843 | Syntax error |
5844 | _ACEOF |
dd184caf |
5845 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5846 | case "(($ac_try" in |
5847 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5848 | *) ac_try_echo=$ac_try;; |
5849 | esac |
5850 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5851 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
5852 | ac_status=$? |
5853 | grep -v '^ *+' conftest.er1 >conftest.err |
5854 | rm -f conftest.er1 |
5855 | cat conftest.err >&5 |
5856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
5857 | (exit $ac_status); } >/dev/null && { |
5858 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
5859 | test ! -s conftest.err |
5860 | }; then |
d9898ee8 |
5861 | : |
5862 | else |
5863 | echo "$as_me: failed program was:" >&5 |
5864 | sed 's/^/| /' conftest.$ac_ext >&5 |
5865 | |
5866 | # Broken: fails on valid input. |
5867 | continue |
5868 | fi |
dd184caf |
5869 | |
d9898ee8 |
5870 | rm -f conftest.err conftest.$ac_ext |
5871 | |
dd184caf |
5872 | # OK, works on sane cases. Now check whether nonexistent headers |
d9898ee8 |
5873 | # can be detected and how. |
5874 | cat >conftest.$ac_ext <<_ACEOF |
5875 | /* confdefs.h. */ |
5876 | _ACEOF |
5877 | cat confdefs.h >>conftest.$ac_ext |
5878 | cat >>conftest.$ac_ext <<_ACEOF |
5879 | /* end confdefs.h. */ |
5880 | #include <ac_nonexistent.h> |
5881 | _ACEOF |
dd184caf |
5882 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5883 | case "(($ac_try" in |
5884 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5885 | *) ac_try_echo=$ac_try;; |
5886 | esac |
5887 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5888 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
5889 | ac_status=$? |
5890 | grep -v '^ *+' conftest.er1 >conftest.err |
5891 | rm -f conftest.er1 |
5892 | cat conftest.err >&5 |
5893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
5894 | (exit $ac_status); } >/dev/null && { |
5895 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
5896 | test ! -s conftest.err |
5897 | }; then |
d9898ee8 |
5898 | # Broken: success on invalid input. |
5899 | continue |
5900 | else |
5901 | echo "$as_me: failed program was:" >&5 |
5902 | sed 's/^/| /' conftest.$ac_ext >&5 |
5903 | |
5904 | # Passes both tests. |
5905 | ac_preproc_ok=: |
5906 | break |
5907 | fi |
dd184caf |
5908 | |
d9898ee8 |
5909 | rm -f conftest.err conftest.$ac_ext |
5910 | |
5911 | done |
5912 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
5913 | rm -f conftest.err conftest.$ac_ext |
5914 | if $ac_preproc_ok; then |
5915 | : |
5916 | else |
5917 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
5918 | See \`config.log' for more details." >&5 |
5919 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
5920 | See \`config.log' for more details." >&2;} |
5921 | { (exit 1); exit 1; }; } |
5922 | fi |
5923 | |
dd184caf |
5924 | ac_ext=cpp |
d9898ee8 |
5925 | ac_cpp='$CXXCPP $CPPFLAGS' |
5926 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5927 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5928 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
5929 | |
5930 | fi |
5931 | |
5932 | |
5933 | ac_ext=f |
5934 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
5935 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5936 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
5937 | if test -n "$ac_tool_prefix"; then |
dd184caf |
5938 | 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 |
5939 | do |
5940 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
5941 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
dd184caf |
5942 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5943 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
5944 | if test "${ac_cv_prog_F77+set}" = set; then |
5945 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5946 | else |
5947 | if test -n "$F77"; then |
5948 | ac_cv_prog_F77="$F77" # Let the user override the test. |
5949 | else |
5950 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5951 | for as_dir in $PATH |
5952 | do |
5953 | IFS=$as_save_IFS |
5954 | test -z "$as_dir" && as_dir=. |
5955 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
5956 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
5957 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
5958 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5959 | break 2 |
5960 | fi |
5961 | done |
5962 | done |
dd184caf |
5963 | IFS=$as_save_IFS |
d9898ee8 |
5964 | |
5965 | fi |
5966 | fi |
5967 | F77=$ac_cv_prog_F77 |
5968 | if test -n "$F77"; then |
dd184caf |
5969 | { echo "$as_me:$LINENO: result: $F77" >&5 |
5970 | echo "${ECHO_T}$F77" >&6; } |
d9898ee8 |
5971 | else |
dd184caf |
5972 | { echo "$as_me:$LINENO: result: no" >&5 |
5973 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
5974 | fi |
5975 | |
dd184caf |
5976 | |
d9898ee8 |
5977 | test -n "$F77" && break |
5978 | done |
5979 | fi |
5980 | if test -z "$F77"; then |
5981 | ac_ct_F77=$F77 |
dd184caf |
5982 | 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 |
5983 | do |
5984 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
5985 | set dummy $ac_prog; ac_word=$2 |
dd184caf |
5986 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5987 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
5988 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
5989 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5990 | else |
5991 | if test -n "$ac_ct_F77"; then |
5992 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
5993 | else |
5994 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5995 | for as_dir in $PATH |
5996 | do |
5997 | IFS=$as_save_IFS |
5998 | test -z "$as_dir" && as_dir=. |
5999 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
6000 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
6001 | ac_cv_prog_ac_ct_F77="$ac_prog" |
6002 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6003 | break 2 |
6004 | fi |
6005 | done |
6006 | done |
dd184caf |
6007 | IFS=$as_save_IFS |
d9898ee8 |
6008 | |
6009 | fi |
6010 | fi |
6011 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
6012 | if test -n "$ac_ct_F77"; then |
dd184caf |
6013 | { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
6014 | echo "${ECHO_T}$ac_ct_F77" >&6; } |
d9898ee8 |
6015 | else |
dd184caf |
6016 | { echo "$as_me:$LINENO: result: no" >&5 |
6017 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
6018 | fi |
6019 | |
dd184caf |
6020 | |
d9898ee8 |
6021 | test -n "$ac_ct_F77" && break |
6022 | done |
6023 | |
dd184caf |
6024 | if test "x$ac_ct_F77" = x; then |
6025 | F77="" |
6026 | else |
6027 | case $cross_compiling:$ac_tool_warned in |
6028 | yes:) |
6029 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
6030 | whose name does not start with the host triplet. If you think this |
6031 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
6032 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
6033 | whose name does not start with the host triplet. If you think this |
6034 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
6035 | ac_tool_warned=yes ;; |
6036 | esac |
6037 | F77=$ac_ct_F77 |
6038 | fi |
d9898ee8 |
6039 | fi |
6040 | |
6041 | |
6042 | # Provide some information about the compiler. |
dd184caf |
6043 | echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 |
d9898ee8 |
6044 | ac_compiler=`set X $ac_compile; echo $2` |
dd184caf |
6045 | { (ac_try="$ac_compiler --version >&5" |
6046 | case "(($ac_try" in |
6047 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6048 | *) ac_try_echo=$ac_try;; |
6049 | esac |
6050 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6051 | (eval "$ac_compiler --version >&5") 2>&5 |
d9898ee8 |
6052 | ac_status=$? |
6053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6054 | (exit $ac_status); } |
dd184caf |
6055 | { (ac_try="$ac_compiler -v >&5" |
6056 | case "(($ac_try" in |
6057 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6058 | *) ac_try_echo=$ac_try;; |
6059 | esac |
6060 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6061 | (eval "$ac_compiler -v >&5") 2>&5 |
d9898ee8 |
6062 | ac_status=$? |
6063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6064 | (exit $ac_status); } |
dd184caf |
6065 | { (ac_try="$ac_compiler -V >&5" |
6066 | case "(($ac_try" in |
6067 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6068 | *) ac_try_echo=$ac_try;; |
6069 | esac |
6070 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6071 | (eval "$ac_compiler -V >&5") 2>&5 |
d9898ee8 |
6072 | ac_status=$? |
6073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6074 | (exit $ac_status); } |
6075 | rm -f a.out |
6076 | |
6077 | # If we don't use `.F' as extension, the preprocessor is not run on the |
6078 | # input file. (Note that this only needs to work for GNU compilers.) |
6079 | ac_save_ext=$ac_ext |
6080 | ac_ext=F |
dd184caf |
6081 | { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
6082 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } |
d9898ee8 |
6083 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
6084 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6085 | else |
6086 | cat >conftest.$ac_ext <<_ACEOF |
6087 | program main |
6088 | #ifndef __GNUC__ |
6089 | choke me |
6090 | #endif |
6091 | |
6092 | end |
6093 | _ACEOF |
6094 | rm -f conftest.$ac_objext |
dd184caf |
6095 | if { (ac_try="$ac_compile" |
6096 | case "(($ac_try" in |
6097 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6098 | *) ac_try_echo=$ac_try;; |
6099 | esac |
6100 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6101 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
6102 | ac_status=$? |
6103 | grep -v '^ *+' conftest.er1 >conftest.err |
6104 | rm -f conftest.er1 |
6105 | cat conftest.err >&5 |
6106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
6107 | (exit $ac_status); } && { |
6108 | test -z "$ac_f77_werror_flag" || |
6109 | test ! -s conftest.err |
6110 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
6111 | ac_compiler_gnu=yes |
6112 | else |
6113 | echo "$as_me: failed program was:" >&5 |
6114 | sed 's/^/| /' conftest.$ac_ext >&5 |
6115 | |
dd184caf |
6116 | ac_compiler_gnu=no |
d9898ee8 |
6117 | fi |
dd184caf |
6118 | |
6119 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
6120 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
6121 | |
6122 | fi |
dd184caf |
6123 | { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
6124 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } |
d9898ee8 |
6125 | ac_ext=$ac_save_ext |
6126 | ac_test_FFLAGS=${FFLAGS+set} |
6127 | ac_save_FFLAGS=$FFLAGS |
6128 | FFLAGS= |
dd184caf |
6129 | { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
6130 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } |
d9898ee8 |
6131 | if test "${ac_cv_prog_f77_g+set}" = set; then |
6132 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6133 | else |
6134 | FFLAGS=-g |
6135 | cat >conftest.$ac_ext <<_ACEOF |
6136 | program main |
6137 | |
6138 | end |
6139 | _ACEOF |
6140 | rm -f conftest.$ac_objext |
dd184caf |
6141 | if { (ac_try="$ac_compile" |
6142 | case "(($ac_try" in |
6143 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6144 | *) ac_try_echo=$ac_try;; |
6145 | esac |
6146 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6147 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
6148 | ac_status=$? |
6149 | grep -v '^ *+' conftest.er1 >conftest.err |
6150 | rm -f conftest.er1 |
6151 | cat conftest.err >&5 |
6152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
6153 | (exit $ac_status); } && { |
6154 | test -z "$ac_f77_werror_flag" || |
6155 | test ! -s conftest.err |
6156 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
6157 | ac_cv_prog_f77_g=yes |
6158 | else |
6159 | echo "$as_me: failed program was:" >&5 |
6160 | sed 's/^/| /' conftest.$ac_ext >&5 |
6161 | |
dd184caf |
6162 | ac_cv_prog_f77_g=no |
d9898ee8 |
6163 | fi |
dd184caf |
6164 | |
6165 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
6166 | |
6167 | fi |
dd184caf |
6168 | { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
6169 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } |
d9898ee8 |
6170 | if test "$ac_test_FFLAGS" = set; then |
6171 | FFLAGS=$ac_save_FFLAGS |
6172 | elif test $ac_cv_prog_f77_g = yes; then |
6173 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
6174 | FFLAGS="-g -O2" |
6175 | else |
6176 | FFLAGS="-g" |
6177 | fi |
6178 | else |
6179 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
6180 | FFLAGS="-O2" |
6181 | else |
6182 | FFLAGS= |
6183 | fi |
6184 | fi |
6185 | |
6186 | G77=`test $ac_compiler_gnu = yes && echo yes` |
6187 | ac_ext=c |
6188 | ac_cpp='$CPP $CPPFLAGS' |
6189 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6190 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6191 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
6192 | |
6193 | |
6194 | |
6195 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
6196 | |
6197 | # find the maximum length of command line arguments |
dd184caf |
6198 | { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
6199 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } |
d9898ee8 |
6200 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
6201 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6202 | else |
6203 | i=0 |
6204 | teststring="ABCD" |
6205 | |
6206 | case $build_os in |
6207 | msdosdjgpp*) |
6208 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
6209 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
6210 | # during glob expansion). Even if it were fixed, the result of this |
6211 | # check would be larger than it should be. |
6212 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
6213 | ;; |
6214 | |
6215 | gnu*) |
6216 | # Under GNU Hurd, this test is not required because there is |
6217 | # no limit to the length of command line arguments. |
6218 | # Libtool will interpret -1 as no limit whatsoever |
6219 | lt_cv_sys_max_cmd_len=-1; |
6220 | ;; |
6221 | |
6222 | cygwin* | mingw*) |
6223 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
6224 | # about 5 minutes as the teststring grows exponentially. |
6225 | # Worse, since 9x/ME are not pre-emptively multitasking, |
6226 | # you end up with a "frozen" computer, even though with patience |
6227 | # the test eventually succeeds (with a max line length of 256k). |
6228 | # Instead, let's just punt: use the minimum linelength reported by |
6229 | # all of the supported platforms: 8192 (on NT/2K/XP). |
6230 | lt_cv_sys_max_cmd_len=8192; |
6231 | ;; |
6232 | |
6233 | amigaos*) |
6234 | # On AmigaOS with pdksh, this test takes hours, literally. |
6235 | # So we just punt and use a minimum line length of 8192. |
6236 | lt_cv_sys_max_cmd_len=8192; |
6237 | ;; |
6238 | |
6239 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
6240 | # This has been around since 386BSD, at least. Likely further. |
6241 | if test -x /sbin/sysctl; then |
6242 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
6243 | elif test -x /usr/sbin/sysctl; then |
6244 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
6245 | else |
6246 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
6247 | fi |
6248 | # And add a safety zone |
6249 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
6250 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
6251 | ;; |
6252 | |
6253 | interix*) |
6254 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
6255 | lt_cv_sys_max_cmd_len=196608 |
6256 | ;; |
6257 | |
6258 | osf*) |
6259 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
6260 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
6261 | # nice to cause kernel panics so lets avoid the loop below. |
6262 | # First set a reasonable default. |
6263 | lt_cv_sys_max_cmd_len=16384 |
6264 | # |
6265 | if test -x /sbin/sysconfig; then |
6266 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
6267 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
6268 | esac |
6269 | fi |
6270 | ;; |
6271 | sco3.2v5*) |
6272 | lt_cv_sys_max_cmd_len=102400 |
6273 | ;; |
6274 | sysv5* | sco5v6* | sysv4.2uw2*) |
6275 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
6276 | if test -n "$kargmax"; then |
6277 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
6278 | else |
6279 | lt_cv_sys_max_cmd_len=32768 |
6280 | fi |
6281 | ;; |
6282 | *) |
6283 | # If test is not a shell built-in, we'll probably end up computing a |
6284 | # maximum length that is only half of the actual maximum length, but |
6285 | # we can't tell. |
6286 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
6287 | while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
6288 | = "XX$teststring") >/dev/null 2>&1 && |
6289 | new_result=`expr "X$teststring" : ".*" 2>&1` && |
6290 | lt_cv_sys_max_cmd_len=$new_result && |
6291 | test $i != 17 # 1/2 MB should be enough |
6292 | do |
6293 | i=`expr $i + 1` |
6294 | teststring=$teststring$teststring |
6295 | done |
6296 | teststring= |
6297 | # Add a significant safety factor because C++ compilers can tack on massive |
6298 | # amounts of additional arguments before passing them to the linker. |
6299 | # It appears as though 1/2 is a usable value. |
6300 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
6301 | ;; |
6302 | esac |
6303 | |
6304 | fi |
6305 | |
6306 | if test -n $lt_cv_sys_max_cmd_len ; then |
dd184caf |
6307 | { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
6308 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } |
d9898ee8 |
6309 | else |
dd184caf |
6310 | { echo "$as_me:$LINENO: result: none" >&5 |
6311 | echo "${ECHO_T}none" >&6; } |
d9898ee8 |
6312 | fi |
6313 | |
6314 | |
6315 | |
6316 | |
6317 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
dd184caf |
6318 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
6319 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } |
d9898ee8 |
6320 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
6321 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6322 | else |
6323 | |
6324 | # These are sane defaults that work on at least a few old systems. |
6325 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
6326 | |
6327 | # Character class describing NM global symbol codes. |
6328 | symcode='[BCDEGRST]' |
6329 | |
6330 | # Regexp to match symbols that can be accessed directly from C. |
6331 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
6332 | |
6333 | # Transform an extracted symbol line into a proper C declaration |
6334 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
6335 | |
6336 | # Transform an extracted symbol line into symbol name and symbol address |
6337 | 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'" |
6338 | |
6339 | # Define system-specific variables. |
6340 | case $host_os in |
6341 | aix*) |
6342 | symcode='[BCDT]' |
6343 | ;; |
6344 | cygwin* | mingw* | pw32*) |
6345 | symcode='[ABCDGISTW]' |
6346 | ;; |
6347 | hpux*) # Its linker distinguishes data from code symbols |
6348 | if test "$host_cpu" = ia64; then |
6349 | symcode='[ABCDEGRST]' |
6350 | fi |
6351 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
6352 | 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'" |
6353 | ;; |
1dce02f2 |
6354 | linux* | k*bsd*-gnu) |
d9898ee8 |
6355 | if test "$host_cpu" = ia64; then |
6356 | symcode='[ABCDGIRSTW]' |
6357 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
6358 | 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'" |
6359 | fi |
6360 | ;; |
6361 | irix* | nonstopux*) |
6362 | symcode='[BCDEGRST]' |
6363 | ;; |
6364 | osf*) |
6365 | symcode='[BCDEGQRST]' |
6366 | ;; |
6367 | solaris*) |
6368 | symcode='[BDRT]' |
6369 | ;; |
6370 | sco3.2v5*) |
6371 | symcode='[DT]' |
6372 | ;; |
6373 | sysv4.2uw2*) |
6374 | symcode='[DT]' |
6375 | ;; |
6376 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
6377 | symcode='[ABDT]' |
6378 | ;; |
6379 | sysv4) |
6380 | symcode='[DFNSTU]' |
6381 | ;; |
6382 | esac |
6383 | |
6384 | # Handle CRLF in mingw tool chain |
6385 | opt_cr= |
6386 | case $build_os in |
6387 | mingw*) |
6388 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
6389 | ;; |
6390 | esac |
6391 | |
6392 | # If we're using GNU nm, then use its standard symbol codes. |
6393 | case `$NM -V 2>&1` in |
6394 | *GNU* | *'with BFD'*) |
6395 | symcode='[ABCDGIRSTW]' ;; |
6396 | esac |
6397 | |
6398 | # Try without a prefix undercore, then with it. |
6399 | for ac_symprfx in "" "_"; do |
6400 | |
6401 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
6402 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
6403 | |
6404 | # Write the raw and C identifiers. |
6405 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
6406 | |
6407 | # Check to see that the pipe works correctly. |
6408 | pipe_works=no |
6409 | |
6410 | rm -f conftest* |
6411 | cat > conftest.$ac_ext <<EOF |
6412 | #ifdef __cplusplus |
6413 | extern "C" { |
6414 | #endif |
6415 | char nm_test_var; |
6416 | void nm_test_func(){} |
6417 | #ifdef __cplusplus |
6418 | } |
6419 | #endif |
6420 | int main(){nm_test_var='a';nm_test_func();return(0);} |
6421 | EOF |
6422 | |
6423 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
6424 | (eval $ac_compile) 2>&5 |
6425 | ac_status=$? |
6426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6427 | (exit $ac_status); }; then |
6428 | # Now try to grab the symbols. |
6429 | nlist=conftest.nm |
6430 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
6431 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
6432 | ac_status=$? |
6433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6434 | (exit $ac_status); } && test -s "$nlist"; then |
6435 | # Try sorting and uniquifying the output. |
6436 | if sort "$nlist" | uniq > "$nlist"T; then |
6437 | mv -f "$nlist"T "$nlist" |
6438 | else |
6439 | rm -f "$nlist"T |
6440 | fi |
6441 | |
6442 | # Make sure that we snagged all the symbols we need. |
6443 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
6444 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
6445 | cat <<EOF > conftest.$ac_ext |
6446 | #ifdef __cplusplus |
6447 | extern "C" { |
6448 | #endif |
6449 | |
6450 | EOF |
6451 | # Now generate the symbol file. |
6452 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
6453 | |
6454 | cat <<EOF >> conftest.$ac_ext |
6455 | #if defined (__STDC__) && __STDC__ |
6456 | # define lt_ptr_t void * |
6457 | #else |
6458 | # define lt_ptr_t char * |
6459 | # define const |
6460 | #endif |
6461 | |
6462 | /* The mapping between symbol names and symbols. */ |
6463 | const struct { |
6464 | const char *name; |
6465 | lt_ptr_t address; |
6466 | } |
6467 | lt_preloaded_symbols[] = |
6468 | { |
6469 | EOF |
6470 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
6471 | cat <<\EOF >> conftest.$ac_ext |
6472 | {0, (lt_ptr_t) 0} |
6473 | }; |
6474 | |
6475 | #ifdef __cplusplus |
6476 | } |
6477 | #endif |
6478 | EOF |
6479 | # Now try linking the two files. |
6480 | mv conftest.$ac_objext conftstm.$ac_objext |
6481 | lt_save_LIBS="$LIBS" |
6482 | lt_save_CFLAGS="$CFLAGS" |
6483 | LIBS="conftstm.$ac_objext" |
6484 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
6485 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
6486 | (eval $ac_link) 2>&5 |
6487 | ac_status=$? |
6488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6489 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
6490 | pipe_works=yes |
6491 | fi |
6492 | LIBS="$lt_save_LIBS" |
6493 | CFLAGS="$lt_save_CFLAGS" |
6494 | else |
6495 | echo "cannot find nm_test_func in $nlist" >&5 |
6496 | fi |
6497 | else |
6498 | echo "cannot find nm_test_var in $nlist" >&5 |
6499 | fi |
6500 | else |
6501 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
6502 | fi |
6503 | else |
6504 | echo "$progname: failed program was:" >&5 |
6505 | cat conftest.$ac_ext >&5 |
6506 | fi |
6507 | rm -f conftest* conftst* |
6508 | |
6509 | # Do not use the global_symbol_pipe unless it works. |
6510 | if test "$pipe_works" = yes; then |
6511 | break |
6512 | else |
6513 | lt_cv_sys_global_symbol_pipe= |
6514 | fi |
6515 | done |
6516 | |
6517 | fi |
6518 | |
6519 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
6520 | lt_cv_sys_global_symbol_to_cdecl= |
6521 | fi |
6522 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
dd184caf |
6523 | { echo "$as_me:$LINENO: result: failed" >&5 |
6524 | echo "${ECHO_T}failed" >&6; } |
d9898ee8 |
6525 | else |
dd184caf |
6526 | { echo "$as_me:$LINENO: result: ok" >&5 |
6527 | echo "${ECHO_T}ok" >&6; } |
d9898ee8 |
6528 | fi |
6529 | |
dd184caf |
6530 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
6531 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
d9898ee8 |
6532 | if test "${lt_cv_objdir+set}" = set; then |
6533 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6534 | else |
6535 | rm -f .libs 2>/dev/null |
6536 | mkdir .libs 2>/dev/null |
6537 | if test -d .libs; then |
6538 | lt_cv_objdir=.libs |
6539 | else |
6540 | # MS-DOS does not allow filenames that begin with a dot. |
6541 | lt_cv_objdir=_libs |
6542 | fi |
6543 | rmdir .libs 2>/dev/null |
6544 | fi |
dd184caf |
6545 | { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
6546 | echo "${ECHO_T}$lt_cv_objdir" >&6; } |
d9898ee8 |
6547 | objdir=$lt_cv_objdir |
6548 | |
6549 | |
6550 | |
6551 | |
6552 | |
6553 | case $host_os in |
6554 | aix3*) |
6555 | # AIX sometimes has problems with the GCC collect2 program. For some |
6556 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
6557 | # vanish in a puff of smoke. |
6558 | if test "X${COLLECT_NAMES+set}" != Xset; then |
6559 | COLLECT_NAMES= |
6560 | export COLLECT_NAMES |
6561 | fi |
6562 | ;; |
6563 | esac |
6564 | |
6565 | # Sed substitution that helps us do robust quoting. It backslashifies |
6566 | # metacharacters that are still active within double-quoted strings. |
6567 | Xsed='sed -e 1s/^X//' |
6568 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
6569 | |
6570 | # Same as above, but do not quote variable references. |
6571 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
6572 | |
6573 | # Sed substitution to delay expansion of an escaped shell variable in a |
6574 | # double_quote_subst'ed string. |
6575 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
6576 | |
6577 | # Sed substitution to avoid accidental globbing in evaled expressions |
6578 | no_glob_subst='s/\*/\\\*/g' |
6579 | |
6580 | # Constants: |
6581 | rm="rm -f" |
6582 | |
6583 | # Global variables: |
6584 | default_ofile=libtool |
6585 | can_build_shared=yes |
6586 | |
6587 | # All known linkers require a `.a' archive for static linking (except MSVC, |
6588 | # which needs '.lib'). |
6589 | libext=a |
6590 | ltmain="$ac_aux_dir/ltmain.sh" |
6591 | ofile="$default_ofile" |
6592 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
6593 | |
6594 | if test -n "$ac_tool_prefix"; then |
6595 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
6596 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
dd184caf |
6597 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6598 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
6599 | if test "${ac_cv_prog_AR+set}" = set; then |
6600 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6601 | else |
6602 | if test -n "$AR"; then |
6603 | ac_cv_prog_AR="$AR" # Let the user override the test. |
6604 | else |
6605 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6606 | for as_dir in $PATH |
6607 | do |
6608 | IFS=$as_save_IFS |
6609 | test -z "$as_dir" && as_dir=. |
6610 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
6611 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
6612 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
6613 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6614 | break 2 |
6615 | fi |
6616 | done |
6617 | done |
dd184caf |
6618 | IFS=$as_save_IFS |
d9898ee8 |
6619 | |
6620 | fi |
6621 | fi |
6622 | AR=$ac_cv_prog_AR |
6623 | if test -n "$AR"; then |
dd184caf |
6624 | { echo "$as_me:$LINENO: result: $AR" >&5 |
6625 | echo "${ECHO_T}$AR" >&6; } |
d9898ee8 |
6626 | else |
dd184caf |
6627 | { echo "$as_me:$LINENO: result: no" >&5 |
6628 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
6629 | fi |
6630 | |
dd184caf |
6631 | |
d9898ee8 |
6632 | fi |
6633 | if test -z "$ac_cv_prog_AR"; then |
6634 | ac_ct_AR=$AR |
6635 | # Extract the first word of "ar", so it can be a program name with args. |
6636 | set dummy ar; ac_word=$2 |
dd184caf |
6637 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6638 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
6639 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
6640 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6641 | else |
6642 | if test -n "$ac_ct_AR"; then |
6643 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
6644 | else |
6645 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6646 | for as_dir in $PATH |
6647 | do |
6648 | IFS=$as_save_IFS |
6649 | test -z "$as_dir" && as_dir=. |
6650 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
6651 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
6652 | ac_cv_prog_ac_ct_AR="ar" |
6653 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6654 | break 2 |
6655 | fi |
6656 | done |
6657 | done |
dd184caf |
6658 | IFS=$as_save_IFS |
d9898ee8 |
6659 | |
d9898ee8 |
6660 | fi |
6661 | fi |
6662 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
6663 | if test -n "$ac_ct_AR"; then |
dd184caf |
6664 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
6665 | echo "${ECHO_T}$ac_ct_AR" >&6; } |
d9898ee8 |
6666 | else |
dd184caf |
6667 | { echo "$as_me:$LINENO: result: no" >&5 |
6668 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
6669 | fi |
6670 | |
dd184caf |
6671 | if test "x$ac_ct_AR" = x; then |
6672 | AR="false" |
6673 | else |
6674 | case $cross_compiling:$ac_tool_warned in |
6675 | yes:) |
6676 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
6677 | whose name does not start with the host triplet. If you think this |
6678 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
6679 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
6680 | whose name does not start with the host triplet. If you think this |
6681 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
6682 | ac_tool_warned=yes ;; |
6683 | esac |
6684 | AR=$ac_ct_AR |
6685 | fi |
d9898ee8 |
6686 | else |
6687 | AR="$ac_cv_prog_AR" |
6688 | fi |
6689 | |
6690 | if test -n "$ac_tool_prefix"; then |
6691 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
6692 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
dd184caf |
6693 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6694 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
6695 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
6696 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6697 | else |
6698 | if test -n "$RANLIB"; then |
6699 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
6700 | else |
6701 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6702 | for as_dir in $PATH |
6703 | do |
6704 | IFS=$as_save_IFS |
6705 | test -z "$as_dir" && as_dir=. |
6706 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
6707 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
6708 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
6709 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6710 | break 2 |
6711 | fi |
6712 | done |
6713 | done |
dd184caf |
6714 | IFS=$as_save_IFS |
d9898ee8 |
6715 | |
6716 | fi |
6717 | fi |
6718 | RANLIB=$ac_cv_prog_RANLIB |
6719 | if test -n "$RANLIB"; then |
dd184caf |
6720 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
6721 | echo "${ECHO_T}$RANLIB" >&6; } |
d9898ee8 |
6722 | else |
dd184caf |
6723 | { echo "$as_me:$LINENO: result: no" >&5 |
6724 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
6725 | fi |
6726 | |
dd184caf |
6727 | |
d9898ee8 |
6728 | fi |
6729 | if test -z "$ac_cv_prog_RANLIB"; then |
6730 | ac_ct_RANLIB=$RANLIB |
6731 | # Extract the first word of "ranlib", so it can be a program name with args. |
6732 | set dummy ranlib; ac_word=$2 |
dd184caf |
6733 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6734 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
6735 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
6736 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6737 | else |
6738 | if test -n "$ac_ct_RANLIB"; then |
6739 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
6740 | else |
6741 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6742 | for as_dir in $PATH |
6743 | do |
6744 | IFS=$as_save_IFS |
6745 | test -z "$as_dir" && as_dir=. |
6746 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
6747 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
6748 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
6749 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6750 | break 2 |
6751 | fi |
6752 | done |
6753 | done |
dd184caf |
6754 | IFS=$as_save_IFS |
d9898ee8 |
6755 | |
d9898ee8 |
6756 | fi |
6757 | fi |
6758 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
6759 | if test -n "$ac_ct_RANLIB"; then |
dd184caf |
6760 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
6761 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
d9898ee8 |
6762 | else |
dd184caf |
6763 | { echo "$as_me:$LINENO: result: no" >&5 |
6764 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
6765 | fi |
6766 | |
dd184caf |
6767 | if test "x$ac_ct_RANLIB" = x; then |
6768 | RANLIB=":" |
6769 | else |
6770 | case $cross_compiling:$ac_tool_warned in |
6771 | yes:) |
6772 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
6773 | whose name does not start with the host triplet. If you think this |
6774 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
6775 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
6776 | whose name does not start with the host triplet. If you think this |
6777 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
6778 | ac_tool_warned=yes ;; |
6779 | esac |
6780 | RANLIB=$ac_ct_RANLIB |
6781 | fi |
d9898ee8 |
6782 | else |
6783 | RANLIB="$ac_cv_prog_RANLIB" |
6784 | fi |
6785 | |
6786 | if test -n "$ac_tool_prefix"; then |
6787 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
6788 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
dd184caf |
6789 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6790 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
6791 | if test "${ac_cv_prog_STRIP+set}" = set; then |
6792 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6793 | else |
6794 | if test -n "$STRIP"; then |
6795 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
6796 | else |
6797 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6798 | for as_dir in $PATH |
6799 | do |
6800 | IFS=$as_save_IFS |
6801 | test -z "$as_dir" && as_dir=. |
6802 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
6803 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
6804 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
6805 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6806 | break 2 |
6807 | fi |
6808 | done |
6809 | done |
dd184caf |
6810 | IFS=$as_save_IFS |
d9898ee8 |
6811 | |
6812 | fi |
6813 | fi |
6814 | STRIP=$ac_cv_prog_STRIP |
6815 | if test -n "$STRIP"; then |
dd184caf |
6816 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
6817 | echo "${ECHO_T}$STRIP" >&6; } |
d9898ee8 |
6818 | else |
dd184caf |
6819 | { echo "$as_me:$LINENO: result: no" >&5 |
6820 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
6821 | fi |
6822 | |
dd184caf |
6823 | |
d9898ee8 |
6824 | fi |
6825 | if test -z "$ac_cv_prog_STRIP"; then |
6826 | ac_ct_STRIP=$STRIP |
6827 | # Extract the first word of "strip", so it can be a program name with args. |
6828 | set dummy strip; ac_word=$2 |
dd184caf |
6829 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6830 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
6831 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
6832 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6833 | else |
6834 | if test -n "$ac_ct_STRIP"; then |
6835 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
6836 | else |
6837 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6838 | for as_dir in $PATH |
6839 | do |
6840 | IFS=$as_save_IFS |
6841 | test -z "$as_dir" && as_dir=. |
6842 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
6843 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
6844 | ac_cv_prog_ac_ct_STRIP="strip" |
6845 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6846 | break 2 |
6847 | fi |
6848 | done |
6849 | done |
dd184caf |
6850 | IFS=$as_save_IFS |
d9898ee8 |
6851 | |
d9898ee8 |
6852 | fi |
6853 | fi |
6854 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
6855 | if test -n "$ac_ct_STRIP"; then |
dd184caf |
6856 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
6857 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
d9898ee8 |
6858 | else |
dd184caf |
6859 | { echo "$as_me:$LINENO: result: no" >&5 |
6860 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
6861 | fi |
6862 | |
dd184caf |
6863 | if test "x$ac_ct_STRIP" = x; then |
6864 | STRIP=":" |
6865 | else |
6866 | case $cross_compiling:$ac_tool_warned in |
6867 | yes:) |
6868 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
6869 | whose name does not start with the host triplet. If you think this |
6870 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
6871 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
6872 | whose name does not start with the host triplet. If you think this |
6873 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
6874 | ac_tool_warned=yes ;; |
6875 | esac |
6876 | STRIP=$ac_ct_STRIP |
6877 | fi |
d9898ee8 |
6878 | else |
6879 | STRIP="$ac_cv_prog_STRIP" |
6880 | fi |
6881 | |
6882 | |
6883 | old_CC="$CC" |
6884 | old_CFLAGS="$CFLAGS" |
6885 | |
6886 | # Set sane defaults for various variables |
6887 | test -z "$AR" && AR=ar |
6888 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
6889 | test -z "$AS" && AS=as |
6890 | test -z "$CC" && CC=cc |
6891 | test -z "$LTCC" && LTCC=$CC |
6892 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
6893 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
6894 | test -z "$LD" && LD=ld |
6895 | test -z "$LN_S" && LN_S="ln -s" |
6896 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
6897 | test -z "$NM" && NM=nm |
6898 | test -z "$SED" && SED=sed |
6899 | test -z "$OBJDUMP" && OBJDUMP=objdump |
6900 | test -z "$RANLIB" && RANLIB=: |
6901 | test -z "$STRIP" && STRIP=: |
6902 | test -z "$ac_objext" && ac_objext=o |
6903 | |
6904 | # Determine commands to create old-style static archives. |
6905 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
6906 | old_postinstall_cmds='chmod 644 $oldlib' |
6907 | old_postuninstall_cmds= |
6908 | |
6909 | if test -n "$RANLIB"; then |
6910 | case $host_os in |
6911 | openbsd*) |
6912 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
6913 | ;; |
6914 | *) |
6915 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
6916 | ;; |
6917 | esac |
6918 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
6919 | fi |
6920 | |
6921 | for cc_temp in $compiler""; do |
6922 | case $cc_temp in |
6923 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
6924 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
6925 | \-*) ;; |
6926 | *) break;; |
6927 | esac |
6928 | done |
6929 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
6930 | |
6931 | |
6932 | # Only perform the check for file, if the check method requires it |
6933 | case $deplibs_check_method in |
6934 | file_magic*) |
6935 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
dd184caf |
6936 | { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
6937 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } |
d9898ee8 |
6938 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
6939 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6940 | else |
6941 | case $MAGIC_CMD in |
6942 | [\\/*] | ?:[\\/]*) |
6943 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
6944 | ;; |
6945 | *) |
6946 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
6947 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
6948 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
6949 | for ac_dir in $ac_dummy; do |
6950 | IFS="$lt_save_ifs" |
6951 | test -z "$ac_dir" && ac_dir=. |
6952 | if test -f $ac_dir/${ac_tool_prefix}file; then |
6953 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
6954 | if test -n "$file_magic_test_file"; then |
6955 | case $deplibs_check_method in |
6956 | "file_magic "*) |
6957 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
6958 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
6959 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
6960 | $EGREP "$file_magic_regex" > /dev/null; then |
6961 | : |
6962 | else |
6963 | cat <<EOF 1>&2 |
6964 | |
6965 | *** Warning: the command libtool uses to detect shared libraries, |
6966 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
6967 | *** The result is that libtool may fail to recognize shared libraries |
6968 | *** as such. This will affect the creation of libtool libraries that |
6969 | *** depend on shared libraries, but programs linked with such libtool |
6970 | *** libraries will work regardless of this problem. Nevertheless, you |
6971 | *** may want to report the problem to your system manager and/or to |
6972 | *** bug-libtool@gnu.org |
6973 | |
6974 | EOF |
6975 | fi ;; |
6976 | esac |
6977 | fi |
6978 | break |
6979 | fi |
6980 | done |
6981 | IFS="$lt_save_ifs" |
6982 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
6983 | ;; |
6984 | esac |
6985 | fi |
6986 | |
6987 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
6988 | if test -n "$MAGIC_CMD"; then |
dd184caf |
6989 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
6990 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
d9898ee8 |
6991 | else |
dd184caf |
6992 | { echo "$as_me:$LINENO: result: no" >&5 |
6993 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
6994 | fi |
6995 | |
6996 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
6997 | if test -n "$ac_tool_prefix"; then |
dd184caf |
6998 | { echo "$as_me:$LINENO: checking for file" >&5 |
6999 | echo $ECHO_N "checking for file... $ECHO_C" >&6; } |
d9898ee8 |
7000 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
7001 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7002 | else |
7003 | case $MAGIC_CMD in |
7004 | [\\/*] | ?:[\\/]*) |
7005 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
7006 | ;; |
7007 | *) |
7008 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
7009 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
7010 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
7011 | for ac_dir in $ac_dummy; do |
7012 | IFS="$lt_save_ifs" |
7013 | test -z "$ac_dir" && ac_dir=. |
7014 | if test -f $ac_dir/file; then |
7015 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
7016 | if test -n "$file_magic_test_file"; then |
7017 | case $deplibs_check_method in |
7018 | "file_magic "*) |
7019 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
7020 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
7021 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
7022 | $EGREP "$file_magic_regex" > /dev/null; then |
7023 | : |
7024 | else |
7025 | cat <<EOF 1>&2 |
7026 | |
7027 | *** Warning: the command libtool uses to detect shared libraries, |
7028 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
7029 | *** The result is that libtool may fail to recognize shared libraries |
7030 | *** as such. This will affect the creation of libtool libraries that |
7031 | *** depend on shared libraries, but programs linked with such libtool |
7032 | *** libraries will work regardless of this problem. Nevertheless, you |
7033 | *** may want to report the problem to your system manager and/or to |
7034 | *** bug-libtool@gnu.org |
7035 | |
7036 | EOF |
7037 | fi ;; |
7038 | esac |
7039 | fi |
7040 | break |
7041 | fi |
7042 | done |
7043 | IFS="$lt_save_ifs" |
7044 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
7045 | ;; |
7046 | esac |
7047 | fi |
7048 | |
7049 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
7050 | if test -n "$MAGIC_CMD"; then |
dd184caf |
7051 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
7052 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
d9898ee8 |
7053 | else |
dd184caf |
7054 | { echo "$as_me:$LINENO: result: no" >&5 |
7055 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
7056 | fi |
7057 | |
7058 | else |
7059 | MAGIC_CMD=: |
7060 | fi |
7061 | fi |
7062 | |
7063 | fi |
7064 | ;; |
7065 | esac |
7066 | |
7067 | enable_dlopen=no |
7068 | enable_win32_dll=no |
7069 | |
dd184caf |
7070 | # Check whether --enable-libtool-lock was given. |
d9898ee8 |
7071 | if test "${enable_libtool_lock+set}" = set; then |
dd184caf |
7072 | enableval=$enable_libtool_lock; |
7073 | fi |
d9898ee8 |
7074 | |
d9898ee8 |
7075 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
7076 | |
7077 | |
dd184caf |
7078 | # Check whether --with-pic was given. |
d9898ee8 |
7079 | if test "${with_pic+set}" = set; then |
dd184caf |
7080 | withval=$with_pic; pic_mode="$withval" |
d9898ee8 |
7081 | else |
7082 | pic_mode=default |
dd184caf |
7083 | fi |
7084 | |
d9898ee8 |
7085 | test -z "$pic_mode" && pic_mode=default |
7086 | |
7087 | # Use C for the default configuration in the libtool script |
7088 | tagname= |
7089 | lt_save_CC="$CC" |
7090 | ac_ext=c |
7091 | ac_cpp='$CPP $CPPFLAGS' |
7092 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
7093 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
7094 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
7095 | |
7096 | |
7097 | # Source file extension for C test sources. |
7098 | ac_ext=c |
7099 | |
7100 | # Object file extension for compiled C test sources. |
7101 | objext=o |
7102 | objext=$objext |
7103 | |
7104 | # Code to be used in simple compile tests |
7105 | lt_simple_compile_test_code="int some_variable = 0;\n" |
7106 | |
7107 | # Code to be used in simple link tests |
7108 | lt_simple_link_test_code='int main(){return(0);}\n' |
7109 | |
7110 | |
7111 | # If no C compiler was specified, use CC. |
7112 | LTCC=${LTCC-"$CC"} |
7113 | |
7114 | # If no C compiler flags were specified, use CFLAGS. |
7115 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
7116 | |
7117 | # Allow CC to be a program name with arguments. |
7118 | compiler=$CC |
7119 | |
7120 | |
7121 | # save warnings/boilerplate of simple test code |
7122 | ac_outfile=conftest.$ac_objext |
7123 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
7124 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
7125 | _lt_compiler_boilerplate=`cat conftest.err` |
7126 | $rm conftest* |
7127 | |
7128 | ac_outfile=conftest.$ac_objext |
7129 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
7130 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
7131 | _lt_linker_boilerplate=`cat conftest.err` |
7132 | $rm conftest* |
7133 | |
7134 | |
7135 | |
7136 | lt_prog_compiler_no_builtin_flag= |
7137 | |
7138 | if test "$GCC" = yes; then |
7139 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
7140 | |
7141 | |
dd184caf |
7142 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
7143 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } |
d9898ee8 |
7144 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
7145 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7146 | else |
7147 | lt_cv_prog_compiler_rtti_exceptions=no |
7148 | ac_outfile=conftest.$ac_objext |
7149 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
7150 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
7151 | # Insert the option either (1) after the last *FLAGS variable, or |
7152 | # (2) before a word containing "conftest.", or (3) at the end. |
7153 | # Note that $ac_compile itself does not contain backslashes and begins |
7154 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
7155 | # The option is referenced via a variable to avoid confusing sed. |
7156 | lt_compile=`echo "$ac_compile" | $SED \ |
7157 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
7158 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
7159 | -e 's:$: $lt_compiler_flag:'` |
1dce02f2 |
7160 | (eval echo "\"\$as_me:7160: $lt_compile\"" >&5) |
d9898ee8 |
7161 | (eval "$lt_compile" 2>conftest.err) |
7162 | ac_status=$? |
7163 | cat conftest.err >&5 |
1dce02f2 |
7164 | echo "$as_me:7164: \$? = $ac_status" >&5 |
d9898ee8 |
7165 | if (exit $ac_status) && test -s "$ac_outfile"; then |
7166 | # The compiler can only warn and ignore the option if not recognized |
7167 | # So say no if there are warnings other than the usual output. |
7168 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
7169 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
7170 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
7171 | lt_cv_prog_compiler_rtti_exceptions=yes |
7172 | fi |
7173 | fi |
7174 | $rm conftest* |
7175 | |
7176 | fi |
dd184caf |
7177 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
7178 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
d9898ee8 |
7179 | |
7180 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
7181 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
7182 | else |
7183 | : |
7184 | fi |
7185 | |
7186 | fi |
7187 | |
7188 | lt_prog_compiler_wl= |
7189 | lt_prog_compiler_pic= |
7190 | lt_prog_compiler_static= |
7191 | |
dd184caf |
7192 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
7193 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
d9898ee8 |
7194 | |
7195 | if test "$GCC" = yes; then |
7196 | lt_prog_compiler_wl='-Wl,' |
7197 | lt_prog_compiler_static='-static' |
7198 | |
7199 | case $host_os in |
7200 | aix*) |
7201 | # All AIX code is PIC. |
7202 | if test "$host_cpu" = ia64; then |
7203 | # AIX 5 now supports IA64 processor |
7204 | lt_prog_compiler_static='-Bstatic' |
7205 | fi |
7206 | ;; |
7207 | |
7208 | amigaos*) |
7209 | # FIXME: we need at least 68020 code to build shared libraries, but |
7210 | # adding the `-m68020' flag to GCC prevents building anything better, |
7211 | # like `-m68040'. |
7212 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
7213 | ;; |
7214 | |
7215 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
7216 | # PIC is the default for these OSes. |
7217 | ;; |
7218 | |
7219 | mingw* | pw32* | os2*) |
7220 | # This hack is so that the source file can tell whether it is being |
7221 | # built for inclusion in a dll (and should export symbols for example). |
7222 | lt_prog_compiler_pic='-DDLL_EXPORT' |
7223 | ;; |
7224 | |
7225 | darwin* | rhapsody*) |
7226 | # PIC is the default on this platform |
7227 | # Common symbols not allowed in MH_DYLIB files |
7228 | lt_prog_compiler_pic='-fno-common' |
7229 | ;; |
7230 | |
7231 | interix3*) |
7232 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
7233 | # Instead, we relocate shared libraries at runtime. |
7234 | ;; |
7235 | |
7236 | msdosdjgpp*) |
7237 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
7238 | # on systems that don't support them. |
7239 | lt_prog_compiler_can_build_shared=no |
7240 | enable_shared=no |
7241 | ;; |
7242 | |
7243 | sysv4*MP*) |
7244 | if test -d /usr/nec; then |
7245 | lt_prog_compiler_pic=-Kconform_pic |
7246 | fi |
7247 | ;; |
7248 | |
7249 | hpux*) |
7250 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
7251 | # not for PA HP-UX. |
7252 | case $host_cpu in |
7253 | hppa*64*|ia64*) |
7254 | # +Z the default |
7255 | ;; |
7256 | *) |
7257 | lt_prog_compiler_pic='-fPIC' |
7258 | ;; |
7259 | esac |
7260 | ;; |
7261 | |
7262 | *) |
7263 | lt_prog_compiler_pic='-fPIC' |
7264 | ;; |
7265 | esac |
7266 | else |
7267 | # PORTME Check for flag to pass linker flags through the system compiler. |
7268 | case $host_os in |
7269 | aix*) |
7270 | lt_prog_compiler_wl='-Wl,' |
7271 | if test "$host_cpu" = ia64; then |
7272 | # AIX 5 now supports IA64 processor |
7273 | lt_prog_compiler_static='-Bstatic' |
7274 | else |
7275 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
7276 | fi |
7277 | ;; |
7278 | darwin*) |
7279 | # PIC is the default on this platform |
7280 | # Common symbols not allowed in MH_DYLIB files |
7281 | case $cc_basename in |
7282 | xlc*) |
7283 | lt_prog_compiler_pic='-qnocommon' |
7284 | lt_prog_compiler_wl='-Wl,' |
7285 | ;; |
7286 | esac |
7287 | ;; |
7288 | |
7289 | mingw* | pw32* | os2*) |
7290 | # This hack is so that the source file can tell whether it is being |
7291 | # built for inclusion in a dll (and should export symbols for example). |
7292 | lt_prog_compiler_pic='-DDLL_EXPORT' |
7293 | ;; |
7294 | |
7295 | hpux9* | hpux10* | hpux11*) |
7296 | lt_prog_compiler_wl='-Wl,' |
7297 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
7298 | # not for PA HP-UX. |
7299 | case $host_cpu in |
7300 | hppa*64*|ia64*) |
7301 | # +Z the default |
7302 | ;; |
7303 | *) |
7304 | lt_prog_compiler_pic='+Z' |
7305 | ;; |
7306 | esac |
7307 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
7308 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
7309 | ;; |
7310 | |
7311 | irix5* | irix6* | nonstopux*) |
7312 | lt_prog_compiler_wl='-Wl,' |
7313 | # PIC (with -KPIC) is the default. |
7314 | lt_prog_compiler_static='-non_shared' |
7315 | ;; |
7316 | |
7317 | newsos6) |
7318 | lt_prog_compiler_pic='-KPIC' |
7319 | lt_prog_compiler_static='-Bstatic' |
7320 | ;; |
7321 | |
1dce02f2 |
7322 | linux* | k*bsd*-gnu) |
d9898ee8 |
7323 | case $cc_basename in |
7324 | icc* | ecc*) |
7325 | lt_prog_compiler_wl='-Wl,' |
7326 | lt_prog_compiler_pic='-KPIC' |
7327 | lt_prog_compiler_static='-static' |
7328 | ;; |
7329 | pgcc* | pgf77* | pgf90* | pgf95*) |
7330 | # Portland Group compilers (*not* the Pentium gcc compiler, |
7331 | # which looks to be a dead project) |
7332 | lt_prog_compiler_wl='-Wl,' |
7333 | lt_prog_compiler_pic='-fpic' |
7334 | lt_prog_compiler_static='-Bstatic' |
7335 | ;; |
7336 | ccc*) |
7337 | lt_prog_compiler_wl='-Wl,' |
7338 | # All Alpha code is PIC. |
7339 | lt_prog_compiler_static='-non_shared' |
7340 | ;; |
7341 | esac |
7342 | ;; |
7343 | |
7344 | osf3* | osf4* | osf5*) |
7345 | lt_prog_compiler_wl='-Wl,' |
7346 | # All OSF/1 code is PIC. |
7347 | lt_prog_compiler_static='-non_shared' |
7348 | ;; |
7349 | |
7350 | solaris*) |
7351 | lt_prog_compiler_pic='-KPIC' |
7352 | lt_prog_compiler_static='-Bstatic' |
7353 | case $cc_basename in |
7354 | f77* | f90* | f95*) |
7355 | lt_prog_compiler_wl='-Qoption ld ';; |
7356 | *) |
7357 | lt_prog_compiler_wl='-Wl,';; |
7358 | esac |
7359 | ;; |
7360 | |
7361 | sunos4*) |
7362 | lt_prog_compiler_wl='-Qoption ld ' |
7363 | lt_prog_compiler_pic='-PIC' |
7364 | lt_prog_compiler_static='-Bstatic' |
7365 | ;; |
7366 | |
7367 | sysv4 | sysv4.2uw2* | sysv4.3*) |
7368 | lt_prog_compiler_wl='-Wl,' |
7369 | lt_prog_compiler_pic='-KPIC' |
7370 | lt_prog_compiler_static='-Bstatic' |
7371 | ;; |
7372 | |
7373 | sysv4*MP*) |
7374 | if test -d /usr/nec ;then |
7375 | lt_prog_compiler_pic='-Kconform_pic' |
7376 | lt_prog_compiler_static='-Bstatic' |
7377 | fi |
7378 | ;; |
7379 | |
7380 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
7381 | lt_prog_compiler_wl='-Wl,' |
7382 | lt_prog_compiler_pic='-KPIC' |
7383 | lt_prog_compiler_static='-Bstatic' |
7384 | ;; |
7385 | |
7386 | unicos*) |
7387 | lt_prog_compiler_wl='-Wl,' |
7388 | lt_prog_compiler_can_build_shared=no |
7389 | ;; |
7390 | |
7391 | uts4*) |
7392 | lt_prog_compiler_pic='-pic' |
7393 | lt_prog_compiler_static='-Bstatic' |
7394 | ;; |
7395 | |
7396 | *) |
7397 | lt_prog_compiler_can_build_shared=no |
7398 | ;; |
7399 | esac |
7400 | fi |
7401 | |
dd184caf |
7402 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
7403 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } |
d9898ee8 |
7404 | |
7405 | # |
7406 | # Check to make sure the PIC flag actually works. |
7407 | # |
7408 | if test -n "$lt_prog_compiler_pic"; then |
7409 | |
dd184caf |
7410 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
7411 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } |
d9898ee8 |
7412 | if test "${lt_prog_compiler_pic_works+set}" = set; then |
7413 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7414 | else |
7415 | lt_prog_compiler_pic_works=no |
7416 | ac_outfile=conftest.$ac_objext |
7417 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
7418 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
7419 | # Insert the option either (1) after the last *FLAGS variable, or |
7420 | # (2) before a word containing "conftest.", or (3) at the end. |
7421 | # Note that $ac_compile itself does not contain backslashes and begins |
7422 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
7423 | # The option is referenced via a variable to avoid confusing sed. |
7424 | lt_compile=`echo "$ac_compile" | $SED \ |
7425 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
7426 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
7427 | -e 's:$: $lt_compiler_flag:'` |
1dce02f2 |
7428 | (eval echo "\"\$as_me:7428: $lt_compile\"" >&5) |
d9898ee8 |
7429 | (eval "$lt_compile" 2>conftest.err) |
7430 | ac_status=$? |
7431 | cat conftest.err >&5 |
1dce02f2 |
7432 | echo "$as_me:7432: \$? = $ac_status" >&5 |
d9898ee8 |
7433 | if (exit $ac_status) && test -s "$ac_outfile"; then |
7434 | # The compiler can only warn and ignore the option if not recognized |
7435 | # So say no if there are warnings other than the usual output. |
7436 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
7437 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
7438 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
7439 | lt_prog_compiler_pic_works=yes |
7440 | fi |
7441 | fi |
7442 | $rm conftest* |
7443 | |
7444 | fi |
dd184caf |
7445 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
7446 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } |
d9898ee8 |
7447 | |
7448 | if test x"$lt_prog_compiler_pic_works" = xyes; then |
7449 | case $lt_prog_compiler_pic in |
7450 | "" | " "*) ;; |
7451 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
7452 | esac |
7453 | else |
7454 | lt_prog_compiler_pic= |
7455 | lt_prog_compiler_can_build_shared=no |
7456 | fi |
7457 | |
7458 | fi |
7459 | case $host_os in |
7460 | # For platforms which do not support PIC, -DPIC is meaningless: |
7461 | *djgpp*) |
7462 | lt_prog_compiler_pic= |
7463 | ;; |
7464 | *) |
7465 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
7466 | ;; |
7467 | esac |
7468 | |
7469 | # |
7470 | # Check to make sure the static flag actually works. |
7471 | # |
7472 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
dd184caf |
7473 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
7474 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
d9898ee8 |
7475 | if test "${lt_prog_compiler_static_works+set}" = set; then |
7476 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7477 | else |
7478 | lt_prog_compiler_static_works=no |
7479 | save_LDFLAGS="$LDFLAGS" |
7480 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
7481 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
7482 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
7483 | # The linker can only warn and ignore the option if not recognized |
7484 | # So say no if there are warnings |
7485 | if test -s conftest.err; then |
7486 | # Append any errors to the config.log. |
7487 | cat conftest.err 1>&5 |
7488 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
7489 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
7490 | if diff conftest.exp conftest.er2 >/dev/null; then |
7491 | lt_prog_compiler_static_works=yes |
7492 | fi |
7493 | else |
7494 | lt_prog_compiler_static_works=yes |
7495 | fi |
7496 | fi |
7497 | $rm conftest* |
7498 | LDFLAGS="$save_LDFLAGS" |
7499 | |
7500 | fi |
dd184caf |
7501 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
7502 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } |
d9898ee8 |
7503 | |
7504 | if test x"$lt_prog_compiler_static_works" = xyes; then |
7505 | : |
7506 | else |
7507 | lt_prog_compiler_static= |
7508 | fi |
7509 | |
7510 | |
dd184caf |
7511 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
7512 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
d9898ee8 |
7513 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
7514 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7515 | else |
7516 | lt_cv_prog_compiler_c_o=no |
7517 | $rm -r conftest 2>/dev/null |
7518 | mkdir conftest |
7519 | cd conftest |
7520 | mkdir out |
7521 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
7522 | |
7523 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
7524 | # Insert the option either (1) after the last *FLAGS variable, or |
7525 | # (2) before a word containing "conftest.", or (3) at the end. |
7526 | # Note that $ac_compile itself does not contain backslashes and begins |
7527 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
7528 | lt_compile=`echo "$ac_compile" | $SED \ |
7529 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
7530 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
7531 | -e 's:$: $lt_compiler_flag:'` |
1dce02f2 |
7532 | (eval echo "\"\$as_me:7532: $lt_compile\"" >&5) |
d9898ee8 |
7533 | (eval "$lt_compile" 2>out/conftest.err) |
7534 | ac_status=$? |
7535 | cat out/conftest.err >&5 |
1dce02f2 |
7536 | echo "$as_me:7536: \$? = $ac_status" >&5 |
d9898ee8 |
7537 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
7538 | then |
7539 | # The compiler can only warn and ignore the option if not recognized |
7540 | # So say no if there are warnings |
7541 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
7542 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
7543 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
7544 | lt_cv_prog_compiler_c_o=yes |
7545 | fi |
7546 | fi |
7547 | chmod u+w . 2>&5 |
7548 | $rm conftest* |
7549 | # SGI C++ compiler will create directory out/ii_files/ for |
7550 | # template instantiation |
7551 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
7552 | $rm out/* && rmdir out |
7553 | cd .. |
7554 | rmdir conftest |
7555 | $rm conftest* |
7556 | |
7557 | fi |
dd184caf |
7558 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
7559 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } |
d9898ee8 |
7560 | |
7561 | |
7562 | hard_links="nottested" |
7563 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
7564 | # do not overwrite the value of need_locks provided by the user |
dd184caf |
7565 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
7566 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
d9898ee8 |
7567 | hard_links=yes |
7568 | $rm conftest* |
7569 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
7570 | touch conftest.a |
7571 | ln conftest.a conftest.b 2>&5 || hard_links=no |
7572 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
dd184caf |
7573 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
7574 | echo "${ECHO_T}$hard_links" >&6; } |
d9898ee8 |
7575 | if test "$hard_links" = no; then |
7576 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
7577 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
7578 | need_locks=warn |
7579 | fi |
7580 | else |
7581 | need_locks=no |
7582 | fi |
7583 | |
dd184caf |
7584 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
7585 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
d9898ee8 |
7586 | |
7587 | runpath_var= |
7588 | allow_undefined_flag= |
7589 | enable_shared_with_static_runtimes=no |
7590 | archive_cmds= |
7591 | archive_expsym_cmds= |
7592 | old_archive_From_new_cmds= |
7593 | old_archive_from_expsyms_cmds= |
7594 | export_dynamic_flag_spec= |
7595 | whole_archive_flag_spec= |
7596 | thread_safe_flag_spec= |
7597 | hardcode_libdir_flag_spec= |
7598 | hardcode_libdir_flag_spec_ld= |
7599 | hardcode_libdir_separator= |
7600 | hardcode_direct=no |
7601 | hardcode_minus_L=no |
7602 | hardcode_shlibpath_var=unsupported |
7603 | link_all_deplibs=unknown |
7604 | hardcode_automatic=no |
7605 | module_cmds= |
7606 | module_expsym_cmds= |
7607 | always_export_symbols=no |
7608 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
7609 | # include_expsyms should be a list of space-separated symbols to be *always* |
7610 | # included in the symbol list |
7611 | include_expsyms= |
7612 | # exclude_expsyms can be an extended regexp of symbols to exclude |
7613 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
7614 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
7615 | # as well as any symbol that contains `d'. |
7616 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
7617 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
7618 | # platforms (ab)use it in PIC code, but their linkers get confused if |
7619 | # the symbol is explicitly referenced. Since portable code cannot |
7620 | # rely on this symbol name, it's probably fine to never include it in |
7621 | # preloaded symbol tables. |
7622 | extract_expsyms_cmds= |
7623 | # Just being paranoid about ensuring that cc_basename is set. |
7624 | for cc_temp in $compiler""; do |
7625 | case $cc_temp in |
7626 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
7627 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
7628 | \-*) ;; |
7629 | *) break;; |
7630 | esac |
7631 | done |
7632 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
7633 | |
7634 | case $host_os in |
7635 | cygwin* | mingw* | pw32*) |
7636 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
7637 | # When not using gcc, we currently assume that we are using |
7638 | # Microsoft Visual C++. |
7639 | if test "$GCC" != yes; then |
7640 | with_gnu_ld=no |
7641 | fi |
7642 | ;; |
7643 | interix*) |
7644 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
7645 | with_gnu_ld=yes |
7646 | ;; |
7647 | openbsd*) |
7648 | with_gnu_ld=no |
7649 | ;; |
7650 | esac |
7651 | |
7652 | ld_shlibs=yes |
7653 | if test "$with_gnu_ld" = yes; then |
7654 | # If archive_cmds runs LD, not CC, wlarc should be empty |
7655 | wlarc='${wl}' |
7656 | |
7657 | # Set some defaults for GNU ld with shared library support. These |
7658 | # are reset later if shared libraries are not supported. Putting them |
7659 | # here allows them to be overridden if necessary. |
7660 | runpath_var=LD_RUN_PATH |
7661 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
7662 | export_dynamic_flag_spec='${wl}--export-dynamic' |
7663 | # ancient GNU ld didn't support --whole-archive et. al. |
7664 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
7665 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
7666 | else |
7667 | whole_archive_flag_spec= |
7668 | fi |
7669 | supports_anon_versioning=no |
7670 | case `$LD -v 2>/dev/null` in |
7671 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
7672 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
7673 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
7674 | *\ 2.11.*) ;; # other 2.11 versions |
7675 | *) supports_anon_versioning=yes ;; |
7676 | esac |
7677 | |
7678 | # See if GNU ld supports shared libraries. |
7679 | case $host_os in |
7680 | aix3* | aix4* | aix5*) |
7681 | # On AIX/PPC, the GNU linker is very broken |
7682 | if test "$host_cpu" != ia64; then |
7683 | ld_shlibs=no |
7684 | cat <<EOF 1>&2 |
7685 | |
7686 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
7687 | *** to be unable to reliably create shared libraries on AIX. |
7688 | *** Therefore, libtool is disabling shared libraries support. If you |
7689 | *** really care for shared libraries, you may want to modify your PATH |
7690 | *** so that a non-GNU linker is found, and then restart. |
7691 | |
7692 | EOF |
7693 | fi |
7694 | ;; |
7695 | |
7696 | amigaos*) |
7697 | 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)' |
7698 | hardcode_libdir_flag_spec='-L$libdir' |
7699 | hardcode_minus_L=yes |
7700 | |
7701 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
7702 | # that the semantics of dynamic libraries on AmigaOS, at least up |
7703 | # to version 4, is to share data among multiple programs linked |
7704 | # with the same dynamic library. Since this doesn't match the |
7705 | # behavior of shared libraries on other platforms, we can't use |
7706 | # them. |
7707 | ld_shlibs=no |
7708 | ;; |
7709 | |
7710 | beos*) |
7711 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7712 | allow_undefined_flag=unsupported |
7713 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
7714 | # support --undefined. This deserves some investigation. FIXME |
7715 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7716 | else |
7717 | ld_shlibs=no |
7718 | fi |
7719 | ;; |
7720 | |
7721 | cygwin* | mingw* | pw32*) |
7722 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
7723 | # as there is no search path for DLLs. |
7724 | hardcode_libdir_flag_spec='-L$libdir' |
7725 | allow_undefined_flag=unsupported |
7726 | always_export_symbols=no |
7727 | enable_shared_with_static_runtimes=yes |
7728 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
7729 | |
7730 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
7731 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
7732 | # If the export-symbols file already is a .def file (1st line |
7733 | # is EXPORTS), use it as is; otherwise, prepend... |
7734 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
7735 | cp $export_symbols $output_objdir/$soname.def; |
7736 | else |
7737 | echo EXPORTS > $output_objdir/$soname.def; |
7738 | cat $export_symbols >> $output_objdir/$soname.def; |
7739 | fi~ |
7740 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
7741 | else |
7742 | ld_shlibs=no |
7743 | fi |
7744 | ;; |
7745 | |
7746 | interix3*) |
7747 | hardcode_direct=no |
7748 | hardcode_shlibpath_var=no |
7749 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
7750 | export_dynamic_flag_spec='${wl}-E' |
7751 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
7752 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
7753 | # default) and relocated if they conflict, which is a slow very memory |
7754 | # consuming and fragmenting process. To avoid this, we pick a random, |
7755 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
7756 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
7757 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
7758 | 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' |
7759 | ;; |
7760 | |
1dce02f2 |
7761 | linux* | k*bsd*-gnu) |
d9898ee8 |
7762 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7763 | tmp_addflag= |
7764 | case $cc_basename,$host_cpu in |
7765 | pgcc*) # Portland Group C compiler |
7766 | 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' |
7767 | tmp_addflag=' $pic_flag' |
7768 | ;; |
7769 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
7770 | 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' |
7771 | tmp_addflag=' $pic_flag -Mnomain' ;; |
7772 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
7773 | tmp_addflag=' -i_dynamic' ;; |
7774 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
7775 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
7776 | ifc* | ifort*) # Intel Fortran compiler |
7777 | tmp_addflag=' -nofor_main' ;; |
7778 | esac |
7779 | archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7780 | |
7781 | if test $supports_anon_versioning = yes; then |
7782 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
7783 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
7784 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
7785 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
7786 | fi |
1dce02f2 |
7787 | link_all_deplibs=no |
d9898ee8 |
7788 | else |
7789 | ld_shlibs=no |
7790 | fi |
7791 | ;; |
7792 | |
1dce02f2 |
7793 | netbsd* | netbsdelf*-gnu) |
d9898ee8 |
7794 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
7795 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
7796 | wlarc= |
7797 | else |
7798 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7799 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
7800 | fi |
7801 | ;; |
7802 | |
7803 | solaris*) |
7804 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
7805 | ld_shlibs=no |
7806 | cat <<EOF 1>&2 |
7807 | |
7808 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
7809 | *** create shared libraries on Solaris systems. Therefore, libtool |
7810 | *** is disabling shared libraries support. We urge you to upgrade GNU |
7811 | *** binutils to release 2.9.1 or newer. Another option is to modify |
7812 | *** your PATH or compiler configuration so that the native linker is |
7813 | *** used, and then restart. |
7814 | |
7815 | EOF |
7816 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7817 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7818 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
7819 | else |
7820 | ld_shlibs=no |
7821 | fi |
7822 | ;; |
7823 | |
7824 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
7825 | case `$LD -v 2>&1` in |
7826 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
7827 | ld_shlibs=no |
7828 | cat <<_LT_EOF 1>&2 |
7829 | |
7830 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
7831 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
7832 | *** is disabling shared libraries support. We urge you to upgrade GNU |
7833 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
7834 | *** your PATH or compiler configuration so that the native linker is |
7835 | *** used, and then restart. |
7836 | |
7837 | _LT_EOF |
7838 | ;; |
7839 | *) |
7840 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7841 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
7842 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
7843 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
7844 | else |
7845 | ld_shlibs=no |
7846 | fi |
7847 | ;; |
7848 | esac |
7849 | ;; |
7850 | |
7851 | sunos4*) |
7852 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
7853 | wlarc= |
7854 | hardcode_direct=yes |
7855 | hardcode_shlibpath_var=no |
7856 | ;; |
7857 | |
7858 | *) |
7859 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7860 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7861 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
7862 | else |
7863 | ld_shlibs=no |
7864 | fi |
7865 | ;; |
7866 | esac |
7867 | |
7868 | if test "$ld_shlibs" = no; then |
7869 | runpath_var= |
7870 | hardcode_libdir_flag_spec= |
7871 | export_dynamic_flag_spec= |
7872 | whole_archive_flag_spec= |
7873 | fi |
7874 | else |
7875 | # PORTME fill in a description of your system's linker (not GNU ld) |
7876 | case $host_os in |
7877 | aix3*) |
7878 | allow_undefined_flag=unsupported |
7879 | always_export_symbols=yes |
7880 | 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' |
7881 | # Note: this linker hardcodes the directories in LIBPATH if there |
7882 | # are no directories specified by -L. |
7883 | hardcode_minus_L=yes |
7884 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
7885 | # Neither direct hardcoding nor static linking is supported with a |
7886 | # broken collect2. |
7887 | hardcode_direct=unsupported |
7888 | fi |
7889 | ;; |
7890 | |
7891 | aix4* | aix5*) |
7892 | if test "$host_cpu" = ia64; then |
7893 | # On IA64, the linker does run time linking by default, so we don't |
7894 | # have to do anything special. |
7895 | aix_use_runtimelinking=no |
7896 | exp_sym_flag='-Bexport' |
7897 | no_entry_flag="" |
7898 | else |
7899 | # If we're using GNU nm, then we don't want the "-C" option. |
7900 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
7901 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
7902 | 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' |
7903 | else |
7904 | 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' |
7905 | fi |
7906 | aix_use_runtimelinking=no |
7907 | |
7908 | # Test if we are trying to use run time linking or normal |
7909 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
7910 | # need to do runtime linking. |
7911 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
7912 | for ld_flag in $LDFLAGS; do |
7913 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
7914 | aix_use_runtimelinking=yes |
7915 | break |
7916 | fi |
7917 | done |
7918 | ;; |
7919 | esac |
7920 | |
7921 | exp_sym_flag='-bexport' |
7922 | no_entry_flag='-bnoentry' |
7923 | fi |
7924 | |
7925 | # When large executables or shared objects are built, AIX ld can |
7926 | # have problems creating the table of contents. If linking a library |
7927 | # or program results in "error TOC overflow" add -mminimal-toc to |
7928 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
7929 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
7930 | |
7931 | archive_cmds='' |
7932 | hardcode_direct=yes |
7933 | hardcode_libdir_separator=':' |
7934 | link_all_deplibs=yes |
7935 | |
7936 | if test "$GCC" = yes; then |
7937 | case $host_os in aix4.[012]|aix4.[012].*) |
7938 | # We only want to do this on AIX 4.2 and lower, the check |
7939 | # below for broken collect2 doesn't work under 4.3+ |
7940 | collect2name=`${CC} -print-prog-name=collect2` |
7941 | if test -f "$collect2name" && \ |
7942 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
7943 | then |
7944 | # We have reworked collect2 |
7945 | hardcode_direct=yes |
7946 | else |
7947 | # We have old collect2 |
7948 | hardcode_direct=unsupported |
7949 | # It fails to find uninstalled libraries when the uninstalled |
7950 | # path is not listed in the libpath. Setting hardcode_minus_L |
7951 | # to unsupported forces relinking |
7952 | hardcode_minus_L=yes |
7953 | hardcode_libdir_flag_spec='-L$libdir' |
7954 | hardcode_libdir_separator= |
7955 | fi |
7956 | ;; |
7957 | esac |
7958 | shared_flag='-shared' |
7959 | if test "$aix_use_runtimelinking" = yes; then |
7960 | shared_flag="$shared_flag "'${wl}-G' |
7961 | fi |
7962 | else |
7963 | # not using gcc |
7964 | if test "$host_cpu" = ia64; then |
7965 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
7966 | # chokes on -Wl,-G. The following line is correct: |
7967 | shared_flag='-G' |
7968 | else |
7969 | if test "$aix_use_runtimelinking" = yes; then |
7970 | shared_flag='${wl}-G' |
7971 | else |
7972 | shared_flag='${wl}-bM:SRE' |
7973 | fi |
7974 | fi |
7975 | fi |
7976 | |
7977 | # It seems that -bexpall does not export symbols beginning with |
7978 | # underscore (_), so it is better to generate a list of symbols to export. |
7979 | always_export_symbols=yes |
7980 | if test "$aix_use_runtimelinking" = yes; then |
7981 | # Warning - without using the other runtime loading flags (-brtl), |
7982 | # -berok will link without error, but may produce a broken library. |
7983 | allow_undefined_flag='-berok' |
7984 | # Determine the default libpath from the value encoded in an empty executable. |
7985 | cat >conftest.$ac_ext <<_ACEOF |
7986 | /* confdefs.h. */ |
7987 | _ACEOF |
7988 | cat confdefs.h >>conftest.$ac_ext |
7989 | cat >>conftest.$ac_ext <<_ACEOF |
7990 | /* end confdefs.h. */ |
7991 | |
7992 | int |
7993 | main () |
7994 | { |
7995 | |
7996 | ; |
7997 | return 0; |
7998 | } |
7999 | _ACEOF |
8000 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
8001 | if { (ac_try="$ac_link" |
8002 | case "(($ac_try" in |
8003 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8004 | *) ac_try_echo=$ac_try;; |
8005 | esac |
8006 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8007 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
8008 | ac_status=$? |
8009 | grep -v '^ *+' conftest.er1 >conftest.err |
8010 | rm -f conftest.er1 |
8011 | cat conftest.err >&5 |
8012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
8013 | (exit $ac_status); } && { |
8014 | test -z "$ac_c_werror_flag" || |
8015 | test ! -s conftest.err |
8016 | } && test -s conftest$ac_exeext && |
8017 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
8018 | |
8019 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
8020 | }'` |
8021 | # Check for a 64-bit object if we didn't find anything. |
8022 | 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; } |
8023 | }'`; fi |
8024 | else |
8025 | echo "$as_me: failed program was:" >&5 |
8026 | sed 's/^/| /' conftest.$ac_ext >&5 |
8027 | |
dd184caf |
8028 | |
d9898ee8 |
8029 | fi |
dd184caf |
8030 | |
8031 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
8032 | conftest$ac_exeext conftest.$ac_ext |
8033 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
8034 | |
8035 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
8036 | 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" |
8037 | else |
8038 | if test "$host_cpu" = ia64; then |
8039 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
8040 | allow_undefined_flag="-z nodefs" |
8041 | 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" |
8042 | else |
8043 | # Determine the default libpath from the value encoded in an empty executable. |
8044 | cat >conftest.$ac_ext <<_ACEOF |
8045 | /* confdefs.h. */ |
8046 | _ACEOF |
8047 | cat confdefs.h >>conftest.$ac_ext |
8048 | cat >>conftest.$ac_ext <<_ACEOF |
8049 | /* end confdefs.h. */ |
8050 | |
8051 | int |
8052 | main () |
8053 | { |
8054 | |
8055 | ; |
8056 | return 0; |
8057 | } |
8058 | _ACEOF |
8059 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
8060 | if { (ac_try="$ac_link" |
8061 | case "(($ac_try" in |
8062 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8063 | *) ac_try_echo=$ac_try;; |
8064 | esac |
8065 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8066 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
8067 | ac_status=$? |
8068 | grep -v '^ *+' conftest.er1 >conftest.err |
8069 | rm -f conftest.er1 |
8070 | cat conftest.err >&5 |
8071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
8072 | (exit $ac_status); } && { |
8073 | test -z "$ac_c_werror_flag" || |
8074 | test ! -s conftest.err |
8075 | } && test -s conftest$ac_exeext && |
8076 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
8077 | |
8078 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
8079 | }'` |
8080 | # Check for a 64-bit object if we didn't find anything. |
8081 | 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; } |
8082 | }'`; fi |
8083 | else |
8084 | echo "$as_me: failed program was:" >&5 |
8085 | sed 's/^/| /' conftest.$ac_ext >&5 |
8086 | |
dd184caf |
8087 | |
d9898ee8 |
8088 | fi |
dd184caf |
8089 | |
8090 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
8091 | conftest$ac_exeext conftest.$ac_ext |
8092 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
8093 | |
8094 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
8095 | # Warning - without using the other run time loading flags, |
8096 | # -berok will link without error, but may produce a broken library. |
8097 | no_undefined_flag=' ${wl}-bernotok' |
8098 | allow_undefined_flag=' ${wl}-berok' |
8099 | # Exported symbols can be pulled into shared objects from archives |
8100 | whole_archive_flag_spec='$convenience' |
8101 | archive_cmds_need_lc=yes |
8102 | # This is similar to how AIX traditionally builds its shared libraries. |
8103 | 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' |
8104 | fi |
8105 | fi |
8106 | ;; |
8107 | |
8108 | amigaos*) |
8109 | 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)' |
8110 | hardcode_libdir_flag_spec='-L$libdir' |
8111 | hardcode_minus_L=yes |
8112 | # see comment about different semantics on the GNU ld section |
8113 | ld_shlibs=no |
8114 | ;; |
8115 | |
8116 | bsdi[45]*) |
8117 | export_dynamic_flag_spec=-rdynamic |
8118 | ;; |
8119 | |
8120 | cygwin* | mingw* | pw32*) |
8121 | # When not using gcc, we currently assume that we are using |
8122 | # Microsoft Visual C++. |
8123 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
8124 | # no search path for DLLs. |
8125 | hardcode_libdir_flag_spec=' ' |
8126 | allow_undefined_flag=unsupported |
8127 | # Tell ltmain to make .lib files, not .a files. |
8128 | libext=lib |
8129 | # Tell ltmain to make .dll files, not .so files. |
8130 | shrext_cmds=".dll" |
8131 | # FIXME: Setting linknames here is a bad hack. |
8132 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
8133 | # The linker will automatically build a .lib file if we build a DLL. |
8134 | old_archive_From_new_cmds='true' |
8135 | # FIXME: Should let the user specify the lib program. |
8136 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
8137 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
8138 | enable_shared_with_static_runtimes=yes |
8139 | ;; |
8140 | |
8141 | darwin* | rhapsody*) |
8142 | case $host_os in |
8143 | rhapsody* | darwin1.[012]) |
8144 | allow_undefined_flag='${wl}-undefined ${wl}suppress' |
8145 | ;; |
8146 | *) # Darwin 1.3 on |
8147 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
8148 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
8149 | else |
8150 | case ${MACOSX_DEPLOYMENT_TARGET} in |
8151 | 10.[012]) |
8152 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
8153 | ;; |
8154 | 10.*) |
8155 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' |
8156 | ;; |
8157 | esac |
8158 | fi |
8159 | ;; |
8160 | esac |
8161 | archive_cmds_need_lc=no |
8162 | hardcode_direct=no |
8163 | hardcode_automatic=yes |
8164 | hardcode_shlibpath_var=unsupported |
8165 | whole_archive_flag_spec='' |
8166 | link_all_deplibs=yes |
8167 | if test "$GCC" = yes ; then |
8168 | output_verbose_link_cmd='echo' |
8169 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
8170 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
8171 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
8172 | 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}' |
8173 | 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}' |
8174 | else |
8175 | case $cc_basename in |
8176 | xlc*) |
8177 | output_verbose_link_cmd='echo' |
8178 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
8179 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
8180 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
8181 | 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}' |
8182 | 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}' |
8183 | ;; |
8184 | *) |
8185 | ld_shlibs=no |
8186 | ;; |
8187 | esac |
8188 | fi |
8189 | ;; |
8190 | |
8191 | dgux*) |
8192 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8193 | hardcode_libdir_flag_spec='-L$libdir' |
8194 | hardcode_shlibpath_var=no |
8195 | ;; |
8196 | |
8197 | freebsd1*) |
8198 | ld_shlibs=no |
8199 | ;; |
8200 | |
8201 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
8202 | # support. Future versions do this automatically, but an explicit c++rt0.o |
8203 | # does not break anything, and helps significantly (at the cost of a little |
8204 | # extra space). |
8205 | freebsd2.2*) |
8206 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
8207 | hardcode_libdir_flag_spec='-R$libdir' |
8208 | hardcode_direct=yes |
8209 | hardcode_shlibpath_var=no |
8210 | ;; |
8211 | |
8212 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
8213 | freebsd2*) |
8214 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
8215 | hardcode_direct=yes |
8216 | hardcode_minus_L=yes |
8217 | hardcode_shlibpath_var=no |
8218 | ;; |
8219 | |
8220 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
1dce02f2 |
8221 | freebsd* | dragonfly*) |
d9898ee8 |
8222 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
8223 | hardcode_libdir_flag_spec='-R$libdir' |
8224 | hardcode_direct=yes |
8225 | hardcode_shlibpath_var=no |
8226 | ;; |
8227 | |
8228 | hpux9*) |
8229 | if test "$GCC" = yes; then |
8230 | 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' |
8231 | else |
8232 | 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' |
8233 | fi |
8234 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
8235 | hardcode_libdir_separator=: |
8236 | hardcode_direct=yes |
8237 | |
8238 | # hardcode_minus_L: Not really in the search PATH, |
8239 | # but as the default location of the library. |
8240 | hardcode_minus_L=yes |
8241 | export_dynamic_flag_spec='${wl}-E' |
8242 | ;; |
8243 | |
8244 | hpux10*) |
8245 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
8246 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
8247 | else |
8248 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
8249 | fi |
8250 | if test "$with_gnu_ld" = no; then |
8251 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
8252 | hardcode_libdir_separator=: |
8253 | |
8254 | hardcode_direct=yes |
8255 | export_dynamic_flag_spec='${wl}-E' |
8256 | |
8257 | # hardcode_minus_L: Not really in the search PATH, |
8258 | # but as the default location of the library. |
8259 | hardcode_minus_L=yes |
8260 | fi |
8261 | ;; |
8262 | |
8263 | hpux11*) |
8264 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
8265 | case $host_cpu in |
8266 | hppa*64*) |
8267 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8268 | ;; |
8269 | ia64*) |
8270 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
8271 | ;; |
8272 | *) |
8273 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
8274 | ;; |
8275 | esac |
8276 | else |
8277 | case $host_cpu in |
8278 | hppa*64*) |
8279 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8280 | ;; |
8281 | ia64*) |
8282 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
8283 | ;; |
8284 | *) |
8285 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
8286 | ;; |
8287 | esac |
8288 | fi |
8289 | if test "$with_gnu_ld" = no; then |
8290 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
8291 | hardcode_libdir_separator=: |
8292 | |
8293 | case $host_cpu in |
8294 | hppa*64*|ia64*) |
8295 | hardcode_libdir_flag_spec_ld='+b $libdir' |
8296 | hardcode_direct=no |
8297 | hardcode_shlibpath_var=no |
8298 | ;; |
8299 | *) |
8300 | hardcode_direct=yes |
8301 | export_dynamic_flag_spec='${wl}-E' |
8302 | |
8303 | # hardcode_minus_L: Not really in the search PATH, |
8304 | # but as the default location of the library. |
8305 | hardcode_minus_L=yes |
8306 | ;; |
8307 | esac |
8308 | fi |
8309 | ;; |
8310 | |
8311 | irix5* | irix6* | nonstopux*) |
8312 | if test "$GCC" = yes; then |
8313 | 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' |
8314 | else |
8315 | 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' |
8316 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
8317 | fi |
8318 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
8319 | hardcode_libdir_separator=: |
8320 | link_all_deplibs=yes |
8321 | ;; |
8322 | |
1dce02f2 |
8323 | netbsd* | netbsdelf*-gnu) |
d9898ee8 |
8324 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
8325 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
8326 | else |
8327 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
8328 | fi |
8329 | hardcode_libdir_flag_spec='-R$libdir' |
8330 | hardcode_direct=yes |
8331 | hardcode_shlibpath_var=no |
8332 | ;; |
8333 | |
8334 | newsos6) |
8335 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8336 | hardcode_direct=yes |
8337 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
8338 | hardcode_libdir_separator=: |
8339 | hardcode_shlibpath_var=no |
8340 | ;; |
8341 | |
8342 | openbsd*) |
8343 | hardcode_direct=yes |
8344 | hardcode_shlibpath_var=no |
8345 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
8346 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
8347 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
8348 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
8349 | export_dynamic_flag_spec='${wl}-E' |
8350 | else |
8351 | case $host_os in |
8352 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
8353 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
8354 | hardcode_libdir_flag_spec='-R$libdir' |
8355 | ;; |
8356 | *) |
8357 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
8358 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
8359 | ;; |
8360 | esac |
8361 | fi |
8362 | ;; |
8363 | |
8364 | os2*) |
8365 | hardcode_libdir_flag_spec='-L$libdir' |
8366 | hardcode_minus_L=yes |
8367 | allow_undefined_flag=unsupported |
8368 | 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' |
8369 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
8370 | ;; |
8371 | |
8372 | osf3*) |
8373 | if test "$GCC" = yes; then |
8374 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
8375 | 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' |
8376 | else |
8377 | allow_undefined_flag=' -expect_unresolved \*' |
8378 | 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' |
8379 | fi |
8380 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
8381 | hardcode_libdir_separator=: |
8382 | ;; |
8383 | |
8384 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
8385 | if test "$GCC" = yes; then |
8386 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
8387 | 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' |
8388 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
8389 | else |
8390 | allow_undefined_flag=' -expect_unresolved \*' |
8391 | 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' |
8392 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
8393 | $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' |
8394 | |
8395 | # Both c and cxx compiler support -rpath directly |
8396 | hardcode_libdir_flag_spec='-rpath $libdir' |
8397 | fi |
8398 | hardcode_libdir_separator=: |
8399 | ;; |
8400 | |
8401 | solaris*) |
8402 | no_undefined_flag=' -z text' |
8403 | if test "$GCC" = yes; then |
8404 | wlarc='${wl}' |
8405 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8406 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
8407 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
8408 | else |
8409 | wlarc='' |
8410 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8411 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
8412 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
8413 | fi |
8414 | hardcode_libdir_flag_spec='-R$libdir' |
8415 | hardcode_shlibpath_var=no |
8416 | case $host_os in |
8417 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
8418 | *) |
8419 | # The compiler driver will combine linker options so we |
8420 | # cannot just pass the convience library names through |
8421 | # without $wl, iff we do not link with $LD. |
8422 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
8423 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
8424 | case $wlarc in |
8425 | '') |
8426 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
8427 | *) |
8428 | 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' ;; |
8429 | esac ;; |
8430 | esac |
8431 | link_all_deplibs=yes |
8432 | ;; |
8433 | |
8434 | sunos4*) |
8435 | if test "x$host_vendor" = xsequent; then |
8436 | # Use $CC to link under sequent, because it throws in some extra .o |
8437 | # files that make .init and .fini sections work. |
8438 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
8439 | else |
8440 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
8441 | fi |
8442 | hardcode_libdir_flag_spec='-L$libdir' |
8443 | hardcode_direct=yes |
8444 | hardcode_minus_L=yes |
8445 | hardcode_shlibpath_var=no |
8446 | ;; |
8447 | |
8448 | sysv4) |
8449 | case $host_vendor in |
8450 | sni) |
8451 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8452 | hardcode_direct=yes # is this really true??? |
8453 | ;; |
8454 | siemens) |
8455 | ## LD is ld it makes a PLAMLIB |
8456 | ## CC just makes a GrossModule. |
8457 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
8458 | reload_cmds='$CC -r -o $output$reload_objs' |
8459 | hardcode_direct=no |
8460 | ;; |
8461 | motorola) |
8462 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8463 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
8464 | ;; |
8465 | esac |
8466 | runpath_var='LD_RUN_PATH' |
8467 | hardcode_shlibpath_var=no |
8468 | ;; |
8469 | |
8470 | sysv4.3*) |
8471 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8472 | hardcode_shlibpath_var=no |
8473 | export_dynamic_flag_spec='-Bexport' |
8474 | ;; |
8475 | |
8476 | sysv4*MP*) |
8477 | if test -d /usr/nec; then |
8478 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8479 | hardcode_shlibpath_var=no |
8480 | runpath_var=LD_RUN_PATH |
8481 | hardcode_runpath_var=yes |
8482 | ld_shlibs=yes |
8483 | fi |
8484 | ;; |
8485 | |
8486 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
8487 | no_undefined_flag='${wl}-z,text' |
8488 | archive_cmds_need_lc=no |
8489 | hardcode_shlibpath_var=no |
8490 | runpath_var='LD_RUN_PATH' |
8491 | |
8492 | if test "$GCC" = yes; then |
8493 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
8494 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
8495 | else |
8496 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
8497 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
8498 | fi |
8499 | ;; |
8500 | |
8501 | sysv5* | sco3.2v5* | sco5v6*) |
8502 | # Note: We can NOT use -z defs as we might desire, because we do not |
8503 | # link with -lc, and that would cause any symbols used from libc to |
8504 | # always be unresolved, which means just about no library would |
8505 | # ever link correctly. If we're not using GNU ld we use -z text |
8506 | # though, which does catch some bad symbols but isn't as heavy-handed |
8507 | # as -z defs. |
8508 | no_undefined_flag='${wl}-z,text' |
8509 | allow_undefined_flag='${wl}-z,nodefs' |
8510 | archive_cmds_need_lc=no |
8511 | hardcode_shlibpath_var=no |
8512 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
8513 | hardcode_libdir_separator=':' |
8514 | link_all_deplibs=yes |
8515 | export_dynamic_flag_spec='${wl}-Bexport' |
8516 | runpath_var='LD_RUN_PATH' |
8517 | |
8518 | if test "$GCC" = yes; then |
8519 | archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8520 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8521 | else |
8522 | archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8523 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8524 | fi |
8525 | ;; |
8526 | |
8527 | uts4*) |
8528 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8529 | hardcode_libdir_flag_spec='-L$libdir' |
8530 | hardcode_shlibpath_var=no |
8531 | ;; |
8532 | |
8533 | *) |
8534 | ld_shlibs=no |
8535 | ;; |
8536 | esac |
8537 | fi |
8538 | |
dd184caf |
8539 | { echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
8540 | echo "${ECHO_T}$ld_shlibs" >&6; } |
d9898ee8 |
8541 | test "$ld_shlibs" = no && can_build_shared=no |
8542 | |
8543 | # |
8544 | # Do we need to explicitly link libc? |
8545 | # |
8546 | case "x$archive_cmds_need_lc" in |
8547 | x|xyes) |
8548 | # Assume -lc should be added |
8549 | archive_cmds_need_lc=yes |
8550 | |
8551 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
8552 | case $archive_cmds in |
8553 | *'~'*) |
8554 | # FIXME: we may have to deal with multi-command sequences. |
8555 | ;; |
8556 | '$CC '*) |
8557 | # Test whether the compiler implicitly links with -lc since on some |
8558 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
8559 | # to ld, don't add -lc before -lgcc. |
dd184caf |
8560 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
8561 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
d9898ee8 |
8562 | $rm conftest* |
8563 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
8564 | |
8565 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
8566 | (eval $ac_compile) 2>&5 |
8567 | ac_status=$? |
8568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8569 | (exit $ac_status); } 2>conftest.err; then |
8570 | soname=conftest |
8571 | lib=conftest |
8572 | libobjs=conftest.$ac_objext |
8573 | deplibs= |
8574 | wl=$lt_prog_compiler_wl |
8575 | pic_flag=$lt_prog_compiler_pic |
8576 | compiler_flags=-v |
8577 | linker_flags=-v |
8578 | verstring= |
8579 | output_objdir=. |
8580 | libname=conftest |
8581 | lt_save_allow_undefined_flag=$allow_undefined_flag |
8582 | allow_undefined_flag= |
8583 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
8584 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
8585 | ac_status=$? |
8586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8587 | (exit $ac_status); } |
8588 | then |
8589 | archive_cmds_need_lc=no |
8590 | else |
8591 | archive_cmds_need_lc=yes |
8592 | fi |
8593 | allow_undefined_flag=$lt_save_allow_undefined_flag |
8594 | else |
8595 | cat conftest.err 1>&5 |
8596 | fi |
8597 | $rm conftest* |
dd184caf |
8598 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
8599 | echo "${ECHO_T}$archive_cmds_need_lc" >&6; } |
d9898ee8 |
8600 | ;; |
8601 | esac |
8602 | fi |
8603 | ;; |
8604 | esac |
8605 | |
dd184caf |
8606 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
8607 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
d9898ee8 |
8608 | library_names_spec= |
8609 | libname_spec='lib$name' |
8610 | soname_spec= |
8611 | shrext_cmds=".so" |
8612 | postinstall_cmds= |
8613 | postuninstall_cmds= |
8614 | finish_cmds= |
8615 | finish_eval= |
8616 | shlibpath_var= |
8617 | shlibpath_overrides_runpath=unknown |
8618 | version_type=none |
8619 | dynamic_linker="$host_os ld.so" |
8620 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
8621 | if test "$GCC" = yes; then |
8622 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
8623 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
8624 | # if the path contains ";" then we assume it to be the separator |
8625 | # otherwise default to the standard path separator (i.e. ":") - it is |
8626 | # assumed that no part of a normal pathname contains ";" but that should |
8627 | # okay in the real world where ";" in dirpaths is itself problematic. |
8628 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
8629 | else |
8630 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
8631 | fi |
8632 | else |
8633 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
8634 | fi |
8635 | need_lib_prefix=unknown |
8636 | hardcode_into_libs=no |
8637 | |
8638 | # when you set need_version to no, make sure it does not cause -set_version |
8639 | # flags to be left without arguments |
8640 | need_version=unknown |
8641 | |
8642 | case $host_os in |
8643 | aix3*) |
8644 | version_type=linux |
8645 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
8646 | shlibpath_var=LIBPATH |
8647 | |
8648 | # AIX 3 has no versioning support, so we append a major version to the name. |
8649 | soname_spec='${libname}${release}${shared_ext}$major' |
8650 | ;; |
8651 | |
8652 | aix4* | aix5*) |
8653 | version_type=linux |
8654 | need_lib_prefix=no |
8655 | need_version=no |
8656 | hardcode_into_libs=yes |
8657 | if test "$host_cpu" = ia64; then |
8658 | # AIX 5 supports IA64 |
8659 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
8660 | shlibpath_var=LD_LIBRARY_PATH |
8661 | else |
8662 | # With GCC up to 2.95.x, collect2 would create an import file |
8663 | # for dependence libraries. The import file would start with |
8664 | # the line `#! .'. This would cause the generated library to |
8665 | # depend on `.', always an invalid library. This was fixed in |
8666 | # development snapshots of GCC prior to 3.0. |
8667 | case $host_os in |
8668 | aix4 | aix4.[01] | aix4.[01].*) |
8669 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
8670 | echo ' yes ' |
8671 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
8672 | : |
8673 | else |
8674 | can_build_shared=no |
8675 | fi |
8676 | ;; |
8677 | esac |
8678 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
8679 | # soname into executable. Probably we can add versioning support to |
8680 | # collect2, so additional links can be useful in future. |
8681 | if test "$aix_use_runtimelinking" = yes; then |
8682 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
8683 | # instead of lib<name>.a to let people know that these are not |
8684 | # typical AIX shared libraries. |
8685 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8686 | else |
8687 | # We preserve .a as extension for shared libraries through AIX4.2 |
8688 | # and later when we are not doing run time linking. |
8689 | library_names_spec='${libname}${release}.a $libname.a' |
8690 | soname_spec='${libname}${release}${shared_ext}$major' |
8691 | fi |
8692 | shlibpath_var=LIBPATH |
8693 | fi |
8694 | ;; |
8695 | |
8696 | amigaos*) |
8697 | library_names_spec='$libname.ixlibrary $libname.a' |
8698 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
8699 | 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' |
8700 | ;; |
8701 | |
8702 | beos*) |
8703 | library_names_spec='${libname}${shared_ext}' |
8704 | dynamic_linker="$host_os ld.so" |
8705 | shlibpath_var=LIBRARY_PATH |
8706 | ;; |
8707 | |
8708 | bsdi[45]*) |
8709 | version_type=linux |
8710 | need_version=no |
8711 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8712 | soname_spec='${libname}${release}${shared_ext}$major' |
8713 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
8714 | shlibpath_var=LD_LIBRARY_PATH |
8715 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
8716 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
8717 | # the default ld.so.conf also contains /usr/contrib/lib and |
8718 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
8719 | # libtool to hard-code these into programs |
8720 | ;; |
8721 | |
8722 | cygwin* | mingw* | pw32*) |
8723 | version_type=windows |
8724 | shrext_cmds=".dll" |
8725 | need_version=no |
8726 | need_lib_prefix=no |
8727 | |
8728 | case $GCC,$host_os in |
8729 | yes,cygwin* | yes,mingw* | yes,pw32*) |
8730 | library_names_spec='$libname.dll.a' |
8731 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
8732 | postinstall_cmds='base_file=`basename \${file}`~ |
8733 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
8734 | dldir=$destdir/`dirname \$dlpath`~ |
8735 | test -d \$dldir || mkdir -p \$dldir~ |
8736 | $install_prog $dir/$dlname \$dldir/$dlname~ |
8737 | chmod a+x \$dldir/$dlname' |
8738 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
8739 | dlpath=$dir/\$dldll~ |
8740 | $rm \$dlpath' |
8741 | shlibpath_overrides_runpath=yes |
8742 | |
8743 | case $host_os in |
8744 | cygwin*) |
8745 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
8746 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
8747 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
8748 | ;; |
8749 | mingw*) |
8750 | # MinGW DLLs use traditional 'lib' prefix |
8751 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
8752 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
8753 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
8754 | # It is most probably a Windows format PATH printed by |
8755 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
8756 | # path with ; separators, and with drive letters. We can handle the |
8757 | # drive letters (cygwin fileutils understands them), so leave them, |
8758 | # especially as we might pass files found there to a mingw objdump, |
8759 | # which wouldn't understand a cygwinified path. Ahh. |
8760 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
8761 | else |
8762 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
8763 | fi |
8764 | ;; |
8765 | pw32*) |
8766 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
8767 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
8768 | ;; |
8769 | esac |
8770 | ;; |
8771 | |
8772 | *) |
8773 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
8774 | ;; |
8775 | esac |
8776 | dynamic_linker='Win32 ld.exe' |
8777 | # FIXME: first we should search . and the directory the executable is in |
8778 | shlibpath_var=PATH |
8779 | ;; |
8780 | |
8781 | darwin* | rhapsody*) |
8782 | dynamic_linker="$host_os dyld" |
8783 | version_type=darwin |
8784 | need_lib_prefix=no |
8785 | need_version=no |
8786 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
8787 | soname_spec='${libname}${release}${major}$shared_ext' |
8788 | shlibpath_overrides_runpath=yes |
8789 | shlibpath_var=DYLD_LIBRARY_PATH |
8790 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
8791 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
8792 | if test "$GCC" = yes; then |
8793 | 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"` |
8794 | else |
8795 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
8796 | fi |
8797 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
8798 | ;; |
8799 | |
8800 | dgux*) |
8801 | version_type=linux |
8802 | need_lib_prefix=no |
8803 | need_version=no |
8804 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
8805 | soname_spec='${libname}${release}${shared_ext}$major' |
8806 | shlibpath_var=LD_LIBRARY_PATH |
8807 | ;; |
8808 | |
8809 | freebsd1*) |
8810 | dynamic_linker=no |
8811 | ;; |
8812 | |
d9898ee8 |
8813 | freebsd* | dragonfly*) |
8814 | # DragonFly does not have aout. When/if they implement a new |
8815 | # versioning mechanism, adjust this. |
8816 | if test -x /usr/bin/objformat; then |
8817 | objformat=`/usr/bin/objformat` |
8818 | else |
8819 | case $host_os in |
8820 | freebsd[123]*) objformat=aout ;; |
8821 | *) objformat=elf ;; |
8822 | esac |
8823 | fi |
8824 | version_type=freebsd-$objformat |
8825 | case $version_type in |
8826 | freebsd-elf*) |
8827 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
8828 | need_version=no |
8829 | need_lib_prefix=no |
8830 | ;; |
8831 | freebsd-*) |
8832 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
8833 | need_version=yes |
8834 | ;; |
8835 | esac |
8836 | shlibpath_var=LD_LIBRARY_PATH |
8837 | case $host_os in |
8838 | freebsd2*) |
8839 | shlibpath_overrides_runpath=yes |
8840 | ;; |
8841 | freebsd3.[01]* | freebsdelf3.[01]*) |
8842 | shlibpath_overrides_runpath=yes |
8843 | hardcode_into_libs=yes |
8844 | ;; |
8845 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
8846 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
8847 | shlibpath_overrides_runpath=no |
8848 | hardcode_into_libs=yes |
8849 | ;; |
8850 | freebsd*) # from 4.6 on |
8851 | shlibpath_overrides_runpath=yes |
8852 | hardcode_into_libs=yes |
8853 | ;; |
8854 | esac |
8855 | ;; |
8856 | |
8857 | gnu*) |
8858 | version_type=linux |
8859 | need_lib_prefix=no |
8860 | need_version=no |
8861 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
8862 | soname_spec='${libname}${release}${shared_ext}$major' |
8863 | shlibpath_var=LD_LIBRARY_PATH |
8864 | hardcode_into_libs=yes |
8865 | ;; |
8866 | |
8867 | hpux9* | hpux10* | hpux11*) |
8868 | # Give a soname corresponding to the major version so that dld.sl refuses to |
8869 | # link against other versions. |
8870 | version_type=sunos |
8871 | need_lib_prefix=no |
8872 | need_version=no |
8873 | case $host_cpu in |
8874 | ia64*) |
8875 | shrext_cmds='.so' |
8876 | hardcode_into_libs=yes |
8877 | dynamic_linker="$host_os dld.so" |
8878 | shlibpath_var=LD_LIBRARY_PATH |
8879 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
8880 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8881 | soname_spec='${libname}${release}${shared_ext}$major' |
8882 | if test "X$HPUX_IA64_MODE" = X32; then |
8883 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
8884 | else |
8885 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
8886 | fi |
8887 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
8888 | ;; |
8889 | hppa*64*) |
8890 | shrext_cmds='.sl' |
8891 | hardcode_into_libs=yes |
8892 | dynamic_linker="$host_os dld.sl" |
8893 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
8894 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
8895 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8896 | soname_spec='${libname}${release}${shared_ext}$major' |
8897 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
8898 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
8899 | ;; |
8900 | *) |
8901 | shrext_cmds='.sl' |
8902 | dynamic_linker="$host_os dld.sl" |
8903 | shlibpath_var=SHLIB_PATH |
8904 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
8905 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8906 | soname_spec='${libname}${release}${shared_ext}$major' |
8907 | ;; |
8908 | esac |
8909 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
8910 | postinstall_cmds='chmod 555 $lib' |
8911 | ;; |
8912 | |
8913 | interix3*) |
8914 | version_type=linux |
8915 | need_lib_prefix=no |
8916 | need_version=no |
8917 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
8918 | soname_spec='${libname}${release}${shared_ext}$major' |
8919 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
8920 | shlibpath_var=LD_LIBRARY_PATH |
8921 | shlibpath_overrides_runpath=no |
8922 | hardcode_into_libs=yes |
8923 | ;; |
8924 | |
8925 | irix5* | irix6* | nonstopux*) |
8926 | case $host_os in |
8927 | nonstopux*) version_type=nonstopux ;; |
8928 | *) |
8929 | if test "$lt_cv_prog_gnu_ld" = yes; then |
8930 | version_type=linux |
8931 | else |
8932 | version_type=irix |
8933 | fi ;; |
8934 | esac |
8935 | need_lib_prefix=no |
8936 | need_version=no |
8937 | soname_spec='${libname}${release}${shared_ext}$major' |
8938 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
8939 | case $host_os in |
8940 | irix5* | nonstopux*) |
8941 | libsuff= shlibsuff= |
8942 | ;; |
8943 | *) |
8944 | case $LD in # libtool.m4 will add one of these switches to LD |
8945 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
8946 | libsuff= shlibsuff= libmagic=32-bit;; |
8947 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
8948 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
8949 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
8950 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
8951 | *) libsuff= shlibsuff= libmagic=never-match;; |
8952 | esac |
8953 | ;; |
8954 | esac |
8955 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
8956 | shlibpath_overrides_runpath=no |
8957 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
8958 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
8959 | hardcode_into_libs=yes |
8960 | ;; |
8961 | |
8962 | # No shared lib support for Linux oldld, aout, or coff. |
8963 | linux*oldld* | linux*aout* | linux*coff*) |
8964 | dynamic_linker=no |
8965 | ;; |
8966 | |
8967 | # This must be Linux ELF. |
1dce02f2 |
8968 | linux* | k*bsd*-gnu) |
d9898ee8 |
8969 | version_type=linux |
8970 | need_lib_prefix=no |
8971 | need_version=no |
8972 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8973 | soname_spec='${libname}${release}${shared_ext}$major' |
8974 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
8975 | shlibpath_var=LD_LIBRARY_PATH |
8976 | shlibpath_overrides_runpath=no |
8977 | # This implies no fast_install, which is unacceptable. |
8978 | # Some rework will be needed to allow for fast_install |
8979 | # before this can be enabled. |
8980 | hardcode_into_libs=yes |
8981 | |
d9898ee8 |
8982 | # Append ld.so.conf contents to the search path |
8983 | if test -f /etc/ld.so.conf; then |
1dce02f2 |
8984 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
8985 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
d9898ee8 |
8986 | fi |
8987 | |
8988 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
8989 | # powerpc, because MkLinux only supported shared libraries with the |
8990 | # GNU dynamic linker. Since this was broken with cross compilers, |
8991 | # most powerpc-linux boxes support dynamic linking these days and |
8992 | # people can always --disable-shared, the test was removed, and we |
8993 | # assume the GNU/Linux dynamic linker is in use. |
8994 | dynamic_linker='GNU/Linux ld.so' |
8995 | ;; |
8996 | |
1dce02f2 |
8997 | netbsdelf*-gnu) |
d9898ee8 |
8998 | version_type=linux |
8999 | need_lib_prefix=no |
9000 | need_version=no |
9001 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
9002 | soname_spec='${libname}${release}${shared_ext}$major' |
9003 | shlibpath_var=LD_LIBRARY_PATH |
9004 | shlibpath_overrides_runpath=no |
9005 | hardcode_into_libs=yes |
1dce02f2 |
9006 | dynamic_linker='NetBSD ld.elf_so' |
d9898ee8 |
9007 | ;; |
9008 | |
9009 | netbsd*) |
9010 | version_type=sunos |
9011 | need_lib_prefix=no |
9012 | need_version=no |
9013 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
9014 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
9015 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
9016 | dynamic_linker='NetBSD (a.out) ld.so' |
9017 | else |
9018 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
9019 | soname_spec='${libname}${release}${shared_ext}$major' |
9020 | dynamic_linker='NetBSD ld.elf_so' |
9021 | fi |
9022 | shlibpath_var=LD_LIBRARY_PATH |
9023 | shlibpath_overrides_runpath=yes |
9024 | hardcode_into_libs=yes |
9025 | ;; |
9026 | |
9027 | newsos6) |
9028 | version_type=linux |
9029 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9030 | shlibpath_var=LD_LIBRARY_PATH |
9031 | shlibpath_overrides_runpath=yes |
9032 | ;; |
9033 | |
9034 | nto-qnx*) |
9035 | version_type=linux |
9036 | need_lib_prefix=no |
9037 | need_version=no |
9038 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9039 | soname_spec='${libname}${release}${shared_ext}$major' |
9040 | shlibpath_var=LD_LIBRARY_PATH |
9041 | shlibpath_overrides_runpath=yes |
9042 | ;; |
9043 | |
9044 | openbsd*) |
9045 | version_type=sunos |
9046 | sys_lib_dlsearch_path_spec="/usr/lib" |
9047 | need_lib_prefix=no |
9048 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
9049 | case $host_os in |
9050 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
9051 | *) need_version=no ;; |
9052 | esac |
9053 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
9054 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
9055 | shlibpath_var=LD_LIBRARY_PATH |
9056 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
9057 | case $host_os in |
9058 | openbsd2.[89] | openbsd2.[89].*) |
9059 | shlibpath_overrides_runpath=no |
9060 | ;; |
9061 | *) |
9062 | shlibpath_overrides_runpath=yes |
9063 | ;; |
9064 | esac |
9065 | else |
9066 | shlibpath_overrides_runpath=yes |
9067 | fi |
9068 | ;; |
9069 | |
9070 | os2*) |
9071 | libname_spec='$name' |
9072 | shrext_cmds=".dll" |
9073 | need_lib_prefix=no |
9074 | library_names_spec='$libname${shared_ext} $libname.a' |
9075 | dynamic_linker='OS/2 ld.exe' |
9076 | shlibpath_var=LIBPATH |
9077 | ;; |
9078 | |
9079 | osf3* | osf4* | osf5*) |
9080 | version_type=osf |
9081 | need_lib_prefix=no |
9082 | need_version=no |
9083 | soname_spec='${libname}${release}${shared_ext}$major' |
9084 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9085 | shlibpath_var=LD_LIBRARY_PATH |
9086 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
9087 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
9088 | ;; |
9089 | |
9090 | solaris*) |
9091 | version_type=linux |
9092 | need_lib_prefix=no |
9093 | need_version=no |
9094 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9095 | soname_spec='${libname}${release}${shared_ext}$major' |
9096 | shlibpath_var=LD_LIBRARY_PATH |
9097 | shlibpath_overrides_runpath=yes |
9098 | hardcode_into_libs=yes |
9099 | # ldd complains unless libraries are executable |
9100 | postinstall_cmds='chmod +x $lib' |
9101 | ;; |
9102 | |
9103 | sunos4*) |
9104 | version_type=sunos |
9105 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
9106 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
9107 | shlibpath_var=LD_LIBRARY_PATH |
9108 | shlibpath_overrides_runpath=yes |
9109 | if test "$with_gnu_ld" = yes; then |
9110 | need_lib_prefix=no |
9111 | fi |
9112 | need_version=yes |
9113 | ;; |
9114 | |
9115 | sysv4 | sysv4.3*) |
9116 | version_type=linux |
9117 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9118 | soname_spec='${libname}${release}${shared_ext}$major' |
9119 | shlibpath_var=LD_LIBRARY_PATH |
9120 | case $host_vendor in |
9121 | sni) |
9122 | shlibpath_overrides_runpath=no |
9123 | need_lib_prefix=no |
9124 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
9125 | runpath_var=LD_RUN_PATH |
9126 | ;; |
9127 | siemens) |
9128 | need_lib_prefix=no |
9129 | ;; |
9130 | motorola) |
9131 | need_lib_prefix=no |
9132 | need_version=no |
9133 | shlibpath_overrides_runpath=no |
9134 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
9135 | ;; |
9136 | esac |
9137 | ;; |
9138 | |
9139 | sysv4*MP*) |
9140 | if test -d /usr/nec ;then |
9141 | version_type=linux |
9142 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
9143 | soname_spec='$libname${shared_ext}.$major' |
9144 | shlibpath_var=LD_LIBRARY_PATH |
9145 | fi |
9146 | ;; |
9147 | |
9148 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
9149 | version_type=freebsd-elf |
9150 | need_lib_prefix=no |
9151 | need_version=no |
9152 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
9153 | soname_spec='${libname}${release}${shared_ext}$major' |
9154 | shlibpath_var=LD_LIBRARY_PATH |
9155 | hardcode_into_libs=yes |
9156 | if test "$with_gnu_ld" = yes; then |
9157 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
9158 | shlibpath_overrides_runpath=no |
9159 | else |
9160 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
9161 | shlibpath_overrides_runpath=yes |
9162 | case $host_os in |
9163 | sco3.2v5*) |
9164 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
9165 | ;; |
9166 | esac |
9167 | fi |
9168 | sys_lib_dlsearch_path_spec='/usr/lib' |
9169 | ;; |
9170 | |
9171 | uts4*) |
9172 | version_type=linux |
9173 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9174 | soname_spec='${libname}${release}${shared_ext}$major' |
9175 | shlibpath_var=LD_LIBRARY_PATH |
9176 | ;; |
9177 | |
9178 | *) |
9179 | dynamic_linker=no |
9180 | ;; |
9181 | esac |
dd184caf |
9182 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
9183 | echo "${ECHO_T}$dynamic_linker" >&6; } |
d9898ee8 |
9184 | test "$dynamic_linker" = no && can_build_shared=no |
9185 | |
9186 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
9187 | if test "$GCC" = yes; then |
9188 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
9189 | fi |
9190 | |
dd184caf |
9191 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
9192 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
d9898ee8 |
9193 | hardcode_action= |
9194 | if test -n "$hardcode_libdir_flag_spec" || \ |
9195 | test -n "$runpath_var" || \ |
9196 | test "X$hardcode_automatic" = "Xyes" ; then |
9197 | |
9198 | # We can hardcode non-existant directories. |
9199 | if test "$hardcode_direct" != no && |
9200 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
9201 | # have to relink, otherwise we might link with an installed library |
9202 | # when we should be linking with a yet-to-be-installed one |
9203 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
9204 | test "$hardcode_minus_L" != no; then |
9205 | # Linking always hardcodes the temporary library directory. |
9206 | hardcode_action=relink |
9207 | else |
9208 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
9209 | hardcode_action=immediate |
9210 | fi |
9211 | else |
9212 | # We cannot hardcode anything, or else we can only hardcode existing |
9213 | # directories. |
9214 | hardcode_action=unsupported |
9215 | fi |
dd184caf |
9216 | { echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
9217 | echo "${ECHO_T}$hardcode_action" >&6; } |
d9898ee8 |
9218 | |
9219 | if test "$hardcode_action" = relink; then |
9220 | # Fast installation is not supported |
9221 | enable_fast_install=no |
9222 | elif test "$shlibpath_overrides_runpath" = yes || |
9223 | test "$enable_shared" = no; then |
9224 | # Fast installation is not necessary |
9225 | enable_fast_install=needless |
9226 | fi |
9227 | |
9228 | striplib= |
9229 | old_striplib= |
dd184caf |
9230 | { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
9231 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } |
d9898ee8 |
9232 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
9233 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
9234 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
dd184caf |
9235 | { echo "$as_me:$LINENO: result: yes" >&5 |
9236 | echo "${ECHO_T}yes" >&6; } |
d9898ee8 |
9237 | else |
9238 | # FIXME - insert some real tests, host_os isn't really good enough |
9239 | case $host_os in |
9240 | darwin*) |
9241 | if test -n "$STRIP" ; then |
9242 | striplib="$STRIP -x" |
dd184caf |
9243 | { echo "$as_me:$LINENO: result: yes" >&5 |
9244 | echo "${ECHO_T}yes" >&6; } |
d9898ee8 |
9245 | else |
dd184caf |
9246 | { echo "$as_me:$LINENO: result: no" >&5 |
9247 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
9248 | fi |
9249 | ;; |
9250 | *) |
dd184caf |
9251 | { echo "$as_me:$LINENO: result: no" >&5 |
9252 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
9253 | ;; |
9254 | esac |
9255 | fi |
9256 | |
9257 | if test "x$enable_dlopen" != xyes; then |
9258 | enable_dlopen=unknown |
9259 | enable_dlopen_self=unknown |
9260 | enable_dlopen_self_static=unknown |
9261 | else |
9262 | lt_cv_dlopen=no |
9263 | lt_cv_dlopen_libs= |
9264 | |
9265 | case $host_os in |
9266 | beos*) |
9267 | lt_cv_dlopen="load_add_on" |
9268 | lt_cv_dlopen_libs= |
9269 | lt_cv_dlopen_self=yes |
9270 | ;; |
9271 | |
9272 | mingw* | pw32*) |
9273 | lt_cv_dlopen="LoadLibrary" |
9274 | lt_cv_dlopen_libs= |
9275 | ;; |
9276 | |
9277 | cygwin*) |
9278 | lt_cv_dlopen="dlopen" |
9279 | lt_cv_dlopen_libs= |
9280 | ;; |
9281 | |
9282 | darwin*) |
9283 | # if libdl is installed we need to link against it |
dd184caf |
9284 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
9285 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
d9898ee8 |
9286 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
9287 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9288 | else |
9289 | ac_check_lib_save_LIBS=$LIBS |
9290 | LIBS="-ldl $LIBS" |
9291 | cat >conftest.$ac_ext <<_ACEOF |
9292 | /* confdefs.h. */ |
9293 | _ACEOF |
9294 | cat confdefs.h >>conftest.$ac_ext |
9295 | cat >>conftest.$ac_ext <<_ACEOF |
9296 | /* end confdefs.h. */ |
9297 | |
dd184caf |
9298 | /* Override any GCC internal prototype to avoid an error. |
9299 | Use char because int might match the return type of a GCC |
9300 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
9301 | #ifdef __cplusplus |
9302 | extern "C" |
9303 | #endif |
d9898ee8 |
9304 | char dlopen (); |
9305 | int |
9306 | main () |
9307 | { |
dd184caf |
9308 | return dlopen (); |
d9898ee8 |
9309 | ; |
9310 | return 0; |
9311 | } |
9312 | _ACEOF |
9313 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
9314 | if { (ac_try="$ac_link" |
9315 | case "(($ac_try" in |
9316 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9317 | *) ac_try_echo=$ac_try;; |
9318 | esac |
9319 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9320 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
9321 | ac_status=$? |
9322 | grep -v '^ *+' conftest.er1 >conftest.err |
9323 | rm -f conftest.er1 |
9324 | cat conftest.err >&5 |
9325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
9326 | (exit $ac_status); } && { |
9327 | test -z "$ac_c_werror_flag" || |
9328 | test ! -s conftest.err |
9329 | } && test -s conftest$ac_exeext && |
9330 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
9331 | ac_cv_lib_dl_dlopen=yes |
9332 | else |
9333 | echo "$as_me: failed program was:" >&5 |
9334 | sed 's/^/| /' conftest.$ac_ext >&5 |
9335 | |
dd184caf |
9336 | ac_cv_lib_dl_dlopen=no |
d9898ee8 |
9337 | fi |
dd184caf |
9338 | |
9339 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
9340 | conftest$ac_exeext conftest.$ac_ext |
9341 | LIBS=$ac_check_lib_save_LIBS |
9342 | fi |
dd184caf |
9343 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
9344 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
d9898ee8 |
9345 | if test $ac_cv_lib_dl_dlopen = yes; then |
9346 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
9347 | else |
9348 | |
9349 | lt_cv_dlopen="dyld" |
9350 | lt_cv_dlopen_libs= |
9351 | lt_cv_dlopen_self=yes |
9352 | |
9353 | fi |
9354 | |
9355 | ;; |
9356 | |
9357 | *) |
dd184caf |
9358 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
9359 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
d9898ee8 |
9360 | if test "${ac_cv_func_shl_load+set}" = set; then |
9361 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9362 | else |
9363 | cat >conftest.$ac_ext <<_ACEOF |
9364 | /* confdefs.h. */ |
9365 | _ACEOF |
9366 | cat confdefs.h >>conftest.$ac_ext |
9367 | cat >>conftest.$ac_ext <<_ACEOF |
9368 | /* end confdefs.h. */ |
9369 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
9370 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
9371 | #define shl_load innocuous_shl_load |
9372 | |
9373 | /* System header to define __stub macros and hopefully few prototypes, |
9374 | which can conflict with char shl_load (); below. |
9375 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
9376 | <limits.h> exists even on freestanding compilers. */ |
9377 | |
9378 | #ifdef __STDC__ |
9379 | # include <limits.h> |
9380 | #else |
9381 | # include <assert.h> |
9382 | #endif |
9383 | |
9384 | #undef shl_load |
9385 | |
dd184caf |
9386 | /* Override any GCC internal prototype to avoid an error. |
9387 | Use char because int might match the return type of a GCC |
9388 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
9389 | #ifdef __cplusplus |
9390 | extern "C" |
d9898ee8 |
9391 | #endif |
d9898ee8 |
9392 | char shl_load (); |
9393 | /* The GNU C library defines this for functions which it implements |
9394 | to always fail with ENOSYS. Some functions are actually named |
9395 | something starting with __ and the normal name is an alias. */ |
dd184caf |
9396 | #if defined __stub_shl_load || defined __stub___shl_load |
d9898ee8 |
9397 | choke me |
d9898ee8 |
9398 | #endif |
9399 | |
9400 | int |
9401 | main () |
9402 | { |
dd184caf |
9403 | return shl_load (); |
d9898ee8 |
9404 | ; |
9405 | return 0; |
9406 | } |
9407 | _ACEOF |
9408 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
9409 | if { (ac_try="$ac_link" |
9410 | case "(($ac_try" in |
9411 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9412 | *) ac_try_echo=$ac_try;; |
9413 | esac |
9414 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9415 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
9416 | ac_status=$? |
9417 | grep -v '^ *+' conftest.er1 >conftest.err |
9418 | rm -f conftest.er1 |
9419 | cat conftest.err >&5 |
9420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
9421 | (exit $ac_status); } && { |
9422 | test -z "$ac_c_werror_flag" || |
9423 | test ! -s conftest.err |
9424 | } && test -s conftest$ac_exeext && |
9425 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
9426 | ac_cv_func_shl_load=yes |
9427 | else |
9428 | echo "$as_me: failed program was:" >&5 |
9429 | sed 's/^/| /' conftest.$ac_ext >&5 |
9430 | |
dd184caf |
9431 | ac_cv_func_shl_load=no |
d9898ee8 |
9432 | fi |
dd184caf |
9433 | |
9434 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
9435 | conftest$ac_exeext conftest.$ac_ext |
9436 | fi |
dd184caf |
9437 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
9438 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
d9898ee8 |
9439 | if test $ac_cv_func_shl_load = yes; then |
9440 | lt_cv_dlopen="shl_load" |
9441 | else |
dd184caf |
9442 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
9443 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
d9898ee8 |
9444 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
9445 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9446 | else |
9447 | ac_check_lib_save_LIBS=$LIBS |
9448 | LIBS="-ldld $LIBS" |
9449 | cat >conftest.$ac_ext <<_ACEOF |
9450 | /* confdefs.h. */ |
9451 | _ACEOF |
9452 | cat confdefs.h >>conftest.$ac_ext |
9453 | cat >>conftest.$ac_ext <<_ACEOF |
9454 | /* end confdefs.h. */ |
9455 | |
dd184caf |
9456 | /* Override any GCC internal prototype to avoid an error. |
9457 | Use char because int might match the return type of a GCC |
9458 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
9459 | #ifdef __cplusplus |
9460 | extern "C" |
9461 | #endif |
d9898ee8 |
9462 | char shl_load (); |
9463 | int |
9464 | main () |
9465 | { |
dd184caf |
9466 | return shl_load (); |
d9898ee8 |
9467 | ; |
9468 | return 0; |
9469 | } |
9470 | _ACEOF |
9471 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
9472 | if { (ac_try="$ac_link" |
9473 | case "(($ac_try" in |
9474 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9475 | *) ac_try_echo=$ac_try;; |
9476 | esac |
9477 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9478 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
9479 | ac_status=$? |
9480 | grep -v '^ *+' conftest.er1 >conftest.err |
9481 | rm -f conftest.er1 |
9482 | cat conftest.err >&5 |
9483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
9484 | (exit $ac_status); } && { |
9485 | test -z "$ac_c_werror_flag" || |
9486 | test ! -s conftest.err |
9487 | } && test -s conftest$ac_exeext && |
9488 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
9489 | ac_cv_lib_dld_shl_load=yes |
9490 | else |
9491 | echo "$as_me: failed program was:" >&5 |
9492 | sed 's/^/| /' conftest.$ac_ext >&5 |
9493 | |
dd184caf |
9494 | ac_cv_lib_dld_shl_load=no |
d9898ee8 |
9495 | fi |
dd184caf |
9496 | |
9497 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
9498 | conftest$ac_exeext conftest.$ac_ext |
9499 | LIBS=$ac_check_lib_save_LIBS |
9500 | fi |
dd184caf |
9501 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
9502 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
d9898ee8 |
9503 | if test $ac_cv_lib_dld_shl_load = yes; then |
9504 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
9505 | else |
dd184caf |
9506 | { echo "$as_me:$LINENO: checking for dlopen" >&5 |
9507 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } |
d9898ee8 |
9508 | if test "${ac_cv_func_dlopen+set}" = set; then |
9509 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9510 | else |
9511 | cat >conftest.$ac_ext <<_ACEOF |
9512 | /* confdefs.h. */ |
9513 | _ACEOF |
9514 | cat confdefs.h >>conftest.$ac_ext |
9515 | cat >>conftest.$ac_ext <<_ACEOF |
9516 | /* end confdefs.h. */ |
9517 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
9518 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
9519 | #define dlopen innocuous_dlopen |
9520 | |
9521 | /* System header to define __stub macros and hopefully few prototypes, |
9522 | which can conflict with char dlopen (); below. |
9523 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
9524 | <limits.h> exists even on freestanding compilers. */ |
9525 | |
9526 | #ifdef __STDC__ |
9527 | # include <limits.h> |
9528 | #else |
9529 | # include <assert.h> |
9530 | #endif |
9531 | |
9532 | #undef dlopen |
9533 | |
dd184caf |
9534 | /* Override any GCC internal prototype to avoid an error. |
9535 | Use char because int might match the return type of a GCC |
9536 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
9537 | #ifdef __cplusplus |
9538 | extern "C" |
d9898ee8 |
9539 | #endif |
d9898ee8 |
9540 | char dlopen (); |
9541 | /* The GNU C library defines this for functions which it implements |
9542 | to always fail with ENOSYS. Some functions are actually named |
9543 | something starting with __ and the normal name is an alias. */ |
dd184caf |
9544 | #if defined __stub_dlopen || defined __stub___dlopen |
d9898ee8 |
9545 | choke me |
d9898ee8 |
9546 | #endif |
9547 | |
9548 | int |
9549 | main () |
9550 | { |
dd184caf |
9551 | return dlopen (); |
d9898ee8 |
9552 | ; |
9553 | return 0; |
9554 | } |
9555 | _ACEOF |
9556 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
9557 | if { (ac_try="$ac_link" |
9558 | case "(($ac_try" in |
9559 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9560 | *) ac_try_echo=$ac_try;; |
9561 | esac |
9562 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9563 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
9564 | ac_status=$? |
9565 | grep -v '^ *+' conftest.er1 >conftest.err |
9566 | rm -f conftest.er1 |
9567 | cat conftest.err >&5 |
9568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
9569 | (exit $ac_status); } && { |
9570 | test -z "$ac_c_werror_flag" || |
9571 | test ! -s conftest.err |
9572 | } && test -s conftest$ac_exeext && |
9573 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
9574 | ac_cv_func_dlopen=yes |
9575 | else |
9576 | echo "$as_me: failed program was:" >&5 |
9577 | sed 's/^/| /' conftest.$ac_ext >&5 |
9578 | |
dd184caf |
9579 | ac_cv_func_dlopen=no |
d9898ee8 |
9580 | fi |
dd184caf |
9581 | |
9582 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
9583 | conftest$ac_exeext conftest.$ac_ext |
9584 | fi |
dd184caf |
9585 | { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
9586 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } |
d9898ee8 |
9587 | if test $ac_cv_func_dlopen = yes; then |
9588 | lt_cv_dlopen="dlopen" |
9589 | else |
dd184caf |
9590 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
9591 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
d9898ee8 |
9592 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
9593 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9594 | else |
9595 | ac_check_lib_save_LIBS=$LIBS |
9596 | LIBS="-ldl $LIBS" |
9597 | cat >conftest.$ac_ext <<_ACEOF |
9598 | /* confdefs.h. */ |
9599 | _ACEOF |
9600 | cat confdefs.h >>conftest.$ac_ext |
9601 | cat >>conftest.$ac_ext <<_ACEOF |
9602 | /* end confdefs.h. */ |
9603 | |
dd184caf |
9604 | /* Override any GCC internal prototype to avoid an error. |
9605 | Use char because int might match the return type of a GCC |
9606 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
9607 | #ifdef __cplusplus |
9608 | extern "C" |
9609 | #endif |
d9898ee8 |
9610 | char dlopen (); |
9611 | int |
9612 | main () |
9613 | { |
dd184caf |
9614 | return dlopen (); |
d9898ee8 |
9615 | ; |
9616 | return 0; |
9617 | } |
9618 | _ACEOF |
9619 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
9620 | if { (ac_try="$ac_link" |
9621 | case "(($ac_try" in |
9622 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9623 | *) ac_try_echo=$ac_try;; |
9624 | esac |
9625 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9626 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
9627 | ac_status=$? |
9628 | grep -v '^ *+' conftest.er1 >conftest.err |
9629 | rm -f conftest.er1 |
9630 | cat conftest.err >&5 |
9631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
9632 | (exit $ac_status); } && { |
9633 | test -z "$ac_c_werror_flag" || |
9634 | test ! -s conftest.err |
9635 | } && test -s conftest$ac_exeext && |
9636 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
9637 | ac_cv_lib_dl_dlopen=yes |
9638 | else |
9639 | echo "$as_me: failed program was:" >&5 |
9640 | sed 's/^/| /' conftest.$ac_ext >&5 |
9641 | |
dd184caf |
9642 | ac_cv_lib_dl_dlopen=no |
d9898ee8 |
9643 | fi |
dd184caf |
9644 | |
9645 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
9646 | conftest$ac_exeext conftest.$ac_ext |
9647 | LIBS=$ac_check_lib_save_LIBS |
9648 | fi |
dd184caf |
9649 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
9650 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
d9898ee8 |
9651 | if test $ac_cv_lib_dl_dlopen = yes; then |
9652 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
9653 | else |
dd184caf |
9654 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
9655 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
d9898ee8 |
9656 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
9657 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9658 | else |
9659 | ac_check_lib_save_LIBS=$LIBS |
9660 | LIBS="-lsvld $LIBS" |
9661 | cat >conftest.$ac_ext <<_ACEOF |
9662 | /* confdefs.h. */ |
9663 | _ACEOF |
9664 | cat confdefs.h >>conftest.$ac_ext |
9665 | cat >>conftest.$ac_ext <<_ACEOF |
9666 | /* end confdefs.h. */ |
9667 | |
dd184caf |
9668 | /* Override any GCC internal prototype to avoid an error. |
9669 | Use char because int might match the return type of a GCC |
9670 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
9671 | #ifdef __cplusplus |
9672 | extern "C" |
9673 | #endif |
d9898ee8 |
9674 | char dlopen (); |
9675 | int |
9676 | main () |
9677 | { |
dd184caf |
9678 | return dlopen (); |
d9898ee8 |
9679 | ; |
9680 | return 0; |
9681 | } |
9682 | _ACEOF |
9683 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
9684 | if { (ac_try="$ac_link" |
9685 | case "(($ac_try" in |
9686 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9687 | *) ac_try_echo=$ac_try;; |
9688 | esac |
9689 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9690 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
9691 | ac_status=$? |
9692 | grep -v '^ *+' conftest.er1 >conftest.err |
9693 | rm -f conftest.er1 |
9694 | cat conftest.err >&5 |
9695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
9696 | (exit $ac_status); } && { |
9697 | test -z "$ac_c_werror_flag" || |
9698 | test ! -s conftest.err |
9699 | } && test -s conftest$ac_exeext && |
9700 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
9701 | ac_cv_lib_svld_dlopen=yes |
9702 | else |
9703 | echo "$as_me: failed program was:" >&5 |
9704 | sed 's/^/| /' conftest.$ac_ext >&5 |
9705 | |
dd184caf |
9706 | ac_cv_lib_svld_dlopen=no |
d9898ee8 |
9707 | fi |
dd184caf |
9708 | |
9709 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
9710 | conftest$ac_exeext conftest.$ac_ext |
9711 | LIBS=$ac_check_lib_save_LIBS |
9712 | fi |
dd184caf |
9713 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
9714 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
d9898ee8 |
9715 | if test $ac_cv_lib_svld_dlopen = yes; then |
9716 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
9717 | else |
dd184caf |
9718 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
9719 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
d9898ee8 |
9720 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
9721 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9722 | else |
9723 | ac_check_lib_save_LIBS=$LIBS |
9724 | LIBS="-ldld $LIBS" |
9725 | cat >conftest.$ac_ext <<_ACEOF |
9726 | /* confdefs.h. */ |
9727 | _ACEOF |
9728 | cat confdefs.h >>conftest.$ac_ext |
9729 | cat >>conftest.$ac_ext <<_ACEOF |
9730 | /* end confdefs.h. */ |
9731 | |
dd184caf |
9732 | /* Override any GCC internal prototype to avoid an error. |
9733 | Use char because int might match the return type of a GCC |
9734 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
9735 | #ifdef __cplusplus |
9736 | extern "C" |
9737 | #endif |
d9898ee8 |
9738 | char dld_link (); |
9739 | int |
9740 | main () |
9741 | { |
dd184caf |
9742 | return dld_link (); |
d9898ee8 |
9743 | ; |
9744 | return 0; |
9745 | } |
9746 | _ACEOF |
9747 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
9748 | if { (ac_try="$ac_link" |
9749 | case "(($ac_try" in |
9750 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9751 | *) ac_try_echo=$ac_try;; |
9752 | esac |
9753 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9754 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
9755 | ac_status=$? |
9756 | grep -v '^ *+' conftest.er1 >conftest.err |
9757 | rm -f conftest.er1 |
9758 | cat conftest.err >&5 |
9759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
9760 | (exit $ac_status); } && { |
9761 | test -z "$ac_c_werror_flag" || |
9762 | test ! -s conftest.err |
9763 | } && test -s conftest$ac_exeext && |
9764 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
9765 | ac_cv_lib_dld_dld_link=yes |
9766 | else |
9767 | echo "$as_me: failed program was:" >&5 |
9768 | sed 's/^/| /' conftest.$ac_ext >&5 |
9769 | |
dd184caf |
9770 | ac_cv_lib_dld_dld_link=no |
d9898ee8 |
9771 | fi |
dd184caf |
9772 | |
9773 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
9774 | conftest$ac_exeext conftest.$ac_ext |
9775 | LIBS=$ac_check_lib_save_LIBS |
9776 | fi |
dd184caf |
9777 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
9778 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
d9898ee8 |
9779 | if test $ac_cv_lib_dld_dld_link = yes; then |
9780 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
9781 | fi |
9782 | |
9783 | |
9784 | fi |
9785 | |
9786 | |
9787 | fi |
9788 | |
9789 | |
9790 | fi |
9791 | |
9792 | |
9793 | fi |
9794 | |
9795 | |
9796 | fi |
9797 | |
9798 | ;; |
9799 | esac |
9800 | |
9801 | if test "x$lt_cv_dlopen" != xno; then |
9802 | enable_dlopen=yes |
9803 | else |
9804 | enable_dlopen=no |
9805 | fi |
9806 | |
9807 | case $lt_cv_dlopen in |
9808 | dlopen) |
9809 | save_CPPFLAGS="$CPPFLAGS" |
9810 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
9811 | |
9812 | save_LDFLAGS="$LDFLAGS" |
9813 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
9814 | |
9815 | save_LIBS="$LIBS" |
9816 | LIBS="$lt_cv_dlopen_libs $LIBS" |
9817 | |
dd184caf |
9818 | { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
9819 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } |
d9898ee8 |
9820 | if test "${lt_cv_dlopen_self+set}" = set; then |
9821 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9822 | else |
9823 | if test "$cross_compiling" = yes; then : |
9824 | lt_cv_dlopen_self=cross |
9825 | else |
9826 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
9827 | lt_status=$lt_dlunknown |
9828 | cat > conftest.$ac_ext <<EOF |
1dce02f2 |
9829 | #line 9829 "configure" |
d9898ee8 |
9830 | #include "confdefs.h" |
9831 | |
9832 | #if HAVE_DLFCN_H |
9833 | #include <dlfcn.h> |
9834 | #endif |
9835 | |
9836 | #include <stdio.h> |
9837 | |
9838 | #ifdef RTLD_GLOBAL |
9839 | # define LT_DLGLOBAL RTLD_GLOBAL |
9840 | #else |
9841 | # ifdef DL_GLOBAL |
9842 | # define LT_DLGLOBAL DL_GLOBAL |
9843 | # else |
9844 | # define LT_DLGLOBAL 0 |
9845 | # endif |
9846 | #endif |
9847 | |
9848 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
9849 | find out it does not work in some platform. */ |
9850 | #ifndef LT_DLLAZY_OR_NOW |
9851 | # ifdef RTLD_LAZY |
9852 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
9853 | # else |
9854 | # ifdef DL_LAZY |
9855 | # define LT_DLLAZY_OR_NOW DL_LAZY |
9856 | # else |
9857 | # ifdef RTLD_NOW |
9858 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
9859 | # else |
9860 | # ifdef DL_NOW |
9861 | # define LT_DLLAZY_OR_NOW DL_NOW |
9862 | # else |
9863 | # define LT_DLLAZY_OR_NOW 0 |
9864 | # endif |
9865 | # endif |
9866 | # endif |
9867 | # endif |
9868 | #endif |
9869 | |
9870 | #ifdef __cplusplus |
9871 | extern "C" void exit (int); |
9872 | #endif |
9873 | |
9874 | void fnord() { int i=42;} |
9875 | int main () |
9876 | { |
9877 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
9878 | int status = $lt_dlunknown; |
9879 | |
9880 | if (self) |
9881 | { |
9882 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
9883 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
9884 | /* dlclose (self); */ |
9885 | } |
9886 | else |
9887 | puts (dlerror ()); |
9888 | |
9889 | exit (status); |
9890 | } |
9891 | EOF |
9892 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9893 | (eval $ac_link) 2>&5 |
9894 | ac_status=$? |
9895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9896 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
9897 | (./conftest; exit; ) >&5 2>/dev/null |
9898 | lt_status=$? |
9899 | case x$lt_status in |
9900 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
9901 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
9902 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
9903 | esac |
9904 | else : |
9905 | # compilation failed |
9906 | lt_cv_dlopen_self=no |
9907 | fi |
9908 | fi |
9909 | rm -fr conftest* |
9910 | |
9911 | |
9912 | fi |
dd184caf |
9913 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
9914 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } |
d9898ee8 |
9915 | |
9916 | if test "x$lt_cv_dlopen_self" = xyes; then |
9917 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
dd184caf |
9918 | { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
9919 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } |
d9898ee8 |
9920 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
9921 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9922 | else |
9923 | if test "$cross_compiling" = yes; then : |
9924 | lt_cv_dlopen_self_static=cross |
9925 | else |
9926 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
9927 | lt_status=$lt_dlunknown |
9928 | cat > conftest.$ac_ext <<EOF |
1dce02f2 |
9929 | #line 9929 "configure" |
d9898ee8 |
9930 | #include "confdefs.h" |
9931 | |
9932 | #if HAVE_DLFCN_H |
9933 | #include <dlfcn.h> |
9934 | #endif |
9935 | |
9936 | #include <stdio.h> |
9937 | |
9938 | #ifdef RTLD_GLOBAL |
9939 | # define LT_DLGLOBAL RTLD_GLOBAL |
9940 | #else |
9941 | # ifdef DL_GLOBAL |
9942 | # define LT_DLGLOBAL DL_GLOBAL |
9943 | # else |
9944 | # define LT_DLGLOBAL 0 |
9945 | # endif |
9946 | #endif |
9947 | |
9948 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
9949 | find out it does not work in some platform. */ |
9950 | #ifndef LT_DLLAZY_OR_NOW |
9951 | # ifdef RTLD_LAZY |
9952 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
9953 | # else |
9954 | # ifdef DL_LAZY |
9955 | # define LT_DLLAZY_OR_NOW DL_LAZY |
9956 | # else |
9957 | # ifdef RTLD_NOW |
9958 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
9959 | # else |
9960 | # ifdef DL_NOW |
9961 | # define LT_DLLAZY_OR_NOW DL_NOW |
9962 | # else |
9963 | # define LT_DLLAZY_OR_NOW 0 |
9964 | # endif |
9965 | # endif |
9966 | # endif |
9967 | # endif |
9968 | #endif |
9969 | |
9970 | #ifdef __cplusplus |
9971 | extern "C" void exit (int); |
9972 | #endif |
9973 | |
9974 | void fnord() { int i=42;} |
9975 | int main () |
9976 | { |
9977 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
9978 | int status = $lt_dlunknown; |
9979 | |
9980 | if (self) |
9981 | { |
9982 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
9983 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
9984 | /* dlclose (self); */ |
9985 | } |
9986 | else |
9987 | puts (dlerror ()); |
9988 | |
9989 | exit (status); |
9990 | } |
9991 | EOF |
9992 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9993 | (eval $ac_link) 2>&5 |
9994 | ac_status=$? |
9995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9996 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
9997 | (./conftest; exit; ) >&5 2>/dev/null |
9998 | lt_status=$? |
9999 | case x$lt_status in |
10000 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
10001 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
10002 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
10003 | esac |
10004 | else : |
10005 | # compilation failed |
10006 | lt_cv_dlopen_self_static=no |
10007 | fi |
10008 | fi |
10009 | rm -fr conftest* |
10010 | |
10011 | |
10012 | fi |
dd184caf |
10013 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
10014 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } |
d9898ee8 |
10015 | fi |
10016 | |
10017 | CPPFLAGS="$save_CPPFLAGS" |
10018 | LDFLAGS="$save_LDFLAGS" |
10019 | LIBS="$save_LIBS" |
10020 | ;; |
10021 | esac |
10022 | |
10023 | case $lt_cv_dlopen_self in |
10024 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
10025 | *) enable_dlopen_self=unknown ;; |
10026 | esac |
10027 | |
10028 | case $lt_cv_dlopen_self_static in |
10029 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
10030 | *) enable_dlopen_self_static=unknown ;; |
10031 | esac |
10032 | fi |
10033 | |
10034 | |
10035 | # Report which library types will actually be built |
dd184caf |
10036 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
10037 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
10038 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
10039 | echo "${ECHO_T}$can_build_shared" >&6; } |
d9898ee8 |
10040 | |
dd184caf |
10041 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
10042 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
d9898ee8 |
10043 | test "$can_build_shared" = "no" && enable_shared=no |
10044 | |
10045 | # On AIX, shared libraries and static libraries use the same namespace, and |
10046 | # are all built from PIC. |
10047 | case $host_os in |
10048 | aix3*) |
10049 | test "$enable_shared" = yes && enable_static=no |
10050 | if test -n "$RANLIB"; then |
10051 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
10052 | postinstall_cmds='$RANLIB $lib' |
10053 | fi |
10054 | ;; |
10055 | |
10056 | aix4* | aix5*) |
10057 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
10058 | test "$enable_shared" = yes && enable_static=no |
10059 | fi |
10060 | ;; |
10061 | esac |
dd184caf |
10062 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
10063 | echo "${ECHO_T}$enable_shared" >&6; } |
d9898ee8 |
10064 | |
dd184caf |
10065 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
10066 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
d9898ee8 |
10067 | # Make sure either enable_shared or enable_static is yes. |
10068 | test "$enable_shared" = yes || enable_static=yes |
dd184caf |
10069 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
10070 | echo "${ECHO_T}$enable_static" >&6; } |
d9898ee8 |
10071 | |
10072 | # The else clause should only fire when bootstrapping the |
10073 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
10074 | # with your package, and you will get complaints that there are |
10075 | # no rules to generate ltmain.sh. |
10076 | if test -f "$ltmain"; then |
10077 | # See if we are running on zsh, and set the options which allow our commands through |
10078 | # without removal of \ escapes. |
10079 | if test -n "${ZSH_VERSION+set}" ; then |
10080 | setopt NO_GLOB_SUBST |
10081 | fi |
10082 | # Now quote all the things that may contain metacharacters while being |
10083 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
10084 | # variables and quote the copies for generation of the libtool script. |
10085 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
10086 | SED SHELL STRIP \ |
10087 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
10088 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
10089 | deplibs_check_method reload_flag reload_cmds need_locks \ |
10090 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
10091 | lt_cv_sys_global_symbol_to_c_name_address \ |
10092 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
10093 | old_postinstall_cmds old_postuninstall_cmds \ |
10094 | compiler \ |
10095 | CC \ |
10096 | LD \ |
10097 | lt_prog_compiler_wl \ |
10098 | lt_prog_compiler_pic \ |
10099 | lt_prog_compiler_static \ |
10100 | lt_prog_compiler_no_builtin_flag \ |
10101 | export_dynamic_flag_spec \ |
10102 | thread_safe_flag_spec \ |
10103 | whole_archive_flag_spec \ |
10104 | enable_shared_with_static_runtimes \ |
10105 | old_archive_cmds \ |
10106 | old_archive_from_new_cmds \ |
10107 | predep_objects \ |
10108 | postdep_objects \ |
10109 | predeps \ |
10110 | postdeps \ |
10111 | compiler_lib_search_path \ |
10112 | archive_cmds \ |
10113 | archive_expsym_cmds \ |
10114 | postinstall_cmds \ |
10115 | postuninstall_cmds \ |
10116 | old_archive_from_expsyms_cmds \ |
10117 | allow_undefined_flag \ |
10118 | no_undefined_flag \ |
10119 | export_symbols_cmds \ |
10120 | hardcode_libdir_flag_spec \ |
10121 | hardcode_libdir_flag_spec_ld \ |
10122 | hardcode_libdir_separator \ |
10123 | hardcode_automatic \ |
10124 | module_cmds \ |
10125 | module_expsym_cmds \ |
10126 | lt_cv_prog_compiler_c_o \ |
10127 | exclude_expsyms \ |
10128 | include_expsyms; do |
10129 | |
10130 | case $var in |
10131 | old_archive_cmds | \ |
10132 | old_archive_from_new_cmds | \ |
10133 | archive_cmds | \ |
10134 | archive_expsym_cmds | \ |
10135 | module_cmds | \ |
10136 | module_expsym_cmds | \ |
10137 | old_archive_from_expsyms_cmds | \ |
10138 | export_symbols_cmds | \ |
10139 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
10140 | postinstall_cmds | postuninstall_cmds | \ |
10141 | old_postinstall_cmds | old_postuninstall_cmds | \ |
10142 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
10143 | # Double-quote double-evaled strings. |
10144 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
10145 | ;; |
10146 | *) |
10147 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
10148 | ;; |
10149 | esac |
10150 | done |
10151 | |
10152 | case $lt_echo in |
10153 | *'\$0 --fallback-echo"') |
10154 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
10155 | ;; |
10156 | esac |
10157 | |
10158 | cfgfile="${ofile}T" |
10159 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
10160 | $rm -f "$cfgfile" |
10161 | { echo "$as_me:$LINENO: creating $ofile" >&5 |
10162 | echo "$as_me: creating $ofile" >&6;} |
10163 | |
10164 | cat <<__EOF__ >> "$cfgfile" |
10165 | #! $SHELL |
10166 | |
10167 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
10168 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
10169 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
10170 | # |
10171 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 |
10172 | # Free Software Foundation, Inc. |
10173 | # |
10174 | # This file is part of GNU Libtool: |
10175 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
10176 | # |
10177 | # This program is free software; you can redistribute it and/or modify |
10178 | # it under the terms of the GNU General Public License as published by |
10179 | # the Free Software Foundation; either version 2 of the License, or |
10180 | # (at your option) any later version. |
10181 | # |
10182 | # This program is distributed in the hope that it will be useful, but |
10183 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
10184 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
10185 | # General Public License for more details. |
10186 | # |
10187 | # You should have received a copy of the GNU General Public License |
10188 | # along with this program; if not, write to the Free Software |
10189 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
10190 | # |
10191 | # As a special exception to the GNU General Public License, if you |
10192 | # distribute this file as part of a program that contains a |
10193 | # configuration script generated by Autoconf, you may include it under |
10194 | # the same distribution terms that you use for the rest of that program. |
10195 | |
10196 | # A sed program that does not truncate output. |
10197 | SED=$lt_SED |
10198 | |
10199 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
10200 | Xsed="$SED -e 1s/^X//" |
10201 | |
10202 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
10203 | # if CDPATH is set. |
10204 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
10205 | |
10206 | # The names of the tagged configurations supported by this script. |
10207 | available_tags= |
10208 | |
10209 | # ### BEGIN LIBTOOL CONFIG |
10210 | |
10211 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
10212 | |
10213 | # Shell to use when invoking shell scripts. |
10214 | SHELL=$lt_SHELL |
10215 | |
10216 | # Whether or not to build shared libraries. |
10217 | build_libtool_libs=$enable_shared |
10218 | |
10219 | # Whether or not to build static libraries. |
10220 | build_old_libs=$enable_static |
10221 | |
10222 | # Whether or not to add -lc for building shared libraries. |
10223 | build_libtool_need_lc=$archive_cmds_need_lc |
10224 | |
10225 | # Whether or not to disallow shared libs when runtime libs are static |
10226 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
10227 | |
10228 | # Whether or not to optimize for fast installation. |
10229 | fast_install=$enable_fast_install |
10230 | |
10231 | # The host system. |
10232 | host_alias=$host_alias |
10233 | host=$host |
10234 | host_os=$host_os |
10235 | |
10236 | # The build system. |
10237 | build_alias=$build_alias |
10238 | build=$build |
10239 | build_os=$build_os |
10240 | |
10241 | # An echo program that does not interpret backslashes. |
10242 | echo=$lt_echo |
10243 | |
10244 | # The archiver. |
10245 | AR=$lt_AR |
10246 | AR_FLAGS=$lt_AR_FLAGS |
10247 | |
10248 | # A C compiler. |
10249 | LTCC=$lt_LTCC |
10250 | |
10251 | # LTCC compiler flags. |
10252 | LTCFLAGS=$lt_LTCFLAGS |
10253 | |
10254 | # A language-specific compiler. |
10255 | CC=$lt_compiler |
10256 | |
10257 | # Is the compiler the GNU C compiler? |
10258 | with_gcc=$GCC |
10259 | |
d9898ee8 |
10260 | # An ERE matcher. |
10261 | EGREP=$lt_EGREP |
10262 | |
10263 | # The linker used to build libraries. |
10264 | LD=$lt_LD |
10265 | |
10266 | # Whether we need hard or soft links. |
10267 | LN_S=$lt_LN_S |
10268 | |
10269 | # A BSD-compatible nm program. |
10270 | NM=$lt_NM |
10271 | |
10272 | # A symbol stripping program |
10273 | STRIP=$lt_STRIP |
10274 | |
10275 | # Used to examine libraries when file_magic_cmd begins "file" |
10276 | MAGIC_CMD=$MAGIC_CMD |
10277 | |
10278 | # Used on cygwin: DLL creation program. |
10279 | DLLTOOL="$DLLTOOL" |
10280 | |
10281 | # Used on cygwin: object dumper. |
10282 | OBJDUMP="$OBJDUMP" |
10283 | |
10284 | # Used on cygwin: assembler. |
10285 | AS="$AS" |
10286 | |
10287 | # The name of the directory that contains temporary libtool files. |
10288 | objdir=$objdir |
10289 | |
10290 | # How to create reloadable object files. |
10291 | reload_flag=$lt_reload_flag |
10292 | reload_cmds=$lt_reload_cmds |
10293 | |
10294 | # How to pass a linker flag through the compiler. |
10295 | wl=$lt_lt_prog_compiler_wl |
10296 | |
10297 | # Object file suffix (normally "o"). |
10298 | objext="$ac_objext" |
10299 | |
10300 | # Old archive suffix (normally "a"). |
10301 | libext="$libext" |
10302 | |
10303 | # Shared library suffix (normally ".so"). |
10304 | shrext_cmds='$shrext_cmds' |
10305 | |
10306 | # Executable file suffix (normally ""). |
10307 | exeext="$exeext" |
10308 | |
10309 | # Additional compiler flags for building library objects. |
10310 | pic_flag=$lt_lt_prog_compiler_pic |
10311 | pic_mode=$pic_mode |
10312 | |
10313 | # What is the maximum length of a command? |
10314 | max_cmd_len=$lt_cv_sys_max_cmd_len |
10315 | |
10316 | # Does compiler simultaneously support -c and -o options? |
10317 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
10318 | |
10319 | # Must we lock files when doing compilation? |
10320 | need_locks=$lt_need_locks |
10321 | |
10322 | # Do we need the lib prefix for modules? |
10323 | need_lib_prefix=$need_lib_prefix |
10324 | |
10325 | # Do we need a version for libraries? |
10326 | need_version=$need_version |
10327 | |
10328 | # Whether dlopen is supported. |
10329 | dlopen_support=$enable_dlopen |
10330 | |
10331 | # Whether dlopen of programs is supported. |
10332 | dlopen_self=$enable_dlopen_self |
10333 | |
10334 | # Whether dlopen of statically linked programs is supported. |
10335 | dlopen_self_static=$enable_dlopen_self_static |
10336 | |
10337 | # Compiler flag to prevent dynamic linking. |
10338 | link_static_flag=$lt_lt_prog_compiler_static |
10339 | |
10340 | # Compiler flag to turn off builtin functions. |
10341 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
10342 | |
10343 | # Compiler flag to allow reflexive dlopens. |
10344 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
10345 | |
10346 | # Compiler flag to generate shared objects directly from archives. |
10347 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
10348 | |
10349 | # Compiler flag to generate thread-safe objects. |
10350 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
10351 | |
10352 | # Library versioning type. |
10353 | version_type=$version_type |
10354 | |
10355 | # Format of library name prefix. |
10356 | libname_spec=$lt_libname_spec |
10357 | |
10358 | # List of archive names. First name is the real one, the rest are links. |
10359 | # The last name is the one that the linker finds with -lNAME. |
10360 | library_names_spec=$lt_library_names_spec |
10361 | |
10362 | # The coded name of the library, if different from the real name. |
10363 | soname_spec=$lt_soname_spec |
10364 | |
10365 | # Commands used to build and install an old-style archive. |
10366 | RANLIB=$lt_RANLIB |
10367 | old_archive_cmds=$lt_old_archive_cmds |
10368 | old_postinstall_cmds=$lt_old_postinstall_cmds |
10369 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
10370 | |
10371 | # Create an old-style archive from a shared archive. |
10372 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
10373 | |
10374 | # Create a temporary old-style archive to link instead of a shared archive. |
10375 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
10376 | |
10377 | # Commands used to build and install a shared archive. |
10378 | archive_cmds=$lt_archive_cmds |
10379 | archive_expsym_cmds=$lt_archive_expsym_cmds |
10380 | postinstall_cmds=$lt_postinstall_cmds |
10381 | postuninstall_cmds=$lt_postuninstall_cmds |
10382 | |
10383 | # Commands used to build a loadable module (assumed same as above if empty) |
10384 | module_cmds=$lt_module_cmds |
10385 | module_expsym_cmds=$lt_module_expsym_cmds |
10386 | |
10387 | # Commands to strip libraries. |
10388 | old_striplib=$lt_old_striplib |
10389 | striplib=$lt_striplib |
10390 | |
10391 | # Dependencies to place before the objects being linked to create a |
10392 | # shared library. |
dd184caf |
10393 | predep_objects=$lt_predep_objects |
d9898ee8 |
10394 | |
10395 | # Dependencies to place after the objects being linked to create a |
10396 | # shared library. |
dd184caf |
10397 | postdep_objects=$lt_postdep_objects |
d9898ee8 |
10398 | |
10399 | # Dependencies to place before the objects being linked to create a |
10400 | # shared library. |
10401 | predeps=$lt_predeps |
10402 | |
10403 | # Dependencies to place after the objects being linked to create a |
10404 | # shared library. |
10405 | postdeps=$lt_postdeps |
10406 | |
10407 | # The library search path used internally by the compiler when linking |
10408 | # a shared library. |
dd184caf |
10409 | compiler_lib_search_path=$lt_compiler_lib_search_path |
d9898ee8 |
10410 | |
10411 | # Method to check whether dependent libraries are shared objects. |
10412 | deplibs_check_method=$lt_deplibs_check_method |
10413 | |
10414 | # Command to use when deplibs_check_method == file_magic. |
10415 | file_magic_cmd=$lt_file_magic_cmd |
10416 | |
10417 | # Flag that allows shared libraries with undefined symbols to be built. |
10418 | allow_undefined_flag=$lt_allow_undefined_flag |
10419 | |
10420 | # Flag that forces no undefined symbols. |
10421 | no_undefined_flag=$lt_no_undefined_flag |
10422 | |
10423 | # Commands used to finish a libtool library installation in a directory. |
10424 | finish_cmds=$lt_finish_cmds |
10425 | |
10426 | # Same as above, but a single script fragment to be evaled but not shown. |
10427 | finish_eval=$lt_finish_eval |
10428 | |
10429 | # Take the output of nm and produce a listing of raw symbols and C names. |
10430 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
10431 | |
10432 | # Transform the output of nm in a proper C declaration |
10433 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
10434 | |
10435 | # Transform the output of nm in a C name address pair |
10436 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
10437 | |
10438 | # This is the shared library runtime path variable. |
10439 | runpath_var=$runpath_var |
10440 | |
10441 | # This is the shared library path variable. |
10442 | shlibpath_var=$shlibpath_var |
10443 | |
10444 | # Is shlibpath searched before the hard-coded library search path? |
10445 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
10446 | |
10447 | # How to hardcode a shared library path into an executable. |
10448 | hardcode_action=$hardcode_action |
10449 | |
10450 | # Whether we should hardcode library paths into libraries. |
10451 | hardcode_into_libs=$hardcode_into_libs |
10452 | |
10453 | # Flag to hardcode \$libdir into a binary during linking. |
10454 | # This must work even if \$libdir does not exist. |
10455 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
10456 | |
10457 | # If ld is used when linking, flag to hardcode \$libdir into |
10458 | # a binary during linking. This must work even if \$libdir does |
10459 | # not exist. |
10460 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
10461 | |
10462 | # Whether we need a single -rpath flag with a separated argument. |
10463 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
10464 | |
10465 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
10466 | # resulting binary. |
10467 | hardcode_direct=$hardcode_direct |
10468 | |
10469 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
10470 | # resulting binary. |
10471 | hardcode_minus_L=$hardcode_minus_L |
10472 | |
10473 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
10474 | # the resulting binary. |
10475 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
10476 | |
10477 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
10478 | # and all subsequent libraries and executables linked against it. |
10479 | hardcode_automatic=$hardcode_automatic |
10480 | |
10481 | # Variables whose values should be saved in libtool wrapper scripts and |
10482 | # restored at relink time. |
10483 | variables_saved_for_relink="$variables_saved_for_relink" |
10484 | |
10485 | # Whether libtool must link a program against all its dependency libraries. |
10486 | link_all_deplibs=$link_all_deplibs |
10487 | |
10488 | # Compile-time system search path for libraries |
dd184caf |
10489 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
d9898ee8 |
10490 | |
10491 | # Run-time system search path for libraries |
10492 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
10493 | |
10494 | # Fix the shell variable \$srcfile for the compiler. |
10495 | fix_srcfile_path="$fix_srcfile_path" |
10496 | |
10497 | # Set to yes if exported symbols are required. |
10498 | always_export_symbols=$always_export_symbols |
10499 | |
10500 | # The commands to list exported symbols. |
10501 | export_symbols_cmds=$lt_export_symbols_cmds |
10502 | |
10503 | # The commands to extract the exported symbol list from a shared archive. |
10504 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
10505 | |
10506 | # Symbols that should not be listed in the preloaded symbols. |
10507 | exclude_expsyms=$lt_exclude_expsyms |
10508 | |
10509 | # Symbols that must always be exported. |
10510 | include_expsyms=$lt_include_expsyms |
10511 | |
10512 | # ### END LIBTOOL CONFIG |
10513 | |
10514 | __EOF__ |
10515 | |
10516 | |
10517 | case $host_os in |
10518 | aix3*) |
10519 | cat <<\EOF >> "$cfgfile" |
10520 | |
10521 | # AIX sometimes has problems with the GCC collect2 program. For some |
10522 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
10523 | # vanish in a puff of smoke. |
10524 | if test "X${COLLECT_NAMES+set}" != Xset; then |
10525 | COLLECT_NAMES= |
10526 | export COLLECT_NAMES |
10527 | fi |
10528 | EOF |
10529 | ;; |
10530 | esac |
10531 | |
10532 | # We use sed instead of cat because bash on DJGPP gets confused if |
10533 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
10534 | # text mode, it properly converts lines to CR/LF. This bash problem |
10535 | # is reportedly fixed, but why not run on old versions too? |
10536 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
10537 | |
10538 | mv -f "$cfgfile" "$ofile" || \ |
10539 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
10540 | chmod +x "$ofile" |
10541 | |
10542 | else |
10543 | # If there is no Makefile yet, we rely on a make rule to execute |
10544 | # `config.status --recheck' to rerun these tests and create the |
10545 | # libtool script then. |
10546 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
10547 | if test -f "$ltmain_in"; then |
10548 | test -f Makefile && make "$ltmain" |
10549 | fi |
10550 | fi |
10551 | |
10552 | |
10553 | ac_ext=c |
10554 | ac_cpp='$CPP $CPPFLAGS' |
10555 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
10556 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
10557 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
10558 | |
10559 | CC="$lt_save_CC" |
10560 | |
10561 | |
dd184caf |
10562 | # Check whether --with-tags was given. |
d9898ee8 |
10563 | if test "${with_tags+set}" = set; then |
dd184caf |
10564 | withval=$with_tags; tagnames="$withval" |
10565 | fi |
10566 | |
d9898ee8 |
10567 | |
10568 | if test -f "$ltmain" && test -n "$tagnames"; then |
10569 | if test ! -f "${ofile}"; then |
10570 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 |
10571 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} |
10572 | fi |
10573 | |
10574 | if test -z "$LTCC"; then |
10575 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
10576 | if test -z "$LTCC"; then |
10577 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 |
10578 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} |
10579 | else |
10580 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
10581 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
10582 | fi |
10583 | fi |
10584 | if test -z "$LTCFLAGS"; then |
10585 | eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" |
10586 | fi |
10587 | |
10588 | # Extract list of available tagged configurations in $ofile. |
10589 | # Note that this assumes the entire list is on one line. |
10590 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
10591 | |
10592 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
10593 | for tagname in $tagnames; do |
10594 | IFS="$lt_save_ifs" |
10595 | # Check whether tagname contains only valid characters |
10596 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in |
10597 | "") ;; |
10598 | *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 |
10599 | echo "$as_me: error: invalid tag name: $tagname" >&2;} |
10600 | { (exit 1); exit 1; }; } |
10601 | ;; |
10602 | esac |
10603 | |
10604 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
10605 | then |
10606 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 |
10607 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} |
10608 | { (exit 1); exit 1; }; } |
10609 | fi |
10610 | |
10611 | # Update the list of available tags. |
10612 | if test -n "$tagname"; then |
10613 | echo appending configuration tag \"$tagname\" to $ofile |
10614 | |
10615 | case $tagname in |
10616 | CXX) |
10617 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
10618 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
10619 | (test "X$CXX" != "Xg++"))) ; then |
dd184caf |
10620 | ac_ext=cpp |
d9898ee8 |
10621 | ac_cpp='$CXXCPP $CPPFLAGS' |
10622 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
10623 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
10624 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
10625 | |
10626 | |
10627 | |
10628 | |
10629 | archive_cmds_need_lc_CXX=no |
10630 | allow_undefined_flag_CXX= |
10631 | always_export_symbols_CXX=no |
10632 | archive_expsym_cmds_CXX= |
10633 | export_dynamic_flag_spec_CXX= |
10634 | hardcode_direct_CXX=no |
10635 | hardcode_libdir_flag_spec_CXX= |
10636 | hardcode_libdir_flag_spec_ld_CXX= |
10637 | hardcode_libdir_separator_CXX= |
10638 | hardcode_minus_L_CXX=no |
10639 | hardcode_shlibpath_var_CXX=unsupported |
10640 | hardcode_automatic_CXX=no |
10641 | module_cmds_CXX= |
10642 | module_expsym_cmds_CXX= |
10643 | link_all_deplibs_CXX=unknown |
10644 | old_archive_cmds_CXX=$old_archive_cmds |
10645 | no_undefined_flag_CXX= |
10646 | whole_archive_flag_spec_CXX= |
10647 | enable_shared_with_static_runtimes_CXX=no |
10648 | |
10649 | # Dependencies to place before and after the object being linked: |
10650 | predep_objects_CXX= |
10651 | postdep_objects_CXX= |
10652 | predeps_CXX= |
10653 | postdeps_CXX= |
10654 | compiler_lib_search_path_CXX= |
10655 | |
10656 | # Source file extension for C++ test sources. |
10657 | ac_ext=cpp |
10658 | |
10659 | # Object file extension for compiled C++ test sources. |
10660 | objext=o |
10661 | objext_CXX=$objext |
10662 | |
10663 | # Code to be used in simple compile tests |
10664 | lt_simple_compile_test_code="int some_variable = 0;\n" |
10665 | |
10666 | # Code to be used in simple link tests |
10667 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' |
10668 | |
10669 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
10670 | |
10671 | # If no C compiler was specified, use CC. |
10672 | LTCC=${LTCC-"$CC"} |
10673 | |
10674 | # If no C compiler flags were specified, use CFLAGS. |
10675 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
10676 | |
10677 | # Allow CC to be a program name with arguments. |
10678 | compiler=$CC |
10679 | |
10680 | |
10681 | # save warnings/boilerplate of simple test code |
10682 | ac_outfile=conftest.$ac_objext |
10683 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
10684 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
10685 | _lt_compiler_boilerplate=`cat conftest.err` |
10686 | $rm conftest* |
10687 | |
10688 | ac_outfile=conftest.$ac_objext |
10689 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
10690 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
10691 | _lt_linker_boilerplate=`cat conftest.err` |
10692 | $rm conftest* |
10693 | |
10694 | |
10695 | # Allow CC to be a program name with arguments. |
10696 | lt_save_CC=$CC |
10697 | lt_save_LD=$LD |
10698 | lt_save_GCC=$GCC |
10699 | GCC=$GXX |
10700 | lt_save_with_gnu_ld=$with_gnu_ld |
10701 | lt_save_path_LD=$lt_cv_path_LD |
10702 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
10703 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
10704 | else |
10705 | $as_unset lt_cv_prog_gnu_ld |
10706 | fi |
10707 | if test -n "${lt_cv_path_LDCXX+set}"; then |
10708 | lt_cv_path_LD=$lt_cv_path_LDCXX |
10709 | else |
10710 | $as_unset lt_cv_path_LD |
10711 | fi |
10712 | test -z "${LDCXX+set}" || LD=$LDCXX |
10713 | CC=${CXX-"c++"} |
10714 | compiler=$CC |
10715 | compiler_CXX=$CC |
10716 | for cc_temp in $compiler""; do |
10717 | case $cc_temp in |
10718 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
10719 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
10720 | \-*) ;; |
10721 | *) break;; |
10722 | esac |
10723 | done |
10724 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
10725 | |
10726 | |
10727 | # We don't want -fno-exception wen compiling C++ code, so set the |
10728 | # no_builtin_flag separately |
10729 | if test "$GXX" = yes; then |
10730 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
10731 | else |
10732 | lt_prog_compiler_no_builtin_flag_CXX= |
10733 | fi |
10734 | |
10735 | if test "$GXX" = yes; then |
10736 | # Set up default GNU C++ configuration |
10737 | |
10738 | |
dd184caf |
10739 | # Check whether --with-gnu-ld was given. |
d9898ee8 |
10740 | if test "${with_gnu_ld+set}" = set; then |
dd184caf |
10741 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
d9898ee8 |
10742 | else |
10743 | with_gnu_ld=no |
dd184caf |
10744 | fi |
10745 | |
d9898ee8 |
10746 | ac_prog=ld |
10747 | if test "$GCC" = yes; then |
10748 | # Check if gcc -print-prog-name=ld gives a path. |
dd184caf |
10749 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
10750 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
d9898ee8 |
10751 | case $host in |
10752 | *-*-mingw*) |
10753 | # gcc leaves a trailing carriage return which upsets mingw |
10754 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
10755 | *) |
10756 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
10757 | esac |
10758 | case $ac_prog in |
10759 | # Accept absolute paths. |
10760 | [\\/]* | ?:[\\/]*) |
10761 | re_direlt='/[^/][^/]*/\.\./' |
10762 | # Canonicalize the pathname of ld |
10763 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
10764 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
10765 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
10766 | done |
10767 | test -z "$LD" && LD="$ac_prog" |
10768 | ;; |
10769 | "") |
10770 | # If it fails, then pretend we aren't using GCC. |
10771 | ac_prog=ld |
10772 | ;; |
10773 | *) |
10774 | # If it is relative, then search for the first ld in PATH. |
10775 | with_gnu_ld=unknown |
10776 | ;; |
10777 | esac |
10778 | elif test "$with_gnu_ld" = yes; then |
dd184caf |
10779 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
10780 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
d9898ee8 |
10781 | else |
dd184caf |
10782 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
10783 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
d9898ee8 |
10784 | fi |
10785 | if test "${lt_cv_path_LD+set}" = set; then |
10786 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10787 | else |
10788 | if test -z "$LD"; then |
10789 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
10790 | for ac_dir in $PATH; do |
10791 | IFS="$lt_save_ifs" |
10792 | test -z "$ac_dir" && ac_dir=. |
10793 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
10794 | lt_cv_path_LD="$ac_dir/$ac_prog" |
10795 | # Check to see if the program is GNU ld. I'd rather use --version, |
10796 | # but apparently some variants of GNU ld only accept -v. |
10797 | # Break only if it was the GNU/non-GNU ld that we prefer. |
10798 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
10799 | *GNU* | *'with BFD'*) |
10800 | test "$with_gnu_ld" != no && break |
10801 | ;; |
10802 | *) |
10803 | test "$with_gnu_ld" != yes && break |
10804 | ;; |
10805 | esac |
10806 | fi |
10807 | done |
10808 | IFS="$lt_save_ifs" |
10809 | else |
10810 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
10811 | fi |
10812 | fi |
10813 | |
10814 | LD="$lt_cv_path_LD" |
10815 | if test -n "$LD"; then |
dd184caf |
10816 | { echo "$as_me:$LINENO: result: $LD" >&5 |
10817 | echo "${ECHO_T}$LD" >&6; } |
d9898ee8 |
10818 | else |
dd184caf |
10819 | { echo "$as_me:$LINENO: result: no" >&5 |
10820 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
10821 | fi |
10822 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
10823 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
10824 | { (exit 1); exit 1; }; } |
dd184caf |
10825 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
10826 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } |
d9898ee8 |
10827 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
10828 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10829 | else |
10830 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
10831 | case `$LD -v 2>&1 </dev/null` in |
10832 | *GNU* | *'with BFD'*) |
10833 | lt_cv_prog_gnu_ld=yes |
10834 | ;; |
10835 | *) |
10836 | lt_cv_prog_gnu_ld=no |
10837 | ;; |
10838 | esac |
10839 | fi |
dd184caf |
10840 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
10841 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
d9898ee8 |
10842 | with_gnu_ld=$lt_cv_prog_gnu_ld |
10843 | |
10844 | |
10845 | |
10846 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
10847 | # archiving commands below assume that GNU ld is being used. |
10848 | if test "$with_gnu_ld" = yes; then |
10849 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
10850 | 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' |
10851 | |
10852 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
10853 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
10854 | |
10855 | # If archive_cmds runs LD, not CC, wlarc should be empty |
10856 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
10857 | # investigate it a little bit more. (MM) |
10858 | wlarc='${wl}' |
10859 | |
10860 | # ancient GNU ld didn't support --whole-archive et. al. |
10861 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
10862 | grep 'no-whole-archive' > /dev/null; then |
10863 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
10864 | else |
10865 | whole_archive_flag_spec_CXX= |
10866 | fi |
10867 | else |
10868 | with_gnu_ld=no |
10869 | wlarc= |
10870 | |
10871 | # A generic and very simple default shared library creation |
10872 | # command for GNU C++ for the case where it uses the native |
10873 | # linker, instead of GNU ld. If possible, this setting should |
10874 | # overridden to take advantage of the native linker features on |
10875 | # the platform it is being used on. |
10876 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
10877 | fi |
10878 | |
10879 | # Commands to make compiler produce verbose output that lists |
10880 | # what "hidden" libraries, object files and flags are used when |
10881 | # linking a shared library. |
10882 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
10883 | |
10884 | else |
10885 | GXX=no |
10886 | with_gnu_ld=no |
10887 | wlarc= |
10888 | fi |
10889 | |
10890 | # PORTME: fill in a description of your system's C++ link characteristics |
dd184caf |
10891 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
10892 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
d9898ee8 |
10893 | ld_shlibs_CXX=yes |
10894 | case $host_os in |
10895 | aix3*) |
10896 | # FIXME: insert proper C++ library support |
10897 | ld_shlibs_CXX=no |
10898 | ;; |
10899 | aix4* | aix5*) |
10900 | if test "$host_cpu" = ia64; then |
10901 | # On IA64, the linker does run time linking by default, so we don't |
10902 | # have to do anything special. |
10903 | aix_use_runtimelinking=no |
10904 | exp_sym_flag='-Bexport' |
10905 | no_entry_flag="" |
10906 | else |
10907 | aix_use_runtimelinking=no |
10908 | |
10909 | # Test if we are trying to use run time linking or normal |
10910 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
10911 | # need to do runtime linking. |
10912 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
10913 | for ld_flag in $LDFLAGS; do |
10914 | case $ld_flag in |
10915 | *-brtl*) |
10916 | aix_use_runtimelinking=yes |
10917 | break |
10918 | ;; |
10919 | esac |
10920 | done |
10921 | ;; |
10922 | esac |
10923 | |
10924 | exp_sym_flag='-bexport' |
10925 | no_entry_flag='-bnoentry' |
10926 | fi |
10927 | |
10928 | # When large executables or shared objects are built, AIX ld can |
10929 | # have problems creating the table of contents. If linking a library |
10930 | # or program results in "error TOC overflow" add -mminimal-toc to |
10931 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
10932 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
10933 | |
10934 | archive_cmds_CXX='' |
10935 | hardcode_direct_CXX=yes |
10936 | hardcode_libdir_separator_CXX=':' |
10937 | link_all_deplibs_CXX=yes |
10938 | |
10939 | if test "$GXX" = yes; then |
10940 | case $host_os in aix4.[012]|aix4.[012].*) |
10941 | # We only want to do this on AIX 4.2 and lower, the check |
10942 | # below for broken collect2 doesn't work under 4.3+ |
10943 | collect2name=`${CC} -print-prog-name=collect2` |
10944 | if test -f "$collect2name" && \ |
10945 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
10946 | then |
10947 | # We have reworked collect2 |
10948 | hardcode_direct_CXX=yes |
10949 | else |
10950 | # We have old collect2 |
10951 | hardcode_direct_CXX=unsupported |
10952 | # It fails to find uninstalled libraries when the uninstalled |
10953 | # path is not listed in the libpath. Setting hardcode_minus_L |
10954 | # to unsupported forces relinking |
10955 | hardcode_minus_L_CXX=yes |
10956 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
10957 | hardcode_libdir_separator_CXX= |
10958 | fi |
10959 | ;; |
10960 | esac |
10961 | shared_flag='-shared' |
10962 | if test "$aix_use_runtimelinking" = yes; then |
10963 | shared_flag="$shared_flag "'${wl}-G' |
10964 | fi |
10965 | else |
10966 | # not using gcc |
10967 | if test "$host_cpu" = ia64; then |
10968 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
10969 | # chokes on -Wl,-G. The following line is correct: |
10970 | shared_flag='-G' |
10971 | else |
10972 | if test "$aix_use_runtimelinking" = yes; then |
10973 | shared_flag='${wl}-G' |
10974 | else |
10975 | shared_flag='${wl}-bM:SRE' |
10976 | fi |
10977 | fi |
10978 | fi |
10979 | |
10980 | # It seems that -bexpall does not export symbols beginning with |
10981 | # underscore (_), so it is better to generate a list of symbols to export. |
10982 | always_export_symbols_CXX=yes |
10983 | if test "$aix_use_runtimelinking" = yes; then |
10984 | # Warning - without using the other runtime loading flags (-brtl), |
10985 | # -berok will link without error, but may produce a broken library. |
10986 | allow_undefined_flag_CXX='-berok' |
10987 | # Determine the default libpath from the value encoded in an empty executable. |
10988 | cat >conftest.$ac_ext <<_ACEOF |
10989 | /* confdefs.h. */ |
10990 | _ACEOF |
10991 | cat confdefs.h >>conftest.$ac_ext |
10992 | cat >>conftest.$ac_ext <<_ACEOF |
10993 | /* end confdefs.h. */ |
10994 | |
10995 | int |
10996 | main () |
10997 | { |
10998 | |
10999 | ; |
11000 | return 0; |
11001 | } |
11002 | _ACEOF |
11003 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
11004 | if { (ac_try="$ac_link" |
11005 | case "(($ac_try" in |
11006 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11007 | *) ac_try_echo=$ac_try;; |
11008 | esac |
11009 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11010 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
11011 | ac_status=$? |
11012 | grep -v '^ *+' conftest.er1 >conftest.err |
11013 | rm -f conftest.er1 |
11014 | cat conftest.err >&5 |
11015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
11016 | (exit $ac_status); } && { |
11017 | test -z "$ac_cxx_werror_flag" || |
11018 | test ! -s conftest.err |
11019 | } && test -s conftest$ac_exeext && |
11020 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
11021 | |
11022 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
11023 | }'` |
11024 | # Check for a 64-bit object if we didn't find anything. |
11025 | 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; } |
11026 | }'`; fi |
11027 | else |
11028 | echo "$as_me: failed program was:" >&5 |
11029 | sed 's/^/| /' conftest.$ac_ext >&5 |
11030 | |
dd184caf |
11031 | |
d9898ee8 |
11032 | fi |
dd184caf |
11033 | |
11034 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
11035 | conftest$ac_exeext conftest.$ac_ext |
11036 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
11037 | |
11038 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
11039 | |
11040 | 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" |
11041 | else |
11042 | if test "$host_cpu" = ia64; then |
11043 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
11044 | allow_undefined_flag_CXX="-z nodefs" |
11045 | 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" |
11046 | else |
11047 | # Determine the default libpath from the value encoded in an empty executable. |
11048 | cat >conftest.$ac_ext <<_ACEOF |
11049 | /* confdefs.h. */ |
11050 | _ACEOF |
11051 | cat confdefs.h >>conftest.$ac_ext |
11052 | cat >>conftest.$ac_ext <<_ACEOF |
11053 | /* end confdefs.h. */ |
11054 | |
11055 | int |
11056 | main () |
11057 | { |
11058 | |
11059 | ; |
11060 | return 0; |
11061 | } |
11062 | _ACEOF |
11063 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
11064 | if { (ac_try="$ac_link" |
11065 | case "(($ac_try" in |
11066 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11067 | *) ac_try_echo=$ac_try;; |
11068 | esac |
11069 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11070 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
11071 | ac_status=$? |
11072 | grep -v '^ *+' conftest.er1 >conftest.err |
11073 | rm -f conftest.er1 |
11074 | cat conftest.err >&5 |
11075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
11076 | (exit $ac_status); } && { |
11077 | test -z "$ac_cxx_werror_flag" || |
11078 | test ! -s conftest.err |
11079 | } && test -s conftest$ac_exeext && |
11080 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
11081 | |
11082 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
11083 | }'` |
11084 | # Check for a 64-bit object if we didn't find anything. |
11085 | 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; } |
11086 | }'`; fi |
11087 | else |
11088 | echo "$as_me: failed program was:" >&5 |
11089 | sed 's/^/| /' conftest.$ac_ext >&5 |
11090 | |
dd184caf |
11091 | |
d9898ee8 |
11092 | fi |
dd184caf |
11093 | |
11094 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
11095 | conftest$ac_exeext conftest.$ac_ext |
11096 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
11097 | |
11098 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
11099 | # Warning - without using the other run time loading flags, |
11100 | # -berok will link without error, but may produce a broken library. |
11101 | no_undefined_flag_CXX=' ${wl}-bernotok' |
11102 | allow_undefined_flag_CXX=' ${wl}-berok' |
11103 | # Exported symbols can be pulled into shared objects from archives |
11104 | whole_archive_flag_spec_CXX='$convenience' |
11105 | archive_cmds_need_lc_CXX=yes |
11106 | # This is similar to how AIX traditionally builds its shared libraries. |
11107 | 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' |
11108 | fi |
11109 | fi |
11110 | ;; |
11111 | |
11112 | beos*) |
11113 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
11114 | allow_undefined_flag_CXX=unsupported |
11115 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
11116 | # support --undefined. This deserves some investigation. FIXME |
11117 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
11118 | else |
11119 | ld_shlibs_CXX=no |
11120 | fi |
11121 | ;; |
11122 | |
11123 | chorus*) |
11124 | case $cc_basename in |
11125 | *) |
11126 | # FIXME: insert proper C++ library support |
11127 | ld_shlibs_CXX=no |
11128 | ;; |
11129 | esac |
11130 | ;; |
11131 | |
11132 | cygwin* | mingw* | pw32*) |
11133 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
11134 | # as there is no search path for DLLs. |
11135 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
11136 | allow_undefined_flag_CXX=unsupported |
11137 | always_export_symbols_CXX=no |
11138 | enable_shared_with_static_runtimes_CXX=yes |
11139 | |
11140 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
11141 | 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' |
11142 | # If the export-symbols file already is a .def file (1st line |
11143 | # is EXPORTS), use it as is; otherwise, prepend... |
11144 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
11145 | cp $export_symbols $output_objdir/$soname.def; |
11146 | else |
11147 | echo EXPORTS > $output_objdir/$soname.def; |
11148 | cat $export_symbols >> $output_objdir/$soname.def; |
11149 | fi~ |
11150 | $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' |
11151 | else |
11152 | ld_shlibs_CXX=no |
11153 | fi |
11154 | ;; |
11155 | darwin* | rhapsody*) |
11156 | case $host_os in |
11157 | rhapsody* | darwin1.[012]) |
11158 | allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' |
11159 | ;; |
11160 | *) # Darwin 1.3 on |
11161 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
11162 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
11163 | else |
11164 | case ${MACOSX_DEPLOYMENT_TARGET} in |
11165 | 10.[012]) |
11166 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
11167 | ;; |
11168 | 10.*) |
11169 | allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' |
11170 | ;; |
11171 | esac |
11172 | fi |
11173 | ;; |
11174 | esac |
11175 | archive_cmds_need_lc_CXX=no |
11176 | hardcode_direct_CXX=no |
11177 | hardcode_automatic_CXX=yes |
11178 | hardcode_shlibpath_var_CXX=unsupported |
11179 | whole_archive_flag_spec_CXX='' |
11180 | link_all_deplibs_CXX=yes |
11181 | |
11182 | if test "$GXX" = yes ; then |
11183 | lt_int_apple_cc_single_mod=no |
11184 | output_verbose_link_cmd='echo' |
11185 | if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then |
11186 | lt_int_apple_cc_single_mod=yes |
11187 | fi |
11188 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
11189 | archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
11190 | else |
11191 | 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' |
11192 | fi |
11193 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
11194 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
11195 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
11196 | 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}' |
11197 | else |
11198 | 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}' |
11199 | fi |
11200 | 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}' |
11201 | else |
11202 | case $cc_basename in |
11203 | xlc*) |
11204 | output_verbose_link_cmd='echo' |
11205 | 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' |
11206 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
11207 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
11208 | 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}' |
11209 | 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}' |
11210 | ;; |
11211 | *) |
11212 | ld_shlibs_CXX=no |
11213 | ;; |
11214 | esac |
11215 | fi |
11216 | ;; |
11217 | |
11218 | dgux*) |
11219 | case $cc_basename in |
11220 | ec++*) |
11221 | # FIXME: insert proper C++ library support |
11222 | ld_shlibs_CXX=no |
11223 | ;; |
11224 | ghcx*) |
11225 | # Green Hills C++ Compiler |
11226 | # FIXME: insert proper C++ library support |
11227 | ld_shlibs_CXX=no |
11228 | ;; |
11229 | *) |
11230 | # FIXME: insert proper C++ library support |
11231 | ld_shlibs_CXX=no |
11232 | ;; |
11233 | esac |
11234 | ;; |
11235 | freebsd[12]*) |
11236 | # C++ shared libraries reported to be fairly broken before switch to ELF |
11237 | ld_shlibs_CXX=no |
11238 | ;; |
11239 | freebsd-elf*) |
11240 | archive_cmds_need_lc_CXX=no |
11241 | ;; |
1dce02f2 |
11242 | freebsd* | dragonfly*) |
d9898ee8 |
11243 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
11244 | # conventions |
11245 | ld_shlibs_CXX=yes |
11246 | ;; |
11247 | gnu*) |
11248 | ;; |
11249 | hpux9*) |
11250 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
11251 | hardcode_libdir_separator_CXX=: |
11252 | export_dynamic_flag_spec_CXX='${wl}-E' |
11253 | hardcode_direct_CXX=yes |
11254 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
11255 | # but as the default |
11256 | # location of the library. |
11257 | |
11258 | case $cc_basename in |
11259 | CC*) |
11260 | # FIXME: insert proper C++ library support |
11261 | ld_shlibs_CXX=no |
11262 | ;; |
11263 | aCC*) |
11264 | 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' |
11265 | # Commands to make compiler produce verbose output that lists |
11266 | # what "hidden" libraries, object files and flags are used when |
11267 | # linking a shared library. |
11268 | # |
11269 | # There doesn't appear to be a way to prevent this compiler from |
11270 | # explicitly linking system object files so we need to strip them |
11271 | # from the output so that they don't get included in the library |
11272 | # dependencies. |
11273 | 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' |
11274 | ;; |
11275 | *) |
11276 | if test "$GXX" = yes; then |
11277 | 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' |
11278 | else |
11279 | # FIXME: insert proper C++ library support |
11280 | ld_shlibs_CXX=no |
11281 | fi |
11282 | ;; |
11283 | esac |
11284 | ;; |
11285 | hpux10*|hpux11*) |
11286 | if test $with_gnu_ld = no; then |
11287 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
11288 | hardcode_libdir_separator_CXX=: |
11289 | |
11290 | case $host_cpu in |
11291 | hppa*64*|ia64*) |
11292 | hardcode_libdir_flag_spec_ld_CXX='+b $libdir' |
11293 | ;; |
11294 | *) |
11295 | export_dynamic_flag_spec_CXX='${wl}-E' |
11296 | ;; |
11297 | esac |
11298 | fi |
11299 | case $host_cpu in |
11300 | hppa*64*|ia64*) |
11301 | hardcode_direct_CXX=no |
11302 | hardcode_shlibpath_var_CXX=no |
11303 | ;; |
11304 | *) |
11305 | hardcode_direct_CXX=yes |
11306 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
11307 | # but as the default |
11308 | # location of the library. |
11309 | ;; |
11310 | esac |
11311 | |
11312 | case $cc_basename in |
11313 | CC*) |
11314 | # FIXME: insert proper C++ library support |
11315 | ld_shlibs_CXX=no |
11316 | ;; |
11317 | aCC*) |
11318 | case $host_cpu in |
11319 | hppa*64*) |
11320 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11321 | ;; |
11322 | ia64*) |
11323 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11324 | ;; |
11325 | *) |
11326 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11327 | ;; |
11328 | esac |
11329 | # Commands to make compiler produce verbose output that lists |
11330 | # what "hidden" libraries, object files and flags are used when |
11331 | # linking a shared library. |
11332 | # |
11333 | # There doesn't appear to be a way to prevent this compiler from |
11334 | # explicitly linking system object files so we need to strip them |
11335 | # from the output so that they don't get included in the library |
11336 | # dependencies. |
11337 | 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' |
11338 | ;; |
11339 | *) |
11340 | if test "$GXX" = yes; then |
11341 | if test $with_gnu_ld = no; then |
11342 | case $host_cpu in |
11343 | hppa*64*) |
11344 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11345 | ;; |
11346 | ia64*) |
11347 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11348 | ;; |
11349 | *) |
11350 | 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' |
11351 | ;; |
11352 | esac |
11353 | fi |
11354 | else |
11355 | # FIXME: insert proper C++ library support |
11356 | ld_shlibs_CXX=no |
11357 | fi |
11358 | ;; |
11359 | esac |
11360 | ;; |
11361 | interix3*) |
11362 | hardcode_direct_CXX=no |
11363 | hardcode_shlibpath_var_CXX=no |
11364 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
11365 | export_dynamic_flag_spec_CXX='${wl}-E' |
11366 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
11367 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
11368 | # default) and relocated if they conflict, which is a slow very memory |
11369 | # consuming and fragmenting process. To avoid this, we pick a random, |
11370 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
11371 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
11372 | 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' |
11373 | 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' |
11374 | ;; |
11375 | irix5* | irix6*) |
11376 | case $cc_basename in |
11377 | CC*) |
11378 | # SGI C++ |
11379 | 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' |
11380 | |
11381 | # Archives containing C++ object files must be created using |
11382 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
11383 | # necessary to make sure instantiated templates are included |
11384 | # in the archive. |
11385 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
11386 | ;; |
11387 | *) |
11388 | if test "$GXX" = yes; then |
11389 | if test "$with_gnu_ld" = no; then |
11390 | 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' |
11391 | else |
11392 | 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' |
11393 | fi |
11394 | fi |
11395 | link_all_deplibs_CXX=yes |
11396 | ;; |
11397 | esac |
11398 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
11399 | hardcode_libdir_separator_CXX=: |
11400 | ;; |
1dce02f2 |
11401 | linux* | k*bsd*-gnu) |
d9898ee8 |
11402 | case $cc_basename in |
11403 | KCC*) |
11404 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
11405 | |
11406 | # KCC will only create a shared library if the output file |
11407 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
11408 | # to its proper name (with version) after linking. |
11409 | 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' |
11410 | 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' |
11411 | # Commands to make compiler produce verbose output that lists |
11412 | # what "hidden" libraries, object files and flags are used when |
11413 | # linking a shared library. |
11414 | # |
11415 | # There doesn't appear to be a way to prevent this compiler from |
11416 | # explicitly linking system object files so we need to strip them |
11417 | # from the output so that they don't get included in the library |
11418 | # dependencies. |
11419 | 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' |
11420 | |
11421 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' |
11422 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
11423 | |
11424 | # Archives containing C++ object files must be created using |
11425 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
11426 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
11427 | ;; |
11428 | icpc*) |
11429 | # Intel C++ |
11430 | with_gnu_ld=yes |
11431 | # version 8.0 and above of icpc choke on multiply defined symbols |
11432 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
11433 | # earlier do not add the objects themselves. |
11434 | case `$CC -V 2>&1` in |
11435 | *"Version 7."*) |
11436 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
11437 | 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' |
11438 | ;; |
11439 | *) # Version 8.0 or newer |
11440 | tmp_idyn= |
11441 | case $host_cpu in |
11442 | ia64*) tmp_idyn=' -i_dynamic';; |
11443 | esac |
11444 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
11445 | 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' |
11446 | ;; |
11447 | esac |
11448 | archive_cmds_need_lc_CXX=no |
11449 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
11450 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
11451 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
11452 | ;; |
11453 | pgCC*) |
11454 | # Portland Group C++ compiler |
11455 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
11456 | 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' |
11457 | |
11458 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
11459 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
11460 | 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' |
11461 | ;; |
11462 | cxx*) |
11463 | # Compaq C++ |
11464 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
11465 | 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' |
11466 | |
11467 | runpath_var=LD_RUN_PATH |
11468 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
11469 | hardcode_libdir_separator_CXX=: |
11470 | |
11471 | # Commands to make compiler produce verbose output that lists |
11472 | # what "hidden" libraries, object files and flags are used when |
11473 | # linking a shared library. |
11474 | # |
11475 | # There doesn't appear to be a way to prevent this compiler from |
11476 | # explicitly linking system object files so we need to strip them |
11477 | # from the output so that they don't get included in the library |
11478 | # dependencies. |
11479 | 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' |
11480 | ;; |
11481 | esac |
11482 | ;; |
11483 | lynxos*) |
11484 | # FIXME: insert proper C++ library support |
11485 | ld_shlibs_CXX=no |
11486 | ;; |
11487 | m88k*) |
11488 | # FIXME: insert proper C++ library support |
11489 | ld_shlibs_CXX=no |
11490 | ;; |
11491 | mvs*) |
11492 | case $cc_basename in |
11493 | cxx*) |
11494 | # FIXME: insert proper C++ library support |
11495 | ld_shlibs_CXX=no |
11496 | ;; |
11497 | *) |
11498 | # FIXME: insert proper C++ library support |
11499 | ld_shlibs_CXX=no |
11500 | ;; |
11501 | esac |
11502 | ;; |
1dce02f2 |
11503 | netbsd* | netbsdelf*-gnu) |
d9898ee8 |
11504 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
11505 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
11506 | wlarc= |
11507 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
11508 | hardcode_direct_CXX=yes |
11509 | hardcode_shlibpath_var_CXX=no |
11510 | fi |
11511 | # Workaround some broken pre-1.5 toolchains |
11512 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
11513 | ;; |
11514 | openbsd2*) |
11515 | # C++ shared libraries are fairly broken |
11516 | ld_shlibs_CXX=no |
11517 | ;; |
11518 | openbsd*) |
11519 | hardcode_direct_CXX=yes |
11520 | hardcode_shlibpath_var_CXX=no |
11521 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
11522 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
11523 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
11524 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
11525 | export_dynamic_flag_spec_CXX='${wl}-E' |
11526 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
11527 | fi |
11528 | output_verbose_link_cmd='echo' |
11529 | ;; |
11530 | osf3*) |
11531 | case $cc_basename in |
11532 | KCC*) |
11533 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
11534 | |
11535 | # KCC will only create a shared library if the output file |
11536 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
11537 | # to its proper name (with version) after linking. |
11538 | 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' |
11539 | |
11540 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
11541 | hardcode_libdir_separator_CXX=: |
11542 | |
11543 | # Archives containing C++ object files must be created using |
11544 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
11545 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
11546 | |
11547 | ;; |
11548 | RCC*) |
11549 | # Rational C++ 2.4.1 |
11550 | # FIXME: insert proper C++ library support |
11551 | ld_shlibs_CXX=no |
11552 | ;; |
11553 | cxx*) |
11554 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
11555 | 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' |
11556 | |
11557 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
11558 | hardcode_libdir_separator_CXX=: |
11559 | |
11560 | # Commands to make compiler produce verbose output that lists |
11561 | # what "hidden" libraries, object files and flags are used when |
11562 | # linking a shared library. |
11563 | # |
11564 | # There doesn't appear to be a way to prevent this compiler from |
11565 | # explicitly linking system object files so we need to strip them |
11566 | # from the output so that they don't get included in the library |
11567 | # dependencies. |
11568 | 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' |
11569 | ;; |
11570 | *) |
11571 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
11572 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
11573 | 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' |
11574 | |
11575 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
11576 | hardcode_libdir_separator_CXX=: |
11577 | |
11578 | # Commands to make compiler produce verbose output that lists |
11579 | # what "hidden" libraries, object files and flags are used when |
11580 | # linking a shared library. |
11581 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
11582 | |
11583 | else |
11584 | # FIXME: insert proper C++ library support |
11585 | ld_shlibs_CXX=no |
11586 | fi |
11587 | ;; |
11588 | esac |
11589 | ;; |
11590 | osf4* | osf5*) |
11591 | case $cc_basename in |
11592 | KCC*) |
11593 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
11594 | |
11595 | # KCC will only create a shared library if the output file |
11596 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
11597 | # to its proper name (with version) after linking. |
11598 | 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' |
11599 | |
11600 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
11601 | hardcode_libdir_separator_CXX=: |
11602 | |
11603 | # Archives containing C++ object files must be created using |
11604 | # the KAI C++ compiler. |
11605 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
11606 | ;; |
11607 | RCC*) |
11608 | # Rational C++ 2.4.1 |
11609 | # FIXME: insert proper C++ library support |
11610 | ld_shlibs_CXX=no |
11611 | ;; |
11612 | cxx*) |
11613 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
11614 | 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' |
11615 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
11616 | echo "-hidden">> $lib.exp~ |
11617 | $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~ |
11618 | $rm $lib.exp' |
11619 | |
11620 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
11621 | hardcode_libdir_separator_CXX=: |
11622 | |
11623 | # Commands to make compiler produce verbose output that lists |
11624 | # what "hidden" libraries, object files and flags are used when |
11625 | # linking a shared library. |
11626 | # |
11627 | # There doesn't appear to be a way to prevent this compiler from |
11628 | # explicitly linking system object files so we need to strip them |
11629 | # from the output so that they don't get included in the library |
11630 | # dependencies. |
11631 | 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' |
11632 | ;; |
11633 | *) |
11634 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
11635 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
11636 | 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' |
11637 | |
11638 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
11639 | hardcode_libdir_separator_CXX=: |
11640 | |
11641 | # Commands to make compiler produce verbose output that lists |
11642 | # what "hidden" libraries, object files and flags are used when |
11643 | # linking a shared library. |
11644 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
11645 | |
11646 | else |
11647 | # FIXME: insert proper C++ library support |
11648 | ld_shlibs_CXX=no |
11649 | fi |
11650 | ;; |
11651 | esac |
11652 | ;; |
11653 | psos*) |
11654 | # FIXME: insert proper C++ library support |
11655 | ld_shlibs_CXX=no |
11656 | ;; |
11657 | sunos4*) |
11658 | case $cc_basename in |
11659 | CC*) |
11660 | # Sun C++ 4.x |
11661 | # FIXME: insert proper C++ library support |
11662 | ld_shlibs_CXX=no |
11663 | ;; |
11664 | lcc*) |
11665 | # Lucid |
11666 | # FIXME: insert proper C++ library support |
11667 | ld_shlibs_CXX=no |
11668 | ;; |
11669 | *) |
11670 | # FIXME: insert proper C++ library support |
11671 | ld_shlibs_CXX=no |
11672 | ;; |
11673 | esac |
11674 | ;; |
11675 | solaris*) |
11676 | case $cc_basename in |
11677 | CC*) |
11678 | # Sun C++ 4.2, 5.x and Centerline C++ |
11679 | archive_cmds_need_lc_CXX=yes |
11680 | no_undefined_flag_CXX=' -zdefs' |
11681 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11682 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
11683 | $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' |
11684 | |
11685 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
11686 | hardcode_shlibpath_var_CXX=no |
11687 | case $host_os in |
11688 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
11689 | *) |
11690 | # The C++ compiler is used as linker so we must use $wl |
11691 | # flag to pass the commands to the underlying system |
11692 | # linker. We must also pass each convience library through |
11693 | # to the system linker between allextract/defaultextract. |
11694 | # The C++ compiler will combine linker options so we |
11695 | # cannot just pass the convience library names through |
11696 | # without $wl. |
11697 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
11698 | 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' |
11699 | ;; |
11700 | esac |
11701 | link_all_deplibs_CXX=yes |
11702 | |
11703 | output_verbose_link_cmd='echo' |
11704 | |
11705 | # Archives containing C++ object files must be created using |
11706 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
11707 | # necessary to make sure instantiated templates are included |
11708 | # in the archive. |
11709 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
11710 | ;; |
11711 | gcx*) |
11712 | # Green Hills C++ Compiler |
11713 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
11714 | |
11715 | # The C++ compiler must be used to create the archive. |
11716 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
11717 | ;; |
11718 | *) |
11719 | # GNU C++ compiler with Solaris linker |
11720 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
11721 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
11722 | if $CC --version | grep -v '^2\.7' > /dev/null; then |
11723 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
11724 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
11725 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
11726 | |
11727 | # Commands to make compiler produce verbose output that lists |
11728 | # what "hidden" libraries, object files and flags are used when |
11729 | # linking a shared library. |
11730 | output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
11731 | else |
11732 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
11733 | # platform. |
11734 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
11735 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
11736 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
11737 | |
11738 | # Commands to make compiler produce verbose output that lists |
11739 | # what "hidden" libraries, object files and flags are used when |
11740 | # linking a shared library. |
11741 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
11742 | fi |
11743 | |
11744 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
11745 | fi |
11746 | ;; |
11747 | esac |
11748 | ;; |
11749 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
11750 | no_undefined_flag_CXX='${wl}-z,text' |
11751 | archive_cmds_need_lc_CXX=no |
11752 | hardcode_shlibpath_var_CXX=no |
11753 | runpath_var='LD_RUN_PATH' |
11754 | |
11755 | case $cc_basename in |
11756 | CC*) |
11757 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
11758 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
11759 | ;; |
11760 | *) |
11761 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
11762 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
11763 | ;; |
11764 | esac |
11765 | ;; |
11766 | sysv5* | sco3.2v5* | sco5v6*) |
11767 | # Note: We can NOT use -z defs as we might desire, because we do not |
11768 | # link with -lc, and that would cause any symbols used from libc to |
11769 | # always be unresolved, which means just about no library would |
11770 | # ever link correctly. If we're not using GNU ld we use -z text |
11771 | # though, which does catch some bad symbols but isn't as heavy-handed |
11772 | # as -z defs. |
11773 | # For security reasons, it is highly recommended that you always |
11774 | # use absolute paths for naming shared libraries, and exclude the |
11775 | # DT_RUNPATH tag from executables and libraries. But doing so |
11776 | # requires that you compile everything twice, which is a pain. |
11777 | # So that behaviour is only enabled if SCOABSPATH is set to a |
11778 | # non-empty value in the environment. Most likely only useful for |
11779 | # creating official distributions of packages. |
11780 | # This is a hack until libtool officially supports absolute path |
11781 | # names for shared libraries. |
11782 | no_undefined_flag_CXX='${wl}-z,text' |
11783 | allow_undefined_flag_CXX='${wl}-z,nodefs' |
11784 | archive_cmds_need_lc_CXX=no |
11785 | hardcode_shlibpath_var_CXX=no |
11786 | hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
11787 | hardcode_libdir_separator_CXX=':' |
11788 | link_all_deplibs_CXX=yes |
11789 | export_dynamic_flag_spec_CXX='${wl}-Bexport' |
11790 | runpath_var='LD_RUN_PATH' |
11791 | |
11792 | case $cc_basename in |
11793 | CC*) |
11794 | archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
11795 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
11796 | ;; |
11797 | *) |
11798 | archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
11799 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
11800 | ;; |
11801 | esac |
11802 | ;; |
11803 | tandem*) |
11804 | case $cc_basename in |
11805 | NCC*) |
11806 | # NonStop-UX NCC 3.20 |
11807 | # FIXME: insert proper C++ library support |
11808 | ld_shlibs_CXX=no |
11809 | ;; |
11810 | *) |
11811 | # FIXME: insert proper C++ library support |
11812 | ld_shlibs_CXX=no |
11813 | ;; |
11814 | esac |
11815 | ;; |
11816 | vxworks*) |
11817 | # FIXME: insert proper C++ library support |
11818 | ld_shlibs_CXX=no |
11819 | ;; |
11820 | *) |
11821 | # FIXME: insert proper C++ library support |
11822 | ld_shlibs_CXX=no |
11823 | ;; |
11824 | esac |
dd184caf |
11825 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
11826 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
d9898ee8 |
11827 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
11828 | |
11829 | GCC_CXX="$GXX" |
11830 | LD_CXX="$LD" |
11831 | |
11832 | |
11833 | cat > conftest.$ac_ext <<EOF |
11834 | class Foo |
11835 | { |
11836 | public: |
11837 | Foo (void) { a = 0; } |
11838 | private: |
11839 | int a; |
11840 | }; |
11841 | EOF |
11842 | |
11843 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
11844 | (eval $ac_compile) 2>&5 |
11845 | ac_status=$? |
11846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11847 | (exit $ac_status); }; then |
11848 | # Parse the compiler output and extract the necessary |
11849 | # objects, libraries and library flags. |
11850 | |
11851 | # Sentinel used to keep track of whether or not we are before |
11852 | # the conftest object file. |
11853 | pre_test_object_deps_done=no |
11854 | |
11855 | # The `*' in the case matches for architectures that use `case' in |
11856 | # $output_verbose_cmd can trigger glob expansion during the loop |
11857 | # eval without this substitution. |
11858 | output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` |
11859 | |
11860 | for p in `eval $output_verbose_link_cmd`; do |
11861 | case $p in |
11862 | |
11863 | -L* | -R* | -l*) |
11864 | # Some compilers place space between "-{L,R}" and the path. |
11865 | # Remove the space. |
11866 | if test $p = "-L" \ |
11867 | || test $p = "-R"; then |
11868 | prev=$p |
11869 | continue |
11870 | else |
11871 | prev= |
11872 | fi |
11873 | |
11874 | if test "$pre_test_object_deps_done" = no; then |
11875 | case $p in |
11876 | -L* | -R*) |
11877 | # Internal compiler library paths should come after those |
11878 | # provided the user. The postdeps already come after the |
11879 | # user supplied libs so there is no need to process them. |
11880 | if test -z "$compiler_lib_search_path_CXX"; then |
11881 | compiler_lib_search_path_CXX="${prev}${p}" |
11882 | else |
11883 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
11884 | fi |
11885 | ;; |
11886 | # The "-l" case would never come before the object being |
11887 | # linked, so don't bother handling this case. |
11888 | esac |
11889 | else |
11890 | if test -z "$postdeps_CXX"; then |
11891 | postdeps_CXX="${prev}${p}" |
11892 | else |
11893 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
11894 | fi |
11895 | fi |
11896 | ;; |
11897 | |
11898 | *.$objext) |
11899 | # This assumes that the test object file only shows up |
11900 | # once in the compiler output. |
11901 | if test "$p" = "conftest.$objext"; then |
11902 | pre_test_object_deps_done=yes |
11903 | continue |
11904 | fi |
11905 | |
11906 | if test "$pre_test_object_deps_done" = no; then |
11907 | if test -z "$predep_objects_CXX"; then |
11908 | predep_objects_CXX="$p" |
11909 | else |
11910 | predep_objects_CXX="$predep_objects_CXX $p" |
11911 | fi |
11912 | else |
11913 | if test -z "$postdep_objects_CXX"; then |
11914 | postdep_objects_CXX="$p" |
11915 | else |
11916 | postdep_objects_CXX="$postdep_objects_CXX $p" |
11917 | fi |
11918 | fi |
11919 | ;; |
11920 | |
11921 | *) ;; # Ignore the rest. |
11922 | |
11923 | esac |
11924 | done |
11925 | |
11926 | # Clean up. |
11927 | rm -f a.out a.exe |
11928 | else |
11929 | echo "libtool.m4: error: problem compiling CXX test program" |
11930 | fi |
11931 | |
11932 | $rm -f confest.$objext |
11933 | |
11934 | # PORTME: override above test on systems where it is broken |
11935 | case $host_os in |
11936 | interix3*) |
11937 | # Interix 3.5 installs completely hosed .la files for C++, so rather than |
11938 | # hack all around it, let's just trust "g++" to DTRT. |
11939 | predep_objects_CXX= |
11940 | postdep_objects_CXX= |
11941 | postdeps_CXX= |
11942 | ;; |
11943 | |
11944 | solaris*) |
11945 | case $cc_basename in |
11946 | CC*) |
11947 | # Adding this requires a known-good setup of shared libraries for |
11948 | # Sun compiler versions before 5.6, else PIC objects from an old |
11949 | # archive will be linked into the output, leading to subtle bugs. |
11950 | postdeps_CXX='-lCstd -lCrun' |
11951 | ;; |
11952 | esac |
11953 | ;; |
11954 | esac |
11955 | |
11956 | |
11957 | case " $postdeps_CXX " in |
11958 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
11959 | esac |
11960 | |
11961 | lt_prog_compiler_wl_CXX= |
11962 | lt_prog_compiler_pic_CXX= |
11963 | lt_prog_compiler_static_CXX= |
11964 | |
dd184caf |
11965 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
11966 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
d9898ee8 |
11967 | |
11968 | # C++ specific cases for pic, static, wl, etc. |
11969 | if test "$GXX" = yes; then |
11970 | lt_prog_compiler_wl_CXX='-Wl,' |
11971 | lt_prog_compiler_static_CXX='-static' |
11972 | |
11973 | case $host_os in |
11974 | aix*) |
11975 | # All AIX code is PIC. |
11976 | if test "$host_cpu" = ia64; then |
11977 | # AIX 5 now supports IA64 processor |
11978 | lt_prog_compiler_static_CXX='-Bstatic' |
11979 | fi |
11980 | ;; |
11981 | amigaos*) |
11982 | # FIXME: we need at least 68020 code to build shared libraries, but |
11983 | # adding the `-m68020' flag to GCC prevents building anything better, |
11984 | # like `-m68040'. |
11985 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
11986 | ;; |
11987 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
11988 | # PIC is the default for these OSes. |
11989 | ;; |
11990 | mingw* | os2* | pw32*) |
11991 | # This hack is so that the source file can tell whether it is being |
11992 | # built for inclusion in a dll (and should export symbols for example). |
11993 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
11994 | ;; |
11995 | darwin* | rhapsody*) |
11996 | # PIC is the default on this platform |
11997 | # Common symbols not allowed in MH_DYLIB files |
11998 | lt_prog_compiler_pic_CXX='-fno-common' |
11999 | ;; |
12000 | *djgpp*) |
12001 | # DJGPP does not support shared libraries at all |
12002 | lt_prog_compiler_pic_CXX= |
12003 | ;; |
12004 | interix3*) |
12005 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
12006 | # Instead, we relocate shared libraries at runtime. |
12007 | ;; |
12008 | sysv4*MP*) |
12009 | if test -d /usr/nec; then |
12010 | lt_prog_compiler_pic_CXX=-Kconform_pic |
12011 | fi |
12012 | ;; |
12013 | hpux*) |
12014 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
12015 | # not for PA HP-UX. |
12016 | case $host_cpu in |
12017 | hppa*64*|ia64*) |
12018 | ;; |
12019 | *) |
12020 | lt_prog_compiler_pic_CXX='-fPIC' |
12021 | ;; |
12022 | esac |
12023 | ;; |
12024 | *) |
12025 | lt_prog_compiler_pic_CXX='-fPIC' |
12026 | ;; |
12027 | esac |
12028 | else |
12029 | case $host_os in |
12030 | aix4* | aix5*) |
12031 | # All AIX code is PIC. |
12032 | if test "$host_cpu" = ia64; then |
12033 | # AIX 5 now supports IA64 processor |
12034 | lt_prog_compiler_static_CXX='-Bstatic' |
12035 | else |
12036 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
12037 | fi |
12038 | ;; |
12039 | chorus*) |
12040 | case $cc_basename in |
12041 | cxch68*) |
12042 | # Green Hills C++ Compiler |
12043 | # _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" |
12044 | ;; |
12045 | esac |
12046 | ;; |
12047 | darwin*) |
12048 | # PIC is the default on this platform |
12049 | # Common symbols not allowed in MH_DYLIB files |
12050 | case $cc_basename in |
12051 | xlc*) |
12052 | lt_prog_compiler_pic_CXX='-qnocommon' |
12053 | lt_prog_compiler_wl_CXX='-Wl,' |
12054 | ;; |
12055 | esac |
12056 | ;; |
12057 | dgux*) |
12058 | case $cc_basename in |
12059 | ec++*) |
12060 | lt_prog_compiler_pic_CXX='-KPIC' |
12061 | ;; |
12062 | ghcx*) |
12063 | # Green Hills C++ Compiler |
12064 | lt_prog_compiler_pic_CXX='-pic' |
12065 | ;; |
12066 | *) |
12067 | ;; |
12068 | esac |
12069 | ;; |
1dce02f2 |
12070 | freebsd* | dragonfly*) |
d9898ee8 |
12071 | # FreeBSD uses GNU C++ |
12072 | ;; |
12073 | hpux9* | hpux10* | hpux11*) |
12074 | case $cc_basename in |
12075 | CC*) |
12076 | lt_prog_compiler_wl_CXX='-Wl,' |
12077 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
12078 | if test "$host_cpu" != ia64; then |
12079 | lt_prog_compiler_pic_CXX='+Z' |
12080 | fi |
12081 | ;; |
12082 | aCC*) |
12083 | lt_prog_compiler_wl_CXX='-Wl,' |
12084 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
12085 | case $host_cpu in |
12086 | hppa*64*|ia64*) |
12087 | # +Z the default |
12088 | ;; |
12089 | *) |
12090 | lt_prog_compiler_pic_CXX='+Z' |
12091 | ;; |
12092 | esac |
12093 | ;; |
12094 | *) |
12095 | ;; |
12096 | esac |
12097 | ;; |
12098 | interix*) |
12099 | # This is c89, which is MS Visual C++ (no shared libs) |
12100 | # Anyone wants to do a port? |
12101 | ;; |
12102 | irix5* | irix6* | nonstopux*) |
12103 | case $cc_basename in |
12104 | CC*) |
12105 | lt_prog_compiler_wl_CXX='-Wl,' |
12106 | lt_prog_compiler_static_CXX='-non_shared' |
12107 | # CC pic flag -KPIC is the default. |
12108 | ;; |
12109 | *) |
12110 | ;; |
12111 | esac |
12112 | ;; |
1dce02f2 |
12113 | linux* | k*bsd*-gnu) |
d9898ee8 |
12114 | case $cc_basename in |
12115 | KCC*) |
12116 | # KAI C++ Compiler |
12117 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
12118 | lt_prog_compiler_pic_CXX='-fPIC' |
12119 | ;; |
12120 | icpc* | ecpc*) |
12121 | # Intel C++ |
12122 | lt_prog_compiler_wl_CXX='-Wl,' |
12123 | lt_prog_compiler_pic_CXX='-KPIC' |
12124 | lt_prog_compiler_static_CXX='-static' |
12125 | ;; |
12126 | pgCC*) |
12127 | # Portland Group C++ compiler. |
12128 | lt_prog_compiler_wl_CXX='-Wl,' |
12129 | lt_prog_compiler_pic_CXX='-fpic' |
12130 | lt_prog_compiler_static_CXX='-Bstatic' |
12131 | ;; |
12132 | cxx*) |
12133 | # Compaq C++ |
12134 | # Make sure the PIC flag is empty. It appears that all Alpha |
12135 | # Linux and Compaq Tru64 Unix objects are PIC. |
12136 | lt_prog_compiler_pic_CXX= |
12137 | lt_prog_compiler_static_CXX='-non_shared' |
12138 | ;; |
12139 | *) |
12140 | ;; |
12141 | esac |
12142 | ;; |
12143 | lynxos*) |
12144 | ;; |
12145 | m88k*) |
12146 | ;; |
12147 | mvs*) |
12148 | case $cc_basename in |
12149 | cxx*) |
12150 | lt_prog_compiler_pic_CXX='-W c,exportall' |
12151 | ;; |
12152 | *) |
12153 | ;; |
12154 | esac |
12155 | ;; |
1dce02f2 |
12156 | netbsd* | netbsdelf*-gnu) |
d9898ee8 |
12157 | ;; |
12158 | osf3* | osf4* | osf5*) |
12159 | case $cc_basename in |
12160 | KCC*) |
12161 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
12162 | ;; |
12163 | RCC*) |
12164 | # Rational C++ 2.4.1 |
12165 | lt_prog_compiler_pic_CXX='-pic' |
12166 | ;; |
12167 | cxx*) |
12168 | # Digital/Compaq C++ |
12169 | lt_prog_compiler_wl_CXX='-Wl,' |
12170 | # Make sure the PIC flag is empty. It appears that all Alpha |
12171 | # Linux and Compaq Tru64 Unix objects are PIC. |
12172 | lt_prog_compiler_pic_CXX= |
12173 | lt_prog_compiler_static_CXX='-non_shared' |
12174 | ;; |
12175 | *) |
12176 | ;; |
12177 | esac |
12178 | ;; |
12179 | psos*) |
12180 | ;; |
12181 | solaris*) |
12182 | case $cc_basename in |
12183 | CC*) |
12184 | # Sun C++ 4.2, 5.x and Centerline C++ |
12185 | lt_prog_compiler_pic_CXX='-KPIC' |
12186 | lt_prog_compiler_static_CXX='-Bstatic' |
12187 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
12188 | ;; |
12189 | gcx*) |
12190 | # Green Hills C++ Compiler |
12191 | lt_prog_compiler_pic_CXX='-PIC' |
12192 | ;; |
12193 | *) |
12194 | ;; |
12195 | esac |
12196 | ;; |
12197 | sunos4*) |
12198 | case $cc_basename in |
12199 | CC*) |
12200 | # Sun C++ 4.x |
12201 | lt_prog_compiler_pic_CXX='-pic' |
12202 | lt_prog_compiler_static_CXX='-Bstatic' |
12203 | ;; |
12204 | lcc*) |
12205 | # Lucid |
12206 | lt_prog_compiler_pic_CXX='-pic' |
12207 | ;; |
12208 | *) |
12209 | ;; |
12210 | esac |
12211 | ;; |
12212 | tandem*) |
12213 | case $cc_basename in |
12214 | NCC*) |
12215 | # NonStop-UX NCC 3.20 |
12216 | lt_prog_compiler_pic_CXX='-KPIC' |
12217 | ;; |
12218 | *) |
12219 | ;; |
12220 | esac |
12221 | ;; |
12222 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
12223 | case $cc_basename in |
12224 | CC*) |
12225 | lt_prog_compiler_wl_CXX='-Wl,' |
12226 | lt_prog_compiler_pic_CXX='-KPIC' |
12227 | lt_prog_compiler_static_CXX='-Bstatic' |
12228 | ;; |
12229 | esac |
12230 | ;; |
12231 | vxworks*) |
12232 | ;; |
12233 | *) |
12234 | lt_prog_compiler_can_build_shared_CXX=no |
12235 | ;; |
12236 | esac |
12237 | fi |
12238 | |
dd184caf |
12239 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
12240 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } |
d9898ee8 |
12241 | |
12242 | # |
12243 | # Check to make sure the PIC flag actually works. |
12244 | # |
12245 | if test -n "$lt_prog_compiler_pic_CXX"; then |
12246 | |
dd184caf |
12247 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
12248 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } |
d9898ee8 |
12249 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then |
12250 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12251 | else |
12252 | lt_prog_compiler_pic_works_CXX=no |
12253 | ac_outfile=conftest.$ac_objext |
12254 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
12255 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
12256 | # Insert the option either (1) after the last *FLAGS variable, or |
12257 | # (2) before a word containing "conftest.", or (3) at the end. |
12258 | # Note that $ac_compile itself does not contain backslashes and begins |
12259 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
12260 | # The option is referenced via a variable to avoid confusing sed. |
12261 | lt_compile=`echo "$ac_compile" | $SED \ |
12262 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
12263 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
12264 | -e 's:$: $lt_compiler_flag:'` |
1dce02f2 |
12265 | (eval echo "\"\$as_me:12265: $lt_compile\"" >&5) |
d9898ee8 |
12266 | (eval "$lt_compile" 2>conftest.err) |
12267 | ac_status=$? |
12268 | cat conftest.err >&5 |
1dce02f2 |
12269 | echo "$as_me:12269: \$? = $ac_status" >&5 |
d9898ee8 |
12270 | if (exit $ac_status) && test -s "$ac_outfile"; then |
12271 | # The compiler can only warn and ignore the option if not recognized |
12272 | # So say no if there are warnings other than the usual output. |
12273 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
12274 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
12275 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
12276 | lt_prog_compiler_pic_works_CXX=yes |
12277 | fi |
12278 | fi |
12279 | $rm conftest* |
12280 | |
12281 | fi |
dd184caf |
12282 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 |
12283 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } |
d9898ee8 |
12284 | |
12285 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then |
12286 | case $lt_prog_compiler_pic_CXX in |
12287 | "" | " "*) ;; |
12288 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
12289 | esac |
12290 | else |
12291 | lt_prog_compiler_pic_CXX= |
12292 | lt_prog_compiler_can_build_shared_CXX=no |
12293 | fi |
12294 | |
12295 | fi |
12296 | case $host_os in |
12297 | # For platforms which do not support PIC, -DPIC is meaningless: |
12298 | *djgpp*) |
12299 | lt_prog_compiler_pic_CXX= |
12300 | ;; |
12301 | *) |
12302 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
12303 | ;; |
12304 | esac |
12305 | |
12306 | # |
12307 | # Check to make sure the static flag actually works. |
12308 | # |
12309 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" |
dd184caf |
12310 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
12311 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
d9898ee8 |
12312 | if test "${lt_prog_compiler_static_works_CXX+set}" = set; then |
12313 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12314 | else |
12315 | lt_prog_compiler_static_works_CXX=no |
12316 | save_LDFLAGS="$LDFLAGS" |
12317 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
12318 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
12319 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
12320 | # The linker can only warn and ignore the option if not recognized |
12321 | # So say no if there are warnings |
12322 | if test -s conftest.err; then |
12323 | # Append any errors to the config.log. |
12324 | cat conftest.err 1>&5 |
12325 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
12326 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
12327 | if diff conftest.exp conftest.er2 >/dev/null; then |
12328 | lt_prog_compiler_static_works_CXX=yes |
12329 | fi |
12330 | else |
12331 | lt_prog_compiler_static_works_CXX=yes |
12332 | fi |
12333 | fi |
12334 | $rm conftest* |
12335 | LDFLAGS="$save_LDFLAGS" |
12336 | |
12337 | fi |
dd184caf |
12338 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 |
12339 | echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } |
d9898ee8 |
12340 | |
12341 | if test x"$lt_prog_compiler_static_works_CXX" = xyes; then |
12342 | : |
12343 | else |
12344 | lt_prog_compiler_static_CXX= |
12345 | fi |
12346 | |
12347 | |
dd184caf |
12348 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
12349 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
d9898ee8 |
12350 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
12351 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12352 | else |
12353 | lt_cv_prog_compiler_c_o_CXX=no |
12354 | $rm -r conftest 2>/dev/null |
12355 | mkdir conftest |
12356 | cd conftest |
12357 | mkdir out |
12358 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
12359 | |
12360 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
12361 | # Insert the option either (1) after the last *FLAGS variable, or |
12362 | # (2) before a word containing "conftest.", or (3) at the end. |
12363 | # Note that $ac_compile itself does not contain backslashes and begins |
12364 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
12365 | lt_compile=`echo "$ac_compile" | $SED \ |
12366 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
12367 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
12368 | -e 's:$: $lt_compiler_flag:'` |
1dce02f2 |
12369 | (eval echo "\"\$as_me:12369: $lt_compile\"" >&5) |
d9898ee8 |
12370 | (eval "$lt_compile" 2>out/conftest.err) |
12371 | ac_status=$? |
12372 | cat out/conftest.err >&5 |
1dce02f2 |
12373 | echo "$as_me:12373: \$? = $ac_status" >&5 |
d9898ee8 |
12374 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
12375 | then |
12376 | # The compiler can only warn and ignore the option if not recognized |
12377 | # So say no if there are warnings |
12378 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
12379 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
12380 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
12381 | lt_cv_prog_compiler_c_o_CXX=yes |
12382 | fi |
12383 | fi |
12384 | chmod u+w . 2>&5 |
12385 | $rm conftest* |
12386 | # SGI C++ compiler will create directory out/ii_files/ for |
12387 | # template instantiation |
12388 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
12389 | $rm out/* && rmdir out |
12390 | cd .. |
12391 | rmdir conftest |
12392 | $rm conftest* |
12393 | |
12394 | fi |
dd184caf |
12395 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
12396 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } |
d9898ee8 |
12397 | |
12398 | |
12399 | hard_links="nottested" |
12400 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
12401 | # do not overwrite the value of need_locks provided by the user |
dd184caf |
12402 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
12403 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
d9898ee8 |
12404 | hard_links=yes |
12405 | $rm conftest* |
12406 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
12407 | touch conftest.a |
12408 | ln conftest.a conftest.b 2>&5 || hard_links=no |
12409 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
dd184caf |
12410 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
12411 | echo "${ECHO_T}$hard_links" >&6; } |
d9898ee8 |
12412 | if test "$hard_links" = no; then |
12413 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
12414 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
12415 | need_locks=warn |
12416 | fi |
12417 | else |
12418 | need_locks=no |
12419 | fi |
12420 | |
dd184caf |
12421 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
12422 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
d9898ee8 |
12423 | |
12424 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
12425 | case $host_os in |
12426 | aix4* | aix5*) |
12427 | # If we're using GNU nm, then we don't want the "-C" option. |
12428 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
12429 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
12430 | 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' |
12431 | else |
12432 | 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' |
12433 | fi |
12434 | ;; |
12435 | pw32*) |
12436 | export_symbols_cmds_CXX="$ltdll_cmds" |
12437 | ;; |
12438 | cygwin* | mingw*) |
12439 | 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' |
12440 | ;; |
1dce02f2 |
12441 | linux* | k*bsd*-gnu) |
12442 | link_all_deplibs_CXX=no |
12443 | ;; |
d9898ee8 |
12444 | *) |
12445 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
12446 | ;; |
12447 | esac |
12448 | |
dd184caf |
12449 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
12450 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
d9898ee8 |
12451 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
12452 | |
12453 | # |
12454 | # Do we need to explicitly link libc? |
12455 | # |
12456 | case "x$archive_cmds_need_lc_CXX" in |
12457 | x|xyes) |
12458 | # Assume -lc should be added |
12459 | archive_cmds_need_lc_CXX=yes |
12460 | |
12461 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
12462 | case $archive_cmds_CXX in |
12463 | *'~'*) |
12464 | # FIXME: we may have to deal with multi-command sequences. |
12465 | ;; |
12466 | '$CC '*) |
12467 | # Test whether the compiler implicitly links with -lc since on some |
12468 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
12469 | # to ld, don't add -lc before -lgcc. |
dd184caf |
12470 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
12471 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
d9898ee8 |
12472 | $rm conftest* |
12473 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
12474 | |
12475 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
12476 | (eval $ac_compile) 2>&5 |
12477 | ac_status=$? |
12478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12479 | (exit $ac_status); } 2>conftest.err; then |
12480 | soname=conftest |
12481 | lib=conftest |
12482 | libobjs=conftest.$ac_objext |
12483 | deplibs= |
12484 | wl=$lt_prog_compiler_wl_CXX |
12485 | pic_flag=$lt_prog_compiler_pic_CXX |
12486 | compiler_flags=-v |
12487 | linker_flags=-v |
12488 | verstring= |
12489 | output_objdir=. |
12490 | libname=conftest |
12491 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
12492 | allow_undefined_flag_CXX= |
12493 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
12494 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
12495 | ac_status=$? |
12496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12497 | (exit $ac_status); } |
12498 | then |
12499 | archive_cmds_need_lc_CXX=no |
12500 | else |
12501 | archive_cmds_need_lc_CXX=yes |
12502 | fi |
12503 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
12504 | else |
12505 | cat conftest.err 1>&5 |
12506 | fi |
12507 | $rm conftest* |
dd184caf |
12508 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 |
12509 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } |
d9898ee8 |
12510 | ;; |
12511 | esac |
12512 | fi |
12513 | ;; |
12514 | esac |
12515 | |
dd184caf |
12516 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
12517 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
d9898ee8 |
12518 | library_names_spec= |
12519 | libname_spec='lib$name' |
12520 | soname_spec= |
12521 | shrext_cmds=".so" |
12522 | postinstall_cmds= |
12523 | postuninstall_cmds= |
12524 | finish_cmds= |
12525 | finish_eval= |
12526 | shlibpath_var= |
12527 | shlibpath_overrides_runpath=unknown |
12528 | version_type=none |
12529 | dynamic_linker="$host_os ld.so" |
12530 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
12531 | if test "$GCC" = yes; then |
12532 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
12533 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
12534 | # if the path contains ";" then we assume it to be the separator |
12535 | # otherwise default to the standard path separator (i.e. ":") - it is |
12536 | # assumed that no part of a normal pathname contains ";" but that should |
12537 | # okay in the real world where ";" in dirpaths is itself problematic. |
12538 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
12539 | else |
12540 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
12541 | fi |
12542 | else |
12543 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
12544 | fi |
12545 | need_lib_prefix=unknown |
12546 | hardcode_into_libs=no |
12547 | |
12548 | # when you set need_version to no, make sure it does not cause -set_version |
12549 | # flags to be left without arguments |
12550 | need_version=unknown |
12551 | |
12552 | case $host_os in |
12553 | aix3*) |
12554 | version_type=linux |
12555 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
12556 | shlibpath_var=LIBPATH |
12557 | |
12558 | # AIX 3 has no versioning support, so we append a major version to the name. |
12559 | soname_spec='${libname}${release}${shared_ext}$major' |
12560 | ;; |
12561 | |
12562 | aix4* | aix5*) |
12563 | version_type=linux |
12564 | need_lib_prefix=no |
12565 | need_version=no |
12566 | hardcode_into_libs=yes |
12567 | if test "$host_cpu" = ia64; then |
12568 | # AIX 5 supports IA64 |
12569 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
12570 | shlibpath_var=LD_LIBRARY_PATH |
12571 | else |
12572 | # With GCC up to 2.95.x, collect2 would create an import file |
12573 | # for dependence libraries. The import file would start with |
12574 | # the line `#! .'. This would cause the generated library to |
12575 | # depend on `.', always an invalid library. This was fixed in |
12576 | # development snapshots of GCC prior to 3.0. |
12577 | case $host_os in |
12578 | aix4 | aix4.[01] | aix4.[01].*) |
12579 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
12580 | echo ' yes ' |
12581 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
12582 | : |
12583 | else |
12584 | can_build_shared=no |
12585 | fi |
12586 | ;; |
12587 | esac |
12588 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
12589 | # soname into executable. Probably we can add versioning support to |
12590 | # collect2, so additional links can be useful in future. |
12591 | if test "$aix_use_runtimelinking" = yes; then |
12592 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
12593 | # instead of lib<name>.a to let people know that these are not |
12594 | # typical AIX shared libraries. |
12595 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12596 | else |
12597 | # We preserve .a as extension for shared libraries through AIX4.2 |
12598 | # and later when we are not doing run time linking. |
12599 | library_names_spec='${libname}${release}.a $libname.a' |
12600 | soname_spec='${libname}${release}${shared_ext}$major' |
12601 | fi |
12602 | shlibpath_var=LIBPATH |
12603 | fi |
12604 | ;; |
12605 | |
12606 | amigaos*) |
12607 | library_names_spec='$libname.ixlibrary $libname.a' |
12608 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
12609 | 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' |
12610 | ;; |
12611 | |
12612 | beos*) |
12613 | library_names_spec='${libname}${shared_ext}' |
12614 | dynamic_linker="$host_os ld.so" |
12615 | shlibpath_var=LIBRARY_PATH |
12616 | ;; |
12617 | |
12618 | bsdi[45]*) |
12619 | version_type=linux |
12620 | need_version=no |
12621 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12622 | soname_spec='${libname}${release}${shared_ext}$major' |
12623 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
12624 | shlibpath_var=LD_LIBRARY_PATH |
12625 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
12626 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
12627 | # the default ld.so.conf also contains /usr/contrib/lib and |
12628 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
12629 | # libtool to hard-code these into programs |
12630 | ;; |
12631 | |
12632 | cygwin* | mingw* | pw32*) |
12633 | version_type=windows |
12634 | shrext_cmds=".dll" |
12635 | need_version=no |
12636 | need_lib_prefix=no |
12637 | |
12638 | case $GCC,$host_os in |
12639 | yes,cygwin* | yes,mingw* | yes,pw32*) |
12640 | library_names_spec='$libname.dll.a' |
12641 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
12642 | postinstall_cmds='base_file=`basename \${file}`~ |
12643 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
12644 | dldir=$destdir/`dirname \$dlpath`~ |
12645 | test -d \$dldir || mkdir -p \$dldir~ |
12646 | $install_prog $dir/$dlname \$dldir/$dlname~ |
12647 | chmod a+x \$dldir/$dlname' |
12648 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
12649 | dlpath=$dir/\$dldll~ |
12650 | $rm \$dlpath' |
12651 | shlibpath_overrides_runpath=yes |
12652 | |
12653 | case $host_os in |
12654 | cygwin*) |
12655 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
12656 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
12657 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
12658 | ;; |
12659 | mingw*) |
12660 | # MinGW DLLs use traditional 'lib' prefix |
12661 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
12662 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
12663 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
12664 | # It is most probably a Windows format PATH printed by |
12665 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
12666 | # path with ; separators, and with drive letters. We can handle the |
12667 | # drive letters (cygwin fileutils understands them), so leave them, |
12668 | # especially as we might pass files found there to a mingw objdump, |
12669 | # which wouldn't understand a cygwinified path. Ahh. |
12670 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
12671 | else |
12672 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
12673 | fi |
12674 | ;; |
12675 | pw32*) |
12676 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
12677 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
12678 | ;; |
12679 | esac |
12680 | ;; |
12681 | |
12682 | *) |
12683 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
12684 | ;; |
12685 | esac |
12686 | dynamic_linker='Win32 ld.exe' |
12687 | # FIXME: first we should search . and the directory the executable is in |
12688 | shlibpath_var=PATH |
12689 | ;; |
12690 | |
12691 | darwin* | rhapsody*) |
12692 | dynamic_linker="$host_os dyld" |
12693 | version_type=darwin |
12694 | need_lib_prefix=no |
12695 | need_version=no |
12696 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
12697 | soname_spec='${libname}${release}${major}$shared_ext' |
12698 | shlibpath_overrides_runpath=yes |
12699 | shlibpath_var=DYLD_LIBRARY_PATH |
12700 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
12701 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
12702 | if test "$GCC" = yes; then |
12703 | 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"` |
12704 | else |
12705 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
12706 | fi |
12707 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
12708 | ;; |
12709 | |
12710 | dgux*) |
12711 | version_type=linux |
12712 | need_lib_prefix=no |
12713 | need_version=no |
12714 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
12715 | soname_spec='${libname}${release}${shared_ext}$major' |
12716 | shlibpath_var=LD_LIBRARY_PATH |
12717 | ;; |
12718 | |
12719 | freebsd1*) |
12720 | dynamic_linker=no |
12721 | ;; |
12722 | |
d9898ee8 |
12723 | freebsd* | dragonfly*) |
12724 | # DragonFly does not have aout. When/if they implement a new |
12725 | # versioning mechanism, adjust this. |
12726 | if test -x /usr/bin/objformat; then |
12727 | objformat=`/usr/bin/objformat` |
12728 | else |
12729 | case $host_os in |
12730 | freebsd[123]*) objformat=aout ;; |
12731 | *) objformat=elf ;; |
12732 | esac |
12733 | fi |
12734 | version_type=freebsd-$objformat |
12735 | case $version_type in |
12736 | freebsd-elf*) |
12737 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
12738 | need_version=no |
12739 | need_lib_prefix=no |
12740 | ;; |
12741 | freebsd-*) |
12742 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
12743 | need_version=yes |
12744 | ;; |
12745 | esac |
12746 | shlibpath_var=LD_LIBRARY_PATH |
12747 | case $host_os in |
12748 | freebsd2*) |
12749 | shlibpath_overrides_runpath=yes |
12750 | ;; |
12751 | freebsd3.[01]* | freebsdelf3.[01]*) |
12752 | shlibpath_overrides_runpath=yes |
12753 | hardcode_into_libs=yes |
12754 | ;; |
12755 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
12756 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
12757 | shlibpath_overrides_runpath=no |
12758 | hardcode_into_libs=yes |
12759 | ;; |
12760 | freebsd*) # from 4.6 on |
12761 | shlibpath_overrides_runpath=yes |
12762 | hardcode_into_libs=yes |
12763 | ;; |
12764 | esac |
12765 | ;; |
12766 | |
12767 | gnu*) |
12768 | version_type=linux |
12769 | need_lib_prefix=no |
12770 | need_version=no |
12771 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
12772 | soname_spec='${libname}${release}${shared_ext}$major' |
12773 | shlibpath_var=LD_LIBRARY_PATH |
12774 | hardcode_into_libs=yes |
12775 | ;; |
12776 | |
12777 | hpux9* | hpux10* | hpux11*) |
12778 | # Give a soname corresponding to the major version so that dld.sl refuses to |
12779 | # link against other versions. |
12780 | version_type=sunos |
12781 | need_lib_prefix=no |
12782 | need_version=no |
12783 | case $host_cpu in |
12784 | ia64*) |
12785 | shrext_cmds='.so' |
12786 | hardcode_into_libs=yes |
12787 | dynamic_linker="$host_os dld.so" |
12788 | shlibpath_var=LD_LIBRARY_PATH |
12789 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
12790 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12791 | soname_spec='${libname}${release}${shared_ext}$major' |
12792 | if test "X$HPUX_IA64_MODE" = X32; then |
12793 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
12794 | else |
12795 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
12796 | fi |
12797 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
12798 | ;; |
12799 | hppa*64*) |
12800 | shrext_cmds='.sl' |
12801 | hardcode_into_libs=yes |
12802 | dynamic_linker="$host_os dld.sl" |
12803 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
12804 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
12805 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12806 | soname_spec='${libname}${release}${shared_ext}$major' |
12807 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
12808 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
12809 | ;; |
12810 | *) |
12811 | shrext_cmds='.sl' |
12812 | dynamic_linker="$host_os dld.sl" |
12813 | shlibpath_var=SHLIB_PATH |
12814 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
12815 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12816 | soname_spec='${libname}${release}${shared_ext}$major' |
12817 | ;; |
12818 | esac |
12819 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
12820 | postinstall_cmds='chmod 555 $lib' |
12821 | ;; |
12822 | |
12823 | interix3*) |
12824 | version_type=linux |
12825 | need_lib_prefix=no |
12826 | need_version=no |
12827 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
12828 | soname_spec='${libname}${release}${shared_ext}$major' |
12829 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
12830 | shlibpath_var=LD_LIBRARY_PATH |
12831 | shlibpath_overrides_runpath=no |
12832 | hardcode_into_libs=yes |
12833 | ;; |
12834 | |
12835 | irix5* | irix6* | nonstopux*) |
12836 | case $host_os in |
12837 | nonstopux*) version_type=nonstopux ;; |
12838 | *) |
12839 | if test "$lt_cv_prog_gnu_ld" = yes; then |
12840 | version_type=linux |
12841 | else |
12842 | version_type=irix |
12843 | fi ;; |
12844 | esac |
12845 | need_lib_prefix=no |
12846 | need_version=no |
12847 | soname_spec='${libname}${release}${shared_ext}$major' |
12848 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
12849 | case $host_os in |
12850 | irix5* | nonstopux*) |
12851 | libsuff= shlibsuff= |
12852 | ;; |
12853 | *) |
12854 | case $LD in # libtool.m4 will add one of these switches to LD |
12855 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
12856 | libsuff= shlibsuff= libmagic=32-bit;; |
12857 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
12858 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
12859 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
12860 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
12861 | *) libsuff= shlibsuff= libmagic=never-match;; |
12862 | esac |
12863 | ;; |
12864 | esac |
12865 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
12866 | shlibpath_overrides_runpath=no |
12867 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
12868 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
12869 | hardcode_into_libs=yes |
12870 | ;; |
12871 | |
12872 | # No shared lib support for Linux oldld, aout, or coff. |
12873 | linux*oldld* | linux*aout* | linux*coff*) |
12874 | dynamic_linker=no |
12875 | ;; |
12876 | |
12877 | # This must be Linux ELF. |
1dce02f2 |
12878 | linux* | k*bsd*-gnu) |
d9898ee8 |
12879 | version_type=linux |
12880 | need_lib_prefix=no |
12881 | need_version=no |
12882 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12883 | soname_spec='${libname}${release}${shared_ext}$major' |
12884 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
12885 | shlibpath_var=LD_LIBRARY_PATH |
12886 | shlibpath_overrides_runpath=no |
12887 | # This implies no fast_install, which is unacceptable. |
12888 | # Some rework will be needed to allow for fast_install |
12889 | # before this can be enabled. |
12890 | hardcode_into_libs=yes |
12891 | |
d9898ee8 |
12892 | # Append ld.so.conf contents to the search path |
12893 | if test -f /etc/ld.so.conf; then |
1dce02f2 |
12894 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
12895 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
d9898ee8 |
12896 | fi |
12897 | |
12898 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
12899 | # powerpc, because MkLinux only supported shared libraries with the |
12900 | # GNU dynamic linker. Since this was broken with cross compilers, |
12901 | # most powerpc-linux boxes support dynamic linking these days and |
12902 | # people can always --disable-shared, the test was removed, and we |
12903 | # assume the GNU/Linux dynamic linker is in use. |
12904 | dynamic_linker='GNU/Linux ld.so' |
12905 | ;; |
12906 | |
1dce02f2 |
12907 | netbsdelf*-gnu) |
d9898ee8 |
12908 | version_type=linux |
12909 | need_lib_prefix=no |
12910 | need_version=no |
12911 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
12912 | soname_spec='${libname}${release}${shared_ext}$major' |
12913 | shlibpath_var=LD_LIBRARY_PATH |
12914 | shlibpath_overrides_runpath=no |
12915 | hardcode_into_libs=yes |
1dce02f2 |
12916 | dynamic_linker='NetBSD ld.elf_so' |
d9898ee8 |
12917 | ;; |
12918 | |
12919 | netbsd*) |
12920 | version_type=sunos |
12921 | need_lib_prefix=no |
12922 | need_version=no |
12923 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
12924 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
12925 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
12926 | dynamic_linker='NetBSD (a.out) ld.so' |
12927 | else |
12928 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
12929 | soname_spec='${libname}${release}${shared_ext}$major' |
12930 | dynamic_linker='NetBSD ld.elf_so' |
12931 | fi |
12932 | shlibpath_var=LD_LIBRARY_PATH |
12933 | shlibpath_overrides_runpath=yes |
12934 | hardcode_into_libs=yes |
12935 | ;; |
12936 | |
12937 | newsos6) |
12938 | version_type=linux |
12939 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12940 | shlibpath_var=LD_LIBRARY_PATH |
12941 | shlibpath_overrides_runpath=yes |
12942 | ;; |
12943 | |
12944 | nto-qnx*) |
12945 | version_type=linux |
12946 | need_lib_prefix=no |
12947 | need_version=no |
12948 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12949 | soname_spec='${libname}${release}${shared_ext}$major' |
12950 | shlibpath_var=LD_LIBRARY_PATH |
12951 | shlibpath_overrides_runpath=yes |
12952 | ;; |
12953 | |
12954 | openbsd*) |
12955 | version_type=sunos |
12956 | sys_lib_dlsearch_path_spec="/usr/lib" |
12957 | need_lib_prefix=no |
12958 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
12959 | case $host_os in |
12960 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
12961 | *) need_version=no ;; |
12962 | esac |
12963 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
12964 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
12965 | shlibpath_var=LD_LIBRARY_PATH |
12966 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
12967 | case $host_os in |
12968 | openbsd2.[89] | openbsd2.[89].*) |
12969 | shlibpath_overrides_runpath=no |
12970 | ;; |
12971 | *) |
12972 | shlibpath_overrides_runpath=yes |
12973 | ;; |
12974 | esac |
12975 | else |
12976 | shlibpath_overrides_runpath=yes |
12977 | fi |
12978 | ;; |
12979 | |
12980 | os2*) |
12981 | libname_spec='$name' |
12982 | shrext_cmds=".dll" |
12983 | need_lib_prefix=no |
12984 | library_names_spec='$libname${shared_ext} $libname.a' |
12985 | dynamic_linker='OS/2 ld.exe' |
12986 | shlibpath_var=LIBPATH |
12987 | ;; |
12988 | |
12989 | osf3* | osf4* | osf5*) |
12990 | version_type=osf |
12991 | need_lib_prefix=no |
12992 | need_version=no |
12993 | soname_spec='${libname}${release}${shared_ext}$major' |
12994 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12995 | shlibpath_var=LD_LIBRARY_PATH |
12996 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
12997 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
12998 | ;; |
12999 | |
13000 | solaris*) |
13001 | version_type=linux |
13002 | need_lib_prefix=no |
13003 | need_version=no |
13004 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13005 | soname_spec='${libname}${release}${shared_ext}$major' |
13006 | shlibpath_var=LD_LIBRARY_PATH |
13007 | shlibpath_overrides_runpath=yes |
13008 | hardcode_into_libs=yes |
13009 | # ldd complains unless libraries are executable |
13010 | postinstall_cmds='chmod +x $lib' |
13011 | ;; |
13012 | |
13013 | sunos4*) |
13014 | version_type=sunos |
13015 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
13016 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
13017 | shlibpath_var=LD_LIBRARY_PATH |
13018 | shlibpath_overrides_runpath=yes |
13019 | if test "$with_gnu_ld" = yes; then |
13020 | need_lib_prefix=no |
13021 | fi |
13022 | need_version=yes |
13023 | ;; |
13024 | |
13025 | sysv4 | sysv4.3*) |
13026 | version_type=linux |
13027 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13028 | soname_spec='${libname}${release}${shared_ext}$major' |
13029 | shlibpath_var=LD_LIBRARY_PATH |
13030 | case $host_vendor in |
13031 | sni) |
13032 | shlibpath_overrides_runpath=no |
13033 | need_lib_prefix=no |
13034 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
13035 | runpath_var=LD_RUN_PATH |
13036 | ;; |
13037 | siemens) |
13038 | need_lib_prefix=no |
13039 | ;; |
13040 | motorola) |
13041 | need_lib_prefix=no |
13042 | need_version=no |
13043 | shlibpath_overrides_runpath=no |
13044 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
13045 | ;; |
13046 | esac |
13047 | ;; |
13048 | |
13049 | sysv4*MP*) |
13050 | if test -d /usr/nec ;then |
13051 | version_type=linux |
13052 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
13053 | soname_spec='$libname${shared_ext}.$major' |
13054 | shlibpath_var=LD_LIBRARY_PATH |
13055 | fi |
13056 | ;; |
13057 | |
13058 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
13059 | version_type=freebsd-elf |
13060 | need_lib_prefix=no |
13061 | need_version=no |
13062 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
13063 | soname_spec='${libname}${release}${shared_ext}$major' |
13064 | shlibpath_var=LD_LIBRARY_PATH |
13065 | hardcode_into_libs=yes |
13066 | if test "$with_gnu_ld" = yes; then |
13067 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
13068 | shlibpath_overrides_runpath=no |
13069 | else |
13070 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
13071 | shlibpath_overrides_runpath=yes |
13072 | case $host_os in |
13073 | sco3.2v5*) |
13074 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
13075 | ;; |
13076 | esac |
13077 | fi |
13078 | sys_lib_dlsearch_path_spec='/usr/lib' |
13079 | ;; |
13080 | |
13081 | uts4*) |
13082 | version_type=linux |
13083 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13084 | soname_spec='${libname}${release}${shared_ext}$major' |
13085 | shlibpath_var=LD_LIBRARY_PATH |
13086 | ;; |
13087 | |
13088 | *) |
13089 | dynamic_linker=no |
13090 | ;; |
13091 | esac |
dd184caf |
13092 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
13093 | echo "${ECHO_T}$dynamic_linker" >&6; } |
d9898ee8 |
13094 | test "$dynamic_linker" = no && can_build_shared=no |
13095 | |
13096 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
13097 | if test "$GCC" = yes; then |
13098 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
13099 | fi |
13100 | |
dd184caf |
13101 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
13102 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
d9898ee8 |
13103 | hardcode_action_CXX= |
13104 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ |
13105 | test -n "$runpath_var_CXX" || \ |
13106 | test "X$hardcode_automatic_CXX" = "Xyes" ; then |
13107 | |
13108 | # We can hardcode non-existant directories. |
13109 | if test "$hardcode_direct_CXX" != no && |
13110 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
13111 | # have to relink, otherwise we might link with an installed library |
13112 | # when we should be linking with a yet-to-be-installed one |
13113 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
13114 | test "$hardcode_minus_L_CXX" != no; then |
13115 | # Linking always hardcodes the temporary library directory. |
13116 | hardcode_action_CXX=relink |
13117 | else |
13118 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
13119 | hardcode_action_CXX=immediate |
13120 | fi |
13121 | else |
13122 | # We cannot hardcode anything, or else we can only hardcode existing |
13123 | # directories. |
13124 | hardcode_action_CXX=unsupported |
13125 | fi |
dd184caf |
13126 | { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
13127 | echo "${ECHO_T}$hardcode_action_CXX" >&6; } |
d9898ee8 |
13128 | |
13129 | if test "$hardcode_action_CXX" = relink; then |
13130 | # Fast installation is not supported |
13131 | enable_fast_install=no |
13132 | elif test "$shlibpath_overrides_runpath" = yes || |
13133 | test "$enable_shared" = no; then |
13134 | # Fast installation is not necessary |
13135 | enable_fast_install=needless |
13136 | fi |
13137 | |
13138 | |
13139 | # The else clause should only fire when bootstrapping the |
13140 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
13141 | # with your package, and you will get complaints that there are |
13142 | # no rules to generate ltmain.sh. |
13143 | if test -f "$ltmain"; then |
13144 | # See if we are running on zsh, and set the options which allow our commands through |
13145 | # without removal of \ escapes. |
13146 | if test -n "${ZSH_VERSION+set}" ; then |
13147 | setopt NO_GLOB_SUBST |
13148 | fi |
13149 | # Now quote all the things that may contain metacharacters while being |
13150 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
13151 | # variables and quote the copies for generation of the libtool script. |
13152 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
13153 | SED SHELL STRIP \ |
13154 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
13155 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
13156 | deplibs_check_method reload_flag reload_cmds need_locks \ |
13157 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
13158 | lt_cv_sys_global_symbol_to_c_name_address \ |
13159 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
13160 | old_postinstall_cmds old_postuninstall_cmds \ |
13161 | compiler_CXX \ |
13162 | CC_CXX \ |
13163 | LD_CXX \ |
13164 | lt_prog_compiler_wl_CXX \ |
13165 | lt_prog_compiler_pic_CXX \ |
13166 | lt_prog_compiler_static_CXX \ |
13167 | lt_prog_compiler_no_builtin_flag_CXX \ |
13168 | export_dynamic_flag_spec_CXX \ |
13169 | thread_safe_flag_spec_CXX \ |
13170 | whole_archive_flag_spec_CXX \ |
13171 | enable_shared_with_static_runtimes_CXX \ |
13172 | old_archive_cmds_CXX \ |
13173 | old_archive_from_new_cmds_CXX \ |
13174 | predep_objects_CXX \ |
13175 | postdep_objects_CXX \ |
13176 | predeps_CXX \ |
13177 | postdeps_CXX \ |
13178 | compiler_lib_search_path_CXX \ |
13179 | archive_cmds_CXX \ |
13180 | archive_expsym_cmds_CXX \ |
13181 | postinstall_cmds_CXX \ |
13182 | postuninstall_cmds_CXX \ |
13183 | old_archive_from_expsyms_cmds_CXX \ |
13184 | allow_undefined_flag_CXX \ |
13185 | no_undefined_flag_CXX \ |
13186 | export_symbols_cmds_CXX \ |
13187 | hardcode_libdir_flag_spec_CXX \ |
13188 | hardcode_libdir_flag_spec_ld_CXX \ |
13189 | hardcode_libdir_separator_CXX \ |
13190 | hardcode_automatic_CXX \ |
13191 | module_cmds_CXX \ |
13192 | module_expsym_cmds_CXX \ |
13193 | lt_cv_prog_compiler_c_o_CXX \ |
13194 | exclude_expsyms_CXX \ |
13195 | include_expsyms_CXX; do |
13196 | |
13197 | case $var in |
13198 | old_archive_cmds_CXX | \ |
13199 | old_archive_from_new_cmds_CXX | \ |
13200 | archive_cmds_CXX | \ |
13201 | archive_expsym_cmds_CXX | \ |
13202 | module_cmds_CXX | \ |
13203 | module_expsym_cmds_CXX | \ |
13204 | old_archive_from_expsyms_cmds_CXX | \ |
13205 | export_symbols_cmds_CXX | \ |
13206 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
13207 | postinstall_cmds | postuninstall_cmds | \ |
13208 | old_postinstall_cmds | old_postuninstall_cmds | \ |
13209 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
13210 | # Double-quote double-evaled strings. |
13211 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
13212 | ;; |
13213 | *) |
13214 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
13215 | ;; |
13216 | esac |
13217 | done |
13218 | |
13219 | case $lt_echo in |
13220 | *'\$0 --fallback-echo"') |
13221 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
13222 | ;; |
13223 | esac |
13224 | |
13225 | cfgfile="$ofile" |
13226 | |
13227 | cat <<__EOF__ >> "$cfgfile" |
13228 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
13229 | |
13230 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
13231 | |
13232 | # Shell to use when invoking shell scripts. |
13233 | SHELL=$lt_SHELL |
13234 | |
13235 | # Whether or not to build shared libraries. |
13236 | build_libtool_libs=$enable_shared |
13237 | |
13238 | # Whether or not to build static libraries. |
13239 | build_old_libs=$enable_static |
13240 | |
13241 | # Whether or not to add -lc for building shared libraries. |
13242 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
13243 | |
13244 | # Whether or not to disallow shared libs when runtime libs are static |
13245 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
13246 | |
13247 | # Whether or not to optimize for fast installation. |
13248 | fast_install=$enable_fast_install |
13249 | |
13250 | # The host system. |
13251 | host_alias=$host_alias |
13252 | host=$host |
13253 | host_os=$host_os |
13254 | |
13255 | # The build system. |
13256 | build_alias=$build_alias |
13257 | build=$build |
13258 | build_os=$build_os |
13259 | |
13260 | # An echo program that does not interpret backslashes. |
13261 | echo=$lt_echo |
13262 | |
13263 | # The archiver. |
13264 | AR=$lt_AR |
13265 | AR_FLAGS=$lt_AR_FLAGS |
13266 | |
13267 | # A C compiler. |
13268 | LTCC=$lt_LTCC |
13269 | |
13270 | # LTCC compiler flags. |
13271 | LTCFLAGS=$lt_LTCFLAGS |
13272 | |
13273 | # A language-specific compiler. |
13274 | CC=$lt_compiler_CXX |
13275 | |
13276 | # Is the compiler the GNU C compiler? |
13277 | with_gcc=$GCC_CXX |
13278 | |
d9898ee8 |
13279 | # An ERE matcher. |
13280 | EGREP=$lt_EGREP |
13281 | |
13282 | # The linker used to build libraries. |
13283 | LD=$lt_LD_CXX |
13284 | |
13285 | # Whether we need hard or soft links. |
13286 | LN_S=$lt_LN_S |
13287 | |
13288 | # A BSD-compatible nm program. |
13289 | NM=$lt_NM |
13290 | |
13291 | # A symbol stripping program |
13292 | STRIP=$lt_STRIP |
13293 | |
13294 | # Used to examine libraries when file_magic_cmd begins "file" |
13295 | MAGIC_CMD=$MAGIC_CMD |
13296 | |
13297 | # Used on cygwin: DLL creation program. |
13298 | DLLTOOL="$DLLTOOL" |
13299 | |
13300 | # Used on cygwin: object dumper. |
13301 | OBJDUMP="$OBJDUMP" |
13302 | |
13303 | # Used on cygwin: assembler. |
13304 | AS="$AS" |
13305 | |
13306 | # The name of the directory that contains temporary libtool files. |
13307 | objdir=$objdir |
13308 | |
13309 | # How to create reloadable object files. |
13310 | reload_flag=$lt_reload_flag |
13311 | reload_cmds=$lt_reload_cmds |
13312 | |
13313 | # How to pass a linker flag through the compiler. |
13314 | wl=$lt_lt_prog_compiler_wl_CXX |
13315 | |
13316 | # Object file suffix (normally "o"). |
13317 | objext="$ac_objext" |
13318 | |
13319 | # Old archive suffix (normally "a"). |
13320 | libext="$libext" |
13321 | |
13322 | # Shared library suffix (normally ".so"). |
13323 | shrext_cmds='$shrext_cmds' |
13324 | |
13325 | # Executable file suffix (normally ""). |
13326 | exeext="$exeext" |
13327 | |
13328 | # Additional compiler flags for building library objects. |
13329 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
13330 | pic_mode=$pic_mode |
13331 | |
13332 | # What is the maximum length of a command? |
13333 | max_cmd_len=$lt_cv_sys_max_cmd_len |
13334 | |
13335 | # Does compiler simultaneously support -c and -o options? |
13336 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
13337 | |
13338 | # Must we lock files when doing compilation? |
13339 | need_locks=$lt_need_locks |
13340 | |
13341 | # Do we need the lib prefix for modules? |
13342 | need_lib_prefix=$need_lib_prefix |
13343 | |
13344 | # Do we need a version for libraries? |
13345 | need_version=$need_version |
13346 | |
13347 | # Whether dlopen is supported. |
13348 | dlopen_support=$enable_dlopen |
13349 | |
13350 | # Whether dlopen of programs is supported. |
13351 | dlopen_self=$enable_dlopen_self |
13352 | |
13353 | # Whether dlopen of statically linked programs is supported. |
13354 | dlopen_self_static=$enable_dlopen_self_static |
13355 | |
13356 | # Compiler flag to prevent dynamic linking. |
13357 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
13358 | |
13359 | # Compiler flag to turn off builtin functions. |
13360 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
13361 | |
13362 | # Compiler flag to allow reflexive dlopens. |
13363 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
13364 | |
13365 | # Compiler flag to generate shared objects directly from archives. |
13366 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
13367 | |
13368 | # Compiler flag to generate thread-safe objects. |
13369 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX |
13370 | |
13371 | # Library versioning type. |
13372 | version_type=$version_type |
13373 | |
13374 | # Format of library name prefix. |
13375 | libname_spec=$lt_libname_spec |
13376 | |
13377 | # List of archive names. First name is the real one, the rest are links. |
13378 | # The last name is the one that the linker finds with -lNAME. |
13379 | library_names_spec=$lt_library_names_spec |
13380 | |
13381 | # The coded name of the library, if different from the real name. |
13382 | soname_spec=$lt_soname_spec |
13383 | |
13384 | # Commands used to build and install an old-style archive. |
13385 | RANLIB=$lt_RANLIB |
13386 | old_archive_cmds=$lt_old_archive_cmds_CXX |
13387 | old_postinstall_cmds=$lt_old_postinstall_cmds |
13388 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
13389 | |
13390 | # Create an old-style archive from a shared archive. |
13391 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
13392 | |
13393 | # Create a temporary old-style archive to link instead of a shared archive. |
13394 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
13395 | |
13396 | # Commands used to build and install a shared archive. |
13397 | archive_cmds=$lt_archive_cmds_CXX |
13398 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
13399 | postinstall_cmds=$lt_postinstall_cmds |
13400 | postuninstall_cmds=$lt_postuninstall_cmds |
13401 | |
13402 | # Commands used to build a loadable module (assumed same as above if empty) |
13403 | module_cmds=$lt_module_cmds_CXX |
13404 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
13405 | |
13406 | # Commands to strip libraries. |
13407 | old_striplib=$lt_old_striplib |
13408 | striplib=$lt_striplib |
13409 | |
13410 | # Dependencies to place before the objects being linked to create a |
13411 | # shared library. |
dd184caf |
13412 | predep_objects=$lt_predep_objects_CXX |
d9898ee8 |
13413 | |
13414 | # Dependencies to place after the objects being linked to create a |
13415 | # shared library. |
dd184caf |
13416 | postdep_objects=$lt_postdep_objects_CXX |
d9898ee8 |
13417 | |
13418 | # Dependencies to place before the objects being linked to create a |
13419 | # shared library. |
13420 | predeps=$lt_predeps_CXX |
13421 | |
13422 | # Dependencies to place after the objects being linked to create a |
13423 | # shared library. |
13424 | postdeps=$lt_postdeps_CXX |
13425 | |
13426 | # The library search path used internally by the compiler when linking |
13427 | # a shared library. |
dd184caf |
13428 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
d9898ee8 |
13429 | |
13430 | # Method to check whether dependent libraries are shared objects. |
13431 | deplibs_check_method=$lt_deplibs_check_method |
13432 | |
13433 | # Command to use when deplibs_check_method == file_magic. |
13434 | file_magic_cmd=$lt_file_magic_cmd |
13435 | |
13436 | # Flag that allows shared libraries with undefined symbols to be built. |
13437 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
13438 | |
13439 | # Flag that forces no undefined symbols. |
13440 | no_undefined_flag=$lt_no_undefined_flag_CXX |
13441 | |
13442 | # Commands used to finish a libtool library installation in a directory. |
13443 | finish_cmds=$lt_finish_cmds |
13444 | |
13445 | # Same as above, but a single script fragment to be evaled but not shown. |
13446 | finish_eval=$lt_finish_eval |
13447 | |
13448 | # Take the output of nm and produce a listing of raw symbols and C names. |
13449 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
13450 | |
13451 | # Transform the output of nm in a proper C declaration |
13452 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
13453 | |
13454 | # Transform the output of nm in a C name address pair |
13455 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
13456 | |
13457 | # This is the shared library runtime path variable. |
13458 | runpath_var=$runpath_var |
13459 | |
13460 | # This is the shared library path variable. |
13461 | shlibpath_var=$shlibpath_var |
13462 | |
13463 | # Is shlibpath searched before the hard-coded library search path? |
13464 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
13465 | |
13466 | # How to hardcode a shared library path into an executable. |
13467 | hardcode_action=$hardcode_action_CXX |
13468 | |
13469 | # Whether we should hardcode library paths into libraries. |
13470 | hardcode_into_libs=$hardcode_into_libs |
13471 | |
13472 | # Flag to hardcode \$libdir into a binary during linking. |
13473 | # This must work even if \$libdir does not exist. |
13474 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
13475 | |
13476 | # If ld is used when linking, flag to hardcode \$libdir into |
13477 | # a binary during linking. This must work even if \$libdir does |
13478 | # not exist. |
13479 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
13480 | |
13481 | # Whether we need a single -rpath flag with a separated argument. |
13482 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
13483 | |
13484 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
13485 | # resulting binary. |
13486 | hardcode_direct=$hardcode_direct_CXX |
13487 | |
13488 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
13489 | # resulting binary. |
13490 | hardcode_minus_L=$hardcode_minus_L_CXX |
13491 | |
13492 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
13493 | # the resulting binary. |
13494 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
13495 | |
13496 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
13497 | # and all subsequent libraries and executables linked against it. |
13498 | hardcode_automatic=$hardcode_automatic_CXX |
13499 | |
13500 | # Variables whose values should be saved in libtool wrapper scripts and |
13501 | # restored at relink time. |
13502 | variables_saved_for_relink="$variables_saved_for_relink" |
13503 | |
13504 | # Whether libtool must link a program against all its dependency libraries. |
13505 | link_all_deplibs=$link_all_deplibs_CXX |
13506 | |
13507 | # Compile-time system search path for libraries |
dd184caf |
13508 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
d9898ee8 |
13509 | |
13510 | # Run-time system search path for libraries |
13511 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
13512 | |
13513 | # Fix the shell variable \$srcfile for the compiler. |
13514 | fix_srcfile_path="$fix_srcfile_path_CXX" |
13515 | |
13516 | # Set to yes if exported symbols are required. |
13517 | always_export_symbols=$always_export_symbols_CXX |
13518 | |
13519 | # The commands to list exported symbols. |
13520 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
13521 | |
13522 | # The commands to extract the exported symbol list from a shared archive. |
13523 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
13524 | |
13525 | # Symbols that should not be listed in the preloaded symbols. |
13526 | exclude_expsyms=$lt_exclude_expsyms_CXX |
13527 | |
13528 | # Symbols that must always be exported. |
13529 | include_expsyms=$lt_include_expsyms_CXX |
13530 | |
13531 | # ### END LIBTOOL TAG CONFIG: $tagname |
13532 | |
13533 | __EOF__ |
13534 | |
13535 | |
13536 | else |
13537 | # If there is no Makefile yet, we rely on a make rule to execute |
13538 | # `config.status --recheck' to rerun these tests and create the |
13539 | # libtool script then. |
13540 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
13541 | if test -f "$ltmain_in"; then |
13542 | test -f Makefile && make "$ltmain" |
13543 | fi |
13544 | fi |
13545 | |
13546 | |
13547 | ac_ext=c |
13548 | ac_cpp='$CPP $CPPFLAGS' |
13549 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
13550 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
13551 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
13552 | |
13553 | CC=$lt_save_CC |
13554 | LDCXX=$LD |
13555 | LD=$lt_save_LD |
13556 | GCC=$lt_save_GCC |
13557 | with_gnu_ldcxx=$with_gnu_ld |
13558 | with_gnu_ld=$lt_save_with_gnu_ld |
13559 | lt_cv_path_LDCXX=$lt_cv_path_LD |
13560 | lt_cv_path_LD=$lt_save_path_LD |
13561 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
13562 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
13563 | |
13564 | else |
13565 | tagname="" |
13566 | fi |
13567 | ;; |
13568 | |
13569 | F77) |
13570 | if test -n "$F77" && test "X$F77" != "Xno"; then |
13571 | |
13572 | ac_ext=f |
13573 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
13574 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
13575 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
13576 | |
13577 | |
13578 | archive_cmds_need_lc_F77=no |
13579 | allow_undefined_flag_F77= |
13580 | always_export_symbols_F77=no |
13581 | archive_expsym_cmds_F77= |
13582 | export_dynamic_flag_spec_F77= |
13583 | hardcode_direct_F77=no |
13584 | hardcode_libdir_flag_spec_F77= |
13585 | hardcode_libdir_flag_spec_ld_F77= |
13586 | hardcode_libdir_separator_F77= |
13587 | hardcode_minus_L_F77=no |
13588 | hardcode_automatic_F77=no |
13589 | module_cmds_F77= |
13590 | module_expsym_cmds_F77= |
13591 | link_all_deplibs_F77=unknown |
13592 | old_archive_cmds_F77=$old_archive_cmds |
13593 | no_undefined_flag_F77= |
13594 | whole_archive_flag_spec_F77= |
13595 | enable_shared_with_static_runtimes_F77=no |
13596 | |
13597 | # Source file extension for f77 test sources. |
13598 | ac_ext=f |
13599 | |
13600 | # Object file extension for compiled f77 test sources. |
13601 | objext=o |
13602 | objext_F77=$objext |
13603 | |
13604 | # Code to be used in simple compile tests |
13605 | lt_simple_compile_test_code=" subroutine t\n return\n end\n" |
13606 | |
13607 | # Code to be used in simple link tests |
13608 | lt_simple_link_test_code=" program t\n end\n" |
13609 | |
13610 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
13611 | |
13612 | # If no C compiler was specified, use CC. |
13613 | LTCC=${LTCC-"$CC"} |
13614 | |
13615 | # If no C compiler flags were specified, use CFLAGS. |
13616 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
13617 | |
13618 | # Allow CC to be a program name with arguments. |
13619 | compiler=$CC |
13620 | |
13621 | |
13622 | # save warnings/boilerplate of simple test code |
13623 | ac_outfile=conftest.$ac_objext |
13624 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
13625 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
13626 | _lt_compiler_boilerplate=`cat conftest.err` |
13627 | $rm conftest* |
13628 | |
13629 | ac_outfile=conftest.$ac_objext |
13630 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
13631 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
13632 | _lt_linker_boilerplate=`cat conftest.err` |
13633 | $rm conftest* |
13634 | |
13635 | |
13636 | # Allow CC to be a program name with arguments. |
13637 | lt_save_CC="$CC" |
13638 | CC=${F77-"f77"} |
13639 | compiler=$CC |
13640 | compiler_F77=$CC |
13641 | for cc_temp in $compiler""; do |
13642 | case $cc_temp in |
13643 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
13644 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
13645 | \-*) ;; |
13646 | *) break;; |
13647 | esac |
13648 | done |
13649 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
13650 | |
13651 | |
dd184caf |
13652 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
13653 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
13654 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
13655 | echo "${ECHO_T}$can_build_shared" >&6; } |
d9898ee8 |
13656 | |
dd184caf |
13657 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
13658 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
d9898ee8 |
13659 | test "$can_build_shared" = "no" && enable_shared=no |
13660 | |
13661 | # On AIX, shared libraries and static libraries use the same namespace, and |
13662 | # are all built from PIC. |
13663 | case $host_os in |
13664 | aix3*) |
13665 | test "$enable_shared" = yes && enable_static=no |
13666 | if test -n "$RANLIB"; then |
13667 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
13668 | postinstall_cmds='$RANLIB $lib' |
13669 | fi |
13670 | ;; |
13671 | aix4* | aix5*) |
13672 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
13673 | test "$enable_shared" = yes && enable_static=no |
13674 | fi |
13675 | ;; |
13676 | esac |
dd184caf |
13677 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
13678 | echo "${ECHO_T}$enable_shared" >&6; } |
d9898ee8 |
13679 | |
dd184caf |
13680 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
13681 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
d9898ee8 |
13682 | # Make sure either enable_shared or enable_static is yes. |
13683 | test "$enable_shared" = yes || enable_static=yes |
dd184caf |
13684 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
13685 | echo "${ECHO_T}$enable_static" >&6; } |
d9898ee8 |
13686 | |
13687 | GCC_F77="$G77" |
13688 | LD_F77="$LD" |
13689 | |
13690 | lt_prog_compiler_wl_F77= |
13691 | lt_prog_compiler_pic_F77= |
13692 | lt_prog_compiler_static_F77= |
13693 | |
dd184caf |
13694 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
13695 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
d9898ee8 |
13696 | |
13697 | if test "$GCC" = yes; then |
13698 | lt_prog_compiler_wl_F77='-Wl,' |
13699 | lt_prog_compiler_static_F77='-static' |
13700 | |
13701 | case $host_os in |
13702 | aix*) |
13703 | # All AIX code is PIC. |
13704 | if test "$host_cpu" = ia64; then |
13705 | # AIX 5 now supports IA64 processor |
13706 | lt_prog_compiler_static_F77='-Bstatic' |
13707 | fi |
13708 | ;; |
13709 | |
13710 | amigaos*) |
13711 | # FIXME: we need at least 68020 code to build shared libraries, but |
13712 | # adding the `-m68020' flag to GCC prevents building anything better, |
13713 | # like `-m68040'. |
13714 | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' |
13715 | ;; |
13716 | |
13717 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
13718 | # PIC is the default for these OSes. |
13719 | ;; |
13720 | |
13721 | mingw* | pw32* | os2*) |
13722 | # This hack is so that the source file can tell whether it is being |
13723 | # built for inclusion in a dll (and should export symbols for example). |
13724 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
13725 | ;; |
13726 | |
13727 | darwin* | rhapsody*) |
13728 | # PIC is the default on this platform |
13729 | # Common symbols not allowed in MH_DYLIB files |
13730 | lt_prog_compiler_pic_F77='-fno-common' |
13731 | ;; |
13732 | |
13733 | interix3*) |
13734 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
13735 | # Instead, we relocate shared libraries at runtime. |
13736 | ;; |
13737 | |
13738 | msdosdjgpp*) |
13739 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
13740 | # on systems that don't support them. |
13741 | lt_prog_compiler_can_build_shared_F77=no |
13742 | enable_shared=no |
13743 | ;; |
13744 | |
13745 | sysv4*MP*) |
13746 | if test -d /usr/nec; then |
13747 | lt_prog_compiler_pic_F77=-Kconform_pic |
13748 | fi |
13749 | ;; |
13750 | |
13751 | hpux*) |
13752 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
13753 | # not for PA HP-UX. |
13754 | case $host_cpu in |
13755 | hppa*64*|ia64*) |
13756 | # +Z the default |
13757 | ;; |
13758 | *) |
13759 | lt_prog_compiler_pic_F77='-fPIC' |
13760 | ;; |
13761 | esac |
13762 | ;; |
13763 | |
13764 | *) |
13765 | lt_prog_compiler_pic_F77='-fPIC' |
13766 | ;; |
13767 | esac |
13768 | else |
13769 | # PORTME Check for flag to pass linker flags through the system compiler. |
13770 | case $host_os in |
13771 | aix*) |
13772 | lt_prog_compiler_wl_F77='-Wl,' |
13773 | if test "$host_cpu" = ia64; then |
13774 | # AIX 5 now supports IA64 processor |
13775 | lt_prog_compiler_static_F77='-Bstatic' |
13776 | else |
13777 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' |
13778 | fi |
13779 | ;; |
13780 | darwin*) |
13781 | # PIC is the default on this platform |
13782 | # Common symbols not allowed in MH_DYLIB files |
13783 | case $cc_basename in |
13784 | xlc*) |
13785 | lt_prog_compiler_pic_F77='-qnocommon' |
13786 | lt_prog_compiler_wl_F77='-Wl,' |
13787 | ;; |
13788 | esac |
13789 | ;; |
13790 | |
13791 | mingw* | pw32* | os2*) |
13792 | # This hack is so that the source file can tell whether it is being |
13793 | # built for inclusion in a dll (and should export symbols for example). |
13794 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
13795 | ;; |
13796 | |
13797 | hpux9* | hpux10* | hpux11*) |
13798 | lt_prog_compiler_wl_F77='-Wl,' |
13799 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
13800 | # not for PA HP-UX. |
13801 | case $host_cpu in |
13802 | hppa*64*|ia64*) |
13803 | # +Z the default |
13804 | ;; |
13805 | *) |
13806 | lt_prog_compiler_pic_F77='+Z' |
13807 | ;; |
13808 | esac |
13809 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
13810 | lt_prog_compiler_static_F77='${wl}-a ${wl}archive' |
13811 | ;; |
13812 | |
13813 | irix5* | irix6* | nonstopux*) |
13814 | lt_prog_compiler_wl_F77='-Wl,' |
13815 | # PIC (with -KPIC) is the default. |
13816 | lt_prog_compiler_static_F77='-non_shared' |
13817 | ;; |
13818 | |
13819 | newsos6) |
13820 | lt_prog_compiler_pic_F77='-KPIC' |
13821 | lt_prog_compiler_static_F77='-Bstatic' |
13822 | ;; |
13823 | |
1dce02f2 |
13824 | linux* | k*bsd*-gnu) |
d9898ee8 |
13825 | case $cc_basename in |
13826 | icc* | ecc*) |
13827 | lt_prog_compiler_wl_F77='-Wl,' |
13828 | lt_prog_compiler_pic_F77='-KPIC' |
13829 | lt_prog_compiler_static_F77='-static' |
13830 | ;; |
13831 | pgcc* | pgf77* | pgf90* | pgf95*) |
13832 | # Portland Group compilers (*not* the Pentium gcc compiler, |
13833 | # which looks to be a dead project) |
13834 | lt_prog_compiler_wl_F77='-Wl,' |
13835 | lt_prog_compiler_pic_F77='-fpic' |
13836 | lt_prog_compiler_static_F77='-Bstatic' |
13837 | ;; |
13838 | ccc*) |
13839 | lt_prog_compiler_wl_F77='-Wl,' |
13840 | # All Alpha code is PIC. |
13841 | lt_prog_compiler_static_F77='-non_shared' |
13842 | ;; |
13843 | esac |
13844 | ;; |
13845 | |
13846 | osf3* | osf4* | osf5*) |
13847 | lt_prog_compiler_wl_F77='-Wl,' |
13848 | # All OSF/1 code is PIC. |
13849 | lt_prog_compiler_static_F77='-non_shared' |
13850 | ;; |
13851 | |
13852 | solaris*) |
13853 | lt_prog_compiler_pic_F77='-KPIC' |
13854 | lt_prog_compiler_static_F77='-Bstatic' |
13855 | case $cc_basename in |
13856 | f77* | f90* | f95*) |
13857 | lt_prog_compiler_wl_F77='-Qoption ld ';; |
13858 | *) |
13859 | lt_prog_compiler_wl_F77='-Wl,';; |
13860 | esac |
13861 | ;; |
13862 | |
13863 | sunos4*) |
13864 | lt_prog_compiler_wl_F77='-Qoption ld ' |
13865 | lt_prog_compiler_pic_F77='-PIC' |
13866 | lt_prog_compiler_static_F77='-Bstatic' |
13867 | ;; |
13868 | |
13869 | sysv4 | sysv4.2uw2* | sysv4.3*) |
13870 | lt_prog_compiler_wl_F77='-Wl,' |
13871 | lt_prog_compiler_pic_F77='-KPIC' |
13872 | lt_prog_compiler_static_F77='-Bstatic' |
13873 | ;; |
13874 | |
13875 | sysv4*MP*) |
13876 | if test -d /usr/nec ;then |
13877 | lt_prog_compiler_pic_F77='-Kconform_pic' |
13878 | lt_prog_compiler_static_F77='-Bstatic' |
13879 | fi |
13880 | ;; |
13881 | |
13882 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
13883 | lt_prog_compiler_wl_F77='-Wl,' |
13884 | lt_prog_compiler_pic_F77='-KPIC' |
13885 | lt_prog_compiler_static_F77='-Bstatic' |
13886 | ;; |
13887 | |
13888 | unicos*) |
13889 | lt_prog_compiler_wl_F77='-Wl,' |
13890 | lt_prog_compiler_can_build_shared_F77=no |
13891 | ;; |
13892 | |
13893 | uts4*) |
13894 | lt_prog_compiler_pic_F77='-pic' |
13895 | lt_prog_compiler_static_F77='-Bstatic' |
13896 | ;; |
13897 | |
13898 | *) |
13899 | lt_prog_compiler_can_build_shared_F77=no |
13900 | ;; |
13901 | esac |
13902 | fi |
13903 | |
dd184caf |
13904 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 |
13905 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } |
d9898ee8 |
13906 | |
13907 | # |
13908 | # Check to make sure the PIC flag actually works. |
13909 | # |
13910 | if test -n "$lt_prog_compiler_pic_F77"; then |
13911 | |
dd184caf |
13912 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 |
13913 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } |
d9898ee8 |
13914 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then |
13915 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13916 | else |
13917 | lt_prog_compiler_pic_works_F77=no |
13918 | ac_outfile=conftest.$ac_objext |
13919 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
13920 | lt_compiler_flag="$lt_prog_compiler_pic_F77" |
13921 | # Insert the option either (1) after the last *FLAGS variable, or |
13922 | # (2) before a word containing "conftest.", or (3) at the end. |
13923 | # Note that $ac_compile itself does not contain backslashes and begins |
13924 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
13925 | # The option is referenced via a variable to avoid confusing sed. |
13926 | lt_compile=`echo "$ac_compile" | $SED \ |
13927 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
13928 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
13929 | -e 's:$: $lt_compiler_flag:'` |
1dce02f2 |
13930 | (eval echo "\"\$as_me:13930: $lt_compile\"" >&5) |
d9898ee8 |
13931 | (eval "$lt_compile" 2>conftest.err) |
13932 | ac_status=$? |
13933 | cat conftest.err >&5 |
1dce02f2 |
13934 | echo "$as_me:13934: \$? = $ac_status" >&5 |
d9898ee8 |
13935 | if (exit $ac_status) && test -s "$ac_outfile"; then |
13936 | # The compiler can only warn and ignore the option if not recognized |
13937 | # So say no if there are warnings other than the usual output. |
13938 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
13939 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
13940 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
13941 | lt_prog_compiler_pic_works_F77=yes |
13942 | fi |
13943 | fi |
13944 | $rm conftest* |
13945 | |
13946 | fi |
dd184caf |
13947 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 |
13948 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } |
d9898ee8 |
13949 | |
13950 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then |
13951 | case $lt_prog_compiler_pic_F77 in |
13952 | "" | " "*) ;; |
13953 | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; |
13954 | esac |
13955 | else |
13956 | lt_prog_compiler_pic_F77= |
13957 | lt_prog_compiler_can_build_shared_F77=no |
13958 | fi |
13959 | |
13960 | fi |
13961 | case $host_os in |
13962 | # For platforms which do not support PIC, -DPIC is meaningless: |
13963 | *djgpp*) |
13964 | lt_prog_compiler_pic_F77= |
13965 | ;; |
13966 | *) |
13967 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" |
13968 | ;; |
13969 | esac |
13970 | |
13971 | # |
13972 | # Check to make sure the static flag actually works. |
13973 | # |
13974 | wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" |
dd184caf |
13975 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
13976 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
d9898ee8 |
13977 | if test "${lt_prog_compiler_static_works_F77+set}" = set; then |
13978 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13979 | else |
13980 | lt_prog_compiler_static_works_F77=no |
13981 | save_LDFLAGS="$LDFLAGS" |
13982 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
13983 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
13984 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
13985 | # The linker can only warn and ignore the option if not recognized |
13986 | # So say no if there are warnings |
13987 | if test -s conftest.err; then |
13988 | # Append any errors to the config.log. |
13989 | cat conftest.err 1>&5 |
13990 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
13991 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
13992 | if diff conftest.exp conftest.er2 >/dev/null; then |
13993 | lt_prog_compiler_static_works_F77=yes |
13994 | fi |
13995 | else |
13996 | lt_prog_compiler_static_works_F77=yes |
13997 | fi |
13998 | fi |
13999 | $rm conftest* |
14000 | LDFLAGS="$save_LDFLAGS" |
14001 | |
14002 | fi |
dd184caf |
14003 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 |
14004 | echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } |
d9898ee8 |
14005 | |
14006 | if test x"$lt_prog_compiler_static_works_F77" = xyes; then |
14007 | : |
14008 | else |
14009 | lt_prog_compiler_static_F77= |
14010 | fi |
14011 | |
14012 | |
dd184caf |
14013 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
14014 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
d9898ee8 |
14015 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then |
14016 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14017 | else |
14018 | lt_cv_prog_compiler_c_o_F77=no |
14019 | $rm -r conftest 2>/dev/null |
14020 | mkdir conftest |
14021 | cd conftest |
14022 | mkdir out |
14023 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
14024 | |
14025 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
14026 | # Insert the option either (1) after the last *FLAGS variable, or |
14027 | # (2) before a word containing "conftest.", or (3) at the end. |
14028 | # Note that $ac_compile itself does not contain backslashes and begins |
14029 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
14030 | lt_compile=`echo "$ac_compile" | $SED \ |
14031 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
14032 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
14033 | -e 's:$: $lt_compiler_flag:'` |
1dce02f2 |
14034 | (eval echo "\"\$as_me:14034: $lt_compile\"" >&5) |
d9898ee8 |
14035 | (eval "$lt_compile" 2>out/conftest.err) |
14036 | ac_status=$? |
14037 | cat out/conftest.err >&5 |
1dce02f2 |
14038 | echo "$as_me:14038: \$? = $ac_status" >&5 |
d9898ee8 |
14039 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
14040 | then |
14041 | # The compiler can only warn and ignore the option if not recognized |
14042 | # So say no if there are warnings |
14043 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
14044 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
14045 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
14046 | lt_cv_prog_compiler_c_o_F77=yes |
14047 | fi |
14048 | fi |
14049 | chmod u+w . 2>&5 |
14050 | $rm conftest* |
14051 | # SGI C++ compiler will create directory out/ii_files/ for |
14052 | # template instantiation |
14053 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
14054 | $rm out/* && rmdir out |
14055 | cd .. |
14056 | rmdir conftest |
14057 | $rm conftest* |
14058 | |
14059 | fi |
dd184caf |
14060 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 |
14061 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } |
d9898ee8 |
14062 | |
14063 | |
14064 | hard_links="nottested" |
14065 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then |
14066 | # do not overwrite the value of need_locks provided by the user |
dd184caf |
14067 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
14068 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
d9898ee8 |
14069 | hard_links=yes |
14070 | $rm conftest* |
14071 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
14072 | touch conftest.a |
14073 | ln conftest.a conftest.b 2>&5 || hard_links=no |
14074 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
dd184caf |
14075 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
14076 | echo "${ECHO_T}$hard_links" >&6; } |
d9898ee8 |
14077 | if test "$hard_links" = no; then |
14078 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
14079 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
14080 | need_locks=warn |
14081 | fi |
14082 | else |
14083 | need_locks=no |
14084 | fi |
14085 | |
dd184caf |
14086 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
14087 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
d9898ee8 |
14088 | |
14089 | runpath_var= |
14090 | allow_undefined_flag_F77= |
14091 | enable_shared_with_static_runtimes_F77=no |
14092 | archive_cmds_F77= |
14093 | archive_expsym_cmds_F77= |
14094 | old_archive_From_new_cmds_F77= |
14095 | old_archive_from_expsyms_cmds_F77= |
14096 | export_dynamic_flag_spec_F77= |
14097 | whole_archive_flag_spec_F77= |
14098 | thread_safe_flag_spec_F77= |
14099 | hardcode_libdir_flag_spec_F77= |
14100 | hardcode_libdir_flag_spec_ld_F77= |
14101 | hardcode_libdir_separator_F77= |
14102 | hardcode_direct_F77=no |
14103 | hardcode_minus_L_F77=no |
14104 | hardcode_shlibpath_var_F77=unsupported |
14105 | link_all_deplibs_F77=unknown |
14106 | hardcode_automatic_F77=no |
14107 | module_cmds_F77= |
14108 | module_expsym_cmds_F77= |
14109 | always_export_symbols_F77=no |
14110 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
14111 | # include_expsyms should be a list of space-separated symbols to be *always* |
14112 | # included in the symbol list |
14113 | include_expsyms_F77= |
14114 | # exclude_expsyms can be an extended regexp of symbols to exclude |
14115 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
14116 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
14117 | # as well as any symbol that contains `d'. |
14118 | exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" |
14119 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
14120 | # platforms (ab)use it in PIC code, but their linkers get confused if |
14121 | # the symbol is explicitly referenced. Since portable code cannot |
14122 | # rely on this symbol name, it's probably fine to never include it in |
14123 | # preloaded symbol tables. |
14124 | extract_expsyms_cmds= |
14125 | # Just being paranoid about ensuring that cc_basename is set. |
14126 | for cc_temp in $compiler""; do |
14127 | case $cc_temp in |
14128 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
14129 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
14130 | \-*) ;; |
14131 | *) break;; |
14132 | esac |
14133 | done |
14134 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
14135 | |
14136 | case $host_os in |
14137 | cygwin* | mingw* | pw32*) |
14138 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
14139 | # When not using gcc, we currently assume that we are using |
14140 | # Microsoft Visual C++. |
14141 | if test "$GCC" != yes; then |
14142 | with_gnu_ld=no |
14143 | fi |
14144 | ;; |
14145 | interix*) |
14146 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
14147 | with_gnu_ld=yes |
14148 | ;; |
14149 | openbsd*) |
14150 | with_gnu_ld=no |
14151 | ;; |
14152 | esac |
14153 | |
14154 | ld_shlibs_F77=yes |
14155 | if test "$with_gnu_ld" = yes; then |
14156 | # If archive_cmds runs LD, not CC, wlarc should be empty |
14157 | wlarc='${wl}' |
14158 | |
14159 | # Set some defaults for GNU ld with shared library support. These |
14160 | # are reset later if shared libraries are not supported. Putting them |
14161 | # here allows them to be overridden if necessary. |
14162 | runpath_var=LD_RUN_PATH |
14163 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' |
14164 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' |
14165 | # ancient GNU ld didn't support --whole-archive et. al. |
14166 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
14167 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
14168 | else |
14169 | whole_archive_flag_spec_F77= |
14170 | fi |
14171 | supports_anon_versioning=no |
14172 | case `$LD -v 2>/dev/null` in |
14173 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
14174 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
14175 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
14176 | *\ 2.11.*) ;; # other 2.11 versions |
14177 | *) supports_anon_versioning=yes ;; |
14178 | esac |
14179 | |
14180 | # See if GNU ld supports shared libraries. |
14181 | case $host_os in |
14182 | aix3* | aix4* | aix5*) |
14183 | # On AIX/PPC, the GNU linker is very broken |
14184 | if test "$host_cpu" != ia64; then |
14185 | ld_shlibs_F77=no |
14186 | cat <<EOF 1>&2 |
14187 | |
14188 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
14189 | *** to be unable to reliably create shared libraries on AIX. |
14190 | *** Therefore, libtool is disabling shared libraries support. If you |
14191 | *** really care for shared libraries, you may want to modify your PATH |
14192 | *** so that a non-GNU linker is found, and then restart. |
14193 | |
14194 | EOF |
14195 | fi |
14196 | ;; |
14197 | |
14198 | amigaos*) |
14199 | 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)' |
14200 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14201 | hardcode_minus_L_F77=yes |
14202 | |
14203 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
14204 | # that the semantics of dynamic libraries on AmigaOS, at least up |
14205 | # to version 4, is to share data among multiple programs linked |
14206 | # with the same dynamic library. Since this doesn't match the |
14207 | # behavior of shared libraries on other platforms, we can't use |
14208 | # them. |
14209 | ld_shlibs_F77=no |
14210 | ;; |
14211 | |
14212 | beos*) |
14213 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
14214 | allow_undefined_flag_F77=unsupported |
14215 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
14216 | # support --undefined. This deserves some investigation. FIXME |
14217 | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
14218 | else |
14219 | ld_shlibs_F77=no |
14220 | fi |
14221 | ;; |
14222 | |
14223 | cygwin* | mingw* | pw32*) |
14224 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, |
14225 | # as there is no search path for DLLs. |
14226 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14227 | allow_undefined_flag_F77=unsupported |
14228 | always_export_symbols_F77=no |
14229 | enable_shared_with_static_runtimes_F77=yes |
14230 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
14231 | |
14232 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
14233 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
14234 | # If the export-symbols file already is a .def file (1st line |
14235 | # is EXPORTS), use it as is; otherwise, prepend... |
14236 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
14237 | cp $export_symbols $output_objdir/$soname.def; |
14238 | else |
14239 | echo EXPORTS > $output_objdir/$soname.def; |
14240 | cat $export_symbols >> $output_objdir/$soname.def; |
14241 | fi~ |
14242 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
14243 | else |
14244 | ld_shlibs_F77=no |
14245 | fi |
14246 | ;; |
14247 | |
14248 | interix3*) |
14249 | hardcode_direct_F77=no |
14250 | hardcode_shlibpath_var_F77=no |
14251 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
14252 | export_dynamic_flag_spec_F77='${wl}-E' |
14253 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
14254 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
14255 | # default) and relocated if they conflict, which is a slow very memory |
14256 | # consuming and fragmenting process. To avoid this, we pick a random, |
14257 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
14258 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
14259 | 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' |
14260 | 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' |
14261 | ;; |
14262 | |
1dce02f2 |
14263 | linux* | k*bsd*-gnu) |
d9898ee8 |
14264 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
14265 | tmp_addflag= |
14266 | case $cc_basename,$host_cpu in |
14267 | pgcc*) # Portland Group C compiler |
14268 | 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' |
14269 | tmp_addflag=' $pic_flag' |
14270 | ;; |
14271 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
14272 | 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' |
14273 | tmp_addflag=' $pic_flag -Mnomain' ;; |
14274 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
14275 | tmp_addflag=' -i_dynamic' ;; |
14276 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
14277 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
14278 | ifc* | ifort*) # Intel Fortran compiler |
14279 | tmp_addflag=' -nofor_main' ;; |
14280 | esac |
14281 | archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
14282 | |
14283 | if test $supports_anon_versioning = yes; then |
14284 | archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ |
14285 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
14286 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
14287 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
14288 | fi |
1dce02f2 |
14289 | link_all_deplibs_F77=no |
d9898ee8 |
14290 | else |
14291 | ld_shlibs_F77=no |
14292 | fi |
14293 | ;; |
14294 | |
1dce02f2 |
14295 | netbsd* | netbsdelf*-gnu) |
d9898ee8 |
14296 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
14297 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
14298 | wlarc= |
14299 | else |
14300 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
14301 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
14302 | fi |
14303 | ;; |
14304 | |
14305 | solaris*) |
14306 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
14307 | ld_shlibs_F77=no |
14308 | cat <<EOF 1>&2 |
14309 | |
14310 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
14311 | *** create shared libraries on Solaris systems. Therefore, libtool |
14312 | *** is disabling shared libraries support. We urge you to upgrade GNU |
14313 | *** binutils to release 2.9.1 or newer. Another option is to modify |
14314 | *** your PATH or compiler configuration so that the native linker is |
14315 | *** used, and then restart. |
14316 | |
14317 | EOF |
14318 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
14319 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
14320 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
14321 | else |
14322 | ld_shlibs_F77=no |
14323 | fi |
14324 | ;; |
14325 | |
14326 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
14327 | case `$LD -v 2>&1` in |
14328 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
14329 | ld_shlibs_F77=no |
14330 | cat <<_LT_EOF 1>&2 |
14331 | |
14332 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
14333 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
14334 | *** is disabling shared libraries support. We urge you to upgrade GNU |
14335 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
14336 | *** your PATH or compiler configuration so that the native linker is |
14337 | *** used, and then restart. |
14338 | |
14339 | _LT_EOF |
14340 | ;; |
14341 | *) |
14342 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
14343 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
14344 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
14345 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
14346 | else |
14347 | ld_shlibs_F77=no |
14348 | fi |
14349 | ;; |
14350 | esac |
14351 | ;; |
14352 | |
14353 | sunos4*) |
14354 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
14355 | wlarc= |
14356 | hardcode_direct_F77=yes |
14357 | hardcode_shlibpath_var_F77=no |
14358 | ;; |
14359 | |
14360 | *) |
14361 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
14362 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
14363 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
14364 | else |
14365 | ld_shlibs_F77=no |
14366 | fi |
14367 | ;; |
14368 | esac |
14369 | |
14370 | if test "$ld_shlibs_F77" = no; then |
14371 | runpath_var= |
14372 | hardcode_libdir_flag_spec_F77= |
14373 | export_dynamic_flag_spec_F77= |
14374 | whole_archive_flag_spec_F77= |
14375 | fi |
14376 | else |
14377 | # PORTME fill in a description of your system's linker (not GNU ld) |
14378 | case $host_os in |
14379 | aix3*) |
14380 | allow_undefined_flag_F77=unsupported |
14381 | always_export_symbols_F77=yes |
14382 | 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' |
14383 | # Note: this linker hardcodes the directories in LIBPATH if there |
14384 | # are no directories specified by -L. |
14385 | hardcode_minus_L_F77=yes |
14386 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
14387 | # Neither direct hardcoding nor static linking is supported with a |
14388 | # broken collect2. |
14389 | hardcode_direct_F77=unsupported |
14390 | fi |
14391 | ;; |
14392 | |
14393 | aix4* | aix5*) |
14394 | if test "$host_cpu" = ia64; then |
14395 | # On IA64, the linker does run time linking by default, so we don't |
14396 | # have to do anything special. |
14397 | aix_use_runtimelinking=no |
14398 | exp_sym_flag='-Bexport' |
14399 | no_entry_flag="" |
14400 | else |
14401 | # If we're using GNU nm, then we don't want the "-C" option. |
14402 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
14403 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
14404 | 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' |
14405 | else |
14406 | 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' |
14407 | fi |
14408 | aix_use_runtimelinking=no |
14409 | |
14410 | # Test if we are trying to use run time linking or normal |
14411 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
14412 | # need to do runtime linking. |
14413 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
14414 | for ld_flag in $LDFLAGS; do |
14415 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
14416 | aix_use_runtimelinking=yes |
14417 | break |
14418 | fi |
14419 | done |
14420 | ;; |
14421 | esac |
14422 | |
14423 | exp_sym_flag='-bexport' |
14424 | no_entry_flag='-bnoentry' |
14425 | fi |
14426 | |
14427 | # When large executables or shared objects are built, AIX ld can |
14428 | # have problems creating the table of contents. If linking a library |
14429 | # or program results in "error TOC overflow" add -mminimal-toc to |
14430 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
14431 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
14432 | |
14433 | archive_cmds_F77='' |
14434 | hardcode_direct_F77=yes |
14435 | hardcode_libdir_separator_F77=':' |
14436 | link_all_deplibs_F77=yes |
14437 | |
14438 | if test "$GCC" = yes; then |
14439 | case $host_os in aix4.[012]|aix4.[012].*) |
14440 | # We only want to do this on AIX 4.2 and lower, the check |
14441 | # below for broken collect2 doesn't work under 4.3+ |
14442 | collect2name=`${CC} -print-prog-name=collect2` |
14443 | if test -f "$collect2name" && \ |
14444 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
14445 | then |
14446 | # We have reworked collect2 |
14447 | hardcode_direct_F77=yes |
14448 | else |
14449 | # We have old collect2 |
14450 | hardcode_direct_F77=unsupported |
14451 | # It fails to find uninstalled libraries when the uninstalled |
14452 | # path is not listed in the libpath. Setting hardcode_minus_L |
14453 | # to unsupported forces relinking |
14454 | hardcode_minus_L_F77=yes |
14455 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14456 | hardcode_libdir_separator_F77= |
14457 | fi |
14458 | ;; |
14459 | esac |
14460 | shared_flag='-shared' |
14461 | if test "$aix_use_runtimelinking" = yes; then |
14462 | shared_flag="$shared_flag "'${wl}-G' |
14463 | fi |
14464 | else |
14465 | # not using gcc |
14466 | if test "$host_cpu" = ia64; then |
14467 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
14468 | # chokes on -Wl,-G. The following line is correct: |
14469 | shared_flag='-G' |
14470 | else |
14471 | if test "$aix_use_runtimelinking" = yes; then |
14472 | shared_flag='${wl}-G' |
14473 | else |
14474 | shared_flag='${wl}-bM:SRE' |
14475 | fi |
14476 | fi |
14477 | fi |
14478 | |
14479 | # It seems that -bexpall does not export symbols beginning with |
14480 | # underscore (_), so it is better to generate a list of symbols to export. |
14481 | always_export_symbols_F77=yes |
14482 | if test "$aix_use_runtimelinking" = yes; then |
14483 | # Warning - without using the other runtime loading flags (-brtl), |
14484 | # -berok will link without error, but may produce a broken library. |
14485 | allow_undefined_flag_F77='-berok' |
14486 | # Determine the default libpath from the value encoded in an empty executable. |
14487 | cat >conftest.$ac_ext <<_ACEOF |
14488 | program main |
14489 | |
14490 | end |
14491 | _ACEOF |
14492 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
14493 | if { (ac_try="$ac_link" |
14494 | case "(($ac_try" in |
14495 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
14496 | *) ac_try_echo=$ac_try;; |
14497 | esac |
14498 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
14499 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
14500 | ac_status=$? |
14501 | grep -v '^ *+' conftest.er1 >conftest.err |
14502 | rm -f conftest.er1 |
14503 | cat conftest.err >&5 |
14504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
14505 | (exit $ac_status); } && { |
14506 | test -z "$ac_f77_werror_flag" || |
14507 | test ! -s conftest.err |
14508 | } && test -s conftest$ac_exeext && |
14509 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
14510 | |
14511 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
14512 | }'` |
14513 | # Check for a 64-bit object if we didn't find anything. |
14514 | 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; } |
14515 | }'`; fi |
14516 | else |
14517 | echo "$as_me: failed program was:" >&5 |
14518 | sed 's/^/| /' conftest.$ac_ext >&5 |
14519 | |
dd184caf |
14520 | |
d9898ee8 |
14521 | fi |
dd184caf |
14522 | |
14523 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
14524 | conftest$ac_exeext conftest.$ac_ext |
14525 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
14526 | |
14527 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
14528 | 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" |
14529 | else |
14530 | if test "$host_cpu" = ia64; then |
14531 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' |
14532 | allow_undefined_flag_F77="-z nodefs" |
14533 | 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" |
14534 | else |
14535 | # Determine the default libpath from the value encoded in an empty executable. |
14536 | cat >conftest.$ac_ext <<_ACEOF |
14537 | program main |
14538 | |
14539 | end |
14540 | _ACEOF |
14541 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
14542 | if { (ac_try="$ac_link" |
14543 | case "(($ac_try" in |
14544 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
14545 | *) ac_try_echo=$ac_try;; |
14546 | esac |
14547 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
14548 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
14549 | ac_status=$? |
14550 | grep -v '^ *+' conftest.er1 >conftest.err |
14551 | rm -f conftest.er1 |
14552 | cat conftest.err >&5 |
14553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
14554 | (exit $ac_status); } && { |
14555 | test -z "$ac_f77_werror_flag" || |
14556 | test ! -s conftest.err |
14557 | } && test -s conftest$ac_exeext && |
14558 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
14559 | |
14560 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
14561 | }'` |
14562 | # Check for a 64-bit object if we didn't find anything. |
14563 | 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; } |
14564 | }'`; fi |
14565 | else |
14566 | echo "$as_me: failed program was:" >&5 |
14567 | sed 's/^/| /' conftest.$ac_ext >&5 |
14568 | |
dd184caf |
14569 | |
d9898ee8 |
14570 | fi |
dd184caf |
14571 | |
14572 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
14573 | conftest$ac_exeext conftest.$ac_ext |
14574 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
14575 | |
14576 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
14577 | # Warning - without using the other run time loading flags, |
14578 | # -berok will link without error, but may produce a broken library. |
14579 | no_undefined_flag_F77=' ${wl}-bernotok' |
14580 | allow_undefined_flag_F77=' ${wl}-berok' |
14581 | # Exported symbols can be pulled into shared objects from archives |
14582 | whole_archive_flag_spec_F77='$convenience' |
14583 | archive_cmds_need_lc_F77=yes |
14584 | # This is similar to how AIX traditionally builds its shared libraries. |
14585 | 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' |
14586 | fi |
14587 | fi |
14588 | ;; |
14589 | |
14590 | amigaos*) |
14591 | 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)' |
14592 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14593 | hardcode_minus_L_F77=yes |
14594 | # see comment about different semantics on the GNU ld section |
14595 | ld_shlibs_F77=no |
14596 | ;; |
14597 | |
14598 | bsdi[45]*) |
14599 | export_dynamic_flag_spec_F77=-rdynamic |
14600 | ;; |
14601 | |
14602 | cygwin* | mingw* | pw32*) |
14603 | # When not using gcc, we currently assume that we are using |
14604 | # Microsoft Visual C++. |
14605 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
14606 | # no search path for DLLs. |
14607 | hardcode_libdir_flag_spec_F77=' ' |
14608 | allow_undefined_flag_F77=unsupported |
14609 | # Tell ltmain to make .lib files, not .a files. |
14610 | libext=lib |
14611 | # Tell ltmain to make .dll files, not .so files. |
14612 | shrext_cmds=".dll" |
14613 | # FIXME: Setting linknames here is a bad hack. |
14614 | archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
14615 | # The linker will automatically build a .lib file if we build a DLL. |
14616 | old_archive_From_new_cmds_F77='true' |
14617 | # FIXME: Should let the user specify the lib program. |
14618 | old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' |
14619 | fix_srcfile_path_F77='`cygpath -w "$srcfile"`' |
14620 | enable_shared_with_static_runtimes_F77=yes |
14621 | ;; |
14622 | |
14623 | darwin* | rhapsody*) |
14624 | case $host_os in |
14625 | rhapsody* | darwin1.[012]) |
14626 | allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' |
14627 | ;; |
14628 | *) # Darwin 1.3 on |
14629 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
14630 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
14631 | else |
14632 | case ${MACOSX_DEPLOYMENT_TARGET} in |
14633 | 10.[012]) |
14634 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
14635 | ;; |
14636 | 10.*) |
14637 | allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' |
14638 | ;; |
14639 | esac |
14640 | fi |
14641 | ;; |
14642 | esac |
14643 | archive_cmds_need_lc_F77=no |
14644 | hardcode_direct_F77=no |
14645 | hardcode_automatic_F77=yes |
14646 | hardcode_shlibpath_var_F77=unsupported |
14647 | whole_archive_flag_spec_F77='' |
14648 | link_all_deplibs_F77=yes |
14649 | if test "$GCC" = yes ; then |
14650 | output_verbose_link_cmd='echo' |
14651 | archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
14652 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
14653 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
14654 | 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}' |
14655 | 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}' |
14656 | else |
14657 | case $cc_basename in |
14658 | xlc*) |
14659 | output_verbose_link_cmd='echo' |
14660 | archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
14661 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
14662 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
14663 | 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}' |
14664 | 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}' |
14665 | ;; |
14666 | *) |
14667 | ld_shlibs_F77=no |
14668 | ;; |
14669 | esac |
14670 | fi |
14671 | ;; |
14672 | |
14673 | dgux*) |
14674 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14675 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14676 | hardcode_shlibpath_var_F77=no |
14677 | ;; |
14678 | |
14679 | freebsd1*) |
14680 | ld_shlibs_F77=no |
14681 | ;; |
14682 | |
14683 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
14684 | # support. Future versions do this automatically, but an explicit c++rt0.o |
14685 | # does not break anything, and helps significantly (at the cost of a little |
14686 | # extra space). |
14687 | freebsd2.2*) |
14688 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
14689 | hardcode_libdir_flag_spec_F77='-R$libdir' |
14690 | hardcode_direct_F77=yes |
14691 | hardcode_shlibpath_var_F77=no |
14692 | ;; |
14693 | |
14694 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
14695 | freebsd2*) |
14696 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
14697 | hardcode_direct_F77=yes |
14698 | hardcode_minus_L_F77=yes |
14699 | hardcode_shlibpath_var_F77=no |
14700 | ;; |
14701 | |
14702 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
1dce02f2 |
14703 | freebsd* | dragonfly*) |
d9898ee8 |
14704 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
14705 | hardcode_libdir_flag_spec_F77='-R$libdir' |
14706 | hardcode_direct_F77=yes |
14707 | hardcode_shlibpath_var_F77=no |
14708 | ;; |
14709 | |
14710 | hpux9*) |
14711 | if test "$GCC" = yes; then |
14712 | 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' |
14713 | else |
14714 | 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' |
14715 | fi |
14716 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
14717 | hardcode_libdir_separator_F77=: |
14718 | hardcode_direct_F77=yes |
14719 | |
14720 | # hardcode_minus_L: Not really in the search PATH, |
14721 | # but as the default location of the library. |
14722 | hardcode_minus_L_F77=yes |
14723 | export_dynamic_flag_spec_F77='${wl}-E' |
14724 | ;; |
14725 | |
14726 | hpux10*) |
14727 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
14728 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
14729 | else |
14730 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
14731 | fi |
14732 | if test "$with_gnu_ld" = no; then |
14733 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
14734 | hardcode_libdir_separator_F77=: |
14735 | |
14736 | hardcode_direct_F77=yes |
14737 | export_dynamic_flag_spec_F77='${wl}-E' |
14738 | |
14739 | # hardcode_minus_L: Not really in the search PATH, |
14740 | # but as the default location of the library. |
14741 | hardcode_minus_L_F77=yes |
14742 | fi |
14743 | ;; |
14744 | |
14745 | hpux11*) |
14746 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
14747 | case $host_cpu in |
14748 | hppa*64*) |
14749 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14750 | ;; |
14751 | ia64*) |
14752 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
14753 | ;; |
14754 | *) |
14755 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
14756 | ;; |
14757 | esac |
14758 | else |
14759 | case $host_cpu in |
14760 | hppa*64*) |
14761 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14762 | ;; |
14763 | ia64*) |
14764 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
14765 | ;; |
14766 | *) |
14767 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
14768 | ;; |
14769 | esac |
14770 | fi |
14771 | if test "$with_gnu_ld" = no; then |
14772 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
14773 | hardcode_libdir_separator_F77=: |
14774 | |
14775 | case $host_cpu in |
14776 | hppa*64*|ia64*) |
14777 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' |
14778 | hardcode_direct_F77=no |
14779 | hardcode_shlibpath_var_F77=no |
14780 | ;; |
14781 | *) |
14782 | hardcode_direct_F77=yes |
14783 | export_dynamic_flag_spec_F77='${wl}-E' |
14784 | |
14785 | # hardcode_minus_L: Not really in the search PATH, |
14786 | # but as the default location of the library. |
14787 | hardcode_minus_L_F77=yes |
14788 | ;; |
14789 | esac |
14790 | fi |
14791 | ;; |
14792 | |
14793 | irix5* | irix6* | nonstopux*) |
14794 | if test "$GCC" = yes; then |
14795 | 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' |
14796 | else |
14797 | 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' |
14798 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' |
14799 | fi |
14800 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
14801 | hardcode_libdir_separator_F77=: |
14802 | link_all_deplibs_F77=yes |
14803 | ;; |
14804 | |
1dce02f2 |
14805 | netbsd* | netbsdelf*-gnu) |
d9898ee8 |
14806 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
14807 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
14808 | else |
14809 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
14810 | fi |
14811 | hardcode_libdir_flag_spec_F77='-R$libdir' |
14812 | hardcode_direct_F77=yes |
14813 | hardcode_shlibpath_var_F77=no |
14814 | ;; |
14815 | |
14816 | newsos6) |
14817 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14818 | hardcode_direct_F77=yes |
14819 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
14820 | hardcode_libdir_separator_F77=: |
14821 | hardcode_shlibpath_var_F77=no |
14822 | ;; |
14823 | |
14824 | openbsd*) |
14825 | hardcode_direct_F77=yes |
14826 | hardcode_shlibpath_var_F77=no |
14827 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
14828 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
14829 | archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
14830 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
14831 | export_dynamic_flag_spec_F77='${wl}-E' |
14832 | else |
14833 | case $host_os in |
14834 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
14835 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
14836 | hardcode_libdir_flag_spec_F77='-R$libdir' |
14837 | ;; |
14838 | *) |
14839 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
14840 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
14841 | ;; |
14842 | esac |
14843 | fi |
14844 | ;; |
14845 | |
14846 | os2*) |
14847 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14848 | hardcode_minus_L_F77=yes |
14849 | allow_undefined_flag_F77=unsupported |
14850 | 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' |
14851 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
14852 | ;; |
14853 | |
14854 | osf3*) |
14855 | if test "$GCC" = yes; then |
14856 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
14857 | 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' |
14858 | else |
14859 | allow_undefined_flag_F77=' -expect_unresolved \*' |
14860 | 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' |
14861 | fi |
14862 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
14863 | hardcode_libdir_separator_F77=: |
14864 | ;; |
14865 | |
14866 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
14867 | if test "$GCC" = yes; then |
14868 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
14869 | 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' |
14870 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
14871 | else |
14872 | allow_undefined_flag_F77=' -expect_unresolved \*' |
14873 | 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' |
14874 | 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~ |
14875 | $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' |
14876 | |
14877 | # Both c and cxx compiler support -rpath directly |
14878 | hardcode_libdir_flag_spec_F77='-rpath $libdir' |
14879 | fi |
14880 | hardcode_libdir_separator_F77=: |
14881 | ;; |
14882 | |
14883 | solaris*) |
14884 | no_undefined_flag_F77=' -z text' |
14885 | if test "$GCC" = yes; then |
14886 | wlarc='${wl}' |
14887 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14888 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
14889 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
14890 | else |
14891 | wlarc='' |
14892 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14893 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
14894 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
14895 | fi |
14896 | hardcode_libdir_flag_spec_F77='-R$libdir' |
14897 | hardcode_shlibpath_var_F77=no |
14898 | case $host_os in |
14899 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
14900 | *) |
14901 | # The compiler driver will combine linker options so we |
14902 | # cannot just pass the convience library names through |
14903 | # without $wl, iff we do not link with $LD. |
14904 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
14905 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
14906 | case $wlarc in |
14907 | '') |
14908 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; |
14909 | *) |
14910 | 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' ;; |
14911 | esac ;; |
14912 | esac |
14913 | link_all_deplibs_F77=yes |
14914 | ;; |
14915 | |
14916 | sunos4*) |
14917 | if test "x$host_vendor" = xsequent; then |
14918 | # Use $CC to link under sequent, because it throws in some extra .o |
14919 | # files that make .init and .fini sections work. |
14920 | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
14921 | else |
14922 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
14923 | fi |
14924 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14925 | hardcode_direct_F77=yes |
14926 | hardcode_minus_L_F77=yes |
14927 | hardcode_shlibpath_var_F77=no |
14928 | ;; |
14929 | |
14930 | sysv4) |
14931 | case $host_vendor in |
14932 | sni) |
14933 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14934 | hardcode_direct_F77=yes # is this really true??? |
14935 | ;; |
14936 | siemens) |
14937 | ## LD is ld it makes a PLAMLIB |
14938 | ## CC just makes a GrossModule. |
14939 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
14940 | reload_cmds_F77='$CC -r -o $output$reload_objs' |
14941 | hardcode_direct_F77=no |
14942 | ;; |
14943 | motorola) |
14944 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14945 | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie |
14946 | ;; |
14947 | esac |
14948 | runpath_var='LD_RUN_PATH' |
14949 | hardcode_shlibpath_var_F77=no |
14950 | ;; |
14951 | |
14952 | sysv4.3*) |
14953 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14954 | hardcode_shlibpath_var_F77=no |
14955 | export_dynamic_flag_spec_F77='-Bexport' |
14956 | ;; |
14957 | |
14958 | sysv4*MP*) |
14959 | if test -d /usr/nec; then |
14960 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14961 | hardcode_shlibpath_var_F77=no |
14962 | runpath_var=LD_RUN_PATH |
14963 | hardcode_runpath_var=yes |
14964 | ld_shlibs_F77=yes |
14965 | fi |
14966 | ;; |
14967 | |
14968 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
14969 | no_undefined_flag_F77='${wl}-z,text' |
14970 | archive_cmds_need_lc_F77=no |
14971 | hardcode_shlibpath_var_F77=no |
14972 | runpath_var='LD_RUN_PATH' |
14973 | |
14974 | if test "$GCC" = yes; then |
14975 | archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
14976 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
14977 | else |
14978 | archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
14979 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
14980 | fi |
14981 | ;; |
14982 | |
14983 | sysv5* | sco3.2v5* | sco5v6*) |
14984 | # Note: We can NOT use -z defs as we might desire, because we do not |
14985 | # link with -lc, and that would cause any symbols used from libc to |
14986 | # always be unresolved, which means just about no library would |
14987 | # ever link correctly. If we're not using GNU ld we use -z text |
14988 | # though, which does catch some bad symbols but isn't as heavy-handed |
14989 | # as -z defs. |
14990 | no_undefined_flag_F77='${wl}-z,text' |
14991 | allow_undefined_flag_F77='${wl}-z,nodefs' |
14992 | archive_cmds_need_lc_F77=no |
14993 | hardcode_shlibpath_var_F77=no |
14994 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
14995 | hardcode_libdir_separator_F77=':' |
14996 | link_all_deplibs_F77=yes |
14997 | export_dynamic_flag_spec_F77='${wl}-Bexport' |
14998 | runpath_var='LD_RUN_PATH' |
14999 | |
15000 | if test "$GCC" = yes; then |
15001 | archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
15002 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
15003 | else |
15004 | archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
15005 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
15006 | fi |
15007 | ;; |
15008 | |
15009 | uts4*) |
15010 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15011 | hardcode_libdir_flag_spec_F77='-L$libdir' |
15012 | hardcode_shlibpath_var_F77=no |
15013 | ;; |
15014 | |
15015 | *) |
15016 | ld_shlibs_F77=no |
15017 | ;; |
15018 | esac |
15019 | fi |
15020 | |
dd184caf |
15021 | { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 |
15022 | echo "${ECHO_T}$ld_shlibs_F77" >&6; } |
d9898ee8 |
15023 | test "$ld_shlibs_F77" = no && can_build_shared=no |
15024 | |
15025 | # |
15026 | # Do we need to explicitly link libc? |
15027 | # |
15028 | case "x$archive_cmds_need_lc_F77" in |
15029 | x|xyes) |
15030 | # Assume -lc should be added |
15031 | archive_cmds_need_lc_F77=yes |
15032 | |
15033 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
15034 | case $archive_cmds_F77 in |
15035 | *'~'*) |
15036 | # FIXME: we may have to deal with multi-command sequences. |
15037 | ;; |
15038 | '$CC '*) |
15039 | # Test whether the compiler implicitly links with -lc since on some |
15040 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
15041 | # to ld, don't add -lc before -lgcc. |
dd184caf |
15042 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
15043 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
d9898ee8 |
15044 | $rm conftest* |
15045 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
15046 | |
15047 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
15048 | (eval $ac_compile) 2>&5 |
15049 | ac_status=$? |
15050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15051 | (exit $ac_status); } 2>conftest.err; then |
15052 | soname=conftest |
15053 | lib=conftest |
15054 | libobjs=conftest.$ac_objext |
15055 | deplibs= |
15056 | wl=$lt_prog_compiler_wl_F77 |
15057 | pic_flag=$lt_prog_compiler_pic_F77 |
15058 | compiler_flags=-v |
15059 | linker_flags=-v |
15060 | verstring= |
15061 | output_objdir=. |
15062 | libname=conftest |
15063 | lt_save_allow_undefined_flag=$allow_undefined_flag_F77 |
15064 | allow_undefined_flag_F77= |
15065 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
15066 | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
15067 | ac_status=$? |
15068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15069 | (exit $ac_status); } |
15070 | then |
15071 | archive_cmds_need_lc_F77=no |
15072 | else |
15073 | archive_cmds_need_lc_F77=yes |
15074 | fi |
15075 | allow_undefined_flag_F77=$lt_save_allow_undefined_flag |
15076 | else |
15077 | cat conftest.err 1>&5 |
15078 | fi |
15079 | $rm conftest* |
dd184caf |
15080 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 |
15081 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } |
d9898ee8 |
15082 | ;; |
15083 | esac |
15084 | fi |
15085 | ;; |
15086 | esac |
15087 | |
dd184caf |
15088 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
15089 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
d9898ee8 |
15090 | library_names_spec= |
15091 | libname_spec='lib$name' |
15092 | soname_spec= |
15093 | shrext_cmds=".so" |
15094 | postinstall_cmds= |
15095 | postuninstall_cmds= |
15096 | finish_cmds= |
15097 | finish_eval= |
15098 | shlibpath_var= |
15099 | shlibpath_overrides_runpath=unknown |
15100 | version_type=none |
15101 | dynamic_linker="$host_os ld.so" |
15102 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
15103 | if test "$GCC" = yes; then |
15104 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
15105 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
15106 | # if the path contains ";" then we assume it to be the separator |
15107 | # otherwise default to the standard path separator (i.e. ":") - it is |
15108 | # assumed that no part of a normal pathname contains ";" but that should |
15109 | # okay in the real world where ";" in dirpaths is itself problematic. |
15110 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
15111 | else |
15112 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
15113 | fi |
15114 | else |
15115 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
15116 | fi |
15117 | need_lib_prefix=unknown |
15118 | hardcode_into_libs=no |
15119 | |
15120 | # when you set need_version to no, make sure it does not cause -set_version |
15121 | # flags to be left without arguments |
15122 | need_version=unknown |
15123 | |
15124 | case $host_os in |
15125 | aix3*) |
15126 | version_type=linux |
15127 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
15128 | shlibpath_var=LIBPATH |
15129 | |
15130 | # AIX 3 has no versioning support, so we append a major version to the name. |
15131 | soname_spec='${libname}${release}${shared_ext}$major' |
15132 | ;; |
15133 | |
15134 | aix4* | aix5*) |
15135 | version_type=linux |
15136 | need_lib_prefix=no |
15137 | need_version=no |
15138 | hardcode_into_libs=yes |
15139 | if test "$host_cpu" = ia64; then |
15140 | # AIX 5 supports IA64 |
15141 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
15142 | shlibpath_var=LD_LIBRARY_PATH |
15143 | else |
15144 | # With GCC up to 2.95.x, collect2 would create an import file |
15145 | # for dependence libraries. The import file would start with |
15146 | # the line `#! .'. This would cause the generated library to |
15147 | # depend on `.', always an invalid library. This was fixed in |
15148 | # development snapshots of GCC prior to 3.0. |
15149 | case $host_os in |
15150 | aix4 | aix4.[01] | aix4.[01].*) |
15151 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
15152 | echo ' yes ' |
15153 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
15154 | : |
15155 | else |
15156 | can_build_shared=no |
15157 | fi |
15158 | ;; |
15159 | esac |
15160 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
15161 | # soname into executable. Probably we can add versioning support to |
15162 | # collect2, so additional links can be useful in future. |
15163 | if test "$aix_use_runtimelinking" = yes; then |
15164 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
15165 | # instead of lib<name>.a to let people know that these are not |
15166 | # typical AIX shared libraries. |
15167 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15168 | else |
15169 | # We preserve .a as extension for shared libraries through AIX4.2 |
15170 | # and later when we are not doing run time linking. |
15171 | library_names_spec='${libname}${release}.a $libname.a' |
15172 | soname_spec='${libname}${release}${shared_ext}$major' |
15173 | fi |
15174 | shlibpath_var=LIBPATH |
15175 | fi |
15176 | ;; |
15177 | |
15178 | amigaos*) |
15179 | library_names_spec='$libname.ixlibrary $libname.a' |
15180 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
15181 | 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' |
15182 | ;; |
15183 | |
15184 | beos*) |
15185 | library_names_spec='${libname}${shared_ext}' |
15186 | dynamic_linker="$host_os ld.so" |
15187 | shlibpath_var=LIBRARY_PATH |
15188 | ;; |
15189 | |
15190 | bsdi[45]*) |
15191 | version_type=linux |
15192 | need_version=no |
15193 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15194 | soname_spec='${libname}${release}${shared_ext}$major' |
15195 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
15196 | shlibpath_var=LD_LIBRARY_PATH |
15197 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
15198 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
15199 | # the default ld.so.conf also contains /usr/contrib/lib and |
15200 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
15201 | # libtool to hard-code these into programs |
15202 | ;; |
15203 | |
15204 | cygwin* | mingw* | pw32*) |
15205 | version_type=windows |
15206 | shrext_cmds=".dll" |
15207 | need_version=no |
15208 | need_lib_prefix=no |
15209 | |
15210 | case $GCC,$host_os in |
15211 | yes,cygwin* | yes,mingw* | yes,pw32*) |
15212 | library_names_spec='$libname.dll.a' |
15213 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
15214 | postinstall_cmds='base_file=`basename \${file}`~ |
15215 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
15216 | dldir=$destdir/`dirname \$dlpath`~ |
15217 | test -d \$dldir || mkdir -p \$dldir~ |
15218 | $install_prog $dir/$dlname \$dldir/$dlname~ |
15219 | chmod a+x \$dldir/$dlname' |
15220 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
15221 | dlpath=$dir/\$dldll~ |
15222 | $rm \$dlpath' |
15223 | shlibpath_overrides_runpath=yes |
15224 | |
15225 | case $host_os in |
15226 | cygwin*) |
15227 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
15228 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
15229 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
15230 | ;; |
15231 | mingw*) |
15232 | # MinGW DLLs use traditional 'lib' prefix |
15233 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
15234 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
15235 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
15236 | # It is most probably a Windows format PATH printed by |
15237 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
15238 | # path with ; separators, and with drive letters. We can handle the |
15239 | # drive letters (cygwin fileutils understands them), so leave them, |
15240 | # especially as we might pass files found there to a mingw objdump, |
15241 | # which wouldn't understand a cygwinified path. Ahh. |
15242 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
15243 | else |
15244 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
15245 | fi |
15246 | ;; |
15247 | pw32*) |
15248 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
15249 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
15250 | ;; |
15251 | esac |
15252 | ;; |
15253 | |
15254 | *) |
15255 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
15256 | ;; |
15257 | esac |
15258 | dynamic_linker='Win32 ld.exe' |
15259 | # FIXME: first we should search . and the directory the executable is in |
15260 | shlibpath_var=PATH |
15261 | ;; |
15262 | |
15263 | darwin* | rhapsody*) |
15264 | dynamic_linker="$host_os dyld" |
15265 | version_type=darwin |
15266 | need_lib_prefix=no |
15267 | need_version=no |
15268 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
15269 | soname_spec='${libname}${release}${major}$shared_ext' |
15270 | shlibpath_overrides_runpath=yes |
15271 | shlibpath_var=DYLD_LIBRARY_PATH |
15272 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
15273 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
15274 | if test "$GCC" = yes; then |
15275 | 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"` |
15276 | else |
15277 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
15278 | fi |
15279 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
15280 | ;; |
15281 | |
15282 | dgux*) |
15283 | version_type=linux |
15284 | need_lib_prefix=no |
15285 | need_version=no |
15286 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
15287 | soname_spec='${libname}${release}${shared_ext}$major' |
15288 | shlibpath_var=LD_LIBRARY_PATH |
15289 | ;; |
15290 | |
15291 | freebsd1*) |
15292 | dynamic_linker=no |
15293 | ;; |
15294 | |
d9898ee8 |
15295 | freebsd* | dragonfly*) |
15296 | # DragonFly does not have aout. When/if they implement a new |
15297 | # versioning mechanism, adjust this. |
15298 | if test -x /usr/bin/objformat; then |
15299 | objformat=`/usr/bin/objformat` |
15300 | else |
15301 | case $host_os in |
15302 | freebsd[123]*) objformat=aout ;; |
15303 | *) objformat=elf ;; |
15304 | esac |
15305 | fi |
15306 | version_type=freebsd-$objformat |
15307 | case $version_type in |
15308 | freebsd-elf*) |
15309 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
15310 | need_version=no |
15311 | need_lib_prefix=no |
15312 | ;; |
15313 | freebsd-*) |
15314 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
15315 | need_version=yes |
15316 | ;; |
15317 | esac |
15318 | shlibpath_var=LD_LIBRARY_PATH |
15319 | case $host_os in |
15320 | freebsd2*) |
15321 | shlibpath_overrides_runpath=yes |
15322 | ;; |
15323 | freebsd3.[01]* | freebsdelf3.[01]*) |
15324 | shlibpath_overrides_runpath=yes |
15325 | hardcode_into_libs=yes |
15326 | ;; |
15327 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
15328 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
15329 | shlibpath_overrides_runpath=no |
15330 | hardcode_into_libs=yes |
15331 | ;; |
15332 | freebsd*) # from 4.6 on |
15333 | shlibpath_overrides_runpath=yes |
15334 | hardcode_into_libs=yes |
15335 | ;; |
15336 | esac |
15337 | ;; |
15338 | |
15339 | gnu*) |
15340 | version_type=linux |
15341 | need_lib_prefix=no |
15342 | need_version=no |
15343 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
15344 | soname_spec='${libname}${release}${shared_ext}$major' |
15345 | shlibpath_var=LD_LIBRARY_PATH |
15346 | hardcode_into_libs=yes |
15347 | ;; |
15348 | |
15349 | hpux9* | hpux10* | hpux11*) |
15350 | # Give a soname corresponding to the major version so that dld.sl refuses to |
15351 | # link against other versions. |
15352 | version_type=sunos |
15353 | need_lib_prefix=no |
15354 | need_version=no |
15355 | case $host_cpu in |
15356 | ia64*) |
15357 | shrext_cmds='.so' |
15358 | hardcode_into_libs=yes |
15359 | dynamic_linker="$host_os dld.so" |
15360 | shlibpath_var=LD_LIBRARY_PATH |
15361 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
15362 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15363 | soname_spec='${libname}${release}${shared_ext}$major' |
15364 | if test "X$HPUX_IA64_MODE" = X32; then |
15365 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
15366 | else |
15367 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
15368 | fi |
15369 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
15370 | ;; |
15371 | hppa*64*) |
15372 | shrext_cmds='.sl' |
15373 | hardcode_into_libs=yes |
15374 | dynamic_linker="$host_os dld.sl" |
15375 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
15376 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
15377 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15378 | soname_spec='${libname}${release}${shared_ext}$major' |
15379 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
15380 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
15381 | ;; |
15382 | *) |
15383 | shrext_cmds='.sl' |
15384 | dynamic_linker="$host_os dld.sl" |
15385 | shlibpath_var=SHLIB_PATH |
15386 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
15387 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15388 | soname_spec='${libname}${release}${shared_ext}$major' |
15389 | ;; |
15390 | esac |
15391 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
15392 | postinstall_cmds='chmod 555 $lib' |
15393 | ;; |
15394 | |
15395 | interix3*) |
15396 | version_type=linux |
15397 | need_lib_prefix=no |
15398 | need_version=no |
15399 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
15400 | soname_spec='${libname}${release}${shared_ext}$major' |
15401 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
15402 | shlibpath_var=LD_LIBRARY_PATH |
15403 | shlibpath_overrides_runpath=no |
15404 | hardcode_into_libs=yes |
15405 | ;; |
15406 | |
15407 | irix5* | irix6* | nonstopux*) |
15408 | case $host_os in |
15409 | nonstopux*) version_type=nonstopux ;; |
15410 | *) |
15411 | if test "$lt_cv_prog_gnu_ld" = yes; then |
15412 | version_type=linux |
15413 | else |
15414 | version_type=irix |
15415 | fi ;; |
15416 | esac |
15417 | need_lib_prefix=no |
15418 | need_version=no |
15419 | soname_spec='${libname}${release}${shared_ext}$major' |
15420 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
15421 | case $host_os in |
15422 | irix5* | nonstopux*) |
15423 | libsuff= shlibsuff= |
15424 | ;; |
15425 | *) |
15426 | case $LD in # libtool.m4 will add one of these switches to LD |
15427 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
15428 | libsuff= shlibsuff= libmagic=32-bit;; |
15429 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
15430 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
15431 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
15432 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
15433 | *) libsuff= shlibsuff= libmagic=never-match;; |
15434 | esac |
15435 | ;; |
15436 | esac |
15437 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
15438 | shlibpath_overrides_runpath=no |
15439 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
15440 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
15441 | hardcode_into_libs=yes |
15442 | ;; |
15443 | |
15444 | # No shared lib support for Linux oldld, aout, or coff. |
15445 | linux*oldld* | linux*aout* | linux*coff*) |
15446 | dynamic_linker=no |
15447 | ;; |
15448 | |
15449 | # This must be Linux ELF. |
1dce02f2 |
15450 | linux* | k*bsd*-gnu) |
d9898ee8 |
15451 | version_type=linux |
15452 | need_lib_prefix=no |
15453 | need_version=no |
15454 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15455 | soname_spec='${libname}${release}${shared_ext}$major' |
15456 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
15457 | shlibpath_var=LD_LIBRARY_PATH |
15458 | shlibpath_overrides_runpath=no |
15459 | # This implies no fast_install, which is unacceptable. |
15460 | # Some rework will be needed to allow for fast_install |
15461 | # before this can be enabled. |
15462 | hardcode_into_libs=yes |
15463 | |
d9898ee8 |
15464 | # Append ld.so.conf contents to the search path |
15465 | if test -f /etc/ld.so.conf; then |
1dce02f2 |
15466 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
15467 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
d9898ee8 |
15468 | fi |
15469 | |
15470 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
15471 | # powerpc, because MkLinux only supported shared libraries with the |
15472 | # GNU dynamic linker. Since this was broken with cross compilers, |
15473 | # most powerpc-linux boxes support dynamic linking these days and |
15474 | # people can always --disable-shared, the test was removed, and we |
15475 | # assume the GNU/Linux dynamic linker is in use. |
15476 | dynamic_linker='GNU/Linux ld.so' |
15477 | ;; |
15478 | |
1dce02f2 |
15479 | netbsdelf*-gnu) |
d9898ee8 |
15480 | version_type=linux |
15481 | need_lib_prefix=no |
15482 | need_version=no |
15483 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
15484 | soname_spec='${libname}${release}${shared_ext}$major' |
15485 | shlibpath_var=LD_LIBRARY_PATH |
15486 | shlibpath_overrides_runpath=no |
15487 | hardcode_into_libs=yes |
1dce02f2 |
15488 | dynamic_linker='NetBSD ld.elf_so' |
d9898ee8 |
15489 | ;; |
15490 | |
15491 | netbsd*) |
15492 | version_type=sunos |
15493 | need_lib_prefix=no |
15494 | need_version=no |
15495 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
15496 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
15497 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
15498 | dynamic_linker='NetBSD (a.out) ld.so' |
15499 | else |
15500 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
15501 | soname_spec='${libname}${release}${shared_ext}$major' |
15502 | dynamic_linker='NetBSD ld.elf_so' |
15503 | fi |
15504 | shlibpath_var=LD_LIBRARY_PATH |
15505 | shlibpath_overrides_runpath=yes |
15506 | hardcode_into_libs=yes |
15507 | ;; |
15508 | |
15509 | newsos6) |
15510 | version_type=linux |
15511 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15512 | shlibpath_var=LD_LIBRARY_PATH |
15513 | shlibpath_overrides_runpath=yes |
15514 | ;; |
15515 | |
15516 | nto-qnx*) |
15517 | version_type=linux |
15518 | need_lib_prefix=no |
15519 | need_version=no |
15520 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15521 | soname_spec='${libname}${release}${shared_ext}$major' |
15522 | shlibpath_var=LD_LIBRARY_PATH |
15523 | shlibpath_overrides_runpath=yes |
15524 | ;; |
15525 | |
15526 | openbsd*) |
15527 | version_type=sunos |
15528 | sys_lib_dlsearch_path_spec="/usr/lib" |
15529 | need_lib_prefix=no |
15530 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
15531 | case $host_os in |
15532 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
15533 | *) need_version=no ;; |
15534 | esac |
15535 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
15536 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
15537 | shlibpath_var=LD_LIBRARY_PATH |
15538 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
15539 | case $host_os in |
15540 | openbsd2.[89] | openbsd2.[89].*) |
15541 | shlibpath_overrides_runpath=no |
15542 | ;; |
15543 | *) |
15544 | shlibpath_overrides_runpath=yes |
15545 | ;; |
15546 | esac |
15547 | else |
15548 | shlibpath_overrides_runpath=yes |
15549 | fi |
15550 | ;; |
15551 | |
15552 | os2*) |
15553 | libname_spec='$name' |
15554 | shrext_cmds=".dll" |
15555 | need_lib_prefix=no |
15556 | library_names_spec='$libname${shared_ext} $libname.a' |
15557 | dynamic_linker='OS/2 ld.exe' |
15558 | shlibpath_var=LIBPATH |
15559 | ;; |
15560 | |
15561 | osf3* | osf4* | osf5*) |
15562 | version_type=osf |
15563 | need_lib_prefix=no |
15564 | need_version=no |
15565 | soname_spec='${libname}${release}${shared_ext}$major' |
15566 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15567 | shlibpath_var=LD_LIBRARY_PATH |
15568 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
15569 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
15570 | ;; |
15571 | |
15572 | solaris*) |
15573 | version_type=linux |
15574 | need_lib_prefix=no |
15575 | need_version=no |
15576 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15577 | soname_spec='${libname}${release}${shared_ext}$major' |
15578 | shlibpath_var=LD_LIBRARY_PATH |
15579 | shlibpath_overrides_runpath=yes |
15580 | hardcode_into_libs=yes |
15581 | # ldd complains unless libraries are executable |
15582 | postinstall_cmds='chmod +x $lib' |
15583 | ;; |
15584 | |
15585 | sunos4*) |
15586 | version_type=sunos |
15587 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
15588 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
15589 | shlibpath_var=LD_LIBRARY_PATH |
15590 | shlibpath_overrides_runpath=yes |
15591 | if test "$with_gnu_ld" = yes; then |
15592 | need_lib_prefix=no |
15593 | fi |
15594 | need_version=yes |
15595 | ;; |
15596 | |
15597 | sysv4 | sysv4.3*) |
15598 | version_type=linux |
15599 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15600 | soname_spec='${libname}${release}${shared_ext}$major' |
15601 | shlibpath_var=LD_LIBRARY_PATH |
15602 | case $host_vendor in |
15603 | sni) |
15604 | shlibpath_overrides_runpath=no |
15605 | need_lib_prefix=no |
15606 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
15607 | runpath_var=LD_RUN_PATH |
15608 | ;; |
15609 | siemens) |
15610 | need_lib_prefix=no |
15611 | ;; |
15612 | motorola) |
15613 | need_lib_prefix=no |
15614 | need_version=no |
15615 | shlibpath_overrides_runpath=no |
15616 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
15617 | ;; |
15618 | esac |
15619 | ;; |
15620 | |
15621 | sysv4*MP*) |
15622 | if test -d /usr/nec ;then |
15623 | version_type=linux |
15624 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
15625 | soname_spec='$libname${shared_ext}.$major' |
15626 | shlibpath_var=LD_LIBRARY_PATH |
15627 | fi |
15628 | ;; |
15629 | |
15630 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
15631 | version_type=freebsd-elf |
15632 | need_lib_prefix=no |
15633 | need_version=no |
15634 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
15635 | soname_spec='${libname}${release}${shared_ext}$major' |
15636 | shlibpath_var=LD_LIBRARY_PATH |
15637 | hardcode_into_libs=yes |
15638 | if test "$with_gnu_ld" = yes; then |
15639 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
15640 | shlibpath_overrides_runpath=no |
15641 | else |
15642 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
15643 | shlibpath_overrides_runpath=yes |
15644 | case $host_os in |
15645 | sco3.2v5*) |
15646 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
15647 | ;; |
15648 | esac |
15649 | fi |
15650 | sys_lib_dlsearch_path_spec='/usr/lib' |
15651 | ;; |
15652 | |
15653 | uts4*) |
15654 | version_type=linux |
15655 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15656 | soname_spec='${libname}${release}${shared_ext}$major' |
15657 | shlibpath_var=LD_LIBRARY_PATH |
15658 | ;; |
15659 | |
15660 | *) |
15661 | dynamic_linker=no |
15662 | ;; |
15663 | esac |
dd184caf |
15664 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
15665 | echo "${ECHO_T}$dynamic_linker" >&6; } |
d9898ee8 |
15666 | test "$dynamic_linker" = no && can_build_shared=no |
15667 | |
15668 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
15669 | if test "$GCC" = yes; then |
15670 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
15671 | fi |
15672 | |
dd184caf |
15673 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
15674 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
d9898ee8 |
15675 | hardcode_action_F77= |
15676 | if test -n "$hardcode_libdir_flag_spec_F77" || \ |
15677 | test -n "$runpath_var_F77" || \ |
15678 | test "X$hardcode_automatic_F77" = "Xyes" ; then |
15679 | |
15680 | # We can hardcode non-existant directories. |
15681 | if test "$hardcode_direct_F77" != no && |
15682 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
15683 | # have to relink, otherwise we might link with an installed library |
15684 | # when we should be linking with a yet-to-be-installed one |
15685 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && |
15686 | test "$hardcode_minus_L_F77" != no; then |
15687 | # Linking always hardcodes the temporary library directory. |
15688 | hardcode_action_F77=relink |
15689 | else |
15690 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
15691 | hardcode_action_F77=immediate |
15692 | fi |
15693 | else |
15694 | # We cannot hardcode anything, or else we can only hardcode existing |
15695 | # directories. |
15696 | hardcode_action_F77=unsupported |
15697 | fi |
dd184caf |
15698 | { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 |
15699 | echo "${ECHO_T}$hardcode_action_F77" >&6; } |
d9898ee8 |
15700 | |
15701 | if test "$hardcode_action_F77" = relink; then |
15702 | # Fast installation is not supported |
15703 | enable_fast_install=no |
15704 | elif test "$shlibpath_overrides_runpath" = yes || |
15705 | test "$enable_shared" = no; then |
15706 | # Fast installation is not necessary |
15707 | enable_fast_install=needless |
15708 | fi |
15709 | |
15710 | |
15711 | # The else clause should only fire when bootstrapping the |
15712 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
15713 | # with your package, and you will get complaints that there are |
15714 | # no rules to generate ltmain.sh. |
15715 | if test -f "$ltmain"; then |
15716 | # See if we are running on zsh, and set the options which allow our commands through |
15717 | # without removal of \ escapes. |
15718 | if test -n "${ZSH_VERSION+set}" ; then |
15719 | setopt NO_GLOB_SUBST |
15720 | fi |
15721 | # Now quote all the things that may contain metacharacters while being |
15722 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
15723 | # variables and quote the copies for generation of the libtool script. |
15724 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
15725 | SED SHELL STRIP \ |
15726 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
15727 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
15728 | deplibs_check_method reload_flag reload_cmds need_locks \ |
15729 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
15730 | lt_cv_sys_global_symbol_to_c_name_address \ |
15731 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
15732 | old_postinstall_cmds old_postuninstall_cmds \ |
15733 | compiler_F77 \ |
15734 | CC_F77 \ |
15735 | LD_F77 \ |
15736 | lt_prog_compiler_wl_F77 \ |
15737 | lt_prog_compiler_pic_F77 \ |
15738 | lt_prog_compiler_static_F77 \ |
15739 | lt_prog_compiler_no_builtin_flag_F77 \ |
15740 | export_dynamic_flag_spec_F77 \ |
15741 | thread_safe_flag_spec_F77 \ |
15742 | whole_archive_flag_spec_F77 \ |
15743 | enable_shared_with_static_runtimes_F77 \ |
15744 | old_archive_cmds_F77 \ |
15745 | old_archive_from_new_cmds_F77 \ |
15746 | predep_objects_F77 \ |
15747 | postdep_objects_F77 \ |
15748 | predeps_F77 \ |
15749 | postdeps_F77 \ |
15750 | compiler_lib_search_path_F77 \ |
15751 | archive_cmds_F77 \ |
15752 | archive_expsym_cmds_F77 \ |
15753 | postinstall_cmds_F77 \ |
15754 | postuninstall_cmds_F77 \ |
15755 | old_archive_from_expsyms_cmds_F77 \ |
15756 | allow_undefined_flag_F77 \ |
15757 | no_undefined_flag_F77 \ |
15758 | export_symbols_cmds_F77 \ |
15759 | hardcode_libdir_flag_spec_F77 \ |
15760 | hardcode_libdir_flag_spec_ld_F77 \ |
15761 | hardcode_libdir_separator_F77 \ |
15762 | hardcode_automatic_F77 \ |
15763 | module_cmds_F77 \ |
15764 | module_expsym_cmds_F77 \ |
15765 | lt_cv_prog_compiler_c_o_F77 \ |
15766 | exclude_expsyms_F77 \ |
15767 | include_expsyms_F77; do |
15768 | |
15769 | case $var in |
15770 | old_archive_cmds_F77 | \ |
15771 | old_archive_from_new_cmds_F77 | \ |
15772 | archive_cmds_F77 | \ |
15773 | archive_expsym_cmds_F77 | \ |
15774 | module_cmds_F77 | \ |
15775 | module_expsym_cmds_F77 | \ |
15776 | old_archive_from_expsyms_cmds_F77 | \ |
15777 | export_symbols_cmds_F77 | \ |
15778 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
15779 | postinstall_cmds | postuninstall_cmds | \ |
15780 | old_postinstall_cmds | old_postuninstall_cmds | \ |
15781 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
15782 | # Double-quote double-evaled strings. |
15783 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
15784 | ;; |
15785 | *) |
15786 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
15787 | ;; |
15788 | esac |
15789 | done |
15790 | |
15791 | case $lt_echo in |
15792 | *'\$0 --fallback-echo"') |
15793 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
15794 | ;; |
15795 | esac |
15796 | |
15797 | cfgfile="$ofile" |
15798 | |
15799 | cat <<__EOF__ >> "$cfgfile" |
15800 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
15801 | |
15802 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
15803 | |
15804 | # Shell to use when invoking shell scripts. |
15805 | SHELL=$lt_SHELL |
15806 | |
15807 | # Whether or not to build shared libraries. |
15808 | build_libtool_libs=$enable_shared |
15809 | |
15810 | # Whether or not to build static libraries. |
15811 | build_old_libs=$enable_static |
15812 | |
15813 | # Whether or not to add -lc for building shared libraries. |
15814 | build_libtool_need_lc=$archive_cmds_need_lc_F77 |
15815 | |
15816 | # Whether or not to disallow shared libs when runtime libs are static |
15817 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 |
15818 | |
15819 | # Whether or not to optimize for fast installation. |
15820 | fast_install=$enable_fast_install |
15821 | |
15822 | # The host system. |
15823 | host_alias=$host_alias |
15824 | host=$host |
15825 | host_os=$host_os |
15826 | |
15827 | # The build system. |
15828 | build_alias=$build_alias |
15829 | build=$build |
15830 | build_os=$build_os |
15831 | |
15832 | # An echo program that does not interpret backslashes. |
15833 | echo=$lt_echo |
15834 | |
15835 | # The archiver. |
15836 | AR=$lt_AR |
15837 | AR_FLAGS=$lt_AR_FLAGS |
15838 | |
15839 | # A C compiler. |
15840 | LTCC=$lt_LTCC |
15841 | |
15842 | # LTCC compiler flags. |
15843 | LTCFLAGS=$lt_LTCFLAGS |
15844 | |
15845 | # A language-specific compiler. |
15846 | CC=$lt_compiler_F77 |
15847 | |
15848 | # Is the compiler the GNU C compiler? |
15849 | with_gcc=$GCC_F77 |
15850 | |
d9898ee8 |
15851 | # An ERE matcher. |
15852 | EGREP=$lt_EGREP |
15853 | |
15854 | # The linker used to build libraries. |
15855 | LD=$lt_LD_F77 |
15856 | |
15857 | # Whether we need hard or soft links. |
15858 | LN_S=$lt_LN_S |
15859 | |
15860 | # A BSD-compatible nm program. |
15861 | NM=$lt_NM |
15862 | |
15863 | # A symbol stripping program |
15864 | STRIP=$lt_STRIP |
15865 | |
15866 | # Used to examine libraries when file_magic_cmd begins "file" |
15867 | MAGIC_CMD=$MAGIC_CMD |
15868 | |
15869 | # Used on cygwin: DLL creation program. |
15870 | DLLTOOL="$DLLTOOL" |
15871 | |
15872 | # Used on cygwin: object dumper. |
15873 | OBJDUMP="$OBJDUMP" |
15874 | |
15875 | # Used on cygwin: assembler. |
15876 | AS="$AS" |
15877 | |
15878 | # The name of the directory that contains temporary libtool files. |
15879 | objdir=$objdir |
15880 | |
15881 | # How to create reloadable object files. |
15882 | reload_flag=$lt_reload_flag |
15883 | reload_cmds=$lt_reload_cmds |
15884 | |
15885 | # How to pass a linker flag through the compiler. |
15886 | wl=$lt_lt_prog_compiler_wl_F77 |
15887 | |
15888 | # Object file suffix (normally "o"). |
15889 | objext="$ac_objext" |
15890 | |
15891 | # Old archive suffix (normally "a"). |
15892 | libext="$libext" |
15893 | |
15894 | # Shared library suffix (normally ".so"). |
15895 | shrext_cmds='$shrext_cmds' |
15896 | |
15897 | # Executable file suffix (normally ""). |
15898 | exeext="$exeext" |
15899 | |
15900 | # Additional compiler flags for building library objects. |
15901 | pic_flag=$lt_lt_prog_compiler_pic_F77 |
15902 | pic_mode=$pic_mode |
15903 | |
15904 | # What is the maximum length of a command? |
15905 | max_cmd_len=$lt_cv_sys_max_cmd_len |
15906 | |
15907 | # Does compiler simultaneously support -c and -o options? |
15908 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 |
15909 | |
15910 | # Must we lock files when doing compilation? |
15911 | need_locks=$lt_need_locks |
15912 | |
15913 | # Do we need the lib prefix for modules? |
15914 | need_lib_prefix=$need_lib_prefix |
15915 | |
15916 | # Do we need a version for libraries? |
15917 | need_version=$need_version |
15918 | |
15919 | # Whether dlopen is supported. |
15920 | dlopen_support=$enable_dlopen |
15921 | |
15922 | # Whether dlopen of programs is supported. |
15923 | dlopen_self=$enable_dlopen_self |
15924 | |
15925 | # Whether dlopen of statically linked programs is supported. |
15926 | dlopen_self_static=$enable_dlopen_self_static |
15927 | |
15928 | # Compiler flag to prevent dynamic linking. |
15929 | link_static_flag=$lt_lt_prog_compiler_static_F77 |
15930 | |
15931 | # Compiler flag to turn off builtin functions. |
15932 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 |
15933 | |
15934 | # Compiler flag to allow reflexive dlopens. |
15935 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 |
15936 | |
15937 | # Compiler flag to generate shared objects directly from archives. |
15938 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 |
15939 | |
15940 | # Compiler flag to generate thread-safe objects. |
15941 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 |
15942 | |
15943 | # Library versioning type. |
15944 | version_type=$version_type |
15945 | |
15946 | # Format of library name prefix. |
15947 | libname_spec=$lt_libname_spec |
15948 | |
15949 | # List of archive names. First name is the real one, the rest are links. |
15950 | # The last name is the one that the linker finds with -lNAME. |
15951 | library_names_spec=$lt_library_names_spec |
15952 | |
15953 | # The coded name of the library, if different from the real name. |
15954 | soname_spec=$lt_soname_spec |
15955 | |
15956 | # Commands used to build and install an old-style archive. |
15957 | RANLIB=$lt_RANLIB |
15958 | old_archive_cmds=$lt_old_archive_cmds_F77 |
15959 | old_postinstall_cmds=$lt_old_postinstall_cmds |
15960 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
15961 | |
15962 | # Create an old-style archive from a shared archive. |
15963 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 |
15964 | |
15965 | # Create a temporary old-style archive to link instead of a shared archive. |
15966 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 |
15967 | |
15968 | # Commands used to build and install a shared archive. |
15969 | archive_cmds=$lt_archive_cmds_F77 |
15970 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 |
15971 | postinstall_cmds=$lt_postinstall_cmds |
15972 | postuninstall_cmds=$lt_postuninstall_cmds |
15973 | |
15974 | # Commands used to build a loadable module (assumed same as above if empty) |
15975 | module_cmds=$lt_module_cmds_F77 |
15976 | module_expsym_cmds=$lt_module_expsym_cmds_F77 |
15977 | |
15978 | # Commands to strip libraries. |
15979 | old_striplib=$lt_old_striplib |
15980 | striplib=$lt_striplib |
15981 | |
15982 | # Dependencies to place before the objects being linked to create a |
15983 | # shared library. |
dd184caf |
15984 | predep_objects=$lt_predep_objects_F77 |
d9898ee8 |
15985 | |
15986 | # Dependencies to place after the objects being linked to create a |
15987 | # shared library. |
dd184caf |
15988 | postdep_objects=$lt_postdep_objects_F77 |
d9898ee8 |
15989 | |
15990 | # Dependencies to place before the objects being linked to create a |
15991 | # shared library. |
15992 | predeps=$lt_predeps_F77 |
15993 | |
15994 | # Dependencies to place after the objects being linked to create a |
15995 | # shared library. |
15996 | postdeps=$lt_postdeps_F77 |
15997 | |
15998 | # The library search path used internally by the compiler when linking |
15999 | # a shared library. |
dd184caf |
16000 | compiler_lib_search_path=$lt_compiler_lib_search_path_F77 |
d9898ee8 |
16001 | |
16002 | # Method to check whether dependent libraries are shared objects. |
16003 | deplibs_check_method=$lt_deplibs_check_method |
16004 | |
16005 | # Command to use when deplibs_check_method == file_magic. |
16006 | file_magic_cmd=$lt_file_magic_cmd |
16007 | |
16008 | # Flag that allows shared libraries with undefined symbols to be built. |
16009 | allow_undefined_flag=$lt_allow_undefined_flag_F77 |
16010 | |
16011 | # Flag that forces no undefined symbols. |
16012 | no_undefined_flag=$lt_no_undefined_flag_F77 |
16013 | |
16014 | # Commands used to finish a libtool library installation in a directory. |
16015 | finish_cmds=$lt_finish_cmds |
16016 | |
16017 | # Same as above, but a single script fragment to be evaled but not shown. |
16018 | finish_eval=$lt_finish_eval |
16019 | |
16020 | # Take the output of nm and produce a listing of raw symbols and C names. |
16021 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
16022 | |
16023 | # Transform the output of nm in a proper C declaration |
16024 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
16025 | |
16026 | # Transform the output of nm in a C name address pair |
16027 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
16028 | |
16029 | # This is the shared library runtime path variable. |
16030 | runpath_var=$runpath_var |
16031 | |
16032 | # This is the shared library path variable. |
16033 | shlibpath_var=$shlibpath_var |
16034 | |
16035 | # Is shlibpath searched before the hard-coded library search path? |
16036 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
16037 | |
16038 | # How to hardcode a shared library path into an executable. |
16039 | hardcode_action=$hardcode_action_F77 |
16040 | |
16041 | # Whether we should hardcode library paths into libraries. |
16042 | hardcode_into_libs=$hardcode_into_libs |
16043 | |
16044 | # Flag to hardcode \$libdir into a binary during linking. |
16045 | # This must work even if \$libdir does not exist. |
16046 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 |
16047 | |
16048 | # If ld is used when linking, flag to hardcode \$libdir into |
16049 | # a binary during linking. This must work even if \$libdir does |
16050 | # not exist. |
16051 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 |
16052 | |
16053 | # Whether we need a single -rpath flag with a separated argument. |
16054 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 |
16055 | |
16056 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
16057 | # resulting binary. |
16058 | hardcode_direct=$hardcode_direct_F77 |
16059 | |
16060 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
16061 | # resulting binary. |
16062 | hardcode_minus_L=$hardcode_minus_L_F77 |
16063 | |
16064 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
16065 | # the resulting binary. |
16066 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 |
16067 | |
16068 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
16069 | # and all subsequent libraries and executables linked against it. |
16070 | hardcode_automatic=$hardcode_automatic_F77 |
16071 | |
16072 | # Variables whose values should be saved in libtool wrapper scripts and |
16073 | # restored at relink time. |
16074 | variables_saved_for_relink="$variables_saved_for_relink" |
16075 | |
16076 | # Whether libtool must link a program against all its dependency libraries. |
16077 | link_all_deplibs=$link_all_deplibs_F77 |
16078 | |
16079 | # Compile-time system search path for libraries |
dd184caf |
16080 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
d9898ee8 |
16081 | |
16082 | # Run-time system search path for libraries |
16083 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
16084 | |
16085 | # Fix the shell variable \$srcfile for the compiler. |
16086 | fix_srcfile_path="$fix_srcfile_path_F77" |
16087 | |
16088 | # Set to yes if exported symbols are required. |
16089 | always_export_symbols=$always_export_symbols_F77 |
16090 | |
16091 | # The commands to list exported symbols. |
16092 | export_symbols_cmds=$lt_export_symbols_cmds_F77 |
16093 | |
16094 | # The commands to extract the exported symbol list from a shared archive. |
16095 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
16096 | |
16097 | # Symbols that should not be listed in the preloaded symbols. |
16098 | exclude_expsyms=$lt_exclude_expsyms_F77 |
16099 | |
16100 | # Symbols that must always be exported. |
16101 | include_expsyms=$lt_include_expsyms_F77 |
16102 | |
16103 | # ### END LIBTOOL TAG CONFIG: $tagname |
16104 | |
16105 | __EOF__ |
16106 | |
16107 | |
16108 | else |
16109 | # If there is no Makefile yet, we rely on a make rule to execute |
16110 | # `config.status --recheck' to rerun these tests and create the |
16111 | # libtool script then. |
16112 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
16113 | if test -f "$ltmain_in"; then |
16114 | test -f Makefile && make "$ltmain" |
16115 | fi |
16116 | fi |
16117 | |
16118 | |
16119 | ac_ext=c |
16120 | ac_cpp='$CPP $CPPFLAGS' |
16121 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
16122 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
16123 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
16124 | |
16125 | CC="$lt_save_CC" |
16126 | |
16127 | else |
16128 | tagname="" |
16129 | fi |
16130 | ;; |
16131 | |
16132 | GCJ) |
16133 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
16134 | |
16135 | |
d9898ee8 |
16136 | # Source file extension for Java test sources. |
16137 | ac_ext=java |
16138 | |
16139 | # Object file extension for compiled Java test sources. |
16140 | objext=o |
16141 | objext_GCJ=$objext |
16142 | |
16143 | # Code to be used in simple compile tests |
16144 | lt_simple_compile_test_code="class foo {}\n" |
16145 | |
16146 | # Code to be used in simple link tests |
16147 | lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' |
16148 | |
16149 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
16150 | |
16151 | # If no C compiler was specified, use CC. |
16152 | LTCC=${LTCC-"$CC"} |
16153 | |
16154 | # If no C compiler flags were specified, use CFLAGS. |
16155 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
16156 | |
16157 | # Allow CC to be a program name with arguments. |
16158 | compiler=$CC |
16159 | |
16160 | |
16161 | # save warnings/boilerplate of simple test code |
16162 | ac_outfile=conftest.$ac_objext |
16163 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
16164 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
16165 | _lt_compiler_boilerplate=`cat conftest.err` |
16166 | $rm conftest* |
16167 | |
16168 | ac_outfile=conftest.$ac_objext |
16169 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
16170 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
16171 | _lt_linker_boilerplate=`cat conftest.err` |
16172 | $rm conftest* |
16173 | |
16174 | |
16175 | # Allow CC to be a program name with arguments. |
16176 | lt_save_CC="$CC" |
16177 | CC=${GCJ-"gcj"} |
16178 | compiler=$CC |
16179 | compiler_GCJ=$CC |
16180 | for cc_temp in $compiler""; do |
16181 | case $cc_temp in |
16182 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
16183 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
16184 | \-*) ;; |
16185 | *) break;; |
16186 | esac |
16187 | done |
16188 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
16189 | |
16190 | |
16191 | # GCJ did not exist at the time GCC didn't implicitly link libc in. |
16192 | archive_cmds_need_lc_GCJ=no |
16193 | |
16194 | old_archive_cmds_GCJ=$old_archive_cmds |
16195 | |
16196 | |
16197 | lt_prog_compiler_no_builtin_flag_GCJ= |
16198 | |
16199 | if test "$GCC" = yes; then |
16200 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' |
16201 | |
16202 | |
dd184caf |
16203 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
16204 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } |
d9898ee8 |
16205 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
16206 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16207 | else |
16208 | lt_cv_prog_compiler_rtti_exceptions=no |
16209 | ac_outfile=conftest.$ac_objext |
16210 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
16211 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
16212 | # Insert the option either (1) after the last *FLAGS variable, or |
16213 | # (2) before a word containing "conftest.", or (3) at the end. |
16214 | # Note that $ac_compile itself does not contain backslashes and begins |
16215 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
16216 | # The option is referenced via a variable to avoid confusing sed. |
16217 | lt_compile=`echo "$ac_compile" | $SED \ |
16218 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
16219 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
16220 | -e 's:$: $lt_compiler_flag:'` |
1dce02f2 |
16221 | (eval echo "\"\$as_me:16221: $lt_compile\"" >&5) |
d9898ee8 |
16222 | (eval "$lt_compile" 2>conftest.err) |
16223 | ac_status=$? |
16224 | cat conftest.err >&5 |
1dce02f2 |
16225 | echo "$as_me:16225: \$? = $ac_status" >&5 |
d9898ee8 |
16226 | if (exit $ac_status) && test -s "$ac_outfile"; then |
16227 | # The compiler can only warn and ignore the option if not recognized |
16228 | # So say no if there are warnings other than the usual output. |
16229 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
16230 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
16231 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
16232 | lt_cv_prog_compiler_rtti_exceptions=yes |
16233 | fi |
16234 | fi |
16235 | $rm conftest* |
16236 | |
16237 | fi |
dd184caf |
16238 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
16239 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
d9898ee8 |
16240 | |
16241 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
16242 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" |
16243 | else |
16244 | : |
16245 | fi |
16246 | |
16247 | fi |
16248 | |
16249 | lt_prog_compiler_wl_GCJ= |
16250 | lt_prog_compiler_pic_GCJ= |
16251 | lt_prog_compiler_static_GCJ= |
16252 | |
dd184caf |
16253 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
16254 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
d9898ee8 |
16255 | |
16256 | if test "$GCC" = yes; then |
16257 | lt_prog_compiler_wl_GCJ='-Wl,' |
16258 | lt_prog_compiler_static_GCJ='-static' |
16259 | |
16260 | case $host_os in |
16261 | aix*) |
16262 | # All AIX code is PIC. |
16263 | if test "$host_cpu" = ia64; then |
16264 | # AIX 5 now supports IA64 processor |
16265 | lt_prog_compiler_static_GCJ='-Bstatic' |
16266 | fi |
16267 | ;; |
16268 | |
16269 | amigaos*) |
16270 | # FIXME: we need at least 68020 code to build shared libraries, but |
16271 | # adding the `-m68020' flag to GCC prevents building anything better, |
16272 | # like `-m68040'. |
16273 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' |
16274 | ;; |
16275 | |
16276 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
16277 | # PIC is the default for these OSes. |
16278 | ;; |
16279 | |
16280 | mingw* | pw32* | os2*) |
16281 | # This hack is so that the source file can tell whether it is being |
16282 | # built for inclusion in a dll (and should export symbols for example). |
16283 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
16284 | ;; |
16285 | |
16286 | darwin* | rhapsody*) |
16287 | # PIC is the default on this platform |
16288 | # Common symbols not allowed in MH_DYLIB files |
16289 | lt_prog_compiler_pic_GCJ='-fno-common' |
16290 | ;; |
16291 | |
16292 | interix3*) |
16293 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
16294 | # Instead, we relocate shared libraries at runtime. |
16295 | ;; |
16296 | |
16297 | msdosdjgpp*) |
16298 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
16299 | # on systems that don't support them. |
16300 | lt_prog_compiler_can_build_shared_GCJ=no |
16301 | enable_shared=no |
16302 | ;; |
16303 | |
16304 | sysv4*MP*) |
16305 | if test -d /usr/nec; then |
16306 | lt_prog_compiler_pic_GCJ=-Kconform_pic |
16307 | fi |
16308 | ;; |
16309 | |
16310 | hpux*) |
16311 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
16312 | # not for PA HP-UX. |
16313 | case $host_cpu in |
16314 | hppa*64*|ia64*) |
16315 | # +Z the default |
16316 | ;; |
16317 | *) |
16318 | lt_prog_compiler_pic_GCJ='-fPIC' |
16319 | ;; |
16320 | esac |
16321 | ;; |
16322 | |
16323 | *) |
16324 | lt_prog_compiler_pic_GCJ='-fPIC' |
16325 | ;; |
16326 | esac |
16327 | else |
16328 | # PORTME Check for flag to pass linker flags through the system compiler. |
16329 | case $host_os in |
16330 | aix*) |
16331 | lt_prog_compiler_wl_GCJ='-Wl,' |
16332 | if test "$host_cpu" = ia64; then |
16333 | # AIX 5 now supports IA64 processor |
16334 | lt_prog_compiler_static_GCJ='-Bstatic' |
16335 | else |
16336 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' |
16337 | fi |
16338 | ;; |
16339 | darwin*) |
16340 | # PIC is the default on this platform |
16341 | # Common symbols not allowed in MH_DYLIB files |
16342 | case $cc_basename in |
16343 | xlc*) |
16344 | lt_prog_compiler_pic_GCJ='-qnocommon' |
16345 | lt_prog_compiler_wl_GCJ='-Wl,' |
16346 | ;; |
16347 | esac |
16348 | ;; |
16349 | |
16350 | mingw* | pw32* | os2*) |
16351 | # This hack is so that the source file can tell whether it is being |
16352 | # built for inclusion in a dll (and should export symbols for example). |
16353 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
16354 | ;; |
16355 | |
16356 | hpux9* | hpux10* | hpux11*) |
16357 | lt_prog_compiler_wl_GCJ='-Wl,' |
16358 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
16359 | # not for PA HP-UX. |
16360 | case $host_cpu in |
16361 | hppa*64*|ia64*) |
16362 | # +Z the default |
16363 | ;; |
16364 | *) |
16365 | lt_prog_compiler_pic_GCJ='+Z' |
16366 | ;; |
16367 | esac |
16368 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
16369 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' |
16370 | ;; |
16371 | |
16372 | irix5* | irix6* | nonstopux*) |
16373 | lt_prog_compiler_wl_GCJ='-Wl,' |
16374 | # PIC (with -KPIC) is the default. |
16375 | lt_prog_compiler_static_GCJ='-non_shared' |
16376 | ;; |
16377 | |
16378 | newsos6) |
16379 | lt_prog_compiler_pic_GCJ='-KPIC' |
16380 | lt_prog_compiler_static_GCJ='-Bstatic' |
16381 | ;; |
16382 | |
1dce02f2 |
16383 | linux* | k*bsd*-gnu) |
d9898ee8 |
16384 | case $cc_basename in |
16385 | icc* | ecc*) |
16386 | lt_prog_compiler_wl_GCJ='-Wl,' |
16387 | lt_prog_compiler_pic_GCJ='-KPIC' |
16388 | lt_prog_compiler_static_GCJ='-static' |
16389 | ;; |
16390 | pgcc* | pgf77* | pgf90* | pgf95*) |
16391 | # Portland Group compilers (*not* the Pentium gcc compiler, |
16392 | # which looks to be a dead project) |
16393 | lt_prog_compiler_wl_GCJ='-Wl,' |
16394 | lt_prog_compiler_pic_GCJ='-fpic' |
16395 | lt_prog_compiler_static_GCJ='-Bstatic' |
16396 | ;; |
16397 | ccc*) |
16398 | lt_prog_compiler_wl_GCJ='-Wl,' |
16399 | # All Alpha code is PIC. |
16400 | lt_prog_compiler_static_GCJ='-non_shared' |
16401 | ;; |
16402 | esac |
16403 | ;; |
16404 | |
16405 | osf3* | osf4* | osf5*) |
16406 | lt_prog_compiler_wl_GCJ='-Wl,' |
16407 | # All OSF/1 code is PIC. |
16408 | lt_prog_compiler_static_GCJ='-non_shared' |
16409 | ;; |
16410 | |
16411 | solaris*) |
16412 | lt_prog_compiler_pic_GCJ='-KPIC' |
16413 | lt_prog_compiler_static_GCJ='-Bstatic' |
16414 | case $cc_basename in |
16415 | f77* | f90* | f95*) |
16416 | lt_prog_compiler_wl_GCJ='-Qoption ld ';; |
16417 | *) |
16418 | lt_prog_compiler_wl_GCJ='-Wl,';; |
16419 | esac |
16420 | ;; |
16421 | |
16422 | sunos4*) |
16423 | lt_prog_compiler_wl_GCJ='-Qoption ld ' |
16424 | lt_prog_compiler_pic_GCJ='-PIC' |
16425 | lt_prog_compiler_static_GCJ='-Bstatic' |
16426 | ;; |
16427 | |
16428 | sysv4 | sysv4.2uw2* | sysv4.3*) |
16429 | lt_prog_compiler_wl_GCJ='-Wl,' |
16430 | lt_prog_compiler_pic_GCJ='-KPIC' |
16431 | lt_prog_compiler_static_GCJ='-Bstatic' |
16432 | ;; |
16433 | |
16434 | sysv4*MP*) |
16435 | if test -d /usr/nec ;then |
16436 | lt_prog_compiler_pic_GCJ='-Kconform_pic' |
16437 | lt_prog_compiler_static_GCJ='-Bstatic' |
16438 | fi |
16439 | ;; |
16440 | |
16441 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
16442 | lt_prog_compiler_wl_GCJ='-Wl,' |
16443 | lt_prog_compiler_pic_GCJ='-KPIC' |
16444 | lt_prog_compiler_static_GCJ='-Bstatic' |
16445 | ;; |
16446 | |
16447 | unicos*) |
16448 | lt_prog_compiler_wl_GCJ='-Wl,' |
16449 | lt_prog_compiler_can_build_shared_GCJ=no |
16450 | ;; |
16451 | |
16452 | uts4*) |
16453 | lt_prog_compiler_pic_GCJ='-pic' |
16454 | lt_prog_compiler_static_GCJ='-Bstatic' |
16455 | ;; |
16456 | |
16457 | *) |
16458 | lt_prog_compiler_can_build_shared_GCJ=no |
16459 | ;; |
16460 | esac |
16461 | fi |
16462 | |
dd184caf |
16463 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 |
16464 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } |
d9898ee8 |
16465 | |
16466 | # |
16467 | # Check to make sure the PIC flag actually works. |
16468 | # |
16469 | if test -n "$lt_prog_compiler_pic_GCJ"; then |
16470 | |
dd184caf |
16471 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 |
16472 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } |
d9898ee8 |
16473 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then |
16474 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16475 | else |
16476 | lt_prog_compiler_pic_works_GCJ=no |
16477 | ac_outfile=conftest.$ac_objext |
16478 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
16479 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ" |
16480 | # Insert the option either (1) after the last *FLAGS variable, or |
16481 | # (2) before a word containing "conftest.", or (3) at the end. |
16482 | # Note that $ac_compile itself does not contain backslashes and begins |
16483 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
16484 | # The option is referenced via a variable to avoid confusing sed. |
16485 | lt_compile=`echo "$ac_compile" | $SED \ |
16486 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
16487 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
16488 | -e 's:$: $lt_compiler_flag:'` |
1dce02f2 |
16489 | (eval echo "\"\$as_me:16489: $lt_compile\"" >&5) |
d9898ee8 |
16490 | (eval "$lt_compile" 2>conftest.err) |
16491 | ac_status=$? |
16492 | cat conftest.err >&5 |
1dce02f2 |
16493 | echo "$as_me:16493: \$? = $ac_status" >&5 |
d9898ee8 |
16494 | if (exit $ac_status) && test -s "$ac_outfile"; then |
16495 | # The compiler can only warn and ignore the option if not recognized |
16496 | # So say no if there are warnings other than the usual output. |
16497 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
16498 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
16499 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
16500 | lt_prog_compiler_pic_works_GCJ=yes |
16501 | fi |
16502 | fi |
16503 | $rm conftest* |
16504 | |
16505 | fi |
dd184caf |
16506 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 |
16507 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } |
d9898ee8 |
16508 | |
16509 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then |
16510 | case $lt_prog_compiler_pic_GCJ in |
16511 | "" | " "*) ;; |
16512 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; |
16513 | esac |
16514 | else |
16515 | lt_prog_compiler_pic_GCJ= |
16516 | lt_prog_compiler_can_build_shared_GCJ=no |
16517 | fi |
16518 | |
16519 | fi |
16520 | case $host_os in |
16521 | # For platforms which do not support PIC, -DPIC is meaningless: |
16522 | *djgpp*) |
16523 | lt_prog_compiler_pic_GCJ= |
16524 | ;; |
16525 | *) |
16526 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" |
16527 | ;; |
16528 | esac |
16529 | |
16530 | # |
16531 | # Check to make sure the static flag actually works. |
16532 | # |
16533 | wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" |
dd184caf |
16534 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
16535 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
d9898ee8 |
16536 | if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then |
16537 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16538 | else |
16539 | lt_prog_compiler_static_works_GCJ=no |
16540 | save_LDFLAGS="$LDFLAGS" |
16541 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
16542 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
16543 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
16544 | # The linker can only warn and ignore the option if not recognized |
16545 | # So say no if there are warnings |
16546 | if test -s conftest.err; then |
16547 | # Append any errors to the config.log. |
16548 | cat conftest.err 1>&5 |
16549 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
16550 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
16551 | if diff conftest.exp conftest.er2 >/dev/null; then |
16552 | lt_prog_compiler_static_works_GCJ=yes |
16553 | fi |
16554 | else |
16555 | lt_prog_compiler_static_works_GCJ=yes |
16556 | fi |
16557 | fi |
16558 | $rm conftest* |
16559 | LDFLAGS="$save_LDFLAGS" |
16560 | |
16561 | fi |
dd184caf |
16562 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 |
16563 | echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } |
d9898ee8 |
16564 | |
16565 | if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then |
16566 | : |
16567 | else |
16568 | lt_prog_compiler_static_GCJ= |
16569 | fi |
16570 | |
16571 | |
dd184caf |
16572 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
16573 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
d9898ee8 |
16574 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
16575 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16576 | else |
16577 | lt_cv_prog_compiler_c_o_GCJ=no |
16578 | $rm -r conftest 2>/dev/null |
16579 | mkdir conftest |
16580 | cd conftest |
16581 | mkdir out |
16582 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
16583 | |
16584 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
16585 | # Insert the option either (1) after the last *FLAGS variable, or |
16586 | # (2) before a word containing "conftest.", or (3) at the end. |
16587 | # Note that $ac_compile itself does not contain backslashes and begins |
16588 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
16589 | lt_compile=`echo "$ac_compile" | $SED \ |
16590 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
16591 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
16592 | -e 's:$: $lt_compiler_flag:'` |
1dce02f2 |
16593 | (eval echo "\"\$as_me:16593: $lt_compile\"" >&5) |
d9898ee8 |
16594 | (eval "$lt_compile" 2>out/conftest.err) |
16595 | ac_status=$? |
16596 | cat out/conftest.err >&5 |
1dce02f2 |
16597 | echo "$as_me:16597: \$? = $ac_status" >&5 |
d9898ee8 |
16598 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
16599 | then |
16600 | # The compiler can only warn and ignore the option if not recognized |
16601 | # So say no if there are warnings |
16602 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
16603 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
16604 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
16605 | lt_cv_prog_compiler_c_o_GCJ=yes |
16606 | fi |
16607 | fi |
16608 | chmod u+w . 2>&5 |
16609 | $rm conftest* |
16610 | # SGI C++ compiler will create directory out/ii_files/ for |
16611 | # template instantiation |
16612 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
16613 | $rm out/* && rmdir out |
16614 | cd .. |
16615 | rmdir conftest |
16616 | $rm conftest* |
16617 | |
16618 | fi |
dd184caf |
16619 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
16620 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } |
d9898ee8 |
16621 | |
16622 | |
16623 | hard_links="nottested" |
16624 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then |
16625 | # do not overwrite the value of need_locks provided by the user |
dd184caf |
16626 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
16627 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
d9898ee8 |
16628 | hard_links=yes |
16629 | $rm conftest* |
16630 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
16631 | touch conftest.a |
16632 | ln conftest.a conftest.b 2>&5 || hard_links=no |
16633 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
dd184caf |
16634 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
16635 | echo "${ECHO_T}$hard_links" >&6; } |
d9898ee8 |
16636 | if test "$hard_links" = no; then |
16637 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
16638 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
16639 | need_locks=warn |
16640 | fi |
16641 | else |
16642 | need_locks=no |
16643 | fi |
16644 | |
dd184caf |
16645 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
16646 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
d9898ee8 |
16647 | |
16648 | runpath_var= |
16649 | allow_undefined_flag_GCJ= |
16650 | enable_shared_with_static_runtimes_GCJ=no |
16651 | archive_cmds_GCJ= |
16652 | archive_expsym_cmds_GCJ= |
16653 | old_archive_From_new_cmds_GCJ= |
16654 | old_archive_from_expsyms_cmds_GCJ= |
16655 | export_dynamic_flag_spec_GCJ= |
16656 | whole_archive_flag_spec_GCJ= |
16657 | thread_safe_flag_spec_GCJ= |
16658 | hardcode_libdir_flag_spec_GCJ= |
16659 | hardcode_libdir_flag_spec_ld_GCJ= |
16660 | hardcode_libdir_separator_GCJ= |
16661 | hardcode_direct_GCJ=no |
16662 | hardcode_minus_L_GCJ=no |
16663 | hardcode_shlibpath_var_GCJ=unsupported |
16664 | link_all_deplibs_GCJ=unknown |
16665 | hardcode_automatic_GCJ=no |
16666 | module_cmds_GCJ= |
16667 | module_expsym_cmds_GCJ= |
16668 | always_export_symbols_GCJ=no |
16669 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
16670 | # include_expsyms should be a list of space-separated symbols to be *always* |
16671 | # included in the symbol list |
16672 | include_expsyms_GCJ= |
16673 | # exclude_expsyms can be an extended regexp of symbols to exclude |
16674 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
16675 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
16676 | # as well as any symbol that contains `d'. |
16677 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" |
16678 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
16679 | # platforms (ab)use it in PIC code, but their linkers get confused if |
16680 | # the symbol is explicitly referenced. Since portable code cannot |
16681 | # rely on this symbol name, it's probably fine to never include it in |
16682 | # preloaded symbol tables. |
16683 | extract_expsyms_cmds= |
16684 | # Just being paranoid about ensuring that cc_basename is set. |
16685 | for cc_temp in $compiler""; do |
16686 | case $cc_temp in |
16687 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
16688 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
16689 | \-*) ;; |
16690 | *) break;; |
16691 | esac |
16692 | done |
16693 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
16694 | |
16695 | case $host_os in |
16696 | cygwin* | mingw* | pw32*) |
16697 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
16698 | # When not using gcc, we currently assume that we are using |
16699 | # Microsoft Visual C++. |
16700 | if test "$GCC" != yes; then |
16701 | with_gnu_ld=no |
16702 | fi |
16703 | ;; |
16704 | interix*) |
16705 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
16706 | with_gnu_ld=yes |
16707 | ;; |
16708 | openbsd*) |
16709 | with_gnu_ld=no |
16710 | ;; |
16711 | esac |
16712 | |
16713 | ld_shlibs_GCJ=yes |
16714 | if test "$with_gnu_ld" = yes; then |
16715 | # If archive_cmds runs LD, not CC, wlarc should be empty |
16716 | wlarc='${wl}' |
16717 | |
16718 | # Set some defaults for GNU ld with shared library support. These |
16719 | # are reset later if shared libraries are not supported. Putting them |
16720 | # here allows them to be overridden if necessary. |
16721 | runpath_var=LD_RUN_PATH |
16722 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' |
16723 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' |
16724 | # ancient GNU ld didn't support --whole-archive et. al. |
16725 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
16726 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
16727 | else |
16728 | whole_archive_flag_spec_GCJ= |
16729 | fi |
16730 | supports_anon_versioning=no |
16731 | case `$LD -v 2>/dev/null` in |
16732 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
16733 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
16734 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
16735 | *\ 2.11.*) ;; # other 2.11 versions |
16736 | *) supports_anon_versioning=yes ;; |
16737 | esac |
16738 | |
16739 | # See if GNU ld supports shared libraries. |
16740 | case $host_os in |
16741 | aix3* | aix4* | aix5*) |
16742 | # On AIX/PPC, the GNU linker is very broken |
16743 | if test "$host_cpu" != ia64; then |
16744 | ld_shlibs_GCJ=no |
16745 | cat <<EOF 1>&2 |
16746 | |
16747 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
16748 | *** to be unable to reliably create shared libraries on AIX. |
16749 | *** Therefore, libtool is disabling shared libraries support. If you |
16750 | *** really care for shared libraries, you may want to modify your PATH |
16751 | *** so that a non-GNU linker is found, and then restart. |
16752 | |
16753 | EOF |
16754 | fi |
16755 | ;; |
16756 | |
16757 | amigaos*) |
16758 | 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)' |
16759 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16760 | hardcode_minus_L_GCJ=yes |
16761 | |
16762 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
16763 | # that the semantics of dynamic libraries on AmigaOS, at least up |
16764 | # to version 4, is to share data among multiple programs linked |
16765 | # with the same dynamic library. Since this doesn't match the |
16766 | # behavior of shared libraries on other platforms, we can't use |
16767 | # them. |
16768 | ld_shlibs_GCJ=no |
16769 | ;; |
16770 | |
16771 | beos*) |
16772 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
16773 | allow_undefined_flag_GCJ=unsupported |
16774 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
16775 | # support --undefined. This deserves some investigation. FIXME |
16776 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
16777 | else |
16778 | ld_shlibs_GCJ=no |
16779 | fi |
16780 | ;; |
16781 | |
16782 | cygwin* | mingw* | pw32*) |
16783 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, |
16784 | # as there is no search path for DLLs. |
16785 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16786 | allow_undefined_flag_GCJ=unsupported |
16787 | always_export_symbols_GCJ=no |
16788 | enable_shared_with_static_runtimes_GCJ=yes |
16789 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
16790 | |
16791 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
16792 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
16793 | # If the export-symbols file already is a .def file (1st line |
16794 | # is EXPORTS), use it as is; otherwise, prepend... |
16795 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
16796 | cp $export_symbols $output_objdir/$soname.def; |
16797 | else |
16798 | echo EXPORTS > $output_objdir/$soname.def; |
16799 | cat $export_symbols >> $output_objdir/$soname.def; |
16800 | fi~ |
16801 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
16802 | else |
16803 | ld_shlibs_GCJ=no |
16804 | fi |
16805 | ;; |
16806 | |
16807 | interix3*) |
16808 | hardcode_direct_GCJ=no |
16809 | hardcode_shlibpath_var_GCJ=no |
16810 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
16811 | export_dynamic_flag_spec_GCJ='${wl}-E' |
16812 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
16813 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
16814 | # default) and relocated if they conflict, which is a slow very memory |
16815 | # consuming and fragmenting process. To avoid this, we pick a random, |
16816 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
16817 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
16818 | 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' |
16819 | 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' |
16820 | ;; |
16821 | |
1dce02f2 |
16822 | linux* | k*bsd*-gnu) |
d9898ee8 |
16823 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
16824 | tmp_addflag= |
16825 | case $cc_basename,$host_cpu in |
16826 | pgcc*) # Portland Group C compiler |
16827 | 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' |
16828 | tmp_addflag=' $pic_flag' |
16829 | ;; |
16830 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
16831 | 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' |
16832 | tmp_addflag=' $pic_flag -Mnomain' ;; |
16833 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
16834 | tmp_addflag=' -i_dynamic' ;; |
16835 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
16836 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
16837 | ifc* | ifort*) # Intel Fortran compiler |
16838 | tmp_addflag=' -nofor_main' ;; |
16839 | esac |
16840 | archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
16841 | |
16842 | if test $supports_anon_versioning = yes; then |
16843 | archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ |
16844 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
16845 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
16846 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
16847 | fi |
1dce02f2 |
16848 | link_all_deplibs_GCJ=no |
d9898ee8 |
16849 | else |
16850 | ld_shlibs_GCJ=no |
16851 | fi |
16852 | ;; |
16853 | |
1dce02f2 |
16854 | netbsd* | netbsdelf*-gnu) |
d9898ee8 |
16855 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
16856 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
16857 | wlarc= |
16858 | else |
16859 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
16860 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
16861 | fi |
16862 | ;; |
16863 | |
16864 | solaris*) |
16865 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
16866 | ld_shlibs_GCJ=no |
16867 | cat <<EOF 1>&2 |
16868 | |
16869 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
16870 | *** create shared libraries on Solaris systems. Therefore, libtool |
16871 | *** is disabling shared libraries support. We urge you to upgrade GNU |
16872 | *** binutils to release 2.9.1 or newer. Another option is to modify |
16873 | *** your PATH or compiler configuration so that the native linker is |
16874 | *** used, and then restart. |
16875 | |
16876 | EOF |
16877 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
16878 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
16879 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
16880 | else |
16881 | ld_shlibs_GCJ=no |
16882 | fi |
16883 | ;; |
16884 | |
16885 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
16886 | case `$LD -v 2>&1` in |
16887 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
16888 | ld_shlibs_GCJ=no |
16889 | cat <<_LT_EOF 1>&2 |
16890 | |
16891 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
16892 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
16893 | *** is disabling shared libraries support. We urge you to upgrade GNU |
16894 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
16895 | *** your PATH or compiler configuration so that the native linker is |
16896 | *** used, and then restart. |
16897 | |
16898 | _LT_EOF |
16899 | ;; |
16900 | *) |
16901 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
16902 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
16903 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
16904 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
16905 | else |
16906 | ld_shlibs_GCJ=no |
16907 | fi |
16908 | ;; |
16909 | esac |
16910 | ;; |
16911 | |
16912 | sunos4*) |
16913 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
16914 | wlarc= |
16915 | hardcode_direct_GCJ=yes |
16916 | hardcode_shlibpath_var_GCJ=no |
16917 | ;; |
16918 | |
16919 | *) |
16920 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
16921 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
16922 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
16923 | else |
16924 | ld_shlibs_GCJ=no |
16925 | fi |
16926 | ;; |
16927 | esac |
16928 | |
16929 | if test "$ld_shlibs_GCJ" = no; then |
16930 | runpath_var= |
16931 | hardcode_libdir_flag_spec_GCJ= |
16932 | export_dynamic_flag_spec_GCJ= |
16933 | whole_archive_flag_spec_GCJ= |
16934 | fi |
16935 | else |
16936 | # PORTME fill in a description of your system's linker (not GNU ld) |
16937 | case $host_os in |
16938 | aix3*) |
16939 | allow_undefined_flag_GCJ=unsupported |
16940 | always_export_symbols_GCJ=yes |
16941 | 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' |
16942 | # Note: this linker hardcodes the directories in LIBPATH if there |
16943 | # are no directories specified by -L. |
16944 | hardcode_minus_L_GCJ=yes |
16945 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
16946 | # Neither direct hardcoding nor static linking is supported with a |
16947 | # broken collect2. |
16948 | hardcode_direct_GCJ=unsupported |
16949 | fi |
16950 | ;; |
16951 | |
16952 | aix4* | aix5*) |
16953 | if test "$host_cpu" = ia64; then |
16954 | # On IA64, the linker does run time linking by default, so we don't |
16955 | # have to do anything special. |
16956 | aix_use_runtimelinking=no |
16957 | exp_sym_flag='-Bexport' |
16958 | no_entry_flag="" |
16959 | else |
16960 | # If we're using GNU nm, then we don't want the "-C" option. |
16961 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
16962 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
16963 | 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' |
16964 | else |
16965 | 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' |
16966 | fi |
16967 | aix_use_runtimelinking=no |
16968 | |
16969 | # Test if we are trying to use run time linking or normal |
16970 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
16971 | # need to do runtime linking. |
16972 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
16973 | for ld_flag in $LDFLAGS; do |
16974 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
16975 | aix_use_runtimelinking=yes |
16976 | break |
16977 | fi |
16978 | done |
16979 | ;; |
16980 | esac |
16981 | |
16982 | exp_sym_flag='-bexport' |
16983 | no_entry_flag='-bnoentry' |
16984 | fi |
16985 | |
16986 | # When large executables or shared objects are built, AIX ld can |
16987 | # have problems creating the table of contents. If linking a library |
16988 | # or program results in "error TOC overflow" add -mminimal-toc to |
16989 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
16990 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
16991 | |
16992 | archive_cmds_GCJ='' |
16993 | hardcode_direct_GCJ=yes |
16994 | hardcode_libdir_separator_GCJ=':' |
16995 | link_all_deplibs_GCJ=yes |
16996 | |
16997 | if test "$GCC" = yes; then |
16998 | case $host_os in aix4.[012]|aix4.[012].*) |
16999 | # We only want to do this on AIX 4.2 and lower, the check |
17000 | # below for broken collect2 doesn't work under 4.3+ |
17001 | collect2name=`${CC} -print-prog-name=collect2` |
17002 | if test -f "$collect2name" && \ |
17003 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
17004 | then |
17005 | # We have reworked collect2 |
17006 | hardcode_direct_GCJ=yes |
17007 | else |
17008 | # We have old collect2 |
17009 | hardcode_direct_GCJ=unsupported |
17010 | # It fails to find uninstalled libraries when the uninstalled |
17011 | # path is not listed in the libpath. Setting hardcode_minus_L |
17012 | # to unsupported forces relinking |
17013 | hardcode_minus_L_GCJ=yes |
17014 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17015 | hardcode_libdir_separator_GCJ= |
17016 | fi |
17017 | ;; |
17018 | esac |
17019 | shared_flag='-shared' |
17020 | if test "$aix_use_runtimelinking" = yes; then |
17021 | shared_flag="$shared_flag "'${wl}-G' |
17022 | fi |
17023 | else |
17024 | # not using gcc |
17025 | if test "$host_cpu" = ia64; then |
17026 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
17027 | # chokes on -Wl,-G. The following line is correct: |
17028 | shared_flag='-G' |
17029 | else |
17030 | if test "$aix_use_runtimelinking" = yes; then |
17031 | shared_flag='${wl}-G' |
17032 | else |
17033 | shared_flag='${wl}-bM:SRE' |
17034 | fi |
17035 | fi |
17036 | fi |
17037 | |
17038 | # It seems that -bexpall does not export symbols beginning with |
17039 | # underscore (_), so it is better to generate a list of symbols to export. |
17040 | always_export_symbols_GCJ=yes |
17041 | if test "$aix_use_runtimelinking" = yes; then |
17042 | # Warning - without using the other runtime loading flags (-brtl), |
17043 | # -berok will link without error, but may produce a broken library. |
17044 | allow_undefined_flag_GCJ='-berok' |
17045 | # Determine the default libpath from the value encoded in an empty executable. |
17046 | cat >conftest.$ac_ext <<_ACEOF |
17047 | /* confdefs.h. */ |
17048 | _ACEOF |
17049 | cat confdefs.h >>conftest.$ac_ext |
17050 | cat >>conftest.$ac_ext <<_ACEOF |
17051 | /* end confdefs.h. */ |
17052 | |
17053 | int |
17054 | main () |
17055 | { |
17056 | |
17057 | ; |
17058 | return 0; |
17059 | } |
17060 | _ACEOF |
17061 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
17062 | if { (ac_try="$ac_link" |
17063 | case "(($ac_try" in |
17064 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
17065 | *) ac_try_echo=$ac_try;; |
17066 | esac |
17067 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
17068 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
17069 | ac_status=$? |
17070 | grep -v '^ *+' conftest.er1 >conftest.err |
17071 | rm -f conftest.er1 |
17072 | cat conftest.err >&5 |
17073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
17074 | (exit $ac_status); } && { |
17075 | test -z "$ac_c_werror_flag" || |
17076 | test ! -s conftest.err |
17077 | } && test -s conftest$ac_exeext && |
17078 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
17079 | |
17080 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
17081 | }'` |
17082 | # Check for a 64-bit object if we didn't find anything. |
17083 | 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; } |
17084 | }'`; fi |
17085 | else |
17086 | echo "$as_me: failed program was:" >&5 |
17087 | sed 's/^/| /' conftest.$ac_ext >&5 |
17088 | |
dd184caf |
17089 | |
d9898ee8 |
17090 | fi |
dd184caf |
17091 | |
17092 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
17093 | conftest$ac_exeext conftest.$ac_ext |
17094 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
17095 | |
17096 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
17097 | 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" |
17098 | else |
17099 | if test "$host_cpu" = ia64; then |
17100 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' |
17101 | allow_undefined_flag_GCJ="-z nodefs" |
17102 | 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" |
17103 | else |
17104 | # Determine the default libpath from the value encoded in an empty executable. |
17105 | cat >conftest.$ac_ext <<_ACEOF |
17106 | /* confdefs.h. */ |
17107 | _ACEOF |
17108 | cat confdefs.h >>conftest.$ac_ext |
17109 | cat >>conftest.$ac_ext <<_ACEOF |
17110 | /* end confdefs.h. */ |
17111 | |
17112 | int |
17113 | main () |
17114 | { |
17115 | |
17116 | ; |
17117 | return 0; |
17118 | } |
17119 | _ACEOF |
17120 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
17121 | if { (ac_try="$ac_link" |
17122 | case "(($ac_try" in |
17123 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
17124 | *) ac_try_echo=$ac_try;; |
17125 | esac |
17126 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
17127 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
17128 | ac_status=$? |
17129 | grep -v '^ *+' conftest.er1 >conftest.err |
17130 | rm -f conftest.er1 |
17131 | cat conftest.err >&5 |
17132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
17133 | (exit $ac_status); } && { |
17134 | test -z "$ac_c_werror_flag" || |
17135 | test ! -s conftest.err |
17136 | } && test -s conftest$ac_exeext && |
17137 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
17138 | |
17139 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
17140 | }'` |
17141 | # Check for a 64-bit object if we didn't find anything. |
17142 | 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; } |
17143 | }'`; fi |
17144 | else |
17145 | echo "$as_me: failed program was:" >&5 |
17146 | sed 's/^/| /' conftest.$ac_ext >&5 |
17147 | |
dd184caf |
17148 | |
d9898ee8 |
17149 | fi |
dd184caf |
17150 | |
17151 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
17152 | conftest$ac_exeext conftest.$ac_ext |
17153 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
17154 | |
17155 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
17156 | # Warning - without using the other run time loading flags, |
17157 | # -berok will link without error, but may produce a broken library. |
17158 | no_undefined_flag_GCJ=' ${wl}-bernotok' |
17159 | allow_undefined_flag_GCJ=' ${wl}-berok' |
17160 | # Exported symbols can be pulled into shared objects from archives |
17161 | whole_archive_flag_spec_GCJ='$convenience' |
17162 | archive_cmds_need_lc_GCJ=yes |
17163 | # This is similar to how AIX traditionally builds its shared libraries. |
17164 | 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' |
17165 | fi |
17166 | fi |
17167 | ;; |
17168 | |
17169 | amigaos*) |
17170 | 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)' |
17171 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17172 | hardcode_minus_L_GCJ=yes |
17173 | # see comment about different semantics on the GNU ld section |
17174 | ld_shlibs_GCJ=no |
17175 | ;; |
17176 | |
17177 | bsdi[45]*) |
17178 | export_dynamic_flag_spec_GCJ=-rdynamic |
17179 | ;; |
17180 | |
17181 | cygwin* | mingw* | pw32*) |
17182 | # When not using gcc, we currently assume that we are using |
17183 | # Microsoft Visual C++. |
17184 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
17185 | # no search path for DLLs. |
17186 | hardcode_libdir_flag_spec_GCJ=' ' |
17187 | allow_undefined_flag_GCJ=unsupported |
17188 | # Tell ltmain to make .lib files, not .a files. |
17189 | libext=lib |
17190 | # Tell ltmain to make .dll files, not .so files. |
17191 | shrext_cmds=".dll" |
17192 | # FIXME: Setting linknames here is a bad hack. |
17193 | archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
17194 | # The linker will automatically build a .lib file if we build a DLL. |
17195 | old_archive_From_new_cmds_GCJ='true' |
17196 | # FIXME: Should let the user specify the lib program. |
17197 | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' |
17198 | fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' |
17199 | enable_shared_with_static_runtimes_GCJ=yes |
17200 | ;; |
17201 | |
17202 | darwin* | rhapsody*) |
17203 | case $host_os in |
17204 | rhapsody* | darwin1.[012]) |
17205 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' |
17206 | ;; |
17207 | *) # Darwin 1.3 on |
17208 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
17209 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
17210 | else |
17211 | case ${MACOSX_DEPLOYMENT_TARGET} in |
17212 | 10.[012]) |
17213 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
17214 | ;; |
17215 | 10.*) |
17216 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' |
17217 | ;; |
17218 | esac |
17219 | fi |
17220 | ;; |
17221 | esac |
17222 | archive_cmds_need_lc_GCJ=no |
17223 | hardcode_direct_GCJ=no |
17224 | hardcode_automatic_GCJ=yes |
17225 | hardcode_shlibpath_var_GCJ=unsupported |
17226 | whole_archive_flag_spec_GCJ='' |
17227 | link_all_deplibs_GCJ=yes |
17228 | if test "$GCC" = yes ; then |
17229 | output_verbose_link_cmd='echo' |
17230 | archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
17231 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
17232 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
17233 | 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}' |
17234 | 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}' |
17235 | else |
17236 | case $cc_basename in |
17237 | xlc*) |
17238 | output_verbose_link_cmd='echo' |
17239 | archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
17240 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
17241 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
17242 | 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}' |
17243 | 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}' |
17244 | ;; |
17245 | *) |
17246 | ld_shlibs_GCJ=no |
17247 | ;; |
17248 | esac |
17249 | fi |
17250 | ;; |
17251 | |
17252 | dgux*) |
17253 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17254 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17255 | hardcode_shlibpath_var_GCJ=no |
17256 | ;; |
17257 | |
17258 | freebsd1*) |
17259 | ld_shlibs_GCJ=no |
17260 | ;; |
17261 | |
17262 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
17263 | # support. Future versions do this automatically, but an explicit c++rt0.o |
17264 | # does not break anything, and helps significantly (at the cost of a little |
17265 | # extra space). |
17266 | freebsd2.2*) |
17267 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
17268 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
17269 | hardcode_direct_GCJ=yes |
17270 | hardcode_shlibpath_var_GCJ=no |
17271 | ;; |
17272 | |
17273 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
17274 | freebsd2*) |
17275 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
17276 | hardcode_direct_GCJ=yes |
17277 | hardcode_minus_L_GCJ=yes |
17278 | hardcode_shlibpath_var_GCJ=no |
17279 | ;; |
17280 | |
17281 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
1dce02f2 |
17282 | freebsd* | dragonfly*) |
d9898ee8 |
17283 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
17284 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
17285 | hardcode_direct_GCJ=yes |
17286 | hardcode_shlibpath_var_GCJ=no |
17287 | ;; |
17288 | |
17289 | hpux9*) |
17290 | if test "$GCC" = yes; then |
17291 | 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' |
17292 | else |
17293 | 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' |
17294 | fi |
17295 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
17296 | hardcode_libdir_separator_GCJ=: |
17297 | hardcode_direct_GCJ=yes |
17298 | |
17299 | # hardcode_minus_L: Not really in the search PATH, |
17300 | # but as the default location of the library. |
17301 | hardcode_minus_L_GCJ=yes |
17302 | export_dynamic_flag_spec_GCJ='${wl}-E' |
17303 | ;; |
17304 | |
17305 | hpux10*) |
17306 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
17307 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
17308 | else |
17309 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
17310 | fi |
17311 | if test "$with_gnu_ld" = no; then |
17312 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
17313 | hardcode_libdir_separator_GCJ=: |
17314 | |
17315 | hardcode_direct_GCJ=yes |
17316 | export_dynamic_flag_spec_GCJ='${wl}-E' |
17317 | |
17318 | # hardcode_minus_L: Not really in the search PATH, |
17319 | # but as the default location of the library. |
17320 | hardcode_minus_L_GCJ=yes |
17321 | fi |
17322 | ;; |
17323 | |
17324 | hpux11*) |
17325 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
17326 | case $host_cpu in |
17327 | hppa*64*) |
17328 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17329 | ;; |
17330 | ia64*) |
17331 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
17332 | ;; |
17333 | *) |
17334 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
17335 | ;; |
17336 | esac |
17337 | else |
17338 | case $host_cpu in |
17339 | hppa*64*) |
17340 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17341 | ;; |
17342 | ia64*) |
17343 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
17344 | ;; |
17345 | *) |
17346 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
17347 | ;; |
17348 | esac |
17349 | fi |
17350 | if test "$with_gnu_ld" = no; then |
17351 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
17352 | hardcode_libdir_separator_GCJ=: |
17353 | |
17354 | case $host_cpu in |
17355 | hppa*64*|ia64*) |
17356 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' |
17357 | hardcode_direct_GCJ=no |
17358 | hardcode_shlibpath_var_GCJ=no |
17359 | ;; |
17360 | *) |
17361 | hardcode_direct_GCJ=yes |
17362 | export_dynamic_flag_spec_GCJ='${wl}-E' |
17363 | |
17364 | # hardcode_minus_L: Not really in the search PATH, |
17365 | # but as the default location of the library. |
17366 | hardcode_minus_L_GCJ=yes |
17367 | ;; |
17368 | esac |
17369 | fi |
17370 | ;; |
17371 | |
17372 | irix5* | irix6* | nonstopux*) |
17373 | if test "$GCC" = yes; then |
17374 | 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' |
17375 | else |
17376 | 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' |
17377 | hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' |
17378 | fi |
17379 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
17380 | hardcode_libdir_separator_GCJ=: |
17381 | link_all_deplibs_GCJ=yes |
17382 | ;; |
17383 | |
1dce02f2 |
17384 | netbsd* | netbsdelf*-gnu) |
d9898ee8 |
17385 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
17386 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
17387 | else |
17388 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
17389 | fi |
17390 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
17391 | hardcode_direct_GCJ=yes |
17392 | hardcode_shlibpath_var_GCJ=no |
17393 | ;; |
17394 | |
17395 | newsos6) |
17396 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17397 | hardcode_direct_GCJ=yes |
17398 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
17399 | hardcode_libdir_separator_GCJ=: |
17400 | hardcode_shlibpath_var_GCJ=no |
17401 | ;; |
17402 | |
17403 | openbsd*) |
17404 | hardcode_direct_GCJ=yes |
17405 | hardcode_shlibpath_var_GCJ=no |
17406 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
17407 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
17408 | archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
17409 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
17410 | export_dynamic_flag_spec_GCJ='${wl}-E' |
17411 | else |
17412 | case $host_os in |
17413 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
17414 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
17415 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
17416 | ;; |
17417 | *) |
17418 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
17419 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
17420 | ;; |
17421 | esac |
17422 | fi |
17423 | ;; |
17424 | |
17425 | os2*) |
17426 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17427 | hardcode_minus_L_GCJ=yes |
17428 | allow_undefined_flag_GCJ=unsupported |
17429 | 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' |
17430 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
17431 | ;; |
17432 | |
17433 | osf3*) |
17434 | if test "$GCC" = yes; then |
17435 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
17436 | 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' |
17437 | else |
17438 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
17439 | 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' |
17440 | fi |
17441 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
17442 | hardcode_libdir_separator_GCJ=: |
17443 | ;; |
17444 | |
17445 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
17446 | if test "$GCC" = yes; then |
17447 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
17448 | 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' |
17449 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
17450 | else |
17451 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
17452 | 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' |
17453 | 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~ |
17454 | $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' |
17455 | |
17456 | # Both c and cxx compiler support -rpath directly |
17457 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' |
17458 | fi |
17459 | hardcode_libdir_separator_GCJ=: |
17460 | ;; |
17461 | |
17462 | solaris*) |
17463 | no_undefined_flag_GCJ=' -z text' |
17464 | if test "$GCC" = yes; then |
17465 | wlarc='${wl}' |
17466 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17467 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
17468 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
17469 | else |
17470 | wlarc='' |
17471 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17472 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
17473 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
17474 | fi |
17475 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
17476 | hardcode_shlibpath_var_GCJ=no |
17477 | case $host_os in |
17478 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
17479 | *) |
17480 | # The compiler driver will combine linker options so we |
17481 | # cannot just pass the convience library names through |
17482 | # without $wl, iff we do not link with $LD. |
17483 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
17484 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
17485 | case $wlarc in |
17486 | '') |
17487 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; |
17488 | *) |
17489 | 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' ;; |
17490 | esac ;; |
17491 | esac |
17492 | link_all_deplibs_GCJ=yes |
17493 | ;; |
17494 | |
17495 | sunos4*) |
17496 | if test "x$host_vendor" = xsequent; then |
17497 | # Use $CC to link under sequent, because it throws in some extra .o |
17498 | # files that make .init and .fini sections work. |
17499 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
17500 | else |
17501 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
17502 | fi |
17503 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17504 | hardcode_direct_GCJ=yes |
17505 | hardcode_minus_L_GCJ=yes |
17506 | hardcode_shlibpath_var_GCJ=no |
17507 | ;; |
17508 | |
17509 | sysv4) |
17510 | case $host_vendor in |
17511 | sni) |
17512 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17513 | hardcode_direct_GCJ=yes # is this really true??? |
17514 | ;; |
17515 | siemens) |
17516 | ## LD is ld it makes a PLAMLIB |
17517 | ## CC just makes a GrossModule. |
17518 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
17519 | reload_cmds_GCJ='$CC -r -o $output$reload_objs' |
17520 | hardcode_direct_GCJ=no |
17521 | ;; |
17522 | motorola) |
17523 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17524 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie |
17525 | ;; |
17526 | esac |
17527 | runpath_var='LD_RUN_PATH' |
17528 | hardcode_shlibpath_var_GCJ=no |
17529 | ;; |
17530 | |
17531 | sysv4.3*) |
17532 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17533 | hardcode_shlibpath_var_GCJ=no |
17534 | export_dynamic_flag_spec_GCJ='-Bexport' |
17535 | ;; |
17536 | |
17537 | sysv4*MP*) |
17538 | if test -d /usr/nec; then |
17539 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17540 | hardcode_shlibpath_var_GCJ=no |
17541 | runpath_var=LD_RUN_PATH |
17542 | hardcode_runpath_var=yes |
17543 | ld_shlibs_GCJ=yes |
17544 | fi |
17545 | ;; |
17546 | |
17547 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
17548 | no_undefined_flag_GCJ='${wl}-z,text' |
17549 | archive_cmds_need_lc_GCJ=no |
17550 | hardcode_shlibpath_var_GCJ=no |
17551 | runpath_var='LD_RUN_PATH' |
17552 | |
17553 | if test "$GCC" = yes; then |
17554 | archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
17555 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
17556 | else |
17557 | archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
17558 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
17559 | fi |
17560 | ;; |
17561 | |
17562 | sysv5* | sco3.2v5* | sco5v6*) |
17563 | # Note: We can NOT use -z defs as we might desire, because we do not |
17564 | # link with -lc, and that would cause any symbols used from libc to |
17565 | # always be unresolved, which means just about no library would |
17566 | # ever link correctly. If we're not using GNU ld we use -z text |
17567 | # though, which does catch some bad symbols but isn't as heavy-handed |
17568 | # as -z defs. |
17569 | no_undefined_flag_GCJ='${wl}-z,text' |
17570 | allow_undefined_flag_GCJ='${wl}-z,nodefs' |
17571 | archive_cmds_need_lc_GCJ=no |
17572 | hardcode_shlibpath_var_GCJ=no |
17573 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
17574 | hardcode_libdir_separator_GCJ=':' |
17575 | link_all_deplibs_GCJ=yes |
17576 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' |
17577 | runpath_var='LD_RUN_PATH' |
17578 | |
17579 | if test "$GCC" = yes; then |
17580 | archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17581 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17582 | else |
17583 | archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17584 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17585 | fi |
17586 | ;; |
17587 | |
17588 | uts4*) |
17589 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17590 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17591 | hardcode_shlibpath_var_GCJ=no |
17592 | ;; |
17593 | |
17594 | *) |
17595 | ld_shlibs_GCJ=no |
17596 | ;; |
17597 | esac |
17598 | fi |
17599 | |
dd184caf |
17600 | { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 |
17601 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } |
d9898ee8 |
17602 | test "$ld_shlibs_GCJ" = no && can_build_shared=no |
17603 | |
17604 | # |
17605 | # Do we need to explicitly link libc? |
17606 | # |
17607 | case "x$archive_cmds_need_lc_GCJ" in |
17608 | x|xyes) |
17609 | # Assume -lc should be added |
17610 | archive_cmds_need_lc_GCJ=yes |
17611 | |
17612 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
17613 | case $archive_cmds_GCJ in |
17614 | *'~'*) |
17615 | # FIXME: we may have to deal with multi-command sequences. |
17616 | ;; |
17617 | '$CC '*) |
17618 | # Test whether the compiler implicitly links with -lc since on some |
17619 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
17620 | # to ld, don't add -lc before -lgcc. |
dd184caf |
17621 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
17622 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
d9898ee8 |
17623 | $rm conftest* |
17624 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
17625 | |
17626 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
17627 | (eval $ac_compile) 2>&5 |
17628 | ac_status=$? |
17629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17630 | (exit $ac_status); } 2>conftest.err; then |
17631 | soname=conftest |
17632 | lib=conftest |
17633 | libobjs=conftest.$ac_objext |
17634 | deplibs= |
17635 | wl=$lt_prog_compiler_wl_GCJ |
17636 | pic_flag=$lt_prog_compiler_pic_GCJ |
17637 | compiler_flags=-v |
17638 | linker_flags=-v |
17639 | verstring= |
17640 | output_objdir=. |
17641 | libname=conftest |
17642 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ |
17643 | allow_undefined_flag_GCJ= |
17644 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
17645 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
17646 | ac_status=$? |
17647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17648 | (exit $ac_status); } |
17649 | then |
17650 | archive_cmds_need_lc_GCJ=no |
17651 | else |
17652 | archive_cmds_need_lc_GCJ=yes |
17653 | fi |
17654 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag |
17655 | else |
17656 | cat conftest.err 1>&5 |
17657 | fi |
17658 | $rm conftest* |
dd184caf |
17659 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 |
17660 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } |
d9898ee8 |
17661 | ;; |
17662 | esac |
17663 | fi |
17664 | ;; |
17665 | esac |
17666 | |
dd184caf |
17667 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
17668 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
d9898ee8 |
17669 | library_names_spec= |
17670 | libname_spec='lib$name' |
17671 | soname_spec= |
17672 | shrext_cmds=".so" |
17673 | postinstall_cmds= |
17674 | postuninstall_cmds= |
17675 | finish_cmds= |
17676 | finish_eval= |
17677 | shlibpath_var= |
17678 | shlibpath_overrides_runpath=unknown |
17679 | version_type=none |
17680 | dynamic_linker="$host_os ld.so" |
17681 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
17682 | if test "$GCC" = yes; then |
17683 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
17684 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
17685 | # if the path contains ";" then we assume it to be the separator |
17686 | # otherwise default to the standard path separator (i.e. ":") - it is |
17687 | # assumed that no part of a normal pathname contains ";" but that should |
17688 | # okay in the real world where ";" in dirpaths is itself problematic. |
17689 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
17690 | else |
17691 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
17692 | fi |
17693 | else |
17694 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
17695 | fi |
17696 | need_lib_prefix=unknown |
17697 | hardcode_into_libs=no |
17698 | |
17699 | # when you set need_version to no, make sure it does not cause -set_version |
17700 | # flags to be left without arguments |
17701 | need_version=unknown |
17702 | |
17703 | case $host_os in |
17704 | aix3*) |
17705 | version_type=linux |
17706 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
17707 | shlibpath_var=LIBPATH |
17708 | |
17709 | # AIX 3 has no versioning support, so we append a major version to the name. |
17710 | soname_spec='${libname}${release}${shared_ext}$major' |
17711 | ;; |
17712 | |
17713 | aix4* | aix5*) |
17714 | version_type=linux |
17715 | need_lib_prefix=no |
17716 | need_version=no |
17717 | hardcode_into_libs=yes |
17718 | if test "$host_cpu" = ia64; then |
17719 | # AIX 5 supports IA64 |
17720 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
17721 | shlibpath_var=LD_LIBRARY_PATH |
17722 | else |
17723 | # With GCC up to 2.95.x, collect2 would create an import file |
17724 | # for dependence libraries. The import file would start with |
17725 | # the line `#! .'. This would cause the generated library to |
17726 | # depend on `.', always an invalid library. This was fixed in |
17727 | # development snapshots of GCC prior to 3.0. |
17728 | case $host_os in |
17729 | aix4 | aix4.[01] | aix4.[01].*) |
17730 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
17731 | echo ' yes ' |
17732 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
17733 | : |
17734 | else |
17735 | can_build_shared=no |
17736 | fi |
17737 | ;; |
17738 | esac |
17739 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
17740 | # soname into executable. Probably we can add versioning support to |
17741 | # collect2, so additional links can be useful in future. |
17742 | if test "$aix_use_runtimelinking" = yes; then |
17743 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
17744 | # instead of lib<name>.a to let people know that these are not |
17745 | # typical AIX shared libraries. |
17746 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17747 | else |
17748 | # We preserve .a as extension for shared libraries through AIX4.2 |
17749 | # and later when we are not doing run time linking. |
17750 | library_names_spec='${libname}${release}.a $libname.a' |
17751 | soname_spec='${libname}${release}${shared_ext}$major' |
17752 | fi |
17753 | shlibpath_var=LIBPATH |
17754 | fi |
17755 | ;; |
17756 | |
17757 | amigaos*) |
17758 | library_names_spec='$libname.ixlibrary $libname.a' |
17759 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
17760 | 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' |
17761 | ;; |
17762 | |
17763 | beos*) |
17764 | library_names_spec='${libname}${shared_ext}' |
17765 | dynamic_linker="$host_os ld.so" |
17766 | shlibpath_var=LIBRARY_PATH |
17767 | ;; |
17768 | |
17769 | bsdi[45]*) |
17770 | version_type=linux |
17771 | need_version=no |
17772 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17773 | soname_spec='${libname}${release}${shared_ext}$major' |
17774 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
17775 | shlibpath_var=LD_LIBRARY_PATH |
17776 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
17777 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
17778 | # the default ld.so.conf also contains /usr/contrib/lib and |
17779 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
17780 | # libtool to hard-code these into programs |
17781 | ;; |
17782 | |
17783 | cygwin* | mingw* | pw32*) |
17784 | version_type=windows |
17785 | shrext_cmds=".dll" |
17786 | need_version=no |
17787 | need_lib_prefix=no |
17788 | |
17789 | case $GCC,$host_os in |
17790 | yes,cygwin* | yes,mingw* | yes,pw32*) |
17791 | library_names_spec='$libname.dll.a' |
17792 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
17793 | postinstall_cmds='base_file=`basename \${file}`~ |
17794 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
17795 | dldir=$destdir/`dirname \$dlpath`~ |
17796 | test -d \$dldir || mkdir -p \$dldir~ |
17797 | $install_prog $dir/$dlname \$dldir/$dlname~ |
17798 | chmod a+x \$dldir/$dlname' |
17799 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
17800 | dlpath=$dir/\$dldll~ |
17801 | $rm \$dlpath' |
17802 | shlibpath_overrides_runpath=yes |
17803 | |
17804 | case $host_os in |
17805 | cygwin*) |
17806 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
17807 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
17808 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
17809 | ;; |
17810 | mingw*) |
17811 | # MinGW DLLs use traditional 'lib' prefix |
17812 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
17813 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
17814 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
17815 | # It is most probably a Windows format PATH printed by |
17816 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
17817 | # path with ; separators, and with drive letters. We can handle the |
17818 | # drive letters (cygwin fileutils understands them), so leave them, |
17819 | # especially as we might pass files found there to a mingw objdump, |
17820 | # which wouldn't understand a cygwinified path. Ahh. |
17821 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
17822 | else |
17823 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
17824 | fi |
17825 | ;; |
17826 | pw32*) |
17827 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
17828 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
17829 | ;; |
17830 | esac |
17831 | ;; |
17832 | |
17833 | *) |
17834 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
17835 | ;; |
17836 | esac |
17837 | dynamic_linker='Win32 ld.exe' |
17838 | # FIXME: first we should search . and the directory the executable is in |
17839 | shlibpath_var=PATH |
17840 | ;; |
17841 | |
17842 | darwin* | rhapsody*) |
17843 | dynamic_linker="$host_os dyld" |
17844 | version_type=darwin |
17845 | need_lib_prefix=no |
17846 | need_version=no |
17847 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
17848 | soname_spec='${libname}${release}${major}$shared_ext' |
17849 | shlibpath_overrides_runpath=yes |
17850 | shlibpath_var=DYLD_LIBRARY_PATH |
17851 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
17852 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
17853 | if test "$GCC" = yes; then |
17854 | 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"` |
17855 | else |
17856 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
17857 | fi |
17858 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
17859 | ;; |
17860 | |
17861 | dgux*) |
17862 | version_type=linux |
17863 | need_lib_prefix=no |
17864 | need_version=no |
17865 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
17866 | soname_spec='${libname}${release}${shared_ext}$major' |
17867 | shlibpath_var=LD_LIBRARY_PATH |
17868 | ;; |
17869 | |
17870 | freebsd1*) |
17871 | dynamic_linker=no |
17872 | ;; |
17873 | |
d9898ee8 |
17874 | freebsd* | dragonfly*) |
17875 | # DragonFly does not have aout. When/if they implement a new |
17876 | # versioning mechanism, adjust this. |
17877 | if test -x /usr/bin/objformat; then |
17878 | objformat=`/usr/bin/objformat` |
17879 | else |
17880 | case $host_os in |
17881 | freebsd[123]*) objformat=aout ;; |
17882 | *) objformat=elf ;; |
17883 | esac |
17884 | fi |
17885 | version_type=freebsd-$objformat |
17886 | case $version_type in |
17887 | freebsd-elf*) |
17888 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
17889 | need_version=no |
17890 | need_lib_prefix=no |
17891 | ;; |
17892 | freebsd-*) |
17893 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
17894 | need_version=yes |
17895 | ;; |
17896 | esac |
17897 | shlibpath_var=LD_LIBRARY_PATH |
17898 | case $host_os in |
17899 | freebsd2*) |
17900 | shlibpath_overrides_runpath=yes |
17901 | ;; |
17902 | freebsd3.[01]* | freebsdelf3.[01]*) |
17903 | shlibpath_overrides_runpath=yes |
17904 | hardcode_into_libs=yes |
17905 | ;; |
17906 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
17907 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
17908 | shlibpath_overrides_runpath=no |
17909 | hardcode_into_libs=yes |
17910 | ;; |
17911 | freebsd*) # from 4.6 on |
17912 | shlibpath_overrides_runpath=yes |
17913 | hardcode_into_libs=yes |
17914 | ;; |
17915 | esac |
17916 | ;; |
17917 | |
17918 | gnu*) |
17919 | version_type=linux |
17920 | need_lib_prefix=no |
17921 | need_version=no |
17922 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
17923 | soname_spec='${libname}${release}${shared_ext}$major' |
17924 | shlibpath_var=LD_LIBRARY_PATH |
17925 | hardcode_into_libs=yes |
17926 | ;; |
17927 | |
17928 | hpux9* | hpux10* | hpux11*) |
17929 | # Give a soname corresponding to the major version so that dld.sl refuses to |
17930 | # link against other versions. |
17931 | version_type=sunos |
17932 | need_lib_prefix=no |
17933 | need_version=no |
17934 | case $host_cpu in |
17935 | ia64*) |
17936 | shrext_cmds='.so' |
17937 | hardcode_into_libs=yes |
17938 | dynamic_linker="$host_os dld.so" |
17939 | shlibpath_var=LD_LIBRARY_PATH |
17940 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
17941 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17942 | soname_spec='${libname}${release}${shared_ext}$major' |
17943 | if test "X$HPUX_IA64_MODE" = X32; then |
17944 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
17945 | else |
17946 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
17947 | fi |
17948 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
17949 | ;; |
17950 | hppa*64*) |
17951 | shrext_cmds='.sl' |
17952 | hardcode_into_libs=yes |
17953 | dynamic_linker="$host_os dld.sl" |
17954 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
17955 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
17956 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17957 | soname_spec='${libname}${release}${shared_ext}$major' |
17958 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
17959 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
17960 | ;; |
17961 | *) |
17962 | shrext_cmds='.sl' |
17963 | dynamic_linker="$host_os dld.sl" |
17964 | shlibpath_var=SHLIB_PATH |
17965 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
17966 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17967 | soname_spec='${libname}${release}${shared_ext}$major' |
17968 | ;; |
17969 | esac |
17970 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
17971 | postinstall_cmds='chmod 555 $lib' |
17972 | ;; |
17973 | |
17974 | interix3*) |
17975 | version_type=linux |
17976 | need_lib_prefix=no |
17977 | need_version=no |
17978 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
17979 | soname_spec='${libname}${release}${shared_ext}$major' |
17980 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
17981 | shlibpath_var=LD_LIBRARY_PATH |
17982 | shlibpath_overrides_runpath=no |
17983 | hardcode_into_libs=yes |
17984 | ;; |
17985 | |
17986 | irix5* | irix6* | nonstopux*) |
17987 | case $host_os in |
17988 | nonstopux*) version_type=nonstopux ;; |
17989 | *) |
17990 | if test "$lt_cv_prog_gnu_ld" = yes; then |
17991 | version_type=linux |
17992 | else |
17993 | version_type=irix |
17994 | fi ;; |
17995 | esac |
17996 | need_lib_prefix=no |
17997 | need_version=no |
17998 | soname_spec='${libname}${release}${shared_ext}$major' |
17999 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
18000 | case $host_os in |
18001 | irix5* | nonstopux*) |
18002 | libsuff= shlibsuff= |
18003 | ;; |
18004 | *) |
18005 | case $LD in # libtool.m4 will add one of these switches to LD |
18006 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
18007 | libsuff= shlibsuff= libmagic=32-bit;; |
18008 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
18009 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
18010 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
18011 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
18012 | *) libsuff= shlibsuff= libmagic=never-match;; |
18013 | esac |
18014 | ;; |
18015 | esac |
18016 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
18017 | shlibpath_overrides_runpath=no |
18018 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
18019 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
18020 | hardcode_into_libs=yes |
18021 | ;; |
18022 | |
18023 | # No shared lib support for Linux oldld, aout, or coff. |
18024 | linux*oldld* | linux*aout* | linux*coff*) |
18025 | dynamic_linker=no |
18026 | ;; |
18027 | |
18028 | # This must be Linux ELF. |
1dce02f2 |
18029 | linux* | k*bsd*-gnu) |
d9898ee8 |
18030 | version_type=linux |
18031 | need_lib_prefix=no |
18032 | need_version=no |
18033 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18034 | soname_spec='${libname}${release}${shared_ext}$major' |
18035 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
18036 | shlibpath_var=LD_LIBRARY_PATH |
18037 | shlibpath_overrides_runpath=no |
18038 | # This implies no fast_install, which is unacceptable. |
18039 | # Some rework will be needed to allow for fast_install |
18040 | # before this can be enabled. |
18041 | hardcode_into_libs=yes |
18042 | |
d9898ee8 |
18043 | # Append ld.so.conf contents to the search path |
18044 | if test -f /etc/ld.so.conf; then |
1dce02f2 |
18045 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
18046 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
d9898ee8 |
18047 | fi |
18048 | |
18049 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
18050 | # powerpc, because MkLinux only supported shared libraries with the |
18051 | # GNU dynamic linker. Since this was broken with cross compilers, |
18052 | # most powerpc-linux boxes support dynamic linking these days and |
18053 | # people can always --disable-shared, the test was removed, and we |
18054 | # assume the GNU/Linux dynamic linker is in use. |
18055 | dynamic_linker='GNU/Linux ld.so' |
18056 | ;; |
18057 | |
1dce02f2 |
18058 | netbsdelf*-gnu) |
d9898ee8 |
18059 | version_type=linux |
18060 | need_lib_prefix=no |
18061 | need_version=no |
18062 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
18063 | soname_spec='${libname}${release}${shared_ext}$major' |
18064 | shlibpath_var=LD_LIBRARY_PATH |
18065 | shlibpath_overrides_runpath=no |
18066 | hardcode_into_libs=yes |
1dce02f2 |
18067 | dynamic_linker='NetBSD ld.elf_so' |
d9898ee8 |
18068 | ;; |
18069 | |
18070 | netbsd*) |
18071 | version_type=sunos |
18072 | need_lib_prefix=no |
18073 | need_version=no |
18074 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
18075 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
18076 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
18077 | dynamic_linker='NetBSD (a.out) ld.so' |
18078 | else |
18079 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
18080 | soname_spec='${libname}${release}${shared_ext}$major' |
18081 | dynamic_linker='NetBSD ld.elf_so' |
18082 | fi |
18083 | shlibpath_var=LD_LIBRARY_PATH |
18084 | shlibpath_overrides_runpath=yes |
18085 | hardcode_into_libs=yes |
18086 | ;; |
18087 | |
18088 | newsos6) |
18089 | version_type=linux |
18090 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18091 | shlibpath_var=LD_LIBRARY_PATH |
18092 | shlibpath_overrides_runpath=yes |
18093 | ;; |
18094 | |
18095 | nto-qnx*) |
18096 | version_type=linux |
18097 | need_lib_prefix=no |
18098 | need_version=no |
18099 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18100 | soname_spec='${libname}${release}${shared_ext}$major' |
18101 | shlibpath_var=LD_LIBRARY_PATH |
18102 | shlibpath_overrides_runpath=yes |
18103 | ;; |
18104 | |
18105 | openbsd*) |
18106 | version_type=sunos |
18107 | sys_lib_dlsearch_path_spec="/usr/lib" |
18108 | need_lib_prefix=no |
18109 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
18110 | case $host_os in |
18111 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
18112 | *) need_version=no ;; |
18113 | esac |
18114 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
18115 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
18116 | shlibpath_var=LD_LIBRARY_PATH |
18117 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
18118 | case $host_os in |
18119 | openbsd2.[89] | openbsd2.[89].*) |
18120 | shlibpath_overrides_runpath=no |
18121 | ;; |
18122 | *) |
18123 | shlibpath_overrides_runpath=yes |
18124 | ;; |
18125 | esac |
18126 | else |
18127 | shlibpath_overrides_runpath=yes |
18128 | fi |
18129 | ;; |
18130 | |
18131 | os2*) |
18132 | libname_spec='$name' |
18133 | shrext_cmds=".dll" |
18134 | need_lib_prefix=no |
18135 | library_names_spec='$libname${shared_ext} $libname.a' |
18136 | dynamic_linker='OS/2 ld.exe' |
18137 | shlibpath_var=LIBPATH |
18138 | ;; |
18139 | |
18140 | osf3* | osf4* | osf5*) |
18141 | version_type=osf |
18142 | need_lib_prefix=no |
18143 | need_version=no |
18144 | soname_spec='${libname}${release}${shared_ext}$major' |
18145 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18146 | shlibpath_var=LD_LIBRARY_PATH |
18147 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
18148 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
18149 | ;; |
18150 | |
18151 | solaris*) |
18152 | version_type=linux |
18153 | need_lib_prefix=no |
18154 | need_version=no |
18155 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18156 | soname_spec='${libname}${release}${shared_ext}$major' |
18157 | shlibpath_var=LD_LIBRARY_PATH |
18158 | shlibpath_overrides_runpath=yes |
18159 | hardcode_into_libs=yes |
18160 | # ldd complains unless libraries are executable |
18161 | postinstall_cmds='chmod +x $lib' |
18162 | ;; |
18163 | |
18164 | sunos4*) |
18165 | version_type=sunos |
18166 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
18167 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
18168 | shlibpath_var=LD_LIBRARY_PATH |
18169 | shlibpath_overrides_runpath=yes |
18170 | if test "$with_gnu_ld" = yes; then |
18171 | need_lib_prefix=no |
18172 | fi |
18173 | need_version=yes |
18174 | ;; |
18175 | |
18176 | sysv4 | sysv4.3*) |
18177 | version_type=linux |
18178 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18179 | soname_spec='${libname}${release}${shared_ext}$major' |
18180 | shlibpath_var=LD_LIBRARY_PATH |
18181 | case $host_vendor in |
18182 | sni) |
18183 | shlibpath_overrides_runpath=no |
18184 | need_lib_prefix=no |
18185 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
18186 | runpath_var=LD_RUN_PATH |
18187 | ;; |
18188 | siemens) |
18189 | need_lib_prefix=no |
18190 | ;; |
18191 | motorola) |
18192 | need_lib_prefix=no |
18193 | need_version=no |
18194 | shlibpath_overrides_runpath=no |
18195 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
18196 | ;; |
18197 | esac |
18198 | ;; |
18199 | |
18200 | sysv4*MP*) |
18201 | if test -d /usr/nec ;then |
18202 | version_type=linux |
18203 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
18204 | soname_spec='$libname${shared_ext}.$major' |
18205 | shlibpath_var=LD_LIBRARY_PATH |
18206 | fi |
18207 | ;; |
18208 | |
18209 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
18210 | version_type=freebsd-elf |
18211 | need_lib_prefix=no |
18212 | need_version=no |
18213 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
18214 | soname_spec='${libname}${release}${shared_ext}$major' |
18215 | shlibpath_var=LD_LIBRARY_PATH |
18216 | hardcode_into_libs=yes |
18217 | if test "$with_gnu_ld" = yes; then |
18218 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
18219 | shlibpath_overrides_runpath=no |
18220 | else |
18221 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
18222 | shlibpath_overrides_runpath=yes |
18223 | case $host_os in |
18224 | sco3.2v5*) |
18225 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
18226 | ;; |
18227 | esac |
18228 | fi |
18229 | sys_lib_dlsearch_path_spec='/usr/lib' |
18230 | ;; |
18231 | |
18232 | uts4*) |
18233 | version_type=linux |
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 | ;; |
18238 | |
18239 | *) |
18240 | dynamic_linker=no |
18241 | ;; |
18242 | esac |
dd184caf |
18243 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
18244 | echo "${ECHO_T}$dynamic_linker" >&6; } |
d9898ee8 |
18245 | test "$dynamic_linker" = no && can_build_shared=no |
18246 | |
18247 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
18248 | if test "$GCC" = yes; then |
18249 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
18250 | fi |
18251 | |
dd184caf |
18252 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
18253 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
d9898ee8 |
18254 | hardcode_action_GCJ= |
18255 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ |
18256 | test -n "$runpath_var_GCJ" || \ |
18257 | test "X$hardcode_automatic_GCJ" = "Xyes" ; then |
18258 | |
18259 | # We can hardcode non-existant directories. |
18260 | if test "$hardcode_direct_GCJ" != no && |
18261 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
18262 | # have to relink, otherwise we might link with an installed library |
18263 | # when we should be linking with a yet-to-be-installed one |
18264 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && |
18265 | test "$hardcode_minus_L_GCJ" != no; then |
18266 | # Linking always hardcodes the temporary library directory. |
18267 | hardcode_action_GCJ=relink |
18268 | else |
18269 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
18270 | hardcode_action_GCJ=immediate |
18271 | fi |
18272 | else |
18273 | # We cannot hardcode anything, or else we can only hardcode existing |
18274 | # directories. |
18275 | hardcode_action_GCJ=unsupported |
18276 | fi |
dd184caf |
18277 | { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 |
18278 | echo "${ECHO_T}$hardcode_action_GCJ" >&6; } |
d9898ee8 |
18279 | |
18280 | if test "$hardcode_action_GCJ" = relink; then |
18281 | # Fast installation is not supported |
18282 | enable_fast_install=no |
18283 | elif test "$shlibpath_overrides_runpath" = yes || |
18284 | test "$enable_shared" = no; then |
18285 | # Fast installation is not necessary |
18286 | enable_fast_install=needless |
18287 | fi |
18288 | |
18289 | |
18290 | # The else clause should only fire when bootstrapping the |
18291 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
18292 | # with your package, and you will get complaints that there are |
18293 | # no rules to generate ltmain.sh. |
18294 | if test -f "$ltmain"; then |
18295 | # See if we are running on zsh, and set the options which allow our commands through |
18296 | # without removal of \ escapes. |
18297 | if test -n "${ZSH_VERSION+set}" ; then |
18298 | setopt NO_GLOB_SUBST |
18299 | fi |
18300 | # Now quote all the things that may contain metacharacters while being |
18301 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
18302 | # variables and quote the copies for generation of the libtool script. |
18303 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
18304 | SED SHELL STRIP \ |
18305 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
18306 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
18307 | deplibs_check_method reload_flag reload_cmds need_locks \ |
18308 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
18309 | lt_cv_sys_global_symbol_to_c_name_address \ |
18310 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
18311 | old_postinstall_cmds old_postuninstall_cmds \ |
18312 | compiler_GCJ \ |
18313 | CC_GCJ \ |
18314 | LD_GCJ \ |
18315 | lt_prog_compiler_wl_GCJ \ |
18316 | lt_prog_compiler_pic_GCJ \ |
18317 | lt_prog_compiler_static_GCJ \ |
18318 | lt_prog_compiler_no_builtin_flag_GCJ \ |
18319 | export_dynamic_flag_spec_GCJ \ |
18320 | thread_safe_flag_spec_GCJ \ |
18321 | whole_archive_flag_spec_GCJ \ |
18322 | enable_shared_with_static_runtimes_GCJ \ |
18323 | old_archive_cmds_GCJ \ |
18324 | old_archive_from_new_cmds_GCJ \ |
18325 | predep_objects_GCJ \ |
18326 | postdep_objects_GCJ \ |
18327 | predeps_GCJ \ |
18328 | postdeps_GCJ \ |
18329 | compiler_lib_search_path_GCJ \ |
18330 | archive_cmds_GCJ \ |
18331 | archive_expsym_cmds_GCJ \ |
18332 | postinstall_cmds_GCJ \ |
18333 | postuninstall_cmds_GCJ \ |
18334 | old_archive_from_expsyms_cmds_GCJ \ |
18335 | allow_undefined_flag_GCJ \ |
18336 | no_undefined_flag_GCJ \ |
18337 | export_symbols_cmds_GCJ \ |
18338 | hardcode_libdir_flag_spec_GCJ \ |
18339 | hardcode_libdir_flag_spec_ld_GCJ \ |
18340 | hardcode_libdir_separator_GCJ \ |
18341 | hardcode_automatic_GCJ \ |
18342 | module_cmds_GCJ \ |
18343 | module_expsym_cmds_GCJ \ |
18344 | lt_cv_prog_compiler_c_o_GCJ \ |
18345 | exclude_expsyms_GCJ \ |
18346 | include_expsyms_GCJ; do |
18347 | |
18348 | case $var in |
18349 | old_archive_cmds_GCJ | \ |
18350 | old_archive_from_new_cmds_GCJ | \ |
18351 | archive_cmds_GCJ | \ |
18352 | archive_expsym_cmds_GCJ | \ |
18353 | module_cmds_GCJ | \ |
18354 | module_expsym_cmds_GCJ | \ |
18355 | old_archive_from_expsyms_cmds_GCJ | \ |
18356 | export_symbols_cmds_GCJ | \ |
18357 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
18358 | postinstall_cmds | postuninstall_cmds | \ |
18359 | old_postinstall_cmds | old_postuninstall_cmds | \ |
18360 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
18361 | # Double-quote double-evaled strings. |
18362 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
18363 | ;; |
18364 | *) |
18365 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
18366 | ;; |
18367 | esac |
18368 | done |
18369 | |
18370 | case $lt_echo in |
18371 | *'\$0 --fallback-echo"') |
18372 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
18373 | ;; |
18374 | esac |
18375 | |
18376 | cfgfile="$ofile" |
18377 | |
18378 | cat <<__EOF__ >> "$cfgfile" |
18379 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
18380 | |
18381 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
18382 | |
18383 | # Shell to use when invoking shell scripts. |
18384 | SHELL=$lt_SHELL |
18385 | |
18386 | # Whether or not to build shared libraries. |
18387 | build_libtool_libs=$enable_shared |
18388 | |
18389 | # Whether or not to build static libraries. |
18390 | build_old_libs=$enable_static |
18391 | |
18392 | # Whether or not to add -lc for building shared libraries. |
18393 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ |
18394 | |
18395 | # Whether or not to disallow shared libs when runtime libs are static |
18396 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ |
18397 | |
18398 | # Whether or not to optimize for fast installation. |
18399 | fast_install=$enable_fast_install |
18400 | |
18401 | # The host system. |
18402 | host_alias=$host_alias |
18403 | host=$host |
18404 | host_os=$host_os |
18405 | |
18406 | # The build system. |
18407 | build_alias=$build_alias |
18408 | build=$build |
18409 | build_os=$build_os |
18410 | |
18411 | # An echo program that does not interpret backslashes. |
18412 | echo=$lt_echo |
18413 | |
18414 | # The archiver. |
18415 | AR=$lt_AR |
18416 | AR_FLAGS=$lt_AR_FLAGS |
18417 | |
18418 | # A C compiler. |
18419 | LTCC=$lt_LTCC |
18420 | |
18421 | # LTCC compiler flags. |
18422 | LTCFLAGS=$lt_LTCFLAGS |
18423 | |
18424 | # A language-specific compiler. |
18425 | CC=$lt_compiler_GCJ |
18426 | |
18427 | # Is the compiler the GNU C compiler? |
18428 | with_gcc=$GCC_GCJ |
18429 | |
d9898ee8 |
18430 | # An ERE matcher. |
18431 | EGREP=$lt_EGREP |
18432 | |
18433 | # The linker used to build libraries. |
18434 | LD=$lt_LD_GCJ |
18435 | |
18436 | # Whether we need hard or soft links. |
18437 | LN_S=$lt_LN_S |
18438 | |
18439 | # A BSD-compatible nm program. |
18440 | NM=$lt_NM |
18441 | |
18442 | # A symbol stripping program |
18443 | STRIP=$lt_STRIP |
18444 | |
18445 | # Used to examine libraries when file_magic_cmd begins "file" |
18446 | MAGIC_CMD=$MAGIC_CMD |
18447 | |
18448 | # Used on cygwin: DLL creation program. |
18449 | DLLTOOL="$DLLTOOL" |
18450 | |
18451 | # Used on cygwin: object dumper. |
18452 | OBJDUMP="$OBJDUMP" |
18453 | |
18454 | # Used on cygwin: assembler. |
18455 | AS="$AS" |
18456 | |
18457 | # The name of the directory that contains temporary libtool files. |
18458 | objdir=$objdir |
18459 | |
18460 | # How to create reloadable object files. |
18461 | reload_flag=$lt_reload_flag |
18462 | reload_cmds=$lt_reload_cmds |
18463 | |
18464 | # How to pass a linker flag through the compiler. |
18465 | wl=$lt_lt_prog_compiler_wl_GCJ |
18466 | |
18467 | # Object file suffix (normally "o"). |
18468 | objext="$ac_objext" |
18469 | |
18470 | # Old archive suffix (normally "a"). |
18471 | libext="$libext" |
18472 | |
18473 | # Shared library suffix (normally ".so"). |
18474 | shrext_cmds='$shrext_cmds' |
18475 | |
18476 | # Executable file suffix (normally ""). |
18477 | exeext="$exeext" |
18478 | |
18479 | # Additional compiler flags for building library objects. |
18480 | pic_flag=$lt_lt_prog_compiler_pic_GCJ |
18481 | pic_mode=$pic_mode |
18482 | |
18483 | # What is the maximum length of a command? |
18484 | max_cmd_len=$lt_cv_sys_max_cmd_len |
18485 | |
18486 | # Does compiler simultaneously support -c and -o options? |
18487 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ |
18488 | |
18489 | # Must we lock files when doing compilation? |
18490 | need_locks=$lt_need_locks |
18491 | |
18492 | # Do we need the lib prefix for modules? |
18493 | need_lib_prefix=$need_lib_prefix |
18494 | |
18495 | # Do we need a version for libraries? |
18496 | need_version=$need_version |
18497 | |
18498 | # Whether dlopen is supported. |
18499 | dlopen_support=$enable_dlopen |
18500 | |
18501 | # Whether dlopen of programs is supported. |
18502 | dlopen_self=$enable_dlopen_self |
18503 | |
18504 | # Whether dlopen of statically linked programs is supported. |
18505 | dlopen_self_static=$enable_dlopen_self_static |
18506 | |
18507 | # Compiler flag to prevent dynamic linking. |
18508 | link_static_flag=$lt_lt_prog_compiler_static_GCJ |
18509 | |
18510 | # Compiler flag to turn off builtin functions. |
18511 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ |
18512 | |
18513 | # Compiler flag to allow reflexive dlopens. |
18514 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ |
18515 | |
18516 | # Compiler flag to generate shared objects directly from archives. |
18517 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ |
18518 | |
18519 | # Compiler flag to generate thread-safe objects. |
18520 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ |
18521 | |
18522 | # Library versioning type. |
18523 | version_type=$version_type |
18524 | |
18525 | # Format of library name prefix. |
18526 | libname_spec=$lt_libname_spec |
18527 | |
18528 | # List of archive names. First name is the real one, the rest are links. |
18529 | # The last name is the one that the linker finds with -lNAME. |
18530 | library_names_spec=$lt_library_names_spec |
18531 | |
18532 | # The coded name of the library, if different from the real name. |
18533 | soname_spec=$lt_soname_spec |
18534 | |
18535 | # Commands used to build and install an old-style archive. |
18536 | RANLIB=$lt_RANLIB |
18537 | old_archive_cmds=$lt_old_archive_cmds_GCJ |
18538 | old_postinstall_cmds=$lt_old_postinstall_cmds |
18539 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
18540 | |
18541 | # Create an old-style archive from a shared archive. |
18542 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ |
18543 | |
18544 | # Create a temporary old-style archive to link instead of a shared archive. |
18545 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ |
18546 | |
18547 | # Commands used to build and install a shared archive. |
18548 | archive_cmds=$lt_archive_cmds_GCJ |
18549 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ |
18550 | postinstall_cmds=$lt_postinstall_cmds |
18551 | postuninstall_cmds=$lt_postuninstall_cmds |
18552 | |
18553 | # Commands used to build a loadable module (assumed same as above if empty) |
18554 | module_cmds=$lt_module_cmds_GCJ |
18555 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ |
18556 | |
18557 | # Commands to strip libraries. |
18558 | old_striplib=$lt_old_striplib |
18559 | striplib=$lt_striplib |
18560 | |
18561 | # Dependencies to place before the objects being linked to create a |
18562 | # shared library. |
dd184caf |
18563 | predep_objects=$lt_predep_objects_GCJ |
d9898ee8 |
18564 | |
18565 | # Dependencies to place after the objects being linked to create a |
18566 | # shared library. |
dd184caf |
18567 | postdep_objects=$lt_postdep_objects_GCJ |
d9898ee8 |
18568 | |
18569 | # Dependencies to place before the objects being linked to create a |
18570 | # shared library. |
18571 | predeps=$lt_predeps_GCJ |
18572 | |
18573 | # Dependencies to place after the objects being linked to create a |
18574 | # shared library. |
18575 | postdeps=$lt_postdeps_GCJ |
18576 | |
18577 | # The library search path used internally by the compiler when linking |
18578 | # a shared library. |
dd184caf |
18579 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ |
d9898ee8 |
18580 | |
18581 | # Method to check whether dependent libraries are shared objects. |
18582 | deplibs_check_method=$lt_deplibs_check_method |
18583 | |
18584 | # Command to use when deplibs_check_method == file_magic. |
18585 | file_magic_cmd=$lt_file_magic_cmd |
18586 | |
18587 | # Flag that allows shared libraries with undefined symbols to be built. |
18588 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ |
18589 | |
18590 | # Flag that forces no undefined symbols. |
18591 | no_undefined_flag=$lt_no_undefined_flag_GCJ |
18592 | |
18593 | # Commands used to finish a libtool library installation in a directory. |
18594 | finish_cmds=$lt_finish_cmds |
18595 | |
18596 | # Same as above, but a single script fragment to be evaled but not shown. |
18597 | finish_eval=$lt_finish_eval |
18598 | |
18599 | # Take the output of nm and produce a listing of raw symbols and C names. |
18600 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
18601 | |
18602 | # Transform the output of nm in a proper C declaration |
18603 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
18604 | |
18605 | # Transform the output of nm in a C name address pair |
18606 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
18607 | |
18608 | # This is the shared library runtime path variable. |
18609 | runpath_var=$runpath_var |
18610 | |
18611 | # This is the shared library path variable. |
18612 | shlibpath_var=$shlibpath_var |
18613 | |
18614 | # Is shlibpath searched before the hard-coded library search path? |
18615 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
18616 | |
18617 | # How to hardcode a shared library path into an executable. |
18618 | hardcode_action=$hardcode_action_GCJ |
18619 | |
18620 | # Whether we should hardcode library paths into libraries. |
18621 | hardcode_into_libs=$hardcode_into_libs |
18622 | |
18623 | # Flag to hardcode \$libdir into a binary during linking. |
18624 | # This must work even if \$libdir does not exist. |
18625 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ |
18626 | |
18627 | # If ld is used when linking, flag to hardcode \$libdir into |
18628 | # a binary during linking. This must work even if \$libdir does |
18629 | # not exist. |
18630 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ |
18631 | |
18632 | # Whether we need a single -rpath flag with a separated argument. |
18633 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ |
18634 | |
18635 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
18636 | # resulting binary. |
18637 | hardcode_direct=$hardcode_direct_GCJ |
18638 | |
18639 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
18640 | # resulting binary. |
18641 | hardcode_minus_L=$hardcode_minus_L_GCJ |
18642 | |
18643 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
18644 | # the resulting binary. |
18645 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ |
18646 | |
18647 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
18648 | # and all subsequent libraries and executables linked against it. |
18649 | hardcode_automatic=$hardcode_automatic_GCJ |
18650 | |
18651 | # Variables whose values should be saved in libtool wrapper scripts and |
18652 | # restored at relink time. |
18653 | variables_saved_for_relink="$variables_saved_for_relink" |
18654 | |
18655 | # Whether libtool must link a program against all its dependency libraries. |
18656 | link_all_deplibs=$link_all_deplibs_GCJ |
18657 | |
18658 | # Compile-time system search path for libraries |
dd184caf |
18659 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
d9898ee8 |
18660 | |
18661 | # Run-time system search path for libraries |
18662 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
18663 | |
18664 | # Fix the shell variable \$srcfile for the compiler. |
18665 | fix_srcfile_path="$fix_srcfile_path_GCJ" |
18666 | |
18667 | # Set to yes if exported symbols are required. |
18668 | always_export_symbols=$always_export_symbols_GCJ |
18669 | |
18670 | # The commands to list exported symbols. |
18671 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ |
18672 | |
18673 | # The commands to extract the exported symbol list from a shared archive. |
18674 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
18675 | |
18676 | # Symbols that should not be listed in the preloaded symbols. |
18677 | exclude_expsyms=$lt_exclude_expsyms_GCJ |
18678 | |
18679 | # Symbols that must always be exported. |
18680 | include_expsyms=$lt_include_expsyms_GCJ |
18681 | |
18682 | # ### END LIBTOOL TAG CONFIG: $tagname |
18683 | |
18684 | __EOF__ |
18685 | |
18686 | |
18687 | else |
18688 | # If there is no Makefile yet, we rely on a make rule to execute |
18689 | # `config.status --recheck' to rerun these tests and create the |
18690 | # libtool script then. |
18691 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
18692 | if test -f "$ltmain_in"; then |
18693 | test -f Makefile && make "$ltmain" |
18694 | fi |
18695 | fi |
18696 | |
18697 | |
18698 | ac_ext=c |
18699 | ac_cpp='$CPP $CPPFLAGS' |
18700 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
18701 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
18702 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
18703 | |
18704 | CC="$lt_save_CC" |
18705 | |
18706 | else |
18707 | tagname="" |
18708 | fi |
18709 | ;; |
18710 | |
18711 | RC) |
18712 | |
18713 | |
d9898ee8 |
18714 | # Source file extension for RC test sources. |
18715 | ac_ext=rc |
18716 | |
18717 | # Object file extension for compiled RC test sources. |
18718 | objext=o |
18719 | objext_RC=$objext |
18720 | |
18721 | # Code to be used in simple compile tests |
18722 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' |
18723 | |
18724 | # Code to be used in simple link tests |
18725 | lt_simple_link_test_code="$lt_simple_compile_test_code" |
18726 | |
18727 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
18728 | |
18729 | # If no C compiler was specified, use CC. |
18730 | LTCC=${LTCC-"$CC"} |
18731 | |
18732 | # If no C compiler flags were specified, use CFLAGS. |
18733 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
18734 | |
18735 | # Allow CC to be a program name with arguments. |
18736 | compiler=$CC |
18737 | |
18738 | |
18739 | # save warnings/boilerplate of simple test code |
18740 | ac_outfile=conftest.$ac_objext |
18741 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
18742 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
18743 | _lt_compiler_boilerplate=`cat conftest.err` |
18744 | $rm conftest* |
18745 | |
18746 | ac_outfile=conftest.$ac_objext |
18747 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
18748 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
18749 | _lt_linker_boilerplate=`cat conftest.err` |
18750 | $rm conftest* |
18751 | |
18752 | |
18753 | # Allow CC to be a program name with arguments. |
18754 | lt_save_CC="$CC" |
18755 | CC=${RC-"windres"} |
18756 | compiler=$CC |
18757 | compiler_RC=$CC |
18758 | for cc_temp in $compiler""; do |
18759 | case $cc_temp in |
18760 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
18761 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
18762 | \-*) ;; |
18763 | *) break;; |
18764 | esac |
18765 | done |
18766 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
18767 | |
18768 | lt_cv_prog_compiler_c_o_RC=yes |
18769 | |
18770 | # The else clause should only fire when bootstrapping the |
18771 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
18772 | # with your package, and you will get complaints that there are |
18773 | # no rules to generate ltmain.sh. |
18774 | if test -f "$ltmain"; then |
18775 | # See if we are running on zsh, and set the options which allow our commands through |
18776 | # without removal of \ escapes. |
18777 | if test -n "${ZSH_VERSION+set}" ; then |
18778 | setopt NO_GLOB_SUBST |
18779 | fi |
18780 | # Now quote all the things that may contain metacharacters while being |
18781 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
18782 | # variables and quote the copies for generation of the libtool script. |
18783 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
18784 | SED SHELL STRIP \ |
18785 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
18786 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
18787 | deplibs_check_method reload_flag reload_cmds need_locks \ |
18788 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
18789 | lt_cv_sys_global_symbol_to_c_name_address \ |
18790 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
18791 | old_postinstall_cmds old_postuninstall_cmds \ |
18792 | compiler_RC \ |
18793 | CC_RC \ |
18794 | LD_RC \ |
18795 | lt_prog_compiler_wl_RC \ |
18796 | lt_prog_compiler_pic_RC \ |
18797 | lt_prog_compiler_static_RC \ |
18798 | lt_prog_compiler_no_builtin_flag_RC \ |
18799 | export_dynamic_flag_spec_RC \ |
18800 | thread_safe_flag_spec_RC \ |
18801 | whole_archive_flag_spec_RC \ |
18802 | enable_shared_with_static_runtimes_RC \ |
18803 | old_archive_cmds_RC \ |
18804 | old_archive_from_new_cmds_RC \ |
18805 | predep_objects_RC \ |
18806 | postdep_objects_RC \ |
18807 | predeps_RC \ |
18808 | postdeps_RC \ |
18809 | compiler_lib_search_path_RC \ |
18810 | archive_cmds_RC \ |
18811 | archive_expsym_cmds_RC \ |
18812 | postinstall_cmds_RC \ |
18813 | postuninstall_cmds_RC \ |
18814 | old_archive_from_expsyms_cmds_RC \ |
18815 | allow_undefined_flag_RC \ |
18816 | no_undefined_flag_RC \ |
18817 | export_symbols_cmds_RC \ |
18818 | hardcode_libdir_flag_spec_RC \ |
18819 | hardcode_libdir_flag_spec_ld_RC \ |
18820 | hardcode_libdir_separator_RC \ |
18821 | hardcode_automatic_RC \ |
18822 | module_cmds_RC \ |
18823 | module_expsym_cmds_RC \ |
18824 | lt_cv_prog_compiler_c_o_RC \ |
18825 | exclude_expsyms_RC \ |
18826 | include_expsyms_RC; do |
18827 | |
18828 | case $var in |
18829 | old_archive_cmds_RC | \ |
18830 | old_archive_from_new_cmds_RC | \ |
18831 | archive_cmds_RC | \ |
18832 | archive_expsym_cmds_RC | \ |
18833 | module_cmds_RC | \ |
18834 | module_expsym_cmds_RC | \ |
18835 | old_archive_from_expsyms_cmds_RC | \ |
18836 | export_symbols_cmds_RC | \ |
18837 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
18838 | postinstall_cmds | postuninstall_cmds | \ |
18839 | old_postinstall_cmds | old_postuninstall_cmds | \ |
18840 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
18841 | # Double-quote double-evaled strings. |
18842 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
18843 | ;; |
18844 | *) |
18845 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
18846 | ;; |
18847 | esac |
18848 | done |
18849 | |
18850 | case $lt_echo in |
18851 | *'\$0 --fallback-echo"') |
18852 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
18853 | ;; |
18854 | esac |
18855 | |
18856 | cfgfile="$ofile" |
18857 | |
18858 | cat <<__EOF__ >> "$cfgfile" |
18859 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
18860 | |
18861 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
18862 | |
18863 | # Shell to use when invoking shell scripts. |
18864 | SHELL=$lt_SHELL |
18865 | |
18866 | # Whether or not to build shared libraries. |
18867 | build_libtool_libs=$enable_shared |
18868 | |
18869 | # Whether or not to build static libraries. |
18870 | build_old_libs=$enable_static |
18871 | |
18872 | # Whether or not to add -lc for building shared libraries. |
18873 | build_libtool_need_lc=$archive_cmds_need_lc_RC |
18874 | |
18875 | # Whether or not to disallow shared libs when runtime libs are static |
18876 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC |
18877 | |
18878 | # Whether or not to optimize for fast installation. |
18879 | fast_install=$enable_fast_install |
18880 | |
18881 | # The host system. |
18882 | host_alias=$host_alias |
18883 | host=$host |
18884 | host_os=$host_os |
18885 | |
18886 | # The build system. |
18887 | build_alias=$build_alias |
18888 | build=$build |
18889 | build_os=$build_os |
18890 | |
18891 | # An echo program that does not interpret backslashes. |
18892 | echo=$lt_echo |
18893 | |
18894 | # The archiver. |
18895 | AR=$lt_AR |
18896 | AR_FLAGS=$lt_AR_FLAGS |
18897 | |
18898 | # A C compiler. |
18899 | LTCC=$lt_LTCC |
18900 | |
18901 | # LTCC compiler flags. |
18902 | LTCFLAGS=$lt_LTCFLAGS |
18903 | |
18904 | # A language-specific compiler. |
18905 | CC=$lt_compiler_RC |
18906 | |
18907 | # Is the compiler the GNU C compiler? |
18908 | with_gcc=$GCC_RC |
18909 | |
d9898ee8 |
18910 | # An ERE matcher. |
18911 | EGREP=$lt_EGREP |
18912 | |
18913 | # The linker used to build libraries. |
18914 | LD=$lt_LD_RC |
18915 | |
18916 | # Whether we need hard or soft links. |
18917 | LN_S=$lt_LN_S |
18918 | |
18919 | # A BSD-compatible nm program. |
18920 | NM=$lt_NM |
18921 | |
18922 | # A symbol stripping program |
18923 | STRIP=$lt_STRIP |
18924 | |
18925 | # Used to examine libraries when file_magic_cmd begins "file" |
18926 | MAGIC_CMD=$MAGIC_CMD |
18927 | |
18928 | # Used on cygwin: DLL creation program. |
18929 | DLLTOOL="$DLLTOOL" |
18930 | |
18931 | # Used on cygwin: object dumper. |
18932 | OBJDUMP="$OBJDUMP" |
18933 | |
18934 | # Used on cygwin: assembler. |
18935 | AS="$AS" |
18936 | |
18937 | # The name of the directory that contains temporary libtool files. |
18938 | objdir=$objdir |
18939 | |
18940 | # How to create reloadable object files. |
18941 | reload_flag=$lt_reload_flag |
18942 | reload_cmds=$lt_reload_cmds |
18943 | |
18944 | # How to pass a linker flag through the compiler. |
18945 | wl=$lt_lt_prog_compiler_wl_RC |
18946 | |
18947 | # Object file suffix (normally "o"). |
18948 | objext="$ac_objext" |
18949 | |
18950 | # Old archive suffix (normally "a"). |
18951 | libext="$libext" |
18952 | |
18953 | # Shared library suffix (normally ".so"). |
18954 | shrext_cmds='$shrext_cmds' |
18955 | |
18956 | # Executable file suffix (normally ""). |
18957 | exeext="$exeext" |
18958 | |
18959 | # Additional compiler flags for building library objects. |
18960 | pic_flag=$lt_lt_prog_compiler_pic_RC |
18961 | pic_mode=$pic_mode |
18962 | |
18963 | # What is the maximum length of a command? |
18964 | max_cmd_len=$lt_cv_sys_max_cmd_len |
18965 | |
18966 | # Does compiler simultaneously support -c and -o options? |
18967 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC |
18968 | |
18969 | # Must we lock files when doing compilation? |
18970 | need_locks=$lt_need_locks |
18971 | |
18972 | # Do we need the lib prefix for modules? |
18973 | need_lib_prefix=$need_lib_prefix |
18974 | |
18975 | # Do we need a version for libraries? |
18976 | need_version=$need_version |
18977 | |
18978 | # Whether dlopen is supported. |
18979 | dlopen_support=$enable_dlopen |
18980 | |
18981 | # Whether dlopen of programs is supported. |
18982 | dlopen_self=$enable_dlopen_self |
18983 | |
18984 | # Whether dlopen of statically linked programs is supported. |
18985 | dlopen_self_static=$enable_dlopen_self_static |
18986 | |
18987 | # Compiler flag to prevent dynamic linking. |
18988 | link_static_flag=$lt_lt_prog_compiler_static_RC |
18989 | |
18990 | # Compiler flag to turn off builtin functions. |
18991 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC |
18992 | |
18993 | # Compiler flag to allow reflexive dlopens. |
18994 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC |
18995 | |
18996 | # Compiler flag to generate shared objects directly from archives. |
18997 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC |
18998 | |
18999 | # Compiler flag to generate thread-safe objects. |
19000 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC |
19001 | |
19002 | # Library versioning type. |
19003 | version_type=$version_type |
19004 | |
19005 | # Format of library name prefix. |
19006 | libname_spec=$lt_libname_spec |
19007 | |
19008 | # List of archive names. First name is the real one, the rest are links. |
19009 | # The last name is the one that the linker finds with -lNAME. |
19010 | library_names_spec=$lt_library_names_spec |
19011 | |
19012 | # The coded name of the library, if different from the real name. |
19013 | soname_spec=$lt_soname_spec |
19014 | |
19015 | # Commands used to build and install an old-style archive. |
19016 | RANLIB=$lt_RANLIB |
19017 | old_archive_cmds=$lt_old_archive_cmds_RC |
19018 | old_postinstall_cmds=$lt_old_postinstall_cmds |
19019 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
19020 | |
19021 | # Create an old-style archive from a shared archive. |
19022 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC |
19023 | |
19024 | # Create a temporary old-style archive to link instead of a shared archive. |
19025 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC |
19026 | |
19027 | # Commands used to build and install a shared archive. |
19028 | archive_cmds=$lt_archive_cmds_RC |
19029 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC |
19030 | postinstall_cmds=$lt_postinstall_cmds |
19031 | postuninstall_cmds=$lt_postuninstall_cmds |
19032 | |
19033 | # Commands used to build a loadable module (assumed same as above if empty) |
19034 | module_cmds=$lt_module_cmds_RC |
19035 | module_expsym_cmds=$lt_module_expsym_cmds_RC |
19036 | |
19037 | # Commands to strip libraries. |
19038 | old_striplib=$lt_old_striplib |
19039 | striplib=$lt_striplib |
19040 | |
19041 | # Dependencies to place before the objects being linked to create a |
19042 | # shared library. |
dd184caf |
19043 | predep_objects=$lt_predep_objects_RC |
d9898ee8 |
19044 | |
19045 | # Dependencies to place after the objects being linked to create a |
19046 | # shared library. |
dd184caf |
19047 | postdep_objects=$lt_postdep_objects_RC |
d9898ee8 |
19048 | |
19049 | # Dependencies to place before the objects being linked to create a |
19050 | # shared library. |
19051 | predeps=$lt_predeps_RC |
19052 | |
19053 | # Dependencies to place after the objects being linked to create a |
19054 | # shared library. |
19055 | postdeps=$lt_postdeps_RC |
19056 | |
19057 | # The library search path used internally by the compiler when linking |
19058 | # a shared library. |
dd184caf |
19059 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC |
d9898ee8 |
19060 | |
19061 | # Method to check whether dependent libraries are shared objects. |
19062 | deplibs_check_method=$lt_deplibs_check_method |
19063 | |
19064 | # Command to use when deplibs_check_method == file_magic. |
19065 | file_magic_cmd=$lt_file_magic_cmd |
19066 | |
19067 | # Flag that allows shared libraries with undefined symbols to be built. |
19068 | allow_undefined_flag=$lt_allow_undefined_flag_RC |
19069 | |
19070 | # Flag that forces no undefined symbols. |
19071 | no_undefined_flag=$lt_no_undefined_flag_RC |
19072 | |
19073 | # Commands used to finish a libtool library installation in a directory. |
19074 | finish_cmds=$lt_finish_cmds |
19075 | |
19076 | # Same as above, but a single script fragment to be evaled but not shown. |
19077 | finish_eval=$lt_finish_eval |
19078 | |
19079 | # Take the output of nm and produce a listing of raw symbols and C names. |
19080 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
19081 | |
19082 | # Transform the output of nm in a proper C declaration |
19083 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
19084 | |
19085 | # Transform the output of nm in a C name address pair |
19086 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
19087 | |
19088 | # This is the shared library runtime path variable. |
19089 | runpath_var=$runpath_var |
19090 | |
19091 | # This is the shared library path variable. |
19092 | shlibpath_var=$shlibpath_var |
19093 | |
19094 | # Is shlibpath searched before the hard-coded library search path? |
19095 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
19096 | |
19097 | # How to hardcode a shared library path into an executable. |
19098 | hardcode_action=$hardcode_action_RC |
19099 | |
19100 | # Whether we should hardcode library paths into libraries. |
19101 | hardcode_into_libs=$hardcode_into_libs |
19102 | |
19103 | # Flag to hardcode \$libdir into a binary during linking. |
19104 | # This must work even if \$libdir does not exist. |
19105 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC |
19106 | |
19107 | # If ld is used when linking, flag to hardcode \$libdir into |
19108 | # a binary during linking. This must work even if \$libdir does |
19109 | # not exist. |
19110 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC |
19111 | |
19112 | # Whether we need a single -rpath flag with a separated argument. |
19113 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC |
19114 | |
19115 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
19116 | # resulting binary. |
19117 | hardcode_direct=$hardcode_direct_RC |
19118 | |
19119 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
19120 | # resulting binary. |
19121 | hardcode_minus_L=$hardcode_minus_L_RC |
19122 | |
19123 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
19124 | # the resulting binary. |
19125 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC |
19126 | |
19127 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
19128 | # and all subsequent libraries and executables linked against it. |
19129 | hardcode_automatic=$hardcode_automatic_RC |
19130 | |
19131 | # Variables whose values should be saved in libtool wrapper scripts and |
19132 | # restored at relink time. |
19133 | variables_saved_for_relink="$variables_saved_for_relink" |
19134 | |
19135 | # Whether libtool must link a program against all its dependency libraries. |
19136 | link_all_deplibs=$link_all_deplibs_RC |
19137 | |
19138 | # Compile-time system search path for libraries |
dd184caf |
19139 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
d9898ee8 |
19140 | |
19141 | # Run-time system search path for libraries |
19142 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
19143 | |
19144 | # Fix the shell variable \$srcfile for the compiler. |
19145 | fix_srcfile_path="$fix_srcfile_path_RC" |
19146 | |
19147 | # Set to yes if exported symbols are required. |
19148 | always_export_symbols=$always_export_symbols_RC |
19149 | |
19150 | # The commands to list exported symbols. |
19151 | export_symbols_cmds=$lt_export_symbols_cmds_RC |
19152 | |
19153 | # The commands to extract the exported symbol list from a shared archive. |
19154 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
19155 | |
19156 | # Symbols that should not be listed in the preloaded symbols. |
19157 | exclude_expsyms=$lt_exclude_expsyms_RC |
19158 | |
19159 | # Symbols that must always be exported. |
19160 | include_expsyms=$lt_include_expsyms_RC |
19161 | |
19162 | # ### END LIBTOOL TAG CONFIG: $tagname |
19163 | |
19164 | __EOF__ |
19165 | |
19166 | |
19167 | else |
19168 | # If there is no Makefile yet, we rely on a make rule to execute |
19169 | # `config.status --recheck' to rerun these tests and create the |
19170 | # libtool script then. |
19171 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
19172 | if test -f "$ltmain_in"; then |
19173 | test -f Makefile && make "$ltmain" |
19174 | fi |
19175 | fi |
19176 | |
19177 | |
19178 | ac_ext=c |
19179 | ac_cpp='$CPP $CPPFLAGS' |
19180 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
19181 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
19182 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
19183 | |
19184 | CC="$lt_save_CC" |
19185 | |
19186 | ;; |
19187 | |
19188 | *) |
19189 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 |
19190 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} |
19191 | { (exit 1); exit 1; }; } |
19192 | ;; |
19193 | esac |
19194 | |
19195 | # Append the new tag name to the list of available tags. |
19196 | if test -n "$tagname" ; then |
19197 | available_tags="$available_tags $tagname" |
19198 | fi |
19199 | fi |
19200 | done |
19201 | IFS="$lt_save_ifs" |
19202 | |
19203 | # Now substitute the updated list of available tags. |
19204 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
19205 | mv "${ofile}T" "$ofile" |
19206 | chmod +x "$ofile" |
19207 | else |
19208 | rm -f "${ofile}T" |
19209 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 |
19210 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} |
19211 | { (exit 1); exit 1; }; } |
19212 | fi |
19213 | fi |
19214 | |
19215 | |
19216 | |
19217 | # This can be used to rebuild libtool when needed |
19218 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
19219 | |
19220 | # Always use our own libtool. |
19221 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
19222 | |
19223 | # Prevent multiple expansion |
19224 | |
19225 | |
19226 | |
19227 | |
19228 | |
19229 | |
19230 | |
19231 | |
19232 | |
19233 | |
19234 | |
19235 | |
19236 | |
19237 | |
19238 | |
19239 | |
19240 | |
19241 | |
19242 | |
19243 | |
19244 | |
19245 | |
19246 | |
19247 | |
19248 | |
19249 | |
19250 | |
19251 | |
19252 | |
19253 | for ac_header in errno.h fcntl.h sys/fcntl.h sys/ioctl.h sys/file.h unistd.h sysexits.h |
19254 | do |
19255 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
dd184caf |
19256 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
19257 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
19258 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
19259 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
19260 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19261 | fi |
dd184caf |
19262 | ac_res=`eval echo '${'$as_ac_Header'}'` |
19263 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
19264 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
19265 | else |
19266 | # Is the header compilable? |
dd184caf |
19267 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
19268 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
d9898ee8 |
19269 | cat >conftest.$ac_ext <<_ACEOF |
19270 | /* confdefs.h. */ |
19271 | _ACEOF |
19272 | cat confdefs.h >>conftest.$ac_ext |
19273 | cat >>conftest.$ac_ext <<_ACEOF |
19274 | /* end confdefs.h. */ |
19275 | $ac_includes_default |
19276 | #include <$ac_header> |
19277 | _ACEOF |
19278 | rm -f conftest.$ac_objext |
dd184caf |
19279 | if { (ac_try="$ac_compile" |
19280 | case "(($ac_try" in |
19281 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
19282 | *) ac_try_echo=$ac_try;; |
19283 | esac |
19284 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
19285 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
19286 | ac_status=$? |
19287 | grep -v '^ *+' conftest.er1 >conftest.err |
19288 | rm -f conftest.er1 |
19289 | cat conftest.err >&5 |
19290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
19291 | (exit $ac_status); } && { |
19292 | test -z "$ac_c_werror_flag" || |
19293 | test ! -s conftest.err |
19294 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
19295 | ac_header_compiler=yes |
19296 | else |
19297 | echo "$as_me: failed program was:" >&5 |
19298 | sed 's/^/| /' conftest.$ac_ext >&5 |
19299 | |
dd184caf |
19300 | ac_header_compiler=no |
d9898ee8 |
19301 | fi |
dd184caf |
19302 | |
19303 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
19304 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
19305 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
d9898ee8 |
19306 | |
19307 | # Is the header present? |
dd184caf |
19308 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
19309 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
d9898ee8 |
19310 | cat >conftest.$ac_ext <<_ACEOF |
19311 | /* confdefs.h. */ |
19312 | _ACEOF |
19313 | cat confdefs.h >>conftest.$ac_ext |
19314 | cat >>conftest.$ac_ext <<_ACEOF |
19315 | /* end confdefs.h. */ |
19316 | #include <$ac_header> |
19317 | _ACEOF |
dd184caf |
19318 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
19319 | case "(($ac_try" in |
19320 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
19321 | *) ac_try_echo=$ac_try;; |
19322 | esac |
19323 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
19324 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
19325 | ac_status=$? |
19326 | grep -v '^ *+' conftest.er1 >conftest.err |
19327 | rm -f conftest.er1 |
19328 | cat conftest.err >&5 |
19329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
19330 | (exit $ac_status); } >/dev/null && { |
19331 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
19332 | test ! -s conftest.err |
19333 | }; then |
d9898ee8 |
19334 | ac_header_preproc=yes |
19335 | else |
19336 | echo "$as_me: failed program was:" >&5 |
19337 | sed 's/^/| /' conftest.$ac_ext >&5 |
19338 | |
19339 | ac_header_preproc=no |
19340 | fi |
dd184caf |
19341 | |
d9898ee8 |
19342 | rm -f conftest.err conftest.$ac_ext |
dd184caf |
19343 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
19344 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
d9898ee8 |
19345 | |
19346 | # So? What about this header? |
19347 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
19348 | yes:no: ) |
19349 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
19350 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
19351 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
19352 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
19353 | ac_header_preproc=yes |
19354 | ;; |
19355 | no:yes:* ) |
19356 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
19357 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
19358 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
19359 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
19360 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
19361 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
19362 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
19363 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
19364 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19365 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
19366 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
19367 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
dd184caf |
19368 | ( cat <<\_ASBOX |
d9898ee8 |
19369 | ## -------------------------------------------------- ## |
19370 | ## Report this to courier-users@lists.sourceforge.net ## |
19371 | ## -------------------------------------------------- ## |
19372 | _ASBOX |
dd184caf |
19373 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
d9898ee8 |
19374 | ;; |
19375 | esac |
dd184caf |
19376 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
19377 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
19378 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
19379 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19380 | else |
19381 | eval "$as_ac_Header=\$ac_header_preproc" |
19382 | fi |
dd184caf |
19383 | ac_res=`eval echo '${'$as_ac_Header'}'` |
19384 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
19385 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
19386 | |
19387 | fi |
19388 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
19389 | cat >>confdefs.h <<_ACEOF |
19390 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
19391 | _ACEOF |
19392 | |
19393 | fi |
19394 | |
19395 | done |
19396 | |
dd184caf |
19397 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
19398 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
d9898ee8 |
19399 | if test "${ac_cv_header_stdc+set}" = set; then |
19400 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19401 | else |
19402 | cat >conftest.$ac_ext <<_ACEOF |
19403 | /* confdefs.h. */ |
19404 | _ACEOF |
19405 | cat confdefs.h >>conftest.$ac_ext |
19406 | cat >>conftest.$ac_ext <<_ACEOF |
19407 | /* end confdefs.h. */ |
19408 | #include <stdlib.h> |
19409 | #include <stdarg.h> |
19410 | #include <string.h> |
19411 | #include <float.h> |
19412 | |
19413 | int |
19414 | main () |
19415 | { |
19416 | |
19417 | ; |
19418 | return 0; |
19419 | } |
19420 | _ACEOF |
19421 | rm -f conftest.$ac_objext |
dd184caf |
19422 | if { (ac_try="$ac_compile" |
19423 | case "(($ac_try" in |
19424 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
19425 | *) ac_try_echo=$ac_try;; |
19426 | esac |
19427 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
19428 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
19429 | ac_status=$? |
19430 | grep -v '^ *+' conftest.er1 >conftest.err |
19431 | rm -f conftest.er1 |
19432 | cat conftest.err >&5 |
19433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
19434 | (exit $ac_status); } && { |
19435 | test -z "$ac_c_werror_flag" || |
19436 | test ! -s conftest.err |
19437 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
19438 | ac_cv_header_stdc=yes |
19439 | else |
19440 | echo "$as_me: failed program was:" >&5 |
19441 | sed 's/^/| /' conftest.$ac_ext >&5 |
19442 | |
dd184caf |
19443 | ac_cv_header_stdc=no |
d9898ee8 |
19444 | fi |
dd184caf |
19445 | |
19446 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
19447 | |
19448 | if test $ac_cv_header_stdc = yes; then |
19449 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
19450 | cat >conftest.$ac_ext <<_ACEOF |
19451 | /* confdefs.h. */ |
19452 | _ACEOF |
19453 | cat confdefs.h >>conftest.$ac_ext |
19454 | cat >>conftest.$ac_ext <<_ACEOF |
19455 | /* end confdefs.h. */ |
19456 | #include <string.h> |
19457 | |
19458 | _ACEOF |
19459 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
19460 | $EGREP "memchr" >/dev/null 2>&1; then |
19461 | : |
19462 | else |
19463 | ac_cv_header_stdc=no |
19464 | fi |
19465 | rm -f conftest* |
19466 | |
19467 | fi |
19468 | |
19469 | if test $ac_cv_header_stdc = yes; then |
19470 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
19471 | cat >conftest.$ac_ext <<_ACEOF |
19472 | /* confdefs.h. */ |
19473 | _ACEOF |
19474 | cat confdefs.h >>conftest.$ac_ext |
19475 | cat >>conftest.$ac_ext <<_ACEOF |
19476 | /* end confdefs.h. */ |
19477 | #include <stdlib.h> |
19478 | |
19479 | _ACEOF |
19480 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
19481 | $EGREP "free" >/dev/null 2>&1; then |
19482 | : |
19483 | else |
19484 | ac_cv_header_stdc=no |
19485 | fi |
19486 | rm -f conftest* |
19487 | |
19488 | fi |
19489 | |
19490 | if test $ac_cv_header_stdc = yes; then |
19491 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
19492 | if test "$cross_compiling" = yes; then |
19493 | : |
19494 | else |
19495 | cat >conftest.$ac_ext <<_ACEOF |
19496 | /* confdefs.h. */ |
19497 | _ACEOF |
19498 | cat confdefs.h >>conftest.$ac_ext |
19499 | cat >>conftest.$ac_ext <<_ACEOF |
19500 | /* end confdefs.h. */ |
19501 | #include <ctype.h> |
dd184caf |
19502 | #include <stdlib.h> |
d9898ee8 |
19503 | #if ((' ' & 0x0FF) == 0x020) |
19504 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
19505 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
19506 | #else |
19507 | # define ISLOWER(c) \ |
19508 | (('a' <= (c) && (c) <= 'i') \ |
19509 | || ('j' <= (c) && (c) <= 'r') \ |
19510 | || ('s' <= (c) && (c) <= 'z')) |
19511 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
19512 | #endif |
19513 | |
19514 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
19515 | int |
19516 | main () |
19517 | { |
19518 | int i; |
19519 | for (i = 0; i < 256; i++) |
19520 | if (XOR (islower (i), ISLOWER (i)) |
19521 | || toupper (i) != TOUPPER (i)) |
dd184caf |
19522 | return 2; |
19523 | return 0; |
d9898ee8 |
19524 | } |
19525 | _ACEOF |
19526 | rm -f conftest$ac_exeext |
dd184caf |
19527 | if { (ac_try="$ac_link" |
19528 | case "(($ac_try" in |
19529 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
19530 | *) ac_try_echo=$ac_try;; |
19531 | esac |
19532 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
19533 | (eval "$ac_link") 2>&5 |
d9898ee8 |
19534 | ac_status=$? |
19535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19536 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
dd184caf |
19537 | { (case "(($ac_try" in |
19538 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
19539 | *) ac_try_echo=$ac_try;; |
19540 | esac |
19541 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
19542 | (eval "$ac_try") 2>&5 |
d9898ee8 |
19543 | ac_status=$? |
19544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19545 | (exit $ac_status); }; }; then |
19546 | : |
19547 | else |
19548 | echo "$as_me: program exited with status $ac_status" >&5 |
19549 | echo "$as_me: failed program was:" >&5 |
19550 | sed 's/^/| /' conftest.$ac_ext >&5 |
19551 | |
19552 | ( exit $ac_status ) |
19553 | ac_cv_header_stdc=no |
19554 | fi |
dd184caf |
19555 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
19556 | fi |
dd184caf |
19557 | |
19558 | |
d9898ee8 |
19559 | fi |
19560 | fi |
dd184caf |
19561 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
19562 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
d9898ee8 |
19563 | if test $ac_cv_header_stdc = yes; then |
19564 | |
19565 | cat >>confdefs.h <<\_ACEOF |
19566 | #define STDC_HEADERS 1 |
19567 | _ACEOF |
19568 | |
19569 | fi |
19570 | |
dd184caf |
19571 | { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
19572 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } |
d9898ee8 |
19573 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
19574 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19575 | else |
19576 | cat >conftest.$ac_ext <<_ACEOF |
19577 | /* confdefs.h. */ |
19578 | _ACEOF |
19579 | cat confdefs.h >>conftest.$ac_ext |
19580 | cat >>conftest.$ac_ext <<_ACEOF |
19581 | /* end confdefs.h. */ |
19582 | #include <sys/types.h> |
19583 | #include <sys/wait.h> |
19584 | #ifndef WEXITSTATUS |
dd184caf |
19585 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
d9898ee8 |
19586 | #endif |
19587 | #ifndef WIFEXITED |
19588 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
19589 | #endif |
19590 | |
19591 | int |
19592 | main () |
19593 | { |
19594 | int s; |
19595 | wait (&s); |
19596 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
19597 | ; |
19598 | return 0; |
19599 | } |
19600 | _ACEOF |
19601 | rm -f conftest.$ac_objext |
dd184caf |
19602 | if { (ac_try="$ac_compile" |
19603 | case "(($ac_try" in |
19604 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
19605 | *) ac_try_echo=$ac_try;; |
19606 | esac |
19607 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
19608 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
19609 | ac_status=$? |
19610 | grep -v '^ *+' conftest.er1 >conftest.err |
19611 | rm -f conftest.er1 |
19612 | cat conftest.err >&5 |
19613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
19614 | (exit $ac_status); } && { |
19615 | test -z "$ac_c_werror_flag" || |
19616 | test ! -s conftest.err |
19617 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
19618 | ac_cv_header_sys_wait_h=yes |
19619 | else |
19620 | echo "$as_me: failed program was:" >&5 |
19621 | sed 's/^/| /' conftest.$ac_ext >&5 |
19622 | |
dd184caf |
19623 | ac_cv_header_sys_wait_h=no |
d9898ee8 |
19624 | fi |
dd184caf |
19625 | |
19626 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
19627 | fi |
dd184caf |
19628 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
19629 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } |
d9898ee8 |
19630 | if test $ac_cv_header_sys_wait_h = yes; then |
19631 | |
19632 | cat >>confdefs.h <<\_ACEOF |
19633 | #define HAVE_SYS_WAIT_H 1 |
19634 | _ACEOF |
19635 | |
19636 | fi |
19637 | |
19638 | |
19639 | |
dd184caf |
19640 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
19641 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } |
d9898ee8 |
19642 | if test "${ac_cv_c_const+set}" = set; then |
19643 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19644 | else |
19645 | cat >conftest.$ac_ext <<_ACEOF |
19646 | /* confdefs.h. */ |
19647 | _ACEOF |
19648 | cat confdefs.h >>conftest.$ac_ext |
19649 | cat >>conftest.$ac_ext <<_ACEOF |
19650 | /* end confdefs.h. */ |
19651 | |
19652 | int |
19653 | main () |
19654 | { |
19655 | /* FIXME: Include the comments suggested by Paul. */ |
19656 | #ifndef __cplusplus |
19657 | /* Ultrix mips cc rejects this. */ |
19658 | typedef int charset[2]; |
dd184caf |
19659 | const charset cs; |
d9898ee8 |
19660 | /* SunOS 4.1.1 cc rejects this. */ |
dd184caf |
19661 | char const *const *pcpcc; |
19662 | char **ppc; |
d9898ee8 |
19663 | /* NEC SVR4.0.2 mips cc rejects this. */ |
19664 | struct point {int x, y;}; |
19665 | static struct point const zero = {0,0}; |
19666 | /* AIX XL C 1.02.0.0 rejects this. |
19667 | It does not let you subtract one const X* pointer from another in |
19668 | an arm of an if-expression whose if-part is not a constant |
19669 | expression */ |
19670 | const char *g = "string"; |
dd184caf |
19671 | pcpcc = &g + (g ? g-g : 0); |
d9898ee8 |
19672 | /* HPUX 7.0 cc rejects these. */ |
dd184caf |
19673 | ++pcpcc; |
19674 | ppc = (char**) pcpcc; |
19675 | pcpcc = (char const *const *) ppc; |
d9898ee8 |
19676 | { /* SCO 3.2v4 cc rejects this. */ |
19677 | char *t; |
19678 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
19679 | |
19680 | *t++ = 0; |
dd184caf |
19681 | if (s) return 0; |
d9898ee8 |
19682 | } |
19683 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
19684 | int x[] = {25, 17}; |
19685 | const int *foo = &x[0]; |
19686 | ++foo; |
19687 | } |
19688 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
19689 | typedef const int *iptr; |
19690 | iptr p = 0; |
19691 | ++p; |
19692 | } |
19693 | { /* AIX XL C 1.02.0.0 rejects this saying |
19694 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
19695 | struct s { int j; const int *ap[3]; }; |
19696 | struct s *b; b->j = 5; |
19697 | } |
19698 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
19699 | const int foo = 10; |
dd184caf |
19700 | if (!foo) return 0; |
d9898ee8 |
19701 | } |
dd184caf |
19702 | return !cs[0] && !zero.x; |
d9898ee8 |
19703 | #endif |
19704 | |
19705 | ; |
19706 | return 0; |
19707 | } |
19708 | _ACEOF |
19709 | rm -f conftest.$ac_objext |
dd184caf |
19710 | if { (ac_try="$ac_compile" |
19711 | case "(($ac_try" in |
19712 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
19713 | *) ac_try_echo=$ac_try;; |
19714 | esac |
19715 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
19716 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
19717 | ac_status=$? |
19718 | grep -v '^ *+' conftest.er1 >conftest.err |
19719 | rm -f conftest.er1 |
19720 | cat conftest.err >&5 |
19721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
19722 | (exit $ac_status); } && { |
19723 | test -z "$ac_c_werror_flag" || |
19724 | test ! -s conftest.err |
19725 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
19726 | ac_cv_c_const=yes |
19727 | else |
19728 | echo "$as_me: failed program was:" >&5 |
19729 | sed 's/^/| /' conftest.$ac_ext >&5 |
19730 | |
dd184caf |
19731 | ac_cv_c_const=no |
d9898ee8 |
19732 | fi |
dd184caf |
19733 | |
19734 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
19735 | fi |
dd184caf |
19736 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
19737 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
d9898ee8 |
19738 | if test $ac_cv_c_const = no; then |
19739 | |
19740 | cat >>confdefs.h <<\_ACEOF |
19741 | #define const |
19742 | _ACEOF |
19743 | |
19744 | fi |
19745 | |
dd184caf |
19746 | { echo "$as_me:$LINENO: checking for off_t" >&5 |
19747 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } |
d9898ee8 |
19748 | if test "${ac_cv_type_off_t+set}" = set; then |
19749 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19750 | else |
19751 | cat >conftest.$ac_ext <<_ACEOF |
19752 | /* confdefs.h. */ |
19753 | _ACEOF |
19754 | cat confdefs.h >>conftest.$ac_ext |
19755 | cat >>conftest.$ac_ext <<_ACEOF |
19756 | /* end confdefs.h. */ |
19757 | $ac_includes_default |
dd184caf |
19758 | typedef off_t ac__type_new_; |
d9898ee8 |
19759 | int |
19760 | main () |
19761 | { |
dd184caf |
19762 | if ((ac__type_new_ *) 0) |
d9898ee8 |
19763 | return 0; |
dd184caf |
19764 | if (sizeof (ac__type_new_)) |
d9898ee8 |
19765 | return 0; |
19766 | ; |
19767 | return 0; |
19768 | } |
19769 | _ACEOF |
19770 | rm -f conftest.$ac_objext |
dd184caf |
19771 | if { (ac_try="$ac_compile" |
19772 | case "(($ac_try" in |
19773 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
19774 | *) ac_try_echo=$ac_try;; |
19775 | esac |
19776 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
19777 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
19778 | ac_status=$? |
19779 | grep -v '^ *+' conftest.er1 >conftest.err |
19780 | rm -f conftest.er1 |
19781 | cat conftest.err >&5 |
19782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
19783 | (exit $ac_status); } && { |
19784 | test -z "$ac_c_werror_flag" || |
19785 | test ! -s conftest.err |
19786 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
19787 | ac_cv_type_off_t=yes |
19788 | else |
19789 | echo "$as_me: failed program was:" >&5 |
19790 | sed 's/^/| /' conftest.$ac_ext >&5 |
19791 | |
dd184caf |
19792 | ac_cv_type_off_t=no |
d9898ee8 |
19793 | fi |
dd184caf |
19794 | |
19795 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
19796 | fi |
dd184caf |
19797 | { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
19798 | echo "${ECHO_T}$ac_cv_type_off_t" >&6; } |
d9898ee8 |
19799 | if test $ac_cv_type_off_t = yes; then |
19800 | : |
19801 | else |
19802 | |
19803 | cat >>confdefs.h <<_ACEOF |
dd184caf |
19804 | #define off_t long int |
d9898ee8 |
19805 | _ACEOF |
19806 | |
19807 | fi |
19808 | |
dd184caf |
19809 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
19810 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
d9898ee8 |
19811 | if test "${ac_cv_type_pid_t+set}" = set; then |
19812 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19813 | else |
19814 | cat >conftest.$ac_ext <<_ACEOF |
19815 | /* confdefs.h. */ |
19816 | _ACEOF |
19817 | cat confdefs.h >>conftest.$ac_ext |
19818 | cat >>conftest.$ac_ext <<_ACEOF |
19819 | /* end confdefs.h. */ |
19820 | $ac_includes_default |
dd184caf |
19821 | typedef pid_t ac__type_new_; |
d9898ee8 |
19822 | int |
19823 | main () |
19824 | { |
dd184caf |
19825 | if ((ac__type_new_ *) 0) |
d9898ee8 |
19826 | return 0; |
dd184caf |
19827 | if (sizeof (ac__type_new_)) |
d9898ee8 |
19828 | return 0; |
19829 | ; |
19830 | return 0; |
19831 | } |
19832 | _ACEOF |
19833 | rm -f conftest.$ac_objext |
dd184caf |
19834 | if { (ac_try="$ac_compile" |
19835 | case "(($ac_try" in |
19836 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
19837 | *) ac_try_echo=$ac_try;; |
19838 | esac |
19839 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
19840 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
19841 | ac_status=$? |
19842 | grep -v '^ *+' conftest.er1 >conftest.err |
19843 | rm -f conftest.er1 |
19844 | cat conftest.err >&5 |
19845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
19846 | (exit $ac_status); } && { |
19847 | test -z "$ac_c_werror_flag" || |
19848 | test ! -s conftest.err |
19849 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
19850 | ac_cv_type_pid_t=yes |
19851 | else |
19852 | echo "$as_me: failed program was:" >&5 |
19853 | sed 's/^/| /' conftest.$ac_ext >&5 |
19854 | |
dd184caf |
19855 | ac_cv_type_pid_t=no |
d9898ee8 |
19856 | fi |
dd184caf |
19857 | |
19858 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
19859 | fi |
dd184caf |
19860 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
19861 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
d9898ee8 |
19862 | if test $ac_cv_type_pid_t = yes; then |
19863 | : |
19864 | else |
19865 | |
19866 | cat >>confdefs.h <<_ACEOF |
19867 | #define pid_t int |
19868 | _ACEOF |
19869 | |
19870 | fi |
19871 | |
dd184caf |
19872 | { echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
19873 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } |
d9898ee8 |
19874 | if test "${ac_cv_type_signal+set}" = set; then |
19875 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19876 | else |
19877 | cat >conftest.$ac_ext <<_ACEOF |
19878 | /* confdefs.h. */ |
19879 | _ACEOF |
19880 | cat confdefs.h >>conftest.$ac_ext |
19881 | cat >>conftest.$ac_ext <<_ACEOF |
19882 | /* end confdefs.h. */ |
19883 | #include <sys/types.h> |
19884 | #include <signal.h> |
d9898ee8 |
19885 | |
19886 | int |
19887 | main () |
19888 | { |
dd184caf |
19889 | return *(signal (0, 0)) (0) == 1; |
d9898ee8 |
19890 | ; |
19891 | return 0; |
19892 | } |
19893 | _ACEOF |
19894 | rm -f conftest.$ac_objext |
dd184caf |
19895 | if { (ac_try="$ac_compile" |
19896 | case "(($ac_try" in |
19897 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
19898 | *) ac_try_echo=$ac_try;; |
19899 | esac |
19900 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
19901 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
19902 | ac_status=$? |
19903 | grep -v '^ *+' conftest.er1 >conftest.err |
19904 | rm -f conftest.er1 |
19905 | cat conftest.err >&5 |
19906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
19907 | (exit $ac_status); } && { |
19908 | test -z "$ac_c_werror_flag" || |
19909 | test ! -s conftest.err |
19910 | } && test -s conftest.$ac_objext; then |
19911 | ac_cv_type_signal=int |
d9898ee8 |
19912 | else |
19913 | echo "$as_me: failed program was:" >&5 |
19914 | sed 's/^/| /' conftest.$ac_ext >&5 |
19915 | |
dd184caf |
19916 | ac_cv_type_signal=void |
d9898ee8 |
19917 | fi |
dd184caf |
19918 | |
19919 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
19920 | fi |
dd184caf |
19921 | { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
19922 | echo "${ECHO_T}$ac_cv_type_signal" >&6; } |
d9898ee8 |
19923 | |
19924 | cat >>confdefs.h <<_ACEOF |
19925 | #define RETSIGTYPE $ac_cv_type_signal |
19926 | _ACEOF |
19927 | |
19928 | |
19929 | |
dd184caf |
19930 | { echo "$as_me:$LINENO: checking for off64_t" >&5 |
19931 | echo $ECHO_N "checking for off64_t... $ECHO_C" >&6; } |
d9898ee8 |
19932 | if test "${liblock_cv_hasoff64t+set}" = set; then |
19933 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19934 | else |
19935 | liblock_cv_hasoff64t="no" |
19936 | cat >conftest.$ac_ext <<_ACEOF |
19937 | /* confdefs.h. */ |
19938 | _ACEOF |
19939 | cat confdefs.h >>conftest.$ac_ext |
19940 | cat >>conftest.$ac_ext <<_ACEOF |
19941 | /* end confdefs.h. */ |
19942 | |
19943 | #include <sys/types.h> |
19944 | |
19945 | int |
19946 | main () |
19947 | { |
19948 | |
19949 | off64_t n; |
19950 | |
19951 | n=0; |
19952 | |
19953 | ; |
19954 | return 0; |
19955 | } |
19956 | _ACEOF |
19957 | rm -f conftest.$ac_objext |
dd184caf |
19958 | if { (ac_try="$ac_compile" |
19959 | case "(($ac_try" in |
19960 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
19961 | *) ac_try_echo=$ac_try;; |
19962 | esac |
19963 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
19964 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
19965 | ac_status=$? |
19966 | grep -v '^ *+' conftest.er1 >conftest.err |
19967 | rm -f conftest.er1 |
19968 | cat conftest.err >&5 |
19969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
19970 | (exit $ac_status); } && { |
19971 | test -z "$ac_c_werror_flag" || |
19972 | test ! -s conftest.err |
19973 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
19974 | liblock_cv_hasoff64t="yes" |
19975 | else |
19976 | echo "$as_me: failed program was:" >&5 |
19977 | sed 's/^/| /' conftest.$ac_ext >&5 |
19978 | |
dd184caf |
19979 | |
d9898ee8 |
19980 | fi |
dd184caf |
19981 | |
19982 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
19983 | |
19984 | |
19985 | fi |
dd184caf |
19986 | { echo "$as_me:$LINENO: result: $liblock_cv_hasoff64t" >&5 |
19987 | echo "${ECHO_T}$liblock_cv_hasoff64t" >&6; } |
d9898ee8 |
19988 | |
19989 | if test "$liblock_cv_hasoff64t" = "yes" |
19990 | then |
19991 | LL_OFFSET_TYPE=off64_t |
19992 | else |
19993 | LL_OFFSET_TYPE=off_t |
19994 | fi |
19995 | |
19996 | cat >>confdefs.h <<_ACEOF |
19997 | #define LL_OFFSET_TYPE $LL_OFFSET_TYPE |
19998 | _ACEOF |
19999 | |
20000 | |
dd184caf |
20001 | { echo "$as_me:$LINENO: checking for flock_t" >&5 |
20002 | echo $ECHO_N "checking for flock_t... $ECHO_C" >&6; } |
d9898ee8 |
20003 | if test "${liblock_cv_hasflock_t+set}" = set; then |
20004 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20005 | else |
20006 | liblock_cv_hasflock_t="no" |
20007 | cat >conftest.$ac_ext <<_ACEOF |
20008 | /* confdefs.h. */ |
20009 | _ACEOF |
20010 | cat confdefs.h >>conftest.$ac_ext |
20011 | cat >>conftest.$ac_ext <<_ACEOF |
20012 | /* end confdefs.h. */ |
20013 | |
20014 | #if HAVE_CONFIG_H |
20015 | #include "config.h" |
20016 | #endif |
20017 | #include <sys/types.h> |
20018 | #if HAVE_FCNTL_H |
20019 | #include <fcntl.h> |
20020 | #endif |
20021 | #if HAVE_SYS_FCNTL_H |
20022 | #include <sys/fcntl.h> |
20023 | #endif |
20024 | |
20025 | int |
20026 | main () |
20027 | { |
20028 | |
20029 | flock_t t; |
20030 | |
20031 | ; |
20032 | return 0; |
20033 | } |
20034 | _ACEOF |
20035 | rm -f conftest.$ac_objext |
dd184caf |
20036 | if { (ac_try="$ac_compile" |
20037 | case "(($ac_try" in |
20038 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20039 | *) ac_try_echo=$ac_try;; |
20040 | esac |
20041 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20042 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
20043 | ac_status=$? |
20044 | grep -v '^ *+' conftest.er1 >conftest.err |
20045 | rm -f conftest.er1 |
20046 | cat conftest.err >&5 |
20047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
20048 | (exit $ac_status); } && { |
20049 | test -z "$ac_c_werror_flag" || |
20050 | test ! -s conftest.err |
20051 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
20052 | liblock_cv_hasflock_t="yes" |
20053 | else |
20054 | echo "$as_me: failed program was:" >&5 |
20055 | sed 's/^/| /' conftest.$ac_ext >&5 |
20056 | |
dd184caf |
20057 | |
d9898ee8 |
20058 | fi |
dd184caf |
20059 | |
20060 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
20061 | fi |
dd184caf |
20062 | { echo "$as_me:$LINENO: result: $liblock_cv_hasflock_t" >&5 |
20063 | echo "${ECHO_T}$liblock_cv_hasflock_t" >&6; } |
d9898ee8 |
20064 | |
20065 | if test "$liblock_cv_hasflock_t" = "yes" |
20066 | then |
20067 | |
20068 | cat >>confdefs.h <<_ACEOF |
20069 | #define HAS_FLOCK_T 1 |
20070 | _ACEOF |
20071 | |
20072 | fi |
20073 | |
20074 | |
20075 | |
dd184caf |
20076 | |
84870c69 |
20077 | |
20078 | for ac_func in getdtablesize setpgrp sysconf |
d9898ee8 |
20079 | do |
20080 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
dd184caf |
20081 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
20082 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
20083 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
20084 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20085 | else |
20086 | cat >conftest.$ac_ext <<_ACEOF |
20087 | /* confdefs.h. */ |
20088 | _ACEOF |
20089 | cat confdefs.h >>conftest.$ac_ext |
20090 | cat >>conftest.$ac_ext <<_ACEOF |
20091 | /* end confdefs.h. */ |
20092 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
20093 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
20094 | #define $ac_func innocuous_$ac_func |
20095 | |
20096 | /* System header to define __stub macros and hopefully few prototypes, |
20097 | which can conflict with char $ac_func (); below. |
20098 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
20099 | <limits.h> exists even on freestanding compilers. */ |
20100 | |
20101 | #ifdef __STDC__ |
20102 | # include <limits.h> |
20103 | #else |
20104 | # include <assert.h> |
20105 | #endif |
20106 | |
20107 | #undef $ac_func |
20108 | |
dd184caf |
20109 | /* Override any GCC internal prototype to avoid an error. |
20110 | Use char because int might match the return type of a GCC |
20111 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
20112 | #ifdef __cplusplus |
20113 | extern "C" |
d9898ee8 |
20114 | #endif |
d9898ee8 |
20115 | char $ac_func (); |
20116 | /* The GNU C library defines this for functions which it implements |
20117 | to always fail with ENOSYS. Some functions are actually named |
20118 | something starting with __ and the normal name is an alias. */ |
dd184caf |
20119 | #if defined __stub_$ac_func || defined __stub___$ac_func |
d9898ee8 |
20120 | choke me |
d9898ee8 |
20121 | #endif |
20122 | |
20123 | int |
20124 | main () |
20125 | { |
dd184caf |
20126 | return $ac_func (); |
d9898ee8 |
20127 | ; |
20128 | return 0; |
20129 | } |
20130 | _ACEOF |
20131 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
20132 | if { (ac_try="$ac_link" |
20133 | case "(($ac_try" in |
20134 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20135 | *) ac_try_echo=$ac_try;; |
20136 | esac |
20137 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20138 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
20139 | ac_status=$? |
20140 | grep -v '^ *+' conftest.er1 >conftest.err |
20141 | rm -f conftest.er1 |
20142 | cat conftest.err >&5 |
20143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
20144 | (exit $ac_status); } && { |
20145 | test -z "$ac_c_werror_flag" || |
20146 | test ! -s conftest.err |
20147 | } && test -s conftest$ac_exeext && |
20148 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
20149 | eval "$as_ac_var=yes" |
20150 | else |
20151 | echo "$as_me: failed program was:" >&5 |
20152 | sed 's/^/| /' conftest.$ac_ext >&5 |
20153 | |
dd184caf |
20154 | eval "$as_ac_var=no" |
d9898ee8 |
20155 | fi |
dd184caf |
20156 | |
20157 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
20158 | conftest$ac_exeext conftest.$ac_ext |
20159 | fi |
dd184caf |
20160 | ac_res=`eval echo '${'$as_ac_var'}'` |
20161 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
20162 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
20163 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
20164 | cat >>confdefs.h <<_ACEOF |
20165 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
20166 | _ACEOF |
20167 | |
20168 | fi |
20169 | done |
20170 | |
dd184caf |
20171 | { echo "$as_me:$LINENO: checking for setpgrp" >&5 |
20172 | echo $ECHO_N "checking for setpgrp... $ECHO_C" >&6; } |
d9898ee8 |
20173 | if test "${ac_cv_func_setpgrp+set}" = set; then |
20174 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20175 | else |
20176 | cat >conftest.$ac_ext <<_ACEOF |
20177 | /* confdefs.h. */ |
20178 | _ACEOF |
20179 | cat confdefs.h >>conftest.$ac_ext |
20180 | cat >>conftest.$ac_ext <<_ACEOF |
20181 | /* end confdefs.h. */ |
20182 | /* Define setpgrp to an innocuous variant, in case <limits.h> declares setpgrp. |
20183 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
20184 | #define setpgrp innocuous_setpgrp |
20185 | |
20186 | /* System header to define __stub macros and hopefully few prototypes, |
20187 | which can conflict with char setpgrp (); below. |
20188 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
20189 | <limits.h> exists even on freestanding compilers. */ |
20190 | |
20191 | #ifdef __STDC__ |
20192 | # include <limits.h> |
20193 | #else |
20194 | # include <assert.h> |
20195 | #endif |
20196 | |
20197 | #undef setpgrp |
20198 | |
dd184caf |
20199 | /* Override any GCC internal prototype to avoid an error. |
20200 | Use char because int might match the return type of a GCC |
20201 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
20202 | #ifdef __cplusplus |
20203 | extern "C" |
d9898ee8 |
20204 | #endif |
d9898ee8 |
20205 | char setpgrp (); |
20206 | /* The GNU C library defines this for functions which it implements |
20207 | to always fail with ENOSYS. Some functions are actually named |
20208 | something starting with __ and the normal name is an alias. */ |
dd184caf |
20209 | #if defined __stub_setpgrp || defined __stub___setpgrp |
d9898ee8 |
20210 | choke me |
d9898ee8 |
20211 | #endif |
20212 | |
20213 | int |
20214 | main () |
20215 | { |
dd184caf |
20216 | return setpgrp (); |
d9898ee8 |
20217 | ; |
20218 | return 0; |
20219 | } |
20220 | _ACEOF |
20221 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
20222 | if { (ac_try="$ac_link" |
20223 | case "(($ac_try" in |
20224 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20225 | *) ac_try_echo=$ac_try;; |
20226 | esac |
20227 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20228 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
20229 | ac_status=$? |
20230 | grep -v '^ *+' conftest.er1 >conftest.err |
20231 | rm -f conftest.er1 |
20232 | cat conftest.err >&5 |
20233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
20234 | (exit $ac_status); } && { |
20235 | test -z "$ac_c_werror_flag" || |
20236 | test ! -s conftest.err |
20237 | } && test -s conftest$ac_exeext && |
20238 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
20239 | ac_cv_func_setpgrp=yes |
20240 | else |
20241 | echo "$as_me: failed program was:" >&5 |
20242 | sed 's/^/| /' conftest.$ac_ext >&5 |
20243 | |
dd184caf |
20244 | ac_cv_func_setpgrp=no |
d9898ee8 |
20245 | fi |
dd184caf |
20246 | |
20247 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
20248 | conftest$ac_exeext conftest.$ac_ext |
20249 | fi |
dd184caf |
20250 | { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp" >&5 |
20251 | echo "${ECHO_T}$ac_cv_func_setpgrp" >&6; } |
d9898ee8 |
20252 | if test $ac_cv_func_setpgrp = yes; then |
20253 | |
dd184caf |
20254 | { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5 |
20255 | echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; } |
d9898ee8 |
20256 | if test "${ac_cv_func_setpgrp_void+set}" = set; then |
20257 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20258 | else |
20259 | if test "$cross_compiling" = yes; then |
20260 | { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5 |
20261 | echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;} |
20262 | { (exit 1); exit 1; }; } |
20263 | else |
20264 | cat >conftest.$ac_ext <<_ACEOF |
20265 | /* confdefs.h. */ |
20266 | _ACEOF |
20267 | cat confdefs.h >>conftest.$ac_ext |
20268 | cat >>conftest.$ac_ext <<_ACEOF |
20269 | /* end confdefs.h. */ |
dd184caf |
20270 | $ac_includes_default |
d9898ee8 |
20271 | int |
20272 | main () |
20273 | { |
20274 | /* If this system has a BSD-style setpgrp which takes arguments, |
20275 | setpgrp(1, 1) will fail with ESRCH and return -1, in that case |
20276 | exit successfully. */ |
dd184caf |
20277 | return setpgrp (1,1) != -1; |
d9898ee8 |
20278 | ; |
20279 | return 0; |
20280 | } |
20281 | _ACEOF |
20282 | rm -f conftest$ac_exeext |
dd184caf |
20283 | if { (ac_try="$ac_link" |
20284 | case "(($ac_try" in |
20285 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20286 | *) ac_try_echo=$ac_try;; |
20287 | esac |
20288 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20289 | (eval "$ac_link") 2>&5 |
d9898ee8 |
20290 | ac_status=$? |
20291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20292 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
dd184caf |
20293 | { (case "(($ac_try" in |
20294 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20295 | *) ac_try_echo=$ac_try;; |
20296 | esac |
20297 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20298 | (eval "$ac_try") 2>&5 |
d9898ee8 |
20299 | ac_status=$? |
20300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20301 | (exit $ac_status); }; }; then |
20302 | ac_cv_func_setpgrp_void=no |
20303 | else |
20304 | echo "$as_me: program exited with status $ac_status" >&5 |
20305 | echo "$as_me: failed program was:" >&5 |
20306 | sed 's/^/| /' conftest.$ac_ext >&5 |
20307 | |
20308 | ( exit $ac_status ) |
20309 | ac_cv_func_setpgrp_void=yes |
20310 | fi |
dd184caf |
20311 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
20312 | fi |
dd184caf |
20313 | |
20314 | |
d9898ee8 |
20315 | fi |
dd184caf |
20316 | { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5 |
20317 | echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; } |
d9898ee8 |
20318 | if test $ac_cv_func_setpgrp_void = yes; then |
20319 | |
20320 | cat >>confdefs.h <<\_ACEOF |
20321 | #define SETPGRP_VOID 1 |
20322 | _ACEOF |
20323 | |
20324 | fi |
20325 | |
20326 | |
20327 | |
20328 | fi |
20329 | |
20330 | |
dd184caf |
20331 | { echo "$as_me:$LINENO: checking for fcntl" >&5 |
20332 | echo $ECHO_N "checking for fcntl... $ECHO_C" >&6; } |
d9898ee8 |
20333 | if test "${liblock_cv_hasfcntl+set}" = set; then |
20334 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20335 | else |
20336 | liblock_cv_hasfcntl="no" |
20337 | cat >conftest.$ac_ext <<_ACEOF |
20338 | /* confdefs.h. */ |
20339 | _ACEOF |
20340 | cat confdefs.h >>conftest.$ac_ext |
20341 | cat >>conftest.$ac_ext <<_ACEOF |
20342 | /* end confdefs.h. */ |
20343 | |
20344 | #define LL_OFFSET_TYPE $LL_OFFSET_TYPE |
20345 | #include "${srcdir}/lockfcntl.c" |
20346 | |
20347 | int |
20348 | main () |
20349 | { |
20350 | |
20351 | int n; |
20352 | |
20353 | ; |
20354 | return 0; |
20355 | } |
20356 | _ACEOF |
20357 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
20358 | if { (ac_try="$ac_link" |
20359 | case "(($ac_try" in |
20360 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20361 | *) ac_try_echo=$ac_try;; |
20362 | esac |
20363 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20364 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
20365 | ac_status=$? |
20366 | grep -v '^ *+' conftest.er1 >conftest.err |
20367 | rm -f conftest.er1 |
20368 | cat conftest.err >&5 |
20369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
20370 | (exit $ac_status); } && { |
20371 | test -z "$ac_c_werror_flag" || |
20372 | test ! -s conftest.err |
20373 | } && test -s conftest$ac_exeext && |
20374 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
20375 | liblock_cv_hasfcntl="yes" |
20376 | else |
20377 | echo "$as_me: failed program was:" >&5 |
20378 | sed 's/^/| /' conftest.$ac_ext >&5 |
20379 | |
dd184caf |
20380 | |
d9898ee8 |
20381 | fi |
dd184caf |
20382 | |
20383 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
20384 | conftest$ac_exeext conftest.$ac_ext |
20385 | fi |
dd184caf |
20386 | { echo "$as_me:$LINENO: result: $liblock_cv_hasfcntl" >&5 |
20387 | echo "${ECHO_T}$liblock_cv_hasfcntl" >&6; } |
d9898ee8 |
20388 | if test "$liblock_cv_hasfcntl" = "yes" |
20389 | then |
20390 | |
20391 | cat >>confdefs.h <<_ACEOF |
20392 | #define HAS_FCNTL 1 |
20393 | _ACEOF |
20394 | |
20395 | fi |
20396 | |
dd184caf |
20397 | { echo "$as_me:$LINENO: checking for flock" >&5 |
20398 | echo $ECHO_N "checking for flock... $ECHO_C" >&6; } |
d9898ee8 |
20399 | if test "${liblock_cv_hasflock+set}" = set; then |
20400 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20401 | else |
20402 | liblock_cv_hasflock="no" |
20403 | cat >conftest.$ac_ext <<_ACEOF |
20404 | /* confdefs.h. */ |
20405 | _ACEOF |
20406 | cat confdefs.h >>conftest.$ac_ext |
20407 | cat >>conftest.$ac_ext <<_ACEOF |
20408 | /* end confdefs.h. */ |
20409 | |
20410 | #define LL_OFFSET_TYPE $LL_OFFSET_TYPE |
20411 | #include "${srcdir}/lockflock.c" |
20412 | |
20413 | int |
20414 | main () |
20415 | { |
20416 | |
20417 | int n; |
20418 | |
20419 | ; |
20420 | return 0; |
20421 | } |
20422 | _ACEOF |
20423 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
20424 | if { (ac_try="$ac_link" |
20425 | case "(($ac_try" in |
20426 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20427 | *) ac_try_echo=$ac_try;; |
20428 | esac |
20429 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20430 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
20431 | ac_status=$? |
20432 | grep -v '^ *+' conftest.er1 >conftest.err |
20433 | rm -f conftest.er1 |
20434 | cat conftest.err >&5 |
20435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
20436 | (exit $ac_status); } && { |
20437 | test -z "$ac_c_werror_flag" || |
20438 | test ! -s conftest.err |
20439 | } && test -s conftest$ac_exeext && |
20440 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
20441 | liblock_cv_hasflock="yes" |
20442 | else |
20443 | echo "$as_me: failed program was:" >&5 |
20444 | sed 's/^/| /' conftest.$ac_ext >&5 |
20445 | |
dd184caf |
20446 | |
d9898ee8 |
20447 | fi |
dd184caf |
20448 | |
20449 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
20450 | conftest$ac_exeext conftest.$ac_ext |
20451 | fi |
dd184caf |
20452 | { echo "$as_me:$LINENO: result: $liblock_cv_hasflock" >&5 |
20453 | echo "${ECHO_T}$liblock_cv_hasflock" >&6; } |
d9898ee8 |
20454 | if test "$liblock_cv_hasflock" = "yes" |
20455 | then |
20456 | |
20457 | cat >>confdefs.h <<_ACEOF |
20458 | #define HAS_FLOCK 1 |
20459 | _ACEOF |
20460 | |
20461 | fi |
20462 | |
dd184caf |
20463 | { echo "$as_me:$LINENO: checking for lockf" >&5 |
20464 | echo $ECHO_N "checking for lockf... $ECHO_C" >&6; } |
d9898ee8 |
20465 | if test "${liblock_cv_haslockf+set}" = set; then |
20466 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20467 | else |
20468 | liblock_cv_haslockf="no" |
20469 | cat >conftest.$ac_ext <<_ACEOF |
20470 | /* confdefs.h. */ |
20471 | _ACEOF |
20472 | cat confdefs.h >>conftest.$ac_ext |
20473 | cat >>conftest.$ac_ext <<_ACEOF |
20474 | /* end confdefs.h. */ |
20475 | |
20476 | #define LL_OFFSET_TYPE $LL_OFFSET_TYPE |
20477 | #include "${srcdir}/locklockf.c" |
20478 | |
20479 | int |
20480 | main () |
20481 | { |
20482 | |
20483 | int n; |
20484 | |
20485 | ; |
20486 | return 0; |
20487 | } |
20488 | _ACEOF |
20489 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
20490 | if { (ac_try="$ac_link" |
20491 | case "(($ac_try" in |
20492 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20493 | *) ac_try_echo=$ac_try;; |
20494 | esac |
20495 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20496 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
20497 | ac_status=$? |
20498 | grep -v '^ *+' conftest.er1 >conftest.err |
20499 | rm -f conftest.er1 |
20500 | cat conftest.err >&5 |
20501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
20502 | (exit $ac_status); } && { |
20503 | test -z "$ac_c_werror_flag" || |
20504 | test ! -s conftest.err |
20505 | } && test -s conftest$ac_exeext && |
20506 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
20507 | liblock_cv_haslockf="yes" |
20508 | else |
20509 | echo "$as_me: failed program was:" >&5 |
20510 | sed 's/^/| /' conftest.$ac_ext >&5 |
20511 | |
dd184caf |
20512 | |
d9898ee8 |
20513 | fi |
dd184caf |
20514 | |
20515 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
20516 | conftest$ac_exeext conftest.$ac_ext |
20517 | fi |
dd184caf |
20518 | { echo "$as_me:$LINENO: result: $liblock_cv_haslockf" >&5 |
20519 | echo "${ECHO_T}$liblock_cv_haslockf" >&6; } |
d9898ee8 |
20520 | if test "$liblock_cv_haslockf" = "yes" |
20521 | then |
20522 | |
20523 | cat >>confdefs.h <<_ACEOF |
20524 | #define HAS_LOCKF 1 |
20525 | _ACEOF |
20526 | |
20527 | fi |
20528 | |
dd184caf |
20529 | { echo "$as_me:$LINENO: checking for locking method" >&5 |
20530 | echo $ECHO_N "checking for locking method... $ECHO_C" >&6; } |
d9898ee8 |
20531 | |
dd184caf |
20532 | # Check whether --with-locking-method was given. |
d9898ee8 |
20533 | if test "${with_locking_method+set}" = set; then |
dd184caf |
20534 | withval=$with_locking_method; lockmethod="$withval" |
d9898ee8 |
20535 | else |
20536 | lockmethod="" |
dd184caf |
20537 | fi |
20538 | |
d9898ee8 |
20539 | |
20540 | case x$lockmethod in |
20541 | xfcntl) |
20542 | if test "$cross_compiling" = yes; then |
20543 | : |
20544 | |
20545 | else |
20546 | cat >conftest.$ac_ext <<_ACEOF |
20547 | /* confdefs.h. */ |
20548 | _ACEOF |
20549 | cat confdefs.h >>conftest.$ac_ext |
20550 | cat >>conftest.$ac_ext <<_ACEOF |
20551 | /* end confdefs.h. */ |
20552 | |
20553 | #define USE_FCNTL 1 |
20554 | #define LL_OFFSET_TYPE $LL_OFFSET_TYPE |
20555 | #include "${srcdir}/locktest.c" |
20556 | |
20557 | _ACEOF |
20558 | rm -f conftest$ac_exeext |
dd184caf |
20559 | if { (ac_try="$ac_link" |
20560 | case "(($ac_try" in |
20561 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20562 | *) ac_try_echo=$ac_try;; |
20563 | esac |
20564 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20565 | (eval "$ac_link") 2>&5 |
d9898ee8 |
20566 | ac_status=$? |
20567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20568 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
dd184caf |
20569 | { (case "(($ac_try" in |
20570 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20571 | *) ac_try_echo=$ac_try;; |
20572 | esac |
20573 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20574 | (eval "$ac_try") 2>&5 |
d9898ee8 |
20575 | ac_status=$? |
20576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20577 | (exit $ac_status); }; }; then |
20578 | : |
20579 | else |
20580 | echo "$as_me: program exited with status $ac_status" >&5 |
20581 | echo "$as_me: failed program was:" >&5 |
20582 | sed 's/^/| /' conftest.$ac_ext >&5 |
20583 | |
20584 | ( exit $ac_status ) |
20585 | { { echo "$as_me:$LINENO: error: fcntl test failed." >&5 |
20586 | echo "$as_me: error: fcntl test failed." >&2;} |
20587 | { (exit 1); exit 1; }; } |
20588 | fi |
dd184caf |
20589 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
20590 | fi |
dd184caf |
20591 | |
20592 | |
d9898ee8 |
20593 | ;; |
20594 | x) |
20595 | if test "$cross_compiling" = yes; then |
20596 | { { echo "$as_me:$LINENO: error: --with-locking-method option required" >&5 |
20597 | echo "$as_me: error: --with-locking-method option required" >&2;} |
20598 | { (exit 1); exit 1; }; } |
20599 | else |
20600 | cat >conftest.$ac_ext <<_ACEOF |
20601 | /* confdefs.h. */ |
20602 | _ACEOF |
20603 | cat confdefs.h >>conftest.$ac_ext |
20604 | cat >>conftest.$ac_ext <<_ACEOF |
20605 | /* end confdefs.h. */ |
20606 | |
20607 | #define USE_FCNTL 1 |
20608 | #define LL_OFFSET_TYPE $LL_OFFSET_TYPE |
20609 | #include "${srcdir}/locktest.c" |
20610 | |
20611 | _ACEOF |
20612 | rm -f conftest$ac_exeext |
dd184caf |
20613 | if { (ac_try="$ac_link" |
20614 | case "(($ac_try" in |
20615 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20616 | *) ac_try_echo=$ac_try;; |
20617 | esac |
20618 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20619 | (eval "$ac_link") 2>&5 |
d9898ee8 |
20620 | ac_status=$? |
20621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20622 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
dd184caf |
20623 | { (case "(($ac_try" in |
20624 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20625 | *) ac_try_echo=$ac_try;; |
20626 | esac |
20627 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20628 | (eval "$ac_try") 2>&5 |
d9898ee8 |
20629 | ac_status=$? |
20630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20631 | (exit $ac_status); }; }; then |
20632 | lockmethod=fcntl |
20633 | else |
20634 | echo "$as_me: program exited with status $ac_status" >&5 |
20635 | echo "$as_me: failed program was:" >&5 |
20636 | sed 's/^/| /' conftest.$ac_ext >&5 |
20637 | |
20638 | fi |
dd184caf |
20639 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
20640 | fi |
dd184caf |
20641 | |
20642 | |
d9898ee8 |
20643 | ;; |
20644 | esac |
20645 | |
20646 | case x$lockmethod in |
20647 | xlockf) |
20648 | if test "$cross_compiling" = yes; then |
20649 | : |
20650 | |
20651 | else |
20652 | cat >conftest.$ac_ext <<_ACEOF |
20653 | /* confdefs.h. */ |
20654 | _ACEOF |
20655 | cat confdefs.h >>conftest.$ac_ext |
20656 | cat >>conftest.$ac_ext <<_ACEOF |
20657 | /* end confdefs.h. */ |
20658 | |
20659 | #define USE_LOCKF 1 |
20660 | #define LL_OFFSET_TYPE $LL_OFFSET_TYPE |
20661 | #include "${srcdir}/locktest.c" |
20662 | |
20663 | _ACEOF |
20664 | rm -f conftest$ac_exeext |
dd184caf |
20665 | if { (ac_try="$ac_link" |
20666 | case "(($ac_try" in |
20667 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20668 | *) ac_try_echo=$ac_try;; |
20669 | esac |
20670 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20671 | (eval "$ac_link") 2>&5 |
d9898ee8 |
20672 | ac_status=$? |
20673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20674 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
dd184caf |
20675 | { (case "(($ac_try" in |
20676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20677 | *) ac_try_echo=$ac_try;; |
20678 | esac |
20679 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20680 | (eval "$ac_try") 2>&5 |
d9898ee8 |
20681 | ac_status=$? |
20682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20683 | (exit $ac_status); }; }; then |
20684 | : |
20685 | else |
20686 | echo "$as_me: program exited with status $ac_status" >&5 |
20687 | echo "$as_me: failed program was:" >&5 |
20688 | sed 's/^/| /' conftest.$ac_ext >&5 |
20689 | |
20690 | ( exit $ac_status ) |
20691 | { { echo "$as_me:$LINENO: error: lockf test failed." >&5 |
20692 | echo "$as_me: error: lockf test failed." >&2;} |
20693 | { (exit 1); exit 1; }; } |
20694 | fi |
dd184caf |
20695 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
20696 | fi |
dd184caf |
20697 | |
20698 | |
d9898ee8 |
20699 | ;; |
20700 | x) |
20701 | if test "$cross_compiling" = yes; then |
20702 | { { echo "$as_me:$LINENO: error: --with-locking-method option required" >&5 |
20703 | echo "$as_me: error: --with-locking-method option required" >&2;} |
20704 | { (exit 1); exit 1; }; } |
20705 | else |
20706 | cat >conftest.$ac_ext <<_ACEOF |
20707 | /* confdefs.h. */ |
20708 | _ACEOF |
20709 | cat confdefs.h >>conftest.$ac_ext |
20710 | cat >>conftest.$ac_ext <<_ACEOF |
20711 | /* end confdefs.h. */ |
20712 | |
20713 | #define USE_LOCKF 1 |
20714 | #define LL_OFFSET_TYPE $LL_OFFSET_TYPE |
20715 | #include "${srcdir}/locktest.c" |
20716 | |
20717 | _ACEOF |
20718 | rm -f conftest$ac_exeext |
dd184caf |
20719 | if { (ac_try="$ac_link" |
20720 | case "(($ac_try" in |
20721 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20722 | *) ac_try_echo=$ac_try;; |
20723 | esac |
20724 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20725 | (eval "$ac_link") 2>&5 |
d9898ee8 |
20726 | ac_status=$? |
20727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20728 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
dd184caf |
20729 | { (case "(($ac_try" in |
20730 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20731 | *) ac_try_echo=$ac_try;; |
20732 | esac |
20733 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20734 | (eval "$ac_try") 2>&5 |
d9898ee8 |
20735 | ac_status=$? |
20736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20737 | (exit $ac_status); }; }; then |
20738 | lockmethod=lockf |
20739 | else |
20740 | echo "$as_me: program exited with status $ac_status" >&5 |
20741 | echo "$as_me: failed program was:" >&5 |
20742 | sed 's/^/| /' conftest.$ac_ext >&5 |
20743 | |
20744 | fi |
dd184caf |
20745 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
20746 | fi |
dd184caf |
20747 | |
20748 | |
d9898ee8 |
20749 | ;; |
20750 | esac |
20751 | |
20752 | |
20753 | case x$lockmethod in |
20754 | xflock) |
20755 | if test "$cross_compiling" = yes; then |
20756 | : |
20757 | |
20758 | else |
20759 | cat >conftest.$ac_ext <<_ACEOF |
20760 | /* confdefs.h. */ |
20761 | _ACEOF |
20762 | cat confdefs.h >>conftest.$ac_ext |
20763 | cat >>conftest.$ac_ext <<_ACEOF |
20764 | /* end confdefs.h. */ |
20765 | |
20766 | #define USE_FLOCK 1 |
20767 | #define LL_OFFSET_TYPE $LL_OFFSET_TYPE |
20768 | #include "${srcdir}/locktest.c" |
20769 | |
20770 | _ACEOF |
20771 | rm -f conftest$ac_exeext |
dd184caf |
20772 | if { (ac_try="$ac_link" |
20773 | case "(($ac_try" in |
20774 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20775 | *) ac_try_echo=$ac_try;; |
20776 | esac |
20777 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20778 | (eval "$ac_link") 2>&5 |
d9898ee8 |
20779 | ac_status=$? |
20780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20781 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
dd184caf |
20782 | { (case "(($ac_try" in |
20783 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20784 | *) ac_try_echo=$ac_try;; |
20785 | esac |
20786 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20787 | (eval "$ac_try") 2>&5 |
d9898ee8 |
20788 | ac_status=$? |
20789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20790 | (exit $ac_status); }; }; then |
20791 | : |
20792 | else |
20793 | echo "$as_me: program exited with status $ac_status" >&5 |
20794 | echo "$as_me: failed program was:" >&5 |
20795 | sed 's/^/| /' conftest.$ac_ext >&5 |
20796 | |
20797 | ( exit $ac_status ) |
20798 | { { echo "$as_me:$LINENO: error: flock test failed." >&5 |
20799 | echo "$as_me: error: flock test failed." >&2;} |
20800 | { (exit 1); exit 1; }; } |
20801 | fi |
dd184caf |
20802 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
20803 | fi |
dd184caf |
20804 | |
20805 | |
d9898ee8 |
20806 | ;; |
20807 | x) |
20808 | if test "$cross_compiling" = yes; then |
20809 | { { echo "$as_me:$LINENO: error: --with-locking-method option required" >&5 |
20810 | echo "$as_me: error: --with-locking-method option required" >&2;} |
20811 | { (exit 1); exit 1; }; } |
20812 | else |
20813 | cat >conftest.$ac_ext <<_ACEOF |
20814 | /* confdefs.h. */ |
20815 | _ACEOF |
20816 | cat confdefs.h >>conftest.$ac_ext |
20817 | cat >>conftest.$ac_ext <<_ACEOF |
20818 | /* end confdefs.h. */ |
20819 | |
20820 | #define USE_FLOCK 1 |
20821 | #define LL_OFFSET_TYPE $LL_OFFSET_TYPE |
20822 | #include "${srcdir}/locktest.c" |
20823 | |
20824 | _ACEOF |
20825 | rm -f conftest$ac_exeext |
dd184caf |
20826 | if { (ac_try="$ac_link" |
20827 | case "(($ac_try" in |
20828 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20829 | *) ac_try_echo=$ac_try;; |
20830 | esac |
20831 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20832 | (eval "$ac_link") 2>&5 |
d9898ee8 |
20833 | ac_status=$? |
20834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20835 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
dd184caf |
20836 | { (case "(($ac_try" in |
20837 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20838 | *) ac_try_echo=$ac_try;; |
20839 | esac |
20840 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20841 | (eval "$ac_try") 2>&5 |
d9898ee8 |
20842 | ac_status=$? |
20843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20844 | (exit $ac_status); }; }; then |
20845 | lockmethod=flock |
20846 | else |
20847 | echo "$as_me: program exited with status $ac_status" >&5 |
20848 | echo "$as_me: failed program was:" >&5 |
20849 | sed 's/^/| /' conftest.$ac_ext >&5 |
20850 | |
20851 | fi |
dd184caf |
20852 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
20853 | fi |
dd184caf |
20854 | |
20855 | |
d9898ee8 |
20856 | ;; |
20857 | esac |
20858 | |
20859 | case x$lockmethod in |
20860 | xlockf) |
20861 | ;; |
20862 | xflock) |
20863 | ;; |
20864 | xfcntl) |
20865 | ;; |
20866 | *) |
20867 | { { echo "$as_me:$LINENO: error: must specify --with-locking-method option" >&5 |
20868 | echo "$as_me: error: must specify --with-locking-method option" >&2;} |
20869 | { (exit 1); exit 1; }; } |
20870 | ;; |
20871 | esac |
20872 | |
dd184caf |
20873 | { echo "$as_me:$LINENO: result: $lockmethod" >&5 |
20874 | echo "${ECHO_T}$lockmethod" >&6; } |
d9898ee8 |
20875 | |
dd184caf |
20876 | if test "$lockmethod" = "fcntl"; then |
d9898ee8 |
20877 | USE_FCNTL_TRUE= |
20878 | USE_FCNTL_FALSE='#' |
20879 | else |
20880 | USE_FCNTL_TRUE='#' |
20881 | USE_FCNTL_FALSE= |
20882 | fi |
20883 | |
dd184caf |
20884 | if test "$lockmethod" = "flock"; then |
d9898ee8 |
20885 | USE_FLOCK_TRUE= |
20886 | USE_FLOCK_FALSE='#' |
20887 | else |
20888 | USE_FLOCK_TRUE='#' |
20889 | USE_FLOCK_FALSE= |
20890 | fi |
20891 | |
dd184caf |
20892 | if test "$lockmethod" = "lockf"; then |
d9898ee8 |
20893 | USE_LOCKF_TRUE= |
20894 | USE_LOCKF_FALSE='#' |
20895 | else |
20896 | USE_LOCKF_TRUE='#' |
20897 | USE_LOCKF_FALSE= |
20898 | fi |
20899 | |
20900 | |
dd184caf |
20901 | if test -d ${srcdir}/../docbook; then |
d9898ee8 |
20902 | HAVE_SGML_TRUE= |
20903 | HAVE_SGML_FALSE='#' |
20904 | else |
20905 | HAVE_SGML_TRUE='#' |
20906 | HAVE_SGML_FALSE= |
20907 | fi |
20908 | |
20909 | |
20910 | |
20911 | cat >>confdefs.h <<_ACEOF |
20912 | #define liblock_config_h 1 |
20913 | _ACEOF |
20914 | |
20915 | |
dd184caf |
20916 | ac_config_files="$ac_config_files Makefile" |
20917 | |
d9898ee8 |
20918 | cat >confcache <<\_ACEOF |
20919 | # This file is a shell script that caches the results of configure |
20920 | # tests run on this system so they can be shared between configure |
20921 | # scripts and configure runs, see configure's option --config-cache. |
20922 | # It is not useful on other systems. If it contains results you don't |
20923 | # want to keep, you may remove or edit it. |
20924 | # |
20925 | # config.status only pays attention to the cache file if you give it |
20926 | # the --recheck option to rerun configure. |
20927 | # |
20928 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
20929 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
20930 | # following values. |
20931 | |
20932 | _ACEOF |
20933 | |
20934 | # The following way of writing the cache mishandles newlines in values, |
20935 | # but we know of no workaround that is simple, portable, and efficient. |
dd184caf |
20936 | # So, we kill variables containing newlines. |
d9898ee8 |
20937 | # Ultrix sh set writes to stderr and can't be redirected directly, |
20938 | # and sets the high bit in the cache file unless we assign to the vars. |
dd184caf |
20939 | ( |
20940 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
20941 | eval ac_val=\$$ac_var |
20942 | case $ac_val in #( |
20943 | *${as_nl}*) |
20944 | case $ac_var in #( |
20945 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
20946 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
20947 | esac |
20948 | case $ac_var in #( |
20949 | _ | IFS | as_nl) ;; #( |
20950 | *) $as_unset $ac_var ;; |
20951 | esac ;; |
20952 | esac |
20953 | done |
20954 | |
d9898ee8 |
20955 | (set) 2>&1 | |
dd184caf |
20956 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
20957 | *${as_nl}ac_space=\ *) |
d9898ee8 |
20958 | # `set' does not quote correctly, so add quotes (double-quote |
20959 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
20960 | sed -n \ |
20961 | "s/'/'\\\\''/g; |
20962 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
dd184caf |
20963 | ;; #( |
d9898ee8 |
20964 | *) |
20965 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
dd184caf |
20966 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
d9898ee8 |
20967 | ;; |
dd184caf |
20968 | esac | |
20969 | sort |
20970 | ) | |
d9898ee8 |
20971 | sed ' |
dd184caf |
20972 | /^ac_cv_env_/b end |
d9898ee8 |
20973 | t clear |
dd184caf |
20974 | :clear |
d9898ee8 |
20975 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
20976 | t end |
dd184caf |
20977 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
20978 | :end' >>confcache |
20979 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
20980 | if test -w "$cache_file"; then |
20981 | test "x$cache_file" != "x/dev/null" && |
20982 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
20983 | echo "$as_me: updating cache $cache_file" >&6;} |
d9898ee8 |
20984 | cat confcache >$cache_file |
20985 | else |
dd184caf |
20986 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
20987 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
d9898ee8 |
20988 | fi |
20989 | fi |
20990 | rm -f confcache |
20991 | |
20992 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
20993 | # Let make expand exec_prefix. |
20994 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
20995 | |
d9898ee8 |
20996 | DEFS=-DHAVE_CONFIG_H |
20997 | |
20998 | ac_libobjs= |
20999 | ac_ltlibobjs= |
21000 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
21001 | # 1. Remove the extension, and $U if already installed. |
dd184caf |
21002 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
21003 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
21004 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
21005 | # will be set to the directory where LIBOBJS objects are built. |
21006 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
21007 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
d9898ee8 |
21008 | done |
21009 | LIBOBJS=$ac_libobjs |
21010 | |
21011 | LTLIBOBJS=$ac_ltlibobjs |
21012 | |
21013 | |
21014 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
21015 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
21016 | Usually this means the macro was only invoked conditionally." >&5 |
21017 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
21018 | Usually this means the macro was only invoked conditionally." >&2;} |
21019 | { (exit 1); exit 1; }; } |
21020 | fi |
21021 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
21022 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
21023 | Usually this means the macro was only invoked conditionally." >&5 |
21024 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
21025 | Usually this means the macro was only invoked conditionally." >&2;} |
21026 | { (exit 1); exit 1; }; } |
21027 | fi |
21028 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
21029 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
21030 | Usually this means the macro was only invoked conditionally." >&5 |
21031 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
21032 | Usually this means the macro was only invoked conditionally." >&2;} |
21033 | { (exit 1); exit 1; }; } |
21034 | fi |
21035 | if test -z "${USE_FCNTL_TRUE}" && test -z "${USE_FCNTL_FALSE}"; then |
21036 | { { echo "$as_me:$LINENO: error: conditional \"USE_FCNTL\" was never defined. |
21037 | Usually this means the macro was only invoked conditionally." >&5 |
21038 | echo "$as_me: error: conditional \"USE_FCNTL\" was never defined. |
21039 | Usually this means the macro was only invoked conditionally." >&2;} |
21040 | { (exit 1); exit 1; }; } |
21041 | fi |
21042 | if test -z "${USE_FLOCK_TRUE}" && test -z "${USE_FLOCK_FALSE}"; then |
21043 | { { echo "$as_me:$LINENO: error: conditional \"USE_FLOCK\" was never defined. |
21044 | Usually this means the macro was only invoked conditionally." >&5 |
21045 | echo "$as_me: error: conditional \"USE_FLOCK\" was never defined. |
21046 | Usually this means the macro was only invoked conditionally." >&2;} |
21047 | { (exit 1); exit 1; }; } |
21048 | fi |
21049 | if test -z "${USE_LOCKF_TRUE}" && test -z "${USE_LOCKF_FALSE}"; then |
21050 | { { echo "$as_me:$LINENO: error: conditional \"USE_LOCKF\" was never defined. |
21051 | Usually this means the macro was only invoked conditionally." >&5 |
21052 | echo "$as_me: error: conditional \"USE_LOCKF\" was never defined. |
21053 | Usually this means the macro was only invoked conditionally." >&2;} |
21054 | { (exit 1); exit 1; }; } |
21055 | fi |
21056 | if test -z "${HAVE_SGML_TRUE}" && test -z "${HAVE_SGML_FALSE}"; then |
21057 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_SGML\" was never defined. |
21058 | Usually this means the macro was only invoked conditionally." >&5 |
21059 | echo "$as_me: error: conditional \"HAVE_SGML\" was never defined. |
21060 | Usually this means the macro was only invoked conditionally." >&2;} |
21061 | { (exit 1); exit 1; }; } |
21062 | fi |
21063 | |
21064 | : ${CONFIG_STATUS=./config.status} |
21065 | ac_clean_files_save=$ac_clean_files |
21066 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
21067 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
21068 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
21069 | cat >$CONFIG_STATUS <<_ACEOF |
21070 | #! $SHELL |
21071 | # Generated by $as_me. |
21072 | # Run this file to recreate the current configuration. |
21073 | # Compiler output produced by configure, useful for debugging |
21074 | # configure, is in config.log if it exists. |
21075 | |
21076 | debug=false |
21077 | ac_cs_recheck=false |
21078 | ac_cs_silent=false |
21079 | SHELL=\${CONFIG_SHELL-$SHELL} |
21080 | _ACEOF |
21081 | |
21082 | cat >>$CONFIG_STATUS <<\_ACEOF |
21083 | ## --------------------- ## |
21084 | ## M4sh Initialization. ## |
21085 | ## --------------------- ## |
21086 | |
dd184caf |
21087 | # Be more Bourne compatible |
21088 | DUALCASE=1; export DUALCASE # for MKS sh |
d9898ee8 |
21089 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
21090 | emulate sh |
21091 | NULLCMD=: |
21092 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
21093 | # is contrary to our usage. Disable this feature. |
21094 | alias -g '${1+"$@"}'='"$@"' |
dd184caf |
21095 | setopt NO_GLOB_SUBST |
21096 | else |
21097 | case `(set -o) 2>/dev/null` in |
21098 | *posix*) set -o posix ;; |
21099 | esac |
21100 | |
21101 | fi |
21102 | |
21103 | |
21104 | |
21105 | |
21106 | # PATH needs CR |
21107 | # Avoid depending upon Character Ranges. |
21108 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
21109 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
21110 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
21111 | as_cr_digits='0123456789' |
21112 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
21113 | |
21114 | # The user is always right. |
21115 | if test "${PATH_SEPARATOR+set}" != set; then |
21116 | echo "#! /bin/sh" >conf$$.sh |
21117 | echo "exit 0" >>conf$$.sh |
21118 | chmod +x conf$$.sh |
21119 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
21120 | PATH_SEPARATOR=';' |
21121 | else |
21122 | PATH_SEPARATOR=: |
21123 | fi |
21124 | rm -f conf$$.sh |
d9898ee8 |
21125 | fi |
d9898ee8 |
21126 | |
21127 | # Support unset when possible. |
21128 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
21129 | as_unset=unset |
21130 | else |
21131 | as_unset=false |
21132 | fi |
21133 | |
21134 | |
dd184caf |
21135 | # IFS |
21136 | # We need space, tab and new line, in precisely that order. Quoting is |
21137 | # there to prevent editors from complaining about space-tab. |
21138 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
21139 | # splitting by setting IFS to empty value.) |
21140 | as_nl=' |
21141 | ' |
21142 | IFS=" "" $as_nl" |
21143 | |
21144 | # Find who we are. Look in the path if we contain no directory separator. |
21145 | case $0 in |
21146 | *[\\/]* ) as_myself=$0 ;; |
21147 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
21148 | for as_dir in $PATH |
21149 | do |
21150 | IFS=$as_save_IFS |
21151 | test -z "$as_dir" && as_dir=. |
21152 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
21153 | done |
21154 | IFS=$as_save_IFS |
21155 | |
21156 | ;; |
21157 | esac |
21158 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
21159 | # in which case we are not to be found in the path. |
21160 | if test "x$as_myself" = x; then |
21161 | as_myself=$0 |
21162 | fi |
21163 | if test ! -f "$as_myself"; then |
21164 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
21165 | { (exit 1); exit 1; } |
21166 | fi |
21167 | |
d9898ee8 |
21168 | # Work around bugs in pre-3.0 UWIN ksh. |
dd184caf |
21169 | for as_var in ENV MAIL MAILPATH |
21170 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
21171 | done |
d9898ee8 |
21172 | PS1='$ ' |
21173 | PS2='> ' |
21174 | PS4='+ ' |
21175 | |
21176 | # NLS nuisances. |
21177 | for as_var in \ |
21178 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
21179 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
21180 | LC_TELEPHONE LC_TIME |
21181 | do |
21182 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
21183 | eval $as_var=C; export $as_var |
21184 | else |
dd184caf |
21185 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
d9898ee8 |
21186 | fi |
21187 | done |
21188 | |
21189 | # Required to use basename. |
dd184caf |
21190 | if expr a : '\(a\)' >/dev/null 2>&1 && |
21191 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
d9898ee8 |
21192 | as_expr=expr |
21193 | else |
21194 | as_expr=false |
21195 | fi |
21196 | |
dd184caf |
21197 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
d9898ee8 |
21198 | as_basename=basename |
21199 | else |
21200 | as_basename=false |
21201 | fi |
21202 | |
21203 | |
21204 | # Name of the executable. |
dd184caf |
21205 | as_me=`$as_basename -- "$0" || |
d9898ee8 |
21206 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
21207 | X"$0" : 'X\(//\)$' \| \ |
dd184caf |
21208 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
21209 | echo X/"$0" | |
dd184caf |
21210 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
21211 | s//\1/ |
21212 | q |
21213 | } |
21214 | /^X\/\(\/\/\)$/{ |
21215 | s//\1/ |
21216 | q |
21217 | } |
21218 | /^X\/\(\/\).*/{ |
21219 | s//\1/ |
21220 | q |
21221 | } |
21222 | s/.*/./; q'` |
d9898ee8 |
21223 | |
dd184caf |
21224 | # CDPATH. |
21225 | $as_unset CDPATH |
d9898ee8 |
21226 | |
21227 | |
d9898ee8 |
21228 | |
d9898ee8 |
21229 | as_lineno_1=$LINENO |
21230 | as_lineno_2=$LINENO |
d9898ee8 |
21231 | test "x$as_lineno_1" != "x$as_lineno_2" && |
dd184caf |
21232 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
d9898ee8 |
21233 | |
21234 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
21235 | # uniformly replaced by the line number. The first 'sed' inserts a |
dd184caf |
21236 | # line-number line after each line using $LINENO; the second 'sed' |
21237 | # does the real work. The second script uses 'N' to pair each |
21238 | # line-number line with the line containing $LINENO, and appends |
21239 | # trailing '-' during substitution so that $LINENO is not a special |
21240 | # case at line end. |
d9898ee8 |
21241 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
dd184caf |
21242 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
21243 | # E. McMahon (1931-1989) for sed's syntax. :-) |
21244 | sed -n ' |
21245 | p |
21246 | /[$]LINENO/= |
21247 | ' <$as_myself | |
d9898ee8 |
21248 | sed ' |
dd184caf |
21249 | s/[$]LINENO.*/&-/ |
21250 | t lineno |
21251 | b |
21252 | :lineno |
d9898ee8 |
21253 | N |
dd184caf |
21254 | :loop |
21255 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
d9898ee8 |
21256 | t loop |
dd184caf |
21257 | s/-\n.*// |
d9898ee8 |
21258 | ' >$as_me.lineno && |
dd184caf |
21259 | chmod +x "$as_me.lineno" || |
21260 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
d9898ee8 |
21261 | { (exit 1); exit 1; }; } |
21262 | |
21263 | # Don't try to exec as it changes $[0], causing all sort of problems |
21264 | # (the dirname of $[0] is not the place where we might find the |
dd184caf |
21265 | # original and so on. Autoconf is especially sensitive to this). |
21266 | . "./$as_me.lineno" |
d9898ee8 |
21267 | # Exit status is that of the last command. |
21268 | exit |
21269 | } |
21270 | |
21271 | |
dd184caf |
21272 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
21273 | as_dirname=dirname |
21274 | else |
21275 | as_dirname=false |
21276 | fi |
21277 | |
21278 | ECHO_C= ECHO_N= ECHO_T= |
21279 | case `echo -n x` in |
21280 | -n*) |
21281 | case `echo 'x\c'` in |
21282 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
21283 | *) ECHO_C='\c';; |
21284 | esac;; |
21285 | *) |
21286 | ECHO_N='-n';; |
d9898ee8 |
21287 | esac |
21288 | |
dd184caf |
21289 | if expr a : '\(a\)' >/dev/null 2>&1 && |
21290 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
d9898ee8 |
21291 | as_expr=expr |
21292 | else |
21293 | as_expr=false |
21294 | fi |
21295 | |
21296 | rm -f conf$$ conf$$.exe conf$$.file |
dd184caf |
21297 | if test -d conf$$.dir; then |
21298 | rm -f conf$$.dir/conf$$.file |
21299 | else |
21300 | rm -f conf$$.dir |
21301 | mkdir conf$$.dir |
21302 | fi |
d9898ee8 |
21303 | echo >conf$$.file |
21304 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
dd184caf |
21305 | as_ln_s='ln -s' |
21306 | # ... but there are two gotchas: |
21307 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
21308 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
21309 | # In both cases, we have to default to `cp -p'. |
21310 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
d9898ee8 |
21311 | as_ln_s='cp -p' |
d9898ee8 |
21312 | elif ln conf$$.file conf$$ 2>/dev/null; then |
21313 | as_ln_s=ln |
21314 | else |
21315 | as_ln_s='cp -p' |
21316 | fi |
dd184caf |
21317 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
21318 | rmdir conf$$.dir 2>/dev/null |
d9898ee8 |
21319 | |
21320 | if mkdir -p . 2>/dev/null; then |
21321 | as_mkdir_p=: |
21322 | else |
21323 | test -d ./-p && rmdir ./-p |
21324 | as_mkdir_p=false |
21325 | fi |
21326 | |
dd184caf |
21327 | if test -x / >/dev/null 2>&1; then |
21328 | as_test_x='test -x' |
21329 | else |
21330 | if ls -dL / >/dev/null 2>&1; then |
21331 | as_ls_L_option=L |
21332 | else |
21333 | as_ls_L_option= |
21334 | fi |
21335 | as_test_x=' |
21336 | eval sh -c '\'' |
21337 | if test -d "$1"; then |
21338 | test -d "$1/."; |
21339 | else |
21340 | case $1 in |
21341 | -*)set "./$1";; |
21342 | esac; |
21343 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
21344 | ???[sx]*):;;*)false;;esac;fi |
21345 | '\'' sh |
21346 | ' |
21347 | fi |
21348 | as_executable_p=$as_test_x |
d9898ee8 |
21349 | |
21350 | # Sed expression to map a string onto a valid CPP name. |
21351 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
21352 | |
21353 | # Sed expression to map a string onto a valid variable name. |
21354 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
21355 | |
21356 | |
d9898ee8 |
21357 | exec 6>&1 |
21358 | |
dd184caf |
21359 | # Save the log message, to keep $[0] and so on meaningful, and to |
d9898ee8 |
21360 | # report actual input values of CONFIG_FILES etc. instead of their |
dd184caf |
21361 | # values after options handling. |
21362 | ac_log=" |
d9898ee8 |
21363 | This file was extended by liblock $as_me 0.60, which was |
dd184caf |
21364 | generated by GNU Autoconf 2.61. Invocation command line was |
d9898ee8 |
21365 | |
21366 | CONFIG_FILES = $CONFIG_FILES |
21367 | CONFIG_HEADERS = $CONFIG_HEADERS |
21368 | CONFIG_LINKS = $CONFIG_LINKS |
21369 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
21370 | $ $0 $@ |
21371 | |
dd184caf |
21372 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
21373 | " |
21374 | |
d9898ee8 |
21375 | _ACEOF |
21376 | |
dd184caf |
21377 | cat >>$CONFIG_STATUS <<_ACEOF |
d9898ee8 |
21378 | # Files that config.status was made for. |
dd184caf |
21379 | config_files="$ac_config_files" |
21380 | config_headers="$ac_config_headers" |
21381 | config_commands="$ac_config_commands" |
d9898ee8 |
21382 | |
dd184caf |
21383 | _ACEOF |
d9898ee8 |
21384 | |
21385 | cat >>$CONFIG_STATUS <<\_ACEOF |
d9898ee8 |
21386 | ac_cs_usage="\ |
21387 | \`$as_me' instantiates files from templates according to the |
21388 | current configuration. |
21389 | |
21390 | Usage: $0 [OPTIONS] [FILE]... |
21391 | |
21392 | -h, --help print this help, then exit |
dd184caf |
21393 | -V, --version print version number and configuration settings, then exit |
d9898ee8 |
21394 | -q, --quiet do not print progress messages |
21395 | -d, --debug don't remove temporary files |
21396 | --recheck update $as_me by reconfiguring in the same conditions |
21397 | --file=FILE[:TEMPLATE] |
21398 | instantiate the configuration file FILE |
21399 | --header=FILE[:TEMPLATE] |
21400 | instantiate the configuration header FILE |
21401 | |
21402 | Configuration files: |
21403 | $config_files |
21404 | |
21405 | Configuration headers: |
21406 | $config_headers |
21407 | |
21408 | Configuration commands: |
21409 | $config_commands |
21410 | |
21411 | Report bugs to <bug-autoconf@gnu.org>." |
d9898ee8 |
21412 | |
dd184caf |
21413 | _ACEOF |
d9898ee8 |
21414 | cat >>$CONFIG_STATUS <<_ACEOF |
21415 | ac_cs_version="\\ |
21416 | liblock config.status 0.60 |
dd184caf |
21417 | configured by $0, generated by GNU Autoconf 2.61, |
21418 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
d9898ee8 |
21419 | |
dd184caf |
21420 | Copyright (C) 2006 Free Software Foundation, Inc. |
d9898ee8 |
21421 | This config.status script is free software; the Free Software Foundation |
21422 | gives unlimited permission to copy, distribute and modify it." |
dd184caf |
21423 | |
21424 | ac_pwd='$ac_pwd' |
21425 | srcdir='$srcdir' |
21426 | INSTALL='$INSTALL' |
21427 | MKDIR_P='$MKDIR_P' |
d9898ee8 |
21428 | _ACEOF |
21429 | |
21430 | cat >>$CONFIG_STATUS <<\_ACEOF |
21431 | # If no file are specified by the user, then we need to provide default |
21432 | # value. By we need to know if files were specified by the user. |
21433 | ac_need_defaults=: |
21434 | while test $# != 0 |
21435 | do |
21436 | case $1 in |
21437 | --*=*) |
dd184caf |
21438 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
21439 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
d9898ee8 |
21440 | ac_shift=: |
21441 | ;; |
dd184caf |
21442 | *) |
d9898ee8 |
21443 | ac_option=$1 |
21444 | ac_optarg=$2 |
21445 | ac_shift=shift |
21446 | ;; |
d9898ee8 |
21447 | esac |
21448 | |
21449 | case $ac_option in |
21450 | # Handling of the options. |
d9898ee8 |
21451 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
21452 | ac_cs_recheck=: ;; |
dd184caf |
21453 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
21454 | echo "$ac_cs_version"; exit ;; |
21455 | --debug | --debu | --deb | --de | --d | -d ) |
d9898ee8 |
21456 | debug=: ;; |
21457 | --file | --fil | --fi | --f ) |
21458 | $ac_shift |
21459 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
21460 | ac_need_defaults=false;; |
21461 | --header | --heade | --head | --hea ) |
21462 | $ac_shift |
21463 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
21464 | ac_need_defaults=false;; |
dd184caf |
21465 | --he | --h) |
21466 | # Conflict between --help and --header |
21467 | { echo "$as_me: error: ambiguous option: $1 |
21468 | Try \`$0 --help' for more information." >&2 |
21469 | { (exit 1); exit 1; }; };; |
21470 | --help | --hel | -h ) |
21471 | echo "$ac_cs_usage"; exit ;; |
d9898ee8 |
21472 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
21473 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
21474 | ac_cs_silent=: ;; |
21475 | |
21476 | # This is an error. |
dd184caf |
21477 | -*) { echo "$as_me: error: unrecognized option: $1 |
21478 | Try \`$0 --help' for more information." >&2 |
d9898ee8 |
21479 | { (exit 1); exit 1; }; } ;; |
21480 | |
dd184caf |
21481 | *) ac_config_targets="$ac_config_targets $1" |
21482 | ac_need_defaults=false ;; |
d9898ee8 |
21483 | |
21484 | esac |
21485 | shift |
21486 | done |
21487 | |
21488 | ac_configure_extra_args= |
21489 | |
21490 | if $ac_cs_silent; then |
21491 | exec 6>/dev/null |
21492 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
21493 | fi |
21494 | |
21495 | _ACEOF |
21496 | cat >>$CONFIG_STATUS <<_ACEOF |
21497 | if \$ac_cs_recheck; then |
dd184caf |
21498 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
21499 | CONFIG_SHELL=$SHELL |
21500 | export CONFIG_SHELL |
21501 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
d9898ee8 |
21502 | fi |
21503 | |
21504 | _ACEOF |
dd184caf |
21505 | cat >>$CONFIG_STATUS <<\_ACEOF |
21506 | exec 5>>config.log |
21507 | { |
21508 | echo |
21509 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
21510 | ## Running $as_me. ## |
21511 | _ASBOX |
21512 | echo "$ac_log" |
21513 | } >&5 |
d9898ee8 |
21514 | |
dd184caf |
21515 | _ACEOF |
d9898ee8 |
21516 | cat >>$CONFIG_STATUS <<_ACEOF |
21517 | # |
dd184caf |
21518 | # INIT-COMMANDS |
d9898ee8 |
21519 | # |
d9898ee8 |
21520 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
21521 | |
21522 | _ACEOF |
21523 | |
d9898ee8 |
21524 | cat >>$CONFIG_STATUS <<\_ACEOF |
dd184caf |
21525 | |
21526 | # Handling of arguments. |
d9898ee8 |
21527 | for ac_config_target in $ac_config_targets |
21528 | do |
dd184caf |
21529 | case $ac_config_target in |
21530 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
21531 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
21532 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
21533 | |
d9898ee8 |
21534 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
21535 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
21536 | { (exit 1); exit 1; }; };; |
21537 | esac |
21538 | done |
21539 | |
dd184caf |
21540 | |
d9898ee8 |
21541 | # If the user did not use the arguments to specify the items to instantiate, |
21542 | # then the envvar interface is used. Set only those that are not. |
21543 | # We use the long form for the default assignment because of an extremely |
21544 | # bizarre bug on SunOS 4.1.3. |
21545 | if $ac_need_defaults; then |
21546 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
21547 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
21548 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
21549 | fi |
21550 | |
21551 | # Have a temporary directory for convenience. Make it in the build tree |
dd184caf |
21552 | # simply because there is no reason against having it here, and in addition, |
d9898ee8 |
21553 | # creating and moving files from /tmp can sometimes cause problems. |
dd184caf |
21554 | # Hook for its removal unless debugging. |
21555 | # Note that there is a small window in which the directory will not be cleaned: |
21556 | # after its creation but before its name has been assigned to `$tmp'. |
d9898ee8 |
21557 | $debug || |
21558 | { |
dd184caf |
21559 | tmp= |
21560 | trap 'exit_status=$? |
21561 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
21562 | ' 0 |
d9898ee8 |
21563 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
21564 | } |
d9898ee8 |
21565 | # Create a (secure) tmp directory for tmp files. |
21566 | |
21567 | { |
dd184caf |
21568 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
d9898ee8 |
21569 | test -n "$tmp" && test -d "$tmp" |
21570 | } || |
21571 | { |
dd184caf |
21572 | tmp=./conf$$-$RANDOM |
21573 | (umask 077 && mkdir "$tmp") |
d9898ee8 |
21574 | } || |
21575 | { |
21576 | echo "$me: cannot create a temporary directory in ." >&2 |
21577 | { (exit 1); exit 1; } |
21578 | } |
21579 | |
d9898ee8 |
21580 | # |
dd184caf |
21581 | # Set up the sed scripts for CONFIG_FILES section. |
d9898ee8 |
21582 | # |
21583 | |
21584 | # No need to generate the scripts if there are no CONFIG_FILES. |
21585 | # This happens for instance when ./config.status config.h |
dd184caf |
21586 | if test -n "$CONFIG_FILES"; then |
d9898ee8 |
21587 | |
21588 | _ACEOF |
21589 | |
dd184caf |
21590 | |
21591 | |
21592 | ac_delim='%!_!# ' |
21593 | for ac_last_try in false false false false false :; do |
21594 | cat >conf$$subs.sed <<_ACEOF |
21595 | SHELL!$SHELL$ac_delim |
21596 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
21597 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
21598 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
21599 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
21600 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
21601 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
21602 | exec_prefix!$exec_prefix$ac_delim |
21603 | prefix!$prefix$ac_delim |
21604 | program_transform_name!$program_transform_name$ac_delim |
21605 | bindir!$bindir$ac_delim |
21606 | sbindir!$sbindir$ac_delim |
21607 | libexecdir!$libexecdir$ac_delim |
21608 | datarootdir!$datarootdir$ac_delim |
21609 | datadir!$datadir$ac_delim |
21610 | sysconfdir!$sysconfdir$ac_delim |
21611 | sharedstatedir!$sharedstatedir$ac_delim |
21612 | localstatedir!$localstatedir$ac_delim |
21613 | includedir!$includedir$ac_delim |
21614 | oldincludedir!$oldincludedir$ac_delim |
21615 | docdir!$docdir$ac_delim |
21616 | infodir!$infodir$ac_delim |
21617 | htmldir!$htmldir$ac_delim |
21618 | dvidir!$dvidir$ac_delim |
21619 | pdfdir!$pdfdir$ac_delim |
21620 | psdir!$psdir$ac_delim |
21621 | libdir!$libdir$ac_delim |
21622 | localedir!$localedir$ac_delim |
21623 | mandir!$mandir$ac_delim |
21624 | DEFS!$DEFS$ac_delim |
21625 | ECHO_C!$ECHO_C$ac_delim |
21626 | ECHO_N!$ECHO_N$ac_delim |
21627 | ECHO_T!$ECHO_T$ac_delim |
21628 | LIBS!$LIBS$ac_delim |
21629 | build_alias!$build_alias$ac_delim |
21630 | host_alias!$host_alias$ac_delim |
21631 | target_alias!$target_alias$ac_delim |
21632 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
21633 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
21634 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
21635 | am__isrc!$am__isrc$ac_delim |
21636 | CYGPATH_W!$CYGPATH_W$ac_delim |
21637 | PACKAGE!$PACKAGE$ac_delim |
21638 | VERSION!$VERSION$ac_delim |
21639 | ACLOCAL!$ACLOCAL$ac_delim |
21640 | AUTOCONF!$AUTOCONF$ac_delim |
21641 | AUTOMAKE!$AUTOMAKE$ac_delim |
21642 | AUTOHEADER!$AUTOHEADER$ac_delim |
21643 | MAKEINFO!$MAKEINFO$ac_delim |
21644 | install_sh!$install_sh$ac_delim |
21645 | STRIP!$STRIP$ac_delim |
21646 | INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim |
21647 | mkdir_p!$mkdir_p$ac_delim |
21648 | AWK!$AWK$ac_delim |
21649 | SET_MAKE!$SET_MAKE$ac_delim |
21650 | am__leading_dot!$am__leading_dot$ac_delim |
21651 | AMTAR!$AMTAR$ac_delim |
21652 | am__tar!$am__tar$ac_delim |
21653 | am__untar!$am__untar$ac_delim |
21654 | CC!$CC$ac_delim |
21655 | CFLAGS!$CFLAGS$ac_delim |
21656 | LDFLAGS!$LDFLAGS$ac_delim |
21657 | CPPFLAGS!$CPPFLAGS$ac_delim |
21658 | ac_ct_CC!$ac_ct_CC$ac_delim |
21659 | EXEEXT!$EXEEXT$ac_delim |
21660 | OBJEXT!$OBJEXT$ac_delim |
21661 | DEPDIR!$DEPDIR$ac_delim |
21662 | am__include!$am__include$ac_delim |
21663 | am__quote!$am__quote$ac_delim |
21664 | AMDEP_TRUE!$AMDEP_TRUE$ac_delim |
21665 | AMDEP_FALSE!$AMDEP_FALSE$ac_delim |
21666 | AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim |
21667 | CCDEPMODE!$CCDEPMODE$ac_delim |
21668 | am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim |
21669 | am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim |
21670 | LN_S!$LN_S$ac_delim |
21671 | build!$build$ac_delim |
21672 | build_cpu!$build_cpu$ac_delim |
21673 | build_vendor!$build_vendor$ac_delim |
21674 | build_os!$build_os$ac_delim |
21675 | host!$host$ac_delim |
21676 | host_cpu!$host_cpu$ac_delim |
21677 | host_vendor!$host_vendor$ac_delim |
21678 | host_os!$host_os$ac_delim |
dd184caf |
21679 | GREP!$GREP$ac_delim |
21680 | EGREP!$EGREP$ac_delim |
21681 | ECHO!$ECHO$ac_delim |
21682 | AR!$AR$ac_delim |
21683 | RANLIB!$RANLIB$ac_delim |
21684 | CPP!$CPP$ac_delim |
21685 | CXX!$CXX$ac_delim |
21686 | CXXFLAGS!$CXXFLAGS$ac_delim |
21687 | ac_ct_CXX!$ac_ct_CXX$ac_delim |
21688 | CXXDEPMODE!$CXXDEPMODE$ac_delim |
21689 | am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim |
21690 | am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim |
1dce02f2 |
21691 | CXXCPP!$CXXCPP$ac_delim |
dd184caf |
21692 | _ACEOF |
21693 | |
21694 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
21695 | break |
21696 | elif $ac_last_try; then |
21697 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
21698 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
21699 | { (exit 1); exit 1; }; } |
21700 | else |
21701 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
d9898ee8 |
21702 | fi |
dd184caf |
21703 | done |
21704 | |
21705 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
21706 | if test -n "$ac_eof"; then |
21707 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
21708 | ac_eof=`expr $ac_eof + 1` |
21709 | fi |
21710 | |
21711 | cat >>$CONFIG_STATUS <<_ACEOF |
21712 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
21713 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
21714 | _ACEOF |
21715 | sed ' |
21716 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
21717 | s/^/s,@/; s/!/@,|#_!!_#|/ |
21718 | :n |
21719 | t n |
21720 | s/'"$ac_delim"'$/,g/; t |
21721 | s/$/\\/; p |
21722 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
21723 | ' >>$CONFIG_STATUS <conf$$subs.sed |
21724 | rm -f conf$$subs.sed |
21725 | cat >>$CONFIG_STATUS <<_ACEOF |
21726 | CEOF$ac_eof |
21727 | _ACEOF |
21728 | |
21729 | |
21730 | ac_delim='%!_!# ' |
21731 | for ac_last_try in false false false false false :; do |
21732 | cat >conf$$subs.sed <<_ACEOF |
dd184caf |
21733 | F77!$F77$ac_delim |
21734 | FFLAGS!$FFLAGS$ac_delim |
21735 | ac_ct_F77!$ac_ct_F77$ac_delim |
21736 | LIBTOOL!$LIBTOOL$ac_delim |
21737 | USE_FCNTL_TRUE!$USE_FCNTL_TRUE$ac_delim |
21738 | USE_FCNTL_FALSE!$USE_FCNTL_FALSE$ac_delim |
21739 | USE_FLOCK_TRUE!$USE_FLOCK_TRUE$ac_delim |
21740 | USE_FLOCK_FALSE!$USE_FLOCK_FALSE$ac_delim |
21741 | USE_LOCKF_TRUE!$USE_LOCKF_TRUE$ac_delim |
21742 | USE_LOCKF_FALSE!$USE_LOCKF_FALSE$ac_delim |
21743 | HAVE_SGML_TRUE!$HAVE_SGML_TRUE$ac_delim |
21744 | HAVE_SGML_FALSE!$HAVE_SGML_FALSE$ac_delim |
21745 | LIBOBJS!$LIBOBJS$ac_delim |
21746 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
21747 | _ACEOF |
21748 | |
1dce02f2 |
21749 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 14; then |
dd184caf |
21750 | break |
21751 | elif $ac_last_try; then |
21752 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
21753 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
21754 | { (exit 1); exit 1; }; } |
21755 | else |
21756 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
21757 | fi |
21758 | done |
21759 | |
21760 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
21761 | if test -n "$ac_eof"; then |
21762 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
21763 | ac_eof=`expr $ac_eof + 1` |
21764 | fi |
d9898ee8 |
21765 | |
dd184caf |
21766 | cat >>$CONFIG_STATUS <<_ACEOF |
21767 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
21768 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
21769 | _ACEOF |
21770 | sed ' |
21771 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
21772 | s/^/s,@/; s/!/@,|#_!!_#|/ |
21773 | :n |
21774 | t n |
21775 | s/'"$ac_delim"'$/,g/; t |
21776 | s/$/\\/; p |
21777 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
21778 | ' >>$CONFIG_STATUS <conf$$subs.sed |
21779 | rm -f conf$$subs.sed |
21780 | cat >>$CONFIG_STATUS <<_ACEOF |
21781 | :end |
21782 | s/|#_!!_#|//g |
21783 | CEOF$ac_eof |
d9898ee8 |
21784 | _ACEOF |
dd184caf |
21785 | |
21786 | |
21787 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
21788 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
21789 | # trailing colons and then remove the whole line if VPATH becomes empty |
21790 | # (actually we leave an empty line to preserve line numbers). |
21791 | if test "x$srcdir" = x.; then |
21792 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
21793 | s/:*\$(srcdir):*/:/ |
21794 | s/:*\${srcdir}:*/:/ |
21795 | s/:*@srcdir@:*/:/ |
21796 | s/^\([^=]*=[ ]*\):*/\1/ |
21797 | s/:*$// |
21798 | s/^[^=]*=[ ]*$// |
21799 | }' |
21800 | fi |
21801 | |
d9898ee8 |
21802 | cat >>$CONFIG_STATUS <<\_ACEOF |
dd184caf |
21803 | fi # test -n "$CONFIG_FILES" |
21804 | |
21805 | |
21806 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS |
21807 | do |
21808 | case $ac_tag in |
21809 | :[FHLC]) ac_mode=$ac_tag; continue;; |
21810 | esac |
21811 | case $ac_mode$ac_tag in |
21812 | :[FHL]*:*);; |
21813 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
21814 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
21815 | { (exit 1); exit 1; }; };; |
21816 | :[FH]-) ac_tag=-:-;; |
21817 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
21818 | esac |
21819 | ac_save_IFS=$IFS |
21820 | IFS=: |
21821 | set x $ac_tag |
21822 | IFS=$ac_save_IFS |
21823 | shift |
21824 | ac_file=$1 |
21825 | shift |
21826 | |
21827 | case $ac_mode in |
21828 | :L) ac_source=$1;; |
21829 | :[FH]) |
21830 | ac_file_inputs= |
21831 | for ac_f |
21832 | do |
21833 | case $ac_f in |
21834 | -) ac_f="$tmp/stdin";; |
21835 | *) # Look for the file first in the build tree, then in the source tree |
21836 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
21837 | # because $ac_f cannot contain `:'. |
21838 | test -f "$ac_f" || |
21839 | case $ac_f in |
21840 | [\\/$]*) false;; |
21841 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
21842 | esac || |
21843 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
21844 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
21845 | { (exit 1); exit 1; }; };; |
21846 | esac |
21847 | ac_file_inputs="$ac_file_inputs $ac_f" |
21848 | done |
21849 | |
21850 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
21851 | # use $as_me), people would be surprised to read: |
21852 | # /* config.h. Generated by config.status. */ |
21853 | configure_input="Generated from "`IFS=: |
21854 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
21855 | if test x"$ac_file" != x-; then |
21856 | configure_input="$ac_file. $configure_input" |
21857 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
21858 | echo "$as_me: creating $ac_file" >&6;} |
21859 | fi |
21860 | |
21861 | case $ac_tag in |
21862 | *:-:* | *:-) cat >"$tmp/stdin";; |
21863 | esac |
21864 | ;; |
d9898ee8 |
21865 | esac |
21866 | |
dd184caf |
21867 | ac_dir=`$as_dirname -- "$ac_file" || |
d9898ee8 |
21868 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
21869 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
21870 | X"$ac_file" : 'X\(//\)$' \| \ |
dd184caf |
21871 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
21872 | echo X"$ac_file" | |
dd184caf |
21873 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
21874 | s//\1/ |
21875 | q |
21876 | } |
21877 | /^X\(\/\/\)[^/].*/{ |
21878 | s//\1/ |
21879 | q |
21880 | } |
21881 | /^X\(\/\/\)$/{ |
21882 | s//\1/ |
21883 | q |
21884 | } |
21885 | /^X\(\/\).*/{ |
21886 | s//\1/ |
21887 | q |
21888 | } |
21889 | s/.*/./; q'` |
21890 | { as_dir="$ac_dir" |
21891 | case $as_dir in #( |
21892 | -*) as_dir=./$as_dir;; |
21893 | esac |
21894 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
d9898ee8 |
21895 | as_dirs= |
dd184caf |
21896 | while :; do |
21897 | case $as_dir in #( |
21898 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
21899 | *) as_qdir=$as_dir;; |
21900 | esac |
21901 | as_dirs="'$as_qdir' $as_dirs" |
21902 | as_dir=`$as_dirname -- "$as_dir" || |
d9898ee8 |
21903 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
21904 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
21905 | X"$as_dir" : 'X\(//\)$' \| \ |
dd184caf |
21906 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
21907 | echo X"$as_dir" | |
dd184caf |
21908 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
21909 | s//\1/ |
21910 | q |
21911 | } |
21912 | /^X\(\/\/\)[^/].*/{ |
21913 | s//\1/ |
21914 | q |
21915 | } |
21916 | /^X\(\/\/\)$/{ |
21917 | s//\1/ |
21918 | q |
21919 | } |
21920 | /^X\(\/\).*/{ |
21921 | s//\1/ |
21922 | q |
21923 | } |
21924 | s/.*/./; q'` |
21925 | test -d "$as_dir" && break |
d9898ee8 |
21926 | done |
dd184caf |
21927 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
21928 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
21929 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
d9898ee8 |
21930 | { (exit 1); exit 1; }; }; } |
d9898ee8 |
21931 | ac_builddir=. |
21932 | |
dd184caf |
21933 | case "$ac_dir" in |
21934 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
21935 | *) |
d9898ee8 |
21936 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
dd184caf |
21937 | # A ".." for each directory in $ac_dir_suffix. |
21938 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
21939 | case $ac_top_builddir_sub in |
21940 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
21941 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
21942 | esac ;; |
21943 | esac |
21944 | ac_abs_top_builddir=$ac_pwd |
21945 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
21946 | # for backward compatibility: |
21947 | ac_top_builddir=$ac_top_build_prefix |
d9898ee8 |
21948 | |
21949 | case $srcdir in |
dd184caf |
21950 | .) # We are building in place. |
d9898ee8 |
21951 | ac_srcdir=. |
dd184caf |
21952 | ac_top_srcdir=$ac_top_builddir_sub |
21953 | ac_abs_top_srcdir=$ac_pwd ;; |
21954 | [\\/]* | ?:[\\/]* ) # Absolute name. |
d9898ee8 |
21955 | ac_srcdir=$srcdir$ac_dir_suffix; |
dd184caf |
21956 | ac_top_srcdir=$srcdir |
21957 | ac_abs_top_srcdir=$srcdir ;; |
21958 | *) # Relative name. |
21959 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
21960 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
21961 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
d9898ee8 |
21962 | esac |
dd184caf |
21963 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
d9898ee8 |
21964 | |
d9898ee8 |
21965 | |
dd184caf |
21966 | case $ac_mode in |
21967 | :F) |
21968 | # |
21969 | # CONFIG_FILE |
21970 | # |
d9898ee8 |
21971 | |
21972 | case $INSTALL in |
21973 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
dd184caf |
21974 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
21975 | esac |
21976 | ac_MKDIR_P=$MKDIR_P |
21977 | case $MKDIR_P in |
21978 | [\\/$]* | ?:[\\/]* ) ;; |
21979 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
d9898ee8 |
21980 | esac |
dd184caf |
21981 | _ACEOF |
d9898ee8 |
21982 | |
dd184caf |
21983 | cat >>$CONFIG_STATUS <<\_ACEOF |
21984 | # If the template does not know about datarootdir, expand it. |
21985 | # FIXME: This hack should be removed a few years after 2.60. |
21986 | ac_datarootdir_hack=; ac_datarootdir_seen= |
21987 | |
21988 | case `sed -n '/datarootdir/ { |
21989 | p |
21990 | q |
21991 | } |
21992 | /@datadir@/p |
21993 | /@docdir@/p |
21994 | /@infodir@/p |
21995 | /@localedir@/p |
21996 | /@mandir@/p |
21997 | ' $ac_file_inputs` in |
21998 | *datarootdir*) ac_datarootdir_seen=yes;; |
21999 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
22000 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
22001 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
d9898ee8 |
22002 | _ACEOF |
dd184caf |
22003 | cat >>$CONFIG_STATUS <<_ACEOF |
22004 | ac_datarootdir_hack=' |
22005 | s&@datadir@&$datadir&g |
22006 | s&@docdir@&$docdir&g |
22007 | s&@infodir@&$infodir&g |
22008 | s&@localedir@&$localedir&g |
22009 | s&@mandir@&$mandir&g |
22010 | s&\\\${datarootdir}&$datarootdir&g' ;; |
22011 | esac |
22012 | _ACEOF |
22013 | |
22014 | # Neutralize VPATH when `$srcdir' = `.'. |
22015 | # Shell code in configure.ac might set extrasub. |
22016 | # FIXME: do we really want to maintain this feature? |
d9898ee8 |
22017 | cat >>$CONFIG_STATUS <<_ACEOF |
22018 | sed "$ac_vpsub |
22019 | $extrasub |
22020 | _ACEOF |
22021 | cat >>$CONFIG_STATUS <<\_ACEOF |
22022 | :t |
22023 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
dd184caf |
22024 | s&@configure_input@&$configure_input&;t t |
22025 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
22026 | s&@srcdir@&$ac_srcdir&;t t |
22027 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
22028 | s&@top_srcdir@&$ac_top_srcdir&;t t |
22029 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
22030 | s&@builddir@&$ac_builddir&;t t |
22031 | s&@abs_builddir@&$ac_abs_builddir&;t t |
22032 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
22033 | s&@INSTALL@&$ac_INSTALL&;t t |
22034 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
22035 | $ac_datarootdir_hack |
22036 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out |
22037 | |
22038 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
22039 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
22040 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
22041 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
22042 | which seems to be undefined. Please make sure it is defined." >&5 |
22043 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
22044 | which seems to be undefined. Please make sure it is defined." >&2;} |
22045 | |
22046 | rm -f "$tmp/stdin" |
d9898ee8 |
22047 | case $ac_file in |
dd184caf |
22048 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
22049 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
d9898ee8 |
22050 | esac |
dd184caf |
22051 | ;; |
22052 | :H) |
22053 | # |
22054 | # CONFIG_HEADER |
22055 | # |
d9898ee8 |
22056 | _ACEOF |
22057 | |
dd184caf |
22058 | # Transform confdefs.h into a sed script `conftest.defines', that |
22059 | # substitutes the proper values into config.h.in to produce config.h. |
22060 | rm -f conftest.defines conftest.tail |
22061 | # First, append a space to every undef/define line, to ease matching. |
22062 | echo 's/$/ /' >conftest.defines |
22063 | # Then, protect against being on the right side of a sed subst, or in |
22064 | # an unquoted here document, in config.status. If some macros were |
22065 | # called several times there might be several #defines for the same |
22066 | # symbol, which is useless. But do not sort them, since the last |
22067 | # AC_DEFINE must be honored. |
22068 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
22069 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
22070 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
22071 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
22072 | # just an empty string. |
22073 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
22074 | ac_dB='\\)[ (].*,\\1define\\2' |
22075 | ac_dC=' ' |
22076 | ac_dD=' ,' |
22077 | |
22078 | uniq confdefs.h | |
22079 | sed -n ' |
22080 | t rset |
22081 | :rset |
22082 | s/^[ ]*#[ ]*define[ ][ ]*// |
22083 | t ok |
22084 | d |
22085 | :ok |
22086 | s/[\\&,]/\\&/g |
22087 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
22088 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
22089 | ' >>conftest.defines |
22090 | |
22091 | # Remove the space that was appended to ease matching. |
22092 | # Then replace #undef with comments. This is necessary, for |
d9898ee8 |
22093 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
22094 | # on some systems where configure will not decide to define it. |
dd184caf |
22095 | # (The regexp can be short, since the line contains either #define or #undef.) |
22096 | echo 's/ $// |
22097 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
22098 | |
22099 | # Break up conftest.defines: |
22100 | ac_max_sed_lines=50 |
22101 | |
22102 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
22103 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
22104 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
22105 | # et cetera. |
22106 | ac_in='$ac_file_inputs' |
22107 | ac_out='"$tmp/out1"' |
22108 | ac_nxt='"$tmp/out2"' |
22109 | |
22110 | while : |
d9898ee8 |
22111 | do |
dd184caf |
22112 | # Write a here document: |
22113 | cat >>$CONFIG_STATUS <<_ACEOF |
22114 | # First, check the format of the line: |
22115 | cat >"\$tmp/defines.sed" <<\\CEOF |
22116 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
22117 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
22118 | b |
22119 | :def |
22120 | _ACEOF |
22121 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
d9898ee8 |
22122 | echo 'CEOF |
dd184caf |
22123 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
22124 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
22125 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
22126 | grep . conftest.tail >/dev/null || break |
d9898ee8 |
22127 | rm -f conftest.defines |
22128 | mv conftest.tail conftest.defines |
22129 | done |
dd184caf |
22130 | rm -f conftest.defines conftest.tail |
d9898ee8 |
22131 | |
dd184caf |
22132 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
d9898ee8 |
22133 | cat >>$CONFIG_STATUS <<\_ACEOF |
d9898ee8 |
22134 | if test x"$ac_file" != x-; then |
dd184caf |
22135 | echo "/* $configure_input */" >"$tmp/config.h" |
22136 | cat "$ac_result" >>"$tmp/config.h" |
22137 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
d9898ee8 |
22138 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
22139 | echo "$as_me: $ac_file is unchanged" >&6;} |
22140 | else |
d9898ee8 |
22141 | rm -f $ac_file |
dd184caf |
22142 | mv "$tmp/config.h" $ac_file |
d9898ee8 |
22143 | fi |
22144 | else |
dd184caf |
22145 | echo "/* $configure_input */" |
22146 | cat "$ac_result" |
d9898ee8 |
22147 | fi |
dd184caf |
22148 | rm -f "$tmp/out12" |
d9898ee8 |
22149 | # Compute $ac_file's index in $config_headers. |
22150 | _am_stamp_count=1 |
22151 | for _am_header in $config_headers :; do |
22152 | case $_am_header in |
22153 | $ac_file | $ac_file:* ) |
22154 | break ;; |
22155 | * ) |
22156 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
22157 | esac |
22158 | done |
dd184caf |
22159 | echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || |
d9898ee8 |
22160 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
22161 | X$ac_file : 'X\(//\)[^/]' \| \ |
22162 | X$ac_file : 'X\(//\)$' \| \ |
dd184caf |
22163 | X$ac_file : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
22164 | echo X$ac_file | |
dd184caf |
22165 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
22166 | s//\1/ |
22167 | q |
22168 | } |
22169 | /^X\(\/\/\)[^/].*/{ |
22170 | s//\1/ |
22171 | q |
22172 | } |
22173 | /^X\(\/\/\)$/{ |
22174 | s//\1/ |
22175 | q |
22176 | } |
22177 | /^X\(\/\).*/{ |
22178 | s//\1/ |
22179 | q |
22180 | } |
22181 | s/.*/./; q'`/stamp-h$_am_stamp_count |
22182 | ;; |
d9898ee8 |
22183 | |
dd184caf |
22184 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
22185 | echo "$as_me: executing $ac_file commands" >&6;} |
22186 | ;; |
22187 | esac |
d9898ee8 |
22188 | |
22189 | |
dd184caf |
22190 | case $ac_file$ac_mode in |
22191 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
d9898ee8 |
22192 | # Strip MF so we end up with the name of the file. |
22193 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
22194 | # Check whether this is an Automake generated Makefile or not. |
22195 | # We used to match only the files named `Makefile.in', but |
22196 | # some people rename them; so instead we look at the file content. |
22197 | # Grep'ing the first line is not enough: some people post-process |
22198 | # each Makefile.in and add a new line on top of each file to say so. |
dd184caf |
22199 | # Grep'ing the whole file is not good either: AIX grep has a line |
22200 | # limit of 2048, but all sed's we know have understand at least 4000. |
22201 | if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then |
22202 | dirpart=`$as_dirname -- "$mf" || |
d9898ee8 |
22203 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
22204 | X"$mf" : 'X\(//\)[^/]' \| \ |
22205 | X"$mf" : 'X\(//\)$' \| \ |
dd184caf |
22206 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
22207 | echo X"$mf" | |
dd184caf |
22208 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
22209 | s//\1/ |
22210 | q |
22211 | } |
22212 | /^X\(\/\/\)[^/].*/{ |
22213 | s//\1/ |
22214 | q |
22215 | } |
22216 | /^X\(\/\/\)$/{ |
22217 | s//\1/ |
22218 | q |
22219 | } |
22220 | /^X\(\/\).*/{ |
22221 | s//\1/ |
22222 | q |
22223 | } |
22224 | s/.*/./; q'` |
d9898ee8 |
22225 | else |
22226 | continue |
22227 | fi |
22228 | # Extract the definition of DEPDIR, am__include, and am__quote |
22229 | # from the Makefile without running `make'. |
22230 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
22231 | test -z "$DEPDIR" && continue |
22232 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
22233 | test -z "am__include" && continue |
22234 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
22235 | # When using ansi2knr, U may be empty or an underscore; expand it |
22236 | U=`sed -n 's/^U = //p' < "$mf"` |
22237 | # Find all dependency output files, they are included files with |
22238 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
22239 | # simplest approach to changing $(DEPDIR) to its actual value in the |
22240 | # expansion. |
22241 | for file in `sed -n " |
22242 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
22243 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
22244 | # Make sure the directory exists. |
22245 | test -f "$dirpart/$file" && continue |
dd184caf |
22246 | fdir=`$as_dirname -- "$file" || |
d9898ee8 |
22247 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
22248 | X"$file" : 'X\(//\)[^/]' \| \ |
22249 | X"$file" : 'X\(//\)$' \| \ |
dd184caf |
22250 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
22251 | echo X"$file" | |
dd184caf |
22252 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
22253 | s//\1/ |
22254 | q |
22255 | } |
22256 | /^X\(\/\/\)[^/].*/{ |
22257 | s//\1/ |
22258 | q |
22259 | } |
22260 | /^X\(\/\/\)$/{ |
22261 | s//\1/ |
22262 | q |
22263 | } |
22264 | /^X\(\/\).*/{ |
22265 | s//\1/ |
22266 | q |
22267 | } |
22268 | s/.*/./; q'` |
22269 | { as_dir=$dirpart/$fdir |
22270 | case $as_dir in #( |
22271 | -*) as_dir=./$as_dir;; |
22272 | esac |
22273 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
d9898ee8 |
22274 | as_dirs= |
dd184caf |
22275 | while :; do |
22276 | case $as_dir in #( |
22277 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
22278 | *) as_qdir=$as_dir;; |
22279 | esac |
22280 | as_dirs="'$as_qdir' $as_dirs" |
22281 | as_dir=`$as_dirname -- "$as_dir" || |
d9898ee8 |
22282 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
22283 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
22284 | X"$as_dir" : 'X\(//\)$' \| \ |
dd184caf |
22285 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
22286 | echo X"$as_dir" | |
dd184caf |
22287 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
22288 | s//\1/ |
22289 | q |
22290 | } |
22291 | /^X\(\/\/\)[^/].*/{ |
22292 | s//\1/ |
22293 | q |
22294 | } |
22295 | /^X\(\/\/\)$/{ |
22296 | s//\1/ |
22297 | q |
22298 | } |
22299 | /^X\(\/\).*/{ |
22300 | s//\1/ |
22301 | q |
22302 | } |
22303 | s/.*/./; q'` |
22304 | test -d "$as_dir" && break |
d9898ee8 |
22305 | done |
dd184caf |
22306 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
22307 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
22308 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
d9898ee8 |
22309 | { (exit 1); exit 1; }; }; } |
d9898ee8 |
22310 | # echo "creating $dirpart/$file" |
22311 | echo '# dummy' > "$dirpart/$file" |
22312 | done |
22313 | done |
22314 | ;; |
dd184caf |
22315 | |
d9898ee8 |
22316 | esac |
dd184caf |
22317 | done # for ac_tag |
d9898ee8 |
22318 | |
d9898ee8 |
22319 | |
22320 | { (exit 0); exit 0; } |
22321 | _ACEOF |
22322 | chmod +x $CONFIG_STATUS |
22323 | ac_clean_files=$ac_clean_files_save |
22324 | |
22325 | |
22326 | # configure is writing to config.log, and then calls config.status. |
22327 | # config.status does its own redirection, appending to config.log. |
22328 | # Unfortunately, on DOS this fails, as config.log is still kept open |
22329 | # by configure, so config.status won't be able to write to it; its |
22330 | # output is simply discarded. So we exec the FD to /dev/null, |
22331 | # effectively closing config.log, so it can be properly (re)opened and |
22332 | # appended to by config.status. When coming back to configure, we |
22333 | # need to make the FD available again. |
22334 | if test "$no_create" != yes; then |
22335 | ac_cs_success=: |
22336 | ac_config_status_args= |
22337 | test "$silent" = yes && |
22338 | ac_config_status_args="$ac_config_status_args --quiet" |
22339 | exec 5>/dev/null |
22340 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
22341 | exec 5>>config.log |
22342 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
22343 | # would make configure fail if this is the last instruction. |
22344 | $ac_cs_success || { (exit 1); exit 1; } |
22345 | fi |
22346 | |