configure revision 1.1 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for libXfontcache 1.0.4.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
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
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 setopt NO_GLOB_SUBST
23 else
24 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
25 fi
26 BIN_SH=xpg4; export BIN_SH # for Tru64
27 DUALCASE=1; export DUALCASE # for MKS sh
28
29
30 # PATH needs CR
31 # Avoid depending upon Character Ranges.
32 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35 as_cr_digits='0123456789'
36 as_cr_alnum=$as_cr_Letters$as_cr_digits
37
38 # The user is always right.
39 if test "${PATH_SEPARATOR+set}" != set; then
40 echo "#! /bin/sh" >conf$$.sh
41 echo "exit 0" >>conf$$.sh
42 chmod +x conf$$.sh
43 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44 PATH_SEPARATOR=';'
45 else
46 PATH_SEPARATOR=:
47 fi
48 rm -f conf$$.sh
49 fi
50
51 # Support unset when possible.
52 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53 as_unset=unset
54 else
55 as_unset=false
56 fi
57
58
59 # IFS
60 # We need space, tab and new line, in precisely that order. Quoting is
61 # there to prevent editors from complaining about space-tab.
62 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
63 # splitting by setting IFS to empty value.)
64 as_nl='
65 '
66 IFS=" "" $as_nl"
67
68 # Find who we are. Look in the path if we contain no directory separator.
69 case $0 in
70 *[\\/]* ) as_myself=$0 ;;
71 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
72 for as_dir in $PATH
73 do
74 IFS=$as_save_IFS
75 test -z "$as_dir" && as_dir=.
76 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
77 done
78 IFS=$as_save_IFS
79
80 ;;
81 esac
82 # We did not find ourselves, most probably we were run as `sh COMMAND'
83 # in which case we are not to be found in the path.
84 if test "x$as_myself" = x; then
85 as_myself=$0
86 fi
87 if test ! -f "$as_myself"; then
88 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
89 { (exit 1); exit 1; }
90 fi
91
92 # Work around bugs in pre-3.0 UWIN ksh.
93 for as_var in ENV MAIL MAILPATH
94 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
95 done
96 PS1='$ '
97 PS2='> '
98 PS4='+ '
99
100 # NLS nuisances.
101 for as_var in \
102 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
103 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
104 LC_TELEPHONE LC_TIME
105 do
106 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
107 eval $as_var=C; export $as_var
108 else
109 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
110 fi
111 done
112
113 # Required to use basename.
114 if expr a : '\(a\)' >/dev/null 2>&1 &&
115 test "X`expr 00001 : '.*\(...\)'`" = X001; then
116 as_expr=expr
117 else
118 as_expr=false
119 fi
120
121 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
122 as_basename=basename
123 else
124 as_basename=false
125 fi
126
127
128 # Name of the executable.
129 as_me=`$as_basename -- "$0" ||
130 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
131 X"$0" : 'X\(//\)$' \| \
132 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
133 echo X/"$0" |
134 sed '/^.*\/\([^/][^/]*\)\/*$/{
135 s//\1/
136 q
137 }
138 /^X\/\(\/\/\)$/{
139 s//\1/
140 q
141 }
142 /^X\/\(\/\).*/{
143 s//\1/
144 q
145 }
146 s/.*/./; q'`
147
148 # CDPATH.
149 $as_unset CDPATH
150
151
152 if test "x$CONFIG_SHELL" = x; then
153 if (eval ":") 2>/dev/null; then
154 as_have_required=yes
155 else
156 as_have_required=no
157 fi
158
159 if test $as_have_required = yes && (eval ":
160 (as_func_return () {
161 (exit \$1)
162 }
163 as_func_success () {
164 as_func_return 0
165 }
166 as_func_failure () {
167 as_func_return 1
168 }
169 as_func_ret_success () {
170 return 0
171 }
172 as_func_ret_failure () {
173 return 1
174 }
175
176 exitcode=0
177 if as_func_success; then
178 :
179 else
180 exitcode=1
181 echo as_func_success failed.
182 fi
183
184 if as_func_failure; then
185 exitcode=1
186 echo as_func_failure succeeded.
187 fi
188
189 if as_func_ret_success; then
190 :
191 else
192 exitcode=1
193 echo as_func_ret_success failed.
194 fi
195
196 if as_func_ret_failure; then
197 exitcode=1
198 echo as_func_ret_failure succeeded.
199 fi
200
201 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
202 :
203 else
204 exitcode=1
205 echo positional parameters were not saved.
206 fi
207
208 test \$exitcode = 0) || { (exit 1); exit 1; }
209
210 (
211 as_lineno_1=\$LINENO
212 as_lineno_2=\$LINENO
213 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
214 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
215 ") 2> /dev/null; then
216 :
217 else
218 as_candidate_shells=
219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 case $as_dir in
225 /*)
226 for as_base in sh bash ksh sh5; do
227 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
228 done;;
229 esac
230 done
231 IFS=$as_save_IFS
232
233
234 for as_shell in $as_candidate_shells $SHELL; do
235 # Try only shells that exist, to save several forks.
236 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
237 { ("$as_shell") 2> /dev/null <<\_ASEOF
238 # Be Bourne compatible
239 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240 emulate sh
241 NULLCMD=:
242 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
243 # is contrary to our usage. Disable this feature.
244 alias -g '${1+"$@"}'='"$@"'
245 setopt NO_GLOB_SUBST
246 else
247 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
248 fi
249 BIN_SH=xpg4; export BIN_SH # for Tru64
250 DUALCASE=1; export DUALCASE # for MKS sh
251
252 :
253 _ASEOF
254 }; then
255 CONFIG_SHELL=$as_shell
256 as_have_required=yes
257 if { "$as_shell" 2> /dev/null <<\_ASEOF
258 # Be Bourne compatible
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266 else
267 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
268 fi
269 BIN_SH=xpg4; export BIN_SH # for Tru64
270 DUALCASE=1; export DUALCASE # for MKS sh
271
272 :
273 (as_func_return () {
274 (exit $1)
275 }
276 as_func_success () {
277 as_func_return 0
278 }
279 as_func_failure () {
280 as_func_return 1
281 }
282 as_func_ret_success () {
283 return 0
284 }
285 as_func_ret_failure () {
286 return 1
287 }
288
289 exitcode=0
290 if as_func_success; then
291 :
292 else
293 exitcode=1
294 echo as_func_success failed.
295 fi
296
297 if as_func_failure; then
298 exitcode=1
299 echo as_func_failure succeeded.
300 fi
301
302 if as_func_ret_success; then
303 :
304 else
305 exitcode=1
306 echo as_func_ret_success failed.
307 fi
308
309 if as_func_ret_failure; then
310 exitcode=1
311 echo as_func_ret_failure succeeded.
312 fi
313
314 if ( set x; as_func_ret_success y && test x = "$1" ); then
315 :
316 else
317 exitcode=1
318 echo positional parameters were not saved.
319 fi
320
321 test $exitcode = 0) || { (exit 1); exit 1; }
322
323 (
324 as_lineno_1=$LINENO
325 as_lineno_2=$LINENO
326 test "x$as_lineno_1" != "x$as_lineno_2" &&
327 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
328
329 _ASEOF
330 }; then
331 break
332 fi
333
334 fi
335
336 done
337
338 if test "x$CONFIG_SHELL" != x; then
339 for as_var in BASH_ENV ENV
340 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
341 done
342 export CONFIG_SHELL
343 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
344 fi
345
346
347 if test $as_have_required = no; then
348 echo This script requires a shell more modern than all the
349 echo shells that I found on your system. Please install a
350 echo modern shell, or manually run the script under such a
351 echo shell if you do have one.
352 { (exit 1); exit 1; }
353 fi
354
355
356 fi
357
358 fi
359
360
361
362 (eval "as_func_return () {
363 (exit \$1)
364 }
365 as_func_success () {
366 as_func_return 0
367 }
368 as_func_failure () {
369 as_func_return 1
370 }
371 as_func_ret_success () {
372 return 0
373 }
374 as_func_ret_failure () {
375 return 1
376 }
377
378 exitcode=0
379 if as_func_success; then
380 :
381 else
382 exitcode=1
383 echo as_func_success failed.
384 fi
385
386 if as_func_failure; then
387 exitcode=1
388 echo as_func_failure succeeded.
389 fi
390
391 if as_func_ret_success; then
392 :
393 else
394 exitcode=1
395 echo as_func_ret_success failed.
396 fi
397
398 if as_func_ret_failure; then
399 exitcode=1
400 echo as_func_ret_failure succeeded.
401 fi
402
403 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
404 :
405 else
406 exitcode=1
407 echo positional parameters were not saved.
408 fi
409
410 test \$exitcode = 0") || {
411 echo No shell found that supports shell functions.
412 echo Please tell autoconf@gnu.org about your system,
413 echo including any error possibly output before this
414 echo message
415 }
416
417
418
419 as_lineno_1=$LINENO
420 as_lineno_2=$LINENO
421 test "x$as_lineno_1" != "x$as_lineno_2" &&
422 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
423
424 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
425 # uniformly replaced by the line number. The first 'sed' inserts a
426 # line-number line after each line using $LINENO; the second 'sed'
427 # does the real work. The second script uses 'N' to pair each
428 # line-number line with the line containing $LINENO, and appends
429 # trailing '-' during substitution so that $LINENO is not a special
430 # case at line end.
431 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
432 # scripts with optimization help from Paolo Bonzini. Blame Lee
433 # E. McMahon (1931-1989) for sed's syntax. :-)
434 sed -n '
435 p
436 /[$]LINENO/=
437 ' <$as_myself |
438 sed '
439 s/[$]LINENO.*/&-/
440 t lineno
441 b
442 :lineno
443 N
444 :loop
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446 t loop
447 s/-\n.*//
448 ' >$as_me.lineno &&
449 chmod +x "$as_me.lineno" ||
450 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
451 { (exit 1); exit 1; }; }
452
453 # Don't try to exec as it changes $[0], causing all sort of problems
454 # (the dirname of $[0] is not the place where we might find the
455 # original and so on. Autoconf is especially sensitive to this).
456 . "./$as_me.lineno"
457 # Exit status is that of the last command.
458 exit
459 }
460
461
462 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
463 as_dirname=dirname
464 else
465 as_dirname=false
466 fi
467
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in
470 -n*)
471 case `echo 'x\c'` in
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
473 *) ECHO_C='\c';;
474 esac;;
475 *)
476 ECHO_N='-n';;
477 esac
478
479 if expr a : '\(a\)' >/dev/null 2>&1 &&
480 test "X`expr 00001 : '.*\(...\)'`" = X001; then
481 as_expr=expr
482 else
483 as_expr=false
484 fi
485
486 rm -f conf$$ conf$$.exe conf$$.file
487 if test -d conf$$.dir; then
488 rm -f conf$$.dir/conf$$.file
489 else
490 rm -f conf$$.dir
491 mkdir conf$$.dir
492 fi
493 echo >conf$$.file
494 if ln -s conf$$.file conf$$ 2>/dev/null; then
495 as_ln_s='ln -s'
496 # ... but there are two gotchas:
497 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
498 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
499 # In both cases, we have to default to `cp -p'.
500 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
501 as_ln_s='cp -p'
502 elif ln conf$$.file conf$$ 2>/dev/null; then
503 as_ln_s=ln
504 else
505 as_ln_s='cp -p'
506 fi
507 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508 rmdir conf$$.dir 2>/dev/null
509
510 if mkdir -p . 2>/dev/null; then
511 as_mkdir_p=:
512 else
513 test -d ./-p && rmdir ./-p
514 as_mkdir_p=false
515 fi
516
517 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
518 # systems may use methods other than mode bits to determine executability.
519 cat >conf$$.file <<_ASEOF
520 #! /bin/sh
521 exit 0
522 _ASEOF
523 chmod +x conf$$.file
524 if test -x conf$$.file >/dev/null 2>&1; then
525 as_executable_p="test -x"
526 else
527 as_executable_p=:
528 fi
529 rm -f conf$$.file
530
531 # Sed expression to map a string onto a valid CPP name.
532 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533
534 # Sed expression to map a string onto a valid variable name.
535 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
536
537
538
539
540 # Check that we are running under the correct shell.
541 SHELL=${CONFIG_SHELL-/bin/sh}
542
543 case X$ECHO in
544 X*--fallback-echo)
545 # Remove one level of quotation (which was required for Make).
546 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
547 ;;
548 esac
549
550 echo=${ECHO-echo}
551 if test "X$1" = X--no-reexec; then
552 # Discard the --no-reexec flag, and continue.
553 shift
554 elif test "X$1" = X--fallback-echo; then
555 # Avoid inline document here, it may be left over
556 :
557 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
558 # Yippee, $echo works!
559 :
560 else
561 # Restart under the correct shell.
562 exec $SHELL "$0" --no-reexec ${1+"$@"}
563 fi
564
565 if test "X$1" = X--fallback-echo; then
566 # used as fallback echo
567 shift
568 cat <<EOF
569 $*
570 EOF
571 exit 0
572 fi
573
574 # The HP-UX ksh and POSIX shell print the target directory to stdout
575 # if CDPATH is set.
576 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
577
578 if test -z "$ECHO"; then
579 if test "X${echo_test_string+set}" != Xset; then
580 # find a string as large as possible, as long as the shell can cope with it
581 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
582 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
583 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
584 echo_test_string=`eval $cmd` &&
585 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
586 then
587 break
588 fi
589 done
590 fi
591
592 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
593 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
594 test "X$echo_testing_string" = "X$echo_test_string"; then
595 :
596 else
597 # The Solaris, AIX, and Digital Unix default echo programs unquote
598 # backslashes. This makes it impossible to quote backslashes using
599 # echo "$something" | sed 's/\\/\\\\/g'
600 #
601 # So, first we look for a working echo in the user's PATH.
602
603 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
604 for dir in $PATH /usr/ucb; do
605 IFS="$lt_save_ifs"
606 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
607 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
610 echo="$dir/echo"
611 break
612 fi
613 done
614 IFS="$lt_save_ifs"
615
616 if test "X$echo" = Xecho; then
617 # We didn't find a better echo, so look for alternatives.
618 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
619 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
620 test "X$echo_testing_string" = "X$echo_test_string"; then
621 # This shell has a builtin print -r that does the trick.
622 echo='print -r'
623 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
624 test "X$CONFIG_SHELL" != X/bin/ksh; then
625 # If we have ksh, try running configure again with it.
626 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
627 export ORIGINAL_CONFIG_SHELL
628 CONFIG_SHELL=/bin/ksh
629 export CONFIG_SHELL
630 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
631 else
632 # Try using printf.
633 echo='printf %s\n'
634 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
635 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
636 test "X$echo_testing_string" = "X$echo_test_string"; then
637 # Cool, printf works
638 :
639 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
640 test "X$echo_testing_string" = 'X\t' &&
641 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
642 test "X$echo_testing_string" = "X$echo_test_string"; then
643 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
644 export CONFIG_SHELL
645 SHELL="$CONFIG_SHELL"
646 export SHELL
647 echo="$CONFIG_SHELL $0 --fallback-echo"
648 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
649 test "X$echo_testing_string" = 'X\t' &&
650 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
651 test "X$echo_testing_string" = "X$echo_test_string"; then
652 echo="$CONFIG_SHELL $0 --fallback-echo"
653 else
654 # maybe with a smaller string...
655 prev=:
656
657 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
658 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
659 then
660 break
661 fi
662 prev="$cmd"
663 done
664
665 if test "$prev" != 'sed 50q "$0"'; then
666 echo_test_string=`eval $prev`
667 export echo_test_string
668 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
669 else
670 # Oops. We lost completely, so just stick with echo.
671 echo=echo
672 fi
673 fi
674 fi
675 fi
676 fi
677 fi
678
679 # Copy echo and quote the copy suitably for passing to libtool from
680 # the Makefile, instead of quoting the original, which is used later.
681 ECHO=$echo
682 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
683 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
684 fi
685
686
687
688
689 tagnames=${tagnames+${tagnames},}CXX
690
691 tagnames=${tagnames+${tagnames},}F77
692
693 exec 7<&0 </dev/null 6>&1
694
695 # Name of the host.
696 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
697 # so uname gets run too.
698 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
699
700 #
701 # Initializations.
702 #
703 ac_default_prefix=/usr/local
704 ac_clean_files=
705 ac_config_libobj_dir=.
706 LIBOBJS=
707 cross_compiling=no
708 subdirs=
709 MFLAGS=
710 MAKEFLAGS=
711 SHELL=${CONFIG_SHELL-/bin/sh}
712
713 # Identity of this package.
714 PACKAGE_NAME='libXfontcache'
715 PACKAGE_TARNAME='libXfontcache'
716 PACKAGE_VERSION='1.0.4'
717 PACKAGE_STRING='libXfontcache 1.0.4'
718 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
719
720 # Factoring default headers for most tests.
721 ac_includes_default="\
722 #include <stdio.h>
723 #if HAVE_SYS_TYPES_H
724 # include <sys/types.h>
725 #endif
726 #if HAVE_SYS_STAT_H
727 # include <sys/stat.h>
728 #endif
729 #if STDC_HEADERS
730 # include <stdlib.h>
731 # include <stddef.h>
732 #else
733 # if HAVE_STDLIB_H
734 # include <stdlib.h>
735 # endif
736 #endif
737 #if HAVE_STRING_H
738 # if !STDC_HEADERS && HAVE_MEMORY_H
739 # include <memory.h>
740 # endif
741 # include <string.h>
742 #endif
743 #if HAVE_STRINGS_H
744 # include <strings.h>
745 #endif
746 #if HAVE_INTTYPES_H
747 # include <inttypes.h>
748 #endif
749 #if HAVE_STDINT_H
750 # include <stdint.h>
751 #endif
752 #if HAVE_UNISTD_H
753 # include <unistd.h>
754 #endif"
755
756 ac_subst_vars='SHELL
757 PATH_SEPARATOR
758 PACKAGE_NAME
759 PACKAGE_TARNAME
760 PACKAGE_VERSION
761 PACKAGE_STRING
762 PACKAGE_BUGREPORT
763 exec_prefix
764 prefix
765 program_transform_name
766 bindir
767 sbindir
768 libexecdir
769 datarootdir
770 datadir
771 sysconfdir
772 sharedstatedir
773 localstatedir
774 includedir
775 oldincludedir
776 docdir
777 infodir
778 htmldir
779 dvidir
780 pdfdir
781 psdir
782 libdir
783 localedir
784 mandir
785 DEFS
786 ECHO_C
787 ECHO_N
788 ECHO_T
789 LIBS
790 build_alias
791 host_alias
792 target_alias
793 INSTALL_PROGRAM
794 INSTALL_SCRIPT
795 INSTALL_DATA
796 CYGPATH_W
797 PACKAGE
798 VERSION
799 ACLOCAL
800 AUTOCONF
801 AUTOMAKE
802 AUTOHEADER
803 MAKEINFO
804 install_sh
805 STRIP
806 INSTALL_STRIP_PROGRAM
807 mkdir_p
808 AWK
809 SET_MAKE
810 am__leading_dot
811 AMTAR
812 am__tar
813 am__untar
814 AMSHOWCMDSAT
815 AMDEPSHOWCMDSAT
816 AMPRETTYECHO
817 AMCMDECHO
818 LT_QUIET
819 MAINTAINER_MODE_TRUE
820 MAINTAINER_MODE_FALSE
821 MAINT
822 CC
823 CFLAGS
824 LDFLAGS
825 CPPFLAGS
826 ac_ct_CC
827 EXEEXT
828 OBJEXT
829 DEPDIR
830 am__include
831 am__quote
832 AMDEP_TRUE
833 AMDEP_FALSE
834 AMDEPBACKSLASH
835 CCDEPMODE
836 am__fastdepCC_TRUE
837 am__fastdepCC_FALSE
838 build
839 build_cpu
840 build_vendor
841 build_os
842 host
843 host_cpu
844 host_vendor
845 host_os
846 GREP
847 EGREP
848 LN_S
849 ECHO
850 AR
851 RANLIB
852 CPP
853 CXX
854 CXXFLAGS
855 ac_ct_CXX
856 CXXDEPMODE
857 am__fastdepCXX_TRUE
858 am__fastdepCXX_FALSE
859 CXXCPP
860 F77
861 FFLAGS
862 ac_ct_F77
863 LIBTOOL
864 PKG_CONFIG
865 XFONTCACHE_CFLAGS
866 XFONTCACHE_LIBS
867 MALLOC_ZERO_CFLAGS
868 XMALLOC_ZERO_CFLAGS
869 XTMALLOC_ZERO_CFLAGS
870 APP_MAN_SUFFIX
871 LIB_MAN_SUFFIX
872 FILE_MAN_SUFFIX
873 MISC_MAN_SUFFIX
874 DRIVER_MAN_SUFFIX
875 ADMIN_MAN_SUFFIX
876 APP_MAN_DIR
877 LIB_MAN_DIR
878 FILE_MAN_DIR
879 MISC_MAN_DIR
880 DRIVER_MAN_DIR
881 ADMIN_MAN_DIR
882 LIBOBJS
883 LTLIBOBJS'
884 ac_subst_files=''
885 ac_precious_vars='build_alias
886 host_alias
887 target_alias
888 CC
889 CFLAGS
890 LDFLAGS
891 CPPFLAGS
892 CPP
893 CXX
894 CXXFLAGS
895 CCC
896 CXXCPP
897 F77
898 FFLAGS
899 PKG_CONFIG
900 XFONTCACHE_CFLAGS
901 XFONTCACHE_LIBS'
902
903
904 # Initialize some variables set by options.
905 ac_init_help=
906 ac_init_version=false
907 # The variables have the same names as the options, with
908 # dashes changed to underlines.
909 cache_file=/dev/null
910 exec_prefix=NONE
911 no_create=
912 no_recursion=
913 prefix=NONE
914 program_prefix=NONE
915 program_suffix=NONE
916 program_transform_name=s,x,x,
917 silent=
918 site=
919 srcdir=
920 verbose=
921 x_includes=NONE
922 x_libraries=NONE
923
924 # Installation directory options.
925 # These are left unexpanded so users can "make install exec_prefix=/foo"
926 # and all the variables that are supposed to be based on exec_prefix
927 # by default will actually change.
928 # Use braces instead of parens because sh, perl, etc. also accept them.
929 # (The list follows the same order as the GNU Coding Standards.)
930 bindir='${exec_prefix}/bin'
931 sbindir='${exec_prefix}/sbin'
932 libexecdir='${exec_prefix}/libexec'
933 datarootdir='${prefix}/share'
934 datadir='${datarootdir}'
935 sysconfdir='${prefix}/etc'
936 sharedstatedir='${prefix}/com'
937 localstatedir='${prefix}/var'
938 includedir='${prefix}/include'
939 oldincludedir='/usr/include'
940 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
941 infodir='${datarootdir}/info'
942 htmldir='${docdir}'
943 dvidir='${docdir}'
944 pdfdir='${docdir}'
945 psdir='${docdir}'
946 libdir='${exec_prefix}/lib'
947 localedir='${datarootdir}/locale'
948 mandir='${datarootdir}/man'
949
950 ac_prev=
951 ac_dashdash=
952 for ac_option
953 do
954 # If the previous option needs an argument, assign it.
955 if test -n "$ac_prev"; then
956 eval $ac_prev=\$ac_option
957 ac_prev=
958 continue
959 fi
960
961 case $ac_option in
962 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
963 *) ac_optarg=yes ;;
964 esac
965
966 # Accept the important Cygnus configure options, so we can diagnose typos.
967
968 case $ac_dashdash$ac_option in
969 --)
970 ac_dashdash=yes ;;
971
972 -bindir | --bindir | --bindi | --bind | --bin | --bi)
973 ac_prev=bindir ;;
974 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
975 bindir=$ac_optarg ;;
976
977 -build | --build | --buil | --bui | --bu)
978 ac_prev=build_alias ;;
979 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
980 build_alias=$ac_optarg ;;
981
982 -cache-file | --cache-file | --cache-fil | --cache-fi \
983 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
984 ac_prev=cache_file ;;
985 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
986 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
987 cache_file=$ac_optarg ;;
988
989 --config-cache | -C)
990 cache_file=config.cache ;;
991
992 -datadir | --datadir | --datadi | --datad)
993 ac_prev=datadir ;;
994 -datadir=* | --datadir=* | --datadi=* | --datad=*)
995 datadir=$ac_optarg ;;
996
997 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
998 | --dataroo | --dataro | --datar)
999 ac_prev=datarootdir ;;
1000 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1001 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1002 datarootdir=$ac_optarg ;;
1003
1004 -disable-* | --disable-*)
1005 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1006 # Reject names that are not valid shell variable names.
1007 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1008 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1009 { (exit 1); exit 1; }; }
1010 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1011 eval enable_$ac_feature=no ;;
1012
1013 -docdir | --docdir | --docdi | --doc | --do)
1014 ac_prev=docdir ;;
1015 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1016 docdir=$ac_optarg ;;
1017
1018 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1019 ac_prev=dvidir ;;
1020 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1021 dvidir=$ac_optarg ;;
1022
1023 -enable-* | --enable-*)
1024 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1025 # Reject names that are not valid shell variable names.
1026 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1027 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1028 { (exit 1); exit 1; }; }
1029 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1030 eval enable_$ac_feature=\$ac_optarg ;;
1031
1032 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1033 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1034 | --exec | --exe | --ex)
1035 ac_prev=exec_prefix ;;
1036 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1037 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1038 | --exec=* | --exe=* | --ex=*)
1039 exec_prefix=$ac_optarg ;;
1040
1041 -gas | --gas | --ga | --g)
1042 # Obsolete; use --with-gas.
1043 with_gas=yes ;;
1044
1045 -help | --help | --hel | --he | -h)
1046 ac_init_help=long ;;
1047 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1048 ac_init_help=recursive ;;
1049 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1050 ac_init_help=short ;;
1051
1052 -host | --host | --hos | --ho)
1053 ac_prev=host_alias ;;
1054 -host=* | --host=* | --hos=* | --ho=*)
1055 host_alias=$ac_optarg ;;
1056
1057 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1058 ac_prev=htmldir ;;
1059 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1060 | --ht=*)
1061 htmldir=$ac_optarg ;;
1062
1063 -includedir | --includedir | --includedi | --included | --include \
1064 | --includ | --inclu | --incl | --inc)
1065 ac_prev=includedir ;;
1066 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1067 | --includ=* | --inclu=* | --incl=* | --inc=*)
1068 includedir=$ac_optarg ;;
1069
1070 -infodir | --infodir | --infodi | --infod | --info | --inf)
1071 ac_prev=infodir ;;
1072 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1073 infodir=$ac_optarg ;;
1074
1075 -libdir | --libdir | --libdi | --libd)
1076 ac_prev=libdir ;;
1077 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1078 libdir=$ac_optarg ;;
1079
1080 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1081 | --libexe | --libex | --libe)
1082 ac_prev=libexecdir ;;
1083 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1084 | --libexe=* | --libex=* | --libe=*)
1085 libexecdir=$ac_optarg ;;
1086
1087 -localedir | --localedir | --localedi | --localed | --locale)
1088 ac_prev=localedir ;;
1089 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1090 localedir=$ac_optarg ;;
1091
1092 -localstatedir | --localstatedir | --localstatedi | --localstated \
1093 | --localstate | --localstat | --localsta | --localst | --locals)
1094 ac_prev=localstatedir ;;
1095 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1096 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1097 localstatedir=$ac_optarg ;;
1098
1099 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1100 ac_prev=mandir ;;
1101 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1102 mandir=$ac_optarg ;;
1103
1104 -nfp | --nfp | --nf)
1105 # Obsolete; use --without-fp.
1106 with_fp=no ;;
1107
1108 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1109 | --no-cr | --no-c | -n)
1110 no_create=yes ;;
1111
1112 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1113 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1114 no_recursion=yes ;;
1115
1116 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1117 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1118 | --oldin | --oldi | --old | --ol | --o)
1119 ac_prev=oldincludedir ;;
1120 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1121 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1122 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1123 oldincludedir=$ac_optarg ;;
1124
1125 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1126 ac_prev=prefix ;;
1127 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1128 prefix=$ac_optarg ;;
1129
1130 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1131 | --program-pre | --program-pr | --program-p)
1132 ac_prev=program_prefix ;;
1133 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1134 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1135 program_prefix=$ac_optarg ;;
1136
1137 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1138 | --program-suf | --program-su | --program-s)
1139 ac_prev=program_suffix ;;
1140 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1141 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1142 program_suffix=$ac_optarg ;;
1143
1144 -program-transform-name | --program-transform-name \
1145 | --program-transform-nam | --program-transform-na \
1146 | --program-transform-n | --program-transform- \
1147 | --program-transform | --program-transfor \
1148 | --program-transfo | --program-transf \
1149 | --program-trans | --program-tran \
1150 | --progr-tra | --program-tr | --program-t)
1151 ac_prev=program_transform_name ;;
1152 -program-transform-name=* | --program-transform-name=* \
1153 | --program-transform-nam=* | --program-transform-na=* \
1154 | --program-transform-n=* | --program-transform-=* \
1155 | --program-transform=* | --program-transfor=* \
1156 | --program-transfo=* | --program-transf=* \
1157 | --program-trans=* | --program-tran=* \
1158 | --progr-tra=* | --program-tr=* | --program-t=*)
1159 program_transform_name=$ac_optarg ;;
1160
1161 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1162 ac_prev=pdfdir ;;
1163 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1164 pdfdir=$ac_optarg ;;
1165
1166 -psdir | --psdir | --psdi | --psd | --ps)
1167 ac_prev=psdir ;;
1168 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1169 psdir=$ac_optarg ;;
1170
1171 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1172 | -silent | --silent | --silen | --sile | --sil)
1173 silent=yes ;;
1174
1175 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1176 ac_prev=sbindir ;;
1177 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1178 | --sbi=* | --sb=*)
1179 sbindir=$ac_optarg ;;
1180
1181 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1182 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1183 | --sharedst | --shareds | --shared | --share | --shar \
1184 | --sha | --sh)
1185 ac_prev=sharedstatedir ;;
1186 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1187 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1188 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1189 | --sha=* | --sh=*)
1190 sharedstatedir=$ac_optarg ;;
1191
1192 -site | --site | --sit)
1193 ac_prev=site ;;
1194 -site=* | --site=* | --sit=*)
1195 site=$ac_optarg ;;
1196
1197 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1198 ac_prev=srcdir ;;
1199 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1200 srcdir=$ac_optarg ;;
1201
1202 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1203 | --syscon | --sysco | --sysc | --sys | --sy)
1204 ac_prev=sysconfdir ;;
1205 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1206 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1207 sysconfdir=$ac_optarg ;;
1208
1209 -target | --target | --targe | --targ | --tar | --ta | --t)
1210 ac_prev=target_alias ;;
1211 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1212 target_alias=$ac_optarg ;;
1213
1214 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1215 verbose=yes ;;
1216
1217 -version | --version | --versio | --versi | --vers | -V)
1218 ac_init_version=: ;;
1219
1220 -with-* | --with-*)
1221 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1222 # Reject names that are not valid shell variable names.
1223 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1224 { echo "$as_me: error: invalid package name: $ac_package" >&2
1225 { (exit 1); exit 1; }; }
1226 ac_package=`echo $ac_package| sed 's/-/_/g'`
1227 eval with_$ac_package=\$ac_optarg ;;
1228
1229 -without-* | --without-*)
1230 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1231 # Reject names that are not valid shell variable names.
1232 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1233 { echo "$as_me: error: invalid package name: $ac_package" >&2
1234 { (exit 1); exit 1; }; }
1235 ac_package=`echo $ac_package | sed 's/-/_/g'`
1236 eval with_$ac_package=no ;;
1237
1238 --x)
1239 # Obsolete; use --with-x.
1240 with_x=yes ;;
1241
1242 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1243 | --x-incl | --x-inc | --x-in | --x-i)
1244 ac_prev=x_includes ;;
1245 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1246 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1247 x_includes=$ac_optarg ;;
1248
1249 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1250 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1251 ac_prev=x_libraries ;;
1252 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1253 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1254 x_libraries=$ac_optarg ;;
1255
1256 -*) { echo "$as_me: error: unrecognized option: $ac_option
1257 Try \`$0 --help' for more information." >&2
1258 { (exit 1); exit 1; }; }
1259 ;;
1260
1261 *=*)
1262 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1263 # Reject names that are not valid shell variable names.
1264 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1265 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1266 { (exit 1); exit 1; }; }
1267 eval $ac_envvar=\$ac_optarg
1268 export $ac_envvar ;;
1269
1270 *)
1271 # FIXME: should be removed in autoconf 3.0.
1272 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1273 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1274 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1275 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1276 ;;
1277
1278 esac
1279 done
1280
1281 if test -n "$ac_prev"; then
1282 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1283 { echo "$as_me: error: missing argument to $ac_option" >&2
1284 { (exit 1); exit 1; }; }
1285 fi
1286
1287 # Be sure to have absolute directory names.
1288 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1289 datadir sysconfdir sharedstatedir localstatedir includedir \
1290 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1291 libdir localedir mandir
1292 do
1293 eval ac_val=\$$ac_var
1294 case $ac_val in
1295 [\\/$]* | ?:[\\/]* ) continue;;
1296 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1297 esac
1298 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1299 { (exit 1); exit 1; }; }
1300 done
1301
1302 # There might be people who depend on the old broken behavior: `$host'
1303 # used to hold the argument of --host etc.
1304 # FIXME: To remove some day.
1305 build=$build_alias
1306 host=$host_alias
1307 target=$target_alias
1308
1309 # FIXME: To remove some day.
1310 if test "x$host_alias" != x; then
1311 if test "x$build_alias" = x; then
1312 cross_compiling=maybe
1313 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1314 If a cross compiler is detected then cross compile mode will be used." >&2
1315 elif test "x$build_alias" != "x$host_alias"; then
1316 cross_compiling=yes
1317 fi
1318 fi
1319
1320 ac_tool_prefix=
1321 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1322
1323 test "$silent" = yes && exec 6>/dev/null
1324
1325
1326 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1327 ac_ls_di=`ls -di .` &&
1328 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1329 { echo "$as_me: error: Working directory cannot be determined" >&2
1330 { (exit 1); exit 1; }; }
1331 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1332 { echo "$as_me: error: pwd does not report name of working directory" >&2
1333 { (exit 1); exit 1; }; }
1334
1335
1336 # Find the source files, if location was not specified.
1337 if test -z "$srcdir"; then
1338 ac_srcdir_defaulted=yes
1339 # Try the directory containing this script, then the parent directory.
1340 ac_confdir=`$as_dirname -- "$0" ||
1341 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1342 X"$0" : 'X\(//\)[^/]' \| \
1343 X"$0" : 'X\(//\)$' \| \
1344 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1345 echo X"$0" |
1346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1347 s//\1/
1348 q
1349 }
1350 /^X\(\/\/\)[^/].*/{
1351 s//\1/
1352 q
1353 }
1354 /^X\(\/\/\)$/{
1355 s//\1/
1356 q
1357 }
1358 /^X\(\/\).*/{
1359 s//\1/
1360 q
1361 }
1362 s/.*/./; q'`
1363 srcdir=$ac_confdir
1364 if test ! -r "$srcdir/$ac_unique_file"; then
1365 srcdir=..
1366 fi
1367 else
1368 ac_srcdir_defaulted=no
1369 fi
1370 if test ! -r "$srcdir/$ac_unique_file"; then
1371 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1372 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1373 { (exit 1); exit 1; }; }
1374 fi
1375 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1376 ac_abs_confdir=`(
1377 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1378 { (exit 1); exit 1; }; }
1379 pwd)`
1380 # When building in place, set srcdir=.
1381 if test "$ac_abs_confdir" = "$ac_pwd"; then
1382 srcdir=.
1383 fi
1384 # Remove unnecessary trailing slashes from srcdir.
1385 # Double slashes in file names in object file debugging info
1386 # mess up M-x gdb in Emacs.
1387 case $srcdir in
1388 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1389 esac
1390 for ac_var in $ac_precious_vars; do
1391 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1392 eval ac_env_${ac_var}_value=\$${ac_var}
1393 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1394 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1395 done
1396
1397 #
1398 # Report the --help message.
1399 #
1400 if test "$ac_init_help" = "long"; then
1401 # Omit some internal or obsolete options to make the list less imposing.
1402 # This message is too long to be a string in the A/UX 3.1 sh.
1403 cat <<_ACEOF
1404 \`configure' configures libXfontcache 1.0.4 to adapt to many kinds of systems.
1405
1406 Usage: $0 [OPTION]... [VAR=VALUE]...
1407
1408 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1409 VAR=VALUE. See below for descriptions of some of the useful variables.
1410
1411 Defaults for the options are specified in brackets.
1412
1413 Configuration:
1414 -h, --help display this help and exit
1415 --help=short display options specific to this package
1416 --help=recursive display the short help of all the included packages
1417 -V, --version display version information and exit
1418 -q, --quiet, --silent do not print \`checking...' messages
1419 --cache-file=FILE cache test results in FILE [disabled]
1420 -C, --config-cache alias for \`--cache-file=config.cache'
1421 -n, --no-create do not create output files
1422 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1423
1424 Installation directories:
1425 --prefix=PREFIX install architecture-independent files in PREFIX
1426 [$ac_default_prefix]
1427 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1428 [PREFIX]
1429
1430 By default, \`make install' will install all the files in
1431 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1432 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1433 for instance \`--prefix=\$HOME'.
1434
1435 For better control, use the options below.
1436
1437 Fine tuning of the installation directories:
1438 --bindir=DIR user executables [EPREFIX/bin]
1439 --sbindir=DIR system admin executables [EPREFIX/sbin]
1440 --libexecdir=DIR program executables [EPREFIX/libexec]
1441 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1442 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1443 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1444 --libdir=DIR object code libraries [EPREFIX/lib]
1445 --includedir=DIR C header files [PREFIX/include]
1446 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1447 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1448 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1449 --infodir=DIR info documentation [DATAROOTDIR/info]
1450 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1451 --mandir=DIR man documentation [DATAROOTDIR/man]
1452 --docdir=DIR documentation root [DATAROOTDIR/doc/libXfontcache]
1453 --htmldir=DIR html documentation [DOCDIR]
1454 --dvidir=DIR dvi documentation [DOCDIR]
1455 --pdfdir=DIR pdf documentation [DOCDIR]
1456 --psdir=DIR ps documentation [DOCDIR]
1457 _ACEOF
1458
1459 cat <<\_ACEOF
1460
1461 Program names:
1462 --program-prefix=PREFIX prepend PREFIX to installed program names
1463 --program-suffix=SUFFIX append SUFFIX to installed program names
1464 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1465
1466 System types:
1467 --build=BUILD configure for building on BUILD [guessed]
1468 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1469 _ACEOF
1470 fi
1471
1472 if test -n "$ac_init_help"; then
1473 case $ac_init_help in
1474 short | recursive ) echo "Configuration of libXfontcache 1.0.4:";;
1475 esac
1476 cat <<\_ACEOF
1477
1478 Optional Features:
1479 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1480 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1481 --disable-pretty-cmds show all commands executed
1482 --enable-pretty-cmds do not output the entire command lines
1483 --enable-maintainer-mode enable make rules and dependencies not useful
1484 (and sometimes confusing) to the casual installer
1485 --disable-dependency-tracking speeds up one-time build
1486 --enable-dependency-tracking do not reject slow dependency extractors
1487 --enable-shared[=PKGS] build shared libraries [default=yes]
1488 --enable-static[=PKGS] build static libraries [default=yes]
1489 --enable-fast-install[=PKGS]
1490 optimize for fast installation [default=yes]
1491 --disable-libtool-lock avoid locking (might break parallel builds)
1492 --enable-malloc0returnsnull
1493 malloc(0) returns NULL (default: auto)
1494
1495 Optional Packages:
1496 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1497 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1498 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1499 --with-pic try to use only PIC/non-PIC objects [default=use
1500 both]
1501 --with-tags[=TAGS] include additional configurations [automatic]
1502 --with-release-version=STRING
1503 Use release version string in package name
1504
1505 Some influential environment variables:
1506 CC C compiler command
1507 CFLAGS C compiler flags
1508 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1509 nonstandard directory <lib dir>
1510 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1511 you have headers in a nonstandard directory <include dir>
1512 CPP C preprocessor
1513 CXX C++ compiler command
1514 CXXFLAGS C++ compiler flags
1515 CXXCPP C++ preprocessor
1516 F77 Fortran 77 compiler command
1517 FFLAGS Fortran 77 compiler flags
1518 PKG_CONFIG path to pkg-config utility
1519 XFONTCACHE_CFLAGS
1520 C compiler flags for XFONTCACHE, overriding pkg-config
1521 XFONTCACHE_LIBS
1522 linker flags for XFONTCACHE, overriding pkg-config
1523
1524 Use these variables to override the choices made by `configure' or to help
1525 it to find libraries and programs with nonstandard names/locations.
1526
1527 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1528 _ACEOF
1529 ac_status=$?
1530 fi
1531
1532 if test "$ac_init_help" = "recursive"; then
1533 # If there are subdirs, report their specific --help.
1534 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1535 test -d "$ac_dir" || continue
1536 ac_builddir=.
1537
1538 case "$ac_dir" in
1539 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1540 *)
1541 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1542 # A ".." for each directory in $ac_dir_suffix.
1543 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1544 case $ac_top_builddir_sub in
1545 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1546 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1547 esac ;;
1548 esac
1549 ac_abs_top_builddir=$ac_pwd
1550 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1551 # for backward compatibility:
1552 ac_top_builddir=$ac_top_build_prefix
1553
1554 case $srcdir in
1555 .) # We are building in place.
1556 ac_srcdir=.
1557 ac_top_srcdir=$ac_top_builddir_sub
1558 ac_abs_top_srcdir=$ac_pwd ;;
1559 [\\/]* | ?:[\\/]* ) # Absolute name.
1560 ac_srcdir=$srcdir$ac_dir_suffix;
1561 ac_top_srcdir=$srcdir
1562 ac_abs_top_srcdir=$srcdir ;;
1563 *) # Relative name.
1564 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1565 ac_top_srcdir=$ac_top_build_prefix$srcdir
1566 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1567 esac
1568 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1569
1570 cd "$ac_dir" || { ac_status=$?; continue; }
1571 # Check for guested configure.
1572 if test -f "$ac_srcdir/configure.gnu"; then
1573 echo &&
1574 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1575 elif test -f "$ac_srcdir/configure"; then
1576 echo &&
1577 $SHELL "$ac_srcdir/configure" --help=recursive
1578 else
1579 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1580 fi || ac_status=$?
1581 cd "$ac_pwd" || { ac_status=$?; break; }
1582 done
1583 fi
1584
1585 test -n "$ac_init_help" && exit $ac_status
1586 if $ac_init_version; then
1587 cat <<\_ACEOF
1588 libXfontcache configure 1.0.4
1589 generated by GNU Autoconf 2.60
1590
1591 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1592 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1593 This configure script is free software; the Free Software Foundation
1594 gives unlimited permission to copy, distribute and modify it.
1595 _ACEOF
1596 exit
1597 fi
1598 cat >config.log <<_ACEOF
1599 This file contains any messages produced by compilers while
1600 running configure, to aid debugging if configure makes a mistake.
1601
1602 It was created by libXfontcache $as_me 1.0.4, which was
1603 generated by GNU Autoconf 2.60. Invocation command line was
1604
1605 $ $0 $@
1606
1607 _ACEOF
1608 exec 5>>config.log
1609 {
1610 cat <<_ASUNAME
1611 ## --------- ##
1612 ## Platform. ##
1613 ## --------- ##
1614
1615 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1616 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1617 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1618 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1619 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1620
1621 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1622 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1623
1624 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1625 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1626 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1627 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1628 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1629 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1630 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1631
1632 _ASUNAME
1633
1634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1635 for as_dir in $PATH
1636 do
1637 IFS=$as_save_IFS
1638 test -z "$as_dir" && as_dir=.
1639 echo "PATH: $as_dir"
1640 done
1641 IFS=$as_save_IFS
1642
1643 } >&5
1644
1645 cat >&5 <<_ACEOF
1646
1647
1648 ## ----------- ##
1649 ## Core tests. ##
1650 ## ----------- ##
1651
1652 _ACEOF
1653
1654
1655 # Keep a trace of the command line.
1656 # Strip out --no-create and --no-recursion so they do not pile up.
1657 # Strip out --silent because we don't want to record it for future runs.
1658 # Also quote any args containing shell meta-characters.
1659 # Make two passes to allow for proper duplicate-argument suppression.
1660 ac_configure_args=
1661 ac_configure_args0=
1662 ac_configure_args1=
1663 ac_must_keep_next=false
1664 for ac_pass in 1 2
1665 do
1666 for ac_arg
1667 do
1668 case $ac_arg in
1669 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1670 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1671 | -silent | --silent | --silen | --sile | --sil)
1672 continue ;;
1673 *\'*)
1674 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1675 esac
1676 case $ac_pass in
1677 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1678 2)
1679 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1680 if test $ac_must_keep_next = true; then
1681 ac_must_keep_next=false # Got value, back to normal.
1682 else
1683 case $ac_arg in
1684 *=* | --config-cache | -C | -disable-* | --disable-* \
1685 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1686 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1687 | -with-* | --with-* | -without-* | --without-* | --x)
1688 case "$ac_configure_args0 " in
1689 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1690 esac
1691 ;;
1692 -* ) ac_must_keep_next=true ;;
1693 esac
1694 fi
1695 ac_configure_args="$ac_configure_args '$ac_arg'"
1696 ;;
1697 esac
1698 done
1699 done
1700 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1701 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1702
1703 # When interrupted or exit'd, cleanup temporary files, and complete
1704 # config.log. We remove comments because anyway the quotes in there
1705 # would cause problems or look ugly.
1706 # WARNING: Use '\'' to represent an apostrophe within the trap.
1707 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1708 trap 'exit_status=$?
1709 # Save into config.log some information that might help in debugging.
1710 {
1711 echo
1712
1713 cat <<\_ASBOX
1714 ## ---------------- ##
1715 ## Cache variables. ##
1716 ## ---------------- ##
1717 _ASBOX
1718 echo
1719 # The following way of writing the cache mishandles newlines in values,
1720 (
1721 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1722 eval ac_val=\$$ac_var
1723 case $ac_val in #(
1724 *${as_nl}*)
1725 case $ac_var in #(
1726 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1727 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1728 esac
1729 case $ac_var in #(
1730 _ | IFS | as_nl) ;; #(
1731 *) $as_unset $ac_var ;;
1732 esac ;;
1733 esac
1734 done
1735 (set) 2>&1 |
1736 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1737 *${as_nl}ac_space=\ *)
1738 sed -n \
1739 "s/'\''/'\''\\\\'\'''\''/g;
1740 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1741 ;; #(
1742 *)
1743 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1744 ;;
1745 esac |
1746 sort
1747 )
1748 echo
1749
1750 cat <<\_ASBOX
1751 ## ----------------- ##
1752 ## Output variables. ##
1753 ## ----------------- ##
1754 _ASBOX
1755 echo
1756 for ac_var in $ac_subst_vars
1757 do
1758 eval ac_val=\$$ac_var
1759 case $ac_val in
1760 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1761 esac
1762 echo "$ac_var='\''$ac_val'\''"
1763 done | sort
1764 echo
1765
1766 if test -n "$ac_subst_files"; then
1767 cat <<\_ASBOX
1768 ## ------------------- ##
1769 ## File substitutions. ##
1770 ## ------------------- ##
1771 _ASBOX
1772 echo
1773 for ac_var in $ac_subst_files
1774 do
1775 eval ac_val=\$$ac_var
1776 case $ac_val in
1777 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1778 esac
1779 echo "$ac_var='\''$ac_val'\''"
1780 done | sort
1781 echo
1782 fi
1783
1784 if test -s confdefs.h; then
1785 cat <<\_ASBOX
1786 ## ----------- ##
1787 ## confdefs.h. ##
1788 ## ----------- ##
1789 _ASBOX
1790 echo
1791 cat confdefs.h
1792 echo
1793 fi
1794 test "$ac_signal" != 0 &&
1795 echo "$as_me: caught signal $ac_signal"
1796 echo "$as_me: exit $exit_status"
1797 } >&5
1798 rm -f core *.core core.conftest.* &&
1799 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1800 exit $exit_status
1801 ' 0
1802 for ac_signal in 1 2 13 15; do
1803 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1804 done
1805 ac_signal=0
1806
1807 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1808 rm -f -r conftest* confdefs.h
1809
1810 # Predefined preprocessor variables.
1811
1812 cat >>confdefs.h <<_ACEOF
1813 #define PACKAGE_NAME "$PACKAGE_NAME"
1814 _ACEOF
1815
1816
1817 cat >>confdefs.h <<_ACEOF
1818 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1819 _ACEOF
1820
1821
1822 cat >>confdefs.h <<_ACEOF
1823 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1824 _ACEOF
1825
1826
1827 cat >>confdefs.h <<_ACEOF
1828 #define PACKAGE_STRING "$PACKAGE_STRING"
1829 _ACEOF
1830
1831
1832 cat >>confdefs.h <<_ACEOF
1833 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1834 _ACEOF
1835
1836
1837 # Let the site file select an alternate cache file if it wants to.
1838 # Prefer explicitly selected file to automatically selected ones.
1839 if test -n "$CONFIG_SITE"; then
1840 set x "$CONFIG_SITE"
1841 elif test "x$prefix" != xNONE; then
1842 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1843 else
1844 set x "$ac_default_prefix/share/config.site" \
1845 "$ac_default_prefix/etc/config.site"
1846 fi
1847 shift
1848 for ac_site_file
1849 do
1850 if test -r "$ac_site_file"; then
1851 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1852 echo "$as_me: loading site script $ac_site_file" >&6;}
1853 sed 's/^/| /' "$ac_site_file" >&5
1854 . "$ac_site_file"
1855 fi
1856 done
1857
1858 if test -r "$cache_file"; then
1859 # Some versions of bash will fail to source /dev/null (special
1860 # files actually), so we avoid doing that.
1861 if test -f "$cache_file"; then
1862 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1863 echo "$as_me: loading cache $cache_file" >&6;}
1864 case $cache_file in
1865 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1866 *) . "./$cache_file";;
1867 esac
1868 fi
1869 else
1870 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1871 echo "$as_me: creating cache $cache_file" >&6;}
1872 >$cache_file
1873 fi
1874
1875 # Check that the precious variables saved in the cache have kept the same
1876 # value.
1877 ac_cache_corrupted=false
1878 for ac_var in $ac_precious_vars; do
1879 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1880 eval ac_new_set=\$ac_env_${ac_var}_set
1881 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1882 eval ac_new_val=\$ac_env_${ac_var}_value
1883 case $ac_old_set,$ac_new_set in
1884 set,)
1885 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1886 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1887 ac_cache_corrupted=: ;;
1888 ,set)
1889 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1890 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1891 ac_cache_corrupted=: ;;
1892 ,);;
1893 *)
1894 if test "x$ac_old_val" != "x$ac_new_val"; then
1895 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1896 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1897 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1898 echo "$as_me: former value: $ac_old_val" >&2;}
1899 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1900 echo "$as_me: current value: $ac_new_val" >&2;}
1901 ac_cache_corrupted=:
1902 fi;;
1903 esac
1904 # Pass precious variables to config.status.
1905 if test "$ac_new_set" = set; then
1906 case $ac_new_val in
1907 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1908 *) ac_arg=$ac_var=$ac_new_val ;;
1909 esac
1910 case " $ac_configure_args " in
1911 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1912 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1913 esac
1914 fi
1915 done
1916 if $ac_cache_corrupted; then
1917 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1918 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1919 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1920 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1921 { (exit 1); exit 1; }; }
1922 fi
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948 ac_ext=c
1949 ac_cpp='$CPP $CPPFLAGS'
1950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1953
1954
1955 am__api_version="1.9"
1956 ac_aux_dir=
1957 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1958 if test -f "$ac_dir/install-sh"; then
1959 ac_aux_dir=$ac_dir
1960 ac_install_sh="$ac_aux_dir/install-sh -c"
1961 break
1962 elif test -f "$ac_dir/install.sh"; then
1963 ac_aux_dir=$ac_dir
1964 ac_install_sh="$ac_aux_dir/install.sh -c"
1965 break
1966 elif test -f "$ac_dir/shtool"; then
1967 ac_aux_dir=$ac_dir
1968 ac_install_sh="$ac_aux_dir/shtool install -c"
1969 break
1970 fi
1971 done
1972 if test -z "$ac_aux_dir"; then
1973 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1974 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1975 { (exit 1); exit 1; }; }
1976 fi
1977
1978 # These three variables are undocumented and unsupported,
1979 # and are intended to be withdrawn in a future Autoconf release.
1980 # They can cause serious problems if a builder's source tree is in a directory
1981 # whose full name contains unusual characters.
1982 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1983 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1984 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1985
1986
1987 # Find a good install program. We prefer a C program (faster),
1988 # so one script is as good as another. But avoid the broken or
1989 # incompatible versions:
1990 # SysV /etc/install, /usr/sbin/install
1991 # SunOS /usr/etc/install
1992 # IRIX /sbin/install
1993 # AIX /bin/install
1994 # AmigaOS /C/install, which installs bootblocks on floppy discs
1995 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1996 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1997 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1998 # OS/2's system install, which has a completely different semantic
1999 # ./install, which can be erroneously created by make from ./install.sh.
2000 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2001 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2002 if test -z "$INSTALL"; then
2003 if test "${ac_cv_path_install+set}" = set; then
2004 echo $ECHO_N "(cached) $ECHO_C" >&6
2005 else
2006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2007 for as_dir in $PATH
2008 do
2009 IFS=$as_save_IFS
2010 test -z "$as_dir" && as_dir=.
2011 # Account for people who put trailing slashes in PATH elements.
2012 case $as_dir/ in
2013 ./ | .// | /cC/* | \
2014 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2015 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2016 /usr/ucb/* ) ;;
2017 *)
2018 # OSF1 and SCO ODT 3.0 have their own names for install.
2019 # Don't use installbsd from OSF since it installs stuff as root
2020 # by default.
2021 for ac_prog in ginstall scoinst install; do
2022 for ac_exec_ext in '' $ac_executable_extensions; do
2023 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
2024 if test $ac_prog = install &&
2025 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2026 # AIX install. It has an incompatible calling convention.
2027 :
2028 elif test $ac_prog = install &&
2029 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2030 # program-specific install script used by HP pwplus--don't use.
2031 :
2032 else
2033 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2034 break 3
2035 fi
2036 fi
2037 done
2038 done
2039 ;;
2040 esac
2041 done
2042 IFS=$as_save_IFS
2043
2044
2045 fi
2046 if test "${ac_cv_path_install+set}" = set; then
2047 INSTALL=$ac_cv_path_install
2048 else
2049 # As a last resort, use the slow shell script. Don't cache a
2050 # value for INSTALL within a source directory, because that will
2051 # break other packages using the cache if that directory is
2052 # removed, or if the value is a relative name.
2053 INSTALL=$ac_install_sh
2054 fi
2055 fi
2056 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2057 echo "${ECHO_T}$INSTALL" >&6; }
2058
2059 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2060 # It thinks the first close brace ends the variable substitution.
2061 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2062
2063 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2064
2065 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2066
2067 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2068 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2069 # Just in case
2070 sleep 1
2071 echo timestamp > conftest.file
2072 # Do `set' in a subshell so we don't clobber the current shell's
2073 # arguments. Must try -L first in case configure is actually a
2074 # symlink; some systems play weird games with the mod time of symlinks
2075 # (eg FreeBSD returns the mod time of the symlink's containing
2076 # directory).
2077 if (
2078 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2079 if test "$*" = "X"; then
2080 # -L didn't work.
2081 set X `ls -t $srcdir/configure conftest.file`
2082 fi
2083 rm -f conftest.file
2084 if test "$*" != "X $srcdir/configure conftest.file" \
2085 && test "$*" != "X conftest.file $srcdir/configure"; then
2086
2087 # If neither matched, then we have a broken ls. This can happen
2088 # if, for instance, CONFIG_SHELL is bash and it inherits a
2089 # broken ls alias from the environment. This has actually
2090 # happened. Such a system could not be considered "sane".
2091 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2092 alias in your environment" >&5
2093 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2094 alias in your environment" >&2;}
2095 { (exit 1); exit 1; }; }
2096 fi
2097
2098 test "$2" = conftest.file
2099 )
2100 then
2101 # Ok.
2102 :
2103 else
2104 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2105 Check your system clock" >&5
2106 echo "$as_me: error: newly created file is older than distributed files!
2107 Check your system clock" >&2;}
2108 { (exit 1); exit 1; }; }
2109 fi
2110 { echo "$as_me:$LINENO: result: yes" >&5
2111 echo "${ECHO_T}yes" >&6; }
2112 test "$program_prefix" != NONE &&
2113 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2114 # Use a double $ so make ignores it.
2115 test "$program_suffix" != NONE &&
2116 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2117 # Double any \ or $. echo might interpret backslashes.
2118 # By default was `s,x,x', remove it if useless.
2119 cat <<\_ACEOF >conftest.sed
2120 s/[\\$]/&&/g;s/;s,x,x,$//
2121 _ACEOF
2122 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2123 rm -f conftest.sed
2124
2125 # expand $ac_aux_dir to an absolute path
2126 am_aux_dir=`cd $ac_aux_dir && pwd`
2127
2128 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2129 # Use eval to expand $SHELL
2130 if eval "$MISSING --run true"; then
2131 am_missing_run="$MISSING --run "
2132 else
2133 am_missing_run=
2134 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2135 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2136 fi
2137
2138 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2139 # We used to keeping the `.' as first argument, in order to
2140 # allow $(mkdir_p) to be used without argument. As in
2141 # $(mkdir_p) $(somedir)
2142 # where $(somedir) is conditionally defined. However this is wrong
2143 # for two reasons:
2144 # 1. if the package is installed by a user who cannot write `.'
2145 # make install will fail,
2146 # 2. the above comment should most certainly read
2147 # $(mkdir_p) $(DESTDIR)$(somedir)
2148 # so it does not work when $(somedir) is undefined and
2149 # $(DESTDIR) is not.
2150 # To support the latter case, we have to write
2151 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2152 # so the `.' trick is pointless.
2153 mkdir_p='mkdir -p --'
2154 else
2155 # On NextStep and OpenStep, the `mkdir' command does not
2156 # recognize any option. It will interpret all options as
2157 # directories to create, and then abort because `.' already
2158 # exists.
2159 for d in ./-p ./--version;
2160 do
2161 test -d $d && rmdir $d
2162 done
2163 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2164 if test -f "$ac_aux_dir/mkinstalldirs"; then
2165 mkdir_p='$(mkinstalldirs)'
2166 else
2167 mkdir_p='$(install_sh) -d'
2168 fi
2169 fi
2170
2171 for ac_prog in gawk mawk nawk awk
2172 do
2173 # Extract the first word of "$ac_prog", so it can be a program name with args.
2174 set dummy $ac_prog; ac_word=$2
2175 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2177 if test "${ac_cv_prog_AWK+set}" = set; then
2178 echo $ECHO_N "(cached) $ECHO_C" >&6
2179 else
2180 if test -n "$AWK"; then
2181 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2182 else
2183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2184 for as_dir in $PATH
2185 do
2186 IFS=$as_save_IFS
2187 test -z "$as_dir" && as_dir=.
2188 for ac_exec_ext in '' $ac_executable_extensions; do
2189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2190 ac_cv_prog_AWK="$ac_prog"
2191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2192 break 2
2193 fi
2194 done
2195 done
2196 IFS=$as_save_IFS
2197
2198 fi
2199 fi
2200 AWK=$ac_cv_prog_AWK
2201 if test -n "$AWK"; then
2202 { echo "$as_me:$LINENO: result: $AWK" >&5
2203 echo "${ECHO_T}$AWK" >&6; }
2204 else
2205 { echo "$as_me:$LINENO: result: no" >&5
2206 echo "${ECHO_T}no" >&6; }
2207 fi
2208
2209
2210 test -n "$AWK" && break
2211 done
2212
2213 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2214 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2215 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2216 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2217 echo $ECHO_N "(cached) $ECHO_C" >&6
2218 else
2219 cat >conftest.make <<\_ACEOF
2220 SHELL = /bin/sh
2221 all:
2222 @echo '@@@%%%=$(MAKE)=@@@%%%'
2223 _ACEOF
2224 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2225 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2226 *@@@%%%=?*=@@@%%%*)
2227 eval ac_cv_prog_make_${ac_make}_set=yes;;
2228 *)
2229 eval ac_cv_prog_make_${ac_make}_set=no;;
2230 esac
2231 rm -f conftest.make
2232 fi
2233 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2234 { echo "$as_me:$LINENO: result: yes" >&5
2235 echo "${ECHO_T}yes" >&6; }
2236 SET_MAKE=
2237 else
2238 { echo "$as_me:$LINENO: result: no" >&5
2239 echo "${ECHO_T}no" >&6; }
2240 SET_MAKE="MAKE=${MAKE-make}"
2241 fi
2242
2243 rm -rf .tst 2>/dev/null
2244 mkdir .tst 2>/dev/null
2245 if test -d .tst; then
2246 am__leading_dot=.
2247 else
2248 am__leading_dot=_
2249 fi
2250 rmdir .tst 2>/dev/null
2251
2252 # Check whether --enable-pretty-cmds was given.
2253 if test "${enable_pretty_cmds+set}" = set; then
2254 enableval=$enable_pretty_cmds;
2255 fi
2256
2257 AMSHOWCMDSAT=''
2258 AMDEPSHOWCMDSAT=''
2259 AMPRETTYECHO=true
2260 AMCMDECHO=echo
2261 if test "x$enable_pretty_cmds" = xyes;
2262 then
2263 AMSHOWCMDSAT='@'
2264 test "x$enable_dependency_tracking" = xno && AMDEPSHOWCMDSAT='@'
2265 AMPRETTYECHO=echo
2266 AMCMDECHO=true
2267 LT_QUIET='--quiet'
2268 fi
2269
2270
2271
2272
2273
2274
2275 # test to see if srcdir already configured
2276 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2277 test -f $srcdir/config.status; then
2278 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2279 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2280 { (exit 1); exit 1; }; }
2281 fi
2282
2283 # test whether we have cygpath
2284 if test -z "$CYGPATH_W"; then
2285 if (cygpath --version) >/dev/null 2>/dev/null; then
2286 CYGPATH_W='cygpath -w'
2287 else
2288 CYGPATH_W=echo
2289 fi
2290 fi
2291
2292
2293 # Define the identity of the package.
2294 PACKAGE='libXfontcache'
2295 VERSION='1.0.4'
2296
2297
2298 cat >>confdefs.h <<_ACEOF
2299 #define PACKAGE "$PACKAGE"
2300 _ACEOF
2301
2302
2303 cat >>confdefs.h <<_ACEOF
2304 #define VERSION "$VERSION"
2305 _ACEOF
2306
2307 # Some tools Automake needs.
2308
2309 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2310
2311
2312 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2313
2314
2315 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2316
2317
2318 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2319
2320
2321 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2322
2323 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2324
2325 # Installed binaries are usually stripped using `strip' when the user
2326 # run `make install-strip'. However `strip' might not be the right
2327 # tool to use in cross-compilation environments, therefore Automake
2328 # will honor the `STRIP' environment variable to overrule this program.
2329 if test "$cross_compiling" != no; then
2330 if test -n "$ac_tool_prefix"; then
2331 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2332 set dummy ${ac_tool_prefix}strip; ac_word=$2
2333 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2335 if test "${ac_cv_prog_STRIP+set}" = set; then
2336 echo $ECHO_N "(cached) $ECHO_C" >&6
2337 else
2338 if test -n "$STRIP"; then
2339 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2340 else
2341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2342 for as_dir in $PATH
2343 do
2344 IFS=$as_save_IFS
2345 test -z "$as_dir" && as_dir=.
2346 for ac_exec_ext in '' $ac_executable_extensions; do
2347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2348 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2350 break 2
2351 fi
2352 done
2353 done
2354 IFS=$as_save_IFS
2355
2356 fi
2357 fi
2358 STRIP=$ac_cv_prog_STRIP
2359 if test -n "$STRIP"; then
2360 { echo "$as_me:$LINENO: result: $STRIP" >&5
2361 echo "${ECHO_T}$STRIP" >&6; }
2362 else
2363 { echo "$as_me:$LINENO: result: no" >&5
2364 echo "${ECHO_T}no" >&6; }
2365 fi
2366
2367
2368 fi
2369 if test -z "$ac_cv_prog_STRIP"; then
2370 ac_ct_STRIP=$STRIP
2371 # Extract the first word of "strip", so it can be a program name with args.
2372 set dummy strip; ac_word=$2
2373 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2375 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2376 echo $ECHO_N "(cached) $ECHO_C" >&6
2377 else
2378 if test -n "$ac_ct_STRIP"; then
2379 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2380 else
2381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2382 for as_dir in $PATH
2383 do
2384 IFS=$as_save_IFS
2385 test -z "$as_dir" && as_dir=.
2386 for ac_exec_ext in '' $ac_executable_extensions; do
2387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2388 ac_cv_prog_ac_ct_STRIP="strip"
2389 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2390 break 2
2391 fi
2392 done
2393 done
2394 IFS=$as_save_IFS
2395
2396 fi
2397 fi
2398 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2399 if test -n "$ac_ct_STRIP"; then
2400 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2401 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2402 else
2403 { echo "$as_me:$LINENO: result: no" >&5
2404 echo "${ECHO_T}no" >&6; }
2405 fi
2406
2407 if test "x$ac_ct_STRIP" = x; then
2408 STRIP=":"
2409 else
2410 case $cross_compiling:$ac_tool_warned in
2411 yes:)
2412 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2413 whose name does not start with the host triplet. If you think this
2414 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
2415 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2416 whose name does not start with the host triplet. If you think this
2417 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
2418 ac_tool_warned=yes ;;
2419 esac
2420 STRIP=$ac_ct_STRIP
2421 fi
2422 else
2423 STRIP="$ac_cv_prog_STRIP"
2424 fi
2425
2426 fi
2427 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2428
2429 # We need awk for the "check" target. The system "awk" is bad on
2430 # some platforms.
2431 # Always define AMTAR for backward compatibility.
2432
2433 AMTAR=${AMTAR-"${am_missing_run}tar"}
2434
2435 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2436
2437
2438
2439
2440
2441
2442 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2443 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2444 # Check whether --enable-maintainer-mode was given.
2445 if test "${enable_maintainer_mode+set}" = set; then
2446 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2447 else
2448 USE_MAINTAINER_MODE=no
2449 fi
2450
2451 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2452 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2453
2454
2455 if test $USE_MAINTAINER_MODE = yes; then
2456 MAINTAINER_MODE_TRUE=
2457 MAINTAINER_MODE_FALSE='#'
2458 else
2459 MAINTAINER_MODE_TRUE='#'
2460 MAINTAINER_MODE_FALSE=
2461 fi
2462
2463 MAINT=$MAINTAINER_MODE_TRUE
2464
2465
2466
2467 ac_config_headers="$ac_config_headers config.h"
2468
2469
2470 # Check for progs
2471 ac_ext=c
2472 ac_cpp='$CPP $CPPFLAGS'
2473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2476 if test -n "$ac_tool_prefix"; then
2477 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2478 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2479 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2481 if test "${ac_cv_prog_CC+set}" = set; then
2482 echo $ECHO_N "(cached) $ECHO_C" >&6
2483 else
2484 if test -n "$CC"; then
2485 ac_cv_prog_CC="$CC" # Let the user override the test.
2486 else
2487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2488 for as_dir in $PATH
2489 do
2490 IFS=$as_save_IFS
2491 test -z "$as_dir" && as_dir=.
2492 for ac_exec_ext in '' $ac_executable_extensions; do
2493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2494 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2496 break 2
2497 fi
2498 done
2499 done
2500 IFS=$as_save_IFS
2501
2502 fi
2503 fi
2504 CC=$ac_cv_prog_CC
2505 if test -n "$CC"; then
2506 { echo "$as_me:$LINENO: result: $CC" >&5
2507 echo "${ECHO_T}$CC" >&6; }
2508 else
2509 { echo "$as_me:$LINENO: result: no" >&5
2510 echo "${ECHO_T}no" >&6; }
2511 fi
2512
2513
2514 fi
2515 if test -z "$ac_cv_prog_CC"; then
2516 ac_ct_CC=$CC
2517 # Extract the first word of "gcc", so it can be a program name with args.
2518 set dummy gcc; ac_word=$2
2519 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2521 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2522 echo $ECHO_N "(cached) $ECHO_C" >&6
2523 else
2524 if test -n "$ac_ct_CC"; then
2525 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2526 else
2527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2528 for as_dir in $PATH
2529 do
2530 IFS=$as_save_IFS
2531 test -z "$as_dir" && as_dir=.
2532 for ac_exec_ext in '' $ac_executable_extensions; do
2533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2534 ac_cv_prog_ac_ct_CC="gcc"
2535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2536 break 2
2537 fi
2538 done
2539 done
2540 IFS=$as_save_IFS
2541
2542 fi
2543 fi
2544 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2545 if test -n "$ac_ct_CC"; then
2546 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2547 echo "${ECHO_T}$ac_ct_CC" >&6; }
2548 else
2549 { echo "$as_me:$LINENO: result: no" >&5
2550 echo "${ECHO_T}no" >&6; }
2551 fi
2552
2553 if test "x$ac_ct_CC" = x; then
2554 CC=""
2555 else
2556 case $cross_compiling:$ac_tool_warned in
2557 yes:)
2558 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2559 whose name does not start with the host triplet. If you think this
2560 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
2561 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2562 whose name does not start with the host triplet. If you think this
2563 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
2564 ac_tool_warned=yes ;;
2565 esac
2566 CC=$ac_ct_CC
2567 fi
2568 else
2569 CC="$ac_cv_prog_CC"
2570 fi
2571
2572 if test -z "$CC"; then
2573 if test -n "$ac_tool_prefix"; then
2574 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2575 set dummy ${ac_tool_prefix}cc; ac_word=$2
2576 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2578 if test "${ac_cv_prog_CC+set}" = set; then
2579 echo $ECHO_N "(cached) $ECHO_C" >&6
2580 else
2581 if test -n "$CC"; then
2582 ac_cv_prog_CC="$CC" # Let the user override the test.
2583 else
2584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2585 for as_dir in $PATH
2586 do
2587 IFS=$as_save_IFS
2588 test -z "$as_dir" && as_dir=.
2589 for ac_exec_ext in '' $ac_executable_extensions; do
2590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2591 ac_cv_prog_CC="${ac_tool_prefix}cc"
2592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2593 break 2
2594 fi
2595 done
2596 done
2597 IFS=$as_save_IFS
2598
2599 fi
2600 fi
2601 CC=$ac_cv_prog_CC
2602 if test -n "$CC"; then
2603 { echo "$as_me:$LINENO: result: $CC" >&5
2604 echo "${ECHO_T}$CC" >&6; }
2605 else
2606 { echo "$as_me:$LINENO: result: no" >&5
2607 echo "${ECHO_T}no" >&6; }
2608 fi
2609
2610
2611 fi
2612 fi
2613 if test -z "$CC"; then
2614 # Extract the first word of "cc", so it can be a program name with args.
2615 set dummy cc; ac_word=$2
2616 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2618 if test "${ac_cv_prog_CC+set}" = set; then
2619 echo $ECHO_N "(cached) $ECHO_C" >&6
2620 else
2621 if test -n "$CC"; then
2622 ac_cv_prog_CC="$CC" # Let the user override the test.
2623 else
2624 ac_prog_rejected=no
2625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2626 for as_dir in $PATH
2627 do
2628 IFS=$as_save_IFS
2629 test -z "$as_dir" && as_dir=.
2630 for ac_exec_ext in '' $ac_executable_extensions; do
2631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2632 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2633 ac_prog_rejected=yes
2634 continue
2635 fi
2636 ac_cv_prog_CC="cc"
2637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2638 break 2
2639 fi
2640 done
2641 done
2642 IFS=$as_save_IFS
2643
2644 if test $ac_prog_rejected = yes; then
2645 # We found a bogon in the path, so make sure we never use it.
2646 set dummy $ac_cv_prog_CC
2647 shift
2648 if test $# != 0; then
2649 # We chose a different compiler from the bogus one.
2650 # However, it has the same basename, so the bogon will be chosen
2651 # first if we set CC to just the basename; use the full file name.
2652 shift
2653 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2654 fi
2655 fi
2656 fi
2657 fi
2658 CC=$ac_cv_prog_CC
2659 if test -n "$CC"; then
2660 { echo "$as_me:$LINENO: result: $CC" >&5
2661 echo "${ECHO_T}$CC" >&6; }
2662 else
2663 { echo "$as_me:$LINENO: result: no" >&5
2664 echo "${ECHO_T}no" >&6; }
2665 fi
2666
2667
2668 fi
2669 if test -z "$CC"; then
2670 if test -n "$ac_tool_prefix"; then
2671 for ac_prog in cl.exe
2672 do
2673 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2674 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2675 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2677 if test "${ac_cv_prog_CC+set}" = set; then
2678 echo $ECHO_N "(cached) $ECHO_C" >&6
2679 else
2680 if test -n "$CC"; then
2681 ac_cv_prog_CC="$CC" # Let the user override the test.
2682 else
2683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2684 for as_dir in $PATH
2685 do
2686 IFS=$as_save_IFS
2687 test -z "$as_dir" && as_dir=.
2688 for ac_exec_ext in '' $ac_executable_extensions; do
2689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2690 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2692 break 2
2693 fi
2694 done
2695 done
2696 IFS=$as_save_IFS
2697
2698 fi
2699 fi
2700 CC=$ac_cv_prog_CC
2701 if test -n "$CC"; then
2702 { echo "$as_me:$LINENO: result: $CC" >&5
2703 echo "${ECHO_T}$CC" >&6; }
2704 else
2705 { echo "$as_me:$LINENO: result: no" >&5
2706 echo "${ECHO_T}no" >&6; }
2707 fi
2708
2709
2710 test -n "$CC" && break
2711 done
2712 fi
2713 if test -z "$CC"; then
2714 ac_ct_CC=$CC
2715 for ac_prog in cl.exe
2716 do
2717 # Extract the first word of "$ac_prog", so it can be a program name with args.
2718 set dummy $ac_prog; ac_word=$2
2719 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2721 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2722 echo $ECHO_N "(cached) $ECHO_C" >&6
2723 else
2724 if test -n "$ac_ct_CC"; then
2725 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2726 else
2727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2728 for as_dir in $PATH
2729 do
2730 IFS=$as_save_IFS
2731 test -z "$as_dir" && as_dir=.
2732 for ac_exec_ext in '' $ac_executable_extensions; do
2733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2734 ac_cv_prog_ac_ct_CC="$ac_prog"
2735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2736 break 2
2737 fi
2738 done
2739 done
2740 IFS=$as_save_IFS
2741
2742 fi
2743 fi
2744 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2745 if test -n "$ac_ct_CC"; then
2746 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2747 echo "${ECHO_T}$ac_ct_CC" >&6; }
2748 else
2749 { echo "$as_me:$LINENO: result: no" >&5
2750 echo "${ECHO_T}no" >&6; }
2751 fi
2752
2753
2754 test -n "$ac_ct_CC" && break
2755 done
2756
2757 if test "x$ac_ct_CC" = x; then
2758 CC=""
2759 else
2760 case $cross_compiling:$ac_tool_warned in
2761 yes:)
2762 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2763 whose name does not start with the host triplet. If you think this
2764 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
2765 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2766 whose name does not start with the host triplet. If you think this
2767 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
2768 ac_tool_warned=yes ;;
2769 esac
2770 CC=$ac_ct_CC
2771 fi
2772 fi
2773
2774 fi
2775
2776
2777 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2778 See \`config.log' for more details." >&5
2779 echo "$as_me: error: no acceptable C compiler found in \$PATH
2780 See \`config.log' for more details." >&2;}
2781 { (exit 1); exit 1; }; }
2782
2783 # Provide some information about the compiler.
2784 echo "$as_me:$LINENO: checking for C compiler version" >&5
2785 ac_compiler=`set X $ac_compile; echo $2`
2786 { (ac_try="$ac_compiler --version >&5"
2787 case "(($ac_try" in
2788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2789 *) ac_try_echo=$ac_try;;
2790 esac
2791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2792 (eval "$ac_compiler --version >&5") 2>&5
2793 ac_status=$?
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); }
2796 { (ac_try="$ac_compiler -v >&5"
2797 case "(($ac_try" in
2798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2799 *) ac_try_echo=$ac_try;;
2800 esac
2801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2802 (eval "$ac_compiler -v >&5") 2>&5
2803 ac_status=$?
2804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805 (exit $ac_status); }
2806 { (ac_try="$ac_compiler -V >&5"
2807 case "(($ac_try" in
2808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2809 *) ac_try_echo=$ac_try;;
2810 esac
2811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2812 (eval "$ac_compiler -V >&5") 2>&5
2813 ac_status=$?
2814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815 (exit $ac_status); }
2816
2817 cat >conftest.$ac_ext <<_ACEOF
2818 /* confdefs.h. */
2819 _ACEOF
2820 cat confdefs.h >>conftest.$ac_ext
2821 cat >>conftest.$ac_ext <<_ACEOF
2822 /* end confdefs.h. */
2823
2824 int
2825 main ()
2826 {
2827
2828 ;
2829 return 0;
2830 }
2831 _ACEOF
2832 ac_clean_files_save=$ac_clean_files
2833 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2834 # Try to create an executable without -o first, disregard a.out.
2835 # It will help us diagnose broken compilers, and finding out an intuition
2836 # of exeext.
2837 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2838 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2839 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2840 #
2841 # List of possible output files, starting from the most likely.
2842 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2843 # only as a last resort. b.out is created by i960 compilers.
2844 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2845 #
2846 # The IRIX 6 linker writes into existing files which may not be
2847 # executable, retaining their permissions. Remove them first so a
2848 # subsequent execution test works.
2849 ac_rmfiles=
2850 for ac_file in $ac_files
2851 do
2852 case $ac_file in
2853 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2854 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2855 esac
2856 done
2857 rm -f $ac_rmfiles
2858
2859 if { (ac_try="$ac_link_default"
2860 case "(($ac_try" in
2861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2862 *) ac_try_echo=$ac_try;;
2863 esac
2864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2865 (eval "$ac_link_default") 2>&5
2866 ac_status=$?
2867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868 (exit $ac_status); }; then
2869 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2870 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2871 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2872 # so that the user can short-circuit this test for compilers unknown to
2873 # Autoconf.
2874 for ac_file in $ac_files
2875 do
2876 test -f "$ac_file" || continue
2877 case $ac_file in
2878 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2879 ;;
2880 [ab].out )
2881 # We found the default executable, but exeext='' is most
2882 # certainly right.
2883 break;;
2884 *.* )
2885 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2886 then :; else
2887 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2888 fi
2889 # We set ac_cv_exeext here because the later test for it is not
2890 # safe: cross compilers may not add the suffix if given an `-o'
2891 # argument, so we may need to know it at that point already.
2892 # Even if this section looks crufty: it has the advantage of
2893 # actually working.
2894 break;;
2895 * )
2896 break;;
2897 esac
2898 done
2899 test "$ac_cv_exeext" = no && ac_cv_exeext=
2900
2901 else
2902 echo "$as_me: failed program was:" >&5
2903 sed 's/^/| /' conftest.$ac_ext >&5
2904
2905 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2906 See \`config.log' for more details." >&5
2907 echo "$as_me: error: C compiler cannot create executables
2908 See \`config.log' for more details." >&2;}
2909 { (exit 77); exit 77; }; }
2910 fi
2911
2912 ac_exeext=$ac_cv_exeext
2913 { echo "$as_me:$LINENO: result: $ac_file" >&5
2914 echo "${ECHO_T}$ac_file" >&6; }
2915
2916 # Check that the compiler produces executables we can run. If not, either
2917 # the compiler is broken, or we cross compile.
2918 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2919 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2920 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2921 # If not cross compiling, check that we can run a simple program.
2922 if test "$cross_compiling" != yes; then
2923 if { ac_try='./$ac_file'
2924 { (case "(($ac_try" in
2925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2926 *) ac_try_echo=$ac_try;;
2927 esac
2928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2929 (eval "$ac_try") 2>&5
2930 ac_status=$?
2931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932 (exit $ac_status); }; }; then
2933 cross_compiling=no
2934 else
2935 if test "$cross_compiling" = maybe; then
2936 cross_compiling=yes
2937 else
2938 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2939 If you meant to cross compile, use \`--host'.
2940 See \`config.log' for more details." >&5
2941 echo "$as_me: error: cannot run C compiled programs.
2942 If you meant to cross compile, use \`--host'.
2943 See \`config.log' for more details." >&2;}
2944 { (exit 1); exit 1; }; }
2945 fi
2946 fi
2947 fi
2948 { echo "$as_me:$LINENO: result: yes" >&5
2949 echo "${ECHO_T}yes" >&6; }
2950
2951 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2952 ac_clean_files=$ac_clean_files_save
2953 # Check that the compiler produces executables we can run. If not, either
2954 # the compiler is broken, or we cross compile.
2955 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2956 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2957 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2958 echo "${ECHO_T}$cross_compiling" >&6; }
2959
2960 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2961 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2962 if { (ac_try="$ac_link"
2963 case "(($ac_try" in
2964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2965 *) ac_try_echo=$ac_try;;
2966 esac
2967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2968 (eval "$ac_link") 2>&5
2969 ac_status=$?
2970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971 (exit $ac_status); }; then
2972 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2973 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2974 # work properly (i.e., refer to `conftest.exe'), while it won't with
2975 # `rm'.
2976 for ac_file in conftest.exe conftest conftest.*; do
2977 test -f "$ac_file" || continue
2978 case $ac_file in
2979 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2980 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2981 break;;
2982 * ) break;;
2983 esac
2984 done
2985 else
2986 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2987 See \`config.log' for more details." >&5
2988 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2989 See \`config.log' for more details." >&2;}
2990 { (exit 1); exit 1; }; }
2991 fi
2992
2993 rm -f conftest$ac_cv_exeext
2994 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2995 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2996
2997 rm -f conftest.$ac_ext
2998 EXEEXT=$ac_cv_exeext
2999 ac_exeext=$EXEEXT
3000 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3001 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3002 if test "${ac_cv_objext+set}" = set; then
3003 echo $ECHO_N "(cached) $ECHO_C" >&6
3004 else
3005 cat >conftest.$ac_ext <<_ACEOF
3006 /* confdefs.h. */
3007 _ACEOF
3008 cat confdefs.h >>conftest.$ac_ext
3009 cat >>conftest.$ac_ext <<_ACEOF
3010 /* end confdefs.h. */
3011
3012 int
3013 main ()
3014 {
3015
3016 ;
3017 return 0;
3018 }
3019 _ACEOF
3020 rm -f conftest.o conftest.obj
3021 if { (ac_try="$ac_compile"
3022 case "(($ac_try" in
3023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024 *) ac_try_echo=$ac_try;;
3025 esac
3026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3027 (eval "$ac_compile") 2>&5
3028 ac_status=$?
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); }; then
3031 for ac_file in conftest.o conftest.obj conftest.*; do
3032 test -f "$ac_file" || continue;
3033 case $ac_file in
3034 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3035 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3036 break;;
3037 esac
3038 done
3039 else
3040 echo "$as_me: failed program was:" >&5
3041 sed 's/^/| /' conftest.$ac_ext >&5
3042
3043 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3044 See \`config.log' for more details." >&5
3045 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3046 See \`config.log' for more details." >&2;}
3047 { (exit 1); exit 1; }; }
3048 fi
3049
3050 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3051 fi
3052 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3053 echo "${ECHO_T}$ac_cv_objext" >&6; }
3054 OBJEXT=$ac_cv_objext
3055 ac_objext=$OBJEXT
3056 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3057 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3058 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3059 echo $ECHO_N "(cached) $ECHO_C" >&6
3060 else
3061 cat >conftest.$ac_ext <<_ACEOF
3062 /* confdefs.h. */
3063 _ACEOF
3064 cat confdefs.h >>conftest.$ac_ext
3065 cat >>conftest.$ac_ext <<_ACEOF
3066 /* end confdefs.h. */
3067
3068 int
3069 main ()
3070 {
3071 #ifndef __GNUC__
3072 choke me
3073 #endif
3074
3075 ;
3076 return 0;
3077 }
3078 _ACEOF
3079 rm -f conftest.$ac_objext
3080 if { (ac_try="$ac_compile"
3081 case "(($ac_try" in
3082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083 *) ac_try_echo=$ac_try;;
3084 esac
3085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3086 (eval "$ac_compile") 2>conftest.er1
3087 ac_status=$?
3088 grep -v '^ *+' conftest.er1 >conftest.err
3089 rm -f conftest.er1
3090 cat conftest.err >&5
3091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092 (exit $ac_status); } &&
3093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3094 { (case "(($ac_try" in
3095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096 *) ac_try_echo=$ac_try;;
3097 esac
3098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3099 (eval "$ac_try") 2>&5
3100 ac_status=$?
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); }; } &&
3103 { ac_try='test -s conftest.$ac_objext'
3104 { (case "(($ac_try" in
3105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3106 *) ac_try_echo=$ac_try;;
3107 esac
3108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3109 (eval "$ac_try") 2>&5
3110 ac_status=$?
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); }; }; then
3113 ac_compiler_gnu=yes
3114 else
3115 echo "$as_me: failed program was:" >&5
3116 sed 's/^/| /' conftest.$ac_ext >&5
3117
3118 ac_compiler_gnu=no
3119 fi
3120
3121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3122 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3123
3124 fi
3125 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3126 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3127 GCC=`test $ac_compiler_gnu = yes && echo yes`
3128 ac_test_CFLAGS=${CFLAGS+set}
3129 ac_save_CFLAGS=$CFLAGS
3130 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3131 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3132 if test "${ac_cv_prog_cc_g+set}" = set; then
3133 echo $ECHO_N "(cached) $ECHO_C" >&6
3134 else
3135 ac_save_c_werror_flag=$ac_c_werror_flag
3136 ac_c_werror_flag=yes
3137 ac_cv_prog_cc_g=no
3138 CFLAGS="-g"
3139 cat >conftest.$ac_ext <<_ACEOF
3140 /* confdefs.h. */
3141 _ACEOF
3142 cat confdefs.h >>conftest.$ac_ext
3143 cat >>conftest.$ac_ext <<_ACEOF
3144 /* end confdefs.h. */
3145
3146 int
3147 main ()
3148 {
3149
3150 ;
3151 return 0;
3152 }
3153 _ACEOF
3154 rm -f conftest.$ac_objext
3155 if { (ac_try="$ac_compile"
3156 case "(($ac_try" in
3157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158 *) ac_try_echo=$ac_try;;
3159 esac
3160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3161 (eval "$ac_compile") 2>conftest.er1
3162 ac_status=$?
3163 grep -v '^ *+' conftest.er1 >conftest.err
3164 rm -f conftest.er1
3165 cat conftest.err >&5
3166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167 (exit $ac_status); } &&
3168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3169 { (case "(($ac_try" in
3170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3171 *) ac_try_echo=$ac_try;;
3172 esac
3173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3174 (eval "$ac_try") 2>&5
3175 ac_status=$?
3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177 (exit $ac_status); }; } &&
3178 { ac_try='test -s conftest.$ac_objext'
3179 { (case "(($ac_try" in
3180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3181 *) ac_try_echo=$ac_try;;
3182 esac
3183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3184 (eval "$ac_try") 2>&5
3185 ac_status=$?
3186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); }; }; then
3188 ac_cv_prog_cc_g=yes
3189 else
3190 echo "$as_me: failed program was:" >&5
3191 sed 's/^/| /' conftest.$ac_ext >&5
3192
3193 CFLAGS=""
3194 cat >conftest.$ac_ext <<_ACEOF
3195 /* confdefs.h. */
3196 _ACEOF
3197 cat confdefs.h >>conftest.$ac_ext
3198 cat >>conftest.$ac_ext <<_ACEOF
3199 /* end confdefs.h. */
3200
3201 int
3202 main ()
3203 {
3204
3205 ;
3206 return 0;
3207 }
3208 _ACEOF
3209 rm -f conftest.$ac_objext
3210 if { (ac_try="$ac_compile"
3211 case "(($ac_try" in
3212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3213 *) ac_try_echo=$ac_try;;
3214 esac
3215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3216 (eval "$ac_compile") 2>conftest.er1
3217 ac_status=$?
3218 grep -v '^ *+' conftest.er1 >conftest.err
3219 rm -f conftest.er1
3220 cat conftest.err >&5
3221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222 (exit $ac_status); } &&
3223 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3224 { (case "(($ac_try" in
3225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3226 *) ac_try_echo=$ac_try;;
3227 esac
3228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3229 (eval "$ac_try") 2>&5
3230 ac_status=$?
3231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232 (exit $ac_status); }; } &&
3233 { ac_try='test -s conftest.$ac_objext'
3234 { (case "(($ac_try" in
3235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3236 *) ac_try_echo=$ac_try;;
3237 esac
3238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3239 (eval "$ac_try") 2>&5
3240 ac_status=$?
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); }; }; then
3243 :
3244 else
3245 echo "$as_me: failed program was:" >&5
3246 sed 's/^/| /' conftest.$ac_ext >&5
3247
3248 ac_c_werror_flag=$ac_save_c_werror_flag
3249 CFLAGS="-g"
3250 cat >conftest.$ac_ext <<_ACEOF
3251 /* confdefs.h. */
3252 _ACEOF
3253 cat confdefs.h >>conftest.$ac_ext
3254 cat >>conftest.$ac_ext <<_ACEOF
3255 /* end confdefs.h. */
3256
3257 int
3258 main ()
3259 {
3260
3261 ;
3262 return 0;
3263 }
3264 _ACEOF
3265 rm -f conftest.$ac_objext
3266 if { (ac_try="$ac_compile"
3267 case "(($ac_try" in
3268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3269 *) ac_try_echo=$ac_try;;
3270 esac
3271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3272 (eval "$ac_compile") 2>conftest.er1
3273 ac_status=$?
3274 grep -v '^ *+' conftest.er1 >conftest.err
3275 rm -f conftest.er1
3276 cat conftest.err >&5
3277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278 (exit $ac_status); } &&
3279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3280 { (case "(($ac_try" in
3281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3282 *) ac_try_echo=$ac_try;;
3283 esac
3284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3285 (eval "$ac_try") 2>&5
3286 ac_status=$?
3287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288 (exit $ac_status); }; } &&
3289 { ac_try='test -s conftest.$ac_objext'
3290 { (case "(($ac_try" in
3291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3292 *) ac_try_echo=$ac_try;;
3293 esac
3294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3295 (eval "$ac_try") 2>&5
3296 ac_status=$?
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); }; }; then
3299 ac_cv_prog_cc_g=yes
3300 else
3301 echo "$as_me: failed program was:" >&5
3302 sed 's/^/| /' conftest.$ac_ext >&5
3303
3304
3305 fi
3306
3307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3308 fi
3309
3310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3311 fi
3312
3313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3314 ac_c_werror_flag=$ac_save_c_werror_flag
3315 fi
3316 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3317 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3318 if test "$ac_test_CFLAGS" = set; then
3319 CFLAGS=$ac_save_CFLAGS
3320 elif test $ac_cv_prog_cc_g = yes; then
3321 if test "$GCC" = yes; then
3322 CFLAGS="-g -O2"
3323 else
3324 CFLAGS="-g"
3325 fi
3326 else
3327 if test "$GCC" = yes; then
3328 CFLAGS="-O2"
3329 else
3330 CFLAGS=
3331 fi
3332 fi
3333 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3334 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3335 if test "${ac_cv_prog_cc_c89+set}" = set; then
3336 echo $ECHO_N "(cached) $ECHO_C" >&6
3337 else
3338 ac_cv_prog_cc_c89=no
3339 ac_save_CC=$CC
3340 cat >conftest.$ac_ext <<_ACEOF
3341 /* confdefs.h. */
3342 _ACEOF
3343 cat confdefs.h >>conftest.$ac_ext
3344 cat >>conftest.$ac_ext <<_ACEOF
3345 /* end confdefs.h. */
3346 #include <stdarg.h>
3347 #include <stdio.h>
3348 #include <sys/types.h>
3349 #include <sys/stat.h>
3350 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3351 struct buf { int x; };
3352 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3353 static char *e (p, i)
3354 char **p;
3355 int i;
3356 {
3357 return p[i];
3358 }
3359 static char *f (char * (*g) (char **, int), char **p, ...)
3360 {
3361 char *s;
3362 va_list v;
3363 va_start (v,p);
3364 s = g (p, va_arg (v,int));
3365 va_end (v);
3366 return s;
3367 }
3368
3369 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3370 function prototypes and stuff, but not '\xHH' hex character constants.
3371 These don't provoke an error unfortunately, instead are silently treated
3372 as 'x'. The following induces an error, until -std is added to get
3373 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3374 array size at least. It's necessary to write '\x00'==0 to get something
3375 that's true only with -std. */
3376 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3377
3378 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3379 inside strings and character constants. */
3380 #define FOO(x) 'x'
3381 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3382
3383 int test (int i, double x);
3384 struct s1 {int (*f) (int a);};
3385 struct s2 {int (*f) (double a);};
3386 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3387 int argc;
3388 char **argv;
3389 int
3390 main ()
3391 {
3392 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3393 ;
3394 return 0;
3395 }
3396 _ACEOF
3397 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3398 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3399 do
3400 CC="$ac_save_CC $ac_arg"
3401 rm -f conftest.$ac_objext
3402 if { (ac_try="$ac_compile"
3403 case "(($ac_try" in
3404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3405 *) ac_try_echo=$ac_try;;
3406 esac
3407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3408 (eval "$ac_compile") 2>conftest.er1
3409 ac_status=$?
3410 grep -v '^ *+' conftest.er1 >conftest.err
3411 rm -f conftest.er1
3412 cat conftest.err >&5
3413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414 (exit $ac_status); } &&
3415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3416 { (case "(($ac_try" in
3417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3418 *) ac_try_echo=$ac_try;;
3419 esac
3420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3421 (eval "$ac_try") 2>&5
3422 ac_status=$?
3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 (exit $ac_status); }; } &&
3425 { ac_try='test -s conftest.$ac_objext'
3426 { (case "(($ac_try" in
3427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428 *) ac_try_echo=$ac_try;;
3429 esac
3430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3431 (eval "$ac_try") 2>&5
3432 ac_status=$?
3433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434 (exit $ac_status); }; }; then
3435 ac_cv_prog_cc_c89=$ac_arg
3436 else
3437 echo "$as_me: failed program was:" >&5
3438 sed 's/^/| /' conftest.$ac_ext >&5
3439
3440
3441 fi
3442
3443 rm -f core conftest.err conftest.$ac_objext
3444 test "x$ac_cv_prog_cc_c89" != "xno" && break
3445 done
3446 rm -f conftest.$ac_ext
3447 CC=$ac_save_CC
3448
3449 fi
3450 # AC_CACHE_VAL
3451 case "x$ac_cv_prog_cc_c89" in
3452 x)
3453 { echo "$as_me:$LINENO: result: none needed" >&5
3454 echo "${ECHO_T}none needed" >&6; } ;;
3455 xno)
3456 { echo "$as_me:$LINENO: result: unsupported" >&5
3457 echo "${ECHO_T}unsupported" >&6; } ;;
3458 *)
3459 CC="$CC $ac_cv_prog_cc_c89"
3460 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3461 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3462 esac
3463
3464
3465 ac_ext=c
3466 ac_cpp='$CPP $CPPFLAGS'
3467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3470 DEPDIR="${am__leading_dot}deps"
3471
3472 ac_config_commands="$ac_config_commands depfiles"
3473
3474
3475 am_make=${MAKE-make}
3476 cat > confinc << 'END'
3477 am__doit:
3478 @echo done
3479 .PHONY: am__doit
3480 END
3481 # If we don't find an include directive, just comment out the code.
3482 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3483 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3484 am__include="#"
3485 am__quote=
3486 _am_result=none
3487 # First try GNU make style include.
3488 echo "include confinc" > confmf
3489 # We grep out `Entering directory' and `Leaving directory'
3490 # messages which can occur if `w' ends up in MAKEFLAGS.
3491 # In particular we don't look at `^make:' because GNU make might
3492 # be invoked under some other name (usually "gmake"), in which
3493 # case it prints its new name instead of `make'.
3494 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3495 am__include=include
3496 am__quote=
3497 _am_result=GNU
3498 fi
3499 # Now try BSD make style include.
3500 if test "$am__include" = "#"; then
3501 echo '.include "confinc"' > confmf
3502 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3503 am__include=.include
3504 am__quote="\""
3505 _am_result=BSD
3506 fi
3507 fi
3508
3509
3510 { echo "$as_me:$LINENO: result: $_am_result" >&5
3511 echo "${ECHO_T}$_am_result" >&6; }
3512 rm -f confinc confmf
3513
3514 # Check whether --enable-dependency-tracking was given.
3515 if test "${enable_dependency_tracking+set}" = set; then
3516 enableval=$enable_dependency_tracking;
3517 fi
3518
3519 if test "x$enable_dependency_tracking" != xno; then
3520 am_depcomp="$ac_aux_dir/depcomp"
3521 AMDEPBACKSLASH='\'
3522 fi
3523
3524
3525 if test "x$enable_dependency_tracking" != xno; then
3526 AMDEP_TRUE=
3527 AMDEP_FALSE='#'
3528 else
3529 AMDEP_TRUE='#'
3530 AMDEP_FALSE=
3531 fi
3532
3533
3534
3535
3536 depcc="$CC" am_compiler_list=
3537
3538 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3539 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3540 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3541 echo $ECHO_N "(cached) $ECHO_C" >&6
3542 else
3543 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3544 # We make a subdir and do the tests there. Otherwise we can end up
3545 # making bogus files that we don't know about and never remove. For
3546 # instance it was reported that on HP-UX the gcc test will end up
3547 # making a dummy file named `D' -- because `-MD' means `put the output
3548 # in D'.
3549 mkdir conftest.dir
3550 # Copy depcomp to subdir because otherwise we won't find it if we're
3551 # using a relative directory.
3552 cp "$am_depcomp" conftest.dir
3553 cd conftest.dir
3554 # We will build objects and dependencies in a subdirectory because
3555 # it helps to detect inapplicable dependency modes. For instance
3556 # both Tru64's cc and ICC support -MD to output dependencies as a
3557 # side effect of compilation, but ICC will put the dependencies in
3558 # the current directory while Tru64 will put them in the object
3559 # directory.
3560 mkdir sub
3561
3562 am_cv_CC_dependencies_compiler_type=none
3563 if test "$am_compiler_list" = ""; then
3564 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3565 fi
3566 for depmode in $am_compiler_list; do
3567 # Setup a source with many dependencies, because some compilers
3568 # like to wrap large dependency lists on column 80 (with \), and
3569 # we should not choose a depcomp mode which is confused by this.
3570 #
3571 # We need to recreate these files for each test, as the compiler may
3572 # overwrite some of them when testing with obscure command lines.
3573 # This happens at least with the AIX C compiler.
3574 : > sub/conftest.c
3575 for i in 1 2 3 4 5 6; do
3576 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3577 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3578 # Solaris 8's {/usr,}/bin/sh.
3579 touch sub/conftst$i.h
3580 done
3581 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3582
3583 case $depmode in
3584 nosideeffect)
3585 # after this tag, mechanisms are not by side-effect, so they'll
3586 # only be used when explicitly requested
3587 if test "x$enable_dependency_tracking" = xyes; then
3588 continue
3589 else
3590 break
3591 fi
3592 ;;
3593 none) break ;;
3594 esac
3595 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3596 # mode. It turns out that the SunPro C++ compiler does not properly
3597 # handle `-M -o', and we need to detect this.
3598 if depmode=$depmode \
3599 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3600 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3601 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3602 >/dev/null 2>conftest.err &&
3603 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3604 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3605 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3606 # icc doesn't choke on unknown options, it will just issue warnings
3607 # or remarks (even with -Werror). So we grep stderr for any message
3608 # that says an option was ignored or not supported.
3609 # When given -MP, icc 7.0 and 7.1 complain thusly:
3610 # icc: Command line warning: ignoring option '-M'; no argument required
3611 # The diagnosis changed in icc 8.0:
3612 # icc: Command line remark: option '-MP' not supported
3613 if (grep 'ignoring option' conftest.err ||
3614 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3615 am_cv_CC_dependencies_compiler_type=$depmode
3616 break
3617 fi
3618 fi
3619 done
3620
3621 cd ..
3622 rm -rf conftest.dir
3623 else
3624 am_cv_CC_dependencies_compiler_type=none
3625 fi
3626
3627 fi
3628 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3629 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3630 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3631
3632
3633
3634 if
3635 test "x$enable_dependency_tracking" != xno \
3636 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3637 am__fastdepCC_TRUE=
3638 am__fastdepCC_FALSE='#'
3639 else
3640 am__fastdepCC_TRUE='#'
3641 am__fastdepCC_FALSE=
3642 fi
3643
3644
3645 # Check whether --enable-shared was given.
3646 if test "${enable_shared+set}" = set; then
3647 enableval=$enable_shared; p=${PACKAGE-default}
3648 case $enableval in
3649 yes) enable_shared=yes ;;
3650 no) enable_shared=no ;;
3651 *)
3652 enable_shared=no
3653 # Look at the argument we got. We use all the common list separators.
3654 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3655 for pkg in $enableval; do
3656 IFS="$lt_save_ifs"
3657 if test "X$pkg" = "X$p"; then
3658 enable_shared=yes
3659 fi
3660 done
3661 IFS="$lt_save_ifs"
3662 ;;
3663 esac
3664 else
3665 enable_shared=yes
3666 fi
3667
3668
3669 # Check whether --enable-static was given.
3670 if test "${enable_static+set}" = set; then
3671 enableval=$enable_static; p=${PACKAGE-default}
3672 case $enableval in
3673 yes) enable_static=yes ;;
3674 no) enable_static=no ;;
3675 *)
3676 enable_static=no
3677 # Look at the argument we got. We use all the common list separators.
3678 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3679 for pkg in $enableval; do
3680 IFS="$lt_save_ifs"
3681 if test "X$pkg" = "X$p"; then
3682 enable_static=yes
3683 fi
3684 done
3685 IFS="$lt_save_ifs"
3686 ;;
3687 esac
3688 else
3689 enable_static=yes
3690 fi
3691
3692
3693 # Check whether --enable-fast-install was given.
3694 if test "${enable_fast_install+set}" = set; then
3695 enableval=$enable_fast_install; p=${PACKAGE-default}
3696 case $enableval in
3697 yes) enable_fast_install=yes ;;
3698 no) enable_fast_install=no ;;
3699 *)
3700 enable_fast_install=no
3701 # Look at the argument we got. We use all the common list separators.
3702 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3703 for pkg in $enableval; do
3704 IFS="$lt_save_ifs"
3705 if test "X$pkg" = "X$p"; then
3706 enable_fast_install=yes
3707 fi
3708 done
3709 IFS="$lt_save_ifs"
3710 ;;
3711 esac
3712 else
3713 enable_fast_install=yes
3714 fi
3715
3716
3717 # Make sure we can run config.sub.
3718 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3719 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3720 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3721 { (exit 1); exit 1; }; }
3722
3723 { echo "$as_me:$LINENO: checking build system type" >&5
3724 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3725 if test "${ac_cv_build+set}" = set; then
3726 echo $ECHO_N "(cached) $ECHO_C" >&6
3727 else
3728 ac_build_alias=$build_alias
3729 test "x$ac_build_alias" = x &&
3730 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3731 test "x$ac_build_alias" = x &&
3732 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3733 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3734 { (exit 1); exit 1; }; }
3735 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3736 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3737 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3738 { (exit 1); exit 1; }; }
3739
3740 fi
3741 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3742 echo "${ECHO_T}$ac_cv_build" >&6; }
3743 case $ac_cv_build in
3744 *-*-*) ;;
3745 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3746 echo "$as_me: error: invalid value of canonical build" >&2;}
3747 { (exit 1); exit 1; }; };;
3748 esac
3749 build=$ac_cv_build
3750 ac_save_IFS=$IFS; IFS='-'
3751 set x $ac_cv_build
3752 shift
3753 build_cpu=$1
3754 build_vendor=$2
3755 shift; shift
3756 # Remember, the first character of IFS is used to create $*,
3757 # except with old shells:
3758 build_os=$*
3759 IFS=$ac_save_IFS
3760 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3761
3762
3763 { echo "$as_me:$LINENO: checking host system type" >&5
3764 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3765 if test "${ac_cv_host+set}" = set; then
3766 echo $ECHO_N "(cached) $ECHO_C" >&6
3767 else
3768 if test "x$host_alias" = x; then
3769 ac_cv_host=$ac_cv_build
3770 else
3771 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3772 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3773 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3774 { (exit 1); exit 1; }; }
3775 fi
3776
3777 fi
3778 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3779 echo "${ECHO_T}$ac_cv_host" >&6; }
3780 case $ac_cv_host in
3781 *-*-*) ;;
3782 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3783 echo "$as_me: error: invalid value of canonical host" >&2;}
3784 { (exit 1); exit 1; }; };;
3785 esac
3786 host=$ac_cv_host
3787 ac_save_IFS=$IFS; IFS='-'
3788 set x $ac_cv_host
3789 shift
3790 host_cpu=$1
3791 host_vendor=$2
3792 shift; shift
3793 # Remember, the first character of IFS is used to create $*,
3794 # except with old shells:
3795 host_os=$*
3796 IFS=$ac_save_IFS
3797 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3798
3799
3800 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3801 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3802 if test "${lt_cv_path_SED+set}" = set; then
3803 echo $ECHO_N "(cached) $ECHO_C" >&6
3804 else
3805 # Loop through the user's path and test for sed and gsed.
3806 # Then use that list of sed's as ones to test for truncation.
3807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3808 for as_dir in $PATH
3809 do
3810 IFS=$as_save_IFS
3811 test -z "$as_dir" && as_dir=.
3812 for lt_ac_prog in sed gsed; do
3813 for ac_exec_ext in '' $ac_executable_extensions; do
3814 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3815 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3816 fi
3817 done
3818 done
3819 done
3820 lt_ac_max=0
3821 lt_ac_count=0
3822 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3823 # along with /bin/sed that truncates output.
3824 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3825 test ! -f $lt_ac_sed && continue
3826 cat /dev/null > conftest.in
3827 lt_ac_count=0
3828 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3829 # Check for GNU sed and select it if it is found.
3830 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3831 lt_cv_path_SED=$lt_ac_sed
3832 break
3833 fi
3834 while true; do
3835 cat conftest.in conftest.in >conftest.tmp
3836 mv conftest.tmp conftest.in
3837 cp conftest.in conftest.nl
3838 echo >>conftest.nl
3839 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3840 cmp -s conftest.out conftest.nl || break
3841 # 10000 chars as input seems more than enough
3842 test $lt_ac_count -gt 10 && break
3843 lt_ac_count=`expr $lt_ac_count + 1`
3844 if test $lt_ac_count -gt $lt_ac_max; then
3845 lt_ac_max=$lt_ac_count
3846 lt_cv_path_SED=$lt_ac_sed
3847 fi
3848 done
3849 done
3850
3851 fi
3852
3853 SED=$lt_cv_path_SED
3854 { echo "$as_me:$LINENO: result: $SED" >&5
3855 echo "${ECHO_T}$SED" >&6; }
3856
3857 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3858 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3859 if test "${ac_cv_path_GREP+set}" = set; then
3860 echo $ECHO_N "(cached) $ECHO_C" >&6
3861 else
3862 # Extract the first word of "grep ggrep" to use in msg output
3863 if test -z "$GREP"; then
3864 set dummy grep ggrep; ac_prog_name=$2
3865 if test "${ac_cv_path_GREP+set}" = set; then
3866 echo $ECHO_N "(cached) $ECHO_C" >&6
3867 else
3868 ac_path_GREP_found=false
3869 # Loop through the user's path and test for each of PROGNAME-LIST
3870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3871 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3872 do
3873 IFS=$as_save_IFS
3874 test -z "$as_dir" && as_dir=.
3875 for ac_prog in grep ggrep; do
3876 for ac_exec_ext in '' $ac_executable_extensions; do
3877 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3878 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3879 # Check for GNU ac_path_GREP and select it if it is found.
3880 # Check for GNU $ac_path_GREP
3881 case `"$ac_path_GREP" --version 2>&1` in
3882 *GNU*)
3883 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3884 *)
3885 ac_count=0
3886 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3887 while :
3888 do
3889 cat "conftest.in" "conftest.in" >"conftest.tmp"
3890 mv "conftest.tmp" "conftest.in"
3891 cp "conftest.in" "conftest.nl"
3892 echo 'GREP' >> "conftest.nl"
3893 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3894 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3895 ac_count=`expr $ac_count + 1`
3896 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3897 # Best one so far, save it but keep looking for a better one
3898 ac_cv_path_GREP="$ac_path_GREP"
3899 ac_path_GREP_max=$ac_count
3900 fi
3901 # 10*(2^10) chars as input seems more than enough
3902 test $ac_count -gt 10 && break
3903 done
3904 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3905 esac
3906
3907
3908 $ac_path_GREP_found && break 3
3909 done
3910 done
3911
3912 done
3913 IFS=$as_save_IFS
3914
3915
3916 fi
3917
3918 GREP="$ac_cv_path_GREP"
3919 if test -z "$GREP"; then
3920 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3921 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3922 { (exit 1); exit 1; }; }
3923 fi
3924
3925 else
3926 ac_cv_path_GREP=$GREP
3927 fi
3928
3929
3930 fi
3931 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3932 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3933 GREP="$ac_cv_path_GREP"
3934
3935
3936 { echo "$as_me:$LINENO: checking for egrep" >&5
3937 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3938 if test "${ac_cv_path_EGREP+set}" = set; then
3939 echo $ECHO_N "(cached) $ECHO_C" >&6
3940 else
3941 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3942 then ac_cv_path_EGREP="$GREP -E"
3943 else
3944 # Extract the first word of "egrep" to use in msg output
3945 if test -z "$EGREP"; then
3946 set dummy egrep; ac_prog_name=$2
3947 if test "${ac_cv_path_EGREP+set}" = set; then
3948 echo $ECHO_N "(cached) $ECHO_C" >&6
3949 else
3950 ac_path_EGREP_found=false
3951 # Loop through the user's path and test for each of PROGNAME-LIST
3952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3953 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3954 do
3955 IFS=$as_save_IFS
3956 test -z "$as_dir" && as_dir=.
3957 for ac_prog in egrep; do
3958 for ac_exec_ext in '' $ac_executable_extensions; do
3959 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3960 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3961 # Check for GNU ac_path_EGREP and select it if it is found.
3962 # Check for GNU $ac_path_EGREP
3963 case `"$ac_path_EGREP" --version 2>&1` in
3964 *GNU*)
3965 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3966 *)
3967 ac_count=0
3968 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3969 while :
3970 do
3971 cat "conftest.in" "conftest.in" >"conftest.tmp"
3972 mv "conftest.tmp" "conftest.in"
3973 cp "conftest.in" "conftest.nl"
3974 echo 'EGREP' >> "conftest.nl"
3975 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3976 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3977 ac_count=`expr $ac_count + 1`
3978 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3979 # Best one so far, save it but keep looking for a better one
3980 ac_cv_path_EGREP="$ac_path_EGREP"
3981 ac_path_EGREP_max=$ac_count
3982 fi
3983 # 10*(2^10) chars as input seems more than enough
3984 test $ac_count -gt 10 && break
3985 done
3986 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3987 esac
3988
3989
3990 $ac_path_EGREP_found && break 3
3991 done
3992 done
3993
3994 done
3995 IFS=$as_save_IFS
3996
3997
3998 fi
3999
4000 EGREP="$ac_cv_path_EGREP"
4001 if test -z "$EGREP"; then
4002 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4003 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4004 { (exit 1); exit 1; }; }
4005 fi
4006
4007 else
4008 ac_cv_path_EGREP=$EGREP
4009 fi
4010
4011
4012 fi
4013 fi
4014 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4015 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4016 EGREP="$ac_cv_path_EGREP"
4017
4018
4019
4020 # Check whether --with-gnu-ld was given.
4021 if test "${with_gnu_ld+set}" = set; then
4022 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4023 else
4024 with_gnu_ld=no
4025 fi
4026
4027 ac_prog=ld
4028 if test "$GCC" = yes; then
4029 # Check if gcc -print-prog-name=ld gives a path.
4030 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4031 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4032 case $host in
4033 *-*-mingw*)
4034 # gcc leaves a trailing carriage return which upsets mingw
4035 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4036 *)
4037 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4038 esac
4039 case $ac_prog in
4040 # Accept absolute paths.
4041 [\\/]* | ?:[\\/]*)
4042 re_direlt='/[^/][^/]*/\.\./'
4043 # Canonicalize the pathname of ld
4044 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4045 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4046 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4047 done
4048 test -z "$LD" && LD="$ac_prog"
4049 ;;
4050 "")
4051 # If it fails, then pretend we aren't using GCC.
4052 ac_prog=ld
4053 ;;
4054 *)
4055 # If it is relative, then search for the first ld in PATH.
4056 with_gnu_ld=unknown
4057 ;;
4058 esac
4059 elif test "$with_gnu_ld" = yes; then
4060 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4061 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4062 else
4063 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4064 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4065 fi
4066 if test "${lt_cv_path_LD+set}" = set; then
4067 echo $ECHO_N "(cached) $ECHO_C" >&6
4068 else
4069 if test -z "$LD"; then
4070 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4071 for ac_dir in $PATH; do
4072 IFS="$lt_save_ifs"
4073 test -z "$ac_dir" && ac_dir=.
4074 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4075 lt_cv_path_LD="$ac_dir/$ac_prog"
4076 # Check to see if the program is GNU ld. I'd rather use --version,
4077 # but apparently some variants of GNU ld only accept -v.
4078 # Break only if it was the GNU/non-GNU ld that we prefer.
4079 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4080 *GNU* | *'with BFD'*)
4081 test "$with_gnu_ld" != no && break
4082 ;;
4083 *)
4084 test "$with_gnu_ld" != yes && break
4085 ;;
4086 esac
4087 fi
4088 done
4089 IFS="$lt_save_ifs"
4090 else
4091 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4092 fi
4093 fi
4094
4095 LD="$lt_cv_path_LD"
4096 if test -n "$LD"; then
4097 { echo "$as_me:$LINENO: result: $LD" >&5
4098 echo "${ECHO_T}$LD" >&6; }
4099 else
4100 { echo "$as_me:$LINENO: result: no" >&5
4101 echo "${ECHO_T}no" >&6; }
4102 fi
4103 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4104 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4105 { (exit 1); exit 1; }; }
4106 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4107 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4108 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4109 echo $ECHO_N "(cached) $ECHO_C" >&6
4110 else
4111 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4112 case `$LD -v 2>&1 </dev/null` in
4113 *GNU* | *'with BFD'*)
4114 lt_cv_prog_gnu_ld=yes
4115 ;;
4116 *)
4117 lt_cv_prog_gnu_ld=no
4118 ;;
4119 esac
4120 fi
4121 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4122 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4123 with_gnu_ld=$lt_cv_prog_gnu_ld
4124
4125
4126 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4127 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4128 if test "${lt_cv_ld_reload_flag+set}" = set; then
4129 echo $ECHO_N "(cached) $ECHO_C" >&6
4130 else
4131 lt_cv_ld_reload_flag='-r'
4132 fi
4133 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4134 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4135 reload_flag=$lt_cv_ld_reload_flag
4136 case $reload_flag in
4137 "" | " "*) ;;
4138 *) reload_flag=" $reload_flag" ;;
4139 esac
4140 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4141 case $host_os in
4142 darwin*)
4143 if test "$GCC" = yes; then
4144 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4145 else
4146 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4147 fi
4148 ;;
4149 esac
4150
4151 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4152 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4153 if test "${lt_cv_path_NM+set}" = set; then
4154 echo $ECHO_N "(cached) $ECHO_C" >&6
4155 else
4156 if test -n "$NM"; then
4157 # Let the user override the test.
4158 lt_cv_path_NM="$NM"
4159 else
4160 lt_nm_to_check="${ac_tool_prefix}nm"
4161 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4162 lt_nm_to_check="$lt_nm_to_check nm"
4163 fi
4164 for lt_tmp_nm in $lt_nm_to_check; do
4165 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4166 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4167 IFS="$lt_save_ifs"
4168 test -z "$ac_dir" && ac_dir=.
4169 tmp_nm="$ac_dir/$lt_tmp_nm"
4170 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4171 # Check to see if the nm accepts a BSD-compat flag.
4172 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4173 # nm: unknown option "B" ignored
4174 # Tru64's nm complains that /dev/null is an invalid object file
4175 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4176 */dev/null* | *'Invalid file or object type'*)
4177 lt_cv_path_NM="$tmp_nm -B"
4178 break
4179 ;;
4180 *)
4181 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4182 */dev/null*)
4183 lt_cv_path_NM="$tmp_nm -p"
4184 break
4185 ;;
4186 *)
4187 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4188 continue # so that we can try to find one that supports BSD flags
4189 ;;
4190 esac
4191 ;;
4192 esac
4193 fi
4194 done
4195 IFS="$lt_save_ifs"
4196 done
4197 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4198 fi
4199 fi
4200 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4201 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4202 NM="$lt_cv_path_NM"
4203
4204 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4205 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4206 LN_S=$as_ln_s
4207 if test "$LN_S" = "ln -s"; then
4208 { echo "$as_me:$LINENO: result: yes" >&5
4209 echo "${ECHO_T}yes" >&6; }
4210 else
4211 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4212 echo "${ECHO_T}no, using $LN_S" >&6; }
4213 fi
4214
4215 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4216 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4217 if test "${lt_cv_deplibs_check_method+set}" = set; then
4218 echo $ECHO_N "(cached) $ECHO_C" >&6
4219 else
4220 lt_cv_file_magic_cmd='$MAGIC_CMD'
4221 lt_cv_file_magic_test_file=
4222 lt_cv_deplibs_check_method='unknown'
4223 # Need to set the preceding variable on all platforms that support
4224 # interlibrary dependencies.
4225 # 'none' -- dependencies not supported.
4226 # `unknown' -- same as none, but documents that we really don't know.
4227 # 'pass_all' -- all dependencies passed with no checks.
4228 # 'test_compile' -- check by making test program.
4229 # 'file_magic [[regex]]' -- check by looking for files in library path
4230 # which responds to the $file_magic_cmd with a given extended regex.
4231 # If you have `file' or equivalent on your system and you're not sure
4232 # whether `pass_all' will *always* work, you probably want this one.
4233
4234 case $host_os in
4235 aix4* | aix5*)
4236 lt_cv_deplibs_check_method=pass_all
4237 ;;
4238
4239 beos*)
4240 lt_cv_deplibs_check_method=pass_all
4241 ;;
4242
4243 bsdi[45]*)
4244 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4245 lt_cv_file_magic_cmd='/usr/bin/file -L'
4246 lt_cv_file_magic_test_file=/shlib/libc.so
4247 ;;
4248
4249 cygwin*)
4250 # func_win32_libid is a shell function defined in ltmain.sh
4251 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4252 lt_cv_file_magic_cmd='func_win32_libid'
4253 ;;
4254
4255 mingw* | pw32*)
4256 # Base MSYS/MinGW do not provide the 'file' command needed by
4257 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4258 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4259 lt_cv_file_magic_cmd='$OBJDUMP -f'
4260 ;;
4261
4262 darwin* | rhapsody*)
4263 lt_cv_deplibs_check_method=pass_all
4264 ;;
4265
4266 freebsd* | dragonfly*)
4267 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4268 case $host_cpu in
4269 i*86 )
4270 # Not sure whether the presence of OpenBSD here was a mistake.
4271 # Let's accept both of them until this is cleared up.
4272 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4273 lt_cv_file_magic_cmd=/usr/bin/file
4274 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4275 ;;
4276 esac
4277 else
4278 lt_cv_deplibs_check_method=pass_all
4279 fi
4280 ;;
4281
4282 gnu*)
4283 lt_cv_deplibs_check_method=pass_all
4284 ;;
4285
4286 hpux10.20* | hpux11*)
4287 lt_cv_file_magic_cmd=/usr/bin/file
4288 case $host_cpu in
4289 ia64*)
4290 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4291 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4292 ;;
4293 hppa*64*)
4294 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]'
4295 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4296 ;;
4297 *)
4298 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4299 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4300 ;;
4301 esac
4302 ;;
4303
4304 interix3*)
4305 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4306 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4307 ;;
4308
4309 irix5* | irix6* | nonstopux*)
4310 case $LD in
4311 *-32|*"-32 ") libmagic=32-bit;;
4312 *-n32|*"-n32 ") libmagic=N32;;
4313 *-64|*"-64 ") libmagic=64-bit;;
4314 *) libmagic=never-match;;
4315 esac
4316 lt_cv_deplibs_check_method=pass_all
4317 ;;
4318
4319 # This must be Linux ELF.
4320 linux* | k*bsd*-gnu)
4321 lt_cv_deplibs_check_method=pass_all
4322 ;;
4323
4324 netbsd* | netbsdelf*-gnu)
4325 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4326 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4327 else
4328 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4329 fi
4330 ;;
4331
4332 newos6*)
4333 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4334 lt_cv_file_magic_cmd=/usr/bin/file
4335 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4336 ;;
4337
4338 nto-qnx*)
4339 lt_cv_deplibs_check_method=unknown
4340 ;;
4341
4342 openbsd*)
4343 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4344 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4345 else
4346 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4347 fi
4348 ;;
4349
4350 osf3* | osf4* | osf5*)
4351 lt_cv_deplibs_check_method=pass_all
4352 ;;
4353
4354 solaris*)
4355 lt_cv_deplibs_check_method=pass_all
4356 ;;
4357
4358 sysv4 | sysv4.3*)
4359 case $host_vendor in
4360 motorola)
4361 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]'
4362 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4363 ;;
4364 ncr)
4365 lt_cv_deplibs_check_method=pass_all
4366 ;;
4367 sequent)
4368 lt_cv_file_magic_cmd='/bin/file'
4369 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4370 ;;
4371 sni)
4372 lt_cv_file_magic_cmd='/bin/file'
4373 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4374 lt_cv_file_magic_test_file=/lib/libc.so
4375 ;;
4376 siemens)
4377 lt_cv_deplibs_check_method=pass_all
4378 ;;
4379 pc)
4380 lt_cv_deplibs_check_method=pass_all
4381 ;;
4382 esac
4383 ;;
4384
4385 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4386 lt_cv_deplibs_check_method=pass_all
4387 ;;
4388 esac
4389
4390 fi
4391 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4392 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4393 file_magic_cmd=$lt_cv_file_magic_cmd
4394 deplibs_check_method=$lt_cv_deplibs_check_method
4395 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4396
4397
4398
4399
4400 # If no C compiler was specified, use CC.
4401 LTCC=${LTCC-"$CC"}
4402
4403 # If no C compiler flags were specified, use CFLAGS.
4404 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4405
4406 # Allow CC to be a program name with arguments.
4407 compiler=$CC
4408
4409
4410 # Check whether --enable-libtool-lock was given.
4411 if test "${enable_libtool_lock+set}" = set; then
4412 enableval=$enable_libtool_lock;
4413 fi
4414
4415 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4416
4417 # Some flags need to be propagated to the compiler or linker for good
4418 # libtool support.
4419 case $host in
4420 ia64-*-hpux*)
4421 # Find out which ABI we are using.
4422 echo 'int i;' > conftest.$ac_ext
4423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4424 (eval $ac_compile) 2>&5
4425 ac_status=$?
4426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427 (exit $ac_status); }; then
4428 case `/usr/bin/file conftest.$ac_objext` in
4429 *ELF-32*)
4430 HPUX_IA64_MODE="32"
4431 ;;
4432 *ELF-64*)
4433 HPUX_IA64_MODE="64"
4434 ;;
4435 esac
4436 fi
4437 rm -rf conftest*
4438 ;;
4439 *-*-irix6*)
4440 # Find out which ABI we are using.
4441 echo '#line 4441 "configure"' > conftest.$ac_ext
4442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4443 (eval $ac_compile) 2>&5
4444 ac_status=$?
4445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446 (exit $ac_status); }; then
4447 if test "$lt_cv_prog_gnu_ld" = yes; then
4448 case `/usr/bin/file conftest.$ac_objext` in
4449 *32-bit*)
4450 LD="${LD-ld} -melf32bsmip"
4451 ;;
4452 *N32*)
4453 LD="${LD-ld} -melf32bmipn32"
4454 ;;
4455 *64-bit*)
4456 LD="${LD-ld} -melf64bmip"
4457 ;;
4458 esac
4459 else
4460 case `/usr/bin/file conftest.$ac_objext` in
4461 *32-bit*)
4462 LD="${LD-ld} -32"
4463 ;;
4464 *N32*)
4465 LD="${LD-ld} -n32"
4466 ;;
4467 *64-bit*)
4468 LD="${LD-ld} -64"
4469 ;;
4470 esac
4471 fi
4472 fi
4473 rm -rf conftest*
4474 ;;
4475
4476 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4477 # Find out which ABI we are using.
4478 echo 'int i;' > conftest.$ac_ext
4479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4480 (eval $ac_compile) 2>&5
4481 ac_status=$?
4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); }; then
4484 case `/usr/bin/file conftest.o` in
4485 *32-bit*)
4486 case $host in
4487 x86_64-*linux*)
4488 LD="${LD-ld} -m elf_i386"
4489 ;;
4490 ppc64-*linux*|powerpc64-*linux*)
4491 LD="${LD-ld} -m elf32ppclinux"
4492 ;;
4493 s390x-*linux*)
4494 LD="${LD-ld} -m elf_s390"
4495 ;;
4496 sparc64-*linux*)
4497 LD="${LD-ld} -m elf32_sparc"
4498 ;;
4499 esac
4500 ;;
4501 *64-bit*)
4502 case $host in
4503 x86_64-*linux*)
4504 LD="${LD-ld} -m elf_x86_64"
4505 ;;
4506 ppc*-*linux*|powerpc*-*linux*)
4507 LD="${LD-ld} -m elf64ppc"
4508 ;;
4509 s390*-*linux*)
4510 LD="${LD-ld} -m elf64_s390"
4511 ;;
4512 sparc*-*linux*)
4513 LD="${LD-ld} -m elf64_sparc"
4514 ;;
4515 esac
4516 ;;
4517 esac
4518 fi
4519 rm -rf conftest*
4520 ;;
4521
4522 *-*-sco3.2v5*)
4523 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4524 SAVE_CFLAGS="$CFLAGS"
4525 CFLAGS="$CFLAGS -belf"
4526 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4527 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4528 if test "${lt_cv_cc_needs_belf+set}" = set; then
4529 echo $ECHO_N "(cached) $ECHO_C" >&6
4530 else
4531 ac_ext=c
4532 ac_cpp='$CPP $CPPFLAGS'
4533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4536
4537 cat >conftest.$ac_ext <<_ACEOF
4538 /* confdefs.h. */
4539 _ACEOF
4540 cat confdefs.h >>conftest.$ac_ext
4541 cat >>conftest.$ac_ext <<_ACEOF
4542 /* end confdefs.h. */
4543
4544 int
4545 main ()
4546 {
4547
4548 ;
4549 return 0;
4550 }
4551 _ACEOF
4552 rm -f conftest.$ac_objext conftest$ac_exeext
4553 if { (ac_try="$ac_link"
4554 case "(($ac_try" in
4555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4556 *) ac_try_echo=$ac_try;;
4557 esac
4558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4559 (eval "$ac_link") 2>conftest.er1
4560 ac_status=$?
4561 grep -v '^ *+' conftest.er1 >conftest.err
4562 rm -f conftest.er1
4563 cat conftest.err >&5
4564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565 (exit $ac_status); } &&
4566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4567 { (case "(($ac_try" in
4568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4569 *) ac_try_echo=$ac_try;;
4570 esac
4571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4572 (eval "$ac_try") 2>&5
4573 ac_status=$?
4574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575 (exit $ac_status); }; } &&
4576 { ac_try='test -s conftest$ac_exeext'
4577 { (case "(($ac_try" in
4578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4579 *) ac_try_echo=$ac_try;;
4580 esac
4581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4582 (eval "$ac_try") 2>&5
4583 ac_status=$?
4584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585 (exit $ac_status); }; }; then
4586 lt_cv_cc_needs_belf=yes
4587 else
4588 echo "$as_me: failed program was:" >&5
4589 sed 's/^/| /' conftest.$ac_ext >&5
4590
4591 lt_cv_cc_needs_belf=no
4592 fi
4593
4594 rm -f core conftest.err conftest.$ac_objext \
4595 conftest$ac_exeext conftest.$ac_ext
4596 ac_ext=c
4597 ac_cpp='$CPP $CPPFLAGS'
4598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4601
4602 fi
4603 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4604 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4605 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4606 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4607 CFLAGS="$SAVE_CFLAGS"
4608 fi
4609 ;;
4610 sparc*-*solaris*)
4611 # Find out which ABI we are using.
4612 echo 'int i;' > conftest.$ac_ext
4613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4614 (eval $ac_compile) 2>&5
4615 ac_status=$?
4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); }; then
4618 case `/usr/bin/file conftest.o` in
4619 *64-bit*)
4620 case $lt_cv_prog_gnu_ld in
4621 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4622 *) LD="${LD-ld} -64" ;;
4623 esac
4624 ;;
4625 esac
4626 fi
4627 rm -rf conftest*
4628 ;;
4629
4630
4631 esac
4632
4633 need_locks="$enable_libtool_lock"
4634
4635
4636 ac_ext=c
4637 ac_cpp='$CPP $CPPFLAGS'
4638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4641 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4642 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4643 # On Suns, sometimes $CPP names a directory.
4644 if test -n "$CPP" && test -d "$CPP"; then
4645 CPP=
4646 fi
4647 if test -z "$CPP"; then
4648 if test "${ac_cv_prog_CPP+set}" = set; then
4649 echo $ECHO_N "(cached) $ECHO_C" >&6
4650 else
4651 # Double quotes because CPP needs to be expanded
4652 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4653 do
4654 ac_preproc_ok=false
4655 for ac_c_preproc_warn_flag in '' yes
4656 do
4657 # Use a header file that comes with gcc, so configuring glibc
4658 # with a fresh cross-compiler works.
4659 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4660 # <limits.h> exists even on freestanding compilers.
4661 # On the NeXT, cc -E runs the code through the compiler's parser,
4662 # not just through cpp. "Syntax error" is here to catch this case.
4663 cat >conftest.$ac_ext <<_ACEOF
4664 /* confdefs.h. */
4665 _ACEOF
4666 cat confdefs.h >>conftest.$ac_ext
4667 cat >>conftest.$ac_ext <<_ACEOF
4668 /* end confdefs.h. */
4669 #ifdef __STDC__
4670 # include <limits.h>
4671 #else
4672 # include <assert.h>
4673 #endif
4674 Syntax error
4675 _ACEOF
4676 if { (ac_try="$ac_cpp conftest.$ac_ext"
4677 case "(($ac_try" in
4678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4679 *) ac_try_echo=$ac_try;;
4680 esac
4681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4682 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4683 ac_status=$?
4684 grep -v '^ *+' conftest.er1 >conftest.err
4685 rm -f conftest.er1
4686 cat conftest.err >&5
4687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688 (exit $ac_status); } >/dev/null; then
4689 if test -s conftest.err; then
4690 ac_cpp_err=$ac_c_preproc_warn_flag
4691 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4692 else
4693 ac_cpp_err=
4694 fi
4695 else
4696 ac_cpp_err=yes
4697 fi
4698 if test -z "$ac_cpp_err"; then
4699 :
4700 else
4701 echo "$as_me: failed program was:" >&5
4702 sed 's/^/| /' conftest.$ac_ext >&5
4703
4704 # Broken: fails on valid input.
4705 continue
4706 fi
4707
4708 rm -f conftest.err conftest.$ac_ext
4709
4710 # OK, works on sane cases. Now check whether nonexistent headers
4711 # can be detected and how.
4712 cat >conftest.$ac_ext <<_ACEOF
4713 /* confdefs.h. */
4714 _ACEOF
4715 cat confdefs.h >>conftest.$ac_ext
4716 cat >>conftest.$ac_ext <<_ACEOF
4717 /* end confdefs.h. */
4718 #include <ac_nonexistent.h>
4719 _ACEOF
4720 if { (ac_try="$ac_cpp conftest.$ac_ext"
4721 case "(($ac_try" in
4722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4723 *) ac_try_echo=$ac_try;;
4724 esac
4725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4726 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4727 ac_status=$?
4728 grep -v '^ *+' conftest.er1 >conftest.err
4729 rm -f conftest.er1
4730 cat conftest.err >&5
4731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732 (exit $ac_status); } >/dev/null; then
4733 if test -s conftest.err; then
4734 ac_cpp_err=$ac_c_preproc_warn_flag
4735 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4736 else
4737 ac_cpp_err=
4738 fi
4739 else
4740 ac_cpp_err=yes
4741 fi
4742 if test -z "$ac_cpp_err"; then
4743 # Broken: success on invalid input.
4744 continue
4745 else
4746 echo "$as_me: failed program was:" >&5
4747 sed 's/^/| /' conftest.$ac_ext >&5
4748
4749 # Passes both tests.
4750 ac_preproc_ok=:
4751 break
4752 fi
4753
4754 rm -f conftest.err conftest.$ac_ext
4755
4756 done
4757 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4758 rm -f conftest.err conftest.$ac_ext
4759 if $ac_preproc_ok; then
4760 break
4761 fi
4762
4763 done
4764 ac_cv_prog_CPP=$CPP
4765
4766 fi
4767 CPP=$ac_cv_prog_CPP
4768 else
4769 ac_cv_prog_CPP=$CPP
4770 fi
4771 { echo "$as_me:$LINENO: result: $CPP" >&5
4772 echo "${ECHO_T}$CPP" >&6; }
4773 ac_preproc_ok=false
4774 for ac_c_preproc_warn_flag in '' yes
4775 do
4776 # Use a header file that comes with gcc, so configuring glibc
4777 # with a fresh cross-compiler works.
4778 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4779 # <limits.h> exists even on freestanding compilers.
4780 # On the NeXT, cc -E runs the code through the compiler's parser,
4781 # not just through cpp. "Syntax error" is here to catch this case.
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 #ifdef __STDC__
4789 # include <limits.h>
4790 #else
4791 # include <assert.h>
4792 #endif
4793 Syntax error
4794 _ACEOF
4795 if { (ac_try="$ac_cpp conftest.$ac_ext"
4796 case "(($ac_try" in
4797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4798 *) ac_try_echo=$ac_try;;
4799 esac
4800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4801 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4802 ac_status=$?
4803 grep -v '^ *+' conftest.er1 >conftest.err
4804 rm -f conftest.er1
4805 cat conftest.err >&5
4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); } >/dev/null; then
4808 if test -s conftest.err; then
4809 ac_cpp_err=$ac_c_preproc_warn_flag
4810 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4811 else
4812 ac_cpp_err=
4813 fi
4814 else
4815 ac_cpp_err=yes
4816 fi
4817 if test -z "$ac_cpp_err"; then
4818 :
4819 else
4820 echo "$as_me: failed program was:" >&5
4821 sed 's/^/| /' conftest.$ac_ext >&5
4822
4823 # Broken: fails on valid input.
4824 continue
4825 fi
4826
4827 rm -f conftest.err conftest.$ac_ext
4828
4829 # OK, works on sane cases. Now check whether nonexistent headers
4830 # can be detected and how.
4831 cat >conftest.$ac_ext <<_ACEOF
4832 /* confdefs.h. */
4833 _ACEOF
4834 cat confdefs.h >>conftest.$ac_ext
4835 cat >>conftest.$ac_ext <<_ACEOF
4836 /* end confdefs.h. */
4837 #include <ac_nonexistent.h>
4838 _ACEOF
4839 if { (ac_try="$ac_cpp conftest.$ac_ext"
4840 case "(($ac_try" in
4841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4842 *) ac_try_echo=$ac_try;;
4843 esac
4844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4845 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4846 ac_status=$?
4847 grep -v '^ *+' conftest.er1 >conftest.err
4848 rm -f conftest.er1
4849 cat conftest.err >&5
4850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851 (exit $ac_status); } >/dev/null; then
4852 if test -s conftest.err; then
4853 ac_cpp_err=$ac_c_preproc_warn_flag
4854 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4855 else
4856 ac_cpp_err=
4857 fi
4858 else
4859 ac_cpp_err=yes
4860 fi
4861 if test -z "$ac_cpp_err"; then
4862 # Broken: success on invalid input.
4863 continue
4864 else
4865 echo "$as_me: failed program was:" >&5
4866 sed 's/^/| /' conftest.$ac_ext >&5
4867
4868 # Passes both tests.
4869 ac_preproc_ok=:
4870 break
4871 fi
4872
4873 rm -f conftest.err conftest.$ac_ext
4874
4875 done
4876 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4877 rm -f conftest.err conftest.$ac_ext
4878 if $ac_preproc_ok; then
4879 :
4880 else
4881 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4882 See \`config.log' for more details." >&5
4883 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4884 See \`config.log' for more details." >&2;}
4885 { (exit 1); exit 1; }; }
4886 fi
4887
4888 ac_ext=c
4889 ac_cpp='$CPP $CPPFLAGS'
4890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4893
4894
4895 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4896 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4897 if test "${ac_cv_header_stdc+set}" = set; then
4898 echo $ECHO_N "(cached) $ECHO_C" >&6
4899 else
4900 cat >conftest.$ac_ext <<_ACEOF
4901 /* confdefs.h. */
4902 _ACEOF
4903 cat confdefs.h >>conftest.$ac_ext
4904 cat >>conftest.$ac_ext <<_ACEOF
4905 /* end confdefs.h. */
4906 #include <stdlib.h>
4907 #include <stdarg.h>
4908 #include <string.h>
4909 #include <float.h>
4910
4911 int
4912 main ()
4913 {
4914
4915 ;
4916 return 0;
4917 }
4918 _ACEOF
4919 rm -f conftest.$ac_objext
4920 if { (ac_try="$ac_compile"
4921 case "(($ac_try" in
4922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4923 *) ac_try_echo=$ac_try;;
4924 esac
4925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4926 (eval "$ac_compile") 2>conftest.er1
4927 ac_status=$?
4928 grep -v '^ *+' conftest.er1 >conftest.err
4929 rm -f conftest.er1
4930 cat conftest.err >&5
4931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4932 (exit $ac_status); } &&
4933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4934 { (case "(($ac_try" in
4935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4936 *) ac_try_echo=$ac_try;;
4937 esac
4938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4939 (eval "$ac_try") 2>&5
4940 ac_status=$?
4941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942 (exit $ac_status); }; } &&
4943 { ac_try='test -s conftest.$ac_objext'
4944 { (case "(($ac_try" in
4945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4946 *) ac_try_echo=$ac_try;;
4947 esac
4948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4949 (eval "$ac_try") 2>&5
4950 ac_status=$?
4951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952 (exit $ac_status); }; }; then
4953 ac_cv_header_stdc=yes
4954 else
4955 echo "$as_me: failed program was:" >&5
4956 sed 's/^/| /' conftest.$ac_ext >&5
4957
4958 ac_cv_header_stdc=no
4959 fi
4960
4961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4962
4963 if test $ac_cv_header_stdc = yes; then
4964 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4965 cat >conftest.$ac_ext <<_ACEOF
4966 /* confdefs.h. */
4967 _ACEOF
4968 cat confdefs.h >>conftest.$ac_ext
4969 cat >>conftest.$ac_ext <<_ACEOF
4970 /* end confdefs.h. */
4971 #include <string.h>
4972
4973 _ACEOF
4974 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4975 $EGREP "memchr" >/dev/null 2>&1; then
4976 :
4977 else
4978 ac_cv_header_stdc=no
4979 fi
4980 rm -f conftest*
4981
4982 fi
4983
4984 if test $ac_cv_header_stdc = yes; then
4985 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4986 cat >conftest.$ac_ext <<_ACEOF
4987 /* confdefs.h. */
4988 _ACEOF
4989 cat confdefs.h >>conftest.$ac_ext
4990 cat >>conftest.$ac_ext <<_ACEOF
4991 /* end confdefs.h. */
4992 #include <stdlib.h>
4993
4994 _ACEOF
4995 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4996 $EGREP "free" >/dev/null 2>&1; then
4997 :
4998 else
4999 ac_cv_header_stdc=no
5000 fi
5001 rm -f conftest*
5002
5003 fi
5004
5005 if test $ac_cv_header_stdc = yes; then
5006 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5007 if test "$cross_compiling" = yes; then
5008 :
5009 else
5010 cat >conftest.$ac_ext <<_ACEOF
5011 /* confdefs.h. */
5012 _ACEOF
5013 cat confdefs.h >>conftest.$ac_ext
5014 cat >>conftest.$ac_ext <<_ACEOF
5015 /* end confdefs.h. */
5016 #include <ctype.h>
5017 #include <stdlib.h>
5018 #if ((' ' & 0x0FF) == 0x020)
5019 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5020 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5021 #else
5022 # define ISLOWER(c) \
5023 (('a' <= (c) && (c) <= 'i') \
5024 || ('j' <= (c) && (c) <= 'r') \
5025 || ('s' <= (c) && (c) <= 'z'))
5026 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5027 #endif
5028
5029 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5030 int
5031 main ()
5032 {
5033 int i;
5034 for (i = 0; i < 256; i++)
5035 if (XOR (islower (i), ISLOWER (i))
5036 || toupper (i) != TOUPPER (i))
5037 return 2;
5038 return 0;
5039 }
5040 _ACEOF
5041 rm -f conftest$ac_exeext
5042 if { (ac_try="$ac_link"
5043 case "(($ac_try" in
5044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5045 *) ac_try_echo=$ac_try;;
5046 esac
5047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5048 (eval "$ac_link") 2>&5
5049 ac_status=$?
5050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5052 { (case "(($ac_try" in
5053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5054 *) ac_try_echo=$ac_try;;
5055 esac
5056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5057 (eval "$ac_try") 2>&5
5058 ac_status=$?
5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060 (exit $ac_status); }; }; then
5061 :
5062 else
5063 echo "$as_me: program exited with status $ac_status" >&5
5064 echo "$as_me: failed program was:" >&5
5065 sed 's/^/| /' conftest.$ac_ext >&5
5066
5067 ( exit $ac_status )
5068 ac_cv_header_stdc=no
5069 fi
5070 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5071 fi
5072
5073
5074 fi
5075 fi
5076 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5077 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5078 if test $ac_cv_header_stdc = yes; then
5079
5080 cat >>confdefs.h <<\_ACEOF
5081 #define STDC_HEADERS 1
5082 _ACEOF
5083
5084 fi
5085
5086 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5097 inttypes.h stdint.h unistd.h
5098 do
5099 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5100 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5101 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5103 echo $ECHO_N "(cached) $ECHO_C" >&6
5104 else
5105 cat >conftest.$ac_ext <<_ACEOF
5106 /* confdefs.h. */
5107 _ACEOF
5108 cat confdefs.h >>conftest.$ac_ext
5109 cat >>conftest.$ac_ext <<_ACEOF
5110 /* end confdefs.h. */
5111 $ac_includes_default
5112
5113 #include <$ac_header>
5114 _ACEOF
5115 rm -f conftest.$ac_objext
5116 if { (ac_try="$ac_compile"
5117 case "(($ac_try" in
5118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5119 *) ac_try_echo=$ac_try;;
5120 esac
5121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5122 (eval "$ac_compile") 2>conftest.er1
5123 ac_status=$?
5124 grep -v '^ *+' conftest.er1 >conftest.err
5125 rm -f conftest.er1
5126 cat conftest.err >&5
5127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128 (exit $ac_status); } &&
5129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5130 { (case "(($ac_try" in
5131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5132 *) ac_try_echo=$ac_try;;
5133 esac
5134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5135 (eval "$ac_try") 2>&5
5136 ac_status=$?
5137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138 (exit $ac_status); }; } &&
5139 { ac_try='test -s conftest.$ac_objext'
5140 { (case "(($ac_try" in
5141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5142 *) ac_try_echo=$ac_try;;
5143 esac
5144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5145 (eval "$ac_try") 2>&5
5146 ac_status=$?
5147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148 (exit $ac_status); }; }; then
5149 eval "$as_ac_Header=yes"
5150 else
5151 echo "$as_me: failed program was:" >&5
5152 sed 's/^/| /' conftest.$ac_ext >&5
5153
5154 eval "$as_ac_Header=no"
5155 fi
5156
5157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5158 fi
5159 ac_res=`eval echo '${'$as_ac_Header'}'`
5160 { echo "$as_me:$LINENO: result: $ac_res" >&5
5161 echo "${ECHO_T}$ac_res" >&6; }
5162 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5163 cat >>confdefs.h <<_ACEOF
5164 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5165 _ACEOF
5166
5167 fi
5168
5169 done
5170
5171
5172
5173 for ac_header in dlfcn.h
5174 do
5175 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5176 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5177 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5178 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5179 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5180 echo $ECHO_N "(cached) $ECHO_C" >&6
5181 fi
5182 ac_res=`eval echo '${'$as_ac_Header'}'`
5183 { echo "$as_me:$LINENO: result: $ac_res" >&5
5184 echo "${ECHO_T}$ac_res" >&6; }
5185 else
5186 # Is the header compilable?
5187 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5188 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5189 cat >conftest.$ac_ext <<_ACEOF
5190 /* confdefs.h. */
5191 _ACEOF
5192 cat confdefs.h >>conftest.$ac_ext
5193 cat >>conftest.$ac_ext <<_ACEOF
5194 /* end confdefs.h. */
5195 $ac_includes_default
5196 #include <$ac_header>
5197 _ACEOF
5198 rm -f conftest.$ac_objext
5199 if { (ac_try="$ac_compile"
5200 case "(($ac_try" in
5201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5202 *) ac_try_echo=$ac_try;;
5203 esac
5204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5205 (eval "$ac_compile") 2>conftest.er1
5206 ac_status=$?
5207 grep -v '^ *+' conftest.er1 >conftest.err
5208 rm -f conftest.er1
5209 cat conftest.err >&5
5210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211 (exit $ac_status); } &&
5212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5213 { (case "(($ac_try" in
5214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5215 *) ac_try_echo=$ac_try;;
5216 esac
5217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5218 (eval "$ac_try") 2>&5
5219 ac_status=$?
5220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221 (exit $ac_status); }; } &&
5222 { ac_try='test -s conftest.$ac_objext'
5223 { (case "(($ac_try" in
5224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5225 *) ac_try_echo=$ac_try;;
5226 esac
5227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5228 (eval "$ac_try") 2>&5
5229 ac_status=$?
5230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231 (exit $ac_status); }; }; then
5232 ac_header_compiler=yes
5233 else
5234 echo "$as_me: failed program was:" >&5
5235 sed 's/^/| /' conftest.$ac_ext >&5
5236
5237 ac_header_compiler=no
5238 fi
5239
5240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5241 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5242 echo "${ECHO_T}$ac_header_compiler" >&6; }
5243
5244 # Is the header present?
5245 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5246 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5247 cat >conftest.$ac_ext <<_ACEOF
5248 /* confdefs.h. */
5249 _ACEOF
5250 cat confdefs.h >>conftest.$ac_ext
5251 cat >>conftest.$ac_ext <<_ACEOF
5252 /* end confdefs.h. */
5253 #include <$ac_header>
5254 _ACEOF
5255 if { (ac_try="$ac_cpp conftest.$ac_ext"
5256 case "(($ac_try" in
5257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5258 *) ac_try_echo=$ac_try;;
5259 esac
5260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5261 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5262 ac_status=$?
5263 grep -v '^ *+' conftest.er1 >conftest.err
5264 rm -f conftest.er1
5265 cat conftest.err >&5
5266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267 (exit $ac_status); } >/dev/null; then
5268 if test -s conftest.err; then
5269 ac_cpp_err=$ac_c_preproc_warn_flag
5270 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5271 else
5272 ac_cpp_err=
5273 fi
5274 else
5275 ac_cpp_err=yes
5276 fi
5277 if test -z "$ac_cpp_err"; then
5278 ac_header_preproc=yes
5279 else
5280 echo "$as_me: failed program was:" >&5
5281 sed 's/^/| /' conftest.$ac_ext >&5
5282
5283 ac_header_preproc=no
5284 fi
5285
5286 rm -f conftest.err conftest.$ac_ext
5287 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5288 echo "${ECHO_T}$ac_header_preproc" >&6; }
5289
5290 # So? What about this header?
5291 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5292 yes:no: )
5293 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5294 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5295 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5296 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5297 ac_header_preproc=yes
5298 ;;
5299 no:yes:* )
5300 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5301 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5302 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5303 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5304 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5305 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5306 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5307 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5308 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5309 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5310 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5311 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5312 ( cat <<\_ASBOX
5313 ## ---------------------------------------------------------------------- ##
5314 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
5315 ## ---------------------------------------------------------------------- ##
5316 _ASBOX
5317 ) | sed "s/^/$as_me: WARNING: /" >&2
5318 ;;
5319 esac
5320 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5322 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5323 echo $ECHO_N "(cached) $ECHO_C" >&6
5324 else
5325 eval "$as_ac_Header=\$ac_header_preproc"
5326 fi
5327 ac_res=`eval echo '${'$as_ac_Header'}'`
5328 { echo "$as_me:$LINENO: result: $ac_res" >&5
5329 echo "${ECHO_T}$ac_res" >&6; }
5330
5331 fi
5332 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5333 cat >>confdefs.h <<_ACEOF
5334 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5335 _ACEOF
5336
5337 fi
5338
5339 done
5340
5341 ac_ext=cpp
5342 ac_cpp='$CXXCPP $CPPFLAGS'
5343 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5344 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5345 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5346 if test -z "$CXX"; then
5347 if test -n "$CCC"; then
5348 CXX=$CCC
5349 else
5350 if test -n "$ac_tool_prefix"; then
5351 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5352 do
5353 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5354 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5357 if test "${ac_cv_prog_CXX+set}" = set; then
5358 echo $ECHO_N "(cached) $ECHO_C" >&6
5359 else
5360 if test -n "$CXX"; then
5361 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5362 else
5363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5364 for as_dir in $PATH
5365 do
5366 IFS=$as_save_IFS
5367 test -z "$as_dir" && as_dir=.
5368 for ac_exec_ext in '' $ac_executable_extensions; do
5369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5370 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5372 break 2
5373 fi
5374 done
5375 done
5376 IFS=$as_save_IFS
5377
5378 fi
5379 fi
5380 CXX=$ac_cv_prog_CXX
5381 if test -n "$CXX"; then
5382 { echo "$as_me:$LINENO: result: $CXX" >&5
5383 echo "${ECHO_T}$CXX" >&6; }
5384 else
5385 { echo "$as_me:$LINENO: result: no" >&5
5386 echo "${ECHO_T}no" >&6; }
5387 fi
5388
5389
5390 test -n "$CXX" && break
5391 done
5392 fi
5393 if test -z "$CXX"; then
5394 ac_ct_CXX=$CXX
5395 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5396 do
5397 # Extract the first word of "$ac_prog", so it can be a program name with args.
5398 set dummy $ac_prog; ac_word=$2
5399 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5401 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5402 echo $ECHO_N "(cached) $ECHO_C" >&6
5403 else
5404 if test -n "$ac_ct_CXX"; then
5405 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5406 else
5407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5408 for as_dir in $PATH
5409 do
5410 IFS=$as_save_IFS
5411 test -z "$as_dir" && as_dir=.
5412 for ac_exec_ext in '' $ac_executable_extensions; do
5413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5414 ac_cv_prog_ac_ct_CXX="$ac_prog"
5415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5416 break 2
5417 fi
5418 done
5419 done
5420 IFS=$as_save_IFS
5421
5422 fi
5423 fi
5424 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5425 if test -n "$ac_ct_CXX"; then
5426 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5427 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5428 else
5429 { echo "$as_me:$LINENO: result: no" >&5
5430 echo "${ECHO_T}no" >&6; }
5431 fi
5432
5433
5434 test -n "$ac_ct_CXX" && break
5435 done
5436
5437 if test "x$ac_ct_CXX" = x; then
5438 CXX="g++"
5439 else
5440 case $cross_compiling:$ac_tool_warned in
5441 yes:)
5442 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5443 whose name does not start with the host triplet. If you think this
5444 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
5445 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5446 whose name does not start with the host triplet. If you think this
5447 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
5448 ac_tool_warned=yes ;;
5449 esac
5450 CXX=$ac_ct_CXX
5451 fi
5452 fi
5453
5454 fi
5455 fi
5456 # Provide some information about the compiler.
5457 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5458 ac_compiler=`set X $ac_compile; echo $2`
5459 { (ac_try="$ac_compiler --version >&5"
5460 case "(($ac_try" in
5461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5462 *) ac_try_echo=$ac_try;;
5463 esac
5464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5465 (eval "$ac_compiler --version >&5") 2>&5
5466 ac_status=$?
5467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468 (exit $ac_status); }
5469 { (ac_try="$ac_compiler -v >&5"
5470 case "(($ac_try" in
5471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5472 *) ac_try_echo=$ac_try;;
5473 esac
5474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5475 (eval "$ac_compiler -v >&5") 2>&5
5476 ac_status=$?
5477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478 (exit $ac_status); }
5479 { (ac_try="$ac_compiler -V >&5"
5480 case "(($ac_try" in
5481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5482 *) ac_try_echo=$ac_try;;
5483 esac
5484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5485 (eval "$ac_compiler -V >&5") 2>&5
5486 ac_status=$?
5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488 (exit $ac_status); }
5489
5490 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5491 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5492 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5493 echo $ECHO_N "(cached) $ECHO_C" >&6
5494 else
5495 cat >conftest.$ac_ext <<_ACEOF
5496 /* confdefs.h. */
5497 _ACEOF
5498 cat confdefs.h >>conftest.$ac_ext
5499 cat >>conftest.$ac_ext <<_ACEOF
5500 /* end confdefs.h. */
5501
5502 int
5503 main ()
5504 {
5505 #ifndef __GNUC__
5506 choke me
5507 #endif
5508
5509 ;
5510 return 0;
5511 }
5512 _ACEOF
5513 rm -f conftest.$ac_objext
5514 if { (ac_try="$ac_compile"
5515 case "(($ac_try" in
5516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5517 *) ac_try_echo=$ac_try;;
5518 esac
5519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5520 (eval "$ac_compile") 2>conftest.er1
5521 ac_status=$?
5522 grep -v '^ *+' conftest.er1 >conftest.err
5523 rm -f conftest.er1
5524 cat conftest.err >&5
5525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526 (exit $ac_status); } &&
5527 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5528 { (case "(($ac_try" in
5529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5530 *) ac_try_echo=$ac_try;;
5531 esac
5532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5533 (eval "$ac_try") 2>&5
5534 ac_status=$?
5535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536 (exit $ac_status); }; } &&
5537 { ac_try='test -s conftest.$ac_objext'
5538 { (case "(($ac_try" in
5539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5540 *) ac_try_echo=$ac_try;;
5541 esac
5542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5543 (eval "$ac_try") 2>&5
5544 ac_status=$?
5545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546 (exit $ac_status); }; }; then
5547 ac_compiler_gnu=yes
5548 else
5549 echo "$as_me: failed program was:" >&5
5550 sed 's/^/| /' conftest.$ac_ext >&5
5551
5552 ac_compiler_gnu=no
5553 fi
5554
5555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5556 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5557
5558 fi
5559 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5560 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5561 GXX=`test $ac_compiler_gnu = yes && echo yes`
5562 ac_test_CXXFLAGS=${CXXFLAGS+set}
5563 ac_save_CXXFLAGS=$CXXFLAGS
5564 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5565 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5566 if test "${ac_cv_prog_cxx_g+set}" = set; then
5567 echo $ECHO_N "(cached) $ECHO_C" >&6
5568 else
5569 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5570 ac_cxx_werror_flag=yes
5571 ac_cv_prog_cxx_g=no
5572 CXXFLAGS="-g"
5573 cat >conftest.$ac_ext <<_ACEOF
5574 /* confdefs.h. */
5575 _ACEOF
5576 cat confdefs.h >>conftest.$ac_ext
5577 cat >>conftest.$ac_ext <<_ACEOF
5578 /* end confdefs.h. */
5579
5580 int
5581 main ()
5582 {
5583
5584 ;
5585 return 0;
5586 }
5587 _ACEOF
5588 rm -f conftest.$ac_objext
5589 if { (ac_try="$ac_compile"
5590 case "(($ac_try" in
5591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5592 *) ac_try_echo=$ac_try;;
5593 esac
5594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5595 (eval "$ac_compile") 2>conftest.er1
5596 ac_status=$?
5597 grep -v '^ *+' conftest.er1 >conftest.err
5598 rm -f conftest.er1
5599 cat conftest.err >&5
5600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601 (exit $ac_status); } &&
5602 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5603 { (case "(($ac_try" in
5604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5605 *) ac_try_echo=$ac_try;;
5606 esac
5607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5608 (eval "$ac_try") 2>&5
5609 ac_status=$?
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); }; } &&
5612 { ac_try='test -s conftest.$ac_objext'
5613 { (case "(($ac_try" in
5614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5615 *) ac_try_echo=$ac_try;;
5616 esac
5617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5618 (eval "$ac_try") 2>&5
5619 ac_status=$?
5620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621 (exit $ac_status); }; }; then
5622 ac_cv_prog_cxx_g=yes
5623 else
5624 echo "$as_me: failed program was:" >&5
5625 sed 's/^/| /' conftest.$ac_ext >&5
5626
5627 CXXFLAGS=""
5628 cat >conftest.$ac_ext <<_ACEOF
5629 /* confdefs.h. */
5630 _ACEOF
5631 cat confdefs.h >>conftest.$ac_ext
5632 cat >>conftest.$ac_ext <<_ACEOF
5633 /* end confdefs.h. */
5634
5635 int
5636 main ()
5637 {
5638
5639 ;
5640 return 0;
5641 }
5642 _ACEOF
5643 rm -f conftest.$ac_objext
5644 if { (ac_try="$ac_compile"
5645 case "(($ac_try" in
5646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5647 *) ac_try_echo=$ac_try;;
5648 esac
5649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5650 (eval "$ac_compile") 2>conftest.er1
5651 ac_status=$?
5652 grep -v '^ *+' conftest.er1 >conftest.err
5653 rm -f conftest.er1
5654 cat conftest.err >&5
5655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5656 (exit $ac_status); } &&
5657 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5658 { (case "(($ac_try" in
5659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5660 *) ac_try_echo=$ac_try;;
5661 esac
5662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5663 (eval "$ac_try") 2>&5
5664 ac_status=$?
5665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666 (exit $ac_status); }; } &&
5667 { ac_try='test -s conftest.$ac_objext'
5668 { (case "(($ac_try" in
5669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5670 *) ac_try_echo=$ac_try;;
5671 esac
5672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5673 (eval "$ac_try") 2>&5
5674 ac_status=$?
5675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676 (exit $ac_status); }; }; then
5677 :
5678 else
5679 echo "$as_me: failed program was:" >&5
5680 sed 's/^/| /' conftest.$ac_ext >&5
5681
5682 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5683 CXXFLAGS="-g"
5684 cat >conftest.$ac_ext <<_ACEOF
5685 /* confdefs.h. */
5686 _ACEOF
5687 cat confdefs.h >>conftest.$ac_ext
5688 cat >>conftest.$ac_ext <<_ACEOF
5689 /* end confdefs.h. */
5690
5691 int
5692 main ()
5693 {
5694
5695 ;
5696 return 0;
5697 }
5698 _ACEOF
5699 rm -f conftest.$ac_objext
5700 if { (ac_try="$ac_compile"
5701 case "(($ac_try" in
5702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5703 *) ac_try_echo=$ac_try;;
5704 esac
5705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5706 (eval "$ac_compile") 2>conftest.er1
5707 ac_status=$?
5708 grep -v '^ *+' conftest.er1 >conftest.err
5709 rm -f conftest.er1
5710 cat conftest.err >&5
5711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712 (exit $ac_status); } &&
5713 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5714 { (case "(($ac_try" in
5715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5716 *) ac_try_echo=$ac_try;;
5717 esac
5718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5719 (eval "$ac_try") 2>&5
5720 ac_status=$?
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); }; } &&
5723 { ac_try='test -s conftest.$ac_objext'
5724 { (case "(($ac_try" in
5725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5726 *) ac_try_echo=$ac_try;;
5727 esac
5728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5729 (eval "$ac_try") 2>&5
5730 ac_status=$?
5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); }; }; then
5733 ac_cv_prog_cxx_g=yes
5734 else
5735 echo "$as_me: failed program was:" >&5
5736 sed 's/^/| /' conftest.$ac_ext >&5
5737
5738
5739 fi
5740
5741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5742 fi
5743
5744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5745 fi
5746
5747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5748 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5749 fi
5750 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5751 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5752 if test "$ac_test_CXXFLAGS" = set; then
5753 CXXFLAGS=$ac_save_CXXFLAGS
5754 elif test $ac_cv_prog_cxx_g = yes; then
5755 if test "$GXX" = yes; then
5756 CXXFLAGS="-g -O2"
5757 else
5758 CXXFLAGS="-g"
5759 fi
5760 else
5761 if test "$GXX" = yes; then
5762 CXXFLAGS="-O2"
5763 else
5764 CXXFLAGS=
5765 fi
5766 fi
5767 ac_ext=cpp
5768 ac_cpp='$CXXCPP $CPPFLAGS'
5769 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5770 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5771 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5772
5773 depcc="$CXX" am_compiler_list=
5774
5775 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5776 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5777 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5778 echo $ECHO_N "(cached) $ECHO_C" >&6
5779 else
5780 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5781 # We make a subdir and do the tests there. Otherwise we can end up
5782 # making bogus files that we don't know about and never remove. For
5783 # instance it was reported that on HP-UX the gcc test will end up
5784 # making a dummy file named `D' -- because `-MD' means `put the output
5785 # in D'.
5786 mkdir conftest.dir
5787 # Copy depcomp to subdir because otherwise we won't find it if we're
5788 # using a relative directory.
5789 cp "$am_depcomp" conftest.dir
5790 cd conftest.dir
5791 # We will build objects and dependencies in a subdirectory because
5792 # it helps to detect inapplicable dependency modes. For instance
5793 # both Tru64's cc and ICC support -MD to output dependencies as a
5794 # side effect of compilation, but ICC will put the dependencies in
5795 # the current directory while Tru64 will put them in the object
5796 # directory.
5797 mkdir sub
5798
5799 am_cv_CXX_dependencies_compiler_type=none
5800 if test "$am_compiler_list" = ""; then
5801 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5802 fi
5803 for depmode in $am_compiler_list; do
5804 # Setup a source with many dependencies, because some compilers
5805 # like to wrap large dependency lists on column 80 (with \), and
5806 # we should not choose a depcomp mode which is confused by this.
5807 #
5808 # We need to recreate these files for each test, as the compiler may
5809 # overwrite some of them when testing with obscure command lines.
5810 # This happens at least with the AIX C compiler.
5811 : > sub/conftest.c
5812 for i in 1 2 3 4 5 6; do
5813 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5814 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5815 # Solaris 8's {/usr,}/bin/sh.
5816 touch sub/conftst$i.h
5817 done
5818 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5819
5820 case $depmode in
5821 nosideeffect)
5822 # after this tag, mechanisms are not by side-effect, so they'll
5823 # only be used when explicitly requested
5824 if test "x$enable_dependency_tracking" = xyes; then
5825 continue
5826 else
5827 break
5828 fi
5829 ;;
5830 none) break ;;
5831 esac
5832 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5833 # mode. It turns out that the SunPro C++ compiler does not properly
5834 # handle `-M -o', and we need to detect this.
5835 if depmode=$depmode \
5836 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5837 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5838 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5839 >/dev/null 2>conftest.err &&
5840 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5841 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5842 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5843 # icc doesn't choke on unknown options, it will just issue warnings
5844 # or remarks (even with -Werror). So we grep stderr for any message
5845 # that says an option was ignored or not supported.
5846 # When given -MP, icc 7.0 and 7.1 complain thusly:
5847 # icc: Command line warning: ignoring option '-M'; no argument required
5848 # The diagnosis changed in icc 8.0:
5849 # icc: Command line remark: option '-MP' not supported
5850 if (grep 'ignoring option' conftest.err ||
5851 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5852 am_cv_CXX_dependencies_compiler_type=$depmode
5853 break
5854 fi
5855 fi
5856 done
5857
5858 cd ..
5859 rm -rf conftest.dir
5860 else
5861 am_cv_CXX_dependencies_compiler_type=none
5862 fi
5863
5864 fi
5865 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5866 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5867 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5868
5869
5870
5871 if
5872 test "x$enable_dependency_tracking" != xno \
5873 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5874 am__fastdepCXX_TRUE=
5875 am__fastdepCXX_FALSE='#'
5876 else
5877 am__fastdepCXX_TRUE='#'
5878 am__fastdepCXX_FALSE=
5879 fi
5880
5881
5882
5883
5884 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5885 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5886 (test "X$CXX" != "Xg++"))) ; then
5887 ac_ext=cpp
5888 ac_cpp='$CXXCPP $CPPFLAGS'
5889 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5890 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5891 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5892 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5893 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5894 if test -z "$CXXCPP"; then
5895 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5896 echo $ECHO_N "(cached) $ECHO_C" >&6
5897 else
5898 # Double quotes because CXXCPP needs to be expanded
5899 for CXXCPP in "$CXX -E" "/lib/cpp"
5900 do
5901 ac_preproc_ok=false
5902 for ac_cxx_preproc_warn_flag in '' yes
5903 do
5904 # Use a header file that comes with gcc, so configuring glibc
5905 # with a fresh cross-compiler works.
5906 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5907 # <limits.h> exists even on freestanding compilers.
5908 # On the NeXT, cc -E runs the code through the compiler's parser,
5909 # not just through cpp. "Syntax error" is here to catch this case.
5910 cat >conftest.$ac_ext <<_ACEOF
5911 /* confdefs.h. */
5912 _ACEOF
5913 cat confdefs.h >>conftest.$ac_ext
5914 cat >>conftest.$ac_ext <<_ACEOF
5915 /* end confdefs.h. */
5916 #ifdef __STDC__
5917 # include <limits.h>
5918 #else
5919 # include <assert.h>
5920 #endif
5921 Syntax error
5922 _ACEOF
5923 if { (ac_try="$ac_cpp conftest.$ac_ext"
5924 case "(($ac_try" in
5925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5926 *) ac_try_echo=$ac_try;;
5927 esac
5928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5929 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5930 ac_status=$?
5931 grep -v '^ *+' conftest.er1 >conftest.err
5932 rm -f conftest.er1
5933 cat conftest.err >&5
5934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935 (exit $ac_status); } >/dev/null; then
5936 if test -s conftest.err; then
5937 ac_cpp_err=$ac_cxx_preproc_warn_flag
5938 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5939 else
5940 ac_cpp_err=
5941 fi
5942 else
5943 ac_cpp_err=yes
5944 fi
5945 if test -z "$ac_cpp_err"; then
5946 :
5947 else
5948 echo "$as_me: failed program was:" >&5
5949 sed 's/^/| /' conftest.$ac_ext >&5
5950
5951 # Broken: fails on valid input.
5952 continue
5953 fi
5954
5955 rm -f conftest.err conftest.$ac_ext
5956
5957 # OK, works on sane cases. Now check whether nonexistent headers
5958 # can be detected and how.
5959 cat >conftest.$ac_ext <<_ACEOF
5960 /* confdefs.h. */
5961 _ACEOF
5962 cat confdefs.h >>conftest.$ac_ext
5963 cat >>conftest.$ac_ext <<_ACEOF
5964 /* end confdefs.h. */
5965 #include <ac_nonexistent.h>
5966 _ACEOF
5967 if { (ac_try="$ac_cpp conftest.$ac_ext"
5968 case "(($ac_try" in
5969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5970 *) ac_try_echo=$ac_try;;
5971 esac
5972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5973 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5974 ac_status=$?
5975 grep -v '^ *+' conftest.er1 >conftest.err
5976 rm -f conftest.er1
5977 cat conftest.err >&5
5978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979 (exit $ac_status); } >/dev/null; then
5980 if test -s conftest.err; then
5981 ac_cpp_err=$ac_cxx_preproc_warn_flag
5982 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5983 else
5984 ac_cpp_err=
5985 fi
5986 else
5987 ac_cpp_err=yes
5988 fi
5989 if test -z "$ac_cpp_err"; then
5990 # Broken: success on invalid input.
5991 continue
5992 else
5993 echo "$as_me: failed program was:" >&5
5994 sed 's/^/| /' conftest.$ac_ext >&5
5995
5996 # Passes both tests.
5997 ac_preproc_ok=:
5998 break
5999 fi
6000
6001 rm -f conftest.err conftest.$ac_ext
6002
6003 done
6004 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6005 rm -f conftest.err conftest.$ac_ext
6006 if $ac_preproc_ok; then
6007 break
6008 fi
6009
6010 done
6011 ac_cv_prog_CXXCPP=$CXXCPP
6012
6013 fi
6014 CXXCPP=$ac_cv_prog_CXXCPP
6015 else
6016 ac_cv_prog_CXXCPP=$CXXCPP
6017 fi
6018 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6019 echo "${ECHO_T}$CXXCPP" >&6; }
6020 ac_preproc_ok=false
6021 for ac_cxx_preproc_warn_flag in '' yes
6022 do
6023 # Use a header file that comes with gcc, so configuring glibc
6024 # with a fresh cross-compiler works.
6025 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6026 # <limits.h> exists even on freestanding compilers.
6027 # On the NeXT, cc -E runs the code through the compiler's parser,
6028 # not just through cpp. "Syntax error" is here to catch this case.
6029 cat >conftest.$ac_ext <<_ACEOF
6030 /* confdefs.h. */
6031 _ACEOF
6032 cat confdefs.h >>conftest.$ac_ext
6033 cat >>conftest.$ac_ext <<_ACEOF
6034 /* end confdefs.h. */
6035 #ifdef __STDC__
6036 # include <limits.h>
6037 #else
6038 # include <assert.h>
6039 #endif
6040 Syntax error
6041 _ACEOF
6042 if { (ac_try="$ac_cpp conftest.$ac_ext"
6043 case "(($ac_try" in
6044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6045 *) ac_try_echo=$ac_try;;
6046 esac
6047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6048 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6049 ac_status=$?
6050 grep -v '^ *+' conftest.er1 >conftest.err
6051 rm -f conftest.er1
6052 cat conftest.err >&5
6053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054 (exit $ac_status); } >/dev/null; then
6055 if test -s conftest.err; then
6056 ac_cpp_err=$ac_cxx_preproc_warn_flag
6057 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6058 else
6059 ac_cpp_err=
6060 fi
6061 else
6062 ac_cpp_err=yes
6063 fi
6064 if test -z "$ac_cpp_err"; then
6065 :
6066 else
6067 echo "$as_me: failed program was:" >&5
6068 sed 's/^/| /' conftest.$ac_ext >&5
6069
6070 # Broken: fails on valid input.
6071 continue
6072 fi
6073
6074 rm -f conftest.err conftest.$ac_ext
6075
6076 # OK, works on sane cases. Now check whether nonexistent headers
6077 # can be detected and how.
6078 cat >conftest.$ac_ext <<_ACEOF
6079 /* confdefs.h. */
6080 _ACEOF
6081 cat confdefs.h >>conftest.$ac_ext
6082 cat >>conftest.$ac_ext <<_ACEOF
6083 /* end confdefs.h. */
6084 #include <ac_nonexistent.h>
6085 _ACEOF
6086 if { (ac_try="$ac_cpp conftest.$ac_ext"
6087 case "(($ac_try" in
6088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6089 *) ac_try_echo=$ac_try;;
6090 esac
6091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6092 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6093 ac_status=$?
6094 grep -v '^ *+' conftest.er1 >conftest.err
6095 rm -f conftest.er1
6096 cat conftest.err >&5
6097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098 (exit $ac_status); } >/dev/null; then
6099 if test -s conftest.err; then
6100 ac_cpp_err=$ac_cxx_preproc_warn_flag
6101 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6102 else
6103 ac_cpp_err=
6104 fi
6105 else
6106 ac_cpp_err=yes
6107 fi
6108 if test -z "$ac_cpp_err"; then
6109 # Broken: success on invalid input.
6110 continue
6111 else
6112 echo "$as_me: failed program was:" >&5
6113 sed 's/^/| /' conftest.$ac_ext >&5
6114
6115 # Passes both tests.
6116 ac_preproc_ok=:
6117 break
6118 fi
6119
6120 rm -f conftest.err conftest.$ac_ext
6121
6122 done
6123 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6124 rm -f conftest.err conftest.$ac_ext
6125 if $ac_preproc_ok; then
6126 :
6127 else
6128 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6129 See \`config.log' for more details." >&5
6130 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6131 See \`config.log' for more details." >&2;}
6132 { (exit 1); exit 1; }; }
6133 fi
6134
6135 ac_ext=cpp
6136 ac_cpp='$CXXCPP $CPPFLAGS'
6137 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6138 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6139 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6140
6141 fi
6142
6143
6144 ac_ext=f
6145 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6146 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6147 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6148 if test -n "$ac_tool_prefix"; then
6149 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
6150 do
6151 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6152 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6153 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6155 if test "${ac_cv_prog_F77+set}" = set; then
6156 echo $ECHO_N "(cached) $ECHO_C" >&6
6157 else
6158 if test -n "$F77"; then
6159 ac_cv_prog_F77="$F77" # Let the user override the test.
6160 else
6161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6162 for as_dir in $PATH
6163 do
6164 IFS=$as_save_IFS
6165 test -z "$as_dir" && as_dir=.
6166 for ac_exec_ext in '' $ac_executable_extensions; do
6167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6168 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6170 break 2
6171 fi
6172 done
6173 done
6174 IFS=$as_save_IFS
6175
6176 fi
6177 fi
6178 F77=$ac_cv_prog_F77
6179 if test -n "$F77"; then
6180 { echo "$as_me:$LINENO: result: $F77" >&5
6181 echo "${ECHO_T}$F77" >&6; }
6182 else
6183 { echo "$as_me:$LINENO: result: no" >&5
6184 echo "${ECHO_T}no" >&6; }
6185 fi
6186
6187
6188 test -n "$F77" && break
6189 done
6190 fi
6191 if test -z "$F77"; then
6192 ac_ct_F77=$F77
6193 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
6194 do
6195 # Extract the first word of "$ac_prog", so it can be a program name with args.
6196 set dummy $ac_prog; ac_word=$2
6197 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6199 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6200 echo $ECHO_N "(cached) $ECHO_C" >&6
6201 else
6202 if test -n "$ac_ct_F77"; then
6203 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6204 else
6205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6206 for as_dir in $PATH
6207 do
6208 IFS=$as_save_IFS
6209 test -z "$as_dir" && as_dir=.
6210 for ac_exec_ext in '' $ac_executable_extensions; do
6211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6212 ac_cv_prog_ac_ct_F77="$ac_prog"
6213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6214 break 2
6215 fi
6216 done
6217 done
6218 IFS=$as_save_IFS
6219
6220 fi
6221 fi
6222 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6223 if test -n "$ac_ct_F77"; then
6224 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6225 echo "${ECHO_T}$ac_ct_F77" >&6; }
6226 else
6227 { echo "$as_me:$LINENO: result: no" >&5
6228 echo "${ECHO_T}no" >&6; }
6229 fi
6230
6231
6232 test -n "$ac_ct_F77" && break
6233 done
6234
6235 if test "x$ac_ct_F77" = x; then
6236 F77=""
6237 else
6238 case $cross_compiling:$ac_tool_warned in
6239 yes:)
6240 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6241 whose name does not start with the host triplet. If you think this
6242 configuration is useful to you, please write to autoconf@gnu.org." >&5
6243 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6244 whose name does not start with the host triplet. If you think this
6245 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6246 ac_tool_warned=yes ;;
6247 esac
6248 F77=$ac_ct_F77
6249 fi
6250 fi
6251
6252
6253 # Provide some information about the compiler.
6254 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6255 ac_compiler=`set X $ac_compile; echo $2`
6256 { (ac_try="$ac_compiler --version >&5"
6257 case "(($ac_try" in
6258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6259 *) ac_try_echo=$ac_try;;
6260 esac
6261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6262 (eval "$ac_compiler --version >&5") 2>&5
6263 ac_status=$?
6264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265 (exit $ac_status); }
6266 { (ac_try="$ac_compiler -v >&5"
6267 case "(($ac_try" in
6268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6269 *) ac_try_echo=$ac_try;;
6270 esac
6271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6272 (eval "$ac_compiler -v >&5") 2>&5
6273 ac_status=$?
6274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275 (exit $ac_status); }
6276 { (ac_try="$ac_compiler -V >&5"
6277 case "(($ac_try" in
6278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6279 *) ac_try_echo=$ac_try;;
6280 esac
6281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6282 (eval "$ac_compiler -V >&5") 2>&5
6283 ac_status=$?
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); }
6286 rm -f a.out
6287
6288 # If we don't use `.F' as extension, the preprocessor is not run on the
6289 # input file. (Note that this only needs to work for GNU compilers.)
6290 ac_save_ext=$ac_ext
6291 ac_ext=F
6292 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6293 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6294 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6295 echo $ECHO_N "(cached) $ECHO_C" >&6
6296 else
6297 cat >conftest.$ac_ext <<_ACEOF
6298 program main
6299 #ifndef __GNUC__
6300 choke me
6301 #endif
6302
6303 end
6304 _ACEOF
6305 rm -f conftest.$ac_objext
6306 if { (ac_try="$ac_compile"
6307 case "(($ac_try" in
6308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6309 *) ac_try_echo=$ac_try;;
6310 esac
6311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6312 (eval "$ac_compile") 2>conftest.er1
6313 ac_status=$?
6314 grep -v '^ *+' conftest.er1 >conftest.err
6315 rm -f conftest.er1
6316 cat conftest.err >&5
6317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318 (exit $ac_status); } &&
6319 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6320 { (case "(($ac_try" in
6321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6322 *) ac_try_echo=$ac_try;;
6323 esac
6324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6325 (eval "$ac_try") 2>&5
6326 ac_status=$?
6327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328 (exit $ac_status); }; } &&
6329 { ac_try='test -s conftest.$ac_objext'
6330 { (case "(($ac_try" in
6331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6332 *) ac_try_echo=$ac_try;;
6333 esac
6334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6335 (eval "$ac_try") 2>&5
6336 ac_status=$?
6337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338 (exit $ac_status); }; }; then
6339 ac_compiler_gnu=yes
6340 else
6341 echo "$as_me: failed program was:" >&5
6342 sed 's/^/| /' conftest.$ac_ext >&5
6343
6344 ac_compiler_gnu=no
6345 fi
6346
6347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6348 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6349
6350 fi
6351 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6352 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6353 ac_ext=$ac_save_ext
6354 ac_test_FFLAGS=${FFLAGS+set}
6355 ac_save_FFLAGS=$FFLAGS
6356 FFLAGS=
6357 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6358 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6359 if test "${ac_cv_prog_f77_g+set}" = set; then
6360 echo $ECHO_N "(cached) $ECHO_C" >&6
6361 else
6362 FFLAGS=-g
6363 cat >conftest.$ac_ext <<_ACEOF
6364 program main
6365
6366 end
6367 _ACEOF
6368 rm -f conftest.$ac_objext
6369 if { (ac_try="$ac_compile"
6370 case "(($ac_try" in
6371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6372 *) ac_try_echo=$ac_try;;
6373 esac
6374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6375 (eval "$ac_compile") 2>conftest.er1
6376 ac_status=$?
6377 grep -v '^ *+' conftest.er1 >conftest.err
6378 rm -f conftest.er1
6379 cat conftest.err >&5
6380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381 (exit $ac_status); } &&
6382 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6383 { (case "(($ac_try" in
6384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6385 *) ac_try_echo=$ac_try;;
6386 esac
6387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6388 (eval "$ac_try") 2>&5
6389 ac_status=$?
6390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391 (exit $ac_status); }; } &&
6392 { ac_try='test -s conftest.$ac_objext'
6393 { (case "(($ac_try" in
6394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6395 *) ac_try_echo=$ac_try;;
6396 esac
6397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6398 (eval "$ac_try") 2>&5
6399 ac_status=$?
6400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401 (exit $ac_status); }; }; then
6402 ac_cv_prog_f77_g=yes
6403 else
6404 echo "$as_me: failed program was:" >&5
6405 sed 's/^/| /' conftest.$ac_ext >&5
6406
6407 ac_cv_prog_f77_g=no
6408 fi
6409
6410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6411
6412 fi
6413 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6414 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6415 if test "$ac_test_FFLAGS" = set; then
6416 FFLAGS=$ac_save_FFLAGS
6417 elif test $ac_cv_prog_f77_g = yes; then
6418 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6419 FFLAGS="-g -O2"
6420 else
6421 FFLAGS="-g"
6422 fi
6423 else
6424 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6425 FFLAGS="-O2"
6426 else
6427 FFLAGS=
6428 fi
6429 fi
6430
6431 G77=`test $ac_compiler_gnu = yes && echo yes`
6432 ac_ext=c
6433 ac_cpp='$CPP $CPPFLAGS'
6434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6437
6438
6439
6440 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6441
6442 # find the maximum length of command line arguments
6443 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6444 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6445 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6446 echo $ECHO_N "(cached) $ECHO_C" >&6
6447 else
6448 i=0
6449 teststring="ABCD"
6450
6451 case $build_os in
6452 msdosdjgpp*)
6453 # On DJGPP, this test can blow up pretty badly due to problems in libc
6454 # (any single argument exceeding 2000 bytes causes a buffer overrun
6455 # during glob expansion). Even if it were fixed, the result of this
6456 # check would be larger than it should be.
6457 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6458 ;;
6459
6460 gnu*)
6461 # Under GNU Hurd, this test is not required because there is
6462 # no limit to the length of command line arguments.
6463 # Libtool will interpret -1 as no limit whatsoever
6464 lt_cv_sys_max_cmd_len=-1;
6465 ;;
6466
6467 cygwin* | mingw*)
6468 # On Win9x/ME, this test blows up -- it succeeds, but takes
6469 # about 5 minutes as the teststring grows exponentially.
6470 # Worse, since 9x/ME are not pre-emptively multitasking,
6471 # you end up with a "frozen" computer, even though with patience
6472 # the test eventually succeeds (with a max line length of 256k).
6473 # Instead, let's just punt: use the minimum linelength reported by
6474 # all of the supported platforms: 8192 (on NT/2K/XP).
6475 lt_cv_sys_max_cmd_len=8192;
6476 ;;
6477
6478 amigaos*)
6479 # On AmigaOS with pdksh, this test takes hours, literally.
6480 # So we just punt and use a minimum line length of 8192.
6481 lt_cv_sys_max_cmd_len=8192;
6482 ;;
6483
6484 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6485 # This has been around since 386BSD, at least. Likely further.
6486 if test -x /sbin/sysctl; then
6487 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6488 elif test -x /usr/sbin/sysctl; then
6489 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6490 else
6491 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6492 fi
6493 # And add a safety zone
6494 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6495 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6496 ;;
6497
6498 interix*)
6499 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6500 lt_cv_sys_max_cmd_len=196608
6501 ;;
6502
6503 osf*)
6504 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6505 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6506 # nice to cause kernel panics so lets avoid the loop below.
6507 # First set a reasonable default.
6508 lt_cv_sys_max_cmd_len=16384
6509 #
6510 if test -x /sbin/sysconfig; then
6511 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6512 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6513 esac
6514 fi
6515 ;;
6516 sco3.2v5*)
6517 lt_cv_sys_max_cmd_len=102400
6518 ;;
6519 sysv5* | sco5v6* | sysv4.2uw2*)
6520 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6521 if test -n "$kargmax"; then
6522 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6523 else
6524 lt_cv_sys_max_cmd_len=32768
6525 fi
6526 ;;
6527 *)
6528 # If test is not a shell built-in, we'll probably end up computing a
6529 # maximum length that is only half of the actual maximum length, but
6530 # we can't tell.
6531 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6532 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6533 = "XX$teststring") >/dev/null 2>&1 &&
6534 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6535 lt_cv_sys_max_cmd_len=$new_result &&
6536 test $i != 17 # 1/2 MB should be enough
6537 do
6538 i=`expr $i + 1`
6539 teststring=$teststring$teststring
6540 done
6541 teststring=
6542 # Add a significant safety factor because C++ compilers can tack on massive
6543 # amounts of additional arguments before passing them to the linker.
6544 # It appears as though 1/2 is a usable value.
6545 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6546 ;;
6547 esac
6548
6549 fi
6550
6551 if test -n $lt_cv_sys_max_cmd_len ; then
6552 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6553 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6554 else
6555 { echo "$as_me:$LINENO: result: none" >&5
6556 echo "${ECHO_T}none" >&6; }
6557 fi
6558
6559
6560
6561
6562 # Check for command to grab the raw symbol name followed by C symbol from nm.
6563 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6564 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6565 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6566 echo $ECHO_N "(cached) $ECHO_C" >&6
6567 else
6568
6569 # These are sane defaults that work on at least a few old systems.
6570 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6571
6572 # Character class describing NM global symbol codes.
6573 symcode='[BCDEGRST]'
6574
6575 # Regexp to match symbols that can be accessed directly from C.
6576 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6577
6578 # Transform an extracted symbol line into a proper C declaration
6579 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6580
6581 # Transform an extracted symbol line into symbol name and symbol address
6582 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'"
6583
6584 # Define system-specific variables.
6585 case $host_os in
6586 aix*)
6587 symcode='[BCDT]'
6588 ;;
6589 cygwin* | mingw* | pw32*)
6590 symcode='[ABCDGISTW]'
6591 ;;
6592 hpux*) # Its linker distinguishes data from code symbols
6593 if test "$host_cpu" = ia64; then
6594 symcode='[ABCDEGRST]'
6595 fi
6596 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6597 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'"
6598 ;;
6599 linux* | k*bsd*-gnu)
6600 if test "$host_cpu" = ia64; then
6601 symcode='[ABCDGIRSTW]'
6602 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6603 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'"
6604 fi
6605 ;;
6606 irix* | nonstopux*)
6607 symcode='[BCDEGRST]'
6608 ;;
6609 osf*)
6610 symcode='[BCDEGQRST]'
6611 ;;
6612 solaris*)
6613 symcode='[BDRT]'
6614 ;;
6615 sco3.2v5*)
6616 symcode='[DT]'
6617 ;;
6618 sysv4.2uw2*)
6619 symcode='[DT]'
6620 ;;
6621 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6622 symcode='[ABDT]'
6623 ;;
6624 sysv4)
6625 symcode='[DFNSTU]'
6626 ;;
6627 esac
6628
6629 # Handle CRLF in mingw tool chain
6630 opt_cr=
6631 case $build_os in
6632 mingw*)
6633 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6634 ;;
6635 esac
6636
6637 # If we're using GNU nm, then use its standard symbol codes.
6638 case `$NM -V 2>&1` in
6639 *GNU* | *'with BFD'*)
6640 symcode='[ABCDGIRSTW]' ;;
6641 esac
6642
6643 # Try without a prefix undercore, then with it.
6644 for ac_symprfx in "" "_"; do
6645
6646 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6647 symxfrm="\\1 $ac_symprfx\\2 \\2"
6648
6649 # Write the raw and C identifiers.
6650 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6651
6652 # Check to see that the pipe works correctly.
6653 pipe_works=no
6654
6655 rm -f conftest*
6656 cat > conftest.$ac_ext <<EOF
6657 #ifdef __cplusplus
6658 extern "C" {
6659 #endif
6660 char nm_test_var;
6661 void nm_test_func(){}
6662 #ifdef __cplusplus
6663 }
6664 #endif
6665 int main(){nm_test_var='a';nm_test_func();return(0);}
6666 EOF
6667
6668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6669 (eval $ac_compile) 2>&5
6670 ac_status=$?
6671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672 (exit $ac_status); }; then
6673 # Now try to grab the symbols.
6674 nlist=conftest.nm
6675 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6676 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6677 ac_status=$?
6678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6679 (exit $ac_status); } && test -s "$nlist"; then
6680 # Try sorting and uniquifying the output.
6681 if sort "$nlist" | uniq > "$nlist"T; then
6682 mv -f "$nlist"T "$nlist"
6683 else
6684 rm -f "$nlist"T
6685 fi
6686
6687 # Make sure that we snagged all the symbols we need.
6688 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6689 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6690 cat <<EOF > conftest.$ac_ext
6691 #ifdef __cplusplus
6692 extern "C" {
6693 #endif
6694
6695 EOF
6696 # Now generate the symbol file.
6697 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6698
6699 cat <<EOF >> conftest.$ac_ext
6700 #if defined (__STDC__) && __STDC__
6701 # define lt_ptr_t void *
6702 #else
6703 # define lt_ptr_t char *
6704 # define const
6705 #endif
6706
6707 /* The mapping between symbol names and symbols. */
6708 const struct {
6709 const char *name;
6710 lt_ptr_t address;
6711 }
6712 lt_preloaded_symbols[] =
6713 {
6714 EOF
6715 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6716 cat <<\EOF >> conftest.$ac_ext
6717 {0, (lt_ptr_t) 0}
6718 };
6719
6720 #ifdef __cplusplus
6721 }
6722 #endif
6723 EOF
6724 # Now try linking the two files.
6725 mv conftest.$ac_objext conftstm.$ac_objext
6726 lt_save_LIBS="$LIBS"
6727 lt_save_CFLAGS="$CFLAGS"
6728 LIBS="conftstm.$ac_objext"
6729 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6731 (eval $ac_link) 2>&5
6732 ac_status=$?
6733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6734 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6735 pipe_works=yes
6736 fi
6737 LIBS="$lt_save_LIBS"
6738 CFLAGS="$lt_save_CFLAGS"
6739 else
6740 echo "cannot find nm_test_func in $nlist" >&5
6741 fi
6742 else
6743 echo "cannot find nm_test_var in $nlist" >&5
6744 fi
6745 else
6746 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6747 fi
6748 else
6749 echo "$progname: failed program was:" >&5
6750 cat conftest.$ac_ext >&5
6751 fi
6752 rm -f conftest* conftst*
6753
6754 # Do not use the global_symbol_pipe unless it works.
6755 if test "$pipe_works" = yes; then
6756 break
6757 else
6758 lt_cv_sys_global_symbol_pipe=
6759 fi
6760 done
6761
6762 fi
6763
6764 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6765 lt_cv_sys_global_symbol_to_cdecl=
6766 fi
6767 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6768 { echo "$as_me:$LINENO: result: failed" >&5
6769 echo "${ECHO_T}failed" >&6; }
6770 else
6771 { echo "$as_me:$LINENO: result: ok" >&5
6772 echo "${ECHO_T}ok" >&6; }
6773 fi
6774
6775 { echo "$as_me:$LINENO: checking for objdir" >&5
6776 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6777 if test "${lt_cv_objdir+set}" = set; then
6778 echo $ECHO_N "(cached) $ECHO_C" >&6
6779 else
6780 rm -f .libs 2>/dev/null
6781 mkdir .libs 2>/dev/null
6782 if test -d .libs; then
6783 lt_cv_objdir=.libs
6784 else
6785 # MS-DOS does not allow filenames that begin with a dot.
6786 lt_cv_objdir=_libs
6787 fi
6788 rmdir .libs 2>/dev/null
6789 fi
6790 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6791 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6792 objdir=$lt_cv_objdir
6793
6794
6795
6796
6797
6798 case $host_os in
6799 aix3*)
6800 # AIX sometimes has problems with the GCC collect2 program. For some
6801 # reason, if we set the COLLECT_NAMES environment variable, the problems
6802 # vanish in a puff of smoke.
6803 if test "X${COLLECT_NAMES+set}" != Xset; then
6804 COLLECT_NAMES=
6805 export COLLECT_NAMES
6806 fi
6807 ;;
6808 esac
6809
6810 # Sed substitution that helps us do robust quoting. It backslashifies
6811 # metacharacters that are still active within double-quoted strings.
6812 Xsed='sed -e 1s/^X//'
6813 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6814
6815 # Same as above, but do not quote variable references.
6816 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6817
6818 # Sed substitution to delay expansion of an escaped shell variable in a
6819 # double_quote_subst'ed string.
6820 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6821
6822 # Sed substitution to avoid accidental globbing in evaled expressions
6823 no_glob_subst='s/\*/\\\*/g'
6824
6825 # Constants:
6826 rm="rm -f"
6827
6828 # Global variables:
6829 default_ofile=libtool
6830 can_build_shared=yes
6831
6832 # All known linkers require a `.a' archive for static linking (except MSVC,
6833 # which needs '.lib').
6834 libext=a
6835 ltmain="$ac_aux_dir/ltmain.sh"
6836 ofile="$default_ofile"
6837 with_gnu_ld="$lt_cv_prog_gnu_ld"
6838
6839 if test -n "$ac_tool_prefix"; then
6840 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6841 set dummy ${ac_tool_prefix}ar; ac_word=$2
6842 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6844 if test "${ac_cv_prog_AR+set}" = set; then
6845 echo $ECHO_N "(cached) $ECHO_C" >&6
6846 else
6847 if test -n "$AR"; then
6848 ac_cv_prog_AR="$AR" # Let the user override the test.
6849 else
6850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6851 for as_dir in $PATH
6852 do
6853 IFS=$as_save_IFS
6854 test -z "$as_dir" && as_dir=.
6855 for ac_exec_ext in '' $ac_executable_extensions; do
6856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6857 ac_cv_prog_AR="${ac_tool_prefix}ar"
6858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6859 break 2
6860 fi
6861 done
6862 done
6863 IFS=$as_save_IFS
6864
6865 fi
6866 fi
6867 AR=$ac_cv_prog_AR
6868 if test -n "$AR"; then
6869 { echo "$as_me:$LINENO: result: $AR" >&5
6870 echo "${ECHO_T}$AR" >&6; }
6871 else
6872 { echo "$as_me:$LINENO: result: no" >&5
6873 echo "${ECHO_T}no" >&6; }
6874 fi
6875
6876
6877 fi
6878 if test -z "$ac_cv_prog_AR"; then
6879 ac_ct_AR=$AR
6880 # Extract the first word of "ar", so it can be a program name with args.
6881 set dummy ar; ac_word=$2
6882 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6884 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6885 echo $ECHO_N "(cached) $ECHO_C" >&6
6886 else
6887 if test -n "$ac_ct_AR"; then
6888 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6889 else
6890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6891 for as_dir in $PATH
6892 do
6893 IFS=$as_save_IFS
6894 test -z "$as_dir" && as_dir=.
6895 for ac_exec_ext in '' $ac_executable_extensions; do
6896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6897 ac_cv_prog_ac_ct_AR="ar"
6898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6899 break 2
6900 fi
6901 done
6902 done
6903 IFS=$as_save_IFS
6904
6905 fi
6906 fi
6907 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6908 if test -n "$ac_ct_AR"; then
6909 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6910 echo "${ECHO_T}$ac_ct_AR" >&6; }
6911 else
6912 { echo "$as_me:$LINENO: result: no" >&5
6913 echo "${ECHO_T}no" >&6; }
6914 fi
6915
6916 if test "x$ac_ct_AR" = x; then
6917 AR="false"
6918 else
6919 case $cross_compiling:$ac_tool_warned in
6920 yes:)
6921 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6922 whose name does not start with the host triplet. If you think this
6923 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
6924 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6925 whose name does not start with the host triplet. If you think this
6926 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
6927 ac_tool_warned=yes ;;
6928 esac
6929 AR=$ac_ct_AR
6930 fi
6931 else
6932 AR="$ac_cv_prog_AR"
6933 fi
6934
6935 if test -n "$ac_tool_prefix"; then
6936 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6937 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6938 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6940 if test "${ac_cv_prog_RANLIB+set}" = set; then
6941 echo $ECHO_N "(cached) $ECHO_C" >&6
6942 else
6943 if test -n "$RANLIB"; then
6944 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6945 else
6946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6947 for as_dir in $PATH
6948 do
6949 IFS=$as_save_IFS
6950 test -z "$as_dir" && as_dir=.
6951 for ac_exec_ext in '' $ac_executable_extensions; do
6952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6953 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6955 break 2
6956 fi
6957 done
6958 done
6959 IFS=$as_save_IFS
6960
6961 fi
6962 fi
6963 RANLIB=$ac_cv_prog_RANLIB
6964 if test -n "$RANLIB"; then
6965 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6966 echo "${ECHO_T}$RANLIB" >&6; }
6967 else
6968 { echo "$as_me:$LINENO: result: no" >&5
6969 echo "${ECHO_T}no" >&6; }
6970 fi
6971
6972
6973 fi
6974 if test -z "$ac_cv_prog_RANLIB"; then
6975 ac_ct_RANLIB=$RANLIB
6976 # Extract the first word of "ranlib", so it can be a program name with args.
6977 set dummy ranlib; ac_word=$2
6978 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6980 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6981 echo $ECHO_N "(cached) $ECHO_C" >&6
6982 else
6983 if test -n "$ac_ct_RANLIB"; then
6984 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6985 else
6986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6987 for as_dir in $PATH
6988 do
6989 IFS=$as_save_IFS
6990 test -z "$as_dir" && as_dir=.
6991 for ac_exec_ext in '' $ac_executable_extensions; do
6992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6993 ac_cv_prog_ac_ct_RANLIB="ranlib"
6994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6995 break 2
6996 fi
6997 done
6998 done
6999 IFS=$as_save_IFS
7000
7001 fi
7002 fi
7003 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7004 if test -n "$ac_ct_RANLIB"; then
7005 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7006 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7007 else
7008 { echo "$as_me:$LINENO: result: no" >&5
7009 echo "${ECHO_T}no" >&6; }
7010 fi
7011
7012 if test "x$ac_ct_RANLIB" = x; then
7013 RANLIB=":"
7014 else
7015 case $cross_compiling:$ac_tool_warned in
7016 yes:)
7017 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7018 whose name does not start with the host triplet. If you think this
7019 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
7020 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7021 whose name does not start with the host triplet. If you think this
7022 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
7023 ac_tool_warned=yes ;;
7024 esac
7025 RANLIB=$ac_ct_RANLIB
7026 fi
7027 else
7028 RANLIB="$ac_cv_prog_RANLIB"
7029 fi
7030
7031 if test -n "$ac_tool_prefix"; then
7032 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7033 set dummy ${ac_tool_prefix}strip; ac_word=$2
7034 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7036 if test "${ac_cv_prog_STRIP+set}" = set; then
7037 echo $ECHO_N "(cached) $ECHO_C" >&6
7038 else
7039 if test -n "$STRIP"; then
7040 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7041 else
7042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7043 for as_dir in $PATH
7044 do
7045 IFS=$as_save_IFS
7046 test -z "$as_dir" && as_dir=.
7047 for ac_exec_ext in '' $ac_executable_extensions; do
7048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7049 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7051 break 2
7052 fi
7053 done
7054 done
7055 IFS=$as_save_IFS
7056
7057 fi
7058 fi
7059 STRIP=$ac_cv_prog_STRIP
7060 if test -n "$STRIP"; then
7061 { echo "$as_me:$LINENO: result: $STRIP" >&5
7062 echo "${ECHO_T}$STRIP" >&6; }
7063 else
7064 { echo "$as_me:$LINENO: result: no" >&5
7065 echo "${ECHO_T}no" >&6; }
7066 fi
7067
7068
7069 fi
7070 if test -z "$ac_cv_prog_STRIP"; then
7071 ac_ct_STRIP=$STRIP
7072 # Extract the first word of "strip", so it can be a program name with args.
7073 set dummy strip; ac_word=$2
7074 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7076 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7077 echo $ECHO_N "(cached) $ECHO_C" >&6
7078 else
7079 if test -n "$ac_ct_STRIP"; then
7080 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7081 else
7082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7083 for as_dir in $PATH
7084 do
7085 IFS=$as_save_IFS
7086 test -z "$as_dir" && as_dir=.
7087 for ac_exec_ext in '' $ac_executable_extensions; do
7088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7089 ac_cv_prog_ac_ct_STRIP="strip"
7090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7091 break 2
7092 fi
7093 done
7094 done
7095 IFS=$as_save_IFS
7096
7097 fi
7098 fi
7099 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7100 if test -n "$ac_ct_STRIP"; then
7101 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7102 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7103 else
7104 { echo "$as_me:$LINENO: result: no" >&5
7105 echo "${ECHO_T}no" >&6; }
7106 fi
7107
7108 if test "x$ac_ct_STRIP" = x; then
7109 STRIP=":"
7110 else
7111 case $cross_compiling:$ac_tool_warned in
7112 yes:)
7113 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7114 whose name does not start with the host triplet. If you think this
7115 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
7116 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7117 whose name does not start with the host triplet. If you think this
7118 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
7119 ac_tool_warned=yes ;;
7120 esac
7121 STRIP=$ac_ct_STRIP
7122 fi
7123 else
7124 STRIP="$ac_cv_prog_STRIP"
7125 fi
7126
7127
7128 old_CC="$CC"
7129 old_CFLAGS="$CFLAGS"
7130
7131 # Set sane defaults for various variables
7132 test -z "$AR" && AR=ar
7133 test -z "$AR_FLAGS" && AR_FLAGS=cru
7134 test -z "$AS" && AS=as
7135 test -z "$CC" && CC=cc
7136 test -z "$LTCC" && LTCC=$CC
7137 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7138 test -z "$DLLTOOL" && DLLTOOL=dlltool
7139 test -z "$LD" && LD=ld
7140 test -z "$LN_S" && LN_S="ln -s"
7141 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7142 test -z "$NM" && NM=nm
7143 test -z "$SED" && SED=sed
7144 test -z "$OBJDUMP" && OBJDUMP=objdump
7145 test -z "$RANLIB" && RANLIB=:
7146 test -z "$STRIP" && STRIP=:
7147 test -z "$ac_objext" && ac_objext=o
7148
7149 # Determine commands to create old-style static archives.
7150 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7151 old_postinstall_cmds='chmod 644 $oldlib'
7152 old_postuninstall_cmds=
7153
7154 if test -n "$RANLIB"; then
7155 case $host_os in
7156 openbsd*)
7157 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7158 ;;
7159 *)
7160 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7161 ;;
7162 esac
7163 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7164 fi
7165
7166 for cc_temp in $compiler""; do
7167 case $cc_temp in
7168 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7169 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7170 \-*) ;;
7171 *) break;;
7172 esac
7173 done
7174 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7175
7176
7177 # Only perform the check for file, if the check method requires it
7178 case $deplibs_check_method in
7179 file_magic*)
7180 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7181 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7182 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7183 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7184 echo $ECHO_N "(cached) $ECHO_C" >&6
7185 else
7186 case $MAGIC_CMD in
7187 [\\/*] | ?:[\\/]*)
7188 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7189 ;;
7190 *)
7191 lt_save_MAGIC_CMD="$MAGIC_CMD"
7192 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7193 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7194 for ac_dir in $ac_dummy; do
7195 IFS="$lt_save_ifs"
7196 test -z "$ac_dir" && ac_dir=.
7197 if test -f $ac_dir/${ac_tool_prefix}file; then
7198 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7199 if test -n "$file_magic_test_file"; then
7200 case $deplibs_check_method in
7201 "file_magic "*)
7202 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7203 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7204 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7205 $EGREP "$file_magic_regex" > /dev/null; then
7206 :
7207 else
7208 cat <<EOF 1>&2
7209
7210 *** Warning: the command libtool uses to detect shared libraries,
7211 *** $file_magic_cmd, produces output that libtool cannot recognize.
7212 *** The result is that libtool may fail to recognize shared libraries
7213 *** as such. This will affect the creation of libtool libraries that
7214 *** depend on shared libraries, but programs linked with such libtool
7215 *** libraries will work regardless of this problem. Nevertheless, you
7216 *** may want to report the problem to your system manager and/or to
7217 *** bug-libtool@gnu.org
7218
7219 EOF
7220 fi ;;
7221 esac
7222 fi
7223 break
7224 fi
7225 done
7226 IFS="$lt_save_ifs"
7227 MAGIC_CMD="$lt_save_MAGIC_CMD"
7228 ;;
7229 esac
7230 fi
7231
7232 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7233 if test -n "$MAGIC_CMD"; then
7234 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7235 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7236 else
7237 { echo "$as_me:$LINENO: result: no" >&5
7238 echo "${ECHO_T}no" >&6; }
7239 fi
7240
7241 if test -z "$lt_cv_path_MAGIC_CMD"; then
7242 if test -n "$ac_tool_prefix"; then
7243 { echo "$as_me:$LINENO: checking for file" >&5
7244 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7245 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7246 echo $ECHO_N "(cached) $ECHO_C" >&6
7247 else
7248 case $MAGIC_CMD in
7249 [\\/*] | ?:[\\/]*)
7250 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7251 ;;
7252 *)
7253 lt_save_MAGIC_CMD="$MAGIC_CMD"
7254 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7255 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7256 for ac_dir in $ac_dummy; do
7257 IFS="$lt_save_ifs"
7258 test -z "$ac_dir" && ac_dir=.
7259 if test -f $ac_dir/file; then
7260 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7261 if test -n "$file_magic_test_file"; then
7262 case $deplibs_check_method in
7263 "file_magic "*)
7264 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7265 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7266 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7267 $EGREP "$file_magic_regex" > /dev/null; then
7268 :
7269 else
7270 cat <<EOF 1>&2
7271
7272 *** Warning: the command libtool uses to detect shared libraries,
7273 *** $file_magic_cmd, produces output that libtool cannot recognize.
7274 *** The result is that libtool may fail to recognize shared libraries
7275 *** as such. This will affect the creation of libtool libraries that
7276 *** depend on shared libraries, but programs linked with such libtool
7277 *** libraries will work regardless of this problem. Nevertheless, you
7278 *** may want to report the problem to your system manager and/or to
7279 *** bug-libtool@gnu.org
7280
7281 EOF
7282 fi ;;
7283 esac
7284 fi
7285 break
7286 fi
7287 done
7288 IFS="$lt_save_ifs"
7289 MAGIC_CMD="$lt_save_MAGIC_CMD"
7290 ;;
7291 esac
7292 fi
7293
7294 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7295 if test -n "$MAGIC_CMD"; then
7296 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7297 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7298 else
7299 { echo "$as_me:$LINENO: result: no" >&5
7300 echo "${ECHO_T}no" >&6; }
7301 fi
7302
7303 else
7304 MAGIC_CMD=:
7305 fi
7306 fi
7307
7308 fi
7309 ;;
7310 esac
7311
7312 enable_dlopen=no
7313 enable_win32_dll=no
7314
7315 # Check whether --enable-libtool-lock was given.
7316 if test "${enable_libtool_lock+set}" = set; then
7317 enableval=$enable_libtool_lock;
7318 fi
7319
7320 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7321
7322
7323 # Check whether --with-pic was given.
7324 if test "${with_pic+set}" = set; then
7325 withval=$with_pic; pic_mode="$withval"
7326 else
7327 pic_mode=default
7328 fi
7329
7330 test -z "$pic_mode" && pic_mode=default
7331
7332 # Use C for the default configuration in the libtool script
7333 tagname=
7334 lt_save_CC="$CC"
7335 ac_ext=c
7336 ac_cpp='$CPP $CPPFLAGS'
7337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7340
7341
7342 # Source file extension for C test sources.
7343 ac_ext=c
7344
7345 # Object file extension for compiled C test sources.
7346 objext=o
7347 objext=$objext
7348
7349 # Code to be used in simple compile tests
7350 lt_simple_compile_test_code="int some_variable = 0;\n"
7351
7352 # Code to be used in simple link tests
7353 lt_simple_link_test_code='int main(){return(0);}\n'
7354
7355
7356 # If no C compiler was specified, use CC.
7357 LTCC=${LTCC-"$CC"}
7358
7359 # If no C compiler flags were specified, use CFLAGS.
7360 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7361
7362 # Allow CC to be a program name with arguments.
7363 compiler=$CC
7364
7365
7366 # save warnings/boilerplate of simple test code
7367 ac_outfile=conftest.$ac_objext
7368 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7369 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7370 _lt_compiler_boilerplate=`cat conftest.err`
7371 $rm conftest*
7372
7373 ac_outfile=conftest.$ac_objext
7374 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7375 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7376 _lt_linker_boilerplate=`cat conftest.err`
7377 $rm conftest*
7378
7379
7380
7381 lt_prog_compiler_no_builtin_flag=
7382
7383 if test "$GCC" = yes; then
7384 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7385
7386
7387 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7388 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7389 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7390 echo $ECHO_N "(cached) $ECHO_C" >&6
7391 else
7392 lt_cv_prog_compiler_rtti_exceptions=no
7393 ac_outfile=conftest.$ac_objext
7394 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7395 lt_compiler_flag="-fno-rtti -fno-exceptions"
7396 # Insert the option either (1) after the last *FLAGS variable, or
7397 # (2) before a word containing "conftest.", or (3) at the end.
7398 # Note that $ac_compile itself does not contain backslashes and begins
7399 # with a dollar sign (not a hyphen), so the echo should work correctly.
7400 # The option is referenced via a variable to avoid confusing sed.
7401 lt_compile=`echo "$ac_compile" | $SED \
7402 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7403 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7404 -e 's:$: $lt_compiler_flag:'`
7405 (eval echo "\"\$as_me:7405: $lt_compile\"" >&5)
7406 (eval "$lt_compile" 2>conftest.err)
7407 ac_status=$?
7408 cat conftest.err >&5
7409 echo "$as_me:7409: \$? = $ac_status" >&5
7410 if (exit $ac_status) && test -s "$ac_outfile"; then
7411 # The compiler can only warn and ignore the option if not recognized
7412 # So say no if there are warnings other than the usual output.
7413 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7414 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7415 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7416 lt_cv_prog_compiler_rtti_exceptions=yes
7417 fi
7418 fi
7419 $rm conftest*
7420
7421 fi
7422 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7423 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7424
7425 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7426 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7427 else
7428 :
7429 fi
7430
7431 fi
7432
7433 lt_prog_compiler_wl=
7434 lt_prog_compiler_pic=
7435 lt_prog_compiler_static=
7436
7437 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7438 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7439
7440 if test "$GCC" = yes; then
7441 lt_prog_compiler_wl='-Wl,'
7442 lt_prog_compiler_static='-static'
7443
7444 case $host_os in
7445 aix*)
7446 # All AIX code is PIC.
7447 if test "$host_cpu" = ia64; then
7448 # AIX 5 now supports IA64 processor
7449 lt_prog_compiler_static='-Bstatic'
7450 fi
7451 ;;
7452
7453 amigaos*)
7454 # FIXME: we need at least 68020 code to build shared libraries, but
7455 # adding the `-m68020' flag to GCC prevents building anything better,
7456 # like `-m68040'.
7457 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7458 ;;
7459
7460 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7461 # PIC is the default for these OSes.
7462 ;;
7463
7464 mingw* | pw32* | os2*)
7465 # This hack is so that the source file can tell whether it is being
7466 # built for inclusion in a dll (and should export symbols for example).
7467 lt_prog_compiler_pic='-DDLL_EXPORT'
7468 ;;
7469
7470 darwin* | rhapsody*)
7471 # PIC is the default on this platform
7472 # Common symbols not allowed in MH_DYLIB files
7473 lt_prog_compiler_pic='-fno-common'
7474 ;;
7475
7476 interix3*)
7477 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7478 # Instead, we relocate shared libraries at runtime.
7479 ;;
7480
7481 msdosdjgpp*)
7482 # Just because we use GCC doesn't mean we suddenly get shared libraries
7483 # on systems that don't support them.
7484 lt_prog_compiler_can_build_shared=no
7485 enable_shared=no
7486 ;;
7487
7488 sysv4*MP*)
7489 if test -d /usr/nec; then
7490 lt_prog_compiler_pic=-Kconform_pic
7491 fi
7492 ;;
7493
7494 hpux*)
7495 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7496 # not for PA HP-UX.
7497 case $host_cpu in
7498 hppa*64*|ia64*)
7499 # +Z the default
7500 ;;
7501 *)
7502 lt_prog_compiler_pic='-fPIC'
7503 ;;
7504 esac
7505 ;;
7506
7507 *)
7508 lt_prog_compiler_pic='-fPIC'
7509 ;;
7510 esac
7511 else
7512 # PORTME Check for flag to pass linker flags through the system compiler.
7513 case $host_os in
7514 aix*)
7515 lt_prog_compiler_wl='-Wl,'
7516 if test "$host_cpu" = ia64; then
7517 # AIX 5 now supports IA64 processor
7518 lt_prog_compiler_static='-Bstatic'
7519 else
7520 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7521 fi
7522 ;;
7523 darwin*)
7524 # PIC is the default on this platform
7525 # Common symbols not allowed in MH_DYLIB files
7526 case $cc_basename in
7527 xlc*)
7528 lt_prog_compiler_pic='-qnocommon'
7529 lt_prog_compiler_wl='-Wl,'
7530 ;;
7531 esac
7532 ;;
7533
7534 mingw* | pw32* | os2*)
7535 # This hack is so that the source file can tell whether it is being
7536 # built for inclusion in a dll (and should export symbols for example).
7537 lt_prog_compiler_pic='-DDLL_EXPORT'
7538 ;;
7539
7540 hpux9* | hpux10* | hpux11*)
7541 lt_prog_compiler_wl='-Wl,'
7542 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7543 # not for PA HP-UX.
7544 case $host_cpu in
7545 hppa*64*|ia64*)
7546 # +Z the default
7547 ;;
7548 *)
7549 lt_prog_compiler_pic='+Z'
7550 ;;
7551 esac
7552 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7553 lt_prog_compiler_static='${wl}-a ${wl}archive'
7554 ;;
7555
7556 irix5* | irix6* | nonstopux*)
7557 lt_prog_compiler_wl='-Wl,'
7558 # PIC (with -KPIC) is the default.
7559 lt_prog_compiler_static='-non_shared'
7560 ;;
7561
7562 newsos6)
7563 lt_prog_compiler_pic='-KPIC'
7564 lt_prog_compiler_static='-Bstatic'
7565 ;;
7566
7567 linux* | k*bsd*-gnu)
7568 case $cc_basename in
7569 icc* | ecc*)
7570 lt_prog_compiler_wl='-Wl,'
7571 lt_prog_compiler_pic='-KPIC'
7572 lt_prog_compiler_static='-static'
7573 ;;
7574 pgcc* | pgf77* | pgf90* | pgf95*)
7575 # Portland Group compilers (*not* the Pentium gcc compiler,
7576 # which looks to be a dead project)
7577 lt_prog_compiler_wl='-Wl,'
7578 lt_prog_compiler_pic='-fpic'
7579 lt_prog_compiler_static='-Bstatic'
7580 ;;
7581 ccc*)
7582 lt_prog_compiler_wl='-Wl,'
7583 # All Alpha code is PIC.
7584 lt_prog_compiler_static='-non_shared'
7585 ;;
7586 esac
7587 ;;
7588
7589 osf3* | osf4* | osf5*)
7590 lt_prog_compiler_wl='-Wl,'
7591 # All OSF/1 code is PIC.
7592 lt_prog_compiler_static='-non_shared'
7593 ;;
7594
7595 solaris*)
7596 lt_prog_compiler_pic='-KPIC'
7597 lt_prog_compiler_static='-Bstatic'
7598 case $cc_basename in
7599 f77* | f90* | f95*)
7600 lt_prog_compiler_wl='-Qoption ld ';;
7601 *)
7602 lt_prog_compiler_wl='-Wl,';;
7603 esac
7604 ;;
7605
7606 sunos4*)
7607 lt_prog_compiler_wl='-Qoption ld '
7608 lt_prog_compiler_pic='-PIC'
7609 lt_prog_compiler_static='-Bstatic'
7610 ;;
7611
7612 sysv4 | sysv4.2uw2* | sysv4.3*)
7613 lt_prog_compiler_wl='-Wl,'
7614 lt_prog_compiler_pic='-KPIC'
7615 lt_prog_compiler_static='-Bstatic'
7616 ;;
7617
7618 sysv4*MP*)
7619 if test -d /usr/nec ;then
7620 lt_prog_compiler_pic='-Kconform_pic'
7621 lt_prog_compiler_static='-Bstatic'
7622 fi
7623 ;;
7624
7625 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7626 lt_prog_compiler_wl='-Wl,'
7627 lt_prog_compiler_pic='-KPIC'
7628 lt_prog_compiler_static='-Bstatic'
7629 ;;
7630
7631 unicos*)
7632 lt_prog_compiler_wl='-Wl,'
7633 lt_prog_compiler_can_build_shared=no
7634 ;;
7635
7636 uts4*)
7637 lt_prog_compiler_pic='-pic'
7638 lt_prog_compiler_static='-Bstatic'
7639 ;;
7640
7641 *)
7642 lt_prog_compiler_can_build_shared=no
7643 ;;
7644 esac
7645 fi
7646
7647 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7648 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7649
7650 #
7651 # Check to make sure the PIC flag actually works.
7652 #
7653 if test -n "$lt_prog_compiler_pic"; then
7654
7655 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7656 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7657 if test "${lt_prog_compiler_pic_works+set}" = set; then
7658 echo $ECHO_N "(cached) $ECHO_C" >&6
7659 else
7660 lt_prog_compiler_pic_works=no
7661 ac_outfile=conftest.$ac_objext
7662 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7663 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7664 # Insert the option either (1) after the last *FLAGS variable, or
7665 # (2) before a word containing "conftest.", or (3) at the end.
7666 # Note that $ac_compile itself does not contain backslashes and begins
7667 # with a dollar sign (not a hyphen), so the echo should work correctly.
7668 # The option is referenced via a variable to avoid confusing sed.
7669 lt_compile=`echo "$ac_compile" | $SED \
7670 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7671 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7672 -e 's:$: $lt_compiler_flag:'`
7673 (eval echo "\"\$as_me:7673: $lt_compile\"" >&5)
7674 (eval "$lt_compile" 2>conftest.err)
7675 ac_status=$?
7676 cat conftest.err >&5
7677 echo "$as_me:7677: \$? = $ac_status" >&5
7678 if (exit $ac_status) && test -s "$ac_outfile"; then
7679 # The compiler can only warn and ignore the option if not recognized
7680 # So say no if there are warnings other than the usual output.
7681 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7682 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7683 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7684 lt_prog_compiler_pic_works=yes
7685 fi
7686 fi
7687 $rm conftest*
7688
7689 fi
7690 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7691 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7692
7693 if test x"$lt_prog_compiler_pic_works" = xyes; then
7694 case $lt_prog_compiler_pic in
7695 "" | " "*) ;;
7696 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7697 esac
7698 else
7699 lt_prog_compiler_pic=
7700 lt_prog_compiler_can_build_shared=no
7701 fi
7702
7703 fi
7704 case $host_os in
7705 # For platforms which do not support PIC, -DPIC is meaningless:
7706 *djgpp*)
7707 lt_prog_compiler_pic=
7708 ;;
7709 *)
7710 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7711 ;;
7712 esac
7713
7714 #
7715 # Check to make sure the static flag actually works.
7716 #
7717 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7718 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7719 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7720 if test "${lt_prog_compiler_static_works+set}" = set; then
7721 echo $ECHO_N "(cached) $ECHO_C" >&6
7722 else
7723 lt_prog_compiler_static_works=no
7724 save_LDFLAGS="$LDFLAGS"
7725 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7726 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7727 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7728 # The linker can only warn and ignore the option if not recognized
7729 # So say no if there are warnings
7730 if test -s conftest.err; then
7731 # Append any errors to the config.log.
7732 cat conftest.err 1>&5
7733 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7734 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7735 if diff conftest.exp conftest.er2 >/dev/null; then
7736 lt_prog_compiler_static_works=yes
7737 fi
7738 else
7739 lt_prog_compiler_static_works=yes
7740 fi
7741 fi
7742 $rm conftest*
7743 LDFLAGS="$save_LDFLAGS"
7744
7745 fi
7746 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7747 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7748
7749 if test x"$lt_prog_compiler_static_works" = xyes; then
7750 :
7751 else
7752 lt_prog_compiler_static=
7753 fi
7754
7755
7756 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7757 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7758 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7759 echo $ECHO_N "(cached) $ECHO_C" >&6
7760 else
7761 lt_cv_prog_compiler_c_o=no
7762 $rm -r conftest 2>/dev/null
7763 mkdir conftest
7764 cd conftest
7765 mkdir out
7766 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7767
7768 lt_compiler_flag="-o out/conftest2.$ac_objext"
7769 # Insert the option either (1) after the last *FLAGS variable, or
7770 # (2) before a word containing "conftest.", or (3) at the end.
7771 # Note that $ac_compile itself does not contain backslashes and begins
7772 # with a dollar sign (not a hyphen), so the echo should work correctly.
7773 lt_compile=`echo "$ac_compile" | $SED \
7774 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7775 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7776 -e 's:$: $lt_compiler_flag:'`
7777 (eval echo "\"\$as_me:7777: $lt_compile\"" >&5)
7778 (eval "$lt_compile" 2>out/conftest.err)
7779 ac_status=$?
7780 cat out/conftest.err >&5
7781 echo "$as_me:7781: \$? = $ac_status" >&5
7782 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7783 then
7784 # The compiler can only warn and ignore the option if not recognized
7785 # So say no if there are warnings
7786 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7787 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7788 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7789 lt_cv_prog_compiler_c_o=yes
7790 fi
7791 fi
7792 chmod u+w . 2>&5
7793 $rm conftest*
7794 # SGI C++ compiler will create directory out/ii_files/ for
7795 # template instantiation
7796 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7797 $rm out/* && rmdir out
7798 cd ..
7799 rmdir conftest
7800 $rm conftest*
7801
7802 fi
7803 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7804 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7805
7806
7807 hard_links="nottested"
7808 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7809 # do not overwrite the value of need_locks provided by the user
7810 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7811 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7812 hard_links=yes
7813 $rm conftest*
7814 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7815 touch conftest.a
7816 ln conftest.a conftest.b 2>&5 || hard_links=no
7817 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7818 { echo "$as_me:$LINENO: result: $hard_links" >&5
7819 echo "${ECHO_T}$hard_links" >&6; }
7820 if test "$hard_links" = no; then
7821 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7822 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7823 need_locks=warn
7824 fi
7825 else
7826 need_locks=no
7827 fi
7828
7829 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7830 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7831
7832 runpath_var=
7833 allow_undefined_flag=
7834 enable_shared_with_static_runtimes=no
7835 archive_cmds=
7836 archive_expsym_cmds=
7837 old_archive_From_new_cmds=
7838 old_archive_from_expsyms_cmds=
7839 export_dynamic_flag_spec=
7840 whole_archive_flag_spec=
7841 thread_safe_flag_spec=
7842 hardcode_libdir_flag_spec=
7843 hardcode_libdir_flag_spec_ld=
7844 hardcode_libdir_separator=
7845 hardcode_direct=no
7846 hardcode_minus_L=no
7847 hardcode_shlibpath_var=unsupported
7848 link_all_deplibs=unknown
7849 hardcode_automatic=no
7850 module_cmds=
7851 module_expsym_cmds=
7852 always_export_symbols=no
7853 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7854 # include_expsyms should be a list of space-separated symbols to be *always*
7855 # included in the symbol list
7856 include_expsyms=
7857 # exclude_expsyms can be an extended regexp of symbols to exclude
7858 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7859 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7860 # as well as any symbol that contains `d'.
7861 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7862 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7863 # platforms (ab)use it in PIC code, but their linkers get confused if
7864 # the symbol is explicitly referenced. Since portable code cannot
7865 # rely on this symbol name, it's probably fine to never include it in
7866 # preloaded symbol tables.
7867 extract_expsyms_cmds=
7868 # Just being paranoid about ensuring that cc_basename is set.
7869 for cc_temp in $compiler""; do
7870 case $cc_temp in
7871 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7872 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7873 \-*) ;;
7874 *) break;;
7875 esac
7876 done
7877 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7878
7879 case $host_os in
7880 cygwin* | mingw* | pw32*)
7881 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7882 # When not using gcc, we currently assume that we are using
7883 # Microsoft Visual C++.
7884 if test "$GCC" != yes; then
7885 with_gnu_ld=no
7886 fi
7887 ;;
7888 interix*)
7889 # we just hope/assume this is gcc and not c89 (= MSVC++)
7890 with_gnu_ld=yes
7891 ;;
7892 openbsd*)
7893 with_gnu_ld=no
7894 ;;
7895 esac
7896
7897 ld_shlibs=yes
7898 if test "$with_gnu_ld" = yes; then
7899 # If archive_cmds runs LD, not CC, wlarc should be empty
7900 wlarc='${wl}'
7901
7902 # Set some defaults for GNU ld with shared library support. These
7903 # are reset later if shared libraries are not supported. Putting them
7904 # here allows them to be overridden if necessary.
7905 runpath_var=LD_RUN_PATH
7906 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7907 export_dynamic_flag_spec='${wl}--export-dynamic'
7908 # ancient GNU ld didn't support --whole-archive et. al.
7909 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7910 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7911 else
7912 whole_archive_flag_spec=
7913 fi
7914 supports_anon_versioning=no
7915 case `$LD -v 2>/dev/null` in
7916 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7917 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7918 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7919 *\ 2.11.*) ;; # other 2.11 versions
7920 *) supports_anon_versioning=yes ;;
7921 esac
7922
7923 # See if GNU ld supports shared libraries.
7924 case $host_os in
7925 aix3* | aix4* | aix5*)
7926 # On AIX/PPC, the GNU linker is very broken
7927 if test "$host_cpu" != ia64; then
7928 ld_shlibs=no
7929 cat <<EOF 1>&2
7930
7931 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7932 *** to be unable to reliably create shared libraries on AIX.
7933 *** Therefore, libtool is disabling shared libraries support. If you
7934 *** really care for shared libraries, you may want to modify your PATH
7935 *** so that a non-GNU linker is found, and then restart.
7936
7937 EOF
7938 fi
7939 ;;
7940
7941 amigaos*)
7942 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)'
7943 hardcode_libdir_flag_spec='-L$libdir'
7944 hardcode_minus_L=yes
7945
7946 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
7947 # that the semantics of dynamic libraries on AmigaOS, at least up
7948 # to version 4, is to share data among multiple programs linked
7949 # with the same dynamic library. Since this doesn't match the
7950 # behavior of shared libraries on other platforms, we can't use
7951 # them.
7952 ld_shlibs=no
7953 ;;
7954
7955 beos*)
7956 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7957 allow_undefined_flag=unsupported
7958 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
7959 # support --undefined. This deserves some investigation. FIXME
7960 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7961 else
7962 ld_shlibs=no
7963 fi
7964 ;;
7965
7966 cygwin* | mingw* | pw32*)
7967 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7968 # as there is no search path for DLLs.
7969 hardcode_libdir_flag_spec='-L$libdir'
7970 allow_undefined_flag=unsupported
7971 always_export_symbols=no
7972 enable_shared_with_static_runtimes=yes
7973 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7974
7975 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7976 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7977 # If the export-symbols file already is a .def file (1st line
7978 # is EXPORTS), use it as is; otherwise, prepend...
7979 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7980 cp $export_symbols $output_objdir/$soname.def;
7981 else
7982 echo EXPORTS > $output_objdir/$soname.def;
7983 cat $export_symbols >> $output_objdir/$soname.def;
7984 fi~
7985 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7986 else
7987 ld_shlibs=no
7988 fi
7989 ;;
7990
7991 interix3*)
7992 hardcode_direct=no
7993 hardcode_shlibpath_var=no
7994 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7995 export_dynamic_flag_spec='${wl}-E'
7996 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7997 # Instead, shared libraries are loaded at an image base (0x10000000 by
7998 # default) and relocated if they conflict, which is a slow very memory
7999 # consuming and fragmenting process. To avoid this, we pick a random,
8000 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8001 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8002 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8003 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'
8004 ;;
8005
8006 linux* | k*bsd*-gnu)
8007 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8008 tmp_addflag=
8009 case $cc_basename,$host_cpu in
8010 pgcc*) # Portland Group C compiler
8011 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'
8012 tmp_addflag=' $pic_flag'
8013 ;;
8014 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8015 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'
8016 tmp_addflag=' $pic_flag -Mnomain' ;;
8017 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8018 tmp_addflag=' -i_dynamic' ;;
8019 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8020 tmp_addflag=' -i_dynamic -nofor_main' ;;
8021 ifc* | ifort*) # Intel Fortran compiler
8022 tmp_addflag=' -nofor_main' ;;
8023 esac
8024 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8025
8026 if test $supports_anon_versioning = yes; then
8027 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8028 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8029 $echo "local: *; };" >> $output_objdir/$libname.ver~
8030 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8031 fi
8032 link_all_deplibs=no
8033 else
8034 ld_shlibs=no
8035 fi
8036 ;;
8037
8038 netbsd* | netbsdelf*-gnu)
8039 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8040 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8041 wlarc=
8042 else
8043 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8044 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8045 fi
8046 ;;
8047
8048 solaris*)
8049 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8050 ld_shlibs=no
8051 cat <<EOF 1>&2
8052
8053 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8054 *** create shared libraries on Solaris systems. Therefore, libtool
8055 *** is disabling shared libraries support. We urge you to upgrade GNU
8056 *** binutils to release 2.9.1 or newer. Another option is to modify
8057 *** your PATH or compiler configuration so that the native linker is
8058 *** used, and then restart.
8059
8060 EOF
8061 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8062 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8063 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8064 else
8065 ld_shlibs=no
8066 fi
8067 ;;
8068
8069 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8070 case `$LD -v 2>&1` in
8071 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8072 ld_shlibs=no
8073 cat <<_LT_EOF 1>&2
8074
8075 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8076 *** reliably create shared libraries on SCO systems. Therefore, libtool
8077 *** is disabling shared libraries support. We urge you to upgrade GNU
8078 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8079 *** your PATH or compiler configuration so that the native linker is
8080 *** used, and then restart.
8081
8082 _LT_EOF
8083 ;;
8084 *)
8085 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8086 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8087 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8088 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8089 else
8090 ld_shlibs=no
8091 fi
8092 ;;
8093 esac
8094 ;;
8095
8096 sunos4*)
8097 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8098 wlarc=
8099 hardcode_direct=yes
8100 hardcode_shlibpath_var=no
8101 ;;
8102
8103 *)
8104 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8105 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8106 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8107 else
8108 ld_shlibs=no
8109 fi
8110 ;;
8111 esac
8112
8113 if test "$ld_shlibs" = no; then
8114 runpath_var=
8115 hardcode_libdir_flag_spec=
8116 export_dynamic_flag_spec=
8117 whole_archive_flag_spec=
8118 fi
8119 else
8120 # PORTME fill in a description of your system's linker (not GNU ld)
8121 case $host_os in
8122 aix3*)
8123 allow_undefined_flag=unsupported
8124 always_export_symbols=yes
8125 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'
8126 # Note: this linker hardcodes the directories in LIBPATH if there
8127 # are no directories specified by -L.
8128 hardcode_minus_L=yes
8129 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8130 # Neither direct hardcoding nor static linking is supported with a
8131 # broken collect2.
8132 hardcode_direct=unsupported
8133 fi
8134 ;;
8135
8136 aix4* | aix5*)
8137 if test "$host_cpu" = ia64; then
8138 # On IA64, the linker does run time linking by default, so we don't
8139 # have to do anything special.
8140 aix_use_runtimelinking=no
8141 exp_sym_flag='-Bexport'
8142 no_entry_flag=""
8143 else
8144 # If we're using GNU nm, then we don't want the "-C" option.
8145 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8146 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8147 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'
8148 else
8149 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'
8150 fi
8151 aix_use_runtimelinking=no
8152
8153 # Test if we are trying to use run time linking or normal
8154 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8155 # need to do runtime linking.
8156 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8157 for ld_flag in $LDFLAGS; do
8158 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8159 aix_use_runtimelinking=yes
8160 break
8161 fi
8162 done
8163 ;;
8164 esac
8165
8166 exp_sym_flag='-bexport'
8167 no_entry_flag='-bnoentry'
8168 fi
8169
8170 # When large executables or shared objects are built, AIX ld can
8171 # have problems creating the table of contents. If linking a library
8172 # or program results in "error TOC overflow" add -mminimal-toc to
8173 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8174 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8175
8176 archive_cmds=''
8177 hardcode_direct=yes
8178 hardcode_libdir_separator=':'
8179 link_all_deplibs=yes
8180
8181 if test "$GCC" = yes; then
8182 case $host_os in aix4.[012]|aix4.[012].*)
8183 # We only want to do this on AIX 4.2 and lower, the check
8184 # below for broken collect2 doesn't work under 4.3+
8185 collect2name=`${CC} -print-prog-name=collect2`
8186 if test -f "$collect2name" && \
8187 strings "$collect2name" | grep resolve_lib_name >/dev/null
8188 then
8189 # We have reworked collect2
8190 hardcode_direct=yes
8191 else
8192 # We have old collect2
8193 hardcode_direct=unsupported
8194 # It fails to find uninstalled libraries when the uninstalled
8195 # path is not listed in the libpath. Setting hardcode_minus_L
8196 # to unsupported forces relinking
8197 hardcode_minus_L=yes
8198 hardcode_libdir_flag_spec='-L$libdir'
8199 hardcode_libdir_separator=
8200 fi
8201 ;;
8202 esac
8203 shared_flag='-shared'
8204 if test "$aix_use_runtimelinking" = yes; then
8205 shared_flag="$shared_flag "'${wl}-G'
8206 fi
8207 else
8208 # not using gcc
8209 if test "$host_cpu" = ia64; then
8210 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8211 # chokes on -Wl,-G. The following line is correct:
8212 shared_flag='-G'
8213 else
8214 if test "$aix_use_runtimelinking" = yes; then
8215 shared_flag='${wl}-G'
8216 else
8217 shared_flag='${wl}-bM:SRE'
8218 fi
8219 fi
8220 fi
8221
8222 # It seems that -bexpall does not export symbols beginning with
8223 # underscore (_), so it is better to generate a list of symbols to export.
8224 always_export_symbols=yes
8225 if test "$aix_use_runtimelinking" = yes; then
8226 # Warning - without using the other runtime loading flags (-brtl),
8227 # -berok will link without error, but may produce a broken library.
8228 allow_undefined_flag='-berok'
8229 # Determine the default libpath from the value encoded in an empty executable.
8230 cat >conftest.$ac_ext <<_ACEOF
8231 /* confdefs.h. */
8232 _ACEOF
8233 cat confdefs.h >>conftest.$ac_ext
8234 cat >>conftest.$ac_ext <<_ACEOF
8235 /* end confdefs.h. */
8236
8237 int
8238 main ()
8239 {
8240
8241 ;
8242 return 0;
8243 }
8244 _ACEOF
8245 rm -f conftest.$ac_objext conftest$ac_exeext
8246 if { (ac_try="$ac_link"
8247 case "(($ac_try" in
8248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8249 *) ac_try_echo=$ac_try;;
8250 esac
8251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8252 (eval "$ac_link") 2>conftest.er1
8253 ac_status=$?
8254 grep -v '^ *+' conftest.er1 >conftest.err
8255 rm -f conftest.er1
8256 cat conftest.err >&5
8257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258 (exit $ac_status); } &&
8259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8260 { (case "(($ac_try" in
8261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8262 *) ac_try_echo=$ac_try;;
8263 esac
8264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8265 (eval "$ac_try") 2>&5
8266 ac_status=$?
8267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268 (exit $ac_status); }; } &&
8269 { ac_try='test -s conftest$ac_exeext'
8270 { (case "(($ac_try" in
8271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8272 *) ac_try_echo=$ac_try;;
8273 esac
8274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8275 (eval "$ac_try") 2>&5
8276 ac_status=$?
8277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8278 (exit $ac_status); }; }; then
8279
8280 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8281 }'`
8282 # Check for a 64-bit object if we didn't find anything.
8283 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; }
8284 }'`; fi
8285 else
8286 echo "$as_me: failed program was:" >&5
8287 sed 's/^/| /' conftest.$ac_ext >&5
8288
8289
8290 fi
8291
8292 rm -f core conftest.err conftest.$ac_objext \
8293 conftest$ac_exeext conftest.$ac_ext
8294 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8295
8296 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8297 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"
8298 else
8299 if test "$host_cpu" = ia64; then
8300 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8301 allow_undefined_flag="-z nodefs"
8302 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"
8303 else
8304 # Determine the default libpath from the value encoded in an empty executable.
8305 cat >conftest.$ac_ext <<_ACEOF
8306 /* confdefs.h. */
8307 _ACEOF
8308 cat confdefs.h >>conftest.$ac_ext
8309 cat >>conftest.$ac_ext <<_ACEOF
8310 /* end confdefs.h. */
8311
8312 int
8313 main ()
8314 {
8315
8316 ;
8317 return 0;
8318 }
8319 _ACEOF
8320 rm -f conftest.$ac_objext conftest$ac_exeext
8321 if { (ac_try="$ac_link"
8322 case "(($ac_try" in
8323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8324 *) ac_try_echo=$ac_try;;
8325 esac
8326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8327 (eval "$ac_link") 2>conftest.er1
8328 ac_status=$?
8329 grep -v '^ *+' conftest.er1 >conftest.err
8330 rm -f conftest.er1
8331 cat conftest.err >&5
8332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333 (exit $ac_status); } &&
8334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8335 { (case "(($ac_try" in
8336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8337 *) ac_try_echo=$ac_try;;
8338 esac
8339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8340 (eval "$ac_try") 2>&5
8341 ac_status=$?
8342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343 (exit $ac_status); }; } &&
8344 { ac_try='test -s conftest$ac_exeext'
8345 { (case "(($ac_try" in
8346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8347 *) ac_try_echo=$ac_try;;
8348 esac
8349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8350 (eval "$ac_try") 2>&5
8351 ac_status=$?
8352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8353 (exit $ac_status); }; }; then
8354
8355 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8356 }'`
8357 # Check for a 64-bit object if we didn't find anything.
8358 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; }
8359 }'`; fi
8360 else
8361 echo "$as_me: failed program was:" >&5
8362 sed 's/^/| /' conftest.$ac_ext >&5
8363
8364
8365 fi
8366
8367 rm -f core conftest.err conftest.$ac_objext \
8368 conftest$ac_exeext conftest.$ac_ext
8369 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8370
8371 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8372 # Warning - without using the other run time loading flags,
8373 # -berok will link without error, but may produce a broken library.
8374 no_undefined_flag=' ${wl}-bernotok'
8375 allow_undefined_flag=' ${wl}-berok'
8376 # Exported symbols can be pulled into shared objects from archives
8377 whole_archive_flag_spec='$convenience'
8378 archive_cmds_need_lc=yes
8379 # This is similar to how AIX traditionally builds its shared libraries.
8380 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'
8381 fi
8382 fi
8383 ;;
8384
8385 amigaos*)
8386 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)'
8387 hardcode_libdir_flag_spec='-L$libdir'
8388 hardcode_minus_L=yes
8389 # see comment about different semantics on the GNU ld section
8390 ld_shlibs=no
8391 ;;
8392
8393 bsdi[45]*)
8394 export_dynamic_flag_spec=-rdynamic
8395 ;;
8396
8397 cygwin* | mingw* | pw32*)
8398 # When not using gcc, we currently assume that we are using
8399 # Microsoft Visual C++.
8400 # hardcode_libdir_flag_spec is actually meaningless, as there is
8401 # no search path for DLLs.
8402 hardcode_libdir_flag_spec=' '
8403 allow_undefined_flag=unsupported
8404 # Tell ltmain to make .lib files, not .a files.
8405 libext=lib
8406 # Tell ltmain to make .dll files, not .so files.
8407 shrext_cmds=".dll"
8408 # FIXME: Setting linknames here is a bad hack.
8409 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8410 # The linker will automatically build a .lib file if we build a DLL.
8411 old_archive_From_new_cmds='true'
8412 # FIXME: Should let the user specify the lib program.
8413 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8414 fix_srcfile_path='`cygpath -w "$srcfile"`'
8415 enable_shared_with_static_runtimes=yes
8416 ;;
8417
8418 darwin* | rhapsody*)
8419 case $host_os in
8420 rhapsody* | darwin1.[012])
8421 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8422 ;;
8423 *) # Darwin 1.3 on
8424 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8425 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8426 else
8427 case ${MACOSX_DEPLOYMENT_TARGET} in
8428 10.[012])
8429 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8430 ;;
8431 10.*)
8432 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8433 ;;
8434 esac
8435 fi
8436 ;;
8437 esac
8438 archive_cmds_need_lc=no
8439 hardcode_direct=no
8440 hardcode_automatic=yes
8441 hardcode_shlibpath_var=unsupported
8442 whole_archive_flag_spec=''
8443 link_all_deplibs=yes
8444 if test "$GCC" = yes ; then
8445 output_verbose_link_cmd='echo'
8446 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8447 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8448 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8449 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}'
8450 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}'
8451 else
8452 case $cc_basename in
8453 xlc*)
8454 output_verbose_link_cmd='echo'
8455 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8456 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8457 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8458 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}'
8459 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}'
8460 ;;
8461 *)
8462 ld_shlibs=no
8463 ;;
8464 esac
8465 fi
8466 ;;
8467
8468 dgux*)
8469 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8470 hardcode_libdir_flag_spec='-L$libdir'
8471 hardcode_shlibpath_var=no
8472 ;;
8473
8474 freebsd1*)
8475 ld_shlibs=no
8476 ;;
8477
8478 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8479 # support. Future versions do this automatically, but an explicit c++rt0.o
8480 # does not break anything, and helps significantly (at the cost of a little
8481 # extra space).
8482 freebsd2.2*)
8483 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8484 hardcode_libdir_flag_spec='-R$libdir'
8485 hardcode_direct=yes
8486 hardcode_shlibpath_var=no
8487 ;;
8488
8489 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8490 freebsd2*)
8491 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8492 hardcode_direct=yes
8493 hardcode_minus_L=yes
8494 hardcode_shlibpath_var=no
8495 ;;
8496
8497 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8498 freebsd* | dragonfly*)
8499 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8500 hardcode_libdir_flag_spec='-R$libdir'
8501 hardcode_direct=yes
8502 hardcode_shlibpath_var=no
8503 ;;
8504
8505 hpux9*)
8506 if test "$GCC" = yes; then
8507 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'
8508 else
8509 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'
8510 fi
8511 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8512 hardcode_libdir_separator=:
8513 hardcode_direct=yes
8514
8515 # hardcode_minus_L: Not really in the search PATH,
8516 # but as the default location of the library.
8517 hardcode_minus_L=yes
8518 export_dynamic_flag_spec='${wl}-E'
8519 ;;
8520
8521 hpux10*)
8522 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8523 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8524 else
8525 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8526 fi
8527 if test "$with_gnu_ld" = no; then
8528 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8529 hardcode_libdir_separator=:
8530
8531 hardcode_direct=yes
8532 export_dynamic_flag_spec='${wl}-E'
8533
8534 # hardcode_minus_L: Not really in the search PATH,
8535 # but as the default location of the library.
8536 hardcode_minus_L=yes
8537 fi
8538 ;;
8539
8540 hpux11*)
8541 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8542 case $host_cpu in
8543 hppa*64*)
8544 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8545 ;;
8546 ia64*)
8547 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8548 ;;
8549 *)
8550 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8551 ;;
8552 esac
8553 else
8554 case $host_cpu in
8555 hppa*64*)
8556 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8557 ;;
8558 ia64*)
8559 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8560 ;;
8561 *)
8562 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8563 ;;
8564 esac
8565 fi
8566 if test "$with_gnu_ld" = no; then
8567 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8568 hardcode_libdir_separator=:
8569
8570 case $host_cpu in
8571 hppa*64*|ia64*)
8572 hardcode_libdir_flag_spec_ld='+b $libdir'
8573 hardcode_direct=no
8574 hardcode_shlibpath_var=no
8575 ;;
8576 *)
8577 hardcode_direct=yes
8578 export_dynamic_flag_spec='${wl}-E'
8579
8580 # hardcode_minus_L: Not really in the search PATH,
8581 # but as the default location of the library.
8582 hardcode_minus_L=yes
8583 ;;
8584 esac
8585 fi
8586 ;;
8587
8588 irix5* | irix6* | nonstopux*)
8589 if test "$GCC" = yes; then
8590 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'
8591 else
8592 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'
8593 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8594 fi
8595 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8596 hardcode_libdir_separator=:
8597 link_all_deplibs=yes
8598 ;;
8599
8600 netbsd* | netbsdelf*-gnu)
8601 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8602 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8603 else
8604 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8605 fi
8606 hardcode_libdir_flag_spec='-R$libdir'
8607 hardcode_direct=yes
8608 hardcode_shlibpath_var=no
8609 ;;
8610
8611 newsos6)
8612 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8613 hardcode_direct=yes
8614 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8615 hardcode_libdir_separator=:
8616 hardcode_shlibpath_var=no
8617 ;;
8618
8619 openbsd*)
8620 hardcode_direct=yes
8621 hardcode_shlibpath_var=no
8622 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8623 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8624 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8625 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8626 export_dynamic_flag_spec='${wl}-E'
8627 else
8628 case $host_os in
8629 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8630 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8631 hardcode_libdir_flag_spec='-R$libdir'
8632 ;;
8633 *)
8634 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8635 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8636 ;;
8637 esac
8638 fi
8639 ;;
8640
8641 os2*)
8642 hardcode_libdir_flag_spec='-L$libdir'
8643 hardcode_minus_L=yes
8644 allow_undefined_flag=unsupported
8645 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'
8646 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8647 ;;
8648
8649 osf3*)
8650 if test "$GCC" = yes; then
8651 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8652 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'
8653 else
8654 allow_undefined_flag=' -expect_unresolved \*'
8655 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'
8656 fi
8657 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8658 hardcode_libdir_separator=:
8659 ;;
8660
8661 osf4* | osf5*) # as osf3* with the addition of -msym flag
8662 if test "$GCC" = yes; then
8663 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8664 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'
8665 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8666 else
8667 allow_undefined_flag=' -expect_unresolved \*'
8668 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'
8669 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8670 $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'
8671
8672 # Both c and cxx compiler support -rpath directly
8673 hardcode_libdir_flag_spec='-rpath $libdir'
8674 fi
8675 hardcode_libdir_separator=:
8676 ;;
8677
8678 solaris*)
8679 no_undefined_flag=' -z text'
8680 if test "$GCC" = yes; then
8681 wlarc='${wl}'
8682 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8683 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8684 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8685 else
8686 wlarc=''
8687 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8688 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8689 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8690 fi
8691 hardcode_libdir_flag_spec='-R$libdir'
8692 hardcode_shlibpath_var=no
8693 case $host_os in
8694 solaris2.[0-5] | solaris2.[0-5].*) ;;
8695 *)
8696 # The compiler driver will combine linker options so we
8697 # cannot just pass the convience library names through
8698 # without $wl, iff we do not link with $LD.
8699 # Luckily, gcc supports the same syntax we need for Sun Studio.
8700 # Supported since Solaris 2.6 (maybe 2.5.1?)
8701 case $wlarc in
8702 '')
8703 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8704 *)
8705 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' ;;
8706 esac ;;
8707 esac
8708 link_all_deplibs=yes
8709 ;;
8710
8711 sunos4*)
8712 if test "x$host_vendor" = xsequent; then
8713 # Use $CC to link under sequent, because it throws in some extra .o
8714 # files that make .init and .fini sections work.
8715 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8716 else
8717 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8718 fi
8719 hardcode_libdir_flag_spec='-L$libdir'
8720 hardcode_direct=yes
8721 hardcode_minus_L=yes
8722 hardcode_shlibpath_var=no
8723 ;;
8724
8725 sysv4)
8726 case $host_vendor in
8727 sni)
8728 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8729 hardcode_direct=yes # is this really true???
8730 ;;
8731 siemens)
8732 ## LD is ld it makes a PLAMLIB
8733 ## CC just makes a GrossModule.
8734 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8735 reload_cmds='$CC -r -o $output$reload_objs'
8736 hardcode_direct=no
8737 ;;
8738 motorola)
8739 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8740 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8741 ;;
8742 esac
8743 runpath_var='LD_RUN_PATH'
8744 hardcode_shlibpath_var=no
8745 ;;
8746
8747 sysv4.3*)
8748 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8749 hardcode_shlibpath_var=no
8750 export_dynamic_flag_spec='-Bexport'
8751 ;;
8752
8753 sysv4*MP*)
8754 if test -d /usr/nec; then
8755 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8756 hardcode_shlibpath_var=no
8757 runpath_var=LD_RUN_PATH
8758 hardcode_runpath_var=yes
8759 ld_shlibs=yes
8760 fi
8761 ;;
8762
8763 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8764 no_undefined_flag='${wl}-z,text'
8765 archive_cmds_need_lc=no
8766 hardcode_shlibpath_var=no
8767 runpath_var='LD_RUN_PATH'
8768
8769 if test "$GCC" = yes; then
8770 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8771 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8772 else
8773 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8774 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8775 fi
8776 ;;
8777
8778 sysv5* | sco3.2v5* | sco5v6*)
8779 # Note: We can NOT use -z defs as we might desire, because we do not
8780 # link with -lc, and that would cause any symbols used from libc to
8781 # always be unresolved, which means just about no library would
8782 # ever link correctly. If we're not using GNU ld we use -z text
8783 # though, which does catch some bad symbols but isn't as heavy-handed
8784 # as -z defs.
8785 no_undefined_flag='${wl}-z,text'
8786 allow_undefined_flag='${wl}-z,nodefs'
8787 archive_cmds_need_lc=no
8788 hardcode_shlibpath_var=no
8789 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8790 hardcode_libdir_separator=':'
8791 link_all_deplibs=yes
8792 export_dynamic_flag_spec='${wl}-Bexport'
8793 runpath_var='LD_RUN_PATH'
8794
8795 if test "$GCC" = yes; then
8796 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8797 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8798 else
8799 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8800 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8801 fi
8802 ;;
8803
8804 uts4*)
8805 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8806 hardcode_libdir_flag_spec='-L$libdir'
8807 hardcode_shlibpath_var=no
8808 ;;
8809
8810 *)
8811 ld_shlibs=no
8812 ;;
8813 esac
8814 fi
8815
8816 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8817 echo "${ECHO_T}$ld_shlibs" >&6; }
8818 test "$ld_shlibs" = no && can_build_shared=no
8819
8820 #
8821 # Do we need to explicitly link libc?
8822 #
8823 case "x$archive_cmds_need_lc" in
8824 x|xyes)
8825 # Assume -lc should be added
8826 archive_cmds_need_lc=yes
8827
8828 if test "$enable_shared" = yes && test "$GCC" = yes; then
8829 case $archive_cmds in
8830 *'~'*)
8831 # FIXME: we may have to deal with multi-command sequences.
8832 ;;
8833 '$CC '*)
8834 # Test whether the compiler implicitly links with -lc since on some
8835 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8836 # to ld, don't add -lc before -lgcc.
8837 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8838 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8839 $rm conftest*
8840 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8841
8842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8843 (eval $ac_compile) 2>&5
8844 ac_status=$?
8845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8846 (exit $ac_status); } 2>conftest.err; then
8847 soname=conftest
8848 lib=conftest
8849 libobjs=conftest.$ac_objext
8850 deplibs=
8851 wl=$lt_prog_compiler_wl
8852 pic_flag=$lt_prog_compiler_pic
8853 compiler_flags=-v
8854 linker_flags=-v
8855 verstring=
8856 output_objdir=.
8857 libname=conftest
8858 lt_save_allow_undefined_flag=$allow_undefined_flag
8859 allow_undefined_flag=
8860 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8861 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8862 ac_status=$?
8863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864 (exit $ac_status); }
8865 then
8866 archive_cmds_need_lc=no
8867 else
8868 archive_cmds_need_lc=yes
8869 fi
8870 allow_undefined_flag=$lt_save_allow_undefined_flag
8871 else
8872 cat conftest.err 1>&5
8873 fi
8874 $rm conftest*
8875 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8876 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8877 ;;
8878 esac
8879 fi
8880 ;;
8881 esac
8882
8883 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8884 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8885 library_names_spec=
8886 libname_spec='lib$name'
8887 soname_spec=
8888 shrext_cmds=".so"
8889 postinstall_cmds=
8890 postuninstall_cmds=
8891 finish_cmds=
8892 finish_eval=
8893 shlibpath_var=
8894 shlibpath_overrides_runpath=unknown
8895 version_type=none
8896 dynamic_linker="$host_os ld.so"
8897 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8898 if test "$GCC" = yes; then
8899 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8900 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8901 # if the path contains ";" then we assume it to be the separator
8902 # otherwise default to the standard path separator (i.e. ":") - it is
8903 # assumed that no part of a normal pathname contains ";" but that should
8904 # okay in the real world where ";" in dirpaths is itself problematic.
8905 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8906 else
8907 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8908 fi
8909 else
8910 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8911 fi
8912 need_lib_prefix=unknown
8913 hardcode_into_libs=no
8914
8915 # when you set need_version to no, make sure it does not cause -set_version
8916 # flags to be left without arguments
8917 need_version=unknown
8918
8919 case $host_os in
8920 aix3*)
8921 version_type=linux
8922 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8923 shlibpath_var=LIBPATH
8924
8925 # AIX 3 has no versioning support, so we append a major version to the name.
8926 soname_spec='${libname}${release}${shared_ext}$major'
8927 ;;
8928
8929 aix4* | aix5*)
8930 version_type=linux
8931 need_lib_prefix=no
8932 need_version=no
8933 hardcode_into_libs=yes
8934 if test "$host_cpu" = ia64; then
8935 # AIX 5 supports IA64
8936 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8937 shlibpath_var=LD_LIBRARY_PATH
8938 else
8939 # With GCC up to 2.95.x, collect2 would create an import file
8940 # for dependence libraries. The import file would start with
8941 # the line `#! .'. This would cause the generated library to
8942 # depend on `.', always an invalid library. This was fixed in
8943 # development snapshots of GCC prior to 3.0.
8944 case $host_os in
8945 aix4 | aix4.[01] | aix4.[01].*)
8946 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8947 echo ' yes '
8948 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8949 :
8950 else
8951 can_build_shared=no
8952 fi
8953 ;;
8954 esac
8955 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8956 # soname into executable. Probably we can add versioning support to
8957 # collect2, so additional links can be useful in future.
8958 if test "$aix_use_runtimelinking" = yes; then
8959 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8960 # instead of lib<name>.a to let people know that these are not
8961 # typical AIX shared libraries.
8962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8963 else
8964 # We preserve .a as extension for shared libraries through AIX4.2
8965 # and later when we are not doing run time linking.
8966 library_names_spec='${libname}${release}.a $libname.a'
8967 soname_spec='${libname}${release}${shared_ext}$major'
8968 fi
8969 shlibpath_var=LIBPATH
8970 fi
8971 ;;
8972
8973 amigaos*)
8974 library_names_spec='$libname.ixlibrary $libname.a'
8975 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8976 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'
8977 ;;
8978
8979 beos*)
8980 library_names_spec='${libname}${shared_ext}'
8981 dynamic_linker="$host_os ld.so"
8982 shlibpath_var=LIBRARY_PATH
8983 ;;
8984
8985 bsdi[45]*)
8986 version_type=linux
8987 need_version=no
8988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8989 soname_spec='${libname}${release}${shared_ext}$major'
8990 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8991 shlibpath_var=LD_LIBRARY_PATH
8992 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8993 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8994 # the default ld.so.conf also contains /usr/contrib/lib and
8995 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8996 # libtool to hard-code these into programs
8997 ;;
8998
8999 cygwin* | mingw* | pw32*)
9000 version_type=windows
9001 shrext_cmds=".dll"
9002 need_version=no
9003 need_lib_prefix=no
9004
9005 case $GCC,$host_os in
9006 yes,cygwin* | yes,mingw* | yes,pw32*)
9007 library_names_spec='$libname.dll.a'
9008 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9009 postinstall_cmds='base_file=`basename \${file}`~
9010 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9011 dldir=$destdir/`dirname \$dlpath`~
9012 test -d \$dldir || mkdir -p \$dldir~
9013 $install_prog $dir/$dlname \$dldir/$dlname~
9014 chmod a+x \$dldir/$dlname'
9015 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9016 dlpath=$dir/\$dldll~
9017 $rm \$dlpath'
9018 shlibpath_overrides_runpath=yes
9019
9020 case $host_os in
9021 cygwin*)
9022 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9023 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9024 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9025 ;;
9026 mingw*)
9027 # MinGW DLLs use traditional 'lib' prefix
9028 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9029 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9030 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9031 # It is most probably a Windows format PATH printed by
9032 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9033 # path with ; separators, and with drive letters. We can handle the
9034 # drive letters (cygwin fileutils understands them), so leave them,
9035 # especially as we might pass files found there to a mingw objdump,
9036 # which wouldn't understand a cygwinified path. Ahh.
9037 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9038 else
9039 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9040 fi
9041 ;;
9042 pw32*)
9043 # pw32 DLLs use 'pw' prefix rather than 'lib'
9044 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9045 ;;
9046 esac
9047 ;;
9048
9049 *)
9050 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9051 ;;
9052 esac
9053 dynamic_linker='Win32 ld.exe'
9054 # FIXME: first we should search . and the directory the executable is in
9055 shlibpath_var=PATH
9056 ;;
9057
9058 darwin* | rhapsody*)
9059 dynamic_linker="$host_os dyld"
9060 version_type=darwin
9061 need_lib_prefix=no
9062 need_version=no
9063 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9064 soname_spec='${libname}${release}${major}$shared_ext'
9065 shlibpath_overrides_runpath=yes
9066 shlibpath_var=DYLD_LIBRARY_PATH
9067 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9068 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9069 if test "$GCC" = yes; then
9070 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"`
9071 else
9072 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9073 fi
9074 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9075 ;;
9076
9077 dgux*)
9078 version_type=linux
9079 need_lib_prefix=no
9080 need_version=no
9081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9082 soname_spec='${libname}${release}${shared_ext}$major'
9083 shlibpath_var=LD_LIBRARY_PATH
9084 ;;
9085
9086 freebsd1*)
9087 dynamic_linker=no
9088 ;;
9089
9090 freebsd* | dragonfly*)
9091 # DragonFly does not have aout. When/if they implement a new
9092 # versioning mechanism, adjust this.
9093 if test -x /usr/bin/objformat; then
9094 objformat=`/usr/bin/objformat`
9095 else
9096 case $host_os in
9097 freebsd[123]*) objformat=aout ;;
9098 *) objformat=elf ;;
9099 esac
9100 fi
9101 version_type=freebsd-$objformat
9102 case $version_type in
9103 freebsd-elf*)
9104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9105 need_version=no
9106 need_lib_prefix=no
9107 ;;
9108 freebsd-*)
9109 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9110 need_version=yes
9111 ;;
9112 esac
9113 shlibpath_var=LD_LIBRARY_PATH
9114 case $host_os in
9115 freebsd2*)
9116 shlibpath_overrides_runpath=yes
9117 ;;
9118 freebsd3.[01]* | freebsdelf3.[01]*)
9119 shlibpath_overrides_runpath=yes
9120 hardcode_into_libs=yes
9121 ;;
9122 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9123 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9124 shlibpath_overrides_runpath=no
9125 hardcode_into_libs=yes
9126 ;;
9127 freebsd*) # from 4.6 on
9128 shlibpath_overrides_runpath=yes
9129 hardcode_into_libs=yes
9130 ;;
9131 esac
9132 ;;
9133
9134 gnu*)
9135 version_type=linux
9136 need_lib_prefix=no
9137 need_version=no
9138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9139 soname_spec='${libname}${release}${shared_ext}$major'
9140 shlibpath_var=LD_LIBRARY_PATH
9141 hardcode_into_libs=yes
9142 ;;
9143
9144 hpux9* | hpux10* | hpux11*)
9145 # Give a soname corresponding to the major version so that dld.sl refuses to
9146 # link against other versions.
9147 version_type=sunos
9148 need_lib_prefix=no
9149 need_version=no
9150 case $host_cpu in
9151 ia64*)
9152 shrext_cmds='.so'
9153 hardcode_into_libs=yes
9154 dynamic_linker="$host_os dld.so"
9155 shlibpath_var=LD_LIBRARY_PATH
9156 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9158 soname_spec='${libname}${release}${shared_ext}$major'
9159 if test "X$HPUX_IA64_MODE" = X32; then
9160 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9161 else
9162 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9163 fi
9164 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9165 ;;
9166 hppa*64*)
9167 shrext_cmds='.sl'
9168 hardcode_into_libs=yes
9169 dynamic_linker="$host_os dld.sl"
9170 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9171 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9173 soname_spec='${libname}${release}${shared_ext}$major'
9174 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9175 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9176 ;;
9177 *)
9178 shrext_cmds='.sl'
9179 dynamic_linker="$host_os dld.sl"
9180 shlibpath_var=SHLIB_PATH
9181 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9183 soname_spec='${libname}${release}${shared_ext}$major'
9184 ;;
9185 esac
9186 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9187 postinstall_cmds='chmod 555 $lib'
9188 ;;
9189
9190 interix3*)
9191 version_type=linux
9192 need_lib_prefix=no
9193 need_version=no
9194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9195 soname_spec='${libname}${release}${shared_ext}$major'
9196 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9197 shlibpath_var=LD_LIBRARY_PATH
9198 shlibpath_overrides_runpath=no
9199 hardcode_into_libs=yes
9200 ;;
9201
9202 irix5* | irix6* | nonstopux*)
9203 case $host_os in
9204 nonstopux*) version_type=nonstopux ;;
9205 *)
9206 if test "$lt_cv_prog_gnu_ld" = yes; then
9207 version_type=linux
9208 else
9209 version_type=irix
9210 fi ;;
9211 esac
9212 need_lib_prefix=no
9213 need_version=no
9214 soname_spec='${libname}${release}${shared_ext}$major'
9215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9216 case $host_os in
9217 irix5* | nonstopux*)
9218 libsuff= shlibsuff=
9219 ;;
9220 *)
9221 case $LD in # libtool.m4 will add one of these switches to LD
9222 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9223 libsuff= shlibsuff= libmagic=32-bit;;
9224 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9225 libsuff=32 shlibsuff=N32 libmagic=N32;;
9226 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9227 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9228 *) libsuff= shlibsuff= libmagic=never-match;;
9229 esac
9230 ;;
9231 esac
9232 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9233 shlibpath_overrides_runpath=no
9234 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9235 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9236 hardcode_into_libs=yes
9237 ;;
9238
9239 # No shared lib support for Linux oldld, aout, or coff.
9240 linux*oldld* | linux*aout* | linux*coff*)
9241 dynamic_linker=no
9242 ;;
9243
9244 # This must be Linux ELF.
9245 linux* | k*bsd*-gnu)
9246 version_type=linux
9247 need_lib_prefix=no
9248 need_version=no
9249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9250 soname_spec='${libname}${release}${shared_ext}$major'
9251 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9252 shlibpath_var=LD_LIBRARY_PATH
9253 shlibpath_overrides_runpath=no
9254 # This implies no fast_install, which is unacceptable.
9255 # Some rework will be needed to allow for fast_install
9256 # before this can be enabled.
9257 hardcode_into_libs=yes
9258
9259 # Append ld.so.conf contents to the search path
9260 if test -f /etc/ld.so.conf; then
9261 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' ' '`
9262 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9263 fi
9264
9265 # We used to test for /lib/ld.so.1 and disable shared libraries on
9266 # powerpc, because MkLinux only supported shared libraries with the
9267 # GNU dynamic linker. Since this was broken with cross compilers,
9268 # most powerpc-linux boxes support dynamic linking these days and
9269 # people can always --disable-shared, the test was removed, and we
9270 # assume the GNU/Linux dynamic linker is in use.
9271 dynamic_linker='GNU/Linux ld.so'
9272 ;;
9273
9274 netbsdelf*-gnu)
9275 version_type=linux
9276 need_lib_prefix=no
9277 need_version=no
9278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9279 soname_spec='${libname}${release}${shared_ext}$major'
9280 shlibpath_var=LD_LIBRARY_PATH
9281 shlibpath_overrides_runpath=no
9282 hardcode_into_libs=yes
9283 dynamic_linker='NetBSD ld.elf_so'
9284 ;;
9285
9286 netbsd*)
9287 version_type=sunos
9288 need_lib_prefix=no
9289 need_version=no
9290 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9292 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9293 dynamic_linker='NetBSD (a.out) ld.so'
9294 else
9295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9296 soname_spec='${libname}${release}${shared_ext}$major'
9297 dynamic_linker='NetBSD ld.elf_so'
9298 fi
9299 shlibpath_var=LD_LIBRARY_PATH
9300 shlibpath_overrides_runpath=yes
9301 hardcode_into_libs=yes
9302 ;;
9303
9304 newsos6)
9305 version_type=linux
9306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9307 shlibpath_var=LD_LIBRARY_PATH
9308 shlibpath_overrides_runpath=yes
9309 ;;
9310
9311 nto-qnx*)
9312 version_type=linux
9313 need_lib_prefix=no
9314 need_version=no
9315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9316 soname_spec='${libname}${release}${shared_ext}$major'
9317 shlibpath_var=LD_LIBRARY_PATH
9318 shlibpath_overrides_runpath=yes
9319 ;;
9320
9321 openbsd*)
9322 version_type=sunos
9323 sys_lib_dlsearch_path_spec="/usr/lib"
9324 need_lib_prefix=no
9325 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9326 case $host_os in
9327 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9328 *) need_version=no ;;
9329 esac
9330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9331 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9332 shlibpath_var=LD_LIBRARY_PATH
9333 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9334 case $host_os in
9335 openbsd2.[89] | openbsd2.[89].*)
9336 shlibpath_overrides_runpath=no
9337 ;;
9338 *)
9339 shlibpath_overrides_runpath=yes
9340 ;;
9341 esac
9342 else
9343 shlibpath_overrides_runpath=yes
9344 fi
9345 ;;
9346
9347 os2*)
9348 libname_spec='$name'
9349 shrext_cmds=".dll"
9350 need_lib_prefix=no
9351 library_names_spec='$libname${shared_ext} $libname.a'
9352 dynamic_linker='OS/2 ld.exe'
9353 shlibpath_var=LIBPATH
9354 ;;
9355
9356 osf3* | osf4* | osf5*)
9357 version_type=osf
9358 need_lib_prefix=no
9359 need_version=no
9360 soname_spec='${libname}${release}${shared_ext}$major'
9361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9362 shlibpath_var=LD_LIBRARY_PATH
9363 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9364 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9365 ;;
9366
9367 solaris*)
9368 version_type=linux
9369 need_lib_prefix=no
9370 need_version=no
9371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9372 soname_spec='${libname}${release}${shared_ext}$major'
9373 shlibpath_var=LD_LIBRARY_PATH
9374 shlibpath_overrides_runpath=yes
9375 hardcode_into_libs=yes
9376 # ldd complains unless libraries are executable
9377 postinstall_cmds='chmod +x $lib'
9378 ;;
9379
9380 sunos4*)
9381 version_type=sunos
9382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9383 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9384 shlibpath_var=LD_LIBRARY_PATH
9385 shlibpath_overrides_runpath=yes
9386 if test "$with_gnu_ld" = yes; then
9387 need_lib_prefix=no
9388 fi
9389 need_version=yes
9390 ;;
9391
9392 sysv4 | sysv4.3*)
9393 version_type=linux
9394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9395 soname_spec='${libname}${release}${shared_ext}$major'
9396 shlibpath_var=LD_LIBRARY_PATH
9397 case $host_vendor in
9398 sni)
9399 shlibpath_overrides_runpath=no
9400 need_lib_prefix=no
9401 export_dynamic_flag_spec='${wl}-Blargedynsym'
9402 runpath_var=LD_RUN_PATH
9403 ;;
9404 siemens)
9405 need_lib_prefix=no
9406 ;;
9407 motorola)
9408 need_lib_prefix=no
9409 need_version=no
9410 shlibpath_overrides_runpath=no
9411 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9412 ;;
9413 esac
9414 ;;
9415
9416 sysv4*MP*)
9417 if test -d /usr/nec ;then
9418 version_type=linux
9419 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9420 soname_spec='$libname${shared_ext}.$major'
9421 shlibpath_var=LD_LIBRARY_PATH
9422 fi
9423 ;;
9424
9425 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9426 version_type=freebsd-elf
9427 need_lib_prefix=no
9428 need_version=no
9429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9430 soname_spec='${libname}${release}${shared_ext}$major'
9431 shlibpath_var=LD_LIBRARY_PATH
9432 hardcode_into_libs=yes
9433 if test "$with_gnu_ld" = yes; then
9434 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9435 shlibpath_overrides_runpath=no
9436 else
9437 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9438 shlibpath_overrides_runpath=yes
9439 case $host_os in
9440 sco3.2v5*)
9441 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9442 ;;
9443 esac
9444 fi
9445 sys_lib_dlsearch_path_spec='/usr/lib'
9446 ;;
9447
9448 uts4*)
9449 version_type=linux
9450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9451 soname_spec='${libname}${release}${shared_ext}$major'
9452 shlibpath_var=LD_LIBRARY_PATH
9453 ;;
9454
9455 *)
9456 dynamic_linker=no
9457 ;;
9458 esac
9459 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9460 echo "${ECHO_T}$dynamic_linker" >&6; }
9461 test "$dynamic_linker" = no && can_build_shared=no
9462
9463 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9464 if test "$GCC" = yes; then
9465 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9466 fi
9467
9468 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9469 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9470 hardcode_action=
9471 if test -n "$hardcode_libdir_flag_spec" || \
9472 test -n "$runpath_var" || \
9473 test "X$hardcode_automatic" = "Xyes" ; then
9474
9475 # We can hardcode non-existant directories.
9476 if test "$hardcode_direct" != no &&
9477 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9478 # have to relink, otherwise we might link with an installed library
9479 # when we should be linking with a yet-to-be-installed one
9480 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9481 test "$hardcode_minus_L" != no; then
9482 # Linking always hardcodes the temporary library directory.
9483 hardcode_action=relink
9484 else
9485 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9486 hardcode_action=immediate
9487 fi
9488 else
9489 # We cannot hardcode anything, or else we can only hardcode existing
9490 # directories.
9491 hardcode_action=unsupported
9492 fi
9493 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9494 echo "${ECHO_T}$hardcode_action" >&6; }
9495
9496 if test "$hardcode_action" = relink; then
9497 # Fast installation is not supported
9498 enable_fast_install=no
9499 elif test "$shlibpath_overrides_runpath" = yes ||
9500 test "$enable_shared" = no; then
9501 # Fast installation is not necessary
9502 enable_fast_install=needless
9503 fi
9504
9505 striplib=
9506 old_striplib=
9507 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9508 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9509 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9510 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9511 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9512 { echo "$as_me:$LINENO: result: yes" >&5
9513 echo "${ECHO_T}yes" >&6; }
9514 else
9515 # FIXME - insert some real tests, host_os isn't really good enough
9516 case $host_os in
9517 darwin*)
9518 if test -n "$STRIP" ; then
9519 striplib="$STRIP -x"
9520 { echo "$as_me:$LINENO: result: yes" >&5
9521 echo "${ECHO_T}yes" >&6; }
9522 else
9523 { echo "$as_me:$LINENO: result: no" >&5
9524 echo "${ECHO_T}no" >&6; }
9525 fi
9526 ;;
9527 *)
9528 { echo "$as_me:$LINENO: result: no" >&5
9529 echo "${ECHO_T}no" >&6; }
9530 ;;
9531 esac
9532 fi
9533
9534 if test "x$enable_dlopen" != xyes; then
9535 enable_dlopen=unknown
9536 enable_dlopen_self=unknown
9537 enable_dlopen_self_static=unknown
9538 else
9539 lt_cv_dlopen=no
9540 lt_cv_dlopen_libs=
9541
9542 case $host_os in
9543 beos*)
9544 lt_cv_dlopen="load_add_on"
9545 lt_cv_dlopen_libs=
9546 lt_cv_dlopen_self=yes
9547 ;;
9548
9549 mingw* | pw32*)
9550 lt_cv_dlopen="LoadLibrary"
9551 lt_cv_dlopen_libs=
9552 ;;
9553
9554 cygwin*)
9555 lt_cv_dlopen="dlopen"
9556 lt_cv_dlopen_libs=
9557 ;;
9558
9559 darwin*)
9560 # if libdl is installed we need to link against it
9561 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9562 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9563 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9564 echo $ECHO_N "(cached) $ECHO_C" >&6
9565 else
9566 ac_check_lib_save_LIBS=$LIBS
9567 LIBS="-ldl $LIBS"
9568 cat >conftest.$ac_ext <<_ACEOF
9569 /* confdefs.h. */
9570 _ACEOF
9571 cat confdefs.h >>conftest.$ac_ext
9572 cat >>conftest.$ac_ext <<_ACEOF
9573 /* end confdefs.h. */
9574
9575 /* Override any GCC internal prototype to avoid an error.
9576 Use char because int might match the return type of a GCC
9577 builtin and then its argument prototype would still apply. */
9578 #ifdef __cplusplus
9579 extern "C"
9580 #endif
9581 char dlopen ();
9582 int
9583 main ()
9584 {
9585 return dlopen ();
9586 ;
9587 return 0;
9588 }
9589 _ACEOF
9590 rm -f conftest.$ac_objext conftest$ac_exeext
9591 if { (ac_try="$ac_link"
9592 case "(($ac_try" in
9593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9594 *) ac_try_echo=$ac_try;;
9595 esac
9596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9597 (eval "$ac_link") 2>conftest.er1
9598 ac_status=$?
9599 grep -v '^ *+' conftest.er1 >conftest.err
9600 rm -f conftest.er1
9601 cat conftest.err >&5
9602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603 (exit $ac_status); } &&
9604 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9605 { (case "(($ac_try" in
9606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9607 *) ac_try_echo=$ac_try;;
9608 esac
9609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9610 (eval "$ac_try") 2>&5
9611 ac_status=$?
9612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9613 (exit $ac_status); }; } &&
9614 { ac_try='test -s conftest$ac_exeext'
9615 { (case "(($ac_try" in
9616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9617 *) ac_try_echo=$ac_try;;
9618 esac
9619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9620 (eval "$ac_try") 2>&5
9621 ac_status=$?
9622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623 (exit $ac_status); }; }; then
9624 ac_cv_lib_dl_dlopen=yes
9625 else
9626 echo "$as_me: failed program was:" >&5
9627 sed 's/^/| /' conftest.$ac_ext >&5
9628
9629 ac_cv_lib_dl_dlopen=no
9630 fi
9631
9632 rm -f core conftest.err conftest.$ac_objext \
9633 conftest$ac_exeext conftest.$ac_ext
9634 LIBS=$ac_check_lib_save_LIBS
9635 fi
9636 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9637 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9638 if test $ac_cv_lib_dl_dlopen = yes; then
9639 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9640 else
9641
9642 lt_cv_dlopen="dyld"
9643 lt_cv_dlopen_libs=
9644 lt_cv_dlopen_self=yes
9645
9646 fi
9647
9648 ;;
9649
9650 *)
9651 { echo "$as_me:$LINENO: checking for shl_load" >&5
9652 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9653 if test "${ac_cv_func_shl_load+set}" = set; then
9654 echo $ECHO_N "(cached) $ECHO_C" >&6
9655 else
9656 cat >conftest.$ac_ext <<_ACEOF
9657 /* confdefs.h. */
9658 _ACEOF
9659 cat confdefs.h >>conftest.$ac_ext
9660 cat >>conftest.$ac_ext <<_ACEOF
9661 /* end confdefs.h. */
9662 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9663 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9664 #define shl_load innocuous_shl_load
9665
9666 /* System header to define __stub macros and hopefully few prototypes,
9667 which can conflict with char shl_load (); below.
9668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9669 <limits.h> exists even on freestanding compilers. */
9670
9671 #ifdef __STDC__
9672 # include <limits.h>
9673 #else
9674 # include <assert.h>
9675 #endif
9676
9677 #undef shl_load
9678
9679 /* Override any GCC internal prototype to avoid an error.
9680 Use char because int might match the return type of a GCC
9681 builtin and then its argument prototype would still apply. */
9682 #ifdef __cplusplus
9683 extern "C"
9684 #endif
9685 char shl_load ();
9686 /* The GNU C library defines this for functions which it implements
9687 to always fail with ENOSYS. Some functions are actually named
9688 something starting with __ and the normal name is an alias. */
9689 #if defined __stub_shl_load || defined __stub___shl_load
9690 choke me
9691 #endif
9692
9693 int
9694 main ()
9695 {
9696 return shl_load ();
9697 ;
9698 return 0;
9699 }
9700 _ACEOF
9701 rm -f conftest.$ac_objext conftest$ac_exeext
9702 if { (ac_try="$ac_link"
9703 case "(($ac_try" in
9704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9705 *) ac_try_echo=$ac_try;;
9706 esac
9707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9708 (eval "$ac_link") 2>conftest.er1
9709 ac_status=$?
9710 grep -v '^ *+' conftest.er1 >conftest.err
9711 rm -f conftest.er1
9712 cat conftest.err >&5
9713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714 (exit $ac_status); } &&
9715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9716 { (case "(($ac_try" in
9717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9718 *) ac_try_echo=$ac_try;;
9719 esac
9720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9721 (eval "$ac_try") 2>&5
9722 ac_status=$?
9723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9724 (exit $ac_status); }; } &&
9725 { ac_try='test -s conftest$ac_exeext'
9726 { (case "(($ac_try" in
9727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9728 *) ac_try_echo=$ac_try;;
9729 esac
9730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9731 (eval "$ac_try") 2>&5
9732 ac_status=$?
9733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734 (exit $ac_status); }; }; then
9735 ac_cv_func_shl_load=yes
9736 else
9737 echo "$as_me: failed program was:" >&5
9738 sed 's/^/| /' conftest.$ac_ext >&5
9739
9740 ac_cv_func_shl_load=no
9741 fi
9742
9743 rm -f core conftest.err conftest.$ac_objext \
9744 conftest$ac_exeext conftest.$ac_ext
9745 fi
9746 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9747 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9748 if test $ac_cv_func_shl_load = yes; then
9749 lt_cv_dlopen="shl_load"
9750 else
9751 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9752 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9753 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9754 echo $ECHO_N "(cached) $ECHO_C" >&6
9755 else
9756 ac_check_lib_save_LIBS=$LIBS
9757 LIBS="-ldld $LIBS"
9758 cat >conftest.$ac_ext <<_ACEOF
9759 /* confdefs.h. */
9760 _ACEOF
9761 cat confdefs.h >>conftest.$ac_ext
9762 cat >>conftest.$ac_ext <<_ACEOF
9763 /* end confdefs.h. */
9764
9765 /* Override any GCC internal prototype to avoid an error.
9766 Use char because int might match the return type of a GCC
9767 builtin and then its argument prototype would still apply. */
9768 #ifdef __cplusplus
9769 extern "C"
9770 #endif
9771 char shl_load ();
9772 int
9773 main ()
9774 {
9775 return shl_load ();
9776 ;
9777 return 0;
9778 }
9779 _ACEOF
9780 rm -f conftest.$ac_objext conftest$ac_exeext
9781 if { (ac_try="$ac_link"
9782 case "(($ac_try" in
9783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9784 *) ac_try_echo=$ac_try;;
9785 esac
9786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9787 (eval "$ac_link") 2>conftest.er1
9788 ac_status=$?
9789 grep -v '^ *+' conftest.er1 >conftest.err
9790 rm -f conftest.er1
9791 cat conftest.err >&5
9792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793 (exit $ac_status); } &&
9794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9795 { (case "(($ac_try" in
9796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9797 *) ac_try_echo=$ac_try;;
9798 esac
9799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9800 (eval "$ac_try") 2>&5
9801 ac_status=$?
9802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803 (exit $ac_status); }; } &&
9804 { ac_try='test -s conftest$ac_exeext'
9805 { (case "(($ac_try" in
9806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9807 *) ac_try_echo=$ac_try;;
9808 esac
9809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9810 (eval "$ac_try") 2>&5
9811 ac_status=$?
9812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9813 (exit $ac_status); }; }; then
9814 ac_cv_lib_dld_shl_load=yes
9815 else
9816 echo "$as_me: failed program was:" >&5
9817 sed 's/^/| /' conftest.$ac_ext >&5
9818
9819 ac_cv_lib_dld_shl_load=no
9820 fi
9821
9822 rm -f core conftest.err conftest.$ac_objext \
9823 conftest$ac_exeext conftest.$ac_ext
9824 LIBS=$ac_check_lib_save_LIBS
9825 fi
9826 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9827 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9828 if test $ac_cv_lib_dld_shl_load = yes; then
9829 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9830 else
9831 { echo "$as_me:$LINENO: checking for dlopen" >&5
9832 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9833 if test "${ac_cv_func_dlopen+set}" = set; then
9834 echo $ECHO_N "(cached) $ECHO_C" >&6
9835 else
9836 cat >conftest.$ac_ext <<_ACEOF
9837 /* confdefs.h. */
9838 _ACEOF
9839 cat confdefs.h >>conftest.$ac_ext
9840 cat >>conftest.$ac_ext <<_ACEOF
9841 /* end confdefs.h. */
9842 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9843 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9844 #define dlopen innocuous_dlopen
9845
9846 /* System header to define __stub macros and hopefully few prototypes,
9847 which can conflict with char dlopen (); below.
9848 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9849 <limits.h> exists even on freestanding compilers. */
9850
9851 #ifdef __STDC__
9852 # include <limits.h>
9853 #else
9854 # include <assert.h>
9855 #endif
9856
9857 #undef dlopen
9858
9859 /* Override any GCC internal prototype to avoid an error.
9860 Use char because int might match the return type of a GCC
9861 builtin and then its argument prototype would still apply. */
9862 #ifdef __cplusplus
9863 extern "C"
9864 #endif
9865 char dlopen ();
9866 /* The GNU C library defines this for functions which it implements
9867 to always fail with ENOSYS. Some functions are actually named
9868 something starting with __ and the normal name is an alias. */
9869 #if defined __stub_dlopen || defined __stub___dlopen
9870 choke me
9871 #endif
9872
9873 int
9874 main ()
9875 {
9876 return dlopen ();
9877 ;
9878 return 0;
9879 }
9880 _ACEOF
9881 rm -f conftest.$ac_objext conftest$ac_exeext
9882 if { (ac_try="$ac_link"
9883 case "(($ac_try" in
9884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9885 *) ac_try_echo=$ac_try;;
9886 esac
9887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9888 (eval "$ac_link") 2>conftest.er1
9889 ac_status=$?
9890 grep -v '^ *+' conftest.er1 >conftest.err
9891 rm -f conftest.er1
9892 cat conftest.err >&5
9893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9894 (exit $ac_status); } &&
9895 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9896 { (case "(($ac_try" in
9897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9898 *) ac_try_echo=$ac_try;;
9899 esac
9900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9901 (eval "$ac_try") 2>&5
9902 ac_status=$?
9903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9904 (exit $ac_status); }; } &&
9905 { ac_try='test -s conftest$ac_exeext'
9906 { (case "(($ac_try" in
9907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9908 *) ac_try_echo=$ac_try;;
9909 esac
9910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9911 (eval "$ac_try") 2>&5
9912 ac_status=$?
9913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9914 (exit $ac_status); }; }; then
9915 ac_cv_func_dlopen=yes
9916 else
9917 echo "$as_me: failed program was:" >&5
9918 sed 's/^/| /' conftest.$ac_ext >&5
9919
9920 ac_cv_func_dlopen=no
9921 fi
9922
9923 rm -f core conftest.err conftest.$ac_objext \
9924 conftest$ac_exeext conftest.$ac_ext
9925 fi
9926 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9927 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9928 if test $ac_cv_func_dlopen = yes; then
9929 lt_cv_dlopen="dlopen"
9930 else
9931 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9932 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9933 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9934 echo $ECHO_N "(cached) $ECHO_C" >&6
9935 else
9936 ac_check_lib_save_LIBS=$LIBS
9937 LIBS="-ldl $LIBS"
9938 cat >conftest.$ac_ext <<_ACEOF
9939 /* confdefs.h. */
9940 _ACEOF
9941 cat confdefs.h >>conftest.$ac_ext
9942 cat >>conftest.$ac_ext <<_ACEOF
9943 /* end confdefs.h. */
9944
9945 /* Override any GCC internal prototype to avoid an error.
9946 Use char because int might match the return type of a GCC
9947 builtin and then its argument prototype would still apply. */
9948 #ifdef __cplusplus
9949 extern "C"
9950 #endif
9951 char dlopen ();
9952 int
9953 main ()
9954 {
9955 return dlopen ();
9956 ;
9957 return 0;
9958 }
9959 _ACEOF
9960 rm -f conftest.$ac_objext conftest$ac_exeext
9961 if { (ac_try="$ac_link"
9962 case "(($ac_try" in
9963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9964 *) ac_try_echo=$ac_try;;
9965 esac
9966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9967 (eval "$ac_link") 2>conftest.er1
9968 ac_status=$?
9969 grep -v '^ *+' conftest.er1 >conftest.err
9970 rm -f conftest.er1
9971 cat conftest.err >&5
9972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973 (exit $ac_status); } &&
9974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9975 { (case "(($ac_try" in
9976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9977 *) ac_try_echo=$ac_try;;
9978 esac
9979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9980 (eval "$ac_try") 2>&5
9981 ac_status=$?
9982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9983 (exit $ac_status); }; } &&
9984 { ac_try='test -s conftest$ac_exeext'
9985 { (case "(($ac_try" in
9986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9987 *) ac_try_echo=$ac_try;;
9988 esac
9989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9990 (eval "$ac_try") 2>&5
9991 ac_status=$?
9992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993 (exit $ac_status); }; }; then
9994 ac_cv_lib_dl_dlopen=yes
9995 else
9996 echo "$as_me: failed program was:" >&5
9997 sed 's/^/| /' conftest.$ac_ext >&5
9998
9999 ac_cv_lib_dl_dlopen=no
10000 fi
10001
10002 rm -f core conftest.err conftest.$ac_objext \
10003 conftest$ac_exeext conftest.$ac_ext
10004 LIBS=$ac_check_lib_save_LIBS
10005 fi
10006 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10007 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10008 if test $ac_cv_lib_dl_dlopen = yes; then
10009 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10010 else
10011 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10012 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10013 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10014 echo $ECHO_N "(cached) $ECHO_C" >&6
10015 else
10016 ac_check_lib_save_LIBS=$LIBS
10017 LIBS="-lsvld $LIBS"
10018 cat >conftest.$ac_ext <<_ACEOF
10019 /* confdefs.h. */
10020 _ACEOF
10021 cat confdefs.h >>conftest.$ac_ext
10022 cat >>conftest.$ac_ext <<_ACEOF
10023 /* end confdefs.h. */
10024
10025 /* Override any GCC internal prototype to avoid an error.
10026 Use char because int might match the return type of a GCC
10027 builtin and then its argument prototype would still apply. */
10028 #ifdef __cplusplus
10029 extern "C"
10030 #endif
10031 char dlopen ();
10032 int
10033 main ()
10034 {
10035 return dlopen ();
10036 ;
10037 return 0;
10038 }
10039 _ACEOF
10040 rm -f conftest.$ac_objext conftest$ac_exeext
10041 if { (ac_try="$ac_link"
10042 case "(($ac_try" in
10043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10044 *) ac_try_echo=$ac_try;;
10045 esac
10046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10047 (eval "$ac_link") 2>conftest.er1
10048 ac_status=$?
10049 grep -v '^ *+' conftest.er1 >conftest.err
10050 rm -f conftest.er1
10051 cat conftest.err >&5
10052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053 (exit $ac_status); } &&
10054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10055 { (case "(($ac_try" in
10056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10057 *) ac_try_echo=$ac_try;;
10058 esac
10059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10060 (eval "$ac_try") 2>&5
10061 ac_status=$?
10062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063 (exit $ac_status); }; } &&
10064 { ac_try='test -s conftest$ac_exeext'
10065 { (case "(($ac_try" in
10066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10067 *) ac_try_echo=$ac_try;;
10068 esac
10069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10070 (eval "$ac_try") 2>&5
10071 ac_status=$?
10072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073 (exit $ac_status); }; }; then
10074 ac_cv_lib_svld_dlopen=yes
10075 else
10076 echo "$as_me: failed program was:" >&5
10077 sed 's/^/| /' conftest.$ac_ext >&5
10078
10079 ac_cv_lib_svld_dlopen=no
10080 fi
10081
10082 rm -f core conftest.err conftest.$ac_objext \
10083 conftest$ac_exeext conftest.$ac_ext
10084 LIBS=$ac_check_lib_save_LIBS
10085 fi
10086 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10087 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10088 if test $ac_cv_lib_svld_dlopen = yes; then
10089 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10090 else
10091 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10092 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10093 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10094 echo $ECHO_N "(cached) $ECHO_C" >&6
10095 else
10096 ac_check_lib_save_LIBS=$LIBS
10097 LIBS="-ldld $LIBS"
10098 cat >conftest.$ac_ext <<_ACEOF
10099 /* confdefs.h. */
10100 _ACEOF
10101 cat confdefs.h >>conftest.$ac_ext
10102 cat >>conftest.$ac_ext <<_ACEOF
10103 /* end confdefs.h. */
10104
10105 /* Override any GCC internal prototype to avoid an error.
10106 Use char because int might match the return type of a GCC
10107 builtin and then its argument prototype would still apply. */
10108 #ifdef __cplusplus
10109 extern "C"
10110 #endif
10111 char dld_link ();
10112 int
10113 main ()
10114 {
10115 return dld_link ();
10116 ;
10117 return 0;
10118 }
10119 _ACEOF
10120 rm -f conftest.$ac_objext conftest$ac_exeext
10121 if { (ac_try="$ac_link"
10122 case "(($ac_try" in
10123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10124 *) ac_try_echo=$ac_try;;
10125 esac
10126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10127 (eval "$ac_link") 2>conftest.er1
10128 ac_status=$?
10129 grep -v '^ *+' conftest.er1 >conftest.err
10130 rm -f conftest.er1
10131 cat conftest.err >&5
10132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10133 (exit $ac_status); } &&
10134 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10135 { (case "(($ac_try" in
10136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10137 *) ac_try_echo=$ac_try;;
10138 esac
10139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10140 (eval "$ac_try") 2>&5
10141 ac_status=$?
10142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143 (exit $ac_status); }; } &&
10144 { ac_try='test -s conftest$ac_exeext'
10145 { (case "(($ac_try" in
10146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10147 *) ac_try_echo=$ac_try;;
10148 esac
10149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10150 (eval "$ac_try") 2>&5
10151 ac_status=$?
10152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153 (exit $ac_status); }; }; then
10154 ac_cv_lib_dld_dld_link=yes
10155 else
10156 echo "$as_me: failed program was:" >&5
10157 sed 's/^/| /' conftest.$ac_ext >&5
10158
10159 ac_cv_lib_dld_dld_link=no
10160 fi
10161
10162 rm -f core conftest.err conftest.$ac_objext \
10163 conftest$ac_exeext conftest.$ac_ext
10164 LIBS=$ac_check_lib_save_LIBS
10165 fi
10166 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10167 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10168 if test $ac_cv_lib_dld_dld_link = yes; then
10169 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10170 fi
10171
10172
10173 fi
10174
10175
10176 fi
10177
10178
10179 fi
10180
10181
10182 fi
10183
10184
10185 fi
10186
10187 ;;
10188 esac
10189
10190 if test "x$lt_cv_dlopen" != xno; then
10191 enable_dlopen=yes
10192 else
10193 enable_dlopen=no
10194 fi
10195
10196 case $lt_cv_dlopen in
10197 dlopen)
10198 save_CPPFLAGS="$CPPFLAGS"
10199 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10200
10201 save_LDFLAGS="$LDFLAGS"
10202 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10203
10204 save_LIBS="$LIBS"
10205 LIBS="$lt_cv_dlopen_libs $LIBS"
10206
10207 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10208 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10209 if test "${lt_cv_dlopen_self+set}" = set; then
10210 echo $ECHO_N "(cached) $ECHO_C" >&6
10211 else
10212 if test "$cross_compiling" = yes; then :
10213 lt_cv_dlopen_self=cross
10214 else
10215 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10216 lt_status=$lt_dlunknown
10217 cat > conftest.$ac_ext <<EOF
10218 #line 10218 "configure"
10219 #include "confdefs.h"
10220
10221 #if HAVE_DLFCN_H
10222 #include <dlfcn.h>
10223 #endif
10224
10225 #include <stdio.h>
10226
10227 #ifdef RTLD_GLOBAL
10228 # define LT_DLGLOBAL RTLD_GLOBAL
10229 #else
10230 # ifdef DL_GLOBAL
10231 # define LT_DLGLOBAL DL_GLOBAL
10232 # else
10233 # define LT_DLGLOBAL 0
10234 # endif
10235 #endif
10236
10237 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10238 find out it does not work in some platform. */
10239 #ifndef LT_DLLAZY_OR_NOW
10240 # ifdef RTLD_LAZY
10241 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10242 # else
10243 # ifdef DL_LAZY
10244 # define LT_DLLAZY_OR_NOW DL_LAZY
10245 # else
10246 # ifdef RTLD_NOW
10247 # define LT_DLLAZY_OR_NOW RTLD_NOW
10248 # else
10249 # ifdef DL_NOW
10250 # define LT_DLLAZY_OR_NOW DL_NOW
10251 # else
10252 # define LT_DLLAZY_OR_NOW 0
10253 # endif
10254 # endif
10255 # endif
10256 # endif
10257 #endif
10258
10259 #ifdef __cplusplus
10260 extern "C" void exit (int);
10261 #endif
10262
10263 void fnord() { int i=42;}
10264 int main ()
10265 {
10266 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10267 int status = $lt_dlunknown;
10268
10269 if (self)
10270 {
10271 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10272 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10273 /* dlclose (self); */
10274 }
10275 else
10276 puts (dlerror ());
10277
10278 exit (status);
10279 }
10280 EOF
10281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10282 (eval $ac_link) 2>&5
10283 ac_status=$?
10284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10286 (./conftest; exit; ) >&5 2>/dev/null
10287 lt_status=$?
10288 case x$lt_status in
10289 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10290 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10291 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10292 esac
10293 else :
10294 # compilation failed
10295 lt_cv_dlopen_self=no
10296 fi
10297 fi
10298 rm -fr conftest*
10299
10300
10301 fi
10302 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10303 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10304
10305 if test "x$lt_cv_dlopen_self" = xyes; then
10306 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10307 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10308 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10309 if test "${lt_cv_dlopen_self_static+set}" = set; then
10310 echo $ECHO_N "(cached) $ECHO_C" >&6
10311 else
10312 if test "$cross_compiling" = yes; then :
10313 lt_cv_dlopen_self_static=cross
10314 else
10315 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10316 lt_status=$lt_dlunknown
10317 cat > conftest.$ac_ext <<EOF
10318 #line 10318 "configure"
10319 #include "confdefs.h"
10320
10321 #if HAVE_DLFCN_H
10322 #include <dlfcn.h>
10323 #endif
10324
10325 #include <stdio.h>
10326
10327 #ifdef RTLD_GLOBAL
10328 # define LT_DLGLOBAL RTLD_GLOBAL
10329 #else
10330 # ifdef DL_GLOBAL
10331 # define LT_DLGLOBAL DL_GLOBAL
10332 # else
10333 # define LT_DLGLOBAL 0
10334 # endif
10335 #endif
10336
10337 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10338 find out it does not work in some platform. */
10339 #ifndef LT_DLLAZY_OR_NOW
10340 # ifdef RTLD_LAZY
10341 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10342 # else
10343 # ifdef DL_LAZY
10344 # define LT_DLLAZY_OR_NOW DL_LAZY
10345 # else
10346 # ifdef RTLD_NOW
10347 # define LT_DLLAZY_OR_NOW RTLD_NOW
10348 # else
10349 # ifdef DL_NOW
10350 # define LT_DLLAZY_OR_NOW DL_NOW
10351 # else
10352 # define LT_DLLAZY_OR_NOW 0
10353 # endif
10354 # endif
10355 # endif
10356 # endif
10357 #endif
10358
10359 #ifdef __cplusplus
10360 extern "C" void exit (int);
10361 #endif
10362
10363 void fnord() { int i=42;}
10364 int main ()
10365 {
10366 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10367 int status = $lt_dlunknown;
10368
10369 if (self)
10370 {
10371 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10372 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10373 /* dlclose (self); */
10374 }
10375 else
10376 puts (dlerror ());
10377
10378 exit (status);
10379 }
10380 EOF
10381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10382 (eval $ac_link) 2>&5
10383 ac_status=$?
10384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10386 (./conftest; exit; ) >&5 2>/dev/null
10387 lt_status=$?
10388 case x$lt_status in
10389 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10390 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10391 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10392 esac
10393 else :
10394 # compilation failed
10395 lt_cv_dlopen_self_static=no
10396 fi
10397 fi
10398 rm -fr conftest*
10399
10400
10401 fi
10402 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10403 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10404 fi
10405
10406 CPPFLAGS="$save_CPPFLAGS"
10407 LDFLAGS="$save_LDFLAGS"
10408 LIBS="$save_LIBS"
10409 ;;
10410 esac
10411
10412 case $lt_cv_dlopen_self in
10413 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10414 *) enable_dlopen_self=unknown ;;
10415 esac
10416
10417 case $lt_cv_dlopen_self_static in
10418 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10419 *) enable_dlopen_self_static=unknown ;;
10420 esac
10421 fi
10422
10423
10424 # Report which library types will actually be built
10425 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10426 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10427 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10428 echo "${ECHO_T}$can_build_shared" >&6; }
10429
10430 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10431 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10432 test "$can_build_shared" = "no" && enable_shared=no
10433
10434 # On AIX, shared libraries and static libraries use the same namespace, and
10435 # are all built from PIC.
10436 case $host_os in
10437 aix3*)
10438 test "$enable_shared" = yes && enable_static=no
10439 if test -n "$RANLIB"; then
10440 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10441 postinstall_cmds='$RANLIB $lib'
10442 fi
10443 ;;
10444
10445 aix4* | aix5*)
10446 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10447 test "$enable_shared" = yes && enable_static=no
10448 fi
10449 ;;
10450 esac
10451 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10452 echo "${ECHO_T}$enable_shared" >&6; }
10453
10454 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10455 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10456 # Make sure either enable_shared or enable_static is yes.
10457 test "$enable_shared" = yes || enable_static=yes
10458 { echo "$as_me:$LINENO: result: $enable_static" >&5
10459 echo "${ECHO_T}$enable_static" >&6; }
10460
10461 # The else clause should only fire when bootstrapping the
10462 # libtool distribution, otherwise you forgot to ship ltmain.sh
10463 # with your package, and you will get complaints that there are
10464 # no rules to generate ltmain.sh.
10465 if test -f "$ltmain"; then
10466 # See if we are running on zsh, and set the options which allow our commands through
10467 # without removal of \ escapes.
10468 if test -n "${ZSH_VERSION+set}" ; then
10469 setopt NO_GLOB_SUBST
10470 fi
10471 # Now quote all the things that may contain metacharacters while being
10472 # careful not to overquote the AC_SUBSTed values. We take copies of the
10473 # variables and quote the copies for generation of the libtool script.
10474 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10475 SED SHELL STRIP \
10476 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10477 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10478 deplibs_check_method reload_flag reload_cmds need_locks \
10479 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10480 lt_cv_sys_global_symbol_to_c_name_address \
10481 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10482 old_postinstall_cmds old_postuninstall_cmds \
10483 compiler \
10484 CC \
10485 LD \
10486 lt_prog_compiler_wl \
10487 lt_prog_compiler_pic \
10488 lt_prog_compiler_static \
10489 lt_prog_compiler_no_builtin_flag \
10490 export_dynamic_flag_spec \
10491 thread_safe_flag_spec \
10492 whole_archive_flag_spec \
10493 enable_shared_with_static_runtimes \
10494 old_archive_cmds \
10495 old_archive_from_new_cmds \
10496 predep_objects \
10497 postdep_objects \
10498 predeps \
10499 postdeps \
10500 compiler_lib_search_path \
10501 archive_cmds \
10502 archive_expsym_cmds \
10503 postinstall_cmds \
10504 postuninstall_cmds \
10505 old_archive_from_expsyms_cmds \
10506 allow_undefined_flag \
10507 no_undefined_flag \
10508 export_symbols_cmds \
10509 hardcode_libdir_flag_spec \
10510 hardcode_libdir_flag_spec_ld \
10511 hardcode_libdir_separator \
10512 hardcode_automatic \
10513 module_cmds \
10514 module_expsym_cmds \
10515 lt_cv_prog_compiler_c_o \
10516 exclude_expsyms \
10517 include_expsyms; do
10518
10519 case $var in
10520 old_archive_cmds | \
10521 old_archive_from_new_cmds | \
10522 archive_cmds | \
10523 archive_expsym_cmds | \
10524 module_cmds | \
10525 module_expsym_cmds | \
10526 old_archive_from_expsyms_cmds | \
10527 export_symbols_cmds | \
10528 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10529 postinstall_cmds | postuninstall_cmds | \
10530 old_postinstall_cmds | old_postuninstall_cmds | \
10531 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10532 # Double-quote double-evaled strings.
10533 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10534 ;;
10535 *)
10536 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10537 ;;
10538 esac
10539 done
10540
10541 case $lt_echo in
10542 *'\$0 --fallback-echo"')
10543 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10544 ;;
10545 esac
10546
10547 cfgfile="${ofile}T"
10548 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10549 $rm -f "$cfgfile"
10550 { echo "$as_me:$LINENO: creating $ofile" >&5
10551 echo "$as_me: creating $ofile" >&6;}
10552
10553 cat <<__EOF__ >> "$cfgfile"
10554 #! $SHELL
10555
10556 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10557 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10558 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10559 #
10560 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10561 # Free Software Foundation, Inc.
10562 #
10563 # This file is part of GNU Libtool:
10564 # Originally by Gordon Matzigkeit <gord (at] gnu.ai.mit.edu>, 1996
10565 #
10566 # This program is free software; you can redistribute it and/or modify
10567 # it under the terms of the GNU General Public License as published by
10568 # the Free Software Foundation; either version 2 of the License, or
10569 # (at your option) any later version.
10570 #
10571 # This program is distributed in the hope that it will be useful, but
10572 # WITHOUT ANY WARRANTY; without even the implied warranty of
10573 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10574 # General Public License for more details.
10575 #
10576 # You should have received a copy of the GNU General Public License
10577 # along with this program; if not, write to the Free Software
10578 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10579 #
10580 # As a special exception to the GNU General Public License, if you
10581 # distribute this file as part of a program that contains a
10582 # configuration script generated by Autoconf, you may include it under
10583 # the same distribution terms that you use for the rest of that program.
10584
10585 # A sed program that does not truncate output.
10586 SED=$lt_SED
10587
10588 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10589 Xsed="$SED -e 1s/^X//"
10590
10591 # The HP-UX ksh and POSIX shell print the target directory to stdout
10592 # if CDPATH is set.
10593 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10594
10595 # The names of the tagged configurations supported by this script.
10596 available_tags=
10597
10598 # ### BEGIN LIBTOOL CONFIG
10599
10600 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10601
10602 # Shell to use when invoking shell scripts.
10603 SHELL=$lt_SHELL
10604
10605 # Whether or not to build shared libraries.
10606 build_libtool_libs=$enable_shared
10607
10608 # Whether or not to build static libraries.
10609 build_old_libs=$enable_static
10610
10611 # Whether or not to add -lc for building shared libraries.
10612 build_libtool_need_lc=$archive_cmds_need_lc
10613
10614 # Whether or not to disallow shared libs when runtime libs are static
10615 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10616
10617 # Whether or not to optimize for fast installation.
10618 fast_install=$enable_fast_install
10619
10620 # The host system.
10621 host_alias=$host_alias
10622 host=$host
10623 host_os=$host_os
10624
10625 # The build system.
10626 build_alias=$build_alias
10627 build=$build
10628 build_os=$build_os
10629
10630 # An echo program that does not interpret backslashes.
10631 echo=$lt_echo
10632
10633 # The archiver.
10634 AR=$lt_AR
10635 AR_FLAGS=$lt_AR_FLAGS
10636
10637 # A C compiler.
10638 LTCC=$lt_LTCC
10639
10640 # LTCC compiler flags.
10641 LTCFLAGS=$lt_LTCFLAGS
10642
10643 # A language-specific compiler.
10644 CC=$lt_compiler
10645
10646 # Is the compiler the GNU C compiler?
10647 with_gcc=$GCC
10648
10649 # An ERE matcher.
10650 EGREP=$lt_EGREP
10651
10652 # The linker used to build libraries.
10653 LD=$lt_LD
10654
10655 # Whether we need hard or soft links.
10656 LN_S=$lt_LN_S
10657
10658 # A BSD-compatible nm program.
10659 NM=$lt_NM
10660
10661 # A symbol stripping program
10662 STRIP=$lt_STRIP
10663
10664 # Used to examine libraries when file_magic_cmd begins "file"
10665 MAGIC_CMD=$MAGIC_CMD
10666
10667 # Used on cygwin: DLL creation program.
10668 DLLTOOL="$DLLTOOL"
10669
10670 # Used on cygwin: object dumper.
10671 OBJDUMP="$OBJDUMP"
10672
10673 # Used on cygwin: assembler.
10674 AS="$AS"
10675
10676 # The name of the directory that contains temporary libtool files.
10677 objdir=$objdir
10678
10679 # How to create reloadable object files.
10680 reload_flag=$lt_reload_flag
10681 reload_cmds=$lt_reload_cmds
10682
10683 # How to pass a linker flag through the compiler.
10684 wl=$lt_lt_prog_compiler_wl
10685
10686 # Object file suffix (normally "o").
10687 objext="$ac_objext"
10688
10689 # Old archive suffix (normally "a").
10690 libext="$libext"
10691
10692 # Shared library suffix (normally ".so").
10693 shrext_cmds='$shrext_cmds'
10694
10695 # Executable file suffix (normally "").
10696 exeext="$exeext"
10697
10698 # Additional compiler flags for building library objects.
10699 pic_flag=$lt_lt_prog_compiler_pic
10700 pic_mode=$pic_mode
10701
10702 # What is the maximum length of a command?
10703 max_cmd_len=$lt_cv_sys_max_cmd_len
10704
10705 # Does compiler simultaneously support -c and -o options?
10706 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10707
10708 # Must we lock files when doing compilation?
10709 need_locks=$lt_need_locks
10710
10711 # Do we need the lib prefix for modules?
10712 need_lib_prefix=$need_lib_prefix
10713
10714 # Do we need a version for libraries?
10715 need_version=$need_version
10716
10717 # Whether dlopen is supported.
10718 dlopen_support=$enable_dlopen
10719
10720 # Whether dlopen of programs is supported.
10721 dlopen_self=$enable_dlopen_self
10722
10723 # Whether dlopen of statically linked programs is supported.
10724 dlopen_self_static=$enable_dlopen_self_static
10725
10726 # Compiler flag to prevent dynamic linking.
10727 link_static_flag=$lt_lt_prog_compiler_static
10728
10729 # Compiler flag to turn off builtin functions.
10730 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10731
10732 # Compiler flag to allow reflexive dlopens.
10733 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10734
10735 # Compiler flag to generate shared objects directly from archives.
10736 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10737
10738 # Compiler flag to generate thread-safe objects.
10739 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10740
10741 # Library versioning type.
10742 version_type=$version_type
10743
10744 # Format of library name prefix.
10745 libname_spec=$lt_libname_spec
10746
10747 # List of archive names. First name is the real one, the rest are links.
10748 # The last name is the one that the linker finds with -lNAME.
10749 library_names_spec=$lt_library_names_spec
10750
10751 # The coded name of the library, if different from the real name.
10752 soname_spec=$lt_soname_spec
10753
10754 # Commands used to build and install an old-style archive.
10755 RANLIB=$lt_RANLIB
10756 old_archive_cmds=$lt_old_archive_cmds
10757 old_postinstall_cmds=$lt_old_postinstall_cmds
10758 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10759
10760 # Create an old-style archive from a shared archive.
10761 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10762
10763 # Create a temporary old-style archive to link instead of a shared archive.
10764 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10765
10766 # Commands used to build and install a shared archive.
10767 archive_cmds=$lt_archive_cmds
10768 archive_expsym_cmds=$lt_archive_expsym_cmds
10769 postinstall_cmds=$lt_postinstall_cmds
10770 postuninstall_cmds=$lt_postuninstall_cmds
10771
10772 # Commands used to build a loadable module (assumed same as above if empty)
10773 module_cmds=$lt_module_cmds
10774 module_expsym_cmds=$lt_module_expsym_cmds
10775
10776 # Commands to strip libraries.
10777 old_striplib=$lt_old_striplib
10778 striplib=$lt_striplib
10779
10780 # Dependencies to place before the objects being linked to create a
10781 # shared library.
10782 predep_objects=$lt_predep_objects
10783
10784 # Dependencies to place after the objects being linked to create a
10785 # shared library.
10786 postdep_objects=$lt_postdep_objects
10787
10788 # Dependencies to place before the objects being linked to create a
10789 # shared library.
10790 predeps=$lt_predeps
10791
10792 # Dependencies to place after the objects being linked to create a
10793 # shared library.
10794 postdeps=$lt_postdeps
10795
10796 # The library search path used internally by the compiler when linking
10797 # a shared library.
10798 compiler_lib_search_path=$lt_compiler_lib_search_path
10799
10800 # Method to check whether dependent libraries are shared objects.
10801 deplibs_check_method=$lt_deplibs_check_method
10802
10803 # Command to use when deplibs_check_method == file_magic.
10804 file_magic_cmd=$lt_file_magic_cmd
10805
10806 # Flag that allows shared libraries with undefined symbols to be built.
10807 allow_undefined_flag=$lt_allow_undefined_flag
10808
10809 # Flag that forces no undefined symbols.
10810 no_undefined_flag=$lt_no_undefined_flag
10811
10812 # Commands used to finish a libtool library installation in a directory.
10813 finish_cmds=$lt_finish_cmds
10814
10815 # Same as above, but a single script fragment to be evaled but not shown.
10816 finish_eval=$lt_finish_eval
10817
10818 # Take the output of nm and produce a listing of raw symbols and C names.
10819 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10820
10821 # Transform the output of nm in a proper C declaration
10822 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10823
10824 # Transform the output of nm in a C name address pair
10825 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10826
10827 # This is the shared library runtime path variable.
10828 runpath_var=$runpath_var
10829
10830 # This is the shared library path variable.
10831 shlibpath_var=$shlibpath_var
10832
10833 # Is shlibpath searched before the hard-coded library search path?
10834 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10835
10836 # How to hardcode a shared library path into an executable.
10837 hardcode_action=$hardcode_action
10838
10839 # Whether we should hardcode library paths into libraries.
10840 hardcode_into_libs=$hardcode_into_libs
10841
10842 # Flag to hardcode \$libdir into a binary during linking.
10843 # This must work even if \$libdir does not exist.
10844 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10845
10846 # If ld is used when linking, flag to hardcode \$libdir into
10847 # a binary during linking. This must work even if \$libdir does
10848 # not exist.
10849 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10850
10851 # Whether we need a single -rpath flag with a separated argument.
10852 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10853
10854 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10855 # resulting binary.
10856 hardcode_direct=$hardcode_direct
10857
10858 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10859 # resulting binary.
10860 hardcode_minus_L=$hardcode_minus_L
10861
10862 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10863 # the resulting binary.
10864 hardcode_shlibpath_var=$hardcode_shlibpath_var
10865
10866 # Set to yes if building a shared library automatically hardcodes DIR into the library
10867 # and all subsequent libraries and executables linked against it.
10868 hardcode_automatic=$hardcode_automatic
10869
10870 # Variables whose values should be saved in libtool wrapper scripts and
10871 # restored at relink time.
10872 variables_saved_for_relink="$variables_saved_for_relink"
10873
10874 # Whether libtool must link a program against all its dependency libraries.
10875 link_all_deplibs=$link_all_deplibs
10876
10877 # Compile-time system search path for libraries
10878 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10879
10880 # Run-time system search path for libraries
10881 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10882
10883 # Fix the shell variable \$srcfile for the compiler.
10884 fix_srcfile_path="$fix_srcfile_path"
10885
10886 # Set to yes if exported symbols are required.
10887 always_export_symbols=$always_export_symbols
10888
10889 # The commands to list exported symbols.
10890 export_symbols_cmds=$lt_export_symbols_cmds
10891
10892 # The commands to extract the exported symbol list from a shared archive.
10893 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10894
10895 # Symbols that should not be listed in the preloaded symbols.
10896 exclude_expsyms=$lt_exclude_expsyms
10897
10898 # Symbols that must always be exported.
10899 include_expsyms=$lt_include_expsyms
10900
10901 # ### END LIBTOOL CONFIG
10902
10903 __EOF__
10904
10905
10906 case $host_os in
10907 aix3*)
10908 cat <<\EOF >> "$cfgfile"
10909
10910 # AIX sometimes has problems with the GCC collect2 program. For some
10911 # reason, if we set the COLLECT_NAMES environment variable, the problems
10912 # vanish in a puff of smoke.
10913 if test "X${COLLECT_NAMES+set}" != Xset; then
10914 COLLECT_NAMES=
10915 export COLLECT_NAMES
10916 fi
10917 EOF
10918 ;;
10919 esac
10920
10921 # We use sed instead of cat because bash on DJGPP gets confused if
10922 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10923 # text mode, it properly converts lines to CR/LF. This bash problem
10924 # is reportedly fixed, but why not run on old versions too?
10925 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10926
10927 mv -f "$cfgfile" "$ofile" || \
10928 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10929 chmod +x "$ofile"
10930
10931 else
10932 # If there is no Makefile yet, we rely on a make rule to execute
10933 # `config.status --recheck' to rerun these tests and create the
10934 # libtool script then.
10935 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10936 if test -f "$ltmain_in"; then
10937 test -f Makefile && make "$ltmain"
10938 fi
10939 fi
10940
10941
10942 ac_ext=c
10943 ac_cpp='$CPP $CPPFLAGS'
10944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10947
10948 CC="$lt_save_CC"
10949
10950
10951 # Check whether --with-tags was given.
10952 if test "${with_tags+set}" = set; then
10953 withval=$with_tags; tagnames="$withval"
10954 fi
10955
10956
10957 if test -f "$ltmain" && test -n "$tagnames"; then
10958 if test ! -f "${ofile}"; then
10959 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10960 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10961 fi
10962
10963 if test -z "$LTCC"; then
10964 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10965 if test -z "$LTCC"; then
10966 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10967 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10968 else
10969 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10970 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10971 fi
10972 fi
10973 if test -z "$LTCFLAGS"; then
10974 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10975 fi
10976
10977 # Extract list of available tagged configurations in $ofile.
10978 # Note that this assumes the entire list is on one line.
10979 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10980
10981 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10982 for tagname in $tagnames; do
10983 IFS="$lt_save_ifs"
10984 # Check whether tagname contains only valid characters
10985 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10986 "") ;;
10987 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10988 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10989 { (exit 1); exit 1; }; }
10990 ;;
10991 esac
10992
10993 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10994 then
10995 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10996 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10997 { (exit 1); exit 1; }; }
10998 fi
10999
11000 # Update the list of available tags.
11001 if test -n "$tagname"; then
11002 echo appending configuration tag \"$tagname\" to $ofile
11003
11004 case $tagname in
11005 CXX)
11006 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11007 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11008 (test "X$CXX" != "Xg++"))) ; then
11009 ac_ext=cpp
11010 ac_cpp='$CXXCPP $CPPFLAGS'
11011 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11012 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11013 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11014
11015
11016
11017
11018 archive_cmds_need_lc_CXX=no
11019 allow_undefined_flag_CXX=
11020 always_export_symbols_CXX=no
11021 archive_expsym_cmds_CXX=
11022 export_dynamic_flag_spec_CXX=
11023 hardcode_direct_CXX=no
11024 hardcode_libdir_flag_spec_CXX=
11025 hardcode_libdir_flag_spec_ld_CXX=
11026 hardcode_libdir_separator_CXX=
11027 hardcode_minus_L_CXX=no
11028 hardcode_shlibpath_var_CXX=unsupported
11029 hardcode_automatic_CXX=no
11030 module_cmds_CXX=
11031 module_expsym_cmds_CXX=
11032 link_all_deplibs_CXX=unknown
11033 old_archive_cmds_CXX=$old_archive_cmds
11034 no_undefined_flag_CXX=
11035 whole_archive_flag_spec_CXX=
11036 enable_shared_with_static_runtimes_CXX=no
11037
11038 # Dependencies to place before and after the object being linked:
11039 predep_objects_CXX=
11040 postdep_objects_CXX=
11041 predeps_CXX=
11042 postdeps_CXX=
11043 compiler_lib_search_path_CXX=
11044
11045 # Source file extension for C++ test sources.
11046 ac_ext=cpp
11047
11048 # Object file extension for compiled C++ test sources.
11049 objext=o
11050 objext_CXX=$objext
11051
11052 # Code to be used in simple compile tests
11053 lt_simple_compile_test_code="int some_variable = 0;\n"
11054
11055 # Code to be used in simple link tests
11056 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11057
11058 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11059
11060 # If no C compiler was specified, use CC.
11061 LTCC=${LTCC-"$CC"}
11062
11063 # If no C compiler flags were specified, use CFLAGS.
11064 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11065
11066 # Allow CC to be a program name with arguments.
11067 compiler=$CC
11068
11069
11070 # save warnings/boilerplate of simple test code
11071 ac_outfile=conftest.$ac_objext
11072 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11073 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11074 _lt_compiler_boilerplate=`cat conftest.err`
11075 $rm conftest*
11076
11077 ac_outfile=conftest.$ac_objext
11078 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11079 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11080 _lt_linker_boilerplate=`cat conftest.err`
11081 $rm conftest*
11082
11083
11084 # Allow CC to be a program name with arguments.
11085 lt_save_CC=$CC
11086 lt_save_LD=$LD
11087 lt_save_GCC=$GCC
11088 GCC=$GXX
11089 lt_save_with_gnu_ld=$with_gnu_ld
11090 lt_save_path_LD=$lt_cv_path_LD
11091 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11092 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11093 else
11094 $as_unset lt_cv_prog_gnu_ld
11095 fi
11096 if test -n "${lt_cv_path_LDCXX+set}"; then
11097 lt_cv_path_LD=$lt_cv_path_LDCXX
11098 else
11099 $as_unset lt_cv_path_LD
11100 fi
11101 test -z "${LDCXX+set}" || LD=$LDCXX
11102 CC=${CXX-"c++"}
11103 compiler=$CC
11104 compiler_CXX=$CC
11105 for cc_temp in $compiler""; do
11106 case $cc_temp in
11107 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11108 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11109 \-*) ;;
11110 *) break;;
11111 esac
11112 done
11113 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11114
11115
11116 # We don't want -fno-exception wen compiling C++ code, so set the
11117 # no_builtin_flag separately
11118 if test "$GXX" = yes; then
11119 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11120 else
11121 lt_prog_compiler_no_builtin_flag_CXX=
11122 fi
11123
11124 if test "$GXX" = yes; then
11125 # Set up default GNU C++ configuration
11126
11127
11128 # Check whether --with-gnu-ld was given.
11129 if test "${with_gnu_ld+set}" = set; then
11130 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11131 else
11132 with_gnu_ld=no
11133 fi
11134
11135 ac_prog=ld
11136 if test "$GCC" = yes; then
11137 # Check if gcc -print-prog-name=ld gives a path.
11138 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11139 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11140 case $host in
11141 *-*-mingw*)
11142 # gcc leaves a trailing carriage return which upsets mingw
11143 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11144 *)
11145 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11146 esac
11147 case $ac_prog in
11148 # Accept absolute paths.
11149 [\\/]* | ?:[\\/]*)
11150 re_direlt='/[^/][^/]*/\.\./'
11151 # Canonicalize the pathname of ld
11152 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11153 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11154 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11155 done
11156 test -z "$LD" && LD="$ac_prog"
11157 ;;
11158 "")
11159 # If it fails, then pretend we aren't using GCC.
11160 ac_prog=ld
11161 ;;
11162 *)
11163 # If it is relative, then search for the first ld in PATH.
11164 with_gnu_ld=unknown
11165 ;;
11166 esac
11167 elif test "$with_gnu_ld" = yes; then
11168 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11169 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11170 else
11171 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11172 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11173 fi
11174 if test "${lt_cv_path_LD+set}" = set; then
11175 echo $ECHO_N "(cached) $ECHO_C" >&6
11176 else
11177 if test -z "$LD"; then
11178 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11179 for ac_dir in $PATH; do
11180 IFS="$lt_save_ifs"
11181 test -z "$ac_dir" && ac_dir=.
11182 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11183 lt_cv_path_LD="$ac_dir/$ac_prog"
11184 # Check to see if the program is GNU ld. I'd rather use --version,
11185 # but apparently some variants of GNU ld only accept -v.
11186 # Break only if it was the GNU/non-GNU ld that we prefer.
11187 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11188 *GNU* | *'with BFD'*)
11189 test "$with_gnu_ld" != no && break
11190 ;;
11191 *)
11192 test "$with_gnu_ld" != yes && break
11193 ;;
11194 esac
11195 fi
11196 done
11197 IFS="$lt_save_ifs"
11198 else
11199 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11200 fi
11201 fi
11202
11203 LD="$lt_cv_path_LD"
11204 if test -n "$LD"; then
11205 { echo "$as_me:$LINENO: result: $LD" >&5
11206 echo "${ECHO_T}$LD" >&6; }
11207 else
11208 { echo "$as_me:$LINENO: result: no" >&5
11209 echo "${ECHO_T}no" >&6; }
11210 fi
11211 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11212 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11213 { (exit 1); exit 1; }; }
11214 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11215 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11216 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11217 echo $ECHO_N "(cached) $ECHO_C" >&6
11218 else
11219 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11220 case `$LD -v 2>&1 </dev/null` in
11221 *GNU* | *'with BFD'*)
11222 lt_cv_prog_gnu_ld=yes
11223 ;;
11224 *)
11225 lt_cv_prog_gnu_ld=no
11226 ;;
11227 esac
11228 fi
11229 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11230 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11231 with_gnu_ld=$lt_cv_prog_gnu_ld
11232
11233
11234
11235 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11236 # archiving commands below assume that GNU ld is being used.
11237 if test "$with_gnu_ld" = yes; then
11238 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11239 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'
11240
11241 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11242 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11243
11244 # If archive_cmds runs LD, not CC, wlarc should be empty
11245 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11246 # investigate it a little bit more. (MM)
11247 wlarc='${wl}'
11248
11249 # ancient GNU ld didn't support --whole-archive et. al.
11250 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11251 grep 'no-whole-archive' > /dev/null; then
11252 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11253 else
11254 whole_archive_flag_spec_CXX=
11255 fi
11256 else
11257 with_gnu_ld=no
11258 wlarc=
11259
11260 # A generic and very simple default shared library creation
11261 # command for GNU C++ for the case where it uses the native
11262 # linker, instead of GNU ld. If possible, this setting should
11263 # overridden to take advantage of the native linker features on
11264 # the platform it is being used on.
11265 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11266 fi
11267
11268 # Commands to make compiler produce verbose output that lists
11269 # what "hidden" libraries, object files and flags are used when
11270 # linking a shared library.
11271 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11272
11273 else
11274 GXX=no
11275 with_gnu_ld=no
11276 wlarc=
11277 fi
11278
11279 # PORTME: fill in a description of your system's C++ link characteristics
11280 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11281 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11282 ld_shlibs_CXX=yes
11283 case $host_os in
11284 aix3*)
11285 # FIXME: insert proper C++ library support
11286 ld_shlibs_CXX=no
11287 ;;
11288 aix4* | aix5*)
11289 if test "$host_cpu" = ia64; then
11290 # On IA64, the linker does run time linking by default, so we don't
11291 # have to do anything special.
11292 aix_use_runtimelinking=no
11293 exp_sym_flag='-Bexport'
11294 no_entry_flag=""
11295 else
11296 aix_use_runtimelinking=no
11297
11298 # Test if we are trying to use run time linking or normal
11299 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11300 # need to do runtime linking.
11301 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11302 for ld_flag in $LDFLAGS; do
11303 case $ld_flag in
11304 *-brtl*)
11305 aix_use_runtimelinking=yes
11306 break
11307 ;;
11308 esac
11309 done
11310 ;;
11311 esac
11312
11313 exp_sym_flag='-bexport'
11314 no_entry_flag='-bnoentry'
11315 fi
11316
11317 # When large executables or shared objects are built, AIX ld can
11318 # have problems creating the table of contents. If linking a library
11319 # or program results in "error TOC overflow" add -mminimal-toc to
11320 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11321 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11322
11323 archive_cmds_CXX=''
11324 hardcode_direct_CXX=yes
11325 hardcode_libdir_separator_CXX=':'
11326 link_all_deplibs_CXX=yes
11327
11328 if test "$GXX" = yes; then
11329 case $host_os in aix4.[012]|aix4.[012].*)
11330 # We only want to do this on AIX 4.2 and lower, the check
11331 # below for broken collect2 doesn't work under 4.3+
11332 collect2name=`${CC} -print-prog-name=collect2`
11333 if test -f "$collect2name" && \
11334 strings "$collect2name" | grep resolve_lib_name >/dev/null
11335 then
11336 # We have reworked collect2
11337 hardcode_direct_CXX=yes
11338 else
11339 # We have old collect2
11340 hardcode_direct_CXX=unsupported
11341 # It fails to find uninstalled libraries when the uninstalled
11342 # path is not listed in the libpath. Setting hardcode_minus_L
11343 # to unsupported forces relinking
11344 hardcode_minus_L_CXX=yes
11345 hardcode_libdir_flag_spec_CXX='-L$libdir'
11346 hardcode_libdir_separator_CXX=
11347 fi
11348 ;;
11349 esac
11350 shared_flag='-shared'
11351 if test "$aix_use_runtimelinking" = yes; then
11352 shared_flag="$shared_flag "'${wl}-G'
11353 fi
11354 else
11355 # not using gcc
11356 if test "$host_cpu" = ia64; then
11357 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11358 # chokes on -Wl,-G. The following line is correct:
11359 shared_flag='-G'
11360 else
11361 if test "$aix_use_runtimelinking" = yes; then
11362 shared_flag='${wl}-G'
11363 else
11364 shared_flag='${wl}-bM:SRE'
11365 fi
11366 fi
11367 fi
11368
11369 # It seems that -bexpall does not export symbols beginning with
11370 # underscore (_), so it is better to generate a list of symbols to export.
11371 always_export_symbols_CXX=yes
11372 if test "$aix_use_runtimelinking" = yes; then
11373 # Warning - without using the other runtime loading flags (-brtl),
11374 # -berok will link without error, but may produce a broken library.
11375 allow_undefined_flag_CXX='-berok'
11376 # Determine the default libpath from the value encoded in an empty executable.
11377 cat >conftest.$ac_ext <<_ACEOF
11378 /* confdefs.h. */
11379 _ACEOF
11380 cat confdefs.h >>conftest.$ac_ext
11381 cat >>conftest.$ac_ext <<_ACEOF
11382 /* end confdefs.h. */
11383
11384 int
11385 main ()
11386 {
11387
11388 ;
11389 return 0;
11390 }
11391 _ACEOF
11392 rm -f conftest.$ac_objext conftest$ac_exeext
11393 if { (ac_try="$ac_link"
11394 case "(($ac_try" in
11395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11396 *) ac_try_echo=$ac_try;;
11397 esac
11398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11399 (eval "$ac_link") 2>conftest.er1
11400 ac_status=$?
11401 grep -v '^ *+' conftest.er1 >conftest.err
11402 rm -f conftest.er1
11403 cat conftest.err >&5
11404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11405 (exit $ac_status); } &&
11406 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11407 { (case "(($ac_try" in
11408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11409 *) ac_try_echo=$ac_try;;
11410 esac
11411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11412 (eval "$ac_try") 2>&5
11413 ac_status=$?
11414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415 (exit $ac_status); }; } &&
11416 { ac_try='test -s conftest$ac_exeext'
11417 { (case "(($ac_try" in
11418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11419 *) ac_try_echo=$ac_try;;
11420 esac
11421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11422 (eval "$ac_try") 2>&5
11423 ac_status=$?
11424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11425 (exit $ac_status); }; }; then
11426
11427 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11428 }'`
11429 # Check for a 64-bit object if we didn't find anything.
11430 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; }
11431 }'`; fi
11432 else
11433 echo "$as_me: failed program was:" >&5
11434 sed 's/^/| /' conftest.$ac_ext >&5
11435
11436
11437 fi
11438
11439 rm -f core conftest.err conftest.$ac_objext \
11440 conftest$ac_exeext conftest.$ac_ext
11441 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11442
11443 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11444
11445 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"
11446 else
11447 if test "$host_cpu" = ia64; then
11448 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11449 allow_undefined_flag_CXX="-z nodefs"
11450 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"
11451 else
11452 # Determine the default libpath from the value encoded in an empty executable.
11453 cat >conftest.$ac_ext <<_ACEOF
11454 /* confdefs.h. */
11455 _ACEOF
11456 cat confdefs.h >>conftest.$ac_ext
11457 cat >>conftest.$ac_ext <<_ACEOF
11458 /* end confdefs.h. */
11459
11460 int
11461 main ()
11462 {
11463
11464 ;
11465 return 0;
11466 }
11467 _ACEOF
11468 rm -f conftest.$ac_objext conftest$ac_exeext
11469 if { (ac_try="$ac_link"
11470 case "(($ac_try" in
11471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11472 *) ac_try_echo=$ac_try;;
11473 esac
11474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11475 (eval "$ac_link") 2>conftest.er1
11476 ac_status=$?
11477 grep -v '^ *+' conftest.er1 >conftest.err
11478 rm -f conftest.er1
11479 cat conftest.err >&5
11480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11481 (exit $ac_status); } &&
11482 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11483 { (case "(($ac_try" in
11484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11485 *) ac_try_echo=$ac_try;;
11486 esac
11487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11488 (eval "$ac_try") 2>&5
11489 ac_status=$?
11490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11491 (exit $ac_status); }; } &&
11492 { ac_try='test -s conftest$ac_exeext'
11493 { (case "(($ac_try" in
11494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11495 *) ac_try_echo=$ac_try;;
11496 esac
11497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11498 (eval "$ac_try") 2>&5
11499 ac_status=$?
11500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11501 (exit $ac_status); }; }; then
11502
11503 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11504 }'`
11505 # Check for a 64-bit object if we didn't find anything.
11506 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; }
11507 }'`; fi
11508 else
11509 echo "$as_me: failed program was:" >&5
11510 sed 's/^/| /' conftest.$ac_ext >&5
11511
11512
11513 fi
11514
11515 rm -f core conftest.err conftest.$ac_objext \
11516 conftest$ac_exeext conftest.$ac_ext
11517 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11518
11519 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11520 # Warning - without using the other run time loading flags,
11521 # -berok will link without error, but may produce a broken library.
11522 no_undefined_flag_CXX=' ${wl}-bernotok'
11523 allow_undefined_flag_CXX=' ${wl}-berok'
11524 # Exported symbols can be pulled into shared objects from archives
11525 whole_archive_flag_spec_CXX='$convenience'
11526 archive_cmds_need_lc_CXX=yes
11527 # This is similar to how AIX traditionally builds its shared libraries.
11528 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'
11529 fi
11530 fi
11531 ;;
11532
11533 beos*)
11534 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11535 allow_undefined_flag_CXX=unsupported
11536 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
11537 # support --undefined. This deserves some investigation. FIXME
11538 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11539 else
11540 ld_shlibs_CXX=no
11541 fi
11542 ;;
11543
11544 chorus*)
11545 case $cc_basename in
11546 *)
11547 # FIXME: insert proper C++ library support
11548 ld_shlibs_CXX=no
11549 ;;
11550 esac
11551 ;;
11552
11553 cygwin* | mingw* | pw32*)
11554 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11555 # as there is no search path for DLLs.
11556 hardcode_libdir_flag_spec_CXX='-L$libdir'
11557 allow_undefined_flag_CXX=unsupported
11558 always_export_symbols_CXX=no
11559 enable_shared_with_static_runtimes_CXX=yes
11560
11561 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11562 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'
11563 # If the export-symbols file already is a .def file (1st line
11564 # is EXPORTS), use it as is; otherwise, prepend...
11565 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11566 cp $export_symbols $output_objdir/$soname.def;
11567 else
11568 echo EXPORTS > $output_objdir/$soname.def;
11569 cat $export_symbols >> $output_objdir/$soname.def;
11570 fi~
11571 $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'
11572 else
11573 ld_shlibs_CXX=no
11574 fi
11575 ;;
11576 darwin* | rhapsody*)
11577 case $host_os in
11578 rhapsody* | darwin1.[012])
11579 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11580 ;;
11581 *) # Darwin 1.3 on
11582 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11583 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11584 else
11585 case ${MACOSX_DEPLOYMENT_TARGET} in
11586 10.[012])
11587 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11588 ;;
11589 10.*)
11590 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11591 ;;
11592 esac
11593 fi
11594 ;;
11595 esac
11596 archive_cmds_need_lc_CXX=no
11597 hardcode_direct_CXX=no
11598 hardcode_automatic_CXX=yes
11599 hardcode_shlibpath_var_CXX=unsupported
11600 whole_archive_flag_spec_CXX=''
11601 link_all_deplibs_CXX=yes
11602
11603 if test "$GXX" = yes ; then
11604 lt_int_apple_cc_single_mod=no
11605 output_verbose_link_cmd='echo'
11606 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11607 lt_int_apple_cc_single_mod=yes
11608 fi
11609 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11610 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11611 else
11612 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'
11613 fi
11614 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11615 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11616 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11617 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}'
11618 else
11619 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}'
11620 fi
11621 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}'
11622 else
11623 case $cc_basename in
11624 xlc*)
11625 output_verbose_link_cmd='echo'
11626 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'
11627 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11628 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11629 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}'
11630 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}'
11631 ;;
11632 *)
11633 ld_shlibs_CXX=no
11634 ;;
11635 esac
11636 fi
11637 ;;
11638
11639 dgux*)
11640 case $cc_basename in
11641 ec++*)
11642 # FIXME: insert proper C++ library support
11643 ld_shlibs_CXX=no
11644 ;;
11645 ghcx*)
11646 # Green Hills C++ Compiler
11647 # FIXME: insert proper C++ library support
11648 ld_shlibs_CXX=no
11649 ;;
11650 *)
11651 # FIXME: insert proper C++ library support
11652 ld_shlibs_CXX=no
11653 ;;
11654 esac
11655 ;;
11656 freebsd[12]*)
11657 # C++ shared libraries reported to be fairly broken before switch to ELF
11658 ld_shlibs_CXX=no
11659 ;;
11660 freebsd-elf*)
11661 archive_cmds_need_lc_CXX=no
11662 ;;
11663 freebsd* | dragonfly*)
11664 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11665 # conventions
11666 ld_shlibs_CXX=yes
11667 ;;
11668 gnu*)
11669 ;;
11670 hpux9*)
11671 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11672 hardcode_libdir_separator_CXX=:
11673 export_dynamic_flag_spec_CXX='${wl}-E'
11674 hardcode_direct_CXX=yes
11675 hardcode_minus_L_CXX=yes # Not in the search PATH,
11676 # but as the default
11677 # location of the library.
11678
11679 case $cc_basename in
11680 CC*)
11681 # FIXME: insert proper C++ library support
11682 ld_shlibs_CXX=no
11683 ;;
11684 aCC*)
11685 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'
11686 # Commands to make compiler produce verbose output that lists
11687 # what "hidden" libraries, object files and flags are used when
11688 # linking a shared library.
11689 #
11690 # There doesn't appear to be a way to prevent this compiler from
11691 # explicitly linking system object files so we need to strip them
11692 # from the output so that they don't get included in the library
11693 # dependencies.
11694 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'
11695 ;;
11696 *)
11697 if test "$GXX" = yes; then
11698 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'
11699 else
11700 # FIXME: insert proper C++ library support
11701 ld_shlibs_CXX=no
11702 fi
11703 ;;
11704 esac
11705 ;;
11706 hpux10*|hpux11*)
11707 if test $with_gnu_ld = no; then
11708 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11709 hardcode_libdir_separator_CXX=:
11710
11711 case $host_cpu in
11712 hppa*64*|ia64*)
11713 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11714 ;;
11715 *)
11716 export_dynamic_flag_spec_CXX='${wl}-E'
11717 ;;
11718 esac
11719 fi
11720 case $host_cpu in
11721 hppa*64*|ia64*)
11722 hardcode_direct_CXX=no
11723 hardcode_shlibpath_var_CXX=no
11724 ;;
11725 *)
11726 hardcode_direct_CXX=yes
11727 hardcode_minus_L_CXX=yes # Not in the search PATH,
11728 # but as the default
11729 # location of the library.
11730 ;;
11731 esac
11732
11733 case $cc_basename in
11734 CC*)
11735 # FIXME: insert proper C++ library support
11736 ld_shlibs_CXX=no
11737 ;;
11738 aCC*)
11739 case $host_cpu in
11740 hppa*64*)
11741 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11742 ;;
11743 ia64*)
11744 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11745 ;;
11746 *)
11747 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11748 ;;
11749 esac
11750 # Commands to make compiler produce verbose output that lists
11751 # what "hidden" libraries, object files and flags are used when
11752 # linking a shared library.
11753 #
11754 # There doesn't appear to be a way to prevent this compiler from
11755 # explicitly linking system object files so we need to strip them
11756 # from the output so that they don't get included in the library
11757 # dependencies.
11758 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'
11759 ;;
11760 *)
11761 if test "$GXX" = yes; then
11762 if test $with_gnu_ld = no; then
11763 case $host_cpu in
11764 hppa*64*)
11765 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11766 ;;
11767 ia64*)
11768 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11769 ;;
11770 *)
11771 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'
11772 ;;
11773 esac
11774 fi
11775 else
11776 # FIXME: insert proper C++ library support
11777 ld_shlibs_CXX=no
11778 fi
11779 ;;
11780 esac
11781 ;;
11782 interix3*)
11783 hardcode_direct_CXX=no
11784 hardcode_shlibpath_var_CXX=no
11785 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11786 export_dynamic_flag_spec_CXX='${wl}-E'
11787 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11788 # Instead, shared libraries are loaded at an image base (0x10000000 by
11789 # default) and relocated if they conflict, which is a slow very memory
11790 # consuming and fragmenting process. To avoid this, we pick a random,
11791 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11792 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11793 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'
11794 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'
11795 ;;
11796 irix5* | irix6*)
11797 case $cc_basename in
11798 CC*)
11799 # SGI C++
11800 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'
11801
11802 # Archives containing C++ object files must be created using
11803 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11804 # necessary to make sure instantiated templates are included
11805 # in the archive.
11806 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11807 ;;
11808 *)
11809 if test "$GXX" = yes; then
11810 if test "$with_gnu_ld" = no; then
11811 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'
11812 else
11813 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'
11814 fi
11815 fi
11816 link_all_deplibs_CXX=yes
11817 ;;
11818 esac
11819 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11820 hardcode_libdir_separator_CXX=:
11821 ;;
11822 linux* | k*bsd*-gnu)
11823 case $cc_basename in
11824 KCC*)
11825 # Kuck and Associates, Inc. (KAI) C++ Compiler
11826
11827 # KCC will only create a shared library if the output file
11828 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11829 # to its proper name (with version) after linking.
11830 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'
11831 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'
11832 # Commands to make compiler produce verbose output that lists
11833 # what "hidden" libraries, object files and flags are used when
11834 # linking a shared library.
11835 #
11836 # There doesn't appear to be a way to prevent this compiler from
11837 # explicitly linking system object files so we need to strip them
11838 # from the output so that they don't get included in the library
11839 # dependencies.
11840 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'
11841
11842 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11843 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11844
11845 # Archives containing C++ object files must be created using
11846 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11847 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11848 ;;
11849 icpc*)
11850 # Intel C++
11851 with_gnu_ld=yes
11852 # version 8.0 and above of icpc choke on multiply defined symbols
11853 # if we add $predep_objects and $postdep_objects, however 7.1 and
11854 # earlier do not add the objects themselves.
11855 case `$CC -V 2>&1` in
11856 *"Version 7."*)
11857 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11858 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'
11859 ;;
11860 *) # Version 8.0 or newer
11861 tmp_idyn=
11862 case $host_cpu in
11863 ia64*) tmp_idyn=' -i_dynamic';;
11864 esac
11865 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11866 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'
11867 ;;
11868 esac
11869 archive_cmds_need_lc_CXX=no
11870 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11871 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11872 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11873 ;;
11874 pgCC*)
11875 # Portland Group C++ compiler
11876 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11877 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'
11878
11879 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11880 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11881 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'
11882 ;;
11883 cxx*)
11884 # Compaq C++
11885 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11886 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'
11887
11888 runpath_var=LD_RUN_PATH
11889 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11890 hardcode_libdir_separator_CXX=:
11891
11892 # Commands to make compiler produce verbose output that lists
11893 # what "hidden" libraries, object files and flags are used when
11894 # linking a shared library.
11895 #
11896 # There doesn't appear to be a way to prevent this compiler from
11897 # explicitly linking system object files so we need to strip them
11898 # from the output so that they don't get included in the library
11899 # dependencies.
11900 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'
11901 ;;
11902 esac
11903 ;;
11904 lynxos*)
11905 # FIXME: insert proper C++ library support
11906 ld_shlibs_CXX=no
11907 ;;
11908 m88k*)
11909 # FIXME: insert proper C++ library support
11910 ld_shlibs_CXX=no
11911 ;;
11912 mvs*)
11913 case $cc_basename in
11914 cxx*)
11915 # FIXME: insert proper C++ library support
11916 ld_shlibs_CXX=no
11917 ;;
11918 *)
11919 # FIXME: insert proper C++ library support
11920 ld_shlibs_CXX=no
11921 ;;
11922 esac
11923 ;;
11924 netbsd* | netbsdelf*-gnu)
11925 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11926 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11927 wlarc=
11928 hardcode_libdir_flag_spec_CXX='-R$libdir'
11929 hardcode_direct_CXX=yes
11930 hardcode_shlibpath_var_CXX=no
11931 fi
11932 # Workaround some broken pre-1.5 toolchains
11933 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11934 ;;
11935 openbsd2*)
11936 # C++ shared libraries are fairly broken
11937 ld_shlibs_CXX=no
11938 ;;
11939 openbsd*)
11940 hardcode_direct_CXX=yes
11941 hardcode_shlibpath_var_CXX=no
11942 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11943 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11944 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11945 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11946 export_dynamic_flag_spec_CXX='${wl}-E'
11947 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11948 fi
11949 output_verbose_link_cmd='echo'
11950 ;;
11951 osf3*)
11952 case $cc_basename in
11953 KCC*)
11954 # Kuck and Associates, Inc. (KAI) C++ Compiler
11955
11956 # KCC will only create a shared library if the output file
11957 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11958 # to its proper name (with version) after linking.
11959 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'
11960
11961 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11962 hardcode_libdir_separator_CXX=:
11963
11964 # Archives containing C++ object files must be created using
11965 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11966 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11967
11968 ;;
11969 RCC*)
11970 # Rational C++ 2.4.1
11971 # FIXME: insert proper C++ library support
11972 ld_shlibs_CXX=no
11973 ;;
11974 cxx*)
11975 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11976 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'
11977
11978 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11979 hardcode_libdir_separator_CXX=:
11980
11981 # Commands to make compiler produce verbose output that lists
11982 # what "hidden" libraries, object files and flags are used when
11983 # linking a shared library.
11984 #
11985 # There doesn't appear to be a way to prevent this compiler from
11986 # explicitly linking system object files so we need to strip them
11987 # from the output so that they don't get included in the library
11988 # dependencies.
11989 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'
11990 ;;
11991 *)
11992 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11993 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11994 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'
11995
11996 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11997 hardcode_libdir_separator_CXX=:
11998
11999 # Commands to make compiler produce verbose output that lists
12000 # what "hidden" libraries, object files and flags are used when
12001 # linking a shared library.
12002 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12003
12004 else
12005 # FIXME: insert proper C++ library support
12006 ld_shlibs_CXX=no
12007 fi
12008 ;;
12009 esac
12010 ;;
12011 osf4* | osf5*)
12012 case $cc_basename in
12013 KCC*)
12014 # Kuck and Associates, Inc. (KAI) C++ Compiler
12015
12016 # KCC will only create a shared library if the output file
12017 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12018 # to its proper name (with version) after linking.
12019 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'
12020
12021 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12022 hardcode_libdir_separator_CXX=:
12023
12024 # Archives containing C++ object files must be created using
12025 # the KAI C++ compiler.
12026 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12027 ;;
12028 RCC*)
12029 # Rational C++ 2.4.1
12030 # FIXME: insert proper C++ library support
12031 ld_shlibs_CXX=no
12032 ;;
12033 cxx*)
12034 allow_undefined_flag_CXX=' -expect_unresolved \*'
12035 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'
12036 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12037 echo "-hidden">> $lib.exp~
12038 $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~
12039 $rm $lib.exp'
12040
12041 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12042 hardcode_libdir_separator_CXX=:
12043
12044 # Commands to make compiler produce verbose output that lists
12045 # what "hidden" libraries, object files and flags are used when
12046 # linking a shared library.
12047 #
12048 # There doesn't appear to be a way to prevent this compiler from
12049 # explicitly linking system object files so we need to strip them
12050 # from the output so that they don't get included in the library
12051 # dependencies.
12052 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'
12053 ;;
12054 *)
12055 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12056 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12057 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'
12058
12059 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12060 hardcode_libdir_separator_CXX=:
12061
12062 # Commands to make compiler produce verbose output that lists
12063 # what "hidden" libraries, object files and flags are used when
12064 # linking a shared library.
12065 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12066
12067 else
12068 # FIXME: insert proper C++ library support
12069 ld_shlibs_CXX=no
12070 fi
12071 ;;
12072 esac
12073 ;;
12074 psos*)
12075 # FIXME: insert proper C++ library support
12076 ld_shlibs_CXX=no
12077 ;;
12078 sunos4*)
12079 case $cc_basename in
12080 CC*)
12081 # Sun C++ 4.x
12082 # FIXME: insert proper C++ library support
12083 ld_shlibs_CXX=no
12084 ;;
12085 lcc*)
12086 # Lucid
12087 # FIXME: insert proper C++ library support
12088 ld_shlibs_CXX=no
12089 ;;
12090 *)
12091 # FIXME: insert proper C++ library support
12092 ld_shlibs_CXX=no
12093 ;;
12094 esac
12095 ;;
12096 solaris*)
12097 case $cc_basename in
12098 CC*)
12099 # Sun C++ 4.2, 5.x and Centerline C++
12100 archive_cmds_need_lc_CXX=yes
12101 no_undefined_flag_CXX=' -zdefs'
12102 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12103 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12104 $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'
12105
12106 hardcode_libdir_flag_spec_CXX='-R$libdir'
12107 hardcode_shlibpath_var_CXX=no
12108 case $host_os in
12109 solaris2.[0-5] | solaris2.[0-5].*) ;;
12110 *)
12111 # The C++ compiler is used as linker so we must use $wl
12112 # flag to pass the commands to the underlying system
12113 # linker. We must also pass each convience library through
12114 # to the system linker between allextract/defaultextract.
12115 # The C++ compiler will combine linker options so we
12116 # cannot just pass the convience library names through
12117 # without $wl.
12118 # Supported since Solaris 2.6 (maybe 2.5.1?)
12119 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'
12120 ;;
12121 esac
12122 link_all_deplibs_CXX=yes
12123
12124 output_verbose_link_cmd='echo'
12125
12126 # Archives containing C++ object files must be created using
12127 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12128 # necessary to make sure instantiated templates are included
12129 # in the archive.
12130 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12131 ;;
12132 gcx*)
12133 # Green Hills C++ Compiler
12134 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12135
12136 # The C++ compiler must be used to create the archive.
12137 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12138 ;;
12139 *)
12140 # GNU C++ compiler with Solaris linker
12141 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12142 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12143 if $CC --version | grep -v '^2\.7' > /dev/null; then
12144 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12145 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12146 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12147
12148 # Commands to make compiler produce verbose output that lists
12149 # what "hidden" libraries, object files and flags are used when
12150 # linking a shared library.
12151 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12152 else
12153 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12154 # platform.
12155 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12156 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12157 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12158
12159 # Commands to make compiler produce verbose output that lists
12160 # what "hidden" libraries, object files and flags are used when
12161 # linking a shared library.
12162 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12163 fi
12164
12165 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12166 fi
12167 ;;
12168 esac
12169 ;;
12170 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12171 no_undefined_flag_CXX='${wl}-z,text'
12172 archive_cmds_need_lc_CXX=no
12173 hardcode_shlibpath_var_CXX=no
12174 runpath_var='LD_RUN_PATH'
12175
12176 case $cc_basename in
12177 CC*)
12178 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12179 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12180 ;;
12181 *)
12182 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12183 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12184 ;;
12185 esac
12186 ;;
12187 sysv5* | sco3.2v5* | sco5v6*)
12188 # Note: We can NOT use -z defs as we might desire, because we do not
12189 # link with -lc, and that would cause any symbols used from libc to
12190 # always be unresolved, which means just about no library would
12191 # ever link correctly. If we're not using GNU ld we use -z text
12192 # though, which does catch some bad symbols but isn't as heavy-handed
12193 # as -z defs.
12194 # For security reasons, it is highly recommended that you always
12195 # use absolute paths for naming shared libraries, and exclude the
12196 # DT_RUNPATH tag from executables and libraries. But doing so
12197 # requires that you compile everything twice, which is a pain.
12198 # So that behaviour is only enabled if SCOABSPATH is set to a
12199 # non-empty value in the environment. Most likely only useful for
12200 # creating official distributions of packages.
12201 # This is a hack until libtool officially supports absolute path
12202 # names for shared libraries.
12203 no_undefined_flag_CXX='${wl}-z,text'
12204 allow_undefined_flag_CXX='${wl}-z,nodefs'
12205 archive_cmds_need_lc_CXX=no
12206 hardcode_shlibpath_var_CXX=no
12207 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12208 hardcode_libdir_separator_CXX=':'
12209 link_all_deplibs_CXX=yes
12210 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12211 runpath_var='LD_RUN_PATH'
12212
12213 case $cc_basename in
12214 CC*)
12215 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12216 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12217 ;;
12218 *)
12219 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12220 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12221 ;;
12222 esac
12223 ;;
12224 tandem*)
12225 case $cc_basename in
12226 NCC*)
12227 # NonStop-UX NCC 3.20
12228 # FIXME: insert proper C++ library support
12229 ld_shlibs_CXX=no
12230 ;;
12231 *)
12232 # FIXME: insert proper C++ library support
12233 ld_shlibs_CXX=no
12234 ;;
12235 esac
12236 ;;
12237 vxworks*)
12238 # FIXME: insert proper C++ library support
12239 ld_shlibs_CXX=no
12240 ;;
12241 *)
12242 # FIXME: insert proper C++ library support
12243 ld_shlibs_CXX=no
12244 ;;
12245 esac
12246 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12247 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12248 test "$ld_shlibs_CXX" = no && can_build_shared=no
12249
12250 GCC_CXX="$GXX"
12251 LD_CXX="$LD"
12252
12253
12254 cat > conftest.$ac_ext <<EOF
12255 class Foo
12256 {
12257 public:
12258 Foo (void) { a = 0; }
12259 private:
12260 int a;
12261 };
12262 EOF
12263
12264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12265 (eval $ac_compile) 2>&5
12266 ac_status=$?
12267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268 (exit $ac_status); }; then
12269 # Parse the compiler output and extract the necessary
12270 # objects, libraries and library flags.
12271
12272 # Sentinel used to keep track of whether or not we are before
12273 # the conftest object file.
12274 pre_test_object_deps_done=no
12275
12276 # The `*' in the case matches for architectures that use `case' in
12277 # $output_verbose_cmd can trigger glob expansion during the loop
12278 # eval without this substitution.
12279 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12280
12281 for p in `eval $output_verbose_link_cmd`; do
12282 case $p in
12283
12284 -L* | -R* | -l*)
12285 # Some compilers place space between "-{L,R}" and the path.
12286 # Remove the space.
12287 if test $p = "-L" \
12288 || test $p = "-R"; then
12289 prev=$p
12290 continue
12291 else
12292 prev=
12293 fi
12294
12295 if test "$pre_test_object_deps_done" = no; then
12296 case $p in
12297 -L* | -R*)
12298 # Internal compiler library paths should come after those
12299 # provided the user. The postdeps already come after the
12300 # user supplied libs so there is no need to process them.
12301 if test -z "$compiler_lib_search_path_CXX"; then
12302 compiler_lib_search_path_CXX="${prev}${p}"
12303 else
12304 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12305 fi
12306 ;;
12307 # The "-l" case would never come before the object being
12308 # linked, so don't bother handling this case.
12309 esac
12310 else
12311 if test -z "$postdeps_CXX"; then
12312 postdeps_CXX="${prev}${p}"
12313 else
12314 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12315 fi
12316 fi
12317 ;;
12318
12319 *.$objext)
12320 # This assumes that the test object file only shows up
12321 # once in the compiler output.
12322 if test "$p" = "conftest.$objext"; then
12323 pre_test_object_deps_done=yes
12324 continue
12325 fi
12326
12327 if test "$pre_test_object_deps_done" = no; then
12328 if test -z "$predep_objects_CXX"; then
12329 predep_objects_CXX="$p"
12330 else
12331 predep_objects_CXX="$predep_objects_CXX $p"
12332 fi
12333 else
12334 if test -z "$postdep_objects_CXX"; then
12335 postdep_objects_CXX="$p"
12336 else
12337 postdep_objects_CXX="$postdep_objects_CXX $p"
12338 fi
12339 fi
12340 ;;
12341
12342 *) ;; # Ignore the rest.
12343
12344 esac
12345 done
12346
12347 # Clean up.
12348 rm -f a.out a.exe
12349 else
12350 echo "libtool.m4: error: problem compiling CXX test program"
12351 fi
12352
12353 $rm -f confest.$objext
12354
12355 # PORTME: override above test on systems where it is broken
12356 case $host_os in
12357 interix3*)
12358 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12359 # hack all around it, let's just trust "g++" to DTRT.
12360 predep_objects_CXX=
12361 postdep_objects_CXX=
12362 postdeps_CXX=
12363 ;;
12364
12365 solaris*)
12366 case $cc_basename in
12367 CC*)
12368 # Adding this requires a known-good setup of shared libraries for
12369 # Sun compiler versions before 5.6, else PIC objects from an old
12370 # archive will be linked into the output, leading to subtle bugs.
12371 postdeps_CXX='-lCstd -lCrun'
12372 ;;
12373 esac
12374 ;;
12375 esac
12376
12377
12378 case " $postdeps_CXX " in
12379 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12380 esac
12381
12382 lt_prog_compiler_wl_CXX=
12383 lt_prog_compiler_pic_CXX=
12384 lt_prog_compiler_static_CXX=
12385
12386 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12387 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12388
12389 # C++ specific cases for pic, static, wl, etc.
12390 if test "$GXX" = yes; then
12391 lt_prog_compiler_wl_CXX='-Wl,'
12392 lt_prog_compiler_static_CXX='-static'
12393
12394 case $host_os in
12395 aix*)
12396 # All AIX code is PIC.
12397 if test "$host_cpu" = ia64; then
12398 # AIX 5 now supports IA64 processor
12399 lt_prog_compiler_static_CXX='-Bstatic'
12400 fi
12401 ;;
12402 amigaos*)
12403 # FIXME: we need at least 68020 code to build shared libraries, but
12404 # adding the `-m68020' flag to GCC prevents building anything better,
12405 # like `-m68040'.
12406 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12407 ;;
12408 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12409 # PIC is the default for these OSes.
12410 ;;
12411 mingw* | os2* | pw32*)
12412 # This hack is so that the source file can tell whether it is being
12413 # built for inclusion in a dll (and should export symbols for example).
12414 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12415 ;;
12416 darwin* | rhapsody*)
12417 # PIC is the default on this platform
12418 # Common symbols not allowed in MH_DYLIB files
12419 lt_prog_compiler_pic_CXX='-fno-common'
12420 ;;
12421 *djgpp*)
12422 # DJGPP does not support shared libraries at all
12423 lt_prog_compiler_pic_CXX=
12424 ;;
12425 interix3*)
12426 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12427 # Instead, we relocate shared libraries at runtime.
12428 ;;
12429 sysv4*MP*)
12430 if test -d /usr/nec; then
12431 lt_prog_compiler_pic_CXX=-Kconform_pic
12432 fi
12433 ;;
12434 hpux*)
12435 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12436 # not for PA HP-UX.
12437 case $host_cpu in
12438 hppa*64*|ia64*)
12439 ;;
12440 *)
12441 lt_prog_compiler_pic_CXX='-fPIC'
12442 ;;
12443 esac
12444 ;;
12445 *)
12446 lt_prog_compiler_pic_CXX='-fPIC'
12447 ;;
12448 esac
12449 else
12450 case $host_os in
12451 aix4* | aix5*)
12452 # All AIX code is PIC.
12453 if test "$host_cpu" = ia64; then
12454 # AIX 5 now supports IA64 processor
12455 lt_prog_compiler_static_CXX='-Bstatic'
12456 else
12457 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12458 fi
12459 ;;
12460 chorus*)
12461 case $cc_basename in
12462 cxch68*)
12463 # Green Hills C++ Compiler
12464 # _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"
12465 ;;
12466 esac
12467 ;;
12468 darwin*)
12469 # PIC is the default on this platform
12470 # Common symbols not allowed in MH_DYLIB files
12471 case $cc_basename in
12472 xlc*)
12473 lt_prog_compiler_pic_CXX='-qnocommon'
12474 lt_prog_compiler_wl_CXX='-Wl,'
12475 ;;
12476 esac
12477 ;;
12478 dgux*)
12479 case $cc_basename in
12480 ec++*)
12481 lt_prog_compiler_pic_CXX='-KPIC'
12482 ;;
12483 ghcx*)
12484 # Green Hills C++ Compiler
12485 lt_prog_compiler_pic_CXX='-pic'
12486 ;;
12487 *)
12488 ;;
12489 esac
12490 ;;
12491 freebsd* | dragonfly*)
12492 # FreeBSD uses GNU C++
12493 ;;
12494 hpux9* | hpux10* | hpux11*)
12495 case $cc_basename in
12496 CC*)
12497 lt_prog_compiler_wl_CXX='-Wl,'
12498 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12499 if test "$host_cpu" != ia64; then
12500 lt_prog_compiler_pic_CXX='+Z'
12501 fi
12502 ;;
12503 aCC*)
12504 lt_prog_compiler_wl_CXX='-Wl,'
12505 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12506 case $host_cpu in
12507 hppa*64*|ia64*)
12508 # +Z the default
12509 ;;
12510 *)
12511 lt_prog_compiler_pic_CXX='+Z'
12512 ;;
12513 esac
12514 ;;
12515 *)
12516 ;;
12517 esac
12518 ;;
12519 interix*)
12520 # This is c89, which is MS Visual C++ (no shared libs)
12521 # Anyone wants to do a port?
12522 ;;
12523 irix5* | irix6* | nonstopux*)
12524 case $cc_basename in
12525 CC*)
12526 lt_prog_compiler_wl_CXX='-Wl,'
12527 lt_prog_compiler_static_CXX='-non_shared'
12528 # CC pic flag -KPIC is the default.
12529 ;;
12530 *)
12531 ;;
12532 esac
12533 ;;
12534 linux* | k*bsd*-gnu)
12535 case $cc_basename in
12536 KCC*)
12537 # KAI C++ Compiler
12538 lt_prog_compiler_wl_CXX='--backend -Wl,'
12539 lt_prog_compiler_pic_CXX='-fPIC'
12540 ;;
12541 icpc* | ecpc*)
12542 # Intel C++
12543 lt_prog_compiler_wl_CXX='-Wl,'
12544 lt_prog_compiler_pic_CXX='-KPIC'
12545 lt_prog_compiler_static_CXX='-static'
12546 ;;
12547 pgCC*)
12548 # Portland Group C++ compiler.
12549 lt_prog_compiler_wl_CXX='-Wl,'
12550 lt_prog_compiler_pic_CXX='-fpic'
12551 lt_prog_compiler_static_CXX='-Bstatic'
12552 ;;
12553 cxx*)
12554 # Compaq C++
12555 # Make sure the PIC flag is empty. It appears that all Alpha
12556 # Linux and Compaq Tru64 Unix objects are PIC.
12557 lt_prog_compiler_pic_CXX=
12558 lt_prog_compiler_static_CXX='-non_shared'
12559 ;;
12560 *)
12561 ;;
12562 esac
12563 ;;
12564 lynxos*)
12565 ;;
12566 m88k*)
12567 ;;
12568 mvs*)
12569 case $cc_basename in
12570 cxx*)
12571 lt_prog_compiler_pic_CXX='-W c,exportall'
12572 ;;
12573 *)
12574 ;;
12575 esac
12576 ;;
12577 netbsd* | netbsdelf*-gnu)
12578 ;;
12579 osf3* | osf4* | osf5*)
12580 case $cc_basename in
12581 KCC*)
12582 lt_prog_compiler_wl_CXX='--backend -Wl,'
12583 ;;
12584 RCC*)
12585 # Rational C++ 2.4.1
12586 lt_prog_compiler_pic_CXX='-pic'
12587 ;;
12588 cxx*)
12589 # Digital/Compaq C++
12590 lt_prog_compiler_wl_CXX='-Wl,'
12591 # Make sure the PIC flag is empty. It appears that all Alpha
12592 # Linux and Compaq Tru64 Unix objects are PIC.
12593 lt_prog_compiler_pic_CXX=
12594 lt_prog_compiler_static_CXX='-non_shared'
12595 ;;
12596 *)
12597 ;;
12598 esac
12599 ;;
12600 psos*)
12601 ;;
12602 solaris*)
12603 case $cc_basename in
12604 CC*)
12605 # Sun C++ 4.2, 5.x and Centerline C++
12606 lt_prog_compiler_pic_CXX='-KPIC'
12607 lt_prog_compiler_static_CXX='-Bstatic'
12608 lt_prog_compiler_wl_CXX='-Qoption ld '
12609 ;;
12610 gcx*)
12611 # Green Hills C++ Compiler
12612 lt_prog_compiler_pic_CXX='-PIC'
12613 ;;
12614 *)
12615 ;;
12616 esac
12617 ;;
12618 sunos4*)
12619 case $cc_basename in
12620 CC*)
12621 # Sun C++ 4.x
12622 lt_prog_compiler_pic_CXX='-pic'
12623 lt_prog_compiler_static_CXX='-Bstatic'
12624 ;;
12625 lcc*)
12626 # Lucid
12627 lt_prog_compiler_pic_CXX='-pic'
12628 ;;
12629 *)
12630 ;;
12631 esac
12632 ;;
12633 tandem*)
12634 case $cc_basename in
12635 NCC*)
12636 # NonStop-UX NCC 3.20
12637 lt_prog_compiler_pic_CXX='-KPIC'
12638 ;;
12639 *)
12640 ;;
12641 esac
12642 ;;
12643 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12644 case $cc_basename in
12645 CC*)
12646 lt_prog_compiler_wl_CXX='-Wl,'
12647 lt_prog_compiler_pic_CXX='-KPIC'
12648 lt_prog_compiler_static_CXX='-Bstatic'
12649 ;;
12650 esac
12651 ;;
12652 vxworks*)
12653 ;;
12654 *)
12655 lt_prog_compiler_can_build_shared_CXX=no
12656 ;;
12657 esac
12658 fi
12659
12660 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12661 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12662
12663 #
12664 # Check to make sure the PIC flag actually works.
12665 #
12666 if test -n "$lt_prog_compiler_pic_CXX"; then
12667
12668 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12669 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12670 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12671 echo $ECHO_N "(cached) $ECHO_C" >&6
12672 else
12673 lt_prog_compiler_pic_works_CXX=no
12674 ac_outfile=conftest.$ac_objext
12675 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12676 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12677 # Insert the option either (1) after the last *FLAGS variable, or
12678 # (2) before a word containing "conftest.", or (3) at the end.
12679 # Note that $ac_compile itself does not contain backslashes and begins
12680 # with a dollar sign (not a hyphen), so the echo should work correctly.
12681 # The option is referenced via a variable to avoid confusing sed.
12682 lt_compile=`echo "$ac_compile" | $SED \
12683 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12684 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12685 -e 's:$: $lt_compiler_flag:'`
12686 (eval echo "\"\$as_me:12686: $lt_compile\"" >&5)
12687 (eval "$lt_compile" 2>conftest.err)
12688 ac_status=$?
12689 cat conftest.err >&5
12690 echo "$as_me:12690: \$? = $ac_status" >&5
12691 if (exit $ac_status) && test -s "$ac_outfile"; then
12692 # The compiler can only warn and ignore the option if not recognized
12693 # So say no if there are warnings other than the usual output.
12694 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12695 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12696 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12697 lt_prog_compiler_pic_works_CXX=yes
12698 fi
12699 fi
12700 $rm conftest*
12701
12702 fi
12703 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12704 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12705
12706 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12707 case $lt_prog_compiler_pic_CXX in
12708 "" | " "*) ;;
12709 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12710 esac
12711 else
12712 lt_prog_compiler_pic_CXX=
12713 lt_prog_compiler_can_build_shared_CXX=no
12714 fi
12715
12716 fi
12717 case $host_os in
12718 # For platforms which do not support PIC, -DPIC is meaningless:
12719 *djgpp*)
12720 lt_prog_compiler_pic_CXX=
12721 ;;
12722 *)
12723 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12724 ;;
12725 esac
12726
12727 #
12728 # Check to make sure the static flag actually works.
12729 #
12730 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12731 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12732 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12733 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12734 echo $ECHO_N "(cached) $ECHO_C" >&6
12735 else
12736 lt_prog_compiler_static_works_CXX=no
12737 save_LDFLAGS="$LDFLAGS"
12738 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12739 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12740 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12741 # The linker can only warn and ignore the option if not recognized
12742 # So say no if there are warnings
12743 if test -s conftest.err; then
12744 # Append any errors to the config.log.
12745 cat conftest.err 1>&5
12746 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12747 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12748 if diff conftest.exp conftest.er2 >/dev/null; then
12749 lt_prog_compiler_static_works_CXX=yes
12750 fi
12751 else
12752 lt_prog_compiler_static_works_CXX=yes
12753 fi
12754 fi
12755 $rm conftest*
12756 LDFLAGS="$save_LDFLAGS"
12757
12758 fi
12759 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12760 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12761
12762 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12763 :
12764 else
12765 lt_prog_compiler_static_CXX=
12766 fi
12767
12768
12769 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12770 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12771 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12772 echo $ECHO_N "(cached) $ECHO_C" >&6
12773 else
12774 lt_cv_prog_compiler_c_o_CXX=no
12775 $rm -r conftest 2>/dev/null
12776 mkdir conftest
12777 cd conftest
12778 mkdir out
12779 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12780
12781 lt_compiler_flag="-o out/conftest2.$ac_objext"
12782 # Insert the option either (1) after the last *FLAGS variable, or
12783 # (2) before a word containing "conftest.", or (3) at the end.
12784 # Note that $ac_compile itself does not contain backslashes and begins
12785 # with a dollar sign (not a hyphen), so the echo should work correctly.
12786 lt_compile=`echo "$ac_compile" | $SED \
12787 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12788 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12789 -e 's:$: $lt_compiler_flag:'`
12790 (eval echo "\"\$as_me:12790: $lt_compile\"" >&5)
12791 (eval "$lt_compile" 2>out/conftest.err)
12792 ac_status=$?
12793 cat out/conftest.err >&5
12794 echo "$as_me:12794: \$? = $ac_status" >&5
12795 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12796 then
12797 # The compiler can only warn and ignore the option if not recognized
12798 # So say no if there are warnings
12799 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12800 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12801 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12802 lt_cv_prog_compiler_c_o_CXX=yes
12803 fi
12804 fi
12805 chmod u+w . 2>&5
12806 $rm conftest*
12807 # SGI C++ compiler will create directory out/ii_files/ for
12808 # template instantiation
12809 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12810 $rm out/* && rmdir out
12811 cd ..
12812 rmdir conftest
12813 $rm conftest*
12814
12815 fi
12816 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12817 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12818
12819
12820 hard_links="nottested"
12821 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12822 # do not overwrite the value of need_locks provided by the user
12823 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12824 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12825 hard_links=yes
12826 $rm conftest*
12827 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12828 touch conftest.a
12829 ln conftest.a conftest.b 2>&5 || hard_links=no
12830 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12831 { echo "$as_me:$LINENO: result: $hard_links" >&5
12832 echo "${ECHO_T}$hard_links" >&6; }
12833 if test "$hard_links" = no; then
12834 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12835 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12836 need_locks=warn
12837 fi
12838 else
12839 need_locks=no
12840 fi
12841
12842 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12843 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12844
12845 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12846 case $host_os in
12847 aix4* | aix5*)
12848 # If we're using GNU nm, then we don't want the "-C" option.
12849 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12850 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12851 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'
12852 else
12853 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'
12854 fi
12855 ;;
12856 pw32*)
12857 export_symbols_cmds_CXX="$ltdll_cmds"
12858 ;;
12859 cygwin* | mingw*)
12860 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'
12861 ;;
12862 linux* | k*bsd*-gnu)
12863 link_all_deplibs_CXX=no
12864 ;;
12865 *)
12866 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12867 ;;
12868 esac
12869
12870 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12871 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12872 test "$ld_shlibs_CXX" = no && can_build_shared=no
12873
12874 #
12875 # Do we need to explicitly link libc?
12876 #
12877 case "x$archive_cmds_need_lc_CXX" in
12878 x|xyes)
12879 # Assume -lc should be added
12880 archive_cmds_need_lc_CXX=yes
12881
12882 if test "$enable_shared" = yes && test "$GCC" = yes; then
12883 case $archive_cmds_CXX in
12884 *'~'*)
12885 # FIXME: we may have to deal with multi-command sequences.
12886 ;;
12887 '$CC '*)
12888 # Test whether the compiler implicitly links with -lc since on some
12889 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12890 # to ld, don't add -lc before -lgcc.
12891 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12892 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12893 $rm conftest*
12894 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12895
12896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12897 (eval $ac_compile) 2>&5
12898 ac_status=$?
12899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900 (exit $ac_status); } 2>conftest.err; then
12901 soname=conftest
12902 lib=conftest
12903 libobjs=conftest.$ac_objext
12904 deplibs=
12905 wl=$lt_prog_compiler_wl_CXX
12906 pic_flag=$lt_prog_compiler_pic_CXX
12907 compiler_flags=-v
12908 linker_flags=-v
12909 verstring=
12910 output_objdir=.
12911 libname=conftest
12912 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12913 allow_undefined_flag_CXX=
12914 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12915 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12916 ac_status=$?
12917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918 (exit $ac_status); }
12919 then
12920 archive_cmds_need_lc_CXX=no
12921 else
12922 archive_cmds_need_lc_CXX=yes
12923 fi
12924 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12925 else
12926 cat conftest.err 1>&5
12927 fi
12928 $rm conftest*
12929 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12930 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12931 ;;
12932 esac
12933 fi
12934 ;;
12935 esac
12936
12937 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12938 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12939 library_names_spec=
12940 libname_spec='lib$name'
12941 soname_spec=
12942 shrext_cmds=".so"
12943 postinstall_cmds=
12944 postuninstall_cmds=
12945 finish_cmds=
12946 finish_eval=
12947 shlibpath_var=
12948 shlibpath_overrides_runpath=unknown
12949 version_type=none
12950 dynamic_linker="$host_os ld.so"
12951 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12952 if test "$GCC" = yes; then
12953 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12954 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12955 # if the path contains ";" then we assume it to be the separator
12956 # otherwise default to the standard path separator (i.e. ":") - it is
12957 # assumed that no part of a normal pathname contains ";" but that should
12958 # okay in the real world where ";" in dirpaths is itself problematic.
12959 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12960 else
12961 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12962 fi
12963 else
12964 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12965 fi
12966 need_lib_prefix=unknown
12967 hardcode_into_libs=no
12968
12969 # when you set need_version to no, make sure it does not cause -set_version
12970 # flags to be left without arguments
12971 need_version=unknown
12972
12973 case $host_os in
12974 aix3*)
12975 version_type=linux
12976 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12977 shlibpath_var=LIBPATH
12978
12979 # AIX 3 has no versioning support, so we append a major version to the name.
12980 soname_spec='${libname}${release}${shared_ext}$major'
12981 ;;
12982
12983 aix4* | aix5*)
12984 version_type=linux
12985 need_lib_prefix=no
12986 need_version=no
12987 hardcode_into_libs=yes
12988 if test "$host_cpu" = ia64; then
12989 # AIX 5 supports IA64
12990 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12991 shlibpath_var=LD_LIBRARY_PATH
12992 else
12993 # With GCC up to 2.95.x, collect2 would create an import file
12994 # for dependence libraries. The import file would start with
12995 # the line `#! .'. This would cause the generated library to
12996 # depend on `.', always an invalid library. This was fixed in
12997 # development snapshots of GCC prior to 3.0.
12998 case $host_os in
12999 aix4 | aix4.[01] | aix4.[01].*)
13000 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13001 echo ' yes '
13002 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13003 :
13004 else
13005 can_build_shared=no
13006 fi
13007 ;;
13008 esac
13009 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13010 # soname into executable. Probably we can add versioning support to
13011 # collect2, so additional links can be useful in future.
13012 if test "$aix_use_runtimelinking" = yes; then
13013 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13014 # instead of lib<name>.a to let people know that these are not
13015 # typical AIX shared libraries.
13016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13017 else
13018 # We preserve .a as extension for shared libraries through AIX4.2
13019 # and later when we are not doing run time linking.
13020 library_names_spec='${libname}${release}.a $libname.a'
13021 soname_spec='${libname}${release}${shared_ext}$major'
13022 fi
13023 shlibpath_var=LIBPATH
13024 fi
13025 ;;
13026
13027 amigaos*)
13028 library_names_spec='$libname.ixlibrary $libname.a'
13029 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13030 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'
13031 ;;
13032
13033 beos*)
13034 library_names_spec='${libname}${shared_ext}'
13035 dynamic_linker="$host_os ld.so"
13036 shlibpath_var=LIBRARY_PATH
13037 ;;
13038
13039 bsdi[45]*)
13040 version_type=linux
13041 need_version=no
13042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13043 soname_spec='${libname}${release}${shared_ext}$major'
13044 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13045 shlibpath_var=LD_LIBRARY_PATH
13046 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13047 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13048 # the default ld.so.conf also contains /usr/contrib/lib and
13049 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13050 # libtool to hard-code these into programs
13051 ;;
13052
13053 cygwin* | mingw* | pw32*)
13054 version_type=windows
13055 shrext_cmds=".dll"
13056 need_version=no
13057 need_lib_prefix=no
13058
13059 case $GCC,$host_os in
13060 yes,cygwin* | yes,mingw* | yes,pw32*)
13061 library_names_spec='$libname.dll.a'
13062 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13063 postinstall_cmds='base_file=`basename \${file}`~
13064 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13065 dldir=$destdir/`dirname \$dlpath`~
13066 test -d \$dldir || mkdir -p \$dldir~
13067 $install_prog $dir/$dlname \$dldir/$dlname~
13068 chmod a+x \$dldir/$dlname'
13069 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13070 dlpath=$dir/\$dldll~
13071 $rm \$dlpath'
13072 shlibpath_overrides_runpath=yes
13073
13074 case $host_os in
13075 cygwin*)
13076 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13077 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13078 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13079 ;;
13080 mingw*)
13081 # MinGW DLLs use traditional 'lib' prefix
13082 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13083 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13084 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13085 # It is most probably a Windows format PATH printed by
13086 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13087 # path with ; separators, and with drive letters. We can handle the
13088 # drive letters (cygwin fileutils understands them), so leave them,
13089 # especially as we might pass files found there to a mingw objdump,
13090 # which wouldn't understand a cygwinified path. Ahh.
13091 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13092 else
13093 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13094 fi
13095 ;;
13096 pw32*)
13097 # pw32 DLLs use 'pw' prefix rather than 'lib'
13098 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13099 ;;
13100 esac
13101 ;;
13102
13103 *)
13104 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13105 ;;
13106 esac
13107 dynamic_linker='Win32 ld.exe'
13108 # FIXME: first we should search . and the directory the executable is in
13109 shlibpath_var=PATH
13110 ;;
13111
13112 darwin* | rhapsody*)
13113 dynamic_linker="$host_os dyld"
13114 version_type=darwin
13115 need_lib_prefix=no
13116 need_version=no
13117 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13118 soname_spec='${libname}${release}${major}$shared_ext'
13119 shlibpath_overrides_runpath=yes
13120 shlibpath_var=DYLD_LIBRARY_PATH
13121 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13122 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13123 if test "$GCC" = yes; then
13124 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"`
13125 else
13126 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13127 fi
13128 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13129 ;;
13130
13131 dgux*)
13132 version_type=linux
13133 need_lib_prefix=no
13134 need_version=no
13135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13136 soname_spec='${libname}${release}${shared_ext}$major'
13137 shlibpath_var=LD_LIBRARY_PATH
13138 ;;
13139
13140 freebsd1*)
13141 dynamic_linker=no
13142 ;;
13143
13144 freebsd* | dragonfly*)
13145 # DragonFly does not have aout. When/if they implement a new
13146 # versioning mechanism, adjust this.
13147 if test -x /usr/bin/objformat; then
13148 objformat=`/usr/bin/objformat`
13149 else
13150 case $host_os in
13151 freebsd[123]*) objformat=aout ;;
13152 *) objformat=elf ;;
13153 esac
13154 fi
13155 version_type=freebsd-$objformat
13156 case $version_type in
13157 freebsd-elf*)
13158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13159 need_version=no
13160 need_lib_prefix=no
13161 ;;
13162 freebsd-*)
13163 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13164 need_version=yes
13165 ;;
13166 esac
13167 shlibpath_var=LD_LIBRARY_PATH
13168 case $host_os in
13169 freebsd2*)
13170 shlibpath_overrides_runpath=yes
13171 ;;
13172 freebsd3.[01]* | freebsdelf3.[01]*)
13173 shlibpath_overrides_runpath=yes
13174 hardcode_into_libs=yes
13175 ;;
13176 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13177 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13178 shlibpath_overrides_runpath=no
13179 hardcode_into_libs=yes
13180 ;;
13181 freebsd*) # from 4.6 on
13182 shlibpath_overrides_runpath=yes
13183 hardcode_into_libs=yes
13184 ;;
13185 esac
13186 ;;
13187
13188 gnu*)
13189 version_type=linux
13190 need_lib_prefix=no
13191 need_version=no
13192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13193 soname_spec='${libname}${release}${shared_ext}$major'
13194 shlibpath_var=LD_LIBRARY_PATH
13195 hardcode_into_libs=yes
13196 ;;
13197
13198 hpux9* | hpux10* | hpux11*)
13199 # Give a soname corresponding to the major version so that dld.sl refuses to
13200 # link against other versions.
13201 version_type=sunos
13202 need_lib_prefix=no
13203 need_version=no
13204 case $host_cpu in
13205 ia64*)
13206 shrext_cmds='.so'
13207 hardcode_into_libs=yes
13208 dynamic_linker="$host_os dld.so"
13209 shlibpath_var=LD_LIBRARY_PATH
13210 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13212 soname_spec='${libname}${release}${shared_ext}$major'
13213 if test "X$HPUX_IA64_MODE" = X32; then
13214 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13215 else
13216 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13217 fi
13218 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13219 ;;
13220 hppa*64*)
13221 shrext_cmds='.sl'
13222 hardcode_into_libs=yes
13223 dynamic_linker="$host_os dld.sl"
13224 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13225 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13227 soname_spec='${libname}${release}${shared_ext}$major'
13228 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13229 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13230 ;;
13231 *)
13232 shrext_cmds='.sl'
13233 dynamic_linker="$host_os dld.sl"
13234 shlibpath_var=SHLIB_PATH
13235 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13237 soname_spec='${libname}${release}${shared_ext}$major'
13238 ;;
13239 esac
13240 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13241 postinstall_cmds='chmod 555 $lib'
13242 ;;
13243
13244 interix3*)
13245 version_type=linux
13246 need_lib_prefix=no
13247 need_version=no
13248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13249 soname_spec='${libname}${release}${shared_ext}$major'
13250 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13251 shlibpath_var=LD_LIBRARY_PATH
13252 shlibpath_overrides_runpath=no
13253 hardcode_into_libs=yes
13254 ;;
13255
13256 irix5* | irix6* | nonstopux*)
13257 case $host_os in
13258 nonstopux*) version_type=nonstopux ;;
13259 *)
13260 if test "$lt_cv_prog_gnu_ld" = yes; then
13261 version_type=linux
13262 else
13263 version_type=irix
13264 fi ;;
13265 esac
13266 need_lib_prefix=no
13267 need_version=no
13268 soname_spec='${libname}${release}${shared_ext}$major'
13269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13270 case $host_os in
13271 irix5* | nonstopux*)
13272 libsuff= shlibsuff=
13273 ;;
13274 *)
13275 case $LD in # libtool.m4 will add one of these switches to LD
13276 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13277 libsuff= shlibsuff= libmagic=32-bit;;
13278 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13279 libsuff=32 shlibsuff=N32 libmagic=N32;;
13280 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13281 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13282 *) libsuff= shlibsuff= libmagic=never-match;;
13283 esac
13284 ;;
13285 esac
13286 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13287 shlibpath_overrides_runpath=no
13288 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13289 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13290 hardcode_into_libs=yes
13291 ;;
13292
13293 # No shared lib support for Linux oldld, aout, or coff.
13294 linux*oldld* | linux*aout* | linux*coff*)
13295 dynamic_linker=no
13296 ;;
13297
13298 # This must be Linux ELF.
13299 linux* | k*bsd*-gnu)
13300 version_type=linux
13301 need_lib_prefix=no
13302 need_version=no
13303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13304 soname_spec='${libname}${release}${shared_ext}$major'
13305 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13306 shlibpath_var=LD_LIBRARY_PATH
13307 shlibpath_overrides_runpath=no
13308 # This implies no fast_install, which is unacceptable.
13309 # Some rework will be needed to allow for fast_install
13310 # before this can be enabled.
13311 hardcode_into_libs=yes
13312
13313 # Append ld.so.conf contents to the search path
13314 if test -f /etc/ld.so.conf; then
13315 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' ' '`
13316 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13317 fi
13318
13319 # We used to test for /lib/ld.so.1 and disable shared libraries on
13320 # powerpc, because MkLinux only supported shared libraries with the
13321 # GNU dynamic linker. Since this was broken with cross compilers,
13322 # most powerpc-linux boxes support dynamic linking these days and
13323 # people can always --disable-shared, the test was removed, and we
13324 # assume the GNU/Linux dynamic linker is in use.
13325 dynamic_linker='GNU/Linux ld.so'
13326 ;;
13327
13328 netbsdelf*-gnu)
13329 version_type=linux
13330 need_lib_prefix=no
13331 need_version=no
13332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13333 soname_spec='${libname}${release}${shared_ext}$major'
13334 shlibpath_var=LD_LIBRARY_PATH
13335 shlibpath_overrides_runpath=no
13336 hardcode_into_libs=yes
13337 dynamic_linker='NetBSD ld.elf_so'
13338 ;;
13339
13340 netbsd*)
13341 version_type=sunos
13342 need_lib_prefix=no
13343 need_version=no
13344 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13346 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13347 dynamic_linker='NetBSD (a.out) ld.so'
13348 else
13349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13350 soname_spec='${libname}${release}${shared_ext}$major'
13351 dynamic_linker='NetBSD ld.elf_so'
13352 fi
13353 shlibpath_var=LD_LIBRARY_PATH
13354 shlibpath_overrides_runpath=yes
13355 hardcode_into_libs=yes
13356 ;;
13357
13358 newsos6)
13359 version_type=linux
13360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13361 shlibpath_var=LD_LIBRARY_PATH
13362 shlibpath_overrides_runpath=yes
13363 ;;
13364
13365 nto-qnx*)
13366 version_type=linux
13367 need_lib_prefix=no
13368 need_version=no
13369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13370 soname_spec='${libname}${release}${shared_ext}$major'
13371 shlibpath_var=LD_LIBRARY_PATH
13372 shlibpath_overrides_runpath=yes
13373 ;;
13374
13375 openbsd*)
13376 version_type=sunos
13377 sys_lib_dlsearch_path_spec="/usr/lib"
13378 need_lib_prefix=no
13379 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13380 case $host_os in
13381 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13382 *) need_version=no ;;
13383 esac
13384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13385 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13386 shlibpath_var=LD_LIBRARY_PATH
13387 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13388 case $host_os in
13389 openbsd2.[89] | openbsd2.[89].*)
13390 shlibpath_overrides_runpath=no
13391 ;;
13392 *)
13393 shlibpath_overrides_runpath=yes
13394 ;;
13395 esac
13396 else
13397 shlibpath_overrides_runpath=yes
13398 fi
13399 ;;
13400
13401 os2*)
13402 libname_spec='$name'
13403 shrext_cmds=".dll"
13404 need_lib_prefix=no
13405 library_names_spec='$libname${shared_ext} $libname.a'
13406 dynamic_linker='OS/2 ld.exe'
13407 shlibpath_var=LIBPATH
13408 ;;
13409
13410 osf3* | osf4* | osf5*)
13411 version_type=osf
13412 need_lib_prefix=no
13413 need_version=no
13414 soname_spec='${libname}${release}${shared_ext}$major'
13415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13416 shlibpath_var=LD_LIBRARY_PATH
13417 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13418 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13419 ;;
13420
13421 solaris*)
13422 version_type=linux
13423 need_lib_prefix=no
13424 need_version=no
13425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13426 soname_spec='${libname}${release}${shared_ext}$major'
13427 shlibpath_var=LD_LIBRARY_PATH
13428 shlibpath_overrides_runpath=yes
13429 hardcode_into_libs=yes
13430 # ldd complains unless libraries are executable
13431 postinstall_cmds='chmod +x $lib'
13432 ;;
13433
13434 sunos4*)
13435 version_type=sunos
13436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13437 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13438 shlibpath_var=LD_LIBRARY_PATH
13439 shlibpath_overrides_runpath=yes
13440 if test "$with_gnu_ld" = yes; then
13441 need_lib_prefix=no
13442 fi
13443 need_version=yes
13444 ;;
13445
13446 sysv4 | sysv4.3*)
13447 version_type=linux
13448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13449 soname_spec='${libname}${release}${shared_ext}$major'
13450 shlibpath_var=LD_LIBRARY_PATH
13451 case $host_vendor in
13452 sni)
13453 shlibpath_overrides_runpath=no
13454 need_lib_prefix=no
13455 export_dynamic_flag_spec='${wl}-Blargedynsym'
13456 runpath_var=LD_RUN_PATH
13457 ;;
13458 siemens)
13459 need_lib_prefix=no
13460 ;;
13461 motorola)
13462 need_lib_prefix=no
13463 need_version=no
13464 shlibpath_overrides_runpath=no
13465 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13466 ;;
13467 esac
13468 ;;
13469
13470 sysv4*MP*)
13471 if test -d /usr/nec ;then
13472 version_type=linux
13473 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13474 soname_spec='$libname${shared_ext}.$major'
13475 shlibpath_var=LD_LIBRARY_PATH
13476 fi
13477 ;;
13478
13479 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13480 version_type=freebsd-elf
13481 need_lib_prefix=no
13482 need_version=no
13483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13484 soname_spec='${libname}${release}${shared_ext}$major'
13485 shlibpath_var=LD_LIBRARY_PATH
13486 hardcode_into_libs=yes
13487 if test "$with_gnu_ld" = yes; then
13488 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13489 shlibpath_overrides_runpath=no
13490 else
13491 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13492 shlibpath_overrides_runpath=yes
13493 case $host_os in
13494 sco3.2v5*)
13495 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13496 ;;
13497 esac
13498 fi
13499 sys_lib_dlsearch_path_spec='/usr/lib'
13500 ;;
13501
13502 uts4*)
13503 version_type=linux
13504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13505 soname_spec='${libname}${release}${shared_ext}$major'
13506 shlibpath_var=LD_LIBRARY_PATH
13507 ;;
13508
13509 *)
13510 dynamic_linker=no
13511 ;;
13512 esac
13513 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13514 echo "${ECHO_T}$dynamic_linker" >&6; }
13515 test "$dynamic_linker" = no && can_build_shared=no
13516
13517 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13518 if test "$GCC" = yes; then
13519 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13520 fi
13521
13522 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13523 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13524 hardcode_action_CXX=
13525 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13526 test -n "$runpath_var_CXX" || \
13527 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13528
13529 # We can hardcode non-existant directories.
13530 if test "$hardcode_direct_CXX" != no &&
13531 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13532 # have to relink, otherwise we might link with an installed library
13533 # when we should be linking with a yet-to-be-installed one
13534 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13535 test "$hardcode_minus_L_CXX" != no; then
13536 # Linking always hardcodes the temporary library directory.
13537 hardcode_action_CXX=relink
13538 else
13539 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13540 hardcode_action_CXX=immediate
13541 fi
13542 else
13543 # We cannot hardcode anything, or else we can only hardcode existing
13544 # directories.
13545 hardcode_action_CXX=unsupported
13546 fi
13547 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13548 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13549
13550 if test "$hardcode_action_CXX" = relink; then
13551 # Fast installation is not supported
13552 enable_fast_install=no
13553 elif test "$shlibpath_overrides_runpath" = yes ||
13554 test "$enable_shared" = no; then
13555 # Fast installation is not necessary
13556 enable_fast_install=needless
13557 fi
13558
13559
13560 # The else clause should only fire when bootstrapping the
13561 # libtool distribution, otherwise you forgot to ship ltmain.sh
13562 # with your package, and you will get complaints that there are
13563 # no rules to generate ltmain.sh.
13564 if test -f "$ltmain"; then
13565 # See if we are running on zsh, and set the options which allow our commands through
13566 # without removal of \ escapes.
13567 if test -n "${ZSH_VERSION+set}" ; then
13568 setopt NO_GLOB_SUBST
13569 fi
13570 # Now quote all the things that may contain metacharacters while being
13571 # careful not to overquote the AC_SUBSTed values. We take copies of the
13572 # variables and quote the copies for generation of the libtool script.
13573 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13574 SED SHELL STRIP \
13575 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13576 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13577 deplibs_check_method reload_flag reload_cmds need_locks \
13578 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13579 lt_cv_sys_global_symbol_to_c_name_address \
13580 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13581 old_postinstall_cmds old_postuninstall_cmds \
13582 compiler_CXX \
13583 CC_CXX \
13584 LD_CXX \
13585 lt_prog_compiler_wl_CXX \
13586 lt_prog_compiler_pic_CXX \
13587 lt_prog_compiler_static_CXX \
13588 lt_prog_compiler_no_builtin_flag_CXX \
13589 export_dynamic_flag_spec_CXX \
13590 thread_safe_flag_spec_CXX \
13591 whole_archive_flag_spec_CXX \
13592 enable_shared_with_static_runtimes_CXX \
13593 old_archive_cmds_CXX \
13594 old_archive_from_new_cmds_CXX \
13595 predep_objects_CXX \
13596 postdep_objects_CXX \
13597 predeps_CXX \
13598 postdeps_CXX \
13599 compiler_lib_search_path_CXX \
13600 archive_cmds_CXX \
13601 archive_expsym_cmds_CXX \
13602 postinstall_cmds_CXX \
13603 postuninstall_cmds_CXX \
13604 old_archive_from_expsyms_cmds_CXX \
13605 allow_undefined_flag_CXX \
13606 no_undefined_flag_CXX \
13607 export_symbols_cmds_CXX \
13608 hardcode_libdir_flag_spec_CXX \
13609 hardcode_libdir_flag_spec_ld_CXX \
13610 hardcode_libdir_separator_CXX \
13611 hardcode_automatic_CXX \
13612 module_cmds_CXX \
13613 module_expsym_cmds_CXX \
13614 lt_cv_prog_compiler_c_o_CXX \
13615 exclude_expsyms_CXX \
13616 include_expsyms_CXX; do
13617
13618 case $var in
13619 old_archive_cmds_CXX | \
13620 old_archive_from_new_cmds_CXX | \
13621 archive_cmds_CXX | \
13622 archive_expsym_cmds_CXX | \
13623 module_cmds_CXX | \
13624 module_expsym_cmds_CXX | \
13625 old_archive_from_expsyms_cmds_CXX | \
13626 export_symbols_cmds_CXX | \
13627 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13628 postinstall_cmds | postuninstall_cmds | \
13629 old_postinstall_cmds | old_postuninstall_cmds | \
13630 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13631 # Double-quote double-evaled strings.
13632 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13633 ;;
13634 *)
13635 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13636 ;;
13637 esac
13638 done
13639
13640 case $lt_echo in
13641 *'\$0 --fallback-echo"')
13642 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13643 ;;
13644 esac
13645
13646 cfgfile="$ofile"
13647
13648 cat <<__EOF__ >> "$cfgfile"
13649 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13650
13651 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13652
13653 # Shell to use when invoking shell scripts.
13654 SHELL=$lt_SHELL
13655
13656 # Whether or not to build shared libraries.
13657 build_libtool_libs=$enable_shared
13658
13659 # Whether or not to build static libraries.
13660 build_old_libs=$enable_static
13661
13662 # Whether or not to add -lc for building shared libraries.
13663 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13664
13665 # Whether or not to disallow shared libs when runtime libs are static
13666 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13667
13668 # Whether or not to optimize for fast installation.
13669 fast_install=$enable_fast_install
13670
13671 # The host system.
13672 host_alias=$host_alias
13673 host=$host
13674 host_os=$host_os
13675
13676 # The build system.
13677 build_alias=$build_alias
13678 build=$build
13679 build_os=$build_os
13680
13681 # An echo program that does not interpret backslashes.
13682 echo=$lt_echo
13683
13684 # The archiver.
13685 AR=$lt_AR
13686 AR_FLAGS=$lt_AR_FLAGS
13687
13688 # A C compiler.
13689 LTCC=$lt_LTCC
13690
13691 # LTCC compiler flags.
13692 LTCFLAGS=$lt_LTCFLAGS
13693
13694 # A language-specific compiler.
13695 CC=$lt_compiler_CXX
13696
13697 # Is the compiler the GNU C compiler?
13698 with_gcc=$GCC_CXX
13699
13700 # An ERE matcher.
13701 EGREP=$lt_EGREP
13702
13703 # The linker used to build libraries.
13704 LD=$lt_LD_CXX
13705
13706 # Whether we need hard or soft links.
13707 LN_S=$lt_LN_S
13708
13709 # A BSD-compatible nm program.
13710 NM=$lt_NM
13711
13712 # A symbol stripping program
13713 STRIP=$lt_STRIP
13714
13715 # Used to examine libraries when file_magic_cmd begins "file"
13716 MAGIC_CMD=$MAGIC_CMD
13717
13718 # Used on cygwin: DLL creation program.
13719 DLLTOOL="$DLLTOOL"
13720
13721 # Used on cygwin: object dumper.
13722 OBJDUMP="$OBJDUMP"
13723
13724 # Used on cygwin: assembler.
13725 AS="$AS"
13726
13727 # The name of the directory that contains temporary libtool files.
13728 objdir=$objdir
13729
13730 # How to create reloadable object files.
13731 reload_flag=$lt_reload_flag
13732 reload_cmds=$lt_reload_cmds
13733
13734 # How to pass a linker flag through the compiler.
13735 wl=$lt_lt_prog_compiler_wl_CXX
13736
13737 # Object file suffix (normally "o").
13738 objext="$ac_objext"
13739
13740 # Old archive suffix (normally "a").
13741 libext="$libext"
13742
13743 # Shared library suffix (normally ".so").
13744 shrext_cmds='$shrext_cmds'
13745
13746 # Executable file suffix (normally "").
13747 exeext="$exeext"
13748
13749 # Additional compiler flags for building library objects.
13750 pic_flag=$lt_lt_prog_compiler_pic_CXX
13751 pic_mode=$pic_mode
13752
13753 # What is the maximum length of a command?
13754 max_cmd_len=$lt_cv_sys_max_cmd_len
13755
13756 # Does compiler simultaneously support -c and -o options?
13757 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13758
13759 # Must we lock files when doing compilation?
13760 need_locks=$lt_need_locks
13761
13762 # Do we need the lib prefix for modules?
13763 need_lib_prefix=$need_lib_prefix
13764
13765 # Do we need a version for libraries?
13766 need_version=$need_version
13767
13768 # Whether dlopen is supported.
13769 dlopen_support=$enable_dlopen
13770
13771 # Whether dlopen of programs is supported.
13772 dlopen_self=$enable_dlopen_self
13773
13774 # Whether dlopen of statically linked programs is supported.
13775 dlopen_self_static=$enable_dlopen_self_static
13776
13777 # Compiler flag to prevent dynamic linking.
13778 link_static_flag=$lt_lt_prog_compiler_static_CXX
13779
13780 # Compiler flag to turn off builtin functions.
13781 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13782
13783 # Compiler flag to allow reflexive dlopens.
13784 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13785
13786 # Compiler flag to generate shared objects directly from archives.
13787 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13788
13789 # Compiler flag to generate thread-safe objects.
13790 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13791
13792 # Library versioning type.
13793 version_type=$version_type
13794
13795 # Format of library name prefix.
13796 libname_spec=$lt_libname_spec
13797
13798 # List of archive names. First name is the real one, the rest are links.
13799 # The last name is the one that the linker finds with -lNAME.
13800 library_names_spec=$lt_library_names_spec
13801
13802 # The coded name of the library, if different from the real name.
13803 soname_spec=$lt_soname_spec
13804
13805 # Commands used to build and install an old-style archive.
13806 RANLIB=$lt_RANLIB
13807 old_archive_cmds=$lt_old_archive_cmds_CXX
13808 old_postinstall_cmds=$lt_old_postinstall_cmds
13809 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13810
13811 # Create an old-style archive from a shared archive.
13812 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13813
13814 # Create a temporary old-style archive to link instead of a shared archive.
13815 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13816
13817 # Commands used to build and install a shared archive.
13818 archive_cmds=$lt_archive_cmds_CXX
13819 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13820 postinstall_cmds=$lt_postinstall_cmds
13821 postuninstall_cmds=$lt_postuninstall_cmds
13822
13823 # Commands used to build a loadable module (assumed same as above if empty)
13824 module_cmds=$lt_module_cmds_CXX
13825 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13826
13827 # Commands to strip libraries.
13828 old_striplib=$lt_old_striplib
13829 striplib=$lt_striplib
13830
13831 # Dependencies to place before the objects being linked to create a
13832 # shared library.
13833 predep_objects=$lt_predep_objects_CXX
13834
13835 # Dependencies to place after the objects being linked to create a
13836 # shared library.
13837 postdep_objects=$lt_postdep_objects_CXX
13838
13839 # Dependencies to place before the objects being linked to create a
13840 # shared library.
13841 predeps=$lt_predeps_CXX
13842
13843 # Dependencies to place after the objects being linked to create a
13844 # shared library.
13845 postdeps=$lt_postdeps_CXX
13846
13847 # The library search path used internally by the compiler when linking
13848 # a shared library.
13849 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13850
13851 # Method to check whether dependent libraries are shared objects.
13852 deplibs_check_method=$lt_deplibs_check_method
13853
13854 # Command to use when deplibs_check_method == file_magic.
13855 file_magic_cmd=$lt_file_magic_cmd
13856
13857 # Flag that allows shared libraries with undefined symbols to be built.
13858 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13859
13860 # Flag that forces no undefined symbols.
13861 no_undefined_flag=$lt_no_undefined_flag_CXX
13862
13863 # Commands used to finish a libtool library installation in a directory.
13864 finish_cmds=$lt_finish_cmds
13865
13866 # Same as above, but a single script fragment to be evaled but not shown.
13867 finish_eval=$lt_finish_eval
13868
13869 # Take the output of nm and produce a listing of raw symbols and C names.
13870 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13871
13872 # Transform the output of nm in a proper C declaration
13873 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13874
13875 # Transform the output of nm in a C name address pair
13876 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13877
13878 # This is the shared library runtime path variable.
13879 runpath_var=$runpath_var
13880
13881 # This is the shared library path variable.
13882 shlibpath_var=$shlibpath_var
13883
13884 # Is shlibpath searched before the hard-coded library search path?
13885 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13886
13887 # How to hardcode a shared library path into an executable.
13888 hardcode_action=$hardcode_action_CXX
13889
13890 # Whether we should hardcode library paths into libraries.
13891 hardcode_into_libs=$hardcode_into_libs
13892
13893 # Flag to hardcode \$libdir into a binary during linking.
13894 # This must work even if \$libdir does not exist.
13895 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13896
13897 # If ld is used when linking, flag to hardcode \$libdir into
13898 # a binary during linking. This must work even if \$libdir does
13899 # not exist.
13900 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13901
13902 # Whether we need a single -rpath flag with a separated argument.
13903 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13904
13905 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13906 # resulting binary.
13907 hardcode_direct=$hardcode_direct_CXX
13908
13909 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13910 # resulting binary.
13911 hardcode_minus_L=$hardcode_minus_L_CXX
13912
13913 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13914 # the resulting binary.
13915 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13916
13917 # Set to yes if building a shared library automatically hardcodes DIR into the library
13918 # and all subsequent libraries and executables linked against it.
13919 hardcode_automatic=$hardcode_automatic_CXX
13920
13921 # Variables whose values should be saved in libtool wrapper scripts and
13922 # restored at relink time.
13923 variables_saved_for_relink="$variables_saved_for_relink"
13924
13925 # Whether libtool must link a program against all its dependency libraries.
13926 link_all_deplibs=$link_all_deplibs_CXX
13927
13928 # Compile-time system search path for libraries
13929 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13930
13931 # Run-time system search path for libraries
13932 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13933
13934 # Fix the shell variable \$srcfile for the compiler.
13935 fix_srcfile_path="$fix_srcfile_path_CXX"
13936
13937 # Set to yes if exported symbols are required.
13938 always_export_symbols=$always_export_symbols_CXX
13939
13940 # The commands to list exported symbols.
13941 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13942
13943 # The commands to extract the exported symbol list from a shared archive.
13944 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13945
13946 # Symbols that should not be listed in the preloaded symbols.
13947 exclude_expsyms=$lt_exclude_expsyms_CXX
13948
13949 # Symbols that must always be exported.
13950 include_expsyms=$lt_include_expsyms_CXX
13951
13952 # ### END LIBTOOL TAG CONFIG: $tagname
13953
13954 __EOF__
13955
13956
13957 else
13958 # If there is no Makefile yet, we rely on a make rule to execute
13959 # `config.status --recheck' to rerun these tests and create the
13960 # libtool script then.
13961 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13962 if test -f "$ltmain_in"; then
13963 test -f Makefile && make "$ltmain"
13964 fi
13965 fi
13966
13967
13968 ac_ext=c
13969 ac_cpp='$CPP $CPPFLAGS'
13970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13973
13974 CC=$lt_save_CC
13975 LDCXX=$LD
13976 LD=$lt_save_LD
13977 GCC=$lt_save_GCC
13978 with_gnu_ldcxx=$with_gnu_ld
13979 with_gnu_ld=$lt_save_with_gnu_ld
13980 lt_cv_path_LDCXX=$lt_cv_path_LD
13981 lt_cv_path_LD=$lt_save_path_LD
13982 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13983 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13984
13985 else
13986 tagname=""
13987 fi
13988 ;;
13989
13990 F77)
13991 if test -n "$F77" && test "X$F77" != "Xno"; then
13992
13993 ac_ext=f
13994 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13995 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13996 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13997
13998
13999 archive_cmds_need_lc_F77=no
14000 allow_undefined_flag_F77=
14001 always_export_symbols_F77=no
14002 archive_expsym_cmds_F77=
14003 export_dynamic_flag_spec_F77=
14004 hardcode_direct_F77=no
14005 hardcode_libdir_flag_spec_F77=
14006 hardcode_libdir_flag_spec_ld_F77=
14007 hardcode_libdir_separator_F77=
14008 hardcode_minus_L_F77=no
14009 hardcode_automatic_F77=no
14010 module_cmds_F77=
14011 module_expsym_cmds_F77=
14012 link_all_deplibs_F77=unknown
14013 old_archive_cmds_F77=$old_archive_cmds
14014 no_undefined_flag_F77=
14015 whole_archive_flag_spec_F77=
14016 enable_shared_with_static_runtimes_F77=no
14017
14018 # Source file extension for f77 test sources.
14019 ac_ext=f
14020
14021 # Object file extension for compiled f77 test sources.
14022 objext=o
14023 objext_F77=$objext
14024
14025 # Code to be used in simple compile tests
14026 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14027
14028 # Code to be used in simple link tests
14029 lt_simple_link_test_code=" program t\n end\n"
14030
14031 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14032
14033 # If no C compiler was specified, use CC.
14034 LTCC=${LTCC-"$CC"}
14035
14036 # If no C compiler flags were specified, use CFLAGS.
14037 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14038
14039 # Allow CC to be a program name with arguments.
14040 compiler=$CC
14041
14042
14043 # save warnings/boilerplate of simple test code
14044 ac_outfile=conftest.$ac_objext
14045 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14046 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14047 _lt_compiler_boilerplate=`cat conftest.err`
14048 $rm conftest*
14049
14050 ac_outfile=conftest.$ac_objext
14051 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14052 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14053 _lt_linker_boilerplate=`cat conftest.err`
14054 $rm conftest*
14055
14056
14057 # Allow CC to be a program name with arguments.
14058 lt_save_CC="$CC"
14059 CC=${F77-"f77"}
14060 compiler=$CC
14061 compiler_F77=$CC
14062 for cc_temp in $compiler""; do
14063 case $cc_temp in
14064 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14065 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14066 \-*) ;;
14067 *) break;;
14068 esac
14069 done
14070 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14071
14072
14073 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14074 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14075 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14076 echo "${ECHO_T}$can_build_shared" >&6; }
14077
14078 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14079 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14080 test "$can_build_shared" = "no" && enable_shared=no
14081
14082 # On AIX, shared libraries and static libraries use the same namespace, and
14083 # are all built from PIC.
14084 case $host_os in
14085 aix3*)
14086 test "$enable_shared" = yes && enable_static=no
14087 if test -n "$RANLIB"; then
14088 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14089 postinstall_cmds='$RANLIB $lib'
14090 fi
14091 ;;
14092 aix4* | aix5*)
14093 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14094 test "$enable_shared" = yes && enable_static=no
14095 fi
14096 ;;
14097 esac
14098 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14099 echo "${ECHO_T}$enable_shared" >&6; }
14100
14101 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14102 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14103 # Make sure either enable_shared or enable_static is yes.
14104 test "$enable_shared" = yes || enable_static=yes
14105 { echo "$as_me:$LINENO: result: $enable_static" >&5
14106 echo "${ECHO_T}$enable_static" >&6; }
14107
14108 GCC_F77="$G77"
14109 LD_F77="$LD"
14110
14111 lt_prog_compiler_wl_F77=
14112 lt_prog_compiler_pic_F77=
14113 lt_prog_compiler_static_F77=
14114
14115 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14116 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14117
14118 if test "$GCC" = yes; then
14119 lt_prog_compiler_wl_F77='-Wl,'
14120 lt_prog_compiler_static_F77='-static'
14121
14122 case $host_os in
14123 aix*)
14124 # All AIX code is PIC.
14125 if test "$host_cpu" = ia64; then
14126 # AIX 5 now supports IA64 processor
14127 lt_prog_compiler_static_F77='-Bstatic'
14128 fi
14129 ;;
14130
14131 amigaos*)
14132 # FIXME: we need at least 68020 code to build shared libraries, but
14133 # adding the `-m68020' flag to GCC prevents building anything better,
14134 # like `-m68040'.
14135 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14136 ;;
14137
14138 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14139 # PIC is the default for these OSes.
14140 ;;
14141
14142 mingw* | pw32* | os2*)
14143 # This hack is so that the source file can tell whether it is being
14144 # built for inclusion in a dll (and should export symbols for example).
14145 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14146 ;;
14147
14148 darwin* | rhapsody*)
14149 # PIC is the default on this platform
14150 # Common symbols not allowed in MH_DYLIB files
14151 lt_prog_compiler_pic_F77='-fno-common'
14152 ;;
14153
14154 interix3*)
14155 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14156 # Instead, we relocate shared libraries at runtime.
14157 ;;
14158
14159 msdosdjgpp*)
14160 # Just because we use GCC doesn't mean we suddenly get shared libraries
14161 # on systems that don't support them.
14162 lt_prog_compiler_can_build_shared_F77=no
14163 enable_shared=no
14164 ;;
14165
14166 sysv4*MP*)
14167 if test -d /usr/nec; then
14168 lt_prog_compiler_pic_F77=-Kconform_pic
14169 fi
14170 ;;
14171
14172 hpux*)
14173 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14174 # not for PA HP-UX.
14175 case $host_cpu in
14176 hppa*64*|ia64*)
14177 # +Z the default
14178 ;;
14179 *)
14180 lt_prog_compiler_pic_F77='-fPIC'
14181 ;;
14182 esac
14183 ;;
14184
14185 *)
14186 lt_prog_compiler_pic_F77='-fPIC'
14187 ;;
14188 esac
14189 else
14190 # PORTME Check for flag to pass linker flags through the system compiler.
14191 case $host_os in
14192 aix*)
14193 lt_prog_compiler_wl_F77='-Wl,'
14194 if test "$host_cpu" = ia64; then
14195 # AIX 5 now supports IA64 processor
14196 lt_prog_compiler_static_F77='-Bstatic'
14197 else
14198 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14199 fi
14200 ;;
14201 darwin*)
14202 # PIC is the default on this platform
14203 # Common symbols not allowed in MH_DYLIB files
14204 case $cc_basename in
14205 xlc*)
14206 lt_prog_compiler_pic_F77='-qnocommon'
14207 lt_prog_compiler_wl_F77='-Wl,'
14208 ;;
14209 esac
14210 ;;
14211
14212 mingw* | pw32* | os2*)
14213 # This hack is so that the source file can tell whether it is being
14214 # built for inclusion in a dll (and should export symbols for example).
14215 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14216 ;;
14217
14218 hpux9* | hpux10* | hpux11*)
14219 lt_prog_compiler_wl_F77='-Wl,'
14220 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14221 # not for PA HP-UX.
14222 case $host_cpu in
14223 hppa*64*|ia64*)
14224 # +Z the default
14225 ;;
14226 *)
14227 lt_prog_compiler_pic_F77='+Z'
14228 ;;
14229 esac
14230 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14231 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14232 ;;
14233
14234 irix5* | irix6* | nonstopux*)
14235 lt_prog_compiler_wl_F77='-Wl,'
14236 # PIC (with -KPIC) is the default.
14237 lt_prog_compiler_static_F77='-non_shared'
14238 ;;
14239
14240 newsos6)
14241 lt_prog_compiler_pic_F77='-KPIC'
14242 lt_prog_compiler_static_F77='-Bstatic'
14243 ;;
14244
14245 linux* | k*bsd*-gnu)
14246 case $cc_basename in
14247 icc* | ecc*)
14248 lt_prog_compiler_wl_F77='-Wl,'
14249 lt_prog_compiler_pic_F77='-KPIC'
14250 lt_prog_compiler_static_F77='-static'
14251 ;;
14252 pgcc* | pgf77* | pgf90* | pgf95*)
14253 # Portland Group compilers (*not* the Pentium gcc compiler,
14254 # which looks to be a dead project)
14255 lt_prog_compiler_wl_F77='-Wl,'
14256 lt_prog_compiler_pic_F77='-fpic'
14257 lt_prog_compiler_static_F77='-Bstatic'
14258 ;;
14259 ccc*)
14260 lt_prog_compiler_wl_F77='-Wl,'
14261 # All Alpha code is PIC.
14262 lt_prog_compiler_static_F77='-non_shared'
14263 ;;
14264 esac
14265 ;;
14266
14267 osf3* | osf4* | osf5*)
14268 lt_prog_compiler_wl_F77='-Wl,'
14269 # All OSF/1 code is PIC.
14270 lt_prog_compiler_static_F77='-non_shared'
14271 ;;
14272
14273 solaris*)
14274 lt_prog_compiler_pic_F77='-KPIC'
14275 lt_prog_compiler_static_F77='-Bstatic'
14276 case $cc_basename in
14277 f77* | f90* | f95*)
14278 lt_prog_compiler_wl_F77='-Qoption ld ';;
14279 *)
14280 lt_prog_compiler_wl_F77='-Wl,';;
14281 esac
14282 ;;
14283
14284 sunos4*)
14285 lt_prog_compiler_wl_F77='-Qoption ld '
14286 lt_prog_compiler_pic_F77='-PIC'
14287 lt_prog_compiler_static_F77='-Bstatic'
14288 ;;
14289
14290 sysv4 | sysv4.2uw2* | sysv4.3*)
14291 lt_prog_compiler_wl_F77='-Wl,'
14292 lt_prog_compiler_pic_F77='-KPIC'
14293 lt_prog_compiler_static_F77='-Bstatic'
14294 ;;
14295
14296 sysv4*MP*)
14297 if test -d /usr/nec ;then
14298 lt_prog_compiler_pic_F77='-Kconform_pic'
14299 lt_prog_compiler_static_F77='-Bstatic'
14300 fi
14301 ;;
14302
14303 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14304 lt_prog_compiler_wl_F77='-Wl,'
14305 lt_prog_compiler_pic_F77='-KPIC'
14306 lt_prog_compiler_static_F77='-Bstatic'
14307 ;;
14308
14309 unicos*)
14310 lt_prog_compiler_wl_F77='-Wl,'
14311 lt_prog_compiler_can_build_shared_F77=no
14312 ;;
14313
14314 uts4*)
14315 lt_prog_compiler_pic_F77='-pic'
14316 lt_prog_compiler_static_F77='-Bstatic'
14317 ;;
14318
14319 *)
14320 lt_prog_compiler_can_build_shared_F77=no
14321 ;;
14322 esac
14323 fi
14324
14325 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14326 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14327
14328 #
14329 # Check to make sure the PIC flag actually works.
14330 #
14331 if test -n "$lt_prog_compiler_pic_F77"; then
14332
14333 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14334 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14335 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14336 echo $ECHO_N "(cached) $ECHO_C" >&6
14337 else
14338 lt_prog_compiler_pic_works_F77=no
14339 ac_outfile=conftest.$ac_objext
14340 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14341 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14342 # Insert the option either (1) after the last *FLAGS variable, or
14343 # (2) before a word containing "conftest.", or (3) at the end.
14344 # Note that $ac_compile itself does not contain backslashes and begins
14345 # with a dollar sign (not a hyphen), so the echo should work correctly.
14346 # The option is referenced via a variable to avoid confusing sed.
14347 lt_compile=`echo "$ac_compile" | $SED \
14348 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14349 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14350 -e 's:$: $lt_compiler_flag:'`
14351 (eval echo "\"\$as_me:14351: $lt_compile\"" >&5)
14352 (eval "$lt_compile" 2>conftest.err)
14353 ac_status=$?
14354 cat conftest.err >&5
14355 echo "$as_me:14355: \$? = $ac_status" >&5
14356 if (exit $ac_status) && test -s "$ac_outfile"; then
14357 # The compiler can only warn and ignore the option if not recognized
14358 # So say no if there are warnings other than the usual output.
14359 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14360 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14361 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14362 lt_prog_compiler_pic_works_F77=yes
14363 fi
14364 fi
14365 $rm conftest*
14366
14367 fi
14368 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14369 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14370
14371 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14372 case $lt_prog_compiler_pic_F77 in
14373 "" | " "*) ;;
14374 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14375 esac
14376 else
14377 lt_prog_compiler_pic_F77=
14378 lt_prog_compiler_can_build_shared_F77=no
14379 fi
14380
14381 fi
14382 case $host_os in
14383 # For platforms which do not support PIC, -DPIC is meaningless:
14384 *djgpp*)
14385 lt_prog_compiler_pic_F77=
14386 ;;
14387 *)
14388 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14389 ;;
14390 esac
14391
14392 #
14393 # Check to make sure the static flag actually works.
14394 #
14395 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14396 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14397 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14398 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14399 echo $ECHO_N "(cached) $ECHO_C" >&6
14400 else
14401 lt_prog_compiler_static_works_F77=no
14402 save_LDFLAGS="$LDFLAGS"
14403 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14404 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14405 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14406 # The linker can only warn and ignore the option if not recognized
14407 # So say no if there are warnings
14408 if test -s conftest.err; then
14409 # Append any errors to the config.log.
14410 cat conftest.err 1>&5
14411 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14412 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14413 if diff conftest.exp conftest.er2 >/dev/null; then
14414 lt_prog_compiler_static_works_F77=yes
14415 fi
14416 else
14417 lt_prog_compiler_static_works_F77=yes
14418 fi
14419 fi
14420 $rm conftest*
14421 LDFLAGS="$save_LDFLAGS"
14422
14423 fi
14424 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14425 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14426
14427 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14428 :
14429 else
14430 lt_prog_compiler_static_F77=
14431 fi
14432
14433
14434 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14435 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14436 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14437 echo $ECHO_N "(cached) $ECHO_C" >&6
14438 else
14439 lt_cv_prog_compiler_c_o_F77=no
14440 $rm -r conftest 2>/dev/null
14441 mkdir conftest
14442 cd conftest
14443 mkdir out
14444 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14445
14446 lt_compiler_flag="-o out/conftest2.$ac_objext"
14447 # Insert the option either (1) after the last *FLAGS variable, or
14448 # (2) before a word containing "conftest.", or (3) at the end.
14449 # Note that $ac_compile itself does not contain backslashes and begins
14450 # with a dollar sign (not a hyphen), so the echo should work correctly.
14451 lt_compile=`echo "$ac_compile" | $SED \
14452 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14453 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14454 -e 's:$: $lt_compiler_flag:'`
14455 (eval echo "\"\$as_me:14455: $lt_compile\"" >&5)
14456 (eval "$lt_compile" 2>out/conftest.err)
14457 ac_status=$?
14458 cat out/conftest.err >&5
14459 echo "$as_me:14459: \$? = $ac_status" >&5
14460 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14461 then
14462 # The compiler can only warn and ignore the option if not recognized
14463 # So say no if there are warnings
14464 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14465 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14466 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14467 lt_cv_prog_compiler_c_o_F77=yes
14468 fi
14469 fi
14470 chmod u+w . 2>&5
14471 $rm conftest*
14472 # SGI C++ compiler will create directory out/ii_files/ for
14473 # template instantiation
14474 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14475 $rm out/* && rmdir out
14476 cd ..
14477 rmdir conftest
14478 $rm conftest*
14479
14480 fi
14481 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14482 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14483
14484
14485 hard_links="nottested"
14486 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14487 # do not overwrite the value of need_locks provided by the user
14488 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14489 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14490 hard_links=yes
14491 $rm conftest*
14492 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14493 touch conftest.a
14494 ln conftest.a conftest.b 2>&5 || hard_links=no
14495 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14496 { echo "$as_me:$LINENO: result: $hard_links" >&5
14497 echo "${ECHO_T}$hard_links" >&6; }
14498 if test "$hard_links" = no; then
14499 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14500 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14501 need_locks=warn
14502 fi
14503 else
14504 need_locks=no
14505 fi
14506
14507 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14508 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14509
14510 runpath_var=
14511 allow_undefined_flag_F77=
14512 enable_shared_with_static_runtimes_F77=no
14513 archive_cmds_F77=
14514 archive_expsym_cmds_F77=
14515 old_archive_From_new_cmds_F77=
14516 old_archive_from_expsyms_cmds_F77=
14517 export_dynamic_flag_spec_F77=
14518 whole_archive_flag_spec_F77=
14519 thread_safe_flag_spec_F77=
14520 hardcode_libdir_flag_spec_F77=
14521 hardcode_libdir_flag_spec_ld_F77=
14522 hardcode_libdir_separator_F77=
14523 hardcode_direct_F77=no
14524 hardcode_minus_L_F77=no
14525 hardcode_shlibpath_var_F77=unsupported
14526 link_all_deplibs_F77=unknown
14527 hardcode_automatic_F77=no
14528 module_cmds_F77=
14529 module_expsym_cmds_F77=
14530 always_export_symbols_F77=no
14531 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14532 # include_expsyms should be a list of space-separated symbols to be *always*
14533 # included in the symbol list
14534 include_expsyms_F77=
14535 # exclude_expsyms can be an extended regexp of symbols to exclude
14536 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14537 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14538 # as well as any symbol that contains `d'.
14539 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14540 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14541 # platforms (ab)use it in PIC code, but their linkers get confused if
14542 # the symbol is explicitly referenced. Since portable code cannot
14543 # rely on this symbol name, it's probably fine to never include it in
14544 # preloaded symbol tables.
14545 extract_expsyms_cmds=
14546 # Just being paranoid about ensuring that cc_basename is set.
14547 for cc_temp in $compiler""; do
14548 case $cc_temp in
14549 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14550 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14551 \-*) ;;
14552 *) break;;
14553 esac
14554 done
14555 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14556
14557 case $host_os in
14558 cygwin* | mingw* | pw32*)
14559 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14560 # When not using gcc, we currently assume that we are using
14561 # Microsoft Visual C++.
14562 if test "$GCC" != yes; then
14563 with_gnu_ld=no
14564 fi
14565 ;;
14566 interix*)
14567 # we just hope/assume this is gcc and not c89 (= MSVC++)
14568 with_gnu_ld=yes
14569 ;;
14570 openbsd*)
14571 with_gnu_ld=no
14572 ;;
14573 esac
14574
14575 ld_shlibs_F77=yes
14576 if test "$with_gnu_ld" = yes; then
14577 # If archive_cmds runs LD, not CC, wlarc should be empty
14578 wlarc='${wl}'
14579
14580 # Set some defaults for GNU ld with shared library support. These
14581 # are reset later if shared libraries are not supported. Putting them
14582 # here allows them to be overridden if necessary.
14583 runpath_var=LD_RUN_PATH
14584 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14585 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14586 # ancient GNU ld didn't support --whole-archive et. al.
14587 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14588 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14589 else
14590 whole_archive_flag_spec_F77=
14591 fi
14592 supports_anon_versioning=no
14593 case `$LD -v 2>/dev/null` in
14594 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14595 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14596 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14597 *\ 2.11.*) ;; # other 2.11 versions
14598 *) supports_anon_versioning=yes ;;
14599 esac
14600
14601 # See if GNU ld supports shared libraries.
14602 case $host_os in
14603 aix3* | aix4* | aix5*)
14604 # On AIX/PPC, the GNU linker is very broken
14605 if test "$host_cpu" != ia64; then
14606 ld_shlibs_F77=no
14607 cat <<EOF 1>&2
14608
14609 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14610 *** to be unable to reliably create shared libraries on AIX.
14611 *** Therefore, libtool is disabling shared libraries support. If you
14612 *** really care for shared libraries, you may want to modify your PATH
14613 *** so that a non-GNU linker is found, and then restart.
14614
14615 EOF
14616 fi
14617 ;;
14618
14619 amigaos*)
14620 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)'
14621 hardcode_libdir_flag_spec_F77='-L$libdir'
14622 hardcode_minus_L_F77=yes
14623
14624 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
14625 # that the semantics of dynamic libraries on AmigaOS, at least up
14626 # to version 4, is to share data among multiple programs linked
14627 # with the same dynamic library. Since this doesn't match the
14628 # behavior of shared libraries on other platforms, we can't use
14629 # them.
14630 ld_shlibs_F77=no
14631 ;;
14632
14633 beos*)
14634 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14635 allow_undefined_flag_F77=unsupported
14636 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
14637 # support --undefined. This deserves some investigation. FIXME
14638 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14639 else
14640 ld_shlibs_F77=no
14641 fi
14642 ;;
14643
14644 cygwin* | mingw* | pw32*)
14645 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14646 # as there is no search path for DLLs.
14647 hardcode_libdir_flag_spec_F77='-L$libdir'
14648 allow_undefined_flag_F77=unsupported
14649 always_export_symbols_F77=no
14650 enable_shared_with_static_runtimes_F77=yes
14651 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14652
14653 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14654 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14655 # If the export-symbols file already is a .def file (1st line
14656 # is EXPORTS), use it as is; otherwise, prepend...
14657 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14658 cp $export_symbols $output_objdir/$soname.def;
14659 else
14660 echo EXPORTS > $output_objdir/$soname.def;
14661 cat $export_symbols >> $output_objdir/$soname.def;
14662 fi~
14663 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14664 else
14665 ld_shlibs_F77=no
14666 fi
14667 ;;
14668
14669 interix3*)
14670 hardcode_direct_F77=no
14671 hardcode_shlibpath_var_F77=no
14672 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14673 export_dynamic_flag_spec_F77='${wl}-E'
14674 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14675 # Instead, shared libraries are loaded at an image base (0x10000000 by
14676 # default) and relocated if they conflict, which is a slow very memory
14677 # consuming and fragmenting process. To avoid this, we pick a random,
14678 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14679 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14680 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'
14681 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'
14682 ;;
14683
14684 linux* | k*bsd*-gnu)
14685 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14686 tmp_addflag=
14687 case $cc_basename,$host_cpu in
14688 pgcc*) # Portland Group C compiler
14689 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'
14690 tmp_addflag=' $pic_flag'
14691 ;;
14692 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14693 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'
14694 tmp_addflag=' $pic_flag -Mnomain' ;;
14695 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14696 tmp_addflag=' -i_dynamic' ;;
14697 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14698 tmp_addflag=' -i_dynamic -nofor_main' ;;
14699 ifc* | ifort*) # Intel Fortran compiler
14700 tmp_addflag=' -nofor_main' ;;
14701 esac
14702 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14703
14704 if test $supports_anon_versioning = yes; then
14705 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14706 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14707 $echo "local: *; };" >> $output_objdir/$libname.ver~
14708 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14709 fi
14710 link_all_deplibs_F77=no
14711 else
14712 ld_shlibs_F77=no
14713 fi
14714 ;;
14715
14716 netbsd* | netbsdelf*-gnu)
14717 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14718 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14719 wlarc=
14720 else
14721 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14722 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14723 fi
14724 ;;
14725
14726 solaris*)
14727 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14728 ld_shlibs_F77=no
14729 cat <<EOF 1>&2
14730
14731 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14732 *** create shared libraries on Solaris systems. Therefore, libtool
14733 *** is disabling shared libraries support. We urge you to upgrade GNU
14734 *** binutils to release 2.9.1 or newer. Another option is to modify
14735 *** your PATH or compiler configuration so that the native linker is
14736 *** used, and then restart.
14737
14738 EOF
14739 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14740 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14741 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14742 else
14743 ld_shlibs_F77=no
14744 fi
14745 ;;
14746
14747 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14748 case `$LD -v 2>&1` in
14749 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14750 ld_shlibs_F77=no
14751 cat <<_LT_EOF 1>&2
14752
14753 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14754 *** reliably create shared libraries on SCO systems. Therefore, libtool
14755 *** is disabling shared libraries support. We urge you to upgrade GNU
14756 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14757 *** your PATH or compiler configuration so that the native linker is
14758 *** used, and then restart.
14759
14760 _LT_EOF
14761 ;;
14762 *)
14763 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14764 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14765 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14766 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14767 else
14768 ld_shlibs_F77=no
14769 fi
14770 ;;
14771 esac
14772 ;;
14773
14774 sunos4*)
14775 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14776 wlarc=
14777 hardcode_direct_F77=yes
14778 hardcode_shlibpath_var_F77=no
14779 ;;
14780
14781 *)
14782 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14783 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14784 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14785 else
14786 ld_shlibs_F77=no
14787 fi
14788 ;;
14789 esac
14790
14791 if test "$ld_shlibs_F77" = no; then
14792 runpath_var=
14793 hardcode_libdir_flag_spec_F77=
14794 export_dynamic_flag_spec_F77=
14795 whole_archive_flag_spec_F77=
14796 fi
14797 else
14798 # PORTME fill in a description of your system's linker (not GNU ld)
14799 case $host_os in
14800 aix3*)
14801 allow_undefined_flag_F77=unsupported
14802 always_export_symbols_F77=yes
14803 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'
14804 # Note: this linker hardcodes the directories in LIBPATH if there
14805 # are no directories specified by -L.
14806 hardcode_minus_L_F77=yes
14807 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14808 # Neither direct hardcoding nor static linking is supported with a
14809 # broken collect2.
14810 hardcode_direct_F77=unsupported
14811 fi
14812 ;;
14813
14814 aix4* | aix5*)
14815 if test "$host_cpu" = ia64; then
14816 # On IA64, the linker does run time linking by default, so we don't
14817 # have to do anything special.
14818 aix_use_runtimelinking=no
14819 exp_sym_flag='-Bexport'
14820 no_entry_flag=""
14821 else
14822 # If we're using GNU nm, then we don't want the "-C" option.
14823 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14824 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14825 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'
14826 else
14827 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'
14828 fi
14829 aix_use_runtimelinking=no
14830
14831 # Test if we are trying to use run time linking or normal
14832 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14833 # need to do runtime linking.
14834 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14835 for ld_flag in $LDFLAGS; do
14836 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14837 aix_use_runtimelinking=yes
14838 break
14839 fi
14840 done
14841 ;;
14842 esac
14843
14844 exp_sym_flag='-bexport'
14845 no_entry_flag='-bnoentry'
14846 fi
14847
14848 # When large executables or shared objects are built, AIX ld can
14849 # have problems creating the table of contents. If linking a library
14850 # or program results in "error TOC overflow" add -mminimal-toc to
14851 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14852 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14853
14854 archive_cmds_F77=''
14855 hardcode_direct_F77=yes
14856 hardcode_libdir_separator_F77=':'
14857 link_all_deplibs_F77=yes
14858
14859 if test "$GCC" = yes; then
14860 case $host_os in aix4.[012]|aix4.[012].*)
14861 # We only want to do this on AIX 4.2 and lower, the check
14862 # below for broken collect2 doesn't work under 4.3+
14863 collect2name=`${CC} -print-prog-name=collect2`
14864 if test -f "$collect2name" && \
14865 strings "$collect2name" | grep resolve_lib_name >/dev/null
14866 then
14867 # We have reworked collect2
14868 hardcode_direct_F77=yes
14869 else
14870 # We have old collect2
14871 hardcode_direct_F77=unsupported
14872 # It fails to find uninstalled libraries when the uninstalled
14873 # path is not listed in the libpath. Setting hardcode_minus_L
14874 # to unsupported forces relinking
14875 hardcode_minus_L_F77=yes
14876 hardcode_libdir_flag_spec_F77='-L$libdir'
14877 hardcode_libdir_separator_F77=
14878 fi
14879 ;;
14880 esac
14881 shared_flag='-shared'
14882 if test "$aix_use_runtimelinking" = yes; then
14883 shared_flag="$shared_flag "'${wl}-G'
14884 fi
14885 else
14886 # not using gcc
14887 if test "$host_cpu" = ia64; then
14888 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14889 # chokes on -Wl,-G. The following line is correct:
14890 shared_flag='-G'
14891 else
14892 if test "$aix_use_runtimelinking" = yes; then
14893 shared_flag='${wl}-G'
14894 else
14895 shared_flag='${wl}-bM:SRE'
14896 fi
14897 fi
14898 fi
14899
14900 # It seems that -bexpall does not export symbols beginning with
14901 # underscore (_), so it is better to generate a list of symbols to export.
14902 always_export_symbols_F77=yes
14903 if test "$aix_use_runtimelinking" = yes; then
14904 # Warning - without using the other runtime loading flags (-brtl),
14905 # -berok will link without error, but may produce a broken library.
14906 allow_undefined_flag_F77='-berok'
14907 # Determine the default libpath from the value encoded in an empty executable.
14908 cat >conftest.$ac_ext <<_ACEOF
14909 program main
14910
14911 end
14912 _ACEOF
14913 rm -f conftest.$ac_objext conftest$ac_exeext
14914 if { (ac_try="$ac_link"
14915 case "(($ac_try" in
14916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14917 *) ac_try_echo=$ac_try;;
14918 esac
14919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14920 (eval "$ac_link") 2>conftest.er1
14921 ac_status=$?
14922 grep -v '^ *+' conftest.er1 >conftest.err
14923 rm -f conftest.er1
14924 cat conftest.err >&5
14925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14926 (exit $ac_status); } &&
14927 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14928 { (case "(($ac_try" in
14929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14930 *) ac_try_echo=$ac_try;;
14931 esac
14932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14933 (eval "$ac_try") 2>&5
14934 ac_status=$?
14935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14936 (exit $ac_status); }; } &&
14937 { ac_try='test -s conftest$ac_exeext'
14938 { (case "(($ac_try" in
14939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14940 *) ac_try_echo=$ac_try;;
14941 esac
14942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14943 (eval "$ac_try") 2>&5
14944 ac_status=$?
14945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14946 (exit $ac_status); }; }; then
14947
14948 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14949 }'`
14950 # Check for a 64-bit object if we didn't find anything.
14951 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; }
14952 }'`; fi
14953 else
14954 echo "$as_me: failed program was:" >&5
14955 sed 's/^/| /' conftest.$ac_ext >&5
14956
14957
14958 fi
14959
14960 rm -f core conftest.err conftest.$ac_objext \
14961 conftest$ac_exeext conftest.$ac_ext
14962 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14963
14964 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14965 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"
14966 else
14967 if test "$host_cpu" = ia64; then
14968 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14969 allow_undefined_flag_F77="-z nodefs"
14970 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"
14971 else
14972 # Determine the default libpath from the value encoded in an empty executable.
14973 cat >conftest.$ac_ext <<_ACEOF
14974 program main
14975
14976 end
14977 _ACEOF
14978 rm -f conftest.$ac_objext conftest$ac_exeext
14979 if { (ac_try="$ac_link"
14980 case "(($ac_try" in
14981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14982 *) ac_try_echo=$ac_try;;
14983 esac
14984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14985 (eval "$ac_link") 2>conftest.er1
14986 ac_status=$?
14987 grep -v '^ *+' conftest.er1 >conftest.err
14988 rm -f conftest.er1
14989 cat conftest.err >&5
14990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991 (exit $ac_status); } &&
14992 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14993 { (case "(($ac_try" in
14994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14995 *) ac_try_echo=$ac_try;;
14996 esac
14997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14998 (eval "$ac_try") 2>&5
14999 ac_status=$?
15000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001 (exit $ac_status); }; } &&
15002 { ac_try='test -s conftest$ac_exeext'
15003 { (case "(($ac_try" in
15004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15005 *) ac_try_echo=$ac_try;;
15006 esac
15007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15008 (eval "$ac_try") 2>&5
15009 ac_status=$?
15010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15011 (exit $ac_status); }; }; then
15012
15013 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15014 }'`
15015 # Check for a 64-bit object if we didn't find anything.
15016 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; }
15017 }'`; fi
15018 else
15019 echo "$as_me: failed program was:" >&5
15020 sed 's/^/| /' conftest.$ac_ext >&5
15021
15022
15023 fi
15024
15025 rm -f core conftest.err conftest.$ac_objext \
15026 conftest$ac_exeext conftest.$ac_ext
15027 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15028
15029 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15030 # Warning - without using the other run time loading flags,
15031 # -berok will link without error, but may produce a broken library.
15032 no_undefined_flag_F77=' ${wl}-bernotok'
15033 allow_undefined_flag_F77=' ${wl}-berok'
15034 # Exported symbols can be pulled into shared objects from archives
15035 whole_archive_flag_spec_F77='$convenience'
15036 archive_cmds_need_lc_F77=yes
15037 # This is similar to how AIX traditionally builds its shared libraries.
15038 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'
15039 fi
15040 fi
15041 ;;
15042
15043 amigaos*)
15044 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)'
15045 hardcode_libdir_flag_spec_F77='-L$libdir'
15046 hardcode_minus_L_F77=yes
15047 # see comment about different semantics on the GNU ld section
15048 ld_shlibs_F77=no
15049 ;;
15050
15051 bsdi[45]*)
15052 export_dynamic_flag_spec_F77=-rdynamic
15053 ;;
15054
15055 cygwin* | mingw* | pw32*)
15056 # When not using gcc, we currently assume that we are using
15057 # Microsoft Visual C++.
15058 # hardcode_libdir_flag_spec is actually meaningless, as there is
15059 # no search path for DLLs.
15060 hardcode_libdir_flag_spec_F77=' '
15061 allow_undefined_flag_F77=unsupported
15062 # Tell ltmain to make .lib files, not .a files.
15063 libext=lib
15064 # Tell ltmain to make .dll files, not .so files.
15065 shrext_cmds=".dll"
15066 # FIXME: Setting linknames here is a bad hack.
15067 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15068 # The linker will automatically build a .lib file if we build a DLL.
15069 old_archive_From_new_cmds_F77='true'
15070 # FIXME: Should let the user specify the lib program.
15071 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15072 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15073 enable_shared_with_static_runtimes_F77=yes
15074 ;;
15075
15076 darwin* | rhapsody*)
15077 case $host_os in
15078 rhapsody* | darwin1.[012])
15079 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15080 ;;
15081 *) # Darwin 1.3 on
15082 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15083 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15084 else
15085 case ${MACOSX_DEPLOYMENT_TARGET} in
15086 10.[012])
15087 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15088 ;;
15089 10.*)
15090 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15091 ;;
15092 esac
15093 fi
15094 ;;
15095 esac
15096 archive_cmds_need_lc_F77=no
15097 hardcode_direct_F77=no
15098 hardcode_automatic_F77=yes
15099 hardcode_shlibpath_var_F77=unsupported
15100 whole_archive_flag_spec_F77=''
15101 link_all_deplibs_F77=yes
15102 if test "$GCC" = yes ; then
15103 output_verbose_link_cmd='echo'
15104 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15105 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15106 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15107 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}'
15108 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}'
15109 else
15110 case $cc_basename in
15111 xlc*)
15112 output_verbose_link_cmd='echo'
15113 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15114 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15115 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15116 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}'
15117 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}'
15118 ;;
15119 *)
15120 ld_shlibs_F77=no
15121 ;;
15122 esac
15123 fi
15124 ;;
15125
15126 dgux*)
15127 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15128 hardcode_libdir_flag_spec_F77='-L$libdir'
15129 hardcode_shlibpath_var_F77=no
15130 ;;
15131
15132 freebsd1*)
15133 ld_shlibs_F77=no
15134 ;;
15135
15136 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15137 # support. Future versions do this automatically, but an explicit c++rt0.o
15138 # does not break anything, and helps significantly (at the cost of a little
15139 # extra space).
15140 freebsd2.2*)
15141 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15142 hardcode_libdir_flag_spec_F77='-R$libdir'
15143 hardcode_direct_F77=yes
15144 hardcode_shlibpath_var_F77=no
15145 ;;
15146
15147 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15148 freebsd2*)
15149 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15150 hardcode_direct_F77=yes
15151 hardcode_minus_L_F77=yes
15152 hardcode_shlibpath_var_F77=no
15153 ;;
15154
15155 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15156 freebsd* | dragonfly*)
15157 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15158 hardcode_libdir_flag_spec_F77='-R$libdir'
15159 hardcode_direct_F77=yes
15160 hardcode_shlibpath_var_F77=no
15161 ;;
15162
15163 hpux9*)
15164 if test "$GCC" = yes; then
15165 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'
15166 else
15167 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'
15168 fi
15169 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15170 hardcode_libdir_separator_F77=:
15171 hardcode_direct_F77=yes
15172
15173 # hardcode_minus_L: Not really in the search PATH,
15174 # but as the default location of the library.
15175 hardcode_minus_L_F77=yes
15176 export_dynamic_flag_spec_F77='${wl}-E'
15177 ;;
15178
15179 hpux10*)
15180 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15181 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15182 else
15183 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15184 fi
15185 if test "$with_gnu_ld" = no; then
15186 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15187 hardcode_libdir_separator_F77=:
15188
15189 hardcode_direct_F77=yes
15190 export_dynamic_flag_spec_F77='${wl}-E'
15191
15192 # hardcode_minus_L: Not really in the search PATH,
15193 # but as the default location of the library.
15194 hardcode_minus_L_F77=yes
15195 fi
15196 ;;
15197
15198 hpux11*)
15199 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15200 case $host_cpu in
15201 hppa*64*)
15202 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15203 ;;
15204 ia64*)
15205 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15206 ;;
15207 *)
15208 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15209 ;;
15210 esac
15211 else
15212 case $host_cpu in
15213 hppa*64*)
15214 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15215 ;;
15216 ia64*)
15217 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15218 ;;
15219 *)
15220 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15221 ;;
15222 esac
15223 fi
15224 if test "$with_gnu_ld" = no; then
15225 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15226 hardcode_libdir_separator_F77=:
15227
15228 case $host_cpu in
15229 hppa*64*|ia64*)
15230 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15231 hardcode_direct_F77=no
15232 hardcode_shlibpath_var_F77=no
15233 ;;
15234 *)
15235 hardcode_direct_F77=yes
15236 export_dynamic_flag_spec_F77='${wl}-E'
15237
15238 # hardcode_minus_L: Not really in the search PATH,
15239 # but as the default location of the library.
15240 hardcode_minus_L_F77=yes
15241 ;;
15242 esac
15243 fi
15244 ;;
15245
15246 irix5* | irix6* | nonstopux*)
15247 if test "$GCC" = yes; then
15248 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'
15249 else
15250 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'
15251 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15252 fi
15253 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15254 hardcode_libdir_separator_F77=:
15255 link_all_deplibs_F77=yes
15256 ;;
15257
15258 netbsd* | netbsdelf*-gnu)
15259 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15260 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15261 else
15262 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15263 fi
15264 hardcode_libdir_flag_spec_F77='-R$libdir'
15265 hardcode_direct_F77=yes
15266 hardcode_shlibpath_var_F77=no
15267 ;;
15268
15269 newsos6)
15270 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15271 hardcode_direct_F77=yes
15272 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15273 hardcode_libdir_separator_F77=:
15274 hardcode_shlibpath_var_F77=no
15275 ;;
15276
15277 openbsd*)
15278 hardcode_direct_F77=yes
15279 hardcode_shlibpath_var_F77=no
15280 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15281 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15282 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15283 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15284 export_dynamic_flag_spec_F77='${wl}-E'
15285 else
15286 case $host_os in
15287 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15288 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15289 hardcode_libdir_flag_spec_F77='-R$libdir'
15290 ;;
15291 *)
15292 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15293 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15294 ;;
15295 esac
15296 fi
15297 ;;
15298
15299 os2*)
15300 hardcode_libdir_flag_spec_F77='-L$libdir'
15301 hardcode_minus_L_F77=yes
15302 allow_undefined_flag_F77=unsupported
15303 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'
15304 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15305 ;;
15306
15307 osf3*)
15308 if test "$GCC" = yes; then
15309 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15310 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'
15311 else
15312 allow_undefined_flag_F77=' -expect_unresolved \*'
15313 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'
15314 fi
15315 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15316 hardcode_libdir_separator_F77=:
15317 ;;
15318
15319 osf4* | osf5*) # as osf3* with the addition of -msym flag
15320 if test "$GCC" = yes; then
15321 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15322 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'
15323 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15324 else
15325 allow_undefined_flag_F77=' -expect_unresolved \*'
15326 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'
15327 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~
15328 $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'
15329
15330 # Both c and cxx compiler support -rpath directly
15331 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15332 fi
15333 hardcode_libdir_separator_F77=:
15334 ;;
15335
15336 solaris*)
15337 no_undefined_flag_F77=' -z text'
15338 if test "$GCC" = yes; then
15339 wlarc='${wl}'
15340 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15341 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15342 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15343 else
15344 wlarc=''
15345 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15346 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15347 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15348 fi
15349 hardcode_libdir_flag_spec_F77='-R$libdir'
15350 hardcode_shlibpath_var_F77=no
15351 case $host_os in
15352 solaris2.[0-5] | solaris2.[0-5].*) ;;
15353 *)
15354 # The compiler driver will combine linker options so we
15355 # cannot just pass the convience library names through
15356 # without $wl, iff we do not link with $LD.
15357 # Luckily, gcc supports the same syntax we need for Sun Studio.
15358 # Supported since Solaris 2.6 (maybe 2.5.1?)
15359 case $wlarc in
15360 '')
15361 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15362 *)
15363 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' ;;
15364 esac ;;
15365 esac
15366 link_all_deplibs_F77=yes
15367 ;;
15368
15369 sunos4*)
15370 if test "x$host_vendor" = xsequent; then
15371 # Use $CC to link under sequent, because it throws in some extra .o
15372 # files that make .init and .fini sections work.
15373 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15374 else
15375 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15376 fi
15377 hardcode_libdir_flag_spec_F77='-L$libdir'
15378 hardcode_direct_F77=yes
15379 hardcode_minus_L_F77=yes
15380 hardcode_shlibpath_var_F77=no
15381 ;;
15382
15383 sysv4)
15384 case $host_vendor in
15385 sni)
15386 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15387 hardcode_direct_F77=yes # is this really true???
15388 ;;
15389 siemens)
15390 ## LD is ld it makes a PLAMLIB
15391 ## CC just makes a GrossModule.
15392 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15393 reload_cmds_F77='$CC -r -o $output$reload_objs'
15394 hardcode_direct_F77=no
15395 ;;
15396 motorola)
15397 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15398 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15399 ;;
15400 esac
15401 runpath_var='LD_RUN_PATH'
15402 hardcode_shlibpath_var_F77=no
15403 ;;
15404
15405 sysv4.3*)
15406 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15407 hardcode_shlibpath_var_F77=no
15408 export_dynamic_flag_spec_F77='-Bexport'
15409 ;;
15410
15411 sysv4*MP*)
15412 if test -d /usr/nec; then
15413 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15414 hardcode_shlibpath_var_F77=no
15415 runpath_var=LD_RUN_PATH
15416 hardcode_runpath_var=yes
15417 ld_shlibs_F77=yes
15418 fi
15419 ;;
15420
15421 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15422 no_undefined_flag_F77='${wl}-z,text'
15423 archive_cmds_need_lc_F77=no
15424 hardcode_shlibpath_var_F77=no
15425 runpath_var='LD_RUN_PATH'
15426
15427 if test "$GCC" = yes; then
15428 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15429 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15430 else
15431 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15432 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15433 fi
15434 ;;
15435
15436 sysv5* | sco3.2v5* | sco5v6*)
15437 # Note: We can NOT use -z defs as we might desire, because we do not
15438 # link with -lc, and that would cause any symbols used from libc to
15439 # always be unresolved, which means just about no library would
15440 # ever link correctly. If we're not using GNU ld we use -z text
15441 # though, which does catch some bad symbols but isn't as heavy-handed
15442 # as -z defs.
15443 no_undefined_flag_F77='${wl}-z,text'
15444 allow_undefined_flag_F77='${wl}-z,nodefs'
15445 archive_cmds_need_lc_F77=no
15446 hardcode_shlibpath_var_F77=no
15447 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15448 hardcode_libdir_separator_F77=':'
15449 link_all_deplibs_F77=yes
15450 export_dynamic_flag_spec_F77='${wl}-Bexport'
15451 runpath_var='LD_RUN_PATH'
15452
15453 if test "$GCC" = yes; then
15454 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15455 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15456 else
15457 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15458 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15459 fi
15460 ;;
15461
15462 uts4*)
15463 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15464 hardcode_libdir_flag_spec_F77='-L$libdir'
15465 hardcode_shlibpath_var_F77=no
15466 ;;
15467
15468 *)
15469 ld_shlibs_F77=no
15470 ;;
15471 esac
15472 fi
15473
15474 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15475 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15476 test "$ld_shlibs_F77" = no && can_build_shared=no
15477
15478 #
15479 # Do we need to explicitly link libc?
15480 #
15481 case "x$archive_cmds_need_lc_F77" in
15482 x|xyes)
15483 # Assume -lc should be added
15484 archive_cmds_need_lc_F77=yes
15485
15486 if test "$enable_shared" = yes && test "$GCC" = yes; then
15487 case $archive_cmds_F77 in
15488 *'~'*)
15489 # FIXME: we may have to deal with multi-command sequences.
15490 ;;
15491 '$CC '*)
15492 # Test whether the compiler implicitly links with -lc since on some
15493 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15494 # to ld, don't add -lc before -lgcc.
15495 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15496 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15497 $rm conftest*
15498 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15499
15500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15501 (eval $ac_compile) 2>&5
15502 ac_status=$?
15503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15504 (exit $ac_status); } 2>conftest.err; then
15505 soname=conftest
15506 lib=conftest
15507 libobjs=conftest.$ac_objext
15508 deplibs=
15509 wl=$lt_prog_compiler_wl_F77
15510 pic_flag=$lt_prog_compiler_pic_F77
15511 compiler_flags=-v
15512 linker_flags=-v
15513 verstring=
15514 output_objdir=.
15515 libname=conftest
15516 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15517 allow_undefined_flag_F77=
15518 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15519 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15520 ac_status=$?
15521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15522 (exit $ac_status); }
15523 then
15524 archive_cmds_need_lc_F77=no
15525 else
15526 archive_cmds_need_lc_F77=yes
15527 fi
15528 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15529 else
15530 cat conftest.err 1>&5
15531 fi
15532 $rm conftest*
15533 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15534 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15535 ;;
15536 esac
15537 fi
15538 ;;
15539 esac
15540
15541 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15542 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15543 library_names_spec=
15544 libname_spec='lib$name'
15545 soname_spec=
15546 shrext_cmds=".so"
15547 postinstall_cmds=
15548 postuninstall_cmds=
15549 finish_cmds=
15550 finish_eval=
15551 shlibpath_var=
15552 shlibpath_overrides_runpath=unknown
15553 version_type=none
15554 dynamic_linker="$host_os ld.so"
15555 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15556 if test "$GCC" = yes; then
15557 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15558 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15559 # if the path contains ";" then we assume it to be the separator
15560 # otherwise default to the standard path separator (i.e. ":") - it is
15561 # assumed that no part of a normal pathname contains ";" but that should
15562 # okay in the real world where ";" in dirpaths is itself problematic.
15563 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15564 else
15565 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15566 fi
15567 else
15568 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15569 fi
15570 need_lib_prefix=unknown
15571 hardcode_into_libs=no
15572
15573 # when you set need_version to no, make sure it does not cause -set_version
15574 # flags to be left without arguments
15575 need_version=unknown
15576
15577 case $host_os in
15578 aix3*)
15579 version_type=linux
15580 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15581 shlibpath_var=LIBPATH
15582
15583 # AIX 3 has no versioning support, so we append a major version to the name.
15584 soname_spec='${libname}${release}${shared_ext}$major'
15585 ;;
15586
15587 aix4* | aix5*)
15588 version_type=linux
15589 need_lib_prefix=no
15590 need_version=no
15591 hardcode_into_libs=yes
15592 if test "$host_cpu" = ia64; then
15593 # AIX 5 supports IA64
15594 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15595 shlibpath_var=LD_LIBRARY_PATH
15596 else
15597 # With GCC up to 2.95.x, collect2 would create an import file
15598 # for dependence libraries. The import file would start with
15599 # the line `#! .'. This would cause the generated library to
15600 # depend on `.', always an invalid library. This was fixed in
15601 # development snapshots of GCC prior to 3.0.
15602 case $host_os in
15603 aix4 | aix4.[01] | aix4.[01].*)
15604 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15605 echo ' yes '
15606 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15607 :
15608 else
15609 can_build_shared=no
15610 fi
15611 ;;
15612 esac
15613 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15614 # soname into executable. Probably we can add versioning support to
15615 # collect2, so additional links can be useful in future.
15616 if test "$aix_use_runtimelinking" = yes; then
15617 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15618 # instead of lib<name>.a to let people know that these are not
15619 # typical AIX shared libraries.
15620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15621 else
15622 # We preserve .a as extension for shared libraries through AIX4.2
15623 # and later when we are not doing run time linking.
15624 library_names_spec='${libname}${release}.a $libname.a'
15625 soname_spec='${libname}${release}${shared_ext}$major'
15626 fi
15627 shlibpath_var=LIBPATH
15628 fi
15629 ;;
15630
15631 amigaos*)
15632 library_names_spec='$libname.ixlibrary $libname.a'
15633 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15634 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'
15635 ;;
15636
15637 beos*)
15638 library_names_spec='${libname}${shared_ext}'
15639 dynamic_linker="$host_os ld.so"
15640 shlibpath_var=LIBRARY_PATH
15641 ;;
15642
15643 bsdi[45]*)
15644 version_type=linux
15645 need_version=no
15646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15647 soname_spec='${libname}${release}${shared_ext}$major'
15648 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15649 shlibpath_var=LD_LIBRARY_PATH
15650 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15651 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15652 # the default ld.so.conf also contains /usr/contrib/lib and
15653 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15654 # libtool to hard-code these into programs
15655 ;;
15656
15657 cygwin* | mingw* | pw32*)
15658 version_type=windows
15659 shrext_cmds=".dll"
15660 need_version=no
15661 need_lib_prefix=no
15662
15663 case $GCC,$host_os in
15664 yes,cygwin* | yes,mingw* | yes,pw32*)
15665 library_names_spec='$libname.dll.a'
15666 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15667 postinstall_cmds='base_file=`basename \${file}`~
15668 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15669 dldir=$destdir/`dirname \$dlpath`~
15670 test -d \$dldir || mkdir -p \$dldir~
15671 $install_prog $dir/$dlname \$dldir/$dlname~
15672 chmod a+x \$dldir/$dlname'
15673 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15674 dlpath=$dir/\$dldll~
15675 $rm \$dlpath'
15676 shlibpath_overrides_runpath=yes
15677
15678 case $host_os in
15679 cygwin*)
15680 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15681 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15682 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15683 ;;
15684 mingw*)
15685 # MinGW DLLs use traditional 'lib' prefix
15686 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15687 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15688 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15689 # It is most probably a Windows format PATH printed by
15690 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15691 # path with ; separators, and with drive letters. We can handle the
15692 # drive letters (cygwin fileutils understands them), so leave them,
15693 # especially as we might pass files found there to a mingw objdump,
15694 # which wouldn't understand a cygwinified path. Ahh.
15695 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15696 else
15697 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15698 fi
15699 ;;
15700 pw32*)
15701 # pw32 DLLs use 'pw' prefix rather than 'lib'
15702 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15703 ;;
15704 esac
15705 ;;
15706
15707 *)
15708 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15709 ;;
15710 esac
15711 dynamic_linker='Win32 ld.exe'
15712 # FIXME: first we should search . and the directory the executable is in
15713 shlibpath_var=PATH
15714 ;;
15715
15716 darwin* | rhapsody*)
15717 dynamic_linker="$host_os dyld"
15718 version_type=darwin
15719 need_lib_prefix=no
15720 need_version=no
15721 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15722 soname_spec='${libname}${release}${major}$shared_ext'
15723 shlibpath_overrides_runpath=yes
15724 shlibpath_var=DYLD_LIBRARY_PATH
15725 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15726 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15727 if test "$GCC" = yes; then
15728 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"`
15729 else
15730 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15731 fi
15732 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15733 ;;
15734
15735 dgux*)
15736 version_type=linux
15737 need_lib_prefix=no
15738 need_version=no
15739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15740 soname_spec='${libname}${release}${shared_ext}$major'
15741 shlibpath_var=LD_LIBRARY_PATH
15742 ;;
15743
15744 freebsd1*)
15745 dynamic_linker=no
15746 ;;
15747
15748 freebsd* | dragonfly*)
15749 # DragonFly does not have aout. When/if they implement a new
15750 # versioning mechanism, adjust this.
15751 if test -x /usr/bin/objformat; then
15752 objformat=`/usr/bin/objformat`
15753 else
15754 case $host_os in
15755 freebsd[123]*) objformat=aout ;;
15756 *) objformat=elf ;;
15757 esac
15758 fi
15759 version_type=freebsd-$objformat
15760 case $version_type in
15761 freebsd-elf*)
15762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15763 need_version=no
15764 need_lib_prefix=no
15765 ;;
15766 freebsd-*)
15767 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15768 need_version=yes
15769 ;;
15770 esac
15771 shlibpath_var=LD_LIBRARY_PATH
15772 case $host_os in
15773 freebsd2*)
15774 shlibpath_overrides_runpath=yes
15775 ;;
15776 freebsd3.[01]* | freebsdelf3.[01]*)
15777 shlibpath_overrides_runpath=yes
15778 hardcode_into_libs=yes
15779 ;;
15780 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15781 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15782 shlibpath_overrides_runpath=no
15783 hardcode_into_libs=yes
15784 ;;
15785 freebsd*) # from 4.6 on
15786 shlibpath_overrides_runpath=yes
15787 hardcode_into_libs=yes
15788 ;;
15789 esac
15790 ;;
15791
15792 gnu*)
15793 version_type=linux
15794 need_lib_prefix=no
15795 need_version=no
15796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15797 soname_spec='${libname}${release}${shared_ext}$major'
15798 shlibpath_var=LD_LIBRARY_PATH
15799 hardcode_into_libs=yes
15800 ;;
15801
15802 hpux9* | hpux10* | hpux11*)
15803 # Give a soname corresponding to the major version so that dld.sl refuses to
15804 # link against other versions.
15805 version_type=sunos
15806 need_lib_prefix=no
15807 need_version=no
15808 case $host_cpu in
15809 ia64*)
15810 shrext_cmds='.so'
15811 hardcode_into_libs=yes
15812 dynamic_linker="$host_os dld.so"
15813 shlibpath_var=LD_LIBRARY_PATH
15814 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15816 soname_spec='${libname}${release}${shared_ext}$major'
15817 if test "X$HPUX_IA64_MODE" = X32; then
15818 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15819 else
15820 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15821 fi
15822 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15823 ;;
15824 hppa*64*)
15825 shrext_cmds='.sl'
15826 hardcode_into_libs=yes
15827 dynamic_linker="$host_os dld.sl"
15828 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15829 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15831 soname_spec='${libname}${release}${shared_ext}$major'
15832 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15833 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15834 ;;
15835 *)
15836 shrext_cmds='.sl'
15837 dynamic_linker="$host_os dld.sl"
15838 shlibpath_var=SHLIB_PATH
15839 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15841 soname_spec='${libname}${release}${shared_ext}$major'
15842 ;;
15843 esac
15844 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15845 postinstall_cmds='chmod 555 $lib'
15846 ;;
15847
15848 interix3*)
15849 version_type=linux
15850 need_lib_prefix=no
15851 need_version=no
15852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15853 soname_spec='${libname}${release}${shared_ext}$major'
15854 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15855 shlibpath_var=LD_LIBRARY_PATH
15856 shlibpath_overrides_runpath=no
15857 hardcode_into_libs=yes
15858 ;;
15859
15860 irix5* | irix6* | nonstopux*)
15861 case $host_os in
15862 nonstopux*) version_type=nonstopux ;;
15863 *)
15864 if test "$lt_cv_prog_gnu_ld" = yes; then
15865 version_type=linux
15866 else
15867 version_type=irix
15868 fi ;;
15869 esac
15870 need_lib_prefix=no
15871 need_version=no
15872 soname_spec='${libname}${release}${shared_ext}$major'
15873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15874 case $host_os in
15875 irix5* | nonstopux*)
15876 libsuff= shlibsuff=
15877 ;;
15878 *)
15879 case $LD in # libtool.m4 will add one of these switches to LD
15880 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15881 libsuff= shlibsuff= libmagic=32-bit;;
15882 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15883 libsuff=32 shlibsuff=N32 libmagic=N32;;
15884 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15885 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15886 *) libsuff= shlibsuff= libmagic=never-match;;
15887 esac
15888 ;;
15889 esac
15890 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15891 shlibpath_overrides_runpath=no
15892 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15893 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15894 hardcode_into_libs=yes
15895 ;;
15896
15897 # No shared lib support for Linux oldld, aout, or coff.
15898 linux*oldld* | linux*aout* | linux*coff*)
15899 dynamic_linker=no
15900 ;;
15901
15902 # This must be Linux ELF.
15903 linux* | k*bsd*-gnu)
15904 version_type=linux
15905 need_lib_prefix=no
15906 need_version=no
15907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15908 soname_spec='${libname}${release}${shared_ext}$major'
15909 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15910 shlibpath_var=LD_LIBRARY_PATH
15911 shlibpath_overrides_runpath=no
15912 # This implies no fast_install, which is unacceptable.
15913 # Some rework will be needed to allow for fast_install
15914 # before this can be enabled.
15915 hardcode_into_libs=yes
15916
15917 # Append ld.so.conf contents to the search path
15918 if test -f /etc/ld.so.conf; then
15919 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' ' '`
15920 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15921 fi
15922
15923 # We used to test for /lib/ld.so.1 and disable shared libraries on
15924 # powerpc, because MkLinux only supported shared libraries with the
15925 # GNU dynamic linker. Since this was broken with cross compilers,
15926 # most powerpc-linux boxes support dynamic linking these days and
15927 # people can always --disable-shared, the test was removed, and we
15928 # assume the GNU/Linux dynamic linker is in use.
15929 dynamic_linker='GNU/Linux ld.so'
15930 ;;
15931
15932 netbsdelf*-gnu)
15933 version_type=linux
15934 need_lib_prefix=no
15935 need_version=no
15936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15937 soname_spec='${libname}${release}${shared_ext}$major'
15938 shlibpath_var=LD_LIBRARY_PATH
15939 shlibpath_overrides_runpath=no
15940 hardcode_into_libs=yes
15941 dynamic_linker='NetBSD ld.elf_so'
15942 ;;
15943
15944 netbsd*)
15945 version_type=sunos
15946 need_lib_prefix=no
15947 need_version=no
15948 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15950 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15951 dynamic_linker='NetBSD (a.out) ld.so'
15952 else
15953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15954 soname_spec='${libname}${release}${shared_ext}$major'
15955 dynamic_linker='NetBSD ld.elf_so'
15956 fi
15957 shlibpath_var=LD_LIBRARY_PATH
15958 shlibpath_overrides_runpath=yes
15959 hardcode_into_libs=yes
15960 ;;
15961
15962 newsos6)
15963 version_type=linux
15964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15965 shlibpath_var=LD_LIBRARY_PATH
15966 shlibpath_overrides_runpath=yes
15967 ;;
15968
15969 nto-qnx*)
15970 version_type=linux
15971 need_lib_prefix=no
15972 need_version=no
15973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15974 soname_spec='${libname}${release}${shared_ext}$major'
15975 shlibpath_var=LD_LIBRARY_PATH
15976 shlibpath_overrides_runpath=yes
15977 ;;
15978
15979 openbsd*)
15980 version_type=sunos
15981 sys_lib_dlsearch_path_spec="/usr/lib"
15982 need_lib_prefix=no
15983 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15984 case $host_os in
15985 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15986 *) need_version=no ;;
15987 esac
15988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15989 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15990 shlibpath_var=LD_LIBRARY_PATH
15991 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15992 case $host_os in
15993 openbsd2.[89] | openbsd2.[89].*)
15994 shlibpath_overrides_runpath=no
15995 ;;
15996 *)
15997 shlibpath_overrides_runpath=yes
15998 ;;
15999 esac
16000 else
16001 shlibpath_overrides_runpath=yes
16002 fi
16003 ;;
16004
16005 os2*)
16006 libname_spec='$name'
16007 shrext_cmds=".dll"
16008 need_lib_prefix=no
16009 library_names_spec='$libname${shared_ext} $libname.a'
16010 dynamic_linker='OS/2 ld.exe'
16011 shlibpath_var=LIBPATH
16012 ;;
16013
16014 osf3* | osf4* | osf5*)
16015 version_type=osf
16016 need_lib_prefix=no
16017 need_version=no
16018 soname_spec='${libname}${release}${shared_ext}$major'
16019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16020 shlibpath_var=LD_LIBRARY_PATH
16021 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16022 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16023 ;;
16024
16025 solaris*)
16026 version_type=linux
16027 need_lib_prefix=no
16028 need_version=no
16029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16030 soname_spec='${libname}${release}${shared_ext}$major'
16031 shlibpath_var=LD_LIBRARY_PATH
16032 shlibpath_overrides_runpath=yes
16033 hardcode_into_libs=yes
16034 # ldd complains unless libraries are executable
16035 postinstall_cmds='chmod +x $lib'
16036 ;;
16037
16038 sunos4*)
16039 version_type=sunos
16040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16041 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16042 shlibpath_var=LD_LIBRARY_PATH
16043 shlibpath_overrides_runpath=yes
16044 if test "$with_gnu_ld" = yes; then
16045 need_lib_prefix=no
16046 fi
16047 need_version=yes
16048 ;;
16049
16050 sysv4 | sysv4.3*)
16051 version_type=linux
16052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16053 soname_spec='${libname}${release}${shared_ext}$major'
16054 shlibpath_var=LD_LIBRARY_PATH
16055 case $host_vendor in
16056 sni)
16057 shlibpath_overrides_runpath=no
16058 need_lib_prefix=no
16059 export_dynamic_flag_spec='${wl}-Blargedynsym'
16060 runpath_var=LD_RUN_PATH
16061 ;;
16062 siemens)
16063 need_lib_prefix=no
16064 ;;
16065 motorola)
16066 need_lib_prefix=no
16067 need_version=no
16068 shlibpath_overrides_runpath=no
16069 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16070 ;;
16071 esac
16072 ;;
16073
16074 sysv4*MP*)
16075 if test -d /usr/nec ;then
16076 version_type=linux
16077 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16078 soname_spec='$libname${shared_ext}.$major'
16079 shlibpath_var=LD_LIBRARY_PATH
16080 fi
16081 ;;
16082
16083 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16084 version_type=freebsd-elf
16085 need_lib_prefix=no
16086 need_version=no
16087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16088 soname_spec='${libname}${release}${shared_ext}$major'
16089 shlibpath_var=LD_LIBRARY_PATH
16090 hardcode_into_libs=yes
16091 if test "$with_gnu_ld" = yes; then
16092 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16093 shlibpath_overrides_runpath=no
16094 else
16095 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16096 shlibpath_overrides_runpath=yes
16097 case $host_os in
16098 sco3.2v5*)
16099 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16100 ;;
16101 esac
16102 fi
16103 sys_lib_dlsearch_path_spec='/usr/lib'
16104 ;;
16105
16106 uts4*)
16107 version_type=linux
16108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16109 soname_spec='${libname}${release}${shared_ext}$major'
16110 shlibpath_var=LD_LIBRARY_PATH
16111 ;;
16112
16113 *)
16114 dynamic_linker=no
16115 ;;
16116 esac
16117 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16118 echo "${ECHO_T}$dynamic_linker" >&6; }
16119 test "$dynamic_linker" = no && can_build_shared=no
16120
16121 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16122 if test "$GCC" = yes; then
16123 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16124 fi
16125
16126 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16127 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16128 hardcode_action_F77=
16129 if test -n "$hardcode_libdir_flag_spec_F77" || \
16130 test -n "$runpath_var_F77" || \
16131 test "X$hardcode_automatic_F77" = "Xyes" ; then
16132
16133 # We can hardcode non-existant directories.
16134 if test "$hardcode_direct_F77" != no &&
16135 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16136 # have to relink, otherwise we might link with an installed library
16137 # when we should be linking with a yet-to-be-installed one
16138 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16139 test "$hardcode_minus_L_F77" != no; then
16140 # Linking always hardcodes the temporary library directory.
16141 hardcode_action_F77=relink
16142 else
16143 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16144 hardcode_action_F77=immediate
16145 fi
16146 else
16147 # We cannot hardcode anything, or else we can only hardcode existing
16148 # directories.
16149 hardcode_action_F77=unsupported
16150 fi
16151 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16152 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16153
16154 if test "$hardcode_action_F77" = relink; then
16155 # Fast installation is not supported
16156 enable_fast_install=no
16157 elif test "$shlibpath_overrides_runpath" = yes ||
16158 test "$enable_shared" = no; then
16159 # Fast installation is not necessary
16160 enable_fast_install=needless
16161 fi
16162
16163
16164 # The else clause should only fire when bootstrapping the
16165 # libtool distribution, otherwise you forgot to ship ltmain.sh
16166 # with your package, and you will get complaints that there are
16167 # no rules to generate ltmain.sh.
16168 if test -f "$ltmain"; then
16169 # See if we are running on zsh, and set the options which allow our commands through
16170 # without removal of \ escapes.
16171 if test -n "${ZSH_VERSION+set}" ; then
16172 setopt NO_GLOB_SUBST
16173 fi
16174 # Now quote all the things that may contain metacharacters while being
16175 # careful not to overquote the AC_SUBSTed values. We take copies of the
16176 # variables and quote the copies for generation of the libtool script.
16177 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16178 SED SHELL STRIP \
16179 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16180 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16181 deplibs_check_method reload_flag reload_cmds need_locks \
16182 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16183 lt_cv_sys_global_symbol_to_c_name_address \
16184 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16185 old_postinstall_cmds old_postuninstall_cmds \
16186 compiler_F77 \
16187 CC_F77 \
16188 LD_F77 \
16189 lt_prog_compiler_wl_F77 \
16190 lt_prog_compiler_pic_F77 \
16191 lt_prog_compiler_static_F77 \
16192 lt_prog_compiler_no_builtin_flag_F77 \
16193 export_dynamic_flag_spec_F77 \
16194 thread_safe_flag_spec_F77 \
16195 whole_archive_flag_spec_F77 \
16196 enable_shared_with_static_runtimes_F77 \
16197 old_archive_cmds_F77 \
16198 old_archive_from_new_cmds_F77 \
16199 predep_objects_F77 \
16200 postdep_objects_F77 \
16201 predeps_F77 \
16202 postdeps_F77 \
16203 compiler_lib_search_path_F77 \
16204 archive_cmds_F77 \
16205 archive_expsym_cmds_F77 \
16206 postinstall_cmds_F77 \
16207 postuninstall_cmds_F77 \
16208 old_archive_from_expsyms_cmds_F77 \
16209 allow_undefined_flag_F77 \
16210 no_undefined_flag_F77 \
16211 export_symbols_cmds_F77 \
16212 hardcode_libdir_flag_spec_F77 \
16213 hardcode_libdir_flag_spec_ld_F77 \
16214 hardcode_libdir_separator_F77 \
16215 hardcode_automatic_F77 \
16216 module_cmds_F77 \
16217 module_expsym_cmds_F77 \
16218 lt_cv_prog_compiler_c_o_F77 \
16219 exclude_expsyms_F77 \
16220 include_expsyms_F77; do
16221
16222 case $var in
16223 old_archive_cmds_F77 | \
16224 old_archive_from_new_cmds_F77 | \
16225 archive_cmds_F77 | \
16226 archive_expsym_cmds_F77 | \
16227 module_cmds_F77 | \
16228 module_expsym_cmds_F77 | \
16229 old_archive_from_expsyms_cmds_F77 | \
16230 export_symbols_cmds_F77 | \
16231 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16232 postinstall_cmds | postuninstall_cmds | \
16233 old_postinstall_cmds | old_postuninstall_cmds | \
16234 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16235 # Double-quote double-evaled strings.
16236 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16237 ;;
16238 *)
16239 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16240 ;;
16241 esac
16242 done
16243
16244 case $lt_echo in
16245 *'\$0 --fallback-echo"')
16246 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16247 ;;
16248 esac
16249
16250 cfgfile="$ofile"
16251
16252 cat <<__EOF__ >> "$cfgfile"
16253 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16254
16255 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16256
16257 # Shell to use when invoking shell scripts.
16258 SHELL=$lt_SHELL
16259
16260 # Whether or not to build shared libraries.
16261 build_libtool_libs=$enable_shared
16262
16263 # Whether or not to build static libraries.
16264 build_old_libs=$enable_static
16265
16266 # Whether or not to add -lc for building shared libraries.
16267 build_libtool_need_lc=$archive_cmds_need_lc_F77
16268
16269 # Whether or not to disallow shared libs when runtime libs are static
16270 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16271
16272 # Whether or not to optimize for fast installation.
16273 fast_install=$enable_fast_install
16274
16275 # The host system.
16276 host_alias=$host_alias
16277 host=$host
16278 host_os=$host_os
16279
16280 # The build system.
16281 build_alias=$build_alias
16282 build=$build
16283 build_os=$build_os
16284
16285 # An echo program that does not interpret backslashes.
16286 echo=$lt_echo
16287
16288 # The archiver.
16289 AR=$lt_AR
16290 AR_FLAGS=$lt_AR_FLAGS
16291
16292 # A C compiler.
16293 LTCC=$lt_LTCC
16294
16295 # LTCC compiler flags.
16296 LTCFLAGS=$lt_LTCFLAGS
16297
16298 # A language-specific compiler.
16299 CC=$lt_compiler_F77
16300
16301 # Is the compiler the GNU C compiler?
16302 with_gcc=$GCC_F77
16303
16304 # An ERE matcher.
16305 EGREP=$lt_EGREP
16306
16307 # The linker used to build libraries.
16308 LD=$lt_LD_F77
16309
16310 # Whether we need hard or soft links.
16311 LN_S=$lt_LN_S
16312
16313 # A BSD-compatible nm program.
16314 NM=$lt_NM
16315
16316 # A symbol stripping program
16317 STRIP=$lt_STRIP
16318
16319 # Used to examine libraries when file_magic_cmd begins "file"
16320 MAGIC_CMD=$MAGIC_CMD
16321
16322 # Used on cygwin: DLL creation program.
16323 DLLTOOL="$DLLTOOL"
16324
16325 # Used on cygwin: object dumper.
16326 OBJDUMP="$OBJDUMP"
16327
16328 # Used on cygwin: assembler.
16329 AS="$AS"
16330
16331 # The name of the directory that contains temporary libtool files.
16332 objdir=$objdir
16333
16334 # How to create reloadable object files.
16335 reload_flag=$lt_reload_flag
16336 reload_cmds=$lt_reload_cmds
16337
16338 # How to pass a linker flag through the compiler.
16339 wl=$lt_lt_prog_compiler_wl_F77
16340
16341 # Object file suffix (normally "o").
16342 objext="$ac_objext"
16343
16344 # Old archive suffix (normally "a").
16345 libext="$libext"
16346
16347 # Shared library suffix (normally ".so").
16348 shrext_cmds='$shrext_cmds'
16349
16350 # Executable file suffix (normally "").
16351 exeext="$exeext"
16352
16353 # Additional compiler flags for building library objects.
16354 pic_flag=$lt_lt_prog_compiler_pic_F77
16355 pic_mode=$pic_mode
16356
16357 # What is the maximum length of a command?
16358 max_cmd_len=$lt_cv_sys_max_cmd_len
16359
16360 # Does compiler simultaneously support -c and -o options?
16361 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16362
16363 # Must we lock files when doing compilation?
16364 need_locks=$lt_need_locks
16365
16366 # Do we need the lib prefix for modules?
16367 need_lib_prefix=$need_lib_prefix
16368
16369 # Do we need a version for libraries?
16370 need_version=$need_version
16371
16372 # Whether dlopen is supported.
16373 dlopen_support=$enable_dlopen
16374
16375 # Whether dlopen of programs is supported.
16376 dlopen_self=$enable_dlopen_self
16377
16378 # Whether dlopen of statically linked programs is supported.
16379 dlopen_self_static=$enable_dlopen_self_static
16380
16381 # Compiler flag to prevent dynamic linking.
16382 link_static_flag=$lt_lt_prog_compiler_static_F77
16383
16384 # Compiler flag to turn off builtin functions.
16385 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16386
16387 # Compiler flag to allow reflexive dlopens.
16388 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16389
16390 # Compiler flag to generate shared objects directly from archives.
16391 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16392
16393 # Compiler flag to generate thread-safe objects.
16394 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16395
16396 # Library versioning type.
16397 version_type=$version_type
16398
16399 # Format of library name prefix.
16400 libname_spec=$lt_libname_spec
16401
16402 # List of archive names. First name is the real one, the rest are links.
16403 # The last name is the one that the linker finds with -lNAME.
16404 library_names_spec=$lt_library_names_spec
16405
16406 # The coded name of the library, if different from the real name.
16407 soname_spec=$lt_soname_spec
16408
16409 # Commands used to build and install an old-style archive.
16410 RANLIB=$lt_RANLIB
16411 old_archive_cmds=$lt_old_archive_cmds_F77
16412 old_postinstall_cmds=$lt_old_postinstall_cmds
16413 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16414
16415 # Create an old-style archive from a shared archive.
16416 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16417
16418 # Create a temporary old-style archive to link instead of a shared archive.
16419 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16420
16421 # Commands used to build and install a shared archive.
16422 archive_cmds=$lt_archive_cmds_F77
16423 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16424 postinstall_cmds=$lt_postinstall_cmds
16425 postuninstall_cmds=$lt_postuninstall_cmds
16426
16427 # Commands used to build a loadable module (assumed same as above if empty)
16428 module_cmds=$lt_module_cmds_F77
16429 module_expsym_cmds=$lt_module_expsym_cmds_F77
16430
16431 # Commands to strip libraries.
16432 old_striplib=$lt_old_striplib
16433 striplib=$lt_striplib
16434
16435 # Dependencies to place before the objects being linked to create a
16436 # shared library.
16437 predep_objects=$lt_predep_objects_F77
16438
16439 # Dependencies to place after the objects being linked to create a
16440 # shared library.
16441 postdep_objects=$lt_postdep_objects_F77
16442
16443 # Dependencies to place before the objects being linked to create a
16444 # shared library.
16445 predeps=$lt_predeps_F77
16446
16447 # Dependencies to place after the objects being linked to create a
16448 # shared library.
16449 postdeps=$lt_postdeps_F77
16450
16451 # The library search path used internally by the compiler when linking
16452 # a shared library.
16453 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16454
16455 # Method to check whether dependent libraries are shared objects.
16456 deplibs_check_method=$lt_deplibs_check_method
16457
16458 # Command to use when deplibs_check_method == file_magic.
16459 file_magic_cmd=$lt_file_magic_cmd
16460
16461 # Flag that allows shared libraries with undefined symbols to be built.
16462 allow_undefined_flag=$lt_allow_undefined_flag_F77
16463
16464 # Flag that forces no undefined symbols.
16465 no_undefined_flag=$lt_no_undefined_flag_F77
16466
16467 # Commands used to finish a libtool library installation in a directory.
16468 finish_cmds=$lt_finish_cmds
16469
16470 # Same as above, but a single script fragment to be evaled but not shown.
16471 finish_eval=$lt_finish_eval
16472
16473 # Take the output of nm and produce a listing of raw symbols and C names.
16474 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16475
16476 # Transform the output of nm in a proper C declaration
16477 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16478
16479 # Transform the output of nm in a C name address pair
16480 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16481
16482 # This is the shared library runtime path variable.
16483 runpath_var=$runpath_var
16484
16485 # This is the shared library path variable.
16486 shlibpath_var=$shlibpath_var
16487
16488 # Is shlibpath searched before the hard-coded library search path?
16489 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16490
16491 # How to hardcode a shared library path into an executable.
16492 hardcode_action=$hardcode_action_F77
16493
16494 # Whether we should hardcode library paths into libraries.
16495 hardcode_into_libs=$hardcode_into_libs
16496
16497 # Flag to hardcode \$libdir into a binary during linking.
16498 # This must work even if \$libdir does not exist.
16499 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16500
16501 # If ld is used when linking, flag to hardcode \$libdir into
16502 # a binary during linking. This must work even if \$libdir does
16503 # not exist.
16504 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16505
16506 # Whether we need a single -rpath flag with a separated argument.
16507 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16508
16509 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16510 # resulting binary.
16511 hardcode_direct=$hardcode_direct_F77
16512
16513 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16514 # resulting binary.
16515 hardcode_minus_L=$hardcode_minus_L_F77
16516
16517 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16518 # the resulting binary.
16519 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16520
16521 # Set to yes if building a shared library automatically hardcodes DIR into the library
16522 # and all subsequent libraries and executables linked against it.
16523 hardcode_automatic=$hardcode_automatic_F77
16524
16525 # Variables whose values should be saved in libtool wrapper scripts and
16526 # restored at relink time.
16527 variables_saved_for_relink="$variables_saved_for_relink"
16528
16529 # Whether libtool must link a program against all its dependency libraries.
16530 link_all_deplibs=$link_all_deplibs_F77
16531
16532 # Compile-time system search path for libraries
16533 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16534
16535 # Run-time system search path for libraries
16536 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16537
16538 # Fix the shell variable \$srcfile for the compiler.
16539 fix_srcfile_path="$fix_srcfile_path_F77"
16540
16541 # Set to yes if exported symbols are required.
16542 always_export_symbols=$always_export_symbols_F77
16543
16544 # The commands to list exported symbols.
16545 export_symbols_cmds=$lt_export_symbols_cmds_F77
16546
16547 # The commands to extract the exported symbol list from a shared archive.
16548 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16549
16550 # Symbols that should not be listed in the preloaded symbols.
16551 exclude_expsyms=$lt_exclude_expsyms_F77
16552
16553 # Symbols that must always be exported.
16554 include_expsyms=$lt_include_expsyms_F77
16555
16556 # ### END LIBTOOL TAG CONFIG: $tagname
16557
16558 __EOF__
16559
16560
16561 else
16562 # If there is no Makefile yet, we rely on a make rule to execute
16563 # `config.status --recheck' to rerun these tests and create the
16564 # libtool script then.
16565 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16566 if test -f "$ltmain_in"; then
16567 test -f Makefile && make "$ltmain"
16568 fi
16569 fi
16570
16571
16572 ac_ext=c
16573 ac_cpp='$CPP $CPPFLAGS'
16574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16577
16578 CC="$lt_save_CC"
16579
16580 else
16581 tagname=""
16582 fi
16583 ;;
16584
16585 GCJ)
16586 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16587
16588
16589 # Source file extension for Java test sources.
16590 ac_ext=java
16591
16592 # Object file extension for compiled Java test sources.
16593 objext=o
16594 objext_GCJ=$objext
16595
16596 # Code to be used in simple compile tests
16597 lt_simple_compile_test_code="class foo {}\n"
16598
16599 # Code to be used in simple link tests
16600 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16601
16602 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16603
16604 # If no C compiler was specified, use CC.
16605 LTCC=${LTCC-"$CC"}
16606
16607 # If no C compiler flags were specified, use CFLAGS.
16608 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16609
16610 # Allow CC to be a program name with arguments.
16611 compiler=$CC
16612
16613
16614 # save warnings/boilerplate of simple test code
16615 ac_outfile=conftest.$ac_objext
16616 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16617 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16618 _lt_compiler_boilerplate=`cat conftest.err`
16619 $rm conftest*
16620
16621 ac_outfile=conftest.$ac_objext
16622 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16623 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16624 _lt_linker_boilerplate=`cat conftest.err`
16625 $rm conftest*
16626
16627
16628 # Allow CC to be a program name with arguments.
16629 lt_save_CC="$CC"
16630 CC=${GCJ-"gcj"}
16631 compiler=$CC
16632 compiler_GCJ=$CC
16633 for cc_temp in $compiler""; do
16634 case $cc_temp in
16635 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16636 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16637 \-*) ;;
16638 *) break;;
16639 esac
16640 done
16641 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16642
16643
16644 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16645 archive_cmds_need_lc_GCJ=no
16646
16647 old_archive_cmds_GCJ=$old_archive_cmds
16648
16649
16650 lt_prog_compiler_no_builtin_flag_GCJ=
16651
16652 if test "$GCC" = yes; then
16653 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16654
16655
16656 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16657 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16658 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16659 echo $ECHO_N "(cached) $ECHO_C" >&6
16660 else
16661 lt_cv_prog_compiler_rtti_exceptions=no
16662 ac_outfile=conftest.$ac_objext
16663 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16664 lt_compiler_flag="-fno-rtti -fno-exceptions"
16665 # Insert the option either (1) after the last *FLAGS variable, or
16666 # (2) before a word containing "conftest.", or (3) at the end.
16667 # Note that $ac_compile itself does not contain backslashes and begins
16668 # with a dollar sign (not a hyphen), so the echo should work correctly.
16669 # The option is referenced via a variable to avoid confusing sed.
16670 lt_compile=`echo "$ac_compile" | $SED \
16671 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16672 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16673 -e 's:$: $lt_compiler_flag:'`
16674 (eval echo "\"\$as_me:16674: $lt_compile\"" >&5)
16675 (eval "$lt_compile" 2>conftest.err)
16676 ac_status=$?
16677 cat conftest.err >&5
16678 echo "$as_me:16678: \$? = $ac_status" >&5
16679 if (exit $ac_status) && test -s "$ac_outfile"; then
16680 # The compiler can only warn and ignore the option if not recognized
16681 # So say no if there are warnings other than the usual output.
16682 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16683 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16684 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16685 lt_cv_prog_compiler_rtti_exceptions=yes
16686 fi
16687 fi
16688 $rm conftest*
16689
16690 fi
16691 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16692 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16693
16694 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16695 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16696 else
16697 :
16698 fi
16699
16700 fi
16701
16702 lt_prog_compiler_wl_GCJ=
16703 lt_prog_compiler_pic_GCJ=
16704 lt_prog_compiler_static_GCJ=
16705
16706 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16707 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16708
16709 if test "$GCC" = yes; then
16710 lt_prog_compiler_wl_GCJ='-Wl,'
16711 lt_prog_compiler_static_GCJ='-static'
16712
16713 case $host_os in
16714 aix*)
16715 # All AIX code is PIC.
16716 if test "$host_cpu" = ia64; then
16717 # AIX 5 now supports IA64 processor
16718 lt_prog_compiler_static_GCJ='-Bstatic'
16719 fi
16720 ;;
16721
16722 amigaos*)
16723 # FIXME: we need at least 68020 code to build shared libraries, but
16724 # adding the `-m68020' flag to GCC prevents building anything better,
16725 # like `-m68040'.
16726 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16727 ;;
16728
16729 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16730 # PIC is the default for these OSes.
16731 ;;
16732
16733 mingw* | pw32* | os2*)
16734 # This hack is so that the source file can tell whether it is being
16735 # built for inclusion in a dll (and should export symbols for example).
16736 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16737 ;;
16738
16739 darwin* | rhapsody*)
16740 # PIC is the default on this platform
16741 # Common symbols not allowed in MH_DYLIB files
16742 lt_prog_compiler_pic_GCJ='-fno-common'
16743 ;;
16744
16745 interix3*)
16746 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16747 # Instead, we relocate shared libraries at runtime.
16748 ;;
16749
16750 msdosdjgpp*)
16751 # Just because we use GCC doesn't mean we suddenly get shared libraries
16752 # on systems that don't support them.
16753 lt_prog_compiler_can_build_shared_GCJ=no
16754 enable_shared=no
16755 ;;
16756
16757 sysv4*MP*)
16758 if test -d /usr/nec; then
16759 lt_prog_compiler_pic_GCJ=-Kconform_pic
16760 fi
16761 ;;
16762
16763 hpux*)
16764 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16765 # not for PA HP-UX.
16766 case $host_cpu in
16767 hppa*64*|ia64*)
16768 # +Z the default
16769 ;;
16770 *)
16771 lt_prog_compiler_pic_GCJ='-fPIC'
16772 ;;
16773 esac
16774 ;;
16775
16776 *)
16777 lt_prog_compiler_pic_GCJ='-fPIC'
16778 ;;
16779 esac
16780 else
16781 # PORTME Check for flag to pass linker flags through the system compiler.
16782 case $host_os in
16783 aix*)
16784 lt_prog_compiler_wl_GCJ='-Wl,'
16785 if test "$host_cpu" = ia64; then
16786 # AIX 5 now supports IA64 processor
16787 lt_prog_compiler_static_GCJ='-Bstatic'
16788 else
16789 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16790 fi
16791 ;;
16792 darwin*)
16793 # PIC is the default on this platform
16794 # Common symbols not allowed in MH_DYLIB files
16795 case $cc_basename in
16796 xlc*)
16797 lt_prog_compiler_pic_GCJ='-qnocommon'
16798 lt_prog_compiler_wl_GCJ='-Wl,'
16799 ;;
16800 esac
16801 ;;
16802
16803 mingw* | pw32* | os2*)
16804 # This hack is so that the source file can tell whether it is being
16805 # built for inclusion in a dll (and should export symbols for example).
16806 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16807 ;;
16808
16809 hpux9* | hpux10* | hpux11*)
16810 lt_prog_compiler_wl_GCJ='-Wl,'
16811 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16812 # not for PA HP-UX.
16813 case $host_cpu in
16814 hppa*64*|ia64*)
16815 # +Z the default
16816 ;;
16817 *)
16818 lt_prog_compiler_pic_GCJ='+Z'
16819 ;;
16820 esac
16821 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16822 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16823 ;;
16824
16825 irix5* | irix6* | nonstopux*)
16826 lt_prog_compiler_wl_GCJ='-Wl,'
16827 # PIC (with -KPIC) is the default.
16828 lt_prog_compiler_static_GCJ='-non_shared'
16829 ;;
16830
16831 newsos6)
16832 lt_prog_compiler_pic_GCJ='-KPIC'
16833 lt_prog_compiler_static_GCJ='-Bstatic'
16834 ;;
16835
16836 linux* | k*bsd*-gnu)
16837 case $cc_basename in
16838 icc* | ecc*)
16839 lt_prog_compiler_wl_GCJ='-Wl,'
16840 lt_prog_compiler_pic_GCJ='-KPIC'
16841 lt_prog_compiler_static_GCJ='-static'
16842 ;;
16843 pgcc* | pgf77* | pgf90* | pgf95*)
16844 # Portland Group compilers (*not* the Pentium gcc compiler,
16845 # which looks to be a dead project)
16846 lt_prog_compiler_wl_GCJ='-Wl,'
16847 lt_prog_compiler_pic_GCJ='-fpic'
16848 lt_prog_compiler_static_GCJ='-Bstatic'
16849 ;;
16850 ccc*)
16851 lt_prog_compiler_wl_GCJ='-Wl,'
16852 # All Alpha code is PIC.
16853 lt_prog_compiler_static_GCJ='-non_shared'
16854 ;;
16855 esac
16856 ;;
16857
16858 osf3* | osf4* | osf5*)
16859 lt_prog_compiler_wl_GCJ='-Wl,'
16860 # All OSF/1 code is PIC.
16861 lt_prog_compiler_static_GCJ='-non_shared'
16862 ;;
16863
16864 solaris*)
16865 lt_prog_compiler_pic_GCJ='-KPIC'
16866 lt_prog_compiler_static_GCJ='-Bstatic'
16867 case $cc_basename in
16868 f77* | f90* | f95*)
16869 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16870 *)
16871 lt_prog_compiler_wl_GCJ='-Wl,';;
16872 esac
16873 ;;
16874
16875 sunos4*)
16876 lt_prog_compiler_wl_GCJ='-Qoption ld '
16877 lt_prog_compiler_pic_GCJ='-PIC'
16878 lt_prog_compiler_static_GCJ='-Bstatic'
16879 ;;
16880
16881 sysv4 | sysv4.2uw2* | sysv4.3*)
16882 lt_prog_compiler_wl_GCJ='-Wl,'
16883 lt_prog_compiler_pic_GCJ='-KPIC'
16884 lt_prog_compiler_static_GCJ='-Bstatic'
16885 ;;
16886
16887 sysv4*MP*)
16888 if test -d /usr/nec ;then
16889 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16890 lt_prog_compiler_static_GCJ='-Bstatic'
16891 fi
16892 ;;
16893
16894 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16895 lt_prog_compiler_wl_GCJ='-Wl,'
16896 lt_prog_compiler_pic_GCJ='-KPIC'
16897 lt_prog_compiler_static_GCJ='-Bstatic'
16898 ;;
16899
16900 unicos*)
16901 lt_prog_compiler_wl_GCJ='-Wl,'
16902 lt_prog_compiler_can_build_shared_GCJ=no
16903 ;;
16904
16905 uts4*)
16906 lt_prog_compiler_pic_GCJ='-pic'
16907 lt_prog_compiler_static_GCJ='-Bstatic'
16908 ;;
16909
16910 *)
16911 lt_prog_compiler_can_build_shared_GCJ=no
16912 ;;
16913 esac
16914 fi
16915
16916 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16917 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16918
16919 #
16920 # Check to make sure the PIC flag actually works.
16921 #
16922 if test -n "$lt_prog_compiler_pic_GCJ"; then
16923
16924 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16925 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16926 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16927 echo $ECHO_N "(cached) $ECHO_C" >&6
16928 else
16929 lt_prog_compiler_pic_works_GCJ=no
16930 ac_outfile=conftest.$ac_objext
16931 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16932 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16933 # Insert the option either (1) after the last *FLAGS variable, or
16934 # (2) before a word containing "conftest.", or (3) at the end.
16935 # Note that $ac_compile itself does not contain backslashes and begins
16936 # with a dollar sign (not a hyphen), so the echo should work correctly.
16937 # The option is referenced via a variable to avoid confusing sed.
16938 lt_compile=`echo "$ac_compile" | $SED \
16939 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16940 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16941 -e 's:$: $lt_compiler_flag:'`
16942 (eval echo "\"\$as_me:16942: $lt_compile\"" >&5)
16943 (eval "$lt_compile" 2>conftest.err)
16944 ac_status=$?
16945 cat conftest.err >&5
16946 echo "$as_me:16946: \$? = $ac_status" >&5
16947 if (exit $ac_status) && test -s "$ac_outfile"; then
16948 # The compiler can only warn and ignore the option if not recognized
16949 # So say no if there are warnings other than the usual output.
16950 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16951 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16952 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16953 lt_prog_compiler_pic_works_GCJ=yes
16954 fi
16955 fi
16956 $rm conftest*
16957
16958 fi
16959 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16960 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16961
16962 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16963 case $lt_prog_compiler_pic_GCJ in
16964 "" | " "*) ;;
16965 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16966 esac
16967 else
16968 lt_prog_compiler_pic_GCJ=
16969 lt_prog_compiler_can_build_shared_GCJ=no
16970 fi
16971
16972 fi
16973 case $host_os in
16974 # For platforms which do not support PIC, -DPIC is meaningless:
16975 *djgpp*)
16976 lt_prog_compiler_pic_GCJ=
16977 ;;
16978 *)
16979 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16980 ;;
16981 esac
16982
16983 #
16984 # Check to make sure the static flag actually works.
16985 #
16986 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16987 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16988 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16989 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16990 echo $ECHO_N "(cached) $ECHO_C" >&6
16991 else
16992 lt_prog_compiler_static_works_GCJ=no
16993 save_LDFLAGS="$LDFLAGS"
16994 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16995 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16996 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16997 # The linker can only warn and ignore the option if not recognized
16998 # So say no if there are warnings
16999 if test -s conftest.err; then
17000 # Append any errors to the config.log.
17001 cat conftest.err 1>&5
17002 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17003 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17004 if diff conftest.exp conftest.er2 >/dev/null; then
17005 lt_prog_compiler_static_works_GCJ=yes
17006 fi
17007 else
17008 lt_prog_compiler_static_works_GCJ=yes
17009 fi
17010 fi
17011 $rm conftest*
17012 LDFLAGS="$save_LDFLAGS"
17013
17014 fi
17015 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17016 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17017
17018 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17019 :
17020 else
17021 lt_prog_compiler_static_GCJ=
17022 fi
17023
17024
17025 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17026 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17027 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17028 echo $ECHO_N "(cached) $ECHO_C" >&6
17029 else
17030 lt_cv_prog_compiler_c_o_GCJ=no
17031 $rm -r conftest 2>/dev/null
17032 mkdir conftest
17033 cd conftest
17034 mkdir out
17035 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17036
17037 lt_compiler_flag="-o out/conftest2.$ac_objext"
17038 # Insert the option either (1) after the last *FLAGS variable, or
17039 # (2) before a word containing "conftest.", or (3) at the end.
17040 # Note that $ac_compile itself does not contain backslashes and begins
17041 # with a dollar sign (not a hyphen), so the echo should work correctly.
17042 lt_compile=`echo "$ac_compile" | $SED \
17043 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17044 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17045 -e 's:$: $lt_compiler_flag:'`
17046 (eval echo "\"\$as_me:17046: $lt_compile\"" >&5)
17047 (eval "$lt_compile" 2>out/conftest.err)
17048 ac_status=$?
17049 cat out/conftest.err >&5
17050 echo "$as_me:17050: \$? = $ac_status" >&5
17051 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17052 then
17053 # The compiler can only warn and ignore the option if not recognized
17054 # So say no if there are warnings
17055 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17056 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17057 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17058 lt_cv_prog_compiler_c_o_GCJ=yes
17059 fi
17060 fi
17061 chmod u+w . 2>&5
17062 $rm conftest*
17063 # SGI C++ compiler will create directory out/ii_files/ for
17064 # template instantiation
17065 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17066 $rm out/* && rmdir out
17067 cd ..
17068 rmdir conftest
17069 $rm conftest*
17070
17071 fi
17072 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17073 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17074
17075
17076 hard_links="nottested"
17077 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17078 # do not overwrite the value of need_locks provided by the user
17079 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17080 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17081 hard_links=yes
17082 $rm conftest*
17083 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17084 touch conftest.a
17085 ln conftest.a conftest.b 2>&5 || hard_links=no
17086 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17087 { echo "$as_me:$LINENO: result: $hard_links" >&5
17088 echo "${ECHO_T}$hard_links" >&6; }
17089 if test "$hard_links" = no; then
17090 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17091 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17092 need_locks=warn
17093 fi
17094 else
17095 need_locks=no
17096 fi
17097
17098 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17099 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17100
17101 runpath_var=
17102 allow_undefined_flag_GCJ=
17103 enable_shared_with_static_runtimes_GCJ=no
17104 archive_cmds_GCJ=
17105 archive_expsym_cmds_GCJ=
17106 old_archive_From_new_cmds_GCJ=
17107 old_archive_from_expsyms_cmds_GCJ=
17108 export_dynamic_flag_spec_GCJ=
17109 whole_archive_flag_spec_GCJ=
17110 thread_safe_flag_spec_GCJ=
17111 hardcode_libdir_flag_spec_GCJ=
17112 hardcode_libdir_flag_spec_ld_GCJ=
17113 hardcode_libdir_separator_GCJ=
17114 hardcode_direct_GCJ=no
17115 hardcode_minus_L_GCJ=no
17116 hardcode_shlibpath_var_GCJ=unsupported
17117 link_all_deplibs_GCJ=unknown
17118 hardcode_automatic_GCJ=no
17119 module_cmds_GCJ=
17120 module_expsym_cmds_GCJ=
17121 always_export_symbols_GCJ=no
17122 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17123 # include_expsyms should be a list of space-separated symbols to be *always*
17124 # included in the symbol list
17125 include_expsyms_GCJ=
17126 # exclude_expsyms can be an extended regexp of symbols to exclude
17127 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17128 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17129 # as well as any symbol that contains `d'.
17130 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17131 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17132 # platforms (ab)use it in PIC code, but their linkers get confused if
17133 # the symbol is explicitly referenced. Since portable code cannot
17134 # rely on this symbol name, it's probably fine to never include it in
17135 # preloaded symbol tables.
17136 extract_expsyms_cmds=
17137 # Just being paranoid about ensuring that cc_basename is set.
17138 for cc_temp in $compiler""; do
17139 case $cc_temp in
17140 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17141 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17142 \-*) ;;
17143 *) break;;
17144 esac
17145 done
17146 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17147
17148 case $host_os in
17149 cygwin* | mingw* | pw32*)
17150 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17151 # When not using gcc, we currently assume that we are using
17152 # Microsoft Visual C++.
17153 if test "$GCC" != yes; then
17154 with_gnu_ld=no
17155 fi
17156 ;;
17157 interix*)
17158 # we just hope/assume this is gcc and not c89 (= MSVC++)
17159 with_gnu_ld=yes
17160 ;;
17161 openbsd*)
17162 with_gnu_ld=no
17163 ;;
17164 esac
17165
17166 ld_shlibs_GCJ=yes
17167 if test "$with_gnu_ld" = yes; then
17168 # If archive_cmds runs LD, not CC, wlarc should be empty
17169 wlarc='${wl}'
17170
17171 # Set some defaults for GNU ld with shared library support. These
17172 # are reset later if shared libraries are not supported. Putting them
17173 # here allows them to be overridden if necessary.
17174 runpath_var=LD_RUN_PATH
17175 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17176 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17177 # ancient GNU ld didn't support --whole-archive et. al.
17178 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17179 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17180 else
17181 whole_archive_flag_spec_GCJ=
17182 fi
17183 supports_anon_versioning=no
17184 case `$LD -v 2>/dev/null` in
17185 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17186 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17187 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17188 *\ 2.11.*) ;; # other 2.11 versions
17189 *) supports_anon_versioning=yes ;;
17190 esac
17191
17192 # See if GNU ld supports shared libraries.
17193 case $host_os in
17194 aix3* | aix4* | aix5*)
17195 # On AIX/PPC, the GNU linker is very broken
17196 if test "$host_cpu" != ia64; then
17197 ld_shlibs_GCJ=no
17198 cat <<EOF 1>&2
17199
17200 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17201 *** to be unable to reliably create shared libraries on AIX.
17202 *** Therefore, libtool is disabling shared libraries support. If you
17203 *** really care for shared libraries, you may want to modify your PATH
17204 *** so that a non-GNU linker is found, and then restart.
17205
17206 EOF
17207 fi
17208 ;;
17209
17210 amigaos*)
17211 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)'
17212 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17213 hardcode_minus_L_GCJ=yes
17214
17215 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
17216 # that the semantics of dynamic libraries on AmigaOS, at least up
17217 # to version 4, is to share data among multiple programs linked
17218 # with the same dynamic library. Since this doesn't match the
17219 # behavior of shared libraries on other platforms, we can't use
17220 # them.
17221 ld_shlibs_GCJ=no
17222 ;;
17223
17224 beos*)
17225 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17226 allow_undefined_flag_GCJ=unsupported
17227 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
17228 # support --undefined. This deserves some investigation. FIXME
17229 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17230 else
17231 ld_shlibs_GCJ=no
17232 fi
17233 ;;
17234
17235 cygwin* | mingw* | pw32*)
17236 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17237 # as there is no search path for DLLs.
17238 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17239 allow_undefined_flag_GCJ=unsupported
17240 always_export_symbols_GCJ=no
17241 enable_shared_with_static_runtimes_GCJ=yes
17242 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17243
17244 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17245 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17246 # If the export-symbols file already is a .def file (1st line
17247 # is EXPORTS), use it as is; otherwise, prepend...
17248 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17249 cp $export_symbols $output_objdir/$soname.def;
17250 else
17251 echo EXPORTS > $output_objdir/$soname.def;
17252 cat $export_symbols >> $output_objdir/$soname.def;
17253 fi~
17254 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17255 else
17256 ld_shlibs_GCJ=no
17257 fi
17258 ;;
17259
17260 interix3*)
17261 hardcode_direct_GCJ=no
17262 hardcode_shlibpath_var_GCJ=no
17263 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17264 export_dynamic_flag_spec_GCJ='${wl}-E'
17265 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17266 # Instead, shared libraries are loaded at an image base (0x10000000 by
17267 # default) and relocated if they conflict, which is a slow very memory
17268 # consuming and fragmenting process. To avoid this, we pick a random,
17269 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17270 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17271 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'
17272 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'
17273 ;;
17274
17275 linux* | k*bsd*-gnu)
17276 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17277 tmp_addflag=
17278 case $cc_basename,$host_cpu in
17279 pgcc*) # Portland Group C compiler
17280 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'
17281 tmp_addflag=' $pic_flag'
17282 ;;
17283 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17284 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'
17285 tmp_addflag=' $pic_flag -Mnomain' ;;
17286 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17287 tmp_addflag=' -i_dynamic' ;;
17288 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17289 tmp_addflag=' -i_dynamic -nofor_main' ;;
17290 ifc* | ifort*) # Intel Fortran compiler
17291 tmp_addflag=' -nofor_main' ;;
17292 esac
17293 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17294
17295 if test $supports_anon_versioning = yes; then
17296 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17297 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17298 $echo "local: *; };" >> $output_objdir/$libname.ver~
17299 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17300 fi
17301 link_all_deplibs_GCJ=no
17302 else
17303 ld_shlibs_GCJ=no
17304 fi
17305 ;;
17306
17307 netbsd* | netbsdelf*-gnu)
17308 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17309 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17310 wlarc=
17311 else
17312 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17313 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17314 fi
17315 ;;
17316
17317 solaris*)
17318 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17319 ld_shlibs_GCJ=no
17320 cat <<EOF 1>&2
17321
17322 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17323 *** create shared libraries on Solaris systems. Therefore, libtool
17324 *** is disabling shared libraries support. We urge you to upgrade GNU
17325 *** binutils to release 2.9.1 or newer. Another option is to modify
17326 *** your PATH or compiler configuration so that the native linker is
17327 *** used, and then restart.
17328
17329 EOF
17330 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17331 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17332 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17333 else
17334 ld_shlibs_GCJ=no
17335 fi
17336 ;;
17337
17338 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17339 case `$LD -v 2>&1` in
17340 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17341 ld_shlibs_GCJ=no
17342 cat <<_LT_EOF 1>&2
17343
17344 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17345 *** reliably create shared libraries on SCO systems. Therefore, libtool
17346 *** is disabling shared libraries support. We urge you to upgrade GNU
17347 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17348 *** your PATH or compiler configuration so that the native linker is
17349 *** used, and then restart.
17350
17351 _LT_EOF
17352 ;;
17353 *)
17354 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17355 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17356 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17357 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17358 else
17359 ld_shlibs_GCJ=no
17360 fi
17361 ;;
17362 esac
17363 ;;
17364
17365 sunos4*)
17366 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17367 wlarc=
17368 hardcode_direct_GCJ=yes
17369 hardcode_shlibpath_var_GCJ=no
17370 ;;
17371
17372 *)
17373 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17374 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17375 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17376 else
17377 ld_shlibs_GCJ=no
17378 fi
17379 ;;
17380 esac
17381
17382 if test "$ld_shlibs_GCJ" = no; then
17383 runpath_var=
17384 hardcode_libdir_flag_spec_GCJ=
17385 export_dynamic_flag_spec_GCJ=
17386 whole_archive_flag_spec_GCJ=
17387 fi
17388 else
17389 # PORTME fill in a description of your system's linker (not GNU ld)
17390 case $host_os in
17391 aix3*)
17392 allow_undefined_flag_GCJ=unsupported
17393 always_export_symbols_GCJ=yes
17394 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'
17395 # Note: this linker hardcodes the directories in LIBPATH if there
17396 # are no directories specified by -L.
17397 hardcode_minus_L_GCJ=yes
17398 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17399 # Neither direct hardcoding nor static linking is supported with a
17400 # broken collect2.
17401 hardcode_direct_GCJ=unsupported
17402 fi
17403 ;;
17404
17405 aix4* | aix5*)
17406 if test "$host_cpu" = ia64; then
17407 # On IA64, the linker does run time linking by default, so we don't
17408 # have to do anything special.
17409 aix_use_runtimelinking=no
17410 exp_sym_flag='-Bexport'
17411 no_entry_flag=""
17412 else
17413 # If we're using GNU nm, then we don't want the "-C" option.
17414 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17415 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17416 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'
17417 else
17418 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'
17419 fi
17420 aix_use_runtimelinking=no
17421
17422 # Test if we are trying to use run time linking or normal
17423 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17424 # need to do runtime linking.
17425 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17426 for ld_flag in $LDFLAGS; do
17427 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17428 aix_use_runtimelinking=yes
17429 break
17430 fi
17431 done
17432 ;;
17433 esac
17434
17435 exp_sym_flag='-bexport'
17436 no_entry_flag='-bnoentry'
17437 fi
17438
17439 # When large executables or shared objects are built, AIX ld can
17440 # have problems creating the table of contents. If linking a library
17441 # or program results in "error TOC overflow" add -mminimal-toc to
17442 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17443 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17444
17445 archive_cmds_GCJ=''
17446 hardcode_direct_GCJ=yes
17447 hardcode_libdir_separator_GCJ=':'
17448 link_all_deplibs_GCJ=yes
17449
17450 if test "$GCC" = yes; then
17451 case $host_os in aix4.[012]|aix4.[012].*)
17452 # We only want to do this on AIX 4.2 and lower, the check
17453 # below for broken collect2 doesn't work under 4.3+
17454 collect2name=`${CC} -print-prog-name=collect2`
17455 if test -f "$collect2name" && \
17456 strings "$collect2name" | grep resolve_lib_name >/dev/null
17457 then
17458 # We have reworked collect2
17459 hardcode_direct_GCJ=yes
17460 else
17461 # We have old collect2
17462 hardcode_direct_GCJ=unsupported
17463 # It fails to find uninstalled libraries when the uninstalled
17464 # path is not listed in the libpath. Setting hardcode_minus_L
17465 # to unsupported forces relinking
17466 hardcode_minus_L_GCJ=yes
17467 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17468 hardcode_libdir_separator_GCJ=
17469 fi
17470 ;;
17471 esac
17472 shared_flag='-shared'
17473 if test "$aix_use_runtimelinking" = yes; then
17474 shared_flag="$shared_flag "'${wl}-G'
17475 fi
17476 else
17477 # not using gcc
17478 if test "$host_cpu" = ia64; then
17479 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17480 # chokes on -Wl,-G. The following line is correct:
17481 shared_flag='-G'
17482 else
17483 if test "$aix_use_runtimelinking" = yes; then
17484 shared_flag='${wl}-G'
17485 else
17486 shared_flag='${wl}-bM:SRE'
17487 fi
17488 fi
17489 fi
17490
17491 # It seems that -bexpall does not export symbols beginning with
17492 # underscore (_), so it is better to generate a list of symbols to export.
17493 always_export_symbols_GCJ=yes
17494 if test "$aix_use_runtimelinking" = yes; then
17495 # Warning - without using the other runtime loading flags (-brtl),
17496 # -berok will link without error, but may produce a broken library.
17497 allow_undefined_flag_GCJ='-berok'
17498 # Determine the default libpath from the value encoded in an empty executable.
17499 cat >conftest.$ac_ext <<_ACEOF
17500 /* confdefs.h. */
17501 _ACEOF
17502 cat confdefs.h >>conftest.$ac_ext
17503 cat >>conftest.$ac_ext <<_ACEOF
17504 /* end confdefs.h. */
17505
17506 int
17507 main ()
17508 {
17509
17510 ;
17511 return 0;
17512 }
17513 _ACEOF
17514 rm -f conftest.$ac_objext conftest$ac_exeext
17515 if { (ac_try="$ac_link"
17516 case "(($ac_try" in
17517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17518 *) ac_try_echo=$ac_try;;
17519 esac
17520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17521 (eval "$ac_link") 2>conftest.er1
17522 ac_status=$?
17523 grep -v '^ *+' conftest.er1 >conftest.err
17524 rm -f conftest.er1
17525 cat conftest.err >&5
17526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17527 (exit $ac_status); } &&
17528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17529 { (case "(($ac_try" in
17530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17531 *) ac_try_echo=$ac_try;;
17532 esac
17533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17534 (eval "$ac_try") 2>&5
17535 ac_status=$?
17536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17537 (exit $ac_status); }; } &&
17538 { ac_try='test -s conftest$ac_exeext'
17539 { (case "(($ac_try" in
17540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17541 *) ac_try_echo=$ac_try;;
17542 esac
17543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17544 (eval "$ac_try") 2>&5
17545 ac_status=$?
17546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17547 (exit $ac_status); }; }; then
17548
17549 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17550 }'`
17551 # Check for a 64-bit object if we didn't find anything.
17552 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; }
17553 }'`; fi
17554 else
17555 echo "$as_me: failed program was:" >&5
17556 sed 's/^/| /' conftest.$ac_ext >&5
17557
17558
17559 fi
17560
17561 rm -f core conftest.err conftest.$ac_objext \
17562 conftest$ac_exeext conftest.$ac_ext
17563 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17564
17565 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17566 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"
17567 else
17568 if test "$host_cpu" = ia64; then
17569 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17570 allow_undefined_flag_GCJ="-z nodefs"
17571 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"
17572 else
17573 # Determine the default libpath from the value encoded in an empty executable.
17574 cat >conftest.$ac_ext <<_ACEOF
17575 /* confdefs.h. */
17576 _ACEOF
17577 cat confdefs.h >>conftest.$ac_ext
17578 cat >>conftest.$ac_ext <<_ACEOF
17579 /* end confdefs.h. */
17580
17581 int
17582 main ()
17583 {
17584
17585 ;
17586 return 0;
17587 }
17588 _ACEOF
17589 rm -f conftest.$ac_objext conftest$ac_exeext
17590 if { (ac_try="$ac_link"
17591 case "(($ac_try" in
17592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17593 *) ac_try_echo=$ac_try;;
17594 esac
17595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17596 (eval "$ac_link") 2>conftest.er1
17597 ac_status=$?
17598 grep -v '^ *+' conftest.er1 >conftest.err
17599 rm -f conftest.er1
17600 cat conftest.err >&5
17601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17602 (exit $ac_status); } &&
17603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17604 { (case "(($ac_try" in
17605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17606 *) ac_try_echo=$ac_try;;
17607 esac
17608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17609 (eval "$ac_try") 2>&5
17610 ac_status=$?
17611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17612 (exit $ac_status); }; } &&
17613 { ac_try='test -s conftest$ac_exeext'
17614 { (case "(($ac_try" in
17615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17616 *) ac_try_echo=$ac_try;;
17617 esac
17618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17619 (eval "$ac_try") 2>&5
17620 ac_status=$?
17621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17622 (exit $ac_status); }; }; then
17623
17624 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17625 }'`
17626 # Check for a 64-bit object if we didn't find anything.
17627 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; }
17628 }'`; fi
17629 else
17630 echo "$as_me: failed program was:" >&5
17631 sed 's/^/| /' conftest.$ac_ext >&5
17632
17633
17634 fi
17635
17636 rm -f core conftest.err conftest.$ac_objext \
17637 conftest$ac_exeext conftest.$ac_ext
17638 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17639
17640 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17641 # Warning - without using the other run time loading flags,
17642 # -berok will link without error, but may produce a broken library.
17643 no_undefined_flag_GCJ=' ${wl}-bernotok'
17644 allow_undefined_flag_GCJ=' ${wl}-berok'
17645 # Exported symbols can be pulled into shared objects from archives
17646 whole_archive_flag_spec_GCJ='$convenience'
17647 archive_cmds_need_lc_GCJ=yes
17648 # This is similar to how AIX traditionally builds its shared libraries.
17649 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'
17650 fi
17651 fi
17652 ;;
17653
17654 amigaos*)
17655 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)'
17656 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17657 hardcode_minus_L_GCJ=yes
17658 # see comment about different semantics on the GNU ld section
17659 ld_shlibs_GCJ=no
17660 ;;
17661
17662 bsdi[45]*)
17663 export_dynamic_flag_spec_GCJ=-rdynamic
17664 ;;
17665
17666 cygwin* | mingw* | pw32*)
17667 # When not using gcc, we currently assume that we are using
17668 # Microsoft Visual C++.
17669 # hardcode_libdir_flag_spec is actually meaningless, as there is
17670 # no search path for DLLs.
17671 hardcode_libdir_flag_spec_GCJ=' '
17672 allow_undefined_flag_GCJ=unsupported
17673 # Tell ltmain to make .lib files, not .a files.
17674 libext=lib
17675 # Tell ltmain to make .dll files, not .so files.
17676 shrext_cmds=".dll"
17677 # FIXME: Setting linknames here is a bad hack.
17678 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17679 # The linker will automatically build a .lib file if we build a DLL.
17680 old_archive_From_new_cmds_GCJ='true'
17681 # FIXME: Should let the user specify the lib program.
17682 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17683 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17684 enable_shared_with_static_runtimes_GCJ=yes
17685 ;;
17686
17687 darwin* | rhapsody*)
17688 case $host_os in
17689 rhapsody* | darwin1.[012])
17690 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17691 ;;
17692 *) # Darwin 1.3 on
17693 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17694 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17695 else
17696 case ${MACOSX_DEPLOYMENT_TARGET} in
17697 10.[012])
17698 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17699 ;;
17700 10.*)
17701 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17702 ;;
17703 esac
17704 fi
17705 ;;
17706 esac
17707 archive_cmds_need_lc_GCJ=no
17708 hardcode_direct_GCJ=no
17709 hardcode_automatic_GCJ=yes
17710 hardcode_shlibpath_var_GCJ=unsupported
17711 whole_archive_flag_spec_GCJ=''
17712 link_all_deplibs_GCJ=yes
17713 if test "$GCC" = yes ; then
17714 output_verbose_link_cmd='echo'
17715 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17716 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17717 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17718 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}'
17719 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}'
17720 else
17721 case $cc_basename in
17722 xlc*)
17723 output_verbose_link_cmd='echo'
17724 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17725 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17726 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17727 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}'
17728 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}'
17729 ;;
17730 *)
17731 ld_shlibs_GCJ=no
17732 ;;
17733 esac
17734 fi
17735 ;;
17736
17737 dgux*)
17738 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17739 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17740 hardcode_shlibpath_var_GCJ=no
17741 ;;
17742
17743 freebsd1*)
17744 ld_shlibs_GCJ=no
17745 ;;
17746
17747 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17748 # support. Future versions do this automatically, but an explicit c++rt0.o
17749 # does not break anything, and helps significantly (at the cost of a little
17750 # extra space).
17751 freebsd2.2*)
17752 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17753 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17754 hardcode_direct_GCJ=yes
17755 hardcode_shlibpath_var_GCJ=no
17756 ;;
17757
17758 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17759 freebsd2*)
17760 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17761 hardcode_direct_GCJ=yes
17762 hardcode_minus_L_GCJ=yes
17763 hardcode_shlibpath_var_GCJ=no
17764 ;;
17765
17766 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17767 freebsd* | dragonfly*)
17768 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17769 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17770 hardcode_direct_GCJ=yes
17771 hardcode_shlibpath_var_GCJ=no
17772 ;;
17773
17774 hpux9*)
17775 if test "$GCC" = yes; then
17776 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'
17777 else
17778 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'
17779 fi
17780 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17781 hardcode_libdir_separator_GCJ=:
17782 hardcode_direct_GCJ=yes
17783
17784 # hardcode_minus_L: Not really in the search PATH,
17785 # but as the default location of the library.
17786 hardcode_minus_L_GCJ=yes
17787 export_dynamic_flag_spec_GCJ='${wl}-E'
17788 ;;
17789
17790 hpux10*)
17791 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17792 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17793 else
17794 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17795 fi
17796 if test "$with_gnu_ld" = no; then
17797 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17798 hardcode_libdir_separator_GCJ=:
17799
17800 hardcode_direct_GCJ=yes
17801 export_dynamic_flag_spec_GCJ='${wl}-E'
17802
17803 # hardcode_minus_L: Not really in the search PATH,
17804 # but as the default location of the library.
17805 hardcode_minus_L_GCJ=yes
17806 fi
17807 ;;
17808
17809 hpux11*)
17810 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17811 case $host_cpu in
17812 hppa*64*)
17813 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17814 ;;
17815 ia64*)
17816 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17817 ;;
17818 *)
17819 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17820 ;;
17821 esac
17822 else
17823 case $host_cpu in
17824 hppa*64*)
17825 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17826 ;;
17827 ia64*)
17828 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17829 ;;
17830 *)
17831 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17832 ;;
17833 esac
17834 fi
17835 if test "$with_gnu_ld" = no; then
17836 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17837 hardcode_libdir_separator_GCJ=:
17838
17839 case $host_cpu in
17840 hppa*64*|ia64*)
17841 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17842 hardcode_direct_GCJ=no
17843 hardcode_shlibpath_var_GCJ=no
17844 ;;
17845 *)
17846 hardcode_direct_GCJ=yes
17847 export_dynamic_flag_spec_GCJ='${wl}-E'
17848
17849 # hardcode_minus_L: Not really in the search PATH,
17850 # but as the default location of the library.
17851 hardcode_minus_L_GCJ=yes
17852 ;;
17853 esac
17854 fi
17855 ;;
17856
17857 irix5* | irix6* | nonstopux*)
17858 if test "$GCC" = yes; then
17859 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'
17860 else
17861 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'
17862 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17863 fi
17864 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17865 hardcode_libdir_separator_GCJ=:
17866 link_all_deplibs_GCJ=yes
17867 ;;
17868
17869 netbsd* | netbsdelf*-gnu)
17870 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17871 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17872 else
17873 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17874 fi
17875 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17876 hardcode_direct_GCJ=yes
17877 hardcode_shlibpath_var_GCJ=no
17878 ;;
17879
17880 newsos6)
17881 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17882 hardcode_direct_GCJ=yes
17883 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17884 hardcode_libdir_separator_GCJ=:
17885 hardcode_shlibpath_var_GCJ=no
17886 ;;
17887
17888 openbsd*)
17889 hardcode_direct_GCJ=yes
17890 hardcode_shlibpath_var_GCJ=no
17891 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17892 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17893 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17894 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17895 export_dynamic_flag_spec_GCJ='${wl}-E'
17896 else
17897 case $host_os in
17898 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17899 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17900 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17901 ;;
17902 *)
17903 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17904 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17905 ;;
17906 esac
17907 fi
17908 ;;
17909
17910 os2*)
17911 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17912 hardcode_minus_L_GCJ=yes
17913 allow_undefined_flag_GCJ=unsupported
17914 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'
17915 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17916 ;;
17917
17918 osf3*)
17919 if test "$GCC" = yes; then
17920 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17921 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'
17922 else
17923 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17924 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'
17925 fi
17926 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17927 hardcode_libdir_separator_GCJ=:
17928 ;;
17929
17930 osf4* | osf5*) # as osf3* with the addition of -msym flag
17931 if test "$GCC" = yes; then
17932 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17933 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'
17934 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17935 else
17936 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17937 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'
17938 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~
17939 $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'
17940
17941 # Both c and cxx compiler support -rpath directly
17942 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17943 fi
17944 hardcode_libdir_separator_GCJ=:
17945 ;;
17946
17947 solaris*)
17948 no_undefined_flag_GCJ=' -z text'
17949 if test "$GCC" = yes; then
17950 wlarc='${wl}'
17951 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17952 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17953 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17954 else
17955 wlarc=''
17956 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17957 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17958 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17959 fi
17960 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17961 hardcode_shlibpath_var_GCJ=no
17962 case $host_os in
17963 solaris2.[0-5] | solaris2.[0-5].*) ;;
17964 *)
17965 # The compiler driver will combine linker options so we
17966 # cannot just pass the convience library names through
17967 # without $wl, iff we do not link with $LD.
17968 # Luckily, gcc supports the same syntax we need for Sun Studio.
17969 # Supported since Solaris 2.6 (maybe 2.5.1?)
17970 case $wlarc in
17971 '')
17972 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17973 *)
17974 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' ;;
17975 esac ;;
17976 esac
17977 link_all_deplibs_GCJ=yes
17978 ;;
17979
17980 sunos4*)
17981 if test "x$host_vendor" = xsequent; then
17982 # Use $CC to link under sequent, because it throws in some extra .o
17983 # files that make .init and .fini sections work.
17984 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17985 else
17986 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17987 fi
17988 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17989 hardcode_direct_GCJ=yes
17990 hardcode_minus_L_GCJ=yes
17991 hardcode_shlibpath_var_GCJ=no
17992 ;;
17993
17994 sysv4)
17995 case $host_vendor in
17996 sni)
17997 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17998 hardcode_direct_GCJ=yes # is this really true???
17999 ;;
18000 siemens)
18001 ## LD is ld it makes a PLAMLIB
18002 ## CC just makes a GrossModule.
18003 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18004 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18005 hardcode_direct_GCJ=no
18006 ;;
18007 motorola)
18008 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18009 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18010 ;;
18011 esac
18012 runpath_var='LD_RUN_PATH'
18013 hardcode_shlibpath_var_GCJ=no
18014 ;;
18015
18016 sysv4.3*)
18017 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18018 hardcode_shlibpath_var_GCJ=no
18019 export_dynamic_flag_spec_GCJ='-Bexport'
18020 ;;
18021
18022 sysv4*MP*)
18023 if test -d /usr/nec; then
18024 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18025 hardcode_shlibpath_var_GCJ=no
18026 runpath_var=LD_RUN_PATH
18027 hardcode_runpath_var=yes
18028 ld_shlibs_GCJ=yes
18029 fi
18030 ;;
18031
18032 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18033 no_undefined_flag_GCJ='${wl}-z,text'
18034 archive_cmds_need_lc_GCJ=no
18035 hardcode_shlibpath_var_GCJ=no
18036 runpath_var='LD_RUN_PATH'
18037
18038 if test "$GCC" = yes; then
18039 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18040 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18041 else
18042 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18043 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18044 fi
18045 ;;
18046
18047 sysv5* | sco3.2v5* | sco5v6*)
18048 # Note: We can NOT use -z defs as we might desire, because we do not
18049 # link with -lc, and that would cause any symbols used from libc to
18050 # always be unresolved, which means just about no library would
18051 # ever link correctly. If we're not using GNU ld we use -z text
18052 # though, which does catch some bad symbols but isn't as heavy-handed
18053 # as -z defs.
18054 no_undefined_flag_GCJ='${wl}-z,text'
18055 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18056 archive_cmds_need_lc_GCJ=no
18057 hardcode_shlibpath_var_GCJ=no
18058 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18059 hardcode_libdir_separator_GCJ=':'
18060 link_all_deplibs_GCJ=yes
18061 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18062 runpath_var='LD_RUN_PATH'
18063
18064 if test "$GCC" = yes; then
18065 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18066 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18067 else
18068 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18069 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18070 fi
18071 ;;
18072
18073 uts4*)
18074 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18075 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18076 hardcode_shlibpath_var_GCJ=no
18077 ;;
18078
18079 *)
18080 ld_shlibs_GCJ=no
18081 ;;
18082 esac
18083 fi
18084
18085 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18086 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18087 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18088
18089 #
18090 # Do we need to explicitly link libc?
18091 #
18092 case "x$archive_cmds_need_lc_GCJ" in
18093 x|xyes)
18094 # Assume -lc should be added
18095 archive_cmds_need_lc_GCJ=yes
18096
18097 if test "$enable_shared" = yes && test "$GCC" = yes; then
18098 case $archive_cmds_GCJ in
18099 *'~'*)
18100 # FIXME: we may have to deal with multi-command sequences.
18101 ;;
18102 '$CC '*)
18103 # Test whether the compiler implicitly links with -lc since on some
18104 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18105 # to ld, don't add -lc before -lgcc.
18106 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18107 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18108 $rm conftest*
18109 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18110
18111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18112 (eval $ac_compile) 2>&5
18113 ac_status=$?
18114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18115 (exit $ac_status); } 2>conftest.err; then
18116 soname=conftest
18117 lib=conftest
18118 libobjs=conftest.$ac_objext
18119 deplibs=
18120 wl=$lt_prog_compiler_wl_GCJ
18121 pic_flag=$lt_prog_compiler_pic_GCJ
18122 compiler_flags=-v
18123 linker_flags=-v
18124 verstring=
18125 output_objdir=.
18126 libname=conftest
18127 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18128 allow_undefined_flag_GCJ=
18129 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18130 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18131 ac_status=$?
18132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18133 (exit $ac_status); }
18134 then
18135 archive_cmds_need_lc_GCJ=no
18136 else
18137 archive_cmds_need_lc_GCJ=yes
18138 fi
18139 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18140 else
18141 cat conftest.err 1>&5
18142 fi
18143 $rm conftest*
18144 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18145 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18146 ;;
18147 esac
18148 fi
18149 ;;
18150 esac
18151
18152 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18153 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18154 library_names_spec=
18155 libname_spec='lib$name'
18156 soname_spec=
18157 shrext_cmds=".so"
18158 postinstall_cmds=
18159 postuninstall_cmds=
18160 finish_cmds=
18161 finish_eval=
18162 shlibpath_var=
18163 shlibpath_overrides_runpath=unknown
18164 version_type=none
18165 dynamic_linker="$host_os ld.so"
18166 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18167 if test "$GCC" = yes; then
18168 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18169 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18170 # if the path contains ";" then we assume it to be the separator
18171 # otherwise default to the standard path separator (i.e. ":") - it is
18172 # assumed that no part of a normal pathname contains ";" but that should
18173 # okay in the real world where ";" in dirpaths is itself problematic.
18174 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18175 else
18176 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18177 fi
18178 else
18179 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18180 fi
18181 need_lib_prefix=unknown
18182 hardcode_into_libs=no
18183
18184 # when you set need_version to no, make sure it does not cause -set_version
18185 # flags to be left without arguments
18186 need_version=unknown
18187
18188 case $host_os in
18189 aix3*)
18190 version_type=linux
18191 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18192 shlibpath_var=LIBPATH
18193
18194 # AIX 3 has no versioning support, so we append a major version to the name.
18195 soname_spec='${libname}${release}${shared_ext}$major'
18196 ;;
18197
18198 aix4* | aix5*)
18199 version_type=linux
18200 need_lib_prefix=no
18201 need_version=no
18202 hardcode_into_libs=yes
18203 if test "$host_cpu" = ia64; then
18204 # AIX 5 supports IA64
18205 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18206 shlibpath_var=LD_LIBRARY_PATH
18207 else
18208 # With GCC up to 2.95.x, collect2 would create an import file
18209 # for dependence libraries. The import file would start with
18210 # the line `#! .'. This would cause the generated library to
18211 # depend on `.', always an invalid library. This was fixed in
18212 # development snapshots of GCC prior to 3.0.
18213 case $host_os in
18214 aix4 | aix4.[01] | aix4.[01].*)
18215 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18216 echo ' yes '
18217 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18218 :
18219 else
18220 can_build_shared=no
18221 fi
18222 ;;
18223 esac
18224 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18225 # soname into executable. Probably we can add versioning support to
18226 # collect2, so additional links can be useful in future.
18227 if test "$aix_use_runtimelinking" = yes; then
18228 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18229 # instead of lib<name>.a to let people know that these are not
18230 # typical AIX shared libraries.
18231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18232 else
18233 # We preserve .a as extension for shared libraries through AIX4.2
18234 # and later when we are not doing run time linking.
18235 library_names_spec='${libname}${release}.a $libname.a'
18236 soname_spec='${libname}${release}${shared_ext}$major'
18237 fi
18238 shlibpath_var=LIBPATH
18239 fi
18240 ;;
18241
18242 amigaos*)
18243 library_names_spec='$libname.ixlibrary $libname.a'
18244 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18245 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'
18246 ;;
18247
18248 beos*)
18249 library_names_spec='${libname}${shared_ext}'
18250 dynamic_linker="$host_os ld.so"
18251 shlibpath_var=LIBRARY_PATH
18252 ;;
18253
18254 bsdi[45]*)
18255 version_type=linux
18256 need_version=no
18257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18258 soname_spec='${libname}${release}${shared_ext}$major'
18259 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18260 shlibpath_var=LD_LIBRARY_PATH
18261 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18262 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18263 # the default ld.so.conf also contains /usr/contrib/lib and
18264 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18265 # libtool to hard-code these into programs
18266 ;;
18267
18268 cygwin* | mingw* | pw32*)
18269 version_type=windows
18270 shrext_cmds=".dll"
18271 need_version=no
18272 need_lib_prefix=no
18273
18274 case $GCC,$host_os in
18275 yes,cygwin* | yes,mingw* | yes,pw32*)
18276 library_names_spec='$libname.dll.a'
18277 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18278 postinstall_cmds='base_file=`basename \${file}`~
18279 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18280 dldir=$destdir/`dirname \$dlpath`~
18281 test -d \$dldir || mkdir -p \$dldir~
18282 $install_prog $dir/$dlname \$dldir/$dlname~
18283 chmod a+x \$dldir/$dlname'
18284 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18285 dlpath=$dir/\$dldll~
18286 $rm \$dlpath'
18287 shlibpath_overrides_runpath=yes
18288
18289 case $host_os in
18290 cygwin*)
18291 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18292 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18293 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18294 ;;
18295 mingw*)
18296 # MinGW DLLs use traditional 'lib' prefix
18297 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18298 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18299 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18300 # It is most probably a Windows format PATH printed by
18301 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18302 # path with ; separators, and with drive letters. We can handle the
18303 # drive letters (cygwin fileutils understands them), so leave them,
18304 # especially as we might pass files found there to a mingw objdump,
18305 # which wouldn't understand a cygwinified path. Ahh.
18306 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18307 else
18308 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18309 fi
18310 ;;
18311 pw32*)
18312 # pw32 DLLs use 'pw' prefix rather than 'lib'
18313 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18314 ;;
18315 esac
18316 ;;
18317
18318 *)
18319 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18320 ;;
18321 esac
18322 dynamic_linker='Win32 ld.exe'
18323 # FIXME: first we should search . and the directory the executable is in
18324 shlibpath_var=PATH
18325 ;;
18326
18327 darwin* | rhapsody*)
18328 dynamic_linker="$host_os dyld"
18329 version_type=darwin
18330 need_lib_prefix=no
18331 need_version=no
18332 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18333 soname_spec='${libname}${release}${major}$shared_ext'
18334 shlibpath_overrides_runpath=yes
18335 shlibpath_var=DYLD_LIBRARY_PATH
18336 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18337 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18338 if test "$GCC" = yes; then
18339 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"`
18340 else
18341 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18342 fi
18343 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18344 ;;
18345
18346 dgux*)
18347 version_type=linux
18348 need_lib_prefix=no
18349 need_version=no
18350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18351 soname_spec='${libname}${release}${shared_ext}$major'
18352 shlibpath_var=LD_LIBRARY_PATH
18353 ;;
18354
18355 freebsd1*)
18356 dynamic_linker=no
18357 ;;
18358
18359 freebsd* | dragonfly*)
18360 # DragonFly does not have aout. When/if they implement a new
18361 # versioning mechanism, adjust this.
18362 if test -x /usr/bin/objformat; then
18363 objformat=`/usr/bin/objformat`
18364 else
18365 case $host_os in
18366 freebsd[123]*) objformat=aout ;;
18367 *) objformat=elf ;;
18368 esac
18369 fi
18370 version_type=freebsd-$objformat
18371 case $version_type in
18372 freebsd-elf*)
18373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18374 need_version=no
18375 need_lib_prefix=no
18376 ;;
18377 freebsd-*)
18378 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18379 need_version=yes
18380 ;;
18381 esac
18382 shlibpath_var=LD_LIBRARY_PATH
18383 case $host_os in
18384 freebsd2*)
18385 shlibpath_overrides_runpath=yes
18386 ;;
18387 freebsd3.[01]* | freebsdelf3.[01]*)
18388 shlibpath_overrides_runpath=yes
18389 hardcode_into_libs=yes
18390 ;;
18391 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18392 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18393 shlibpath_overrides_runpath=no
18394 hardcode_into_libs=yes
18395 ;;
18396 freebsd*) # from 4.6 on
18397 shlibpath_overrides_runpath=yes
18398 hardcode_into_libs=yes
18399 ;;
18400 esac
18401 ;;
18402
18403 gnu*)
18404 version_type=linux
18405 need_lib_prefix=no
18406 need_version=no
18407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18408 soname_spec='${libname}${release}${shared_ext}$major'
18409 shlibpath_var=LD_LIBRARY_PATH
18410 hardcode_into_libs=yes
18411 ;;
18412
18413 hpux9* | hpux10* | hpux11*)
18414 # Give a soname corresponding to the major version so that dld.sl refuses to
18415 # link against other versions.
18416 version_type=sunos
18417 need_lib_prefix=no
18418 need_version=no
18419 case $host_cpu in
18420 ia64*)
18421 shrext_cmds='.so'
18422 hardcode_into_libs=yes
18423 dynamic_linker="$host_os dld.so"
18424 shlibpath_var=LD_LIBRARY_PATH
18425 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18427 soname_spec='${libname}${release}${shared_ext}$major'
18428 if test "X$HPUX_IA64_MODE" = X32; then
18429 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18430 else
18431 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18432 fi
18433 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18434 ;;
18435 hppa*64*)
18436 shrext_cmds='.sl'
18437 hardcode_into_libs=yes
18438 dynamic_linker="$host_os dld.sl"
18439 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18440 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18442 soname_spec='${libname}${release}${shared_ext}$major'
18443 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18444 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18445 ;;
18446 *)
18447 shrext_cmds='.sl'
18448 dynamic_linker="$host_os dld.sl"
18449 shlibpath_var=SHLIB_PATH
18450 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18452 soname_spec='${libname}${release}${shared_ext}$major'
18453 ;;
18454 esac
18455 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18456 postinstall_cmds='chmod 555 $lib'
18457 ;;
18458
18459 interix3*)
18460 version_type=linux
18461 need_lib_prefix=no
18462 need_version=no
18463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18464 soname_spec='${libname}${release}${shared_ext}$major'
18465 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18466 shlibpath_var=LD_LIBRARY_PATH
18467 shlibpath_overrides_runpath=no
18468 hardcode_into_libs=yes
18469 ;;
18470
18471 irix5* | irix6* | nonstopux*)
18472 case $host_os in
18473 nonstopux*) version_type=nonstopux ;;
18474 *)
18475 if test "$lt_cv_prog_gnu_ld" = yes; then
18476 version_type=linux
18477 else
18478 version_type=irix
18479 fi ;;
18480 esac
18481 need_lib_prefix=no
18482 need_version=no
18483 soname_spec='${libname}${release}${shared_ext}$major'
18484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18485 case $host_os in
18486 irix5* | nonstopux*)
18487 libsuff= shlibsuff=
18488 ;;
18489 *)
18490 case $LD in # libtool.m4 will add one of these switches to LD
18491 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18492 libsuff= shlibsuff= libmagic=32-bit;;
18493 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18494 libsuff=32 shlibsuff=N32 libmagic=N32;;
18495 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18496 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18497 *) libsuff= shlibsuff= libmagic=never-match;;
18498 esac
18499 ;;
18500 esac
18501 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18502 shlibpath_overrides_runpath=no
18503 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18504 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18505 hardcode_into_libs=yes
18506 ;;
18507
18508 # No shared lib support for Linux oldld, aout, or coff.
18509 linux*oldld* | linux*aout* | linux*coff*)
18510 dynamic_linker=no
18511 ;;
18512
18513 # This must be Linux ELF.
18514 linux* | k*bsd*-gnu)
18515 version_type=linux
18516 need_lib_prefix=no
18517 need_version=no
18518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18519 soname_spec='${libname}${release}${shared_ext}$major'
18520 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18521 shlibpath_var=LD_LIBRARY_PATH
18522 shlibpath_overrides_runpath=no
18523 # This implies no fast_install, which is unacceptable.
18524 # Some rework will be needed to allow for fast_install
18525 # before this can be enabled.
18526 hardcode_into_libs=yes
18527
18528 # Append ld.so.conf contents to the search path
18529 if test -f /etc/ld.so.conf; then
18530 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' ' '`
18531 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18532 fi
18533
18534 # We used to test for /lib/ld.so.1 and disable shared libraries on
18535 # powerpc, because MkLinux only supported shared libraries with the
18536 # GNU dynamic linker. Since this was broken with cross compilers,
18537 # most powerpc-linux boxes support dynamic linking these days and
18538 # people can always --disable-shared, the test was removed, and we
18539 # assume the GNU/Linux dynamic linker is in use.
18540 dynamic_linker='GNU/Linux ld.so'
18541 ;;
18542
18543 netbsdelf*-gnu)
18544 version_type=linux
18545 need_lib_prefix=no
18546 need_version=no
18547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18548 soname_spec='${libname}${release}${shared_ext}$major'
18549 shlibpath_var=LD_LIBRARY_PATH
18550 shlibpath_overrides_runpath=no
18551 hardcode_into_libs=yes
18552 dynamic_linker='NetBSD ld.elf_so'
18553 ;;
18554
18555 netbsd*)
18556 version_type=sunos
18557 need_lib_prefix=no
18558 need_version=no
18559 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18561 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18562 dynamic_linker='NetBSD (a.out) ld.so'
18563 else
18564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18565 soname_spec='${libname}${release}${shared_ext}$major'
18566 dynamic_linker='NetBSD ld.elf_so'
18567 fi
18568 shlibpath_var=LD_LIBRARY_PATH
18569 shlibpath_overrides_runpath=yes
18570 hardcode_into_libs=yes
18571 ;;
18572
18573 newsos6)
18574 version_type=linux
18575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18576 shlibpath_var=LD_LIBRARY_PATH
18577 shlibpath_overrides_runpath=yes
18578 ;;
18579
18580 nto-qnx*)
18581 version_type=linux
18582 need_lib_prefix=no
18583 need_version=no
18584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18585 soname_spec='${libname}${release}${shared_ext}$major'
18586 shlibpath_var=LD_LIBRARY_PATH
18587 shlibpath_overrides_runpath=yes
18588 ;;
18589
18590 openbsd*)
18591 version_type=sunos
18592 sys_lib_dlsearch_path_spec="/usr/lib"
18593 need_lib_prefix=no
18594 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18595 case $host_os in
18596 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18597 *) need_version=no ;;
18598 esac
18599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18600 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18601 shlibpath_var=LD_LIBRARY_PATH
18602 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18603 case $host_os in
18604 openbsd2.[89] | openbsd2.[89].*)
18605 shlibpath_overrides_runpath=no
18606 ;;
18607 *)
18608 shlibpath_overrides_runpath=yes
18609 ;;
18610 esac
18611 else
18612 shlibpath_overrides_runpath=yes
18613 fi
18614 ;;
18615
18616 os2*)
18617 libname_spec='$name'
18618 shrext_cmds=".dll"
18619 need_lib_prefix=no
18620 library_names_spec='$libname${shared_ext} $libname.a'
18621 dynamic_linker='OS/2 ld.exe'
18622 shlibpath_var=LIBPATH
18623 ;;
18624
18625 osf3* | osf4* | osf5*)
18626 version_type=osf
18627 need_lib_prefix=no
18628 need_version=no
18629 soname_spec='${libname}${release}${shared_ext}$major'
18630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18631 shlibpath_var=LD_LIBRARY_PATH
18632 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18633 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18634 ;;
18635
18636 solaris*)
18637 version_type=linux
18638 need_lib_prefix=no
18639 need_version=no
18640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18641 soname_spec='${libname}${release}${shared_ext}$major'
18642 shlibpath_var=LD_LIBRARY_PATH
18643 shlibpath_overrides_runpath=yes
18644 hardcode_into_libs=yes
18645 # ldd complains unless libraries are executable
18646 postinstall_cmds='chmod +x $lib'
18647 ;;
18648
18649 sunos4*)
18650 version_type=sunos
18651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18652 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18653 shlibpath_var=LD_LIBRARY_PATH
18654 shlibpath_overrides_runpath=yes
18655 if test "$with_gnu_ld" = yes; then
18656 need_lib_prefix=no
18657 fi
18658 need_version=yes
18659 ;;
18660
18661 sysv4 | sysv4.3*)
18662 version_type=linux
18663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18664 soname_spec='${libname}${release}${shared_ext}$major'
18665 shlibpath_var=LD_LIBRARY_PATH
18666 case $host_vendor in
18667 sni)
18668 shlibpath_overrides_runpath=no
18669 need_lib_prefix=no
18670 export_dynamic_flag_spec='${wl}-Blargedynsym'
18671 runpath_var=LD_RUN_PATH
18672 ;;
18673 siemens)
18674 need_lib_prefix=no
18675 ;;
18676 motorola)
18677 need_lib_prefix=no
18678 need_version=no
18679 shlibpath_overrides_runpath=no
18680 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18681 ;;
18682 esac
18683 ;;
18684
18685 sysv4*MP*)
18686 if test -d /usr/nec ;then
18687 version_type=linux
18688 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18689 soname_spec='$libname${shared_ext}.$major'
18690 shlibpath_var=LD_LIBRARY_PATH
18691 fi
18692 ;;
18693
18694 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18695 version_type=freebsd-elf
18696 need_lib_prefix=no
18697 need_version=no
18698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18699 soname_spec='${libname}${release}${shared_ext}$major'
18700 shlibpath_var=LD_LIBRARY_PATH
18701 hardcode_into_libs=yes
18702 if test "$with_gnu_ld" = yes; then
18703 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18704 shlibpath_overrides_runpath=no
18705 else
18706 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18707 shlibpath_overrides_runpath=yes
18708 case $host_os in
18709 sco3.2v5*)
18710 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18711 ;;
18712 esac
18713 fi
18714 sys_lib_dlsearch_path_spec='/usr/lib'
18715 ;;
18716
18717 uts4*)
18718 version_type=linux
18719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18720 soname_spec='${libname}${release}${shared_ext}$major'
18721 shlibpath_var=LD_LIBRARY_PATH
18722 ;;
18723
18724 *)
18725 dynamic_linker=no
18726 ;;
18727 esac
18728 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18729 echo "${ECHO_T}$dynamic_linker" >&6; }
18730 test "$dynamic_linker" = no && can_build_shared=no
18731
18732 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18733 if test "$GCC" = yes; then
18734 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18735 fi
18736
18737 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18738 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18739 hardcode_action_GCJ=
18740 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18741 test -n "$runpath_var_GCJ" || \
18742 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18743
18744 # We can hardcode non-existant directories.
18745 if test "$hardcode_direct_GCJ" != no &&
18746 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18747 # have to relink, otherwise we might link with an installed library
18748 # when we should be linking with a yet-to-be-installed one
18749 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18750 test "$hardcode_minus_L_GCJ" != no; then
18751 # Linking always hardcodes the temporary library directory.
18752 hardcode_action_GCJ=relink
18753 else
18754 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18755 hardcode_action_GCJ=immediate
18756 fi
18757 else
18758 # We cannot hardcode anything, or else we can only hardcode existing
18759 # directories.
18760 hardcode_action_GCJ=unsupported
18761 fi
18762 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18763 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18764
18765 if test "$hardcode_action_GCJ" = relink; then
18766 # Fast installation is not supported
18767 enable_fast_install=no
18768 elif test "$shlibpath_overrides_runpath" = yes ||
18769 test "$enable_shared" = no; then
18770 # Fast installation is not necessary
18771 enable_fast_install=needless
18772 fi
18773
18774
18775 # The else clause should only fire when bootstrapping the
18776 # libtool distribution, otherwise you forgot to ship ltmain.sh
18777 # with your package, and you will get complaints that there are
18778 # no rules to generate ltmain.sh.
18779 if test -f "$ltmain"; then
18780 # See if we are running on zsh, and set the options which allow our commands through
18781 # without removal of \ escapes.
18782 if test -n "${ZSH_VERSION+set}" ; then
18783 setopt NO_GLOB_SUBST
18784 fi
18785 # Now quote all the things that may contain metacharacters while being
18786 # careful not to overquote the AC_SUBSTed values. We take copies of the
18787 # variables and quote the copies for generation of the libtool script.
18788 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18789 SED SHELL STRIP \
18790 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18791 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18792 deplibs_check_method reload_flag reload_cmds need_locks \
18793 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18794 lt_cv_sys_global_symbol_to_c_name_address \
18795 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18796 old_postinstall_cmds old_postuninstall_cmds \
18797 compiler_GCJ \
18798 CC_GCJ \
18799 LD_GCJ \
18800 lt_prog_compiler_wl_GCJ \
18801 lt_prog_compiler_pic_GCJ \
18802 lt_prog_compiler_static_GCJ \
18803 lt_prog_compiler_no_builtin_flag_GCJ \
18804 export_dynamic_flag_spec_GCJ \
18805 thread_safe_flag_spec_GCJ \
18806 whole_archive_flag_spec_GCJ \
18807 enable_shared_with_static_runtimes_GCJ \
18808 old_archive_cmds_GCJ \
18809 old_archive_from_new_cmds_GCJ \
18810 predep_objects_GCJ \
18811 postdep_objects_GCJ \
18812 predeps_GCJ \
18813 postdeps_GCJ \
18814 compiler_lib_search_path_GCJ \
18815 archive_cmds_GCJ \
18816 archive_expsym_cmds_GCJ \
18817 postinstall_cmds_GCJ \
18818 postuninstall_cmds_GCJ \
18819 old_archive_from_expsyms_cmds_GCJ \
18820 allow_undefined_flag_GCJ \
18821 no_undefined_flag_GCJ \
18822 export_symbols_cmds_GCJ \
18823 hardcode_libdir_flag_spec_GCJ \
18824 hardcode_libdir_flag_spec_ld_GCJ \
18825 hardcode_libdir_separator_GCJ \
18826 hardcode_automatic_GCJ \
18827 module_cmds_GCJ \
18828 module_expsym_cmds_GCJ \
18829 lt_cv_prog_compiler_c_o_GCJ \
18830 exclude_expsyms_GCJ \
18831 include_expsyms_GCJ; do
18832
18833 case $var in
18834 old_archive_cmds_GCJ | \
18835 old_archive_from_new_cmds_GCJ | \
18836 archive_cmds_GCJ | \
18837 archive_expsym_cmds_GCJ | \
18838 module_cmds_GCJ | \
18839 module_expsym_cmds_GCJ | \
18840 old_archive_from_expsyms_cmds_GCJ | \
18841 export_symbols_cmds_GCJ | \
18842 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18843 postinstall_cmds | postuninstall_cmds | \
18844 old_postinstall_cmds | old_postuninstall_cmds | \
18845 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18846 # Double-quote double-evaled strings.
18847 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18848 ;;
18849 *)
18850 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18851 ;;
18852 esac
18853 done
18854
18855 case $lt_echo in
18856 *'\$0 --fallback-echo"')
18857 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18858 ;;
18859 esac
18860
18861 cfgfile="$ofile"
18862
18863 cat <<__EOF__ >> "$cfgfile"
18864 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18865
18866 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18867
18868 # Shell to use when invoking shell scripts.
18869 SHELL=$lt_SHELL
18870
18871 # Whether or not to build shared libraries.
18872 build_libtool_libs=$enable_shared
18873
18874 # Whether or not to build static libraries.
18875 build_old_libs=$enable_static
18876
18877 # Whether or not to add -lc for building shared libraries.
18878 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18879
18880 # Whether or not to disallow shared libs when runtime libs are static
18881 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18882
18883 # Whether or not to optimize for fast installation.
18884 fast_install=$enable_fast_install
18885
18886 # The host system.
18887 host_alias=$host_alias
18888 host=$host
18889 host_os=$host_os
18890
18891 # The build system.
18892 build_alias=$build_alias
18893 build=$build
18894 build_os=$build_os
18895
18896 # An echo program that does not interpret backslashes.
18897 echo=$lt_echo
18898
18899 # The archiver.
18900 AR=$lt_AR
18901 AR_FLAGS=$lt_AR_FLAGS
18902
18903 # A C compiler.
18904 LTCC=$lt_LTCC
18905
18906 # LTCC compiler flags.
18907 LTCFLAGS=$lt_LTCFLAGS
18908
18909 # A language-specific compiler.
18910 CC=$lt_compiler_GCJ
18911
18912 # Is the compiler the GNU C compiler?
18913 with_gcc=$GCC_GCJ
18914
18915 # An ERE matcher.
18916 EGREP=$lt_EGREP
18917
18918 # The linker used to build libraries.
18919 LD=$lt_LD_GCJ
18920
18921 # Whether we need hard or soft links.
18922 LN_S=$lt_LN_S
18923
18924 # A BSD-compatible nm program.
18925 NM=$lt_NM
18926
18927 # A symbol stripping program
18928 STRIP=$lt_STRIP
18929
18930 # Used to examine libraries when file_magic_cmd begins "file"
18931 MAGIC_CMD=$MAGIC_CMD
18932
18933 # Used on cygwin: DLL creation program.
18934 DLLTOOL="$DLLTOOL"
18935
18936 # Used on cygwin: object dumper.
18937 OBJDUMP="$OBJDUMP"
18938
18939 # Used on cygwin: assembler.
18940 AS="$AS"
18941
18942 # The name of the directory that contains temporary libtool files.
18943 objdir=$objdir
18944
18945 # How to create reloadable object files.
18946 reload_flag=$lt_reload_flag
18947 reload_cmds=$lt_reload_cmds
18948
18949 # How to pass a linker flag through the compiler.
18950 wl=$lt_lt_prog_compiler_wl_GCJ
18951
18952 # Object file suffix (normally "o").
18953 objext="$ac_objext"
18954
18955 # Old archive suffix (normally "a").
18956 libext="$libext"
18957
18958 # Shared library suffix (normally ".so").
18959 shrext_cmds='$shrext_cmds'
18960
18961 # Executable file suffix (normally "").
18962 exeext="$exeext"
18963
18964 # Additional compiler flags for building library objects.
18965 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18966 pic_mode=$pic_mode
18967
18968 # What is the maximum length of a command?
18969 max_cmd_len=$lt_cv_sys_max_cmd_len
18970
18971 # Does compiler simultaneously support -c and -o options?
18972 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18973
18974 # Must we lock files when doing compilation?
18975 need_locks=$lt_need_locks
18976
18977 # Do we need the lib prefix for modules?
18978 need_lib_prefix=$need_lib_prefix
18979
18980 # Do we need a version for libraries?
18981 need_version=$need_version
18982
18983 # Whether dlopen is supported.
18984 dlopen_support=$enable_dlopen
18985
18986 # Whether dlopen of programs is supported.
18987 dlopen_self=$enable_dlopen_self
18988
18989 # Whether dlopen of statically linked programs is supported.
18990 dlopen_self_static=$enable_dlopen_self_static
18991
18992 # Compiler flag to prevent dynamic linking.
18993 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18994
18995 # Compiler flag to turn off builtin functions.
18996 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18997
18998 # Compiler flag to allow reflexive dlopens.
18999 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19000
19001 # Compiler flag to generate shared objects directly from archives.
19002 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19003
19004 # Compiler flag to generate thread-safe objects.
19005 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19006
19007 # Library versioning type.
19008 version_type=$version_type
19009
19010 # Format of library name prefix.
19011 libname_spec=$lt_libname_spec
19012
19013 # List of archive names. First name is the real one, the rest are links.
19014 # The last name is the one that the linker finds with -lNAME.
19015 library_names_spec=$lt_library_names_spec
19016
19017 # The coded name of the library, if different from the real name.
19018 soname_spec=$lt_soname_spec
19019
19020 # Commands used to build and install an old-style archive.
19021 RANLIB=$lt_RANLIB
19022 old_archive_cmds=$lt_old_archive_cmds_GCJ
19023 old_postinstall_cmds=$lt_old_postinstall_cmds
19024 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19025
19026 # Create an old-style archive from a shared archive.
19027 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19028
19029 # Create a temporary old-style archive to link instead of a shared archive.
19030 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19031
19032 # Commands used to build and install a shared archive.
19033 archive_cmds=$lt_archive_cmds_GCJ
19034 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19035 postinstall_cmds=$lt_postinstall_cmds
19036 postuninstall_cmds=$lt_postuninstall_cmds
19037
19038 # Commands used to build a loadable module (assumed same as above if empty)
19039 module_cmds=$lt_module_cmds_GCJ
19040 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19041
19042 # Commands to strip libraries.
19043 old_striplib=$lt_old_striplib
19044 striplib=$lt_striplib
19045
19046 # Dependencies to place before the objects being linked to create a
19047 # shared library.
19048 predep_objects=$lt_predep_objects_GCJ
19049
19050 # Dependencies to place after the objects being linked to create a
19051 # shared library.
19052 postdep_objects=$lt_postdep_objects_GCJ
19053
19054 # Dependencies to place before the objects being linked to create a
19055 # shared library.
19056 predeps=$lt_predeps_GCJ
19057
19058 # Dependencies to place after the objects being linked to create a
19059 # shared library.
19060 postdeps=$lt_postdeps_GCJ
19061
19062 # The library search path used internally by the compiler when linking
19063 # a shared library.
19064 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19065
19066 # Method to check whether dependent libraries are shared objects.
19067 deplibs_check_method=$lt_deplibs_check_method
19068
19069 # Command to use when deplibs_check_method == file_magic.
19070 file_magic_cmd=$lt_file_magic_cmd
19071
19072 # Flag that allows shared libraries with undefined symbols to be built.
19073 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19074
19075 # Flag that forces no undefined symbols.
19076 no_undefined_flag=$lt_no_undefined_flag_GCJ
19077
19078 # Commands used to finish a libtool library installation in a directory.
19079 finish_cmds=$lt_finish_cmds
19080
19081 # Same as above, but a single script fragment to be evaled but not shown.
19082 finish_eval=$lt_finish_eval
19083
19084 # Take the output of nm and produce a listing of raw symbols and C names.
19085 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19086
19087 # Transform the output of nm in a proper C declaration
19088 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19089
19090 # Transform the output of nm in a C name address pair
19091 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19092
19093 # This is the shared library runtime path variable.
19094 runpath_var=$runpath_var
19095
19096 # This is the shared library path variable.
19097 shlibpath_var=$shlibpath_var
19098
19099 # Is shlibpath searched before the hard-coded library search path?
19100 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19101
19102 # How to hardcode a shared library path into an executable.
19103 hardcode_action=$hardcode_action_GCJ
19104
19105 # Whether we should hardcode library paths into libraries.
19106 hardcode_into_libs=$hardcode_into_libs
19107
19108 # Flag to hardcode \$libdir into a binary during linking.
19109 # This must work even if \$libdir does not exist.
19110 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19111
19112 # If ld is used when linking, flag to hardcode \$libdir into
19113 # a binary during linking. This must work even if \$libdir does
19114 # not exist.
19115 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19116
19117 # Whether we need a single -rpath flag with a separated argument.
19118 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19119
19120 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19121 # resulting binary.
19122 hardcode_direct=$hardcode_direct_GCJ
19123
19124 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19125 # resulting binary.
19126 hardcode_minus_L=$hardcode_minus_L_GCJ
19127
19128 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19129 # the resulting binary.
19130 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19131
19132 # Set to yes if building a shared library automatically hardcodes DIR into the library
19133 # and all subsequent libraries and executables linked against it.
19134 hardcode_automatic=$hardcode_automatic_GCJ
19135
19136 # Variables whose values should be saved in libtool wrapper scripts and
19137 # restored at relink time.
19138 variables_saved_for_relink="$variables_saved_for_relink"
19139
19140 # Whether libtool must link a program against all its dependency libraries.
19141 link_all_deplibs=$link_all_deplibs_GCJ
19142
19143 # Compile-time system search path for libraries
19144 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19145
19146 # Run-time system search path for libraries
19147 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19148
19149 # Fix the shell variable \$srcfile for the compiler.
19150 fix_srcfile_path="$fix_srcfile_path_GCJ"
19151
19152 # Set to yes if exported symbols are required.
19153 always_export_symbols=$always_export_symbols_GCJ
19154
19155 # The commands to list exported symbols.
19156 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19157
19158 # The commands to extract the exported symbol list from a shared archive.
19159 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19160
19161 # Symbols that should not be listed in the preloaded symbols.
19162 exclude_expsyms=$lt_exclude_expsyms_GCJ
19163
19164 # Symbols that must always be exported.
19165 include_expsyms=$lt_include_expsyms_GCJ
19166
19167 # ### END LIBTOOL TAG CONFIG: $tagname
19168
19169 __EOF__
19170
19171
19172 else
19173 # If there is no Makefile yet, we rely on a make rule to execute
19174 # `config.status --recheck' to rerun these tests and create the
19175 # libtool script then.
19176 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19177 if test -f "$ltmain_in"; then
19178 test -f Makefile && make "$ltmain"
19179 fi
19180 fi
19181
19182
19183 ac_ext=c
19184 ac_cpp='$CPP $CPPFLAGS'
19185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19188
19189 CC="$lt_save_CC"
19190
19191 else
19192 tagname=""
19193 fi
19194 ;;
19195
19196 RC)
19197
19198
19199 # Source file extension for RC test sources.
19200 ac_ext=rc
19201
19202 # Object file extension for compiled RC test sources.
19203 objext=o
19204 objext_RC=$objext
19205
19206 # Code to be used in simple compile tests
19207 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19208
19209 # Code to be used in simple link tests
19210 lt_simple_link_test_code="$lt_simple_compile_test_code"
19211
19212 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19213
19214 # If no C compiler was specified, use CC.
19215 LTCC=${LTCC-"$CC"}
19216
19217 # If no C compiler flags were specified, use CFLAGS.
19218 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19219
19220 # Allow CC to be a program name with arguments.
19221 compiler=$CC
19222
19223
19224 # save warnings/boilerplate of simple test code
19225 ac_outfile=conftest.$ac_objext
19226 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19227 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19228 _lt_compiler_boilerplate=`cat conftest.err`
19229 $rm conftest*
19230
19231 ac_outfile=conftest.$ac_objext
19232 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19233 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19234 _lt_linker_boilerplate=`cat conftest.err`
19235 $rm conftest*
19236
19237
19238 # Allow CC to be a program name with arguments.
19239 lt_save_CC="$CC"
19240 CC=${RC-"windres"}
19241 compiler=$CC
19242 compiler_RC=$CC
19243 for cc_temp in $compiler""; do
19244 case $cc_temp in
19245 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19246 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19247 \-*) ;;
19248 *) break;;
19249 esac
19250 done
19251 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19252
19253 lt_cv_prog_compiler_c_o_RC=yes
19254
19255 # The else clause should only fire when bootstrapping the
19256 # libtool distribution, otherwise you forgot to ship ltmain.sh
19257 # with your package, and you will get complaints that there are
19258 # no rules to generate ltmain.sh.
19259 if test -f "$ltmain"; then
19260 # See if we are running on zsh, and set the options which allow our commands through
19261 # without removal of \ escapes.
19262 if test -n "${ZSH_VERSION+set}" ; then
19263 setopt NO_GLOB_SUBST
19264 fi
19265 # Now quote all the things that may contain metacharacters while being
19266 # careful not to overquote the AC_SUBSTed values. We take copies of the
19267 # variables and quote the copies for generation of the libtool script.
19268 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19269 SED SHELL STRIP \
19270 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19271 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19272 deplibs_check_method reload_flag reload_cmds need_locks \
19273 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19274 lt_cv_sys_global_symbol_to_c_name_address \
19275 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19276 old_postinstall_cmds old_postuninstall_cmds \
19277 compiler_RC \
19278 CC_RC \
19279 LD_RC \
19280 lt_prog_compiler_wl_RC \
19281 lt_prog_compiler_pic_RC \
19282 lt_prog_compiler_static_RC \
19283 lt_prog_compiler_no_builtin_flag_RC \
19284 export_dynamic_flag_spec_RC \
19285 thread_safe_flag_spec_RC \
19286 whole_archive_flag_spec_RC \
19287 enable_shared_with_static_runtimes_RC \
19288 old_archive_cmds_RC \
19289 old_archive_from_new_cmds_RC \
19290 predep_objects_RC \
19291 postdep_objects_RC \
19292 predeps_RC \
19293 postdeps_RC \
19294 compiler_lib_search_path_RC \
19295 archive_cmds_RC \
19296 archive_expsym_cmds_RC \
19297 postinstall_cmds_RC \
19298 postuninstall_cmds_RC \
19299 old_archive_from_expsyms_cmds_RC \
19300 allow_undefined_flag_RC \
19301 no_undefined_flag_RC \
19302 export_symbols_cmds_RC \
19303 hardcode_libdir_flag_spec_RC \
19304 hardcode_libdir_flag_spec_ld_RC \
19305 hardcode_libdir_separator_RC \
19306 hardcode_automatic_RC \
19307 module_cmds_RC \
19308 module_expsym_cmds_RC \
19309 lt_cv_prog_compiler_c_o_RC \
19310 exclude_expsyms_RC \
19311 include_expsyms_RC; do
19312
19313 case $var in
19314 old_archive_cmds_RC | \
19315 old_archive_from_new_cmds_RC | \
19316 archive_cmds_RC | \
19317 archive_expsym_cmds_RC | \
19318 module_cmds_RC | \
19319 module_expsym_cmds_RC | \
19320 old_archive_from_expsyms_cmds_RC | \
19321 export_symbols_cmds_RC | \
19322 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19323 postinstall_cmds | postuninstall_cmds | \
19324 old_postinstall_cmds | old_postuninstall_cmds | \
19325 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19326 # Double-quote double-evaled strings.
19327 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19328 ;;
19329 *)
19330 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19331 ;;
19332 esac
19333 done
19334
19335 case $lt_echo in
19336 *'\$0 --fallback-echo"')
19337 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19338 ;;
19339 esac
19340
19341 cfgfile="$ofile"
19342
19343 cat <<__EOF__ >> "$cfgfile"
19344 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19345
19346 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19347
19348 # Shell to use when invoking shell scripts.
19349 SHELL=$lt_SHELL
19350
19351 # Whether or not to build shared libraries.
19352 build_libtool_libs=$enable_shared
19353
19354 # Whether or not to build static libraries.
19355 build_old_libs=$enable_static
19356
19357 # Whether or not to add -lc for building shared libraries.
19358 build_libtool_need_lc=$archive_cmds_need_lc_RC
19359
19360 # Whether or not to disallow shared libs when runtime libs are static
19361 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19362
19363 # Whether or not to optimize for fast installation.
19364 fast_install=$enable_fast_install
19365
19366 # The host system.
19367 host_alias=$host_alias
19368 host=$host
19369 host_os=$host_os
19370
19371 # The build system.
19372 build_alias=$build_alias
19373 build=$build
19374 build_os=$build_os
19375
19376 # An echo program that does not interpret backslashes.
19377 echo=$lt_echo
19378
19379 # The archiver.
19380 AR=$lt_AR
19381 AR_FLAGS=$lt_AR_FLAGS
19382
19383 # A C compiler.
19384 LTCC=$lt_LTCC
19385
19386 # LTCC compiler flags.
19387 LTCFLAGS=$lt_LTCFLAGS
19388
19389 # A language-specific compiler.
19390 CC=$lt_compiler_RC
19391
19392 # Is the compiler the GNU C compiler?
19393 with_gcc=$GCC_RC
19394
19395 # An ERE matcher.
19396 EGREP=$lt_EGREP
19397
19398 # The linker used to build libraries.
19399 LD=$lt_LD_RC
19400
19401 # Whether we need hard or soft links.
19402 LN_S=$lt_LN_S
19403
19404 # A BSD-compatible nm program.
19405 NM=$lt_NM
19406
19407 # A symbol stripping program
19408 STRIP=$lt_STRIP
19409
19410 # Used to examine libraries when file_magic_cmd begins "file"
19411 MAGIC_CMD=$MAGIC_CMD
19412
19413 # Used on cygwin: DLL creation program.
19414 DLLTOOL="$DLLTOOL"
19415
19416 # Used on cygwin: object dumper.
19417 OBJDUMP="$OBJDUMP"
19418
19419 # Used on cygwin: assembler.
19420 AS="$AS"
19421
19422 # The name of the directory that contains temporary libtool files.
19423 objdir=$objdir
19424
19425 # How to create reloadable object files.
19426 reload_flag=$lt_reload_flag
19427 reload_cmds=$lt_reload_cmds
19428
19429 # How to pass a linker flag through the compiler.
19430 wl=$lt_lt_prog_compiler_wl_RC
19431
19432 # Object file suffix (normally "o").
19433 objext="$ac_objext"
19434
19435 # Old archive suffix (normally "a").
19436 libext="$libext"
19437
19438 # Shared library suffix (normally ".so").
19439 shrext_cmds='$shrext_cmds'
19440
19441 # Executable file suffix (normally "").
19442 exeext="$exeext"
19443
19444 # Additional compiler flags for building library objects.
19445 pic_flag=$lt_lt_prog_compiler_pic_RC
19446 pic_mode=$pic_mode
19447
19448 # What is the maximum length of a command?
19449 max_cmd_len=$lt_cv_sys_max_cmd_len
19450
19451 # Does compiler simultaneously support -c and -o options?
19452 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19453
19454 # Must we lock files when doing compilation?
19455 need_locks=$lt_need_locks
19456
19457 # Do we need the lib prefix for modules?
19458 need_lib_prefix=$need_lib_prefix
19459
19460 # Do we need a version for libraries?
19461 need_version=$need_version
19462
19463 # Whether dlopen is supported.
19464 dlopen_support=$enable_dlopen
19465
19466 # Whether dlopen of programs is supported.
19467 dlopen_self=$enable_dlopen_self
19468
19469 # Whether dlopen of statically linked programs is supported.
19470 dlopen_self_static=$enable_dlopen_self_static
19471
19472 # Compiler flag to prevent dynamic linking.
19473 link_static_flag=$lt_lt_prog_compiler_static_RC
19474
19475 # Compiler flag to turn off builtin functions.
19476 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19477
19478 # Compiler flag to allow reflexive dlopens.
19479 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19480
19481 # Compiler flag to generate shared objects directly from archives.
19482 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19483
19484 # Compiler flag to generate thread-safe objects.
19485 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19486
19487 # Library versioning type.
19488 version_type=$version_type
19489
19490 # Format of library name prefix.
19491 libname_spec=$lt_libname_spec
19492
19493 # List of archive names. First name is the real one, the rest are links.
19494 # The last name is the one that the linker finds with -lNAME.
19495 library_names_spec=$lt_library_names_spec
19496
19497 # The coded name of the library, if different from the real name.
19498 soname_spec=$lt_soname_spec
19499
19500 # Commands used to build and install an old-style archive.
19501 RANLIB=$lt_RANLIB
19502 old_archive_cmds=$lt_old_archive_cmds_RC
19503 old_postinstall_cmds=$lt_old_postinstall_cmds
19504 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19505
19506 # Create an old-style archive from a shared archive.
19507 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19508
19509 # Create a temporary old-style archive to link instead of a shared archive.
19510 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19511
19512 # Commands used to build and install a shared archive.
19513 archive_cmds=$lt_archive_cmds_RC
19514 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19515 postinstall_cmds=$lt_postinstall_cmds
19516 postuninstall_cmds=$lt_postuninstall_cmds
19517
19518 # Commands used to build a loadable module (assumed same as above if empty)
19519 module_cmds=$lt_module_cmds_RC
19520 module_expsym_cmds=$lt_module_expsym_cmds_RC
19521
19522 # Commands to strip libraries.
19523 old_striplib=$lt_old_striplib
19524 striplib=$lt_striplib
19525
19526 # Dependencies to place before the objects being linked to create a
19527 # shared library.
19528 predep_objects=$lt_predep_objects_RC
19529
19530 # Dependencies to place after the objects being linked to create a
19531 # shared library.
19532 postdep_objects=$lt_postdep_objects_RC
19533
19534 # Dependencies to place before the objects being linked to create a
19535 # shared library.
19536 predeps=$lt_predeps_RC
19537
19538 # Dependencies to place after the objects being linked to create a
19539 # shared library.
19540 postdeps=$lt_postdeps_RC
19541
19542 # The library search path used internally by the compiler when linking
19543 # a shared library.
19544 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19545
19546 # Method to check whether dependent libraries are shared objects.
19547 deplibs_check_method=$lt_deplibs_check_method
19548
19549 # Command to use when deplibs_check_method == file_magic.
19550 file_magic_cmd=$lt_file_magic_cmd
19551
19552 # Flag that allows shared libraries with undefined symbols to be built.
19553 allow_undefined_flag=$lt_allow_undefined_flag_RC
19554
19555 # Flag that forces no undefined symbols.
19556 no_undefined_flag=$lt_no_undefined_flag_RC
19557
19558 # Commands used to finish a libtool library installation in a directory.
19559 finish_cmds=$lt_finish_cmds
19560
19561 # Same as above, but a single script fragment to be evaled but not shown.
19562 finish_eval=$lt_finish_eval
19563
19564 # Take the output of nm and produce a listing of raw symbols and C names.
19565 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19566
19567 # Transform the output of nm in a proper C declaration
19568 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19569
19570 # Transform the output of nm in a C name address pair
19571 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19572
19573 # This is the shared library runtime path variable.
19574 runpath_var=$runpath_var
19575
19576 # This is the shared library path variable.
19577 shlibpath_var=$shlibpath_var
19578
19579 # Is shlibpath searched before the hard-coded library search path?
19580 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19581
19582 # How to hardcode a shared library path into an executable.
19583 hardcode_action=$hardcode_action_RC
19584
19585 # Whether we should hardcode library paths into libraries.
19586 hardcode_into_libs=$hardcode_into_libs
19587
19588 # Flag to hardcode \$libdir into a binary during linking.
19589 # This must work even if \$libdir does not exist.
19590 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19591
19592 # If ld is used when linking, flag to hardcode \$libdir into
19593 # a binary during linking. This must work even if \$libdir does
19594 # not exist.
19595 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19596
19597 # Whether we need a single -rpath flag with a separated argument.
19598 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19599
19600 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19601 # resulting binary.
19602 hardcode_direct=$hardcode_direct_RC
19603
19604 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19605 # resulting binary.
19606 hardcode_minus_L=$hardcode_minus_L_RC
19607
19608 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19609 # the resulting binary.
19610 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19611
19612 # Set to yes if building a shared library automatically hardcodes DIR into the library
19613 # and all subsequent libraries and executables linked against it.
19614 hardcode_automatic=$hardcode_automatic_RC
19615
19616 # Variables whose values should be saved in libtool wrapper scripts and
19617 # restored at relink time.
19618 variables_saved_for_relink="$variables_saved_for_relink"
19619
19620 # Whether libtool must link a program against all its dependency libraries.
19621 link_all_deplibs=$link_all_deplibs_RC
19622
19623 # Compile-time system search path for libraries
19624 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19625
19626 # Run-time system search path for libraries
19627 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19628
19629 # Fix the shell variable \$srcfile for the compiler.
19630 fix_srcfile_path="$fix_srcfile_path_RC"
19631
19632 # Set to yes if exported symbols are required.
19633 always_export_symbols=$always_export_symbols_RC
19634
19635 # The commands to list exported symbols.
19636 export_symbols_cmds=$lt_export_symbols_cmds_RC
19637
19638 # The commands to extract the exported symbol list from a shared archive.
19639 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19640
19641 # Symbols that should not be listed in the preloaded symbols.
19642 exclude_expsyms=$lt_exclude_expsyms_RC
19643
19644 # Symbols that must always be exported.
19645 include_expsyms=$lt_include_expsyms_RC
19646
19647 # ### END LIBTOOL TAG CONFIG: $tagname
19648
19649 __EOF__
19650
19651
19652 else
19653 # If there is no Makefile yet, we rely on a make rule to execute
19654 # `config.status --recheck' to rerun these tests and create the
19655 # libtool script then.
19656 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19657 if test -f "$ltmain_in"; then
19658 test -f Makefile && make "$ltmain"
19659 fi
19660 fi
19661
19662
19663 ac_ext=c
19664 ac_cpp='$CPP $CPPFLAGS'
19665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19668
19669 CC="$lt_save_CC"
19670
19671 ;;
19672
19673 *)
19674 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19675 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19676 { (exit 1); exit 1; }; }
19677 ;;
19678 esac
19679
19680 # Append the new tag name to the list of available tags.
19681 if test -n "$tagname" ; then
19682 available_tags="$available_tags $tagname"
19683 fi
19684 fi
19685 done
19686 IFS="$lt_save_ifs"
19687
19688 # Now substitute the updated list of available tags.
19689 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19690 mv "${ofile}T" "$ofile"
19691 chmod +x "$ofile"
19692 else
19693 rm -f "${ofile}T"
19694 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19695 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19696 { (exit 1); exit 1; }; }
19697 fi
19698 fi
19699
19700
19701
19702 # This can be used to rebuild libtool when needed
19703 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19704
19705 # Always use our own libtool.
19706 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19707
19708 # Prevent multiple expansion
19709
19710
19711
19712
19713
19714
19715
19716
19717
19718
19719
19720
19721
19722
19723
19724
19725
19726
19727
19728
19729
19730 # Check for dependencies
19731
19732
19733 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19734 if test -n "$ac_tool_prefix"; then
19735 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19736 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19737 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19739 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19740 echo $ECHO_N "(cached) $ECHO_C" >&6
19741 else
19742 case $PKG_CONFIG in
19743 [\\/]* | ?:[\\/]*)
19744 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19745 ;;
19746 *)
19747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19748 for as_dir in $PATH
19749 do
19750 IFS=$as_save_IFS
19751 test -z "$as_dir" && as_dir=.
19752 for ac_exec_ext in '' $ac_executable_extensions; do
19753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19754 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19756 break 2
19757 fi
19758 done
19759 done
19760 IFS=$as_save_IFS
19761
19762 ;;
19763 esac
19764 fi
19765 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19766 if test -n "$PKG_CONFIG"; then
19767 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19768 echo "${ECHO_T}$PKG_CONFIG" >&6; }
19769 else
19770 { echo "$as_me:$LINENO: result: no" >&5
19771 echo "${ECHO_T}no" >&6; }
19772 fi
19773
19774
19775 fi
19776 if test -z "$ac_cv_path_PKG_CONFIG"; then
19777 ac_pt_PKG_CONFIG=$PKG_CONFIG
19778 # Extract the first word of "pkg-config", so it can be a program name with args.
19779 set dummy pkg-config; ac_word=$2
19780 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19782 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
19783 echo $ECHO_N "(cached) $ECHO_C" >&6
19784 else
19785 case $ac_pt_PKG_CONFIG in
19786 [\\/]* | ?:[\\/]*)
19787 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19788 ;;
19789 *)
19790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19791 for as_dir in $PATH
19792 do
19793 IFS=$as_save_IFS
19794 test -z "$as_dir" && as_dir=.
19795 for ac_exec_ext in '' $ac_executable_extensions; do
19796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19797 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19799 break 2
19800 fi
19801 done
19802 done
19803 IFS=$as_save_IFS
19804
19805 ;;
19806 esac
19807 fi
19808 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19809 if test -n "$ac_pt_PKG_CONFIG"; then
19810 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
19811 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
19812 else
19813 { echo "$as_me:$LINENO: result: no" >&5
19814 echo "${ECHO_T}no" >&6; }
19815 fi
19816
19817 if test "x$ac_pt_PKG_CONFIG" = x; then
19818 PKG_CONFIG=""
19819 else
19820 case $cross_compiling:$ac_tool_warned in
19821 yes:)
19822 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19823 whose name does not start with the host triplet. If you think this
19824 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
19825 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19826 whose name does not start with the host triplet. If you think this
19827 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
19828 ac_tool_warned=yes ;;
19829 esac
19830 PKG_CONFIG=$ac_pt_PKG_CONFIG
19831 fi
19832 else
19833 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19834 fi
19835
19836 fi
19837 if test -n "$PKG_CONFIG"; then
19838 _pkg_min_version=0.9.0
19839 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
19840 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
19841 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19842 { echo "$as_me:$LINENO: result: yes" >&5
19843 echo "${ECHO_T}yes" >&6; }
19844 else
19845 { echo "$as_me:$LINENO: result: no" >&5
19846 echo "${ECHO_T}no" >&6; }
19847 PKG_CONFIG=""
19848 fi
19849
19850 fi
19851
19852 pkg_failed=no
19853 { echo "$as_me:$LINENO: checking for XFONTCACHE" >&5
19854 echo $ECHO_N "checking for XFONTCACHE... $ECHO_C" >&6; }
19855
19856 if test -n "$PKG_CONFIG"; then
19857 if test -n "$XFONTCACHE_CFLAGS"; then
19858 pkg_cv_XFONTCACHE_CFLAGS="$XFONTCACHE_CFLAGS"
19859 else
19860 if test -n "$PKG_CONFIG" && \
19861 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xext xextproto fontcacheproto\"") >&5
19862 ($PKG_CONFIG --exists --print-errors "x11 xext xextproto fontcacheproto") 2>&5
19863 ac_status=$?
19864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19865 (exit $ac_status); }; then
19866 pkg_cv_XFONTCACHE_CFLAGS=`$PKG_CONFIG --cflags "x11 xext xextproto fontcacheproto" 2>/dev/null`
19867 else
19868 pkg_failed=yes
19869 fi
19870 fi
19871 else
19872 pkg_failed=untried
19873 fi
19874 if test -n "$PKG_CONFIG"; then
19875 if test -n "$XFONTCACHE_LIBS"; then
19876 pkg_cv_XFONTCACHE_LIBS="$XFONTCACHE_LIBS"
19877 else
19878 if test -n "$PKG_CONFIG" && \
19879 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xext xextproto fontcacheproto\"") >&5
19880 ($PKG_CONFIG --exists --print-errors "x11 xext xextproto fontcacheproto") 2>&5
19881 ac_status=$?
19882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19883 (exit $ac_status); }; then
19884 pkg_cv_XFONTCACHE_LIBS=`$PKG_CONFIG --libs "x11 xext xextproto fontcacheproto" 2>/dev/null`
19885 else
19886 pkg_failed=yes
19887 fi
19888 fi
19889 else
19890 pkg_failed=untried
19891 fi
19892
19893
19894
19895 if test $pkg_failed = yes; then
19896
19897 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19898 _pkg_short_errors_supported=yes
19899 else
19900 _pkg_short_errors_supported=no
19901 fi
19902 if test $_pkg_short_errors_supported = yes; then
19903 XFONTCACHE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "x11 xext xextproto fontcacheproto"`
19904 else
19905 XFONTCACHE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "x11 xext xextproto fontcacheproto"`
19906 fi
19907 # Put the nasty error message in config.log where it belongs
19908 echo "$XFONTCACHE_PKG_ERRORS" >&5
19909
19910 { { echo "$as_me:$LINENO: error: Package requirements (x11 xext xextproto fontcacheproto) were not met:
19911
19912 $XFONTCACHE_PKG_ERRORS
19913
19914 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19915 installed software in a non-standard prefix.
19916
19917 Alternatively, you may set the environment variables XFONTCACHE_CFLAGS
19918 and XFONTCACHE_LIBS to avoid the need to call pkg-config.
19919 See the pkg-config man page for more details.
19920 " >&5
19921 echo "$as_me: error: Package requirements (x11 xext xextproto fontcacheproto) were not met:
19922
19923 $XFONTCACHE_PKG_ERRORS
19924
19925 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19926 installed software in a non-standard prefix.
19927
19928 Alternatively, you may set the environment variables XFONTCACHE_CFLAGS
19929 and XFONTCACHE_LIBS to avoid the need to call pkg-config.
19930 See the pkg-config man page for more details.
19931 " >&2;}
19932 { (exit 1); exit 1; }; }
19933 elif test $pkg_failed = untried; then
19934 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
19935 is in your PATH or set the PKG_CONFIG environment variable to the full
19936 path to pkg-config.
19937
19938 Alternatively, you may set the environment variables XFONTCACHE_CFLAGS
19939 and XFONTCACHE_LIBS to avoid the need to call pkg-config.
19940 See the pkg-config man page for more details.
19941
19942 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
19943 See \`config.log' for more details." >&5
19944 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
19945 is in your PATH or set the PKG_CONFIG environment variable to the full
19946 path to pkg-config.
19947
19948 Alternatively, you may set the environment variables XFONTCACHE_CFLAGS
19949 and XFONTCACHE_LIBS to avoid the need to call pkg-config.
19950 See the pkg-config man page for more details.
19951
19952 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
19953 See \`config.log' for more details." >&2;}
19954 { (exit 1); exit 1; }; }
19955 else
19956 XFONTCACHE_CFLAGS=$pkg_cv_XFONTCACHE_CFLAGS
19957 XFONTCACHE_LIBS=$pkg_cv_XFONTCACHE_LIBS
19958 { echo "$as_me:$LINENO: result: yes" >&5
19959 echo "${ECHO_T}yes" >&6; }
19960 :
19961 fi
19962
19963
19964
19965
19966
19967 # Check whether --enable-malloc0returnsnull was given.
19968 if test "${enable_malloc0returnsnull+set}" = set; then
19969 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
19970 else
19971 MALLOC_ZERO_RETURNS_NULL=auto
19972 fi
19973
19974
19975 { echo "$as_me:$LINENO: checking whether malloc(0) returns NULL" >&5
19976 echo $ECHO_N "checking whether malloc(0) returns NULL... $ECHO_C" >&6; }
19977 if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
19978 if test "$cross_compiling" = yes; then
19979 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19980 See \`config.log' for more details." >&5
19981 echo "$as_me: error: cannot run test program while cross compiling
19982 See \`config.log' for more details." >&2;}
19983 { (exit 1); exit 1; }; }
19984 else
19985 cat >conftest.$ac_ext <<_ACEOF
19986
19987 char *malloc();
19988 char *realloc();
19989 char *calloc();
19990 main() {
19991 char *m0, *r0, *c0, *p;
19992 m0 = malloc(0);
19993 p = malloc(10);
19994 r0 = realloc(p,0);
19995 c0 = calloc(0);
19996 exit(m0 == 0 || r0 == 0 || c0 == 0 ? 0 : 1);
19997 }
19998 _ACEOF
19999 rm -f conftest$ac_exeext
20000 if { (ac_try="$ac_link"
20001 case "(($ac_try" in
20002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20003 *) ac_try_echo=$ac_try;;
20004 esac
20005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20006 (eval "$ac_link") 2>&5
20007 ac_status=$?
20008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20009 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20010 { (case "(($ac_try" in
20011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20012 *) ac_try_echo=$ac_try;;
20013 esac
20014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20015 (eval "$ac_try") 2>&5
20016 ac_status=$?
20017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20018 (exit $ac_status); }; }; then
20019 MALLOC_ZERO_RETURNS_NULL=yes
20020 else
20021 echo "$as_me: program exited with status $ac_status" >&5
20022 echo "$as_me: failed program was:" >&5
20023 sed 's/^/| /' conftest.$ac_ext >&5
20024
20025 ( exit $ac_status )
20026 MALLOC_ZERO_RETURNS_NULL=no
20027 fi
20028 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20029 fi
20030
20031
20032 fi
20033 { echo "$as_me:$LINENO: result: $MALLOC_ZERO_RETURNS_NULL" >&5
20034 echo "${ECHO_T}$MALLOC_ZERO_RETURNS_NULL" >&6; }
20035
20036 if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
20037 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
20038 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
20039 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
20040 else
20041 MALLOC_ZERO_CFLAGS=""
20042 XMALLOC_ZERO_CFLAGS=""
20043 XTMALLOC_ZERO_CFLAGS=""
20044 fi
20045
20046
20047
20048
20049
20050
20051
20052
20053 if test x$APP_MAN_SUFFIX = x ; then
20054 APP_MAN_SUFFIX=1
20055 fi
20056 if test x$APP_MAN_DIR = x ; then
20057 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
20058 fi
20059
20060 if test x$LIB_MAN_SUFFIX = x ; then
20061 LIB_MAN_SUFFIX=3
20062 fi
20063 if test x$LIB_MAN_DIR = x ; then
20064 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
20065 fi
20066
20067 if test x$FILE_MAN_SUFFIX = x ; then
20068 case $host_os in
20069 solaris*) FILE_MAN_SUFFIX=4 ;;
20070 *) FILE_MAN_SUFFIX=5 ;;
20071 esac
20072 fi
20073 if test x$FILE_MAN_DIR = x ; then
20074 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
20075 fi
20076
20077 if test x$MISC_MAN_SUFFIX = x ; then
20078 case $host_os in
20079 solaris*) MISC_MAN_SUFFIX=5 ;;
20080 *) MISC_MAN_SUFFIX=7 ;;
20081 esac
20082 fi
20083 if test x$MISC_MAN_DIR = x ; then
20084 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
20085 fi
20086
20087 if test x$DRIVER_MAN_SUFFIX = x ; then
20088 case $host_os in
20089 solaris*) DRIVER_MAN_SUFFIX=7 ;;
20090 *) DRIVER_MAN_SUFFIX=4 ;;
20091 esac
20092 fi
20093 if test x$DRIVER_MAN_DIR = x ; then
20094 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
20095 fi
20096
20097 if test x$ADMIN_MAN_SUFFIX = x ; then
20098 case $host_os in
20099 solaris*) ADMIN_MAN_SUFFIX=1m ;;
20100 *) ADMIN_MAN_SUFFIX=8 ;;
20101 esac
20102 fi
20103 if test x$ADMIN_MAN_DIR = x ; then
20104 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
20105 fi
20106
20107
20108
20109
20110
20111
20112
20113
20114
20115
20116
20117
20118
20119
20120
20121
20122
20123 # Check whether --with-release-version was given.
20124 if test "${with_release_version+set}" = set; then
20125 withval=$with_release_version; RELEASE_VERSION="$withval"
20126 else
20127 RELEASE_VERSION=""
20128 fi
20129
20130 if test "x$RELEASE_VERSION" != "x"; then
20131 PACKAGE="$PACKAGE-$RELEASE_VERSION"
20132 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
20133 { echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
20134 echo "$as_me: Building with package name set to $PACKAGE" >&6;}
20135 fi
20136
20137 cat >>confdefs.h <<_ACEOF
20138 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | sed -ne 's/^\([^\.]\+\).*/\1/p'`
20139 _ACEOF
20140
20141 PVM=`echo $PACKAGE_VERSION | sed -ne 's/^\([^\.]\+\)\.\([^\.]\+\).*/\2/p'`
20142 if test "x$PVM" = "x"; then
20143 PVM="0"
20144 fi
20145
20146 cat >>confdefs.h <<_ACEOF
20147 #define PACKAGE_VERSION_MINOR $PVM
20148 _ACEOF
20149
20150 PVP=`echo $PACKAGE_VERSION | sed -ne 's/^\([^\.]\+\)\.\([^\.]\+\)\.\([^\.]\+\).*/\3/p'`
20151 if test "x$PVP" = "x"; then
20152 PVP="0"
20153 fi
20154
20155 cat >>confdefs.h <<_ACEOF
20156 #define PACKAGE_VERSION_PATCHLEVEL $PVP
20157 _ACEOF
20158
20159
20160
20161 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile xfontcache.pc"
20162
20163 cat >confcache <<\_ACEOF
20164 # This file is a shell script that caches the results of configure
20165 # tests run on this system so they can be shared between configure
20166 # scripts and configure runs, see configure's option --config-cache.
20167 # It is not useful on other systems. If it contains results you don't
20168 # want to keep, you may remove or edit it.
20169 #
20170 # config.status only pays attention to the cache file if you give it
20171 # the --recheck option to rerun configure.
20172 #
20173 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20174 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20175 # following values.
20176
20177 _ACEOF
20178
20179 # The following way of writing the cache mishandles newlines in values,
20180 # but we know of no workaround that is simple, portable, and efficient.
20181 # So, we kill variables containing newlines.
20182 # Ultrix sh set writes to stderr and can't be redirected directly,
20183 # and sets the high bit in the cache file unless we assign to the vars.
20184 (
20185 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20186 eval ac_val=\$$ac_var
20187 case $ac_val in #(
20188 *${as_nl}*)
20189 case $ac_var in #(
20190 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20191 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20192 esac
20193 case $ac_var in #(
20194 _ | IFS | as_nl) ;; #(
20195 *) $as_unset $ac_var ;;
20196 esac ;;
20197 esac
20198 done
20199
20200 (set) 2>&1 |
20201 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20202 *${as_nl}ac_space=\ *)
20203 # `set' does not quote correctly, so add quotes (double-quote
20204 # substitution turns \\\\ into \\, and sed turns \\ into \).
20205 sed -n \
20206 "s/'/'\\\\''/g;
20207 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20208 ;; #(
20209 *)
20210 # `set' quotes correctly as required by POSIX, so do not add quotes.
20211 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20212 ;;
20213 esac |
20214 sort
20215 ) |
20216 sed '
20217 /^ac_cv_env_/b end
20218 t clear
20219 :clear
20220 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20221 t end
20222 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20223 :end' >>confcache
20224 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20225 if test -w "$cache_file"; then
20226 test "x$cache_file" != "x/dev/null" &&
20227 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20228 echo "$as_me: updating cache $cache_file" >&6;}
20229 cat confcache >$cache_file
20230 else
20231 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20232 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20233 fi
20234 fi
20235 rm -f confcache
20236
20237 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20238 # Let make expand exec_prefix.
20239 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20240
20241 DEFS=-DHAVE_CONFIG_H
20242
20243 ac_libobjs=
20244 ac_ltlibobjs=
20245 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20246 # 1. Remove the extension, and $U if already installed.
20247 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20248 ac_i=`echo "$ac_i" | sed "$ac_script"`
20249 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20250 # will be set to the directory where LIBOBJS objects are built.
20251 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20252 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20253 done
20254 LIBOBJS=$ac_libobjs
20255
20256 LTLIBOBJS=$ac_ltlibobjs
20257
20258
20259 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20260 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20261 Usually this means the macro was only invoked conditionally." >&5
20262 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20263 Usually this means the macro was only invoked conditionally." >&2;}
20264 { (exit 1); exit 1; }; }
20265 fi
20266 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20267 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20268 Usually this means the macro was only invoked conditionally." >&5
20269 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20270 Usually this means the macro was only invoked conditionally." >&2;}
20271 { (exit 1); exit 1; }; }
20272 fi
20273 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20274 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20275 Usually this means the macro was only invoked conditionally." >&5
20276 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20277 Usually this means the macro was only invoked conditionally." >&2;}
20278 { (exit 1); exit 1; }; }
20279 fi
20280 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20281 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20282 Usually this means the macro was only invoked conditionally." >&5
20283 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20284 Usually this means the macro was only invoked conditionally." >&2;}
20285 { (exit 1); exit 1; }; }
20286 fi
20287
20288 : ${CONFIG_STATUS=./config.status}
20289 ac_clean_files_save=$ac_clean_files
20290 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20291 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20292 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20293 cat >$CONFIG_STATUS <<_ACEOF
20294 #! $SHELL
20295 # Generated by $as_me.
20296 # Run this file to recreate the current configuration.
20297 # Compiler output produced by configure, useful for debugging
20298 # configure, is in config.log if it exists.
20299
20300 debug=false
20301 ac_cs_recheck=false
20302 ac_cs_silent=false
20303 SHELL=\${CONFIG_SHELL-$SHELL}
20304 _ACEOF
20305
20306 cat >>$CONFIG_STATUS <<\_ACEOF
20307 ## --------------------- ##
20308 ## M4sh Initialization. ##
20309 ## --------------------- ##
20310
20311 # Be Bourne compatible
20312 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20313 emulate sh
20314 NULLCMD=:
20315 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20316 # is contrary to our usage. Disable this feature.
20317 alias -g '${1+"$@"}'='"$@"'
20318 setopt NO_GLOB_SUBST
20319 else
20320 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
20321 fi
20322 BIN_SH=xpg4; export BIN_SH # for Tru64
20323 DUALCASE=1; export DUALCASE # for MKS sh
20324
20325
20326 # PATH needs CR
20327 # Avoid depending upon Character Ranges.
20328 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20329 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20330 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20331 as_cr_digits='0123456789'
20332 as_cr_alnum=$as_cr_Letters$as_cr_digits
20333
20334 # The user is always right.
20335 if test "${PATH_SEPARATOR+set}" != set; then
20336 echo "#! /bin/sh" >conf$$.sh
20337 echo "exit 0" >>conf$$.sh
20338 chmod +x conf$$.sh
20339 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20340 PATH_SEPARATOR=';'
20341 else
20342 PATH_SEPARATOR=:
20343 fi
20344 rm -f conf$$.sh
20345 fi
20346
20347 # Support unset when possible.
20348 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20349 as_unset=unset
20350 else
20351 as_unset=false
20352 fi
20353
20354
20355 # IFS
20356 # We need space, tab and new line, in precisely that order. Quoting is
20357 # there to prevent editors from complaining about space-tab.
20358 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20359 # splitting by setting IFS to empty value.)
20360 as_nl='
20361 '
20362 IFS=" "" $as_nl"
20363
20364 # Find who we are. Look in the path if we contain no directory separator.
20365 case $0 in
20366 *[\\/]* ) as_myself=$0 ;;
20367 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20368 for as_dir in $PATH
20369 do
20370 IFS=$as_save_IFS
20371 test -z "$as_dir" && as_dir=.
20372 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20373 done
20374 IFS=$as_save_IFS
20375
20376 ;;
20377 esac
20378 # We did not find ourselves, most probably we were run as `sh COMMAND'
20379 # in which case we are not to be found in the path.
20380 if test "x$as_myself" = x; then
20381 as_myself=$0
20382 fi
20383 if test ! -f "$as_myself"; then
20384 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20385 { (exit 1); exit 1; }
20386 fi
20387
20388 # Work around bugs in pre-3.0 UWIN ksh.
20389 for as_var in ENV MAIL MAILPATH
20390 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20391 done
20392 PS1='$ '
20393 PS2='> '
20394 PS4='+ '
20395
20396 # NLS nuisances.
20397 for as_var in \
20398 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20399 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20400 LC_TELEPHONE LC_TIME
20401 do
20402 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20403 eval $as_var=C; export $as_var
20404 else
20405 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20406 fi
20407 done
20408
20409 # Required to use basename.
20410 if expr a : '\(a\)' >/dev/null 2>&1 &&
20411 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20412 as_expr=expr
20413 else
20414 as_expr=false
20415 fi
20416
20417 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20418 as_basename=basename
20419 else
20420 as_basename=false
20421 fi
20422
20423
20424 # Name of the executable.
20425 as_me=`$as_basename -- "$0" ||
20426 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20427 X"$0" : 'X\(//\)$' \| \
20428 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20429 echo X/"$0" |
20430 sed '/^.*\/\([^/][^/]*\)\/*$/{
20431 s//\1/
20432 q
20433 }
20434 /^X\/\(\/\/\)$/{
20435 s//\1/
20436 q
20437 }
20438 /^X\/\(\/\).*/{
20439 s//\1/
20440 q
20441 }
20442 s/.*/./; q'`
20443
20444 # CDPATH.
20445 $as_unset CDPATH
20446
20447
20448
20449 as_lineno_1=$LINENO
20450 as_lineno_2=$LINENO
20451 test "x$as_lineno_1" != "x$as_lineno_2" &&
20452 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20453
20454 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20455 # uniformly replaced by the line number. The first 'sed' inserts a
20456 # line-number line after each line using $LINENO; the second 'sed'
20457 # does the real work. The second script uses 'N' to pair each
20458 # line-number line with the line containing $LINENO, and appends
20459 # trailing '-' during substitution so that $LINENO is not a special
20460 # case at line end.
20461 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20462 # scripts with optimization help from Paolo Bonzini. Blame Lee
20463 # E. McMahon (1931-1989) for sed's syntax. :-)
20464 sed -n '
20465 p
20466 /[$]LINENO/=
20467 ' <$as_myself |
20468 sed '
20469 s/[$]LINENO.*/&-/
20470 t lineno
20471 b
20472 :lineno
20473 N
20474 :loop
20475 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20476 t loop
20477 s/-\n.*//
20478 ' >$as_me.lineno &&
20479 chmod +x "$as_me.lineno" ||
20480 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20481 { (exit 1); exit 1; }; }
20482
20483 # Don't try to exec as it changes $[0], causing all sort of problems
20484 # (the dirname of $[0] is not the place where we might find the
20485 # original and so on. Autoconf is especially sensitive to this).
20486 . "./$as_me.lineno"
20487 # Exit status is that of the last command.
20488 exit
20489 }
20490
20491
20492 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20493 as_dirname=dirname
20494 else
20495 as_dirname=false
20496 fi
20497
20498 ECHO_C= ECHO_N= ECHO_T=
20499 case `echo -n x` in
20500 -n*)
20501 case `echo 'x\c'` in
20502 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20503 *) ECHO_C='\c';;
20504 esac;;
20505 *)
20506 ECHO_N='-n';;
20507 esac
20508
20509 if expr a : '\(a\)' >/dev/null 2>&1 &&
20510 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20511 as_expr=expr
20512 else
20513 as_expr=false
20514 fi
20515
20516 rm -f conf$$ conf$$.exe conf$$.file
20517 if test -d conf$$.dir; then
20518 rm -f conf$$.dir/conf$$.file
20519 else
20520 rm -f conf$$.dir
20521 mkdir conf$$.dir
20522 fi
20523 echo >conf$$.file
20524 if ln -s conf$$.file conf$$ 2>/dev/null; then
20525 as_ln_s='ln -s'
20526 # ... but there are two gotchas:
20527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20529 # In both cases, we have to default to `cp -p'.
20530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20531 as_ln_s='cp -p'
20532 elif ln conf$$.file conf$$ 2>/dev/null; then
20533 as_ln_s=ln
20534 else
20535 as_ln_s='cp -p'
20536 fi
20537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20538 rmdir conf$$.dir 2>/dev/null
20539
20540 if mkdir -p . 2>/dev/null; then
20541 as_mkdir_p=:
20542 else
20543 test -d ./-p && rmdir ./-p
20544 as_mkdir_p=false
20545 fi
20546
20547 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
20548 # systems may use methods other than mode bits to determine executability.
20549 cat >conf$$.file <<_ASEOF
20550 #! /bin/sh
20551 exit 0
20552 _ASEOF
20553 chmod +x conf$$.file
20554 if test -x conf$$.file >/dev/null 2>&1; then
20555 as_executable_p="test -x"
20556 else
20557 as_executable_p=:
20558 fi
20559 rm -f conf$$.file
20560
20561 # Sed expression to map a string onto a valid CPP name.
20562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20563
20564 # Sed expression to map a string onto a valid variable name.
20565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20566
20567
20568 exec 6>&1
20569
20570 # Save the log message, to keep $[0] and so on meaningful, and to
20571 # report actual input values of CONFIG_FILES etc. instead of their
20572 # values after options handling.
20573 ac_log="
20574 This file was extended by libXfontcache $as_me 1.0.4, which was
20575 generated by GNU Autoconf 2.60. Invocation command line was
20576
20577 CONFIG_FILES = $CONFIG_FILES
20578 CONFIG_HEADERS = $CONFIG_HEADERS
20579 CONFIG_LINKS = $CONFIG_LINKS
20580 CONFIG_COMMANDS = $CONFIG_COMMANDS
20581 $ $0 $@
20582
20583 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20584 "
20585
20586 _ACEOF
20587
20588 cat >>$CONFIG_STATUS <<_ACEOF
20589 # Files that config.status was made for.
20590 config_files="$ac_config_files"
20591 config_headers="$ac_config_headers"
20592 config_commands="$ac_config_commands"
20593
20594 _ACEOF
20595
20596 cat >>$CONFIG_STATUS <<\_ACEOF
20597 ac_cs_usage="\
20598 \`$as_me' instantiates files from templates according to the
20599 current configuration.
20600
20601 Usage: $0 [OPTIONS] [FILE]...
20602
20603 -h, --help print this help, then exit
20604 -V, --version print version number, then exit
20605 -q, --quiet do not print progress messages
20606 -d, --debug don't remove temporary files
20607 --recheck update $as_me by reconfiguring in the same conditions
20608 --file=FILE[:TEMPLATE]
20609 instantiate the configuration file FILE
20610 --header=FILE[:TEMPLATE]
20611 instantiate the configuration header FILE
20612
20613 Configuration files:
20614 $config_files
20615
20616 Configuration headers:
20617 $config_headers
20618
20619 Configuration commands:
20620 $config_commands
20621
20622 Report bugs to <bug-autoconf@gnu.org>."
20623
20624 _ACEOF
20625 cat >>$CONFIG_STATUS <<_ACEOF
20626 ac_cs_version="\\
20627 libXfontcache config.status 1.0.4
20628 configured by $0, generated by GNU Autoconf 2.60,
20629 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20630
20631 Copyright (C) 2006 Free Software Foundation, Inc.
20632 This config.status script is free software; the Free Software Foundation
20633 gives unlimited permission to copy, distribute and modify it."
20634
20635 ac_pwd='$ac_pwd'
20636 srcdir='$srcdir'
20637 INSTALL='$INSTALL'
20638 _ACEOF
20639
20640 cat >>$CONFIG_STATUS <<\_ACEOF
20641 # If no file are specified by the user, then we need to provide default
20642 # value. By we need to know if files were specified by the user.
20643 ac_need_defaults=:
20644 while test $# != 0
20645 do
20646 case $1 in
20647 --*=*)
20648 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20649 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20650 ac_shift=:
20651 ;;
20652 *)
20653 ac_option=$1
20654 ac_optarg=$2
20655 ac_shift=shift
20656 ;;
20657 esac
20658
20659 case $ac_option in
20660 # Handling of the options.
20661 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20662 ac_cs_recheck=: ;;
20663 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20664 echo "$ac_cs_version"; exit ;;
20665 --debug | --debu | --deb | --de | --d | -d )
20666 debug=: ;;
20667 --file | --fil | --fi | --f )
20668 $ac_shift
20669 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20670 ac_need_defaults=false;;
20671 --header | --heade | --head | --hea )
20672 $ac_shift
20673 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20674 ac_need_defaults=false;;
20675 --he | --h)
20676 # Conflict between --help and --header
20677 { echo "$as_me: error: ambiguous option: $1
20678 Try \`$0 --help' for more information." >&2
20679 { (exit 1); exit 1; }; };;
20680 --help | --hel | -h )
20681 echo "$ac_cs_usage"; exit ;;
20682 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20683 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20684 ac_cs_silent=: ;;
20685
20686 # This is an error.
20687 -*) { echo "$as_me: error: unrecognized option: $1
20688 Try \`$0 --help' for more information." >&2
20689 { (exit 1); exit 1; }; } ;;
20690
20691 *) ac_config_targets="$ac_config_targets $1"
20692 ac_need_defaults=false ;;
20693
20694 esac
20695 shift
20696 done
20697
20698 ac_configure_extra_args=
20699
20700 if $ac_cs_silent; then
20701 exec 6>/dev/null
20702 ac_configure_extra_args="$ac_configure_extra_args --silent"
20703 fi
20704
20705 _ACEOF
20706 cat >>$CONFIG_STATUS <<_ACEOF
20707 if \$ac_cs_recheck; then
20708 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20709 CONFIG_SHELL=$SHELL
20710 export CONFIG_SHELL
20711 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20712 fi
20713
20714 _ACEOF
20715 cat >>$CONFIG_STATUS <<\_ACEOF
20716 exec 5>>config.log
20717 {
20718 echo
20719 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20720 ## Running $as_me. ##
20721 _ASBOX
20722 echo "$ac_log"
20723 } >&5
20724
20725 _ACEOF
20726 cat >>$CONFIG_STATUS <<_ACEOF
20727 #
20728 # INIT-COMMANDS
20729 #
20730 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20731
20732 _ACEOF
20733
20734 cat >>$CONFIG_STATUS <<\_ACEOF
20735
20736 # Handling of arguments.
20737 for ac_config_target in $ac_config_targets
20738 do
20739 case $ac_config_target in
20740 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20741 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20742 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20743 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20744 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
20745 "xfontcache.pc") CONFIG_FILES="$CONFIG_FILES xfontcache.pc" ;;
20746
20747 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20748 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20749 { (exit 1); exit 1; }; };;
20750 esac
20751 done
20752
20753
20754 # If the user did not use the arguments to specify the items to instantiate,
20755 # then the envvar interface is used. Set only those that are not.
20756 # We use the long form for the default assignment because of an extremely
20757 # bizarre bug on SunOS 4.1.3.
20758 if $ac_need_defaults; then
20759 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20760 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20761 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20762 fi
20763
20764 # Have a temporary directory for convenience. Make it in the build tree
20765 # simply because there is no reason against having it here, and in addition,
20766 # creating and moving files from /tmp can sometimes cause problems.
20767 # Hook for its removal unless debugging.
20768 # Note that there is a small window in which the directory will not be cleaned:
20769 # after its creation but before its name has been assigned to `$tmp'.
20770 $debug ||
20771 {
20772 tmp=
20773 trap 'exit_status=$?
20774 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20775 ' 0
20776 trap '{ (exit 1); exit 1; }' 1 2 13 15
20777 }
20778 # Create a (secure) tmp directory for tmp files.
20779
20780 {
20781 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20782 test -n "$tmp" && test -d "$tmp"
20783 } ||
20784 {
20785 tmp=./conf$$-$RANDOM
20786 (umask 077 && mkdir "$tmp")
20787 } ||
20788 {
20789 echo "$me: cannot create a temporary directory in ." >&2
20790 { (exit 1); exit 1; }
20791 }
20792
20793 #
20794 # Set up the sed scripts for CONFIG_FILES section.
20795 #
20796
20797 # No need to generate the scripts if there are no CONFIG_FILES.
20798 # This happens for instance when ./config.status config.h
20799 if test -n "$CONFIG_FILES"; then
20800
20801 _ACEOF
20802
20803
20804
20805 ac_delim='%!_!# '
20806 for ac_last_try in false false false false false :; do
20807 cat >conf$$subs.sed <<_ACEOF
20808 SHELL!$SHELL$ac_delim
20809 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20810 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20811 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20812 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20813 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20814 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20815 exec_prefix!$exec_prefix$ac_delim
20816 prefix!$prefix$ac_delim
20817 program_transform_name!$program_transform_name$ac_delim
20818 bindir!$bindir$ac_delim
20819 sbindir!$sbindir$ac_delim
20820 libexecdir!$libexecdir$ac_delim
20821 datarootdir!$datarootdir$ac_delim
20822 datadir!$datadir$ac_delim
20823 sysconfdir!$sysconfdir$ac_delim
20824 sharedstatedir!$sharedstatedir$ac_delim
20825 localstatedir!$localstatedir$ac_delim
20826 includedir!$includedir$ac_delim
20827 oldincludedir!$oldincludedir$ac_delim
20828 docdir!$docdir$ac_delim
20829 infodir!$infodir$ac_delim
20830 htmldir!$htmldir$ac_delim
20831 dvidir!$dvidir$ac_delim
20832 pdfdir!$pdfdir$ac_delim
20833 psdir!$psdir$ac_delim
20834 libdir!$libdir$ac_delim
20835 localedir!$localedir$ac_delim
20836 mandir!$mandir$ac_delim
20837 DEFS!$DEFS$ac_delim
20838 ECHO_C!$ECHO_C$ac_delim
20839 ECHO_N!$ECHO_N$ac_delim
20840 ECHO_T!$ECHO_T$ac_delim
20841 LIBS!$LIBS$ac_delim
20842 build_alias!$build_alias$ac_delim
20843 host_alias!$host_alias$ac_delim
20844 target_alias!$target_alias$ac_delim
20845 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20846 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20847 INSTALL_DATA!$INSTALL_DATA$ac_delim
20848 CYGPATH_W!$CYGPATH_W$ac_delim
20849 PACKAGE!$PACKAGE$ac_delim
20850 VERSION!$VERSION$ac_delim
20851 ACLOCAL!$ACLOCAL$ac_delim
20852 AUTOCONF!$AUTOCONF$ac_delim
20853 AUTOMAKE!$AUTOMAKE$ac_delim
20854 AUTOHEADER!$AUTOHEADER$ac_delim
20855 MAKEINFO!$MAKEINFO$ac_delim
20856 install_sh!$install_sh$ac_delim
20857 STRIP!$STRIP$ac_delim
20858 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
20859 mkdir_p!$mkdir_p$ac_delim
20860 AWK!$AWK$ac_delim
20861 SET_MAKE!$SET_MAKE$ac_delim
20862 am__leading_dot!$am__leading_dot$ac_delim
20863 AMTAR!$AMTAR$ac_delim
20864 am__tar!$am__tar$ac_delim
20865 am__untar!$am__untar$ac_delim
20866 AMSHOWCMDSAT!$AMSHOWCMDSAT$ac_delim
20867 AMDEPSHOWCMDSAT!$AMDEPSHOWCMDSAT$ac_delim
20868 AMPRETTYECHO!$AMPRETTYECHO$ac_delim
20869 AMCMDECHO!$AMCMDECHO$ac_delim
20870 LT_QUIET!$LT_QUIET$ac_delim
20871 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
20872 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
20873 MAINT!$MAINT$ac_delim
20874 CC!$CC$ac_delim
20875 CFLAGS!$CFLAGS$ac_delim
20876 LDFLAGS!$LDFLAGS$ac_delim
20877 CPPFLAGS!$CPPFLAGS$ac_delim
20878 ac_ct_CC!$ac_ct_CC$ac_delim
20879 EXEEXT!$EXEEXT$ac_delim
20880 OBJEXT!$OBJEXT$ac_delim
20881 DEPDIR!$DEPDIR$ac_delim
20882 am__include!$am__include$ac_delim
20883 am__quote!$am__quote$ac_delim
20884 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
20885 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
20886 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
20887 CCDEPMODE!$CCDEPMODE$ac_delim
20888 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
20889 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
20890 build!$build$ac_delim
20891 build_cpu!$build_cpu$ac_delim
20892 build_vendor!$build_vendor$ac_delim
20893 build_os!$build_os$ac_delim
20894 host!$host$ac_delim
20895 host_cpu!$host_cpu$ac_delim
20896 host_vendor!$host_vendor$ac_delim
20897 host_os!$host_os$ac_delim
20898 GREP!$GREP$ac_delim
20899 EGREP!$EGREP$ac_delim
20900 LN_S!$LN_S$ac_delim
20901 ECHO!$ECHO$ac_delim
20902 AR!$AR$ac_delim
20903 RANLIB!$RANLIB$ac_delim
20904 CPP!$CPP$ac_delim
20905 _ACEOF
20906
20907 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20908 break
20909 elif $ac_last_try; then
20910 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20911 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20912 { (exit 1); exit 1; }; }
20913 else
20914 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20915 fi
20916 done
20917
20918 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20919 if test -n "$ac_eof"; then
20920 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20921 ac_eof=`expr $ac_eof + 1`
20922 fi
20923
20924 cat >>$CONFIG_STATUS <<_ACEOF
20925 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20926 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20927 _ACEOF
20928 sed '
20929 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20930 s/^/s,@/; s/!/@,|#_!!_#|/
20931 :n
20932 t n
20933 s/'"$ac_delim"'$/,g/; t
20934 s/$/\\/; p
20935 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20936 ' >>$CONFIG_STATUS <conf$$subs.sed
20937 rm -f conf$$subs.sed
20938 cat >>$CONFIG_STATUS <<_ACEOF
20939 CEOF$ac_eof
20940 _ACEOF
20941
20942
20943 ac_delim='%!_!# '
20944 for ac_last_try in false false false false false :; do
20945 cat >conf$$subs.sed <<_ACEOF
20946 CXX!$CXX$ac_delim
20947 CXXFLAGS!$CXXFLAGS$ac_delim
20948 ac_ct_CXX!$ac_ct_CXX$ac_delim
20949 CXXDEPMODE!$CXXDEPMODE$ac_delim
20950 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
20951 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
20952 CXXCPP!$CXXCPP$ac_delim
20953 F77!$F77$ac_delim
20954 FFLAGS!$FFLAGS$ac_delim
20955 ac_ct_F77!$ac_ct_F77$ac_delim
20956 LIBTOOL!$LIBTOOL$ac_delim
20957 PKG_CONFIG!$PKG_CONFIG$ac_delim
20958 XFONTCACHE_CFLAGS!$XFONTCACHE_CFLAGS$ac_delim
20959 XFONTCACHE_LIBS!$XFONTCACHE_LIBS$ac_delim
20960 MALLOC_ZERO_CFLAGS!$MALLOC_ZERO_CFLAGS$ac_delim
20961 XMALLOC_ZERO_CFLAGS!$XMALLOC_ZERO_CFLAGS$ac_delim
20962 XTMALLOC_ZERO_CFLAGS!$XTMALLOC_ZERO_CFLAGS$ac_delim
20963 APP_MAN_SUFFIX!$APP_MAN_SUFFIX$ac_delim
20964 LIB_MAN_SUFFIX!$LIB_MAN_SUFFIX$ac_delim
20965 FILE_MAN_SUFFIX!$FILE_MAN_SUFFIX$ac_delim
20966 MISC_MAN_SUFFIX!$MISC_MAN_SUFFIX$ac_delim
20967 DRIVER_MAN_SUFFIX!$DRIVER_MAN_SUFFIX$ac_delim
20968 ADMIN_MAN_SUFFIX!$ADMIN_MAN_SUFFIX$ac_delim
20969 APP_MAN_DIR!$APP_MAN_DIR$ac_delim
20970 LIB_MAN_DIR!$LIB_MAN_DIR$ac_delim
20971 FILE_MAN_DIR!$FILE_MAN_DIR$ac_delim
20972 MISC_MAN_DIR!$MISC_MAN_DIR$ac_delim
20973 DRIVER_MAN_DIR!$DRIVER_MAN_DIR$ac_delim
20974 ADMIN_MAN_DIR!$ADMIN_MAN_DIR$ac_delim
20975 LIBOBJS!$LIBOBJS$ac_delim
20976 LTLIBOBJS!$LTLIBOBJS$ac_delim
20977 _ACEOF
20978
20979 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 31; then
20980 break
20981 elif $ac_last_try; then
20982 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20983 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20984 { (exit 1); exit 1; }; }
20985 else
20986 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20987 fi
20988 done
20989
20990 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20991 if test -n "$ac_eof"; then
20992 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20993 ac_eof=`expr $ac_eof + 1`
20994 fi
20995
20996 cat >>$CONFIG_STATUS <<_ACEOF
20997 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20998 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20999 _ACEOF
21000 sed '
21001 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21002 s/^/s,@/; s/!/@,|#_!!_#|/
21003 :n
21004 t n
21005 s/'"$ac_delim"'$/,g/; t
21006 s/$/\\/; p
21007 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21008 ' >>$CONFIG_STATUS <conf$$subs.sed
21009 rm -f conf$$subs.sed
21010 cat >>$CONFIG_STATUS <<_ACEOF
21011 :end
21012 s/|#_!!_#|//g
21013 CEOF$ac_eof
21014 _ACEOF
21015
21016
21017 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21018 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21019 # trailing colons and then remove the whole line if VPATH becomes empty
21020 # (actually we leave an empty line to preserve line numbers).
21021 if test "x$srcdir" = x.; then
21022 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21023 s/:*\$(srcdir):*/:/
21024 s/:*\${srcdir}:*/:/
21025 s/:*@srcdir@:*/:/
21026 s/^\([^=]*=[ ]*\):*/\1/
21027 s/:*$//
21028 s/^[^=]*=[ ]*$//
21029 }'
21030 fi
21031
21032 cat >>$CONFIG_STATUS <<\_ACEOF
21033 fi # test -n "$CONFIG_FILES"
21034
21035
21036 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
21037 do
21038 case $ac_tag in
21039 :[FHLC]) ac_mode=$ac_tag; continue;;
21040 esac
21041 case $ac_mode$ac_tag in
21042 :[FHL]*:*);;
21043 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21044 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21045 { (exit 1); exit 1; }; };;
21046 :[FH]-) ac_tag=-:-;;
21047 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21048 esac
21049 ac_save_IFS=$IFS
21050 IFS=:
21051 set x $ac_tag
21052 IFS=$ac_save_IFS
21053 shift
21054 ac_file=$1
21055 shift
21056
21057 case $ac_mode in
21058 :L) ac_source=$1;;
21059 :[FH])
21060 ac_file_inputs=
21061 for ac_f
21062 do
21063 case $ac_f in
21064 -) ac_f="$tmp/stdin";;
21065 *) # Look for the file first in the build tree, then in the source tree
21066 # (if the path is not absolute). The absolute path cannot be DOS-style,
21067 # because $ac_f cannot contain `:'.
21068 test -f "$ac_f" ||
21069 case $ac_f in
21070 [\\/$]*) false;;
21071 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21072 esac ||
21073 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21074 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21075 { (exit 1); exit 1; }; };;
21076 esac
21077 ac_file_inputs="$ac_file_inputs $ac_f"
21078 done
21079
21080 # Let's still pretend it is `configure' which instantiates (i.e., don't
21081 # use $as_me), people would be surprised to read:
21082 # /* config.h. Generated by config.status. */
21083 configure_input="Generated from "`IFS=:
21084 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21085 if test x"$ac_file" != x-; then
21086 configure_input="$ac_file. $configure_input"
21087 { echo "$as_me:$LINENO: creating $ac_file" >&5
21088 echo "$as_me: creating $ac_file" >&6;}
21089 fi
21090
21091 case $ac_tag in
21092 *:-:* | *:-) cat >"$tmp/stdin";;
21093 esac
21094 ;;
21095 esac
21096
21097 ac_dir=`$as_dirname -- "$ac_file" ||
21098 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21099 X"$ac_file" : 'X\(//\)[^/]' \| \
21100 X"$ac_file" : 'X\(//\)$' \| \
21101 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21102 echo X"$ac_file" |
21103 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21104 s//\1/
21105 q
21106 }
21107 /^X\(\/\/\)[^/].*/{
21108 s//\1/
21109 q
21110 }
21111 /^X\(\/\/\)$/{
21112 s//\1/
21113 q
21114 }
21115 /^X\(\/\).*/{
21116 s//\1/
21117 q
21118 }
21119 s/.*/./; q'`
21120 { as_dir="$ac_dir"
21121 case $as_dir in #(
21122 -*) as_dir=./$as_dir;;
21123 esac
21124 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21125 as_dirs=
21126 while :; do
21127 case $as_dir in #(
21128 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21129 *) as_qdir=$as_dir;;
21130 esac
21131 as_dirs="'$as_qdir' $as_dirs"
21132 as_dir=`$as_dirname -- "$as_dir" ||
21133 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21134 X"$as_dir" : 'X\(//\)[^/]' \| \
21135 X"$as_dir" : 'X\(//\)$' \| \
21136 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21137 echo X"$as_dir" |
21138 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21139 s//\1/
21140 q
21141 }
21142 /^X\(\/\/\)[^/].*/{
21143 s//\1/
21144 q
21145 }
21146 /^X\(\/\/\)$/{
21147 s//\1/
21148 q
21149 }
21150 /^X\(\/\).*/{
21151 s//\1/
21152 q
21153 }
21154 s/.*/./; q'`
21155 test -d "$as_dir" && break
21156 done
21157 test -z "$as_dirs" || eval "mkdir $as_dirs"
21158 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21159 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21160 { (exit 1); exit 1; }; }; }
21161 ac_builddir=.
21162
21163 case "$ac_dir" in
21164 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21165 *)
21166 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21167 # A ".." for each directory in $ac_dir_suffix.
21168 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21169 case $ac_top_builddir_sub in
21170 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21171 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21172 esac ;;
21173 esac
21174 ac_abs_top_builddir=$ac_pwd
21175 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21176 # for backward compatibility:
21177 ac_top_builddir=$ac_top_build_prefix
21178
21179 case $srcdir in
21180 .) # We are building in place.
21181 ac_srcdir=.
21182 ac_top_srcdir=$ac_top_builddir_sub
21183 ac_abs_top_srcdir=$ac_pwd ;;
21184 [\\/]* | ?:[\\/]* ) # Absolute name.
21185 ac_srcdir=$srcdir$ac_dir_suffix;
21186 ac_top_srcdir=$srcdir
21187 ac_abs_top_srcdir=$srcdir ;;
21188 *) # Relative name.
21189 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21190 ac_top_srcdir=$ac_top_build_prefix$srcdir
21191 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21192 esac
21193 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21194
21195
21196 case $ac_mode in
21197 :F)
21198 #
21199 # CONFIG_FILE
21200 #
21201
21202 case $INSTALL in
21203 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21204 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21205 esac
21206 _ACEOF
21207
21208 cat >>$CONFIG_STATUS <<\_ACEOF
21209 # If the template does not know about datarootdir, expand it.
21210 # FIXME: This hack should be removed a few years after 2.60.
21211 ac_datarootdir_hack=; ac_datarootdir_seen=
21212
21213 case `sed -n '/datarootdir/ {
21214 p
21215 q
21216 }
21217 /@datadir@/p
21218 /@docdir@/p
21219 /@infodir@/p
21220 /@localedir@/p
21221 /@mandir@/p
21222 ' $ac_file_inputs` in
21223 *datarootdir*) ac_datarootdir_seen=yes;;
21224 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21225 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21226 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21227 _ACEOF
21228 cat >>$CONFIG_STATUS <<_ACEOF
21229 ac_datarootdir_hack='
21230 s&@datadir@&$datadir&g
21231 s&@docdir@&$docdir&g
21232 s&@infodir@&$infodir&g
21233 s&@localedir@&$localedir&g
21234 s&@mandir@&$mandir&g
21235 s&\\\${datarootdir}&$datarootdir&g' ;;
21236 esac
21237 _ACEOF
21238
21239 # Neutralize VPATH when `$srcdir' = `.'.
21240 # Shell code in configure.ac might set extrasub.
21241 # FIXME: do we really want to maintain this feature?
21242 cat >>$CONFIG_STATUS <<_ACEOF
21243 sed "$ac_vpsub
21244 $extrasub
21245 _ACEOF
21246 cat >>$CONFIG_STATUS <<\_ACEOF
21247 :t
21248 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21249 s&@configure_input@&$configure_input&;t t
21250 s&@top_builddir@&$ac_top_builddir_sub&;t t
21251 s&@srcdir@&$ac_srcdir&;t t
21252 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21253 s&@top_srcdir@&$ac_top_srcdir&;t t
21254 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21255 s&@builddir@&$ac_builddir&;t t
21256 s&@abs_builddir@&$ac_abs_builddir&;t t
21257 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21258 s&@INSTALL@&$ac_INSTALL&;t t
21259 $ac_datarootdir_hack
21260 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21261
21262 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21263 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21264 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21265 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21266 which seems to be undefined. Please make sure it is defined." >&5
21267 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21268 which seems to be undefined. Please make sure it is defined." >&2;}
21269
21270 rm -f "$tmp/stdin"
21271 case $ac_file in
21272 -) cat "$tmp/out"; rm -f "$tmp/out";;
21273 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21274 esac
21275 ;;
21276 :H)
21277 #
21278 # CONFIG_HEADER
21279 #
21280 _ACEOF
21281
21282 # Transform confdefs.h into a sed script `conftest.defines', that
21283 # substitutes the proper values into config.h.in to produce config.h.
21284 rm -f conftest.defines conftest.tail
21285 # First, append a space to every undef/define line, to ease matching.
21286 echo 's/$/ /' >conftest.defines
21287 # Then, protect against being on the right side of a sed subst, or in
21288 # an unquoted here document, in config.status. If some macros were
21289 # called several times there might be several #defines for the same
21290 # symbol, which is useless. But do not sort them, since the last
21291 # AC_DEFINE must be honored.
21292 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21293 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21294 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21295 # PARAMS is the parameter list in the macro definition--in most cases, it's
21296 # just an empty string.
21297 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21298 ac_dB='\\)[ (].*,\\1define\\2'
21299 ac_dC=' '
21300 ac_dD=' ,'
21301
21302 uniq confdefs.h |
21303 sed -n '
21304 t rset
21305 :rset
21306 s/^[ ]*#[ ]*define[ ][ ]*//
21307 t ok
21308 d
21309 :ok
21310 s/[\\&,]/\\&/g
21311 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21312 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21313 ' >>conftest.defines
21314
21315 # Remove the space that was appended to ease matching.
21316 # Then replace #undef with comments. This is necessary, for
21317 # example, in the case of _POSIX_SOURCE, which is predefined and required
21318 # on some systems where configure will not decide to define it.
21319 # (The regexp can be short, since the line contains either #define or #undef.)
21320 echo 's/ $//
21321 s,^[ #]*u.*,/* & */,' >>conftest.defines
21322
21323 # Break up conftest.defines:
21324 ac_max_sed_lines=50
21325
21326 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21327 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21328 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21329 # et cetera.
21330 ac_in='$ac_file_inputs'
21331 ac_out='"$tmp/out1"'
21332 ac_nxt='"$tmp/out2"'
21333
21334 while :
21335 do
21336 # Write a here document:
21337 cat >>$CONFIG_STATUS <<_ACEOF
21338 # First, check the format of the line:
21339 cat >"\$tmp/defines.sed" <<\\CEOF
21340 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21341 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21342 b
21343 :def
21344 _ACEOF
21345 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21346 echo 'CEOF
21347 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21348 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21349 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21350 grep . conftest.tail >/dev/null || break
21351 rm -f conftest.defines
21352 mv conftest.tail conftest.defines
21353 done
21354 rm -f conftest.defines conftest.tail
21355
21356 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21357 cat >>$CONFIG_STATUS <<\_ACEOF
21358 if test x"$ac_file" != x-; then
21359 echo "/* $configure_input */" >"$tmp/config.h"
21360 cat "$ac_result" >>"$tmp/config.h"
21361 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21362 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21363 echo "$as_me: $ac_file is unchanged" >&6;}
21364 else
21365 rm -f $ac_file
21366 mv "$tmp/config.h" $ac_file
21367 fi
21368 else
21369 echo "/* $configure_input */"
21370 cat "$ac_result"
21371 fi
21372 rm -f "$tmp/out12"
21373 # Compute $ac_file's index in $config_headers.
21374 _am_stamp_count=1
21375 for _am_header in $config_headers :; do
21376 case $_am_header in
21377 $ac_file | $ac_file:* )
21378 break ;;
21379 * )
21380 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21381 esac
21382 done
21383 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
21384 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21385 X$ac_file : 'X\(//\)[^/]' \| \
21386 X$ac_file : 'X\(//\)$' \| \
21387 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
21388 echo X$ac_file |
21389 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21390 s//\1/
21391 q
21392 }
21393 /^X\(\/\/\)[^/].*/{
21394 s//\1/
21395 q
21396 }
21397 /^X\(\/\/\)$/{
21398 s//\1/
21399 q
21400 }
21401 /^X\(\/\).*/{
21402 s//\1/
21403 q
21404 }
21405 s/.*/./; q'`/stamp-h$_am_stamp_count
21406 ;;
21407
21408 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21409 echo "$as_me: executing $ac_file commands" >&6;}
21410 ;;
21411 esac
21412
21413
21414 case $ac_file$ac_mode in
21415 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21416 # Strip MF so we end up with the name of the file.
21417 mf=`echo "$mf" | sed -e 's/:.*$//'`
21418 # Check whether this is an Automake generated Makefile or not.
21419 # We used to match only the files named `Makefile.in', but
21420 # some people rename them; so instead we look at the file content.
21421 # Grep'ing the first line is not enough: some people post-process
21422 # each Makefile.in and add a new line on top of each file to say so.
21423 # So let's grep whole file.
21424 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21425 dirpart=`$as_dirname -- "$mf" ||
21426 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21427 X"$mf" : 'X\(//\)[^/]' \| \
21428 X"$mf" : 'X\(//\)$' \| \
21429 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21430 echo X"$mf" |
21431 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21432 s//\1/
21433 q
21434 }
21435 /^X\(\/\/\)[^/].*/{
21436 s//\1/
21437 q
21438 }
21439 /^X\(\/\/\)$/{
21440 s//\1/
21441 q
21442 }
21443 /^X\(\/\).*/{
21444 s//\1/
21445 q
21446 }
21447 s/.*/./; q'`
21448 else
21449 continue
21450 fi
21451 # Extract the definition of DEPDIR, am__include, and am__quote
21452 # from the Makefile without running `make'.
21453 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21454 test -z "$DEPDIR" && continue
21455 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21456 test -z "am__include" && continue
21457 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21458 # When using ansi2knr, U may be empty or an underscore; expand it
21459 U=`sed -n 's/^U = //p' < "$mf"`
21460 # Find all dependency output files, they are included files with
21461 # $(DEPDIR) in their names. We invoke sed twice because it is the
21462 # simplest approach to changing $(DEPDIR) to its actual value in the
21463 # expansion.
21464 for file in `sed -n "
21465 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21466 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21467 # Make sure the directory exists.
21468 test -f "$dirpart/$file" && continue
21469 fdir=`$as_dirname -- "$file" ||
21470 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21471 X"$file" : 'X\(//\)[^/]' \| \
21472 X"$file" : 'X\(//\)$' \| \
21473 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21474 echo X"$file" |
21475 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21476 s//\1/
21477 q
21478 }
21479 /^X\(\/\/\)[^/].*/{
21480 s//\1/
21481 q
21482 }
21483 /^X\(\/\/\)$/{
21484 s//\1/
21485 q
21486 }
21487 /^X\(\/\).*/{
21488 s//\1/
21489 q
21490 }
21491 s/.*/./; q'`
21492 { as_dir=$dirpart/$fdir
21493 case $as_dir in #(
21494 -*) as_dir=./$as_dir;;
21495 esac
21496 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21497 as_dirs=
21498 while :; do
21499 case $as_dir in #(
21500 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21501 *) as_qdir=$as_dir;;
21502 esac
21503 as_dirs="'$as_qdir' $as_dirs"
21504 as_dir=`$as_dirname -- "$as_dir" ||
21505 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21506 X"$as_dir" : 'X\(//\)[^/]' \| \
21507 X"$as_dir" : 'X\(//\)$' \| \
21508 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21509 echo X"$as_dir" |
21510 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21511 s//\1/
21512 q
21513 }
21514 /^X\(\/\/\)[^/].*/{
21515 s//\1/
21516 q
21517 }
21518 /^X\(\/\/\)$/{
21519 s//\1/
21520 q
21521 }
21522 /^X\(\/\).*/{
21523 s//\1/
21524 q
21525 }
21526 s/.*/./; q'`
21527 test -d "$as_dir" && break
21528 done
21529 test -z "$as_dirs" || eval "mkdir $as_dirs"
21530 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21531 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21532 { (exit 1); exit 1; }; }; }
21533 # echo "creating $dirpart/$file"
21534 echo '# dummy' > "$dirpart/$file"
21535 done
21536 done
21537 ;;
21538
21539 esac
21540 done # for ac_tag
21541
21542
21543 { (exit 0); exit 0; }
21544 _ACEOF
21545 chmod +x $CONFIG_STATUS
21546 ac_clean_files=$ac_clean_files_save
21547
21548
21549 # configure is writing to config.log, and then calls config.status.
21550 # config.status does its own redirection, appending to config.log.
21551 # Unfortunately, on DOS this fails, as config.log is still kept open
21552 # by configure, so config.status won't be able to write to it; its
21553 # output is simply discarded. So we exec the FD to /dev/null,
21554 # effectively closing config.log, so it can be properly (re)opened and
21555 # appended to by config.status. When coming back to configure, we
21556 # need to make the FD available again.
21557 if test "$no_create" != yes; then
21558 ac_cs_success=:
21559 ac_config_status_args=
21560 test "$silent" = yes &&
21561 ac_config_status_args="$ac_config_status_args --quiet"
21562 exec 5>/dev/null
21563 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21564 exec 5>>config.log
21565 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21566 # would make configure fail if this is the last instruction.
21567 $ac_cs_success || { (exit 1); exit 1; }
21568 fi
21569
21570