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 xf86-video-tdfx 1.3.0.
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='xf86-video-tdfx'
715 PACKAGE_TARNAME='xf86-video-tdfx'
716 PACKAGE_VERSION='1.3.0'
717 PACKAGE_STRING='xf86-video-tdfx 1.3.0'
718 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
719
720 ac_unique_file="Makefile.am"
721 # Factoring default headers for most tests.
722 ac_includes_default="\
723 #include <stdio.h>
724 #if HAVE_SYS_TYPES_H
725 # include <sys/types.h>
726 #endif
727 #if HAVE_SYS_STAT_H
728 # include <sys/stat.h>
729 #endif
730 #if STDC_HEADERS
731 # include <stdlib.h>
732 # include <stddef.h>
733 #else
734 # if HAVE_STDLIB_H
735 # include <stdlib.h>
736 # endif
737 #endif
738 #if HAVE_STRING_H
739 # if !STDC_HEADERS && HAVE_MEMORY_H
740 # include <memory.h>
741 # endif
742 # include <string.h>
743 #endif
744 #if HAVE_STRINGS_H
745 # include <strings.h>
746 #endif
747 #if HAVE_INTTYPES_H
748 # include <inttypes.h>
749 #endif
750 #if HAVE_STDINT_H
751 # include <stdint.h>
752 #endif
753 #if HAVE_UNISTD_H
754 # include <unistd.h>
755 #endif"
756
757 ac_subst_vars='SHELL
758 PATH_SEPARATOR
759 PACKAGE_NAME
760 PACKAGE_TARNAME
761 PACKAGE_VERSION
762 PACKAGE_STRING
763 PACKAGE_BUGREPORT
764 exec_prefix
765 prefix
766 program_transform_name
767 bindir
768 sbindir
769 libexecdir
770 datarootdir
771 datadir
772 sysconfdir
773 sharedstatedir
774 localstatedir
775 includedir
776 oldincludedir
777 docdir
778 infodir
779 htmldir
780 dvidir
781 pdfdir
782 psdir
783 libdir
784 localedir
785 mandir
786 DEFS
787 ECHO_C
788 ECHO_N
789 ECHO_T
790 LIBS
791 build_alias
792 host_alias
793 target_alias
794 INSTALL_PROGRAM
795 INSTALL_SCRIPT
796 INSTALL_DATA
797 CYGPATH_W
798 PACKAGE
799 VERSION
800 ACLOCAL
801 AUTOCONF
802 AUTOMAKE
803 AUTOHEADER
804 MAKEINFO
805 install_sh
806 STRIP
807 INSTALL_STRIP_PROGRAM
808 mkdir_p
809 AWK
810 SET_MAKE
811 am__leading_dot
812 AMTAR
813 am__tar
814 am__untar
815 MAINTAINER_MODE_TRUE
816 MAINTAINER_MODE_FALSE
817 MAINT
818 build
819 build_cpu
820 build_vendor
821 build_os
822 host
823 host_cpu
824 host_vendor
825 host_os
826 CC
827 CFLAGS
828 LDFLAGS
829 CPPFLAGS
830 ac_ct_CC
831 EXEEXT
832 OBJEXT
833 DEPDIR
834 am__include
835 am__quote
836 AMDEP_TRUE
837 AMDEP_FALSE
838 AMDEPBACKSLASH
839 CCDEPMODE
840 am__fastdepCC_TRUE
841 am__fastdepCC_FALSE
842 GREP
843 EGREP
844 LN_S
845 ECHO
846 AR
847 RANLIB
848 CPP
849 CXX
850 CXXFLAGS
851 ac_ct_CXX
852 CXXDEPMODE
853 am__fastdepCXX_TRUE
854 am__fastdepCXX_FALSE
855 CXXCPP
856 F77
857 FFLAGS
858 ac_ct_F77
859 LIBTOOL
860 PKG_CONFIG
861 XORG_CFLAGS
862 XORG_LIBS
863 DRI_TRUE
864 DRI_FALSE
865 DRI_CFLAGS
866 DRI_LIBS
867 moduledir
868 DRIVER_NAME
869 APP_MAN_SUFFIX
870 LIB_MAN_SUFFIX
871 FILE_MAN_SUFFIX
872 MISC_MAN_SUFFIX
873 DRIVER_MAN_SUFFIX
874 ADMIN_MAN_SUFFIX
875 APP_MAN_DIR
876 LIB_MAN_DIR
877 FILE_MAN_DIR
878 MISC_MAN_DIR
879 DRIVER_MAN_DIR
880 ADMIN_MAN_DIR
881 LIBOBJS
882 LTLIBOBJS'
883 ac_subst_files=''
884 ac_precious_vars='build_alias
885 host_alias
886 target_alias
887 CC
888 CFLAGS
889 LDFLAGS
890 CPPFLAGS
891 CPP
892 CXX
893 CXXFLAGS
894 CCC
895 CXXCPP
896 F77
897 FFLAGS
898 PKG_CONFIG
899 XORG_CFLAGS
900 XORG_LIBS
901 DRI_CFLAGS
902 DRI_LIBS'
903
904
905 # Initialize some variables set by options.
906 ac_init_help=
907 ac_init_version=false
908 # The variables have the same names as the options, with
909 # dashes changed to underlines.
910 cache_file=/dev/null
911 exec_prefix=NONE
912 no_create=
913 no_recursion=
914 prefix=NONE
915 program_prefix=NONE
916 program_suffix=NONE
917 program_transform_name=s,x,x,
918 silent=
919 site=
920 srcdir=
921 verbose=
922 x_includes=NONE
923 x_libraries=NONE
924
925 # Installation directory options.
926 # These are left unexpanded so users can "make install exec_prefix=/foo"
927 # and all the variables that are supposed to be based on exec_prefix
928 # by default will actually change.
929 # Use braces instead of parens because sh, perl, etc. also accept them.
930 # (The list follows the same order as the GNU Coding Standards.)
931 bindir='${exec_prefix}/bin'
932 sbindir='${exec_prefix}/sbin'
933 libexecdir='${exec_prefix}/libexec'
934 datarootdir='${prefix}/share'
935 datadir='${datarootdir}'
936 sysconfdir='${prefix}/etc'
937 sharedstatedir='${prefix}/com'
938 localstatedir='${prefix}/var'
939 includedir='${prefix}/include'
940 oldincludedir='/usr/include'
941 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
942 infodir='${datarootdir}/info'
943 htmldir='${docdir}'
944 dvidir='${docdir}'
945 pdfdir='${docdir}'
946 psdir='${docdir}'
947 libdir='${exec_prefix}/lib'
948 localedir='${datarootdir}/locale'
949 mandir='${datarootdir}/man'
950
951 ac_prev=
952 ac_dashdash=
953 for ac_option
954 do
955 # If the previous option needs an argument, assign it.
956 if test -n "$ac_prev"; then
957 eval $ac_prev=\$ac_option
958 ac_prev=
959 continue
960 fi
961
962 case $ac_option in
963 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
964 *) ac_optarg=yes ;;
965 esac
966
967 # Accept the important Cygnus configure options, so we can diagnose typos.
968
969 case $ac_dashdash$ac_option in
970 --)
971 ac_dashdash=yes ;;
972
973 -bindir | --bindir | --bindi | --bind | --bin | --bi)
974 ac_prev=bindir ;;
975 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
976 bindir=$ac_optarg ;;
977
978 -build | --build | --buil | --bui | --bu)
979 ac_prev=build_alias ;;
980 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
981 build_alias=$ac_optarg ;;
982
983 -cache-file | --cache-file | --cache-fil | --cache-fi \
984 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
985 ac_prev=cache_file ;;
986 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
987 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
988 cache_file=$ac_optarg ;;
989
990 --config-cache | -C)
991 cache_file=config.cache ;;
992
993 -datadir | --datadir | --datadi | --datad)
994 ac_prev=datadir ;;
995 -datadir=* | --datadir=* | --datadi=* | --datad=*)
996 datadir=$ac_optarg ;;
997
998 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
999 | --dataroo | --dataro | --datar)
1000 ac_prev=datarootdir ;;
1001 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1002 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1003 datarootdir=$ac_optarg ;;
1004
1005 -disable-* | --disable-*)
1006 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1007 # Reject names that are not valid shell variable names.
1008 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1009 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1010 { (exit 1); exit 1; }; }
1011 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1012 eval enable_$ac_feature=no ;;
1013
1014 -docdir | --docdir | --docdi | --doc | --do)
1015 ac_prev=docdir ;;
1016 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1017 docdir=$ac_optarg ;;
1018
1019 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1020 ac_prev=dvidir ;;
1021 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1022 dvidir=$ac_optarg ;;
1023
1024 -enable-* | --enable-*)
1025 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1026 # Reject names that are not valid shell variable names.
1027 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1028 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1029 { (exit 1); exit 1; }; }
1030 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1031 eval enable_$ac_feature=\$ac_optarg ;;
1032
1033 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1034 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1035 | --exec | --exe | --ex)
1036 ac_prev=exec_prefix ;;
1037 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1038 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1039 | --exec=* | --exe=* | --ex=*)
1040 exec_prefix=$ac_optarg ;;
1041
1042 -gas | --gas | --ga | --g)
1043 # Obsolete; use --with-gas.
1044 with_gas=yes ;;
1045
1046 -help | --help | --hel | --he | -h)
1047 ac_init_help=long ;;
1048 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1049 ac_init_help=recursive ;;
1050 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1051 ac_init_help=short ;;
1052
1053 -host | --host | --hos | --ho)
1054 ac_prev=host_alias ;;
1055 -host=* | --host=* | --hos=* | --ho=*)
1056 host_alias=$ac_optarg ;;
1057
1058 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1059 ac_prev=htmldir ;;
1060 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1061 | --ht=*)
1062 htmldir=$ac_optarg ;;
1063
1064 -includedir | --includedir | --includedi | --included | --include \
1065 | --includ | --inclu | --incl | --inc)
1066 ac_prev=includedir ;;
1067 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1068 | --includ=* | --inclu=* | --incl=* | --inc=*)
1069 includedir=$ac_optarg ;;
1070
1071 -infodir | --infodir | --infodi | --infod | --info | --inf)
1072 ac_prev=infodir ;;
1073 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1074 infodir=$ac_optarg ;;
1075
1076 -libdir | --libdir | --libdi | --libd)
1077 ac_prev=libdir ;;
1078 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1079 libdir=$ac_optarg ;;
1080
1081 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1082 | --libexe | --libex | --libe)
1083 ac_prev=libexecdir ;;
1084 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1085 | --libexe=* | --libex=* | --libe=*)
1086 libexecdir=$ac_optarg ;;
1087
1088 -localedir | --localedir | --localedi | --localed | --locale)
1089 ac_prev=localedir ;;
1090 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1091 localedir=$ac_optarg ;;
1092
1093 -localstatedir | --localstatedir | --localstatedi | --localstated \
1094 | --localstate | --localstat | --localsta | --localst | --locals)
1095 ac_prev=localstatedir ;;
1096 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1097 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1098 localstatedir=$ac_optarg ;;
1099
1100 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1101 ac_prev=mandir ;;
1102 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1103 mandir=$ac_optarg ;;
1104
1105 -nfp | --nfp | --nf)
1106 # Obsolete; use --without-fp.
1107 with_fp=no ;;
1108
1109 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1110 | --no-cr | --no-c | -n)
1111 no_create=yes ;;
1112
1113 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1114 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1115 no_recursion=yes ;;
1116
1117 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1118 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1119 | --oldin | --oldi | --old | --ol | --o)
1120 ac_prev=oldincludedir ;;
1121 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1122 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1123 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1124 oldincludedir=$ac_optarg ;;
1125
1126 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1127 ac_prev=prefix ;;
1128 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1129 prefix=$ac_optarg ;;
1130
1131 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1132 | --program-pre | --program-pr | --program-p)
1133 ac_prev=program_prefix ;;
1134 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1135 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1136 program_prefix=$ac_optarg ;;
1137
1138 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1139 | --program-suf | --program-su | --program-s)
1140 ac_prev=program_suffix ;;
1141 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1142 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1143 program_suffix=$ac_optarg ;;
1144
1145 -program-transform-name | --program-transform-name \
1146 | --program-transform-nam | --program-transform-na \
1147 | --program-transform-n | --program-transform- \
1148 | --program-transform | --program-transfor \
1149 | --program-transfo | --program-transf \
1150 | --program-trans | --program-tran \
1151 | --progr-tra | --program-tr | --program-t)
1152 ac_prev=program_transform_name ;;
1153 -program-transform-name=* | --program-transform-name=* \
1154 | --program-transform-nam=* | --program-transform-na=* \
1155 | --program-transform-n=* | --program-transform-=* \
1156 | --program-transform=* | --program-transfor=* \
1157 | --program-transfo=* | --program-transf=* \
1158 | --program-trans=* | --program-tran=* \
1159 | --progr-tra=* | --program-tr=* | --program-t=*)
1160 program_transform_name=$ac_optarg ;;
1161
1162 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1163 ac_prev=pdfdir ;;
1164 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1165 pdfdir=$ac_optarg ;;
1166
1167 -psdir | --psdir | --psdi | --psd | --ps)
1168 ac_prev=psdir ;;
1169 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1170 psdir=$ac_optarg ;;
1171
1172 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1173 | -silent | --silent | --silen | --sile | --sil)
1174 silent=yes ;;
1175
1176 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1177 ac_prev=sbindir ;;
1178 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1179 | --sbi=* | --sb=*)
1180 sbindir=$ac_optarg ;;
1181
1182 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1183 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1184 | --sharedst | --shareds | --shared | --share | --shar \
1185 | --sha | --sh)
1186 ac_prev=sharedstatedir ;;
1187 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1188 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1189 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1190 | --sha=* | --sh=*)
1191 sharedstatedir=$ac_optarg ;;
1192
1193 -site | --site | --sit)
1194 ac_prev=site ;;
1195 -site=* | --site=* | --sit=*)
1196 site=$ac_optarg ;;
1197
1198 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1199 ac_prev=srcdir ;;
1200 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1201 srcdir=$ac_optarg ;;
1202
1203 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1204 | --syscon | --sysco | --sysc | --sys | --sy)
1205 ac_prev=sysconfdir ;;
1206 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1207 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1208 sysconfdir=$ac_optarg ;;
1209
1210 -target | --target | --targe | --targ | --tar | --ta | --t)
1211 ac_prev=target_alias ;;
1212 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1213 target_alias=$ac_optarg ;;
1214
1215 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1216 verbose=yes ;;
1217
1218 -version | --version | --versio | --versi | --vers | -V)
1219 ac_init_version=: ;;
1220
1221 -with-* | --with-*)
1222 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1223 # Reject names that are not valid shell variable names.
1224 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1225 { echo "$as_me: error: invalid package name: $ac_package" >&2
1226 { (exit 1); exit 1; }; }
1227 ac_package=`echo $ac_package| sed 's/-/_/g'`
1228 eval with_$ac_package=\$ac_optarg ;;
1229
1230 -without-* | --without-*)
1231 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1232 # Reject names that are not valid shell variable names.
1233 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1234 { echo "$as_me: error: invalid package name: $ac_package" >&2
1235 { (exit 1); exit 1; }; }
1236 ac_package=`echo $ac_package | sed 's/-/_/g'`
1237 eval with_$ac_package=no ;;
1238
1239 --x)
1240 # Obsolete; use --with-x.
1241 with_x=yes ;;
1242
1243 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1244 | --x-incl | --x-inc | --x-in | --x-i)
1245 ac_prev=x_includes ;;
1246 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1247 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1248 x_includes=$ac_optarg ;;
1249
1250 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1251 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1252 ac_prev=x_libraries ;;
1253 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1254 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1255 x_libraries=$ac_optarg ;;
1256
1257 -*) { echo "$as_me: error: unrecognized option: $ac_option
1258 Try \`$0 --help' for more information." >&2
1259 { (exit 1); exit 1; }; }
1260 ;;
1261
1262 *=*)
1263 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1264 # Reject names that are not valid shell variable names.
1265 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1266 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1267 { (exit 1); exit 1; }; }
1268 eval $ac_envvar=\$ac_optarg
1269 export $ac_envvar ;;
1270
1271 *)
1272 # FIXME: should be removed in autoconf 3.0.
1273 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1274 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1275 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1276 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1277 ;;
1278
1279 esac
1280 done
1281
1282 if test -n "$ac_prev"; then
1283 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1284 { echo "$as_me: error: missing argument to $ac_option" >&2
1285 { (exit 1); exit 1; }; }
1286 fi
1287
1288 # Be sure to have absolute directory names.
1289 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1290 datadir sysconfdir sharedstatedir localstatedir includedir \
1291 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1292 libdir localedir mandir
1293 do
1294 eval ac_val=\$$ac_var
1295 case $ac_val in
1296 [\\/$]* | ?:[\\/]* ) continue;;
1297 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1298 esac
1299 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1300 { (exit 1); exit 1; }; }
1301 done
1302
1303 # There might be people who depend on the old broken behavior: `$host'
1304 # used to hold the argument of --host etc.
1305 # FIXME: To remove some day.
1306 build=$build_alias
1307 host=$host_alias
1308 target=$target_alias
1309
1310 # FIXME: To remove some day.
1311 if test "x$host_alias" != x; then
1312 if test "x$build_alias" = x; then
1313 cross_compiling=maybe
1314 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1315 If a cross compiler is detected then cross compile mode will be used." >&2
1316 elif test "x$build_alias" != "x$host_alias"; then
1317 cross_compiling=yes
1318 fi
1319 fi
1320
1321 ac_tool_prefix=
1322 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1323
1324 test "$silent" = yes && exec 6>/dev/null
1325
1326
1327 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1328 ac_ls_di=`ls -di .` &&
1329 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1330 { echo "$as_me: error: Working directory cannot be determined" >&2
1331 { (exit 1); exit 1; }; }
1332 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1333 { echo "$as_me: error: pwd does not report name of working directory" >&2
1334 { (exit 1); exit 1; }; }
1335
1336
1337 # Find the source files, if location was not specified.
1338 if test -z "$srcdir"; then
1339 ac_srcdir_defaulted=yes
1340 # Try the directory containing this script, then the parent directory.
1341 ac_confdir=`$as_dirname -- "$0" ||
1342 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1343 X"$0" : 'X\(//\)[^/]' \| \
1344 X"$0" : 'X\(//\)$' \| \
1345 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1346 echo X"$0" |
1347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1348 s//\1/
1349 q
1350 }
1351 /^X\(\/\/\)[^/].*/{
1352 s//\1/
1353 q
1354 }
1355 /^X\(\/\/\)$/{
1356 s//\1/
1357 q
1358 }
1359 /^X\(\/\).*/{
1360 s//\1/
1361 q
1362 }
1363 s/.*/./; q'`
1364 srcdir=$ac_confdir
1365 if test ! -r "$srcdir/$ac_unique_file"; then
1366 srcdir=..
1367 fi
1368 else
1369 ac_srcdir_defaulted=no
1370 fi
1371 if test ! -r "$srcdir/$ac_unique_file"; then
1372 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1373 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1374 { (exit 1); exit 1; }; }
1375 fi
1376 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1377 ac_abs_confdir=`(
1378 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1379 { (exit 1); exit 1; }; }
1380 pwd)`
1381 # When building in place, set srcdir=.
1382 if test "$ac_abs_confdir" = "$ac_pwd"; then
1383 srcdir=.
1384 fi
1385 # Remove unnecessary trailing slashes from srcdir.
1386 # Double slashes in file names in object file debugging info
1387 # mess up M-x gdb in Emacs.
1388 case $srcdir in
1389 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1390 esac
1391 for ac_var in $ac_precious_vars; do
1392 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1393 eval ac_env_${ac_var}_value=\$${ac_var}
1394 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1395 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1396 done
1397
1398 #
1399 # Report the --help message.
1400 #
1401 if test "$ac_init_help" = "long"; then
1402 # Omit some internal or obsolete options to make the list less imposing.
1403 # This message is too long to be a string in the A/UX 3.1 sh.
1404 cat <<_ACEOF
1405 \`configure' configures xf86-video-tdfx 1.3.0 to adapt to many kinds of systems.
1406
1407 Usage: $0 [OPTION]... [VAR=VALUE]...
1408
1409 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1410 VAR=VALUE. See below for descriptions of some of the useful variables.
1411
1412 Defaults for the options are specified in brackets.
1413
1414 Configuration:
1415 -h, --help display this help and exit
1416 --help=short display options specific to this package
1417 --help=recursive display the short help of all the included packages
1418 -V, --version display version information and exit
1419 -q, --quiet, --silent do not print \`checking...' messages
1420 --cache-file=FILE cache test results in FILE [disabled]
1421 -C, --config-cache alias for \`--cache-file=config.cache'
1422 -n, --no-create do not create output files
1423 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1424
1425 Installation directories:
1426 --prefix=PREFIX install architecture-independent files in PREFIX
1427 [$ac_default_prefix]
1428 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1429 [PREFIX]
1430
1431 By default, \`make install' will install all the files in
1432 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1433 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1434 for instance \`--prefix=\$HOME'.
1435
1436 For better control, use the options below.
1437
1438 Fine tuning of the installation directories:
1439 --bindir=DIR user executables [EPREFIX/bin]
1440 --sbindir=DIR system admin executables [EPREFIX/sbin]
1441 --libexecdir=DIR program executables [EPREFIX/libexec]
1442 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1443 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1444 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1445 --libdir=DIR object code libraries [EPREFIX/lib]
1446 --includedir=DIR C header files [PREFIX/include]
1447 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1448 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1449 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1450 --infodir=DIR info documentation [DATAROOTDIR/info]
1451 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1452 --mandir=DIR man documentation [DATAROOTDIR/man]
1453 --docdir=DIR documentation root [DATAROOTDIR/doc/xf86-video-tdfx]
1454 --htmldir=DIR html documentation [DOCDIR]
1455 --dvidir=DIR dvi documentation [DOCDIR]
1456 --pdfdir=DIR pdf documentation [DOCDIR]
1457 --psdir=DIR ps documentation [DOCDIR]
1458 _ACEOF
1459
1460 cat <<\_ACEOF
1461
1462 Program names:
1463 --program-prefix=PREFIX prepend PREFIX to installed program names
1464 --program-suffix=SUFFIX append SUFFIX to installed program names
1465 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1466
1467 System types:
1468 --build=BUILD configure for building on BUILD [guessed]
1469 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1470 _ACEOF
1471 fi
1472
1473 if test -n "$ac_init_help"; then
1474 case $ac_init_help in
1475 short | recursive ) echo "Configuration of xf86-video-tdfx 1.3.0:";;
1476 esac
1477 cat <<\_ACEOF
1478
1479 Optional Features:
1480 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1481 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1482 --enable-maintainer-mode enable make rules and dependencies not useful
1483 (and sometimes confusing) to the casual installer
1484 --enable-static[=PKGS] build static libraries [default=no]
1485 --enable-shared[=PKGS] build shared libraries [default=yes]
1486 --enable-fast-install[=PKGS]
1487 optimize for fast installation [default=yes]
1488 --disable-dependency-tracking speeds up one-time build
1489 --enable-dependency-tracking do not reject slow dependency extractors
1490 --disable-libtool-lock avoid locking (might break parallel builds)
1491 --disable-dri Disable DRI support [default=auto]
1492
1493 Optional Packages:
1494 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1495 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1496 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1497 --with-pic try to use only PIC/non-PIC objects [default=use
1498 both]
1499 --with-tags[=TAGS] include additional configurations [automatic]
1500 --with-xorg-module-dir=DIR
1501 Default xorg module directory
1502 [default=$libdir/xorg/modules]
1503 --with-release-version=STRING
1504 Use release version string in package name
1505
1506 Some influential environment variables:
1507 CC C compiler command
1508 CFLAGS C compiler flags
1509 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1510 nonstandard directory <lib dir>
1511 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1512 you have headers in a nonstandard directory <include dir>
1513 CPP C preprocessor
1514 CXX C++ compiler command
1515 CXXFLAGS C++ compiler flags
1516 CXXCPP C++ preprocessor
1517 F77 Fortran 77 compiler command
1518 FFLAGS Fortran 77 compiler flags
1519 PKG_CONFIG path to pkg-config utility
1520 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1521 XORG_LIBS linker flags for XORG, overriding pkg-config
1522 DRI_CFLAGS C compiler flags for DRI, overriding pkg-config
1523 DRI_LIBS linker flags for DRI, overriding pkg-config
1524
1525 Use these variables to override the choices made by `configure' or to help
1526 it to find libraries and programs with nonstandard names/locations.
1527
1528 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1529 _ACEOF
1530 ac_status=$?
1531 fi
1532
1533 if test "$ac_init_help" = "recursive"; then
1534 # If there are subdirs, report their specific --help.
1535 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1536 test -d "$ac_dir" || continue
1537 ac_builddir=.
1538
1539 case "$ac_dir" in
1540 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1541 *)
1542 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1543 # A ".." for each directory in $ac_dir_suffix.
1544 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1545 case $ac_top_builddir_sub in
1546 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1547 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1548 esac ;;
1549 esac
1550 ac_abs_top_builddir=$ac_pwd
1551 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1552 # for backward compatibility:
1553 ac_top_builddir=$ac_top_build_prefix
1554
1555 case $srcdir in
1556 .) # We are building in place.
1557 ac_srcdir=.
1558 ac_top_srcdir=$ac_top_builddir_sub
1559 ac_abs_top_srcdir=$ac_pwd ;;
1560 [\\/]* | ?:[\\/]* ) # Absolute name.
1561 ac_srcdir=$srcdir$ac_dir_suffix;
1562 ac_top_srcdir=$srcdir
1563 ac_abs_top_srcdir=$srcdir ;;
1564 *) # Relative name.
1565 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1566 ac_top_srcdir=$ac_top_build_prefix$srcdir
1567 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1568 esac
1569 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1570
1571 cd "$ac_dir" || { ac_status=$?; continue; }
1572 # Check for guested configure.
1573 if test -f "$ac_srcdir/configure.gnu"; then
1574 echo &&
1575 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1576 elif test -f "$ac_srcdir/configure"; then
1577 echo &&
1578 $SHELL "$ac_srcdir/configure" --help=recursive
1579 else
1580 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1581 fi || ac_status=$?
1582 cd "$ac_pwd" || { ac_status=$?; break; }
1583 done
1584 fi
1585
1586 test -n "$ac_init_help" && exit $ac_status
1587 if $ac_init_version; then
1588 cat <<\_ACEOF
1589 xf86-video-tdfx configure 1.3.0
1590 generated by GNU Autoconf 2.60
1591
1592 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1593 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1594 This configure script is free software; the Free Software Foundation
1595 gives unlimited permission to copy, distribute and modify it.
1596 _ACEOF
1597 exit
1598 fi
1599 cat >config.log <<_ACEOF
1600 This file contains any messages produced by compilers while
1601 running configure, to aid debugging if configure makes a mistake.
1602
1603 It was created by xf86-video-tdfx $as_me 1.3.0, which was
1604 generated by GNU Autoconf 2.60. Invocation command line was
1605
1606 $ $0 $@
1607
1608 _ACEOF
1609 exec 5>>config.log
1610 {
1611 cat <<_ASUNAME
1612 ## --------- ##
1613 ## Platform. ##
1614 ## --------- ##
1615
1616 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1617 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1618 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1619 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1620 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1621
1622 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1623 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1624
1625 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1626 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1627 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1628 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1629 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1630 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1631 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1632
1633 _ASUNAME
1634
1635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1636 for as_dir in $PATH
1637 do
1638 IFS=$as_save_IFS
1639 test -z "$as_dir" && as_dir=.
1640 echo "PATH: $as_dir"
1641 done
1642 IFS=$as_save_IFS
1643
1644 } >&5
1645
1646 cat >&5 <<_ACEOF
1647
1648
1649 ## ----------- ##
1650 ## Core tests. ##
1651 ## ----------- ##
1652
1653 _ACEOF
1654
1655
1656 # Keep a trace of the command line.
1657 # Strip out --no-create and --no-recursion so they do not pile up.
1658 # Strip out --silent because we don't want to record it for future runs.
1659 # Also quote any args containing shell meta-characters.
1660 # Make two passes to allow for proper duplicate-argument suppression.
1661 ac_configure_args=
1662 ac_configure_args0=
1663 ac_configure_args1=
1664 ac_must_keep_next=false
1665 for ac_pass in 1 2
1666 do
1667 for ac_arg
1668 do
1669 case $ac_arg in
1670 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1671 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1672 | -silent | --silent | --silen | --sile | --sil)
1673 continue ;;
1674 *\'*)
1675 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1676 esac
1677 case $ac_pass in
1678 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1679 2)
1680 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1681 if test $ac_must_keep_next = true; then
1682 ac_must_keep_next=false # Got value, back to normal.
1683 else
1684 case $ac_arg in
1685 *=* | --config-cache | -C | -disable-* | --disable-* \
1686 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1687 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1688 | -with-* | --with-* | -without-* | --without-* | --x)
1689 case "$ac_configure_args0 " in
1690 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1691 esac
1692 ;;
1693 -* ) ac_must_keep_next=true ;;
1694 esac
1695 fi
1696 ac_configure_args="$ac_configure_args '$ac_arg'"
1697 ;;
1698 esac
1699 done
1700 done
1701 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1702 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1703
1704 # When interrupted or exit'd, cleanup temporary files, and complete
1705 # config.log. We remove comments because anyway the quotes in there
1706 # would cause problems or look ugly.
1707 # WARNING: Use '\'' to represent an apostrophe within the trap.
1708 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1709 trap 'exit_status=$?
1710 # Save into config.log some information that might help in debugging.
1711 {
1712 echo
1713
1714 cat <<\_ASBOX
1715 ## ---------------- ##
1716 ## Cache variables. ##
1717 ## ---------------- ##
1718 _ASBOX
1719 echo
1720 # The following way of writing the cache mishandles newlines in values,
1721 (
1722 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1723 eval ac_val=\$$ac_var
1724 case $ac_val in #(
1725 *${as_nl}*)
1726 case $ac_var in #(
1727 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1728 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1729 esac
1730 case $ac_var in #(
1731 _ | IFS | as_nl) ;; #(
1732 *) $as_unset $ac_var ;;
1733 esac ;;
1734 esac
1735 done
1736 (set) 2>&1 |
1737 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1738 *${as_nl}ac_space=\ *)
1739 sed -n \
1740 "s/'\''/'\''\\\\'\'''\''/g;
1741 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1742 ;; #(
1743 *)
1744 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1745 ;;
1746 esac |
1747 sort
1748 )
1749 echo
1750
1751 cat <<\_ASBOX
1752 ## ----------------- ##
1753 ## Output variables. ##
1754 ## ----------------- ##
1755 _ASBOX
1756 echo
1757 for ac_var in $ac_subst_vars
1758 do
1759 eval ac_val=\$$ac_var
1760 case $ac_val in
1761 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1762 esac
1763 echo "$ac_var='\''$ac_val'\''"
1764 done | sort
1765 echo
1766
1767 if test -n "$ac_subst_files"; then
1768 cat <<\_ASBOX
1769 ## ------------------- ##
1770 ## File substitutions. ##
1771 ## ------------------- ##
1772 _ASBOX
1773 echo
1774 for ac_var in $ac_subst_files
1775 do
1776 eval ac_val=\$$ac_var
1777 case $ac_val in
1778 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1779 esac
1780 echo "$ac_var='\''$ac_val'\''"
1781 done | sort
1782 echo
1783 fi
1784
1785 if test -s confdefs.h; then
1786 cat <<\_ASBOX
1787 ## ----------- ##
1788 ## confdefs.h. ##
1789 ## ----------- ##
1790 _ASBOX
1791 echo
1792 cat confdefs.h
1793 echo
1794 fi
1795 test "$ac_signal" != 0 &&
1796 echo "$as_me: caught signal $ac_signal"
1797 echo "$as_me: exit $exit_status"
1798 } >&5
1799 rm -f core *.core core.conftest.* &&
1800 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1801 exit $exit_status
1802 ' 0
1803 for ac_signal in 1 2 13 15; do
1804 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1805 done
1806 ac_signal=0
1807
1808 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1809 rm -f -r conftest* confdefs.h
1810
1811 # Predefined preprocessor variables.
1812
1813 cat >>confdefs.h <<_ACEOF
1814 #define PACKAGE_NAME "$PACKAGE_NAME"
1815 _ACEOF
1816
1817
1818 cat >>confdefs.h <<_ACEOF
1819 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1820 _ACEOF
1821
1822
1823 cat >>confdefs.h <<_ACEOF
1824 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1825 _ACEOF
1826
1827
1828 cat >>confdefs.h <<_ACEOF
1829 #define PACKAGE_STRING "$PACKAGE_STRING"
1830 _ACEOF
1831
1832
1833 cat >>confdefs.h <<_ACEOF
1834 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1835 _ACEOF
1836
1837
1838 # Let the site file select an alternate cache file if it wants to.
1839 # Prefer explicitly selected file to automatically selected ones.
1840 if test -n "$CONFIG_SITE"; then
1841 set x "$CONFIG_SITE"
1842 elif test "x$prefix" != xNONE; then
1843 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1844 else
1845 set x "$ac_default_prefix/share/config.site" \
1846 "$ac_default_prefix/etc/config.site"
1847 fi
1848 shift
1849 for ac_site_file
1850 do
1851 if test -r "$ac_site_file"; then
1852 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1853 echo "$as_me: loading site script $ac_site_file" >&6;}
1854 sed 's/^/| /' "$ac_site_file" >&5
1855 . "$ac_site_file"
1856 fi
1857 done
1858
1859 if test -r "$cache_file"; then
1860 # Some versions of bash will fail to source /dev/null (special
1861 # files actually), so we avoid doing that.
1862 if test -f "$cache_file"; then
1863 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1864 echo "$as_me: loading cache $cache_file" >&6;}
1865 case $cache_file in
1866 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1867 *) . "./$cache_file";;
1868 esac
1869 fi
1870 else
1871 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1872 echo "$as_me: creating cache $cache_file" >&6;}
1873 >$cache_file
1874 fi
1875
1876 # Check that the precious variables saved in the cache have kept the same
1877 # value.
1878 ac_cache_corrupted=false
1879 for ac_var in $ac_precious_vars; do
1880 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1881 eval ac_new_set=\$ac_env_${ac_var}_set
1882 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1883 eval ac_new_val=\$ac_env_${ac_var}_value
1884 case $ac_old_set,$ac_new_set in
1885 set,)
1886 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1887 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1888 ac_cache_corrupted=: ;;
1889 ,set)
1890 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1891 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1892 ac_cache_corrupted=: ;;
1893 ,);;
1894 *)
1895 if test "x$ac_old_val" != "x$ac_new_val"; then
1896 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1897 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1898 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1899 echo "$as_me: former value: $ac_old_val" >&2;}
1900 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1901 echo "$as_me: current value: $ac_new_val" >&2;}
1902 ac_cache_corrupted=:
1903 fi;;
1904 esac
1905 # Pass precious variables to config.status.
1906 if test "$ac_new_set" = set; then
1907 case $ac_new_val in
1908 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1909 *) ac_arg=$ac_var=$ac_new_val ;;
1910 esac
1911 case " $ac_configure_args " in
1912 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1913 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1914 esac
1915 fi
1916 done
1917 if $ac_cache_corrupted; then
1918 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1919 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1920 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1921 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1922 { (exit 1); exit 1; }; }
1923 fi
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
1949 ac_ext=c
1950 ac_cpp='$CPP $CPPFLAGS'
1951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1954
1955
1956
1957
1958 ac_config_headers="$ac_config_headers config.h"
1959
1960 ac_aux_dir=
1961 for ac_dir in . "$srcdir"/.; do
1962 if 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/install.sh"; then
1967 ac_aux_dir=$ac_dir
1968 ac_install_sh="$ac_aux_dir/install.sh -c"
1969 break
1970 elif test -f "$ac_dir/shtool"; then
1971 ac_aux_dir=$ac_dir
1972 ac_install_sh="$ac_aux_dir/shtool install -c"
1973 break
1974 fi
1975 done
1976 if test -z "$ac_aux_dir"; then
1977 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
1978 echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
1979 { (exit 1); exit 1; }; }
1980 fi
1981
1982 # These three variables are undocumented and unsupported,
1983 # and are intended to be withdrawn in a future Autoconf release.
1984 # They can cause serious problems if a builder's source tree is in a directory
1985 # whose full name contains unusual characters.
1986 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1987 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1988 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1989
1990
1991
1992 am__api_version="1.9"
1993 # Find a good install program. We prefer a C program (faster),
1994 # so one script is as good as another. But avoid the broken or
1995 # incompatible versions:
1996 # SysV /etc/install, /usr/sbin/install
1997 # SunOS /usr/etc/install
1998 # IRIX /sbin/install
1999 # AIX /bin/install
2000 # AmigaOS /C/install, which installs bootblocks on floppy discs
2001 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2002 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2003 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2004 # OS/2's system install, which has a completely different semantic
2005 # ./install, which can be erroneously created by make from ./install.sh.
2006 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2007 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2008 if test -z "$INSTALL"; then
2009 if test "${ac_cv_path_install+set}" = set; then
2010 echo $ECHO_N "(cached) $ECHO_C" >&6
2011 else
2012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2013 for as_dir in $PATH
2014 do
2015 IFS=$as_save_IFS
2016 test -z "$as_dir" && as_dir=.
2017 # Account for people who put trailing slashes in PATH elements.
2018 case $as_dir/ in
2019 ./ | .// | /cC/* | \
2020 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2021 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2022 /usr/ucb/* ) ;;
2023 *)
2024 # OSF1 and SCO ODT 3.0 have their own names for install.
2025 # Don't use installbsd from OSF since it installs stuff as root
2026 # by default.
2027 for ac_prog in ginstall scoinst install; do
2028 for ac_exec_ext in '' $ac_executable_extensions; do
2029 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
2030 if test $ac_prog = install &&
2031 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2032 # AIX install. It has an incompatible calling convention.
2033 :
2034 elif test $ac_prog = install &&
2035 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2036 # program-specific install script used by HP pwplus--don't use.
2037 :
2038 else
2039 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2040 break 3
2041 fi
2042 fi
2043 done
2044 done
2045 ;;
2046 esac
2047 done
2048 IFS=$as_save_IFS
2049
2050
2051 fi
2052 if test "${ac_cv_path_install+set}" = set; then
2053 INSTALL=$ac_cv_path_install
2054 else
2055 # As a last resort, use the slow shell script. Don't cache a
2056 # value for INSTALL within a source directory, because that will
2057 # break other packages using the cache if that directory is
2058 # removed, or if the value is a relative name.
2059 INSTALL=$ac_install_sh
2060 fi
2061 fi
2062 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2063 echo "${ECHO_T}$INSTALL" >&6; }
2064
2065 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2066 # It thinks the first close brace ends the variable substitution.
2067 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2068
2069 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2070
2071 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2072
2073 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2074 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2075 # Just in case
2076 sleep 1
2077 echo timestamp > conftest.file
2078 # Do `set' in a subshell so we don't clobber the current shell's
2079 # arguments. Must try -L first in case configure is actually a
2080 # symlink; some systems play weird games with the mod time of symlinks
2081 # (eg FreeBSD returns the mod time of the symlink's containing
2082 # directory).
2083 if (
2084 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2085 if test "$*" = "X"; then
2086 # -L didn't work.
2087 set X `ls -t $srcdir/configure conftest.file`
2088 fi
2089 rm -f conftest.file
2090 if test "$*" != "X $srcdir/configure conftest.file" \
2091 && test "$*" != "X conftest.file $srcdir/configure"; then
2092
2093 # If neither matched, then we have a broken ls. This can happen
2094 # if, for instance, CONFIG_SHELL is bash and it inherits a
2095 # broken ls alias from the environment. This has actually
2096 # happened. Such a system could not be considered "sane".
2097 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2098 alias in your environment" >&5
2099 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2100 alias in your environment" >&2;}
2101 { (exit 1); exit 1; }; }
2102 fi
2103
2104 test "$2" = conftest.file
2105 )
2106 then
2107 # Ok.
2108 :
2109 else
2110 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2111 Check your system clock" >&5
2112 echo "$as_me: error: newly created file is older than distributed files!
2113 Check your system clock" >&2;}
2114 { (exit 1); exit 1; }; }
2115 fi
2116 { echo "$as_me:$LINENO: result: yes" >&5
2117 echo "${ECHO_T}yes" >&6; }
2118 test "$program_prefix" != NONE &&
2119 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2120 # Use a double $ so make ignores it.
2121 test "$program_suffix" != NONE &&
2122 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2123 # Double any \ or $. echo might interpret backslashes.
2124 # By default was `s,x,x', remove it if useless.
2125 cat <<\_ACEOF >conftest.sed
2126 s/[\\$]/&&/g;s/;s,x,x,$//
2127 _ACEOF
2128 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2129 rm -f conftest.sed
2130
2131 # expand $ac_aux_dir to an absolute path
2132 am_aux_dir=`cd $ac_aux_dir && pwd`
2133
2134 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2135 # Use eval to expand $SHELL
2136 if eval "$MISSING --run true"; then
2137 am_missing_run="$MISSING --run "
2138 else
2139 am_missing_run=
2140 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2141 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2142 fi
2143
2144 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2145 # We used to keeping the `.' as first argument, in order to
2146 # allow $(mkdir_p) to be used without argument. As in
2147 # $(mkdir_p) $(somedir)
2148 # where $(somedir) is conditionally defined. However this is wrong
2149 # for two reasons:
2150 # 1. if the package is installed by a user who cannot write `.'
2151 # make install will fail,
2152 # 2. the above comment should most certainly read
2153 # $(mkdir_p) $(DESTDIR)$(somedir)
2154 # so it does not work when $(somedir) is undefined and
2155 # $(DESTDIR) is not.
2156 # To support the latter case, we have to write
2157 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2158 # so the `.' trick is pointless.
2159 mkdir_p='mkdir -p --'
2160 else
2161 # On NextStep and OpenStep, the `mkdir' command does not
2162 # recognize any option. It will interpret all options as
2163 # directories to create, and then abort because `.' already
2164 # exists.
2165 for d in ./-p ./--version;
2166 do
2167 test -d $d && rmdir $d
2168 done
2169 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2170 if test -f "$ac_aux_dir/mkinstalldirs"; then
2171 mkdir_p='$(mkinstalldirs)'
2172 else
2173 mkdir_p='$(install_sh) -d'
2174 fi
2175 fi
2176
2177 for ac_prog in gawk mawk nawk awk
2178 do
2179 # Extract the first word of "$ac_prog", so it can be a program name with args.
2180 set dummy $ac_prog; ac_word=$2
2181 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2183 if test "${ac_cv_prog_AWK+set}" = set; then
2184 echo $ECHO_N "(cached) $ECHO_C" >&6
2185 else
2186 if test -n "$AWK"; then
2187 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2188 else
2189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2190 for as_dir in $PATH
2191 do
2192 IFS=$as_save_IFS
2193 test -z "$as_dir" && as_dir=.
2194 for ac_exec_ext in '' $ac_executable_extensions; do
2195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2196 ac_cv_prog_AWK="$ac_prog"
2197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2198 break 2
2199 fi
2200 done
2201 done
2202 IFS=$as_save_IFS
2203
2204 fi
2205 fi
2206 AWK=$ac_cv_prog_AWK
2207 if test -n "$AWK"; then
2208 { echo "$as_me:$LINENO: result: $AWK" >&5
2209 echo "${ECHO_T}$AWK" >&6; }
2210 else
2211 { echo "$as_me:$LINENO: result: no" >&5
2212 echo "${ECHO_T}no" >&6; }
2213 fi
2214
2215
2216 test -n "$AWK" && break
2217 done
2218
2219 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2220 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2221 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2222 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2223 echo $ECHO_N "(cached) $ECHO_C" >&6
2224 else
2225 cat >conftest.make <<\_ACEOF
2226 SHELL = /bin/sh
2227 all:
2228 @echo '@@@%%%=$(MAKE)=@@@%%%'
2229 _ACEOF
2230 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2231 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2232 *@@@%%%=?*=@@@%%%*)
2233 eval ac_cv_prog_make_${ac_make}_set=yes;;
2234 *)
2235 eval ac_cv_prog_make_${ac_make}_set=no;;
2236 esac
2237 rm -f conftest.make
2238 fi
2239 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2240 { echo "$as_me:$LINENO: result: yes" >&5
2241 echo "${ECHO_T}yes" >&6; }
2242 SET_MAKE=
2243 else
2244 { echo "$as_me:$LINENO: result: no" >&5
2245 echo "${ECHO_T}no" >&6; }
2246 SET_MAKE="MAKE=${MAKE-make}"
2247 fi
2248
2249 rm -rf .tst 2>/dev/null
2250 mkdir .tst 2>/dev/null
2251 if test -d .tst; then
2252 am__leading_dot=.
2253 else
2254 am__leading_dot=_
2255 fi
2256 rmdir .tst 2>/dev/null
2257
2258 # test to see if srcdir already configured
2259 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2260 test -f $srcdir/config.status; then
2261 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2262 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2263 { (exit 1); exit 1; }; }
2264 fi
2265
2266 # test whether we have cygpath
2267 if test -z "$CYGPATH_W"; then
2268 if (cygpath --version) >/dev/null 2>/dev/null; then
2269 CYGPATH_W='cygpath -w'
2270 else
2271 CYGPATH_W=echo
2272 fi
2273 fi
2274
2275
2276 # Define the identity of the package.
2277 PACKAGE='xf86-video-tdfx'
2278 VERSION='1.3.0'
2279
2280
2281 cat >>confdefs.h <<_ACEOF
2282 #define PACKAGE "$PACKAGE"
2283 _ACEOF
2284
2285
2286 cat >>confdefs.h <<_ACEOF
2287 #define VERSION "$VERSION"
2288 _ACEOF
2289
2290 # Some tools Automake needs.
2291
2292 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2293
2294
2295 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2296
2297
2298 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2299
2300
2301 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2302
2303
2304 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2305
2306 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2307
2308 # Installed binaries are usually stripped using `strip' when the user
2309 # run `make install-strip'. However `strip' might not be the right
2310 # tool to use in cross-compilation environments, therefore Automake
2311 # will honor the `STRIP' environment variable to overrule this program.
2312 if test "$cross_compiling" != no; then
2313 if test -n "$ac_tool_prefix"; then
2314 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2315 set dummy ${ac_tool_prefix}strip; ac_word=$2
2316 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2318 if test "${ac_cv_prog_STRIP+set}" = set; then
2319 echo $ECHO_N "(cached) $ECHO_C" >&6
2320 else
2321 if test -n "$STRIP"; then
2322 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2323 else
2324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2325 for as_dir in $PATH
2326 do
2327 IFS=$as_save_IFS
2328 test -z "$as_dir" && as_dir=.
2329 for ac_exec_ext in '' $ac_executable_extensions; do
2330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2331 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2333 break 2
2334 fi
2335 done
2336 done
2337 IFS=$as_save_IFS
2338
2339 fi
2340 fi
2341 STRIP=$ac_cv_prog_STRIP
2342 if test -n "$STRIP"; then
2343 { echo "$as_me:$LINENO: result: $STRIP" >&5
2344 echo "${ECHO_T}$STRIP" >&6; }
2345 else
2346 { echo "$as_me:$LINENO: result: no" >&5
2347 echo "${ECHO_T}no" >&6; }
2348 fi
2349
2350
2351 fi
2352 if test -z "$ac_cv_prog_STRIP"; then
2353 ac_ct_STRIP=$STRIP
2354 # Extract the first word of "strip", so it can be a program name with args.
2355 set dummy strip; ac_word=$2
2356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2358 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2359 echo $ECHO_N "(cached) $ECHO_C" >&6
2360 else
2361 if test -n "$ac_ct_STRIP"; then
2362 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2363 else
2364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2365 for as_dir in $PATH
2366 do
2367 IFS=$as_save_IFS
2368 test -z "$as_dir" && as_dir=.
2369 for ac_exec_ext in '' $ac_executable_extensions; do
2370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2371 ac_cv_prog_ac_ct_STRIP="strip"
2372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2373 break 2
2374 fi
2375 done
2376 done
2377 IFS=$as_save_IFS
2378
2379 fi
2380 fi
2381 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2382 if test -n "$ac_ct_STRIP"; then
2383 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2384 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2385 else
2386 { echo "$as_me:$LINENO: result: no" >&5
2387 echo "${ECHO_T}no" >&6; }
2388 fi
2389
2390 if test "x$ac_ct_STRIP" = x; then
2391 STRIP=":"
2392 else
2393 case $cross_compiling:$ac_tool_warned in
2394 yes:)
2395 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2396 whose name does not start with the host triplet. If you think this
2397 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
2398 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2399 whose name does not start with the host triplet. If you think this
2400 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
2401 ac_tool_warned=yes ;;
2402 esac
2403 STRIP=$ac_ct_STRIP
2404 fi
2405 else
2406 STRIP="$ac_cv_prog_STRIP"
2407 fi
2408
2409 fi
2410 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2411
2412 # We need awk for the "check" target. The system "awk" is bad on
2413 # some platforms.
2414 # Always define AMTAR for backward compatibility.
2415
2416 AMTAR=${AMTAR-"${am_missing_run}tar"}
2417
2418 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2419
2420
2421
2422
2423
2424
2425 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2426 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2427 # Check whether --enable-maintainer-mode was given.
2428 if test "${enable_maintainer_mode+set}" = set; then
2429 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2430 else
2431 USE_MAINTAINER_MODE=no
2432 fi
2433
2434 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2435 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2436
2437
2438 if test $USE_MAINTAINER_MODE = yes; then
2439 MAINTAINER_MODE_TRUE=
2440 MAINTAINER_MODE_FALSE='#'
2441 else
2442 MAINTAINER_MODE_TRUE='#'
2443 MAINTAINER_MODE_FALSE=
2444 fi
2445
2446 MAINT=$MAINTAINER_MODE_TRUE
2447
2448
2449
2450 # Checks for programs.
2451 # Check whether --enable-static was given.
2452 if test "${enable_static+set}" = set; then
2453 enableval=$enable_static; p=${PACKAGE-default}
2454 case $enableval in
2455 yes) enable_static=yes ;;
2456 no) enable_static=no ;;
2457 *)
2458 enable_static=no
2459 # Look at the argument we got. We use all the common list separators.
2460 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2461 for pkg in $enableval; do
2462 IFS="$lt_save_ifs"
2463 if test "X$pkg" = "X$p"; then
2464 enable_static=yes
2465 fi
2466 done
2467 IFS="$lt_save_ifs"
2468 ;;
2469 esac
2470 else
2471 enable_static=no
2472 fi
2473
2474
2475
2476 # Check whether --enable-shared was given.
2477 if test "${enable_shared+set}" = set; then
2478 enableval=$enable_shared; p=${PACKAGE-default}
2479 case $enableval in
2480 yes) enable_shared=yes ;;
2481 no) enable_shared=no ;;
2482 *)
2483 enable_shared=no
2484 # Look at the argument we got. We use all the common list separators.
2485 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2486 for pkg in $enableval; do
2487 IFS="$lt_save_ifs"
2488 if test "X$pkg" = "X$p"; then
2489 enable_shared=yes
2490 fi
2491 done
2492 IFS="$lt_save_ifs"
2493 ;;
2494 esac
2495 else
2496 enable_shared=yes
2497 fi
2498
2499
2500 # Check whether --enable-fast-install was given.
2501 if test "${enable_fast_install+set}" = set; then
2502 enableval=$enable_fast_install; p=${PACKAGE-default}
2503 case $enableval in
2504 yes) enable_fast_install=yes ;;
2505 no) enable_fast_install=no ;;
2506 *)
2507 enable_fast_install=no
2508 # Look at the argument we got. We use all the common list separators.
2509 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2510 for pkg in $enableval; do
2511 IFS="$lt_save_ifs"
2512 if test "X$pkg" = "X$p"; then
2513 enable_fast_install=yes
2514 fi
2515 done
2516 IFS="$lt_save_ifs"
2517 ;;
2518 esac
2519 else
2520 enable_fast_install=yes
2521 fi
2522
2523
2524 # Make sure we can run config.sub.
2525 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2526 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2527 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2528 { (exit 1); exit 1; }; }
2529
2530 { echo "$as_me:$LINENO: checking build system type" >&5
2531 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2532 if test "${ac_cv_build+set}" = set; then
2533 echo $ECHO_N "(cached) $ECHO_C" >&6
2534 else
2535 ac_build_alias=$build_alias
2536 test "x$ac_build_alias" = x &&
2537 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2538 test "x$ac_build_alias" = x &&
2539 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2540 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2541 { (exit 1); exit 1; }; }
2542 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2543 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2544 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2545 { (exit 1); exit 1; }; }
2546
2547 fi
2548 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2549 echo "${ECHO_T}$ac_cv_build" >&6; }
2550 case $ac_cv_build in
2551 *-*-*) ;;
2552 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2553 echo "$as_me: error: invalid value of canonical build" >&2;}
2554 { (exit 1); exit 1; }; };;
2555 esac
2556 build=$ac_cv_build
2557 ac_save_IFS=$IFS; IFS='-'
2558 set x $ac_cv_build
2559 shift
2560 build_cpu=$1
2561 build_vendor=$2
2562 shift; shift
2563 # Remember, the first character of IFS is used to create $*,
2564 # except with old shells:
2565 build_os=$*
2566 IFS=$ac_save_IFS
2567 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2568
2569
2570 { echo "$as_me:$LINENO: checking host system type" >&5
2571 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2572 if test "${ac_cv_host+set}" = set; then
2573 echo $ECHO_N "(cached) $ECHO_C" >&6
2574 else
2575 if test "x$host_alias" = x; then
2576 ac_cv_host=$ac_cv_build
2577 else
2578 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2579 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2580 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2581 { (exit 1); exit 1; }; }
2582 fi
2583
2584 fi
2585 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2586 echo "${ECHO_T}$ac_cv_host" >&6; }
2587 case $ac_cv_host in
2588 *-*-*) ;;
2589 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2590 echo "$as_me: error: invalid value of canonical host" >&2;}
2591 { (exit 1); exit 1; }; };;
2592 esac
2593 host=$ac_cv_host
2594 ac_save_IFS=$IFS; IFS='-'
2595 set x $ac_cv_host
2596 shift
2597 host_cpu=$1
2598 host_vendor=$2
2599 shift; shift
2600 # Remember, the first character of IFS is used to create $*,
2601 # except with old shells:
2602 host_os=$*
2603 IFS=$ac_save_IFS
2604 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2605
2606
2607 DEPDIR="${am__leading_dot}deps"
2608
2609 ac_config_commands="$ac_config_commands depfiles"
2610
2611
2612 am_make=${MAKE-make}
2613 cat > confinc << 'END'
2614 am__doit:
2615 @echo done
2616 .PHONY: am__doit
2617 END
2618 # If we don't find an include directive, just comment out the code.
2619 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2620 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2621 am__include="#"
2622 am__quote=
2623 _am_result=none
2624 # First try GNU make style include.
2625 echo "include confinc" > confmf
2626 # We grep out `Entering directory' and `Leaving directory'
2627 # messages which can occur if `w' ends up in MAKEFLAGS.
2628 # In particular we don't look at `^make:' because GNU make might
2629 # be invoked under some other name (usually "gmake"), in which
2630 # case it prints its new name instead of `make'.
2631 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2632 am__include=include
2633 am__quote=
2634 _am_result=GNU
2635 fi
2636 # Now try BSD make style include.
2637 if test "$am__include" = "#"; then
2638 echo '.include "confinc"' > confmf
2639 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2640 am__include=.include
2641 am__quote="\""
2642 _am_result=BSD
2643 fi
2644 fi
2645
2646
2647 { echo "$as_me:$LINENO: result: $_am_result" >&5
2648 echo "${ECHO_T}$_am_result" >&6; }
2649 rm -f confinc confmf
2650
2651 # Check whether --enable-dependency-tracking was given.
2652 if test "${enable_dependency_tracking+set}" = set; then
2653 enableval=$enable_dependency_tracking;
2654 fi
2655
2656 if test "x$enable_dependency_tracking" != xno; then
2657 am_depcomp="$ac_aux_dir/depcomp"
2658 AMDEPBACKSLASH='\'
2659 fi
2660
2661
2662 if test "x$enable_dependency_tracking" != xno; then
2663 AMDEP_TRUE=
2664 AMDEP_FALSE='#'
2665 else
2666 AMDEP_TRUE='#'
2667 AMDEP_FALSE=
2668 fi
2669
2670
2671
2672 ac_ext=c
2673 ac_cpp='$CPP $CPPFLAGS'
2674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2677 if test -n "$ac_tool_prefix"; then
2678 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2679 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2680 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2682 if test "${ac_cv_prog_CC+set}" = set; then
2683 echo $ECHO_N "(cached) $ECHO_C" >&6
2684 else
2685 if test -n "$CC"; then
2686 ac_cv_prog_CC="$CC" # Let the user override the test.
2687 else
2688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2689 for as_dir in $PATH
2690 do
2691 IFS=$as_save_IFS
2692 test -z "$as_dir" && as_dir=.
2693 for ac_exec_ext in '' $ac_executable_extensions; do
2694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2695 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2697 break 2
2698 fi
2699 done
2700 done
2701 IFS=$as_save_IFS
2702
2703 fi
2704 fi
2705 CC=$ac_cv_prog_CC
2706 if test -n "$CC"; then
2707 { echo "$as_me:$LINENO: result: $CC" >&5
2708 echo "${ECHO_T}$CC" >&6; }
2709 else
2710 { echo "$as_me:$LINENO: result: no" >&5
2711 echo "${ECHO_T}no" >&6; }
2712 fi
2713
2714
2715 fi
2716 if test -z "$ac_cv_prog_CC"; then
2717 ac_ct_CC=$CC
2718 # Extract the first word of "gcc", so it can be a program name with args.
2719 set dummy gcc; ac_word=$2
2720 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2722 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2723 echo $ECHO_N "(cached) $ECHO_C" >&6
2724 else
2725 if test -n "$ac_ct_CC"; then
2726 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2727 else
2728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2729 for as_dir in $PATH
2730 do
2731 IFS=$as_save_IFS
2732 test -z "$as_dir" && as_dir=.
2733 for ac_exec_ext in '' $ac_executable_extensions; do
2734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2735 ac_cv_prog_ac_ct_CC="gcc"
2736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2737 break 2
2738 fi
2739 done
2740 done
2741 IFS=$as_save_IFS
2742
2743 fi
2744 fi
2745 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2746 if test -n "$ac_ct_CC"; then
2747 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2748 echo "${ECHO_T}$ac_ct_CC" >&6; }
2749 else
2750 { echo "$as_me:$LINENO: result: no" >&5
2751 echo "${ECHO_T}no" >&6; }
2752 fi
2753
2754 if test "x$ac_ct_CC" = x; then
2755 CC=""
2756 else
2757 case $cross_compiling:$ac_tool_warned in
2758 yes:)
2759 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2760 whose name does not start with the host triplet. If you think this
2761 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
2762 echo "$as_me: 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." >&2;}
2765 ac_tool_warned=yes ;;
2766 esac
2767 CC=$ac_ct_CC
2768 fi
2769 else
2770 CC="$ac_cv_prog_CC"
2771 fi
2772
2773 if test -z "$CC"; then
2774 if test -n "$ac_tool_prefix"; then
2775 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2776 set dummy ${ac_tool_prefix}cc; ac_word=$2
2777 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2779 if test "${ac_cv_prog_CC+set}" = set; then
2780 echo $ECHO_N "(cached) $ECHO_C" >&6
2781 else
2782 if test -n "$CC"; then
2783 ac_cv_prog_CC="$CC" # Let the user override the test.
2784 else
2785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2786 for as_dir in $PATH
2787 do
2788 IFS=$as_save_IFS
2789 test -z "$as_dir" && as_dir=.
2790 for ac_exec_ext in '' $ac_executable_extensions; do
2791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2792 ac_cv_prog_CC="${ac_tool_prefix}cc"
2793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2794 break 2
2795 fi
2796 done
2797 done
2798 IFS=$as_save_IFS
2799
2800 fi
2801 fi
2802 CC=$ac_cv_prog_CC
2803 if test -n "$CC"; then
2804 { echo "$as_me:$LINENO: result: $CC" >&5
2805 echo "${ECHO_T}$CC" >&6; }
2806 else
2807 { echo "$as_me:$LINENO: result: no" >&5
2808 echo "${ECHO_T}no" >&6; }
2809 fi
2810
2811
2812 fi
2813 fi
2814 if test -z "$CC"; then
2815 # Extract the first word of "cc", so it can be a program name with args.
2816 set dummy cc; ac_word=$2
2817 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2819 if test "${ac_cv_prog_CC+set}" = set; then
2820 echo $ECHO_N "(cached) $ECHO_C" >&6
2821 else
2822 if test -n "$CC"; then
2823 ac_cv_prog_CC="$CC" # Let the user override the test.
2824 else
2825 ac_prog_rejected=no
2826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2827 for as_dir in $PATH
2828 do
2829 IFS=$as_save_IFS
2830 test -z "$as_dir" && as_dir=.
2831 for ac_exec_ext in '' $ac_executable_extensions; do
2832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2833 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2834 ac_prog_rejected=yes
2835 continue
2836 fi
2837 ac_cv_prog_CC="cc"
2838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2839 break 2
2840 fi
2841 done
2842 done
2843 IFS=$as_save_IFS
2844
2845 if test $ac_prog_rejected = yes; then
2846 # We found a bogon in the path, so make sure we never use it.
2847 set dummy $ac_cv_prog_CC
2848 shift
2849 if test $# != 0; then
2850 # We chose a different compiler from the bogus one.
2851 # However, it has the same basename, so the bogon will be chosen
2852 # first if we set CC to just the basename; use the full file name.
2853 shift
2854 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2855 fi
2856 fi
2857 fi
2858 fi
2859 CC=$ac_cv_prog_CC
2860 if test -n "$CC"; then
2861 { echo "$as_me:$LINENO: result: $CC" >&5
2862 echo "${ECHO_T}$CC" >&6; }
2863 else
2864 { echo "$as_me:$LINENO: result: no" >&5
2865 echo "${ECHO_T}no" >&6; }
2866 fi
2867
2868
2869 fi
2870 if test -z "$CC"; then
2871 if test -n "$ac_tool_prefix"; then
2872 for ac_prog in cl.exe
2873 do
2874 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2875 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2876 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2878 if test "${ac_cv_prog_CC+set}" = set; then
2879 echo $ECHO_N "(cached) $ECHO_C" >&6
2880 else
2881 if test -n "$CC"; then
2882 ac_cv_prog_CC="$CC" # Let the user override the test.
2883 else
2884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885 for as_dir in $PATH
2886 do
2887 IFS=$as_save_IFS
2888 test -z "$as_dir" && as_dir=.
2889 for ac_exec_ext in '' $ac_executable_extensions; do
2890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2891 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2893 break 2
2894 fi
2895 done
2896 done
2897 IFS=$as_save_IFS
2898
2899 fi
2900 fi
2901 CC=$ac_cv_prog_CC
2902 if test -n "$CC"; then
2903 { echo "$as_me:$LINENO: result: $CC" >&5
2904 echo "${ECHO_T}$CC" >&6; }
2905 else
2906 { echo "$as_me:$LINENO: result: no" >&5
2907 echo "${ECHO_T}no" >&6; }
2908 fi
2909
2910
2911 test -n "$CC" && break
2912 done
2913 fi
2914 if test -z "$CC"; then
2915 ac_ct_CC=$CC
2916 for ac_prog in cl.exe
2917 do
2918 # Extract the first word of "$ac_prog", so it can be a program name with args.
2919 set dummy $ac_prog; ac_word=$2
2920 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2922 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2923 echo $ECHO_N "(cached) $ECHO_C" >&6
2924 else
2925 if test -n "$ac_ct_CC"; then
2926 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2927 else
2928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2929 for as_dir in $PATH
2930 do
2931 IFS=$as_save_IFS
2932 test -z "$as_dir" && as_dir=.
2933 for ac_exec_ext in '' $ac_executable_extensions; do
2934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2935 ac_cv_prog_ac_ct_CC="$ac_prog"
2936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2937 break 2
2938 fi
2939 done
2940 done
2941 IFS=$as_save_IFS
2942
2943 fi
2944 fi
2945 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2946 if test -n "$ac_ct_CC"; then
2947 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2948 echo "${ECHO_T}$ac_ct_CC" >&6; }
2949 else
2950 { echo "$as_me:$LINENO: result: no" >&5
2951 echo "${ECHO_T}no" >&6; }
2952 fi
2953
2954
2955 test -n "$ac_ct_CC" && break
2956 done
2957
2958 if test "x$ac_ct_CC" = x; then
2959 CC=""
2960 else
2961 case $cross_compiling:$ac_tool_warned in
2962 yes:)
2963 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2964 whose name does not start with the host triplet. If you think this
2965 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
2966 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2967 whose name does not start with the host triplet. If you think this
2968 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
2969 ac_tool_warned=yes ;;
2970 esac
2971 CC=$ac_ct_CC
2972 fi
2973 fi
2974
2975 fi
2976
2977
2978 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2979 See \`config.log' for more details." >&5
2980 echo "$as_me: error: no acceptable C compiler found in \$PATH
2981 See \`config.log' for more details." >&2;}
2982 { (exit 1); exit 1; }; }
2983
2984 # Provide some information about the compiler.
2985 echo "$as_me:$LINENO: checking for C compiler version" >&5
2986 ac_compiler=`set X $ac_compile; echo $2`
2987 { (ac_try="$ac_compiler --version >&5"
2988 case "(($ac_try" in
2989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2990 *) ac_try_echo=$ac_try;;
2991 esac
2992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2993 (eval "$ac_compiler --version >&5") 2>&5
2994 ac_status=$?
2995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996 (exit $ac_status); }
2997 { (ac_try="$ac_compiler -v >&5"
2998 case "(($ac_try" in
2999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3000 *) ac_try_echo=$ac_try;;
3001 esac
3002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3003 (eval "$ac_compiler -v >&5") 2>&5
3004 ac_status=$?
3005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006 (exit $ac_status); }
3007 { (ac_try="$ac_compiler -V >&5"
3008 case "(($ac_try" in
3009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3010 *) ac_try_echo=$ac_try;;
3011 esac
3012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3013 (eval "$ac_compiler -V >&5") 2>&5
3014 ac_status=$?
3015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016 (exit $ac_status); }
3017
3018 cat >conftest.$ac_ext <<_ACEOF
3019 /* confdefs.h. */
3020 _ACEOF
3021 cat confdefs.h >>conftest.$ac_ext
3022 cat >>conftest.$ac_ext <<_ACEOF
3023 /* end confdefs.h. */
3024
3025 int
3026 main ()
3027 {
3028
3029 ;
3030 return 0;
3031 }
3032 _ACEOF
3033 ac_clean_files_save=$ac_clean_files
3034 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3035 # Try to create an executable without -o first, disregard a.out.
3036 # It will help us diagnose broken compilers, and finding out an intuition
3037 # of exeext.
3038 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3039 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3040 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3041 #
3042 # List of possible output files, starting from the most likely.
3043 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3044 # only as a last resort. b.out is created by i960 compilers.
3045 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3046 #
3047 # The IRIX 6 linker writes into existing files which may not be
3048 # executable, retaining their permissions. Remove them first so a
3049 # subsequent execution test works.
3050 ac_rmfiles=
3051 for ac_file in $ac_files
3052 do
3053 case $ac_file in
3054 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3055 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3056 esac
3057 done
3058 rm -f $ac_rmfiles
3059
3060 if { (ac_try="$ac_link_default"
3061 case "(($ac_try" in
3062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3063 *) ac_try_echo=$ac_try;;
3064 esac
3065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3066 (eval "$ac_link_default") 2>&5
3067 ac_status=$?
3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); }; then
3070 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3071 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3072 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3073 # so that the user can short-circuit this test for compilers unknown to
3074 # Autoconf.
3075 for ac_file in $ac_files
3076 do
3077 test -f "$ac_file" || continue
3078 case $ac_file in
3079 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3080 ;;
3081 [ab].out )
3082 # We found the default executable, but exeext='' is most
3083 # certainly right.
3084 break;;
3085 *.* )
3086 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3087 then :; else
3088 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3089 fi
3090 # We set ac_cv_exeext here because the later test for it is not
3091 # safe: cross compilers may not add the suffix if given an `-o'
3092 # argument, so we may need to know it at that point already.
3093 # Even if this section looks crufty: it has the advantage of
3094 # actually working.
3095 break;;
3096 * )
3097 break;;
3098 esac
3099 done
3100 test "$ac_cv_exeext" = no && ac_cv_exeext=
3101
3102 else
3103 echo "$as_me: failed program was:" >&5
3104 sed 's/^/| /' conftest.$ac_ext >&5
3105
3106 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3107 See \`config.log' for more details." >&5
3108 echo "$as_me: error: C compiler cannot create executables
3109 See \`config.log' for more details." >&2;}
3110 { (exit 77); exit 77; }; }
3111 fi
3112
3113 ac_exeext=$ac_cv_exeext
3114 { echo "$as_me:$LINENO: result: $ac_file" >&5
3115 echo "${ECHO_T}$ac_file" >&6; }
3116
3117 # Check that the compiler produces executables we can run. If not, either
3118 # the compiler is broken, or we cross compile.
3119 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3120 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3121 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3122 # If not cross compiling, check that we can run a simple program.
3123 if test "$cross_compiling" != yes; then
3124 if { ac_try='./$ac_file'
3125 { (case "(($ac_try" in
3126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127 *) ac_try_echo=$ac_try;;
3128 esac
3129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3130 (eval "$ac_try") 2>&5
3131 ac_status=$?
3132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133 (exit $ac_status); }; }; then
3134 cross_compiling=no
3135 else
3136 if test "$cross_compiling" = maybe; then
3137 cross_compiling=yes
3138 else
3139 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3140 If you meant to cross compile, use \`--host'.
3141 See \`config.log' for more details." >&5
3142 echo "$as_me: error: cannot run C compiled programs.
3143 If you meant to cross compile, use \`--host'.
3144 See \`config.log' for more details." >&2;}
3145 { (exit 1); exit 1; }; }
3146 fi
3147 fi
3148 fi
3149 { echo "$as_me:$LINENO: result: yes" >&5
3150 echo "${ECHO_T}yes" >&6; }
3151
3152 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3153 ac_clean_files=$ac_clean_files_save
3154 # Check that the compiler produces executables we can run. If not, either
3155 # the compiler is broken, or we cross compile.
3156 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3157 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3158 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3159 echo "${ECHO_T}$cross_compiling" >&6; }
3160
3161 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3162 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3163 if { (ac_try="$ac_link"
3164 case "(($ac_try" in
3165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3166 *) ac_try_echo=$ac_try;;
3167 esac
3168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3169 (eval "$ac_link") 2>&5
3170 ac_status=$?
3171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172 (exit $ac_status); }; then
3173 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3174 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3175 # work properly (i.e., refer to `conftest.exe'), while it won't with
3176 # `rm'.
3177 for ac_file in conftest.exe conftest conftest.*; do
3178 test -f "$ac_file" || continue
3179 case $ac_file in
3180 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3181 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3182 break;;
3183 * ) break;;
3184 esac
3185 done
3186 else
3187 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3188 See \`config.log' for more details." >&5
3189 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3190 See \`config.log' for more details." >&2;}
3191 { (exit 1); exit 1; }; }
3192 fi
3193
3194 rm -f conftest$ac_cv_exeext
3195 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3196 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3197
3198 rm -f conftest.$ac_ext
3199 EXEEXT=$ac_cv_exeext
3200 ac_exeext=$EXEEXT
3201 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3202 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3203 if test "${ac_cv_objext+set}" = set; then
3204 echo $ECHO_N "(cached) $ECHO_C" >&6
3205 else
3206 cat >conftest.$ac_ext <<_ACEOF
3207 /* confdefs.h. */
3208 _ACEOF
3209 cat confdefs.h >>conftest.$ac_ext
3210 cat >>conftest.$ac_ext <<_ACEOF
3211 /* end confdefs.h. */
3212
3213 int
3214 main ()
3215 {
3216
3217 ;
3218 return 0;
3219 }
3220 _ACEOF
3221 rm -f conftest.o conftest.obj
3222 if { (ac_try="$ac_compile"
3223 case "(($ac_try" in
3224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3225 *) ac_try_echo=$ac_try;;
3226 esac
3227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3228 (eval "$ac_compile") 2>&5
3229 ac_status=$?
3230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231 (exit $ac_status); }; then
3232 for ac_file in conftest.o conftest.obj conftest.*; do
3233 test -f "$ac_file" || continue;
3234 case $ac_file in
3235 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3236 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3237 break;;
3238 esac
3239 done
3240 else
3241 echo "$as_me: failed program was:" >&5
3242 sed 's/^/| /' conftest.$ac_ext >&5
3243
3244 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3245 See \`config.log' for more details." >&5
3246 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3247 See \`config.log' for more details." >&2;}
3248 { (exit 1); exit 1; }; }
3249 fi
3250
3251 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3252 fi
3253 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3254 echo "${ECHO_T}$ac_cv_objext" >&6; }
3255 OBJEXT=$ac_cv_objext
3256 ac_objext=$OBJEXT
3257 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3258 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3259 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3260 echo $ECHO_N "(cached) $ECHO_C" >&6
3261 else
3262 cat >conftest.$ac_ext <<_ACEOF
3263 /* confdefs.h. */
3264 _ACEOF
3265 cat confdefs.h >>conftest.$ac_ext
3266 cat >>conftest.$ac_ext <<_ACEOF
3267 /* end confdefs.h. */
3268
3269 int
3270 main ()
3271 {
3272 #ifndef __GNUC__
3273 choke me
3274 #endif
3275
3276 ;
3277 return 0;
3278 }
3279 _ACEOF
3280 rm -f conftest.$ac_objext
3281 if { (ac_try="$ac_compile"
3282 case "(($ac_try" in
3283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3284 *) ac_try_echo=$ac_try;;
3285 esac
3286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3287 (eval "$ac_compile") 2>conftest.er1
3288 ac_status=$?
3289 grep -v '^ *+' conftest.er1 >conftest.err
3290 rm -f conftest.er1
3291 cat conftest.err >&5
3292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293 (exit $ac_status); } &&
3294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3295 { (case "(($ac_try" in
3296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297 *) ac_try_echo=$ac_try;;
3298 esac
3299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3300 (eval "$ac_try") 2>&5
3301 ac_status=$?
3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303 (exit $ac_status); }; } &&
3304 { ac_try='test -s conftest.$ac_objext'
3305 { (case "(($ac_try" in
3306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3307 *) ac_try_echo=$ac_try;;
3308 esac
3309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3310 (eval "$ac_try") 2>&5
3311 ac_status=$?
3312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313 (exit $ac_status); }; }; then
3314 ac_compiler_gnu=yes
3315 else
3316 echo "$as_me: failed program was:" >&5
3317 sed 's/^/| /' conftest.$ac_ext >&5
3318
3319 ac_compiler_gnu=no
3320 fi
3321
3322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3323 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3324
3325 fi
3326 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3327 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3328 GCC=`test $ac_compiler_gnu = yes && echo yes`
3329 ac_test_CFLAGS=${CFLAGS+set}
3330 ac_save_CFLAGS=$CFLAGS
3331 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3332 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3333 if test "${ac_cv_prog_cc_g+set}" = set; then
3334 echo $ECHO_N "(cached) $ECHO_C" >&6
3335 else
3336 ac_save_c_werror_flag=$ac_c_werror_flag
3337 ac_c_werror_flag=yes
3338 ac_cv_prog_cc_g=no
3339 CFLAGS="-g"
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
3347 int
3348 main ()
3349 {
3350
3351 ;
3352 return 0;
3353 }
3354 _ACEOF
3355 rm -f conftest.$ac_objext
3356 if { (ac_try="$ac_compile"
3357 case "(($ac_try" in
3358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3359 *) ac_try_echo=$ac_try;;
3360 esac
3361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3362 (eval "$ac_compile") 2>conftest.er1
3363 ac_status=$?
3364 grep -v '^ *+' conftest.er1 >conftest.err
3365 rm -f conftest.er1
3366 cat conftest.err >&5
3367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368 (exit $ac_status); } &&
3369 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3370 { (case "(($ac_try" in
3371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3372 *) ac_try_echo=$ac_try;;
3373 esac
3374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3375 (eval "$ac_try") 2>&5
3376 ac_status=$?
3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); }; } &&
3379 { ac_try='test -s conftest.$ac_objext'
3380 { (case "(($ac_try" in
3381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3382 *) ac_try_echo=$ac_try;;
3383 esac
3384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3385 (eval "$ac_try") 2>&5
3386 ac_status=$?
3387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388 (exit $ac_status); }; }; then
3389 ac_cv_prog_cc_g=yes
3390 else
3391 echo "$as_me: failed program was:" >&5
3392 sed 's/^/| /' conftest.$ac_ext >&5
3393
3394 CFLAGS=""
3395 cat >conftest.$ac_ext <<_ACEOF
3396 /* confdefs.h. */
3397 _ACEOF
3398 cat confdefs.h >>conftest.$ac_ext
3399 cat >>conftest.$ac_ext <<_ACEOF
3400 /* end confdefs.h. */
3401
3402 int
3403 main ()
3404 {
3405
3406 ;
3407 return 0;
3408 }
3409 _ACEOF
3410 rm -f conftest.$ac_objext
3411 if { (ac_try="$ac_compile"
3412 case "(($ac_try" in
3413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3414 *) ac_try_echo=$ac_try;;
3415 esac
3416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3417 (eval "$ac_compile") 2>conftest.er1
3418 ac_status=$?
3419 grep -v '^ *+' conftest.er1 >conftest.err
3420 rm -f conftest.er1
3421 cat conftest.err >&5
3422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423 (exit $ac_status); } &&
3424 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3425 { (case "(($ac_try" in
3426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3427 *) ac_try_echo=$ac_try;;
3428 esac
3429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3430 (eval "$ac_try") 2>&5
3431 ac_status=$?
3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433 (exit $ac_status); }; } &&
3434 { ac_try='test -s conftest.$ac_objext'
3435 { (case "(($ac_try" in
3436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3437 *) ac_try_echo=$ac_try;;
3438 esac
3439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3440 (eval "$ac_try") 2>&5
3441 ac_status=$?
3442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443 (exit $ac_status); }; }; then
3444 :
3445 else
3446 echo "$as_me: failed program was:" >&5
3447 sed 's/^/| /' conftest.$ac_ext >&5
3448
3449 ac_c_werror_flag=$ac_save_c_werror_flag
3450 CFLAGS="-g"
3451 cat >conftest.$ac_ext <<_ACEOF
3452 /* confdefs.h. */
3453 _ACEOF
3454 cat confdefs.h >>conftest.$ac_ext
3455 cat >>conftest.$ac_ext <<_ACEOF
3456 /* end confdefs.h. */
3457
3458 int
3459 main ()
3460 {
3461
3462 ;
3463 return 0;
3464 }
3465 _ACEOF
3466 rm -f conftest.$ac_objext
3467 if { (ac_try="$ac_compile"
3468 case "(($ac_try" in
3469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3470 *) ac_try_echo=$ac_try;;
3471 esac
3472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3473 (eval "$ac_compile") 2>conftest.er1
3474 ac_status=$?
3475 grep -v '^ *+' conftest.er1 >conftest.err
3476 rm -f conftest.er1
3477 cat conftest.err >&5
3478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479 (exit $ac_status); } &&
3480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3481 { (case "(($ac_try" in
3482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3483 *) ac_try_echo=$ac_try;;
3484 esac
3485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3486 (eval "$ac_try") 2>&5
3487 ac_status=$?
3488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489 (exit $ac_status); }; } &&
3490 { ac_try='test -s conftest.$ac_objext'
3491 { (case "(($ac_try" in
3492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3493 *) ac_try_echo=$ac_try;;
3494 esac
3495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3496 (eval "$ac_try") 2>&5
3497 ac_status=$?
3498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499 (exit $ac_status); }; }; then
3500 ac_cv_prog_cc_g=yes
3501 else
3502 echo "$as_me: failed program was:" >&5
3503 sed 's/^/| /' conftest.$ac_ext >&5
3504
3505
3506 fi
3507
3508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3509 fi
3510
3511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3512 fi
3513
3514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3515 ac_c_werror_flag=$ac_save_c_werror_flag
3516 fi
3517 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3518 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3519 if test "$ac_test_CFLAGS" = set; then
3520 CFLAGS=$ac_save_CFLAGS
3521 elif test $ac_cv_prog_cc_g = yes; then
3522 if test "$GCC" = yes; then
3523 CFLAGS="-g -O2"
3524 else
3525 CFLAGS="-g"
3526 fi
3527 else
3528 if test "$GCC" = yes; then
3529 CFLAGS="-O2"
3530 else
3531 CFLAGS=
3532 fi
3533 fi
3534 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3535 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3536 if test "${ac_cv_prog_cc_c89+set}" = set; then
3537 echo $ECHO_N "(cached) $ECHO_C" >&6
3538 else
3539 ac_cv_prog_cc_c89=no
3540 ac_save_CC=$CC
3541 cat >conftest.$ac_ext <<_ACEOF
3542 /* confdefs.h. */
3543 _ACEOF
3544 cat confdefs.h >>conftest.$ac_ext
3545 cat >>conftest.$ac_ext <<_ACEOF
3546 /* end confdefs.h. */
3547 #include <stdarg.h>
3548 #include <stdio.h>
3549 #include <sys/types.h>
3550 #include <sys/stat.h>
3551 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3552 struct buf { int x; };
3553 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3554 static char *e (p, i)
3555 char **p;
3556 int i;
3557 {
3558 return p[i];
3559 }
3560 static char *f (char * (*g) (char **, int), char **p, ...)
3561 {
3562 char *s;
3563 va_list v;
3564 va_start (v,p);
3565 s = g (p, va_arg (v,int));
3566 va_end (v);
3567 return s;
3568 }
3569
3570 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3571 function prototypes and stuff, but not '\xHH' hex character constants.
3572 These don't provoke an error unfortunately, instead are silently treated
3573 as 'x'. The following induces an error, until -std is added to get
3574 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3575 array size at least. It's necessary to write '\x00'==0 to get something
3576 that's true only with -std. */
3577 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3578
3579 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3580 inside strings and character constants. */
3581 #define FOO(x) 'x'
3582 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3583
3584 int test (int i, double x);
3585 struct s1 {int (*f) (int a);};
3586 struct s2 {int (*f) (double a);};
3587 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3588 int argc;
3589 char **argv;
3590 int
3591 main ()
3592 {
3593 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3594 ;
3595 return 0;
3596 }
3597 _ACEOF
3598 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3599 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3600 do
3601 CC="$ac_save_CC $ac_arg"
3602 rm -f conftest.$ac_objext
3603 if { (ac_try="$ac_compile"
3604 case "(($ac_try" in
3605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3606 *) ac_try_echo=$ac_try;;
3607 esac
3608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3609 (eval "$ac_compile") 2>conftest.er1
3610 ac_status=$?
3611 grep -v '^ *+' conftest.er1 >conftest.err
3612 rm -f conftest.er1
3613 cat conftest.err >&5
3614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615 (exit $ac_status); } &&
3616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3617 { (case "(($ac_try" in
3618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3619 *) ac_try_echo=$ac_try;;
3620 esac
3621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3622 (eval "$ac_try") 2>&5
3623 ac_status=$?
3624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625 (exit $ac_status); }; } &&
3626 { ac_try='test -s conftest.$ac_objext'
3627 { (case "(($ac_try" in
3628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3629 *) ac_try_echo=$ac_try;;
3630 esac
3631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3632 (eval "$ac_try") 2>&5
3633 ac_status=$?
3634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635 (exit $ac_status); }; }; then
3636 ac_cv_prog_cc_c89=$ac_arg
3637 else
3638 echo "$as_me: failed program was:" >&5
3639 sed 's/^/| /' conftest.$ac_ext >&5
3640
3641
3642 fi
3643
3644 rm -f core conftest.err conftest.$ac_objext
3645 test "x$ac_cv_prog_cc_c89" != "xno" && break
3646 done
3647 rm -f conftest.$ac_ext
3648 CC=$ac_save_CC
3649
3650 fi
3651 # AC_CACHE_VAL
3652 case "x$ac_cv_prog_cc_c89" in
3653 x)
3654 { echo "$as_me:$LINENO: result: none needed" >&5
3655 echo "${ECHO_T}none needed" >&6; } ;;
3656 xno)
3657 { echo "$as_me:$LINENO: result: unsupported" >&5
3658 echo "${ECHO_T}unsupported" >&6; } ;;
3659 *)
3660 CC="$CC $ac_cv_prog_cc_c89"
3661 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3662 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3663 esac
3664
3665
3666 ac_ext=c
3667 ac_cpp='$CPP $CPPFLAGS'
3668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3670 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3671
3672 depcc="$CC" am_compiler_list=
3673
3674 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3675 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3676 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3677 echo $ECHO_N "(cached) $ECHO_C" >&6
3678 else
3679 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3680 # We make a subdir and do the tests there. Otherwise we can end up
3681 # making bogus files that we don't know about and never remove. For
3682 # instance it was reported that on HP-UX the gcc test will end up
3683 # making a dummy file named `D' -- because `-MD' means `put the output
3684 # in D'.
3685 mkdir conftest.dir
3686 # Copy depcomp to subdir because otherwise we won't find it if we're
3687 # using a relative directory.
3688 cp "$am_depcomp" conftest.dir
3689 cd conftest.dir
3690 # We will build objects and dependencies in a subdirectory because
3691 # it helps to detect inapplicable dependency modes. For instance
3692 # both Tru64's cc and ICC support -MD to output dependencies as a
3693 # side effect of compilation, but ICC will put the dependencies in
3694 # the current directory while Tru64 will put them in the object
3695 # directory.
3696 mkdir sub
3697
3698 am_cv_CC_dependencies_compiler_type=none
3699 if test "$am_compiler_list" = ""; then
3700 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3701 fi
3702 for depmode in $am_compiler_list; do
3703 # Setup a source with many dependencies, because some compilers
3704 # like to wrap large dependency lists on column 80 (with \), and
3705 # we should not choose a depcomp mode which is confused by this.
3706 #
3707 # We need to recreate these files for each test, as the compiler may
3708 # overwrite some of them when testing with obscure command lines.
3709 # This happens at least with the AIX C compiler.
3710 : > sub/conftest.c
3711 for i in 1 2 3 4 5 6; do
3712 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3713 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3714 # Solaris 8's {/usr,}/bin/sh.
3715 touch sub/conftst$i.h
3716 done
3717 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3718
3719 case $depmode in
3720 nosideeffect)
3721 # after this tag, mechanisms are not by side-effect, so they'll
3722 # only be used when explicitly requested
3723 if test "x$enable_dependency_tracking" = xyes; then
3724 continue
3725 else
3726 break
3727 fi
3728 ;;
3729 none) break ;;
3730 esac
3731 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3732 # mode. It turns out that the SunPro C++ compiler does not properly
3733 # handle `-M -o', and we need to detect this.
3734 if depmode=$depmode \
3735 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3736 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3737 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3738 >/dev/null 2>conftest.err &&
3739 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3740 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3741 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3742 # icc doesn't choke on unknown options, it will just issue warnings
3743 # or remarks (even with -Werror). So we grep stderr for any message
3744 # that says an option was ignored or not supported.
3745 # When given -MP, icc 7.0 and 7.1 complain thusly:
3746 # icc: Command line warning: ignoring option '-M'; no argument required
3747 # The diagnosis changed in icc 8.0:
3748 # icc: Command line remark: option '-MP' not supported
3749 if (grep 'ignoring option' conftest.err ||
3750 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3751 am_cv_CC_dependencies_compiler_type=$depmode
3752 break
3753 fi
3754 fi
3755 done
3756
3757 cd ..
3758 rm -rf conftest.dir
3759 else
3760 am_cv_CC_dependencies_compiler_type=none
3761 fi
3762
3763 fi
3764 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3765 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3766 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3767
3768
3769
3770 if
3771 test "x$enable_dependency_tracking" != xno \
3772 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3773 am__fastdepCC_TRUE=
3774 am__fastdepCC_FALSE='#'
3775 else
3776 am__fastdepCC_TRUE='#'
3777 am__fastdepCC_FALSE=
3778 fi
3779
3780
3781 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3782 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3783 if test "${lt_cv_path_SED+set}" = set; then
3784 echo $ECHO_N "(cached) $ECHO_C" >&6
3785 else
3786 # Loop through the user's path and test for sed and gsed.
3787 # Then use that list of sed's as ones to test for truncation.
3788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3789 for as_dir in $PATH
3790 do
3791 IFS=$as_save_IFS
3792 test -z "$as_dir" && as_dir=.
3793 for lt_ac_prog in sed gsed; do
3794 for ac_exec_ext in '' $ac_executable_extensions; do
3795 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3796 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3797 fi
3798 done
3799 done
3800 done
3801 lt_ac_max=0
3802 lt_ac_count=0
3803 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3804 # along with /bin/sed that truncates output.
3805 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3806 test ! -f $lt_ac_sed && continue
3807 cat /dev/null > conftest.in
3808 lt_ac_count=0
3809 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3810 # Check for GNU sed and select it if it is found.
3811 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3812 lt_cv_path_SED=$lt_ac_sed
3813 break
3814 fi
3815 while true; do
3816 cat conftest.in conftest.in >conftest.tmp
3817 mv conftest.tmp conftest.in
3818 cp conftest.in conftest.nl
3819 echo >>conftest.nl
3820 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3821 cmp -s conftest.out conftest.nl || break
3822 # 10000 chars as input seems more than enough
3823 test $lt_ac_count -gt 10 && break
3824 lt_ac_count=`expr $lt_ac_count + 1`
3825 if test $lt_ac_count -gt $lt_ac_max; then
3826 lt_ac_max=$lt_ac_count
3827 lt_cv_path_SED=$lt_ac_sed
3828 fi
3829 done
3830 done
3831
3832 fi
3833
3834 SED=$lt_cv_path_SED
3835 { echo "$as_me:$LINENO: result: $SED" >&5
3836 echo "${ECHO_T}$SED" >&6; }
3837
3838 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3839 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3840 if test "${ac_cv_path_GREP+set}" = set; then
3841 echo $ECHO_N "(cached) $ECHO_C" >&6
3842 else
3843 # Extract the first word of "grep ggrep" to use in msg output
3844 if test -z "$GREP"; then
3845 set dummy grep ggrep; ac_prog_name=$2
3846 if test "${ac_cv_path_GREP+set}" = set; then
3847 echo $ECHO_N "(cached) $ECHO_C" >&6
3848 else
3849 ac_path_GREP_found=false
3850 # Loop through the user's path and test for each of PROGNAME-LIST
3851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3852 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3853 do
3854 IFS=$as_save_IFS
3855 test -z "$as_dir" && as_dir=.
3856 for ac_prog in grep ggrep; do
3857 for ac_exec_ext in '' $ac_executable_extensions; do
3858 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3859 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3860 # Check for GNU ac_path_GREP and select it if it is found.
3861 # Check for GNU $ac_path_GREP
3862 case `"$ac_path_GREP" --version 2>&1` in
3863 *GNU*)
3864 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3865 *)
3866 ac_count=0
3867 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3868 while :
3869 do
3870 cat "conftest.in" "conftest.in" >"conftest.tmp"
3871 mv "conftest.tmp" "conftest.in"
3872 cp "conftest.in" "conftest.nl"
3873 echo 'GREP' >> "conftest.nl"
3874 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3875 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3876 ac_count=`expr $ac_count + 1`
3877 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3878 # Best one so far, save it but keep looking for a better one
3879 ac_cv_path_GREP="$ac_path_GREP"
3880 ac_path_GREP_max=$ac_count
3881 fi
3882 # 10*(2^10) chars as input seems more than enough
3883 test $ac_count -gt 10 && break
3884 done
3885 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3886 esac
3887
3888
3889 $ac_path_GREP_found && break 3
3890 done
3891 done
3892
3893 done
3894 IFS=$as_save_IFS
3895
3896
3897 fi
3898
3899 GREP="$ac_cv_path_GREP"
3900 if test -z "$GREP"; then
3901 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3902 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3903 { (exit 1); exit 1; }; }
3904 fi
3905
3906 else
3907 ac_cv_path_GREP=$GREP
3908 fi
3909
3910
3911 fi
3912 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3913 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3914 GREP="$ac_cv_path_GREP"
3915
3916
3917 { echo "$as_me:$LINENO: checking for egrep" >&5
3918 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3919 if test "${ac_cv_path_EGREP+set}" = set; then
3920 echo $ECHO_N "(cached) $ECHO_C" >&6
3921 else
3922 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3923 then ac_cv_path_EGREP="$GREP -E"
3924 else
3925 # Extract the first word of "egrep" to use in msg output
3926 if test -z "$EGREP"; then
3927 set dummy egrep; ac_prog_name=$2
3928 if test "${ac_cv_path_EGREP+set}" = set; then
3929 echo $ECHO_N "(cached) $ECHO_C" >&6
3930 else
3931 ac_path_EGREP_found=false
3932 # Loop through the user's path and test for each of PROGNAME-LIST
3933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3934 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3935 do
3936 IFS=$as_save_IFS
3937 test -z "$as_dir" && as_dir=.
3938 for ac_prog in egrep; do
3939 for ac_exec_ext in '' $ac_executable_extensions; do
3940 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3941 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3942 # Check for GNU ac_path_EGREP and select it if it is found.
3943 # Check for GNU $ac_path_EGREP
3944 case `"$ac_path_EGREP" --version 2>&1` in
3945 *GNU*)
3946 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3947 *)
3948 ac_count=0
3949 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3950 while :
3951 do
3952 cat "conftest.in" "conftest.in" >"conftest.tmp"
3953 mv "conftest.tmp" "conftest.in"
3954 cp "conftest.in" "conftest.nl"
3955 echo 'EGREP' >> "conftest.nl"
3956 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3957 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3958 ac_count=`expr $ac_count + 1`
3959 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3960 # Best one so far, save it but keep looking for a better one
3961 ac_cv_path_EGREP="$ac_path_EGREP"
3962 ac_path_EGREP_max=$ac_count
3963 fi
3964 # 10*(2^10) chars as input seems more than enough
3965 test $ac_count -gt 10 && break
3966 done
3967 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3968 esac
3969
3970
3971 $ac_path_EGREP_found && break 3
3972 done
3973 done
3974
3975 done
3976 IFS=$as_save_IFS
3977
3978
3979 fi
3980
3981 EGREP="$ac_cv_path_EGREP"
3982 if test -z "$EGREP"; then
3983 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3984 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3985 { (exit 1); exit 1; }; }
3986 fi
3987
3988 else
3989 ac_cv_path_EGREP=$EGREP
3990 fi
3991
3992
3993 fi
3994 fi
3995 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3996 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3997 EGREP="$ac_cv_path_EGREP"
3998
3999
4000
4001 # Check whether --with-gnu-ld was given.
4002 if test "${with_gnu_ld+set}" = set; then
4003 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4004 else
4005 with_gnu_ld=no
4006 fi
4007
4008 ac_prog=ld
4009 if test "$GCC" = yes; then
4010 # Check if gcc -print-prog-name=ld gives a path.
4011 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4012 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4013 case $host in
4014 *-*-mingw*)
4015 # gcc leaves a trailing carriage return which upsets mingw
4016 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4017 *)
4018 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4019 esac
4020 case $ac_prog in
4021 # Accept absolute paths.
4022 [\\/]* | ?:[\\/]*)
4023 re_direlt='/[^/][^/]*/\.\./'
4024 # Canonicalize the pathname of ld
4025 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4026 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4027 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4028 done
4029 test -z "$LD" && LD="$ac_prog"
4030 ;;
4031 "")
4032 # If it fails, then pretend we aren't using GCC.
4033 ac_prog=ld
4034 ;;
4035 *)
4036 # If it is relative, then search for the first ld in PATH.
4037 with_gnu_ld=unknown
4038 ;;
4039 esac
4040 elif test "$with_gnu_ld" = yes; then
4041 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4042 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4043 else
4044 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4045 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4046 fi
4047 if test "${lt_cv_path_LD+set}" = set; then
4048 echo $ECHO_N "(cached) $ECHO_C" >&6
4049 else
4050 if test -z "$LD"; then
4051 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4052 for ac_dir in $PATH; do
4053 IFS="$lt_save_ifs"
4054 test -z "$ac_dir" && ac_dir=.
4055 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4056 lt_cv_path_LD="$ac_dir/$ac_prog"
4057 # Check to see if the program is GNU ld. I'd rather use --version,
4058 # but apparently some variants of GNU ld only accept -v.
4059 # Break only if it was the GNU/non-GNU ld that we prefer.
4060 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4061 *GNU* | *'with BFD'*)
4062 test "$with_gnu_ld" != no && break
4063 ;;
4064 *)
4065 test "$with_gnu_ld" != yes && break
4066 ;;
4067 esac
4068 fi
4069 done
4070 IFS="$lt_save_ifs"
4071 else
4072 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4073 fi
4074 fi
4075
4076 LD="$lt_cv_path_LD"
4077 if test -n "$LD"; then
4078 { echo "$as_me:$LINENO: result: $LD" >&5
4079 echo "${ECHO_T}$LD" >&6; }
4080 else
4081 { echo "$as_me:$LINENO: result: no" >&5
4082 echo "${ECHO_T}no" >&6; }
4083 fi
4084 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4085 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4086 { (exit 1); exit 1; }; }
4087 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4088 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4089 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4090 echo $ECHO_N "(cached) $ECHO_C" >&6
4091 else
4092 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4093 case `$LD -v 2>&1 </dev/null` in
4094 *GNU* | *'with BFD'*)
4095 lt_cv_prog_gnu_ld=yes
4096 ;;
4097 *)
4098 lt_cv_prog_gnu_ld=no
4099 ;;
4100 esac
4101 fi
4102 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4103 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4104 with_gnu_ld=$lt_cv_prog_gnu_ld
4105
4106
4107 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4108 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4109 if test "${lt_cv_ld_reload_flag+set}" = set; then
4110 echo $ECHO_N "(cached) $ECHO_C" >&6
4111 else
4112 lt_cv_ld_reload_flag='-r'
4113 fi
4114 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4115 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4116 reload_flag=$lt_cv_ld_reload_flag
4117 case $reload_flag in
4118 "" | " "*) ;;
4119 *) reload_flag=" $reload_flag" ;;
4120 esac
4121 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4122 case $host_os in
4123 darwin*)
4124 if test "$GCC" = yes; then
4125 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4126 else
4127 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4128 fi
4129 ;;
4130 esac
4131
4132 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4133 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4134 if test "${lt_cv_path_NM+set}" = set; then
4135 echo $ECHO_N "(cached) $ECHO_C" >&6
4136 else
4137 if test -n "$NM"; then
4138 # Let the user override the test.
4139 lt_cv_path_NM="$NM"
4140 else
4141 lt_nm_to_check="${ac_tool_prefix}nm"
4142 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4143 lt_nm_to_check="$lt_nm_to_check nm"
4144 fi
4145 for lt_tmp_nm in $lt_nm_to_check; do
4146 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4147 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4148 IFS="$lt_save_ifs"
4149 test -z "$ac_dir" && ac_dir=.
4150 tmp_nm="$ac_dir/$lt_tmp_nm"
4151 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4152 # Check to see if the nm accepts a BSD-compat flag.
4153 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4154 # nm: unknown option "B" ignored
4155 # Tru64's nm complains that /dev/null is an invalid object file
4156 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4157 */dev/null* | *'Invalid file or object type'*)
4158 lt_cv_path_NM="$tmp_nm -B"
4159 break
4160 ;;
4161 *)
4162 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4163 */dev/null*)
4164 lt_cv_path_NM="$tmp_nm -p"
4165 break
4166 ;;
4167 *)
4168 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4169 continue # so that we can try to find one that supports BSD flags
4170 ;;
4171 esac
4172 ;;
4173 esac
4174 fi
4175 done
4176 IFS="$lt_save_ifs"
4177 done
4178 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4179 fi
4180 fi
4181 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4182 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4183 NM="$lt_cv_path_NM"
4184
4185 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4186 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4187 LN_S=$as_ln_s
4188 if test "$LN_S" = "ln -s"; then
4189 { echo "$as_me:$LINENO: result: yes" >&5
4190 echo "${ECHO_T}yes" >&6; }
4191 else
4192 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4193 echo "${ECHO_T}no, using $LN_S" >&6; }
4194 fi
4195
4196 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4197 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4198 if test "${lt_cv_deplibs_check_method+set}" = set; then
4199 echo $ECHO_N "(cached) $ECHO_C" >&6
4200 else
4201 lt_cv_file_magic_cmd='$MAGIC_CMD'
4202 lt_cv_file_magic_test_file=
4203 lt_cv_deplibs_check_method='unknown'
4204 # Need to set the preceding variable on all platforms that support
4205 # interlibrary dependencies.
4206 # 'none' -- dependencies not supported.
4207 # `unknown' -- same as none, but documents that we really don't know.
4208 # 'pass_all' -- all dependencies passed with no checks.
4209 # 'test_compile' -- check by making test program.
4210 # 'file_magic [[regex]]' -- check by looking for files in library path
4211 # which responds to the $file_magic_cmd with a given extended regex.
4212 # If you have `file' or equivalent on your system and you're not sure
4213 # whether `pass_all' will *always* work, you probably want this one.
4214
4215 case $host_os in
4216 aix4* | aix5*)
4217 lt_cv_deplibs_check_method=pass_all
4218 ;;
4219
4220 beos*)
4221 lt_cv_deplibs_check_method=pass_all
4222 ;;
4223
4224 bsdi[45]*)
4225 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4226 lt_cv_file_magic_cmd='/usr/bin/file -L'
4227 lt_cv_file_magic_test_file=/shlib/libc.so
4228 ;;
4229
4230 cygwin*)
4231 # func_win32_libid is a shell function defined in ltmain.sh
4232 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4233 lt_cv_file_magic_cmd='func_win32_libid'
4234 ;;
4235
4236 mingw* | pw32*)
4237 # Base MSYS/MinGW do not provide the 'file' command needed by
4238 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4239 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4240 lt_cv_file_magic_cmd='$OBJDUMP -f'
4241 ;;
4242
4243 darwin* | rhapsody*)
4244 lt_cv_deplibs_check_method=pass_all
4245 ;;
4246
4247 freebsd* | dragonfly*)
4248 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4249 case $host_cpu in
4250 i*86 )
4251 # Not sure whether the presence of OpenBSD here was a mistake.
4252 # Let's accept both of them until this is cleared up.
4253 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4254 lt_cv_file_magic_cmd=/usr/bin/file
4255 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4256 ;;
4257 esac
4258 else
4259 lt_cv_deplibs_check_method=pass_all
4260 fi
4261 ;;
4262
4263 gnu*)
4264 lt_cv_deplibs_check_method=pass_all
4265 ;;
4266
4267 hpux10.20* | hpux11*)
4268 lt_cv_file_magic_cmd=/usr/bin/file
4269 case $host_cpu in
4270 ia64*)
4271 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4272 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4273 ;;
4274 hppa*64*)
4275 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]'
4276 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4277 ;;
4278 *)
4279 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4280 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4281 ;;
4282 esac
4283 ;;
4284
4285 interix3*)
4286 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4287 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4288 ;;
4289
4290 irix5* | irix6* | nonstopux*)
4291 case $LD in
4292 *-32|*"-32 ") libmagic=32-bit;;
4293 *-n32|*"-n32 ") libmagic=N32;;
4294 *-64|*"-64 ") libmagic=64-bit;;
4295 *) libmagic=never-match;;
4296 esac
4297 lt_cv_deplibs_check_method=pass_all
4298 ;;
4299
4300 # This must be Linux ELF.
4301 linux* | k*bsd*-gnu)
4302 lt_cv_deplibs_check_method=pass_all
4303 ;;
4304
4305 netbsd* | netbsdelf*-gnu)
4306 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4307 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4308 else
4309 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4310 fi
4311 ;;
4312
4313 newos6*)
4314 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4315 lt_cv_file_magic_cmd=/usr/bin/file
4316 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4317 ;;
4318
4319 nto-qnx*)
4320 lt_cv_deplibs_check_method=unknown
4321 ;;
4322
4323 openbsd*)
4324 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4325 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4326 else
4327 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4328 fi
4329 ;;
4330
4331 osf3* | osf4* | osf5*)
4332 lt_cv_deplibs_check_method=pass_all
4333 ;;
4334
4335 solaris*)
4336 lt_cv_deplibs_check_method=pass_all
4337 ;;
4338
4339 sysv4 | sysv4.3*)
4340 case $host_vendor in
4341 motorola)
4342 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]'
4343 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4344 ;;
4345 ncr)
4346 lt_cv_deplibs_check_method=pass_all
4347 ;;
4348 sequent)
4349 lt_cv_file_magic_cmd='/bin/file'
4350 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4351 ;;
4352 sni)
4353 lt_cv_file_magic_cmd='/bin/file'
4354 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4355 lt_cv_file_magic_test_file=/lib/libc.so
4356 ;;
4357 siemens)
4358 lt_cv_deplibs_check_method=pass_all
4359 ;;
4360 pc)
4361 lt_cv_deplibs_check_method=pass_all
4362 ;;
4363 esac
4364 ;;
4365
4366 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4367 lt_cv_deplibs_check_method=pass_all
4368 ;;
4369 esac
4370
4371 fi
4372 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4373 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4374 file_magic_cmd=$lt_cv_file_magic_cmd
4375 deplibs_check_method=$lt_cv_deplibs_check_method
4376 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4377
4378
4379
4380
4381 # If no C compiler was specified, use CC.
4382 LTCC=${LTCC-"$CC"}
4383
4384 # If no C compiler flags were specified, use CFLAGS.
4385 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4386
4387 # Allow CC to be a program name with arguments.
4388 compiler=$CC
4389
4390
4391 # Check whether --enable-libtool-lock was given.
4392 if test "${enable_libtool_lock+set}" = set; then
4393 enableval=$enable_libtool_lock;
4394 fi
4395
4396 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4397
4398 # Some flags need to be propagated to the compiler or linker for good
4399 # libtool support.
4400 case $host in
4401 ia64-*-hpux*)
4402 # Find out which ABI we are using.
4403 echo 'int i;' > conftest.$ac_ext
4404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4405 (eval $ac_compile) 2>&5
4406 ac_status=$?
4407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408 (exit $ac_status); }; then
4409 case `/usr/bin/file conftest.$ac_objext` in
4410 *ELF-32*)
4411 HPUX_IA64_MODE="32"
4412 ;;
4413 *ELF-64*)
4414 HPUX_IA64_MODE="64"
4415 ;;
4416 esac
4417 fi
4418 rm -rf conftest*
4419 ;;
4420 *-*-irix6*)
4421 # Find out which ABI we are using.
4422 echo '#line 4422 "configure"' > 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 if test "$lt_cv_prog_gnu_ld" = yes; then
4429 case `/usr/bin/file conftest.$ac_objext` in
4430 *32-bit*)
4431 LD="${LD-ld} -melf32bsmip"
4432 ;;
4433 *N32*)
4434 LD="${LD-ld} -melf32bmipn32"
4435 ;;
4436 *64-bit*)
4437 LD="${LD-ld} -melf64bmip"
4438 ;;
4439 esac
4440 else
4441 case `/usr/bin/file conftest.$ac_objext` in
4442 *32-bit*)
4443 LD="${LD-ld} -32"
4444 ;;
4445 *N32*)
4446 LD="${LD-ld} -n32"
4447 ;;
4448 *64-bit*)
4449 LD="${LD-ld} -64"
4450 ;;
4451 esac
4452 fi
4453 fi
4454 rm -rf conftest*
4455 ;;
4456
4457 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4458 # Find out which ABI we are using.
4459 echo 'int i;' > conftest.$ac_ext
4460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4461 (eval $ac_compile) 2>&5
4462 ac_status=$?
4463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464 (exit $ac_status); }; then
4465 case `/usr/bin/file conftest.o` in
4466 *32-bit*)
4467 case $host in
4468 x86_64-*linux*)
4469 LD="${LD-ld} -m elf_i386"
4470 ;;
4471 ppc64-*linux*|powerpc64-*linux*)
4472 LD="${LD-ld} -m elf32ppclinux"
4473 ;;
4474 s390x-*linux*)
4475 LD="${LD-ld} -m elf_s390"
4476 ;;
4477 sparc64-*linux*)
4478 LD="${LD-ld} -m elf32_sparc"
4479 ;;
4480 esac
4481 ;;
4482 *64-bit*)
4483 case $host in
4484 x86_64-*linux*)
4485 LD="${LD-ld} -m elf_x86_64"
4486 ;;
4487 ppc*-*linux*|powerpc*-*linux*)
4488 LD="${LD-ld} -m elf64ppc"
4489 ;;
4490 s390*-*linux*)
4491 LD="${LD-ld} -m elf64_s390"
4492 ;;
4493 sparc*-*linux*)
4494 LD="${LD-ld} -m elf64_sparc"
4495 ;;
4496 esac
4497 ;;
4498 esac
4499 fi
4500 rm -rf conftest*
4501 ;;
4502
4503 *-*-sco3.2v5*)
4504 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4505 SAVE_CFLAGS="$CFLAGS"
4506 CFLAGS="$CFLAGS -belf"
4507 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4508 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4509 if test "${lt_cv_cc_needs_belf+set}" = set; then
4510 echo $ECHO_N "(cached) $ECHO_C" >&6
4511 else
4512 ac_ext=c
4513 ac_cpp='$CPP $CPPFLAGS'
4514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4517
4518 cat >conftest.$ac_ext <<_ACEOF
4519 /* confdefs.h. */
4520 _ACEOF
4521 cat confdefs.h >>conftest.$ac_ext
4522 cat >>conftest.$ac_ext <<_ACEOF
4523 /* end confdefs.h. */
4524
4525 int
4526 main ()
4527 {
4528
4529 ;
4530 return 0;
4531 }
4532 _ACEOF
4533 rm -f conftest.$ac_objext conftest$ac_exeext
4534 if { (ac_try="$ac_link"
4535 case "(($ac_try" in
4536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4537 *) ac_try_echo=$ac_try;;
4538 esac
4539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4540 (eval "$ac_link") 2>conftest.er1
4541 ac_status=$?
4542 grep -v '^ *+' conftest.er1 >conftest.err
4543 rm -f conftest.er1
4544 cat conftest.err >&5
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); } &&
4547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4548 { (case "(($ac_try" in
4549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4550 *) ac_try_echo=$ac_try;;
4551 esac
4552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4553 (eval "$ac_try") 2>&5
4554 ac_status=$?
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); }; } &&
4557 { ac_try='test -s conftest$ac_exeext'
4558 { (case "(($ac_try" in
4559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4560 *) ac_try_echo=$ac_try;;
4561 esac
4562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4563 (eval "$ac_try") 2>&5
4564 ac_status=$?
4565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566 (exit $ac_status); }; }; then
4567 lt_cv_cc_needs_belf=yes
4568 else
4569 echo "$as_me: failed program was:" >&5
4570 sed 's/^/| /' conftest.$ac_ext >&5
4571
4572 lt_cv_cc_needs_belf=no
4573 fi
4574
4575 rm -f core conftest.err conftest.$ac_objext \
4576 conftest$ac_exeext conftest.$ac_ext
4577 ac_ext=c
4578 ac_cpp='$CPP $CPPFLAGS'
4579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4582
4583 fi
4584 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4585 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4586 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4587 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4588 CFLAGS="$SAVE_CFLAGS"
4589 fi
4590 ;;
4591 sparc*-*solaris*)
4592 # Find out which ABI we are using.
4593 echo 'int i;' > conftest.$ac_ext
4594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4595 (eval $ac_compile) 2>&5
4596 ac_status=$?
4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598 (exit $ac_status); }; then
4599 case `/usr/bin/file conftest.o` in
4600 *64-bit*)
4601 case $lt_cv_prog_gnu_ld in
4602 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4603 *) LD="${LD-ld} -64" ;;
4604 esac
4605 ;;
4606 esac
4607 fi
4608 rm -rf conftest*
4609 ;;
4610
4611
4612 esac
4613
4614 need_locks="$enable_libtool_lock"
4615
4616
4617 ac_ext=c
4618 ac_cpp='$CPP $CPPFLAGS'
4619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4622 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4623 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4624 # On Suns, sometimes $CPP names a directory.
4625 if test -n "$CPP" && test -d "$CPP"; then
4626 CPP=
4627 fi
4628 if test -z "$CPP"; then
4629 if test "${ac_cv_prog_CPP+set}" = set; then
4630 echo $ECHO_N "(cached) $ECHO_C" >&6
4631 else
4632 # Double quotes because CPP needs to be expanded
4633 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4634 do
4635 ac_preproc_ok=false
4636 for ac_c_preproc_warn_flag in '' yes
4637 do
4638 # Use a header file that comes with gcc, so configuring glibc
4639 # with a fresh cross-compiler works.
4640 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4641 # <limits.h> exists even on freestanding compilers.
4642 # On the NeXT, cc -E runs the code through the compiler's parser,
4643 # not just through cpp. "Syntax error" is here to catch this case.
4644 cat >conftest.$ac_ext <<_ACEOF
4645 /* confdefs.h. */
4646 _ACEOF
4647 cat confdefs.h >>conftest.$ac_ext
4648 cat >>conftest.$ac_ext <<_ACEOF
4649 /* end confdefs.h. */
4650 #ifdef __STDC__
4651 # include <limits.h>
4652 #else
4653 # include <assert.h>
4654 #endif
4655 Syntax error
4656 _ACEOF
4657 if { (ac_try="$ac_cpp conftest.$ac_ext"
4658 case "(($ac_try" in
4659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4660 *) ac_try_echo=$ac_try;;
4661 esac
4662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4663 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4664 ac_status=$?
4665 grep -v '^ *+' conftest.er1 >conftest.err
4666 rm -f conftest.er1
4667 cat conftest.err >&5
4668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669 (exit $ac_status); } >/dev/null; then
4670 if test -s conftest.err; then
4671 ac_cpp_err=$ac_c_preproc_warn_flag
4672 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4673 else
4674 ac_cpp_err=
4675 fi
4676 else
4677 ac_cpp_err=yes
4678 fi
4679 if test -z "$ac_cpp_err"; then
4680 :
4681 else
4682 echo "$as_me: failed program was:" >&5
4683 sed 's/^/| /' conftest.$ac_ext >&5
4684
4685 # Broken: fails on valid input.
4686 continue
4687 fi
4688
4689 rm -f conftest.err conftest.$ac_ext
4690
4691 # OK, works on sane cases. Now check whether nonexistent headers
4692 # can be detected and how.
4693 cat >conftest.$ac_ext <<_ACEOF
4694 /* confdefs.h. */
4695 _ACEOF
4696 cat confdefs.h >>conftest.$ac_ext
4697 cat >>conftest.$ac_ext <<_ACEOF
4698 /* end confdefs.h. */
4699 #include <ac_nonexistent.h>
4700 _ACEOF
4701 if { (ac_try="$ac_cpp conftest.$ac_ext"
4702 case "(($ac_try" in
4703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4704 *) ac_try_echo=$ac_try;;
4705 esac
4706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4707 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4708 ac_status=$?
4709 grep -v '^ *+' conftest.er1 >conftest.err
4710 rm -f conftest.er1
4711 cat conftest.err >&5
4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); } >/dev/null; then
4714 if test -s conftest.err; then
4715 ac_cpp_err=$ac_c_preproc_warn_flag
4716 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4717 else
4718 ac_cpp_err=
4719 fi
4720 else
4721 ac_cpp_err=yes
4722 fi
4723 if test -z "$ac_cpp_err"; then
4724 # Broken: success on invalid input.
4725 continue
4726 else
4727 echo "$as_me: failed program was:" >&5
4728 sed 's/^/| /' conftest.$ac_ext >&5
4729
4730 # Passes both tests.
4731 ac_preproc_ok=:
4732 break
4733 fi
4734
4735 rm -f conftest.err conftest.$ac_ext
4736
4737 done
4738 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4739 rm -f conftest.err conftest.$ac_ext
4740 if $ac_preproc_ok; then
4741 break
4742 fi
4743
4744 done
4745 ac_cv_prog_CPP=$CPP
4746
4747 fi
4748 CPP=$ac_cv_prog_CPP
4749 else
4750 ac_cv_prog_CPP=$CPP
4751 fi
4752 { echo "$as_me:$LINENO: result: $CPP" >&5
4753 echo "${ECHO_T}$CPP" >&6; }
4754 ac_preproc_ok=false
4755 for ac_c_preproc_warn_flag in '' yes
4756 do
4757 # Use a header file that comes with gcc, so configuring glibc
4758 # with a fresh cross-compiler works.
4759 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4760 # <limits.h> exists even on freestanding compilers.
4761 # On the NeXT, cc -E runs the code through the compiler's parser,
4762 # not just through cpp. "Syntax error" is here to catch this case.
4763 cat >conftest.$ac_ext <<_ACEOF
4764 /* confdefs.h. */
4765 _ACEOF
4766 cat confdefs.h >>conftest.$ac_ext
4767 cat >>conftest.$ac_ext <<_ACEOF
4768 /* end confdefs.h. */
4769 #ifdef __STDC__
4770 # include <limits.h>
4771 #else
4772 # include <assert.h>
4773 #endif
4774 Syntax error
4775 _ACEOF
4776 if { (ac_try="$ac_cpp conftest.$ac_ext"
4777 case "(($ac_try" in
4778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4779 *) ac_try_echo=$ac_try;;
4780 esac
4781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4782 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4783 ac_status=$?
4784 grep -v '^ *+' conftest.er1 >conftest.err
4785 rm -f conftest.er1
4786 cat conftest.err >&5
4787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788 (exit $ac_status); } >/dev/null; then
4789 if test -s conftest.err; then
4790 ac_cpp_err=$ac_c_preproc_warn_flag
4791 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4792 else
4793 ac_cpp_err=
4794 fi
4795 else
4796 ac_cpp_err=yes
4797 fi
4798 if test -z "$ac_cpp_err"; then
4799 :
4800 else
4801 echo "$as_me: failed program was:" >&5
4802 sed 's/^/| /' conftest.$ac_ext >&5
4803
4804 # Broken: fails on valid input.
4805 continue
4806 fi
4807
4808 rm -f conftest.err conftest.$ac_ext
4809
4810 # OK, works on sane cases. Now check whether nonexistent headers
4811 # can be detected and how.
4812 cat >conftest.$ac_ext <<_ACEOF
4813 /* confdefs.h. */
4814 _ACEOF
4815 cat confdefs.h >>conftest.$ac_ext
4816 cat >>conftest.$ac_ext <<_ACEOF
4817 /* end confdefs.h. */
4818 #include <ac_nonexistent.h>
4819 _ACEOF
4820 if { (ac_try="$ac_cpp conftest.$ac_ext"
4821 case "(($ac_try" in
4822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4823 *) ac_try_echo=$ac_try;;
4824 esac
4825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4826 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4827 ac_status=$?
4828 grep -v '^ *+' conftest.er1 >conftest.err
4829 rm -f conftest.er1
4830 cat conftest.err >&5
4831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4832 (exit $ac_status); } >/dev/null; then
4833 if test -s conftest.err; then
4834 ac_cpp_err=$ac_c_preproc_warn_flag
4835 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4836 else
4837 ac_cpp_err=
4838 fi
4839 else
4840 ac_cpp_err=yes
4841 fi
4842 if test -z "$ac_cpp_err"; then
4843 # Broken: success on invalid input.
4844 continue
4845 else
4846 echo "$as_me: failed program was:" >&5
4847 sed 's/^/| /' conftest.$ac_ext >&5
4848
4849 # Passes both tests.
4850 ac_preproc_ok=:
4851 break
4852 fi
4853
4854 rm -f conftest.err conftest.$ac_ext
4855
4856 done
4857 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4858 rm -f conftest.err conftest.$ac_ext
4859 if $ac_preproc_ok; then
4860 :
4861 else
4862 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4863 See \`config.log' for more details." >&5
4864 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4865 See \`config.log' for more details." >&2;}
4866 { (exit 1); exit 1; }; }
4867 fi
4868
4869 ac_ext=c
4870 ac_cpp='$CPP $CPPFLAGS'
4871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4874
4875
4876 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4877 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4878 if test "${ac_cv_header_stdc+set}" = set; then
4879 echo $ECHO_N "(cached) $ECHO_C" >&6
4880 else
4881 cat >conftest.$ac_ext <<_ACEOF
4882 /* confdefs.h. */
4883 _ACEOF
4884 cat confdefs.h >>conftest.$ac_ext
4885 cat >>conftest.$ac_ext <<_ACEOF
4886 /* end confdefs.h. */
4887 #include <stdlib.h>
4888 #include <stdarg.h>
4889 #include <string.h>
4890 #include <float.h>
4891
4892 int
4893 main ()
4894 {
4895
4896 ;
4897 return 0;
4898 }
4899 _ACEOF
4900 rm -f conftest.$ac_objext
4901 if { (ac_try="$ac_compile"
4902 case "(($ac_try" in
4903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4904 *) ac_try_echo=$ac_try;;
4905 esac
4906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4907 (eval "$ac_compile") 2>conftest.er1
4908 ac_status=$?
4909 grep -v '^ *+' conftest.er1 >conftest.err
4910 rm -f conftest.er1
4911 cat conftest.err >&5
4912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913 (exit $ac_status); } &&
4914 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4915 { (case "(($ac_try" in
4916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4917 *) ac_try_echo=$ac_try;;
4918 esac
4919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4920 (eval "$ac_try") 2>&5
4921 ac_status=$?
4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923 (exit $ac_status); }; } &&
4924 { ac_try='test -s conftest.$ac_objext'
4925 { (case "(($ac_try" in
4926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4927 *) ac_try_echo=$ac_try;;
4928 esac
4929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4930 (eval "$ac_try") 2>&5
4931 ac_status=$?
4932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933 (exit $ac_status); }; }; then
4934 ac_cv_header_stdc=yes
4935 else
4936 echo "$as_me: failed program was:" >&5
4937 sed 's/^/| /' conftest.$ac_ext >&5
4938
4939 ac_cv_header_stdc=no
4940 fi
4941
4942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4943
4944 if test $ac_cv_header_stdc = yes; then
4945 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4946 cat >conftest.$ac_ext <<_ACEOF
4947 /* confdefs.h. */
4948 _ACEOF
4949 cat confdefs.h >>conftest.$ac_ext
4950 cat >>conftest.$ac_ext <<_ACEOF
4951 /* end confdefs.h. */
4952 #include <string.h>
4953
4954 _ACEOF
4955 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4956 $EGREP "memchr" >/dev/null 2>&1; then
4957 :
4958 else
4959 ac_cv_header_stdc=no
4960 fi
4961 rm -f conftest*
4962
4963 fi
4964
4965 if test $ac_cv_header_stdc = yes; then
4966 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4967 cat >conftest.$ac_ext <<_ACEOF
4968 /* confdefs.h. */
4969 _ACEOF
4970 cat confdefs.h >>conftest.$ac_ext
4971 cat >>conftest.$ac_ext <<_ACEOF
4972 /* end confdefs.h. */
4973 #include <stdlib.h>
4974
4975 _ACEOF
4976 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4977 $EGREP "free" >/dev/null 2>&1; then
4978 :
4979 else
4980 ac_cv_header_stdc=no
4981 fi
4982 rm -f conftest*
4983
4984 fi
4985
4986 if test $ac_cv_header_stdc = yes; then
4987 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4988 if test "$cross_compiling" = yes; then
4989 :
4990 else
4991 cat >conftest.$ac_ext <<_ACEOF
4992 /* confdefs.h. */
4993 _ACEOF
4994 cat confdefs.h >>conftest.$ac_ext
4995 cat >>conftest.$ac_ext <<_ACEOF
4996 /* end confdefs.h. */
4997 #include <ctype.h>
4998 #include <stdlib.h>
4999 #if ((' ' & 0x0FF) == 0x020)
5000 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5001 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5002 #else
5003 # define ISLOWER(c) \
5004 (('a' <= (c) && (c) <= 'i') \
5005 || ('j' <= (c) && (c) <= 'r') \
5006 || ('s' <= (c) && (c) <= 'z'))
5007 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5008 #endif
5009
5010 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5011 int
5012 main ()
5013 {
5014 int i;
5015 for (i = 0; i < 256; i++)
5016 if (XOR (islower (i), ISLOWER (i))
5017 || toupper (i) != TOUPPER (i))
5018 return 2;
5019 return 0;
5020 }
5021 _ACEOF
5022 rm -f conftest$ac_exeext
5023 if { (ac_try="$ac_link"
5024 case "(($ac_try" in
5025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5026 *) ac_try_echo=$ac_try;;
5027 esac
5028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5029 (eval "$ac_link") 2>&5
5030 ac_status=$?
5031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5033 { (case "(($ac_try" in
5034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5035 *) ac_try_echo=$ac_try;;
5036 esac
5037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5038 (eval "$ac_try") 2>&5
5039 ac_status=$?
5040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041 (exit $ac_status); }; }; then
5042 :
5043 else
5044 echo "$as_me: program exited with status $ac_status" >&5
5045 echo "$as_me: failed program was:" >&5
5046 sed 's/^/| /' conftest.$ac_ext >&5
5047
5048 ( exit $ac_status )
5049 ac_cv_header_stdc=no
5050 fi
5051 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5052 fi
5053
5054
5055 fi
5056 fi
5057 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5058 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5059 if test $ac_cv_header_stdc = yes; then
5060
5061 cat >>confdefs.h <<\_ACEOF
5062 #define STDC_HEADERS 1
5063 _ACEOF
5064
5065 fi
5066
5067 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5078 inttypes.h stdint.h unistd.h
5079 do
5080 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5081 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5082 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5083 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5084 echo $ECHO_N "(cached) $ECHO_C" >&6
5085 else
5086 cat >conftest.$ac_ext <<_ACEOF
5087 /* confdefs.h. */
5088 _ACEOF
5089 cat confdefs.h >>conftest.$ac_ext
5090 cat >>conftest.$ac_ext <<_ACEOF
5091 /* end confdefs.h. */
5092 $ac_includes_default
5093
5094 #include <$ac_header>
5095 _ACEOF
5096 rm -f conftest.$ac_objext
5097 if { (ac_try="$ac_compile"
5098 case "(($ac_try" in
5099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5100 *) ac_try_echo=$ac_try;;
5101 esac
5102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5103 (eval "$ac_compile") 2>conftest.er1
5104 ac_status=$?
5105 grep -v '^ *+' conftest.er1 >conftest.err
5106 rm -f conftest.er1
5107 cat conftest.err >&5
5108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109 (exit $ac_status); } &&
5110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5111 { (case "(($ac_try" in
5112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5113 *) ac_try_echo=$ac_try;;
5114 esac
5115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5116 (eval "$ac_try") 2>&5
5117 ac_status=$?
5118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119 (exit $ac_status); }; } &&
5120 { ac_try='test -s conftest.$ac_objext'
5121 { (case "(($ac_try" in
5122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5123 *) ac_try_echo=$ac_try;;
5124 esac
5125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5126 (eval "$ac_try") 2>&5
5127 ac_status=$?
5128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129 (exit $ac_status); }; }; then
5130 eval "$as_ac_Header=yes"
5131 else
5132 echo "$as_me: failed program was:" >&5
5133 sed 's/^/| /' conftest.$ac_ext >&5
5134
5135 eval "$as_ac_Header=no"
5136 fi
5137
5138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5139 fi
5140 ac_res=`eval echo '${'$as_ac_Header'}'`
5141 { echo "$as_me:$LINENO: result: $ac_res" >&5
5142 echo "${ECHO_T}$ac_res" >&6; }
5143 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5144 cat >>confdefs.h <<_ACEOF
5145 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5146 _ACEOF
5147
5148 fi
5149
5150 done
5151
5152
5153
5154 for ac_header in dlfcn.h
5155 do
5156 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5157 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5158 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5159 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5160 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5161 echo $ECHO_N "(cached) $ECHO_C" >&6
5162 fi
5163 ac_res=`eval echo '${'$as_ac_Header'}'`
5164 { echo "$as_me:$LINENO: result: $ac_res" >&5
5165 echo "${ECHO_T}$ac_res" >&6; }
5166 else
5167 # Is the header compilable?
5168 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5169 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5170 cat >conftest.$ac_ext <<_ACEOF
5171 /* confdefs.h. */
5172 _ACEOF
5173 cat confdefs.h >>conftest.$ac_ext
5174 cat >>conftest.$ac_ext <<_ACEOF
5175 /* end confdefs.h. */
5176 $ac_includes_default
5177 #include <$ac_header>
5178 _ACEOF
5179 rm -f conftest.$ac_objext
5180 if { (ac_try="$ac_compile"
5181 case "(($ac_try" in
5182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5183 *) ac_try_echo=$ac_try;;
5184 esac
5185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5186 (eval "$ac_compile") 2>conftest.er1
5187 ac_status=$?
5188 grep -v '^ *+' conftest.er1 >conftest.err
5189 rm -f conftest.er1
5190 cat conftest.err >&5
5191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192 (exit $ac_status); } &&
5193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5194 { (case "(($ac_try" in
5195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5196 *) ac_try_echo=$ac_try;;
5197 esac
5198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5199 (eval "$ac_try") 2>&5
5200 ac_status=$?
5201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202 (exit $ac_status); }; } &&
5203 { ac_try='test -s conftest.$ac_objext'
5204 { (case "(($ac_try" in
5205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5206 *) ac_try_echo=$ac_try;;
5207 esac
5208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5209 (eval "$ac_try") 2>&5
5210 ac_status=$?
5211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212 (exit $ac_status); }; }; then
5213 ac_header_compiler=yes
5214 else
5215 echo "$as_me: failed program was:" >&5
5216 sed 's/^/| /' conftest.$ac_ext >&5
5217
5218 ac_header_compiler=no
5219 fi
5220
5221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5222 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5223 echo "${ECHO_T}$ac_header_compiler" >&6; }
5224
5225 # Is the header present?
5226 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5227 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5228 cat >conftest.$ac_ext <<_ACEOF
5229 /* confdefs.h. */
5230 _ACEOF
5231 cat confdefs.h >>conftest.$ac_ext
5232 cat >>conftest.$ac_ext <<_ACEOF
5233 /* end confdefs.h. */
5234 #include <$ac_header>
5235 _ACEOF
5236 if { (ac_try="$ac_cpp conftest.$ac_ext"
5237 case "(($ac_try" in
5238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5239 *) ac_try_echo=$ac_try;;
5240 esac
5241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5242 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5243 ac_status=$?
5244 grep -v '^ *+' conftest.er1 >conftest.err
5245 rm -f conftest.er1
5246 cat conftest.err >&5
5247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248 (exit $ac_status); } >/dev/null; then
5249 if test -s conftest.err; then
5250 ac_cpp_err=$ac_c_preproc_warn_flag
5251 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5252 else
5253 ac_cpp_err=
5254 fi
5255 else
5256 ac_cpp_err=yes
5257 fi
5258 if test -z "$ac_cpp_err"; then
5259 ac_header_preproc=yes
5260 else
5261 echo "$as_me: failed program was:" >&5
5262 sed 's/^/| /' conftest.$ac_ext >&5
5263
5264 ac_header_preproc=no
5265 fi
5266
5267 rm -f conftest.err conftest.$ac_ext
5268 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5269 echo "${ECHO_T}$ac_header_preproc" >&6; }
5270
5271 # So? What about this header?
5272 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5273 yes:no: )
5274 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5275 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5276 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5277 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5278 ac_header_preproc=yes
5279 ;;
5280 no:yes:* )
5281 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5282 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5283 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5284 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5285 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5286 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5287 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5288 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5289 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5290 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5291 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5292 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5293 ( cat <<\_ASBOX
5294 ## ---------------------------------------------------------------------- ##
5295 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
5296 ## ---------------------------------------------------------------------- ##
5297 _ASBOX
5298 ) | sed "s/^/$as_me: WARNING: /" >&2
5299 ;;
5300 esac
5301 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5303 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5304 echo $ECHO_N "(cached) $ECHO_C" >&6
5305 else
5306 eval "$as_ac_Header=\$ac_header_preproc"
5307 fi
5308 ac_res=`eval echo '${'$as_ac_Header'}'`
5309 { echo "$as_me:$LINENO: result: $ac_res" >&5
5310 echo "${ECHO_T}$ac_res" >&6; }
5311
5312 fi
5313 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5314 cat >>confdefs.h <<_ACEOF
5315 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5316 _ACEOF
5317
5318 fi
5319
5320 done
5321
5322 ac_ext=cpp
5323 ac_cpp='$CXXCPP $CPPFLAGS'
5324 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5325 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5326 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5327 if test -z "$CXX"; then
5328 if test -n "$CCC"; then
5329 CXX=$CCC
5330 else
5331 if test -n "$ac_tool_prefix"; then
5332 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5333 do
5334 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5335 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5336 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5338 if test "${ac_cv_prog_CXX+set}" = set; then
5339 echo $ECHO_N "(cached) $ECHO_C" >&6
5340 else
5341 if test -n "$CXX"; then
5342 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5343 else
5344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5345 for as_dir in $PATH
5346 do
5347 IFS=$as_save_IFS
5348 test -z "$as_dir" && as_dir=.
5349 for ac_exec_ext in '' $ac_executable_extensions; do
5350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5351 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5353 break 2
5354 fi
5355 done
5356 done
5357 IFS=$as_save_IFS
5358
5359 fi
5360 fi
5361 CXX=$ac_cv_prog_CXX
5362 if test -n "$CXX"; then
5363 { echo "$as_me:$LINENO: result: $CXX" >&5
5364 echo "${ECHO_T}$CXX" >&6; }
5365 else
5366 { echo "$as_me:$LINENO: result: no" >&5
5367 echo "${ECHO_T}no" >&6; }
5368 fi
5369
5370
5371 test -n "$CXX" && break
5372 done
5373 fi
5374 if test -z "$CXX"; then
5375 ac_ct_CXX=$CXX
5376 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5377 do
5378 # Extract the first word of "$ac_prog", so it can be a program name with args.
5379 set dummy $ac_prog; ac_word=$2
5380 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5382 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5383 echo $ECHO_N "(cached) $ECHO_C" >&6
5384 else
5385 if test -n "$ac_ct_CXX"; then
5386 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5387 else
5388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5389 for as_dir in $PATH
5390 do
5391 IFS=$as_save_IFS
5392 test -z "$as_dir" && as_dir=.
5393 for ac_exec_ext in '' $ac_executable_extensions; do
5394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5395 ac_cv_prog_ac_ct_CXX="$ac_prog"
5396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5397 break 2
5398 fi
5399 done
5400 done
5401 IFS=$as_save_IFS
5402
5403 fi
5404 fi
5405 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5406 if test -n "$ac_ct_CXX"; then
5407 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5408 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5409 else
5410 { echo "$as_me:$LINENO: result: no" >&5
5411 echo "${ECHO_T}no" >&6; }
5412 fi
5413
5414
5415 test -n "$ac_ct_CXX" && break
5416 done
5417
5418 if test "x$ac_ct_CXX" = x; then
5419 CXX="g++"
5420 else
5421 case $cross_compiling:$ac_tool_warned in
5422 yes:)
5423 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5424 whose name does not start with the host triplet. If you think this
5425 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
5426 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5427 whose name does not start with the host triplet. If you think this
5428 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
5429 ac_tool_warned=yes ;;
5430 esac
5431 CXX=$ac_ct_CXX
5432 fi
5433 fi
5434
5435 fi
5436 fi
5437 # Provide some information about the compiler.
5438 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5439 ac_compiler=`set X $ac_compile; echo $2`
5440 { (ac_try="$ac_compiler --version >&5"
5441 case "(($ac_try" in
5442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5443 *) ac_try_echo=$ac_try;;
5444 esac
5445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5446 (eval "$ac_compiler --version >&5") 2>&5
5447 ac_status=$?
5448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449 (exit $ac_status); }
5450 { (ac_try="$ac_compiler -v >&5"
5451 case "(($ac_try" in
5452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5453 *) ac_try_echo=$ac_try;;
5454 esac
5455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5456 (eval "$ac_compiler -v >&5") 2>&5
5457 ac_status=$?
5458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459 (exit $ac_status); }
5460 { (ac_try="$ac_compiler -V >&5"
5461 case "(($ac_try" in
5462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5463 *) ac_try_echo=$ac_try;;
5464 esac
5465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5466 (eval "$ac_compiler -V >&5") 2>&5
5467 ac_status=$?
5468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469 (exit $ac_status); }
5470
5471 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5472 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5473 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5474 echo $ECHO_N "(cached) $ECHO_C" >&6
5475 else
5476 cat >conftest.$ac_ext <<_ACEOF
5477 /* confdefs.h. */
5478 _ACEOF
5479 cat confdefs.h >>conftest.$ac_ext
5480 cat >>conftest.$ac_ext <<_ACEOF
5481 /* end confdefs.h. */
5482
5483 int
5484 main ()
5485 {
5486 #ifndef __GNUC__
5487 choke me
5488 #endif
5489
5490 ;
5491 return 0;
5492 }
5493 _ACEOF
5494 rm -f conftest.$ac_objext
5495 if { (ac_try="$ac_compile"
5496 case "(($ac_try" in
5497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5498 *) ac_try_echo=$ac_try;;
5499 esac
5500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5501 (eval "$ac_compile") 2>conftest.er1
5502 ac_status=$?
5503 grep -v '^ *+' conftest.er1 >conftest.err
5504 rm -f conftest.er1
5505 cat conftest.err >&5
5506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507 (exit $ac_status); } &&
5508 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5509 { (case "(($ac_try" in
5510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5511 *) ac_try_echo=$ac_try;;
5512 esac
5513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5514 (eval "$ac_try") 2>&5
5515 ac_status=$?
5516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517 (exit $ac_status); }; } &&
5518 { ac_try='test -s conftest.$ac_objext'
5519 { (case "(($ac_try" in
5520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5521 *) ac_try_echo=$ac_try;;
5522 esac
5523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5524 (eval "$ac_try") 2>&5
5525 ac_status=$?
5526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527 (exit $ac_status); }; }; then
5528 ac_compiler_gnu=yes
5529 else
5530 echo "$as_me: failed program was:" >&5
5531 sed 's/^/| /' conftest.$ac_ext >&5
5532
5533 ac_compiler_gnu=no
5534 fi
5535
5536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5537 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5538
5539 fi
5540 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5541 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5542 GXX=`test $ac_compiler_gnu = yes && echo yes`
5543 ac_test_CXXFLAGS=${CXXFLAGS+set}
5544 ac_save_CXXFLAGS=$CXXFLAGS
5545 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5546 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5547 if test "${ac_cv_prog_cxx_g+set}" = set; then
5548 echo $ECHO_N "(cached) $ECHO_C" >&6
5549 else
5550 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5551 ac_cxx_werror_flag=yes
5552 ac_cv_prog_cxx_g=no
5553 CXXFLAGS="-g"
5554 cat >conftest.$ac_ext <<_ACEOF
5555 /* confdefs.h. */
5556 _ACEOF
5557 cat confdefs.h >>conftest.$ac_ext
5558 cat >>conftest.$ac_ext <<_ACEOF
5559 /* end confdefs.h. */
5560
5561 int
5562 main ()
5563 {
5564
5565 ;
5566 return 0;
5567 }
5568 _ACEOF
5569 rm -f conftest.$ac_objext
5570 if { (ac_try="$ac_compile"
5571 case "(($ac_try" in
5572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5573 *) ac_try_echo=$ac_try;;
5574 esac
5575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5576 (eval "$ac_compile") 2>conftest.er1
5577 ac_status=$?
5578 grep -v '^ *+' conftest.er1 >conftest.err
5579 rm -f conftest.er1
5580 cat conftest.err >&5
5581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582 (exit $ac_status); } &&
5583 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5584 { (case "(($ac_try" in
5585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5586 *) ac_try_echo=$ac_try;;
5587 esac
5588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5589 (eval "$ac_try") 2>&5
5590 ac_status=$?
5591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592 (exit $ac_status); }; } &&
5593 { ac_try='test -s conftest.$ac_objext'
5594 { (case "(($ac_try" in
5595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5596 *) ac_try_echo=$ac_try;;
5597 esac
5598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5599 (eval "$ac_try") 2>&5
5600 ac_status=$?
5601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602 (exit $ac_status); }; }; then
5603 ac_cv_prog_cxx_g=yes
5604 else
5605 echo "$as_me: failed program was:" >&5
5606 sed 's/^/| /' conftest.$ac_ext >&5
5607
5608 CXXFLAGS=""
5609 cat >conftest.$ac_ext <<_ACEOF
5610 /* confdefs.h. */
5611 _ACEOF
5612 cat confdefs.h >>conftest.$ac_ext
5613 cat >>conftest.$ac_ext <<_ACEOF
5614 /* end confdefs.h. */
5615
5616 int
5617 main ()
5618 {
5619
5620 ;
5621 return 0;
5622 }
5623 _ACEOF
5624 rm -f conftest.$ac_objext
5625 if { (ac_try="$ac_compile"
5626 case "(($ac_try" in
5627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5628 *) ac_try_echo=$ac_try;;
5629 esac
5630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5631 (eval "$ac_compile") 2>conftest.er1
5632 ac_status=$?
5633 grep -v '^ *+' conftest.er1 >conftest.err
5634 rm -f conftest.er1
5635 cat conftest.err >&5
5636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5637 (exit $ac_status); } &&
5638 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5639 { (case "(($ac_try" in
5640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5641 *) ac_try_echo=$ac_try;;
5642 esac
5643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5644 (eval "$ac_try") 2>&5
5645 ac_status=$?
5646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5647 (exit $ac_status); }; } &&
5648 { ac_try='test -s conftest.$ac_objext'
5649 { (case "(($ac_try" in
5650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5651 *) ac_try_echo=$ac_try;;
5652 esac
5653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5654 (eval "$ac_try") 2>&5
5655 ac_status=$?
5656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657 (exit $ac_status); }; }; then
5658 :
5659 else
5660 echo "$as_me: failed program was:" >&5
5661 sed 's/^/| /' conftest.$ac_ext >&5
5662
5663 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5664 CXXFLAGS="-g"
5665 cat >conftest.$ac_ext <<_ACEOF
5666 /* confdefs.h. */
5667 _ACEOF
5668 cat confdefs.h >>conftest.$ac_ext
5669 cat >>conftest.$ac_ext <<_ACEOF
5670 /* end confdefs.h. */
5671
5672 int
5673 main ()
5674 {
5675
5676 ;
5677 return 0;
5678 }
5679 _ACEOF
5680 rm -f conftest.$ac_objext
5681 if { (ac_try="$ac_compile"
5682 case "(($ac_try" in
5683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5684 *) ac_try_echo=$ac_try;;
5685 esac
5686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5687 (eval "$ac_compile") 2>conftest.er1
5688 ac_status=$?
5689 grep -v '^ *+' conftest.er1 >conftest.err
5690 rm -f conftest.er1
5691 cat conftest.err >&5
5692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693 (exit $ac_status); } &&
5694 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5695 { (case "(($ac_try" in
5696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5697 *) ac_try_echo=$ac_try;;
5698 esac
5699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5700 (eval "$ac_try") 2>&5
5701 ac_status=$?
5702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703 (exit $ac_status); }; } &&
5704 { ac_try='test -s conftest.$ac_objext'
5705 { (case "(($ac_try" in
5706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5707 *) ac_try_echo=$ac_try;;
5708 esac
5709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5710 (eval "$ac_try") 2>&5
5711 ac_status=$?
5712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713 (exit $ac_status); }; }; then
5714 ac_cv_prog_cxx_g=yes
5715 else
5716 echo "$as_me: failed program was:" >&5
5717 sed 's/^/| /' conftest.$ac_ext >&5
5718
5719
5720 fi
5721
5722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5723 fi
5724
5725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5726 fi
5727
5728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5729 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5730 fi
5731 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5732 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5733 if test "$ac_test_CXXFLAGS" = set; then
5734 CXXFLAGS=$ac_save_CXXFLAGS
5735 elif test $ac_cv_prog_cxx_g = yes; then
5736 if test "$GXX" = yes; then
5737 CXXFLAGS="-g -O2"
5738 else
5739 CXXFLAGS="-g"
5740 fi
5741 else
5742 if test "$GXX" = yes; then
5743 CXXFLAGS="-O2"
5744 else
5745 CXXFLAGS=
5746 fi
5747 fi
5748 ac_ext=cpp
5749 ac_cpp='$CXXCPP $CPPFLAGS'
5750 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5751 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5752 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5753
5754 depcc="$CXX" am_compiler_list=
5755
5756 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5757 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5758 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5759 echo $ECHO_N "(cached) $ECHO_C" >&6
5760 else
5761 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5762 # We make a subdir and do the tests there. Otherwise we can end up
5763 # making bogus files that we don't know about and never remove. For
5764 # instance it was reported that on HP-UX the gcc test will end up
5765 # making a dummy file named `D' -- because `-MD' means `put the output
5766 # in D'.
5767 mkdir conftest.dir
5768 # Copy depcomp to subdir because otherwise we won't find it if we're
5769 # using a relative directory.
5770 cp "$am_depcomp" conftest.dir
5771 cd conftest.dir
5772 # We will build objects and dependencies in a subdirectory because
5773 # it helps to detect inapplicable dependency modes. For instance
5774 # both Tru64's cc and ICC support -MD to output dependencies as a
5775 # side effect of compilation, but ICC will put the dependencies in
5776 # the current directory while Tru64 will put them in the object
5777 # directory.
5778 mkdir sub
5779
5780 am_cv_CXX_dependencies_compiler_type=none
5781 if test "$am_compiler_list" = ""; then
5782 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5783 fi
5784 for depmode in $am_compiler_list; do
5785 # Setup a source with many dependencies, because some compilers
5786 # like to wrap large dependency lists on column 80 (with \), and
5787 # we should not choose a depcomp mode which is confused by this.
5788 #
5789 # We need to recreate these files for each test, as the compiler may
5790 # overwrite some of them when testing with obscure command lines.
5791 # This happens at least with the AIX C compiler.
5792 : > sub/conftest.c
5793 for i in 1 2 3 4 5 6; do
5794 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5795 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5796 # Solaris 8's {/usr,}/bin/sh.
5797 touch sub/conftst$i.h
5798 done
5799 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5800
5801 case $depmode in
5802 nosideeffect)
5803 # after this tag, mechanisms are not by side-effect, so they'll
5804 # only be used when explicitly requested
5805 if test "x$enable_dependency_tracking" = xyes; then
5806 continue
5807 else
5808 break
5809 fi
5810 ;;
5811 none) break ;;
5812 esac
5813 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5814 # mode. It turns out that the SunPro C++ compiler does not properly
5815 # handle `-M -o', and we need to detect this.
5816 if depmode=$depmode \
5817 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5818 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5819 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5820 >/dev/null 2>conftest.err &&
5821 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5822 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5823 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5824 # icc doesn't choke on unknown options, it will just issue warnings
5825 # or remarks (even with -Werror). So we grep stderr for any message
5826 # that says an option was ignored or not supported.
5827 # When given -MP, icc 7.0 and 7.1 complain thusly:
5828 # icc: Command line warning: ignoring option '-M'; no argument required
5829 # The diagnosis changed in icc 8.0:
5830 # icc: Command line remark: option '-MP' not supported
5831 if (grep 'ignoring option' conftest.err ||
5832 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5833 am_cv_CXX_dependencies_compiler_type=$depmode
5834 break
5835 fi
5836 fi
5837 done
5838
5839 cd ..
5840 rm -rf conftest.dir
5841 else
5842 am_cv_CXX_dependencies_compiler_type=none
5843 fi
5844
5845 fi
5846 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5847 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5848 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5849
5850
5851
5852 if
5853 test "x$enable_dependency_tracking" != xno \
5854 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5855 am__fastdepCXX_TRUE=
5856 am__fastdepCXX_FALSE='#'
5857 else
5858 am__fastdepCXX_TRUE='#'
5859 am__fastdepCXX_FALSE=
5860 fi
5861
5862
5863
5864
5865 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5866 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5867 (test "X$CXX" != "Xg++"))) ; then
5868 ac_ext=cpp
5869 ac_cpp='$CXXCPP $CPPFLAGS'
5870 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5871 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5872 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5873 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5874 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5875 if test -z "$CXXCPP"; then
5876 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5877 echo $ECHO_N "(cached) $ECHO_C" >&6
5878 else
5879 # Double quotes because CXXCPP needs to be expanded
5880 for CXXCPP in "$CXX -E" "/lib/cpp"
5881 do
5882 ac_preproc_ok=false
5883 for ac_cxx_preproc_warn_flag in '' yes
5884 do
5885 # Use a header file that comes with gcc, so configuring glibc
5886 # with a fresh cross-compiler works.
5887 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5888 # <limits.h> exists even on freestanding compilers.
5889 # On the NeXT, cc -E runs the code through the compiler's parser,
5890 # not just through cpp. "Syntax error" is here to catch this case.
5891 cat >conftest.$ac_ext <<_ACEOF
5892 /* confdefs.h. */
5893 _ACEOF
5894 cat confdefs.h >>conftest.$ac_ext
5895 cat >>conftest.$ac_ext <<_ACEOF
5896 /* end confdefs.h. */
5897 #ifdef __STDC__
5898 # include <limits.h>
5899 #else
5900 # include <assert.h>
5901 #endif
5902 Syntax error
5903 _ACEOF
5904 if { (ac_try="$ac_cpp conftest.$ac_ext"
5905 case "(($ac_try" in
5906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5907 *) ac_try_echo=$ac_try;;
5908 esac
5909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5910 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5911 ac_status=$?
5912 grep -v '^ *+' conftest.er1 >conftest.err
5913 rm -f conftest.er1
5914 cat conftest.err >&5
5915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916 (exit $ac_status); } >/dev/null; then
5917 if test -s conftest.err; then
5918 ac_cpp_err=$ac_cxx_preproc_warn_flag
5919 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5920 else
5921 ac_cpp_err=
5922 fi
5923 else
5924 ac_cpp_err=yes
5925 fi
5926 if test -z "$ac_cpp_err"; then
5927 :
5928 else
5929 echo "$as_me: failed program was:" >&5
5930 sed 's/^/| /' conftest.$ac_ext >&5
5931
5932 # Broken: fails on valid input.
5933 continue
5934 fi
5935
5936 rm -f conftest.err conftest.$ac_ext
5937
5938 # OK, works on sane cases. Now check whether nonexistent headers
5939 # can be detected and how.
5940 cat >conftest.$ac_ext <<_ACEOF
5941 /* confdefs.h. */
5942 _ACEOF
5943 cat confdefs.h >>conftest.$ac_ext
5944 cat >>conftest.$ac_ext <<_ACEOF
5945 /* end confdefs.h. */
5946 #include <ac_nonexistent.h>
5947 _ACEOF
5948 if { (ac_try="$ac_cpp conftest.$ac_ext"
5949 case "(($ac_try" in
5950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5951 *) ac_try_echo=$ac_try;;
5952 esac
5953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5954 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5955 ac_status=$?
5956 grep -v '^ *+' conftest.er1 >conftest.err
5957 rm -f conftest.er1
5958 cat conftest.err >&5
5959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960 (exit $ac_status); } >/dev/null; then
5961 if test -s conftest.err; then
5962 ac_cpp_err=$ac_cxx_preproc_warn_flag
5963 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5964 else
5965 ac_cpp_err=
5966 fi
5967 else
5968 ac_cpp_err=yes
5969 fi
5970 if test -z "$ac_cpp_err"; then
5971 # Broken: success on invalid input.
5972 continue
5973 else
5974 echo "$as_me: failed program was:" >&5
5975 sed 's/^/| /' conftest.$ac_ext >&5
5976
5977 # Passes both tests.
5978 ac_preproc_ok=:
5979 break
5980 fi
5981
5982 rm -f conftest.err conftest.$ac_ext
5983
5984 done
5985 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5986 rm -f conftest.err conftest.$ac_ext
5987 if $ac_preproc_ok; then
5988 break
5989 fi
5990
5991 done
5992 ac_cv_prog_CXXCPP=$CXXCPP
5993
5994 fi
5995 CXXCPP=$ac_cv_prog_CXXCPP
5996 else
5997 ac_cv_prog_CXXCPP=$CXXCPP
5998 fi
5999 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6000 echo "${ECHO_T}$CXXCPP" >&6; }
6001 ac_preproc_ok=false
6002 for ac_cxx_preproc_warn_flag in '' yes
6003 do
6004 # Use a header file that comes with gcc, so configuring glibc
6005 # with a fresh cross-compiler works.
6006 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6007 # <limits.h> exists even on freestanding compilers.
6008 # On the NeXT, cc -E runs the code through the compiler's parser,
6009 # not just through cpp. "Syntax error" is here to catch this case.
6010 cat >conftest.$ac_ext <<_ACEOF
6011 /* confdefs.h. */
6012 _ACEOF
6013 cat confdefs.h >>conftest.$ac_ext
6014 cat >>conftest.$ac_ext <<_ACEOF
6015 /* end confdefs.h. */
6016 #ifdef __STDC__
6017 # include <limits.h>
6018 #else
6019 # include <assert.h>
6020 #endif
6021 Syntax error
6022 _ACEOF
6023 if { (ac_try="$ac_cpp conftest.$ac_ext"
6024 case "(($ac_try" in
6025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6026 *) ac_try_echo=$ac_try;;
6027 esac
6028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6029 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6030 ac_status=$?
6031 grep -v '^ *+' conftest.er1 >conftest.err
6032 rm -f conftest.er1
6033 cat conftest.err >&5
6034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6035 (exit $ac_status); } >/dev/null; then
6036 if test -s conftest.err; then
6037 ac_cpp_err=$ac_cxx_preproc_warn_flag
6038 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6039 else
6040 ac_cpp_err=
6041 fi
6042 else
6043 ac_cpp_err=yes
6044 fi
6045 if test -z "$ac_cpp_err"; then
6046 :
6047 else
6048 echo "$as_me: failed program was:" >&5
6049 sed 's/^/| /' conftest.$ac_ext >&5
6050
6051 # Broken: fails on valid input.
6052 continue
6053 fi
6054
6055 rm -f conftest.err conftest.$ac_ext
6056
6057 # OK, works on sane cases. Now check whether nonexistent headers
6058 # can be detected and how.
6059 cat >conftest.$ac_ext <<_ACEOF
6060 /* confdefs.h. */
6061 _ACEOF
6062 cat confdefs.h >>conftest.$ac_ext
6063 cat >>conftest.$ac_ext <<_ACEOF
6064 /* end confdefs.h. */
6065 #include <ac_nonexistent.h>
6066 _ACEOF
6067 if { (ac_try="$ac_cpp conftest.$ac_ext"
6068 case "(($ac_try" in
6069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6070 *) ac_try_echo=$ac_try;;
6071 esac
6072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6073 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6074 ac_status=$?
6075 grep -v '^ *+' conftest.er1 >conftest.err
6076 rm -f conftest.er1
6077 cat conftest.err >&5
6078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6079 (exit $ac_status); } >/dev/null; then
6080 if test -s conftest.err; then
6081 ac_cpp_err=$ac_cxx_preproc_warn_flag
6082 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6083 else
6084 ac_cpp_err=
6085 fi
6086 else
6087 ac_cpp_err=yes
6088 fi
6089 if test -z "$ac_cpp_err"; then
6090 # Broken: success on invalid input.
6091 continue
6092 else
6093 echo "$as_me: failed program was:" >&5
6094 sed 's/^/| /' conftest.$ac_ext >&5
6095
6096 # Passes both tests.
6097 ac_preproc_ok=:
6098 break
6099 fi
6100
6101 rm -f conftest.err conftest.$ac_ext
6102
6103 done
6104 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6105 rm -f conftest.err conftest.$ac_ext
6106 if $ac_preproc_ok; then
6107 :
6108 else
6109 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6110 See \`config.log' for more details." >&5
6111 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6112 See \`config.log' for more details." >&2;}
6113 { (exit 1); exit 1; }; }
6114 fi
6115
6116 ac_ext=cpp
6117 ac_cpp='$CXXCPP $CPPFLAGS'
6118 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6119 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6120 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6121
6122 fi
6123
6124
6125 ac_ext=f
6126 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6127 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6128 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6129 if test -n "$ac_tool_prefix"; then
6130 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
6131 do
6132 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6133 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6134 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6136 if test "${ac_cv_prog_F77+set}" = set; then
6137 echo $ECHO_N "(cached) $ECHO_C" >&6
6138 else
6139 if test -n "$F77"; then
6140 ac_cv_prog_F77="$F77" # Let the user override the test.
6141 else
6142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6143 for as_dir in $PATH
6144 do
6145 IFS=$as_save_IFS
6146 test -z "$as_dir" && as_dir=.
6147 for ac_exec_ext in '' $ac_executable_extensions; do
6148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6149 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6151 break 2
6152 fi
6153 done
6154 done
6155 IFS=$as_save_IFS
6156
6157 fi
6158 fi
6159 F77=$ac_cv_prog_F77
6160 if test -n "$F77"; then
6161 { echo "$as_me:$LINENO: result: $F77" >&5
6162 echo "${ECHO_T}$F77" >&6; }
6163 else
6164 { echo "$as_me:$LINENO: result: no" >&5
6165 echo "${ECHO_T}no" >&6; }
6166 fi
6167
6168
6169 test -n "$F77" && break
6170 done
6171 fi
6172 if test -z "$F77"; then
6173 ac_ct_F77=$F77
6174 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
6175 do
6176 # Extract the first word of "$ac_prog", so it can be a program name with args.
6177 set dummy $ac_prog; ac_word=$2
6178 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6180 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6181 echo $ECHO_N "(cached) $ECHO_C" >&6
6182 else
6183 if test -n "$ac_ct_F77"; then
6184 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6185 else
6186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6187 for as_dir in $PATH
6188 do
6189 IFS=$as_save_IFS
6190 test -z "$as_dir" && as_dir=.
6191 for ac_exec_ext in '' $ac_executable_extensions; do
6192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6193 ac_cv_prog_ac_ct_F77="$ac_prog"
6194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6195 break 2
6196 fi
6197 done
6198 done
6199 IFS=$as_save_IFS
6200
6201 fi
6202 fi
6203 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6204 if test -n "$ac_ct_F77"; then
6205 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6206 echo "${ECHO_T}$ac_ct_F77" >&6; }
6207 else
6208 { echo "$as_me:$LINENO: result: no" >&5
6209 echo "${ECHO_T}no" >&6; }
6210 fi
6211
6212
6213 test -n "$ac_ct_F77" && break
6214 done
6215
6216 if test "x$ac_ct_F77" = x; then
6217 F77=""
6218 else
6219 case $cross_compiling:$ac_tool_warned in
6220 yes:)
6221 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6222 whose name does not start with the host triplet. If you think this
6223 configuration is useful to you, please write to autoconf@gnu.org." >&5
6224 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6225 whose name does not start with the host triplet. If you think this
6226 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6227 ac_tool_warned=yes ;;
6228 esac
6229 F77=$ac_ct_F77
6230 fi
6231 fi
6232
6233
6234 # Provide some information about the compiler.
6235 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6236 ac_compiler=`set X $ac_compile; echo $2`
6237 { (ac_try="$ac_compiler --version >&5"
6238 case "(($ac_try" in
6239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6240 *) ac_try_echo=$ac_try;;
6241 esac
6242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6243 (eval "$ac_compiler --version >&5") 2>&5
6244 ac_status=$?
6245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246 (exit $ac_status); }
6247 { (ac_try="$ac_compiler -v >&5"
6248 case "(($ac_try" in
6249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6250 *) ac_try_echo=$ac_try;;
6251 esac
6252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6253 (eval "$ac_compiler -v >&5") 2>&5
6254 ac_status=$?
6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 (exit $ac_status); }
6257 { (ac_try="$ac_compiler -V >&5"
6258 case "(($ac_try" in
6259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6260 *) ac_try_echo=$ac_try;;
6261 esac
6262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6263 (eval "$ac_compiler -V >&5") 2>&5
6264 ac_status=$?
6265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266 (exit $ac_status); }
6267 rm -f a.out
6268
6269 # If we don't use `.F' as extension, the preprocessor is not run on the
6270 # input file. (Note that this only needs to work for GNU compilers.)
6271 ac_save_ext=$ac_ext
6272 ac_ext=F
6273 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6274 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6275 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6276 echo $ECHO_N "(cached) $ECHO_C" >&6
6277 else
6278 cat >conftest.$ac_ext <<_ACEOF
6279 program main
6280 #ifndef __GNUC__
6281 choke me
6282 #endif
6283
6284 end
6285 _ACEOF
6286 rm -f conftest.$ac_objext
6287 if { (ac_try="$ac_compile"
6288 case "(($ac_try" in
6289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6290 *) ac_try_echo=$ac_try;;
6291 esac
6292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6293 (eval "$ac_compile") 2>conftest.er1
6294 ac_status=$?
6295 grep -v '^ *+' conftest.er1 >conftest.err
6296 rm -f conftest.er1
6297 cat conftest.err >&5
6298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299 (exit $ac_status); } &&
6300 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6301 { (case "(($ac_try" in
6302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6303 *) ac_try_echo=$ac_try;;
6304 esac
6305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6306 (eval "$ac_try") 2>&5
6307 ac_status=$?
6308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309 (exit $ac_status); }; } &&
6310 { ac_try='test -s conftest.$ac_objext'
6311 { (case "(($ac_try" in
6312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6313 *) ac_try_echo=$ac_try;;
6314 esac
6315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6316 (eval "$ac_try") 2>&5
6317 ac_status=$?
6318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319 (exit $ac_status); }; }; then
6320 ac_compiler_gnu=yes
6321 else
6322 echo "$as_me: failed program was:" >&5
6323 sed 's/^/| /' conftest.$ac_ext >&5
6324
6325 ac_compiler_gnu=no
6326 fi
6327
6328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6329 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6330
6331 fi
6332 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6333 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6334 ac_ext=$ac_save_ext
6335 ac_test_FFLAGS=${FFLAGS+set}
6336 ac_save_FFLAGS=$FFLAGS
6337 FFLAGS=
6338 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6339 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6340 if test "${ac_cv_prog_f77_g+set}" = set; then
6341 echo $ECHO_N "(cached) $ECHO_C" >&6
6342 else
6343 FFLAGS=-g
6344 cat >conftest.$ac_ext <<_ACEOF
6345 program main
6346
6347 end
6348 _ACEOF
6349 rm -f conftest.$ac_objext
6350 if { (ac_try="$ac_compile"
6351 case "(($ac_try" in
6352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6353 *) ac_try_echo=$ac_try;;
6354 esac
6355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6356 (eval "$ac_compile") 2>conftest.er1
6357 ac_status=$?
6358 grep -v '^ *+' conftest.er1 >conftest.err
6359 rm -f conftest.er1
6360 cat conftest.err >&5
6361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); } &&
6363 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6364 { (case "(($ac_try" in
6365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6366 *) ac_try_echo=$ac_try;;
6367 esac
6368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6369 (eval "$ac_try") 2>&5
6370 ac_status=$?
6371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372 (exit $ac_status); }; } &&
6373 { ac_try='test -s conftest.$ac_objext'
6374 { (case "(($ac_try" in
6375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6376 *) ac_try_echo=$ac_try;;
6377 esac
6378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6379 (eval "$ac_try") 2>&5
6380 ac_status=$?
6381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382 (exit $ac_status); }; }; then
6383 ac_cv_prog_f77_g=yes
6384 else
6385 echo "$as_me: failed program was:" >&5
6386 sed 's/^/| /' conftest.$ac_ext >&5
6387
6388 ac_cv_prog_f77_g=no
6389 fi
6390
6391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6392
6393 fi
6394 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6395 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6396 if test "$ac_test_FFLAGS" = set; then
6397 FFLAGS=$ac_save_FFLAGS
6398 elif test $ac_cv_prog_f77_g = yes; then
6399 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6400 FFLAGS="-g -O2"
6401 else
6402 FFLAGS="-g"
6403 fi
6404 else
6405 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6406 FFLAGS="-O2"
6407 else
6408 FFLAGS=
6409 fi
6410 fi
6411
6412 G77=`test $ac_compiler_gnu = yes && echo yes`
6413 ac_ext=c
6414 ac_cpp='$CPP $CPPFLAGS'
6415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6418
6419
6420
6421 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6422
6423 # find the maximum length of command line arguments
6424 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6425 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6426 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6427 echo $ECHO_N "(cached) $ECHO_C" >&6
6428 else
6429 i=0
6430 teststring="ABCD"
6431
6432 case $build_os in
6433 msdosdjgpp*)
6434 # On DJGPP, this test can blow up pretty badly due to problems in libc
6435 # (any single argument exceeding 2000 bytes causes a buffer overrun
6436 # during glob expansion). Even if it were fixed, the result of this
6437 # check would be larger than it should be.
6438 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6439 ;;
6440
6441 gnu*)
6442 # Under GNU Hurd, this test is not required because there is
6443 # no limit to the length of command line arguments.
6444 # Libtool will interpret -1 as no limit whatsoever
6445 lt_cv_sys_max_cmd_len=-1;
6446 ;;
6447
6448 cygwin* | mingw*)
6449 # On Win9x/ME, this test blows up -- it succeeds, but takes
6450 # about 5 minutes as the teststring grows exponentially.
6451 # Worse, since 9x/ME are not pre-emptively multitasking,
6452 # you end up with a "frozen" computer, even though with patience
6453 # the test eventually succeeds (with a max line length of 256k).
6454 # Instead, let's just punt: use the minimum linelength reported by
6455 # all of the supported platforms: 8192 (on NT/2K/XP).
6456 lt_cv_sys_max_cmd_len=8192;
6457 ;;
6458
6459 amigaos*)
6460 # On AmigaOS with pdksh, this test takes hours, literally.
6461 # So we just punt and use a minimum line length of 8192.
6462 lt_cv_sys_max_cmd_len=8192;
6463 ;;
6464
6465 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6466 # This has been around since 386BSD, at least. Likely further.
6467 if test -x /sbin/sysctl; then
6468 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6469 elif test -x /usr/sbin/sysctl; then
6470 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6471 else
6472 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6473 fi
6474 # And add a safety zone
6475 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6476 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6477 ;;
6478
6479 interix*)
6480 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6481 lt_cv_sys_max_cmd_len=196608
6482 ;;
6483
6484 osf*)
6485 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6486 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6487 # nice to cause kernel panics so lets avoid the loop below.
6488 # First set a reasonable default.
6489 lt_cv_sys_max_cmd_len=16384
6490 #
6491 if test -x /sbin/sysconfig; then
6492 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6493 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6494 esac
6495 fi
6496 ;;
6497 sco3.2v5*)
6498 lt_cv_sys_max_cmd_len=102400
6499 ;;
6500 sysv5* | sco5v6* | sysv4.2uw2*)
6501 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6502 if test -n "$kargmax"; then
6503 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6504 else
6505 lt_cv_sys_max_cmd_len=32768
6506 fi
6507 ;;
6508 *)
6509 # If test is not a shell built-in, we'll probably end up computing a
6510 # maximum length that is only half of the actual maximum length, but
6511 # we can't tell.
6512 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6513 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6514 = "XX$teststring") >/dev/null 2>&1 &&
6515 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6516 lt_cv_sys_max_cmd_len=$new_result &&
6517 test $i != 17 # 1/2 MB should be enough
6518 do
6519 i=`expr $i + 1`
6520 teststring=$teststring$teststring
6521 done
6522 teststring=
6523 # Add a significant safety factor because C++ compilers can tack on massive
6524 # amounts of additional arguments before passing them to the linker.
6525 # It appears as though 1/2 is a usable value.
6526 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6527 ;;
6528 esac
6529
6530 fi
6531
6532 if test -n $lt_cv_sys_max_cmd_len ; then
6533 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6534 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6535 else
6536 { echo "$as_me:$LINENO: result: none" >&5
6537 echo "${ECHO_T}none" >&6; }
6538 fi
6539
6540
6541
6542
6543 # Check for command to grab the raw symbol name followed by C symbol from nm.
6544 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6545 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6546 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6547 echo $ECHO_N "(cached) $ECHO_C" >&6
6548 else
6549
6550 # These are sane defaults that work on at least a few old systems.
6551 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6552
6553 # Character class describing NM global symbol codes.
6554 symcode='[BCDEGRST]'
6555
6556 # Regexp to match symbols that can be accessed directly from C.
6557 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6558
6559 # Transform an extracted symbol line into a proper C declaration
6560 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6561
6562 # Transform an extracted symbol line into symbol name and symbol address
6563 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'"
6564
6565 # Define system-specific variables.
6566 case $host_os in
6567 aix*)
6568 symcode='[BCDT]'
6569 ;;
6570 cygwin* | mingw* | pw32*)
6571 symcode='[ABCDGISTW]'
6572 ;;
6573 hpux*) # Its linker distinguishes data from code symbols
6574 if test "$host_cpu" = ia64; then
6575 symcode='[ABCDEGRST]'
6576 fi
6577 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6578 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'"
6579 ;;
6580 linux* | k*bsd*-gnu)
6581 if test "$host_cpu" = ia64; then
6582 symcode='[ABCDGIRSTW]'
6583 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6584 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'"
6585 fi
6586 ;;
6587 irix* | nonstopux*)
6588 symcode='[BCDEGRST]'
6589 ;;
6590 osf*)
6591 symcode='[BCDEGQRST]'
6592 ;;
6593 solaris*)
6594 symcode='[BDRT]'
6595 ;;
6596 sco3.2v5*)
6597 symcode='[DT]'
6598 ;;
6599 sysv4.2uw2*)
6600 symcode='[DT]'
6601 ;;
6602 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6603 symcode='[ABDT]'
6604 ;;
6605 sysv4)
6606 symcode='[DFNSTU]'
6607 ;;
6608 esac
6609
6610 # Handle CRLF in mingw tool chain
6611 opt_cr=
6612 case $build_os in
6613 mingw*)
6614 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6615 ;;
6616 esac
6617
6618 # If we're using GNU nm, then use its standard symbol codes.
6619 case `$NM -V 2>&1` in
6620 *GNU* | *'with BFD'*)
6621 symcode='[ABCDGIRSTW]' ;;
6622 esac
6623
6624 # Try without a prefix undercore, then with it.
6625 for ac_symprfx in "" "_"; do
6626
6627 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6628 symxfrm="\\1 $ac_symprfx\\2 \\2"
6629
6630 # Write the raw and C identifiers.
6631 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6632
6633 # Check to see that the pipe works correctly.
6634 pipe_works=no
6635
6636 rm -f conftest*
6637 cat > conftest.$ac_ext <<EOF
6638 #ifdef __cplusplus
6639 extern "C" {
6640 #endif
6641 char nm_test_var;
6642 void nm_test_func(){}
6643 #ifdef __cplusplus
6644 }
6645 #endif
6646 int main(){nm_test_var='a';nm_test_func();return(0);}
6647 EOF
6648
6649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6650 (eval $ac_compile) 2>&5
6651 ac_status=$?
6652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653 (exit $ac_status); }; then
6654 # Now try to grab the symbols.
6655 nlist=conftest.nm
6656 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6657 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6658 ac_status=$?
6659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660 (exit $ac_status); } && test -s "$nlist"; then
6661 # Try sorting and uniquifying the output.
6662 if sort "$nlist" | uniq > "$nlist"T; then
6663 mv -f "$nlist"T "$nlist"
6664 else
6665 rm -f "$nlist"T
6666 fi
6667
6668 # Make sure that we snagged all the symbols we need.
6669 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6670 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6671 cat <<EOF > conftest.$ac_ext
6672 #ifdef __cplusplus
6673 extern "C" {
6674 #endif
6675
6676 EOF
6677 # Now generate the symbol file.
6678 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6679
6680 cat <<EOF >> conftest.$ac_ext
6681 #if defined (__STDC__) && __STDC__
6682 # define lt_ptr_t void *
6683 #else
6684 # define lt_ptr_t char *
6685 # define const
6686 #endif
6687
6688 /* The mapping between symbol names and symbols. */
6689 const struct {
6690 const char *name;
6691 lt_ptr_t address;
6692 }
6693 lt_preloaded_symbols[] =
6694 {
6695 EOF
6696 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6697 cat <<\EOF >> conftest.$ac_ext
6698 {0, (lt_ptr_t) 0}
6699 };
6700
6701 #ifdef __cplusplus
6702 }
6703 #endif
6704 EOF
6705 # Now try linking the two files.
6706 mv conftest.$ac_objext conftstm.$ac_objext
6707 lt_save_LIBS="$LIBS"
6708 lt_save_CFLAGS="$CFLAGS"
6709 LIBS="conftstm.$ac_objext"
6710 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6712 (eval $ac_link) 2>&5
6713 ac_status=$?
6714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6715 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6716 pipe_works=yes
6717 fi
6718 LIBS="$lt_save_LIBS"
6719 CFLAGS="$lt_save_CFLAGS"
6720 else
6721 echo "cannot find nm_test_func in $nlist" >&5
6722 fi
6723 else
6724 echo "cannot find nm_test_var in $nlist" >&5
6725 fi
6726 else
6727 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6728 fi
6729 else
6730 echo "$progname: failed program was:" >&5
6731 cat conftest.$ac_ext >&5
6732 fi
6733 rm -f conftest* conftst*
6734
6735 # Do not use the global_symbol_pipe unless it works.
6736 if test "$pipe_works" = yes; then
6737 break
6738 else
6739 lt_cv_sys_global_symbol_pipe=
6740 fi
6741 done
6742
6743 fi
6744
6745 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6746 lt_cv_sys_global_symbol_to_cdecl=
6747 fi
6748 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6749 { echo "$as_me:$LINENO: result: failed" >&5
6750 echo "${ECHO_T}failed" >&6; }
6751 else
6752 { echo "$as_me:$LINENO: result: ok" >&5
6753 echo "${ECHO_T}ok" >&6; }
6754 fi
6755
6756 { echo "$as_me:$LINENO: checking for objdir" >&5
6757 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6758 if test "${lt_cv_objdir+set}" = set; then
6759 echo $ECHO_N "(cached) $ECHO_C" >&6
6760 else
6761 rm -f .libs 2>/dev/null
6762 mkdir .libs 2>/dev/null
6763 if test -d .libs; then
6764 lt_cv_objdir=.libs
6765 else
6766 # MS-DOS does not allow filenames that begin with a dot.
6767 lt_cv_objdir=_libs
6768 fi
6769 rmdir .libs 2>/dev/null
6770 fi
6771 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6772 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6773 objdir=$lt_cv_objdir
6774
6775
6776
6777
6778
6779 case $host_os in
6780 aix3*)
6781 # AIX sometimes has problems with the GCC collect2 program. For some
6782 # reason, if we set the COLLECT_NAMES environment variable, the problems
6783 # vanish in a puff of smoke.
6784 if test "X${COLLECT_NAMES+set}" != Xset; then
6785 COLLECT_NAMES=
6786 export COLLECT_NAMES
6787 fi
6788 ;;
6789 esac
6790
6791 # Sed substitution that helps us do robust quoting. It backslashifies
6792 # metacharacters that are still active within double-quoted strings.
6793 Xsed='sed -e 1s/^X//'
6794 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6795
6796 # Same as above, but do not quote variable references.
6797 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6798
6799 # Sed substitution to delay expansion of an escaped shell variable in a
6800 # double_quote_subst'ed string.
6801 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6802
6803 # Sed substitution to avoid accidental globbing in evaled expressions
6804 no_glob_subst='s/\*/\\\*/g'
6805
6806 # Constants:
6807 rm="rm -f"
6808
6809 # Global variables:
6810 default_ofile=libtool
6811 can_build_shared=yes
6812
6813 # All known linkers require a `.a' archive for static linking (except MSVC,
6814 # which needs '.lib').
6815 libext=a
6816 ltmain="$ac_aux_dir/ltmain.sh"
6817 ofile="$default_ofile"
6818 with_gnu_ld="$lt_cv_prog_gnu_ld"
6819
6820 if test -n "$ac_tool_prefix"; then
6821 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6822 set dummy ${ac_tool_prefix}ar; ac_word=$2
6823 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6825 if test "${ac_cv_prog_AR+set}" = set; then
6826 echo $ECHO_N "(cached) $ECHO_C" >&6
6827 else
6828 if test -n "$AR"; then
6829 ac_cv_prog_AR="$AR" # Let the user override the test.
6830 else
6831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6832 for as_dir in $PATH
6833 do
6834 IFS=$as_save_IFS
6835 test -z "$as_dir" && as_dir=.
6836 for ac_exec_ext in '' $ac_executable_extensions; do
6837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6838 ac_cv_prog_AR="${ac_tool_prefix}ar"
6839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6840 break 2
6841 fi
6842 done
6843 done
6844 IFS=$as_save_IFS
6845
6846 fi
6847 fi
6848 AR=$ac_cv_prog_AR
6849 if test -n "$AR"; then
6850 { echo "$as_me:$LINENO: result: $AR" >&5
6851 echo "${ECHO_T}$AR" >&6; }
6852 else
6853 { echo "$as_me:$LINENO: result: no" >&5
6854 echo "${ECHO_T}no" >&6; }
6855 fi
6856
6857
6858 fi
6859 if test -z "$ac_cv_prog_AR"; then
6860 ac_ct_AR=$AR
6861 # Extract the first word of "ar", so it can be a program name with args.
6862 set dummy ar; ac_word=$2
6863 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6865 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6866 echo $ECHO_N "(cached) $ECHO_C" >&6
6867 else
6868 if test -n "$ac_ct_AR"; then
6869 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6870 else
6871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6872 for as_dir in $PATH
6873 do
6874 IFS=$as_save_IFS
6875 test -z "$as_dir" && as_dir=.
6876 for ac_exec_ext in '' $ac_executable_extensions; do
6877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6878 ac_cv_prog_ac_ct_AR="ar"
6879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6880 break 2
6881 fi
6882 done
6883 done
6884 IFS=$as_save_IFS
6885
6886 fi
6887 fi
6888 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6889 if test -n "$ac_ct_AR"; then
6890 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6891 echo "${ECHO_T}$ac_ct_AR" >&6; }
6892 else
6893 { echo "$as_me:$LINENO: result: no" >&5
6894 echo "${ECHO_T}no" >&6; }
6895 fi
6896
6897 if test "x$ac_ct_AR" = x; then
6898 AR="false"
6899 else
6900 case $cross_compiling:$ac_tool_warned in
6901 yes:)
6902 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6903 whose name does not start with the host triplet. If you think this
6904 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
6905 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6906 whose name does not start with the host triplet. If you think this
6907 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
6908 ac_tool_warned=yes ;;
6909 esac
6910 AR=$ac_ct_AR
6911 fi
6912 else
6913 AR="$ac_cv_prog_AR"
6914 fi
6915
6916 if test -n "$ac_tool_prefix"; then
6917 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6918 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6919 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6921 if test "${ac_cv_prog_RANLIB+set}" = set; then
6922 echo $ECHO_N "(cached) $ECHO_C" >&6
6923 else
6924 if test -n "$RANLIB"; then
6925 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6926 else
6927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6928 for as_dir in $PATH
6929 do
6930 IFS=$as_save_IFS
6931 test -z "$as_dir" && as_dir=.
6932 for ac_exec_ext in '' $ac_executable_extensions; do
6933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6934 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6936 break 2
6937 fi
6938 done
6939 done
6940 IFS=$as_save_IFS
6941
6942 fi
6943 fi
6944 RANLIB=$ac_cv_prog_RANLIB
6945 if test -n "$RANLIB"; then
6946 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6947 echo "${ECHO_T}$RANLIB" >&6; }
6948 else
6949 { echo "$as_me:$LINENO: result: no" >&5
6950 echo "${ECHO_T}no" >&6; }
6951 fi
6952
6953
6954 fi
6955 if test -z "$ac_cv_prog_RANLIB"; then
6956 ac_ct_RANLIB=$RANLIB
6957 # Extract the first word of "ranlib", so it can be a program name with args.
6958 set dummy ranlib; ac_word=$2
6959 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6961 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6962 echo $ECHO_N "(cached) $ECHO_C" >&6
6963 else
6964 if test -n "$ac_ct_RANLIB"; then
6965 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6966 else
6967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6968 for as_dir in $PATH
6969 do
6970 IFS=$as_save_IFS
6971 test -z "$as_dir" && as_dir=.
6972 for ac_exec_ext in '' $ac_executable_extensions; do
6973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6974 ac_cv_prog_ac_ct_RANLIB="ranlib"
6975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6976 break 2
6977 fi
6978 done
6979 done
6980 IFS=$as_save_IFS
6981
6982 fi
6983 fi
6984 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6985 if test -n "$ac_ct_RANLIB"; then
6986 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6987 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6988 else
6989 { echo "$as_me:$LINENO: result: no" >&5
6990 echo "${ECHO_T}no" >&6; }
6991 fi
6992
6993 if test "x$ac_ct_RANLIB" = x; then
6994 RANLIB=":"
6995 else
6996 case $cross_compiling:$ac_tool_warned in
6997 yes:)
6998 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6999 whose name does not start with the host triplet. If you think this
7000 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
7001 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7002 whose name does not start with the host triplet. If you think this
7003 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
7004 ac_tool_warned=yes ;;
7005 esac
7006 RANLIB=$ac_ct_RANLIB
7007 fi
7008 else
7009 RANLIB="$ac_cv_prog_RANLIB"
7010 fi
7011
7012 if test -n "$ac_tool_prefix"; then
7013 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7014 set dummy ${ac_tool_prefix}strip; ac_word=$2
7015 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7017 if test "${ac_cv_prog_STRIP+set}" = set; then
7018 echo $ECHO_N "(cached) $ECHO_C" >&6
7019 else
7020 if test -n "$STRIP"; then
7021 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7022 else
7023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7024 for as_dir in $PATH
7025 do
7026 IFS=$as_save_IFS
7027 test -z "$as_dir" && as_dir=.
7028 for ac_exec_ext in '' $ac_executable_extensions; do
7029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7030 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7032 break 2
7033 fi
7034 done
7035 done
7036 IFS=$as_save_IFS
7037
7038 fi
7039 fi
7040 STRIP=$ac_cv_prog_STRIP
7041 if test -n "$STRIP"; then
7042 { echo "$as_me:$LINENO: result: $STRIP" >&5
7043 echo "${ECHO_T}$STRIP" >&6; }
7044 else
7045 { echo "$as_me:$LINENO: result: no" >&5
7046 echo "${ECHO_T}no" >&6; }
7047 fi
7048
7049
7050 fi
7051 if test -z "$ac_cv_prog_STRIP"; then
7052 ac_ct_STRIP=$STRIP
7053 # Extract the first word of "strip", so it can be a program name with args.
7054 set dummy strip; ac_word=$2
7055 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7057 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7058 echo $ECHO_N "(cached) $ECHO_C" >&6
7059 else
7060 if test -n "$ac_ct_STRIP"; then
7061 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7062 else
7063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7064 for as_dir in $PATH
7065 do
7066 IFS=$as_save_IFS
7067 test -z "$as_dir" && as_dir=.
7068 for ac_exec_ext in '' $ac_executable_extensions; do
7069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7070 ac_cv_prog_ac_ct_STRIP="strip"
7071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7072 break 2
7073 fi
7074 done
7075 done
7076 IFS=$as_save_IFS
7077
7078 fi
7079 fi
7080 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7081 if test -n "$ac_ct_STRIP"; then
7082 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7083 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7084 else
7085 { echo "$as_me:$LINENO: result: no" >&5
7086 echo "${ECHO_T}no" >&6; }
7087 fi
7088
7089 if test "x$ac_ct_STRIP" = x; then
7090 STRIP=":"
7091 else
7092 case $cross_compiling:$ac_tool_warned in
7093 yes:)
7094 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7095 whose name does not start with the host triplet. If you think this
7096 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
7097 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7098 whose name does not start with the host triplet. If you think this
7099 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
7100 ac_tool_warned=yes ;;
7101 esac
7102 STRIP=$ac_ct_STRIP
7103 fi
7104 else
7105 STRIP="$ac_cv_prog_STRIP"
7106 fi
7107
7108
7109 old_CC="$CC"
7110 old_CFLAGS="$CFLAGS"
7111
7112 # Set sane defaults for various variables
7113 test -z "$AR" && AR=ar
7114 test -z "$AR_FLAGS" && AR_FLAGS=cru
7115 test -z "$AS" && AS=as
7116 test -z "$CC" && CC=cc
7117 test -z "$LTCC" && LTCC=$CC
7118 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7119 test -z "$DLLTOOL" && DLLTOOL=dlltool
7120 test -z "$LD" && LD=ld
7121 test -z "$LN_S" && LN_S="ln -s"
7122 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7123 test -z "$NM" && NM=nm
7124 test -z "$SED" && SED=sed
7125 test -z "$OBJDUMP" && OBJDUMP=objdump
7126 test -z "$RANLIB" && RANLIB=:
7127 test -z "$STRIP" && STRIP=:
7128 test -z "$ac_objext" && ac_objext=o
7129
7130 # Determine commands to create old-style static archives.
7131 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7132 old_postinstall_cmds='chmod 644 $oldlib'
7133 old_postuninstall_cmds=
7134
7135 if test -n "$RANLIB"; then
7136 case $host_os in
7137 openbsd*)
7138 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7139 ;;
7140 *)
7141 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7142 ;;
7143 esac
7144 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7145 fi
7146
7147 for cc_temp in $compiler""; do
7148 case $cc_temp in
7149 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7150 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7151 \-*) ;;
7152 *) break;;
7153 esac
7154 done
7155 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7156
7157
7158 # Only perform the check for file, if the check method requires it
7159 case $deplibs_check_method in
7160 file_magic*)
7161 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7162 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7163 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7164 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7165 echo $ECHO_N "(cached) $ECHO_C" >&6
7166 else
7167 case $MAGIC_CMD in
7168 [\\/*] | ?:[\\/]*)
7169 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7170 ;;
7171 *)
7172 lt_save_MAGIC_CMD="$MAGIC_CMD"
7173 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7174 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7175 for ac_dir in $ac_dummy; do
7176 IFS="$lt_save_ifs"
7177 test -z "$ac_dir" && ac_dir=.
7178 if test -f $ac_dir/${ac_tool_prefix}file; then
7179 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7180 if test -n "$file_magic_test_file"; then
7181 case $deplibs_check_method in
7182 "file_magic "*)
7183 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7184 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7185 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7186 $EGREP "$file_magic_regex" > /dev/null; then
7187 :
7188 else
7189 cat <<EOF 1>&2
7190
7191 *** Warning: the command libtool uses to detect shared libraries,
7192 *** $file_magic_cmd, produces output that libtool cannot recognize.
7193 *** The result is that libtool may fail to recognize shared libraries
7194 *** as such. This will affect the creation of libtool libraries that
7195 *** depend on shared libraries, but programs linked with such libtool
7196 *** libraries will work regardless of this problem. Nevertheless, you
7197 *** may want to report the problem to your system manager and/or to
7198 *** bug-libtool@gnu.org
7199
7200 EOF
7201 fi ;;
7202 esac
7203 fi
7204 break
7205 fi
7206 done
7207 IFS="$lt_save_ifs"
7208 MAGIC_CMD="$lt_save_MAGIC_CMD"
7209 ;;
7210 esac
7211 fi
7212
7213 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7214 if test -n "$MAGIC_CMD"; then
7215 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7216 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7217 else
7218 { echo "$as_me:$LINENO: result: no" >&5
7219 echo "${ECHO_T}no" >&6; }
7220 fi
7221
7222 if test -z "$lt_cv_path_MAGIC_CMD"; then
7223 if test -n "$ac_tool_prefix"; then
7224 { echo "$as_me:$LINENO: checking for file" >&5
7225 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7226 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7227 echo $ECHO_N "(cached) $ECHO_C" >&6
7228 else
7229 case $MAGIC_CMD in
7230 [\\/*] | ?:[\\/]*)
7231 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7232 ;;
7233 *)
7234 lt_save_MAGIC_CMD="$MAGIC_CMD"
7235 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7236 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7237 for ac_dir in $ac_dummy; do
7238 IFS="$lt_save_ifs"
7239 test -z "$ac_dir" && ac_dir=.
7240 if test -f $ac_dir/file; then
7241 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7242 if test -n "$file_magic_test_file"; then
7243 case $deplibs_check_method in
7244 "file_magic "*)
7245 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7246 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7247 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7248 $EGREP "$file_magic_regex" > /dev/null; then
7249 :
7250 else
7251 cat <<EOF 1>&2
7252
7253 *** Warning: the command libtool uses to detect shared libraries,
7254 *** $file_magic_cmd, produces output that libtool cannot recognize.
7255 *** The result is that libtool may fail to recognize shared libraries
7256 *** as such. This will affect the creation of libtool libraries that
7257 *** depend on shared libraries, but programs linked with such libtool
7258 *** libraries will work regardless of this problem. Nevertheless, you
7259 *** may want to report the problem to your system manager and/or to
7260 *** bug-libtool@gnu.org
7261
7262 EOF
7263 fi ;;
7264 esac
7265 fi
7266 break
7267 fi
7268 done
7269 IFS="$lt_save_ifs"
7270 MAGIC_CMD="$lt_save_MAGIC_CMD"
7271 ;;
7272 esac
7273 fi
7274
7275 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7276 if test -n "$MAGIC_CMD"; then
7277 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7278 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7279 else
7280 { echo "$as_me:$LINENO: result: no" >&5
7281 echo "${ECHO_T}no" >&6; }
7282 fi
7283
7284 else
7285 MAGIC_CMD=:
7286 fi
7287 fi
7288
7289 fi
7290 ;;
7291 esac
7292
7293 enable_dlopen=no
7294 enable_win32_dll=no
7295
7296 # Check whether --enable-libtool-lock was given.
7297 if test "${enable_libtool_lock+set}" = set; then
7298 enableval=$enable_libtool_lock;
7299 fi
7300
7301 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7302
7303
7304 # Check whether --with-pic was given.
7305 if test "${with_pic+set}" = set; then
7306 withval=$with_pic; pic_mode="$withval"
7307 else
7308 pic_mode=default
7309 fi
7310
7311 test -z "$pic_mode" && pic_mode=default
7312
7313 # Use C for the default configuration in the libtool script
7314 tagname=
7315 lt_save_CC="$CC"
7316 ac_ext=c
7317 ac_cpp='$CPP $CPPFLAGS'
7318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7321
7322
7323 # Source file extension for C test sources.
7324 ac_ext=c
7325
7326 # Object file extension for compiled C test sources.
7327 objext=o
7328 objext=$objext
7329
7330 # Code to be used in simple compile tests
7331 lt_simple_compile_test_code="int some_variable = 0;\n"
7332
7333 # Code to be used in simple link tests
7334 lt_simple_link_test_code='int main(){return(0);}\n'
7335
7336
7337 # If no C compiler was specified, use CC.
7338 LTCC=${LTCC-"$CC"}
7339
7340 # If no C compiler flags were specified, use CFLAGS.
7341 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7342
7343 # Allow CC to be a program name with arguments.
7344 compiler=$CC
7345
7346
7347 # save warnings/boilerplate of simple test code
7348 ac_outfile=conftest.$ac_objext
7349 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7350 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7351 _lt_compiler_boilerplate=`cat conftest.err`
7352 $rm conftest*
7353
7354 ac_outfile=conftest.$ac_objext
7355 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7356 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7357 _lt_linker_boilerplate=`cat conftest.err`
7358 $rm conftest*
7359
7360
7361
7362 lt_prog_compiler_no_builtin_flag=
7363
7364 if test "$GCC" = yes; then
7365 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7366
7367
7368 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7369 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7370 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7371 echo $ECHO_N "(cached) $ECHO_C" >&6
7372 else
7373 lt_cv_prog_compiler_rtti_exceptions=no
7374 ac_outfile=conftest.$ac_objext
7375 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7376 lt_compiler_flag="-fno-rtti -fno-exceptions"
7377 # Insert the option either (1) after the last *FLAGS variable, or
7378 # (2) before a word containing "conftest.", or (3) at the end.
7379 # Note that $ac_compile itself does not contain backslashes and begins
7380 # with a dollar sign (not a hyphen), so the echo should work correctly.
7381 # The option is referenced via a variable to avoid confusing sed.
7382 lt_compile=`echo "$ac_compile" | $SED \
7383 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7384 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7385 -e 's:$: $lt_compiler_flag:'`
7386 (eval echo "\"\$as_me:7386: $lt_compile\"" >&5)
7387 (eval "$lt_compile" 2>conftest.err)
7388 ac_status=$?
7389 cat conftest.err >&5
7390 echo "$as_me:7390: \$? = $ac_status" >&5
7391 if (exit $ac_status) && test -s "$ac_outfile"; then
7392 # The compiler can only warn and ignore the option if not recognized
7393 # So say no if there are warnings other than the usual output.
7394 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7395 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7396 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7397 lt_cv_prog_compiler_rtti_exceptions=yes
7398 fi
7399 fi
7400 $rm conftest*
7401
7402 fi
7403 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7404 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7405
7406 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7407 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7408 else
7409 :
7410 fi
7411
7412 fi
7413
7414 lt_prog_compiler_wl=
7415 lt_prog_compiler_pic=
7416 lt_prog_compiler_static=
7417
7418 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7419 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7420
7421 if test "$GCC" = yes; then
7422 lt_prog_compiler_wl='-Wl,'
7423 lt_prog_compiler_static='-static'
7424
7425 case $host_os in
7426 aix*)
7427 # All AIX code is PIC.
7428 if test "$host_cpu" = ia64; then
7429 # AIX 5 now supports IA64 processor
7430 lt_prog_compiler_static='-Bstatic'
7431 fi
7432 ;;
7433
7434 amigaos*)
7435 # FIXME: we need at least 68020 code to build shared libraries, but
7436 # adding the `-m68020' flag to GCC prevents building anything better,
7437 # like `-m68040'.
7438 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7439 ;;
7440
7441 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7442 # PIC is the default for these OSes.
7443 ;;
7444
7445 mingw* | pw32* | os2*)
7446 # This hack is so that the source file can tell whether it is being
7447 # built for inclusion in a dll (and should export symbols for example).
7448 lt_prog_compiler_pic='-DDLL_EXPORT'
7449 ;;
7450
7451 darwin* | rhapsody*)
7452 # PIC is the default on this platform
7453 # Common symbols not allowed in MH_DYLIB files
7454 lt_prog_compiler_pic='-fno-common'
7455 ;;
7456
7457 interix3*)
7458 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7459 # Instead, we relocate shared libraries at runtime.
7460 ;;
7461
7462 msdosdjgpp*)
7463 # Just because we use GCC doesn't mean we suddenly get shared libraries
7464 # on systems that don't support them.
7465 lt_prog_compiler_can_build_shared=no
7466 enable_shared=no
7467 ;;
7468
7469 sysv4*MP*)
7470 if test -d /usr/nec; then
7471 lt_prog_compiler_pic=-Kconform_pic
7472 fi
7473 ;;
7474
7475 hpux*)
7476 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7477 # not for PA HP-UX.
7478 case $host_cpu in
7479 hppa*64*|ia64*)
7480 # +Z the default
7481 ;;
7482 *)
7483 lt_prog_compiler_pic='-fPIC'
7484 ;;
7485 esac
7486 ;;
7487
7488 *)
7489 lt_prog_compiler_pic='-fPIC'
7490 ;;
7491 esac
7492 else
7493 # PORTME Check for flag to pass linker flags through the system compiler.
7494 case $host_os in
7495 aix*)
7496 lt_prog_compiler_wl='-Wl,'
7497 if test "$host_cpu" = ia64; then
7498 # AIX 5 now supports IA64 processor
7499 lt_prog_compiler_static='-Bstatic'
7500 else
7501 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7502 fi
7503 ;;
7504 darwin*)
7505 # PIC is the default on this platform
7506 # Common symbols not allowed in MH_DYLIB files
7507 case $cc_basename in
7508 xlc*)
7509 lt_prog_compiler_pic='-qnocommon'
7510 lt_prog_compiler_wl='-Wl,'
7511 ;;
7512 esac
7513 ;;
7514
7515 mingw* | pw32* | os2*)
7516 # This hack is so that the source file can tell whether it is being
7517 # built for inclusion in a dll (and should export symbols for example).
7518 lt_prog_compiler_pic='-DDLL_EXPORT'
7519 ;;
7520
7521 hpux9* | hpux10* | hpux11*)
7522 lt_prog_compiler_wl='-Wl,'
7523 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7524 # not for PA HP-UX.
7525 case $host_cpu in
7526 hppa*64*|ia64*)
7527 # +Z the default
7528 ;;
7529 *)
7530 lt_prog_compiler_pic='+Z'
7531 ;;
7532 esac
7533 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7534 lt_prog_compiler_static='${wl}-a ${wl}archive'
7535 ;;
7536
7537 irix5* | irix6* | nonstopux*)
7538 lt_prog_compiler_wl='-Wl,'
7539 # PIC (with -KPIC) is the default.
7540 lt_prog_compiler_static='-non_shared'
7541 ;;
7542
7543 newsos6)
7544 lt_prog_compiler_pic='-KPIC'
7545 lt_prog_compiler_static='-Bstatic'
7546 ;;
7547
7548 linux* | k*bsd*-gnu)
7549 case $cc_basename in
7550 icc* | ecc*)
7551 lt_prog_compiler_wl='-Wl,'
7552 lt_prog_compiler_pic='-KPIC'
7553 lt_prog_compiler_static='-static'
7554 ;;
7555 pgcc* | pgf77* | pgf90* | pgf95*)
7556 # Portland Group compilers (*not* the Pentium gcc compiler,
7557 # which looks to be a dead project)
7558 lt_prog_compiler_wl='-Wl,'
7559 lt_prog_compiler_pic='-fpic'
7560 lt_prog_compiler_static='-Bstatic'
7561 ;;
7562 ccc*)
7563 lt_prog_compiler_wl='-Wl,'
7564 # All Alpha code is PIC.
7565 lt_prog_compiler_static='-non_shared'
7566 ;;
7567 esac
7568 ;;
7569
7570 osf3* | osf4* | osf5*)
7571 lt_prog_compiler_wl='-Wl,'
7572 # All OSF/1 code is PIC.
7573 lt_prog_compiler_static='-non_shared'
7574 ;;
7575
7576 solaris*)
7577 lt_prog_compiler_pic='-KPIC'
7578 lt_prog_compiler_static='-Bstatic'
7579 case $cc_basename in
7580 f77* | f90* | f95*)
7581 lt_prog_compiler_wl='-Qoption ld ';;
7582 *)
7583 lt_prog_compiler_wl='-Wl,';;
7584 esac
7585 ;;
7586
7587 sunos4*)
7588 lt_prog_compiler_wl='-Qoption ld '
7589 lt_prog_compiler_pic='-PIC'
7590 lt_prog_compiler_static='-Bstatic'
7591 ;;
7592
7593 sysv4 | sysv4.2uw2* | sysv4.3*)
7594 lt_prog_compiler_wl='-Wl,'
7595 lt_prog_compiler_pic='-KPIC'
7596 lt_prog_compiler_static='-Bstatic'
7597 ;;
7598
7599 sysv4*MP*)
7600 if test -d /usr/nec ;then
7601 lt_prog_compiler_pic='-Kconform_pic'
7602 lt_prog_compiler_static='-Bstatic'
7603 fi
7604 ;;
7605
7606 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7607 lt_prog_compiler_wl='-Wl,'
7608 lt_prog_compiler_pic='-KPIC'
7609 lt_prog_compiler_static='-Bstatic'
7610 ;;
7611
7612 unicos*)
7613 lt_prog_compiler_wl='-Wl,'
7614 lt_prog_compiler_can_build_shared=no
7615 ;;
7616
7617 uts4*)
7618 lt_prog_compiler_pic='-pic'
7619 lt_prog_compiler_static='-Bstatic'
7620 ;;
7621
7622 *)
7623 lt_prog_compiler_can_build_shared=no
7624 ;;
7625 esac
7626 fi
7627
7628 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7629 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7630
7631 #
7632 # Check to make sure the PIC flag actually works.
7633 #
7634 if test -n "$lt_prog_compiler_pic"; then
7635
7636 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7637 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7638 if test "${lt_prog_compiler_pic_works+set}" = set; then
7639 echo $ECHO_N "(cached) $ECHO_C" >&6
7640 else
7641 lt_prog_compiler_pic_works=no
7642 ac_outfile=conftest.$ac_objext
7643 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7644 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7645 # Insert the option either (1) after the last *FLAGS variable, or
7646 # (2) before a word containing "conftest.", or (3) at the end.
7647 # Note that $ac_compile itself does not contain backslashes and begins
7648 # with a dollar sign (not a hyphen), so the echo should work correctly.
7649 # The option is referenced via a variable to avoid confusing sed.
7650 lt_compile=`echo "$ac_compile" | $SED \
7651 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7652 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7653 -e 's:$: $lt_compiler_flag:'`
7654 (eval echo "\"\$as_me:7654: $lt_compile\"" >&5)
7655 (eval "$lt_compile" 2>conftest.err)
7656 ac_status=$?
7657 cat conftest.err >&5
7658 echo "$as_me:7658: \$? = $ac_status" >&5
7659 if (exit $ac_status) && test -s "$ac_outfile"; then
7660 # The compiler can only warn and ignore the option if not recognized
7661 # So say no if there are warnings other than the usual output.
7662 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7663 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7664 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7665 lt_prog_compiler_pic_works=yes
7666 fi
7667 fi
7668 $rm conftest*
7669
7670 fi
7671 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7672 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7673
7674 if test x"$lt_prog_compiler_pic_works" = xyes; then
7675 case $lt_prog_compiler_pic in
7676 "" | " "*) ;;
7677 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7678 esac
7679 else
7680 lt_prog_compiler_pic=
7681 lt_prog_compiler_can_build_shared=no
7682 fi
7683
7684 fi
7685 case $host_os in
7686 # For platforms which do not support PIC, -DPIC is meaningless:
7687 *djgpp*)
7688 lt_prog_compiler_pic=
7689 ;;
7690 *)
7691 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7692 ;;
7693 esac
7694
7695 #
7696 # Check to make sure the static flag actually works.
7697 #
7698 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7699 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7700 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7701 if test "${lt_prog_compiler_static_works+set}" = set; then
7702 echo $ECHO_N "(cached) $ECHO_C" >&6
7703 else
7704 lt_prog_compiler_static_works=no
7705 save_LDFLAGS="$LDFLAGS"
7706 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7707 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7708 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7709 # The linker can only warn and ignore the option if not recognized
7710 # So say no if there are warnings
7711 if test -s conftest.err; then
7712 # Append any errors to the config.log.
7713 cat conftest.err 1>&5
7714 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7715 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7716 if diff conftest.exp conftest.er2 >/dev/null; then
7717 lt_prog_compiler_static_works=yes
7718 fi
7719 else
7720 lt_prog_compiler_static_works=yes
7721 fi
7722 fi
7723 $rm conftest*
7724 LDFLAGS="$save_LDFLAGS"
7725
7726 fi
7727 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7728 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7729
7730 if test x"$lt_prog_compiler_static_works" = xyes; then
7731 :
7732 else
7733 lt_prog_compiler_static=
7734 fi
7735
7736
7737 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7738 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7739 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7740 echo $ECHO_N "(cached) $ECHO_C" >&6
7741 else
7742 lt_cv_prog_compiler_c_o=no
7743 $rm -r conftest 2>/dev/null
7744 mkdir conftest
7745 cd conftest
7746 mkdir out
7747 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7748
7749 lt_compiler_flag="-o out/conftest2.$ac_objext"
7750 # Insert the option either (1) after the last *FLAGS variable, or
7751 # (2) before a word containing "conftest.", or (3) at the end.
7752 # Note that $ac_compile itself does not contain backslashes and begins
7753 # with a dollar sign (not a hyphen), so the echo should work correctly.
7754 lt_compile=`echo "$ac_compile" | $SED \
7755 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7756 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7757 -e 's:$: $lt_compiler_flag:'`
7758 (eval echo "\"\$as_me:7758: $lt_compile\"" >&5)
7759 (eval "$lt_compile" 2>out/conftest.err)
7760 ac_status=$?
7761 cat out/conftest.err >&5
7762 echo "$as_me:7762: \$? = $ac_status" >&5
7763 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7764 then
7765 # The compiler can only warn and ignore the option if not recognized
7766 # So say no if there are warnings
7767 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7768 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7769 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7770 lt_cv_prog_compiler_c_o=yes
7771 fi
7772 fi
7773 chmod u+w . 2>&5
7774 $rm conftest*
7775 # SGI C++ compiler will create directory out/ii_files/ for
7776 # template instantiation
7777 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7778 $rm out/* && rmdir out
7779 cd ..
7780 rmdir conftest
7781 $rm conftest*
7782
7783 fi
7784 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7785 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7786
7787
7788 hard_links="nottested"
7789 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7790 # do not overwrite the value of need_locks provided by the user
7791 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7792 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7793 hard_links=yes
7794 $rm conftest*
7795 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7796 touch conftest.a
7797 ln conftest.a conftest.b 2>&5 || hard_links=no
7798 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7799 { echo "$as_me:$LINENO: result: $hard_links" >&5
7800 echo "${ECHO_T}$hard_links" >&6; }
7801 if test "$hard_links" = no; then
7802 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7803 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7804 need_locks=warn
7805 fi
7806 else
7807 need_locks=no
7808 fi
7809
7810 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7811 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7812
7813 runpath_var=
7814 allow_undefined_flag=
7815 enable_shared_with_static_runtimes=no
7816 archive_cmds=
7817 archive_expsym_cmds=
7818 old_archive_From_new_cmds=
7819 old_archive_from_expsyms_cmds=
7820 export_dynamic_flag_spec=
7821 whole_archive_flag_spec=
7822 thread_safe_flag_spec=
7823 hardcode_libdir_flag_spec=
7824 hardcode_libdir_flag_spec_ld=
7825 hardcode_libdir_separator=
7826 hardcode_direct=no
7827 hardcode_minus_L=no
7828 hardcode_shlibpath_var=unsupported
7829 link_all_deplibs=unknown
7830 hardcode_automatic=no
7831 module_cmds=
7832 module_expsym_cmds=
7833 always_export_symbols=no
7834 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7835 # include_expsyms should be a list of space-separated symbols to be *always*
7836 # included in the symbol list
7837 include_expsyms=
7838 # exclude_expsyms can be an extended regexp of symbols to exclude
7839 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7840 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7841 # as well as any symbol that contains `d'.
7842 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7843 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7844 # platforms (ab)use it in PIC code, but their linkers get confused if
7845 # the symbol is explicitly referenced. Since portable code cannot
7846 # rely on this symbol name, it's probably fine to never include it in
7847 # preloaded symbol tables.
7848 extract_expsyms_cmds=
7849 # Just being paranoid about ensuring that cc_basename is set.
7850 for cc_temp in $compiler""; do
7851 case $cc_temp in
7852 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7853 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7854 \-*) ;;
7855 *) break;;
7856 esac
7857 done
7858 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7859
7860 case $host_os in
7861 cygwin* | mingw* | pw32*)
7862 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7863 # When not using gcc, we currently assume that we are using
7864 # Microsoft Visual C++.
7865 if test "$GCC" != yes; then
7866 with_gnu_ld=no
7867 fi
7868 ;;
7869 interix*)
7870 # we just hope/assume this is gcc and not c89 (= MSVC++)
7871 with_gnu_ld=yes
7872 ;;
7873 openbsd*)
7874 with_gnu_ld=no
7875 ;;
7876 esac
7877
7878 ld_shlibs=yes
7879 if test "$with_gnu_ld" = yes; then
7880 # If archive_cmds runs LD, not CC, wlarc should be empty
7881 wlarc='${wl}'
7882
7883 # Set some defaults for GNU ld with shared library support. These
7884 # are reset later if shared libraries are not supported. Putting them
7885 # here allows them to be overridden if necessary.
7886 runpath_var=LD_RUN_PATH
7887 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7888 export_dynamic_flag_spec='${wl}--export-dynamic'
7889 # ancient GNU ld didn't support --whole-archive et. al.
7890 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7891 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7892 else
7893 whole_archive_flag_spec=
7894 fi
7895 supports_anon_versioning=no
7896 case `$LD -v 2>/dev/null` in
7897 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7898 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7899 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7900 *\ 2.11.*) ;; # other 2.11 versions
7901 *) supports_anon_versioning=yes ;;
7902 esac
7903
7904 # See if GNU ld supports shared libraries.
7905 case $host_os in
7906 aix3* | aix4* | aix5*)
7907 # On AIX/PPC, the GNU linker is very broken
7908 if test "$host_cpu" != ia64; then
7909 ld_shlibs=no
7910 cat <<EOF 1>&2
7911
7912 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7913 *** to be unable to reliably create shared libraries on AIX.
7914 *** Therefore, libtool is disabling shared libraries support. If you
7915 *** really care for shared libraries, you may want to modify your PATH
7916 *** so that a non-GNU linker is found, and then restart.
7917
7918 EOF
7919 fi
7920 ;;
7921
7922 amigaos*)
7923 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)'
7924 hardcode_libdir_flag_spec='-L$libdir'
7925 hardcode_minus_L=yes
7926
7927 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
7928 # that the semantics of dynamic libraries on AmigaOS, at least up
7929 # to version 4, is to share data among multiple programs linked
7930 # with the same dynamic library. Since this doesn't match the
7931 # behavior of shared libraries on other platforms, we can't use
7932 # them.
7933 ld_shlibs=no
7934 ;;
7935
7936 beos*)
7937 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7938 allow_undefined_flag=unsupported
7939 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
7940 # support --undefined. This deserves some investigation. FIXME
7941 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7942 else
7943 ld_shlibs=no
7944 fi
7945 ;;
7946
7947 cygwin* | mingw* | pw32*)
7948 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7949 # as there is no search path for DLLs.
7950 hardcode_libdir_flag_spec='-L$libdir'
7951 allow_undefined_flag=unsupported
7952 always_export_symbols=no
7953 enable_shared_with_static_runtimes=yes
7954 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7955
7956 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7957 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7958 # If the export-symbols file already is a .def file (1st line
7959 # is EXPORTS), use it as is; otherwise, prepend...
7960 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7961 cp $export_symbols $output_objdir/$soname.def;
7962 else
7963 echo EXPORTS > $output_objdir/$soname.def;
7964 cat $export_symbols >> $output_objdir/$soname.def;
7965 fi~
7966 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7967 else
7968 ld_shlibs=no
7969 fi
7970 ;;
7971
7972 interix3*)
7973 hardcode_direct=no
7974 hardcode_shlibpath_var=no
7975 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7976 export_dynamic_flag_spec='${wl}-E'
7977 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7978 # Instead, shared libraries are loaded at an image base (0x10000000 by
7979 # default) and relocated if they conflict, which is a slow very memory
7980 # consuming and fragmenting process. To avoid this, we pick a random,
7981 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7982 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7983 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7984 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'
7985 ;;
7986
7987 linux* | k*bsd*-gnu)
7988 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7989 tmp_addflag=
7990 case $cc_basename,$host_cpu in
7991 pgcc*) # Portland Group C compiler
7992 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'
7993 tmp_addflag=' $pic_flag'
7994 ;;
7995 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7996 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'
7997 tmp_addflag=' $pic_flag -Mnomain' ;;
7998 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7999 tmp_addflag=' -i_dynamic' ;;
8000 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8001 tmp_addflag=' -i_dynamic -nofor_main' ;;
8002 ifc* | ifort*) # Intel Fortran compiler
8003 tmp_addflag=' -nofor_main' ;;
8004 esac
8005 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8006
8007 if test $supports_anon_versioning = yes; then
8008 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8009 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8010 $echo "local: *; };" >> $output_objdir/$libname.ver~
8011 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8012 fi
8013 link_all_deplibs=no
8014 else
8015 ld_shlibs=no
8016 fi
8017 ;;
8018
8019 netbsd* | netbsdelf*-gnu)
8020 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8021 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8022 wlarc=
8023 else
8024 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8025 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8026 fi
8027 ;;
8028
8029 solaris*)
8030 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8031 ld_shlibs=no
8032 cat <<EOF 1>&2
8033
8034 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8035 *** create shared libraries on Solaris systems. Therefore, libtool
8036 *** is disabling shared libraries support. We urge you to upgrade GNU
8037 *** binutils to release 2.9.1 or newer. Another option is to modify
8038 *** your PATH or compiler configuration so that the native linker is
8039 *** used, and then restart.
8040
8041 EOF
8042 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8043 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8044 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8045 else
8046 ld_shlibs=no
8047 fi
8048 ;;
8049
8050 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8051 case `$LD -v 2>&1` in
8052 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8053 ld_shlibs=no
8054 cat <<_LT_EOF 1>&2
8055
8056 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8057 *** reliably create shared libraries on SCO systems. Therefore, libtool
8058 *** is disabling shared libraries support. We urge you to upgrade GNU
8059 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8060 *** your PATH or compiler configuration so that the native linker is
8061 *** used, and then restart.
8062
8063 _LT_EOF
8064 ;;
8065 *)
8066 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8067 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8068 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8069 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8070 else
8071 ld_shlibs=no
8072 fi
8073 ;;
8074 esac
8075 ;;
8076
8077 sunos4*)
8078 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8079 wlarc=
8080 hardcode_direct=yes
8081 hardcode_shlibpath_var=no
8082 ;;
8083
8084 *)
8085 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8086 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8087 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8088 else
8089 ld_shlibs=no
8090 fi
8091 ;;
8092 esac
8093
8094 if test "$ld_shlibs" = no; then
8095 runpath_var=
8096 hardcode_libdir_flag_spec=
8097 export_dynamic_flag_spec=
8098 whole_archive_flag_spec=
8099 fi
8100 else
8101 # PORTME fill in a description of your system's linker (not GNU ld)
8102 case $host_os in
8103 aix3*)
8104 allow_undefined_flag=unsupported
8105 always_export_symbols=yes
8106 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'
8107 # Note: this linker hardcodes the directories in LIBPATH if there
8108 # are no directories specified by -L.
8109 hardcode_minus_L=yes
8110 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8111 # Neither direct hardcoding nor static linking is supported with a
8112 # broken collect2.
8113 hardcode_direct=unsupported
8114 fi
8115 ;;
8116
8117 aix4* | aix5*)
8118 if test "$host_cpu" = ia64; then
8119 # On IA64, the linker does run time linking by default, so we don't
8120 # have to do anything special.
8121 aix_use_runtimelinking=no
8122 exp_sym_flag='-Bexport'
8123 no_entry_flag=""
8124 else
8125 # If we're using GNU nm, then we don't want the "-C" option.
8126 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8127 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8128 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'
8129 else
8130 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'
8131 fi
8132 aix_use_runtimelinking=no
8133
8134 # Test if we are trying to use run time linking or normal
8135 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8136 # need to do runtime linking.
8137 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8138 for ld_flag in $LDFLAGS; do
8139 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8140 aix_use_runtimelinking=yes
8141 break
8142 fi
8143 done
8144 ;;
8145 esac
8146
8147 exp_sym_flag='-bexport'
8148 no_entry_flag='-bnoentry'
8149 fi
8150
8151 # When large executables or shared objects are built, AIX ld can
8152 # have problems creating the table of contents. If linking a library
8153 # or program results in "error TOC overflow" add -mminimal-toc to
8154 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8155 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8156
8157 archive_cmds=''
8158 hardcode_direct=yes
8159 hardcode_libdir_separator=':'
8160 link_all_deplibs=yes
8161
8162 if test "$GCC" = yes; then
8163 case $host_os in aix4.[012]|aix4.[012].*)
8164 # We only want to do this on AIX 4.2 and lower, the check
8165 # below for broken collect2 doesn't work under 4.3+
8166 collect2name=`${CC} -print-prog-name=collect2`
8167 if test -f "$collect2name" && \
8168 strings "$collect2name" | grep resolve_lib_name >/dev/null
8169 then
8170 # We have reworked collect2
8171 hardcode_direct=yes
8172 else
8173 # We have old collect2
8174 hardcode_direct=unsupported
8175 # It fails to find uninstalled libraries when the uninstalled
8176 # path is not listed in the libpath. Setting hardcode_minus_L
8177 # to unsupported forces relinking
8178 hardcode_minus_L=yes
8179 hardcode_libdir_flag_spec='-L$libdir'
8180 hardcode_libdir_separator=
8181 fi
8182 ;;
8183 esac
8184 shared_flag='-shared'
8185 if test "$aix_use_runtimelinking" = yes; then
8186 shared_flag="$shared_flag "'${wl}-G'
8187 fi
8188 else
8189 # not using gcc
8190 if test "$host_cpu" = ia64; then
8191 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8192 # chokes on -Wl,-G. The following line is correct:
8193 shared_flag='-G'
8194 else
8195 if test "$aix_use_runtimelinking" = yes; then
8196 shared_flag='${wl}-G'
8197 else
8198 shared_flag='${wl}-bM:SRE'
8199 fi
8200 fi
8201 fi
8202
8203 # It seems that -bexpall does not export symbols beginning with
8204 # underscore (_), so it is better to generate a list of symbols to export.
8205 always_export_symbols=yes
8206 if test "$aix_use_runtimelinking" = yes; then
8207 # Warning - without using the other runtime loading flags (-brtl),
8208 # -berok will link without error, but may produce a broken library.
8209 allow_undefined_flag='-berok'
8210 # Determine the default libpath from the value encoded in an empty executable.
8211 cat >conftest.$ac_ext <<_ACEOF
8212 /* confdefs.h. */
8213 _ACEOF
8214 cat confdefs.h >>conftest.$ac_ext
8215 cat >>conftest.$ac_ext <<_ACEOF
8216 /* end confdefs.h. */
8217
8218 int
8219 main ()
8220 {
8221
8222 ;
8223 return 0;
8224 }
8225 _ACEOF
8226 rm -f conftest.$ac_objext conftest$ac_exeext
8227 if { (ac_try="$ac_link"
8228 case "(($ac_try" in
8229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8230 *) ac_try_echo=$ac_try;;
8231 esac
8232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8233 (eval "$ac_link") 2>conftest.er1
8234 ac_status=$?
8235 grep -v '^ *+' conftest.er1 >conftest.err
8236 rm -f conftest.er1
8237 cat conftest.err >&5
8238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239 (exit $ac_status); } &&
8240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8241 { (case "(($ac_try" in
8242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8243 *) ac_try_echo=$ac_try;;
8244 esac
8245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8246 (eval "$ac_try") 2>&5
8247 ac_status=$?
8248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249 (exit $ac_status); }; } &&
8250 { ac_try='test -s conftest$ac_exeext'
8251 { (case "(($ac_try" in
8252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8253 *) ac_try_echo=$ac_try;;
8254 esac
8255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8256 (eval "$ac_try") 2>&5
8257 ac_status=$?
8258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259 (exit $ac_status); }; }; then
8260
8261 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8262 }'`
8263 # Check for a 64-bit object if we didn't find anything.
8264 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8265 }'`; fi
8266 else
8267 echo "$as_me: failed program was:" >&5
8268 sed 's/^/| /' conftest.$ac_ext >&5
8269
8270
8271 fi
8272
8273 rm -f core conftest.err conftest.$ac_objext \
8274 conftest$ac_exeext conftest.$ac_ext
8275 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8276
8277 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8278 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"
8279 else
8280 if test "$host_cpu" = ia64; then
8281 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8282 allow_undefined_flag="-z nodefs"
8283 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"
8284 else
8285 # Determine the default libpath from the value encoded in an empty executable.
8286 cat >conftest.$ac_ext <<_ACEOF
8287 /* confdefs.h. */
8288 _ACEOF
8289 cat confdefs.h >>conftest.$ac_ext
8290 cat >>conftest.$ac_ext <<_ACEOF
8291 /* end confdefs.h. */
8292
8293 int
8294 main ()
8295 {
8296
8297 ;
8298 return 0;
8299 }
8300 _ACEOF
8301 rm -f conftest.$ac_objext conftest$ac_exeext
8302 if { (ac_try="$ac_link"
8303 case "(($ac_try" in
8304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8305 *) ac_try_echo=$ac_try;;
8306 esac
8307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8308 (eval "$ac_link") 2>conftest.er1
8309 ac_status=$?
8310 grep -v '^ *+' conftest.er1 >conftest.err
8311 rm -f conftest.er1
8312 cat conftest.err >&5
8313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314 (exit $ac_status); } &&
8315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8316 { (case "(($ac_try" in
8317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8318 *) ac_try_echo=$ac_try;;
8319 esac
8320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8321 (eval "$ac_try") 2>&5
8322 ac_status=$?
8323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324 (exit $ac_status); }; } &&
8325 { ac_try='test -s conftest$ac_exeext'
8326 { (case "(($ac_try" in
8327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8328 *) ac_try_echo=$ac_try;;
8329 esac
8330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8331 (eval "$ac_try") 2>&5
8332 ac_status=$?
8333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8334 (exit $ac_status); }; }; then
8335
8336 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8337 }'`
8338 # Check for a 64-bit object if we didn't find anything.
8339 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; }
8340 }'`; fi
8341 else
8342 echo "$as_me: failed program was:" >&5
8343 sed 's/^/| /' conftest.$ac_ext >&5
8344
8345
8346 fi
8347
8348 rm -f core conftest.err conftest.$ac_objext \
8349 conftest$ac_exeext conftest.$ac_ext
8350 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8351
8352 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8353 # Warning - without using the other run time loading flags,
8354 # -berok will link without error, but may produce a broken library.
8355 no_undefined_flag=' ${wl}-bernotok'
8356 allow_undefined_flag=' ${wl}-berok'
8357 # Exported symbols can be pulled into shared objects from archives
8358 whole_archive_flag_spec='$convenience'
8359 archive_cmds_need_lc=yes
8360 # This is similar to how AIX traditionally builds its shared libraries.
8361 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'
8362 fi
8363 fi
8364 ;;
8365
8366 amigaos*)
8367 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)'
8368 hardcode_libdir_flag_spec='-L$libdir'
8369 hardcode_minus_L=yes
8370 # see comment about different semantics on the GNU ld section
8371 ld_shlibs=no
8372 ;;
8373
8374 bsdi[45]*)
8375 export_dynamic_flag_spec=-rdynamic
8376 ;;
8377
8378 cygwin* | mingw* | pw32*)
8379 # When not using gcc, we currently assume that we are using
8380 # Microsoft Visual C++.
8381 # hardcode_libdir_flag_spec is actually meaningless, as there is
8382 # no search path for DLLs.
8383 hardcode_libdir_flag_spec=' '
8384 allow_undefined_flag=unsupported
8385 # Tell ltmain to make .lib files, not .a files.
8386 libext=lib
8387 # Tell ltmain to make .dll files, not .so files.
8388 shrext_cmds=".dll"
8389 # FIXME: Setting linknames here is a bad hack.
8390 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8391 # The linker will automatically build a .lib file if we build a DLL.
8392 old_archive_From_new_cmds='true'
8393 # FIXME: Should let the user specify the lib program.
8394 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8395 fix_srcfile_path='`cygpath -w "$srcfile"`'
8396 enable_shared_with_static_runtimes=yes
8397 ;;
8398
8399 darwin* | rhapsody*)
8400 case $host_os in
8401 rhapsody* | darwin1.[012])
8402 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8403 ;;
8404 *) # Darwin 1.3 on
8405 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8406 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8407 else
8408 case ${MACOSX_DEPLOYMENT_TARGET} in
8409 10.[012])
8410 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8411 ;;
8412 10.*)
8413 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8414 ;;
8415 esac
8416 fi
8417 ;;
8418 esac
8419 archive_cmds_need_lc=no
8420 hardcode_direct=no
8421 hardcode_automatic=yes
8422 hardcode_shlibpath_var=unsupported
8423 whole_archive_flag_spec=''
8424 link_all_deplibs=yes
8425 if test "$GCC" = yes ; then
8426 output_verbose_link_cmd='echo'
8427 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8428 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8429 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8430 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}'
8431 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}'
8432 else
8433 case $cc_basename in
8434 xlc*)
8435 output_verbose_link_cmd='echo'
8436 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8437 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8438 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8439 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}'
8440 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}'
8441 ;;
8442 *)
8443 ld_shlibs=no
8444 ;;
8445 esac
8446 fi
8447 ;;
8448
8449 dgux*)
8450 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8451 hardcode_libdir_flag_spec='-L$libdir'
8452 hardcode_shlibpath_var=no
8453 ;;
8454
8455 freebsd1*)
8456 ld_shlibs=no
8457 ;;
8458
8459 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8460 # support. Future versions do this automatically, but an explicit c++rt0.o
8461 # does not break anything, and helps significantly (at the cost of a little
8462 # extra space).
8463 freebsd2.2*)
8464 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8465 hardcode_libdir_flag_spec='-R$libdir'
8466 hardcode_direct=yes
8467 hardcode_shlibpath_var=no
8468 ;;
8469
8470 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8471 freebsd2*)
8472 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8473 hardcode_direct=yes
8474 hardcode_minus_L=yes
8475 hardcode_shlibpath_var=no
8476 ;;
8477
8478 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8479 freebsd* | dragonfly*)
8480 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8481 hardcode_libdir_flag_spec='-R$libdir'
8482 hardcode_direct=yes
8483 hardcode_shlibpath_var=no
8484 ;;
8485
8486 hpux9*)
8487 if test "$GCC" = yes; then
8488 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'
8489 else
8490 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'
8491 fi
8492 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8493 hardcode_libdir_separator=:
8494 hardcode_direct=yes
8495
8496 # hardcode_minus_L: Not really in the search PATH,
8497 # but as the default location of the library.
8498 hardcode_minus_L=yes
8499 export_dynamic_flag_spec='${wl}-E'
8500 ;;
8501
8502 hpux10*)
8503 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8504 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8505 else
8506 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8507 fi
8508 if test "$with_gnu_ld" = no; then
8509 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8510 hardcode_libdir_separator=:
8511
8512 hardcode_direct=yes
8513 export_dynamic_flag_spec='${wl}-E'
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 fi
8519 ;;
8520
8521 hpux11*)
8522 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8523 case $host_cpu in
8524 hppa*64*)
8525 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8526 ;;
8527 ia64*)
8528 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8529 ;;
8530 *)
8531 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8532 ;;
8533 esac
8534 else
8535 case $host_cpu in
8536 hppa*64*)
8537 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8538 ;;
8539 ia64*)
8540 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8541 ;;
8542 *)
8543 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8544 ;;
8545 esac
8546 fi
8547 if test "$with_gnu_ld" = no; then
8548 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8549 hardcode_libdir_separator=:
8550
8551 case $host_cpu in
8552 hppa*64*|ia64*)
8553 hardcode_libdir_flag_spec_ld='+b $libdir'
8554 hardcode_direct=no
8555 hardcode_shlibpath_var=no
8556 ;;
8557 *)
8558 hardcode_direct=yes
8559 export_dynamic_flag_spec='${wl}-E'
8560
8561 # hardcode_minus_L: Not really in the search PATH,
8562 # but as the default location of the library.
8563 hardcode_minus_L=yes
8564 ;;
8565 esac
8566 fi
8567 ;;
8568
8569 irix5* | irix6* | nonstopux*)
8570 if test "$GCC" = yes; then
8571 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'
8572 else
8573 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'
8574 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8575 fi
8576 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8577 hardcode_libdir_separator=:
8578 link_all_deplibs=yes
8579 ;;
8580
8581 netbsd* | netbsdelf*-gnu)
8582 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8583 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8584 else
8585 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8586 fi
8587 hardcode_libdir_flag_spec='-R$libdir'
8588 hardcode_direct=yes
8589 hardcode_shlibpath_var=no
8590 ;;
8591
8592 newsos6)
8593 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8594 hardcode_direct=yes
8595 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8596 hardcode_libdir_separator=:
8597 hardcode_shlibpath_var=no
8598 ;;
8599
8600 openbsd*)
8601 hardcode_direct=yes
8602 hardcode_shlibpath_var=no
8603 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8604 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8605 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8606 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8607 export_dynamic_flag_spec='${wl}-E'
8608 else
8609 case $host_os in
8610 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8611 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8612 hardcode_libdir_flag_spec='-R$libdir'
8613 ;;
8614 *)
8615 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8616 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8617 ;;
8618 esac
8619 fi
8620 ;;
8621
8622 os2*)
8623 hardcode_libdir_flag_spec='-L$libdir'
8624 hardcode_minus_L=yes
8625 allow_undefined_flag=unsupported
8626 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'
8627 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8628 ;;
8629
8630 osf3*)
8631 if test "$GCC" = yes; then
8632 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8633 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'
8634 else
8635 allow_undefined_flag=' -expect_unresolved \*'
8636 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'
8637 fi
8638 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8639 hardcode_libdir_separator=:
8640 ;;
8641
8642 osf4* | osf5*) # as osf3* with the addition of -msym flag
8643 if test "$GCC" = yes; then
8644 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8645 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'
8646 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8647 else
8648 allow_undefined_flag=' -expect_unresolved \*'
8649 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'
8650 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8651 $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'
8652
8653 # Both c and cxx compiler support -rpath directly
8654 hardcode_libdir_flag_spec='-rpath $libdir'
8655 fi
8656 hardcode_libdir_separator=:
8657 ;;
8658
8659 solaris*)
8660 no_undefined_flag=' -z text'
8661 if test "$GCC" = yes; then
8662 wlarc='${wl}'
8663 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8664 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8665 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8666 else
8667 wlarc=''
8668 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8669 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8670 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8671 fi
8672 hardcode_libdir_flag_spec='-R$libdir'
8673 hardcode_shlibpath_var=no
8674 case $host_os in
8675 solaris2.[0-5] | solaris2.[0-5].*) ;;
8676 *)
8677 # The compiler driver will combine linker options so we
8678 # cannot just pass the convience library names through
8679 # without $wl, iff we do not link with $LD.
8680 # Luckily, gcc supports the same syntax we need for Sun Studio.
8681 # Supported since Solaris 2.6 (maybe 2.5.1?)
8682 case $wlarc in
8683 '')
8684 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8685 *)
8686 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' ;;
8687 esac ;;
8688 esac
8689 link_all_deplibs=yes
8690 ;;
8691
8692 sunos4*)
8693 if test "x$host_vendor" = xsequent; then
8694 # Use $CC to link under sequent, because it throws in some extra .o
8695 # files that make .init and .fini sections work.
8696 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8697 else
8698 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8699 fi
8700 hardcode_libdir_flag_spec='-L$libdir'
8701 hardcode_direct=yes
8702 hardcode_minus_L=yes
8703 hardcode_shlibpath_var=no
8704 ;;
8705
8706 sysv4)
8707 case $host_vendor in
8708 sni)
8709 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8710 hardcode_direct=yes # is this really true???
8711 ;;
8712 siemens)
8713 ## LD is ld it makes a PLAMLIB
8714 ## CC just makes a GrossModule.
8715 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8716 reload_cmds='$CC -r -o $output$reload_objs'
8717 hardcode_direct=no
8718 ;;
8719 motorola)
8720 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8721 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8722 ;;
8723 esac
8724 runpath_var='LD_RUN_PATH'
8725 hardcode_shlibpath_var=no
8726 ;;
8727
8728 sysv4.3*)
8729 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8730 hardcode_shlibpath_var=no
8731 export_dynamic_flag_spec='-Bexport'
8732 ;;
8733
8734 sysv4*MP*)
8735 if test -d /usr/nec; then
8736 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8737 hardcode_shlibpath_var=no
8738 runpath_var=LD_RUN_PATH
8739 hardcode_runpath_var=yes
8740 ld_shlibs=yes
8741 fi
8742 ;;
8743
8744 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8745 no_undefined_flag='${wl}-z,text'
8746 archive_cmds_need_lc=no
8747 hardcode_shlibpath_var=no
8748 runpath_var='LD_RUN_PATH'
8749
8750 if test "$GCC" = yes; then
8751 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8752 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8753 else
8754 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8755 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8756 fi
8757 ;;
8758
8759 sysv5* | sco3.2v5* | sco5v6*)
8760 # Note: We can NOT use -z defs as we might desire, because we do not
8761 # link with -lc, and that would cause any symbols used from libc to
8762 # always be unresolved, which means just about no library would
8763 # ever link correctly. If we're not using GNU ld we use -z text
8764 # though, which does catch some bad symbols but isn't as heavy-handed
8765 # as -z defs.
8766 no_undefined_flag='${wl}-z,text'
8767 allow_undefined_flag='${wl}-z,nodefs'
8768 archive_cmds_need_lc=no
8769 hardcode_shlibpath_var=no
8770 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8771 hardcode_libdir_separator=':'
8772 link_all_deplibs=yes
8773 export_dynamic_flag_spec='${wl}-Bexport'
8774 runpath_var='LD_RUN_PATH'
8775
8776 if test "$GCC" = yes; then
8777 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8778 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8779 else
8780 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8781 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8782 fi
8783 ;;
8784
8785 uts4*)
8786 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8787 hardcode_libdir_flag_spec='-L$libdir'
8788 hardcode_shlibpath_var=no
8789 ;;
8790
8791 *)
8792 ld_shlibs=no
8793 ;;
8794 esac
8795 fi
8796
8797 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8798 echo "${ECHO_T}$ld_shlibs" >&6; }
8799 test "$ld_shlibs" = no && can_build_shared=no
8800
8801 #
8802 # Do we need to explicitly link libc?
8803 #
8804 case "x$archive_cmds_need_lc" in
8805 x|xyes)
8806 # Assume -lc should be added
8807 archive_cmds_need_lc=yes
8808
8809 if test "$enable_shared" = yes && test "$GCC" = yes; then
8810 case $archive_cmds in
8811 *'~'*)
8812 # FIXME: we may have to deal with multi-command sequences.
8813 ;;
8814 '$CC '*)
8815 # Test whether the compiler implicitly links with -lc since on some
8816 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8817 # to ld, don't add -lc before -lgcc.
8818 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8819 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8820 $rm conftest*
8821 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8822
8823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8824 (eval $ac_compile) 2>&5
8825 ac_status=$?
8826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8827 (exit $ac_status); } 2>conftest.err; then
8828 soname=conftest
8829 lib=conftest
8830 libobjs=conftest.$ac_objext
8831 deplibs=
8832 wl=$lt_prog_compiler_wl
8833 pic_flag=$lt_prog_compiler_pic
8834 compiler_flags=-v
8835 linker_flags=-v
8836 verstring=
8837 output_objdir=.
8838 libname=conftest
8839 lt_save_allow_undefined_flag=$allow_undefined_flag
8840 allow_undefined_flag=
8841 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8842 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8843 ac_status=$?
8844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845 (exit $ac_status); }
8846 then
8847 archive_cmds_need_lc=no
8848 else
8849 archive_cmds_need_lc=yes
8850 fi
8851 allow_undefined_flag=$lt_save_allow_undefined_flag
8852 else
8853 cat conftest.err 1>&5
8854 fi
8855 $rm conftest*
8856 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8857 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8858 ;;
8859 esac
8860 fi
8861 ;;
8862 esac
8863
8864 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8865 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8866 library_names_spec=
8867 libname_spec='lib$name'
8868 soname_spec=
8869 shrext_cmds=".so"
8870 postinstall_cmds=
8871 postuninstall_cmds=
8872 finish_cmds=
8873 finish_eval=
8874 shlibpath_var=
8875 shlibpath_overrides_runpath=unknown
8876 version_type=none
8877 dynamic_linker="$host_os ld.so"
8878 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8879 if test "$GCC" = yes; then
8880 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8881 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8882 # if the path contains ";" then we assume it to be the separator
8883 # otherwise default to the standard path separator (i.e. ":") - it is
8884 # assumed that no part of a normal pathname contains ";" but that should
8885 # okay in the real world where ";" in dirpaths is itself problematic.
8886 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8887 else
8888 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8889 fi
8890 else
8891 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8892 fi
8893 need_lib_prefix=unknown
8894 hardcode_into_libs=no
8895
8896 # when you set need_version to no, make sure it does not cause -set_version
8897 # flags to be left without arguments
8898 need_version=unknown
8899
8900 case $host_os in
8901 aix3*)
8902 version_type=linux
8903 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8904 shlibpath_var=LIBPATH
8905
8906 # AIX 3 has no versioning support, so we append a major version to the name.
8907 soname_spec='${libname}${release}${shared_ext}$major'
8908 ;;
8909
8910 aix4* | aix5*)
8911 version_type=linux
8912 need_lib_prefix=no
8913 need_version=no
8914 hardcode_into_libs=yes
8915 if test "$host_cpu" = ia64; then
8916 # AIX 5 supports IA64
8917 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8918 shlibpath_var=LD_LIBRARY_PATH
8919 else
8920 # With GCC up to 2.95.x, collect2 would create an import file
8921 # for dependence libraries. The import file would start with
8922 # the line `#! .'. This would cause the generated library to
8923 # depend on `.', always an invalid library. This was fixed in
8924 # development snapshots of GCC prior to 3.0.
8925 case $host_os in
8926 aix4 | aix4.[01] | aix4.[01].*)
8927 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8928 echo ' yes '
8929 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8930 :
8931 else
8932 can_build_shared=no
8933 fi
8934 ;;
8935 esac
8936 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8937 # soname into executable. Probably we can add versioning support to
8938 # collect2, so additional links can be useful in future.
8939 if test "$aix_use_runtimelinking" = yes; then
8940 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8941 # instead of lib<name>.a to let people know that these are not
8942 # typical AIX shared libraries.
8943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8944 else
8945 # We preserve .a as extension for shared libraries through AIX4.2
8946 # and later when we are not doing run time linking.
8947 library_names_spec='${libname}${release}.a $libname.a'
8948 soname_spec='${libname}${release}${shared_ext}$major'
8949 fi
8950 shlibpath_var=LIBPATH
8951 fi
8952 ;;
8953
8954 amigaos*)
8955 library_names_spec='$libname.ixlibrary $libname.a'
8956 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8957 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'
8958 ;;
8959
8960 beos*)
8961 library_names_spec='${libname}${shared_ext}'
8962 dynamic_linker="$host_os ld.so"
8963 shlibpath_var=LIBRARY_PATH
8964 ;;
8965
8966 bsdi[45]*)
8967 version_type=linux
8968 need_version=no
8969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8970 soname_spec='${libname}${release}${shared_ext}$major'
8971 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8972 shlibpath_var=LD_LIBRARY_PATH
8973 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8974 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8975 # the default ld.so.conf also contains /usr/contrib/lib and
8976 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8977 # libtool to hard-code these into programs
8978 ;;
8979
8980 cygwin* | mingw* | pw32*)
8981 version_type=windows
8982 shrext_cmds=".dll"
8983 need_version=no
8984 need_lib_prefix=no
8985
8986 case $GCC,$host_os in
8987 yes,cygwin* | yes,mingw* | yes,pw32*)
8988 library_names_spec='$libname.dll.a'
8989 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8990 postinstall_cmds='base_file=`basename \${file}`~
8991 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8992 dldir=$destdir/`dirname \$dlpath`~
8993 test -d \$dldir || mkdir -p \$dldir~
8994 $install_prog $dir/$dlname \$dldir/$dlname~
8995 chmod a+x \$dldir/$dlname'
8996 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8997 dlpath=$dir/\$dldll~
8998 $rm \$dlpath'
8999 shlibpath_overrides_runpath=yes
9000
9001 case $host_os in
9002 cygwin*)
9003 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9004 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9005 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9006 ;;
9007 mingw*)
9008 # MinGW DLLs use traditional 'lib' prefix
9009 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9010 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9011 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9012 # It is most probably a Windows format PATH printed by
9013 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9014 # path with ; separators, and with drive letters. We can handle the
9015 # drive letters (cygwin fileutils understands them), so leave them,
9016 # especially as we might pass files found there to a mingw objdump,
9017 # which wouldn't understand a cygwinified path. Ahh.
9018 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9019 else
9020 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9021 fi
9022 ;;
9023 pw32*)
9024 # pw32 DLLs use 'pw' prefix rather than 'lib'
9025 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9026 ;;
9027 esac
9028 ;;
9029
9030 *)
9031 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9032 ;;
9033 esac
9034 dynamic_linker='Win32 ld.exe'
9035 # FIXME: first we should search . and the directory the executable is in
9036 shlibpath_var=PATH
9037 ;;
9038
9039 darwin* | rhapsody*)
9040 dynamic_linker="$host_os dyld"
9041 version_type=darwin
9042 need_lib_prefix=no
9043 need_version=no
9044 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9045 soname_spec='${libname}${release}${major}$shared_ext'
9046 shlibpath_overrides_runpath=yes
9047 shlibpath_var=DYLD_LIBRARY_PATH
9048 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9049 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9050 if test "$GCC" = yes; then
9051 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"`
9052 else
9053 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9054 fi
9055 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9056 ;;
9057
9058 dgux*)
9059 version_type=linux
9060 need_lib_prefix=no
9061 need_version=no
9062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9063 soname_spec='${libname}${release}${shared_ext}$major'
9064 shlibpath_var=LD_LIBRARY_PATH
9065 ;;
9066
9067 freebsd1*)
9068 dynamic_linker=no
9069 ;;
9070
9071 freebsd* | dragonfly*)
9072 # DragonFly does not have aout. When/if they implement a new
9073 # versioning mechanism, adjust this.
9074 if test -x /usr/bin/objformat; then
9075 objformat=`/usr/bin/objformat`
9076 else
9077 case $host_os in
9078 freebsd[123]*) objformat=aout ;;
9079 *) objformat=elf ;;
9080 esac
9081 fi
9082 version_type=freebsd-$objformat
9083 case $version_type in
9084 freebsd-elf*)
9085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9086 need_version=no
9087 need_lib_prefix=no
9088 ;;
9089 freebsd-*)
9090 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9091 need_version=yes
9092 ;;
9093 esac
9094 shlibpath_var=LD_LIBRARY_PATH
9095 case $host_os in
9096 freebsd2*)
9097 shlibpath_overrides_runpath=yes
9098 ;;
9099 freebsd3.[01]* | freebsdelf3.[01]*)
9100 shlibpath_overrides_runpath=yes
9101 hardcode_into_libs=yes
9102 ;;
9103 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9104 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9105 shlibpath_overrides_runpath=no
9106 hardcode_into_libs=yes
9107 ;;
9108 freebsd*) # from 4.6 on
9109 shlibpath_overrides_runpath=yes
9110 hardcode_into_libs=yes
9111 ;;
9112 esac
9113 ;;
9114
9115 gnu*)
9116 version_type=linux
9117 need_lib_prefix=no
9118 need_version=no
9119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9120 soname_spec='${libname}${release}${shared_ext}$major'
9121 shlibpath_var=LD_LIBRARY_PATH
9122 hardcode_into_libs=yes
9123 ;;
9124
9125 hpux9* | hpux10* | hpux11*)
9126 # Give a soname corresponding to the major version so that dld.sl refuses to
9127 # link against other versions.
9128 version_type=sunos
9129 need_lib_prefix=no
9130 need_version=no
9131 case $host_cpu in
9132 ia64*)
9133 shrext_cmds='.so'
9134 hardcode_into_libs=yes
9135 dynamic_linker="$host_os dld.so"
9136 shlibpath_var=LD_LIBRARY_PATH
9137 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 if test "X$HPUX_IA64_MODE" = X32; then
9141 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9142 else
9143 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9144 fi
9145 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9146 ;;
9147 hppa*64*)
9148 shrext_cmds='.sl'
9149 hardcode_into_libs=yes
9150 dynamic_linker="$host_os dld.sl"
9151 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9152 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9154 soname_spec='${libname}${release}${shared_ext}$major'
9155 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9156 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9157 ;;
9158 *)
9159 shrext_cmds='.sl'
9160 dynamic_linker="$host_os dld.sl"
9161 shlibpath_var=SHLIB_PATH
9162 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9164 soname_spec='${libname}${release}${shared_ext}$major'
9165 ;;
9166 esac
9167 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9168 postinstall_cmds='chmod 555 $lib'
9169 ;;
9170
9171 interix3*)
9172 version_type=linux
9173 need_lib_prefix=no
9174 need_version=no
9175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9176 soname_spec='${libname}${release}${shared_ext}$major'
9177 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9178 shlibpath_var=LD_LIBRARY_PATH
9179 shlibpath_overrides_runpath=no
9180 hardcode_into_libs=yes
9181 ;;
9182
9183 irix5* | irix6* | nonstopux*)
9184 case $host_os in
9185 nonstopux*) version_type=nonstopux ;;
9186 *)
9187 if test "$lt_cv_prog_gnu_ld" = yes; then
9188 version_type=linux
9189 else
9190 version_type=irix
9191 fi ;;
9192 esac
9193 need_lib_prefix=no
9194 need_version=no
9195 soname_spec='${libname}${release}${shared_ext}$major'
9196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9197 case $host_os in
9198 irix5* | nonstopux*)
9199 libsuff= shlibsuff=
9200 ;;
9201 *)
9202 case $LD in # libtool.m4 will add one of these switches to LD
9203 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9204 libsuff= shlibsuff= libmagic=32-bit;;
9205 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9206 libsuff=32 shlibsuff=N32 libmagic=N32;;
9207 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9208 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9209 *) libsuff= shlibsuff= libmagic=never-match;;
9210 esac
9211 ;;
9212 esac
9213 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9214 shlibpath_overrides_runpath=no
9215 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9216 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9217 hardcode_into_libs=yes
9218 ;;
9219
9220 # No shared lib support for Linux oldld, aout, or coff.
9221 linux*oldld* | linux*aout* | linux*coff*)
9222 dynamic_linker=no
9223 ;;
9224
9225 # This must be Linux ELF.
9226 linux* | k*bsd*-gnu)
9227 version_type=linux
9228 need_lib_prefix=no
9229 need_version=no
9230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9231 soname_spec='${libname}${release}${shared_ext}$major'
9232 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9233 shlibpath_var=LD_LIBRARY_PATH
9234 shlibpath_overrides_runpath=no
9235 # This implies no fast_install, which is unacceptable.
9236 # Some rework will be needed to allow for fast_install
9237 # before this can be enabled.
9238 hardcode_into_libs=yes
9239
9240 # Append ld.so.conf contents to the search path
9241 if test -f /etc/ld.so.conf; then
9242 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' ' '`
9243 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9244 fi
9245
9246 # We used to test for /lib/ld.so.1 and disable shared libraries on
9247 # powerpc, because MkLinux only supported shared libraries with the
9248 # GNU dynamic linker. Since this was broken with cross compilers,
9249 # most powerpc-linux boxes support dynamic linking these days and
9250 # people can always --disable-shared, the test was removed, and we
9251 # assume the GNU/Linux dynamic linker is in use.
9252 dynamic_linker='GNU/Linux ld.so'
9253 ;;
9254
9255 netbsdelf*-gnu)
9256 version_type=linux
9257 need_lib_prefix=no
9258 need_version=no
9259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9260 soname_spec='${libname}${release}${shared_ext}$major'
9261 shlibpath_var=LD_LIBRARY_PATH
9262 shlibpath_overrides_runpath=no
9263 hardcode_into_libs=yes
9264 dynamic_linker='NetBSD ld.elf_so'
9265 ;;
9266
9267 netbsd*)
9268 version_type=sunos
9269 need_lib_prefix=no
9270 need_version=no
9271 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9273 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9274 dynamic_linker='NetBSD (a.out) ld.so'
9275 else
9276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9277 soname_spec='${libname}${release}${shared_ext}$major'
9278 dynamic_linker='NetBSD ld.elf_so'
9279 fi
9280 shlibpath_var=LD_LIBRARY_PATH
9281 shlibpath_overrides_runpath=yes
9282 hardcode_into_libs=yes
9283 ;;
9284
9285 newsos6)
9286 version_type=linux
9287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9288 shlibpath_var=LD_LIBRARY_PATH
9289 shlibpath_overrides_runpath=yes
9290 ;;
9291
9292 nto-qnx*)
9293 version_type=linux
9294 need_lib_prefix=no
9295 need_version=no
9296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9297 soname_spec='${libname}${release}${shared_ext}$major'
9298 shlibpath_var=LD_LIBRARY_PATH
9299 shlibpath_overrides_runpath=yes
9300 ;;
9301
9302 openbsd*)
9303 version_type=sunos
9304 sys_lib_dlsearch_path_spec="/usr/lib"
9305 need_lib_prefix=no
9306 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9307 case $host_os in
9308 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9309 *) need_version=no ;;
9310 esac
9311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9312 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9313 shlibpath_var=LD_LIBRARY_PATH
9314 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9315 case $host_os in
9316 openbsd2.[89] | openbsd2.[89].*)
9317 shlibpath_overrides_runpath=no
9318 ;;
9319 *)
9320 shlibpath_overrides_runpath=yes
9321 ;;
9322 esac
9323 else
9324 shlibpath_overrides_runpath=yes
9325 fi
9326 ;;
9327
9328 os2*)
9329 libname_spec='$name'
9330 shrext_cmds=".dll"
9331 need_lib_prefix=no
9332 library_names_spec='$libname${shared_ext} $libname.a'
9333 dynamic_linker='OS/2 ld.exe'
9334 shlibpath_var=LIBPATH
9335 ;;
9336
9337 osf3* | osf4* | osf5*)
9338 version_type=osf
9339 need_lib_prefix=no
9340 need_version=no
9341 soname_spec='${libname}${release}${shared_ext}$major'
9342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9343 shlibpath_var=LD_LIBRARY_PATH
9344 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9345 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9346 ;;
9347
9348 solaris*)
9349 version_type=linux
9350 need_lib_prefix=no
9351 need_version=no
9352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9353 soname_spec='${libname}${release}${shared_ext}$major'
9354 shlibpath_var=LD_LIBRARY_PATH
9355 shlibpath_overrides_runpath=yes
9356 hardcode_into_libs=yes
9357 # ldd complains unless libraries are executable
9358 postinstall_cmds='chmod +x $lib'
9359 ;;
9360
9361 sunos4*)
9362 version_type=sunos
9363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9364 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9365 shlibpath_var=LD_LIBRARY_PATH
9366 shlibpath_overrides_runpath=yes
9367 if test "$with_gnu_ld" = yes; then
9368 need_lib_prefix=no
9369 fi
9370 need_version=yes
9371 ;;
9372
9373 sysv4 | sysv4.3*)
9374 version_type=linux
9375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9376 soname_spec='${libname}${release}${shared_ext}$major'
9377 shlibpath_var=LD_LIBRARY_PATH
9378 case $host_vendor in
9379 sni)
9380 shlibpath_overrides_runpath=no
9381 need_lib_prefix=no
9382 export_dynamic_flag_spec='${wl}-Blargedynsym'
9383 runpath_var=LD_RUN_PATH
9384 ;;
9385 siemens)
9386 need_lib_prefix=no
9387 ;;
9388 motorola)
9389 need_lib_prefix=no
9390 need_version=no
9391 shlibpath_overrides_runpath=no
9392 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9393 ;;
9394 esac
9395 ;;
9396
9397 sysv4*MP*)
9398 if test -d /usr/nec ;then
9399 version_type=linux
9400 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9401 soname_spec='$libname${shared_ext}.$major'
9402 shlibpath_var=LD_LIBRARY_PATH
9403 fi
9404 ;;
9405
9406 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9407 version_type=freebsd-elf
9408 need_lib_prefix=no
9409 need_version=no
9410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9411 soname_spec='${libname}${release}${shared_ext}$major'
9412 shlibpath_var=LD_LIBRARY_PATH
9413 hardcode_into_libs=yes
9414 if test "$with_gnu_ld" = yes; then
9415 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9416 shlibpath_overrides_runpath=no
9417 else
9418 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9419 shlibpath_overrides_runpath=yes
9420 case $host_os in
9421 sco3.2v5*)
9422 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9423 ;;
9424 esac
9425 fi
9426 sys_lib_dlsearch_path_spec='/usr/lib'
9427 ;;
9428
9429 uts4*)
9430 version_type=linux
9431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9432 soname_spec='${libname}${release}${shared_ext}$major'
9433 shlibpath_var=LD_LIBRARY_PATH
9434 ;;
9435
9436 *)
9437 dynamic_linker=no
9438 ;;
9439 esac
9440 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9441 echo "${ECHO_T}$dynamic_linker" >&6; }
9442 test "$dynamic_linker" = no && can_build_shared=no
9443
9444 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9445 if test "$GCC" = yes; then
9446 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9447 fi
9448
9449 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9450 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9451 hardcode_action=
9452 if test -n "$hardcode_libdir_flag_spec" || \
9453 test -n "$runpath_var" || \
9454 test "X$hardcode_automatic" = "Xyes" ; then
9455
9456 # We can hardcode non-existant directories.
9457 if test "$hardcode_direct" != no &&
9458 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9459 # have to relink, otherwise we might link with an installed library
9460 # when we should be linking with a yet-to-be-installed one
9461 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9462 test "$hardcode_minus_L" != no; then
9463 # Linking always hardcodes the temporary library directory.
9464 hardcode_action=relink
9465 else
9466 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9467 hardcode_action=immediate
9468 fi
9469 else
9470 # We cannot hardcode anything, or else we can only hardcode existing
9471 # directories.
9472 hardcode_action=unsupported
9473 fi
9474 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9475 echo "${ECHO_T}$hardcode_action" >&6; }
9476
9477 if test "$hardcode_action" = relink; then
9478 # Fast installation is not supported
9479 enable_fast_install=no
9480 elif test "$shlibpath_overrides_runpath" = yes ||
9481 test "$enable_shared" = no; then
9482 # Fast installation is not necessary
9483 enable_fast_install=needless
9484 fi
9485
9486 striplib=
9487 old_striplib=
9488 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9489 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9490 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9491 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9492 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9493 { echo "$as_me:$LINENO: result: yes" >&5
9494 echo "${ECHO_T}yes" >&6; }
9495 else
9496 # FIXME - insert some real tests, host_os isn't really good enough
9497 case $host_os in
9498 darwin*)
9499 if test -n "$STRIP" ; then
9500 striplib="$STRIP -x"
9501 { echo "$as_me:$LINENO: result: yes" >&5
9502 echo "${ECHO_T}yes" >&6; }
9503 else
9504 { echo "$as_me:$LINENO: result: no" >&5
9505 echo "${ECHO_T}no" >&6; }
9506 fi
9507 ;;
9508 *)
9509 { echo "$as_me:$LINENO: result: no" >&5
9510 echo "${ECHO_T}no" >&6; }
9511 ;;
9512 esac
9513 fi
9514
9515 if test "x$enable_dlopen" != xyes; then
9516 enable_dlopen=unknown
9517 enable_dlopen_self=unknown
9518 enable_dlopen_self_static=unknown
9519 else
9520 lt_cv_dlopen=no
9521 lt_cv_dlopen_libs=
9522
9523 case $host_os in
9524 beos*)
9525 lt_cv_dlopen="load_add_on"
9526 lt_cv_dlopen_libs=
9527 lt_cv_dlopen_self=yes
9528 ;;
9529
9530 mingw* | pw32*)
9531 lt_cv_dlopen="LoadLibrary"
9532 lt_cv_dlopen_libs=
9533 ;;
9534
9535 cygwin*)
9536 lt_cv_dlopen="dlopen"
9537 lt_cv_dlopen_libs=
9538 ;;
9539
9540 darwin*)
9541 # if libdl is installed we need to link against it
9542 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9543 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9544 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9545 echo $ECHO_N "(cached) $ECHO_C" >&6
9546 else
9547 ac_check_lib_save_LIBS=$LIBS
9548 LIBS="-ldl $LIBS"
9549 cat >conftest.$ac_ext <<_ACEOF
9550 /* confdefs.h. */
9551 _ACEOF
9552 cat confdefs.h >>conftest.$ac_ext
9553 cat >>conftest.$ac_ext <<_ACEOF
9554 /* end confdefs.h. */
9555
9556 /* Override any GCC internal prototype to avoid an error.
9557 Use char because int might match the return type of a GCC
9558 builtin and then its argument prototype would still apply. */
9559 #ifdef __cplusplus
9560 extern "C"
9561 #endif
9562 char dlopen ();
9563 int
9564 main ()
9565 {
9566 return dlopen ();
9567 ;
9568 return 0;
9569 }
9570 _ACEOF
9571 rm -f conftest.$ac_objext conftest$ac_exeext
9572 if { (ac_try="$ac_link"
9573 case "(($ac_try" in
9574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9575 *) ac_try_echo=$ac_try;;
9576 esac
9577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9578 (eval "$ac_link") 2>conftest.er1
9579 ac_status=$?
9580 grep -v '^ *+' conftest.er1 >conftest.err
9581 rm -f conftest.er1
9582 cat conftest.err >&5
9583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584 (exit $ac_status); } &&
9585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9586 { (case "(($ac_try" in
9587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9588 *) ac_try_echo=$ac_try;;
9589 esac
9590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9591 (eval "$ac_try") 2>&5
9592 ac_status=$?
9593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594 (exit $ac_status); }; } &&
9595 { ac_try='test -s conftest$ac_exeext'
9596 { (case "(($ac_try" in
9597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9598 *) ac_try_echo=$ac_try;;
9599 esac
9600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9601 (eval "$ac_try") 2>&5
9602 ac_status=$?
9603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9604 (exit $ac_status); }; }; then
9605 ac_cv_lib_dl_dlopen=yes
9606 else
9607 echo "$as_me: failed program was:" >&5
9608 sed 's/^/| /' conftest.$ac_ext >&5
9609
9610 ac_cv_lib_dl_dlopen=no
9611 fi
9612
9613 rm -f core conftest.err conftest.$ac_objext \
9614 conftest$ac_exeext conftest.$ac_ext
9615 LIBS=$ac_check_lib_save_LIBS
9616 fi
9617 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9618 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9619 if test $ac_cv_lib_dl_dlopen = yes; then
9620 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9621 else
9622
9623 lt_cv_dlopen="dyld"
9624 lt_cv_dlopen_libs=
9625 lt_cv_dlopen_self=yes
9626
9627 fi
9628
9629 ;;
9630
9631 *)
9632 { echo "$as_me:$LINENO: checking for shl_load" >&5
9633 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9634 if test "${ac_cv_func_shl_load+set}" = set; then
9635 echo $ECHO_N "(cached) $ECHO_C" >&6
9636 else
9637 cat >conftest.$ac_ext <<_ACEOF
9638 /* confdefs.h. */
9639 _ACEOF
9640 cat confdefs.h >>conftest.$ac_ext
9641 cat >>conftest.$ac_ext <<_ACEOF
9642 /* end confdefs.h. */
9643 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9644 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9645 #define shl_load innocuous_shl_load
9646
9647 /* System header to define __stub macros and hopefully few prototypes,
9648 which can conflict with char shl_load (); below.
9649 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9650 <limits.h> exists even on freestanding compilers. */
9651
9652 #ifdef __STDC__
9653 # include <limits.h>
9654 #else
9655 # include <assert.h>
9656 #endif
9657
9658 #undef shl_load
9659
9660 /* Override any GCC internal prototype to avoid an error.
9661 Use char because int might match the return type of a GCC
9662 builtin and then its argument prototype would still apply. */
9663 #ifdef __cplusplus
9664 extern "C"
9665 #endif
9666 char shl_load ();
9667 /* The GNU C library defines this for functions which it implements
9668 to always fail with ENOSYS. Some functions are actually named
9669 something starting with __ and the normal name is an alias. */
9670 #if defined __stub_shl_load || defined __stub___shl_load
9671 choke me
9672 #endif
9673
9674 int
9675 main ()
9676 {
9677 return shl_load ();
9678 ;
9679 return 0;
9680 }
9681 _ACEOF
9682 rm -f conftest.$ac_objext conftest$ac_exeext
9683 if { (ac_try="$ac_link"
9684 case "(($ac_try" in
9685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9686 *) ac_try_echo=$ac_try;;
9687 esac
9688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9689 (eval "$ac_link") 2>conftest.er1
9690 ac_status=$?
9691 grep -v '^ *+' conftest.er1 >conftest.err
9692 rm -f conftest.er1
9693 cat conftest.err >&5
9694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695 (exit $ac_status); } &&
9696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9697 { (case "(($ac_try" in
9698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9699 *) ac_try_echo=$ac_try;;
9700 esac
9701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9702 (eval "$ac_try") 2>&5
9703 ac_status=$?
9704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705 (exit $ac_status); }; } &&
9706 { ac_try='test -s conftest$ac_exeext'
9707 { (case "(($ac_try" in
9708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9709 *) ac_try_echo=$ac_try;;
9710 esac
9711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9712 (eval "$ac_try") 2>&5
9713 ac_status=$?
9714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715 (exit $ac_status); }; }; then
9716 ac_cv_func_shl_load=yes
9717 else
9718 echo "$as_me: failed program was:" >&5
9719 sed 's/^/| /' conftest.$ac_ext >&5
9720
9721 ac_cv_func_shl_load=no
9722 fi
9723
9724 rm -f core conftest.err conftest.$ac_objext \
9725 conftest$ac_exeext conftest.$ac_ext
9726 fi
9727 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9728 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9729 if test $ac_cv_func_shl_load = yes; then
9730 lt_cv_dlopen="shl_load"
9731 else
9732 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9733 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9734 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9735 echo $ECHO_N "(cached) $ECHO_C" >&6
9736 else
9737 ac_check_lib_save_LIBS=$LIBS
9738 LIBS="-ldld $LIBS"
9739 cat >conftest.$ac_ext <<_ACEOF
9740 /* confdefs.h. */
9741 _ACEOF
9742 cat confdefs.h >>conftest.$ac_ext
9743 cat >>conftest.$ac_ext <<_ACEOF
9744 /* end confdefs.h. */
9745
9746 /* Override any GCC internal prototype to avoid an error.
9747 Use char because int might match the return type of a GCC
9748 builtin and then its argument prototype would still apply. */
9749 #ifdef __cplusplus
9750 extern "C"
9751 #endif
9752 char shl_load ();
9753 int
9754 main ()
9755 {
9756 return shl_load ();
9757 ;
9758 return 0;
9759 }
9760 _ACEOF
9761 rm -f conftest.$ac_objext conftest$ac_exeext
9762 if { (ac_try="$ac_link"
9763 case "(($ac_try" in
9764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9765 *) ac_try_echo=$ac_try;;
9766 esac
9767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9768 (eval "$ac_link") 2>conftest.er1
9769 ac_status=$?
9770 grep -v '^ *+' conftest.er1 >conftest.err
9771 rm -f conftest.er1
9772 cat conftest.err >&5
9773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774 (exit $ac_status); } &&
9775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9776 { (case "(($ac_try" in
9777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9778 *) ac_try_echo=$ac_try;;
9779 esac
9780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9781 (eval "$ac_try") 2>&5
9782 ac_status=$?
9783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784 (exit $ac_status); }; } &&
9785 { ac_try='test -s conftest$ac_exeext'
9786 { (case "(($ac_try" in
9787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9788 *) ac_try_echo=$ac_try;;
9789 esac
9790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9791 (eval "$ac_try") 2>&5
9792 ac_status=$?
9793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794 (exit $ac_status); }; }; then
9795 ac_cv_lib_dld_shl_load=yes
9796 else
9797 echo "$as_me: failed program was:" >&5
9798 sed 's/^/| /' conftest.$ac_ext >&5
9799
9800 ac_cv_lib_dld_shl_load=no
9801 fi
9802
9803 rm -f core conftest.err conftest.$ac_objext \
9804 conftest$ac_exeext conftest.$ac_ext
9805 LIBS=$ac_check_lib_save_LIBS
9806 fi
9807 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9808 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9809 if test $ac_cv_lib_dld_shl_load = yes; then
9810 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9811 else
9812 { echo "$as_me:$LINENO: checking for dlopen" >&5
9813 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9814 if test "${ac_cv_func_dlopen+set}" = set; then
9815 echo $ECHO_N "(cached) $ECHO_C" >&6
9816 else
9817 cat >conftest.$ac_ext <<_ACEOF
9818 /* confdefs.h. */
9819 _ACEOF
9820 cat confdefs.h >>conftest.$ac_ext
9821 cat >>conftest.$ac_ext <<_ACEOF
9822 /* end confdefs.h. */
9823 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9824 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9825 #define dlopen innocuous_dlopen
9826
9827 /* System header to define __stub macros and hopefully few prototypes,
9828 which can conflict with char dlopen (); below.
9829 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9830 <limits.h> exists even on freestanding compilers. */
9831
9832 #ifdef __STDC__
9833 # include <limits.h>
9834 #else
9835 # include <assert.h>
9836 #endif
9837
9838 #undef dlopen
9839
9840 /* Override any GCC internal prototype to avoid an error.
9841 Use char because int might match the return type of a GCC
9842 builtin and then its argument prototype would still apply. */
9843 #ifdef __cplusplus
9844 extern "C"
9845 #endif
9846 char dlopen ();
9847 /* The GNU C library defines this for functions which it implements
9848 to always fail with ENOSYS. Some functions are actually named
9849 something starting with __ and the normal name is an alias. */
9850 #if defined __stub_dlopen || defined __stub___dlopen
9851 choke me
9852 #endif
9853
9854 int
9855 main ()
9856 {
9857 return dlopen ();
9858 ;
9859 return 0;
9860 }
9861 _ACEOF
9862 rm -f conftest.$ac_objext conftest$ac_exeext
9863 if { (ac_try="$ac_link"
9864 case "(($ac_try" in
9865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9866 *) ac_try_echo=$ac_try;;
9867 esac
9868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9869 (eval "$ac_link") 2>conftest.er1
9870 ac_status=$?
9871 grep -v '^ *+' conftest.er1 >conftest.err
9872 rm -f conftest.er1
9873 cat conftest.err >&5
9874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875 (exit $ac_status); } &&
9876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9877 { (case "(($ac_try" in
9878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9879 *) ac_try_echo=$ac_try;;
9880 esac
9881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9882 (eval "$ac_try") 2>&5
9883 ac_status=$?
9884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885 (exit $ac_status); }; } &&
9886 { ac_try='test -s conftest$ac_exeext'
9887 { (case "(($ac_try" in
9888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9889 *) ac_try_echo=$ac_try;;
9890 esac
9891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9892 (eval "$ac_try") 2>&5
9893 ac_status=$?
9894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895 (exit $ac_status); }; }; then
9896 ac_cv_func_dlopen=yes
9897 else
9898 echo "$as_me: failed program was:" >&5
9899 sed 's/^/| /' conftest.$ac_ext >&5
9900
9901 ac_cv_func_dlopen=no
9902 fi
9903
9904 rm -f core conftest.err conftest.$ac_objext \
9905 conftest$ac_exeext conftest.$ac_ext
9906 fi
9907 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9908 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9909 if test $ac_cv_func_dlopen = yes; then
9910 lt_cv_dlopen="dlopen"
9911 else
9912 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9913 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9914 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9915 echo $ECHO_N "(cached) $ECHO_C" >&6
9916 else
9917 ac_check_lib_save_LIBS=$LIBS
9918 LIBS="-ldl $LIBS"
9919 cat >conftest.$ac_ext <<_ACEOF
9920 /* confdefs.h. */
9921 _ACEOF
9922 cat confdefs.h >>conftest.$ac_ext
9923 cat >>conftest.$ac_ext <<_ACEOF
9924 /* end confdefs.h. */
9925
9926 /* Override any GCC internal prototype to avoid an error.
9927 Use char because int might match the return type of a GCC
9928 builtin and then its argument prototype would still apply. */
9929 #ifdef __cplusplus
9930 extern "C"
9931 #endif
9932 char dlopen ();
9933 int
9934 main ()
9935 {
9936 return dlopen ();
9937 ;
9938 return 0;
9939 }
9940 _ACEOF
9941 rm -f conftest.$ac_objext conftest$ac_exeext
9942 if { (ac_try="$ac_link"
9943 case "(($ac_try" in
9944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9945 *) ac_try_echo=$ac_try;;
9946 esac
9947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9948 (eval "$ac_link") 2>conftest.er1
9949 ac_status=$?
9950 grep -v '^ *+' conftest.er1 >conftest.err
9951 rm -f conftest.er1
9952 cat conftest.err >&5
9953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954 (exit $ac_status); } &&
9955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9956 { (case "(($ac_try" in
9957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9958 *) ac_try_echo=$ac_try;;
9959 esac
9960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9961 (eval "$ac_try") 2>&5
9962 ac_status=$?
9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 (exit $ac_status); }; } &&
9965 { ac_try='test -s conftest$ac_exeext'
9966 { (case "(($ac_try" in
9967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9968 *) ac_try_echo=$ac_try;;
9969 esac
9970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9971 (eval "$ac_try") 2>&5
9972 ac_status=$?
9973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974 (exit $ac_status); }; }; then
9975 ac_cv_lib_dl_dlopen=yes
9976 else
9977 echo "$as_me: failed program was:" >&5
9978 sed 's/^/| /' conftest.$ac_ext >&5
9979
9980 ac_cv_lib_dl_dlopen=no
9981 fi
9982
9983 rm -f core conftest.err conftest.$ac_objext \
9984 conftest$ac_exeext conftest.$ac_ext
9985 LIBS=$ac_check_lib_save_LIBS
9986 fi
9987 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9988 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9989 if test $ac_cv_lib_dl_dlopen = yes; then
9990 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9991 else
9992 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9993 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9994 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9995 echo $ECHO_N "(cached) $ECHO_C" >&6
9996 else
9997 ac_check_lib_save_LIBS=$LIBS
9998 LIBS="-lsvld $LIBS"
9999 cat >conftest.$ac_ext <<_ACEOF
10000 /* confdefs.h. */
10001 _ACEOF
10002 cat confdefs.h >>conftest.$ac_ext
10003 cat >>conftest.$ac_ext <<_ACEOF
10004 /* end confdefs.h. */
10005
10006 /* Override any GCC internal prototype to avoid an error.
10007 Use char because int might match the return type of a GCC
10008 builtin and then its argument prototype would still apply. */
10009 #ifdef __cplusplus
10010 extern "C"
10011 #endif
10012 char dlopen ();
10013 int
10014 main ()
10015 {
10016 return dlopen ();
10017 ;
10018 return 0;
10019 }
10020 _ACEOF
10021 rm -f conftest.$ac_objext conftest$ac_exeext
10022 if { (ac_try="$ac_link"
10023 case "(($ac_try" in
10024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10025 *) ac_try_echo=$ac_try;;
10026 esac
10027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10028 (eval "$ac_link") 2>conftest.er1
10029 ac_status=$?
10030 grep -v '^ *+' conftest.er1 >conftest.err
10031 rm -f conftest.er1
10032 cat conftest.err >&5
10033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034 (exit $ac_status); } &&
10035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10036 { (case "(($ac_try" in
10037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10038 *) ac_try_echo=$ac_try;;
10039 esac
10040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10041 (eval "$ac_try") 2>&5
10042 ac_status=$?
10043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044 (exit $ac_status); }; } &&
10045 { ac_try='test -s conftest$ac_exeext'
10046 { (case "(($ac_try" in
10047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10048 *) ac_try_echo=$ac_try;;
10049 esac
10050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10051 (eval "$ac_try") 2>&5
10052 ac_status=$?
10053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10054 (exit $ac_status); }; }; then
10055 ac_cv_lib_svld_dlopen=yes
10056 else
10057 echo "$as_me: failed program was:" >&5
10058 sed 's/^/| /' conftest.$ac_ext >&5
10059
10060 ac_cv_lib_svld_dlopen=no
10061 fi
10062
10063 rm -f core conftest.err conftest.$ac_objext \
10064 conftest$ac_exeext conftest.$ac_ext
10065 LIBS=$ac_check_lib_save_LIBS
10066 fi
10067 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10068 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10069 if test $ac_cv_lib_svld_dlopen = yes; then
10070 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10071 else
10072 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10073 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10074 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10075 echo $ECHO_N "(cached) $ECHO_C" >&6
10076 else
10077 ac_check_lib_save_LIBS=$LIBS
10078 LIBS="-ldld $LIBS"
10079 cat >conftest.$ac_ext <<_ACEOF
10080 /* confdefs.h. */
10081 _ACEOF
10082 cat confdefs.h >>conftest.$ac_ext
10083 cat >>conftest.$ac_ext <<_ACEOF
10084 /* end confdefs.h. */
10085
10086 /* Override any GCC internal prototype to avoid an error.
10087 Use char because int might match the return type of a GCC
10088 builtin and then its argument prototype would still apply. */
10089 #ifdef __cplusplus
10090 extern "C"
10091 #endif
10092 char dld_link ();
10093 int
10094 main ()
10095 {
10096 return dld_link ();
10097 ;
10098 return 0;
10099 }
10100 _ACEOF
10101 rm -f conftest.$ac_objext conftest$ac_exeext
10102 if { (ac_try="$ac_link"
10103 case "(($ac_try" in
10104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10105 *) ac_try_echo=$ac_try;;
10106 esac
10107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10108 (eval "$ac_link") 2>conftest.er1
10109 ac_status=$?
10110 grep -v '^ *+' conftest.er1 >conftest.err
10111 rm -f conftest.er1
10112 cat conftest.err >&5
10113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10114 (exit $ac_status); } &&
10115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10116 { (case "(($ac_try" in
10117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10118 *) ac_try_echo=$ac_try;;
10119 esac
10120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10121 (eval "$ac_try") 2>&5
10122 ac_status=$?
10123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10124 (exit $ac_status); }; } &&
10125 { ac_try='test -s conftest$ac_exeext'
10126 { (case "(($ac_try" in
10127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10128 *) ac_try_echo=$ac_try;;
10129 esac
10130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10131 (eval "$ac_try") 2>&5
10132 ac_status=$?
10133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134 (exit $ac_status); }; }; then
10135 ac_cv_lib_dld_dld_link=yes
10136 else
10137 echo "$as_me: failed program was:" >&5
10138 sed 's/^/| /' conftest.$ac_ext >&5
10139
10140 ac_cv_lib_dld_dld_link=no
10141 fi
10142
10143 rm -f core conftest.err conftest.$ac_objext \
10144 conftest$ac_exeext conftest.$ac_ext
10145 LIBS=$ac_check_lib_save_LIBS
10146 fi
10147 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10148 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10149 if test $ac_cv_lib_dld_dld_link = yes; then
10150 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10151 fi
10152
10153
10154 fi
10155
10156
10157 fi
10158
10159
10160 fi
10161
10162
10163 fi
10164
10165
10166 fi
10167
10168 ;;
10169 esac
10170
10171 if test "x$lt_cv_dlopen" != xno; then
10172 enable_dlopen=yes
10173 else
10174 enable_dlopen=no
10175 fi
10176
10177 case $lt_cv_dlopen in
10178 dlopen)
10179 save_CPPFLAGS="$CPPFLAGS"
10180 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10181
10182 save_LDFLAGS="$LDFLAGS"
10183 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10184
10185 save_LIBS="$LIBS"
10186 LIBS="$lt_cv_dlopen_libs $LIBS"
10187
10188 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10189 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10190 if test "${lt_cv_dlopen_self+set}" = set; then
10191 echo $ECHO_N "(cached) $ECHO_C" >&6
10192 else
10193 if test "$cross_compiling" = yes; then :
10194 lt_cv_dlopen_self=cross
10195 else
10196 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10197 lt_status=$lt_dlunknown
10198 cat > conftest.$ac_ext <<EOF
10199 #line 10199 "configure"
10200 #include "confdefs.h"
10201
10202 #if HAVE_DLFCN_H
10203 #include <dlfcn.h>
10204 #endif
10205
10206 #include <stdio.h>
10207
10208 #ifdef RTLD_GLOBAL
10209 # define LT_DLGLOBAL RTLD_GLOBAL
10210 #else
10211 # ifdef DL_GLOBAL
10212 # define LT_DLGLOBAL DL_GLOBAL
10213 # else
10214 # define LT_DLGLOBAL 0
10215 # endif
10216 #endif
10217
10218 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10219 find out it does not work in some platform. */
10220 #ifndef LT_DLLAZY_OR_NOW
10221 # ifdef RTLD_LAZY
10222 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10223 # else
10224 # ifdef DL_LAZY
10225 # define LT_DLLAZY_OR_NOW DL_LAZY
10226 # else
10227 # ifdef RTLD_NOW
10228 # define LT_DLLAZY_OR_NOW RTLD_NOW
10229 # else
10230 # ifdef DL_NOW
10231 # define LT_DLLAZY_OR_NOW DL_NOW
10232 # else
10233 # define LT_DLLAZY_OR_NOW 0
10234 # endif
10235 # endif
10236 # endif
10237 # endif
10238 #endif
10239
10240 #ifdef __cplusplus
10241 extern "C" void exit (int);
10242 #endif
10243
10244 void fnord() { int i=42;}
10245 int main ()
10246 {
10247 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10248 int status = $lt_dlunknown;
10249
10250 if (self)
10251 {
10252 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10253 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10254 /* dlclose (self); */
10255 }
10256 else
10257 puts (dlerror ());
10258
10259 exit (status);
10260 }
10261 EOF
10262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10263 (eval $ac_link) 2>&5
10264 ac_status=$?
10265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10267 (./conftest; exit; ) >&5 2>/dev/null
10268 lt_status=$?
10269 case x$lt_status in
10270 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10271 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10272 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10273 esac
10274 else :
10275 # compilation failed
10276 lt_cv_dlopen_self=no
10277 fi
10278 fi
10279 rm -fr conftest*
10280
10281
10282 fi
10283 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10284 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10285
10286 if test "x$lt_cv_dlopen_self" = xyes; then
10287 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10288 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10289 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10290 if test "${lt_cv_dlopen_self_static+set}" = set; then
10291 echo $ECHO_N "(cached) $ECHO_C" >&6
10292 else
10293 if test "$cross_compiling" = yes; then :
10294 lt_cv_dlopen_self_static=cross
10295 else
10296 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10297 lt_status=$lt_dlunknown
10298 cat > conftest.$ac_ext <<EOF
10299 #line 10299 "configure"
10300 #include "confdefs.h"
10301
10302 #if HAVE_DLFCN_H
10303 #include <dlfcn.h>
10304 #endif
10305
10306 #include <stdio.h>
10307
10308 #ifdef RTLD_GLOBAL
10309 # define LT_DLGLOBAL RTLD_GLOBAL
10310 #else
10311 # ifdef DL_GLOBAL
10312 # define LT_DLGLOBAL DL_GLOBAL
10313 # else
10314 # define LT_DLGLOBAL 0
10315 # endif
10316 #endif
10317
10318 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10319 find out it does not work in some platform. */
10320 #ifndef LT_DLLAZY_OR_NOW
10321 # ifdef RTLD_LAZY
10322 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10323 # else
10324 # ifdef DL_LAZY
10325 # define LT_DLLAZY_OR_NOW DL_LAZY
10326 # else
10327 # ifdef RTLD_NOW
10328 # define LT_DLLAZY_OR_NOW RTLD_NOW
10329 # else
10330 # ifdef DL_NOW
10331 # define LT_DLLAZY_OR_NOW DL_NOW
10332 # else
10333 # define LT_DLLAZY_OR_NOW 0
10334 # endif
10335 # endif
10336 # endif
10337 # endif
10338 #endif
10339
10340 #ifdef __cplusplus
10341 extern "C" void exit (int);
10342 #endif
10343
10344 void fnord() { int i=42;}
10345 int main ()
10346 {
10347 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10348 int status = $lt_dlunknown;
10349
10350 if (self)
10351 {
10352 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10353 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10354 /* dlclose (self); */
10355 }
10356 else
10357 puts (dlerror ());
10358
10359 exit (status);
10360 }
10361 EOF
10362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10363 (eval $ac_link) 2>&5
10364 ac_status=$?
10365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10367 (./conftest; exit; ) >&5 2>/dev/null
10368 lt_status=$?
10369 case x$lt_status in
10370 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10371 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10372 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10373 esac
10374 else :
10375 # compilation failed
10376 lt_cv_dlopen_self_static=no
10377 fi
10378 fi
10379 rm -fr conftest*
10380
10381
10382 fi
10383 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10384 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10385 fi
10386
10387 CPPFLAGS="$save_CPPFLAGS"
10388 LDFLAGS="$save_LDFLAGS"
10389 LIBS="$save_LIBS"
10390 ;;
10391 esac
10392
10393 case $lt_cv_dlopen_self in
10394 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10395 *) enable_dlopen_self=unknown ;;
10396 esac
10397
10398 case $lt_cv_dlopen_self_static in
10399 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10400 *) enable_dlopen_self_static=unknown ;;
10401 esac
10402 fi
10403
10404
10405 # Report which library types will actually be built
10406 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10407 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10408 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10409 echo "${ECHO_T}$can_build_shared" >&6; }
10410
10411 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10412 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10413 test "$can_build_shared" = "no" && enable_shared=no
10414
10415 # On AIX, shared libraries and static libraries use the same namespace, and
10416 # are all built from PIC.
10417 case $host_os in
10418 aix3*)
10419 test "$enable_shared" = yes && enable_static=no
10420 if test -n "$RANLIB"; then
10421 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10422 postinstall_cmds='$RANLIB $lib'
10423 fi
10424 ;;
10425
10426 aix4* | aix5*)
10427 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10428 test "$enable_shared" = yes && enable_static=no
10429 fi
10430 ;;
10431 esac
10432 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10433 echo "${ECHO_T}$enable_shared" >&6; }
10434
10435 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10436 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10437 # Make sure either enable_shared or enable_static is yes.
10438 test "$enable_shared" = yes || enable_static=yes
10439 { echo "$as_me:$LINENO: result: $enable_static" >&5
10440 echo "${ECHO_T}$enable_static" >&6; }
10441
10442 # The else clause should only fire when bootstrapping the
10443 # libtool distribution, otherwise you forgot to ship ltmain.sh
10444 # with your package, and you will get complaints that there are
10445 # no rules to generate ltmain.sh.
10446 if test -f "$ltmain"; then
10447 # See if we are running on zsh, and set the options which allow our commands through
10448 # without removal of \ escapes.
10449 if test -n "${ZSH_VERSION+set}" ; then
10450 setopt NO_GLOB_SUBST
10451 fi
10452 # Now quote all the things that may contain metacharacters while being
10453 # careful not to overquote the AC_SUBSTed values. We take copies of the
10454 # variables and quote the copies for generation of the libtool script.
10455 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10456 SED SHELL STRIP \
10457 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10458 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10459 deplibs_check_method reload_flag reload_cmds need_locks \
10460 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10461 lt_cv_sys_global_symbol_to_c_name_address \
10462 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10463 old_postinstall_cmds old_postuninstall_cmds \
10464 compiler \
10465 CC \
10466 LD \
10467 lt_prog_compiler_wl \
10468 lt_prog_compiler_pic \
10469 lt_prog_compiler_static \
10470 lt_prog_compiler_no_builtin_flag \
10471 export_dynamic_flag_spec \
10472 thread_safe_flag_spec \
10473 whole_archive_flag_spec \
10474 enable_shared_with_static_runtimes \
10475 old_archive_cmds \
10476 old_archive_from_new_cmds \
10477 predep_objects \
10478 postdep_objects \
10479 predeps \
10480 postdeps \
10481 compiler_lib_search_path \
10482 archive_cmds \
10483 archive_expsym_cmds \
10484 postinstall_cmds \
10485 postuninstall_cmds \
10486 old_archive_from_expsyms_cmds \
10487 allow_undefined_flag \
10488 no_undefined_flag \
10489 export_symbols_cmds \
10490 hardcode_libdir_flag_spec \
10491 hardcode_libdir_flag_spec_ld \
10492 hardcode_libdir_separator \
10493 hardcode_automatic \
10494 module_cmds \
10495 module_expsym_cmds \
10496 lt_cv_prog_compiler_c_o \
10497 exclude_expsyms \
10498 include_expsyms; do
10499
10500 case $var in
10501 old_archive_cmds | \
10502 old_archive_from_new_cmds | \
10503 archive_cmds | \
10504 archive_expsym_cmds | \
10505 module_cmds | \
10506 module_expsym_cmds | \
10507 old_archive_from_expsyms_cmds | \
10508 export_symbols_cmds | \
10509 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10510 postinstall_cmds | postuninstall_cmds | \
10511 old_postinstall_cmds | old_postuninstall_cmds | \
10512 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10513 # Double-quote double-evaled strings.
10514 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10515 ;;
10516 *)
10517 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10518 ;;
10519 esac
10520 done
10521
10522 case $lt_echo in
10523 *'\$0 --fallback-echo"')
10524 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10525 ;;
10526 esac
10527
10528 cfgfile="${ofile}T"
10529 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10530 $rm -f "$cfgfile"
10531 { echo "$as_me:$LINENO: creating $ofile" >&5
10532 echo "$as_me: creating $ofile" >&6;}
10533
10534 cat <<__EOF__ >> "$cfgfile"
10535 #! $SHELL
10536
10537 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10538 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10539 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10540 #
10541 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10542 # Free Software Foundation, Inc.
10543 #
10544 # This file is part of GNU Libtool:
10545 # Originally by Gordon Matzigkeit <gord (at] gnu.ai.mit.edu>, 1996
10546 #
10547 # This program is free software; you can redistribute it and/or modify
10548 # it under the terms of the GNU General Public License as published by
10549 # the Free Software Foundation; either version 2 of the License, or
10550 # (at your option) any later version.
10551 #
10552 # This program is distributed in the hope that it will be useful, but
10553 # WITHOUT ANY WARRANTY; without even the implied warranty of
10554 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10555 # General Public License for more details.
10556 #
10557 # You should have received a copy of the GNU General Public License
10558 # along with this program; if not, write to the Free Software
10559 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10560 #
10561 # As a special exception to the GNU General Public License, if you
10562 # distribute this file as part of a program that contains a
10563 # configuration script generated by Autoconf, you may include it under
10564 # the same distribution terms that you use for the rest of that program.
10565
10566 # A sed program that does not truncate output.
10567 SED=$lt_SED
10568
10569 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10570 Xsed="$SED -e 1s/^X//"
10571
10572 # The HP-UX ksh and POSIX shell print the target directory to stdout
10573 # if CDPATH is set.
10574 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10575
10576 # The names of the tagged configurations supported by this script.
10577 available_tags=
10578
10579 # ### BEGIN LIBTOOL CONFIG
10580
10581 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10582
10583 # Shell to use when invoking shell scripts.
10584 SHELL=$lt_SHELL
10585
10586 # Whether or not to build shared libraries.
10587 build_libtool_libs=$enable_shared
10588
10589 # Whether or not to build static libraries.
10590 build_old_libs=$enable_static
10591
10592 # Whether or not to add -lc for building shared libraries.
10593 build_libtool_need_lc=$archive_cmds_need_lc
10594
10595 # Whether or not to disallow shared libs when runtime libs are static
10596 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10597
10598 # Whether or not to optimize for fast installation.
10599 fast_install=$enable_fast_install
10600
10601 # The host system.
10602 host_alias=$host_alias
10603 host=$host
10604 host_os=$host_os
10605
10606 # The build system.
10607 build_alias=$build_alias
10608 build=$build
10609 build_os=$build_os
10610
10611 # An echo program that does not interpret backslashes.
10612 echo=$lt_echo
10613
10614 # The archiver.
10615 AR=$lt_AR
10616 AR_FLAGS=$lt_AR_FLAGS
10617
10618 # A C compiler.
10619 LTCC=$lt_LTCC
10620
10621 # LTCC compiler flags.
10622 LTCFLAGS=$lt_LTCFLAGS
10623
10624 # A language-specific compiler.
10625 CC=$lt_compiler
10626
10627 # Is the compiler the GNU C compiler?
10628 with_gcc=$GCC
10629
10630 # An ERE matcher.
10631 EGREP=$lt_EGREP
10632
10633 # The linker used to build libraries.
10634 LD=$lt_LD
10635
10636 # Whether we need hard or soft links.
10637 LN_S=$lt_LN_S
10638
10639 # A BSD-compatible nm program.
10640 NM=$lt_NM
10641
10642 # A symbol stripping program
10643 STRIP=$lt_STRIP
10644
10645 # Used to examine libraries when file_magic_cmd begins "file"
10646 MAGIC_CMD=$MAGIC_CMD
10647
10648 # Used on cygwin: DLL creation program.
10649 DLLTOOL="$DLLTOOL"
10650
10651 # Used on cygwin: object dumper.
10652 OBJDUMP="$OBJDUMP"
10653
10654 # Used on cygwin: assembler.
10655 AS="$AS"
10656
10657 # The name of the directory that contains temporary libtool files.
10658 objdir=$objdir
10659
10660 # How to create reloadable object files.
10661 reload_flag=$lt_reload_flag
10662 reload_cmds=$lt_reload_cmds
10663
10664 # How to pass a linker flag through the compiler.
10665 wl=$lt_lt_prog_compiler_wl
10666
10667 # Object file suffix (normally "o").
10668 objext="$ac_objext"
10669
10670 # Old archive suffix (normally "a").
10671 libext="$libext"
10672
10673 # Shared library suffix (normally ".so").
10674 shrext_cmds='$shrext_cmds'
10675
10676 # Executable file suffix (normally "").
10677 exeext="$exeext"
10678
10679 # Additional compiler flags for building library objects.
10680 pic_flag=$lt_lt_prog_compiler_pic
10681 pic_mode=$pic_mode
10682
10683 # What is the maximum length of a command?
10684 max_cmd_len=$lt_cv_sys_max_cmd_len
10685
10686 # Does compiler simultaneously support -c and -o options?
10687 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10688
10689 # Must we lock files when doing compilation?
10690 need_locks=$lt_need_locks
10691
10692 # Do we need the lib prefix for modules?
10693 need_lib_prefix=$need_lib_prefix
10694
10695 # Do we need a version for libraries?
10696 need_version=$need_version
10697
10698 # Whether dlopen is supported.
10699 dlopen_support=$enable_dlopen
10700
10701 # Whether dlopen of programs is supported.
10702 dlopen_self=$enable_dlopen_self
10703
10704 # Whether dlopen of statically linked programs is supported.
10705 dlopen_self_static=$enable_dlopen_self_static
10706
10707 # Compiler flag to prevent dynamic linking.
10708 link_static_flag=$lt_lt_prog_compiler_static
10709
10710 # Compiler flag to turn off builtin functions.
10711 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10712
10713 # Compiler flag to allow reflexive dlopens.
10714 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10715
10716 # Compiler flag to generate shared objects directly from archives.
10717 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10718
10719 # Compiler flag to generate thread-safe objects.
10720 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10721
10722 # Library versioning type.
10723 version_type=$version_type
10724
10725 # Format of library name prefix.
10726 libname_spec=$lt_libname_spec
10727
10728 # List of archive names. First name is the real one, the rest are links.
10729 # The last name is the one that the linker finds with -lNAME.
10730 library_names_spec=$lt_library_names_spec
10731
10732 # The coded name of the library, if different from the real name.
10733 soname_spec=$lt_soname_spec
10734
10735 # Commands used to build and install an old-style archive.
10736 RANLIB=$lt_RANLIB
10737 old_archive_cmds=$lt_old_archive_cmds
10738 old_postinstall_cmds=$lt_old_postinstall_cmds
10739 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10740
10741 # Create an old-style archive from a shared archive.
10742 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10743
10744 # Create a temporary old-style archive to link instead of a shared archive.
10745 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10746
10747 # Commands used to build and install a shared archive.
10748 archive_cmds=$lt_archive_cmds
10749 archive_expsym_cmds=$lt_archive_expsym_cmds
10750 postinstall_cmds=$lt_postinstall_cmds
10751 postuninstall_cmds=$lt_postuninstall_cmds
10752
10753 # Commands used to build a loadable module (assumed same as above if empty)
10754 module_cmds=$lt_module_cmds
10755 module_expsym_cmds=$lt_module_expsym_cmds
10756
10757 # Commands to strip libraries.
10758 old_striplib=$lt_old_striplib
10759 striplib=$lt_striplib
10760
10761 # Dependencies to place before the objects being linked to create a
10762 # shared library.
10763 predep_objects=$lt_predep_objects
10764
10765 # Dependencies to place after the objects being linked to create a
10766 # shared library.
10767 postdep_objects=$lt_postdep_objects
10768
10769 # Dependencies to place before the objects being linked to create a
10770 # shared library.
10771 predeps=$lt_predeps
10772
10773 # Dependencies to place after the objects being linked to create a
10774 # shared library.
10775 postdeps=$lt_postdeps
10776
10777 # The library search path used internally by the compiler when linking
10778 # a shared library.
10779 compiler_lib_search_path=$lt_compiler_lib_search_path
10780
10781 # Method to check whether dependent libraries are shared objects.
10782 deplibs_check_method=$lt_deplibs_check_method
10783
10784 # Command to use when deplibs_check_method == file_magic.
10785 file_magic_cmd=$lt_file_magic_cmd
10786
10787 # Flag that allows shared libraries with undefined symbols to be built.
10788 allow_undefined_flag=$lt_allow_undefined_flag
10789
10790 # Flag that forces no undefined symbols.
10791 no_undefined_flag=$lt_no_undefined_flag
10792
10793 # Commands used to finish a libtool library installation in a directory.
10794 finish_cmds=$lt_finish_cmds
10795
10796 # Same as above, but a single script fragment to be evaled but not shown.
10797 finish_eval=$lt_finish_eval
10798
10799 # Take the output of nm and produce a listing of raw symbols and C names.
10800 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10801
10802 # Transform the output of nm in a proper C declaration
10803 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10804
10805 # Transform the output of nm in a C name address pair
10806 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10807
10808 # This is the shared library runtime path variable.
10809 runpath_var=$runpath_var
10810
10811 # This is the shared library path variable.
10812 shlibpath_var=$shlibpath_var
10813
10814 # Is shlibpath searched before the hard-coded library search path?
10815 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10816
10817 # How to hardcode a shared library path into an executable.
10818 hardcode_action=$hardcode_action
10819
10820 # Whether we should hardcode library paths into libraries.
10821 hardcode_into_libs=$hardcode_into_libs
10822
10823 # Flag to hardcode \$libdir into a binary during linking.
10824 # This must work even if \$libdir does not exist.
10825 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10826
10827 # If ld is used when linking, flag to hardcode \$libdir into
10828 # a binary during linking. This must work even if \$libdir does
10829 # not exist.
10830 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10831
10832 # Whether we need a single -rpath flag with a separated argument.
10833 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10834
10835 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10836 # resulting binary.
10837 hardcode_direct=$hardcode_direct
10838
10839 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10840 # resulting binary.
10841 hardcode_minus_L=$hardcode_minus_L
10842
10843 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10844 # the resulting binary.
10845 hardcode_shlibpath_var=$hardcode_shlibpath_var
10846
10847 # Set to yes if building a shared library automatically hardcodes DIR into the library
10848 # and all subsequent libraries and executables linked against it.
10849 hardcode_automatic=$hardcode_automatic
10850
10851 # Variables whose values should be saved in libtool wrapper scripts and
10852 # restored at relink time.
10853 variables_saved_for_relink="$variables_saved_for_relink"
10854
10855 # Whether libtool must link a program against all its dependency libraries.
10856 link_all_deplibs=$link_all_deplibs
10857
10858 # Compile-time system search path for libraries
10859 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10860
10861 # Run-time system search path for libraries
10862 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10863
10864 # Fix the shell variable \$srcfile for the compiler.
10865 fix_srcfile_path="$fix_srcfile_path"
10866
10867 # Set to yes if exported symbols are required.
10868 always_export_symbols=$always_export_symbols
10869
10870 # The commands to list exported symbols.
10871 export_symbols_cmds=$lt_export_symbols_cmds
10872
10873 # The commands to extract the exported symbol list from a shared archive.
10874 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10875
10876 # Symbols that should not be listed in the preloaded symbols.
10877 exclude_expsyms=$lt_exclude_expsyms
10878
10879 # Symbols that must always be exported.
10880 include_expsyms=$lt_include_expsyms
10881
10882 # ### END LIBTOOL CONFIG
10883
10884 __EOF__
10885
10886
10887 case $host_os in
10888 aix3*)
10889 cat <<\EOF >> "$cfgfile"
10890
10891 # AIX sometimes has problems with the GCC collect2 program. For some
10892 # reason, if we set the COLLECT_NAMES environment variable, the problems
10893 # vanish in a puff of smoke.
10894 if test "X${COLLECT_NAMES+set}" != Xset; then
10895 COLLECT_NAMES=
10896 export COLLECT_NAMES
10897 fi
10898 EOF
10899 ;;
10900 esac
10901
10902 # We use sed instead of cat because bash on DJGPP gets confused if
10903 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10904 # text mode, it properly converts lines to CR/LF. This bash problem
10905 # is reportedly fixed, but why not run on old versions too?
10906 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10907
10908 mv -f "$cfgfile" "$ofile" || \
10909 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10910 chmod +x "$ofile"
10911
10912 else
10913 # If there is no Makefile yet, we rely on a make rule to execute
10914 # `config.status --recheck' to rerun these tests and create the
10915 # libtool script then.
10916 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10917 if test -f "$ltmain_in"; then
10918 test -f Makefile && make "$ltmain"
10919 fi
10920 fi
10921
10922
10923 ac_ext=c
10924 ac_cpp='$CPP $CPPFLAGS'
10925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10928
10929 CC="$lt_save_CC"
10930
10931
10932 # Check whether --with-tags was given.
10933 if test "${with_tags+set}" = set; then
10934 withval=$with_tags; tagnames="$withval"
10935 fi
10936
10937
10938 if test -f "$ltmain" && test -n "$tagnames"; then
10939 if test ! -f "${ofile}"; then
10940 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10941 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10942 fi
10943
10944 if test -z "$LTCC"; then
10945 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10946 if test -z "$LTCC"; then
10947 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10948 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10949 else
10950 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10951 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10952 fi
10953 fi
10954 if test -z "$LTCFLAGS"; then
10955 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10956 fi
10957
10958 # Extract list of available tagged configurations in $ofile.
10959 # Note that this assumes the entire list is on one line.
10960 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10961
10962 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10963 for tagname in $tagnames; do
10964 IFS="$lt_save_ifs"
10965 # Check whether tagname contains only valid characters
10966 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10967 "") ;;
10968 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10969 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10970 { (exit 1); exit 1; }; }
10971 ;;
10972 esac
10973
10974 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10975 then
10976 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10977 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10978 { (exit 1); exit 1; }; }
10979 fi
10980
10981 # Update the list of available tags.
10982 if test -n "$tagname"; then
10983 echo appending configuration tag \"$tagname\" to $ofile
10984
10985 case $tagname in
10986 CXX)
10987 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10988 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10989 (test "X$CXX" != "Xg++"))) ; then
10990 ac_ext=cpp
10991 ac_cpp='$CXXCPP $CPPFLAGS'
10992 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10993 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10994 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10995
10996
10997
10998
10999 archive_cmds_need_lc_CXX=no
11000 allow_undefined_flag_CXX=
11001 always_export_symbols_CXX=no
11002 archive_expsym_cmds_CXX=
11003 export_dynamic_flag_spec_CXX=
11004 hardcode_direct_CXX=no
11005 hardcode_libdir_flag_spec_CXX=
11006 hardcode_libdir_flag_spec_ld_CXX=
11007 hardcode_libdir_separator_CXX=
11008 hardcode_minus_L_CXX=no
11009 hardcode_shlibpath_var_CXX=unsupported
11010 hardcode_automatic_CXX=no
11011 module_cmds_CXX=
11012 module_expsym_cmds_CXX=
11013 link_all_deplibs_CXX=unknown
11014 old_archive_cmds_CXX=$old_archive_cmds
11015 no_undefined_flag_CXX=
11016 whole_archive_flag_spec_CXX=
11017 enable_shared_with_static_runtimes_CXX=no
11018
11019 # Dependencies to place before and after the object being linked:
11020 predep_objects_CXX=
11021 postdep_objects_CXX=
11022 predeps_CXX=
11023 postdeps_CXX=
11024 compiler_lib_search_path_CXX=
11025
11026 # Source file extension for C++ test sources.
11027 ac_ext=cpp
11028
11029 # Object file extension for compiled C++ test sources.
11030 objext=o
11031 objext_CXX=$objext
11032
11033 # Code to be used in simple compile tests
11034 lt_simple_compile_test_code="int some_variable = 0;\n"
11035
11036 # Code to be used in simple link tests
11037 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11038
11039 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11040
11041 # If no C compiler was specified, use CC.
11042 LTCC=${LTCC-"$CC"}
11043
11044 # If no C compiler flags were specified, use CFLAGS.
11045 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11046
11047 # Allow CC to be a program name with arguments.
11048 compiler=$CC
11049
11050
11051 # save warnings/boilerplate of simple test code
11052 ac_outfile=conftest.$ac_objext
11053 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11054 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11055 _lt_compiler_boilerplate=`cat conftest.err`
11056 $rm conftest*
11057
11058 ac_outfile=conftest.$ac_objext
11059 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11060 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11061 _lt_linker_boilerplate=`cat conftest.err`
11062 $rm conftest*
11063
11064
11065 # Allow CC to be a program name with arguments.
11066 lt_save_CC=$CC
11067 lt_save_LD=$LD
11068 lt_save_GCC=$GCC
11069 GCC=$GXX
11070 lt_save_with_gnu_ld=$with_gnu_ld
11071 lt_save_path_LD=$lt_cv_path_LD
11072 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11073 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11074 else
11075 $as_unset lt_cv_prog_gnu_ld
11076 fi
11077 if test -n "${lt_cv_path_LDCXX+set}"; then
11078 lt_cv_path_LD=$lt_cv_path_LDCXX
11079 else
11080 $as_unset lt_cv_path_LD
11081 fi
11082 test -z "${LDCXX+set}" || LD=$LDCXX
11083 CC=${CXX-"c++"}
11084 compiler=$CC
11085 compiler_CXX=$CC
11086 for cc_temp in $compiler""; do
11087 case $cc_temp in
11088 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11089 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11090 \-*) ;;
11091 *) break;;
11092 esac
11093 done
11094 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11095
11096
11097 # We don't want -fno-exception wen compiling C++ code, so set the
11098 # no_builtin_flag separately
11099 if test "$GXX" = yes; then
11100 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11101 else
11102 lt_prog_compiler_no_builtin_flag_CXX=
11103 fi
11104
11105 if test "$GXX" = yes; then
11106 # Set up default GNU C++ configuration
11107
11108
11109 # Check whether --with-gnu-ld was given.
11110 if test "${with_gnu_ld+set}" = set; then
11111 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11112 else
11113 with_gnu_ld=no
11114 fi
11115
11116 ac_prog=ld
11117 if test "$GCC" = yes; then
11118 # Check if gcc -print-prog-name=ld gives a path.
11119 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11120 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11121 case $host in
11122 *-*-mingw*)
11123 # gcc leaves a trailing carriage return which upsets mingw
11124 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11125 *)
11126 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11127 esac
11128 case $ac_prog in
11129 # Accept absolute paths.
11130 [\\/]* | ?:[\\/]*)
11131 re_direlt='/[^/][^/]*/\.\./'
11132 # Canonicalize the pathname of ld
11133 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11134 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11135 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11136 done
11137 test -z "$LD" && LD="$ac_prog"
11138 ;;
11139 "")
11140 # If it fails, then pretend we aren't using GCC.
11141 ac_prog=ld
11142 ;;
11143 *)
11144 # If it is relative, then search for the first ld in PATH.
11145 with_gnu_ld=unknown
11146 ;;
11147 esac
11148 elif test "$with_gnu_ld" = yes; then
11149 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11150 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11151 else
11152 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11153 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11154 fi
11155 if test "${lt_cv_path_LD+set}" = set; then
11156 echo $ECHO_N "(cached) $ECHO_C" >&6
11157 else
11158 if test -z "$LD"; then
11159 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11160 for ac_dir in $PATH; do
11161 IFS="$lt_save_ifs"
11162 test -z "$ac_dir" && ac_dir=.
11163 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11164 lt_cv_path_LD="$ac_dir/$ac_prog"
11165 # Check to see if the program is GNU ld. I'd rather use --version,
11166 # but apparently some variants of GNU ld only accept -v.
11167 # Break only if it was the GNU/non-GNU ld that we prefer.
11168 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11169 *GNU* | *'with BFD'*)
11170 test "$with_gnu_ld" != no && break
11171 ;;
11172 *)
11173 test "$with_gnu_ld" != yes && break
11174 ;;
11175 esac
11176 fi
11177 done
11178 IFS="$lt_save_ifs"
11179 else
11180 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11181 fi
11182 fi
11183
11184 LD="$lt_cv_path_LD"
11185 if test -n "$LD"; then
11186 { echo "$as_me:$LINENO: result: $LD" >&5
11187 echo "${ECHO_T}$LD" >&6; }
11188 else
11189 { echo "$as_me:$LINENO: result: no" >&5
11190 echo "${ECHO_T}no" >&6; }
11191 fi
11192 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11193 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11194 { (exit 1); exit 1; }; }
11195 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11196 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11197 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11198 echo $ECHO_N "(cached) $ECHO_C" >&6
11199 else
11200 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11201 case `$LD -v 2>&1 </dev/null` in
11202 *GNU* | *'with BFD'*)
11203 lt_cv_prog_gnu_ld=yes
11204 ;;
11205 *)
11206 lt_cv_prog_gnu_ld=no
11207 ;;
11208 esac
11209 fi
11210 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11211 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11212 with_gnu_ld=$lt_cv_prog_gnu_ld
11213
11214
11215
11216 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11217 # archiving commands below assume that GNU ld is being used.
11218 if test "$with_gnu_ld" = yes; then
11219 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11220 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'
11221
11222 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11223 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11224
11225 # If archive_cmds runs LD, not CC, wlarc should be empty
11226 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11227 # investigate it a little bit more. (MM)
11228 wlarc='${wl}'
11229
11230 # ancient GNU ld didn't support --whole-archive et. al.
11231 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11232 grep 'no-whole-archive' > /dev/null; then
11233 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11234 else
11235 whole_archive_flag_spec_CXX=
11236 fi
11237 else
11238 with_gnu_ld=no
11239 wlarc=
11240
11241 # A generic and very simple default shared library creation
11242 # command for GNU C++ for the case where it uses the native
11243 # linker, instead of GNU ld. If possible, this setting should
11244 # overridden to take advantage of the native linker features on
11245 # the platform it is being used on.
11246 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11247 fi
11248
11249 # Commands to make compiler produce verbose output that lists
11250 # what "hidden" libraries, object files and flags are used when
11251 # linking a shared library.
11252 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11253
11254 else
11255 GXX=no
11256 with_gnu_ld=no
11257 wlarc=
11258 fi
11259
11260 # PORTME: fill in a description of your system's C++ link characteristics
11261 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11262 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11263 ld_shlibs_CXX=yes
11264 case $host_os in
11265 aix3*)
11266 # FIXME: insert proper C++ library support
11267 ld_shlibs_CXX=no
11268 ;;
11269 aix4* | aix5*)
11270 if test "$host_cpu" = ia64; then
11271 # On IA64, the linker does run time linking by default, so we don't
11272 # have to do anything special.
11273 aix_use_runtimelinking=no
11274 exp_sym_flag='-Bexport'
11275 no_entry_flag=""
11276 else
11277 aix_use_runtimelinking=no
11278
11279 # Test if we are trying to use run time linking or normal
11280 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11281 # need to do runtime linking.
11282 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11283 for ld_flag in $LDFLAGS; do
11284 case $ld_flag in
11285 *-brtl*)
11286 aix_use_runtimelinking=yes
11287 break
11288 ;;
11289 esac
11290 done
11291 ;;
11292 esac
11293
11294 exp_sym_flag='-bexport'
11295 no_entry_flag='-bnoentry'
11296 fi
11297
11298 # When large executables or shared objects are built, AIX ld can
11299 # have problems creating the table of contents. If linking a library
11300 # or program results in "error TOC overflow" add -mminimal-toc to
11301 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11302 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11303
11304 archive_cmds_CXX=''
11305 hardcode_direct_CXX=yes
11306 hardcode_libdir_separator_CXX=':'
11307 link_all_deplibs_CXX=yes
11308
11309 if test "$GXX" = yes; then
11310 case $host_os in aix4.[012]|aix4.[012].*)
11311 # We only want to do this on AIX 4.2 and lower, the check
11312 # below for broken collect2 doesn't work under 4.3+
11313 collect2name=`${CC} -print-prog-name=collect2`
11314 if test -f "$collect2name" && \
11315 strings "$collect2name" | grep resolve_lib_name >/dev/null
11316 then
11317 # We have reworked collect2
11318 hardcode_direct_CXX=yes
11319 else
11320 # We have old collect2
11321 hardcode_direct_CXX=unsupported
11322 # It fails to find uninstalled libraries when the uninstalled
11323 # path is not listed in the libpath. Setting hardcode_minus_L
11324 # to unsupported forces relinking
11325 hardcode_minus_L_CXX=yes
11326 hardcode_libdir_flag_spec_CXX='-L$libdir'
11327 hardcode_libdir_separator_CXX=
11328 fi
11329 ;;
11330 esac
11331 shared_flag='-shared'
11332 if test "$aix_use_runtimelinking" = yes; then
11333 shared_flag="$shared_flag "'${wl}-G'
11334 fi
11335 else
11336 # not using gcc
11337 if test "$host_cpu" = ia64; then
11338 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11339 # chokes on -Wl,-G. The following line is correct:
11340 shared_flag='-G'
11341 else
11342 if test "$aix_use_runtimelinking" = yes; then
11343 shared_flag='${wl}-G'
11344 else
11345 shared_flag='${wl}-bM:SRE'
11346 fi
11347 fi
11348 fi
11349
11350 # It seems that -bexpall does not export symbols beginning with
11351 # underscore (_), so it is better to generate a list of symbols to export.
11352 always_export_symbols_CXX=yes
11353 if test "$aix_use_runtimelinking" = yes; then
11354 # Warning - without using the other runtime loading flags (-brtl),
11355 # -berok will link without error, but may produce a broken library.
11356 allow_undefined_flag_CXX='-berok'
11357 # Determine the default libpath from the value encoded in an empty executable.
11358 cat >conftest.$ac_ext <<_ACEOF
11359 /* confdefs.h. */
11360 _ACEOF
11361 cat confdefs.h >>conftest.$ac_ext
11362 cat >>conftest.$ac_ext <<_ACEOF
11363 /* end confdefs.h. */
11364
11365 int
11366 main ()
11367 {
11368
11369 ;
11370 return 0;
11371 }
11372 _ACEOF
11373 rm -f conftest.$ac_objext conftest$ac_exeext
11374 if { (ac_try="$ac_link"
11375 case "(($ac_try" in
11376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11377 *) ac_try_echo=$ac_try;;
11378 esac
11379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11380 (eval "$ac_link") 2>conftest.er1
11381 ac_status=$?
11382 grep -v '^ *+' conftest.er1 >conftest.err
11383 rm -f conftest.er1
11384 cat conftest.err >&5
11385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11386 (exit $ac_status); } &&
11387 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11388 { (case "(($ac_try" in
11389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11390 *) ac_try_echo=$ac_try;;
11391 esac
11392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11393 (eval "$ac_try") 2>&5
11394 ac_status=$?
11395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11396 (exit $ac_status); }; } &&
11397 { ac_try='test -s conftest$ac_exeext'
11398 { (case "(($ac_try" in
11399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11400 *) ac_try_echo=$ac_try;;
11401 esac
11402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11403 (eval "$ac_try") 2>&5
11404 ac_status=$?
11405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11406 (exit $ac_status); }; }; then
11407
11408 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11409 }'`
11410 # Check for a 64-bit object if we didn't find anything.
11411 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; }
11412 }'`; fi
11413 else
11414 echo "$as_me: failed program was:" >&5
11415 sed 's/^/| /' conftest.$ac_ext >&5
11416
11417
11418 fi
11419
11420 rm -f core conftest.err conftest.$ac_objext \
11421 conftest$ac_exeext conftest.$ac_ext
11422 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11423
11424 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11425
11426 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"
11427 else
11428 if test "$host_cpu" = ia64; then
11429 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11430 allow_undefined_flag_CXX="-z nodefs"
11431 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"
11432 else
11433 # Determine the default libpath from the value encoded in an empty executable.
11434 cat >conftest.$ac_ext <<_ACEOF
11435 /* confdefs.h. */
11436 _ACEOF
11437 cat confdefs.h >>conftest.$ac_ext
11438 cat >>conftest.$ac_ext <<_ACEOF
11439 /* end confdefs.h. */
11440
11441 int
11442 main ()
11443 {
11444
11445 ;
11446 return 0;
11447 }
11448 _ACEOF
11449 rm -f conftest.$ac_objext conftest$ac_exeext
11450 if { (ac_try="$ac_link"
11451 case "(($ac_try" in
11452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11453 *) ac_try_echo=$ac_try;;
11454 esac
11455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11456 (eval "$ac_link") 2>conftest.er1
11457 ac_status=$?
11458 grep -v '^ *+' conftest.er1 >conftest.err
11459 rm -f conftest.er1
11460 cat conftest.err >&5
11461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11462 (exit $ac_status); } &&
11463 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11464 { (case "(($ac_try" in
11465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11466 *) ac_try_echo=$ac_try;;
11467 esac
11468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11469 (eval "$ac_try") 2>&5
11470 ac_status=$?
11471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11472 (exit $ac_status); }; } &&
11473 { ac_try='test -s conftest$ac_exeext'
11474 { (case "(($ac_try" in
11475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11476 *) ac_try_echo=$ac_try;;
11477 esac
11478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11479 (eval "$ac_try") 2>&5
11480 ac_status=$?
11481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11482 (exit $ac_status); }; }; then
11483
11484 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11485 }'`
11486 # Check for a 64-bit object if we didn't find anything.
11487 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; }
11488 }'`; fi
11489 else
11490 echo "$as_me: failed program was:" >&5
11491 sed 's/^/| /' conftest.$ac_ext >&5
11492
11493
11494 fi
11495
11496 rm -f core conftest.err conftest.$ac_objext \
11497 conftest$ac_exeext conftest.$ac_ext
11498 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11499
11500 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11501 # Warning - without using the other run time loading flags,
11502 # -berok will link without error, but may produce a broken library.
11503 no_undefined_flag_CXX=' ${wl}-bernotok'
11504 allow_undefined_flag_CXX=' ${wl}-berok'
11505 # Exported symbols can be pulled into shared objects from archives
11506 whole_archive_flag_spec_CXX='$convenience'
11507 archive_cmds_need_lc_CXX=yes
11508 # This is similar to how AIX traditionally builds its shared libraries.
11509 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'
11510 fi
11511 fi
11512 ;;
11513
11514 beos*)
11515 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11516 allow_undefined_flag_CXX=unsupported
11517 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
11518 # support --undefined. This deserves some investigation. FIXME
11519 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11520 else
11521 ld_shlibs_CXX=no
11522 fi
11523 ;;
11524
11525 chorus*)
11526 case $cc_basename in
11527 *)
11528 # FIXME: insert proper C++ library support
11529 ld_shlibs_CXX=no
11530 ;;
11531 esac
11532 ;;
11533
11534 cygwin* | mingw* | pw32*)
11535 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11536 # as there is no search path for DLLs.
11537 hardcode_libdir_flag_spec_CXX='-L$libdir'
11538 allow_undefined_flag_CXX=unsupported
11539 always_export_symbols_CXX=no
11540 enable_shared_with_static_runtimes_CXX=yes
11541
11542 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11543 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'
11544 # If the export-symbols file already is a .def file (1st line
11545 # is EXPORTS), use it as is; otherwise, prepend...
11546 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11547 cp $export_symbols $output_objdir/$soname.def;
11548 else
11549 echo EXPORTS > $output_objdir/$soname.def;
11550 cat $export_symbols >> $output_objdir/$soname.def;
11551 fi~
11552 $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'
11553 else
11554 ld_shlibs_CXX=no
11555 fi
11556 ;;
11557 darwin* | rhapsody*)
11558 case $host_os in
11559 rhapsody* | darwin1.[012])
11560 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11561 ;;
11562 *) # Darwin 1.3 on
11563 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11564 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11565 else
11566 case ${MACOSX_DEPLOYMENT_TARGET} in
11567 10.[012])
11568 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11569 ;;
11570 10.*)
11571 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11572 ;;
11573 esac
11574 fi
11575 ;;
11576 esac
11577 archive_cmds_need_lc_CXX=no
11578 hardcode_direct_CXX=no
11579 hardcode_automatic_CXX=yes
11580 hardcode_shlibpath_var_CXX=unsupported
11581 whole_archive_flag_spec_CXX=''
11582 link_all_deplibs_CXX=yes
11583
11584 if test "$GXX" = yes ; then
11585 lt_int_apple_cc_single_mod=no
11586 output_verbose_link_cmd='echo'
11587 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11588 lt_int_apple_cc_single_mod=yes
11589 fi
11590 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11591 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11592 else
11593 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'
11594 fi
11595 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11596 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11597 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11598 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}'
11599 else
11600 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}'
11601 fi
11602 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}'
11603 else
11604 case $cc_basename in
11605 xlc*)
11606 output_verbose_link_cmd='echo'
11607 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'
11608 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11609 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11610 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}'
11611 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}'
11612 ;;
11613 *)
11614 ld_shlibs_CXX=no
11615 ;;
11616 esac
11617 fi
11618 ;;
11619
11620 dgux*)
11621 case $cc_basename in
11622 ec++*)
11623 # FIXME: insert proper C++ library support
11624 ld_shlibs_CXX=no
11625 ;;
11626 ghcx*)
11627 # Green Hills C++ Compiler
11628 # FIXME: insert proper C++ library support
11629 ld_shlibs_CXX=no
11630 ;;
11631 *)
11632 # FIXME: insert proper C++ library support
11633 ld_shlibs_CXX=no
11634 ;;
11635 esac
11636 ;;
11637 freebsd[12]*)
11638 # C++ shared libraries reported to be fairly broken before switch to ELF
11639 ld_shlibs_CXX=no
11640 ;;
11641 freebsd-elf*)
11642 archive_cmds_need_lc_CXX=no
11643 ;;
11644 freebsd* | dragonfly*)
11645 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11646 # conventions
11647 ld_shlibs_CXX=yes
11648 ;;
11649 gnu*)
11650 ;;
11651 hpux9*)
11652 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11653 hardcode_libdir_separator_CXX=:
11654 export_dynamic_flag_spec_CXX='${wl}-E'
11655 hardcode_direct_CXX=yes
11656 hardcode_minus_L_CXX=yes # Not in the search PATH,
11657 # but as the default
11658 # location of the library.
11659
11660 case $cc_basename in
11661 CC*)
11662 # FIXME: insert proper C++ library support
11663 ld_shlibs_CXX=no
11664 ;;
11665 aCC*)
11666 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'
11667 # Commands to make compiler produce verbose output that lists
11668 # what "hidden" libraries, object files and flags are used when
11669 # linking a shared library.
11670 #
11671 # There doesn't appear to be a way to prevent this compiler from
11672 # explicitly linking system object files so we need to strip them
11673 # from the output so that they don't get included in the library
11674 # dependencies.
11675 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'
11676 ;;
11677 *)
11678 if test "$GXX" = yes; then
11679 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'
11680 else
11681 # FIXME: insert proper C++ library support
11682 ld_shlibs_CXX=no
11683 fi
11684 ;;
11685 esac
11686 ;;
11687 hpux10*|hpux11*)
11688 if test $with_gnu_ld = no; then
11689 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11690 hardcode_libdir_separator_CXX=:
11691
11692 case $host_cpu in
11693 hppa*64*|ia64*)
11694 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11695 ;;
11696 *)
11697 export_dynamic_flag_spec_CXX='${wl}-E'
11698 ;;
11699 esac
11700 fi
11701 case $host_cpu in
11702 hppa*64*|ia64*)
11703 hardcode_direct_CXX=no
11704 hardcode_shlibpath_var_CXX=no
11705 ;;
11706 *)
11707 hardcode_direct_CXX=yes
11708 hardcode_minus_L_CXX=yes # Not in the search PATH,
11709 # but as the default
11710 # location of the library.
11711 ;;
11712 esac
11713
11714 case $cc_basename in
11715 CC*)
11716 # FIXME: insert proper C++ library support
11717 ld_shlibs_CXX=no
11718 ;;
11719 aCC*)
11720 case $host_cpu in
11721 hppa*64*)
11722 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11723 ;;
11724 ia64*)
11725 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11726 ;;
11727 *)
11728 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11729 ;;
11730 esac
11731 # Commands to make compiler produce verbose output that lists
11732 # what "hidden" libraries, object files and flags are used when
11733 # linking a shared library.
11734 #
11735 # There doesn't appear to be a way to prevent this compiler from
11736 # explicitly linking system object files so we need to strip them
11737 # from the output so that they don't get included in the library
11738 # dependencies.
11739 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'
11740 ;;
11741 *)
11742 if test "$GXX" = yes; then
11743 if test $with_gnu_ld = no; then
11744 case $host_cpu in
11745 hppa*64*)
11746 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11747 ;;
11748 ia64*)
11749 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11750 ;;
11751 *)
11752 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'
11753 ;;
11754 esac
11755 fi
11756 else
11757 # FIXME: insert proper C++ library support
11758 ld_shlibs_CXX=no
11759 fi
11760 ;;
11761 esac
11762 ;;
11763 interix3*)
11764 hardcode_direct_CXX=no
11765 hardcode_shlibpath_var_CXX=no
11766 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11767 export_dynamic_flag_spec_CXX='${wl}-E'
11768 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11769 # Instead, shared libraries are loaded at an image base (0x10000000 by
11770 # default) and relocated if they conflict, which is a slow very memory
11771 # consuming and fragmenting process. To avoid this, we pick a random,
11772 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11773 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11774 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'
11775 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'
11776 ;;
11777 irix5* | irix6*)
11778 case $cc_basename in
11779 CC*)
11780 # SGI C++
11781 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'
11782
11783 # Archives containing C++ object files must be created using
11784 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11785 # necessary to make sure instantiated templates are included
11786 # in the archive.
11787 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11788 ;;
11789 *)
11790 if test "$GXX" = yes; then
11791 if test "$with_gnu_ld" = no; then
11792 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'
11793 else
11794 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'
11795 fi
11796 fi
11797 link_all_deplibs_CXX=yes
11798 ;;
11799 esac
11800 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11801 hardcode_libdir_separator_CXX=:
11802 ;;
11803 linux* | k*bsd*-gnu)
11804 case $cc_basename in
11805 KCC*)
11806 # Kuck and Associates, Inc. (KAI) C++ Compiler
11807
11808 # KCC will only create a shared library if the output file
11809 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11810 # to its proper name (with version) after linking.
11811 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'
11812 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'
11813 # Commands to make compiler produce verbose output that lists
11814 # what "hidden" libraries, object files and flags are used when
11815 # linking a shared library.
11816 #
11817 # There doesn't appear to be a way to prevent this compiler from
11818 # explicitly linking system object files so we need to strip them
11819 # from the output so that they don't get included in the library
11820 # dependencies.
11821 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'
11822
11823 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11824 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11825
11826 # Archives containing C++ object files must be created using
11827 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11828 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11829 ;;
11830 icpc*)
11831 # Intel C++
11832 with_gnu_ld=yes
11833 # version 8.0 and above of icpc choke on multiply defined symbols
11834 # if we add $predep_objects and $postdep_objects, however 7.1 and
11835 # earlier do not add the objects themselves.
11836 case `$CC -V 2>&1` in
11837 *"Version 7."*)
11838 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11839 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'
11840 ;;
11841 *) # Version 8.0 or newer
11842 tmp_idyn=
11843 case $host_cpu in
11844 ia64*) tmp_idyn=' -i_dynamic';;
11845 esac
11846 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11847 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'
11848 ;;
11849 esac
11850 archive_cmds_need_lc_CXX=no
11851 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11852 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11853 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11854 ;;
11855 pgCC*)
11856 # Portland Group C++ compiler
11857 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11858 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'
11859
11860 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11861 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11862 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'
11863 ;;
11864 cxx*)
11865 # Compaq C++
11866 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11867 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'
11868
11869 runpath_var=LD_RUN_PATH
11870 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11871 hardcode_libdir_separator_CXX=:
11872
11873 # Commands to make compiler produce verbose output that lists
11874 # what "hidden" libraries, object files and flags are used when
11875 # linking a shared library.
11876 #
11877 # There doesn't appear to be a way to prevent this compiler from
11878 # explicitly linking system object files so we need to strip them
11879 # from the output so that they don't get included in the library
11880 # dependencies.
11881 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'
11882 ;;
11883 esac
11884 ;;
11885 lynxos*)
11886 # FIXME: insert proper C++ library support
11887 ld_shlibs_CXX=no
11888 ;;
11889 m88k*)
11890 # FIXME: insert proper C++ library support
11891 ld_shlibs_CXX=no
11892 ;;
11893 mvs*)
11894 case $cc_basename in
11895 cxx*)
11896 # FIXME: insert proper C++ library support
11897 ld_shlibs_CXX=no
11898 ;;
11899 *)
11900 # FIXME: insert proper C++ library support
11901 ld_shlibs_CXX=no
11902 ;;
11903 esac
11904 ;;
11905 netbsd* | netbsdelf*-gnu)
11906 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11907 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11908 wlarc=
11909 hardcode_libdir_flag_spec_CXX='-R$libdir'
11910 hardcode_direct_CXX=yes
11911 hardcode_shlibpath_var_CXX=no
11912 fi
11913 # Workaround some broken pre-1.5 toolchains
11914 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11915 ;;
11916 openbsd2*)
11917 # C++ shared libraries are fairly broken
11918 ld_shlibs_CXX=no
11919 ;;
11920 openbsd*)
11921 hardcode_direct_CXX=yes
11922 hardcode_shlibpath_var_CXX=no
11923 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11924 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11925 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11926 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11927 export_dynamic_flag_spec_CXX='${wl}-E'
11928 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11929 fi
11930 output_verbose_link_cmd='echo'
11931 ;;
11932 osf3*)
11933 case $cc_basename in
11934 KCC*)
11935 # Kuck and Associates, Inc. (KAI) C++ Compiler
11936
11937 # KCC will only create a shared library if the output file
11938 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11939 # to its proper name (with version) after linking.
11940 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'
11941
11942 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11943 hardcode_libdir_separator_CXX=:
11944
11945 # Archives containing C++ object files must be created using
11946 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11947 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11948
11949 ;;
11950 RCC*)
11951 # Rational C++ 2.4.1
11952 # FIXME: insert proper C++ library support
11953 ld_shlibs_CXX=no
11954 ;;
11955 cxx*)
11956 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11957 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'
11958
11959 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11960 hardcode_libdir_separator_CXX=:
11961
11962 # Commands to make compiler produce verbose output that lists
11963 # what "hidden" libraries, object files and flags are used when
11964 # linking a shared library.
11965 #
11966 # There doesn't appear to be a way to prevent this compiler from
11967 # explicitly linking system object files so we need to strip them
11968 # from the output so that they don't get included in the library
11969 # dependencies.
11970 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'
11971 ;;
11972 *)
11973 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11974 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11975 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'
11976
11977 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11978 hardcode_libdir_separator_CXX=:
11979
11980 # Commands to make compiler produce verbose output that lists
11981 # what "hidden" libraries, object files and flags are used when
11982 # linking a shared library.
11983 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11984
11985 else
11986 # FIXME: insert proper C++ library support
11987 ld_shlibs_CXX=no
11988 fi
11989 ;;
11990 esac
11991 ;;
11992 osf4* | osf5*)
11993 case $cc_basename in
11994 KCC*)
11995 # Kuck and Associates, Inc. (KAI) C++ Compiler
11996
11997 # KCC will only create a shared library if the output file
11998 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11999 # to its proper name (with version) after linking.
12000 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'
12001
12002 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12003 hardcode_libdir_separator_CXX=:
12004
12005 # Archives containing C++ object files must be created using
12006 # the KAI C++ compiler.
12007 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12008 ;;
12009 RCC*)
12010 # Rational C++ 2.4.1
12011 # FIXME: insert proper C++ library support
12012 ld_shlibs_CXX=no
12013 ;;
12014 cxx*)
12015 allow_undefined_flag_CXX=' -expect_unresolved \*'
12016 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'
12017 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12018 echo "-hidden">> $lib.exp~
12019 $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~
12020 $rm $lib.exp'
12021
12022 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12023 hardcode_libdir_separator_CXX=:
12024
12025 # Commands to make compiler produce verbose output that lists
12026 # what "hidden" libraries, object files and flags are used when
12027 # linking a shared library.
12028 #
12029 # There doesn't appear to be a way to prevent this compiler from
12030 # explicitly linking system object files so we need to strip them
12031 # from the output so that they don't get included in the library
12032 # dependencies.
12033 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'
12034 ;;
12035 *)
12036 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12037 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12038 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'
12039
12040 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12041 hardcode_libdir_separator_CXX=:
12042
12043 # Commands to make compiler produce verbose output that lists
12044 # what "hidden" libraries, object files and flags are used when
12045 # linking a shared library.
12046 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12047
12048 else
12049 # FIXME: insert proper C++ library support
12050 ld_shlibs_CXX=no
12051 fi
12052 ;;
12053 esac
12054 ;;
12055 psos*)
12056 # FIXME: insert proper C++ library support
12057 ld_shlibs_CXX=no
12058 ;;
12059 sunos4*)
12060 case $cc_basename in
12061 CC*)
12062 # Sun C++ 4.x
12063 # FIXME: insert proper C++ library support
12064 ld_shlibs_CXX=no
12065 ;;
12066 lcc*)
12067 # Lucid
12068 # FIXME: insert proper C++ library support
12069 ld_shlibs_CXX=no
12070 ;;
12071 *)
12072 # FIXME: insert proper C++ library support
12073 ld_shlibs_CXX=no
12074 ;;
12075 esac
12076 ;;
12077 solaris*)
12078 case $cc_basename in
12079 CC*)
12080 # Sun C++ 4.2, 5.x and Centerline C++
12081 archive_cmds_need_lc_CXX=yes
12082 no_undefined_flag_CXX=' -zdefs'
12083 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12084 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12085 $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'
12086
12087 hardcode_libdir_flag_spec_CXX='-R$libdir'
12088 hardcode_shlibpath_var_CXX=no
12089 case $host_os in
12090 solaris2.[0-5] | solaris2.[0-5].*) ;;
12091 *)
12092 # The C++ compiler is used as linker so we must use $wl
12093 # flag to pass the commands to the underlying system
12094 # linker. We must also pass each convience library through
12095 # to the system linker between allextract/defaultextract.
12096 # The C++ compiler will combine linker options so we
12097 # cannot just pass the convience library names through
12098 # without $wl.
12099 # Supported since Solaris 2.6 (maybe 2.5.1?)
12100 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'
12101 ;;
12102 esac
12103 link_all_deplibs_CXX=yes
12104
12105 output_verbose_link_cmd='echo'
12106
12107 # Archives containing C++ object files must be created using
12108 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12109 # necessary to make sure instantiated templates are included
12110 # in the archive.
12111 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12112 ;;
12113 gcx*)
12114 # Green Hills C++ Compiler
12115 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12116
12117 # The C++ compiler must be used to create the archive.
12118 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12119 ;;
12120 *)
12121 # GNU C++ compiler with Solaris linker
12122 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12123 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12124 if $CC --version | grep -v '^2\.7' > /dev/null; then
12125 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12126 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12127 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12128
12129 # Commands to make compiler produce verbose output that lists
12130 # what "hidden" libraries, object files and flags are used when
12131 # linking a shared library.
12132 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12133 else
12134 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12135 # platform.
12136 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12137 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12138 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12139
12140 # Commands to make compiler produce verbose output that lists
12141 # what "hidden" libraries, object files and flags are used when
12142 # linking a shared library.
12143 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12144 fi
12145
12146 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12147 fi
12148 ;;
12149 esac
12150 ;;
12151 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12152 no_undefined_flag_CXX='${wl}-z,text'
12153 archive_cmds_need_lc_CXX=no
12154 hardcode_shlibpath_var_CXX=no
12155 runpath_var='LD_RUN_PATH'
12156
12157 case $cc_basename in
12158 CC*)
12159 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12160 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12161 ;;
12162 *)
12163 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12164 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12165 ;;
12166 esac
12167 ;;
12168 sysv5* | sco3.2v5* | sco5v6*)
12169 # Note: We can NOT use -z defs as we might desire, because we do not
12170 # link with -lc, and that would cause any symbols used from libc to
12171 # always be unresolved, which means just about no library would
12172 # ever link correctly. If we're not using GNU ld we use -z text
12173 # though, which does catch some bad symbols but isn't as heavy-handed
12174 # as -z defs.
12175 # For security reasons, it is highly recommended that you always
12176 # use absolute paths for naming shared libraries, and exclude the
12177 # DT_RUNPATH tag from executables and libraries. But doing so
12178 # requires that you compile everything twice, which is a pain.
12179 # So that behaviour is only enabled if SCOABSPATH is set to a
12180 # non-empty value in the environment. Most likely only useful for
12181 # creating official distributions of packages.
12182 # This is a hack until libtool officially supports absolute path
12183 # names for shared libraries.
12184 no_undefined_flag_CXX='${wl}-z,text'
12185 allow_undefined_flag_CXX='${wl}-z,nodefs'
12186 archive_cmds_need_lc_CXX=no
12187 hardcode_shlibpath_var_CXX=no
12188 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12189 hardcode_libdir_separator_CXX=':'
12190 link_all_deplibs_CXX=yes
12191 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12192 runpath_var='LD_RUN_PATH'
12193
12194 case $cc_basename in
12195 CC*)
12196 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12197 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12198 ;;
12199 *)
12200 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12201 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12202 ;;
12203 esac
12204 ;;
12205 tandem*)
12206 case $cc_basename in
12207 NCC*)
12208 # NonStop-UX NCC 3.20
12209 # FIXME: insert proper C++ library support
12210 ld_shlibs_CXX=no
12211 ;;
12212 *)
12213 # FIXME: insert proper C++ library support
12214 ld_shlibs_CXX=no
12215 ;;
12216 esac
12217 ;;
12218 vxworks*)
12219 # FIXME: insert proper C++ library support
12220 ld_shlibs_CXX=no
12221 ;;
12222 *)
12223 # FIXME: insert proper C++ library support
12224 ld_shlibs_CXX=no
12225 ;;
12226 esac
12227 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12228 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12229 test "$ld_shlibs_CXX" = no && can_build_shared=no
12230
12231 GCC_CXX="$GXX"
12232 LD_CXX="$LD"
12233
12234
12235 cat > conftest.$ac_ext <<EOF
12236 class Foo
12237 {
12238 public:
12239 Foo (void) { a = 0; }
12240 private:
12241 int a;
12242 };
12243 EOF
12244
12245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12246 (eval $ac_compile) 2>&5
12247 ac_status=$?
12248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12249 (exit $ac_status); }; then
12250 # Parse the compiler output and extract the necessary
12251 # objects, libraries and library flags.
12252
12253 # Sentinel used to keep track of whether or not we are before
12254 # the conftest object file.
12255 pre_test_object_deps_done=no
12256
12257 # The `*' in the case matches for architectures that use `case' in
12258 # $output_verbose_cmd can trigger glob expansion during the loop
12259 # eval without this substitution.
12260 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12261
12262 for p in `eval $output_verbose_link_cmd`; do
12263 case $p in
12264
12265 -L* | -R* | -l*)
12266 # Some compilers place space between "-{L,R}" and the path.
12267 # Remove the space.
12268 if test $p = "-L" \
12269 || test $p = "-R"; then
12270 prev=$p
12271 continue
12272 else
12273 prev=
12274 fi
12275
12276 if test "$pre_test_object_deps_done" = no; then
12277 case $p in
12278 -L* | -R*)
12279 # Internal compiler library paths should come after those
12280 # provided the user. The postdeps already come after the
12281 # user supplied libs so there is no need to process them.
12282 if test -z "$compiler_lib_search_path_CXX"; then
12283 compiler_lib_search_path_CXX="${prev}${p}"
12284 else
12285 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12286 fi
12287 ;;
12288 # The "-l" case would never come before the object being
12289 # linked, so don't bother handling this case.
12290 esac
12291 else
12292 if test -z "$postdeps_CXX"; then
12293 postdeps_CXX="${prev}${p}"
12294 else
12295 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12296 fi
12297 fi
12298 ;;
12299
12300 *.$objext)
12301 # This assumes that the test object file only shows up
12302 # once in the compiler output.
12303 if test "$p" = "conftest.$objext"; then
12304 pre_test_object_deps_done=yes
12305 continue
12306 fi
12307
12308 if test "$pre_test_object_deps_done" = no; then
12309 if test -z "$predep_objects_CXX"; then
12310 predep_objects_CXX="$p"
12311 else
12312 predep_objects_CXX="$predep_objects_CXX $p"
12313 fi
12314 else
12315 if test -z "$postdep_objects_CXX"; then
12316 postdep_objects_CXX="$p"
12317 else
12318 postdep_objects_CXX="$postdep_objects_CXX $p"
12319 fi
12320 fi
12321 ;;
12322
12323 *) ;; # Ignore the rest.
12324
12325 esac
12326 done
12327
12328 # Clean up.
12329 rm -f a.out a.exe
12330 else
12331 echo "libtool.m4: error: problem compiling CXX test program"
12332 fi
12333
12334 $rm -f confest.$objext
12335
12336 # PORTME: override above test on systems where it is broken
12337 case $host_os in
12338 interix3*)
12339 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12340 # hack all around it, let's just trust "g++" to DTRT.
12341 predep_objects_CXX=
12342 postdep_objects_CXX=
12343 postdeps_CXX=
12344 ;;
12345
12346 solaris*)
12347 case $cc_basename in
12348 CC*)
12349 # Adding this requires a known-good setup of shared libraries for
12350 # Sun compiler versions before 5.6, else PIC objects from an old
12351 # archive will be linked into the output, leading to subtle bugs.
12352 postdeps_CXX='-lCstd -lCrun'
12353 ;;
12354 esac
12355 ;;
12356 esac
12357
12358
12359 case " $postdeps_CXX " in
12360 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12361 esac
12362
12363 lt_prog_compiler_wl_CXX=
12364 lt_prog_compiler_pic_CXX=
12365 lt_prog_compiler_static_CXX=
12366
12367 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12368 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12369
12370 # C++ specific cases for pic, static, wl, etc.
12371 if test "$GXX" = yes; then
12372 lt_prog_compiler_wl_CXX='-Wl,'
12373 lt_prog_compiler_static_CXX='-static'
12374
12375 case $host_os in
12376 aix*)
12377 # All AIX code is PIC.
12378 if test "$host_cpu" = ia64; then
12379 # AIX 5 now supports IA64 processor
12380 lt_prog_compiler_static_CXX='-Bstatic'
12381 fi
12382 ;;
12383 amigaos*)
12384 # FIXME: we need at least 68020 code to build shared libraries, but
12385 # adding the `-m68020' flag to GCC prevents building anything better,
12386 # like `-m68040'.
12387 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12388 ;;
12389 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12390 # PIC is the default for these OSes.
12391 ;;
12392 mingw* | os2* | pw32*)
12393 # This hack is so that the source file can tell whether it is being
12394 # built for inclusion in a dll (and should export symbols for example).
12395 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12396 ;;
12397 darwin* | rhapsody*)
12398 # PIC is the default on this platform
12399 # Common symbols not allowed in MH_DYLIB files
12400 lt_prog_compiler_pic_CXX='-fno-common'
12401 ;;
12402 *djgpp*)
12403 # DJGPP does not support shared libraries at all
12404 lt_prog_compiler_pic_CXX=
12405 ;;
12406 interix3*)
12407 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12408 # Instead, we relocate shared libraries at runtime.
12409 ;;
12410 sysv4*MP*)
12411 if test -d /usr/nec; then
12412 lt_prog_compiler_pic_CXX=-Kconform_pic
12413 fi
12414 ;;
12415 hpux*)
12416 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12417 # not for PA HP-UX.
12418 case $host_cpu in
12419 hppa*64*|ia64*)
12420 ;;
12421 *)
12422 lt_prog_compiler_pic_CXX='-fPIC'
12423 ;;
12424 esac
12425 ;;
12426 *)
12427 lt_prog_compiler_pic_CXX='-fPIC'
12428 ;;
12429 esac
12430 else
12431 case $host_os in
12432 aix4* | aix5*)
12433 # All AIX code is PIC.
12434 if test "$host_cpu" = ia64; then
12435 # AIX 5 now supports IA64 processor
12436 lt_prog_compiler_static_CXX='-Bstatic'
12437 else
12438 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12439 fi
12440 ;;
12441 chorus*)
12442 case $cc_basename in
12443 cxch68*)
12444 # Green Hills C++ Compiler
12445 # _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"
12446 ;;
12447 esac
12448 ;;
12449 darwin*)
12450 # PIC is the default on this platform
12451 # Common symbols not allowed in MH_DYLIB files
12452 case $cc_basename in
12453 xlc*)
12454 lt_prog_compiler_pic_CXX='-qnocommon'
12455 lt_prog_compiler_wl_CXX='-Wl,'
12456 ;;
12457 esac
12458 ;;
12459 dgux*)
12460 case $cc_basename in
12461 ec++*)
12462 lt_prog_compiler_pic_CXX='-KPIC'
12463 ;;
12464 ghcx*)
12465 # Green Hills C++ Compiler
12466 lt_prog_compiler_pic_CXX='-pic'
12467 ;;
12468 *)
12469 ;;
12470 esac
12471 ;;
12472 freebsd* | dragonfly*)
12473 # FreeBSD uses GNU C++
12474 ;;
12475 hpux9* | hpux10* | hpux11*)
12476 case $cc_basename in
12477 CC*)
12478 lt_prog_compiler_wl_CXX='-Wl,'
12479 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12480 if test "$host_cpu" != ia64; then
12481 lt_prog_compiler_pic_CXX='+Z'
12482 fi
12483 ;;
12484 aCC*)
12485 lt_prog_compiler_wl_CXX='-Wl,'
12486 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12487 case $host_cpu in
12488 hppa*64*|ia64*)
12489 # +Z the default
12490 ;;
12491 *)
12492 lt_prog_compiler_pic_CXX='+Z'
12493 ;;
12494 esac
12495 ;;
12496 *)
12497 ;;
12498 esac
12499 ;;
12500 interix*)
12501 # This is c89, which is MS Visual C++ (no shared libs)
12502 # Anyone wants to do a port?
12503 ;;
12504 irix5* | irix6* | nonstopux*)
12505 case $cc_basename in
12506 CC*)
12507 lt_prog_compiler_wl_CXX='-Wl,'
12508 lt_prog_compiler_static_CXX='-non_shared'
12509 # CC pic flag -KPIC is the default.
12510 ;;
12511 *)
12512 ;;
12513 esac
12514 ;;
12515 linux* | k*bsd*-gnu)
12516 case $cc_basename in
12517 KCC*)
12518 # KAI C++ Compiler
12519 lt_prog_compiler_wl_CXX='--backend -Wl,'
12520 lt_prog_compiler_pic_CXX='-fPIC'
12521 ;;
12522 icpc* | ecpc*)
12523 # Intel C++
12524 lt_prog_compiler_wl_CXX='-Wl,'
12525 lt_prog_compiler_pic_CXX='-KPIC'
12526 lt_prog_compiler_static_CXX='-static'
12527 ;;
12528 pgCC*)
12529 # Portland Group C++ compiler.
12530 lt_prog_compiler_wl_CXX='-Wl,'
12531 lt_prog_compiler_pic_CXX='-fpic'
12532 lt_prog_compiler_static_CXX='-Bstatic'
12533 ;;
12534 cxx*)
12535 # Compaq C++
12536 # Make sure the PIC flag is empty. It appears that all Alpha
12537 # Linux and Compaq Tru64 Unix objects are PIC.
12538 lt_prog_compiler_pic_CXX=
12539 lt_prog_compiler_static_CXX='-non_shared'
12540 ;;
12541 *)
12542 ;;
12543 esac
12544 ;;
12545 lynxos*)
12546 ;;
12547 m88k*)
12548 ;;
12549 mvs*)
12550 case $cc_basename in
12551 cxx*)
12552 lt_prog_compiler_pic_CXX='-W c,exportall'
12553 ;;
12554 *)
12555 ;;
12556 esac
12557 ;;
12558 netbsd* | netbsdelf*-gnu)
12559 ;;
12560 osf3* | osf4* | osf5*)
12561 case $cc_basename in
12562 KCC*)
12563 lt_prog_compiler_wl_CXX='--backend -Wl,'
12564 ;;
12565 RCC*)
12566 # Rational C++ 2.4.1
12567 lt_prog_compiler_pic_CXX='-pic'
12568 ;;
12569 cxx*)
12570 # Digital/Compaq C++
12571 lt_prog_compiler_wl_CXX='-Wl,'
12572 # Make sure the PIC flag is empty. It appears that all Alpha
12573 # Linux and Compaq Tru64 Unix objects are PIC.
12574 lt_prog_compiler_pic_CXX=
12575 lt_prog_compiler_static_CXX='-non_shared'
12576 ;;
12577 *)
12578 ;;
12579 esac
12580 ;;
12581 psos*)
12582 ;;
12583 solaris*)
12584 case $cc_basename in
12585 CC*)
12586 # Sun C++ 4.2, 5.x and Centerline C++
12587 lt_prog_compiler_pic_CXX='-KPIC'
12588 lt_prog_compiler_static_CXX='-Bstatic'
12589 lt_prog_compiler_wl_CXX='-Qoption ld '
12590 ;;
12591 gcx*)
12592 # Green Hills C++ Compiler
12593 lt_prog_compiler_pic_CXX='-PIC'
12594 ;;
12595 *)
12596 ;;
12597 esac
12598 ;;
12599 sunos4*)
12600 case $cc_basename in
12601 CC*)
12602 # Sun C++ 4.x
12603 lt_prog_compiler_pic_CXX='-pic'
12604 lt_prog_compiler_static_CXX='-Bstatic'
12605 ;;
12606 lcc*)
12607 # Lucid
12608 lt_prog_compiler_pic_CXX='-pic'
12609 ;;
12610 *)
12611 ;;
12612 esac
12613 ;;
12614 tandem*)
12615 case $cc_basename in
12616 NCC*)
12617 # NonStop-UX NCC 3.20
12618 lt_prog_compiler_pic_CXX='-KPIC'
12619 ;;
12620 *)
12621 ;;
12622 esac
12623 ;;
12624 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12625 case $cc_basename in
12626 CC*)
12627 lt_prog_compiler_wl_CXX='-Wl,'
12628 lt_prog_compiler_pic_CXX='-KPIC'
12629 lt_prog_compiler_static_CXX='-Bstatic'
12630 ;;
12631 esac
12632 ;;
12633 vxworks*)
12634 ;;
12635 *)
12636 lt_prog_compiler_can_build_shared_CXX=no
12637 ;;
12638 esac
12639 fi
12640
12641 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12642 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12643
12644 #
12645 # Check to make sure the PIC flag actually works.
12646 #
12647 if test -n "$lt_prog_compiler_pic_CXX"; then
12648
12649 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12650 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12651 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12652 echo $ECHO_N "(cached) $ECHO_C" >&6
12653 else
12654 lt_prog_compiler_pic_works_CXX=no
12655 ac_outfile=conftest.$ac_objext
12656 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12657 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12658 # Insert the option either (1) after the last *FLAGS variable, or
12659 # (2) before a word containing "conftest.", or (3) at the end.
12660 # Note that $ac_compile itself does not contain backslashes and begins
12661 # with a dollar sign (not a hyphen), so the echo should work correctly.
12662 # The option is referenced via a variable to avoid confusing sed.
12663 lt_compile=`echo "$ac_compile" | $SED \
12664 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12665 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12666 -e 's:$: $lt_compiler_flag:'`
12667 (eval echo "\"\$as_me:12667: $lt_compile\"" >&5)
12668 (eval "$lt_compile" 2>conftest.err)
12669 ac_status=$?
12670 cat conftest.err >&5
12671 echo "$as_me:12671: \$? = $ac_status" >&5
12672 if (exit $ac_status) && test -s "$ac_outfile"; then
12673 # The compiler can only warn and ignore the option if not recognized
12674 # So say no if there are warnings other than the usual output.
12675 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12676 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12677 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12678 lt_prog_compiler_pic_works_CXX=yes
12679 fi
12680 fi
12681 $rm conftest*
12682
12683 fi
12684 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12685 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12686
12687 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12688 case $lt_prog_compiler_pic_CXX in
12689 "" | " "*) ;;
12690 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12691 esac
12692 else
12693 lt_prog_compiler_pic_CXX=
12694 lt_prog_compiler_can_build_shared_CXX=no
12695 fi
12696
12697 fi
12698 case $host_os in
12699 # For platforms which do not support PIC, -DPIC is meaningless:
12700 *djgpp*)
12701 lt_prog_compiler_pic_CXX=
12702 ;;
12703 *)
12704 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12705 ;;
12706 esac
12707
12708 #
12709 # Check to make sure the static flag actually works.
12710 #
12711 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12712 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12713 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12714 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12715 echo $ECHO_N "(cached) $ECHO_C" >&6
12716 else
12717 lt_prog_compiler_static_works_CXX=no
12718 save_LDFLAGS="$LDFLAGS"
12719 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12720 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12721 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12722 # The linker can only warn and ignore the option if not recognized
12723 # So say no if there are warnings
12724 if test -s conftest.err; then
12725 # Append any errors to the config.log.
12726 cat conftest.err 1>&5
12727 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12728 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12729 if diff conftest.exp conftest.er2 >/dev/null; then
12730 lt_prog_compiler_static_works_CXX=yes
12731 fi
12732 else
12733 lt_prog_compiler_static_works_CXX=yes
12734 fi
12735 fi
12736 $rm conftest*
12737 LDFLAGS="$save_LDFLAGS"
12738
12739 fi
12740 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12741 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12742
12743 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12744 :
12745 else
12746 lt_prog_compiler_static_CXX=
12747 fi
12748
12749
12750 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12751 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12752 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12753 echo $ECHO_N "(cached) $ECHO_C" >&6
12754 else
12755 lt_cv_prog_compiler_c_o_CXX=no
12756 $rm -r conftest 2>/dev/null
12757 mkdir conftest
12758 cd conftest
12759 mkdir out
12760 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12761
12762 lt_compiler_flag="-o out/conftest2.$ac_objext"
12763 # Insert the option either (1) after the last *FLAGS variable, or
12764 # (2) before a word containing "conftest.", or (3) at the end.
12765 # Note that $ac_compile itself does not contain backslashes and begins
12766 # with a dollar sign (not a hyphen), so the echo should work correctly.
12767 lt_compile=`echo "$ac_compile" | $SED \
12768 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12769 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12770 -e 's:$: $lt_compiler_flag:'`
12771 (eval echo "\"\$as_me:12771: $lt_compile\"" >&5)
12772 (eval "$lt_compile" 2>out/conftest.err)
12773 ac_status=$?
12774 cat out/conftest.err >&5
12775 echo "$as_me:12775: \$? = $ac_status" >&5
12776 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12777 then
12778 # The compiler can only warn and ignore the option if not recognized
12779 # So say no if there are warnings
12780 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12781 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12782 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12783 lt_cv_prog_compiler_c_o_CXX=yes
12784 fi
12785 fi
12786 chmod u+w . 2>&5
12787 $rm conftest*
12788 # SGI C++ compiler will create directory out/ii_files/ for
12789 # template instantiation
12790 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12791 $rm out/* && rmdir out
12792 cd ..
12793 rmdir conftest
12794 $rm conftest*
12795
12796 fi
12797 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12798 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12799
12800
12801 hard_links="nottested"
12802 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12803 # do not overwrite the value of need_locks provided by the user
12804 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12805 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12806 hard_links=yes
12807 $rm conftest*
12808 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12809 touch conftest.a
12810 ln conftest.a conftest.b 2>&5 || hard_links=no
12811 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12812 { echo "$as_me:$LINENO: result: $hard_links" >&5
12813 echo "${ECHO_T}$hard_links" >&6; }
12814 if test "$hard_links" = no; then
12815 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12816 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12817 need_locks=warn
12818 fi
12819 else
12820 need_locks=no
12821 fi
12822
12823 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12824 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12825
12826 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12827 case $host_os in
12828 aix4* | aix5*)
12829 # If we're using GNU nm, then we don't want the "-C" option.
12830 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12831 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12832 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'
12833 else
12834 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'
12835 fi
12836 ;;
12837 pw32*)
12838 export_symbols_cmds_CXX="$ltdll_cmds"
12839 ;;
12840 cygwin* | mingw*)
12841 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'
12842 ;;
12843 linux* | k*bsd*-gnu)
12844 link_all_deplibs_CXX=no
12845 ;;
12846 *)
12847 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12848 ;;
12849 esac
12850
12851 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12852 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12853 test "$ld_shlibs_CXX" = no && can_build_shared=no
12854
12855 #
12856 # Do we need to explicitly link libc?
12857 #
12858 case "x$archive_cmds_need_lc_CXX" in
12859 x|xyes)
12860 # Assume -lc should be added
12861 archive_cmds_need_lc_CXX=yes
12862
12863 if test "$enable_shared" = yes && test "$GCC" = yes; then
12864 case $archive_cmds_CXX in
12865 *'~'*)
12866 # FIXME: we may have to deal with multi-command sequences.
12867 ;;
12868 '$CC '*)
12869 # Test whether the compiler implicitly links with -lc since on some
12870 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12871 # to ld, don't add -lc before -lgcc.
12872 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12873 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12874 $rm conftest*
12875 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12876
12877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12878 (eval $ac_compile) 2>&5
12879 ac_status=$?
12880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12881 (exit $ac_status); } 2>conftest.err; then
12882 soname=conftest
12883 lib=conftest
12884 libobjs=conftest.$ac_objext
12885 deplibs=
12886 wl=$lt_prog_compiler_wl_CXX
12887 pic_flag=$lt_prog_compiler_pic_CXX
12888 compiler_flags=-v
12889 linker_flags=-v
12890 verstring=
12891 output_objdir=.
12892 libname=conftest
12893 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12894 allow_undefined_flag_CXX=
12895 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12896 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12897 ac_status=$?
12898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899 (exit $ac_status); }
12900 then
12901 archive_cmds_need_lc_CXX=no
12902 else
12903 archive_cmds_need_lc_CXX=yes
12904 fi
12905 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12906 else
12907 cat conftest.err 1>&5
12908 fi
12909 $rm conftest*
12910 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12911 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12912 ;;
12913 esac
12914 fi
12915 ;;
12916 esac
12917
12918 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12919 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12920 library_names_spec=
12921 libname_spec='lib$name'
12922 soname_spec=
12923 shrext_cmds=".so"
12924 postinstall_cmds=
12925 postuninstall_cmds=
12926 finish_cmds=
12927 finish_eval=
12928 shlibpath_var=
12929 shlibpath_overrides_runpath=unknown
12930 version_type=none
12931 dynamic_linker="$host_os ld.so"
12932 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12933 if test "$GCC" = yes; then
12934 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12935 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12936 # if the path contains ";" then we assume it to be the separator
12937 # otherwise default to the standard path separator (i.e. ":") - it is
12938 # assumed that no part of a normal pathname contains ";" but that should
12939 # okay in the real world where ";" in dirpaths is itself problematic.
12940 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12941 else
12942 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12943 fi
12944 else
12945 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12946 fi
12947 need_lib_prefix=unknown
12948 hardcode_into_libs=no
12949
12950 # when you set need_version to no, make sure it does not cause -set_version
12951 # flags to be left without arguments
12952 need_version=unknown
12953
12954 case $host_os in
12955 aix3*)
12956 version_type=linux
12957 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12958 shlibpath_var=LIBPATH
12959
12960 # AIX 3 has no versioning support, so we append a major version to the name.
12961 soname_spec='${libname}${release}${shared_ext}$major'
12962 ;;
12963
12964 aix4* | aix5*)
12965 version_type=linux
12966 need_lib_prefix=no
12967 need_version=no
12968 hardcode_into_libs=yes
12969 if test "$host_cpu" = ia64; then
12970 # AIX 5 supports IA64
12971 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12972 shlibpath_var=LD_LIBRARY_PATH
12973 else
12974 # With GCC up to 2.95.x, collect2 would create an import file
12975 # for dependence libraries. The import file would start with
12976 # the line `#! .'. This would cause the generated library to
12977 # depend on `.', always an invalid library. This was fixed in
12978 # development snapshots of GCC prior to 3.0.
12979 case $host_os in
12980 aix4 | aix4.[01] | aix4.[01].*)
12981 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12982 echo ' yes '
12983 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12984 :
12985 else
12986 can_build_shared=no
12987 fi
12988 ;;
12989 esac
12990 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12991 # soname into executable. Probably we can add versioning support to
12992 # collect2, so additional links can be useful in future.
12993 if test "$aix_use_runtimelinking" = yes; then
12994 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12995 # instead of lib<name>.a to let people know that these are not
12996 # typical AIX shared libraries.
12997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12998 else
12999 # We preserve .a as extension for shared libraries through AIX4.2
13000 # and later when we are not doing run time linking.
13001 library_names_spec='${libname}${release}.a $libname.a'
13002 soname_spec='${libname}${release}${shared_ext}$major'
13003 fi
13004 shlibpath_var=LIBPATH
13005 fi
13006 ;;
13007
13008 amigaos*)
13009 library_names_spec='$libname.ixlibrary $libname.a'
13010 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13011 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'
13012 ;;
13013
13014 beos*)
13015 library_names_spec='${libname}${shared_ext}'
13016 dynamic_linker="$host_os ld.so"
13017 shlibpath_var=LIBRARY_PATH
13018 ;;
13019
13020 bsdi[45]*)
13021 version_type=linux
13022 need_version=no
13023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13024 soname_spec='${libname}${release}${shared_ext}$major'
13025 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13026 shlibpath_var=LD_LIBRARY_PATH
13027 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13028 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13029 # the default ld.so.conf also contains /usr/contrib/lib and
13030 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13031 # libtool to hard-code these into programs
13032 ;;
13033
13034 cygwin* | mingw* | pw32*)
13035 version_type=windows
13036 shrext_cmds=".dll"
13037 need_version=no
13038 need_lib_prefix=no
13039
13040 case $GCC,$host_os in
13041 yes,cygwin* | yes,mingw* | yes,pw32*)
13042 library_names_spec='$libname.dll.a'
13043 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13044 postinstall_cmds='base_file=`basename \${file}`~
13045 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13046 dldir=$destdir/`dirname \$dlpath`~
13047 test -d \$dldir || mkdir -p \$dldir~
13048 $install_prog $dir/$dlname \$dldir/$dlname~
13049 chmod a+x \$dldir/$dlname'
13050 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13051 dlpath=$dir/\$dldll~
13052 $rm \$dlpath'
13053 shlibpath_overrides_runpath=yes
13054
13055 case $host_os in
13056 cygwin*)
13057 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13058 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13059 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13060 ;;
13061 mingw*)
13062 # MinGW DLLs use traditional 'lib' prefix
13063 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13064 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13065 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13066 # It is most probably a Windows format PATH printed by
13067 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13068 # path with ; separators, and with drive letters. We can handle the
13069 # drive letters (cygwin fileutils understands them), so leave them,
13070 # especially as we might pass files found there to a mingw objdump,
13071 # which wouldn't understand a cygwinified path. Ahh.
13072 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13073 else
13074 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13075 fi
13076 ;;
13077 pw32*)
13078 # pw32 DLLs use 'pw' prefix rather than 'lib'
13079 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13080 ;;
13081 esac
13082 ;;
13083
13084 *)
13085 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13086 ;;
13087 esac
13088 dynamic_linker='Win32 ld.exe'
13089 # FIXME: first we should search . and the directory the executable is in
13090 shlibpath_var=PATH
13091 ;;
13092
13093 darwin* | rhapsody*)
13094 dynamic_linker="$host_os dyld"
13095 version_type=darwin
13096 need_lib_prefix=no
13097 need_version=no
13098 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13099 soname_spec='${libname}${release}${major}$shared_ext'
13100 shlibpath_overrides_runpath=yes
13101 shlibpath_var=DYLD_LIBRARY_PATH
13102 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13103 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13104 if test "$GCC" = yes; then
13105 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"`
13106 else
13107 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13108 fi
13109 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13110 ;;
13111
13112 dgux*)
13113 version_type=linux
13114 need_lib_prefix=no
13115 need_version=no
13116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13117 soname_spec='${libname}${release}${shared_ext}$major'
13118 shlibpath_var=LD_LIBRARY_PATH
13119 ;;
13120
13121 freebsd1*)
13122 dynamic_linker=no
13123 ;;
13124
13125 freebsd* | dragonfly*)
13126 # DragonFly does not have aout. When/if they implement a new
13127 # versioning mechanism, adjust this.
13128 if test -x /usr/bin/objformat; then
13129 objformat=`/usr/bin/objformat`
13130 else
13131 case $host_os in
13132 freebsd[123]*) objformat=aout ;;
13133 *) objformat=elf ;;
13134 esac
13135 fi
13136 version_type=freebsd-$objformat
13137 case $version_type in
13138 freebsd-elf*)
13139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13140 need_version=no
13141 need_lib_prefix=no
13142 ;;
13143 freebsd-*)
13144 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13145 need_version=yes
13146 ;;
13147 esac
13148 shlibpath_var=LD_LIBRARY_PATH
13149 case $host_os in
13150 freebsd2*)
13151 shlibpath_overrides_runpath=yes
13152 ;;
13153 freebsd3.[01]* | freebsdelf3.[01]*)
13154 shlibpath_overrides_runpath=yes
13155 hardcode_into_libs=yes
13156 ;;
13157 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13158 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13159 shlibpath_overrides_runpath=no
13160 hardcode_into_libs=yes
13161 ;;
13162 freebsd*) # from 4.6 on
13163 shlibpath_overrides_runpath=yes
13164 hardcode_into_libs=yes
13165 ;;
13166 esac
13167 ;;
13168
13169 gnu*)
13170 version_type=linux
13171 need_lib_prefix=no
13172 need_version=no
13173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13174 soname_spec='${libname}${release}${shared_ext}$major'
13175 shlibpath_var=LD_LIBRARY_PATH
13176 hardcode_into_libs=yes
13177 ;;
13178
13179 hpux9* | hpux10* | hpux11*)
13180 # Give a soname corresponding to the major version so that dld.sl refuses to
13181 # link against other versions.
13182 version_type=sunos
13183 need_lib_prefix=no
13184 need_version=no
13185 case $host_cpu in
13186 ia64*)
13187 shrext_cmds='.so'
13188 hardcode_into_libs=yes
13189 dynamic_linker="$host_os dld.so"
13190 shlibpath_var=LD_LIBRARY_PATH
13191 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 if test "X$HPUX_IA64_MODE" = X32; then
13195 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13196 else
13197 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13198 fi
13199 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13200 ;;
13201 hppa*64*)
13202 shrext_cmds='.sl'
13203 hardcode_into_libs=yes
13204 dynamic_linker="$host_os dld.sl"
13205 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13206 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13208 soname_spec='${libname}${release}${shared_ext}$major'
13209 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13210 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13211 ;;
13212 *)
13213 shrext_cmds='.sl'
13214 dynamic_linker="$host_os dld.sl"
13215 shlibpath_var=SHLIB_PATH
13216 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13218 soname_spec='${libname}${release}${shared_ext}$major'
13219 ;;
13220 esac
13221 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13222 postinstall_cmds='chmod 555 $lib'
13223 ;;
13224
13225 interix3*)
13226 version_type=linux
13227 need_lib_prefix=no
13228 need_version=no
13229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13230 soname_spec='${libname}${release}${shared_ext}$major'
13231 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13232 shlibpath_var=LD_LIBRARY_PATH
13233 shlibpath_overrides_runpath=no
13234 hardcode_into_libs=yes
13235 ;;
13236
13237 irix5* | irix6* | nonstopux*)
13238 case $host_os in
13239 nonstopux*) version_type=nonstopux ;;
13240 *)
13241 if test "$lt_cv_prog_gnu_ld" = yes; then
13242 version_type=linux
13243 else
13244 version_type=irix
13245 fi ;;
13246 esac
13247 need_lib_prefix=no
13248 need_version=no
13249 soname_spec='${libname}${release}${shared_ext}$major'
13250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13251 case $host_os in
13252 irix5* | nonstopux*)
13253 libsuff= shlibsuff=
13254 ;;
13255 *)
13256 case $LD in # libtool.m4 will add one of these switches to LD
13257 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13258 libsuff= shlibsuff= libmagic=32-bit;;
13259 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13260 libsuff=32 shlibsuff=N32 libmagic=N32;;
13261 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13262 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13263 *) libsuff= shlibsuff= libmagic=never-match;;
13264 esac
13265 ;;
13266 esac
13267 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13268 shlibpath_overrides_runpath=no
13269 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13270 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13271 hardcode_into_libs=yes
13272 ;;
13273
13274 # No shared lib support for Linux oldld, aout, or coff.
13275 linux*oldld* | linux*aout* | linux*coff*)
13276 dynamic_linker=no
13277 ;;
13278
13279 # This must be Linux ELF.
13280 linux* | k*bsd*-gnu)
13281 version_type=linux
13282 need_lib_prefix=no
13283 need_version=no
13284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13285 soname_spec='${libname}${release}${shared_ext}$major'
13286 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13287 shlibpath_var=LD_LIBRARY_PATH
13288 shlibpath_overrides_runpath=no
13289 # This implies no fast_install, which is unacceptable.
13290 # Some rework will be needed to allow for fast_install
13291 # before this can be enabled.
13292 hardcode_into_libs=yes
13293
13294 # Append ld.so.conf contents to the search path
13295 if test -f /etc/ld.so.conf; then
13296 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' ' '`
13297 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13298 fi
13299
13300 # We used to test for /lib/ld.so.1 and disable shared libraries on
13301 # powerpc, because MkLinux only supported shared libraries with the
13302 # GNU dynamic linker. Since this was broken with cross compilers,
13303 # most powerpc-linux boxes support dynamic linking these days and
13304 # people can always --disable-shared, the test was removed, and we
13305 # assume the GNU/Linux dynamic linker is in use.
13306 dynamic_linker='GNU/Linux ld.so'
13307 ;;
13308
13309 netbsdelf*-gnu)
13310 version_type=linux
13311 need_lib_prefix=no
13312 need_version=no
13313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13314 soname_spec='${libname}${release}${shared_ext}$major'
13315 shlibpath_var=LD_LIBRARY_PATH
13316 shlibpath_overrides_runpath=no
13317 hardcode_into_libs=yes
13318 dynamic_linker='NetBSD ld.elf_so'
13319 ;;
13320
13321 netbsd*)
13322 version_type=sunos
13323 need_lib_prefix=no
13324 need_version=no
13325 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13327 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13328 dynamic_linker='NetBSD (a.out) ld.so'
13329 else
13330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13331 soname_spec='${libname}${release}${shared_ext}$major'
13332 dynamic_linker='NetBSD ld.elf_so'
13333 fi
13334 shlibpath_var=LD_LIBRARY_PATH
13335 shlibpath_overrides_runpath=yes
13336 hardcode_into_libs=yes
13337 ;;
13338
13339 newsos6)
13340 version_type=linux
13341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13342 shlibpath_var=LD_LIBRARY_PATH
13343 shlibpath_overrides_runpath=yes
13344 ;;
13345
13346 nto-qnx*)
13347 version_type=linux
13348 need_lib_prefix=no
13349 need_version=no
13350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13351 soname_spec='${libname}${release}${shared_ext}$major'
13352 shlibpath_var=LD_LIBRARY_PATH
13353 shlibpath_overrides_runpath=yes
13354 ;;
13355
13356 openbsd*)
13357 version_type=sunos
13358 sys_lib_dlsearch_path_spec="/usr/lib"
13359 need_lib_prefix=no
13360 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13361 case $host_os in
13362 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13363 *) need_version=no ;;
13364 esac
13365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13366 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13367 shlibpath_var=LD_LIBRARY_PATH
13368 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13369 case $host_os in
13370 openbsd2.[89] | openbsd2.[89].*)
13371 shlibpath_overrides_runpath=no
13372 ;;
13373 *)
13374 shlibpath_overrides_runpath=yes
13375 ;;
13376 esac
13377 else
13378 shlibpath_overrides_runpath=yes
13379 fi
13380 ;;
13381
13382 os2*)
13383 libname_spec='$name'
13384 shrext_cmds=".dll"
13385 need_lib_prefix=no
13386 library_names_spec='$libname${shared_ext} $libname.a'
13387 dynamic_linker='OS/2 ld.exe'
13388 shlibpath_var=LIBPATH
13389 ;;
13390
13391 osf3* | osf4* | osf5*)
13392 version_type=osf
13393 need_lib_prefix=no
13394 need_version=no
13395 soname_spec='${libname}${release}${shared_ext}$major'
13396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13397 shlibpath_var=LD_LIBRARY_PATH
13398 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13399 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13400 ;;
13401
13402 solaris*)
13403 version_type=linux
13404 need_lib_prefix=no
13405 need_version=no
13406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13407 soname_spec='${libname}${release}${shared_ext}$major'
13408 shlibpath_var=LD_LIBRARY_PATH
13409 shlibpath_overrides_runpath=yes
13410 hardcode_into_libs=yes
13411 # ldd complains unless libraries are executable
13412 postinstall_cmds='chmod +x $lib'
13413 ;;
13414
13415 sunos4*)
13416 version_type=sunos
13417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13418 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13419 shlibpath_var=LD_LIBRARY_PATH
13420 shlibpath_overrides_runpath=yes
13421 if test "$with_gnu_ld" = yes; then
13422 need_lib_prefix=no
13423 fi
13424 need_version=yes
13425 ;;
13426
13427 sysv4 | sysv4.3*)
13428 version_type=linux
13429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13430 soname_spec='${libname}${release}${shared_ext}$major'
13431 shlibpath_var=LD_LIBRARY_PATH
13432 case $host_vendor in
13433 sni)
13434 shlibpath_overrides_runpath=no
13435 need_lib_prefix=no
13436 export_dynamic_flag_spec='${wl}-Blargedynsym'
13437 runpath_var=LD_RUN_PATH
13438 ;;
13439 siemens)
13440 need_lib_prefix=no
13441 ;;
13442 motorola)
13443 need_lib_prefix=no
13444 need_version=no
13445 shlibpath_overrides_runpath=no
13446 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13447 ;;
13448 esac
13449 ;;
13450
13451 sysv4*MP*)
13452 if test -d /usr/nec ;then
13453 version_type=linux
13454 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13455 soname_spec='$libname${shared_ext}.$major'
13456 shlibpath_var=LD_LIBRARY_PATH
13457 fi
13458 ;;
13459
13460 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13461 version_type=freebsd-elf
13462 need_lib_prefix=no
13463 need_version=no
13464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13465 soname_spec='${libname}${release}${shared_ext}$major'
13466 shlibpath_var=LD_LIBRARY_PATH
13467 hardcode_into_libs=yes
13468 if test "$with_gnu_ld" = yes; then
13469 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13470 shlibpath_overrides_runpath=no
13471 else
13472 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13473 shlibpath_overrides_runpath=yes
13474 case $host_os in
13475 sco3.2v5*)
13476 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13477 ;;
13478 esac
13479 fi
13480 sys_lib_dlsearch_path_spec='/usr/lib'
13481 ;;
13482
13483 uts4*)
13484 version_type=linux
13485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13486 soname_spec='${libname}${release}${shared_ext}$major'
13487 shlibpath_var=LD_LIBRARY_PATH
13488 ;;
13489
13490 *)
13491 dynamic_linker=no
13492 ;;
13493 esac
13494 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13495 echo "${ECHO_T}$dynamic_linker" >&6; }
13496 test "$dynamic_linker" = no && can_build_shared=no
13497
13498 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13499 if test "$GCC" = yes; then
13500 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13501 fi
13502
13503 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13504 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13505 hardcode_action_CXX=
13506 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13507 test -n "$runpath_var_CXX" || \
13508 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13509
13510 # We can hardcode non-existant directories.
13511 if test "$hardcode_direct_CXX" != no &&
13512 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13513 # have to relink, otherwise we might link with an installed library
13514 # when we should be linking with a yet-to-be-installed one
13515 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13516 test "$hardcode_minus_L_CXX" != no; then
13517 # Linking always hardcodes the temporary library directory.
13518 hardcode_action_CXX=relink
13519 else
13520 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13521 hardcode_action_CXX=immediate
13522 fi
13523 else
13524 # We cannot hardcode anything, or else we can only hardcode existing
13525 # directories.
13526 hardcode_action_CXX=unsupported
13527 fi
13528 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13529 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13530
13531 if test "$hardcode_action_CXX" = relink; then
13532 # Fast installation is not supported
13533 enable_fast_install=no
13534 elif test "$shlibpath_overrides_runpath" = yes ||
13535 test "$enable_shared" = no; then
13536 # Fast installation is not necessary
13537 enable_fast_install=needless
13538 fi
13539
13540
13541 # The else clause should only fire when bootstrapping the
13542 # libtool distribution, otherwise you forgot to ship ltmain.sh
13543 # with your package, and you will get complaints that there are
13544 # no rules to generate ltmain.sh.
13545 if test -f "$ltmain"; then
13546 # See if we are running on zsh, and set the options which allow our commands through
13547 # without removal of \ escapes.
13548 if test -n "${ZSH_VERSION+set}" ; then
13549 setopt NO_GLOB_SUBST
13550 fi
13551 # Now quote all the things that may contain metacharacters while being
13552 # careful not to overquote the AC_SUBSTed values. We take copies of the
13553 # variables and quote the copies for generation of the libtool script.
13554 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13555 SED SHELL STRIP \
13556 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13557 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13558 deplibs_check_method reload_flag reload_cmds need_locks \
13559 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13560 lt_cv_sys_global_symbol_to_c_name_address \
13561 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13562 old_postinstall_cmds old_postuninstall_cmds \
13563 compiler_CXX \
13564 CC_CXX \
13565 LD_CXX \
13566 lt_prog_compiler_wl_CXX \
13567 lt_prog_compiler_pic_CXX \
13568 lt_prog_compiler_static_CXX \
13569 lt_prog_compiler_no_builtin_flag_CXX \
13570 export_dynamic_flag_spec_CXX \
13571 thread_safe_flag_spec_CXX \
13572 whole_archive_flag_spec_CXX \
13573 enable_shared_with_static_runtimes_CXX \
13574 old_archive_cmds_CXX \
13575 old_archive_from_new_cmds_CXX \
13576 predep_objects_CXX \
13577 postdep_objects_CXX \
13578 predeps_CXX \
13579 postdeps_CXX \
13580 compiler_lib_search_path_CXX \
13581 archive_cmds_CXX \
13582 archive_expsym_cmds_CXX \
13583 postinstall_cmds_CXX \
13584 postuninstall_cmds_CXX \
13585 old_archive_from_expsyms_cmds_CXX \
13586 allow_undefined_flag_CXX \
13587 no_undefined_flag_CXX \
13588 export_symbols_cmds_CXX \
13589 hardcode_libdir_flag_spec_CXX \
13590 hardcode_libdir_flag_spec_ld_CXX \
13591 hardcode_libdir_separator_CXX \
13592 hardcode_automatic_CXX \
13593 module_cmds_CXX \
13594 module_expsym_cmds_CXX \
13595 lt_cv_prog_compiler_c_o_CXX \
13596 exclude_expsyms_CXX \
13597 include_expsyms_CXX; do
13598
13599 case $var in
13600 old_archive_cmds_CXX | \
13601 old_archive_from_new_cmds_CXX | \
13602 archive_cmds_CXX | \
13603 archive_expsym_cmds_CXX | \
13604 module_cmds_CXX | \
13605 module_expsym_cmds_CXX | \
13606 old_archive_from_expsyms_cmds_CXX | \
13607 export_symbols_cmds_CXX | \
13608 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13609 postinstall_cmds | postuninstall_cmds | \
13610 old_postinstall_cmds | old_postuninstall_cmds | \
13611 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13612 # Double-quote double-evaled strings.
13613 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13614 ;;
13615 *)
13616 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13617 ;;
13618 esac
13619 done
13620
13621 case $lt_echo in
13622 *'\$0 --fallback-echo"')
13623 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13624 ;;
13625 esac
13626
13627 cfgfile="$ofile"
13628
13629 cat <<__EOF__ >> "$cfgfile"
13630 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13631
13632 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13633
13634 # Shell to use when invoking shell scripts.
13635 SHELL=$lt_SHELL
13636
13637 # Whether or not to build shared libraries.
13638 build_libtool_libs=$enable_shared
13639
13640 # Whether or not to build static libraries.
13641 build_old_libs=$enable_static
13642
13643 # Whether or not to add -lc for building shared libraries.
13644 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13645
13646 # Whether or not to disallow shared libs when runtime libs are static
13647 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13648
13649 # Whether or not to optimize for fast installation.
13650 fast_install=$enable_fast_install
13651
13652 # The host system.
13653 host_alias=$host_alias
13654 host=$host
13655 host_os=$host_os
13656
13657 # The build system.
13658 build_alias=$build_alias
13659 build=$build
13660 build_os=$build_os
13661
13662 # An echo program that does not interpret backslashes.
13663 echo=$lt_echo
13664
13665 # The archiver.
13666 AR=$lt_AR
13667 AR_FLAGS=$lt_AR_FLAGS
13668
13669 # A C compiler.
13670 LTCC=$lt_LTCC
13671
13672 # LTCC compiler flags.
13673 LTCFLAGS=$lt_LTCFLAGS
13674
13675 # A language-specific compiler.
13676 CC=$lt_compiler_CXX
13677
13678 # Is the compiler the GNU C compiler?
13679 with_gcc=$GCC_CXX
13680
13681 # An ERE matcher.
13682 EGREP=$lt_EGREP
13683
13684 # The linker used to build libraries.
13685 LD=$lt_LD_CXX
13686
13687 # Whether we need hard or soft links.
13688 LN_S=$lt_LN_S
13689
13690 # A BSD-compatible nm program.
13691 NM=$lt_NM
13692
13693 # A symbol stripping program
13694 STRIP=$lt_STRIP
13695
13696 # Used to examine libraries when file_magic_cmd begins "file"
13697 MAGIC_CMD=$MAGIC_CMD
13698
13699 # Used on cygwin: DLL creation program.
13700 DLLTOOL="$DLLTOOL"
13701
13702 # Used on cygwin: object dumper.
13703 OBJDUMP="$OBJDUMP"
13704
13705 # Used on cygwin: assembler.
13706 AS="$AS"
13707
13708 # The name of the directory that contains temporary libtool files.
13709 objdir=$objdir
13710
13711 # How to create reloadable object files.
13712 reload_flag=$lt_reload_flag
13713 reload_cmds=$lt_reload_cmds
13714
13715 # How to pass a linker flag through the compiler.
13716 wl=$lt_lt_prog_compiler_wl_CXX
13717
13718 # Object file suffix (normally "o").
13719 objext="$ac_objext"
13720
13721 # Old archive suffix (normally "a").
13722 libext="$libext"
13723
13724 # Shared library suffix (normally ".so").
13725 shrext_cmds='$shrext_cmds'
13726
13727 # Executable file suffix (normally "").
13728 exeext="$exeext"
13729
13730 # Additional compiler flags for building library objects.
13731 pic_flag=$lt_lt_prog_compiler_pic_CXX
13732 pic_mode=$pic_mode
13733
13734 # What is the maximum length of a command?
13735 max_cmd_len=$lt_cv_sys_max_cmd_len
13736
13737 # Does compiler simultaneously support -c and -o options?
13738 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13739
13740 # Must we lock files when doing compilation?
13741 need_locks=$lt_need_locks
13742
13743 # Do we need the lib prefix for modules?
13744 need_lib_prefix=$need_lib_prefix
13745
13746 # Do we need a version for libraries?
13747 need_version=$need_version
13748
13749 # Whether dlopen is supported.
13750 dlopen_support=$enable_dlopen
13751
13752 # Whether dlopen of programs is supported.
13753 dlopen_self=$enable_dlopen_self
13754
13755 # Whether dlopen of statically linked programs is supported.
13756 dlopen_self_static=$enable_dlopen_self_static
13757
13758 # Compiler flag to prevent dynamic linking.
13759 link_static_flag=$lt_lt_prog_compiler_static_CXX
13760
13761 # Compiler flag to turn off builtin functions.
13762 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13763
13764 # Compiler flag to allow reflexive dlopens.
13765 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13766
13767 # Compiler flag to generate shared objects directly from archives.
13768 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13769
13770 # Compiler flag to generate thread-safe objects.
13771 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13772
13773 # Library versioning type.
13774 version_type=$version_type
13775
13776 # Format of library name prefix.
13777 libname_spec=$lt_libname_spec
13778
13779 # List of archive names. First name is the real one, the rest are links.
13780 # The last name is the one that the linker finds with -lNAME.
13781 library_names_spec=$lt_library_names_spec
13782
13783 # The coded name of the library, if different from the real name.
13784 soname_spec=$lt_soname_spec
13785
13786 # Commands used to build and install an old-style archive.
13787 RANLIB=$lt_RANLIB
13788 old_archive_cmds=$lt_old_archive_cmds_CXX
13789 old_postinstall_cmds=$lt_old_postinstall_cmds
13790 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13791
13792 # Create an old-style archive from a shared archive.
13793 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13794
13795 # Create a temporary old-style archive to link instead of a shared archive.
13796 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13797
13798 # Commands used to build and install a shared archive.
13799 archive_cmds=$lt_archive_cmds_CXX
13800 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13801 postinstall_cmds=$lt_postinstall_cmds
13802 postuninstall_cmds=$lt_postuninstall_cmds
13803
13804 # Commands used to build a loadable module (assumed same as above if empty)
13805 module_cmds=$lt_module_cmds_CXX
13806 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13807
13808 # Commands to strip libraries.
13809 old_striplib=$lt_old_striplib
13810 striplib=$lt_striplib
13811
13812 # Dependencies to place before the objects being linked to create a
13813 # shared library.
13814 predep_objects=$lt_predep_objects_CXX
13815
13816 # Dependencies to place after the objects being linked to create a
13817 # shared library.
13818 postdep_objects=$lt_postdep_objects_CXX
13819
13820 # Dependencies to place before the objects being linked to create a
13821 # shared library.
13822 predeps=$lt_predeps_CXX
13823
13824 # Dependencies to place after the objects being linked to create a
13825 # shared library.
13826 postdeps=$lt_postdeps_CXX
13827
13828 # The library search path used internally by the compiler when linking
13829 # a shared library.
13830 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13831
13832 # Method to check whether dependent libraries are shared objects.
13833 deplibs_check_method=$lt_deplibs_check_method
13834
13835 # Command to use when deplibs_check_method == file_magic.
13836 file_magic_cmd=$lt_file_magic_cmd
13837
13838 # Flag that allows shared libraries with undefined symbols to be built.
13839 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13840
13841 # Flag that forces no undefined symbols.
13842 no_undefined_flag=$lt_no_undefined_flag_CXX
13843
13844 # Commands used to finish a libtool library installation in a directory.
13845 finish_cmds=$lt_finish_cmds
13846
13847 # Same as above, but a single script fragment to be evaled but not shown.
13848 finish_eval=$lt_finish_eval
13849
13850 # Take the output of nm and produce a listing of raw symbols and C names.
13851 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13852
13853 # Transform the output of nm in a proper C declaration
13854 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13855
13856 # Transform the output of nm in a C name address pair
13857 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13858
13859 # This is the shared library runtime path variable.
13860 runpath_var=$runpath_var
13861
13862 # This is the shared library path variable.
13863 shlibpath_var=$shlibpath_var
13864
13865 # Is shlibpath searched before the hard-coded library search path?
13866 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13867
13868 # How to hardcode a shared library path into an executable.
13869 hardcode_action=$hardcode_action_CXX
13870
13871 # Whether we should hardcode library paths into libraries.
13872 hardcode_into_libs=$hardcode_into_libs
13873
13874 # Flag to hardcode \$libdir into a binary during linking.
13875 # This must work even if \$libdir does not exist.
13876 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13877
13878 # If ld is used when linking, flag to hardcode \$libdir into
13879 # a binary during linking. This must work even if \$libdir does
13880 # not exist.
13881 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13882
13883 # Whether we need a single -rpath flag with a separated argument.
13884 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13885
13886 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13887 # resulting binary.
13888 hardcode_direct=$hardcode_direct_CXX
13889
13890 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13891 # resulting binary.
13892 hardcode_minus_L=$hardcode_minus_L_CXX
13893
13894 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13895 # the resulting binary.
13896 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13897
13898 # Set to yes if building a shared library automatically hardcodes DIR into the library
13899 # and all subsequent libraries and executables linked against it.
13900 hardcode_automatic=$hardcode_automatic_CXX
13901
13902 # Variables whose values should be saved in libtool wrapper scripts and
13903 # restored at relink time.
13904 variables_saved_for_relink="$variables_saved_for_relink"
13905
13906 # Whether libtool must link a program against all its dependency libraries.
13907 link_all_deplibs=$link_all_deplibs_CXX
13908
13909 # Compile-time system search path for libraries
13910 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13911
13912 # Run-time system search path for libraries
13913 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13914
13915 # Fix the shell variable \$srcfile for the compiler.
13916 fix_srcfile_path="$fix_srcfile_path_CXX"
13917
13918 # Set to yes if exported symbols are required.
13919 always_export_symbols=$always_export_symbols_CXX
13920
13921 # The commands to list exported symbols.
13922 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13923
13924 # The commands to extract the exported symbol list from a shared archive.
13925 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13926
13927 # Symbols that should not be listed in the preloaded symbols.
13928 exclude_expsyms=$lt_exclude_expsyms_CXX
13929
13930 # Symbols that must always be exported.
13931 include_expsyms=$lt_include_expsyms_CXX
13932
13933 # ### END LIBTOOL TAG CONFIG: $tagname
13934
13935 __EOF__
13936
13937
13938 else
13939 # If there is no Makefile yet, we rely on a make rule to execute
13940 # `config.status --recheck' to rerun these tests and create the
13941 # libtool script then.
13942 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13943 if test -f "$ltmain_in"; then
13944 test -f Makefile && make "$ltmain"
13945 fi
13946 fi
13947
13948
13949 ac_ext=c
13950 ac_cpp='$CPP $CPPFLAGS'
13951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13954
13955 CC=$lt_save_CC
13956 LDCXX=$LD
13957 LD=$lt_save_LD
13958 GCC=$lt_save_GCC
13959 with_gnu_ldcxx=$with_gnu_ld
13960 with_gnu_ld=$lt_save_with_gnu_ld
13961 lt_cv_path_LDCXX=$lt_cv_path_LD
13962 lt_cv_path_LD=$lt_save_path_LD
13963 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13964 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13965
13966 else
13967 tagname=""
13968 fi
13969 ;;
13970
13971 F77)
13972 if test -n "$F77" && test "X$F77" != "Xno"; then
13973
13974 ac_ext=f
13975 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13976 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13977 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13978
13979
13980 archive_cmds_need_lc_F77=no
13981 allow_undefined_flag_F77=
13982 always_export_symbols_F77=no
13983 archive_expsym_cmds_F77=
13984 export_dynamic_flag_spec_F77=
13985 hardcode_direct_F77=no
13986 hardcode_libdir_flag_spec_F77=
13987 hardcode_libdir_flag_spec_ld_F77=
13988 hardcode_libdir_separator_F77=
13989 hardcode_minus_L_F77=no
13990 hardcode_automatic_F77=no
13991 module_cmds_F77=
13992 module_expsym_cmds_F77=
13993 link_all_deplibs_F77=unknown
13994 old_archive_cmds_F77=$old_archive_cmds
13995 no_undefined_flag_F77=
13996 whole_archive_flag_spec_F77=
13997 enable_shared_with_static_runtimes_F77=no
13998
13999 # Source file extension for f77 test sources.
14000 ac_ext=f
14001
14002 # Object file extension for compiled f77 test sources.
14003 objext=o
14004 objext_F77=$objext
14005
14006 # Code to be used in simple compile tests
14007 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14008
14009 # Code to be used in simple link tests
14010 lt_simple_link_test_code=" program t\n end\n"
14011
14012 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14013
14014 # If no C compiler was specified, use CC.
14015 LTCC=${LTCC-"$CC"}
14016
14017 # If no C compiler flags were specified, use CFLAGS.
14018 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14019
14020 # Allow CC to be a program name with arguments.
14021 compiler=$CC
14022
14023
14024 # save warnings/boilerplate of simple test code
14025 ac_outfile=conftest.$ac_objext
14026 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14027 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14028 _lt_compiler_boilerplate=`cat conftest.err`
14029 $rm conftest*
14030
14031 ac_outfile=conftest.$ac_objext
14032 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14033 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14034 _lt_linker_boilerplate=`cat conftest.err`
14035 $rm conftest*
14036
14037
14038 # Allow CC to be a program name with arguments.
14039 lt_save_CC="$CC"
14040 CC=${F77-"f77"}
14041 compiler=$CC
14042 compiler_F77=$CC
14043 for cc_temp in $compiler""; do
14044 case $cc_temp in
14045 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14046 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14047 \-*) ;;
14048 *) break;;
14049 esac
14050 done
14051 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14052
14053
14054 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14055 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14056 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14057 echo "${ECHO_T}$can_build_shared" >&6; }
14058
14059 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14060 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14061 test "$can_build_shared" = "no" && enable_shared=no
14062
14063 # On AIX, shared libraries and static libraries use the same namespace, and
14064 # are all built from PIC.
14065 case $host_os in
14066 aix3*)
14067 test "$enable_shared" = yes && enable_static=no
14068 if test -n "$RANLIB"; then
14069 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14070 postinstall_cmds='$RANLIB $lib'
14071 fi
14072 ;;
14073 aix4* | aix5*)
14074 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14075 test "$enable_shared" = yes && enable_static=no
14076 fi
14077 ;;
14078 esac
14079 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14080 echo "${ECHO_T}$enable_shared" >&6; }
14081
14082 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14083 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14084 # Make sure either enable_shared or enable_static is yes.
14085 test "$enable_shared" = yes || enable_static=yes
14086 { echo "$as_me:$LINENO: result: $enable_static" >&5
14087 echo "${ECHO_T}$enable_static" >&6; }
14088
14089 GCC_F77="$G77"
14090 LD_F77="$LD"
14091
14092 lt_prog_compiler_wl_F77=
14093 lt_prog_compiler_pic_F77=
14094 lt_prog_compiler_static_F77=
14095
14096 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14097 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14098
14099 if test "$GCC" = yes; then
14100 lt_prog_compiler_wl_F77='-Wl,'
14101 lt_prog_compiler_static_F77='-static'
14102
14103 case $host_os in
14104 aix*)
14105 # All AIX code is PIC.
14106 if test "$host_cpu" = ia64; then
14107 # AIX 5 now supports IA64 processor
14108 lt_prog_compiler_static_F77='-Bstatic'
14109 fi
14110 ;;
14111
14112 amigaos*)
14113 # FIXME: we need at least 68020 code to build shared libraries, but
14114 # adding the `-m68020' flag to GCC prevents building anything better,
14115 # like `-m68040'.
14116 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14117 ;;
14118
14119 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14120 # PIC is the default for these OSes.
14121 ;;
14122
14123 mingw* | pw32* | os2*)
14124 # This hack is so that the source file can tell whether it is being
14125 # built for inclusion in a dll (and should export symbols for example).
14126 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14127 ;;
14128
14129 darwin* | rhapsody*)
14130 # PIC is the default on this platform
14131 # Common symbols not allowed in MH_DYLIB files
14132 lt_prog_compiler_pic_F77='-fno-common'
14133 ;;
14134
14135 interix3*)
14136 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14137 # Instead, we relocate shared libraries at runtime.
14138 ;;
14139
14140 msdosdjgpp*)
14141 # Just because we use GCC doesn't mean we suddenly get shared libraries
14142 # on systems that don't support them.
14143 lt_prog_compiler_can_build_shared_F77=no
14144 enable_shared=no
14145 ;;
14146
14147 sysv4*MP*)
14148 if test -d /usr/nec; then
14149 lt_prog_compiler_pic_F77=-Kconform_pic
14150 fi
14151 ;;
14152
14153 hpux*)
14154 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14155 # not for PA HP-UX.
14156 case $host_cpu in
14157 hppa*64*|ia64*)
14158 # +Z the default
14159 ;;
14160 *)
14161 lt_prog_compiler_pic_F77='-fPIC'
14162 ;;
14163 esac
14164 ;;
14165
14166 *)
14167 lt_prog_compiler_pic_F77='-fPIC'
14168 ;;
14169 esac
14170 else
14171 # PORTME Check for flag to pass linker flags through the system compiler.
14172 case $host_os in
14173 aix*)
14174 lt_prog_compiler_wl_F77='-Wl,'
14175 if test "$host_cpu" = ia64; then
14176 # AIX 5 now supports IA64 processor
14177 lt_prog_compiler_static_F77='-Bstatic'
14178 else
14179 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14180 fi
14181 ;;
14182 darwin*)
14183 # PIC is the default on this platform
14184 # Common symbols not allowed in MH_DYLIB files
14185 case $cc_basename in
14186 xlc*)
14187 lt_prog_compiler_pic_F77='-qnocommon'
14188 lt_prog_compiler_wl_F77='-Wl,'
14189 ;;
14190 esac
14191 ;;
14192
14193 mingw* | pw32* | os2*)
14194 # This hack is so that the source file can tell whether it is being
14195 # built for inclusion in a dll (and should export symbols for example).
14196 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14197 ;;
14198
14199 hpux9* | hpux10* | hpux11*)
14200 lt_prog_compiler_wl_F77='-Wl,'
14201 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14202 # not for PA HP-UX.
14203 case $host_cpu in
14204 hppa*64*|ia64*)
14205 # +Z the default
14206 ;;
14207 *)
14208 lt_prog_compiler_pic_F77='+Z'
14209 ;;
14210 esac
14211 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14212 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14213 ;;
14214
14215 irix5* | irix6* | nonstopux*)
14216 lt_prog_compiler_wl_F77='-Wl,'
14217 # PIC (with -KPIC) is the default.
14218 lt_prog_compiler_static_F77='-non_shared'
14219 ;;
14220
14221 newsos6)
14222 lt_prog_compiler_pic_F77='-KPIC'
14223 lt_prog_compiler_static_F77='-Bstatic'
14224 ;;
14225
14226 linux* | k*bsd*-gnu)
14227 case $cc_basename in
14228 icc* | ecc*)
14229 lt_prog_compiler_wl_F77='-Wl,'
14230 lt_prog_compiler_pic_F77='-KPIC'
14231 lt_prog_compiler_static_F77='-static'
14232 ;;
14233 pgcc* | pgf77* | pgf90* | pgf95*)
14234 # Portland Group compilers (*not* the Pentium gcc compiler,
14235 # which looks to be a dead project)
14236 lt_prog_compiler_wl_F77='-Wl,'
14237 lt_prog_compiler_pic_F77='-fpic'
14238 lt_prog_compiler_static_F77='-Bstatic'
14239 ;;
14240 ccc*)
14241 lt_prog_compiler_wl_F77='-Wl,'
14242 # All Alpha code is PIC.
14243 lt_prog_compiler_static_F77='-non_shared'
14244 ;;
14245 esac
14246 ;;
14247
14248 osf3* | osf4* | osf5*)
14249 lt_prog_compiler_wl_F77='-Wl,'
14250 # All OSF/1 code is PIC.
14251 lt_prog_compiler_static_F77='-non_shared'
14252 ;;
14253
14254 solaris*)
14255 lt_prog_compiler_pic_F77='-KPIC'
14256 lt_prog_compiler_static_F77='-Bstatic'
14257 case $cc_basename in
14258 f77* | f90* | f95*)
14259 lt_prog_compiler_wl_F77='-Qoption ld ';;
14260 *)
14261 lt_prog_compiler_wl_F77='-Wl,';;
14262 esac
14263 ;;
14264
14265 sunos4*)
14266 lt_prog_compiler_wl_F77='-Qoption ld '
14267 lt_prog_compiler_pic_F77='-PIC'
14268 lt_prog_compiler_static_F77='-Bstatic'
14269 ;;
14270
14271 sysv4 | sysv4.2uw2* | sysv4.3*)
14272 lt_prog_compiler_wl_F77='-Wl,'
14273 lt_prog_compiler_pic_F77='-KPIC'
14274 lt_prog_compiler_static_F77='-Bstatic'
14275 ;;
14276
14277 sysv4*MP*)
14278 if test -d /usr/nec ;then
14279 lt_prog_compiler_pic_F77='-Kconform_pic'
14280 lt_prog_compiler_static_F77='-Bstatic'
14281 fi
14282 ;;
14283
14284 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14285 lt_prog_compiler_wl_F77='-Wl,'
14286 lt_prog_compiler_pic_F77='-KPIC'
14287 lt_prog_compiler_static_F77='-Bstatic'
14288 ;;
14289
14290 unicos*)
14291 lt_prog_compiler_wl_F77='-Wl,'
14292 lt_prog_compiler_can_build_shared_F77=no
14293 ;;
14294
14295 uts4*)
14296 lt_prog_compiler_pic_F77='-pic'
14297 lt_prog_compiler_static_F77='-Bstatic'
14298 ;;
14299
14300 *)
14301 lt_prog_compiler_can_build_shared_F77=no
14302 ;;
14303 esac
14304 fi
14305
14306 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14307 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14308
14309 #
14310 # Check to make sure the PIC flag actually works.
14311 #
14312 if test -n "$lt_prog_compiler_pic_F77"; then
14313
14314 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14315 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14316 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14317 echo $ECHO_N "(cached) $ECHO_C" >&6
14318 else
14319 lt_prog_compiler_pic_works_F77=no
14320 ac_outfile=conftest.$ac_objext
14321 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14322 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14323 # Insert the option either (1) after the last *FLAGS variable, or
14324 # (2) before a word containing "conftest.", or (3) at the end.
14325 # Note that $ac_compile itself does not contain backslashes and begins
14326 # with a dollar sign (not a hyphen), so the echo should work correctly.
14327 # The option is referenced via a variable to avoid confusing sed.
14328 lt_compile=`echo "$ac_compile" | $SED \
14329 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14330 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14331 -e 's:$: $lt_compiler_flag:'`
14332 (eval echo "\"\$as_me:14332: $lt_compile\"" >&5)
14333 (eval "$lt_compile" 2>conftest.err)
14334 ac_status=$?
14335 cat conftest.err >&5
14336 echo "$as_me:14336: \$? = $ac_status" >&5
14337 if (exit $ac_status) && test -s "$ac_outfile"; then
14338 # The compiler can only warn and ignore the option if not recognized
14339 # So say no if there are warnings other than the usual output.
14340 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14341 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14342 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14343 lt_prog_compiler_pic_works_F77=yes
14344 fi
14345 fi
14346 $rm conftest*
14347
14348 fi
14349 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14350 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14351
14352 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14353 case $lt_prog_compiler_pic_F77 in
14354 "" | " "*) ;;
14355 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14356 esac
14357 else
14358 lt_prog_compiler_pic_F77=
14359 lt_prog_compiler_can_build_shared_F77=no
14360 fi
14361
14362 fi
14363 case $host_os in
14364 # For platforms which do not support PIC, -DPIC is meaningless:
14365 *djgpp*)
14366 lt_prog_compiler_pic_F77=
14367 ;;
14368 *)
14369 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14370 ;;
14371 esac
14372
14373 #
14374 # Check to make sure the static flag actually works.
14375 #
14376 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14377 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14378 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14379 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14380 echo $ECHO_N "(cached) $ECHO_C" >&6
14381 else
14382 lt_prog_compiler_static_works_F77=no
14383 save_LDFLAGS="$LDFLAGS"
14384 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14385 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14386 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14387 # The linker can only warn and ignore the option if not recognized
14388 # So say no if there are warnings
14389 if test -s conftest.err; then
14390 # Append any errors to the config.log.
14391 cat conftest.err 1>&5
14392 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14393 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14394 if diff conftest.exp conftest.er2 >/dev/null; then
14395 lt_prog_compiler_static_works_F77=yes
14396 fi
14397 else
14398 lt_prog_compiler_static_works_F77=yes
14399 fi
14400 fi
14401 $rm conftest*
14402 LDFLAGS="$save_LDFLAGS"
14403
14404 fi
14405 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14406 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14407
14408 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14409 :
14410 else
14411 lt_prog_compiler_static_F77=
14412 fi
14413
14414
14415 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14416 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14417 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14418 echo $ECHO_N "(cached) $ECHO_C" >&6
14419 else
14420 lt_cv_prog_compiler_c_o_F77=no
14421 $rm -r conftest 2>/dev/null
14422 mkdir conftest
14423 cd conftest
14424 mkdir out
14425 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14426
14427 lt_compiler_flag="-o out/conftest2.$ac_objext"
14428 # Insert the option either (1) after the last *FLAGS variable, or
14429 # (2) before a word containing "conftest.", or (3) at the end.
14430 # Note that $ac_compile itself does not contain backslashes and begins
14431 # with a dollar sign (not a hyphen), so the echo should work correctly.
14432 lt_compile=`echo "$ac_compile" | $SED \
14433 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14434 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14435 -e 's:$: $lt_compiler_flag:'`
14436 (eval echo "\"\$as_me:14436: $lt_compile\"" >&5)
14437 (eval "$lt_compile" 2>out/conftest.err)
14438 ac_status=$?
14439 cat out/conftest.err >&5
14440 echo "$as_me:14440: \$? = $ac_status" >&5
14441 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14442 then
14443 # The compiler can only warn and ignore the option if not recognized
14444 # So say no if there are warnings
14445 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14446 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14447 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14448 lt_cv_prog_compiler_c_o_F77=yes
14449 fi
14450 fi
14451 chmod u+w . 2>&5
14452 $rm conftest*
14453 # SGI C++ compiler will create directory out/ii_files/ for
14454 # template instantiation
14455 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14456 $rm out/* && rmdir out
14457 cd ..
14458 rmdir conftest
14459 $rm conftest*
14460
14461 fi
14462 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14463 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14464
14465
14466 hard_links="nottested"
14467 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14468 # do not overwrite the value of need_locks provided by the user
14469 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14470 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14471 hard_links=yes
14472 $rm conftest*
14473 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14474 touch conftest.a
14475 ln conftest.a conftest.b 2>&5 || hard_links=no
14476 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14477 { echo "$as_me:$LINENO: result: $hard_links" >&5
14478 echo "${ECHO_T}$hard_links" >&6; }
14479 if test "$hard_links" = no; then
14480 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14481 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14482 need_locks=warn
14483 fi
14484 else
14485 need_locks=no
14486 fi
14487
14488 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14489 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14490
14491 runpath_var=
14492 allow_undefined_flag_F77=
14493 enable_shared_with_static_runtimes_F77=no
14494 archive_cmds_F77=
14495 archive_expsym_cmds_F77=
14496 old_archive_From_new_cmds_F77=
14497 old_archive_from_expsyms_cmds_F77=
14498 export_dynamic_flag_spec_F77=
14499 whole_archive_flag_spec_F77=
14500 thread_safe_flag_spec_F77=
14501 hardcode_libdir_flag_spec_F77=
14502 hardcode_libdir_flag_spec_ld_F77=
14503 hardcode_libdir_separator_F77=
14504 hardcode_direct_F77=no
14505 hardcode_minus_L_F77=no
14506 hardcode_shlibpath_var_F77=unsupported
14507 link_all_deplibs_F77=unknown
14508 hardcode_automatic_F77=no
14509 module_cmds_F77=
14510 module_expsym_cmds_F77=
14511 always_export_symbols_F77=no
14512 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14513 # include_expsyms should be a list of space-separated symbols to be *always*
14514 # included in the symbol list
14515 include_expsyms_F77=
14516 # exclude_expsyms can be an extended regexp of symbols to exclude
14517 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14518 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14519 # as well as any symbol that contains `d'.
14520 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14521 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14522 # platforms (ab)use it in PIC code, but their linkers get confused if
14523 # the symbol is explicitly referenced. Since portable code cannot
14524 # rely on this symbol name, it's probably fine to never include it in
14525 # preloaded symbol tables.
14526 extract_expsyms_cmds=
14527 # Just being paranoid about ensuring that cc_basename is set.
14528 for cc_temp in $compiler""; do
14529 case $cc_temp in
14530 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14531 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14532 \-*) ;;
14533 *) break;;
14534 esac
14535 done
14536 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14537
14538 case $host_os in
14539 cygwin* | mingw* | pw32*)
14540 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14541 # When not using gcc, we currently assume that we are using
14542 # Microsoft Visual C++.
14543 if test "$GCC" != yes; then
14544 with_gnu_ld=no
14545 fi
14546 ;;
14547 interix*)
14548 # we just hope/assume this is gcc and not c89 (= MSVC++)
14549 with_gnu_ld=yes
14550 ;;
14551 openbsd*)
14552 with_gnu_ld=no
14553 ;;
14554 esac
14555
14556 ld_shlibs_F77=yes
14557 if test "$with_gnu_ld" = yes; then
14558 # If archive_cmds runs LD, not CC, wlarc should be empty
14559 wlarc='${wl}'
14560
14561 # Set some defaults for GNU ld with shared library support. These
14562 # are reset later if shared libraries are not supported. Putting them
14563 # here allows them to be overridden if necessary.
14564 runpath_var=LD_RUN_PATH
14565 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14566 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14567 # ancient GNU ld didn't support --whole-archive et. al.
14568 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14569 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14570 else
14571 whole_archive_flag_spec_F77=
14572 fi
14573 supports_anon_versioning=no
14574 case `$LD -v 2>/dev/null` in
14575 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14576 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14577 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14578 *\ 2.11.*) ;; # other 2.11 versions
14579 *) supports_anon_versioning=yes ;;
14580 esac
14581
14582 # See if GNU ld supports shared libraries.
14583 case $host_os in
14584 aix3* | aix4* | aix5*)
14585 # On AIX/PPC, the GNU linker is very broken
14586 if test "$host_cpu" != ia64; then
14587 ld_shlibs_F77=no
14588 cat <<EOF 1>&2
14589
14590 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14591 *** to be unable to reliably create shared libraries on AIX.
14592 *** Therefore, libtool is disabling shared libraries support. If you
14593 *** really care for shared libraries, you may want to modify your PATH
14594 *** so that a non-GNU linker is found, and then restart.
14595
14596 EOF
14597 fi
14598 ;;
14599
14600 amigaos*)
14601 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)'
14602 hardcode_libdir_flag_spec_F77='-L$libdir'
14603 hardcode_minus_L_F77=yes
14604
14605 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
14606 # that the semantics of dynamic libraries on AmigaOS, at least up
14607 # to version 4, is to share data among multiple programs linked
14608 # with the same dynamic library. Since this doesn't match the
14609 # behavior of shared libraries on other platforms, we can't use
14610 # them.
14611 ld_shlibs_F77=no
14612 ;;
14613
14614 beos*)
14615 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14616 allow_undefined_flag_F77=unsupported
14617 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
14618 # support --undefined. This deserves some investigation. FIXME
14619 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14620 else
14621 ld_shlibs_F77=no
14622 fi
14623 ;;
14624
14625 cygwin* | mingw* | pw32*)
14626 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14627 # as there is no search path for DLLs.
14628 hardcode_libdir_flag_spec_F77='-L$libdir'
14629 allow_undefined_flag_F77=unsupported
14630 always_export_symbols_F77=no
14631 enable_shared_with_static_runtimes_F77=yes
14632 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14633
14634 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14635 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14636 # If the export-symbols file already is a .def file (1st line
14637 # is EXPORTS), use it as is; otherwise, prepend...
14638 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14639 cp $export_symbols $output_objdir/$soname.def;
14640 else
14641 echo EXPORTS > $output_objdir/$soname.def;
14642 cat $export_symbols >> $output_objdir/$soname.def;
14643 fi~
14644 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14645 else
14646 ld_shlibs_F77=no
14647 fi
14648 ;;
14649
14650 interix3*)
14651 hardcode_direct_F77=no
14652 hardcode_shlibpath_var_F77=no
14653 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14654 export_dynamic_flag_spec_F77='${wl}-E'
14655 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14656 # Instead, shared libraries are loaded at an image base (0x10000000 by
14657 # default) and relocated if they conflict, which is a slow very memory
14658 # consuming and fragmenting process. To avoid this, we pick a random,
14659 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14660 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14661 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'
14662 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'
14663 ;;
14664
14665 linux* | k*bsd*-gnu)
14666 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14667 tmp_addflag=
14668 case $cc_basename,$host_cpu in
14669 pgcc*) # Portland Group C compiler
14670 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'
14671 tmp_addflag=' $pic_flag'
14672 ;;
14673 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14674 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'
14675 tmp_addflag=' $pic_flag -Mnomain' ;;
14676 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14677 tmp_addflag=' -i_dynamic' ;;
14678 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14679 tmp_addflag=' -i_dynamic -nofor_main' ;;
14680 ifc* | ifort*) # Intel Fortran compiler
14681 tmp_addflag=' -nofor_main' ;;
14682 esac
14683 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14684
14685 if test $supports_anon_versioning = yes; then
14686 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14687 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14688 $echo "local: *; };" >> $output_objdir/$libname.ver~
14689 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14690 fi
14691 link_all_deplibs_F77=no
14692 else
14693 ld_shlibs_F77=no
14694 fi
14695 ;;
14696
14697 netbsd* | netbsdelf*-gnu)
14698 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14699 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14700 wlarc=
14701 else
14702 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14703 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14704 fi
14705 ;;
14706
14707 solaris*)
14708 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14709 ld_shlibs_F77=no
14710 cat <<EOF 1>&2
14711
14712 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14713 *** create shared libraries on Solaris systems. Therefore, libtool
14714 *** is disabling shared libraries support. We urge you to upgrade GNU
14715 *** binutils to release 2.9.1 or newer. Another option is to modify
14716 *** your PATH or compiler configuration so that the native linker is
14717 *** used, and then restart.
14718
14719 EOF
14720 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
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 else
14724 ld_shlibs_F77=no
14725 fi
14726 ;;
14727
14728 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14729 case `$LD -v 2>&1` in
14730 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14731 ld_shlibs_F77=no
14732 cat <<_LT_EOF 1>&2
14733
14734 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14735 *** reliably create shared libraries on SCO systems. Therefore, libtool
14736 *** is disabling shared libraries support. We urge you to upgrade GNU
14737 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14738 *** your PATH or compiler configuration so that the native linker is
14739 *** used, and then restart.
14740
14741 _LT_EOF
14742 ;;
14743 *)
14744 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14745 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14746 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14747 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14748 else
14749 ld_shlibs_F77=no
14750 fi
14751 ;;
14752 esac
14753 ;;
14754
14755 sunos4*)
14756 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14757 wlarc=
14758 hardcode_direct_F77=yes
14759 hardcode_shlibpath_var_F77=no
14760 ;;
14761
14762 *)
14763 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14764 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14765 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14766 else
14767 ld_shlibs_F77=no
14768 fi
14769 ;;
14770 esac
14771
14772 if test "$ld_shlibs_F77" = no; then
14773 runpath_var=
14774 hardcode_libdir_flag_spec_F77=
14775 export_dynamic_flag_spec_F77=
14776 whole_archive_flag_spec_F77=
14777 fi
14778 else
14779 # PORTME fill in a description of your system's linker (not GNU ld)
14780 case $host_os in
14781 aix3*)
14782 allow_undefined_flag_F77=unsupported
14783 always_export_symbols_F77=yes
14784 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'
14785 # Note: this linker hardcodes the directories in LIBPATH if there
14786 # are no directories specified by -L.
14787 hardcode_minus_L_F77=yes
14788 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14789 # Neither direct hardcoding nor static linking is supported with a
14790 # broken collect2.
14791 hardcode_direct_F77=unsupported
14792 fi
14793 ;;
14794
14795 aix4* | aix5*)
14796 if test "$host_cpu" = ia64; then
14797 # On IA64, the linker does run time linking by default, so we don't
14798 # have to do anything special.
14799 aix_use_runtimelinking=no
14800 exp_sym_flag='-Bexport'
14801 no_entry_flag=""
14802 else
14803 # If we're using GNU nm, then we don't want the "-C" option.
14804 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14805 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14806 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'
14807 else
14808 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'
14809 fi
14810 aix_use_runtimelinking=no
14811
14812 # Test if we are trying to use run time linking or normal
14813 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14814 # need to do runtime linking.
14815 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14816 for ld_flag in $LDFLAGS; do
14817 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14818 aix_use_runtimelinking=yes
14819 break
14820 fi
14821 done
14822 ;;
14823 esac
14824
14825 exp_sym_flag='-bexport'
14826 no_entry_flag='-bnoentry'
14827 fi
14828
14829 # When large executables or shared objects are built, AIX ld can
14830 # have problems creating the table of contents. If linking a library
14831 # or program results in "error TOC overflow" add -mminimal-toc to
14832 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14833 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14834
14835 archive_cmds_F77=''
14836 hardcode_direct_F77=yes
14837 hardcode_libdir_separator_F77=':'
14838 link_all_deplibs_F77=yes
14839
14840 if test "$GCC" = yes; then
14841 case $host_os in aix4.[012]|aix4.[012].*)
14842 # We only want to do this on AIX 4.2 and lower, the check
14843 # below for broken collect2 doesn't work under 4.3+
14844 collect2name=`${CC} -print-prog-name=collect2`
14845 if test -f "$collect2name" && \
14846 strings "$collect2name" | grep resolve_lib_name >/dev/null
14847 then
14848 # We have reworked collect2
14849 hardcode_direct_F77=yes
14850 else
14851 # We have old collect2
14852 hardcode_direct_F77=unsupported
14853 # It fails to find uninstalled libraries when the uninstalled
14854 # path is not listed in the libpath. Setting hardcode_minus_L
14855 # to unsupported forces relinking
14856 hardcode_minus_L_F77=yes
14857 hardcode_libdir_flag_spec_F77='-L$libdir'
14858 hardcode_libdir_separator_F77=
14859 fi
14860 ;;
14861 esac
14862 shared_flag='-shared'
14863 if test "$aix_use_runtimelinking" = yes; then
14864 shared_flag="$shared_flag "'${wl}-G'
14865 fi
14866 else
14867 # not using gcc
14868 if test "$host_cpu" = ia64; then
14869 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14870 # chokes on -Wl,-G. The following line is correct:
14871 shared_flag='-G'
14872 else
14873 if test "$aix_use_runtimelinking" = yes; then
14874 shared_flag='${wl}-G'
14875 else
14876 shared_flag='${wl}-bM:SRE'
14877 fi
14878 fi
14879 fi
14880
14881 # It seems that -bexpall does not export symbols beginning with
14882 # underscore (_), so it is better to generate a list of symbols to export.
14883 always_export_symbols_F77=yes
14884 if test "$aix_use_runtimelinking" = yes; then
14885 # Warning - without using the other runtime loading flags (-brtl),
14886 # -berok will link without error, but may produce a broken library.
14887 allow_undefined_flag_F77='-berok'
14888 # Determine the default libpath from the value encoded in an empty executable.
14889 cat >conftest.$ac_ext <<_ACEOF
14890 program main
14891
14892 end
14893 _ACEOF
14894 rm -f conftest.$ac_objext conftest$ac_exeext
14895 if { (ac_try="$ac_link"
14896 case "(($ac_try" in
14897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14898 *) ac_try_echo=$ac_try;;
14899 esac
14900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14901 (eval "$ac_link") 2>conftest.er1
14902 ac_status=$?
14903 grep -v '^ *+' conftest.er1 >conftest.err
14904 rm -f conftest.er1
14905 cat conftest.err >&5
14906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14907 (exit $ac_status); } &&
14908 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14909 { (case "(($ac_try" in
14910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14911 *) ac_try_echo=$ac_try;;
14912 esac
14913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14914 (eval "$ac_try") 2>&5
14915 ac_status=$?
14916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14917 (exit $ac_status); }; } &&
14918 { ac_try='test -s conftest$ac_exeext'
14919 { (case "(($ac_try" in
14920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14921 *) ac_try_echo=$ac_try;;
14922 esac
14923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14924 (eval "$ac_try") 2>&5
14925 ac_status=$?
14926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14927 (exit $ac_status); }; }; then
14928
14929 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14930 }'`
14931 # Check for a 64-bit object if we didn't find anything.
14932 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; }
14933 }'`; fi
14934 else
14935 echo "$as_me: failed program was:" >&5
14936 sed 's/^/| /' conftest.$ac_ext >&5
14937
14938
14939 fi
14940
14941 rm -f core conftest.err conftest.$ac_objext \
14942 conftest$ac_exeext conftest.$ac_ext
14943 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14944
14945 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14946 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"
14947 else
14948 if test "$host_cpu" = ia64; then
14949 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14950 allow_undefined_flag_F77="-z nodefs"
14951 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"
14952 else
14953 # Determine the default libpath from the value encoded in an empty executable.
14954 cat >conftest.$ac_ext <<_ACEOF
14955 program main
14956
14957 end
14958 _ACEOF
14959 rm -f conftest.$ac_objext conftest$ac_exeext
14960 if { (ac_try="$ac_link"
14961 case "(($ac_try" in
14962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14963 *) ac_try_echo=$ac_try;;
14964 esac
14965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14966 (eval "$ac_link") 2>conftest.er1
14967 ac_status=$?
14968 grep -v '^ *+' conftest.er1 >conftest.err
14969 rm -f conftest.er1
14970 cat conftest.err >&5
14971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14972 (exit $ac_status); } &&
14973 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14974 { (case "(($ac_try" in
14975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14976 *) ac_try_echo=$ac_try;;
14977 esac
14978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14979 (eval "$ac_try") 2>&5
14980 ac_status=$?
14981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14982 (exit $ac_status); }; } &&
14983 { ac_try='test -s conftest$ac_exeext'
14984 { (case "(($ac_try" in
14985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14986 *) ac_try_echo=$ac_try;;
14987 esac
14988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14989 (eval "$ac_try") 2>&5
14990 ac_status=$?
14991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14992 (exit $ac_status); }; }; then
14993
14994 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14995 }'`
14996 # Check for a 64-bit object if we didn't find anything.
14997 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; }
14998 }'`; fi
14999 else
15000 echo "$as_me: failed program was:" >&5
15001 sed 's/^/| /' conftest.$ac_ext >&5
15002
15003
15004 fi
15005
15006 rm -f core conftest.err conftest.$ac_objext \
15007 conftest$ac_exeext conftest.$ac_ext
15008 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15009
15010 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15011 # Warning - without using the other run time loading flags,
15012 # -berok will link without error, but may produce a broken library.
15013 no_undefined_flag_F77=' ${wl}-bernotok'
15014 allow_undefined_flag_F77=' ${wl}-berok'
15015 # Exported symbols can be pulled into shared objects from archives
15016 whole_archive_flag_spec_F77='$convenience'
15017 archive_cmds_need_lc_F77=yes
15018 # This is similar to how AIX traditionally builds its shared libraries.
15019 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'
15020 fi
15021 fi
15022 ;;
15023
15024 amigaos*)
15025 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)'
15026 hardcode_libdir_flag_spec_F77='-L$libdir'
15027 hardcode_minus_L_F77=yes
15028 # see comment about different semantics on the GNU ld section
15029 ld_shlibs_F77=no
15030 ;;
15031
15032 bsdi[45]*)
15033 export_dynamic_flag_spec_F77=-rdynamic
15034 ;;
15035
15036 cygwin* | mingw* | pw32*)
15037 # When not using gcc, we currently assume that we are using
15038 # Microsoft Visual C++.
15039 # hardcode_libdir_flag_spec is actually meaningless, as there is
15040 # no search path for DLLs.
15041 hardcode_libdir_flag_spec_F77=' '
15042 allow_undefined_flag_F77=unsupported
15043 # Tell ltmain to make .lib files, not .a files.
15044 libext=lib
15045 # Tell ltmain to make .dll files, not .so files.
15046 shrext_cmds=".dll"
15047 # FIXME: Setting linknames here is a bad hack.
15048 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15049 # The linker will automatically build a .lib file if we build a DLL.
15050 old_archive_From_new_cmds_F77='true'
15051 # FIXME: Should let the user specify the lib program.
15052 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15053 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15054 enable_shared_with_static_runtimes_F77=yes
15055 ;;
15056
15057 darwin* | rhapsody*)
15058 case $host_os in
15059 rhapsody* | darwin1.[012])
15060 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15061 ;;
15062 *) # Darwin 1.3 on
15063 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15064 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15065 else
15066 case ${MACOSX_DEPLOYMENT_TARGET} in
15067 10.[012])
15068 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15069 ;;
15070 10.*)
15071 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15072 ;;
15073 esac
15074 fi
15075 ;;
15076 esac
15077 archive_cmds_need_lc_F77=no
15078 hardcode_direct_F77=no
15079 hardcode_automatic_F77=yes
15080 hardcode_shlibpath_var_F77=unsupported
15081 whole_archive_flag_spec_F77=''
15082 link_all_deplibs_F77=yes
15083 if test "$GCC" = yes ; then
15084 output_verbose_link_cmd='echo'
15085 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15086 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15087 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15088 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}'
15089 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}'
15090 else
15091 case $cc_basename in
15092 xlc*)
15093 output_verbose_link_cmd='echo'
15094 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15095 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15096 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15097 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}'
15098 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}'
15099 ;;
15100 *)
15101 ld_shlibs_F77=no
15102 ;;
15103 esac
15104 fi
15105 ;;
15106
15107 dgux*)
15108 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15109 hardcode_libdir_flag_spec_F77='-L$libdir'
15110 hardcode_shlibpath_var_F77=no
15111 ;;
15112
15113 freebsd1*)
15114 ld_shlibs_F77=no
15115 ;;
15116
15117 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15118 # support. Future versions do this automatically, but an explicit c++rt0.o
15119 # does not break anything, and helps significantly (at the cost of a little
15120 # extra space).
15121 freebsd2.2*)
15122 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15123 hardcode_libdir_flag_spec_F77='-R$libdir'
15124 hardcode_direct_F77=yes
15125 hardcode_shlibpath_var_F77=no
15126 ;;
15127
15128 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15129 freebsd2*)
15130 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15131 hardcode_direct_F77=yes
15132 hardcode_minus_L_F77=yes
15133 hardcode_shlibpath_var_F77=no
15134 ;;
15135
15136 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15137 freebsd* | dragonfly*)
15138 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15139 hardcode_libdir_flag_spec_F77='-R$libdir'
15140 hardcode_direct_F77=yes
15141 hardcode_shlibpath_var_F77=no
15142 ;;
15143
15144 hpux9*)
15145 if test "$GCC" = yes; then
15146 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'
15147 else
15148 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'
15149 fi
15150 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15151 hardcode_libdir_separator_F77=:
15152 hardcode_direct_F77=yes
15153
15154 # hardcode_minus_L: Not really in the search PATH,
15155 # but as the default location of the library.
15156 hardcode_minus_L_F77=yes
15157 export_dynamic_flag_spec_F77='${wl}-E'
15158 ;;
15159
15160 hpux10*)
15161 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15162 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15163 else
15164 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15165 fi
15166 if test "$with_gnu_ld" = no; then
15167 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15168 hardcode_libdir_separator_F77=:
15169
15170 hardcode_direct_F77=yes
15171 export_dynamic_flag_spec_F77='${wl}-E'
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 fi
15177 ;;
15178
15179 hpux11*)
15180 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15181 case $host_cpu in
15182 hppa*64*)
15183 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15184 ;;
15185 ia64*)
15186 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15187 ;;
15188 *)
15189 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15190 ;;
15191 esac
15192 else
15193 case $host_cpu in
15194 hppa*64*)
15195 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15196 ;;
15197 ia64*)
15198 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15199 ;;
15200 *)
15201 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15202 ;;
15203 esac
15204 fi
15205 if test "$with_gnu_ld" = no; then
15206 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15207 hardcode_libdir_separator_F77=:
15208
15209 case $host_cpu in
15210 hppa*64*|ia64*)
15211 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15212 hardcode_direct_F77=no
15213 hardcode_shlibpath_var_F77=no
15214 ;;
15215 *)
15216 hardcode_direct_F77=yes
15217 export_dynamic_flag_spec_F77='${wl}-E'
15218
15219 # hardcode_minus_L: Not really in the search PATH,
15220 # but as the default location of the library.
15221 hardcode_minus_L_F77=yes
15222 ;;
15223 esac
15224 fi
15225 ;;
15226
15227 irix5* | irix6* | nonstopux*)
15228 if test "$GCC" = yes; then
15229 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'
15230 else
15231 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'
15232 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15233 fi
15234 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15235 hardcode_libdir_separator_F77=:
15236 link_all_deplibs_F77=yes
15237 ;;
15238
15239 netbsd* | netbsdelf*-gnu)
15240 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15241 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15242 else
15243 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15244 fi
15245 hardcode_libdir_flag_spec_F77='-R$libdir'
15246 hardcode_direct_F77=yes
15247 hardcode_shlibpath_var_F77=no
15248 ;;
15249
15250 newsos6)
15251 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15252 hardcode_direct_F77=yes
15253 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15254 hardcode_libdir_separator_F77=:
15255 hardcode_shlibpath_var_F77=no
15256 ;;
15257
15258 openbsd*)
15259 hardcode_direct_F77=yes
15260 hardcode_shlibpath_var_F77=no
15261 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15262 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15263 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15264 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15265 export_dynamic_flag_spec_F77='${wl}-E'
15266 else
15267 case $host_os in
15268 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15269 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15270 hardcode_libdir_flag_spec_F77='-R$libdir'
15271 ;;
15272 *)
15273 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15274 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15275 ;;
15276 esac
15277 fi
15278 ;;
15279
15280 os2*)
15281 hardcode_libdir_flag_spec_F77='-L$libdir'
15282 hardcode_minus_L_F77=yes
15283 allow_undefined_flag_F77=unsupported
15284 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'
15285 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15286 ;;
15287
15288 osf3*)
15289 if test "$GCC" = yes; then
15290 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15291 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'
15292 else
15293 allow_undefined_flag_F77=' -expect_unresolved \*'
15294 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'
15295 fi
15296 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15297 hardcode_libdir_separator_F77=:
15298 ;;
15299
15300 osf4* | osf5*) # as osf3* with the addition of -msym flag
15301 if test "$GCC" = yes; then
15302 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15303 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'
15304 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15305 else
15306 allow_undefined_flag_F77=' -expect_unresolved \*'
15307 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'
15308 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~
15309 $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'
15310
15311 # Both c and cxx compiler support -rpath directly
15312 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15313 fi
15314 hardcode_libdir_separator_F77=:
15315 ;;
15316
15317 solaris*)
15318 no_undefined_flag_F77=' -z text'
15319 if test "$GCC" = yes; then
15320 wlarc='${wl}'
15321 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15322 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15323 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15324 else
15325 wlarc=''
15326 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15327 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15328 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15329 fi
15330 hardcode_libdir_flag_spec_F77='-R$libdir'
15331 hardcode_shlibpath_var_F77=no
15332 case $host_os in
15333 solaris2.[0-5] | solaris2.[0-5].*) ;;
15334 *)
15335 # The compiler driver will combine linker options so we
15336 # cannot just pass the convience library names through
15337 # without $wl, iff we do not link with $LD.
15338 # Luckily, gcc supports the same syntax we need for Sun Studio.
15339 # Supported since Solaris 2.6 (maybe 2.5.1?)
15340 case $wlarc in
15341 '')
15342 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15343 *)
15344 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' ;;
15345 esac ;;
15346 esac
15347 link_all_deplibs_F77=yes
15348 ;;
15349
15350 sunos4*)
15351 if test "x$host_vendor" = xsequent; then
15352 # Use $CC to link under sequent, because it throws in some extra .o
15353 # files that make .init and .fini sections work.
15354 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15355 else
15356 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15357 fi
15358 hardcode_libdir_flag_spec_F77='-L$libdir'
15359 hardcode_direct_F77=yes
15360 hardcode_minus_L_F77=yes
15361 hardcode_shlibpath_var_F77=no
15362 ;;
15363
15364 sysv4)
15365 case $host_vendor in
15366 sni)
15367 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15368 hardcode_direct_F77=yes # is this really true???
15369 ;;
15370 siemens)
15371 ## LD is ld it makes a PLAMLIB
15372 ## CC just makes a GrossModule.
15373 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15374 reload_cmds_F77='$CC -r -o $output$reload_objs'
15375 hardcode_direct_F77=no
15376 ;;
15377 motorola)
15378 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15379 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15380 ;;
15381 esac
15382 runpath_var='LD_RUN_PATH'
15383 hardcode_shlibpath_var_F77=no
15384 ;;
15385
15386 sysv4.3*)
15387 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15388 hardcode_shlibpath_var_F77=no
15389 export_dynamic_flag_spec_F77='-Bexport'
15390 ;;
15391
15392 sysv4*MP*)
15393 if test -d /usr/nec; then
15394 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15395 hardcode_shlibpath_var_F77=no
15396 runpath_var=LD_RUN_PATH
15397 hardcode_runpath_var=yes
15398 ld_shlibs_F77=yes
15399 fi
15400 ;;
15401
15402 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15403 no_undefined_flag_F77='${wl}-z,text'
15404 archive_cmds_need_lc_F77=no
15405 hardcode_shlibpath_var_F77=no
15406 runpath_var='LD_RUN_PATH'
15407
15408 if test "$GCC" = yes; then
15409 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15410 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15411 else
15412 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15413 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15414 fi
15415 ;;
15416
15417 sysv5* | sco3.2v5* | sco5v6*)
15418 # Note: We can NOT use -z defs as we might desire, because we do not
15419 # link with -lc, and that would cause any symbols used from libc to
15420 # always be unresolved, which means just about no library would
15421 # ever link correctly. If we're not using GNU ld we use -z text
15422 # though, which does catch some bad symbols but isn't as heavy-handed
15423 # as -z defs.
15424 no_undefined_flag_F77='${wl}-z,text'
15425 allow_undefined_flag_F77='${wl}-z,nodefs'
15426 archive_cmds_need_lc_F77=no
15427 hardcode_shlibpath_var_F77=no
15428 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15429 hardcode_libdir_separator_F77=':'
15430 link_all_deplibs_F77=yes
15431 export_dynamic_flag_spec_F77='${wl}-Bexport'
15432 runpath_var='LD_RUN_PATH'
15433
15434 if test "$GCC" = yes; then
15435 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15436 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15437 else
15438 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15439 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15440 fi
15441 ;;
15442
15443 uts4*)
15444 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15445 hardcode_libdir_flag_spec_F77='-L$libdir'
15446 hardcode_shlibpath_var_F77=no
15447 ;;
15448
15449 *)
15450 ld_shlibs_F77=no
15451 ;;
15452 esac
15453 fi
15454
15455 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15456 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15457 test "$ld_shlibs_F77" = no && can_build_shared=no
15458
15459 #
15460 # Do we need to explicitly link libc?
15461 #
15462 case "x$archive_cmds_need_lc_F77" in
15463 x|xyes)
15464 # Assume -lc should be added
15465 archive_cmds_need_lc_F77=yes
15466
15467 if test "$enable_shared" = yes && test "$GCC" = yes; then
15468 case $archive_cmds_F77 in
15469 *'~'*)
15470 # FIXME: we may have to deal with multi-command sequences.
15471 ;;
15472 '$CC '*)
15473 # Test whether the compiler implicitly links with -lc since on some
15474 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15475 # to ld, don't add -lc before -lgcc.
15476 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15477 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15478 $rm conftest*
15479 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15480
15481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15482 (eval $ac_compile) 2>&5
15483 ac_status=$?
15484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15485 (exit $ac_status); } 2>conftest.err; then
15486 soname=conftest
15487 lib=conftest
15488 libobjs=conftest.$ac_objext
15489 deplibs=
15490 wl=$lt_prog_compiler_wl_F77
15491 pic_flag=$lt_prog_compiler_pic_F77
15492 compiler_flags=-v
15493 linker_flags=-v
15494 verstring=
15495 output_objdir=.
15496 libname=conftest
15497 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15498 allow_undefined_flag_F77=
15499 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15500 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15501 ac_status=$?
15502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503 (exit $ac_status); }
15504 then
15505 archive_cmds_need_lc_F77=no
15506 else
15507 archive_cmds_need_lc_F77=yes
15508 fi
15509 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15510 else
15511 cat conftest.err 1>&5
15512 fi
15513 $rm conftest*
15514 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15515 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15516 ;;
15517 esac
15518 fi
15519 ;;
15520 esac
15521
15522 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15523 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15524 library_names_spec=
15525 libname_spec='lib$name'
15526 soname_spec=
15527 shrext_cmds=".so"
15528 postinstall_cmds=
15529 postuninstall_cmds=
15530 finish_cmds=
15531 finish_eval=
15532 shlibpath_var=
15533 shlibpath_overrides_runpath=unknown
15534 version_type=none
15535 dynamic_linker="$host_os ld.so"
15536 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15537 if test "$GCC" = yes; then
15538 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15539 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15540 # if the path contains ";" then we assume it to be the separator
15541 # otherwise default to the standard path separator (i.e. ":") - it is
15542 # assumed that no part of a normal pathname contains ";" but that should
15543 # okay in the real world where ";" in dirpaths is itself problematic.
15544 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15545 else
15546 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15547 fi
15548 else
15549 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15550 fi
15551 need_lib_prefix=unknown
15552 hardcode_into_libs=no
15553
15554 # when you set need_version to no, make sure it does not cause -set_version
15555 # flags to be left without arguments
15556 need_version=unknown
15557
15558 case $host_os in
15559 aix3*)
15560 version_type=linux
15561 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15562 shlibpath_var=LIBPATH
15563
15564 # AIX 3 has no versioning support, so we append a major version to the name.
15565 soname_spec='${libname}${release}${shared_ext}$major'
15566 ;;
15567
15568 aix4* | aix5*)
15569 version_type=linux
15570 need_lib_prefix=no
15571 need_version=no
15572 hardcode_into_libs=yes
15573 if test "$host_cpu" = ia64; then
15574 # AIX 5 supports IA64
15575 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15576 shlibpath_var=LD_LIBRARY_PATH
15577 else
15578 # With GCC up to 2.95.x, collect2 would create an import file
15579 # for dependence libraries. The import file would start with
15580 # the line `#! .'. This would cause the generated library to
15581 # depend on `.', always an invalid library. This was fixed in
15582 # development snapshots of GCC prior to 3.0.
15583 case $host_os in
15584 aix4 | aix4.[01] | aix4.[01].*)
15585 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15586 echo ' yes '
15587 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15588 :
15589 else
15590 can_build_shared=no
15591 fi
15592 ;;
15593 esac
15594 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15595 # soname into executable. Probably we can add versioning support to
15596 # collect2, so additional links can be useful in future.
15597 if test "$aix_use_runtimelinking" = yes; then
15598 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15599 # instead of lib<name>.a to let people know that these are not
15600 # typical AIX shared libraries.
15601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15602 else
15603 # We preserve .a as extension for shared libraries through AIX4.2
15604 # and later when we are not doing run time linking.
15605 library_names_spec='${libname}${release}.a $libname.a'
15606 soname_spec='${libname}${release}${shared_ext}$major'
15607 fi
15608 shlibpath_var=LIBPATH
15609 fi
15610 ;;
15611
15612 amigaos*)
15613 library_names_spec='$libname.ixlibrary $libname.a'
15614 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15615 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'
15616 ;;
15617
15618 beos*)
15619 library_names_spec='${libname}${shared_ext}'
15620 dynamic_linker="$host_os ld.so"
15621 shlibpath_var=LIBRARY_PATH
15622 ;;
15623
15624 bsdi[45]*)
15625 version_type=linux
15626 need_version=no
15627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15628 soname_spec='${libname}${release}${shared_ext}$major'
15629 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15630 shlibpath_var=LD_LIBRARY_PATH
15631 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15632 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15633 # the default ld.so.conf also contains /usr/contrib/lib and
15634 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15635 # libtool to hard-code these into programs
15636 ;;
15637
15638 cygwin* | mingw* | pw32*)
15639 version_type=windows
15640 shrext_cmds=".dll"
15641 need_version=no
15642 need_lib_prefix=no
15643
15644 case $GCC,$host_os in
15645 yes,cygwin* | yes,mingw* | yes,pw32*)
15646 library_names_spec='$libname.dll.a'
15647 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15648 postinstall_cmds='base_file=`basename \${file}`~
15649 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15650 dldir=$destdir/`dirname \$dlpath`~
15651 test -d \$dldir || mkdir -p \$dldir~
15652 $install_prog $dir/$dlname \$dldir/$dlname~
15653 chmod a+x \$dldir/$dlname'
15654 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15655 dlpath=$dir/\$dldll~
15656 $rm \$dlpath'
15657 shlibpath_overrides_runpath=yes
15658
15659 case $host_os in
15660 cygwin*)
15661 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15662 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15663 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15664 ;;
15665 mingw*)
15666 # MinGW DLLs use traditional 'lib' prefix
15667 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15668 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15669 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15670 # It is most probably a Windows format PATH printed by
15671 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15672 # path with ; separators, and with drive letters. We can handle the
15673 # drive letters (cygwin fileutils understands them), so leave them,
15674 # especially as we might pass files found there to a mingw objdump,
15675 # which wouldn't understand a cygwinified path. Ahh.
15676 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15677 else
15678 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15679 fi
15680 ;;
15681 pw32*)
15682 # pw32 DLLs use 'pw' prefix rather than 'lib'
15683 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15684 ;;
15685 esac
15686 ;;
15687
15688 *)
15689 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15690 ;;
15691 esac
15692 dynamic_linker='Win32 ld.exe'
15693 # FIXME: first we should search . and the directory the executable is in
15694 shlibpath_var=PATH
15695 ;;
15696
15697 darwin* | rhapsody*)
15698 dynamic_linker="$host_os dyld"
15699 version_type=darwin
15700 need_lib_prefix=no
15701 need_version=no
15702 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15703 soname_spec='${libname}${release}${major}$shared_ext'
15704 shlibpath_overrides_runpath=yes
15705 shlibpath_var=DYLD_LIBRARY_PATH
15706 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15707 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15708 if test "$GCC" = yes; then
15709 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"`
15710 else
15711 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15712 fi
15713 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15714 ;;
15715
15716 dgux*)
15717 version_type=linux
15718 need_lib_prefix=no
15719 need_version=no
15720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15721 soname_spec='${libname}${release}${shared_ext}$major'
15722 shlibpath_var=LD_LIBRARY_PATH
15723 ;;
15724
15725 freebsd1*)
15726 dynamic_linker=no
15727 ;;
15728
15729 freebsd* | dragonfly*)
15730 # DragonFly does not have aout. When/if they implement a new
15731 # versioning mechanism, adjust this.
15732 if test -x /usr/bin/objformat; then
15733 objformat=`/usr/bin/objformat`
15734 else
15735 case $host_os in
15736 freebsd[123]*) objformat=aout ;;
15737 *) objformat=elf ;;
15738 esac
15739 fi
15740 version_type=freebsd-$objformat
15741 case $version_type in
15742 freebsd-elf*)
15743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15744 need_version=no
15745 need_lib_prefix=no
15746 ;;
15747 freebsd-*)
15748 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15749 need_version=yes
15750 ;;
15751 esac
15752 shlibpath_var=LD_LIBRARY_PATH
15753 case $host_os in
15754 freebsd2*)
15755 shlibpath_overrides_runpath=yes
15756 ;;
15757 freebsd3.[01]* | freebsdelf3.[01]*)
15758 shlibpath_overrides_runpath=yes
15759 hardcode_into_libs=yes
15760 ;;
15761 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15762 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15763 shlibpath_overrides_runpath=no
15764 hardcode_into_libs=yes
15765 ;;
15766 freebsd*) # from 4.6 on
15767 shlibpath_overrides_runpath=yes
15768 hardcode_into_libs=yes
15769 ;;
15770 esac
15771 ;;
15772
15773 gnu*)
15774 version_type=linux
15775 need_lib_prefix=no
15776 need_version=no
15777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15778 soname_spec='${libname}${release}${shared_ext}$major'
15779 shlibpath_var=LD_LIBRARY_PATH
15780 hardcode_into_libs=yes
15781 ;;
15782
15783 hpux9* | hpux10* | hpux11*)
15784 # Give a soname corresponding to the major version so that dld.sl refuses to
15785 # link against other versions.
15786 version_type=sunos
15787 need_lib_prefix=no
15788 need_version=no
15789 case $host_cpu in
15790 ia64*)
15791 shrext_cmds='.so'
15792 hardcode_into_libs=yes
15793 dynamic_linker="$host_os dld.so"
15794 shlibpath_var=LD_LIBRARY_PATH
15795 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 if test "X$HPUX_IA64_MODE" = X32; then
15799 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15800 else
15801 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15802 fi
15803 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15804 ;;
15805 hppa*64*)
15806 shrext_cmds='.sl'
15807 hardcode_into_libs=yes
15808 dynamic_linker="$host_os dld.sl"
15809 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15810 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15812 soname_spec='${libname}${release}${shared_ext}$major'
15813 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15814 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15815 ;;
15816 *)
15817 shrext_cmds='.sl'
15818 dynamic_linker="$host_os dld.sl"
15819 shlibpath_var=SHLIB_PATH
15820 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15822 soname_spec='${libname}${release}${shared_ext}$major'
15823 ;;
15824 esac
15825 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15826 postinstall_cmds='chmod 555 $lib'
15827 ;;
15828
15829 interix3*)
15830 version_type=linux
15831 need_lib_prefix=no
15832 need_version=no
15833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15834 soname_spec='${libname}${release}${shared_ext}$major'
15835 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15836 shlibpath_var=LD_LIBRARY_PATH
15837 shlibpath_overrides_runpath=no
15838 hardcode_into_libs=yes
15839 ;;
15840
15841 irix5* | irix6* | nonstopux*)
15842 case $host_os in
15843 nonstopux*) version_type=nonstopux ;;
15844 *)
15845 if test "$lt_cv_prog_gnu_ld" = yes; then
15846 version_type=linux
15847 else
15848 version_type=irix
15849 fi ;;
15850 esac
15851 need_lib_prefix=no
15852 need_version=no
15853 soname_spec='${libname}${release}${shared_ext}$major'
15854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15855 case $host_os in
15856 irix5* | nonstopux*)
15857 libsuff= shlibsuff=
15858 ;;
15859 *)
15860 case $LD in # libtool.m4 will add one of these switches to LD
15861 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15862 libsuff= shlibsuff= libmagic=32-bit;;
15863 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15864 libsuff=32 shlibsuff=N32 libmagic=N32;;
15865 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15866 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15867 *) libsuff= shlibsuff= libmagic=never-match;;
15868 esac
15869 ;;
15870 esac
15871 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15872 shlibpath_overrides_runpath=no
15873 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15874 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15875 hardcode_into_libs=yes
15876 ;;
15877
15878 # No shared lib support for Linux oldld, aout, or coff.
15879 linux*oldld* | linux*aout* | linux*coff*)
15880 dynamic_linker=no
15881 ;;
15882
15883 # This must be Linux ELF.
15884 linux* | k*bsd*-gnu)
15885 version_type=linux
15886 need_lib_prefix=no
15887 need_version=no
15888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15889 soname_spec='${libname}${release}${shared_ext}$major'
15890 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15891 shlibpath_var=LD_LIBRARY_PATH
15892 shlibpath_overrides_runpath=no
15893 # This implies no fast_install, which is unacceptable.
15894 # Some rework will be needed to allow for fast_install
15895 # before this can be enabled.
15896 hardcode_into_libs=yes
15897
15898 # Append ld.so.conf contents to the search path
15899 if test -f /etc/ld.so.conf; then
15900 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' ' '`
15901 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15902 fi
15903
15904 # We used to test for /lib/ld.so.1 and disable shared libraries on
15905 # powerpc, because MkLinux only supported shared libraries with the
15906 # GNU dynamic linker. Since this was broken with cross compilers,
15907 # most powerpc-linux boxes support dynamic linking these days and
15908 # people can always --disable-shared, the test was removed, and we
15909 # assume the GNU/Linux dynamic linker is in use.
15910 dynamic_linker='GNU/Linux ld.so'
15911 ;;
15912
15913 netbsdelf*-gnu)
15914 version_type=linux
15915 need_lib_prefix=no
15916 need_version=no
15917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15918 soname_spec='${libname}${release}${shared_ext}$major'
15919 shlibpath_var=LD_LIBRARY_PATH
15920 shlibpath_overrides_runpath=no
15921 hardcode_into_libs=yes
15922 dynamic_linker='NetBSD ld.elf_so'
15923 ;;
15924
15925 netbsd*)
15926 version_type=sunos
15927 need_lib_prefix=no
15928 need_version=no
15929 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15931 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15932 dynamic_linker='NetBSD (a.out) ld.so'
15933 else
15934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15935 soname_spec='${libname}${release}${shared_ext}$major'
15936 dynamic_linker='NetBSD ld.elf_so'
15937 fi
15938 shlibpath_var=LD_LIBRARY_PATH
15939 shlibpath_overrides_runpath=yes
15940 hardcode_into_libs=yes
15941 ;;
15942
15943 newsos6)
15944 version_type=linux
15945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15946 shlibpath_var=LD_LIBRARY_PATH
15947 shlibpath_overrides_runpath=yes
15948 ;;
15949
15950 nto-qnx*)
15951 version_type=linux
15952 need_lib_prefix=no
15953 need_version=no
15954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15955 soname_spec='${libname}${release}${shared_ext}$major'
15956 shlibpath_var=LD_LIBRARY_PATH
15957 shlibpath_overrides_runpath=yes
15958 ;;
15959
15960 openbsd*)
15961 version_type=sunos
15962 sys_lib_dlsearch_path_spec="/usr/lib"
15963 need_lib_prefix=no
15964 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15965 case $host_os in
15966 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15967 *) need_version=no ;;
15968 esac
15969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15970 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15971 shlibpath_var=LD_LIBRARY_PATH
15972 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15973 case $host_os in
15974 openbsd2.[89] | openbsd2.[89].*)
15975 shlibpath_overrides_runpath=no
15976 ;;
15977 *)
15978 shlibpath_overrides_runpath=yes
15979 ;;
15980 esac
15981 else
15982 shlibpath_overrides_runpath=yes
15983 fi
15984 ;;
15985
15986 os2*)
15987 libname_spec='$name'
15988 shrext_cmds=".dll"
15989 need_lib_prefix=no
15990 library_names_spec='$libname${shared_ext} $libname.a'
15991 dynamic_linker='OS/2 ld.exe'
15992 shlibpath_var=LIBPATH
15993 ;;
15994
15995 osf3* | osf4* | osf5*)
15996 version_type=osf
15997 need_lib_prefix=no
15998 need_version=no
15999 soname_spec='${libname}${release}${shared_ext}$major'
16000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16001 shlibpath_var=LD_LIBRARY_PATH
16002 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16003 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16004 ;;
16005
16006 solaris*)
16007 version_type=linux
16008 need_lib_prefix=no
16009 need_version=no
16010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16011 soname_spec='${libname}${release}${shared_ext}$major'
16012 shlibpath_var=LD_LIBRARY_PATH
16013 shlibpath_overrides_runpath=yes
16014 hardcode_into_libs=yes
16015 # ldd complains unless libraries are executable
16016 postinstall_cmds='chmod +x $lib'
16017 ;;
16018
16019 sunos4*)
16020 version_type=sunos
16021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16022 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16023 shlibpath_var=LD_LIBRARY_PATH
16024 shlibpath_overrides_runpath=yes
16025 if test "$with_gnu_ld" = yes; then
16026 need_lib_prefix=no
16027 fi
16028 need_version=yes
16029 ;;
16030
16031 sysv4 | sysv4.3*)
16032 version_type=linux
16033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16034 soname_spec='${libname}${release}${shared_ext}$major'
16035 shlibpath_var=LD_LIBRARY_PATH
16036 case $host_vendor in
16037 sni)
16038 shlibpath_overrides_runpath=no
16039 need_lib_prefix=no
16040 export_dynamic_flag_spec='${wl}-Blargedynsym'
16041 runpath_var=LD_RUN_PATH
16042 ;;
16043 siemens)
16044 need_lib_prefix=no
16045 ;;
16046 motorola)
16047 need_lib_prefix=no
16048 need_version=no
16049 shlibpath_overrides_runpath=no
16050 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16051 ;;
16052 esac
16053 ;;
16054
16055 sysv4*MP*)
16056 if test -d /usr/nec ;then
16057 version_type=linux
16058 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16059 soname_spec='$libname${shared_ext}.$major'
16060 shlibpath_var=LD_LIBRARY_PATH
16061 fi
16062 ;;
16063
16064 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16065 version_type=freebsd-elf
16066 need_lib_prefix=no
16067 need_version=no
16068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16069 soname_spec='${libname}${release}${shared_ext}$major'
16070 shlibpath_var=LD_LIBRARY_PATH
16071 hardcode_into_libs=yes
16072 if test "$with_gnu_ld" = yes; then
16073 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16074 shlibpath_overrides_runpath=no
16075 else
16076 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16077 shlibpath_overrides_runpath=yes
16078 case $host_os in
16079 sco3.2v5*)
16080 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16081 ;;
16082 esac
16083 fi
16084 sys_lib_dlsearch_path_spec='/usr/lib'
16085 ;;
16086
16087 uts4*)
16088 version_type=linux
16089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16090 soname_spec='${libname}${release}${shared_ext}$major'
16091 shlibpath_var=LD_LIBRARY_PATH
16092 ;;
16093
16094 *)
16095 dynamic_linker=no
16096 ;;
16097 esac
16098 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16099 echo "${ECHO_T}$dynamic_linker" >&6; }
16100 test "$dynamic_linker" = no && can_build_shared=no
16101
16102 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16103 if test "$GCC" = yes; then
16104 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16105 fi
16106
16107 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16108 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16109 hardcode_action_F77=
16110 if test -n "$hardcode_libdir_flag_spec_F77" || \
16111 test -n "$runpath_var_F77" || \
16112 test "X$hardcode_automatic_F77" = "Xyes" ; then
16113
16114 # We can hardcode non-existant directories.
16115 if test "$hardcode_direct_F77" != no &&
16116 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16117 # have to relink, otherwise we might link with an installed library
16118 # when we should be linking with a yet-to-be-installed one
16119 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16120 test "$hardcode_minus_L_F77" != no; then
16121 # Linking always hardcodes the temporary library directory.
16122 hardcode_action_F77=relink
16123 else
16124 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16125 hardcode_action_F77=immediate
16126 fi
16127 else
16128 # We cannot hardcode anything, or else we can only hardcode existing
16129 # directories.
16130 hardcode_action_F77=unsupported
16131 fi
16132 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16133 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16134
16135 if test "$hardcode_action_F77" = relink; then
16136 # Fast installation is not supported
16137 enable_fast_install=no
16138 elif test "$shlibpath_overrides_runpath" = yes ||
16139 test "$enable_shared" = no; then
16140 # Fast installation is not necessary
16141 enable_fast_install=needless
16142 fi
16143
16144
16145 # The else clause should only fire when bootstrapping the
16146 # libtool distribution, otherwise you forgot to ship ltmain.sh
16147 # with your package, and you will get complaints that there are
16148 # no rules to generate ltmain.sh.
16149 if test -f "$ltmain"; then
16150 # See if we are running on zsh, and set the options which allow our commands through
16151 # without removal of \ escapes.
16152 if test -n "${ZSH_VERSION+set}" ; then
16153 setopt NO_GLOB_SUBST
16154 fi
16155 # Now quote all the things that may contain metacharacters while being
16156 # careful not to overquote the AC_SUBSTed values. We take copies of the
16157 # variables and quote the copies for generation of the libtool script.
16158 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16159 SED SHELL STRIP \
16160 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16161 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16162 deplibs_check_method reload_flag reload_cmds need_locks \
16163 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16164 lt_cv_sys_global_symbol_to_c_name_address \
16165 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16166 old_postinstall_cmds old_postuninstall_cmds \
16167 compiler_F77 \
16168 CC_F77 \
16169 LD_F77 \
16170 lt_prog_compiler_wl_F77 \
16171 lt_prog_compiler_pic_F77 \
16172 lt_prog_compiler_static_F77 \
16173 lt_prog_compiler_no_builtin_flag_F77 \
16174 export_dynamic_flag_spec_F77 \
16175 thread_safe_flag_spec_F77 \
16176 whole_archive_flag_spec_F77 \
16177 enable_shared_with_static_runtimes_F77 \
16178 old_archive_cmds_F77 \
16179 old_archive_from_new_cmds_F77 \
16180 predep_objects_F77 \
16181 postdep_objects_F77 \
16182 predeps_F77 \
16183 postdeps_F77 \
16184 compiler_lib_search_path_F77 \
16185 archive_cmds_F77 \
16186 archive_expsym_cmds_F77 \
16187 postinstall_cmds_F77 \
16188 postuninstall_cmds_F77 \
16189 old_archive_from_expsyms_cmds_F77 \
16190 allow_undefined_flag_F77 \
16191 no_undefined_flag_F77 \
16192 export_symbols_cmds_F77 \
16193 hardcode_libdir_flag_spec_F77 \
16194 hardcode_libdir_flag_spec_ld_F77 \
16195 hardcode_libdir_separator_F77 \
16196 hardcode_automatic_F77 \
16197 module_cmds_F77 \
16198 module_expsym_cmds_F77 \
16199 lt_cv_prog_compiler_c_o_F77 \
16200 exclude_expsyms_F77 \
16201 include_expsyms_F77; do
16202
16203 case $var in
16204 old_archive_cmds_F77 | \
16205 old_archive_from_new_cmds_F77 | \
16206 archive_cmds_F77 | \
16207 archive_expsym_cmds_F77 | \
16208 module_cmds_F77 | \
16209 module_expsym_cmds_F77 | \
16210 old_archive_from_expsyms_cmds_F77 | \
16211 export_symbols_cmds_F77 | \
16212 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16213 postinstall_cmds | postuninstall_cmds | \
16214 old_postinstall_cmds | old_postuninstall_cmds | \
16215 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16216 # Double-quote double-evaled strings.
16217 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16218 ;;
16219 *)
16220 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16221 ;;
16222 esac
16223 done
16224
16225 case $lt_echo in
16226 *'\$0 --fallback-echo"')
16227 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16228 ;;
16229 esac
16230
16231 cfgfile="$ofile"
16232
16233 cat <<__EOF__ >> "$cfgfile"
16234 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16235
16236 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16237
16238 # Shell to use when invoking shell scripts.
16239 SHELL=$lt_SHELL
16240
16241 # Whether or not to build shared libraries.
16242 build_libtool_libs=$enable_shared
16243
16244 # Whether or not to build static libraries.
16245 build_old_libs=$enable_static
16246
16247 # Whether or not to add -lc for building shared libraries.
16248 build_libtool_need_lc=$archive_cmds_need_lc_F77
16249
16250 # Whether or not to disallow shared libs when runtime libs are static
16251 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16252
16253 # Whether or not to optimize for fast installation.
16254 fast_install=$enable_fast_install
16255
16256 # The host system.
16257 host_alias=$host_alias
16258 host=$host
16259 host_os=$host_os
16260
16261 # The build system.
16262 build_alias=$build_alias
16263 build=$build
16264 build_os=$build_os
16265
16266 # An echo program that does not interpret backslashes.
16267 echo=$lt_echo
16268
16269 # The archiver.
16270 AR=$lt_AR
16271 AR_FLAGS=$lt_AR_FLAGS
16272
16273 # A C compiler.
16274 LTCC=$lt_LTCC
16275
16276 # LTCC compiler flags.
16277 LTCFLAGS=$lt_LTCFLAGS
16278
16279 # A language-specific compiler.
16280 CC=$lt_compiler_F77
16281
16282 # Is the compiler the GNU C compiler?
16283 with_gcc=$GCC_F77
16284
16285 # An ERE matcher.
16286 EGREP=$lt_EGREP
16287
16288 # The linker used to build libraries.
16289 LD=$lt_LD_F77
16290
16291 # Whether we need hard or soft links.
16292 LN_S=$lt_LN_S
16293
16294 # A BSD-compatible nm program.
16295 NM=$lt_NM
16296
16297 # A symbol stripping program
16298 STRIP=$lt_STRIP
16299
16300 # Used to examine libraries when file_magic_cmd begins "file"
16301 MAGIC_CMD=$MAGIC_CMD
16302
16303 # Used on cygwin: DLL creation program.
16304 DLLTOOL="$DLLTOOL"
16305
16306 # Used on cygwin: object dumper.
16307 OBJDUMP="$OBJDUMP"
16308
16309 # Used on cygwin: assembler.
16310 AS="$AS"
16311
16312 # The name of the directory that contains temporary libtool files.
16313 objdir=$objdir
16314
16315 # How to create reloadable object files.
16316 reload_flag=$lt_reload_flag
16317 reload_cmds=$lt_reload_cmds
16318
16319 # How to pass a linker flag through the compiler.
16320 wl=$lt_lt_prog_compiler_wl_F77
16321
16322 # Object file suffix (normally "o").
16323 objext="$ac_objext"
16324
16325 # Old archive suffix (normally "a").
16326 libext="$libext"
16327
16328 # Shared library suffix (normally ".so").
16329 shrext_cmds='$shrext_cmds'
16330
16331 # Executable file suffix (normally "").
16332 exeext="$exeext"
16333
16334 # Additional compiler flags for building library objects.
16335 pic_flag=$lt_lt_prog_compiler_pic_F77
16336 pic_mode=$pic_mode
16337
16338 # What is the maximum length of a command?
16339 max_cmd_len=$lt_cv_sys_max_cmd_len
16340
16341 # Does compiler simultaneously support -c and -o options?
16342 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16343
16344 # Must we lock files when doing compilation?
16345 need_locks=$lt_need_locks
16346
16347 # Do we need the lib prefix for modules?
16348 need_lib_prefix=$need_lib_prefix
16349
16350 # Do we need a version for libraries?
16351 need_version=$need_version
16352
16353 # Whether dlopen is supported.
16354 dlopen_support=$enable_dlopen
16355
16356 # Whether dlopen of programs is supported.
16357 dlopen_self=$enable_dlopen_self
16358
16359 # Whether dlopen of statically linked programs is supported.
16360 dlopen_self_static=$enable_dlopen_self_static
16361
16362 # Compiler flag to prevent dynamic linking.
16363 link_static_flag=$lt_lt_prog_compiler_static_F77
16364
16365 # Compiler flag to turn off builtin functions.
16366 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16367
16368 # Compiler flag to allow reflexive dlopens.
16369 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16370
16371 # Compiler flag to generate shared objects directly from archives.
16372 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16373
16374 # Compiler flag to generate thread-safe objects.
16375 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16376
16377 # Library versioning type.
16378 version_type=$version_type
16379
16380 # Format of library name prefix.
16381 libname_spec=$lt_libname_spec
16382
16383 # List of archive names. First name is the real one, the rest are links.
16384 # The last name is the one that the linker finds with -lNAME.
16385 library_names_spec=$lt_library_names_spec
16386
16387 # The coded name of the library, if different from the real name.
16388 soname_spec=$lt_soname_spec
16389
16390 # Commands used to build and install an old-style archive.
16391 RANLIB=$lt_RANLIB
16392 old_archive_cmds=$lt_old_archive_cmds_F77
16393 old_postinstall_cmds=$lt_old_postinstall_cmds
16394 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16395
16396 # Create an old-style archive from a shared archive.
16397 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16398
16399 # Create a temporary old-style archive to link instead of a shared archive.
16400 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16401
16402 # Commands used to build and install a shared archive.
16403 archive_cmds=$lt_archive_cmds_F77
16404 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16405 postinstall_cmds=$lt_postinstall_cmds
16406 postuninstall_cmds=$lt_postuninstall_cmds
16407
16408 # Commands used to build a loadable module (assumed same as above if empty)
16409 module_cmds=$lt_module_cmds_F77
16410 module_expsym_cmds=$lt_module_expsym_cmds_F77
16411
16412 # Commands to strip libraries.
16413 old_striplib=$lt_old_striplib
16414 striplib=$lt_striplib
16415
16416 # Dependencies to place before the objects being linked to create a
16417 # shared library.
16418 predep_objects=$lt_predep_objects_F77
16419
16420 # Dependencies to place after the objects being linked to create a
16421 # shared library.
16422 postdep_objects=$lt_postdep_objects_F77
16423
16424 # Dependencies to place before the objects being linked to create a
16425 # shared library.
16426 predeps=$lt_predeps_F77
16427
16428 # Dependencies to place after the objects being linked to create a
16429 # shared library.
16430 postdeps=$lt_postdeps_F77
16431
16432 # The library search path used internally by the compiler when linking
16433 # a shared library.
16434 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16435
16436 # Method to check whether dependent libraries are shared objects.
16437 deplibs_check_method=$lt_deplibs_check_method
16438
16439 # Command to use when deplibs_check_method == file_magic.
16440 file_magic_cmd=$lt_file_magic_cmd
16441
16442 # Flag that allows shared libraries with undefined symbols to be built.
16443 allow_undefined_flag=$lt_allow_undefined_flag_F77
16444
16445 # Flag that forces no undefined symbols.
16446 no_undefined_flag=$lt_no_undefined_flag_F77
16447
16448 # Commands used to finish a libtool library installation in a directory.
16449 finish_cmds=$lt_finish_cmds
16450
16451 # Same as above, but a single script fragment to be evaled but not shown.
16452 finish_eval=$lt_finish_eval
16453
16454 # Take the output of nm and produce a listing of raw symbols and C names.
16455 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16456
16457 # Transform the output of nm in a proper C declaration
16458 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16459
16460 # Transform the output of nm in a C name address pair
16461 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16462
16463 # This is the shared library runtime path variable.
16464 runpath_var=$runpath_var
16465
16466 # This is the shared library path variable.
16467 shlibpath_var=$shlibpath_var
16468
16469 # Is shlibpath searched before the hard-coded library search path?
16470 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16471
16472 # How to hardcode a shared library path into an executable.
16473 hardcode_action=$hardcode_action_F77
16474
16475 # Whether we should hardcode library paths into libraries.
16476 hardcode_into_libs=$hardcode_into_libs
16477
16478 # Flag to hardcode \$libdir into a binary during linking.
16479 # This must work even if \$libdir does not exist.
16480 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16481
16482 # If ld is used when linking, flag to hardcode \$libdir into
16483 # a binary during linking. This must work even if \$libdir does
16484 # not exist.
16485 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16486
16487 # Whether we need a single -rpath flag with a separated argument.
16488 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16489
16490 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16491 # resulting binary.
16492 hardcode_direct=$hardcode_direct_F77
16493
16494 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16495 # resulting binary.
16496 hardcode_minus_L=$hardcode_minus_L_F77
16497
16498 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16499 # the resulting binary.
16500 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16501
16502 # Set to yes if building a shared library automatically hardcodes DIR into the library
16503 # and all subsequent libraries and executables linked against it.
16504 hardcode_automatic=$hardcode_automatic_F77
16505
16506 # Variables whose values should be saved in libtool wrapper scripts and
16507 # restored at relink time.
16508 variables_saved_for_relink="$variables_saved_for_relink"
16509
16510 # Whether libtool must link a program against all its dependency libraries.
16511 link_all_deplibs=$link_all_deplibs_F77
16512
16513 # Compile-time system search path for libraries
16514 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16515
16516 # Run-time system search path for libraries
16517 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16518
16519 # Fix the shell variable \$srcfile for the compiler.
16520 fix_srcfile_path="$fix_srcfile_path_F77"
16521
16522 # Set to yes if exported symbols are required.
16523 always_export_symbols=$always_export_symbols_F77
16524
16525 # The commands to list exported symbols.
16526 export_symbols_cmds=$lt_export_symbols_cmds_F77
16527
16528 # The commands to extract the exported symbol list from a shared archive.
16529 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16530
16531 # Symbols that should not be listed in the preloaded symbols.
16532 exclude_expsyms=$lt_exclude_expsyms_F77
16533
16534 # Symbols that must always be exported.
16535 include_expsyms=$lt_include_expsyms_F77
16536
16537 # ### END LIBTOOL TAG CONFIG: $tagname
16538
16539 __EOF__
16540
16541
16542 else
16543 # If there is no Makefile yet, we rely on a make rule to execute
16544 # `config.status --recheck' to rerun these tests and create the
16545 # libtool script then.
16546 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16547 if test -f "$ltmain_in"; then
16548 test -f Makefile && make "$ltmain"
16549 fi
16550 fi
16551
16552
16553 ac_ext=c
16554 ac_cpp='$CPP $CPPFLAGS'
16555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16558
16559 CC="$lt_save_CC"
16560
16561 else
16562 tagname=""
16563 fi
16564 ;;
16565
16566 GCJ)
16567 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16568
16569
16570 # Source file extension for Java test sources.
16571 ac_ext=java
16572
16573 # Object file extension for compiled Java test sources.
16574 objext=o
16575 objext_GCJ=$objext
16576
16577 # Code to be used in simple compile tests
16578 lt_simple_compile_test_code="class foo {}\n"
16579
16580 # Code to be used in simple link tests
16581 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16582
16583 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16584
16585 # If no C compiler was specified, use CC.
16586 LTCC=${LTCC-"$CC"}
16587
16588 # If no C compiler flags were specified, use CFLAGS.
16589 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16590
16591 # Allow CC to be a program name with arguments.
16592 compiler=$CC
16593
16594
16595 # save warnings/boilerplate of simple test code
16596 ac_outfile=conftest.$ac_objext
16597 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16598 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16599 _lt_compiler_boilerplate=`cat conftest.err`
16600 $rm conftest*
16601
16602 ac_outfile=conftest.$ac_objext
16603 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16604 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16605 _lt_linker_boilerplate=`cat conftest.err`
16606 $rm conftest*
16607
16608
16609 # Allow CC to be a program name with arguments.
16610 lt_save_CC="$CC"
16611 CC=${GCJ-"gcj"}
16612 compiler=$CC
16613 compiler_GCJ=$CC
16614 for cc_temp in $compiler""; do
16615 case $cc_temp in
16616 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16617 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16618 \-*) ;;
16619 *) break;;
16620 esac
16621 done
16622 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16623
16624
16625 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16626 archive_cmds_need_lc_GCJ=no
16627
16628 old_archive_cmds_GCJ=$old_archive_cmds
16629
16630
16631 lt_prog_compiler_no_builtin_flag_GCJ=
16632
16633 if test "$GCC" = yes; then
16634 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16635
16636
16637 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16638 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16639 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16640 echo $ECHO_N "(cached) $ECHO_C" >&6
16641 else
16642 lt_cv_prog_compiler_rtti_exceptions=no
16643 ac_outfile=conftest.$ac_objext
16644 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16645 lt_compiler_flag="-fno-rtti -fno-exceptions"
16646 # Insert the option either (1) after the last *FLAGS variable, or
16647 # (2) before a word containing "conftest.", or (3) at the end.
16648 # Note that $ac_compile itself does not contain backslashes and begins
16649 # with a dollar sign (not a hyphen), so the echo should work correctly.
16650 # The option is referenced via a variable to avoid confusing sed.
16651 lt_compile=`echo "$ac_compile" | $SED \
16652 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16653 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16654 -e 's:$: $lt_compiler_flag:'`
16655 (eval echo "\"\$as_me:16655: $lt_compile\"" >&5)
16656 (eval "$lt_compile" 2>conftest.err)
16657 ac_status=$?
16658 cat conftest.err >&5
16659 echo "$as_me:16659: \$? = $ac_status" >&5
16660 if (exit $ac_status) && test -s "$ac_outfile"; then
16661 # The compiler can only warn and ignore the option if not recognized
16662 # So say no if there are warnings other than the usual output.
16663 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16664 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16665 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16666 lt_cv_prog_compiler_rtti_exceptions=yes
16667 fi
16668 fi
16669 $rm conftest*
16670
16671 fi
16672 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16673 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16674
16675 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16676 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16677 else
16678 :
16679 fi
16680
16681 fi
16682
16683 lt_prog_compiler_wl_GCJ=
16684 lt_prog_compiler_pic_GCJ=
16685 lt_prog_compiler_static_GCJ=
16686
16687 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16688 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16689
16690 if test "$GCC" = yes; then
16691 lt_prog_compiler_wl_GCJ='-Wl,'
16692 lt_prog_compiler_static_GCJ='-static'
16693
16694 case $host_os in
16695 aix*)
16696 # All AIX code is PIC.
16697 if test "$host_cpu" = ia64; then
16698 # AIX 5 now supports IA64 processor
16699 lt_prog_compiler_static_GCJ='-Bstatic'
16700 fi
16701 ;;
16702
16703 amigaos*)
16704 # FIXME: we need at least 68020 code to build shared libraries, but
16705 # adding the `-m68020' flag to GCC prevents building anything better,
16706 # like `-m68040'.
16707 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16708 ;;
16709
16710 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16711 # PIC is the default for these OSes.
16712 ;;
16713
16714 mingw* | pw32* | os2*)
16715 # This hack is so that the source file can tell whether it is being
16716 # built for inclusion in a dll (and should export symbols for example).
16717 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16718 ;;
16719
16720 darwin* | rhapsody*)
16721 # PIC is the default on this platform
16722 # Common symbols not allowed in MH_DYLIB files
16723 lt_prog_compiler_pic_GCJ='-fno-common'
16724 ;;
16725
16726 interix3*)
16727 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16728 # Instead, we relocate shared libraries at runtime.
16729 ;;
16730
16731 msdosdjgpp*)
16732 # Just because we use GCC doesn't mean we suddenly get shared libraries
16733 # on systems that don't support them.
16734 lt_prog_compiler_can_build_shared_GCJ=no
16735 enable_shared=no
16736 ;;
16737
16738 sysv4*MP*)
16739 if test -d /usr/nec; then
16740 lt_prog_compiler_pic_GCJ=-Kconform_pic
16741 fi
16742 ;;
16743
16744 hpux*)
16745 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16746 # not for PA HP-UX.
16747 case $host_cpu in
16748 hppa*64*|ia64*)
16749 # +Z the default
16750 ;;
16751 *)
16752 lt_prog_compiler_pic_GCJ='-fPIC'
16753 ;;
16754 esac
16755 ;;
16756
16757 *)
16758 lt_prog_compiler_pic_GCJ='-fPIC'
16759 ;;
16760 esac
16761 else
16762 # PORTME Check for flag to pass linker flags through the system compiler.
16763 case $host_os in
16764 aix*)
16765 lt_prog_compiler_wl_GCJ='-Wl,'
16766 if test "$host_cpu" = ia64; then
16767 # AIX 5 now supports IA64 processor
16768 lt_prog_compiler_static_GCJ='-Bstatic'
16769 else
16770 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16771 fi
16772 ;;
16773 darwin*)
16774 # PIC is the default on this platform
16775 # Common symbols not allowed in MH_DYLIB files
16776 case $cc_basename in
16777 xlc*)
16778 lt_prog_compiler_pic_GCJ='-qnocommon'
16779 lt_prog_compiler_wl_GCJ='-Wl,'
16780 ;;
16781 esac
16782 ;;
16783
16784 mingw* | pw32* | os2*)
16785 # This hack is so that the source file can tell whether it is being
16786 # built for inclusion in a dll (and should export symbols for example).
16787 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16788 ;;
16789
16790 hpux9* | hpux10* | hpux11*)
16791 lt_prog_compiler_wl_GCJ='-Wl,'
16792 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16793 # not for PA HP-UX.
16794 case $host_cpu in
16795 hppa*64*|ia64*)
16796 # +Z the default
16797 ;;
16798 *)
16799 lt_prog_compiler_pic_GCJ='+Z'
16800 ;;
16801 esac
16802 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16803 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16804 ;;
16805
16806 irix5* | irix6* | nonstopux*)
16807 lt_prog_compiler_wl_GCJ='-Wl,'
16808 # PIC (with -KPIC) is the default.
16809 lt_prog_compiler_static_GCJ='-non_shared'
16810 ;;
16811
16812 newsos6)
16813 lt_prog_compiler_pic_GCJ='-KPIC'
16814 lt_prog_compiler_static_GCJ='-Bstatic'
16815 ;;
16816
16817 linux* | k*bsd*-gnu)
16818 case $cc_basename in
16819 icc* | ecc*)
16820 lt_prog_compiler_wl_GCJ='-Wl,'
16821 lt_prog_compiler_pic_GCJ='-KPIC'
16822 lt_prog_compiler_static_GCJ='-static'
16823 ;;
16824 pgcc* | pgf77* | pgf90* | pgf95*)
16825 # Portland Group compilers (*not* the Pentium gcc compiler,
16826 # which looks to be a dead project)
16827 lt_prog_compiler_wl_GCJ='-Wl,'
16828 lt_prog_compiler_pic_GCJ='-fpic'
16829 lt_prog_compiler_static_GCJ='-Bstatic'
16830 ;;
16831 ccc*)
16832 lt_prog_compiler_wl_GCJ='-Wl,'
16833 # All Alpha code is PIC.
16834 lt_prog_compiler_static_GCJ='-non_shared'
16835 ;;
16836 esac
16837 ;;
16838
16839 osf3* | osf4* | osf5*)
16840 lt_prog_compiler_wl_GCJ='-Wl,'
16841 # All OSF/1 code is PIC.
16842 lt_prog_compiler_static_GCJ='-non_shared'
16843 ;;
16844
16845 solaris*)
16846 lt_prog_compiler_pic_GCJ='-KPIC'
16847 lt_prog_compiler_static_GCJ='-Bstatic'
16848 case $cc_basename in
16849 f77* | f90* | f95*)
16850 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16851 *)
16852 lt_prog_compiler_wl_GCJ='-Wl,';;
16853 esac
16854 ;;
16855
16856 sunos4*)
16857 lt_prog_compiler_wl_GCJ='-Qoption ld '
16858 lt_prog_compiler_pic_GCJ='-PIC'
16859 lt_prog_compiler_static_GCJ='-Bstatic'
16860 ;;
16861
16862 sysv4 | sysv4.2uw2* | sysv4.3*)
16863 lt_prog_compiler_wl_GCJ='-Wl,'
16864 lt_prog_compiler_pic_GCJ='-KPIC'
16865 lt_prog_compiler_static_GCJ='-Bstatic'
16866 ;;
16867
16868 sysv4*MP*)
16869 if test -d /usr/nec ;then
16870 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16871 lt_prog_compiler_static_GCJ='-Bstatic'
16872 fi
16873 ;;
16874
16875 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16876 lt_prog_compiler_wl_GCJ='-Wl,'
16877 lt_prog_compiler_pic_GCJ='-KPIC'
16878 lt_prog_compiler_static_GCJ='-Bstatic'
16879 ;;
16880
16881 unicos*)
16882 lt_prog_compiler_wl_GCJ='-Wl,'
16883 lt_prog_compiler_can_build_shared_GCJ=no
16884 ;;
16885
16886 uts4*)
16887 lt_prog_compiler_pic_GCJ='-pic'
16888 lt_prog_compiler_static_GCJ='-Bstatic'
16889 ;;
16890
16891 *)
16892 lt_prog_compiler_can_build_shared_GCJ=no
16893 ;;
16894 esac
16895 fi
16896
16897 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16898 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16899
16900 #
16901 # Check to make sure the PIC flag actually works.
16902 #
16903 if test -n "$lt_prog_compiler_pic_GCJ"; then
16904
16905 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16906 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16907 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16908 echo $ECHO_N "(cached) $ECHO_C" >&6
16909 else
16910 lt_prog_compiler_pic_works_GCJ=no
16911 ac_outfile=conftest.$ac_objext
16912 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16913 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16914 # Insert the option either (1) after the last *FLAGS variable, or
16915 # (2) before a word containing "conftest.", or (3) at the end.
16916 # Note that $ac_compile itself does not contain backslashes and begins
16917 # with a dollar sign (not a hyphen), so the echo should work correctly.
16918 # The option is referenced via a variable to avoid confusing sed.
16919 lt_compile=`echo "$ac_compile" | $SED \
16920 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16921 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16922 -e 's:$: $lt_compiler_flag:'`
16923 (eval echo "\"\$as_me:16923: $lt_compile\"" >&5)
16924 (eval "$lt_compile" 2>conftest.err)
16925 ac_status=$?
16926 cat conftest.err >&5
16927 echo "$as_me:16927: \$? = $ac_status" >&5
16928 if (exit $ac_status) && test -s "$ac_outfile"; then
16929 # The compiler can only warn and ignore the option if not recognized
16930 # So say no if there are warnings other than the usual output.
16931 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16932 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16933 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16934 lt_prog_compiler_pic_works_GCJ=yes
16935 fi
16936 fi
16937 $rm conftest*
16938
16939 fi
16940 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16941 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16942
16943 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16944 case $lt_prog_compiler_pic_GCJ in
16945 "" | " "*) ;;
16946 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16947 esac
16948 else
16949 lt_prog_compiler_pic_GCJ=
16950 lt_prog_compiler_can_build_shared_GCJ=no
16951 fi
16952
16953 fi
16954 case $host_os in
16955 # For platforms which do not support PIC, -DPIC is meaningless:
16956 *djgpp*)
16957 lt_prog_compiler_pic_GCJ=
16958 ;;
16959 *)
16960 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16961 ;;
16962 esac
16963
16964 #
16965 # Check to make sure the static flag actually works.
16966 #
16967 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16968 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16969 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16970 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16971 echo $ECHO_N "(cached) $ECHO_C" >&6
16972 else
16973 lt_prog_compiler_static_works_GCJ=no
16974 save_LDFLAGS="$LDFLAGS"
16975 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16976 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16977 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16978 # The linker can only warn and ignore the option if not recognized
16979 # So say no if there are warnings
16980 if test -s conftest.err; then
16981 # Append any errors to the config.log.
16982 cat conftest.err 1>&5
16983 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16984 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16985 if diff conftest.exp conftest.er2 >/dev/null; then
16986 lt_prog_compiler_static_works_GCJ=yes
16987 fi
16988 else
16989 lt_prog_compiler_static_works_GCJ=yes
16990 fi
16991 fi
16992 $rm conftest*
16993 LDFLAGS="$save_LDFLAGS"
16994
16995 fi
16996 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16997 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16998
16999 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17000 :
17001 else
17002 lt_prog_compiler_static_GCJ=
17003 fi
17004
17005
17006 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17007 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17008 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17009 echo $ECHO_N "(cached) $ECHO_C" >&6
17010 else
17011 lt_cv_prog_compiler_c_o_GCJ=no
17012 $rm -r conftest 2>/dev/null
17013 mkdir conftest
17014 cd conftest
17015 mkdir out
17016 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17017
17018 lt_compiler_flag="-o out/conftest2.$ac_objext"
17019 # Insert the option either (1) after the last *FLAGS variable, or
17020 # (2) before a word containing "conftest.", or (3) at the end.
17021 # Note that $ac_compile itself does not contain backslashes and begins
17022 # with a dollar sign (not a hyphen), so the echo should work correctly.
17023 lt_compile=`echo "$ac_compile" | $SED \
17024 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17025 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17026 -e 's:$: $lt_compiler_flag:'`
17027 (eval echo "\"\$as_me:17027: $lt_compile\"" >&5)
17028 (eval "$lt_compile" 2>out/conftest.err)
17029 ac_status=$?
17030 cat out/conftest.err >&5
17031 echo "$as_me:17031: \$? = $ac_status" >&5
17032 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17033 then
17034 # The compiler can only warn and ignore the option if not recognized
17035 # So say no if there are warnings
17036 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17037 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17038 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17039 lt_cv_prog_compiler_c_o_GCJ=yes
17040 fi
17041 fi
17042 chmod u+w . 2>&5
17043 $rm conftest*
17044 # SGI C++ compiler will create directory out/ii_files/ for
17045 # template instantiation
17046 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17047 $rm out/* && rmdir out
17048 cd ..
17049 rmdir conftest
17050 $rm conftest*
17051
17052 fi
17053 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17054 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17055
17056
17057 hard_links="nottested"
17058 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17059 # do not overwrite the value of need_locks provided by the user
17060 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17061 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17062 hard_links=yes
17063 $rm conftest*
17064 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17065 touch conftest.a
17066 ln conftest.a conftest.b 2>&5 || hard_links=no
17067 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17068 { echo "$as_me:$LINENO: result: $hard_links" >&5
17069 echo "${ECHO_T}$hard_links" >&6; }
17070 if test "$hard_links" = no; then
17071 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17072 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17073 need_locks=warn
17074 fi
17075 else
17076 need_locks=no
17077 fi
17078
17079 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17080 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17081
17082 runpath_var=
17083 allow_undefined_flag_GCJ=
17084 enable_shared_with_static_runtimes_GCJ=no
17085 archive_cmds_GCJ=
17086 archive_expsym_cmds_GCJ=
17087 old_archive_From_new_cmds_GCJ=
17088 old_archive_from_expsyms_cmds_GCJ=
17089 export_dynamic_flag_spec_GCJ=
17090 whole_archive_flag_spec_GCJ=
17091 thread_safe_flag_spec_GCJ=
17092 hardcode_libdir_flag_spec_GCJ=
17093 hardcode_libdir_flag_spec_ld_GCJ=
17094 hardcode_libdir_separator_GCJ=
17095 hardcode_direct_GCJ=no
17096 hardcode_minus_L_GCJ=no
17097 hardcode_shlibpath_var_GCJ=unsupported
17098 link_all_deplibs_GCJ=unknown
17099 hardcode_automatic_GCJ=no
17100 module_cmds_GCJ=
17101 module_expsym_cmds_GCJ=
17102 always_export_symbols_GCJ=no
17103 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17104 # include_expsyms should be a list of space-separated symbols to be *always*
17105 # included in the symbol list
17106 include_expsyms_GCJ=
17107 # exclude_expsyms can be an extended regexp of symbols to exclude
17108 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17109 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17110 # as well as any symbol that contains `d'.
17111 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17112 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17113 # platforms (ab)use it in PIC code, but their linkers get confused if
17114 # the symbol is explicitly referenced. Since portable code cannot
17115 # rely on this symbol name, it's probably fine to never include it in
17116 # preloaded symbol tables.
17117 extract_expsyms_cmds=
17118 # Just being paranoid about ensuring that cc_basename is set.
17119 for cc_temp in $compiler""; do
17120 case $cc_temp in
17121 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17122 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17123 \-*) ;;
17124 *) break;;
17125 esac
17126 done
17127 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17128
17129 case $host_os in
17130 cygwin* | mingw* | pw32*)
17131 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17132 # When not using gcc, we currently assume that we are using
17133 # Microsoft Visual C++.
17134 if test "$GCC" != yes; then
17135 with_gnu_ld=no
17136 fi
17137 ;;
17138 interix*)
17139 # we just hope/assume this is gcc and not c89 (= MSVC++)
17140 with_gnu_ld=yes
17141 ;;
17142 openbsd*)
17143 with_gnu_ld=no
17144 ;;
17145 esac
17146
17147 ld_shlibs_GCJ=yes
17148 if test "$with_gnu_ld" = yes; then
17149 # If archive_cmds runs LD, not CC, wlarc should be empty
17150 wlarc='${wl}'
17151
17152 # Set some defaults for GNU ld with shared library support. These
17153 # are reset later if shared libraries are not supported. Putting them
17154 # here allows them to be overridden if necessary.
17155 runpath_var=LD_RUN_PATH
17156 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17157 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17158 # ancient GNU ld didn't support --whole-archive et. al.
17159 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17160 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17161 else
17162 whole_archive_flag_spec_GCJ=
17163 fi
17164 supports_anon_versioning=no
17165 case `$LD -v 2>/dev/null` in
17166 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17167 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17168 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17169 *\ 2.11.*) ;; # other 2.11 versions
17170 *) supports_anon_versioning=yes ;;
17171 esac
17172
17173 # See if GNU ld supports shared libraries.
17174 case $host_os in
17175 aix3* | aix4* | aix5*)
17176 # On AIX/PPC, the GNU linker is very broken
17177 if test "$host_cpu" != ia64; then
17178 ld_shlibs_GCJ=no
17179 cat <<EOF 1>&2
17180
17181 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17182 *** to be unable to reliably create shared libraries on AIX.
17183 *** Therefore, libtool is disabling shared libraries support. If you
17184 *** really care for shared libraries, you may want to modify your PATH
17185 *** so that a non-GNU linker is found, and then restart.
17186
17187 EOF
17188 fi
17189 ;;
17190
17191 amigaos*)
17192 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)'
17193 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17194 hardcode_minus_L_GCJ=yes
17195
17196 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
17197 # that the semantics of dynamic libraries on AmigaOS, at least up
17198 # to version 4, is to share data among multiple programs linked
17199 # with the same dynamic library. Since this doesn't match the
17200 # behavior of shared libraries on other platforms, we can't use
17201 # them.
17202 ld_shlibs_GCJ=no
17203 ;;
17204
17205 beos*)
17206 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17207 allow_undefined_flag_GCJ=unsupported
17208 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
17209 # support --undefined. This deserves some investigation. FIXME
17210 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17211 else
17212 ld_shlibs_GCJ=no
17213 fi
17214 ;;
17215
17216 cygwin* | mingw* | pw32*)
17217 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17218 # as there is no search path for DLLs.
17219 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17220 allow_undefined_flag_GCJ=unsupported
17221 always_export_symbols_GCJ=no
17222 enable_shared_with_static_runtimes_GCJ=yes
17223 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17224
17225 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17226 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17227 # If the export-symbols file already is a .def file (1st line
17228 # is EXPORTS), use it as is; otherwise, prepend...
17229 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17230 cp $export_symbols $output_objdir/$soname.def;
17231 else
17232 echo EXPORTS > $output_objdir/$soname.def;
17233 cat $export_symbols >> $output_objdir/$soname.def;
17234 fi~
17235 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17236 else
17237 ld_shlibs_GCJ=no
17238 fi
17239 ;;
17240
17241 interix3*)
17242 hardcode_direct_GCJ=no
17243 hardcode_shlibpath_var_GCJ=no
17244 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17245 export_dynamic_flag_spec_GCJ='${wl}-E'
17246 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17247 # Instead, shared libraries are loaded at an image base (0x10000000 by
17248 # default) and relocated if they conflict, which is a slow very memory
17249 # consuming and fragmenting process. To avoid this, we pick a random,
17250 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17251 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17252 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'
17253 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'
17254 ;;
17255
17256 linux* | k*bsd*-gnu)
17257 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17258 tmp_addflag=
17259 case $cc_basename,$host_cpu in
17260 pgcc*) # Portland Group C compiler
17261 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'
17262 tmp_addflag=' $pic_flag'
17263 ;;
17264 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17265 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'
17266 tmp_addflag=' $pic_flag -Mnomain' ;;
17267 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17268 tmp_addflag=' -i_dynamic' ;;
17269 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17270 tmp_addflag=' -i_dynamic -nofor_main' ;;
17271 ifc* | ifort*) # Intel Fortran compiler
17272 tmp_addflag=' -nofor_main' ;;
17273 esac
17274 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17275
17276 if test $supports_anon_versioning = yes; then
17277 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17278 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17279 $echo "local: *; };" >> $output_objdir/$libname.ver~
17280 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17281 fi
17282 link_all_deplibs_GCJ=no
17283 else
17284 ld_shlibs_GCJ=no
17285 fi
17286 ;;
17287
17288 netbsd* | netbsdelf*-gnu)
17289 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17290 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17291 wlarc=
17292 else
17293 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17294 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17295 fi
17296 ;;
17297
17298 solaris*)
17299 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17300 ld_shlibs_GCJ=no
17301 cat <<EOF 1>&2
17302
17303 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17304 *** create shared libraries on Solaris systems. Therefore, libtool
17305 *** is disabling shared libraries support. We urge you to upgrade GNU
17306 *** binutils to release 2.9.1 or newer. Another option is to modify
17307 *** your PATH or compiler configuration so that the native linker is
17308 *** used, and then restart.
17309
17310 EOF
17311 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
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 else
17315 ld_shlibs_GCJ=no
17316 fi
17317 ;;
17318
17319 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17320 case `$LD -v 2>&1` in
17321 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17322 ld_shlibs_GCJ=no
17323 cat <<_LT_EOF 1>&2
17324
17325 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17326 *** reliably create shared libraries on SCO systems. Therefore, libtool
17327 *** is disabling shared libraries support. We urge you to upgrade GNU
17328 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17329 *** your PATH or compiler configuration so that the native linker is
17330 *** used, and then restart.
17331
17332 _LT_EOF
17333 ;;
17334 *)
17335 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17336 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17337 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17338 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17339 else
17340 ld_shlibs_GCJ=no
17341 fi
17342 ;;
17343 esac
17344 ;;
17345
17346 sunos4*)
17347 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17348 wlarc=
17349 hardcode_direct_GCJ=yes
17350 hardcode_shlibpath_var_GCJ=no
17351 ;;
17352
17353 *)
17354 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17355 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17356 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17357 else
17358 ld_shlibs_GCJ=no
17359 fi
17360 ;;
17361 esac
17362
17363 if test "$ld_shlibs_GCJ" = no; then
17364 runpath_var=
17365 hardcode_libdir_flag_spec_GCJ=
17366 export_dynamic_flag_spec_GCJ=
17367 whole_archive_flag_spec_GCJ=
17368 fi
17369 else
17370 # PORTME fill in a description of your system's linker (not GNU ld)
17371 case $host_os in
17372 aix3*)
17373 allow_undefined_flag_GCJ=unsupported
17374 always_export_symbols_GCJ=yes
17375 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'
17376 # Note: this linker hardcodes the directories in LIBPATH if there
17377 # are no directories specified by -L.
17378 hardcode_minus_L_GCJ=yes
17379 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17380 # Neither direct hardcoding nor static linking is supported with a
17381 # broken collect2.
17382 hardcode_direct_GCJ=unsupported
17383 fi
17384 ;;
17385
17386 aix4* | aix5*)
17387 if test "$host_cpu" = ia64; then
17388 # On IA64, the linker does run time linking by default, so we don't
17389 # have to do anything special.
17390 aix_use_runtimelinking=no
17391 exp_sym_flag='-Bexport'
17392 no_entry_flag=""
17393 else
17394 # If we're using GNU nm, then we don't want the "-C" option.
17395 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17396 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17397 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'
17398 else
17399 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'
17400 fi
17401 aix_use_runtimelinking=no
17402
17403 # Test if we are trying to use run time linking or normal
17404 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17405 # need to do runtime linking.
17406 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17407 for ld_flag in $LDFLAGS; do
17408 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17409 aix_use_runtimelinking=yes
17410 break
17411 fi
17412 done
17413 ;;
17414 esac
17415
17416 exp_sym_flag='-bexport'
17417 no_entry_flag='-bnoentry'
17418 fi
17419
17420 # When large executables or shared objects are built, AIX ld can
17421 # have problems creating the table of contents. If linking a library
17422 # or program results in "error TOC overflow" add -mminimal-toc to
17423 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17424 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17425
17426 archive_cmds_GCJ=''
17427 hardcode_direct_GCJ=yes
17428 hardcode_libdir_separator_GCJ=':'
17429 link_all_deplibs_GCJ=yes
17430
17431 if test "$GCC" = yes; then
17432 case $host_os in aix4.[012]|aix4.[012].*)
17433 # We only want to do this on AIX 4.2 and lower, the check
17434 # below for broken collect2 doesn't work under 4.3+
17435 collect2name=`${CC} -print-prog-name=collect2`
17436 if test -f "$collect2name" && \
17437 strings "$collect2name" | grep resolve_lib_name >/dev/null
17438 then
17439 # We have reworked collect2
17440 hardcode_direct_GCJ=yes
17441 else
17442 # We have old collect2
17443 hardcode_direct_GCJ=unsupported
17444 # It fails to find uninstalled libraries when the uninstalled
17445 # path is not listed in the libpath. Setting hardcode_minus_L
17446 # to unsupported forces relinking
17447 hardcode_minus_L_GCJ=yes
17448 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17449 hardcode_libdir_separator_GCJ=
17450 fi
17451 ;;
17452 esac
17453 shared_flag='-shared'
17454 if test "$aix_use_runtimelinking" = yes; then
17455 shared_flag="$shared_flag "'${wl}-G'
17456 fi
17457 else
17458 # not using gcc
17459 if test "$host_cpu" = ia64; then
17460 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17461 # chokes on -Wl,-G. The following line is correct:
17462 shared_flag='-G'
17463 else
17464 if test "$aix_use_runtimelinking" = yes; then
17465 shared_flag='${wl}-G'
17466 else
17467 shared_flag='${wl}-bM:SRE'
17468 fi
17469 fi
17470 fi
17471
17472 # It seems that -bexpall does not export symbols beginning with
17473 # underscore (_), so it is better to generate a list of symbols to export.
17474 always_export_symbols_GCJ=yes
17475 if test "$aix_use_runtimelinking" = yes; then
17476 # Warning - without using the other runtime loading flags (-brtl),
17477 # -berok will link without error, but may produce a broken library.
17478 allow_undefined_flag_GCJ='-berok'
17479 # Determine the default libpath from the value encoded in an empty executable.
17480 cat >conftest.$ac_ext <<_ACEOF
17481 /* confdefs.h. */
17482 _ACEOF
17483 cat confdefs.h >>conftest.$ac_ext
17484 cat >>conftest.$ac_ext <<_ACEOF
17485 /* end confdefs.h. */
17486
17487 int
17488 main ()
17489 {
17490
17491 ;
17492 return 0;
17493 }
17494 _ACEOF
17495 rm -f conftest.$ac_objext conftest$ac_exeext
17496 if { (ac_try="$ac_link"
17497 case "(($ac_try" in
17498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17499 *) ac_try_echo=$ac_try;;
17500 esac
17501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17502 (eval "$ac_link") 2>conftest.er1
17503 ac_status=$?
17504 grep -v '^ *+' conftest.er1 >conftest.err
17505 rm -f conftest.er1
17506 cat conftest.err >&5
17507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17508 (exit $ac_status); } &&
17509 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17510 { (case "(($ac_try" in
17511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17512 *) ac_try_echo=$ac_try;;
17513 esac
17514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17515 (eval "$ac_try") 2>&5
17516 ac_status=$?
17517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17518 (exit $ac_status); }; } &&
17519 { ac_try='test -s conftest$ac_exeext'
17520 { (case "(($ac_try" in
17521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17522 *) ac_try_echo=$ac_try;;
17523 esac
17524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17525 (eval "$ac_try") 2>&5
17526 ac_status=$?
17527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17528 (exit $ac_status); }; }; then
17529
17530 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17531 }'`
17532 # Check for a 64-bit object if we didn't find anything.
17533 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; }
17534 }'`; fi
17535 else
17536 echo "$as_me: failed program was:" >&5
17537 sed 's/^/| /' conftest.$ac_ext >&5
17538
17539
17540 fi
17541
17542 rm -f core conftest.err conftest.$ac_objext \
17543 conftest$ac_exeext conftest.$ac_ext
17544 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17545
17546 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17547 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"
17548 else
17549 if test "$host_cpu" = ia64; then
17550 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17551 allow_undefined_flag_GCJ="-z nodefs"
17552 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"
17553 else
17554 # Determine the default libpath from the value encoded in an empty executable.
17555 cat >conftest.$ac_ext <<_ACEOF
17556 /* confdefs.h. */
17557 _ACEOF
17558 cat confdefs.h >>conftest.$ac_ext
17559 cat >>conftest.$ac_ext <<_ACEOF
17560 /* end confdefs.h. */
17561
17562 int
17563 main ()
17564 {
17565
17566 ;
17567 return 0;
17568 }
17569 _ACEOF
17570 rm -f conftest.$ac_objext conftest$ac_exeext
17571 if { (ac_try="$ac_link"
17572 case "(($ac_try" in
17573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17574 *) ac_try_echo=$ac_try;;
17575 esac
17576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17577 (eval "$ac_link") 2>conftest.er1
17578 ac_status=$?
17579 grep -v '^ *+' conftest.er1 >conftest.err
17580 rm -f conftest.er1
17581 cat conftest.err >&5
17582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17583 (exit $ac_status); } &&
17584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17585 { (case "(($ac_try" in
17586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17587 *) ac_try_echo=$ac_try;;
17588 esac
17589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17590 (eval "$ac_try") 2>&5
17591 ac_status=$?
17592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17593 (exit $ac_status); }; } &&
17594 { ac_try='test -s conftest$ac_exeext'
17595 { (case "(($ac_try" in
17596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17597 *) ac_try_echo=$ac_try;;
17598 esac
17599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17600 (eval "$ac_try") 2>&5
17601 ac_status=$?
17602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17603 (exit $ac_status); }; }; then
17604
17605 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17606 }'`
17607 # Check for a 64-bit object if we didn't find anything.
17608 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; }
17609 }'`; fi
17610 else
17611 echo "$as_me: failed program was:" >&5
17612 sed 's/^/| /' conftest.$ac_ext >&5
17613
17614
17615 fi
17616
17617 rm -f core conftest.err conftest.$ac_objext \
17618 conftest$ac_exeext conftest.$ac_ext
17619 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17620
17621 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17622 # Warning - without using the other run time loading flags,
17623 # -berok will link without error, but may produce a broken library.
17624 no_undefined_flag_GCJ=' ${wl}-bernotok'
17625 allow_undefined_flag_GCJ=' ${wl}-berok'
17626 # Exported symbols can be pulled into shared objects from archives
17627 whole_archive_flag_spec_GCJ='$convenience'
17628 archive_cmds_need_lc_GCJ=yes
17629 # This is similar to how AIX traditionally builds its shared libraries.
17630 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'
17631 fi
17632 fi
17633 ;;
17634
17635 amigaos*)
17636 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)'
17637 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17638 hardcode_minus_L_GCJ=yes
17639 # see comment about different semantics on the GNU ld section
17640 ld_shlibs_GCJ=no
17641 ;;
17642
17643 bsdi[45]*)
17644 export_dynamic_flag_spec_GCJ=-rdynamic
17645 ;;
17646
17647 cygwin* | mingw* | pw32*)
17648 # When not using gcc, we currently assume that we are using
17649 # Microsoft Visual C++.
17650 # hardcode_libdir_flag_spec is actually meaningless, as there is
17651 # no search path for DLLs.
17652 hardcode_libdir_flag_spec_GCJ=' '
17653 allow_undefined_flag_GCJ=unsupported
17654 # Tell ltmain to make .lib files, not .a files.
17655 libext=lib
17656 # Tell ltmain to make .dll files, not .so files.
17657 shrext_cmds=".dll"
17658 # FIXME: Setting linknames here is a bad hack.
17659 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17660 # The linker will automatically build a .lib file if we build a DLL.
17661 old_archive_From_new_cmds_GCJ='true'
17662 # FIXME: Should let the user specify the lib program.
17663 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17664 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17665 enable_shared_with_static_runtimes_GCJ=yes
17666 ;;
17667
17668 darwin* | rhapsody*)
17669 case $host_os in
17670 rhapsody* | darwin1.[012])
17671 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17672 ;;
17673 *) # Darwin 1.3 on
17674 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17675 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17676 else
17677 case ${MACOSX_DEPLOYMENT_TARGET} in
17678 10.[012])
17679 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17680 ;;
17681 10.*)
17682 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17683 ;;
17684 esac
17685 fi
17686 ;;
17687 esac
17688 archive_cmds_need_lc_GCJ=no
17689 hardcode_direct_GCJ=no
17690 hardcode_automatic_GCJ=yes
17691 hardcode_shlibpath_var_GCJ=unsupported
17692 whole_archive_flag_spec_GCJ=''
17693 link_all_deplibs_GCJ=yes
17694 if test "$GCC" = yes ; then
17695 output_verbose_link_cmd='echo'
17696 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17697 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17698 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17699 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}'
17700 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}'
17701 else
17702 case $cc_basename in
17703 xlc*)
17704 output_verbose_link_cmd='echo'
17705 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17706 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17707 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17708 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}'
17709 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}'
17710 ;;
17711 *)
17712 ld_shlibs_GCJ=no
17713 ;;
17714 esac
17715 fi
17716 ;;
17717
17718 dgux*)
17719 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17720 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17721 hardcode_shlibpath_var_GCJ=no
17722 ;;
17723
17724 freebsd1*)
17725 ld_shlibs_GCJ=no
17726 ;;
17727
17728 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17729 # support. Future versions do this automatically, but an explicit c++rt0.o
17730 # does not break anything, and helps significantly (at the cost of a little
17731 # extra space).
17732 freebsd2.2*)
17733 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17734 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17735 hardcode_direct_GCJ=yes
17736 hardcode_shlibpath_var_GCJ=no
17737 ;;
17738
17739 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17740 freebsd2*)
17741 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17742 hardcode_direct_GCJ=yes
17743 hardcode_minus_L_GCJ=yes
17744 hardcode_shlibpath_var_GCJ=no
17745 ;;
17746
17747 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17748 freebsd* | dragonfly*)
17749 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17750 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17751 hardcode_direct_GCJ=yes
17752 hardcode_shlibpath_var_GCJ=no
17753 ;;
17754
17755 hpux9*)
17756 if test "$GCC" = yes; then
17757 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'
17758 else
17759 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'
17760 fi
17761 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17762 hardcode_libdir_separator_GCJ=:
17763 hardcode_direct_GCJ=yes
17764
17765 # hardcode_minus_L: Not really in the search PATH,
17766 # but as the default location of the library.
17767 hardcode_minus_L_GCJ=yes
17768 export_dynamic_flag_spec_GCJ='${wl}-E'
17769 ;;
17770
17771 hpux10*)
17772 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17773 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17774 else
17775 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17776 fi
17777 if test "$with_gnu_ld" = no; then
17778 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17779 hardcode_libdir_separator_GCJ=:
17780
17781 hardcode_direct_GCJ=yes
17782 export_dynamic_flag_spec_GCJ='${wl}-E'
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 fi
17788 ;;
17789
17790 hpux11*)
17791 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17792 case $host_cpu in
17793 hppa*64*)
17794 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17795 ;;
17796 ia64*)
17797 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17798 ;;
17799 *)
17800 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17801 ;;
17802 esac
17803 else
17804 case $host_cpu in
17805 hppa*64*)
17806 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17807 ;;
17808 ia64*)
17809 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17810 ;;
17811 *)
17812 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17813 ;;
17814 esac
17815 fi
17816 if test "$with_gnu_ld" = no; then
17817 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17818 hardcode_libdir_separator_GCJ=:
17819
17820 case $host_cpu in
17821 hppa*64*|ia64*)
17822 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17823 hardcode_direct_GCJ=no
17824 hardcode_shlibpath_var_GCJ=no
17825 ;;
17826 *)
17827 hardcode_direct_GCJ=yes
17828 export_dynamic_flag_spec_GCJ='${wl}-E'
17829
17830 # hardcode_minus_L: Not really in the search PATH,
17831 # but as the default location of the library.
17832 hardcode_minus_L_GCJ=yes
17833 ;;
17834 esac
17835 fi
17836 ;;
17837
17838 irix5* | irix6* | nonstopux*)
17839 if test "$GCC" = yes; then
17840 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'
17841 else
17842 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'
17843 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17844 fi
17845 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17846 hardcode_libdir_separator_GCJ=:
17847 link_all_deplibs_GCJ=yes
17848 ;;
17849
17850 netbsd* | netbsdelf*-gnu)
17851 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17852 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17853 else
17854 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17855 fi
17856 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17857 hardcode_direct_GCJ=yes
17858 hardcode_shlibpath_var_GCJ=no
17859 ;;
17860
17861 newsos6)
17862 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17863 hardcode_direct_GCJ=yes
17864 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17865 hardcode_libdir_separator_GCJ=:
17866 hardcode_shlibpath_var_GCJ=no
17867 ;;
17868
17869 openbsd*)
17870 hardcode_direct_GCJ=yes
17871 hardcode_shlibpath_var_GCJ=no
17872 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17873 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17874 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17875 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17876 export_dynamic_flag_spec_GCJ='${wl}-E'
17877 else
17878 case $host_os in
17879 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17880 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17881 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17882 ;;
17883 *)
17884 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17885 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17886 ;;
17887 esac
17888 fi
17889 ;;
17890
17891 os2*)
17892 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17893 hardcode_minus_L_GCJ=yes
17894 allow_undefined_flag_GCJ=unsupported
17895 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'
17896 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17897 ;;
17898
17899 osf3*)
17900 if test "$GCC" = yes; then
17901 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17902 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'
17903 else
17904 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17905 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'
17906 fi
17907 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17908 hardcode_libdir_separator_GCJ=:
17909 ;;
17910
17911 osf4* | osf5*) # as osf3* with the addition of -msym flag
17912 if test "$GCC" = yes; then
17913 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17914 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'
17915 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17916 else
17917 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17918 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'
17919 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~
17920 $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'
17921
17922 # Both c and cxx compiler support -rpath directly
17923 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17924 fi
17925 hardcode_libdir_separator_GCJ=:
17926 ;;
17927
17928 solaris*)
17929 no_undefined_flag_GCJ=' -z text'
17930 if test "$GCC" = yes; then
17931 wlarc='${wl}'
17932 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17933 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17934 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17935 else
17936 wlarc=''
17937 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17938 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17939 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17940 fi
17941 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17942 hardcode_shlibpath_var_GCJ=no
17943 case $host_os in
17944 solaris2.[0-5] | solaris2.[0-5].*) ;;
17945 *)
17946 # The compiler driver will combine linker options so we
17947 # cannot just pass the convience library names through
17948 # without $wl, iff we do not link with $LD.
17949 # Luckily, gcc supports the same syntax we need for Sun Studio.
17950 # Supported since Solaris 2.6 (maybe 2.5.1?)
17951 case $wlarc in
17952 '')
17953 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17954 *)
17955 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' ;;
17956 esac ;;
17957 esac
17958 link_all_deplibs_GCJ=yes
17959 ;;
17960
17961 sunos4*)
17962 if test "x$host_vendor" = xsequent; then
17963 # Use $CC to link under sequent, because it throws in some extra .o
17964 # files that make .init and .fini sections work.
17965 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17966 else
17967 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17968 fi
17969 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17970 hardcode_direct_GCJ=yes
17971 hardcode_minus_L_GCJ=yes
17972 hardcode_shlibpath_var_GCJ=no
17973 ;;
17974
17975 sysv4)
17976 case $host_vendor in
17977 sni)
17978 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17979 hardcode_direct_GCJ=yes # is this really true???
17980 ;;
17981 siemens)
17982 ## LD is ld it makes a PLAMLIB
17983 ## CC just makes a GrossModule.
17984 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17985 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17986 hardcode_direct_GCJ=no
17987 ;;
17988 motorola)
17989 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17990 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17991 ;;
17992 esac
17993 runpath_var='LD_RUN_PATH'
17994 hardcode_shlibpath_var_GCJ=no
17995 ;;
17996
17997 sysv4.3*)
17998 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17999 hardcode_shlibpath_var_GCJ=no
18000 export_dynamic_flag_spec_GCJ='-Bexport'
18001 ;;
18002
18003 sysv4*MP*)
18004 if test -d /usr/nec; then
18005 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18006 hardcode_shlibpath_var_GCJ=no
18007 runpath_var=LD_RUN_PATH
18008 hardcode_runpath_var=yes
18009 ld_shlibs_GCJ=yes
18010 fi
18011 ;;
18012
18013 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18014 no_undefined_flag_GCJ='${wl}-z,text'
18015 archive_cmds_need_lc_GCJ=no
18016 hardcode_shlibpath_var_GCJ=no
18017 runpath_var='LD_RUN_PATH'
18018
18019 if test "$GCC" = yes; then
18020 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18021 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18022 else
18023 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18024 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18025 fi
18026 ;;
18027
18028 sysv5* | sco3.2v5* | sco5v6*)
18029 # Note: We can NOT use -z defs as we might desire, because we do not
18030 # link with -lc, and that would cause any symbols used from libc to
18031 # always be unresolved, which means just about no library would
18032 # ever link correctly. If we're not using GNU ld we use -z text
18033 # though, which does catch some bad symbols but isn't as heavy-handed
18034 # as -z defs.
18035 no_undefined_flag_GCJ='${wl}-z,text'
18036 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18037 archive_cmds_need_lc_GCJ=no
18038 hardcode_shlibpath_var_GCJ=no
18039 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18040 hardcode_libdir_separator_GCJ=':'
18041 link_all_deplibs_GCJ=yes
18042 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18043 runpath_var='LD_RUN_PATH'
18044
18045 if test "$GCC" = yes; then
18046 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18047 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18048 else
18049 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18050 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18051 fi
18052 ;;
18053
18054 uts4*)
18055 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18056 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18057 hardcode_shlibpath_var_GCJ=no
18058 ;;
18059
18060 *)
18061 ld_shlibs_GCJ=no
18062 ;;
18063 esac
18064 fi
18065
18066 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18067 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18068 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18069
18070 #
18071 # Do we need to explicitly link libc?
18072 #
18073 case "x$archive_cmds_need_lc_GCJ" in
18074 x|xyes)
18075 # Assume -lc should be added
18076 archive_cmds_need_lc_GCJ=yes
18077
18078 if test "$enable_shared" = yes && test "$GCC" = yes; then
18079 case $archive_cmds_GCJ in
18080 *'~'*)
18081 # FIXME: we may have to deal with multi-command sequences.
18082 ;;
18083 '$CC '*)
18084 # Test whether the compiler implicitly links with -lc since on some
18085 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18086 # to ld, don't add -lc before -lgcc.
18087 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18088 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18089 $rm conftest*
18090 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18091
18092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18093 (eval $ac_compile) 2>&5
18094 ac_status=$?
18095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18096 (exit $ac_status); } 2>conftest.err; then
18097 soname=conftest
18098 lib=conftest
18099 libobjs=conftest.$ac_objext
18100 deplibs=
18101 wl=$lt_prog_compiler_wl_GCJ
18102 pic_flag=$lt_prog_compiler_pic_GCJ
18103 compiler_flags=-v
18104 linker_flags=-v
18105 verstring=
18106 output_objdir=.
18107 libname=conftest
18108 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18109 allow_undefined_flag_GCJ=
18110 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18111 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18112 ac_status=$?
18113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18114 (exit $ac_status); }
18115 then
18116 archive_cmds_need_lc_GCJ=no
18117 else
18118 archive_cmds_need_lc_GCJ=yes
18119 fi
18120 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18121 else
18122 cat conftest.err 1>&5
18123 fi
18124 $rm conftest*
18125 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18126 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18127 ;;
18128 esac
18129 fi
18130 ;;
18131 esac
18132
18133 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18134 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18135 library_names_spec=
18136 libname_spec='lib$name'
18137 soname_spec=
18138 shrext_cmds=".so"
18139 postinstall_cmds=
18140 postuninstall_cmds=
18141 finish_cmds=
18142 finish_eval=
18143 shlibpath_var=
18144 shlibpath_overrides_runpath=unknown
18145 version_type=none
18146 dynamic_linker="$host_os ld.so"
18147 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18148 if test "$GCC" = yes; then
18149 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18150 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18151 # if the path contains ";" then we assume it to be the separator
18152 # otherwise default to the standard path separator (i.e. ":") - it is
18153 # assumed that no part of a normal pathname contains ";" but that should
18154 # okay in the real world where ";" in dirpaths is itself problematic.
18155 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18156 else
18157 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18158 fi
18159 else
18160 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18161 fi
18162 need_lib_prefix=unknown
18163 hardcode_into_libs=no
18164
18165 # when you set need_version to no, make sure it does not cause -set_version
18166 # flags to be left without arguments
18167 need_version=unknown
18168
18169 case $host_os in
18170 aix3*)
18171 version_type=linux
18172 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18173 shlibpath_var=LIBPATH
18174
18175 # AIX 3 has no versioning support, so we append a major version to the name.
18176 soname_spec='${libname}${release}${shared_ext}$major'
18177 ;;
18178
18179 aix4* | aix5*)
18180 version_type=linux
18181 need_lib_prefix=no
18182 need_version=no
18183 hardcode_into_libs=yes
18184 if test "$host_cpu" = ia64; then
18185 # AIX 5 supports IA64
18186 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18187 shlibpath_var=LD_LIBRARY_PATH
18188 else
18189 # With GCC up to 2.95.x, collect2 would create an import file
18190 # for dependence libraries. The import file would start with
18191 # the line `#! .'. This would cause the generated library to
18192 # depend on `.', always an invalid library. This was fixed in
18193 # development snapshots of GCC prior to 3.0.
18194 case $host_os in
18195 aix4 | aix4.[01] | aix4.[01].*)
18196 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18197 echo ' yes '
18198 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18199 :
18200 else
18201 can_build_shared=no
18202 fi
18203 ;;
18204 esac
18205 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18206 # soname into executable. Probably we can add versioning support to
18207 # collect2, so additional links can be useful in future.
18208 if test "$aix_use_runtimelinking" = yes; then
18209 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18210 # instead of lib<name>.a to let people know that these are not
18211 # typical AIX shared libraries.
18212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18213 else
18214 # We preserve .a as extension for shared libraries through AIX4.2
18215 # and later when we are not doing run time linking.
18216 library_names_spec='${libname}${release}.a $libname.a'
18217 soname_spec='${libname}${release}${shared_ext}$major'
18218 fi
18219 shlibpath_var=LIBPATH
18220 fi
18221 ;;
18222
18223 amigaos*)
18224 library_names_spec='$libname.ixlibrary $libname.a'
18225 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18226 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'
18227 ;;
18228
18229 beos*)
18230 library_names_spec='${libname}${shared_ext}'
18231 dynamic_linker="$host_os ld.so"
18232 shlibpath_var=LIBRARY_PATH
18233 ;;
18234
18235 bsdi[45]*)
18236 version_type=linux
18237 need_version=no
18238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18239 soname_spec='${libname}${release}${shared_ext}$major'
18240 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18241 shlibpath_var=LD_LIBRARY_PATH
18242 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18243 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18244 # the default ld.so.conf also contains /usr/contrib/lib and
18245 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18246 # libtool to hard-code these into programs
18247 ;;
18248
18249 cygwin* | mingw* | pw32*)
18250 version_type=windows
18251 shrext_cmds=".dll"
18252 need_version=no
18253 need_lib_prefix=no
18254
18255 case $GCC,$host_os in
18256 yes,cygwin* | yes,mingw* | yes,pw32*)
18257 library_names_spec='$libname.dll.a'
18258 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18259 postinstall_cmds='base_file=`basename \${file}`~
18260 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18261 dldir=$destdir/`dirname \$dlpath`~
18262 test -d \$dldir || mkdir -p \$dldir~
18263 $install_prog $dir/$dlname \$dldir/$dlname~
18264 chmod a+x \$dldir/$dlname'
18265 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18266 dlpath=$dir/\$dldll~
18267 $rm \$dlpath'
18268 shlibpath_overrides_runpath=yes
18269
18270 case $host_os in
18271 cygwin*)
18272 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18273 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18274 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18275 ;;
18276 mingw*)
18277 # MinGW DLLs use traditional 'lib' prefix
18278 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18279 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18280 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18281 # It is most probably a Windows format PATH printed by
18282 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18283 # path with ; separators, and with drive letters. We can handle the
18284 # drive letters (cygwin fileutils understands them), so leave them,
18285 # especially as we might pass files found there to a mingw objdump,
18286 # which wouldn't understand a cygwinified path. Ahh.
18287 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18288 else
18289 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18290 fi
18291 ;;
18292 pw32*)
18293 # pw32 DLLs use 'pw' prefix rather than 'lib'
18294 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18295 ;;
18296 esac
18297 ;;
18298
18299 *)
18300 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18301 ;;
18302 esac
18303 dynamic_linker='Win32 ld.exe'
18304 # FIXME: first we should search . and the directory the executable is in
18305 shlibpath_var=PATH
18306 ;;
18307
18308 darwin* | rhapsody*)
18309 dynamic_linker="$host_os dyld"
18310 version_type=darwin
18311 need_lib_prefix=no
18312 need_version=no
18313 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18314 soname_spec='${libname}${release}${major}$shared_ext'
18315 shlibpath_overrides_runpath=yes
18316 shlibpath_var=DYLD_LIBRARY_PATH
18317 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18318 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18319 if test "$GCC" = yes; then
18320 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"`
18321 else
18322 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18323 fi
18324 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18325 ;;
18326
18327 dgux*)
18328 version_type=linux
18329 need_lib_prefix=no
18330 need_version=no
18331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18332 soname_spec='${libname}${release}${shared_ext}$major'
18333 shlibpath_var=LD_LIBRARY_PATH
18334 ;;
18335
18336 freebsd1*)
18337 dynamic_linker=no
18338 ;;
18339
18340 freebsd* | dragonfly*)
18341 # DragonFly does not have aout. When/if they implement a new
18342 # versioning mechanism, adjust this.
18343 if test -x /usr/bin/objformat; then
18344 objformat=`/usr/bin/objformat`
18345 else
18346 case $host_os in
18347 freebsd[123]*) objformat=aout ;;
18348 *) objformat=elf ;;
18349 esac
18350 fi
18351 version_type=freebsd-$objformat
18352 case $version_type in
18353 freebsd-elf*)
18354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18355 need_version=no
18356 need_lib_prefix=no
18357 ;;
18358 freebsd-*)
18359 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18360 need_version=yes
18361 ;;
18362 esac
18363 shlibpath_var=LD_LIBRARY_PATH
18364 case $host_os in
18365 freebsd2*)
18366 shlibpath_overrides_runpath=yes
18367 ;;
18368 freebsd3.[01]* | freebsdelf3.[01]*)
18369 shlibpath_overrides_runpath=yes
18370 hardcode_into_libs=yes
18371 ;;
18372 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18373 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18374 shlibpath_overrides_runpath=no
18375 hardcode_into_libs=yes
18376 ;;
18377 freebsd*) # from 4.6 on
18378 shlibpath_overrides_runpath=yes
18379 hardcode_into_libs=yes
18380 ;;
18381 esac
18382 ;;
18383
18384 gnu*)
18385 version_type=linux
18386 need_lib_prefix=no
18387 need_version=no
18388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18389 soname_spec='${libname}${release}${shared_ext}$major'
18390 shlibpath_var=LD_LIBRARY_PATH
18391 hardcode_into_libs=yes
18392 ;;
18393
18394 hpux9* | hpux10* | hpux11*)
18395 # Give a soname corresponding to the major version so that dld.sl refuses to
18396 # link against other versions.
18397 version_type=sunos
18398 need_lib_prefix=no
18399 need_version=no
18400 case $host_cpu in
18401 ia64*)
18402 shrext_cmds='.so'
18403 hardcode_into_libs=yes
18404 dynamic_linker="$host_os dld.so"
18405 shlibpath_var=LD_LIBRARY_PATH
18406 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 if test "X$HPUX_IA64_MODE" = X32; then
18410 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18411 else
18412 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18413 fi
18414 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18415 ;;
18416 hppa*64*)
18417 shrext_cmds='.sl'
18418 hardcode_into_libs=yes
18419 dynamic_linker="$host_os dld.sl"
18420 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18421 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18423 soname_spec='${libname}${release}${shared_ext}$major'
18424 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18425 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18426 ;;
18427 *)
18428 shrext_cmds='.sl'
18429 dynamic_linker="$host_os dld.sl"
18430 shlibpath_var=SHLIB_PATH
18431 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18433 soname_spec='${libname}${release}${shared_ext}$major'
18434 ;;
18435 esac
18436 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18437 postinstall_cmds='chmod 555 $lib'
18438 ;;
18439
18440 interix3*)
18441 version_type=linux
18442 need_lib_prefix=no
18443 need_version=no
18444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18445 soname_spec='${libname}${release}${shared_ext}$major'
18446 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18447 shlibpath_var=LD_LIBRARY_PATH
18448 shlibpath_overrides_runpath=no
18449 hardcode_into_libs=yes
18450 ;;
18451
18452 irix5* | irix6* | nonstopux*)
18453 case $host_os in
18454 nonstopux*) version_type=nonstopux ;;
18455 *)
18456 if test "$lt_cv_prog_gnu_ld" = yes; then
18457 version_type=linux
18458 else
18459 version_type=irix
18460 fi ;;
18461 esac
18462 need_lib_prefix=no
18463 need_version=no
18464 soname_spec='${libname}${release}${shared_ext}$major'
18465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18466 case $host_os in
18467 irix5* | nonstopux*)
18468 libsuff= shlibsuff=
18469 ;;
18470 *)
18471 case $LD in # libtool.m4 will add one of these switches to LD
18472 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18473 libsuff= shlibsuff= libmagic=32-bit;;
18474 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18475 libsuff=32 shlibsuff=N32 libmagic=N32;;
18476 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18477 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18478 *) libsuff= shlibsuff= libmagic=never-match;;
18479 esac
18480 ;;
18481 esac
18482 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18483 shlibpath_overrides_runpath=no
18484 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18485 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18486 hardcode_into_libs=yes
18487 ;;
18488
18489 # No shared lib support for Linux oldld, aout, or coff.
18490 linux*oldld* | linux*aout* | linux*coff*)
18491 dynamic_linker=no
18492 ;;
18493
18494 # This must be Linux ELF.
18495 linux* | k*bsd*-gnu)
18496 version_type=linux
18497 need_lib_prefix=no
18498 need_version=no
18499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18500 soname_spec='${libname}${release}${shared_ext}$major'
18501 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18502 shlibpath_var=LD_LIBRARY_PATH
18503 shlibpath_overrides_runpath=no
18504 # This implies no fast_install, which is unacceptable.
18505 # Some rework will be needed to allow for fast_install
18506 # before this can be enabled.
18507 hardcode_into_libs=yes
18508
18509 # Append ld.so.conf contents to the search path
18510 if test -f /etc/ld.so.conf; then
18511 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' ' '`
18512 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18513 fi
18514
18515 # We used to test for /lib/ld.so.1 and disable shared libraries on
18516 # powerpc, because MkLinux only supported shared libraries with the
18517 # GNU dynamic linker. Since this was broken with cross compilers,
18518 # most powerpc-linux boxes support dynamic linking these days and
18519 # people can always --disable-shared, the test was removed, and we
18520 # assume the GNU/Linux dynamic linker is in use.
18521 dynamic_linker='GNU/Linux ld.so'
18522 ;;
18523
18524 netbsdelf*-gnu)
18525 version_type=linux
18526 need_lib_prefix=no
18527 need_version=no
18528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18529 soname_spec='${libname}${release}${shared_ext}$major'
18530 shlibpath_var=LD_LIBRARY_PATH
18531 shlibpath_overrides_runpath=no
18532 hardcode_into_libs=yes
18533 dynamic_linker='NetBSD ld.elf_so'
18534 ;;
18535
18536 netbsd*)
18537 version_type=sunos
18538 need_lib_prefix=no
18539 need_version=no
18540 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18542 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18543 dynamic_linker='NetBSD (a.out) ld.so'
18544 else
18545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18546 soname_spec='${libname}${release}${shared_ext}$major'
18547 dynamic_linker='NetBSD ld.elf_so'
18548 fi
18549 shlibpath_var=LD_LIBRARY_PATH
18550 shlibpath_overrides_runpath=yes
18551 hardcode_into_libs=yes
18552 ;;
18553
18554 newsos6)
18555 version_type=linux
18556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18557 shlibpath_var=LD_LIBRARY_PATH
18558 shlibpath_overrides_runpath=yes
18559 ;;
18560
18561 nto-qnx*)
18562 version_type=linux
18563 need_lib_prefix=no
18564 need_version=no
18565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18566 soname_spec='${libname}${release}${shared_ext}$major'
18567 shlibpath_var=LD_LIBRARY_PATH
18568 shlibpath_overrides_runpath=yes
18569 ;;
18570
18571 openbsd*)
18572 version_type=sunos
18573 sys_lib_dlsearch_path_spec="/usr/lib"
18574 need_lib_prefix=no
18575 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18576 case $host_os in
18577 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18578 *) need_version=no ;;
18579 esac
18580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18581 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18582 shlibpath_var=LD_LIBRARY_PATH
18583 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18584 case $host_os in
18585 openbsd2.[89] | openbsd2.[89].*)
18586 shlibpath_overrides_runpath=no
18587 ;;
18588 *)
18589 shlibpath_overrides_runpath=yes
18590 ;;
18591 esac
18592 else
18593 shlibpath_overrides_runpath=yes
18594 fi
18595 ;;
18596
18597 os2*)
18598 libname_spec='$name'
18599 shrext_cmds=".dll"
18600 need_lib_prefix=no
18601 library_names_spec='$libname${shared_ext} $libname.a'
18602 dynamic_linker='OS/2 ld.exe'
18603 shlibpath_var=LIBPATH
18604 ;;
18605
18606 osf3* | osf4* | osf5*)
18607 version_type=osf
18608 need_lib_prefix=no
18609 need_version=no
18610 soname_spec='${libname}${release}${shared_ext}$major'
18611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18612 shlibpath_var=LD_LIBRARY_PATH
18613 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18614 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18615 ;;
18616
18617 solaris*)
18618 version_type=linux
18619 need_lib_prefix=no
18620 need_version=no
18621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18622 soname_spec='${libname}${release}${shared_ext}$major'
18623 shlibpath_var=LD_LIBRARY_PATH
18624 shlibpath_overrides_runpath=yes
18625 hardcode_into_libs=yes
18626 # ldd complains unless libraries are executable
18627 postinstall_cmds='chmod +x $lib'
18628 ;;
18629
18630 sunos4*)
18631 version_type=sunos
18632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18633 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18634 shlibpath_var=LD_LIBRARY_PATH
18635 shlibpath_overrides_runpath=yes
18636 if test "$with_gnu_ld" = yes; then
18637 need_lib_prefix=no
18638 fi
18639 need_version=yes
18640 ;;
18641
18642 sysv4 | sysv4.3*)
18643 version_type=linux
18644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18645 soname_spec='${libname}${release}${shared_ext}$major'
18646 shlibpath_var=LD_LIBRARY_PATH
18647 case $host_vendor in
18648 sni)
18649 shlibpath_overrides_runpath=no
18650 need_lib_prefix=no
18651 export_dynamic_flag_spec='${wl}-Blargedynsym'
18652 runpath_var=LD_RUN_PATH
18653 ;;
18654 siemens)
18655 need_lib_prefix=no
18656 ;;
18657 motorola)
18658 need_lib_prefix=no
18659 need_version=no
18660 shlibpath_overrides_runpath=no
18661 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18662 ;;
18663 esac
18664 ;;
18665
18666 sysv4*MP*)
18667 if test -d /usr/nec ;then
18668 version_type=linux
18669 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18670 soname_spec='$libname${shared_ext}.$major'
18671 shlibpath_var=LD_LIBRARY_PATH
18672 fi
18673 ;;
18674
18675 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18676 version_type=freebsd-elf
18677 need_lib_prefix=no
18678 need_version=no
18679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18680 soname_spec='${libname}${release}${shared_ext}$major'
18681 shlibpath_var=LD_LIBRARY_PATH
18682 hardcode_into_libs=yes
18683 if test "$with_gnu_ld" = yes; then
18684 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18685 shlibpath_overrides_runpath=no
18686 else
18687 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18688 shlibpath_overrides_runpath=yes
18689 case $host_os in
18690 sco3.2v5*)
18691 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18692 ;;
18693 esac
18694 fi
18695 sys_lib_dlsearch_path_spec='/usr/lib'
18696 ;;
18697
18698 uts4*)
18699 version_type=linux
18700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18701 soname_spec='${libname}${release}${shared_ext}$major'
18702 shlibpath_var=LD_LIBRARY_PATH
18703 ;;
18704
18705 *)
18706 dynamic_linker=no
18707 ;;
18708 esac
18709 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18710 echo "${ECHO_T}$dynamic_linker" >&6; }
18711 test "$dynamic_linker" = no && can_build_shared=no
18712
18713 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18714 if test "$GCC" = yes; then
18715 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18716 fi
18717
18718 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18719 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18720 hardcode_action_GCJ=
18721 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18722 test -n "$runpath_var_GCJ" || \
18723 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18724
18725 # We can hardcode non-existant directories.
18726 if test "$hardcode_direct_GCJ" != no &&
18727 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18728 # have to relink, otherwise we might link with an installed library
18729 # when we should be linking with a yet-to-be-installed one
18730 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18731 test "$hardcode_minus_L_GCJ" != no; then
18732 # Linking always hardcodes the temporary library directory.
18733 hardcode_action_GCJ=relink
18734 else
18735 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18736 hardcode_action_GCJ=immediate
18737 fi
18738 else
18739 # We cannot hardcode anything, or else we can only hardcode existing
18740 # directories.
18741 hardcode_action_GCJ=unsupported
18742 fi
18743 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18744 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18745
18746 if test "$hardcode_action_GCJ" = relink; then
18747 # Fast installation is not supported
18748 enable_fast_install=no
18749 elif test "$shlibpath_overrides_runpath" = yes ||
18750 test "$enable_shared" = no; then
18751 # Fast installation is not necessary
18752 enable_fast_install=needless
18753 fi
18754
18755
18756 # The else clause should only fire when bootstrapping the
18757 # libtool distribution, otherwise you forgot to ship ltmain.sh
18758 # with your package, and you will get complaints that there are
18759 # no rules to generate ltmain.sh.
18760 if test -f "$ltmain"; then
18761 # See if we are running on zsh, and set the options which allow our commands through
18762 # without removal of \ escapes.
18763 if test -n "${ZSH_VERSION+set}" ; then
18764 setopt NO_GLOB_SUBST
18765 fi
18766 # Now quote all the things that may contain metacharacters while being
18767 # careful not to overquote the AC_SUBSTed values. We take copies of the
18768 # variables and quote the copies for generation of the libtool script.
18769 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18770 SED SHELL STRIP \
18771 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18772 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18773 deplibs_check_method reload_flag reload_cmds need_locks \
18774 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18775 lt_cv_sys_global_symbol_to_c_name_address \
18776 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18777 old_postinstall_cmds old_postuninstall_cmds \
18778 compiler_GCJ \
18779 CC_GCJ \
18780 LD_GCJ \
18781 lt_prog_compiler_wl_GCJ \
18782 lt_prog_compiler_pic_GCJ \
18783 lt_prog_compiler_static_GCJ \
18784 lt_prog_compiler_no_builtin_flag_GCJ \
18785 export_dynamic_flag_spec_GCJ \
18786 thread_safe_flag_spec_GCJ \
18787 whole_archive_flag_spec_GCJ \
18788 enable_shared_with_static_runtimes_GCJ \
18789 old_archive_cmds_GCJ \
18790 old_archive_from_new_cmds_GCJ \
18791 predep_objects_GCJ \
18792 postdep_objects_GCJ \
18793 predeps_GCJ \
18794 postdeps_GCJ \
18795 compiler_lib_search_path_GCJ \
18796 archive_cmds_GCJ \
18797 archive_expsym_cmds_GCJ \
18798 postinstall_cmds_GCJ \
18799 postuninstall_cmds_GCJ \
18800 old_archive_from_expsyms_cmds_GCJ \
18801 allow_undefined_flag_GCJ \
18802 no_undefined_flag_GCJ \
18803 export_symbols_cmds_GCJ \
18804 hardcode_libdir_flag_spec_GCJ \
18805 hardcode_libdir_flag_spec_ld_GCJ \
18806 hardcode_libdir_separator_GCJ \
18807 hardcode_automatic_GCJ \
18808 module_cmds_GCJ \
18809 module_expsym_cmds_GCJ \
18810 lt_cv_prog_compiler_c_o_GCJ \
18811 exclude_expsyms_GCJ \
18812 include_expsyms_GCJ; do
18813
18814 case $var in
18815 old_archive_cmds_GCJ | \
18816 old_archive_from_new_cmds_GCJ | \
18817 archive_cmds_GCJ | \
18818 archive_expsym_cmds_GCJ | \
18819 module_cmds_GCJ | \
18820 module_expsym_cmds_GCJ | \
18821 old_archive_from_expsyms_cmds_GCJ | \
18822 export_symbols_cmds_GCJ | \
18823 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18824 postinstall_cmds | postuninstall_cmds | \
18825 old_postinstall_cmds | old_postuninstall_cmds | \
18826 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18827 # Double-quote double-evaled strings.
18828 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18829 ;;
18830 *)
18831 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18832 ;;
18833 esac
18834 done
18835
18836 case $lt_echo in
18837 *'\$0 --fallback-echo"')
18838 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18839 ;;
18840 esac
18841
18842 cfgfile="$ofile"
18843
18844 cat <<__EOF__ >> "$cfgfile"
18845 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18846
18847 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18848
18849 # Shell to use when invoking shell scripts.
18850 SHELL=$lt_SHELL
18851
18852 # Whether or not to build shared libraries.
18853 build_libtool_libs=$enable_shared
18854
18855 # Whether or not to build static libraries.
18856 build_old_libs=$enable_static
18857
18858 # Whether or not to add -lc for building shared libraries.
18859 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18860
18861 # Whether or not to disallow shared libs when runtime libs are static
18862 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18863
18864 # Whether or not to optimize for fast installation.
18865 fast_install=$enable_fast_install
18866
18867 # The host system.
18868 host_alias=$host_alias
18869 host=$host
18870 host_os=$host_os
18871
18872 # The build system.
18873 build_alias=$build_alias
18874 build=$build
18875 build_os=$build_os
18876
18877 # An echo program that does not interpret backslashes.
18878 echo=$lt_echo
18879
18880 # The archiver.
18881 AR=$lt_AR
18882 AR_FLAGS=$lt_AR_FLAGS
18883
18884 # A C compiler.
18885 LTCC=$lt_LTCC
18886
18887 # LTCC compiler flags.
18888 LTCFLAGS=$lt_LTCFLAGS
18889
18890 # A language-specific compiler.
18891 CC=$lt_compiler_GCJ
18892
18893 # Is the compiler the GNU C compiler?
18894 with_gcc=$GCC_GCJ
18895
18896 # An ERE matcher.
18897 EGREP=$lt_EGREP
18898
18899 # The linker used to build libraries.
18900 LD=$lt_LD_GCJ
18901
18902 # Whether we need hard or soft links.
18903 LN_S=$lt_LN_S
18904
18905 # A BSD-compatible nm program.
18906 NM=$lt_NM
18907
18908 # A symbol stripping program
18909 STRIP=$lt_STRIP
18910
18911 # Used to examine libraries when file_magic_cmd begins "file"
18912 MAGIC_CMD=$MAGIC_CMD
18913
18914 # Used on cygwin: DLL creation program.
18915 DLLTOOL="$DLLTOOL"
18916
18917 # Used on cygwin: object dumper.
18918 OBJDUMP="$OBJDUMP"
18919
18920 # Used on cygwin: assembler.
18921 AS="$AS"
18922
18923 # The name of the directory that contains temporary libtool files.
18924 objdir=$objdir
18925
18926 # How to create reloadable object files.
18927 reload_flag=$lt_reload_flag
18928 reload_cmds=$lt_reload_cmds
18929
18930 # How to pass a linker flag through the compiler.
18931 wl=$lt_lt_prog_compiler_wl_GCJ
18932
18933 # Object file suffix (normally "o").
18934 objext="$ac_objext"
18935
18936 # Old archive suffix (normally "a").
18937 libext="$libext"
18938
18939 # Shared library suffix (normally ".so").
18940 shrext_cmds='$shrext_cmds'
18941
18942 # Executable file suffix (normally "").
18943 exeext="$exeext"
18944
18945 # Additional compiler flags for building library objects.
18946 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18947 pic_mode=$pic_mode
18948
18949 # What is the maximum length of a command?
18950 max_cmd_len=$lt_cv_sys_max_cmd_len
18951
18952 # Does compiler simultaneously support -c and -o options?
18953 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18954
18955 # Must we lock files when doing compilation?
18956 need_locks=$lt_need_locks
18957
18958 # Do we need the lib prefix for modules?
18959 need_lib_prefix=$need_lib_prefix
18960
18961 # Do we need a version for libraries?
18962 need_version=$need_version
18963
18964 # Whether dlopen is supported.
18965 dlopen_support=$enable_dlopen
18966
18967 # Whether dlopen of programs is supported.
18968 dlopen_self=$enable_dlopen_self
18969
18970 # Whether dlopen of statically linked programs is supported.
18971 dlopen_self_static=$enable_dlopen_self_static
18972
18973 # Compiler flag to prevent dynamic linking.
18974 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18975
18976 # Compiler flag to turn off builtin functions.
18977 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18978
18979 # Compiler flag to allow reflexive dlopens.
18980 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18981
18982 # Compiler flag to generate shared objects directly from archives.
18983 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18984
18985 # Compiler flag to generate thread-safe objects.
18986 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18987
18988 # Library versioning type.
18989 version_type=$version_type
18990
18991 # Format of library name prefix.
18992 libname_spec=$lt_libname_spec
18993
18994 # List of archive names. First name is the real one, the rest are links.
18995 # The last name is the one that the linker finds with -lNAME.
18996 library_names_spec=$lt_library_names_spec
18997
18998 # The coded name of the library, if different from the real name.
18999 soname_spec=$lt_soname_spec
19000
19001 # Commands used to build and install an old-style archive.
19002 RANLIB=$lt_RANLIB
19003 old_archive_cmds=$lt_old_archive_cmds_GCJ
19004 old_postinstall_cmds=$lt_old_postinstall_cmds
19005 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19006
19007 # Create an old-style archive from a shared archive.
19008 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19009
19010 # Create a temporary old-style archive to link instead of a shared archive.
19011 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19012
19013 # Commands used to build and install a shared archive.
19014 archive_cmds=$lt_archive_cmds_GCJ
19015 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19016 postinstall_cmds=$lt_postinstall_cmds
19017 postuninstall_cmds=$lt_postuninstall_cmds
19018
19019 # Commands used to build a loadable module (assumed same as above if empty)
19020 module_cmds=$lt_module_cmds_GCJ
19021 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19022
19023 # Commands to strip libraries.
19024 old_striplib=$lt_old_striplib
19025 striplib=$lt_striplib
19026
19027 # Dependencies to place before the objects being linked to create a
19028 # shared library.
19029 predep_objects=$lt_predep_objects_GCJ
19030
19031 # Dependencies to place after the objects being linked to create a
19032 # shared library.
19033 postdep_objects=$lt_postdep_objects_GCJ
19034
19035 # Dependencies to place before the objects being linked to create a
19036 # shared library.
19037 predeps=$lt_predeps_GCJ
19038
19039 # Dependencies to place after the objects being linked to create a
19040 # shared library.
19041 postdeps=$lt_postdeps_GCJ
19042
19043 # The library search path used internally by the compiler when linking
19044 # a shared library.
19045 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19046
19047 # Method to check whether dependent libraries are shared objects.
19048 deplibs_check_method=$lt_deplibs_check_method
19049
19050 # Command to use when deplibs_check_method == file_magic.
19051 file_magic_cmd=$lt_file_magic_cmd
19052
19053 # Flag that allows shared libraries with undefined symbols to be built.
19054 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19055
19056 # Flag that forces no undefined symbols.
19057 no_undefined_flag=$lt_no_undefined_flag_GCJ
19058
19059 # Commands used to finish a libtool library installation in a directory.
19060 finish_cmds=$lt_finish_cmds
19061
19062 # Same as above, but a single script fragment to be evaled but not shown.
19063 finish_eval=$lt_finish_eval
19064
19065 # Take the output of nm and produce a listing of raw symbols and C names.
19066 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19067
19068 # Transform the output of nm in a proper C declaration
19069 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19070
19071 # Transform the output of nm in a C name address pair
19072 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19073
19074 # This is the shared library runtime path variable.
19075 runpath_var=$runpath_var
19076
19077 # This is the shared library path variable.
19078 shlibpath_var=$shlibpath_var
19079
19080 # Is shlibpath searched before the hard-coded library search path?
19081 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19082
19083 # How to hardcode a shared library path into an executable.
19084 hardcode_action=$hardcode_action_GCJ
19085
19086 # Whether we should hardcode library paths into libraries.
19087 hardcode_into_libs=$hardcode_into_libs
19088
19089 # Flag to hardcode \$libdir into a binary during linking.
19090 # This must work even if \$libdir does not exist.
19091 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19092
19093 # If ld is used when linking, flag to hardcode \$libdir into
19094 # a binary during linking. This must work even if \$libdir does
19095 # not exist.
19096 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19097
19098 # Whether we need a single -rpath flag with a separated argument.
19099 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19100
19101 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19102 # resulting binary.
19103 hardcode_direct=$hardcode_direct_GCJ
19104
19105 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19106 # resulting binary.
19107 hardcode_minus_L=$hardcode_minus_L_GCJ
19108
19109 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19110 # the resulting binary.
19111 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19112
19113 # Set to yes if building a shared library automatically hardcodes DIR into the library
19114 # and all subsequent libraries and executables linked against it.
19115 hardcode_automatic=$hardcode_automatic_GCJ
19116
19117 # Variables whose values should be saved in libtool wrapper scripts and
19118 # restored at relink time.
19119 variables_saved_for_relink="$variables_saved_for_relink"
19120
19121 # Whether libtool must link a program against all its dependency libraries.
19122 link_all_deplibs=$link_all_deplibs_GCJ
19123
19124 # Compile-time system search path for libraries
19125 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19126
19127 # Run-time system search path for libraries
19128 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19129
19130 # Fix the shell variable \$srcfile for the compiler.
19131 fix_srcfile_path="$fix_srcfile_path_GCJ"
19132
19133 # Set to yes if exported symbols are required.
19134 always_export_symbols=$always_export_symbols_GCJ
19135
19136 # The commands to list exported symbols.
19137 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19138
19139 # The commands to extract the exported symbol list from a shared archive.
19140 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19141
19142 # Symbols that should not be listed in the preloaded symbols.
19143 exclude_expsyms=$lt_exclude_expsyms_GCJ
19144
19145 # Symbols that must always be exported.
19146 include_expsyms=$lt_include_expsyms_GCJ
19147
19148 # ### END LIBTOOL TAG CONFIG: $tagname
19149
19150 __EOF__
19151
19152
19153 else
19154 # If there is no Makefile yet, we rely on a make rule to execute
19155 # `config.status --recheck' to rerun these tests and create the
19156 # libtool script then.
19157 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19158 if test -f "$ltmain_in"; then
19159 test -f Makefile && make "$ltmain"
19160 fi
19161 fi
19162
19163
19164 ac_ext=c
19165 ac_cpp='$CPP $CPPFLAGS'
19166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19169
19170 CC="$lt_save_CC"
19171
19172 else
19173 tagname=""
19174 fi
19175 ;;
19176
19177 RC)
19178
19179
19180 # Source file extension for RC test sources.
19181 ac_ext=rc
19182
19183 # Object file extension for compiled RC test sources.
19184 objext=o
19185 objext_RC=$objext
19186
19187 # Code to be used in simple compile tests
19188 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19189
19190 # Code to be used in simple link tests
19191 lt_simple_link_test_code="$lt_simple_compile_test_code"
19192
19193 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19194
19195 # If no C compiler was specified, use CC.
19196 LTCC=${LTCC-"$CC"}
19197
19198 # If no C compiler flags were specified, use CFLAGS.
19199 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19200
19201 # Allow CC to be a program name with arguments.
19202 compiler=$CC
19203
19204
19205 # save warnings/boilerplate of simple test code
19206 ac_outfile=conftest.$ac_objext
19207 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19208 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19209 _lt_compiler_boilerplate=`cat conftest.err`
19210 $rm conftest*
19211
19212 ac_outfile=conftest.$ac_objext
19213 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19214 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19215 _lt_linker_boilerplate=`cat conftest.err`
19216 $rm conftest*
19217
19218
19219 # Allow CC to be a program name with arguments.
19220 lt_save_CC="$CC"
19221 CC=${RC-"windres"}
19222 compiler=$CC
19223 compiler_RC=$CC
19224 for cc_temp in $compiler""; do
19225 case $cc_temp in
19226 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19227 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19228 \-*) ;;
19229 *) break;;
19230 esac
19231 done
19232 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19233
19234 lt_cv_prog_compiler_c_o_RC=yes
19235
19236 # The else clause should only fire when bootstrapping the
19237 # libtool distribution, otherwise you forgot to ship ltmain.sh
19238 # with your package, and you will get complaints that there are
19239 # no rules to generate ltmain.sh.
19240 if test -f "$ltmain"; then
19241 # See if we are running on zsh, and set the options which allow our commands through
19242 # without removal of \ escapes.
19243 if test -n "${ZSH_VERSION+set}" ; then
19244 setopt NO_GLOB_SUBST
19245 fi
19246 # Now quote all the things that may contain metacharacters while being
19247 # careful not to overquote the AC_SUBSTed values. We take copies of the
19248 # variables and quote the copies for generation of the libtool script.
19249 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19250 SED SHELL STRIP \
19251 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19252 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19253 deplibs_check_method reload_flag reload_cmds need_locks \
19254 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19255 lt_cv_sys_global_symbol_to_c_name_address \
19256 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19257 old_postinstall_cmds old_postuninstall_cmds \
19258 compiler_RC \
19259 CC_RC \
19260 LD_RC \
19261 lt_prog_compiler_wl_RC \
19262 lt_prog_compiler_pic_RC \
19263 lt_prog_compiler_static_RC \
19264 lt_prog_compiler_no_builtin_flag_RC \
19265 export_dynamic_flag_spec_RC \
19266 thread_safe_flag_spec_RC \
19267 whole_archive_flag_spec_RC \
19268 enable_shared_with_static_runtimes_RC \
19269 old_archive_cmds_RC \
19270 old_archive_from_new_cmds_RC \
19271 predep_objects_RC \
19272 postdep_objects_RC \
19273 predeps_RC \
19274 postdeps_RC \
19275 compiler_lib_search_path_RC \
19276 archive_cmds_RC \
19277 archive_expsym_cmds_RC \
19278 postinstall_cmds_RC \
19279 postuninstall_cmds_RC \
19280 old_archive_from_expsyms_cmds_RC \
19281 allow_undefined_flag_RC \
19282 no_undefined_flag_RC \
19283 export_symbols_cmds_RC \
19284 hardcode_libdir_flag_spec_RC \
19285 hardcode_libdir_flag_spec_ld_RC \
19286 hardcode_libdir_separator_RC \
19287 hardcode_automatic_RC \
19288 module_cmds_RC \
19289 module_expsym_cmds_RC \
19290 lt_cv_prog_compiler_c_o_RC \
19291 exclude_expsyms_RC \
19292 include_expsyms_RC; do
19293
19294 case $var in
19295 old_archive_cmds_RC | \
19296 old_archive_from_new_cmds_RC | \
19297 archive_cmds_RC | \
19298 archive_expsym_cmds_RC | \
19299 module_cmds_RC | \
19300 module_expsym_cmds_RC | \
19301 old_archive_from_expsyms_cmds_RC | \
19302 export_symbols_cmds_RC | \
19303 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19304 postinstall_cmds | postuninstall_cmds | \
19305 old_postinstall_cmds | old_postuninstall_cmds | \
19306 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19307 # Double-quote double-evaled strings.
19308 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19309 ;;
19310 *)
19311 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19312 ;;
19313 esac
19314 done
19315
19316 case $lt_echo in
19317 *'\$0 --fallback-echo"')
19318 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19319 ;;
19320 esac
19321
19322 cfgfile="$ofile"
19323
19324 cat <<__EOF__ >> "$cfgfile"
19325 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19326
19327 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19328
19329 # Shell to use when invoking shell scripts.
19330 SHELL=$lt_SHELL
19331
19332 # Whether or not to build shared libraries.
19333 build_libtool_libs=$enable_shared
19334
19335 # Whether or not to build static libraries.
19336 build_old_libs=$enable_static
19337
19338 # Whether or not to add -lc for building shared libraries.
19339 build_libtool_need_lc=$archive_cmds_need_lc_RC
19340
19341 # Whether or not to disallow shared libs when runtime libs are static
19342 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19343
19344 # Whether or not to optimize for fast installation.
19345 fast_install=$enable_fast_install
19346
19347 # The host system.
19348 host_alias=$host_alias
19349 host=$host
19350 host_os=$host_os
19351
19352 # The build system.
19353 build_alias=$build_alias
19354 build=$build
19355 build_os=$build_os
19356
19357 # An echo program that does not interpret backslashes.
19358 echo=$lt_echo
19359
19360 # The archiver.
19361 AR=$lt_AR
19362 AR_FLAGS=$lt_AR_FLAGS
19363
19364 # A C compiler.
19365 LTCC=$lt_LTCC
19366
19367 # LTCC compiler flags.
19368 LTCFLAGS=$lt_LTCFLAGS
19369
19370 # A language-specific compiler.
19371 CC=$lt_compiler_RC
19372
19373 # Is the compiler the GNU C compiler?
19374 with_gcc=$GCC_RC
19375
19376 # An ERE matcher.
19377 EGREP=$lt_EGREP
19378
19379 # The linker used to build libraries.
19380 LD=$lt_LD_RC
19381
19382 # Whether we need hard or soft links.
19383 LN_S=$lt_LN_S
19384
19385 # A BSD-compatible nm program.
19386 NM=$lt_NM
19387
19388 # A symbol stripping program
19389 STRIP=$lt_STRIP
19390
19391 # Used to examine libraries when file_magic_cmd begins "file"
19392 MAGIC_CMD=$MAGIC_CMD
19393
19394 # Used on cygwin: DLL creation program.
19395 DLLTOOL="$DLLTOOL"
19396
19397 # Used on cygwin: object dumper.
19398 OBJDUMP="$OBJDUMP"
19399
19400 # Used on cygwin: assembler.
19401 AS="$AS"
19402
19403 # The name of the directory that contains temporary libtool files.
19404 objdir=$objdir
19405
19406 # How to create reloadable object files.
19407 reload_flag=$lt_reload_flag
19408 reload_cmds=$lt_reload_cmds
19409
19410 # How to pass a linker flag through the compiler.
19411 wl=$lt_lt_prog_compiler_wl_RC
19412
19413 # Object file suffix (normally "o").
19414 objext="$ac_objext"
19415
19416 # Old archive suffix (normally "a").
19417 libext="$libext"
19418
19419 # Shared library suffix (normally ".so").
19420 shrext_cmds='$shrext_cmds'
19421
19422 # Executable file suffix (normally "").
19423 exeext="$exeext"
19424
19425 # Additional compiler flags for building library objects.
19426 pic_flag=$lt_lt_prog_compiler_pic_RC
19427 pic_mode=$pic_mode
19428
19429 # What is the maximum length of a command?
19430 max_cmd_len=$lt_cv_sys_max_cmd_len
19431
19432 # Does compiler simultaneously support -c and -o options?
19433 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19434
19435 # Must we lock files when doing compilation?
19436 need_locks=$lt_need_locks
19437
19438 # Do we need the lib prefix for modules?
19439 need_lib_prefix=$need_lib_prefix
19440
19441 # Do we need a version for libraries?
19442 need_version=$need_version
19443
19444 # Whether dlopen is supported.
19445 dlopen_support=$enable_dlopen
19446
19447 # Whether dlopen of programs is supported.
19448 dlopen_self=$enable_dlopen_self
19449
19450 # Whether dlopen of statically linked programs is supported.
19451 dlopen_self_static=$enable_dlopen_self_static
19452
19453 # Compiler flag to prevent dynamic linking.
19454 link_static_flag=$lt_lt_prog_compiler_static_RC
19455
19456 # Compiler flag to turn off builtin functions.
19457 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19458
19459 # Compiler flag to allow reflexive dlopens.
19460 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19461
19462 # Compiler flag to generate shared objects directly from archives.
19463 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19464
19465 # Compiler flag to generate thread-safe objects.
19466 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19467
19468 # Library versioning type.
19469 version_type=$version_type
19470
19471 # Format of library name prefix.
19472 libname_spec=$lt_libname_spec
19473
19474 # List of archive names. First name is the real one, the rest are links.
19475 # The last name is the one that the linker finds with -lNAME.
19476 library_names_spec=$lt_library_names_spec
19477
19478 # The coded name of the library, if different from the real name.
19479 soname_spec=$lt_soname_spec
19480
19481 # Commands used to build and install an old-style archive.
19482 RANLIB=$lt_RANLIB
19483 old_archive_cmds=$lt_old_archive_cmds_RC
19484 old_postinstall_cmds=$lt_old_postinstall_cmds
19485 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19486
19487 # Create an old-style archive from a shared archive.
19488 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19489
19490 # Create a temporary old-style archive to link instead of a shared archive.
19491 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19492
19493 # Commands used to build and install a shared archive.
19494 archive_cmds=$lt_archive_cmds_RC
19495 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19496 postinstall_cmds=$lt_postinstall_cmds
19497 postuninstall_cmds=$lt_postuninstall_cmds
19498
19499 # Commands used to build a loadable module (assumed same as above if empty)
19500 module_cmds=$lt_module_cmds_RC
19501 module_expsym_cmds=$lt_module_expsym_cmds_RC
19502
19503 # Commands to strip libraries.
19504 old_striplib=$lt_old_striplib
19505 striplib=$lt_striplib
19506
19507 # Dependencies to place before the objects being linked to create a
19508 # shared library.
19509 predep_objects=$lt_predep_objects_RC
19510
19511 # Dependencies to place after the objects being linked to create a
19512 # shared library.
19513 postdep_objects=$lt_postdep_objects_RC
19514
19515 # Dependencies to place before the objects being linked to create a
19516 # shared library.
19517 predeps=$lt_predeps_RC
19518
19519 # Dependencies to place after the objects being linked to create a
19520 # shared library.
19521 postdeps=$lt_postdeps_RC
19522
19523 # The library search path used internally by the compiler when linking
19524 # a shared library.
19525 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19526
19527 # Method to check whether dependent libraries are shared objects.
19528 deplibs_check_method=$lt_deplibs_check_method
19529
19530 # Command to use when deplibs_check_method == file_magic.
19531 file_magic_cmd=$lt_file_magic_cmd
19532
19533 # Flag that allows shared libraries with undefined symbols to be built.
19534 allow_undefined_flag=$lt_allow_undefined_flag_RC
19535
19536 # Flag that forces no undefined symbols.
19537 no_undefined_flag=$lt_no_undefined_flag_RC
19538
19539 # Commands used to finish a libtool library installation in a directory.
19540 finish_cmds=$lt_finish_cmds
19541
19542 # Same as above, but a single script fragment to be evaled but not shown.
19543 finish_eval=$lt_finish_eval
19544
19545 # Take the output of nm and produce a listing of raw symbols and C names.
19546 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19547
19548 # Transform the output of nm in a proper C declaration
19549 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19550
19551 # Transform the output of nm in a C name address pair
19552 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19553
19554 # This is the shared library runtime path variable.
19555 runpath_var=$runpath_var
19556
19557 # This is the shared library path variable.
19558 shlibpath_var=$shlibpath_var
19559
19560 # Is shlibpath searched before the hard-coded library search path?
19561 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19562
19563 # How to hardcode a shared library path into an executable.
19564 hardcode_action=$hardcode_action_RC
19565
19566 # Whether we should hardcode library paths into libraries.
19567 hardcode_into_libs=$hardcode_into_libs
19568
19569 # Flag to hardcode \$libdir into a binary during linking.
19570 # This must work even if \$libdir does not exist.
19571 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19572
19573 # If ld is used when linking, flag to hardcode \$libdir into
19574 # a binary during linking. This must work even if \$libdir does
19575 # not exist.
19576 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19577
19578 # Whether we need a single -rpath flag with a separated argument.
19579 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19580
19581 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19582 # resulting binary.
19583 hardcode_direct=$hardcode_direct_RC
19584
19585 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19586 # resulting binary.
19587 hardcode_minus_L=$hardcode_minus_L_RC
19588
19589 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19590 # the resulting binary.
19591 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19592
19593 # Set to yes if building a shared library automatically hardcodes DIR into the library
19594 # and all subsequent libraries and executables linked against it.
19595 hardcode_automatic=$hardcode_automatic_RC
19596
19597 # Variables whose values should be saved in libtool wrapper scripts and
19598 # restored at relink time.
19599 variables_saved_for_relink="$variables_saved_for_relink"
19600
19601 # Whether libtool must link a program against all its dependency libraries.
19602 link_all_deplibs=$link_all_deplibs_RC
19603
19604 # Compile-time system search path for libraries
19605 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19606
19607 # Run-time system search path for libraries
19608 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19609
19610 # Fix the shell variable \$srcfile for the compiler.
19611 fix_srcfile_path="$fix_srcfile_path_RC"
19612
19613 # Set to yes if exported symbols are required.
19614 always_export_symbols=$always_export_symbols_RC
19615
19616 # The commands to list exported symbols.
19617 export_symbols_cmds=$lt_export_symbols_cmds_RC
19618
19619 # The commands to extract the exported symbol list from a shared archive.
19620 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19621
19622 # Symbols that should not be listed in the preloaded symbols.
19623 exclude_expsyms=$lt_exclude_expsyms_RC
19624
19625 # Symbols that must always be exported.
19626 include_expsyms=$lt_include_expsyms_RC
19627
19628 # ### END LIBTOOL TAG CONFIG: $tagname
19629
19630 __EOF__
19631
19632
19633 else
19634 # If there is no Makefile yet, we rely on a make rule to execute
19635 # `config.status --recheck' to rerun these tests and create the
19636 # libtool script then.
19637 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19638 if test -f "$ltmain_in"; then
19639 test -f Makefile && make "$ltmain"
19640 fi
19641 fi
19642
19643
19644 ac_ext=c
19645 ac_cpp='$CPP $CPPFLAGS'
19646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19649
19650 CC="$lt_save_CC"
19651
19652 ;;
19653
19654 *)
19655 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19656 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19657 { (exit 1); exit 1; }; }
19658 ;;
19659 esac
19660
19661 # Append the new tag name to the list of available tags.
19662 if test -n "$tagname" ; then
19663 available_tags="$available_tags $tagname"
19664 fi
19665 fi
19666 done
19667 IFS="$lt_save_ifs"
19668
19669 # Now substitute the updated list of available tags.
19670 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19671 mv "${ofile}T" "$ofile"
19672 chmod +x "$ofile"
19673 else
19674 rm -f "${ofile}T"
19675 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19676 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19677 { (exit 1); exit 1; }; }
19678 fi
19679 fi
19680
19681
19682
19683 # This can be used to rebuild libtool when needed
19684 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19685
19686 # Always use our own libtool.
19687 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19688
19689 # Prevent multiple expansion
19690
19691
19692
19693
19694
19695
19696
19697
19698
19699
19700
19701
19702
19703
19704
19705
19706
19707
19708
19709
19710 ac_ext=c
19711 ac_cpp='$CPP $CPPFLAGS'
19712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19715 if test -n "$ac_tool_prefix"; then
19716 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19717 set dummy ${ac_tool_prefix}gcc; ac_word=$2
19718 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19720 if test "${ac_cv_prog_CC+set}" = set; then
19721 echo $ECHO_N "(cached) $ECHO_C" >&6
19722 else
19723 if test -n "$CC"; then
19724 ac_cv_prog_CC="$CC" # Let the user override the test.
19725 else
19726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19727 for as_dir in $PATH
19728 do
19729 IFS=$as_save_IFS
19730 test -z "$as_dir" && as_dir=.
19731 for ac_exec_ext in '' $ac_executable_extensions; do
19732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19733 ac_cv_prog_CC="${ac_tool_prefix}gcc"
19734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19735 break 2
19736 fi
19737 done
19738 done
19739 IFS=$as_save_IFS
19740
19741 fi
19742 fi
19743 CC=$ac_cv_prog_CC
19744 if test -n "$CC"; then
19745 { echo "$as_me:$LINENO: result: $CC" >&5
19746 echo "${ECHO_T}$CC" >&6; }
19747 else
19748 { echo "$as_me:$LINENO: result: no" >&5
19749 echo "${ECHO_T}no" >&6; }
19750 fi
19751
19752
19753 fi
19754 if test -z "$ac_cv_prog_CC"; then
19755 ac_ct_CC=$CC
19756 # Extract the first word of "gcc", so it can be a program name with args.
19757 set dummy gcc; ac_word=$2
19758 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19760 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19761 echo $ECHO_N "(cached) $ECHO_C" >&6
19762 else
19763 if test -n "$ac_ct_CC"; then
19764 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19765 else
19766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19767 for as_dir in $PATH
19768 do
19769 IFS=$as_save_IFS
19770 test -z "$as_dir" && as_dir=.
19771 for ac_exec_ext in '' $ac_executable_extensions; do
19772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19773 ac_cv_prog_ac_ct_CC="gcc"
19774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19775 break 2
19776 fi
19777 done
19778 done
19779 IFS=$as_save_IFS
19780
19781 fi
19782 fi
19783 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19784 if test -n "$ac_ct_CC"; then
19785 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19786 echo "${ECHO_T}$ac_ct_CC" >&6; }
19787 else
19788 { echo "$as_me:$LINENO: result: no" >&5
19789 echo "${ECHO_T}no" >&6; }
19790 fi
19791
19792 if test "x$ac_ct_CC" = x; then
19793 CC=""
19794 else
19795 case $cross_compiling:$ac_tool_warned in
19796 yes:)
19797 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19798 whose name does not start with the host triplet. If you think this
19799 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
19800 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19801 whose name does not start with the host triplet. If you think this
19802 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
19803 ac_tool_warned=yes ;;
19804 esac
19805 CC=$ac_ct_CC
19806 fi
19807 else
19808 CC="$ac_cv_prog_CC"
19809 fi
19810
19811 if test -z "$CC"; then
19812 if test -n "$ac_tool_prefix"; then
19813 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19814 set dummy ${ac_tool_prefix}cc; ac_word=$2
19815 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19817 if test "${ac_cv_prog_CC+set}" = set; then
19818 echo $ECHO_N "(cached) $ECHO_C" >&6
19819 else
19820 if test -n "$CC"; then
19821 ac_cv_prog_CC="$CC" # Let the user override the test.
19822 else
19823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19824 for as_dir in $PATH
19825 do
19826 IFS=$as_save_IFS
19827 test -z "$as_dir" && as_dir=.
19828 for ac_exec_ext in '' $ac_executable_extensions; do
19829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19830 ac_cv_prog_CC="${ac_tool_prefix}cc"
19831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19832 break 2
19833 fi
19834 done
19835 done
19836 IFS=$as_save_IFS
19837
19838 fi
19839 fi
19840 CC=$ac_cv_prog_CC
19841 if test -n "$CC"; then
19842 { echo "$as_me:$LINENO: result: $CC" >&5
19843 echo "${ECHO_T}$CC" >&6; }
19844 else
19845 { echo "$as_me:$LINENO: result: no" >&5
19846 echo "${ECHO_T}no" >&6; }
19847 fi
19848
19849
19850 fi
19851 fi
19852 if test -z "$CC"; then
19853 # Extract the first word of "cc", so it can be a program name with args.
19854 set dummy cc; ac_word=$2
19855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19857 if test "${ac_cv_prog_CC+set}" = set; then
19858 echo $ECHO_N "(cached) $ECHO_C" >&6
19859 else
19860 if test -n "$CC"; then
19861 ac_cv_prog_CC="$CC" # Let the user override the test.
19862 else
19863 ac_prog_rejected=no
19864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19865 for as_dir in $PATH
19866 do
19867 IFS=$as_save_IFS
19868 test -z "$as_dir" && as_dir=.
19869 for ac_exec_ext in '' $ac_executable_extensions; do
19870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19871 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19872 ac_prog_rejected=yes
19873 continue
19874 fi
19875 ac_cv_prog_CC="cc"
19876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19877 break 2
19878 fi
19879 done
19880 done
19881 IFS=$as_save_IFS
19882
19883 if test $ac_prog_rejected = yes; then
19884 # We found a bogon in the path, so make sure we never use it.
19885 set dummy $ac_cv_prog_CC
19886 shift
19887 if test $# != 0; then
19888 # We chose a different compiler from the bogus one.
19889 # However, it has the same basename, so the bogon will be chosen
19890 # first if we set CC to just the basename; use the full file name.
19891 shift
19892 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19893 fi
19894 fi
19895 fi
19896 fi
19897 CC=$ac_cv_prog_CC
19898 if test -n "$CC"; then
19899 { echo "$as_me:$LINENO: result: $CC" >&5
19900 echo "${ECHO_T}$CC" >&6; }
19901 else
19902 { echo "$as_me:$LINENO: result: no" >&5
19903 echo "${ECHO_T}no" >&6; }
19904 fi
19905
19906
19907 fi
19908 if test -z "$CC"; then
19909 if test -n "$ac_tool_prefix"; then
19910 for ac_prog in cl.exe
19911 do
19912 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19913 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19914 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19916 if test "${ac_cv_prog_CC+set}" = set; then
19917 echo $ECHO_N "(cached) $ECHO_C" >&6
19918 else
19919 if test -n "$CC"; then
19920 ac_cv_prog_CC="$CC" # Let the user override the test.
19921 else
19922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19923 for as_dir in $PATH
19924 do
19925 IFS=$as_save_IFS
19926 test -z "$as_dir" && as_dir=.
19927 for ac_exec_ext in '' $ac_executable_extensions; do
19928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19929 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19931 break 2
19932 fi
19933 done
19934 done
19935 IFS=$as_save_IFS
19936
19937 fi
19938 fi
19939 CC=$ac_cv_prog_CC
19940 if test -n "$CC"; then
19941 { echo "$as_me:$LINENO: result: $CC" >&5
19942 echo "${ECHO_T}$CC" >&6; }
19943 else
19944 { echo "$as_me:$LINENO: result: no" >&5
19945 echo "${ECHO_T}no" >&6; }
19946 fi
19947
19948
19949 test -n "$CC" && break
19950 done
19951 fi
19952 if test -z "$CC"; then
19953 ac_ct_CC=$CC
19954 for ac_prog in cl.exe
19955 do
19956 # Extract the first word of "$ac_prog", so it can be a program name with args.
19957 set dummy $ac_prog; ac_word=$2
19958 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19960 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19961 echo $ECHO_N "(cached) $ECHO_C" >&6
19962 else
19963 if test -n "$ac_ct_CC"; then
19964 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19965 else
19966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19967 for as_dir in $PATH
19968 do
19969 IFS=$as_save_IFS
19970 test -z "$as_dir" && as_dir=.
19971 for ac_exec_ext in '' $ac_executable_extensions; do
19972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19973 ac_cv_prog_ac_ct_CC="$ac_prog"
19974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19975 break 2
19976 fi
19977 done
19978 done
19979 IFS=$as_save_IFS
19980
19981 fi
19982 fi
19983 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19984 if test -n "$ac_ct_CC"; then
19985 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19986 echo "${ECHO_T}$ac_ct_CC" >&6; }
19987 else
19988 { echo "$as_me:$LINENO: result: no" >&5
19989 echo "${ECHO_T}no" >&6; }
19990 fi
19991
19992
19993 test -n "$ac_ct_CC" && break
19994 done
19995
19996 if test "x$ac_ct_CC" = x; then
19997 CC=""
19998 else
19999 case $cross_compiling:$ac_tool_warned in
20000 yes:)
20001 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20002 whose name does not start with the host triplet. If you think this
20003 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
20004 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20005 whose name does not start with the host triplet. If you think this
20006 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
20007 ac_tool_warned=yes ;;
20008 esac
20009 CC=$ac_ct_CC
20010 fi
20011 fi
20012
20013 fi
20014
20015
20016 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
20017 See \`config.log' for more details." >&5
20018 echo "$as_me: error: no acceptable C compiler found in \$PATH
20019 See \`config.log' for more details." >&2;}
20020 { (exit 1); exit 1; }; }
20021
20022 # Provide some information about the compiler.
20023 echo "$as_me:$LINENO: checking for C compiler version" >&5
20024 ac_compiler=`set X $ac_compile; echo $2`
20025 { (ac_try="$ac_compiler --version >&5"
20026 case "(($ac_try" in
20027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20028 *) ac_try_echo=$ac_try;;
20029 esac
20030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20031 (eval "$ac_compiler --version >&5") 2>&5
20032 ac_status=$?
20033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20034 (exit $ac_status); }
20035 { (ac_try="$ac_compiler -v >&5"
20036 case "(($ac_try" in
20037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20038 *) ac_try_echo=$ac_try;;
20039 esac
20040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20041 (eval "$ac_compiler -v >&5") 2>&5
20042 ac_status=$?
20043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20044 (exit $ac_status); }
20045 { (ac_try="$ac_compiler -V >&5"
20046 case "(($ac_try" in
20047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20048 *) ac_try_echo=$ac_try;;
20049 esac
20050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20051 (eval "$ac_compiler -V >&5") 2>&5
20052 ac_status=$?
20053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20054 (exit $ac_status); }
20055
20056 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
20057 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
20058 if test "${ac_cv_c_compiler_gnu+set}" = set; then
20059 echo $ECHO_N "(cached) $ECHO_C" >&6
20060 else
20061 cat >conftest.$ac_ext <<_ACEOF
20062 /* confdefs.h. */
20063 _ACEOF
20064 cat confdefs.h >>conftest.$ac_ext
20065 cat >>conftest.$ac_ext <<_ACEOF
20066 /* end confdefs.h. */
20067
20068 int
20069 main ()
20070 {
20071 #ifndef __GNUC__
20072 choke me
20073 #endif
20074
20075 ;
20076 return 0;
20077 }
20078 _ACEOF
20079 rm -f conftest.$ac_objext
20080 if { (ac_try="$ac_compile"
20081 case "(($ac_try" in
20082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20083 *) ac_try_echo=$ac_try;;
20084 esac
20085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20086 (eval "$ac_compile") 2>conftest.er1
20087 ac_status=$?
20088 grep -v '^ *+' conftest.er1 >conftest.err
20089 rm -f conftest.er1
20090 cat conftest.err >&5
20091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20092 (exit $ac_status); } &&
20093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20094 { (case "(($ac_try" in
20095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20096 *) ac_try_echo=$ac_try;;
20097 esac
20098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20099 (eval "$ac_try") 2>&5
20100 ac_status=$?
20101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20102 (exit $ac_status); }; } &&
20103 { ac_try='test -s conftest.$ac_objext'
20104 { (case "(($ac_try" in
20105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20106 *) ac_try_echo=$ac_try;;
20107 esac
20108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20109 (eval "$ac_try") 2>&5
20110 ac_status=$?
20111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20112 (exit $ac_status); }; }; then
20113 ac_compiler_gnu=yes
20114 else
20115 echo "$as_me: failed program was:" >&5
20116 sed 's/^/| /' conftest.$ac_ext >&5
20117
20118 ac_compiler_gnu=no
20119 fi
20120
20121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20122 ac_cv_c_compiler_gnu=$ac_compiler_gnu
20123
20124 fi
20125 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
20126 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
20127 GCC=`test $ac_compiler_gnu = yes && echo yes`
20128 ac_test_CFLAGS=${CFLAGS+set}
20129 ac_save_CFLAGS=$CFLAGS
20130 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
20131 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
20132 if test "${ac_cv_prog_cc_g+set}" = set; then
20133 echo $ECHO_N "(cached) $ECHO_C" >&6
20134 else
20135 ac_save_c_werror_flag=$ac_c_werror_flag
20136 ac_c_werror_flag=yes
20137 ac_cv_prog_cc_g=no
20138 CFLAGS="-g"
20139 cat >conftest.$ac_ext <<_ACEOF
20140 /* confdefs.h. */
20141 _ACEOF
20142 cat confdefs.h >>conftest.$ac_ext
20143 cat >>conftest.$ac_ext <<_ACEOF
20144 /* end confdefs.h. */
20145
20146 int
20147 main ()
20148 {
20149
20150 ;
20151 return 0;
20152 }
20153 _ACEOF
20154 rm -f conftest.$ac_objext
20155 if { (ac_try="$ac_compile"
20156 case "(($ac_try" in
20157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20158 *) ac_try_echo=$ac_try;;
20159 esac
20160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20161 (eval "$ac_compile") 2>conftest.er1
20162 ac_status=$?
20163 grep -v '^ *+' conftest.er1 >conftest.err
20164 rm -f conftest.er1
20165 cat conftest.err >&5
20166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20167 (exit $ac_status); } &&
20168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20169 { (case "(($ac_try" in
20170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20171 *) ac_try_echo=$ac_try;;
20172 esac
20173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20174 (eval "$ac_try") 2>&5
20175 ac_status=$?
20176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20177 (exit $ac_status); }; } &&
20178 { ac_try='test -s conftest.$ac_objext'
20179 { (case "(($ac_try" in
20180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20181 *) ac_try_echo=$ac_try;;
20182 esac
20183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20184 (eval "$ac_try") 2>&5
20185 ac_status=$?
20186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20187 (exit $ac_status); }; }; then
20188 ac_cv_prog_cc_g=yes
20189 else
20190 echo "$as_me: failed program was:" >&5
20191 sed 's/^/| /' conftest.$ac_ext >&5
20192
20193 CFLAGS=""
20194 cat >conftest.$ac_ext <<_ACEOF
20195 /* confdefs.h. */
20196 _ACEOF
20197 cat confdefs.h >>conftest.$ac_ext
20198 cat >>conftest.$ac_ext <<_ACEOF
20199 /* end confdefs.h. */
20200
20201 int
20202 main ()
20203 {
20204
20205 ;
20206 return 0;
20207 }
20208 _ACEOF
20209 rm -f conftest.$ac_objext
20210 if { (ac_try="$ac_compile"
20211 case "(($ac_try" in
20212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20213 *) ac_try_echo=$ac_try;;
20214 esac
20215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20216 (eval "$ac_compile") 2>conftest.er1
20217 ac_status=$?
20218 grep -v '^ *+' conftest.er1 >conftest.err
20219 rm -f conftest.er1
20220 cat conftest.err >&5
20221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20222 (exit $ac_status); } &&
20223 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20224 { (case "(($ac_try" in
20225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20226 *) ac_try_echo=$ac_try;;
20227 esac
20228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20229 (eval "$ac_try") 2>&5
20230 ac_status=$?
20231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20232 (exit $ac_status); }; } &&
20233 { ac_try='test -s conftest.$ac_objext'
20234 { (case "(($ac_try" in
20235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20236 *) ac_try_echo=$ac_try;;
20237 esac
20238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20239 (eval "$ac_try") 2>&5
20240 ac_status=$?
20241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242 (exit $ac_status); }; }; then
20243 :
20244 else
20245 echo "$as_me: failed program was:" >&5
20246 sed 's/^/| /' conftest.$ac_ext >&5
20247
20248 ac_c_werror_flag=$ac_save_c_werror_flag
20249 CFLAGS="-g"
20250 cat >conftest.$ac_ext <<_ACEOF
20251 /* confdefs.h. */
20252 _ACEOF
20253 cat confdefs.h >>conftest.$ac_ext
20254 cat >>conftest.$ac_ext <<_ACEOF
20255 /* end confdefs.h. */
20256
20257 int
20258 main ()
20259 {
20260
20261 ;
20262 return 0;
20263 }
20264 _ACEOF
20265 rm -f conftest.$ac_objext
20266 if { (ac_try="$ac_compile"
20267 case "(($ac_try" in
20268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20269 *) ac_try_echo=$ac_try;;
20270 esac
20271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20272 (eval "$ac_compile") 2>conftest.er1
20273 ac_status=$?
20274 grep -v '^ *+' conftest.er1 >conftest.err
20275 rm -f conftest.er1
20276 cat conftest.err >&5
20277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20278 (exit $ac_status); } &&
20279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20280 { (case "(($ac_try" in
20281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20282 *) ac_try_echo=$ac_try;;
20283 esac
20284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20285 (eval "$ac_try") 2>&5
20286 ac_status=$?
20287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20288 (exit $ac_status); }; } &&
20289 { ac_try='test -s conftest.$ac_objext'
20290 { (case "(($ac_try" in
20291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20292 *) ac_try_echo=$ac_try;;
20293 esac
20294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20295 (eval "$ac_try") 2>&5
20296 ac_status=$?
20297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20298 (exit $ac_status); }; }; then
20299 ac_cv_prog_cc_g=yes
20300 else
20301 echo "$as_me: failed program was:" >&5
20302 sed 's/^/| /' conftest.$ac_ext >&5
20303
20304
20305 fi
20306
20307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20308 fi
20309
20310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20311 fi
20312
20313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20314 ac_c_werror_flag=$ac_save_c_werror_flag
20315 fi
20316 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
20317 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
20318 if test "$ac_test_CFLAGS" = set; then
20319 CFLAGS=$ac_save_CFLAGS
20320 elif test $ac_cv_prog_cc_g = yes; then
20321 if test "$GCC" = yes; then
20322 CFLAGS="-g -O2"
20323 else
20324 CFLAGS="-g"
20325 fi
20326 else
20327 if test "$GCC" = yes; then
20328 CFLAGS="-O2"
20329 else
20330 CFLAGS=
20331 fi
20332 fi
20333 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
20334 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
20335 if test "${ac_cv_prog_cc_c89+set}" = set; then
20336 echo $ECHO_N "(cached) $ECHO_C" >&6
20337 else
20338 ac_cv_prog_cc_c89=no
20339 ac_save_CC=$CC
20340 cat >conftest.$ac_ext <<_ACEOF
20341 /* confdefs.h. */
20342 _ACEOF
20343 cat confdefs.h >>conftest.$ac_ext
20344 cat >>conftest.$ac_ext <<_ACEOF
20345 /* end confdefs.h. */
20346 #include <stdarg.h>
20347 #include <stdio.h>
20348 #include <sys/types.h>
20349 #include <sys/stat.h>
20350 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
20351 struct buf { int x; };
20352 FILE * (*rcsopen) (struct buf *, struct stat *, int);
20353 static char *e (p, i)
20354 char **p;
20355 int i;
20356 {
20357 return p[i];
20358 }
20359 static char *f (char * (*g) (char **, int), char **p, ...)
20360 {
20361 char *s;
20362 va_list v;
20363 va_start (v,p);
20364 s = g (p, va_arg (v,int));
20365 va_end (v);
20366 return s;
20367 }
20368
20369 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
20370 function prototypes and stuff, but not '\xHH' hex character constants.
20371 These don't provoke an error unfortunately, instead are silently treated
20372 as 'x'. The following induces an error, until -std is added to get
20373 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
20374 array size at least. It's necessary to write '\x00'==0 to get something
20375 that's true only with -std. */
20376 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20377
20378 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20379 inside strings and character constants. */
20380 #define FOO(x) 'x'
20381 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20382
20383 int test (int i, double x);
20384 struct s1 {int (*f) (int a);};
20385 struct s2 {int (*f) (double a);};
20386 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20387 int argc;
20388 char **argv;
20389 int
20390 main ()
20391 {
20392 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
20393 ;
20394 return 0;
20395 }
20396 _ACEOF
20397 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20398 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20399 do
20400 CC="$ac_save_CC $ac_arg"
20401 rm -f conftest.$ac_objext
20402 if { (ac_try="$ac_compile"
20403 case "(($ac_try" in
20404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20405 *) ac_try_echo=$ac_try;;
20406 esac
20407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20408 (eval "$ac_compile") 2>conftest.er1
20409 ac_status=$?
20410 grep -v '^ *+' conftest.er1 >conftest.err
20411 rm -f conftest.er1
20412 cat conftest.err >&5
20413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20414 (exit $ac_status); } &&
20415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20416 { (case "(($ac_try" in
20417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20418 *) ac_try_echo=$ac_try;;
20419 esac
20420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20421 (eval "$ac_try") 2>&5
20422 ac_status=$?
20423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20424 (exit $ac_status); }; } &&
20425 { ac_try='test -s conftest.$ac_objext'
20426 { (case "(($ac_try" in
20427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20428 *) ac_try_echo=$ac_try;;
20429 esac
20430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20431 (eval "$ac_try") 2>&5
20432 ac_status=$?
20433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20434 (exit $ac_status); }; }; then
20435 ac_cv_prog_cc_c89=$ac_arg
20436 else
20437 echo "$as_me: failed program was:" >&5
20438 sed 's/^/| /' conftest.$ac_ext >&5
20439
20440
20441 fi
20442
20443 rm -f core conftest.err conftest.$ac_objext
20444 test "x$ac_cv_prog_cc_c89" != "xno" && break
20445 done
20446 rm -f conftest.$ac_ext
20447 CC=$ac_save_CC
20448
20449 fi
20450 # AC_CACHE_VAL
20451 case "x$ac_cv_prog_cc_c89" in
20452 x)
20453 { echo "$as_me:$LINENO: result: none needed" >&5
20454 echo "${ECHO_T}none needed" >&6; } ;;
20455 xno)
20456 { echo "$as_me:$LINENO: result: unsupported" >&5
20457 echo "${ECHO_T}unsupported" >&6; } ;;
20458 *)
20459 CC="$CC $ac_cv_prog_cc_c89"
20460 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20461 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
20462 esac
20463
20464
20465 ac_ext=c
20466 ac_cpp='$CPP $CPPFLAGS'
20467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20470
20471 depcc="$CC" am_compiler_list=
20472
20473 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20474 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
20475 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20476 echo $ECHO_N "(cached) $ECHO_C" >&6
20477 else
20478 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20479 # We make a subdir and do the tests there. Otherwise we can end up
20480 # making bogus files that we don't know about and never remove. For
20481 # instance it was reported that on HP-UX the gcc test will end up
20482 # making a dummy file named `D' -- because `-MD' means `put the output
20483 # in D'.
20484 mkdir conftest.dir
20485 # Copy depcomp to subdir because otherwise we won't find it if we're
20486 # using a relative directory.
20487 cp "$am_depcomp" conftest.dir
20488 cd conftest.dir
20489 # We will build objects and dependencies in a subdirectory because
20490 # it helps to detect inapplicable dependency modes. For instance
20491 # both Tru64's cc and ICC support -MD to output dependencies as a
20492 # side effect of compilation, but ICC will put the dependencies in
20493 # the current directory while Tru64 will put them in the object
20494 # directory.
20495 mkdir sub
20496
20497 am_cv_CC_dependencies_compiler_type=none
20498 if test "$am_compiler_list" = ""; then
20499 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20500 fi
20501 for depmode in $am_compiler_list; do
20502 # Setup a source with many dependencies, because some compilers
20503 # like to wrap large dependency lists on column 80 (with \), and
20504 # we should not choose a depcomp mode which is confused by this.
20505 #
20506 # We need to recreate these files for each test, as the compiler may
20507 # overwrite some of them when testing with obscure command lines.
20508 # This happens at least with the AIX C compiler.
20509 : > sub/conftest.c
20510 for i in 1 2 3 4 5 6; do
20511 echo '#include "conftst'$i'.h"' >> sub/conftest.c
20512 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20513 # Solaris 8's {/usr,}/bin/sh.
20514 touch sub/conftst$i.h
20515 done
20516 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20517
20518 case $depmode in
20519 nosideeffect)
20520 # after this tag, mechanisms are not by side-effect, so they'll
20521 # only be used when explicitly requested
20522 if test "x$enable_dependency_tracking" = xyes; then
20523 continue
20524 else
20525 break
20526 fi
20527 ;;
20528 none) break ;;
20529 esac
20530 # We check with `-c' and `-o' for the sake of the "dashmstdout"
20531 # mode. It turns out that the SunPro C++ compiler does not properly
20532 # handle `-M -o', and we need to detect this.
20533 if depmode=$depmode \
20534 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20535 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20536 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20537 >/dev/null 2>conftest.err &&
20538 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20539 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20540 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20541 # icc doesn't choke on unknown options, it will just issue warnings
20542 # or remarks (even with -Werror). So we grep stderr for any message
20543 # that says an option was ignored or not supported.
20544 # When given -MP, icc 7.0 and 7.1 complain thusly:
20545 # icc: Command line warning: ignoring option '-M'; no argument required
20546 # The diagnosis changed in icc 8.0:
20547 # icc: Command line remark: option '-MP' not supported
20548 if (grep 'ignoring option' conftest.err ||
20549 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20550 am_cv_CC_dependencies_compiler_type=$depmode
20551 break
20552 fi
20553 fi
20554 done
20555
20556 cd ..
20557 rm -rf conftest.dir
20558 else
20559 am_cv_CC_dependencies_compiler_type=none
20560 fi
20561
20562 fi
20563 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20564 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
20565 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20566
20567
20568
20569 if
20570 test "x$enable_dependency_tracking" != xno \
20571 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20572 am__fastdepCC_TRUE=
20573 am__fastdepCC_FALSE='#'
20574 else
20575 am__fastdepCC_TRUE='#'
20576 am__fastdepCC_FALSE=
20577 fi
20578
20579
20580
20581
20582
20583
20584
20585 # Check whether --with-xorg-module-dir was given.
20586 if test "${with_xorg_module_dir+set}" = set; then
20587 withval=$with_xorg_module_dir; moduledir="$withval"
20588 else
20589 moduledir="$libdir/xorg/modules"
20590 fi
20591
20592
20593 # Check whether --enable-dri was given.
20594 if test "${enable_dri+set}" = set; then
20595 enableval=$enable_dri; DRI="$enableval"
20596 else
20597 DRI=auto
20598 fi
20599
20600
20601 # Checks for extensions
20602
20603 SAVE_CFLAGS="$CFLAGS"
20604 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20605 cat >conftest.$ac_ext <<_ACEOF
20606 /* confdefs.h. */
20607 _ACEOF
20608 cat confdefs.h >>conftest.$ac_ext
20609 cat >>conftest.$ac_ext <<_ACEOF
20610 /* end confdefs.h. */
20611
20612 #include "xorg-server.h"
20613 #if !defined RANDR
20614 #error RANDR not defined
20615 #endif
20616
20617 int
20618 main ()
20619 {
20620
20621 ;
20622 return 0;
20623 }
20624 _ACEOF
20625 rm -f conftest.$ac_objext
20626 if { (ac_try="$ac_compile"
20627 case "(($ac_try" in
20628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20629 *) ac_try_echo=$ac_try;;
20630 esac
20631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20632 (eval "$ac_compile") 2>conftest.er1
20633 ac_status=$?
20634 grep -v '^ *+' conftest.er1 >conftest.err
20635 rm -f conftest.er1
20636 cat conftest.err >&5
20637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20638 (exit $ac_status); } &&
20639 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20640 { (case "(($ac_try" in
20641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20642 *) ac_try_echo=$ac_try;;
20643 esac
20644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20645 (eval "$ac_try") 2>&5
20646 ac_status=$?
20647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20648 (exit $ac_status); }; } &&
20649 { ac_try='test -s conftest.$ac_objext'
20650 { (case "(($ac_try" in
20651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20652 *) ac_try_echo=$ac_try;;
20653 esac
20654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20655 (eval "$ac_try") 2>&5
20656 ac_status=$?
20657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20658 (exit $ac_status); }; }; then
20659 _EXT_CHECK=yes
20660 else
20661 echo "$as_me: failed program was:" >&5
20662 sed 's/^/| /' conftest.$ac_ext >&5
20663
20664 _EXT_CHECK=no
20665 fi
20666
20667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20668 CFLAGS="$SAVE_CFLAGS"
20669 { echo "$as_me:$LINENO: checking if RANDR is defined" >&5
20670 echo $ECHO_N "checking if RANDR is defined... $ECHO_C" >&6; }
20671 { echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
20672 echo "${ECHO_T}$_EXT_CHECK" >&6; }
20673 if test "$_EXT_CHECK" != no; then
20674 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
20675 fi
20676
20677
20678 SAVE_CFLAGS="$CFLAGS"
20679 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20680 cat >conftest.$ac_ext <<_ACEOF
20681 /* confdefs.h. */
20682 _ACEOF
20683 cat confdefs.h >>conftest.$ac_ext
20684 cat >>conftest.$ac_ext <<_ACEOF
20685 /* end confdefs.h. */
20686
20687 #include "xorg-server.h"
20688 #if !defined RENDER
20689 #error RENDER not defined
20690 #endif
20691
20692 int
20693 main ()
20694 {
20695
20696 ;
20697 return 0;
20698 }
20699 _ACEOF
20700 rm -f conftest.$ac_objext
20701 if { (ac_try="$ac_compile"
20702 case "(($ac_try" in
20703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20704 *) ac_try_echo=$ac_try;;
20705 esac
20706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20707 (eval "$ac_compile") 2>conftest.er1
20708 ac_status=$?
20709 grep -v '^ *+' conftest.er1 >conftest.err
20710 rm -f conftest.er1
20711 cat conftest.err >&5
20712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20713 (exit $ac_status); } &&
20714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20715 { (case "(($ac_try" in
20716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20717 *) ac_try_echo=$ac_try;;
20718 esac
20719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20720 (eval "$ac_try") 2>&5
20721 ac_status=$?
20722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20723 (exit $ac_status); }; } &&
20724 { ac_try='test -s conftest.$ac_objext'
20725 { (case "(($ac_try" in
20726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20727 *) ac_try_echo=$ac_try;;
20728 esac
20729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20730 (eval "$ac_try") 2>&5
20731 ac_status=$?
20732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20733 (exit $ac_status); }; }; then
20734 _EXT_CHECK=yes
20735 else
20736 echo "$as_me: failed program was:" >&5
20737 sed 's/^/| /' conftest.$ac_ext >&5
20738
20739 _EXT_CHECK=no
20740 fi
20741
20742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20743 CFLAGS="$SAVE_CFLAGS"
20744 { echo "$as_me:$LINENO: checking if RENDER is defined" >&5
20745 echo $ECHO_N "checking if RENDER is defined... $ECHO_C" >&6; }
20746 { echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
20747 echo "${ECHO_T}$_EXT_CHECK" >&6; }
20748 if test "$_EXT_CHECK" != no; then
20749 REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
20750 fi
20751
20752
20753 SAVE_CFLAGS="$CFLAGS"
20754 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20755 cat >conftest.$ac_ext <<_ACEOF
20756 /* confdefs.h. */
20757 _ACEOF
20758 cat confdefs.h >>conftest.$ac_ext
20759 cat >>conftest.$ac_ext <<_ACEOF
20760 /* end confdefs.h. */
20761
20762 #include "xorg-server.h"
20763 #if !defined XV
20764 #error XV not defined
20765 #endif
20766
20767 int
20768 main ()
20769 {
20770
20771 ;
20772 return 0;
20773 }
20774 _ACEOF
20775 rm -f conftest.$ac_objext
20776 if { (ac_try="$ac_compile"
20777 case "(($ac_try" in
20778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20779 *) ac_try_echo=$ac_try;;
20780 esac
20781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20782 (eval "$ac_compile") 2>conftest.er1
20783 ac_status=$?
20784 grep -v '^ *+' conftest.er1 >conftest.err
20785 rm -f conftest.er1
20786 cat conftest.err >&5
20787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20788 (exit $ac_status); } &&
20789 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20790 { (case "(($ac_try" in
20791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20792 *) ac_try_echo=$ac_try;;
20793 esac
20794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20795 (eval "$ac_try") 2>&5
20796 ac_status=$?
20797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20798 (exit $ac_status); }; } &&
20799 { ac_try='test -s conftest.$ac_objext'
20800 { (case "(($ac_try" in
20801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20802 *) ac_try_echo=$ac_try;;
20803 esac
20804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20805 (eval "$ac_try") 2>&5
20806 ac_status=$?
20807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20808 (exit $ac_status); }; }; then
20809 _EXT_CHECK=yes
20810 else
20811 echo "$as_me: failed program was:" >&5
20812 sed 's/^/| /' conftest.$ac_ext >&5
20813
20814 _EXT_CHECK=no
20815 fi
20816
20817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20818 CFLAGS="$SAVE_CFLAGS"
20819 { echo "$as_me:$LINENO: checking if XV is defined" >&5
20820 echo $ECHO_N "checking if XV is defined... $ECHO_C" >&6; }
20821 { echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
20822 echo "${ECHO_T}$_EXT_CHECK" >&6; }
20823 if test "$_EXT_CHECK" != no; then
20824 REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
20825 fi
20826
20827
20828 SAVE_CFLAGS="$CFLAGS"
20829 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20830 cat >conftest.$ac_ext <<_ACEOF
20831 /* confdefs.h. */
20832 _ACEOF
20833 cat confdefs.h >>conftest.$ac_ext
20834 cat >>conftest.$ac_ext <<_ACEOF
20835 /* end confdefs.h. */
20836
20837 #include "xorg-server.h"
20838 #if !defined DPMSExtension
20839 #error DPMSExtension not defined
20840 #endif
20841
20842 int
20843 main ()
20844 {
20845
20846 ;
20847 return 0;
20848 }
20849 _ACEOF
20850 rm -f conftest.$ac_objext
20851 if { (ac_try="$ac_compile"
20852 case "(($ac_try" in
20853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20854 *) ac_try_echo=$ac_try;;
20855 esac
20856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20857 (eval "$ac_compile") 2>conftest.er1
20858 ac_status=$?
20859 grep -v '^ *+' conftest.er1 >conftest.err
20860 rm -f conftest.er1
20861 cat conftest.err >&5
20862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20863 (exit $ac_status); } &&
20864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20865 { (case "(($ac_try" in
20866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20867 *) ac_try_echo=$ac_try;;
20868 esac
20869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20870 (eval "$ac_try") 2>&5
20871 ac_status=$?
20872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20873 (exit $ac_status); }; } &&
20874 { ac_try='test -s conftest.$ac_objext'
20875 { (case "(($ac_try" in
20876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20877 *) ac_try_echo=$ac_try;;
20878 esac
20879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20880 (eval "$ac_try") 2>&5
20881 ac_status=$?
20882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20883 (exit $ac_status); }; }; then
20884 _EXT_CHECK=yes
20885 else
20886 echo "$as_me: failed program was:" >&5
20887 sed 's/^/| /' conftest.$ac_ext >&5
20888
20889 _EXT_CHECK=no
20890 fi
20891
20892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20893 CFLAGS="$SAVE_CFLAGS"
20894 { echo "$as_me:$LINENO: checking if DPMSExtension is defined" >&5
20895 echo $ECHO_N "checking if DPMSExtension is defined... $ECHO_C" >&6; }
20896 { echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
20897 echo "${ECHO_T}$_EXT_CHECK" >&6; }
20898 if test "$_EXT_CHECK" != no; then
20899 REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
20900 fi
20901
20902
20903 # Checks for pkg-config packages
20904
20905
20906 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20907 if test -n "$ac_tool_prefix"; then
20908 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20909 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20910 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20912 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20913 echo $ECHO_N "(cached) $ECHO_C" >&6
20914 else
20915 case $PKG_CONFIG in
20916 [\\/]* | ?:[\\/]*)
20917 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20918 ;;
20919 *)
20920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20921 for as_dir in $PATH
20922 do
20923 IFS=$as_save_IFS
20924 test -z "$as_dir" && as_dir=.
20925 for ac_exec_ext in '' $ac_executable_extensions; do
20926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20927 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20929 break 2
20930 fi
20931 done
20932 done
20933 IFS=$as_save_IFS
20934
20935 ;;
20936 esac
20937 fi
20938 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20939 if test -n "$PKG_CONFIG"; then
20940 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20941 echo "${ECHO_T}$PKG_CONFIG" >&6; }
20942 else
20943 { echo "$as_me:$LINENO: result: no" >&5
20944 echo "${ECHO_T}no" >&6; }
20945 fi
20946
20947
20948 fi
20949 if test -z "$ac_cv_path_PKG_CONFIG"; then
20950 ac_pt_PKG_CONFIG=$PKG_CONFIG
20951 # Extract the first word of "pkg-config", so it can be a program name with args.
20952 set dummy pkg-config; ac_word=$2
20953 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20955 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
20956 echo $ECHO_N "(cached) $ECHO_C" >&6
20957 else
20958 case $ac_pt_PKG_CONFIG in
20959 [\\/]* | ?:[\\/]*)
20960 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20961 ;;
20962 *)
20963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20964 for as_dir in $PATH
20965 do
20966 IFS=$as_save_IFS
20967 test -z "$as_dir" && as_dir=.
20968 for ac_exec_ext in '' $ac_executable_extensions; do
20969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20970 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20972 break 2
20973 fi
20974 done
20975 done
20976 IFS=$as_save_IFS
20977
20978 ;;
20979 esac
20980 fi
20981 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20982 if test -n "$ac_pt_PKG_CONFIG"; then
20983 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
20984 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
20985 else
20986 { echo "$as_me:$LINENO: result: no" >&5
20987 echo "${ECHO_T}no" >&6; }
20988 fi
20989
20990 if test "x$ac_pt_PKG_CONFIG" = x; then
20991 PKG_CONFIG=""
20992 else
20993 case $cross_compiling:$ac_tool_warned in
20994 yes:)
20995 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20996 whose name does not start with the host triplet. If you think this
20997 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
20998 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20999 whose name does not start with the host triplet. If you think this
21000 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
21001 ac_tool_warned=yes ;;
21002 esac
21003 PKG_CONFIG=$ac_pt_PKG_CONFIG
21004 fi
21005 else
21006 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21007 fi
21008
21009 fi
21010 if test -n "$PKG_CONFIG"; then
21011 _pkg_min_version=0.9.0
21012 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
21013 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
21014 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21015 { echo "$as_me:$LINENO: result: yes" >&5
21016 echo "${ECHO_T}yes" >&6; }
21017 else
21018 { echo "$as_me:$LINENO: result: no" >&5
21019 echo "${ECHO_T}no" >&6; }
21020 PKG_CONFIG=""
21021 fi
21022
21023 fi
21024
21025 pkg_failed=no
21026 { echo "$as_me:$LINENO: checking for XORG" >&5
21027 echo $ECHO_N "checking for XORG... $ECHO_C" >&6; }
21028
21029 if test -n "$PKG_CONFIG"; then
21030 if test -n "$XORG_CFLAGS"; then
21031 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
21032 else
21033 if test -n "$PKG_CONFIG" && \
21034 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\"") >&5
21035 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
21036 ac_status=$?
21037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21038 (exit $ac_status); }; then
21039 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
21040 else
21041 pkg_failed=yes
21042 fi
21043 fi
21044 else
21045 pkg_failed=untried
21046 fi
21047 if test -n "$PKG_CONFIG"; then
21048 if test -n "$XORG_LIBS"; then
21049 pkg_cv_XORG_LIBS="$XORG_LIBS"
21050 else
21051 if test -n "$PKG_CONFIG" && \
21052 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\"") >&5
21053 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
21054 ac_status=$?
21055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21056 (exit $ac_status); }; then
21057 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
21058 else
21059 pkg_failed=yes
21060 fi
21061 fi
21062 else
21063 pkg_failed=untried
21064 fi
21065
21066
21067
21068 if test $pkg_failed = yes; then
21069
21070 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21071 _pkg_short_errors_supported=yes
21072 else
21073 _pkg_short_errors_supported=no
21074 fi
21075 if test $_pkg_short_errors_supported = yes; then
21076 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES"`
21077 else
21078 XORG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES"`
21079 fi
21080 # Put the nasty error message in config.log where it belongs
21081 echo "$XORG_PKG_ERRORS" >&5
21082
21083 { { echo "$as_me:$LINENO: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
21084
21085 $XORG_PKG_ERRORS
21086
21087 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21088 installed software in a non-standard prefix.
21089
21090 Alternatively, you may set the environment variables XORG_CFLAGS
21091 and XORG_LIBS to avoid the need to call pkg-config.
21092 See the pkg-config man page for more details.
21093 " >&5
21094 echo "$as_me: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
21095
21096 $XORG_PKG_ERRORS
21097
21098 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21099 installed software in a non-standard prefix.
21100
21101 Alternatively, you may set the environment variables XORG_CFLAGS
21102 and XORG_LIBS to avoid the need to call pkg-config.
21103 See the pkg-config man page for more details.
21104 " >&2;}
21105 { (exit 1); exit 1; }; }
21106 elif test $pkg_failed = untried; then
21107 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
21108 is in your PATH or set the PKG_CONFIG environment variable to the full
21109 path to pkg-config.
21110
21111 Alternatively, you may set the environment variables XORG_CFLAGS
21112 and XORG_LIBS to avoid the need to call pkg-config.
21113 See the pkg-config man page for more details.
21114
21115 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
21116 See \`config.log' for more details." >&5
21117 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
21118 is in your PATH or set the PKG_CONFIG environment variable to the full
21119 path to pkg-config.
21120
21121 Alternatively, you may set the environment variables XORG_CFLAGS
21122 and XORG_LIBS to avoid the need to call pkg-config.
21123 See the pkg-config man page for more details.
21124
21125 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
21126 See \`config.log' for more details." >&2;}
21127 { (exit 1); exit 1; }; }
21128 else
21129 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
21130 XORG_LIBS=$pkg_cv_XORG_LIBS
21131 { echo "$as_me:$LINENO: result: yes" >&5
21132 echo "${ECHO_T}yes" >&6; }
21133 :
21134 fi
21135 sdkdir=$(pkg-config --variable=sdkdir xorg-server)
21136
21137 # Checks for libraries.
21138
21139 # Checks for header files.
21140 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21141 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21142 if test "${ac_cv_header_stdc+set}" = set; then
21143 echo $ECHO_N "(cached) $ECHO_C" >&6
21144 else
21145 cat >conftest.$ac_ext <<_ACEOF
21146 /* confdefs.h. */
21147 _ACEOF
21148 cat confdefs.h >>conftest.$ac_ext
21149 cat >>conftest.$ac_ext <<_ACEOF
21150 /* end confdefs.h. */
21151 #include <stdlib.h>
21152 #include <stdarg.h>
21153 #include <string.h>
21154 #include <float.h>
21155
21156 int
21157 main ()
21158 {
21159
21160 ;
21161 return 0;
21162 }
21163 _ACEOF
21164 rm -f conftest.$ac_objext
21165 if { (ac_try="$ac_compile"
21166 case "(($ac_try" in
21167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21168 *) ac_try_echo=$ac_try;;
21169 esac
21170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21171 (eval "$ac_compile") 2>conftest.er1
21172 ac_status=$?
21173 grep -v '^ *+' conftest.er1 >conftest.err
21174 rm -f conftest.er1
21175 cat conftest.err >&5
21176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21177 (exit $ac_status); } &&
21178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21179 { (case "(($ac_try" in
21180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21181 *) ac_try_echo=$ac_try;;
21182 esac
21183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21184 (eval "$ac_try") 2>&5
21185 ac_status=$?
21186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21187 (exit $ac_status); }; } &&
21188 { ac_try='test -s conftest.$ac_objext'
21189 { (case "(($ac_try" in
21190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21191 *) ac_try_echo=$ac_try;;
21192 esac
21193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21194 (eval "$ac_try") 2>&5
21195 ac_status=$?
21196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21197 (exit $ac_status); }; }; then
21198 ac_cv_header_stdc=yes
21199 else
21200 echo "$as_me: failed program was:" >&5
21201 sed 's/^/| /' conftest.$ac_ext >&5
21202
21203 ac_cv_header_stdc=no
21204 fi
21205
21206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21207
21208 if test $ac_cv_header_stdc = yes; then
21209 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21210 cat >conftest.$ac_ext <<_ACEOF
21211 /* confdefs.h. */
21212 _ACEOF
21213 cat confdefs.h >>conftest.$ac_ext
21214 cat >>conftest.$ac_ext <<_ACEOF
21215 /* end confdefs.h. */
21216 #include <string.h>
21217
21218 _ACEOF
21219 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21220 $EGREP "memchr" >/dev/null 2>&1; then
21221 :
21222 else
21223 ac_cv_header_stdc=no
21224 fi
21225 rm -f conftest*
21226
21227 fi
21228
21229 if test $ac_cv_header_stdc = yes; then
21230 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21231 cat >conftest.$ac_ext <<_ACEOF
21232 /* confdefs.h. */
21233 _ACEOF
21234 cat confdefs.h >>conftest.$ac_ext
21235 cat >>conftest.$ac_ext <<_ACEOF
21236 /* end confdefs.h. */
21237 #include <stdlib.h>
21238
21239 _ACEOF
21240 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21241 $EGREP "free" >/dev/null 2>&1; then
21242 :
21243 else
21244 ac_cv_header_stdc=no
21245 fi
21246 rm -f conftest*
21247
21248 fi
21249
21250 if test $ac_cv_header_stdc = yes; then
21251 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21252 if test "$cross_compiling" = yes; then
21253 :
21254 else
21255 cat >conftest.$ac_ext <<_ACEOF
21256 /* confdefs.h. */
21257 _ACEOF
21258 cat confdefs.h >>conftest.$ac_ext
21259 cat >>conftest.$ac_ext <<_ACEOF
21260 /* end confdefs.h. */
21261 #include <ctype.h>
21262 #include <stdlib.h>
21263 #if ((' ' & 0x0FF) == 0x020)
21264 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21265 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21266 #else
21267 # define ISLOWER(c) \
21268 (('a' <= (c) && (c) <= 'i') \
21269 || ('j' <= (c) && (c) <= 'r') \
21270 || ('s' <= (c) && (c) <= 'z'))
21271 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21272 #endif
21273
21274 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21275 int
21276 main ()
21277 {
21278 int i;
21279 for (i = 0; i < 256; i++)
21280 if (XOR (islower (i), ISLOWER (i))
21281 || toupper (i) != TOUPPER (i))
21282 return 2;
21283 return 0;
21284 }
21285 _ACEOF
21286 rm -f conftest$ac_exeext
21287 if { (ac_try="$ac_link"
21288 case "(($ac_try" in
21289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21290 *) ac_try_echo=$ac_try;;
21291 esac
21292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21293 (eval "$ac_link") 2>&5
21294 ac_status=$?
21295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21296 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21297 { (case "(($ac_try" in
21298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21299 *) ac_try_echo=$ac_try;;
21300 esac
21301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21302 (eval "$ac_try") 2>&5
21303 ac_status=$?
21304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21305 (exit $ac_status); }; }; then
21306 :
21307 else
21308 echo "$as_me: program exited with status $ac_status" >&5
21309 echo "$as_me: failed program was:" >&5
21310 sed 's/^/| /' conftest.$ac_ext >&5
21311
21312 ( exit $ac_status )
21313 ac_cv_header_stdc=no
21314 fi
21315 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21316 fi
21317
21318
21319 fi
21320 fi
21321 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21322 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21323 if test $ac_cv_header_stdc = yes; then
21324
21325 cat >>confdefs.h <<\_ACEOF
21326 #define STDC_HEADERS 1
21327 _ACEOF
21328
21329 fi
21330
21331
21332 if test "$DRI" != no; then
21333 as_ac_File=`echo "ac_cv_file_${sdkdir}/dri.h" | $as_tr_sh`
21334 { echo "$as_me:$LINENO: checking for ${sdkdir}/dri.h" >&5
21335 echo $ECHO_N "checking for ${sdkdir}/dri.h... $ECHO_C" >&6; }
21336 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
21337 echo $ECHO_N "(cached) $ECHO_C" >&6
21338 else
21339 test "$cross_compiling" = yes &&
21340 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
21341 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
21342 { (exit 1); exit 1; }; }
21343 if test -r "${sdkdir}/dri.h"; then
21344 eval "$as_ac_File=yes"
21345 else
21346 eval "$as_ac_File=no"
21347 fi
21348 fi
21349 ac_res=`eval echo '${'$as_ac_File'}'`
21350 { echo "$as_me:$LINENO: result: $ac_res" >&5
21351 echo "${ECHO_T}$ac_res" >&6; }
21352 if test `eval echo '${'$as_ac_File'}'` = yes; then
21353 have_dri_h="yes"
21354 else
21355 have_dri_h="no"
21356 fi
21357
21358 as_ac_File=`echo "ac_cv_file_${sdkdir}/sarea.h" | $as_tr_sh`
21359 { echo "$as_me:$LINENO: checking for ${sdkdir}/sarea.h" >&5
21360 echo $ECHO_N "checking for ${sdkdir}/sarea.h... $ECHO_C" >&6; }
21361 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
21362 echo $ECHO_N "(cached) $ECHO_C" >&6
21363 else
21364 test "$cross_compiling" = yes &&
21365 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
21366 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
21367 { (exit 1); exit 1; }; }
21368 if test -r "${sdkdir}/sarea.h"; then
21369 eval "$as_ac_File=yes"
21370 else
21371 eval "$as_ac_File=no"
21372 fi
21373 fi
21374 ac_res=`eval echo '${'$as_ac_File'}'`
21375 { echo "$as_me:$LINENO: result: $ac_res" >&5
21376 echo "${ECHO_T}$ac_res" >&6; }
21377 if test `eval echo '${'$as_ac_File'}'` = yes; then
21378 have_sarea_h="yes"
21379 else
21380 have_sarea_h="no"
21381 fi
21382
21383 as_ac_File=`echo "ac_cv_file_${sdkdir}/dristruct.h" | $as_tr_sh`
21384 { echo "$as_me:$LINENO: checking for ${sdkdir}/dristruct.h" >&5
21385 echo $ECHO_N "checking for ${sdkdir}/dristruct.h... $ECHO_C" >&6; }
21386 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
21387 echo $ECHO_N "(cached) $ECHO_C" >&6
21388 else
21389 test "$cross_compiling" = yes &&
21390 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
21391 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
21392 { (exit 1); exit 1; }; }
21393 if test -r "${sdkdir}/dristruct.h"; then
21394 eval "$as_ac_File=yes"
21395 else
21396 eval "$as_ac_File=no"
21397 fi
21398 fi
21399 ac_res=`eval echo '${'$as_ac_File'}'`
21400 { echo "$as_me:$LINENO: result: $ac_res" >&5
21401 echo "${ECHO_T}$ac_res" >&6; }
21402 if test `eval echo '${'$as_ac_File'}'` = yes; then
21403 have_dristruct_h="yes"
21404 else
21405 have_dristruct_h="no"
21406 fi
21407
21408 fi
21409
21410 { echo "$as_me:$LINENO: checking whether to include DRI support" >&5
21411 echo $ECHO_N "checking whether to include DRI support... $ECHO_C" >&6; }
21412 if test x$DRI = xauto; then
21413 if test "$have_dri_h" = yes -a \
21414 "$have_sarea_h" = yes -a \
21415 "$have_dristruct_h" = yes; then
21416 DRI="yes"
21417 else
21418 DRI="no"
21419 fi
21420 fi
21421 { echo "$as_me:$LINENO: result: $DRI" >&5
21422 echo "${ECHO_T}$DRI" >&6; }
21423
21424
21425
21426 if test x$DRI = xyes; then
21427 DRI_TRUE=
21428 DRI_FALSE='#'
21429 else
21430 DRI_TRUE='#'
21431 DRI_FALSE=
21432 fi
21433
21434 if test "$DRI" = yes; then
21435
21436 pkg_failed=no
21437 { echo "$as_me:$LINENO: checking for DRI" >&5
21438 echo $ECHO_N "checking for DRI... $ECHO_C" >&6; }
21439
21440 if test -n "$PKG_CONFIG"; then
21441 if test -n "$DRI_CFLAGS"; then
21442 pkg_cv_DRI_CFLAGS="$DRI_CFLAGS"
21443 else
21444 if test -n "$PKG_CONFIG" && \
21445 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto\"") >&5
21446 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto") 2>&5
21447 ac_status=$?
21448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21449 (exit $ac_status); }; then
21450 pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.0 xf86driproto" 2>/dev/null`
21451 else
21452 pkg_failed=yes
21453 fi
21454 fi
21455 else
21456 pkg_failed=untried
21457 fi
21458 if test -n "$PKG_CONFIG"; then
21459 if test -n "$DRI_LIBS"; then
21460 pkg_cv_DRI_LIBS="$DRI_LIBS"
21461 else
21462 if test -n "$PKG_CONFIG" && \
21463 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto\"") >&5
21464 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto") 2>&5
21465 ac_status=$?
21466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21467 (exit $ac_status); }; then
21468 pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.0 xf86driproto" 2>/dev/null`
21469 else
21470 pkg_failed=yes
21471 fi
21472 fi
21473 else
21474 pkg_failed=untried
21475 fi
21476
21477
21478
21479 if test $pkg_failed = yes; then
21480
21481 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21482 _pkg_short_errors_supported=yes
21483 else
21484 _pkg_short_errors_supported=no
21485 fi
21486 if test $_pkg_short_errors_supported = yes; then
21487 DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libdrm >= 2.0 xf86driproto"`
21488 else
21489 DRI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libdrm >= 2.0 xf86driproto"`
21490 fi
21491 # Put the nasty error message in config.log where it belongs
21492 echo "$DRI_PKG_ERRORS" >&5
21493
21494 { { echo "$as_me:$LINENO: error: Package requirements (libdrm >= 2.0 xf86driproto) were not met:
21495
21496 $DRI_PKG_ERRORS
21497
21498 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21499 installed software in a non-standard prefix.
21500
21501 Alternatively, you may set the environment variables DRI_CFLAGS
21502 and DRI_LIBS to avoid the need to call pkg-config.
21503 See the pkg-config man page for more details.
21504 " >&5
21505 echo "$as_me: error: Package requirements (libdrm >= 2.0 xf86driproto) were not met:
21506
21507 $DRI_PKG_ERRORS
21508
21509 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21510 installed software in a non-standard prefix.
21511
21512 Alternatively, you may set the environment variables DRI_CFLAGS
21513 and DRI_LIBS to avoid the need to call pkg-config.
21514 See the pkg-config man page for more details.
21515 " >&2;}
21516 { (exit 1); exit 1; }; }
21517 elif test $pkg_failed = untried; then
21518 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
21519 is in your PATH or set the PKG_CONFIG environment variable to the full
21520 path to pkg-config.
21521
21522 Alternatively, you may set the environment variables DRI_CFLAGS
21523 and DRI_LIBS to avoid the need to call pkg-config.
21524 See the pkg-config man page for more details.
21525
21526 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
21527 See \`config.log' for more details." >&5
21528 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
21529 is in your PATH or set the PKG_CONFIG environment variable to the full
21530 path to pkg-config.
21531
21532 Alternatively, you may set the environment variables DRI_CFLAGS
21533 and DRI_LIBS to avoid the need to call pkg-config.
21534 See the pkg-config man page for more details.
21535
21536 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
21537 See \`config.log' for more details." >&2;}
21538 { (exit 1); exit 1; }; }
21539 else
21540 DRI_CFLAGS=$pkg_cv_DRI_CFLAGS
21541 DRI_LIBS=$pkg_cv_DRI_LIBS
21542 { echo "$as_me:$LINENO: result: yes" >&5
21543 echo "${ECHO_T}yes" >&6; }
21544 :
21545 fi
21546
21547 cat >>confdefs.h <<\_ACEOF
21548 #define XF86DRI 1
21549 _ACEOF
21550
21551
21552 cat >>confdefs.h <<\_ACEOF
21553 #define XF86DRI_DEVEL 1
21554 _ACEOF
21555
21556 fi
21557
21558
21559
21560
21561
21562 DRIVER_NAME=tdfx
21563
21564
21565
21566
21567
21568 if test x$APP_MAN_SUFFIX = x ; then
21569 case $host_os in
21570 linux*) APP_MAN_SUFFIX=1x ;;
21571 *) APP_MAN_SUFFIX=1 ;;
21572 esac
21573 fi
21574 if test x$APP_MAN_DIR = x ; then
21575 case $host_os in
21576 linux*) APP_MAN_DIR='$(mandir)/man1' ;;
21577 *) APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' ;;
21578 esac
21579 fi
21580
21581 if test x$LIB_MAN_SUFFIX = x ; then
21582 case $host_os in
21583 linux*) LIB_MAN_SUFFIX=3x ;;
21584 *) LIB_MAN_SUFFIX=3 ;;
21585 esac
21586 fi
21587 if test x$LIB_MAN_DIR = x ; then
21588 case $host_os in
21589 linux*) LIB_MAN_DIR='$(mandir)/man3' ;;
21590 *) LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' ;;
21591 esac
21592 fi
21593
21594 if test x$FILE_MAN_SUFFIX = x ; then
21595 case $host_os in
21596 linux*) FILE_MAN_SUFFIX=5x ;;
21597 solaris*) FILE_MAN_SUFFIX=4 ;;
21598 *) FILE_MAN_SUFFIX=5 ;;
21599 esac
21600 fi
21601 if test x$FILE_MAN_DIR = x ; then
21602 case $host_os in
21603 linux*) FILE_MAN_DIR='$(mandir)/man5' ;;
21604 *) FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' ;;
21605 esac
21606 fi
21607
21608 # In Imake's linux.cf, the misc man suffix & dir was only changed for
21609 # LinuxDebian, not other Linuxes, so we leave it unchanged here
21610 if test x$MISC_MAN_SUFFIX = x ; then
21611 case $host_os in
21612 # linux*) MISC_MAN_SUFFIX=7x ;;
21613 solaris*) MISC_MAN_SUFFIX=5 ;;
21614 *) MISC_MAN_SUFFIX=7 ;;
21615 esac
21616 fi
21617 if test x$MISC_MAN_DIR = x ; then
21618 case $host_os in
21619 # linux*) MISC_MAN_DIR='$(mandir)/man7' ;;
21620 *) MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' ;;
21621 esac
21622 fi
21623
21624 # In Imake's linux.cf, the driver man suffix & dir was only changed for
21625 # LinuxDebian, not other Linuxes, so we leave it unchanged here
21626 if test x$DRIVER_MAN_SUFFIX = x ; then
21627 case $host_os in
21628 # linux*) DRIVER_MAN_SUFFIX=4x ;;
21629 solaris*) DRIVER_MAN_SUFFIX=7 ;;
21630 *) DRIVER_MAN_SUFFIX=4 ;;
21631 esac
21632 fi
21633 if test x$DRIVER_MAN_DIR = x ; then
21634 case $host_os in
21635 # linux*) DRIVER_MAN_DIR='$(mandir)/man4' ;;
21636 *) DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' ;;
21637 esac
21638 fi
21639
21640 if test x$ADMIN_MAN_SUFFIX = x ; then
21641 case $host_os in
21642 solaris*) ADMIN_MAN_SUFFIX=1m ;;
21643 *) ADMIN_MAN_SUFFIX=8 ;;
21644 esac
21645 fi
21646 if test x$ADMIN_MAN_DIR = x ; then
21647 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
21648 fi
21649
21650
21651
21652
21653
21654
21655
21656
21657
21658
21659
21660
21661
21662
21663
21664
21665
21666 # Check whether --with-release-version was given.
21667 if test "${with_release_version+set}" = set; then
21668 withval=$with_release_version; RELEASE_VERSION="$withval"
21669 else
21670 RELEASE_VERSION=""
21671 fi
21672
21673 if test "x$RELEASE_VERSION" != "x"; then
21674 PACKAGE="$PACKAGE-$RELEASE_VERSION"
21675 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
21676 { echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
21677 echo "$as_me: Building with package name set to $PACKAGE" >&6;}
21678 fi
21679
21680
21681 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
21682
21683 cat >confcache <<\_ACEOF
21684 # This file is a shell script that caches the results of configure
21685 # tests run on this system so they can be shared between configure
21686 # scripts and configure runs, see configure's option --config-cache.
21687 # It is not useful on other systems. If it contains results you don't
21688 # want to keep, you may remove or edit it.
21689 #
21690 # config.status only pays attention to the cache file if you give it
21691 # the --recheck option to rerun configure.
21692 #
21693 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21694 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21695 # following values.
21696
21697 _ACEOF
21698
21699 # The following way of writing the cache mishandles newlines in values,
21700 # but we know of no workaround that is simple, portable, and efficient.
21701 # So, we kill variables containing newlines.
21702 # Ultrix sh set writes to stderr and can't be redirected directly,
21703 # and sets the high bit in the cache file unless we assign to the vars.
21704 (
21705 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21706 eval ac_val=\$$ac_var
21707 case $ac_val in #(
21708 *${as_nl}*)
21709 case $ac_var in #(
21710 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21711 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21712 esac
21713 case $ac_var in #(
21714 _ | IFS | as_nl) ;; #(
21715 *) $as_unset $ac_var ;;
21716 esac ;;
21717 esac
21718 done
21719
21720 (set) 2>&1 |
21721 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21722 *${as_nl}ac_space=\ *)
21723 # `set' does not quote correctly, so add quotes (double-quote
21724 # substitution turns \\\\ into \\, and sed turns \\ into \).
21725 sed -n \
21726 "s/'/'\\\\''/g;
21727 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21728 ;; #(
21729 *)
21730 # `set' quotes correctly as required by POSIX, so do not add quotes.
21731 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21732 ;;
21733 esac |
21734 sort
21735 ) |
21736 sed '
21737 /^ac_cv_env_/b end
21738 t clear
21739 :clear
21740 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21741 t end
21742 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21743 :end' >>confcache
21744 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21745 if test -w "$cache_file"; then
21746 test "x$cache_file" != "x/dev/null" &&
21747 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21748 echo "$as_me: updating cache $cache_file" >&6;}
21749 cat confcache >$cache_file
21750 else
21751 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21752 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21753 fi
21754 fi
21755 rm -f confcache
21756
21757 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21758 # Let make expand exec_prefix.
21759 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21760
21761 DEFS=-DHAVE_CONFIG_H
21762
21763 ac_libobjs=
21764 ac_ltlibobjs=
21765 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21766 # 1. Remove the extension, and $U if already installed.
21767 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21768 ac_i=`echo "$ac_i" | sed "$ac_script"`
21769 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21770 # will be set to the directory where LIBOBJS objects are built.
21771 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21772 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21773 done
21774 LIBOBJS=$ac_libobjs
21775
21776 LTLIBOBJS=$ac_ltlibobjs
21777
21778
21779 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21780 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21781 Usually this means the macro was only invoked conditionally." >&5
21782 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21783 Usually this means the macro was only invoked conditionally." >&2;}
21784 { (exit 1); exit 1; }; }
21785 fi
21786 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21787 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21788 Usually this means the macro was only invoked conditionally." >&5
21789 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21790 Usually this means the macro was only invoked conditionally." >&2;}
21791 { (exit 1); exit 1; }; }
21792 fi
21793 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21794 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21795 Usually this means the macro was only invoked conditionally." >&5
21796 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21797 Usually this means the macro was only invoked conditionally." >&2;}
21798 { (exit 1); exit 1; }; }
21799 fi
21800 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21801 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21802 Usually this means the macro was only invoked conditionally." >&5
21803 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21804 Usually this means the macro was only invoked conditionally." >&2;}
21805 { (exit 1); exit 1; }; }
21806 fi
21807 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21808 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21809 Usually this means the macro was only invoked conditionally." >&5
21810 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21811 Usually this means the macro was only invoked conditionally." >&2;}
21812 { (exit 1); exit 1; }; }
21813 fi
21814 if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then
21815 { { echo "$as_me:$LINENO: error: conditional \"DRI\" was never defined.
21816 Usually this means the macro was only invoked conditionally." >&5
21817 echo "$as_me: error: conditional \"DRI\" was never defined.
21818 Usually this means the macro was only invoked conditionally." >&2;}
21819 { (exit 1); exit 1; }; }
21820 fi
21821
21822 : ${CONFIG_STATUS=./config.status}
21823 ac_clean_files_save=$ac_clean_files
21824 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21825 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21826 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21827 cat >$CONFIG_STATUS <<_ACEOF
21828 #! $SHELL
21829 # Generated by $as_me.
21830 # Run this file to recreate the current configuration.
21831 # Compiler output produced by configure, useful for debugging
21832 # configure, is in config.log if it exists.
21833
21834 debug=false
21835 ac_cs_recheck=false
21836 ac_cs_silent=false
21837 SHELL=\${CONFIG_SHELL-$SHELL}
21838 _ACEOF
21839
21840 cat >>$CONFIG_STATUS <<\_ACEOF
21841 ## --------------------- ##
21842 ## M4sh Initialization. ##
21843 ## --------------------- ##
21844
21845 # Be Bourne compatible
21846 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21847 emulate sh
21848 NULLCMD=:
21849 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21850 # is contrary to our usage. Disable this feature.
21851 alias -g '${1+"$@"}'='"$@"'
21852 setopt NO_GLOB_SUBST
21853 else
21854 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21855 fi
21856 BIN_SH=xpg4; export BIN_SH # for Tru64
21857 DUALCASE=1; export DUALCASE # for MKS sh
21858
21859
21860 # PATH needs CR
21861 # Avoid depending upon Character Ranges.
21862 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21863 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21864 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21865 as_cr_digits='0123456789'
21866 as_cr_alnum=$as_cr_Letters$as_cr_digits
21867
21868 # The user is always right.
21869 if test "${PATH_SEPARATOR+set}" != set; then
21870 echo "#! /bin/sh" >conf$$.sh
21871 echo "exit 0" >>conf$$.sh
21872 chmod +x conf$$.sh
21873 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21874 PATH_SEPARATOR=';'
21875 else
21876 PATH_SEPARATOR=:
21877 fi
21878 rm -f conf$$.sh
21879 fi
21880
21881 # Support unset when possible.
21882 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21883 as_unset=unset
21884 else
21885 as_unset=false
21886 fi
21887
21888
21889 # IFS
21890 # We need space, tab and new line, in precisely that order. Quoting is
21891 # there to prevent editors from complaining about space-tab.
21892 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21893 # splitting by setting IFS to empty value.)
21894 as_nl='
21895 '
21896 IFS=" "" $as_nl"
21897
21898 # Find who we are. Look in the path if we contain no directory separator.
21899 case $0 in
21900 *[\\/]* ) as_myself=$0 ;;
21901 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21902 for as_dir in $PATH
21903 do
21904 IFS=$as_save_IFS
21905 test -z "$as_dir" && as_dir=.
21906 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21907 done
21908 IFS=$as_save_IFS
21909
21910 ;;
21911 esac
21912 # We did not find ourselves, most probably we were run as `sh COMMAND'
21913 # in which case we are not to be found in the path.
21914 if test "x$as_myself" = x; then
21915 as_myself=$0
21916 fi
21917 if test ! -f "$as_myself"; then
21918 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21919 { (exit 1); exit 1; }
21920 fi
21921
21922 # Work around bugs in pre-3.0 UWIN ksh.
21923 for as_var in ENV MAIL MAILPATH
21924 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21925 done
21926 PS1='$ '
21927 PS2='> '
21928 PS4='+ '
21929
21930 # NLS nuisances.
21931 for as_var in \
21932 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21933 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21934 LC_TELEPHONE LC_TIME
21935 do
21936 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21937 eval $as_var=C; export $as_var
21938 else
21939 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21940 fi
21941 done
21942
21943 # Required to use basename.
21944 if expr a : '\(a\)' >/dev/null 2>&1 &&
21945 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21946 as_expr=expr
21947 else
21948 as_expr=false
21949 fi
21950
21951 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21952 as_basename=basename
21953 else
21954 as_basename=false
21955 fi
21956
21957
21958 # Name of the executable.
21959 as_me=`$as_basename -- "$0" ||
21960 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21961 X"$0" : 'X\(//\)$' \| \
21962 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21963 echo X/"$0" |
21964 sed '/^.*\/\([^/][^/]*\)\/*$/{
21965 s//\1/
21966 q
21967 }
21968 /^X\/\(\/\/\)$/{
21969 s//\1/
21970 q
21971 }
21972 /^X\/\(\/\).*/{
21973 s//\1/
21974 q
21975 }
21976 s/.*/./; q'`
21977
21978 # CDPATH.
21979 $as_unset CDPATH
21980
21981
21982
21983 as_lineno_1=$LINENO
21984 as_lineno_2=$LINENO
21985 test "x$as_lineno_1" != "x$as_lineno_2" &&
21986 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21987
21988 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21989 # uniformly replaced by the line number. The first 'sed' inserts a
21990 # line-number line after each line using $LINENO; the second 'sed'
21991 # does the real work. The second script uses 'N' to pair each
21992 # line-number line with the line containing $LINENO, and appends
21993 # trailing '-' during substitution so that $LINENO is not a special
21994 # case at line end.
21995 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21996 # scripts with optimization help from Paolo Bonzini. Blame Lee
21997 # E. McMahon (1931-1989) for sed's syntax. :-)
21998 sed -n '
21999 p
22000 /[$]LINENO/=
22001 ' <$as_myself |
22002 sed '
22003 s/[$]LINENO.*/&-/
22004 t lineno
22005 b
22006 :lineno
22007 N
22008 :loop
22009 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22010 t loop
22011 s/-\n.*//
22012 ' >$as_me.lineno &&
22013 chmod +x "$as_me.lineno" ||
22014 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22015 { (exit 1); exit 1; }; }
22016
22017 # Don't try to exec as it changes $[0], causing all sort of problems
22018 # (the dirname of $[0] is not the place where we might find the
22019 # original and so on. Autoconf is especially sensitive to this).
22020 . "./$as_me.lineno"
22021 # Exit status is that of the last command.
22022 exit
22023 }
22024
22025
22026 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22027 as_dirname=dirname
22028 else
22029 as_dirname=false
22030 fi
22031
22032 ECHO_C= ECHO_N= ECHO_T=
22033 case `echo -n x` in
22034 -n*)
22035 case `echo 'x\c'` in
22036 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22037 *) ECHO_C='\c';;
22038 esac;;
22039 *)
22040 ECHO_N='-n';;
22041 esac
22042
22043 if expr a : '\(a\)' >/dev/null 2>&1 &&
22044 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22045 as_expr=expr
22046 else
22047 as_expr=false
22048 fi
22049
22050 rm -f conf$$ conf$$.exe conf$$.file
22051 if test -d conf$$.dir; then
22052 rm -f conf$$.dir/conf$$.file
22053 else
22054 rm -f conf$$.dir
22055 mkdir conf$$.dir
22056 fi
22057 echo >conf$$.file
22058 if ln -s conf$$.file conf$$ 2>/dev/null; then
22059 as_ln_s='ln -s'
22060 # ... but there are two gotchas:
22061 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22062 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22063 # In both cases, we have to default to `cp -p'.
22064 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22065 as_ln_s='cp -p'
22066 elif ln conf$$.file conf$$ 2>/dev/null; then
22067 as_ln_s=ln
22068 else
22069 as_ln_s='cp -p'
22070 fi
22071 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22072 rmdir conf$$.dir 2>/dev/null
22073
22074 if mkdir -p . 2>/dev/null; then
22075 as_mkdir_p=:
22076 else
22077 test -d ./-p && rmdir ./-p
22078 as_mkdir_p=false
22079 fi
22080
22081 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
22082 # systems may use methods other than mode bits to determine executability.
22083 cat >conf$$.file <<_ASEOF
22084 #! /bin/sh
22085 exit 0
22086 _ASEOF
22087 chmod +x conf$$.file
22088 if test -x conf$$.file >/dev/null 2>&1; then
22089 as_executable_p="test -x"
22090 else
22091 as_executable_p=:
22092 fi
22093 rm -f conf$$.file
22094
22095 # Sed expression to map a string onto a valid CPP name.
22096 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22097
22098 # Sed expression to map a string onto a valid variable name.
22099 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22100
22101
22102 exec 6>&1
22103
22104 # Save the log message, to keep $[0] and so on meaningful, and to
22105 # report actual input values of CONFIG_FILES etc. instead of their
22106 # values after options handling.
22107 ac_log="
22108 This file was extended by xf86-video-tdfx $as_me 1.3.0, which was
22109 generated by GNU Autoconf 2.60. Invocation command line was
22110
22111 CONFIG_FILES = $CONFIG_FILES
22112 CONFIG_HEADERS = $CONFIG_HEADERS
22113 CONFIG_LINKS = $CONFIG_LINKS
22114 CONFIG_COMMANDS = $CONFIG_COMMANDS
22115 $ $0 $@
22116
22117 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22118 "
22119
22120 _ACEOF
22121
22122 cat >>$CONFIG_STATUS <<_ACEOF
22123 # Files that config.status was made for.
22124 config_files="$ac_config_files"
22125 config_headers="$ac_config_headers"
22126 config_commands="$ac_config_commands"
22127
22128 _ACEOF
22129
22130 cat >>$CONFIG_STATUS <<\_ACEOF
22131 ac_cs_usage="\
22132 \`$as_me' instantiates files from templates according to the
22133 current configuration.
22134
22135 Usage: $0 [OPTIONS] [FILE]...
22136
22137 -h, --help print this help, then exit
22138 -V, --version print version number, then exit
22139 -q, --quiet do not print progress messages
22140 -d, --debug don't remove temporary files
22141 --recheck update $as_me by reconfiguring in the same conditions
22142 --file=FILE[:TEMPLATE]
22143 instantiate the configuration file FILE
22144 --header=FILE[:TEMPLATE]
22145 instantiate the configuration header FILE
22146
22147 Configuration files:
22148 $config_files
22149
22150 Configuration headers:
22151 $config_headers
22152
22153 Configuration commands:
22154 $config_commands
22155
22156 Report bugs to <bug-autoconf@gnu.org>."
22157
22158 _ACEOF
22159 cat >>$CONFIG_STATUS <<_ACEOF
22160 ac_cs_version="\\
22161 xf86-video-tdfx config.status 1.3.0
22162 configured by $0, generated by GNU Autoconf 2.60,
22163 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22164
22165 Copyright (C) 2006 Free Software Foundation, Inc.
22166 This config.status script is free software; the Free Software Foundation
22167 gives unlimited permission to copy, distribute and modify it."
22168
22169 ac_pwd='$ac_pwd'
22170 srcdir='$srcdir'
22171 INSTALL='$INSTALL'
22172 _ACEOF
22173
22174 cat >>$CONFIG_STATUS <<\_ACEOF
22175 # If no file are specified by the user, then we need to provide default
22176 # value. By we need to know if files were specified by the user.
22177 ac_need_defaults=:
22178 while test $# != 0
22179 do
22180 case $1 in
22181 --*=*)
22182 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22183 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22184 ac_shift=:
22185 ;;
22186 *)
22187 ac_option=$1
22188 ac_optarg=$2
22189 ac_shift=shift
22190 ;;
22191 esac
22192
22193 case $ac_option in
22194 # Handling of the options.
22195 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22196 ac_cs_recheck=: ;;
22197 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22198 echo "$ac_cs_version"; exit ;;
22199 --debug | --debu | --deb | --de | --d | -d )
22200 debug=: ;;
22201 --file | --fil | --fi | --f )
22202 $ac_shift
22203 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22204 ac_need_defaults=false;;
22205 --header | --heade | --head | --hea )
22206 $ac_shift
22207 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22208 ac_need_defaults=false;;
22209 --he | --h)
22210 # Conflict between --help and --header
22211 { echo "$as_me: error: ambiguous option: $1
22212 Try \`$0 --help' for more information." >&2
22213 { (exit 1); exit 1; }; };;
22214 --help | --hel | -h )
22215 echo "$ac_cs_usage"; exit ;;
22216 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22217 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22218 ac_cs_silent=: ;;
22219
22220 # This is an error.
22221 -*) { echo "$as_me: error: unrecognized option: $1
22222 Try \`$0 --help' for more information." >&2
22223 { (exit 1); exit 1; }; } ;;
22224
22225 *) ac_config_targets="$ac_config_targets $1"
22226 ac_need_defaults=false ;;
22227
22228 esac
22229 shift
22230 done
22231
22232 ac_configure_extra_args=
22233
22234 if $ac_cs_silent; then
22235 exec 6>/dev/null
22236 ac_configure_extra_args="$ac_configure_extra_args --silent"
22237 fi
22238
22239 _ACEOF
22240 cat >>$CONFIG_STATUS <<_ACEOF
22241 if \$ac_cs_recheck; then
22242 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22243 CONFIG_SHELL=$SHELL
22244 export CONFIG_SHELL
22245 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22246 fi
22247
22248 _ACEOF
22249 cat >>$CONFIG_STATUS <<\_ACEOF
22250 exec 5>>config.log
22251 {
22252 echo
22253 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22254 ## Running $as_me. ##
22255 _ASBOX
22256 echo "$ac_log"
22257 } >&5
22258
22259 _ACEOF
22260 cat >>$CONFIG_STATUS <<_ACEOF
22261 #
22262 # INIT-COMMANDS
22263 #
22264 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22265
22266 _ACEOF
22267
22268 cat >>$CONFIG_STATUS <<\_ACEOF
22269
22270 # Handling of arguments.
22271 for ac_config_target in $ac_config_targets
22272 do
22273 case $ac_config_target in
22274 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22275 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22276 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22277 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22278 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
22279
22280 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22281 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22282 { (exit 1); exit 1; }; };;
22283 esac
22284 done
22285
22286
22287 # If the user did not use the arguments to specify the items to instantiate,
22288 # then the envvar interface is used. Set only those that are not.
22289 # We use the long form for the default assignment because of an extremely
22290 # bizarre bug on SunOS 4.1.3.
22291 if $ac_need_defaults; then
22292 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22293 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22294 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22295 fi
22296
22297 # Have a temporary directory for convenience. Make it in the build tree
22298 # simply because there is no reason against having it here, and in addition,
22299 # creating and moving files from /tmp can sometimes cause problems.
22300 # Hook for its removal unless debugging.
22301 # Note that there is a small window in which the directory will not be cleaned:
22302 # after its creation but before its name has been assigned to `$tmp'.
22303 $debug ||
22304 {
22305 tmp=
22306 trap 'exit_status=$?
22307 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22308 ' 0
22309 trap '{ (exit 1); exit 1; }' 1 2 13 15
22310 }
22311 # Create a (secure) tmp directory for tmp files.
22312
22313 {
22314 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22315 test -n "$tmp" && test -d "$tmp"
22316 } ||
22317 {
22318 tmp=./conf$$-$RANDOM
22319 (umask 077 && mkdir "$tmp")
22320 } ||
22321 {
22322 echo "$me: cannot create a temporary directory in ." >&2
22323 { (exit 1); exit 1; }
22324 }
22325
22326 #
22327 # Set up the sed scripts for CONFIG_FILES section.
22328 #
22329
22330 # No need to generate the scripts if there are no CONFIG_FILES.
22331 # This happens for instance when ./config.status config.h
22332 if test -n "$CONFIG_FILES"; then
22333
22334 _ACEOF
22335
22336
22337
22338 ac_delim='%!_!# '
22339 for ac_last_try in false false false false false :; do
22340 cat >conf$$subs.sed <<_ACEOF
22341 SHELL!$SHELL$ac_delim
22342 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22343 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22344 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22345 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22346 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22347 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22348 exec_prefix!$exec_prefix$ac_delim
22349 prefix!$prefix$ac_delim
22350 program_transform_name!$program_transform_name$ac_delim
22351 bindir!$bindir$ac_delim
22352 sbindir!$sbindir$ac_delim
22353 libexecdir!$libexecdir$ac_delim
22354 datarootdir!$datarootdir$ac_delim
22355 datadir!$datadir$ac_delim
22356 sysconfdir!$sysconfdir$ac_delim
22357 sharedstatedir!$sharedstatedir$ac_delim
22358 localstatedir!$localstatedir$ac_delim
22359 includedir!$includedir$ac_delim
22360 oldincludedir!$oldincludedir$ac_delim
22361 docdir!$docdir$ac_delim
22362 infodir!$infodir$ac_delim
22363 htmldir!$htmldir$ac_delim
22364 dvidir!$dvidir$ac_delim
22365 pdfdir!$pdfdir$ac_delim
22366 psdir!$psdir$ac_delim
22367 libdir!$libdir$ac_delim
22368 localedir!$localedir$ac_delim
22369 mandir!$mandir$ac_delim
22370 DEFS!$DEFS$ac_delim
22371 ECHO_C!$ECHO_C$ac_delim
22372 ECHO_N!$ECHO_N$ac_delim
22373 ECHO_T!$ECHO_T$ac_delim
22374 LIBS!$LIBS$ac_delim
22375 build_alias!$build_alias$ac_delim
22376 host_alias!$host_alias$ac_delim
22377 target_alias!$target_alias$ac_delim
22378 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22379 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22380 INSTALL_DATA!$INSTALL_DATA$ac_delim
22381 CYGPATH_W!$CYGPATH_W$ac_delim
22382 PACKAGE!$PACKAGE$ac_delim
22383 VERSION!$VERSION$ac_delim
22384 ACLOCAL!$ACLOCAL$ac_delim
22385 AUTOCONF!$AUTOCONF$ac_delim
22386 AUTOMAKE!$AUTOMAKE$ac_delim
22387 AUTOHEADER!$AUTOHEADER$ac_delim
22388 MAKEINFO!$MAKEINFO$ac_delim
22389 install_sh!$install_sh$ac_delim
22390 STRIP!$STRIP$ac_delim
22391 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
22392 mkdir_p!$mkdir_p$ac_delim
22393 AWK!$AWK$ac_delim
22394 SET_MAKE!$SET_MAKE$ac_delim
22395 am__leading_dot!$am__leading_dot$ac_delim
22396 AMTAR!$AMTAR$ac_delim
22397 am__tar!$am__tar$ac_delim
22398 am__untar!$am__untar$ac_delim
22399 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
22400 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
22401 MAINT!$MAINT$ac_delim
22402 build!$build$ac_delim
22403 build_cpu!$build_cpu$ac_delim
22404 build_vendor!$build_vendor$ac_delim
22405 build_os!$build_os$ac_delim
22406 host!$host$ac_delim
22407 host_cpu!$host_cpu$ac_delim
22408 host_vendor!$host_vendor$ac_delim
22409 host_os!$host_os$ac_delim
22410 CC!$CC$ac_delim
22411 CFLAGS!$CFLAGS$ac_delim
22412 LDFLAGS!$LDFLAGS$ac_delim
22413 CPPFLAGS!$CPPFLAGS$ac_delim
22414 ac_ct_CC!$ac_ct_CC$ac_delim
22415 EXEEXT!$EXEEXT$ac_delim
22416 OBJEXT!$OBJEXT$ac_delim
22417 DEPDIR!$DEPDIR$ac_delim
22418 am__include!$am__include$ac_delim
22419 am__quote!$am__quote$ac_delim
22420 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
22421 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
22422 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
22423 CCDEPMODE!$CCDEPMODE$ac_delim
22424 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
22425 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
22426 GREP!$GREP$ac_delim
22427 EGREP!$EGREP$ac_delim
22428 LN_S!$LN_S$ac_delim
22429 ECHO!$ECHO$ac_delim
22430 AR!$AR$ac_delim
22431 RANLIB!$RANLIB$ac_delim
22432 CPP!$CPP$ac_delim
22433 CXX!$CXX$ac_delim
22434 CXXFLAGS!$CXXFLAGS$ac_delim
22435 ac_ct_CXX!$ac_ct_CXX$ac_delim
22436 CXXDEPMODE!$CXXDEPMODE$ac_delim
22437 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
22438 _ACEOF
22439
22440 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22441 break
22442 elif $ac_last_try; then
22443 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22444 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22445 { (exit 1); exit 1; }; }
22446 else
22447 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22448 fi
22449 done
22450
22451 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22452 if test -n "$ac_eof"; then
22453 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22454 ac_eof=`expr $ac_eof + 1`
22455 fi
22456
22457 cat >>$CONFIG_STATUS <<_ACEOF
22458 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22459 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22460 _ACEOF
22461 sed '
22462 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22463 s/^/s,@/; s/!/@,|#_!!_#|/
22464 :n
22465 t n
22466 s/'"$ac_delim"'$/,g/; t
22467 s/$/\\/; p
22468 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22469 ' >>$CONFIG_STATUS <conf$$subs.sed
22470 rm -f conf$$subs.sed
22471 cat >>$CONFIG_STATUS <<_ACEOF
22472 CEOF$ac_eof
22473 _ACEOF
22474
22475
22476 ac_delim='%!_!# '
22477 for ac_last_try in false false false false false :; do
22478 cat >conf$$subs.sed <<_ACEOF
22479 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
22480 CXXCPP!$CXXCPP$ac_delim
22481 F77!$F77$ac_delim
22482 FFLAGS!$FFLAGS$ac_delim
22483 ac_ct_F77!$ac_ct_F77$ac_delim
22484 LIBTOOL!$LIBTOOL$ac_delim
22485 PKG_CONFIG!$PKG_CONFIG$ac_delim
22486 XORG_CFLAGS!$XORG_CFLAGS$ac_delim
22487 XORG_LIBS!$XORG_LIBS$ac_delim
22488 DRI_TRUE!$DRI_TRUE$ac_delim
22489 DRI_FALSE!$DRI_FALSE$ac_delim
22490 DRI_CFLAGS!$DRI_CFLAGS$ac_delim
22491 DRI_LIBS!$DRI_LIBS$ac_delim
22492 moduledir!$moduledir$ac_delim
22493 DRIVER_NAME!$DRIVER_NAME$ac_delim
22494 APP_MAN_SUFFIX!$APP_MAN_SUFFIX$ac_delim
22495 LIB_MAN_SUFFIX!$LIB_MAN_SUFFIX$ac_delim
22496 FILE_MAN_SUFFIX!$FILE_MAN_SUFFIX$ac_delim
22497 MISC_MAN_SUFFIX!$MISC_MAN_SUFFIX$ac_delim
22498 DRIVER_MAN_SUFFIX!$DRIVER_MAN_SUFFIX$ac_delim
22499 ADMIN_MAN_SUFFIX!$ADMIN_MAN_SUFFIX$ac_delim
22500 APP_MAN_DIR!$APP_MAN_DIR$ac_delim
22501 LIB_MAN_DIR!$LIB_MAN_DIR$ac_delim
22502 FILE_MAN_DIR!$FILE_MAN_DIR$ac_delim
22503 MISC_MAN_DIR!$MISC_MAN_DIR$ac_delim
22504 DRIVER_MAN_DIR!$DRIVER_MAN_DIR$ac_delim
22505 ADMIN_MAN_DIR!$ADMIN_MAN_DIR$ac_delim
22506 LIBOBJS!$LIBOBJS$ac_delim
22507 LTLIBOBJS!$LTLIBOBJS$ac_delim
22508 _ACEOF
22509
22510 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 29; then
22511 break
22512 elif $ac_last_try; then
22513 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22514 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22515 { (exit 1); exit 1; }; }
22516 else
22517 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22518 fi
22519 done
22520
22521 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22522 if test -n "$ac_eof"; then
22523 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22524 ac_eof=`expr $ac_eof + 1`
22525 fi
22526
22527 cat >>$CONFIG_STATUS <<_ACEOF
22528 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22529 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22530 _ACEOF
22531 sed '
22532 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22533 s/^/s,@/; s/!/@,|#_!!_#|/
22534 :n
22535 t n
22536 s/'"$ac_delim"'$/,g/; t
22537 s/$/\\/; p
22538 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22539 ' >>$CONFIG_STATUS <conf$$subs.sed
22540 rm -f conf$$subs.sed
22541 cat >>$CONFIG_STATUS <<_ACEOF
22542 :end
22543 s/|#_!!_#|//g
22544 CEOF$ac_eof
22545 _ACEOF
22546
22547
22548 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22549 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22550 # trailing colons and then remove the whole line if VPATH becomes empty
22551 # (actually we leave an empty line to preserve line numbers).
22552 if test "x$srcdir" = x.; then
22553 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22554 s/:*\$(srcdir):*/:/
22555 s/:*\${srcdir}:*/:/
22556 s/:*@srcdir@:*/:/
22557 s/^\([^=]*=[ ]*\):*/\1/
22558 s/:*$//
22559 s/^[^=]*=[ ]*$//
22560 }'
22561 fi
22562
22563 cat >>$CONFIG_STATUS <<\_ACEOF
22564 fi # test -n "$CONFIG_FILES"
22565
22566
22567 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22568 do
22569 case $ac_tag in
22570 :[FHLC]) ac_mode=$ac_tag; continue;;
22571 esac
22572 case $ac_mode$ac_tag in
22573 :[FHL]*:*);;
22574 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22575 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22576 { (exit 1); exit 1; }; };;
22577 :[FH]-) ac_tag=-:-;;
22578 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22579 esac
22580 ac_save_IFS=$IFS
22581 IFS=:
22582 set x $ac_tag
22583 IFS=$ac_save_IFS
22584 shift
22585 ac_file=$1
22586 shift
22587
22588 case $ac_mode in
22589 :L) ac_source=$1;;
22590 :[FH])
22591 ac_file_inputs=
22592 for ac_f
22593 do
22594 case $ac_f in
22595 -) ac_f="$tmp/stdin";;
22596 *) # Look for the file first in the build tree, then in the source tree
22597 # (if the path is not absolute). The absolute path cannot be DOS-style,
22598 # because $ac_f cannot contain `:'.
22599 test -f "$ac_f" ||
22600 case $ac_f in
22601 [\\/$]*) false;;
22602 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22603 esac ||
22604 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22605 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22606 { (exit 1); exit 1; }; };;
22607 esac
22608 ac_file_inputs="$ac_file_inputs $ac_f"
22609 done
22610
22611 # Let's still pretend it is `configure' which instantiates (i.e., don't
22612 # use $as_me), people would be surprised to read:
22613 # /* config.h. Generated by config.status. */
22614 configure_input="Generated from "`IFS=:
22615 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22616 if test x"$ac_file" != x-; then
22617 configure_input="$ac_file. $configure_input"
22618 { echo "$as_me:$LINENO: creating $ac_file" >&5
22619 echo "$as_me: creating $ac_file" >&6;}
22620 fi
22621
22622 case $ac_tag in
22623 *:-:* | *:-) cat >"$tmp/stdin";;
22624 esac
22625 ;;
22626 esac
22627
22628 ac_dir=`$as_dirname -- "$ac_file" ||
22629 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22630 X"$ac_file" : 'X\(//\)[^/]' \| \
22631 X"$ac_file" : 'X\(//\)$' \| \
22632 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22633 echo X"$ac_file" |
22634 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22635 s//\1/
22636 q
22637 }
22638 /^X\(\/\/\)[^/].*/{
22639 s//\1/
22640 q
22641 }
22642 /^X\(\/\/\)$/{
22643 s//\1/
22644 q
22645 }
22646 /^X\(\/\).*/{
22647 s//\1/
22648 q
22649 }
22650 s/.*/./; q'`
22651 { as_dir="$ac_dir"
22652 case $as_dir in #(
22653 -*) as_dir=./$as_dir;;
22654 esac
22655 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22656 as_dirs=
22657 while :; do
22658 case $as_dir in #(
22659 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22660 *) as_qdir=$as_dir;;
22661 esac
22662 as_dirs="'$as_qdir' $as_dirs"
22663 as_dir=`$as_dirname -- "$as_dir" ||
22664 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22665 X"$as_dir" : 'X\(//\)[^/]' \| \
22666 X"$as_dir" : 'X\(//\)$' \| \
22667 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22668 echo X"$as_dir" |
22669 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22670 s//\1/
22671 q
22672 }
22673 /^X\(\/\/\)[^/].*/{
22674 s//\1/
22675 q
22676 }
22677 /^X\(\/\/\)$/{
22678 s//\1/
22679 q
22680 }
22681 /^X\(\/\).*/{
22682 s//\1/
22683 q
22684 }
22685 s/.*/./; q'`
22686 test -d "$as_dir" && break
22687 done
22688 test -z "$as_dirs" || eval "mkdir $as_dirs"
22689 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22690 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22691 { (exit 1); exit 1; }; }; }
22692 ac_builddir=.
22693
22694 case "$ac_dir" in
22695 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22696 *)
22697 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22698 # A ".." for each directory in $ac_dir_suffix.
22699 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22700 case $ac_top_builddir_sub in
22701 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22702 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22703 esac ;;
22704 esac
22705 ac_abs_top_builddir=$ac_pwd
22706 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22707 # for backward compatibility:
22708 ac_top_builddir=$ac_top_build_prefix
22709
22710 case $srcdir in
22711 .) # We are building in place.
22712 ac_srcdir=.
22713 ac_top_srcdir=$ac_top_builddir_sub
22714 ac_abs_top_srcdir=$ac_pwd ;;
22715 [\\/]* | ?:[\\/]* ) # Absolute name.
22716 ac_srcdir=$srcdir$ac_dir_suffix;
22717 ac_top_srcdir=$srcdir
22718 ac_abs_top_srcdir=$srcdir ;;
22719 *) # Relative name.
22720 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22721 ac_top_srcdir=$ac_top_build_prefix$srcdir
22722 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22723 esac
22724 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22725
22726
22727 case $ac_mode in
22728 :F)
22729 #
22730 # CONFIG_FILE
22731 #
22732
22733 case $INSTALL in
22734 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22735 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22736 esac
22737 _ACEOF
22738
22739 cat >>$CONFIG_STATUS <<\_ACEOF
22740 # If the template does not know about datarootdir, expand it.
22741 # FIXME: This hack should be removed a few years after 2.60.
22742 ac_datarootdir_hack=; ac_datarootdir_seen=
22743
22744 case `sed -n '/datarootdir/ {
22745 p
22746 q
22747 }
22748 /@datadir@/p
22749 /@docdir@/p
22750 /@infodir@/p
22751 /@localedir@/p
22752 /@mandir@/p
22753 ' $ac_file_inputs` in
22754 *datarootdir*) ac_datarootdir_seen=yes;;
22755 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22756 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22757 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22758 _ACEOF
22759 cat >>$CONFIG_STATUS <<_ACEOF
22760 ac_datarootdir_hack='
22761 s&@datadir@&$datadir&g
22762 s&@docdir@&$docdir&g
22763 s&@infodir@&$infodir&g
22764 s&@localedir@&$localedir&g
22765 s&@mandir@&$mandir&g
22766 s&\\\${datarootdir}&$datarootdir&g' ;;
22767 esac
22768 _ACEOF
22769
22770 # Neutralize VPATH when `$srcdir' = `.'.
22771 # Shell code in configure.ac might set extrasub.
22772 # FIXME: do we really want to maintain this feature?
22773 cat >>$CONFIG_STATUS <<_ACEOF
22774 sed "$ac_vpsub
22775 $extrasub
22776 _ACEOF
22777 cat >>$CONFIG_STATUS <<\_ACEOF
22778 :t
22779 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22780 s&@configure_input@&$configure_input&;t t
22781 s&@top_builddir@&$ac_top_builddir_sub&;t t
22782 s&@srcdir@&$ac_srcdir&;t t
22783 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22784 s&@top_srcdir@&$ac_top_srcdir&;t t
22785 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22786 s&@builddir@&$ac_builddir&;t t
22787 s&@abs_builddir@&$ac_abs_builddir&;t t
22788 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22789 s&@INSTALL@&$ac_INSTALL&;t t
22790 $ac_datarootdir_hack
22791 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22792
22793 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22794 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22795 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22796 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22797 which seems to be undefined. Please make sure it is defined." >&5
22798 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22799 which seems to be undefined. Please make sure it is defined." >&2;}
22800
22801 rm -f "$tmp/stdin"
22802 case $ac_file in
22803 -) cat "$tmp/out"; rm -f "$tmp/out";;
22804 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22805 esac
22806 ;;
22807 :H)
22808 #
22809 # CONFIG_HEADER
22810 #
22811 _ACEOF
22812
22813 # Transform confdefs.h into a sed script `conftest.defines', that
22814 # substitutes the proper values into config.h.in to produce config.h.
22815 rm -f conftest.defines conftest.tail
22816 # First, append a space to every undef/define line, to ease matching.
22817 echo 's/$/ /' >conftest.defines
22818 # Then, protect against being on the right side of a sed subst, or in
22819 # an unquoted here document, in config.status. If some macros were
22820 # called several times there might be several #defines for the same
22821 # symbol, which is useless. But do not sort them, since the last
22822 # AC_DEFINE must be honored.
22823 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22824 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22825 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22826 # PARAMS is the parameter list in the macro definition--in most cases, it's
22827 # just an empty string.
22828 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22829 ac_dB='\\)[ (].*,\\1define\\2'
22830 ac_dC=' '
22831 ac_dD=' ,'
22832
22833 uniq confdefs.h |
22834 sed -n '
22835 t rset
22836 :rset
22837 s/^[ ]*#[ ]*define[ ][ ]*//
22838 t ok
22839 d
22840 :ok
22841 s/[\\&,]/\\&/g
22842 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22843 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22844 ' >>conftest.defines
22845
22846 # Remove the space that was appended to ease matching.
22847 # Then replace #undef with comments. This is necessary, for
22848 # example, in the case of _POSIX_SOURCE, which is predefined and required
22849 # on some systems where configure will not decide to define it.
22850 # (The regexp can be short, since the line contains either #define or #undef.)
22851 echo 's/ $//
22852 s,^[ #]*u.*,/* & */,' >>conftest.defines
22853
22854 # Break up conftest.defines:
22855 ac_max_sed_lines=50
22856
22857 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22858 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22859 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22860 # et cetera.
22861 ac_in='$ac_file_inputs'
22862 ac_out='"$tmp/out1"'
22863 ac_nxt='"$tmp/out2"'
22864
22865 while :
22866 do
22867 # Write a here document:
22868 cat >>$CONFIG_STATUS <<_ACEOF
22869 # First, check the format of the line:
22870 cat >"\$tmp/defines.sed" <<\\CEOF
22871 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22872 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22873 b
22874 :def
22875 _ACEOF
22876 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22877 echo 'CEOF
22878 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22879 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22880 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22881 grep . conftest.tail >/dev/null || break
22882 rm -f conftest.defines
22883 mv conftest.tail conftest.defines
22884 done
22885 rm -f conftest.defines conftest.tail
22886
22887 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22888 cat >>$CONFIG_STATUS <<\_ACEOF
22889 if test x"$ac_file" != x-; then
22890 echo "/* $configure_input */" >"$tmp/config.h"
22891 cat "$ac_result" >>"$tmp/config.h"
22892 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22893 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22894 echo "$as_me: $ac_file is unchanged" >&6;}
22895 else
22896 rm -f $ac_file
22897 mv "$tmp/config.h" $ac_file
22898 fi
22899 else
22900 echo "/* $configure_input */"
22901 cat "$ac_result"
22902 fi
22903 rm -f "$tmp/out12"
22904 # Compute $ac_file's index in $config_headers.
22905 _am_stamp_count=1
22906 for _am_header in $config_headers :; do
22907 case $_am_header in
22908 $ac_file | $ac_file:* )
22909 break ;;
22910 * )
22911 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22912 esac
22913 done
22914 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
22915 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22916 X$ac_file : 'X\(//\)[^/]' \| \
22917 X$ac_file : 'X\(//\)$' \| \
22918 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
22919 echo X$ac_file |
22920 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22921 s//\1/
22922 q
22923 }
22924 /^X\(\/\/\)[^/].*/{
22925 s//\1/
22926 q
22927 }
22928 /^X\(\/\/\)$/{
22929 s//\1/
22930 q
22931 }
22932 /^X\(\/\).*/{
22933 s//\1/
22934 q
22935 }
22936 s/.*/./; q'`/stamp-h$_am_stamp_count
22937 ;;
22938
22939 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22940 echo "$as_me: executing $ac_file commands" >&6;}
22941 ;;
22942 esac
22943
22944
22945 case $ac_file$ac_mode in
22946 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22947 # Strip MF so we end up with the name of the file.
22948 mf=`echo "$mf" | sed -e 's/:.*$//'`
22949 # Check whether this is an Automake generated Makefile or not.
22950 # We used to match only the files named `Makefile.in', but
22951 # some people rename them; so instead we look at the file content.
22952 # Grep'ing the first line is not enough: some people post-process
22953 # each Makefile.in and add a new line on top of each file to say so.
22954 # So let's grep whole file.
22955 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22956 dirpart=`$as_dirname -- "$mf" ||
22957 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22958 X"$mf" : 'X\(//\)[^/]' \| \
22959 X"$mf" : 'X\(//\)$' \| \
22960 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22961 echo X"$mf" |
22962 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22963 s//\1/
22964 q
22965 }
22966 /^X\(\/\/\)[^/].*/{
22967 s//\1/
22968 q
22969 }
22970 /^X\(\/\/\)$/{
22971 s//\1/
22972 q
22973 }
22974 /^X\(\/\).*/{
22975 s//\1/
22976 q
22977 }
22978 s/.*/./; q'`
22979 else
22980 continue
22981 fi
22982 # Extract the definition of DEPDIR, am__include, and am__quote
22983 # from the Makefile without running `make'.
22984 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22985 test -z "$DEPDIR" && continue
22986 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22987 test -z "am__include" && continue
22988 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22989 # When using ansi2knr, U may be empty or an underscore; expand it
22990 U=`sed -n 's/^U = //p' < "$mf"`
22991 # Find all dependency output files, they are included files with
22992 # $(DEPDIR) in their names. We invoke sed twice because it is the
22993 # simplest approach to changing $(DEPDIR) to its actual value in the
22994 # expansion.
22995 for file in `sed -n "
22996 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22997 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22998 # Make sure the directory exists.
22999 test -f "$dirpart/$file" && continue
23000 fdir=`$as_dirname -- "$file" ||
23001 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23002 X"$file" : 'X\(//\)[^/]' \| \
23003 X"$file" : 'X\(//\)$' \| \
23004 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23005 echo X"$file" |
23006 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23007 s//\1/
23008 q
23009 }
23010 /^X\(\/\/\)[^/].*/{
23011 s//\1/
23012 q
23013 }
23014 /^X\(\/\/\)$/{
23015 s//\1/
23016 q
23017 }
23018 /^X\(\/\).*/{
23019 s//\1/
23020 q
23021 }
23022 s/.*/./; q'`
23023 { as_dir=$dirpart/$fdir
23024 case $as_dir in #(
23025 -*) as_dir=./$as_dir;;
23026 esac
23027 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23028 as_dirs=
23029 while :; do
23030 case $as_dir in #(
23031 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23032 *) as_qdir=$as_dir;;
23033 esac
23034 as_dirs="'$as_qdir' $as_dirs"
23035 as_dir=`$as_dirname -- "$as_dir" ||
23036 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23037 X"$as_dir" : 'X\(//\)[^/]' \| \
23038 X"$as_dir" : 'X\(//\)$' \| \
23039 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23040 echo X"$as_dir" |
23041 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23042 s//\1/
23043 q
23044 }
23045 /^X\(\/\/\)[^/].*/{
23046 s//\1/
23047 q
23048 }
23049 /^X\(\/\/\)$/{
23050 s//\1/
23051 q
23052 }
23053 /^X\(\/\).*/{
23054 s//\1/
23055 q
23056 }
23057 s/.*/./; q'`
23058 test -d "$as_dir" && break
23059 done
23060 test -z "$as_dirs" || eval "mkdir $as_dirs"
23061 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23062 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23063 { (exit 1); exit 1; }; }; }
23064 # echo "creating $dirpart/$file"
23065 echo '# dummy' > "$dirpart/$file"
23066 done
23067 done
23068 ;;
23069
23070 esac
23071 done # for ac_tag
23072
23073
23074 { (exit 0); exit 0; }
23075 _ACEOF
23076 chmod +x $CONFIG_STATUS
23077 ac_clean_files=$ac_clean_files_save
23078
23079
23080 # configure is writing to config.log, and then calls config.status.
23081 # config.status does its own redirection, appending to config.log.
23082 # Unfortunately, on DOS this fails, as config.log is still kept open
23083 # by configure, so config.status won't be able to write to it; its
23084 # output is simply discarded. So we exec the FD to /dev/null,
23085 # effectively closing config.log, so it can be properly (re)opened and
23086 # appended to by config.status. When coming back to configure, we
23087 # need to make the FD available again.
23088 if test "$no_create" != yes; then
23089 ac_cs_success=:
23090 ac_config_status_args=
23091 test "$silent" = yes &&
23092 ac_config_status_args="$ac_config_status_args --quiet"
23093 exec 5>/dev/null
23094 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23095 exec 5>>config.log
23096 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23097 # would make configure fail if this is the last instruction.
23098 $ac_cs_success || { (exit 1); exit 1; }
23099 fi
23100
23101