configure revision 1.1.1.3 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for xf86-video-ati 6.12.4.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 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 more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 as_nl='
43 '
44 export as_nl
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85 as_unset=unset
86 else
87 as_unset=false
88 fi
89
90
91 # IFS
92 # We need space, tab and new line, in precisely that order. Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
96 IFS=" "" $as_nl"
97
98 # Find who we are. Look in the path if we contain no directory separator.
99 case $0 in
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102 for as_dir in $PATH
103 do
104 IFS=$as_save_IFS
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 done
108 IFS=$as_save_IFS
109
110 ;;
111 esac
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
115 as_myself=$0
116 fi
117 if test ! -f "$as_myself"; then
118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 { (exit 1); exit 1; }
120 fi
121
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
139 as_expr=expr
140 else
141 as_expr=false
142 fi
143
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145 as_basename=basename
146 else
147 as_basename=false
148 fi
149
150
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156 $as_echo X/"$0" |
157 sed '/^.*\/\([^/][^/]*\)\/*$/{
158 s//\1/
159 q
160 }
161 /^X\/\(\/\/\)$/{
162 s//\1/
163 q
164 }
165 /^X\/\(\/\).*/{
166 s//\1/
167 q
168 }
169 s/.*/./; q'`
170
171 # CDPATH.
172 $as_unset CDPATH
173
174
175 if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
177 as_have_required=yes
178 else
179 as_have_required=no
180 fi
181
182 if test $as_have_required = yes && (eval ":
183 (as_func_return () {
184 (exit \$1)
185 }
186 as_func_success () {
187 as_func_return 0
188 }
189 as_func_failure () {
190 as_func_return 1
191 }
192 as_func_ret_success () {
193 return 0
194 }
195 as_func_ret_failure () {
196 return 1
197 }
198
199 exitcode=0
200 if as_func_success; then
201 :
202 else
203 exitcode=1
204 echo as_func_success failed.
205 fi
206
207 if as_func_failure; then
208 exitcode=1
209 echo as_func_failure succeeded.
210 fi
211
212 if as_func_ret_success; then
213 :
214 else
215 exitcode=1
216 echo as_func_ret_success failed.
217 fi
218
219 if as_func_ret_failure; then
220 exitcode=1
221 echo as_func_ret_failure succeeded.
222 fi
223
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225 :
226 else
227 exitcode=1
228 echo positional parameters were not saved.
229 fi
230
231 test \$exitcode = 0) || { (exit 1); exit 1; }
232
233 (
234 as_lineno_1=\$LINENO
235 as_lineno_2=\$LINENO
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
239 :
240 else
241 as_candidate_shells=
242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 do
245 IFS=$as_save_IFS
246 test -z "$as_dir" && as_dir=.
247 case $as_dir in
248 /*)
249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251 done;;
252 esac
253 done
254 IFS=$as_save_IFS
255
256
257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$as_shell") 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 _ASEOF
278 }; then
279 CONFIG_SHELL=$as_shell
280 as_have_required=yes
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 emulate sh
284 NULLCMD=:
285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
288 setopt NO_GLOB_SUBST
289 else
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
292 esac
293
294 fi
295
296
297 :
298 (as_func_return () {
299 (exit $1)
300 }
301 as_func_success () {
302 as_func_return 0
303 }
304 as_func_failure () {
305 as_func_return 1
306 }
307 as_func_ret_success () {
308 return 0
309 }
310 as_func_ret_failure () {
311 return 1
312 }
313
314 exitcode=0
315 if as_func_success; then
316 :
317 else
318 exitcode=1
319 echo as_func_success failed.
320 fi
321
322 if as_func_failure; then
323 exitcode=1
324 echo as_func_failure succeeded.
325 fi
326
327 if as_func_ret_success; then
328 :
329 else
330 exitcode=1
331 echo as_func_ret_success failed.
332 fi
333
334 if as_func_ret_failure; then
335 exitcode=1
336 echo as_func_ret_failure succeeded.
337 fi
338
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
340 :
341 else
342 exitcode=1
343 echo positional parameters were not saved.
344 fi
345
346 test $exitcode = 0) || { (exit 1); exit 1; }
347
348 (
349 as_lineno_1=$LINENO
350 as_lineno_2=$LINENO
351 test "x$as_lineno_1" != "x$as_lineno_2" &&
352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354 _ASEOF
355 }; then
356 break
357 fi
358
359 fi
360
361 done
362
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 done
367 export CONFIG_SHELL
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369 fi
370
371
372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one.
377 { (exit 1); exit 1; }
378 fi
379
380
381 fi
382
383 fi
384
385
386
387 (eval "as_func_return () {
388 (exit \$1)
389 }
390 as_func_success () {
391 as_func_return 0
392 }
393 as_func_failure () {
394 as_func_return 1
395 }
396 as_func_ret_success () {
397 return 0
398 }
399 as_func_ret_failure () {
400 return 1
401 }
402
403 exitcode=0
404 if as_func_success; then
405 :
406 else
407 exitcode=1
408 echo as_func_success failed.
409 fi
410
411 if as_func_failure; then
412 exitcode=1
413 echo as_func_failure succeeded.
414 fi
415
416 if as_func_ret_success; then
417 :
418 else
419 exitcode=1
420 echo as_func_ret_success failed.
421 fi
422
423 if as_func_ret_failure; then
424 exitcode=1
425 echo as_func_ret_failure succeeded.
426 fi
427
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429 :
430 else
431 exitcode=1
432 echo positional parameters were not saved.
433 fi
434
435 test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
437 echo Please tell bug-autoconf@gnu.org about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
441 }
442
443
444
445 as_lineno_1=$LINENO
446 as_lineno_2=$LINENO
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
456 # case at line end.
457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
460 sed -n '
461 p
462 /[$]LINENO/=
463 ' <$as_myself |
464 sed '
465 s/[$]LINENO.*/&-/
466 t lineno
467 b
468 :lineno
469 N
470 :loop
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472 t loop
473 s/-\n.*//
474 ' >$as_me.lineno &&
475 chmod +x "$as_me.lineno" ||
476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477 { (exit 1); exit 1; }; }
478
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
481 # original and so on. Autoconf is especially sensitive to this).
482 . "./$as_me.lineno"
483 # Exit status is that of the last command.
484 exit
485 }
486
487
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489 as_dirname=dirname
490 else
491 as_dirname=false
492 fi
493
494 ECHO_C= ECHO_N= ECHO_T=
495 case `echo -n x` in
496 -n*)
497 case `echo 'x\c'` in
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
499 *) ECHO_C='\c';;
500 esac;;
501 *)
502 ECHO_N='-n';;
503 esac
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
506 as_expr=expr
507 else
508 as_expr=false
509 fi
510
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
514 else
515 rm -f conf$$.dir
516 mkdir conf$$.dir 2>/dev/null
517 fi
518 if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then
520 as_ln_s='ln -s'
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526 as_ln_s='cp -p'
527 elif ln conf$$.file conf$$ 2>/dev/null; then
528 as_ln_s=ln
529 else
530 as_ln_s='cp -p'
531 fi
532 else
533 as_ln_s='cp -p'
534 fi
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
537
538 if mkdir -p . 2>/dev/null; then
539 as_mkdir_p=:
540 else
541 test -d ./-p && rmdir ./-p
542 as_mkdir_p=false
543 fi
544
545 if test -x / >/dev/null 2>&1; then
546 as_test_x='test -x'
547 else
548 if ls -dL / >/dev/null 2>&1; then
549 as_ls_L_option=L
550 else
551 as_ls_L_option=
552 fi
553 as_test_x='
554 eval sh -c '\''
555 if test -d "$1"; then
556 test -d "$1/.";
557 else
558 case $1 in
559 -*)set "./$1";;
560 esac;
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
563 '\'' sh
564 '
565 fi
566 as_executable_p=$as_test_x
567
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576
577 # Check that we are running under the correct shell.
578 SHELL=${CONFIG_SHELL-/bin/sh}
579
580 case X$ECHO in
581 X*--fallback-echo)
582 # Remove one level of quotation (which was required for Make).
583 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
584 ;;
585 esac
586
587 echo=${ECHO-echo}
588 if test "X$1" = X--no-reexec; then
589 # Discard the --no-reexec flag, and continue.
590 shift
591 elif test "X$1" = X--fallback-echo; then
592 # Avoid inline document here, it may be left over
593 :
594 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
595 # Yippee, $echo works!
596 :
597 else
598 # Restart under the correct shell.
599 exec $SHELL "$0" --no-reexec ${1+"$@"}
600 fi
601
602 if test "X$1" = X--fallback-echo; then
603 # used as fallback echo
604 shift
605 cat <<EOF
606 $*
607 EOF
608 exit 0
609 fi
610
611 # The HP-UX ksh and POSIX shell print the target directory to stdout
612 # if CDPATH is set.
613 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
614
615 if test -z "$ECHO"; then
616 if test "X${echo_test_string+set}" != Xset; then
617 # find a string as large as possible, as long as the shell can cope with it
618 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
621 echo_test_string=`eval $cmd` &&
622 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
623 then
624 break
625 fi
626 done
627 fi
628
629 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
630 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
631 test "X$echo_testing_string" = "X$echo_test_string"; then
632 :
633 else
634 # The Solaris, AIX, and Digital Unix default echo programs unquote
635 # backslashes. This makes it impossible to quote backslashes using
636 # echo "$something" | sed 's/\\/\\\\/g'
637 #
638 # So, first we look for a working echo in the user's PATH.
639
640 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
641 for dir in $PATH /usr/ucb; do
642 IFS="$lt_save_ifs"
643 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
644 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
645 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
646 test "X$echo_testing_string" = "X$echo_test_string"; then
647 echo="$dir/echo"
648 break
649 fi
650 done
651 IFS="$lt_save_ifs"
652
653 if test "X$echo" = Xecho; then
654 # We didn't find a better echo, so look for alternatives.
655 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
656 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 # This shell has a builtin print -r that does the trick.
659 echo='print -r'
660 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
661 test "X$CONFIG_SHELL" != X/bin/ksh; then
662 # If we have ksh, try running configure again with it.
663 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
664 export ORIGINAL_CONFIG_SHELL
665 CONFIG_SHELL=/bin/ksh
666 export CONFIG_SHELL
667 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
668 else
669 # Try using printf.
670 echo='printf %s\n'
671 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
672 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
673 test "X$echo_testing_string" = "X$echo_test_string"; then
674 # Cool, printf works
675 :
676 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
677 test "X$echo_testing_string" = 'X\t' &&
678 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
679 test "X$echo_testing_string" = "X$echo_test_string"; then
680 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
681 export CONFIG_SHELL
682 SHELL="$CONFIG_SHELL"
683 export SHELL
684 echo="$CONFIG_SHELL $0 --fallback-echo"
685 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
686 test "X$echo_testing_string" = 'X\t' &&
687 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
688 test "X$echo_testing_string" = "X$echo_test_string"; then
689 echo="$CONFIG_SHELL $0 --fallback-echo"
690 else
691 # maybe with a smaller string...
692 prev=:
693
694 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
695 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
696 then
697 break
698 fi
699 prev="$cmd"
700 done
701
702 if test "$prev" != 'sed 50q "$0"'; then
703 echo_test_string=`eval $prev`
704 export echo_test_string
705 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
706 else
707 # Oops. We lost completely, so just stick with echo.
708 echo=echo
709 fi
710 fi
711 fi
712 fi
713 fi
714 fi
715
716 # Copy echo and quote the copy suitably for passing to libtool from
717 # the Makefile, instead of quoting the original, which is used later.
718 ECHO=$echo
719 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
720 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
721 fi
722
723
724
725
726 tagnames=${tagnames+${tagnames},}CXX
727
728 tagnames=${tagnames+${tagnames},}F77
729
730 exec 7<&0 </dev/null 6>&1
731
732 # Name of the host.
733 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
734 # so uname gets run too.
735 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
736
737 #
738 # Initializations.
739 #
740 ac_default_prefix=/usr/local
741 ac_clean_files=
742 ac_config_libobj_dir=.
743 LIBOBJS=
744 cross_compiling=no
745 subdirs=
746 MFLAGS=
747 MAKEFLAGS=
748 SHELL=${CONFIG_SHELL-/bin/sh}
749
750 # Identity of this package.
751 PACKAGE_NAME='xf86-video-ati'
752 PACKAGE_TARNAME='xf86-video-ati'
753 PACKAGE_VERSION='6.12.4'
754 PACKAGE_STRING='xf86-video-ati 6.12.4'
755 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
756
757 ac_unique_file="Makefile.am"
758 # Factoring default headers for most tests.
759 ac_includes_default="\
760 #include <stdio.h>
761 #ifdef HAVE_SYS_TYPES_H
762 # include <sys/types.h>
763 #endif
764 #ifdef HAVE_SYS_STAT_H
765 # include <sys/stat.h>
766 #endif
767 #ifdef STDC_HEADERS
768 # include <stdlib.h>
769 # include <stddef.h>
770 #else
771 # ifdef HAVE_STDLIB_H
772 # include <stdlib.h>
773 # endif
774 #endif
775 #ifdef HAVE_STRING_H
776 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
777 # include <memory.h>
778 # endif
779 # include <string.h>
780 #endif
781 #ifdef HAVE_STRINGS_H
782 # include <strings.h>
783 #endif
784 #ifdef HAVE_INTTYPES_H
785 # include <inttypes.h>
786 #endif
787 #ifdef HAVE_STDINT_H
788 # include <stdint.h>
789 #endif
790 #ifdef HAVE_UNISTD_H
791 # include <unistd.h>
792 #endif"
793
794 ac_subst_vars='am__EXEEXT_FALSE
795 am__EXEEXT_TRUE
796 LTLIBOBJS
797 LIBOBJS
798 MAKE_HTML
799 MAKE_PDF
800 MAKE_PS
801 MAKE_TEXT
802 BUILD_PDFDOC_FALSE
803 BUILD_PDFDOC_TRUE
804 BUILD_LINUXDOC_FALSE
805 BUILD_LINUXDOC_TRUE
806 PS2PDF
807 LINUXDOC
808 ADMIN_MAN_DIR
809 DRIVER_MAN_DIR
810 MISC_MAN_DIR
811 FILE_MAN_DIR
812 LIB_MAN_DIR
813 APP_MAN_DIR
814 ADMIN_MAN_SUFFIX
815 DRIVER_MAN_SUFFIX
816 MISC_MAN_SUFFIX
817 FILE_MAN_SUFFIX
818 LIB_MAN_SUFFIX
819 APP_MAN_SUFFIX
820 DRIVER_NAME
821 moduledir
822 XSERVER_LIBPCIACCESS_FALSE
823 XSERVER_LIBPCIACCESS_TRUE
824 PCIACCESS_LIBS
825 PCIACCESS_CFLAGS
826 USE_EXA_FALSE
827 USE_EXA_TRUE
828 XMODES_CFLAGS
829 XMODES_FALSE
830 XMODES_TRUE
831 DRI_LIBS
832 DRI_CFLAGS
833 DRI_FALSE
834 DRI_TRUE
835 HAVE_XEXTPROTO_71_FALSE
836 HAVE_XEXTPROTO_71_TRUE
837 XEXT_LIBS
838 XEXT_CFLAGS
839 XORG_LIBS
840 XORG_CFLAGS
841 PKG_CONFIG
842 LIBTOOL
843 ac_ct_F77
844 FFLAGS
845 F77
846 CXXCPP
847 am__fastdepCXX_FALSE
848 am__fastdepCXX_TRUE
849 CXXDEPMODE
850 ac_ct_CXX
851 CXXFLAGS
852 CXX
853 CPP
854 NMEDIT
855 DSYMUTIL
856 RANLIB
857 AR
858 ECHO
859 LN_S
860 EGREP
861 GREP
862 SED
863 am__fastdepCC_FALSE
864 am__fastdepCC_TRUE
865 CCDEPMODE
866 AMDEPBACKSLASH
867 AMDEP_FALSE
868 AMDEP_TRUE
869 am__quote
870 am__include
871 DEPDIR
872 OBJEXT
873 EXEEXT
874 ac_ct_CC
875 CPPFLAGS
876 LDFLAGS
877 CFLAGS
878 CC
879 host_os
880 host_vendor
881 host_cpu
882 host
883 build_os
884 build_vendor
885 build_cpu
886 build
887 MAINT
888 MAINTAINER_MODE_FALSE
889 MAINTAINER_MODE_TRUE
890 am__untar
891 am__tar
892 AMTAR
893 am__leading_dot
894 SET_MAKE
895 AWK
896 mkdir_p
897 MKDIR_P
898 INSTALL_STRIP_PROGRAM
899 STRIP
900 install_sh
901 MAKEINFO
902 AUTOHEADER
903 AUTOMAKE
904 AUTOCONF
905 ACLOCAL
906 VERSION
907 PACKAGE
908 CYGPATH_W
909 am__isrc
910 INSTALL_DATA
911 INSTALL_SCRIPT
912 INSTALL_PROGRAM
913 target_alias
914 host_alias
915 build_alias
916 LIBS
917 ECHO_T
918 ECHO_N
919 ECHO_C
920 DEFS
921 mandir
922 localedir
923 libdir
924 psdir
925 pdfdir
926 dvidir
927 htmldir
928 infodir
929 docdir
930 oldincludedir
931 includedir
932 localstatedir
933 sharedstatedir
934 sysconfdir
935 datadir
936 datarootdir
937 libexecdir
938 sbindir
939 bindir
940 program_transform_name
941 prefix
942 exec_prefix
943 PACKAGE_BUGREPORT
944 PACKAGE_STRING
945 PACKAGE_VERSION
946 PACKAGE_TARNAME
947 PACKAGE_NAME
948 PATH_SEPARATOR
949 SHELL'
950 ac_subst_files=''
951 ac_user_opts='
952 enable_option_checking
953 enable_maintainer_mode
954 enable_static
955 enable_shared
956 enable_fast_install
957 enable_dependency_tracking
958 with_gnu_ld
959 enable_libtool_lock
960 with_pic
961 with_tags
962 with_xorg_module_dir
963 enable_dri
964 enable_exa
965 with_xserver_source
966 with_release_version
967 '
968 ac_precious_vars='build_alias
969 host_alias
970 target_alias
971 CC
972 CFLAGS
973 LDFLAGS
974 LIBS
975 CPPFLAGS
976 CPP
977 CXX
978 CXXFLAGS
979 CCC
980 CXXCPP
981 F77
982 FFLAGS
983 PKG_CONFIG
984 XORG_CFLAGS
985 XORG_LIBS
986 XEXT_CFLAGS
987 XEXT_LIBS
988 DRI_CFLAGS
989 DRI_LIBS
990 PCIACCESS_CFLAGS
991 PCIACCESS_LIBS'
992
993
994 # Initialize some variables set by options.
995 ac_init_help=
996 ac_init_version=false
997 ac_unrecognized_opts=
998 ac_unrecognized_sep=
999 # The variables have the same names as the options, with
1000 # dashes changed to underlines.
1001 cache_file=/dev/null
1002 exec_prefix=NONE
1003 no_create=
1004 no_recursion=
1005 prefix=NONE
1006 program_prefix=NONE
1007 program_suffix=NONE
1008 program_transform_name=s,x,x,
1009 silent=
1010 site=
1011 srcdir=
1012 verbose=
1013 x_includes=NONE
1014 x_libraries=NONE
1015
1016 # Installation directory options.
1017 # These are left unexpanded so users can "make install exec_prefix=/foo"
1018 # and all the variables that are supposed to be based on exec_prefix
1019 # by default will actually change.
1020 # Use braces instead of parens because sh, perl, etc. also accept them.
1021 # (The list follows the same order as the GNU Coding Standards.)
1022 bindir='${exec_prefix}/bin'
1023 sbindir='${exec_prefix}/sbin'
1024 libexecdir='${exec_prefix}/libexec'
1025 datarootdir='${prefix}/share'
1026 datadir='${datarootdir}'
1027 sysconfdir='${prefix}/etc'
1028 sharedstatedir='${prefix}/com'
1029 localstatedir='${prefix}/var'
1030 includedir='${prefix}/include'
1031 oldincludedir='/usr/include'
1032 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1033 infodir='${datarootdir}/info'
1034 htmldir='${docdir}'
1035 dvidir='${docdir}'
1036 pdfdir='${docdir}'
1037 psdir='${docdir}'
1038 libdir='${exec_prefix}/lib'
1039 localedir='${datarootdir}/locale'
1040 mandir='${datarootdir}/man'
1041
1042 ac_prev=
1043 ac_dashdash=
1044 for ac_option
1045 do
1046 # If the previous option needs an argument, assign it.
1047 if test -n "$ac_prev"; then
1048 eval $ac_prev=\$ac_option
1049 ac_prev=
1050 continue
1051 fi
1052
1053 case $ac_option in
1054 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1055 *) ac_optarg=yes ;;
1056 esac
1057
1058 # Accept the important Cygnus configure options, so we can diagnose typos.
1059
1060 case $ac_dashdash$ac_option in
1061 --)
1062 ac_dashdash=yes ;;
1063
1064 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1065 ac_prev=bindir ;;
1066 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1067 bindir=$ac_optarg ;;
1068
1069 -build | --build | --buil | --bui | --bu)
1070 ac_prev=build_alias ;;
1071 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1072 build_alias=$ac_optarg ;;
1073
1074 -cache-file | --cache-file | --cache-fil | --cache-fi \
1075 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1076 ac_prev=cache_file ;;
1077 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1078 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1079 cache_file=$ac_optarg ;;
1080
1081 --config-cache | -C)
1082 cache_file=config.cache ;;
1083
1084 -datadir | --datadir | --datadi | --datad)
1085 ac_prev=datadir ;;
1086 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1087 datadir=$ac_optarg ;;
1088
1089 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1090 | --dataroo | --dataro | --datar)
1091 ac_prev=datarootdir ;;
1092 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1093 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1094 datarootdir=$ac_optarg ;;
1095
1096 -disable-* | --disable-*)
1097 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1098 # Reject names that are not valid shell variable names.
1099 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1100 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1101 { (exit 1); exit 1; }; }
1102 ac_useropt_orig=$ac_useropt
1103 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1104 case $ac_user_opts in
1105 *"
1106 "enable_$ac_useropt"
1107 "*) ;;
1108 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1109 ac_unrecognized_sep=', ';;
1110 esac
1111 eval enable_$ac_useropt=no ;;
1112
1113 -docdir | --docdir | --docdi | --doc | --do)
1114 ac_prev=docdir ;;
1115 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1116 docdir=$ac_optarg ;;
1117
1118 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1119 ac_prev=dvidir ;;
1120 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1121 dvidir=$ac_optarg ;;
1122
1123 -enable-* | --enable-*)
1124 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1125 # Reject names that are not valid shell variable names.
1126 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1127 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1128 { (exit 1); exit 1; }; }
1129 ac_useropt_orig=$ac_useropt
1130 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1131 case $ac_user_opts in
1132 *"
1133 "enable_$ac_useropt"
1134 "*) ;;
1135 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1136 ac_unrecognized_sep=', ';;
1137 esac
1138 eval enable_$ac_useropt=\$ac_optarg ;;
1139
1140 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1141 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1142 | --exec | --exe | --ex)
1143 ac_prev=exec_prefix ;;
1144 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1145 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1146 | --exec=* | --exe=* | --ex=*)
1147 exec_prefix=$ac_optarg ;;
1148
1149 -gas | --gas | --ga | --g)
1150 # Obsolete; use --with-gas.
1151 with_gas=yes ;;
1152
1153 -help | --help | --hel | --he | -h)
1154 ac_init_help=long ;;
1155 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1156 ac_init_help=recursive ;;
1157 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1158 ac_init_help=short ;;
1159
1160 -host | --host | --hos | --ho)
1161 ac_prev=host_alias ;;
1162 -host=* | --host=* | --hos=* | --ho=*)
1163 host_alias=$ac_optarg ;;
1164
1165 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1166 ac_prev=htmldir ;;
1167 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1168 | --ht=*)
1169 htmldir=$ac_optarg ;;
1170
1171 -includedir | --includedir | --includedi | --included | --include \
1172 | --includ | --inclu | --incl | --inc)
1173 ac_prev=includedir ;;
1174 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1175 | --includ=* | --inclu=* | --incl=* | --inc=*)
1176 includedir=$ac_optarg ;;
1177
1178 -infodir | --infodir | --infodi | --infod | --info | --inf)
1179 ac_prev=infodir ;;
1180 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1181 infodir=$ac_optarg ;;
1182
1183 -libdir | --libdir | --libdi | --libd)
1184 ac_prev=libdir ;;
1185 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1186 libdir=$ac_optarg ;;
1187
1188 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1189 | --libexe | --libex | --libe)
1190 ac_prev=libexecdir ;;
1191 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1192 | --libexe=* | --libex=* | --libe=*)
1193 libexecdir=$ac_optarg ;;
1194
1195 -localedir | --localedir | --localedi | --localed | --locale)
1196 ac_prev=localedir ;;
1197 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1198 localedir=$ac_optarg ;;
1199
1200 -localstatedir | --localstatedir | --localstatedi | --localstated \
1201 | --localstate | --localstat | --localsta | --localst | --locals)
1202 ac_prev=localstatedir ;;
1203 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1204 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1205 localstatedir=$ac_optarg ;;
1206
1207 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1208 ac_prev=mandir ;;
1209 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1210 mandir=$ac_optarg ;;
1211
1212 -nfp | --nfp | --nf)
1213 # Obsolete; use --without-fp.
1214 with_fp=no ;;
1215
1216 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1217 | --no-cr | --no-c | -n)
1218 no_create=yes ;;
1219
1220 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1221 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1222 no_recursion=yes ;;
1223
1224 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1225 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1226 | --oldin | --oldi | --old | --ol | --o)
1227 ac_prev=oldincludedir ;;
1228 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1229 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1230 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1231 oldincludedir=$ac_optarg ;;
1232
1233 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1234 ac_prev=prefix ;;
1235 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1236 prefix=$ac_optarg ;;
1237
1238 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1239 | --program-pre | --program-pr | --program-p)
1240 ac_prev=program_prefix ;;
1241 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1242 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1243 program_prefix=$ac_optarg ;;
1244
1245 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1246 | --program-suf | --program-su | --program-s)
1247 ac_prev=program_suffix ;;
1248 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1249 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1250 program_suffix=$ac_optarg ;;
1251
1252 -program-transform-name | --program-transform-name \
1253 | --program-transform-nam | --program-transform-na \
1254 | --program-transform-n | --program-transform- \
1255 | --program-transform | --program-transfor \
1256 | --program-transfo | --program-transf \
1257 | --program-trans | --program-tran \
1258 | --progr-tra | --program-tr | --program-t)
1259 ac_prev=program_transform_name ;;
1260 -program-transform-name=* | --program-transform-name=* \
1261 | --program-transform-nam=* | --program-transform-na=* \
1262 | --program-transform-n=* | --program-transform-=* \
1263 | --program-transform=* | --program-transfor=* \
1264 | --program-transfo=* | --program-transf=* \
1265 | --program-trans=* | --program-tran=* \
1266 | --progr-tra=* | --program-tr=* | --program-t=*)
1267 program_transform_name=$ac_optarg ;;
1268
1269 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1270 ac_prev=pdfdir ;;
1271 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1272 pdfdir=$ac_optarg ;;
1273
1274 -psdir | --psdir | --psdi | --psd | --ps)
1275 ac_prev=psdir ;;
1276 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1277 psdir=$ac_optarg ;;
1278
1279 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1280 | -silent | --silent | --silen | --sile | --sil)
1281 silent=yes ;;
1282
1283 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1284 ac_prev=sbindir ;;
1285 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1286 | --sbi=* | --sb=*)
1287 sbindir=$ac_optarg ;;
1288
1289 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1290 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1291 | --sharedst | --shareds | --shared | --share | --shar \
1292 | --sha | --sh)
1293 ac_prev=sharedstatedir ;;
1294 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1295 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1296 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1297 | --sha=* | --sh=*)
1298 sharedstatedir=$ac_optarg ;;
1299
1300 -site | --site | --sit)
1301 ac_prev=site ;;
1302 -site=* | --site=* | --sit=*)
1303 site=$ac_optarg ;;
1304
1305 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1306 ac_prev=srcdir ;;
1307 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1308 srcdir=$ac_optarg ;;
1309
1310 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1311 | --syscon | --sysco | --sysc | --sys | --sy)
1312 ac_prev=sysconfdir ;;
1313 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1314 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1315 sysconfdir=$ac_optarg ;;
1316
1317 -target | --target | --targe | --targ | --tar | --ta | --t)
1318 ac_prev=target_alias ;;
1319 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1320 target_alias=$ac_optarg ;;
1321
1322 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1323 verbose=yes ;;
1324
1325 -version | --version | --versio | --versi | --vers | -V)
1326 ac_init_version=: ;;
1327
1328 -with-* | --with-*)
1329 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1330 # Reject names that are not valid shell variable names.
1331 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1332 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1333 { (exit 1); exit 1; }; }
1334 ac_useropt_orig=$ac_useropt
1335 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1336 case $ac_user_opts in
1337 *"
1338 "with_$ac_useropt"
1339 "*) ;;
1340 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1341 ac_unrecognized_sep=', ';;
1342 esac
1343 eval with_$ac_useropt=\$ac_optarg ;;
1344
1345 -without-* | --without-*)
1346 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1347 # Reject names that are not valid shell variable names.
1348 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1349 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1350 { (exit 1); exit 1; }; }
1351 ac_useropt_orig=$ac_useropt
1352 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1353 case $ac_user_opts in
1354 *"
1355 "with_$ac_useropt"
1356 "*) ;;
1357 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1358 ac_unrecognized_sep=', ';;
1359 esac
1360 eval with_$ac_useropt=no ;;
1361
1362 --x)
1363 # Obsolete; use --with-x.
1364 with_x=yes ;;
1365
1366 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1367 | --x-incl | --x-inc | --x-in | --x-i)
1368 ac_prev=x_includes ;;
1369 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1370 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1371 x_includes=$ac_optarg ;;
1372
1373 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1374 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1375 ac_prev=x_libraries ;;
1376 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1377 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1378 x_libraries=$ac_optarg ;;
1379
1380 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1381 Try \`$0 --help' for more information." >&2
1382 { (exit 1); exit 1; }; }
1383 ;;
1384
1385 *=*)
1386 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1387 # Reject names that are not valid shell variable names.
1388 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1389 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1390 { (exit 1); exit 1; }; }
1391 eval $ac_envvar=\$ac_optarg
1392 export $ac_envvar ;;
1393
1394 *)
1395 # FIXME: should be removed in autoconf 3.0.
1396 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1397 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1398 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1399 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1400 ;;
1401
1402 esac
1403 done
1404
1405 if test -n "$ac_prev"; then
1406 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1407 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1408 { (exit 1); exit 1; }; }
1409 fi
1410
1411 if test -n "$ac_unrecognized_opts"; then
1412 case $enable_option_checking in
1413 no) ;;
1414 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1415 { (exit 1); exit 1; }; } ;;
1416 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1417 esac
1418 fi
1419
1420 # Check all directory arguments for consistency.
1421 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1422 datadir sysconfdir sharedstatedir localstatedir includedir \
1423 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1424 libdir localedir mandir
1425 do
1426 eval ac_val=\$$ac_var
1427 # Remove trailing slashes.
1428 case $ac_val in
1429 */ )
1430 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1431 eval $ac_var=\$ac_val;;
1432 esac
1433 # Be sure to have absolute directory names.
1434 case $ac_val in
1435 [\\/$]* | ?:[\\/]* ) continue;;
1436 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1437 esac
1438 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1439 { (exit 1); exit 1; }; }
1440 done
1441
1442 # There might be people who depend on the old broken behavior: `$host'
1443 # used to hold the argument of --host etc.
1444 # FIXME: To remove some day.
1445 build=$build_alias
1446 host=$host_alias
1447 target=$target_alias
1448
1449 # FIXME: To remove some day.
1450 if test "x$host_alias" != x; then
1451 if test "x$build_alias" = x; then
1452 cross_compiling=maybe
1453 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1454 If a cross compiler is detected then cross compile mode will be used." >&2
1455 elif test "x$build_alias" != "x$host_alias"; then
1456 cross_compiling=yes
1457 fi
1458 fi
1459
1460 ac_tool_prefix=
1461 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1462
1463 test "$silent" = yes && exec 6>/dev/null
1464
1465
1466 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1467 ac_ls_di=`ls -di .` &&
1468 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1469 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1470 { (exit 1); exit 1; }; }
1471 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1472 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1473 { (exit 1); exit 1; }; }
1474
1475
1476 # Find the source files, if location was not specified.
1477 if test -z "$srcdir"; then
1478 ac_srcdir_defaulted=yes
1479 # Try the directory containing this script, then the parent directory.
1480 ac_confdir=`$as_dirname -- "$as_myself" ||
1481 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1482 X"$as_myself" : 'X\(//\)[^/]' \| \
1483 X"$as_myself" : 'X\(//\)$' \| \
1484 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1485 $as_echo X"$as_myself" |
1486 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1487 s//\1/
1488 q
1489 }
1490 /^X\(\/\/\)[^/].*/{
1491 s//\1/
1492 q
1493 }
1494 /^X\(\/\/\)$/{
1495 s//\1/
1496 q
1497 }
1498 /^X\(\/\).*/{
1499 s//\1/
1500 q
1501 }
1502 s/.*/./; q'`
1503 srcdir=$ac_confdir
1504 if test ! -r "$srcdir/$ac_unique_file"; then
1505 srcdir=..
1506 fi
1507 else
1508 ac_srcdir_defaulted=no
1509 fi
1510 if test ! -r "$srcdir/$ac_unique_file"; then
1511 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1512 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1513 { (exit 1); exit 1; }; }
1514 fi
1515 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1516 ac_abs_confdir=`(
1517 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1518 { (exit 1); exit 1; }; }
1519 pwd)`
1520 # When building in place, set srcdir=.
1521 if test "$ac_abs_confdir" = "$ac_pwd"; then
1522 srcdir=.
1523 fi
1524 # Remove unnecessary trailing slashes from srcdir.
1525 # Double slashes in file names in object file debugging info
1526 # mess up M-x gdb in Emacs.
1527 case $srcdir in
1528 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1529 esac
1530 for ac_var in $ac_precious_vars; do
1531 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1532 eval ac_env_${ac_var}_value=\$${ac_var}
1533 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1534 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1535 done
1536
1537 #
1538 # Report the --help message.
1539 #
1540 if test "$ac_init_help" = "long"; then
1541 # Omit some internal or obsolete options to make the list less imposing.
1542 # This message is too long to be a string in the A/UX 3.1 sh.
1543 cat <<_ACEOF
1544 \`configure' configures xf86-video-ati 6.12.4 to adapt to many kinds of systems.
1545
1546 Usage: $0 [OPTION]... [VAR=VALUE]...
1547
1548 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1549 VAR=VALUE. See below for descriptions of some of the useful variables.
1550
1551 Defaults for the options are specified in brackets.
1552
1553 Configuration:
1554 -h, --help display this help and exit
1555 --help=short display options specific to this package
1556 --help=recursive display the short help of all the included packages
1557 -V, --version display version information and exit
1558 -q, --quiet, --silent do not print \`checking...' messages
1559 --cache-file=FILE cache test results in FILE [disabled]
1560 -C, --config-cache alias for \`--cache-file=config.cache'
1561 -n, --no-create do not create output files
1562 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1563
1564 Installation directories:
1565 --prefix=PREFIX install architecture-independent files in PREFIX
1566 [$ac_default_prefix]
1567 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1568 [PREFIX]
1569
1570 By default, \`make install' will install all the files in
1571 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1572 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1573 for instance \`--prefix=\$HOME'.
1574
1575 For better control, use the options below.
1576
1577 Fine tuning of the installation directories:
1578 --bindir=DIR user executables [EPREFIX/bin]
1579 --sbindir=DIR system admin executables [EPREFIX/sbin]
1580 --libexecdir=DIR program executables [EPREFIX/libexec]
1581 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1582 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1583 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1584 --libdir=DIR object code libraries [EPREFIX/lib]
1585 --includedir=DIR C header files [PREFIX/include]
1586 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1587 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1588 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1589 --infodir=DIR info documentation [DATAROOTDIR/info]
1590 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1591 --mandir=DIR man documentation [DATAROOTDIR/man]
1592 --docdir=DIR documentation root [DATAROOTDIR/doc/xf86-video-ati]
1593 --htmldir=DIR html documentation [DOCDIR]
1594 --dvidir=DIR dvi documentation [DOCDIR]
1595 --pdfdir=DIR pdf documentation [DOCDIR]
1596 --psdir=DIR ps documentation [DOCDIR]
1597 _ACEOF
1598
1599 cat <<\_ACEOF
1600
1601 Program names:
1602 --program-prefix=PREFIX prepend PREFIX to installed program names
1603 --program-suffix=SUFFIX append SUFFIX to installed program names
1604 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1605
1606 System types:
1607 --build=BUILD configure for building on BUILD [guessed]
1608 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1609 _ACEOF
1610 fi
1611
1612 if test -n "$ac_init_help"; then
1613 case $ac_init_help in
1614 short | recursive ) echo "Configuration of xf86-video-ati 6.12.4:";;
1615 esac
1616 cat <<\_ACEOF
1617
1618 Optional Features:
1619 --disable-option-checking ignore unrecognized --enable/--with options
1620 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1621 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1622 --enable-maintainer-mode enable make rules and dependencies not useful
1623 (and sometimes confusing) to the casual installer
1624 --enable-static[=PKGS] build static libraries [default=no]
1625 --enable-shared[=PKGS] build shared libraries [default=yes]
1626 --enable-fast-install[=PKGS]
1627 optimize for fast installation [default=yes]
1628 --disable-dependency-tracking speeds up one-time build
1629 --enable-dependency-tracking do not reject slow dependency extractors
1630 --disable-libtool-lock avoid locking (might break parallel builds)
1631 --disable-dri Disable DRI support [default=auto]
1632 --disable-exa Disable EXA support [default=enabled]
1633
1634 Optional Packages:
1635 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1636 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1637 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1638 --with-pic try to use only PIC/non-PIC objects [default=use
1639 both]
1640 --with-tags[=TAGS] include additional configurations [automatic]
1641 --with-xorg-module-dir=DIR
1642 Default xorg module directory
1643 [default=$libdir/xorg/modules]
1644 --with-xserver-source=XSERVER_SOURCE
1645 Path to X server source tree
1646 --with-release-version=STRING
1647 Use release version string in package name
1648
1649 Some influential environment variables:
1650 CC C compiler command
1651 CFLAGS C compiler flags
1652 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1653 nonstandard directory <lib dir>
1654 LIBS libraries to pass to the linker, e.g. -l<library>
1655 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1656 you have headers in a nonstandard directory <include dir>
1657 CPP C preprocessor
1658 CXX C++ compiler command
1659 CXXFLAGS C++ compiler flags
1660 CXXCPP C++ preprocessor
1661 F77 Fortran 77 compiler command
1662 FFLAGS Fortran 77 compiler flags
1663 PKG_CONFIG path to pkg-config utility
1664 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1665 XORG_LIBS linker flags for XORG, overriding pkg-config
1666 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1667 XEXT_LIBS linker flags for XEXT, overriding pkg-config
1668 DRI_CFLAGS C compiler flags for DRI, overriding pkg-config
1669 DRI_LIBS linker flags for DRI, overriding pkg-config
1670 PCIACCESS_CFLAGS
1671 C compiler flags for PCIACCESS, overriding pkg-config
1672 PCIACCESS_LIBS
1673 linker flags for PCIACCESS, overriding pkg-config
1674
1675 Use these variables to override the choices made by `configure' or to help
1676 it to find libraries and programs with nonstandard names/locations.
1677
1678 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1679 _ACEOF
1680 ac_status=$?
1681 fi
1682
1683 if test "$ac_init_help" = "recursive"; then
1684 # If there are subdirs, report their specific --help.
1685 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1686 test -d "$ac_dir" ||
1687 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1688 continue
1689 ac_builddir=.
1690
1691 case "$ac_dir" in
1692 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1693 *)
1694 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1695 # A ".." for each directory in $ac_dir_suffix.
1696 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1697 case $ac_top_builddir_sub in
1698 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1699 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1700 esac ;;
1701 esac
1702 ac_abs_top_builddir=$ac_pwd
1703 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1704 # for backward compatibility:
1705 ac_top_builddir=$ac_top_build_prefix
1706
1707 case $srcdir in
1708 .) # We are building in place.
1709 ac_srcdir=.
1710 ac_top_srcdir=$ac_top_builddir_sub
1711 ac_abs_top_srcdir=$ac_pwd ;;
1712 [\\/]* | ?:[\\/]* ) # Absolute name.
1713 ac_srcdir=$srcdir$ac_dir_suffix;
1714 ac_top_srcdir=$srcdir
1715 ac_abs_top_srcdir=$srcdir ;;
1716 *) # Relative name.
1717 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1718 ac_top_srcdir=$ac_top_build_prefix$srcdir
1719 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1720 esac
1721 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1722
1723 cd "$ac_dir" || { ac_status=$?; continue; }
1724 # Check for guested configure.
1725 if test -f "$ac_srcdir/configure.gnu"; then
1726 echo &&
1727 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1728 elif test -f "$ac_srcdir/configure"; then
1729 echo &&
1730 $SHELL "$ac_srcdir/configure" --help=recursive
1731 else
1732 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1733 fi || ac_status=$?
1734 cd "$ac_pwd" || { ac_status=$?; break; }
1735 done
1736 fi
1737
1738 test -n "$ac_init_help" && exit $ac_status
1739 if $ac_init_version; then
1740 cat <<\_ACEOF
1741 xf86-video-ati configure 6.12.4
1742 generated by GNU Autoconf 2.63
1743
1744 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1745 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1746 This configure script is free software; the Free Software Foundation
1747 gives unlimited permission to copy, distribute and modify it.
1748 _ACEOF
1749 exit
1750 fi
1751 cat >config.log <<_ACEOF
1752 This file contains any messages produced by compilers while
1753 running configure, to aid debugging if configure makes a mistake.
1754
1755 It was created by xf86-video-ati $as_me 6.12.4, which was
1756 generated by GNU Autoconf 2.63. Invocation command line was
1757
1758 $ $0 $@
1759
1760 _ACEOF
1761 exec 5>>config.log
1762 {
1763 cat <<_ASUNAME
1764 ## --------- ##
1765 ## Platform. ##
1766 ## --------- ##
1767
1768 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1769 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1770 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1771 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1772 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1773
1774 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1775 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1776
1777 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1778 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1779 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1780 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1781 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1782 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1783 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1784
1785 _ASUNAME
1786
1787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1788 for as_dir in $PATH
1789 do
1790 IFS=$as_save_IFS
1791 test -z "$as_dir" && as_dir=.
1792 $as_echo "PATH: $as_dir"
1793 done
1794 IFS=$as_save_IFS
1795
1796 } >&5
1797
1798 cat >&5 <<_ACEOF
1799
1800
1801 ## ----------- ##
1802 ## Core tests. ##
1803 ## ----------- ##
1804
1805 _ACEOF
1806
1807
1808 # Keep a trace of the command line.
1809 # Strip out --no-create and --no-recursion so they do not pile up.
1810 # Strip out --silent because we don't want to record it for future runs.
1811 # Also quote any args containing shell meta-characters.
1812 # Make two passes to allow for proper duplicate-argument suppression.
1813 ac_configure_args=
1814 ac_configure_args0=
1815 ac_configure_args1=
1816 ac_must_keep_next=false
1817 for ac_pass in 1 2
1818 do
1819 for ac_arg
1820 do
1821 case $ac_arg in
1822 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1823 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1824 | -silent | --silent | --silen | --sile | --sil)
1825 continue ;;
1826 *\'*)
1827 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1828 esac
1829 case $ac_pass in
1830 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1831 2)
1832 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1833 if test $ac_must_keep_next = true; then
1834 ac_must_keep_next=false # Got value, back to normal.
1835 else
1836 case $ac_arg in
1837 *=* | --config-cache | -C | -disable-* | --disable-* \
1838 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1839 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1840 | -with-* | --with-* | -without-* | --without-* | --x)
1841 case "$ac_configure_args0 " in
1842 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1843 esac
1844 ;;
1845 -* ) ac_must_keep_next=true ;;
1846 esac
1847 fi
1848 ac_configure_args="$ac_configure_args '$ac_arg'"
1849 ;;
1850 esac
1851 done
1852 done
1853 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1854 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1855
1856 # When interrupted or exit'd, cleanup temporary files, and complete
1857 # config.log. We remove comments because anyway the quotes in there
1858 # would cause problems or look ugly.
1859 # WARNING: Use '\'' to represent an apostrophe within the trap.
1860 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1861 trap 'exit_status=$?
1862 # Save into config.log some information that might help in debugging.
1863 {
1864 echo
1865
1866 cat <<\_ASBOX
1867 ## ---------------- ##
1868 ## Cache variables. ##
1869 ## ---------------- ##
1870 _ASBOX
1871 echo
1872 # The following way of writing the cache mishandles newlines in values,
1873 (
1874 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1875 eval ac_val=\$$ac_var
1876 case $ac_val in #(
1877 *${as_nl}*)
1878 case $ac_var in #(
1879 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1880 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1881 esac
1882 case $ac_var in #(
1883 _ | IFS | as_nl) ;; #(
1884 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1885 *) $as_unset $ac_var ;;
1886 esac ;;
1887 esac
1888 done
1889 (set) 2>&1 |
1890 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1891 *${as_nl}ac_space=\ *)
1892 sed -n \
1893 "s/'\''/'\''\\\\'\'''\''/g;
1894 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1895 ;; #(
1896 *)
1897 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1898 ;;
1899 esac |
1900 sort
1901 )
1902 echo
1903
1904 cat <<\_ASBOX
1905 ## ----------------- ##
1906 ## Output variables. ##
1907 ## ----------------- ##
1908 _ASBOX
1909 echo
1910 for ac_var in $ac_subst_vars
1911 do
1912 eval ac_val=\$$ac_var
1913 case $ac_val in
1914 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1915 esac
1916 $as_echo "$ac_var='\''$ac_val'\''"
1917 done | sort
1918 echo
1919
1920 if test -n "$ac_subst_files"; then
1921 cat <<\_ASBOX
1922 ## ------------------- ##
1923 ## File substitutions. ##
1924 ## ------------------- ##
1925 _ASBOX
1926 echo
1927 for ac_var in $ac_subst_files
1928 do
1929 eval ac_val=\$$ac_var
1930 case $ac_val in
1931 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1932 esac
1933 $as_echo "$ac_var='\''$ac_val'\''"
1934 done | sort
1935 echo
1936 fi
1937
1938 if test -s confdefs.h; then
1939 cat <<\_ASBOX
1940 ## ----------- ##
1941 ## confdefs.h. ##
1942 ## ----------- ##
1943 _ASBOX
1944 echo
1945 cat confdefs.h
1946 echo
1947 fi
1948 test "$ac_signal" != 0 &&
1949 $as_echo "$as_me: caught signal $ac_signal"
1950 $as_echo "$as_me: exit $exit_status"
1951 } >&5
1952 rm -f core *.core core.conftest.* &&
1953 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1954 exit $exit_status
1955 ' 0
1956 for ac_signal in 1 2 13 15; do
1957 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1958 done
1959 ac_signal=0
1960
1961 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1962 rm -f -r conftest* confdefs.h
1963
1964 # Predefined preprocessor variables.
1965
1966 cat >>confdefs.h <<_ACEOF
1967 #define PACKAGE_NAME "$PACKAGE_NAME"
1968 _ACEOF
1969
1970
1971 cat >>confdefs.h <<_ACEOF
1972 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1973 _ACEOF
1974
1975
1976 cat >>confdefs.h <<_ACEOF
1977 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1978 _ACEOF
1979
1980
1981 cat >>confdefs.h <<_ACEOF
1982 #define PACKAGE_STRING "$PACKAGE_STRING"
1983 _ACEOF
1984
1985
1986 cat >>confdefs.h <<_ACEOF
1987 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1988 _ACEOF
1989
1990
1991 # Let the site file select an alternate cache file if it wants to.
1992 # Prefer an explicitly selected file to automatically selected ones.
1993 ac_site_file1=NONE
1994 ac_site_file2=NONE
1995 if test -n "$CONFIG_SITE"; then
1996 ac_site_file1=$CONFIG_SITE
1997 elif test "x$prefix" != xNONE; then
1998 ac_site_file1=$prefix/share/config.site
1999 ac_site_file2=$prefix/etc/config.site
2000 else
2001 ac_site_file1=$ac_default_prefix/share/config.site
2002 ac_site_file2=$ac_default_prefix/etc/config.site
2003 fi
2004 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2005 do
2006 test "x$ac_site_file" = xNONE && continue
2007 if test -r "$ac_site_file"; then
2008 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2009 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2010 sed 's/^/| /' "$ac_site_file" >&5
2011 . "$ac_site_file"
2012 fi
2013 done
2014
2015 if test -r "$cache_file"; then
2016 # Some versions of bash will fail to source /dev/null (special
2017 # files actually), so we avoid doing that.
2018 if test -f "$cache_file"; then
2019 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2020 $as_echo "$as_me: loading cache $cache_file" >&6;}
2021 case $cache_file in
2022 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2023 *) . "./$cache_file";;
2024 esac
2025 fi
2026 else
2027 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2028 $as_echo "$as_me: creating cache $cache_file" >&6;}
2029 >$cache_file
2030 fi
2031
2032 # Check that the precious variables saved in the cache have kept the same
2033 # value.
2034 ac_cache_corrupted=false
2035 for ac_var in $ac_precious_vars; do
2036 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2037 eval ac_new_set=\$ac_env_${ac_var}_set
2038 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2039 eval ac_new_val=\$ac_env_${ac_var}_value
2040 case $ac_old_set,$ac_new_set in
2041 set,)
2042 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2043 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2044 ac_cache_corrupted=: ;;
2045 ,set)
2046 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2047 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2048 ac_cache_corrupted=: ;;
2049 ,);;
2050 *)
2051 if test "x$ac_old_val" != "x$ac_new_val"; then
2052 # differences in whitespace do not lead to failure.
2053 ac_old_val_w=`echo x $ac_old_val`
2054 ac_new_val_w=`echo x $ac_new_val`
2055 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2056 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2057 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2058 ac_cache_corrupted=:
2059 else
2060 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2061 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2062 eval $ac_var=\$ac_old_val
2063 fi
2064 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2065 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2066 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2067 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2068 fi;;
2069 esac
2070 # Pass precious variables to config.status.
2071 if test "$ac_new_set" = set; then
2072 case $ac_new_val in
2073 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2074 *) ac_arg=$ac_var=$ac_new_val ;;
2075 esac
2076 case " $ac_configure_args " in
2077 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2078 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2079 esac
2080 fi
2081 done
2082 if $ac_cache_corrupted; then
2083 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2084 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2085 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2086 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2087 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2088 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2089 { (exit 1); exit 1; }; }
2090 fi
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116 ac_ext=c
2117 ac_cpp='$CPP $CPPFLAGS'
2118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2121
2122
2123
2124
2125 ac_config_headers="$ac_config_headers config.h"
2126
2127 ac_aux_dir=
2128 for ac_dir in . "$srcdir"/.; do
2129 if test -f "$ac_dir/install-sh"; then
2130 ac_aux_dir=$ac_dir
2131 ac_install_sh="$ac_aux_dir/install-sh -c"
2132 break
2133 elif test -f "$ac_dir/install.sh"; then
2134 ac_aux_dir=$ac_dir
2135 ac_install_sh="$ac_aux_dir/install.sh -c"
2136 break
2137 elif test -f "$ac_dir/shtool"; then
2138 ac_aux_dir=$ac_dir
2139 ac_install_sh="$ac_aux_dir/shtool install -c"
2140 break
2141 fi
2142 done
2143 if test -z "$ac_aux_dir"; then
2144 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
2145 $as_echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
2146 { (exit 1); exit 1; }; }
2147 fi
2148
2149 # These three variables are undocumented and unsupported,
2150 # and are intended to be withdrawn in a future Autoconf release.
2151 # They can cause serious problems if a builder's source tree is in a directory
2152 # whose full name contains unusual characters.
2153 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2154 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2155 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2156
2157
2158
2159 am__api_version='1.11'
2160
2161 # Find a good install program. We prefer a C program (faster),
2162 # so one script is as good as another. But avoid the broken or
2163 # incompatible versions:
2164 # SysV /etc/install, /usr/sbin/install
2165 # SunOS /usr/etc/install
2166 # IRIX /sbin/install
2167 # AIX /bin/install
2168 # AmigaOS /C/install, which installs bootblocks on floppy discs
2169 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2170 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2171 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2172 # OS/2's system install, which has a completely different semantic
2173 # ./install, which can be erroneously created by make from ./install.sh.
2174 # Reject install programs that cannot install multiple files.
2175 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2176 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2177 if test -z "$INSTALL"; then
2178 if test "${ac_cv_path_install+set}" = set; then
2179 $as_echo_n "(cached) " >&6
2180 else
2181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2182 for as_dir in $PATH
2183 do
2184 IFS=$as_save_IFS
2185 test -z "$as_dir" && as_dir=.
2186 # Account for people who put trailing slashes in PATH elements.
2187 case $as_dir/ in
2188 ./ | .// | /cC/* | \
2189 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2190 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2191 /usr/ucb/* ) ;;
2192 *)
2193 # OSF1 and SCO ODT 3.0 have their own names for install.
2194 # Don't use installbsd from OSF since it installs stuff as root
2195 # by default.
2196 for ac_prog in ginstall scoinst install; do
2197 for ac_exec_ext in '' $ac_executable_extensions; do
2198 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2199 if test $ac_prog = install &&
2200 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2201 # AIX install. It has an incompatible calling convention.
2202 :
2203 elif test $ac_prog = install &&
2204 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2205 # program-specific install script used by HP pwplus--don't use.
2206 :
2207 else
2208 rm -rf conftest.one conftest.two conftest.dir
2209 echo one > conftest.one
2210 echo two > conftest.two
2211 mkdir conftest.dir
2212 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2213 test -s conftest.one && test -s conftest.two &&
2214 test -s conftest.dir/conftest.one &&
2215 test -s conftest.dir/conftest.two
2216 then
2217 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2218 break 3
2219 fi
2220 fi
2221 fi
2222 done
2223 done
2224 ;;
2225 esac
2226
2227 done
2228 IFS=$as_save_IFS
2229
2230 rm -rf conftest.one conftest.two conftest.dir
2231
2232 fi
2233 if test "${ac_cv_path_install+set}" = set; then
2234 INSTALL=$ac_cv_path_install
2235 else
2236 # As a last resort, use the slow shell script. Don't cache a
2237 # value for INSTALL within a source directory, because that will
2238 # break other packages using the cache if that directory is
2239 # removed, or if the value is a relative name.
2240 INSTALL=$ac_install_sh
2241 fi
2242 fi
2243 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2244 $as_echo "$INSTALL" >&6; }
2245
2246 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2247 # It thinks the first close brace ends the variable substitution.
2248 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2249
2250 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2251
2252 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2253
2254 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2255 $as_echo_n "checking whether build environment is sane... " >&6; }
2256 # Just in case
2257 sleep 1
2258 echo timestamp > conftest.file
2259 # Reject unsafe characters in $srcdir or the absolute working directory
2260 # name. Accept space and tab only in the latter.
2261 am_lf='
2262 '
2263 case `pwd` in
2264 *[\\\"\#\$\&\'\`$am_lf]*)
2265 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2266 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2267 { (exit 1); exit 1; }; };;
2268 esac
2269 case $srcdir in
2270 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2271 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2272 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2273 { (exit 1); exit 1; }; };;
2274 esac
2275
2276 # Do `set' in a subshell so we don't clobber the current shell's
2277 # arguments. Must try -L first in case configure is actually a
2278 # symlink; some systems play weird games with the mod time of symlinks
2279 # (eg FreeBSD returns the mod time of the symlink's containing
2280 # directory).
2281 if (
2282 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2283 if test "$*" = "X"; then
2284 # -L didn't work.
2285 set X `ls -t "$srcdir/configure" conftest.file`
2286 fi
2287 rm -f conftest.file
2288 if test "$*" != "X $srcdir/configure conftest.file" \
2289 && test "$*" != "X conftest.file $srcdir/configure"; then
2290
2291 # If neither matched, then we have a broken ls. This can happen
2292 # if, for instance, CONFIG_SHELL is bash and it inherits a
2293 # broken ls alias from the environment. This has actually
2294 # happened. Such a system could not be considered "sane".
2295 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2296 alias in your environment" >&5
2297 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2298 alias in your environment" >&2;}
2299 { (exit 1); exit 1; }; }
2300 fi
2301
2302 test "$2" = conftest.file
2303 )
2304 then
2305 # Ok.
2306 :
2307 else
2308 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2309 Check your system clock" >&5
2310 $as_echo "$as_me: error: newly created file is older than distributed files!
2311 Check your system clock" >&2;}
2312 { (exit 1); exit 1; }; }
2313 fi
2314 { $as_echo "$as_me:$LINENO: result: yes" >&5
2315 $as_echo "yes" >&6; }
2316 test "$program_prefix" != NONE &&
2317 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2318 # Use a double $ so make ignores it.
2319 test "$program_suffix" != NONE &&
2320 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2321 # Double any \ or $.
2322 # By default was `s,x,x', remove it if useless.
2323 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2324 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2325
2326 # expand $ac_aux_dir to an absolute path
2327 am_aux_dir=`cd $ac_aux_dir && pwd`
2328
2329 if test x"${MISSING+set}" != xset; then
2330 case $am_aux_dir in
2331 *\ * | *\ *)
2332 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2333 *)
2334 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2335 esac
2336 fi
2337 # Use eval to expand $SHELL
2338 if eval "$MISSING --run true"; then
2339 am_missing_run="$MISSING --run "
2340 else
2341 am_missing_run=
2342 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2343 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2344 fi
2345
2346 if test x"${install_sh}" != xset; then
2347 case $am_aux_dir in
2348 *\ * | *\ *)
2349 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2350 *)
2351 install_sh="\${SHELL} $am_aux_dir/install-sh"
2352 esac
2353 fi
2354
2355 # Installed binaries are usually stripped using `strip' when the user
2356 # run `make install-strip'. However `strip' might not be the right
2357 # tool to use in cross-compilation environments, therefore Automake
2358 # will honor the `STRIP' environment variable to overrule this program.
2359 if test "$cross_compiling" != no; then
2360 if test -n "$ac_tool_prefix"; then
2361 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2362 set dummy ${ac_tool_prefix}strip; ac_word=$2
2363 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2364 $as_echo_n "checking for $ac_word... " >&6; }
2365 if test "${ac_cv_prog_STRIP+set}" = set; then
2366 $as_echo_n "(cached) " >&6
2367 else
2368 if test -n "$STRIP"; then
2369 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2370 else
2371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2372 for as_dir in $PATH
2373 do
2374 IFS=$as_save_IFS
2375 test -z "$as_dir" && as_dir=.
2376 for ac_exec_ext in '' $ac_executable_extensions; do
2377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2378 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2379 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2380 break 2
2381 fi
2382 done
2383 done
2384 IFS=$as_save_IFS
2385
2386 fi
2387 fi
2388 STRIP=$ac_cv_prog_STRIP
2389 if test -n "$STRIP"; then
2390 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2391 $as_echo "$STRIP" >&6; }
2392 else
2393 { $as_echo "$as_me:$LINENO: result: no" >&5
2394 $as_echo "no" >&6; }
2395 fi
2396
2397
2398 fi
2399 if test -z "$ac_cv_prog_STRIP"; then
2400 ac_ct_STRIP=$STRIP
2401 # Extract the first word of "strip", so it can be a program name with args.
2402 set dummy strip; ac_word=$2
2403 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2404 $as_echo_n "checking for $ac_word... " >&6; }
2405 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2406 $as_echo_n "(cached) " >&6
2407 else
2408 if test -n "$ac_ct_STRIP"; then
2409 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2410 else
2411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2412 for as_dir in $PATH
2413 do
2414 IFS=$as_save_IFS
2415 test -z "$as_dir" && as_dir=.
2416 for ac_exec_ext in '' $ac_executable_extensions; do
2417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2418 ac_cv_prog_ac_ct_STRIP="strip"
2419 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2420 break 2
2421 fi
2422 done
2423 done
2424 IFS=$as_save_IFS
2425
2426 fi
2427 fi
2428 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2429 if test -n "$ac_ct_STRIP"; then
2430 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2431 $as_echo "$ac_ct_STRIP" >&6; }
2432 else
2433 { $as_echo "$as_me:$LINENO: result: no" >&5
2434 $as_echo "no" >&6; }
2435 fi
2436
2437 if test "x$ac_ct_STRIP" = x; then
2438 STRIP=":"
2439 else
2440 case $cross_compiling:$ac_tool_warned in
2441 yes:)
2442 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2443 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2444 ac_tool_warned=yes ;;
2445 esac
2446 STRIP=$ac_ct_STRIP
2447 fi
2448 else
2449 STRIP="$ac_cv_prog_STRIP"
2450 fi
2451
2452 fi
2453 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2454
2455 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2456 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2457 if test -z "$MKDIR_P"; then
2458 if test "${ac_cv_path_mkdir+set}" = set; then
2459 $as_echo_n "(cached) " >&6
2460 else
2461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2462 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2463 do
2464 IFS=$as_save_IFS
2465 test -z "$as_dir" && as_dir=.
2466 for ac_prog in mkdir gmkdir; do
2467 for ac_exec_ext in '' $ac_executable_extensions; do
2468 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2469 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2470 'mkdir (GNU coreutils) '* | \
2471 'mkdir (coreutils) '* | \
2472 'mkdir (fileutils) '4.1*)
2473 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2474 break 3;;
2475 esac
2476 done
2477 done
2478 done
2479 IFS=$as_save_IFS
2480
2481 fi
2482
2483 if test "${ac_cv_path_mkdir+set}" = set; then
2484 MKDIR_P="$ac_cv_path_mkdir -p"
2485 else
2486 # As a last resort, use the slow shell script. Don't cache a
2487 # value for MKDIR_P within a source directory, because that will
2488 # break other packages using the cache if that directory is
2489 # removed, or if the value is a relative name.
2490 test -d ./--version && rmdir ./--version
2491 MKDIR_P="$ac_install_sh -d"
2492 fi
2493 fi
2494 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2495 $as_echo "$MKDIR_P" >&6; }
2496
2497 mkdir_p="$MKDIR_P"
2498 case $mkdir_p in
2499 [\\/$]* | ?:[\\/]*) ;;
2500 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2501 esac
2502
2503 for ac_prog in gawk mawk nawk awk
2504 do
2505 # Extract the first word of "$ac_prog", so it can be a program name with args.
2506 set dummy $ac_prog; ac_word=$2
2507 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2508 $as_echo_n "checking for $ac_word... " >&6; }
2509 if test "${ac_cv_prog_AWK+set}" = set; then
2510 $as_echo_n "(cached) " >&6
2511 else
2512 if test -n "$AWK"; then
2513 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2514 else
2515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2516 for as_dir in $PATH
2517 do
2518 IFS=$as_save_IFS
2519 test -z "$as_dir" && as_dir=.
2520 for ac_exec_ext in '' $ac_executable_extensions; do
2521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2522 ac_cv_prog_AWK="$ac_prog"
2523 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2524 break 2
2525 fi
2526 done
2527 done
2528 IFS=$as_save_IFS
2529
2530 fi
2531 fi
2532 AWK=$ac_cv_prog_AWK
2533 if test -n "$AWK"; then
2534 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2535 $as_echo "$AWK" >&6; }
2536 else
2537 { $as_echo "$as_me:$LINENO: result: no" >&5
2538 $as_echo "no" >&6; }
2539 fi
2540
2541
2542 test -n "$AWK" && break
2543 done
2544
2545 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2546 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2547 set x ${MAKE-make}
2548 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2549 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2550 $as_echo_n "(cached) " >&6
2551 else
2552 cat >conftest.make <<\_ACEOF
2553 SHELL = /bin/sh
2554 all:
2555 @echo '@@@%%%=$(MAKE)=@@@%%%'
2556 _ACEOF
2557 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2558 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2559 *@@@%%%=?*=@@@%%%*)
2560 eval ac_cv_prog_make_${ac_make}_set=yes;;
2561 *)
2562 eval ac_cv_prog_make_${ac_make}_set=no;;
2563 esac
2564 rm -f conftest.make
2565 fi
2566 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2567 { $as_echo "$as_me:$LINENO: result: yes" >&5
2568 $as_echo "yes" >&6; }
2569 SET_MAKE=
2570 else
2571 { $as_echo "$as_me:$LINENO: result: no" >&5
2572 $as_echo "no" >&6; }
2573 SET_MAKE="MAKE=${MAKE-make}"
2574 fi
2575
2576 rm -rf .tst 2>/dev/null
2577 mkdir .tst 2>/dev/null
2578 if test -d .tst; then
2579 am__leading_dot=.
2580 else
2581 am__leading_dot=_
2582 fi
2583 rmdir .tst 2>/dev/null
2584
2585 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2586 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2587 # is not polluted with repeated "-I."
2588 am__isrc=' -I$(srcdir)'
2589 # test to see if srcdir already configured
2590 if test -f $srcdir/config.status; then
2591 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2592 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2593 { (exit 1); exit 1; }; }
2594 fi
2595 fi
2596
2597 # test whether we have cygpath
2598 if test -z "$CYGPATH_W"; then
2599 if (cygpath --version) >/dev/null 2>/dev/null; then
2600 CYGPATH_W='cygpath -w'
2601 else
2602 CYGPATH_W=echo
2603 fi
2604 fi
2605
2606
2607 # Define the identity of the package.
2608 PACKAGE='xf86-video-ati'
2609 VERSION='6.12.4'
2610
2611
2612 cat >>confdefs.h <<_ACEOF
2613 #define PACKAGE "$PACKAGE"
2614 _ACEOF
2615
2616
2617 cat >>confdefs.h <<_ACEOF
2618 #define VERSION "$VERSION"
2619 _ACEOF
2620
2621 # Some tools Automake needs.
2622
2623 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2624
2625
2626 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2627
2628
2629 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2630
2631
2632 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2633
2634
2635 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2636
2637 # We need awk for the "check" target. The system "awk" is bad on
2638 # some platforms.
2639 # Always define AMTAR for backward compatibility.
2640
2641 AMTAR=${AMTAR-"${am_missing_run}tar"}
2642
2643 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2644
2645
2646
2647
2648
2649
2650
2651 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2652 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2653 # Check whether --enable-maintainer-mode was given.
2654 if test "${enable_maintainer_mode+set}" = set; then
2655 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2656 else
2657 USE_MAINTAINER_MODE=no
2658 fi
2659
2660 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2661 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2662 if test $USE_MAINTAINER_MODE = yes; then
2663 MAINTAINER_MODE_TRUE=
2664 MAINTAINER_MODE_FALSE='#'
2665 else
2666 MAINTAINER_MODE_TRUE='#'
2667 MAINTAINER_MODE_FALSE=
2668 fi
2669
2670 MAINT=$MAINTAINER_MODE_TRUE
2671
2672
2673
2674 # Checks for programs.
2675 # Check whether --enable-static was given.
2676 if test "${enable_static+set}" = set; then
2677 enableval=$enable_static; p=${PACKAGE-default}
2678 case $enableval in
2679 yes) enable_static=yes ;;
2680 no) enable_static=no ;;
2681 *)
2682 enable_static=no
2683 # Look at the argument we got. We use all the common list separators.
2684 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2685 for pkg in $enableval; do
2686 IFS="$lt_save_ifs"
2687 if test "X$pkg" = "X$p"; then
2688 enable_static=yes
2689 fi
2690 done
2691 IFS="$lt_save_ifs"
2692 ;;
2693 esac
2694 else
2695 enable_static=no
2696 fi
2697
2698
2699
2700 # Check whether --enable-shared was given.
2701 if test "${enable_shared+set}" = set; then
2702 enableval=$enable_shared; p=${PACKAGE-default}
2703 case $enableval in
2704 yes) enable_shared=yes ;;
2705 no) enable_shared=no ;;
2706 *)
2707 enable_shared=no
2708 # Look at the argument we got. We use all the common list separators.
2709 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2710 for pkg in $enableval; do
2711 IFS="$lt_save_ifs"
2712 if test "X$pkg" = "X$p"; then
2713 enable_shared=yes
2714 fi
2715 done
2716 IFS="$lt_save_ifs"
2717 ;;
2718 esac
2719 else
2720 enable_shared=yes
2721 fi
2722
2723
2724 # Check whether --enable-fast-install was given.
2725 if test "${enable_fast_install+set}" = set; then
2726 enableval=$enable_fast_install; p=${PACKAGE-default}
2727 case $enableval in
2728 yes) enable_fast_install=yes ;;
2729 no) enable_fast_install=no ;;
2730 *)
2731 enable_fast_install=no
2732 # Look at the argument we got. We use all the common list separators.
2733 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2734 for pkg in $enableval; do
2735 IFS="$lt_save_ifs"
2736 if test "X$pkg" = "X$p"; then
2737 enable_fast_install=yes
2738 fi
2739 done
2740 IFS="$lt_save_ifs"
2741 ;;
2742 esac
2743 else
2744 enable_fast_install=yes
2745 fi
2746
2747
2748 # Make sure we can run config.sub.
2749 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2750 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2751 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2752 { (exit 1); exit 1; }; }
2753
2754 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2755 $as_echo_n "checking build system type... " >&6; }
2756 if test "${ac_cv_build+set}" = set; then
2757 $as_echo_n "(cached) " >&6
2758 else
2759 ac_build_alias=$build_alias
2760 test "x$ac_build_alias" = x &&
2761 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2762 test "x$ac_build_alias" = x &&
2763 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2764 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2765 { (exit 1); exit 1; }; }
2766 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2767 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2768 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2769 { (exit 1); exit 1; }; }
2770
2771 fi
2772 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2773 $as_echo "$ac_cv_build" >&6; }
2774 case $ac_cv_build in
2775 *-*-*) ;;
2776 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2777 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2778 { (exit 1); exit 1; }; };;
2779 esac
2780 build=$ac_cv_build
2781 ac_save_IFS=$IFS; IFS='-'
2782 set x $ac_cv_build
2783 shift
2784 build_cpu=$1
2785 build_vendor=$2
2786 shift; shift
2787 # Remember, the first character of IFS is used to create $*,
2788 # except with old shells:
2789 build_os=$*
2790 IFS=$ac_save_IFS
2791 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2792
2793
2794 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2795 $as_echo_n "checking host system type... " >&6; }
2796 if test "${ac_cv_host+set}" = set; then
2797 $as_echo_n "(cached) " >&6
2798 else
2799 if test "x$host_alias" = x; then
2800 ac_cv_host=$ac_cv_build
2801 else
2802 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2803 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2804 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2805 { (exit 1); exit 1; }; }
2806 fi
2807
2808 fi
2809 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2810 $as_echo "$ac_cv_host" >&6; }
2811 case $ac_cv_host in
2812 *-*-*) ;;
2813 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2814 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2815 { (exit 1); exit 1; }; };;
2816 esac
2817 host=$ac_cv_host
2818 ac_save_IFS=$IFS; IFS='-'
2819 set x $ac_cv_host
2820 shift
2821 host_cpu=$1
2822 host_vendor=$2
2823 shift; shift
2824 # Remember, the first character of IFS is used to create $*,
2825 # except with old shells:
2826 host_os=$*
2827 IFS=$ac_save_IFS
2828 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2829
2830
2831 DEPDIR="${am__leading_dot}deps"
2832
2833 ac_config_commands="$ac_config_commands depfiles"
2834
2835
2836 am_make=${MAKE-make}
2837 cat > confinc << 'END'
2838 am__doit:
2839 @echo this is the am__doit target
2840 .PHONY: am__doit
2841 END
2842 # If we don't find an include directive, just comment out the code.
2843 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2844 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2845 am__include="#"
2846 am__quote=
2847 _am_result=none
2848 # First try GNU make style include.
2849 echo "include confinc" > confmf
2850 # Ignore all kinds of additional output from `make'.
2851 case `$am_make -s -f confmf 2> /dev/null` in #(
2852 *the\ am__doit\ target*)
2853 am__include=include
2854 am__quote=
2855 _am_result=GNU
2856 ;;
2857 esac
2858 # Now try BSD make style include.
2859 if test "$am__include" = "#"; then
2860 echo '.include "confinc"' > confmf
2861 case `$am_make -s -f confmf 2> /dev/null` in #(
2862 *the\ am__doit\ target*)
2863 am__include=.include
2864 am__quote="\""
2865 _am_result=BSD
2866 ;;
2867 esac
2868 fi
2869
2870
2871 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2872 $as_echo "$_am_result" >&6; }
2873 rm -f confinc confmf
2874
2875 # Check whether --enable-dependency-tracking was given.
2876 if test "${enable_dependency_tracking+set}" = set; then
2877 enableval=$enable_dependency_tracking;
2878 fi
2879
2880 if test "x$enable_dependency_tracking" != xno; then
2881 am_depcomp="$ac_aux_dir/depcomp"
2882 AMDEPBACKSLASH='\'
2883 fi
2884 if test "x$enable_dependency_tracking" != xno; then
2885 AMDEP_TRUE=
2886 AMDEP_FALSE='#'
2887 else
2888 AMDEP_TRUE='#'
2889 AMDEP_FALSE=
2890 fi
2891
2892
2893 ac_ext=c
2894 ac_cpp='$CPP $CPPFLAGS'
2895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2898 if test -n "$ac_tool_prefix"; then
2899 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2900 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2901 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2902 $as_echo_n "checking for $ac_word... " >&6; }
2903 if test "${ac_cv_prog_CC+set}" = set; then
2904 $as_echo_n "(cached) " >&6
2905 else
2906 if test -n "$CC"; then
2907 ac_cv_prog_CC="$CC" # Let the user override the test.
2908 else
2909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2910 for as_dir in $PATH
2911 do
2912 IFS=$as_save_IFS
2913 test -z "$as_dir" && as_dir=.
2914 for ac_exec_ext in '' $ac_executable_extensions; do
2915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2916 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2917 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2918 break 2
2919 fi
2920 done
2921 done
2922 IFS=$as_save_IFS
2923
2924 fi
2925 fi
2926 CC=$ac_cv_prog_CC
2927 if test -n "$CC"; then
2928 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2929 $as_echo "$CC" >&6; }
2930 else
2931 { $as_echo "$as_me:$LINENO: result: no" >&5
2932 $as_echo "no" >&6; }
2933 fi
2934
2935
2936 fi
2937 if test -z "$ac_cv_prog_CC"; then
2938 ac_ct_CC=$CC
2939 # Extract the first word of "gcc", so it can be a program name with args.
2940 set dummy gcc; ac_word=$2
2941 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2942 $as_echo_n "checking for $ac_word... " >&6; }
2943 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2944 $as_echo_n "(cached) " >&6
2945 else
2946 if test -n "$ac_ct_CC"; then
2947 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2948 else
2949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2950 for as_dir in $PATH
2951 do
2952 IFS=$as_save_IFS
2953 test -z "$as_dir" && as_dir=.
2954 for ac_exec_ext in '' $ac_executable_extensions; do
2955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2956 ac_cv_prog_ac_ct_CC="gcc"
2957 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2958 break 2
2959 fi
2960 done
2961 done
2962 IFS=$as_save_IFS
2963
2964 fi
2965 fi
2966 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2967 if test -n "$ac_ct_CC"; then
2968 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2969 $as_echo "$ac_ct_CC" >&6; }
2970 else
2971 { $as_echo "$as_me:$LINENO: result: no" >&5
2972 $as_echo "no" >&6; }
2973 fi
2974
2975 if test "x$ac_ct_CC" = x; then
2976 CC=""
2977 else
2978 case $cross_compiling:$ac_tool_warned in
2979 yes:)
2980 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2981 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2982 ac_tool_warned=yes ;;
2983 esac
2984 CC=$ac_ct_CC
2985 fi
2986 else
2987 CC="$ac_cv_prog_CC"
2988 fi
2989
2990 if test -z "$CC"; then
2991 if test -n "$ac_tool_prefix"; then
2992 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2993 set dummy ${ac_tool_prefix}cc; ac_word=$2
2994 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2995 $as_echo_n "checking for $ac_word... " >&6; }
2996 if test "${ac_cv_prog_CC+set}" = set; then
2997 $as_echo_n "(cached) " >&6
2998 else
2999 if test -n "$CC"; then
3000 ac_cv_prog_CC="$CC" # Let the user override the test.
3001 else
3002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3003 for as_dir in $PATH
3004 do
3005 IFS=$as_save_IFS
3006 test -z "$as_dir" && as_dir=.
3007 for ac_exec_ext in '' $ac_executable_extensions; do
3008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3009 ac_cv_prog_CC="${ac_tool_prefix}cc"
3010 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3011 break 2
3012 fi
3013 done
3014 done
3015 IFS=$as_save_IFS
3016
3017 fi
3018 fi
3019 CC=$ac_cv_prog_CC
3020 if test -n "$CC"; then
3021 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3022 $as_echo "$CC" >&6; }
3023 else
3024 { $as_echo "$as_me:$LINENO: result: no" >&5
3025 $as_echo "no" >&6; }
3026 fi
3027
3028
3029 fi
3030 fi
3031 if test -z "$CC"; then
3032 # Extract the first word of "cc", so it can be a program name with args.
3033 set dummy cc; ac_word=$2
3034 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3035 $as_echo_n "checking for $ac_word... " >&6; }
3036 if test "${ac_cv_prog_CC+set}" = set; then
3037 $as_echo_n "(cached) " >&6
3038 else
3039 if test -n "$CC"; then
3040 ac_cv_prog_CC="$CC" # Let the user override the test.
3041 else
3042 ac_prog_rejected=no
3043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3044 for as_dir in $PATH
3045 do
3046 IFS=$as_save_IFS
3047 test -z "$as_dir" && as_dir=.
3048 for ac_exec_ext in '' $ac_executable_extensions; do
3049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3050 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3051 ac_prog_rejected=yes
3052 continue
3053 fi
3054 ac_cv_prog_CC="cc"
3055 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3056 break 2
3057 fi
3058 done
3059 done
3060 IFS=$as_save_IFS
3061
3062 if test $ac_prog_rejected = yes; then
3063 # We found a bogon in the path, so make sure we never use it.
3064 set dummy $ac_cv_prog_CC
3065 shift
3066 if test $# != 0; then
3067 # We chose a different compiler from the bogus one.
3068 # However, it has the same basename, so the bogon will be chosen
3069 # first if we set CC to just the basename; use the full file name.
3070 shift
3071 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3072 fi
3073 fi
3074 fi
3075 fi
3076 CC=$ac_cv_prog_CC
3077 if test -n "$CC"; then
3078 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3079 $as_echo "$CC" >&6; }
3080 else
3081 { $as_echo "$as_me:$LINENO: result: no" >&5
3082 $as_echo "no" >&6; }
3083 fi
3084
3085
3086 fi
3087 if test -z "$CC"; then
3088 if test -n "$ac_tool_prefix"; then
3089 for ac_prog in cl.exe
3090 do
3091 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3092 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3093 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3094 $as_echo_n "checking for $ac_word... " >&6; }
3095 if test "${ac_cv_prog_CC+set}" = set; then
3096 $as_echo_n "(cached) " >&6
3097 else
3098 if test -n "$CC"; then
3099 ac_cv_prog_CC="$CC" # Let the user override the test.
3100 else
3101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3102 for as_dir in $PATH
3103 do
3104 IFS=$as_save_IFS
3105 test -z "$as_dir" && as_dir=.
3106 for ac_exec_ext in '' $ac_executable_extensions; do
3107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3108 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3109 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3110 break 2
3111 fi
3112 done
3113 done
3114 IFS=$as_save_IFS
3115
3116 fi
3117 fi
3118 CC=$ac_cv_prog_CC
3119 if test -n "$CC"; then
3120 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3121 $as_echo "$CC" >&6; }
3122 else
3123 { $as_echo "$as_me:$LINENO: result: no" >&5
3124 $as_echo "no" >&6; }
3125 fi
3126
3127
3128 test -n "$CC" && break
3129 done
3130 fi
3131 if test -z "$CC"; then
3132 ac_ct_CC=$CC
3133 for ac_prog in cl.exe
3134 do
3135 # Extract the first word of "$ac_prog", so it can be a program name with args.
3136 set dummy $ac_prog; ac_word=$2
3137 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3138 $as_echo_n "checking for $ac_word... " >&6; }
3139 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3140 $as_echo_n "(cached) " >&6
3141 else
3142 if test -n "$ac_ct_CC"; then
3143 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3144 else
3145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3146 for as_dir in $PATH
3147 do
3148 IFS=$as_save_IFS
3149 test -z "$as_dir" && as_dir=.
3150 for ac_exec_ext in '' $ac_executable_extensions; do
3151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3152 ac_cv_prog_ac_ct_CC="$ac_prog"
3153 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3154 break 2
3155 fi
3156 done
3157 done
3158 IFS=$as_save_IFS
3159
3160 fi
3161 fi
3162 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3163 if test -n "$ac_ct_CC"; then
3164 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3165 $as_echo "$ac_ct_CC" >&6; }
3166 else
3167 { $as_echo "$as_me:$LINENO: result: no" >&5
3168 $as_echo "no" >&6; }
3169 fi
3170
3171
3172 test -n "$ac_ct_CC" && break
3173 done
3174
3175 if test "x$ac_ct_CC" = x; then
3176 CC=""
3177 else
3178 case $cross_compiling:$ac_tool_warned in
3179 yes:)
3180 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3181 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3182 ac_tool_warned=yes ;;
3183 esac
3184 CC=$ac_ct_CC
3185 fi
3186 fi
3187
3188 fi
3189
3190
3191 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3192 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3193 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3194 See \`config.log' for more details." >&5
3195 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3196 See \`config.log' for more details." >&2;}
3197 { (exit 1); exit 1; }; }; }
3198
3199 # Provide some information about the compiler.
3200 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3201 set X $ac_compile
3202 ac_compiler=$2
3203 { (ac_try="$ac_compiler --version >&5"
3204 case "(($ac_try" in
3205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3206 *) ac_try_echo=$ac_try;;
3207 esac
3208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3209 $as_echo "$ac_try_echo") >&5
3210 (eval "$ac_compiler --version >&5") 2>&5
3211 ac_status=$?
3212 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); }
3214 { (ac_try="$ac_compiler -v >&5"
3215 case "(($ac_try" in
3216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3217 *) ac_try_echo=$ac_try;;
3218 esac
3219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3220 $as_echo "$ac_try_echo") >&5
3221 (eval "$ac_compiler -v >&5") 2>&5
3222 ac_status=$?
3223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3224 (exit $ac_status); }
3225 { (ac_try="$ac_compiler -V >&5"
3226 case "(($ac_try" in
3227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3228 *) ac_try_echo=$ac_try;;
3229 esac
3230 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3231 $as_echo "$ac_try_echo") >&5
3232 (eval "$ac_compiler -V >&5") 2>&5
3233 ac_status=$?
3234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235 (exit $ac_status); }
3236
3237 cat >conftest.$ac_ext <<_ACEOF
3238 /* confdefs.h. */
3239 _ACEOF
3240 cat confdefs.h >>conftest.$ac_ext
3241 cat >>conftest.$ac_ext <<_ACEOF
3242 /* end confdefs.h. */
3243
3244 int
3245 main ()
3246 {
3247
3248 ;
3249 return 0;
3250 }
3251 _ACEOF
3252 ac_clean_files_save=$ac_clean_files
3253 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3254 # Try to create an executable without -o first, disregard a.out.
3255 # It will help us diagnose broken compilers, and finding out an intuition
3256 # of exeext.
3257 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3258 $as_echo_n "checking for C compiler default output file name... " >&6; }
3259 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3260
3261 # The possible output files:
3262 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3263
3264 ac_rmfiles=
3265 for ac_file in $ac_files
3266 do
3267 case $ac_file in
3268 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3269 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3270 esac
3271 done
3272 rm -f $ac_rmfiles
3273
3274 if { (ac_try="$ac_link_default"
3275 case "(($ac_try" in
3276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277 *) ac_try_echo=$ac_try;;
3278 esac
3279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3280 $as_echo "$ac_try_echo") >&5
3281 (eval "$ac_link_default") 2>&5
3282 ac_status=$?
3283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284 (exit $ac_status); }; then
3285 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3286 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3287 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3288 # so that the user can short-circuit this test for compilers unknown to
3289 # Autoconf.
3290 for ac_file in $ac_files ''
3291 do
3292 test -f "$ac_file" || continue
3293 case $ac_file in
3294 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3295 ;;
3296 [ab].out )
3297 # We found the default executable, but exeext='' is most
3298 # certainly right.
3299 break;;
3300 *.* )
3301 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3302 then :; else
3303 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3304 fi
3305 # We set ac_cv_exeext here because the later test for it is not
3306 # safe: cross compilers may not add the suffix if given an `-o'
3307 # argument, so we may need to know it at that point already.
3308 # Even if this section looks crufty: it has the advantage of
3309 # actually working.
3310 break;;
3311 * )
3312 break;;
3313 esac
3314 done
3315 test "$ac_cv_exeext" = no && ac_cv_exeext=
3316
3317 else
3318 ac_file=''
3319 fi
3320
3321 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3322 $as_echo "$ac_file" >&6; }
3323 if test -z "$ac_file"; then
3324 $as_echo "$as_me: failed program was:" >&5
3325 sed 's/^/| /' conftest.$ac_ext >&5
3326
3327 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3328 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3329 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3330 See \`config.log' for more details." >&5
3331 $as_echo "$as_me: error: C compiler cannot create executables
3332 See \`config.log' for more details." >&2;}
3333 { (exit 77); exit 77; }; }; }
3334 fi
3335
3336 ac_exeext=$ac_cv_exeext
3337
3338 # Check that the compiler produces executables we can run. If not, either
3339 # the compiler is broken, or we cross compile.
3340 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3341 $as_echo_n "checking whether the C compiler works... " >&6; }
3342 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3343 # If not cross compiling, check that we can run a simple program.
3344 if test "$cross_compiling" != yes; then
3345 if { ac_try='./$ac_file'
3346 { (case "(($ac_try" in
3347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3348 *) ac_try_echo=$ac_try;;
3349 esac
3350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3351 $as_echo "$ac_try_echo") >&5
3352 (eval "$ac_try") 2>&5
3353 ac_status=$?
3354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355 (exit $ac_status); }; }; then
3356 cross_compiling=no
3357 else
3358 if test "$cross_compiling" = maybe; then
3359 cross_compiling=yes
3360 else
3361 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3362 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3363 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3364 If you meant to cross compile, use \`--host'.
3365 See \`config.log' for more details." >&5
3366 $as_echo "$as_me: error: cannot run C compiled programs.
3367 If you meant to cross compile, use \`--host'.
3368 See \`config.log' for more details." >&2;}
3369 { (exit 1); exit 1; }; }; }
3370 fi
3371 fi
3372 fi
3373 { $as_echo "$as_me:$LINENO: result: yes" >&5
3374 $as_echo "yes" >&6; }
3375
3376 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3377 ac_clean_files=$ac_clean_files_save
3378 # Check that the compiler produces executables we can run. If not, either
3379 # the compiler is broken, or we cross compile.
3380 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3381 $as_echo_n "checking whether we are cross compiling... " >&6; }
3382 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3383 $as_echo "$cross_compiling" >&6; }
3384
3385 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3386 $as_echo_n "checking for suffix of executables... " >&6; }
3387 if { (ac_try="$ac_link"
3388 case "(($ac_try" in
3389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3390 *) ac_try_echo=$ac_try;;
3391 esac
3392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3393 $as_echo "$ac_try_echo") >&5
3394 (eval "$ac_link") 2>&5
3395 ac_status=$?
3396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397 (exit $ac_status); }; then
3398 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3399 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3400 # work properly (i.e., refer to `conftest.exe'), while it won't with
3401 # `rm'.
3402 for ac_file in conftest.exe conftest conftest.*; do
3403 test -f "$ac_file" || continue
3404 case $ac_file in
3405 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3406 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3407 break;;
3408 * ) break;;
3409 esac
3410 done
3411 else
3412 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3413 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3414 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3415 See \`config.log' for more details." >&5
3416 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3417 See \`config.log' for more details." >&2;}
3418 { (exit 1); exit 1; }; }; }
3419 fi
3420
3421 rm -f conftest$ac_cv_exeext
3422 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3423 $as_echo "$ac_cv_exeext" >&6; }
3424
3425 rm -f conftest.$ac_ext
3426 EXEEXT=$ac_cv_exeext
3427 ac_exeext=$EXEEXT
3428 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3429 $as_echo_n "checking for suffix of object files... " >&6; }
3430 if test "${ac_cv_objext+set}" = set; then
3431 $as_echo_n "(cached) " >&6
3432 else
3433 cat >conftest.$ac_ext <<_ACEOF
3434 /* confdefs.h. */
3435 _ACEOF
3436 cat confdefs.h >>conftest.$ac_ext
3437 cat >>conftest.$ac_ext <<_ACEOF
3438 /* end confdefs.h. */
3439
3440 int
3441 main ()
3442 {
3443
3444 ;
3445 return 0;
3446 }
3447 _ACEOF
3448 rm -f conftest.o conftest.obj
3449 if { (ac_try="$ac_compile"
3450 case "(($ac_try" in
3451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3452 *) ac_try_echo=$ac_try;;
3453 esac
3454 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3455 $as_echo "$ac_try_echo") >&5
3456 (eval "$ac_compile") 2>&5
3457 ac_status=$?
3458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459 (exit $ac_status); }; then
3460 for ac_file in conftest.o conftest.obj conftest.*; do
3461 test -f "$ac_file" || continue;
3462 case $ac_file in
3463 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3464 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3465 break;;
3466 esac
3467 done
3468 else
3469 $as_echo "$as_me: failed program was:" >&5
3470 sed 's/^/| /' conftest.$ac_ext >&5
3471
3472 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3473 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3474 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3475 See \`config.log' for more details." >&5
3476 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3477 See \`config.log' for more details." >&2;}
3478 { (exit 1); exit 1; }; }; }
3479 fi
3480
3481 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3482 fi
3483 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3484 $as_echo "$ac_cv_objext" >&6; }
3485 OBJEXT=$ac_cv_objext
3486 ac_objext=$OBJEXT
3487 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3488 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3489 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3490 $as_echo_n "(cached) " >&6
3491 else
3492 cat >conftest.$ac_ext <<_ACEOF
3493 /* confdefs.h. */
3494 _ACEOF
3495 cat confdefs.h >>conftest.$ac_ext
3496 cat >>conftest.$ac_ext <<_ACEOF
3497 /* end confdefs.h. */
3498
3499 int
3500 main ()
3501 {
3502 #ifndef __GNUC__
3503 choke me
3504 #endif
3505
3506 ;
3507 return 0;
3508 }
3509 _ACEOF
3510 rm -f conftest.$ac_objext
3511 if { (ac_try="$ac_compile"
3512 case "(($ac_try" in
3513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3514 *) ac_try_echo=$ac_try;;
3515 esac
3516 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3517 $as_echo "$ac_try_echo") >&5
3518 (eval "$ac_compile") 2>conftest.er1
3519 ac_status=$?
3520 grep -v '^ *+' conftest.er1 >conftest.err
3521 rm -f conftest.er1
3522 cat conftest.err >&5
3523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524 (exit $ac_status); } && {
3525 test -z "$ac_c_werror_flag" ||
3526 test ! -s conftest.err
3527 } && test -s conftest.$ac_objext; then
3528 ac_compiler_gnu=yes
3529 else
3530 $as_echo "$as_me: failed program was:" >&5
3531 sed 's/^/| /' conftest.$ac_ext >&5
3532
3533 ac_compiler_gnu=no
3534 fi
3535
3536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3537 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3538
3539 fi
3540 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3541 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3542 if test $ac_compiler_gnu = yes; then
3543 GCC=yes
3544 else
3545 GCC=
3546 fi
3547 ac_test_CFLAGS=${CFLAGS+set}
3548 ac_save_CFLAGS=$CFLAGS
3549 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3550 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3551 if test "${ac_cv_prog_cc_g+set}" = set; then
3552 $as_echo_n "(cached) " >&6
3553 else
3554 ac_save_c_werror_flag=$ac_c_werror_flag
3555 ac_c_werror_flag=yes
3556 ac_cv_prog_cc_g=no
3557 CFLAGS="-g"
3558 cat >conftest.$ac_ext <<_ACEOF
3559 /* confdefs.h. */
3560 _ACEOF
3561 cat confdefs.h >>conftest.$ac_ext
3562 cat >>conftest.$ac_ext <<_ACEOF
3563 /* end confdefs.h. */
3564
3565 int
3566 main ()
3567 {
3568
3569 ;
3570 return 0;
3571 }
3572 _ACEOF
3573 rm -f conftest.$ac_objext
3574 if { (ac_try="$ac_compile"
3575 case "(($ac_try" in
3576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3577 *) ac_try_echo=$ac_try;;
3578 esac
3579 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3580 $as_echo "$ac_try_echo") >&5
3581 (eval "$ac_compile") 2>conftest.er1
3582 ac_status=$?
3583 grep -v '^ *+' conftest.er1 >conftest.err
3584 rm -f conftest.er1
3585 cat conftest.err >&5
3586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587 (exit $ac_status); } && {
3588 test -z "$ac_c_werror_flag" ||
3589 test ! -s conftest.err
3590 } && test -s conftest.$ac_objext; then
3591 ac_cv_prog_cc_g=yes
3592 else
3593 $as_echo "$as_me: failed program was:" >&5
3594 sed 's/^/| /' conftest.$ac_ext >&5
3595
3596 CFLAGS=""
3597 cat >conftest.$ac_ext <<_ACEOF
3598 /* confdefs.h. */
3599 _ACEOF
3600 cat confdefs.h >>conftest.$ac_ext
3601 cat >>conftest.$ac_ext <<_ACEOF
3602 /* end confdefs.h. */
3603
3604 int
3605 main ()
3606 {
3607
3608 ;
3609 return 0;
3610 }
3611 _ACEOF
3612 rm -f conftest.$ac_objext
3613 if { (ac_try="$ac_compile"
3614 case "(($ac_try" in
3615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3616 *) ac_try_echo=$ac_try;;
3617 esac
3618 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3619 $as_echo "$ac_try_echo") >&5
3620 (eval "$ac_compile") 2>conftest.er1
3621 ac_status=$?
3622 grep -v '^ *+' conftest.er1 >conftest.err
3623 rm -f conftest.er1
3624 cat conftest.err >&5
3625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626 (exit $ac_status); } && {
3627 test -z "$ac_c_werror_flag" ||
3628 test ! -s conftest.err
3629 } && test -s conftest.$ac_objext; then
3630 :
3631 else
3632 $as_echo "$as_me: failed program was:" >&5
3633 sed 's/^/| /' conftest.$ac_ext >&5
3634
3635 ac_c_werror_flag=$ac_save_c_werror_flag
3636 CFLAGS="-g"
3637 cat >conftest.$ac_ext <<_ACEOF
3638 /* confdefs.h. */
3639 _ACEOF
3640 cat confdefs.h >>conftest.$ac_ext
3641 cat >>conftest.$ac_ext <<_ACEOF
3642 /* end confdefs.h. */
3643
3644 int
3645 main ()
3646 {
3647
3648 ;
3649 return 0;
3650 }
3651 _ACEOF
3652 rm -f conftest.$ac_objext
3653 if { (ac_try="$ac_compile"
3654 case "(($ac_try" in
3655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3656 *) ac_try_echo=$ac_try;;
3657 esac
3658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3659 $as_echo "$ac_try_echo") >&5
3660 (eval "$ac_compile") 2>conftest.er1
3661 ac_status=$?
3662 grep -v '^ *+' conftest.er1 >conftest.err
3663 rm -f conftest.er1
3664 cat conftest.err >&5
3665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); } && {
3667 test -z "$ac_c_werror_flag" ||
3668 test ! -s conftest.err
3669 } && test -s conftest.$ac_objext; then
3670 ac_cv_prog_cc_g=yes
3671 else
3672 $as_echo "$as_me: failed program was:" >&5
3673 sed 's/^/| /' conftest.$ac_ext >&5
3674
3675
3676 fi
3677
3678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3679 fi
3680
3681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3682 fi
3683
3684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3685 ac_c_werror_flag=$ac_save_c_werror_flag
3686 fi
3687 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3688 $as_echo "$ac_cv_prog_cc_g" >&6; }
3689 if test "$ac_test_CFLAGS" = set; then
3690 CFLAGS=$ac_save_CFLAGS
3691 elif test $ac_cv_prog_cc_g = yes; then
3692 if test "$GCC" = yes; then
3693 CFLAGS="-g -O2"
3694 else
3695 CFLAGS="-g"
3696 fi
3697 else
3698 if test "$GCC" = yes; then
3699 CFLAGS="-O2"
3700 else
3701 CFLAGS=
3702 fi
3703 fi
3704 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3705 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3706 if test "${ac_cv_prog_cc_c89+set}" = set; then
3707 $as_echo_n "(cached) " >&6
3708 else
3709 ac_cv_prog_cc_c89=no
3710 ac_save_CC=$CC
3711 cat >conftest.$ac_ext <<_ACEOF
3712 /* confdefs.h. */
3713 _ACEOF
3714 cat confdefs.h >>conftest.$ac_ext
3715 cat >>conftest.$ac_ext <<_ACEOF
3716 /* end confdefs.h. */
3717 #include <stdarg.h>
3718 #include <stdio.h>
3719 #include <sys/types.h>
3720 #include <sys/stat.h>
3721 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3722 struct buf { int x; };
3723 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3724 static char *e (p, i)
3725 char **p;
3726 int i;
3727 {
3728 return p[i];
3729 }
3730 static char *f (char * (*g) (char **, int), char **p, ...)
3731 {
3732 char *s;
3733 va_list v;
3734 va_start (v,p);
3735 s = g (p, va_arg (v,int));
3736 va_end (v);
3737 return s;
3738 }
3739
3740 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3741 function prototypes and stuff, but not '\xHH' hex character constants.
3742 These don't provoke an error unfortunately, instead are silently treated
3743 as 'x'. The following induces an error, until -std is added to get
3744 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3745 array size at least. It's necessary to write '\x00'==0 to get something
3746 that's true only with -std. */
3747 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3748
3749 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3750 inside strings and character constants. */
3751 #define FOO(x) 'x'
3752 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3753
3754 int test (int i, double x);
3755 struct s1 {int (*f) (int a);};
3756 struct s2 {int (*f) (double a);};
3757 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3758 int argc;
3759 char **argv;
3760 int
3761 main ()
3762 {
3763 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3764 ;
3765 return 0;
3766 }
3767 _ACEOF
3768 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3769 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3770 do
3771 CC="$ac_save_CC $ac_arg"
3772 rm -f conftest.$ac_objext
3773 if { (ac_try="$ac_compile"
3774 case "(($ac_try" in
3775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3776 *) ac_try_echo=$ac_try;;
3777 esac
3778 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3779 $as_echo "$ac_try_echo") >&5
3780 (eval "$ac_compile") 2>conftest.er1
3781 ac_status=$?
3782 grep -v '^ *+' conftest.er1 >conftest.err
3783 rm -f conftest.er1
3784 cat conftest.err >&5
3785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786 (exit $ac_status); } && {
3787 test -z "$ac_c_werror_flag" ||
3788 test ! -s conftest.err
3789 } && test -s conftest.$ac_objext; then
3790 ac_cv_prog_cc_c89=$ac_arg
3791 else
3792 $as_echo "$as_me: failed program was:" >&5
3793 sed 's/^/| /' conftest.$ac_ext >&5
3794
3795
3796 fi
3797
3798 rm -f core conftest.err conftest.$ac_objext
3799 test "x$ac_cv_prog_cc_c89" != "xno" && break
3800 done
3801 rm -f conftest.$ac_ext
3802 CC=$ac_save_CC
3803
3804 fi
3805 # AC_CACHE_VAL
3806 case "x$ac_cv_prog_cc_c89" in
3807 x)
3808 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3809 $as_echo "none needed" >&6; } ;;
3810 xno)
3811 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3812 $as_echo "unsupported" >&6; } ;;
3813 *)
3814 CC="$CC $ac_cv_prog_cc_c89"
3815 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3816 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3817 esac
3818
3819
3820 ac_ext=c
3821 ac_cpp='$CPP $CPPFLAGS'
3822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3825
3826 depcc="$CC" am_compiler_list=
3827
3828 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3829 $as_echo_n "checking dependency style of $depcc... " >&6; }
3830 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3831 $as_echo_n "(cached) " >&6
3832 else
3833 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3834 # We make a subdir and do the tests there. Otherwise we can end up
3835 # making bogus files that we don't know about and never remove. For
3836 # instance it was reported that on HP-UX the gcc test will end up
3837 # making a dummy file named `D' -- because `-MD' means `put the output
3838 # in D'.
3839 mkdir conftest.dir
3840 # Copy depcomp to subdir because otherwise we won't find it if we're
3841 # using a relative directory.
3842 cp "$am_depcomp" conftest.dir
3843 cd conftest.dir
3844 # We will build objects and dependencies in a subdirectory because
3845 # it helps to detect inapplicable dependency modes. For instance
3846 # both Tru64's cc and ICC support -MD to output dependencies as a
3847 # side effect of compilation, but ICC will put the dependencies in
3848 # the current directory while Tru64 will put them in the object
3849 # directory.
3850 mkdir sub
3851
3852 am_cv_CC_dependencies_compiler_type=none
3853 if test "$am_compiler_list" = ""; then
3854 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3855 fi
3856 am__universal=false
3857 case " $depcc " in #(
3858 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3859 esac
3860
3861 for depmode in $am_compiler_list; do
3862 # Setup a source with many dependencies, because some compilers
3863 # like to wrap large dependency lists on column 80 (with \), and
3864 # we should not choose a depcomp mode which is confused by this.
3865 #
3866 # We need to recreate these files for each test, as the compiler may
3867 # overwrite some of them when testing with obscure command lines.
3868 # This happens at least with the AIX C compiler.
3869 : > sub/conftest.c
3870 for i in 1 2 3 4 5 6; do
3871 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3872 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3873 # Solaris 8's {/usr,}/bin/sh.
3874 touch sub/conftst$i.h
3875 done
3876 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3877
3878 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3879 # mode. It turns out that the SunPro C++ compiler does not properly
3880 # handle `-M -o', and we need to detect this. Also, some Intel
3881 # versions had trouble with output in subdirs
3882 am__obj=sub/conftest.${OBJEXT-o}
3883 am__minus_obj="-o $am__obj"
3884 case $depmode in
3885 gcc)
3886 # This depmode causes a compiler race in universal mode.
3887 test "$am__universal" = false || continue
3888 ;;
3889 nosideeffect)
3890 # after this tag, mechanisms are not by side-effect, so they'll
3891 # only be used when explicitly requested
3892 if test "x$enable_dependency_tracking" = xyes; then
3893 continue
3894 else
3895 break
3896 fi
3897 ;;
3898 msvisualcpp | msvcmsys)
3899 # This compiler won't grok `-c -o', but also, the minuso test has
3900 # not run yet. These depmodes are late enough in the game, and
3901 # so weak that their functioning should not be impacted.
3902 am__obj=conftest.${OBJEXT-o}
3903 am__minus_obj=
3904 ;;
3905 none) break ;;
3906 esac
3907 if depmode=$depmode \
3908 source=sub/conftest.c object=$am__obj \
3909 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3910 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3911 >/dev/null 2>conftest.err &&
3912 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3913 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3914 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3915 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3916 # icc doesn't choke on unknown options, it will just issue warnings
3917 # or remarks (even with -Werror). So we grep stderr for any message
3918 # that says an option was ignored or not supported.
3919 # When given -MP, icc 7.0 and 7.1 complain thusly:
3920 # icc: Command line warning: ignoring option '-M'; no argument required
3921 # The diagnosis changed in icc 8.0:
3922 # icc: Command line remark: option '-MP' not supported
3923 if (grep 'ignoring option' conftest.err ||
3924 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3925 am_cv_CC_dependencies_compiler_type=$depmode
3926 break
3927 fi
3928 fi
3929 done
3930
3931 cd ..
3932 rm -rf conftest.dir
3933 else
3934 am_cv_CC_dependencies_compiler_type=none
3935 fi
3936
3937 fi
3938 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3939 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3940 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3941
3942 if
3943 test "x$enable_dependency_tracking" != xno \
3944 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3945 am__fastdepCC_TRUE=
3946 am__fastdepCC_FALSE='#'
3947 else
3948 am__fastdepCC_TRUE='#'
3949 am__fastdepCC_FALSE=
3950 fi
3951
3952
3953 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3954 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3955 if test "${lt_cv_path_SED+set}" = set; then
3956 $as_echo_n "(cached) " >&6
3957 else
3958 # Loop through the user's path and test for sed and gsed.
3959 # Then use that list of sed's as ones to test for truncation.
3960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3961 for as_dir in $PATH
3962 do
3963 IFS=$as_save_IFS
3964 test -z "$as_dir" && as_dir=.
3965 for lt_ac_prog in sed gsed; do
3966 for ac_exec_ext in '' $ac_executable_extensions; do
3967 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3968 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3969 fi
3970 done
3971 done
3972 done
3973 IFS=$as_save_IFS
3974 lt_ac_max=0
3975 lt_ac_count=0
3976 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3977 # along with /bin/sed that truncates output.
3978 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3979 test ! -f $lt_ac_sed && continue
3980 cat /dev/null > conftest.in
3981 lt_ac_count=0
3982 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3983 # Check for GNU sed and select it if it is found.
3984 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3985 lt_cv_path_SED=$lt_ac_sed
3986 break
3987 fi
3988 while true; do
3989 cat conftest.in conftest.in >conftest.tmp
3990 mv conftest.tmp conftest.in
3991 cp conftest.in conftest.nl
3992 echo >>conftest.nl
3993 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3994 cmp -s conftest.out conftest.nl || break
3995 # 10000 chars as input seems more than enough
3996 test $lt_ac_count -gt 10 && break
3997 lt_ac_count=`expr $lt_ac_count + 1`
3998 if test $lt_ac_count -gt $lt_ac_max; then
3999 lt_ac_max=$lt_ac_count
4000 lt_cv_path_SED=$lt_ac_sed
4001 fi
4002 done
4003 done
4004
4005 fi
4006
4007 SED=$lt_cv_path_SED
4008
4009 { $as_echo "$as_me:$LINENO: result: $SED" >&5
4010 $as_echo "$SED" >&6; }
4011
4012 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4013 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4014 if test "${ac_cv_path_GREP+set}" = set; then
4015 $as_echo_n "(cached) " >&6
4016 else
4017 if test -z "$GREP"; then
4018 ac_path_GREP_found=false
4019 # Loop through the user's path and test for each of PROGNAME-LIST
4020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4021 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4022 do
4023 IFS=$as_save_IFS
4024 test -z "$as_dir" && as_dir=.
4025 for ac_prog in grep ggrep; do
4026 for ac_exec_ext in '' $ac_executable_extensions; do
4027 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4028 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4029 # Check for GNU ac_path_GREP and select it if it is found.
4030 # Check for GNU $ac_path_GREP
4031 case `"$ac_path_GREP" --version 2>&1` in
4032 *GNU*)
4033 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4034 *)
4035 ac_count=0
4036 $as_echo_n 0123456789 >"conftest.in"
4037 while :
4038 do
4039 cat "conftest.in" "conftest.in" >"conftest.tmp"
4040 mv "conftest.tmp" "conftest.in"
4041 cp "conftest.in" "conftest.nl"
4042 $as_echo 'GREP' >> "conftest.nl"
4043 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4044 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4045 ac_count=`expr $ac_count + 1`
4046 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4047 # Best one so far, save it but keep looking for a better one
4048 ac_cv_path_GREP="$ac_path_GREP"
4049 ac_path_GREP_max=$ac_count
4050 fi
4051 # 10*(2^10) chars as input seems more than enough
4052 test $ac_count -gt 10 && break
4053 done
4054 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4055 esac
4056
4057 $ac_path_GREP_found && break 3
4058 done
4059 done
4060 done
4061 IFS=$as_save_IFS
4062 if test -z "$ac_cv_path_GREP"; then
4063 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4064 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4065 { (exit 1); exit 1; }; }
4066 fi
4067 else
4068 ac_cv_path_GREP=$GREP
4069 fi
4070
4071 fi
4072 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4073 $as_echo "$ac_cv_path_GREP" >&6; }
4074 GREP="$ac_cv_path_GREP"
4075
4076
4077 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4078 $as_echo_n "checking for egrep... " >&6; }
4079 if test "${ac_cv_path_EGREP+set}" = set; then
4080 $as_echo_n "(cached) " >&6
4081 else
4082 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4083 then ac_cv_path_EGREP="$GREP -E"
4084 else
4085 if test -z "$EGREP"; then
4086 ac_path_EGREP_found=false
4087 # Loop through the user's path and test for each of PROGNAME-LIST
4088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4089 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4090 do
4091 IFS=$as_save_IFS
4092 test -z "$as_dir" && as_dir=.
4093 for ac_prog in egrep; do
4094 for ac_exec_ext in '' $ac_executable_extensions; do
4095 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4096 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4097 # Check for GNU ac_path_EGREP and select it if it is found.
4098 # Check for GNU $ac_path_EGREP
4099 case `"$ac_path_EGREP" --version 2>&1` in
4100 *GNU*)
4101 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4102 *)
4103 ac_count=0
4104 $as_echo_n 0123456789 >"conftest.in"
4105 while :
4106 do
4107 cat "conftest.in" "conftest.in" >"conftest.tmp"
4108 mv "conftest.tmp" "conftest.in"
4109 cp "conftest.in" "conftest.nl"
4110 $as_echo 'EGREP' >> "conftest.nl"
4111 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4112 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4113 ac_count=`expr $ac_count + 1`
4114 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4115 # Best one so far, save it but keep looking for a better one
4116 ac_cv_path_EGREP="$ac_path_EGREP"
4117 ac_path_EGREP_max=$ac_count
4118 fi
4119 # 10*(2^10) chars as input seems more than enough
4120 test $ac_count -gt 10 && break
4121 done
4122 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4123 esac
4124
4125 $ac_path_EGREP_found && break 3
4126 done
4127 done
4128 done
4129 IFS=$as_save_IFS
4130 if test -z "$ac_cv_path_EGREP"; then
4131 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4132 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4133 { (exit 1); exit 1; }; }
4134 fi
4135 else
4136 ac_cv_path_EGREP=$EGREP
4137 fi
4138
4139 fi
4140 fi
4141 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4142 $as_echo "$ac_cv_path_EGREP" >&6; }
4143 EGREP="$ac_cv_path_EGREP"
4144
4145
4146
4147 # Check whether --with-gnu-ld was given.
4148 if test "${with_gnu_ld+set}" = set; then
4149 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4150 else
4151 with_gnu_ld=no
4152 fi
4153
4154 ac_prog=ld
4155 if test "$GCC" = yes; then
4156 # Check if gcc -print-prog-name=ld gives a path.
4157 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4158 $as_echo_n "checking for ld used by $CC... " >&6; }
4159 case $host in
4160 *-*-mingw*)
4161 # gcc leaves a trailing carriage return which upsets mingw
4162 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4163 *)
4164 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4165 esac
4166 case $ac_prog in
4167 # Accept absolute paths.
4168 [\\/]* | ?:[\\/]*)
4169 re_direlt='/[^/][^/]*/\.\./'
4170 # Canonicalize the pathname of ld
4171 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4172 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4173 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4174 done
4175 test -z "$LD" && LD="$ac_prog"
4176 ;;
4177 "")
4178 # If it fails, then pretend we aren't using GCC.
4179 ac_prog=ld
4180 ;;
4181 *)
4182 # If it is relative, then search for the first ld in PATH.
4183 with_gnu_ld=unknown
4184 ;;
4185 esac
4186 elif test "$with_gnu_ld" = yes; then
4187 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4188 $as_echo_n "checking for GNU ld... " >&6; }
4189 else
4190 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4191 $as_echo_n "checking for non-GNU ld... " >&6; }
4192 fi
4193 if test "${lt_cv_path_LD+set}" = set; then
4194 $as_echo_n "(cached) " >&6
4195 else
4196 if test -z "$LD"; then
4197 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4198 for ac_dir in $PATH; do
4199 IFS="$lt_save_ifs"
4200 test -z "$ac_dir" && ac_dir=.
4201 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4202 lt_cv_path_LD="$ac_dir/$ac_prog"
4203 # Check to see if the program is GNU ld. I'd rather use --version,
4204 # but apparently some variants of GNU ld only accept -v.
4205 # Break only if it was the GNU/non-GNU ld that we prefer.
4206 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4207 *GNU* | *'with BFD'*)
4208 test "$with_gnu_ld" != no && break
4209 ;;
4210 *)
4211 test "$with_gnu_ld" != yes && break
4212 ;;
4213 esac
4214 fi
4215 done
4216 IFS="$lt_save_ifs"
4217 else
4218 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4219 fi
4220 fi
4221
4222 LD="$lt_cv_path_LD"
4223 if test -n "$LD"; then
4224 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4225 $as_echo "$LD" >&6; }
4226 else
4227 { $as_echo "$as_me:$LINENO: result: no" >&5
4228 $as_echo "no" >&6; }
4229 fi
4230 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4231 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4232 { (exit 1); exit 1; }; }
4233 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4234 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4235 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4236 $as_echo_n "(cached) " >&6
4237 else
4238 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4239 case `$LD -v 2>&1 </dev/null` in
4240 *GNU* | *'with BFD'*)
4241 lt_cv_prog_gnu_ld=yes
4242 ;;
4243 *)
4244 lt_cv_prog_gnu_ld=no
4245 ;;
4246 esac
4247 fi
4248 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4249 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4250 with_gnu_ld=$lt_cv_prog_gnu_ld
4251
4252
4253 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4254 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4255 if test "${lt_cv_ld_reload_flag+set}" = set; then
4256 $as_echo_n "(cached) " >&6
4257 else
4258 lt_cv_ld_reload_flag='-r'
4259 fi
4260 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4261 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4262 reload_flag=$lt_cv_ld_reload_flag
4263 case $reload_flag in
4264 "" | " "*) ;;
4265 *) reload_flag=" $reload_flag" ;;
4266 esac
4267 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4268 case $host_os in
4269 darwin*)
4270 if test "$GCC" = yes; then
4271 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4272 else
4273 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4274 fi
4275 ;;
4276 esac
4277
4278 { $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4279 $as_echo_n "checking for BSD-compatible nm... " >&6; }
4280 if test "${lt_cv_path_NM+set}" = set; then
4281 $as_echo_n "(cached) " >&6
4282 else
4283 if test -n "$NM"; then
4284 # Let the user override the test.
4285 lt_cv_path_NM="$NM"
4286 else
4287 lt_nm_to_check="${ac_tool_prefix}nm"
4288 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4289 lt_nm_to_check="$lt_nm_to_check nm"
4290 fi
4291 for lt_tmp_nm in $lt_nm_to_check; do
4292 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4293 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4294 IFS="$lt_save_ifs"
4295 test -z "$ac_dir" && ac_dir=.
4296 tmp_nm="$ac_dir/$lt_tmp_nm"
4297 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4298 # Check to see if the nm accepts a BSD-compat flag.
4299 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4300 # nm: unknown option "B" ignored
4301 # Tru64's nm complains that /dev/null is an invalid object file
4302 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4303 */dev/null* | *'Invalid file or object type'*)
4304 lt_cv_path_NM="$tmp_nm -B"
4305 break
4306 ;;
4307 *)
4308 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4309 */dev/null*)
4310 lt_cv_path_NM="$tmp_nm -p"
4311 break
4312 ;;
4313 *)
4314 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4315 continue # so that we can try to find one that supports BSD flags
4316 ;;
4317 esac
4318 ;;
4319 esac
4320 fi
4321 done
4322 IFS="$lt_save_ifs"
4323 done
4324 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4325 fi
4326 fi
4327 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4328 $as_echo "$lt_cv_path_NM" >&6; }
4329 NM="$lt_cv_path_NM"
4330
4331 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4332 $as_echo_n "checking whether ln -s works... " >&6; }
4333 LN_S=$as_ln_s
4334 if test "$LN_S" = "ln -s"; then
4335 { $as_echo "$as_me:$LINENO: result: yes" >&5
4336 $as_echo "yes" >&6; }
4337 else
4338 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4339 $as_echo "no, using $LN_S" >&6; }
4340 fi
4341
4342 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4343 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4344 if test "${lt_cv_deplibs_check_method+set}" = set; then
4345 $as_echo_n "(cached) " >&6
4346 else
4347 lt_cv_file_magic_cmd='$MAGIC_CMD'
4348 lt_cv_file_magic_test_file=
4349 lt_cv_deplibs_check_method='unknown'
4350 # Need to set the preceding variable on all platforms that support
4351 # interlibrary dependencies.
4352 # 'none' -- dependencies not supported.
4353 # `unknown' -- same as none, but documents that we really don't know.
4354 # 'pass_all' -- all dependencies passed with no checks.
4355 # 'test_compile' -- check by making test program.
4356 # 'file_magic [[regex]]' -- check by looking for files in library path
4357 # which responds to the $file_magic_cmd with a given extended regex.
4358 # If you have `file' or equivalent on your system and you're not sure
4359 # whether `pass_all' will *always* work, you probably want this one.
4360
4361 case $host_os in
4362 aix[4-9]*)
4363 lt_cv_deplibs_check_method=pass_all
4364 ;;
4365
4366 beos*)
4367 lt_cv_deplibs_check_method=pass_all
4368 ;;
4369
4370 bsdi[45]*)
4371 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4372 lt_cv_file_magic_cmd='/usr/bin/file -L'
4373 lt_cv_file_magic_test_file=/shlib/libc.so
4374 ;;
4375
4376 cygwin*)
4377 # func_win32_libid is a shell function defined in ltmain.sh
4378 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4379 lt_cv_file_magic_cmd='func_win32_libid'
4380 ;;
4381
4382 mingw* | pw32*)
4383 # Base MSYS/MinGW do not provide the 'file' command needed by
4384 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4385 # unless we find 'file', for example because we are cross-compiling.
4386 if ( file / ) >/dev/null 2>&1; then
4387 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4388 lt_cv_file_magic_cmd='func_win32_libid'
4389 else
4390 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4391 lt_cv_file_magic_cmd='$OBJDUMP -f'
4392 fi
4393 ;;
4394
4395 darwin* | rhapsody*)
4396 lt_cv_deplibs_check_method=pass_all
4397 ;;
4398
4399 freebsd* | dragonfly*)
4400 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4401 case $host_cpu in
4402 i*86 )
4403 # Not sure whether the presence of OpenBSD here was a mistake.
4404 # Let's accept both of them until this is cleared up.
4405 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4406 lt_cv_file_magic_cmd=/usr/bin/file
4407 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4408 ;;
4409 esac
4410 else
4411 lt_cv_deplibs_check_method=pass_all
4412 fi
4413 ;;
4414
4415 gnu*)
4416 lt_cv_deplibs_check_method=pass_all
4417 ;;
4418
4419 hpux10.20* | hpux11*)
4420 lt_cv_file_magic_cmd=/usr/bin/file
4421 case $host_cpu in
4422 ia64*)
4423 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4424 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4425 ;;
4426 hppa*64*)
4427 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]'
4428 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4429 ;;
4430 *)
4431 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4432 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4433 ;;
4434 esac
4435 ;;
4436
4437 interix[3-9]*)
4438 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4439 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4440 ;;
4441
4442 irix5* | irix6* | nonstopux*)
4443 case $LD in
4444 *-32|*"-32 ") libmagic=32-bit;;
4445 *-n32|*"-n32 ") libmagic=N32;;
4446 *-64|*"-64 ") libmagic=64-bit;;
4447 *) libmagic=never-match;;
4448 esac
4449 lt_cv_deplibs_check_method=pass_all
4450 ;;
4451
4452 # This must be Linux ELF.
4453 linux* | k*bsd*-gnu)
4454 lt_cv_deplibs_check_method=pass_all
4455 ;;
4456
4457 netbsd*)
4458 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4459 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4460 else
4461 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4462 fi
4463 ;;
4464
4465 newos6*)
4466 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4467 lt_cv_file_magic_cmd=/usr/bin/file
4468 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4469 ;;
4470
4471 nto-qnx*)
4472 lt_cv_deplibs_check_method=unknown
4473 ;;
4474
4475 openbsd*)
4476 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4477 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4478 else
4479 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4480 fi
4481 ;;
4482
4483 osf3* | osf4* | osf5*)
4484 lt_cv_deplibs_check_method=pass_all
4485 ;;
4486
4487 rdos*)
4488 lt_cv_deplibs_check_method=pass_all
4489 ;;
4490
4491 solaris*)
4492 lt_cv_deplibs_check_method=pass_all
4493 ;;
4494
4495 sysv4 | sysv4.3*)
4496 case $host_vendor in
4497 motorola)
4498 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]'
4499 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4500 ;;
4501 ncr)
4502 lt_cv_deplibs_check_method=pass_all
4503 ;;
4504 sequent)
4505 lt_cv_file_magic_cmd='/bin/file'
4506 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4507 ;;
4508 sni)
4509 lt_cv_file_magic_cmd='/bin/file'
4510 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4511 lt_cv_file_magic_test_file=/lib/libc.so
4512 ;;
4513 siemens)
4514 lt_cv_deplibs_check_method=pass_all
4515 ;;
4516 pc)
4517 lt_cv_deplibs_check_method=pass_all
4518 ;;
4519 esac
4520 ;;
4521
4522 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4523 lt_cv_deplibs_check_method=pass_all
4524 ;;
4525 esac
4526
4527 fi
4528 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4529 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4530 file_magic_cmd=$lt_cv_file_magic_cmd
4531 deplibs_check_method=$lt_cv_deplibs_check_method
4532 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4533
4534
4535
4536
4537 # If no C compiler was specified, use CC.
4538 LTCC=${LTCC-"$CC"}
4539
4540 # If no C compiler flags were specified, use CFLAGS.
4541 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4542
4543 # Allow CC to be a program name with arguments.
4544 compiler=$CC
4545
4546
4547 # Check whether --enable-libtool-lock was given.
4548 if test "${enable_libtool_lock+set}" = set; then
4549 enableval=$enable_libtool_lock;
4550 fi
4551
4552 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4553
4554 # Some flags need to be propagated to the compiler or linker for good
4555 # libtool support.
4556 case $host in
4557 ia64-*-hpux*)
4558 # Find out which ABI we are using.
4559 echo 'int i;' > conftest.$ac_ext
4560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4561 (eval $ac_compile) 2>&5
4562 ac_status=$?
4563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564 (exit $ac_status); }; then
4565 case `/usr/bin/file conftest.$ac_objext` in
4566 *ELF-32*)
4567 HPUX_IA64_MODE="32"
4568 ;;
4569 *ELF-64*)
4570 HPUX_IA64_MODE="64"
4571 ;;
4572 esac
4573 fi
4574 rm -rf conftest*
4575 ;;
4576 *-*-irix6*)
4577 # Find out which ABI we are using.
4578 echo '#line 4578 "configure"' > conftest.$ac_ext
4579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4580 (eval $ac_compile) 2>&5
4581 ac_status=$?
4582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583 (exit $ac_status); }; then
4584 if test "$lt_cv_prog_gnu_ld" = yes; then
4585 case `/usr/bin/file conftest.$ac_objext` in
4586 *32-bit*)
4587 LD="${LD-ld} -melf32bsmip"
4588 ;;
4589 *N32*)
4590 LD="${LD-ld} -melf32bmipn32"
4591 ;;
4592 *64-bit*)
4593 LD="${LD-ld} -melf64bmip"
4594 ;;
4595 esac
4596 else
4597 case `/usr/bin/file conftest.$ac_objext` in
4598 *32-bit*)
4599 LD="${LD-ld} -32"
4600 ;;
4601 *N32*)
4602 LD="${LD-ld} -n32"
4603 ;;
4604 *64-bit*)
4605 LD="${LD-ld} -64"
4606 ;;
4607 esac
4608 fi
4609 fi
4610 rm -rf conftest*
4611 ;;
4612
4613 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4614 s390*-*linux*|sparc*-*linux*)
4615 # Find out which ABI we are using.
4616 echo 'int i;' > conftest.$ac_ext
4617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4618 (eval $ac_compile) 2>&5
4619 ac_status=$?
4620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621 (exit $ac_status); }; then
4622 case `/usr/bin/file conftest.o` in
4623 *32-bit*)
4624 case $host in
4625 x86_64-*kfreebsd*-gnu)
4626 LD="${LD-ld} -m elf_i386_fbsd"
4627 ;;
4628 x86_64-*linux*)
4629 LD="${LD-ld} -m elf_i386"
4630 ;;
4631 ppc64-*linux*|powerpc64-*linux*)
4632 LD="${LD-ld} -m elf32ppclinux"
4633 ;;
4634 s390x-*linux*)
4635 LD="${LD-ld} -m elf_s390"
4636 ;;
4637 sparc64-*linux*)
4638 LD="${LD-ld} -m elf32_sparc"
4639 ;;
4640 esac
4641 ;;
4642 *64-bit*)
4643 libsuff=64
4644 case $host in
4645 x86_64-*kfreebsd*-gnu)
4646 LD="${LD-ld} -m elf_x86_64_fbsd"
4647 ;;
4648 x86_64-*linux*)
4649 LD="${LD-ld} -m elf_x86_64"
4650 ;;
4651 ppc*-*linux*|powerpc*-*linux*)
4652 LD="${LD-ld} -m elf64ppc"
4653 ;;
4654 s390*-*linux*)
4655 LD="${LD-ld} -m elf64_s390"
4656 ;;
4657 sparc*-*linux*)
4658 LD="${LD-ld} -m elf64_sparc"
4659 ;;
4660 esac
4661 ;;
4662 esac
4663 fi
4664 rm -rf conftest*
4665 ;;
4666
4667 *-*-sco3.2v5*)
4668 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4669 SAVE_CFLAGS="$CFLAGS"
4670 CFLAGS="$CFLAGS -belf"
4671 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4672 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
4673 if test "${lt_cv_cc_needs_belf+set}" = set; then
4674 $as_echo_n "(cached) " >&6
4675 else
4676 ac_ext=c
4677 ac_cpp='$CPP $CPPFLAGS'
4678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4681
4682 cat >conftest.$ac_ext <<_ACEOF
4683 /* confdefs.h. */
4684 _ACEOF
4685 cat confdefs.h >>conftest.$ac_ext
4686 cat >>conftest.$ac_ext <<_ACEOF
4687 /* end confdefs.h. */
4688
4689 int
4690 main ()
4691 {
4692
4693 ;
4694 return 0;
4695 }
4696 _ACEOF
4697 rm -f conftest.$ac_objext conftest$ac_exeext
4698 if { (ac_try="$ac_link"
4699 case "(($ac_try" in
4700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4701 *) ac_try_echo=$ac_try;;
4702 esac
4703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4704 $as_echo "$ac_try_echo") >&5
4705 (eval "$ac_link") 2>conftest.er1
4706 ac_status=$?
4707 grep -v '^ *+' conftest.er1 >conftest.err
4708 rm -f conftest.er1
4709 cat conftest.err >&5
4710 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711 (exit $ac_status); } && {
4712 test -z "$ac_c_werror_flag" ||
4713 test ! -s conftest.err
4714 } && test -s conftest$ac_exeext && {
4715 test "$cross_compiling" = yes ||
4716 $as_test_x conftest$ac_exeext
4717 }; then
4718 lt_cv_cc_needs_belf=yes
4719 else
4720 $as_echo "$as_me: failed program was:" >&5
4721 sed 's/^/| /' conftest.$ac_ext >&5
4722
4723 lt_cv_cc_needs_belf=no
4724 fi
4725
4726 rm -rf conftest.dSYM
4727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4728 conftest$ac_exeext conftest.$ac_ext
4729 ac_ext=c
4730 ac_cpp='$CPP $CPPFLAGS'
4731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4734
4735 fi
4736 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4737 $as_echo "$lt_cv_cc_needs_belf" >&6; }
4738 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4739 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4740 CFLAGS="$SAVE_CFLAGS"
4741 fi
4742 ;;
4743 sparc*-*solaris*)
4744 # Find out which ABI we are using.
4745 echo 'int i;' > conftest.$ac_ext
4746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4747 (eval $ac_compile) 2>&5
4748 ac_status=$?
4749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750 (exit $ac_status); }; then
4751 case `/usr/bin/file conftest.o` in
4752 *64-bit*)
4753 case $lt_cv_prog_gnu_ld in
4754 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4755 *)
4756 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4757 LD="${LD-ld} -64"
4758 fi
4759 ;;
4760 esac
4761 ;;
4762 esac
4763 fi
4764 rm -rf conftest*
4765 ;;
4766
4767
4768 esac
4769
4770 need_locks="$enable_libtool_lock"
4771
4772
4773 ac_ext=c
4774 ac_cpp='$CPP $CPPFLAGS'
4775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4778 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4779 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4780 # On Suns, sometimes $CPP names a directory.
4781 if test -n "$CPP" && test -d "$CPP"; then
4782 CPP=
4783 fi
4784 if test -z "$CPP"; then
4785 if test "${ac_cv_prog_CPP+set}" = set; then
4786 $as_echo_n "(cached) " >&6
4787 else
4788 # Double quotes because CPP needs to be expanded
4789 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4790 do
4791 ac_preproc_ok=false
4792 for ac_c_preproc_warn_flag in '' yes
4793 do
4794 # Use a header file that comes with gcc, so configuring glibc
4795 # with a fresh cross-compiler works.
4796 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4797 # <limits.h> exists even on freestanding compilers.
4798 # On the NeXT, cc -E runs the code through the compiler's parser,
4799 # not just through cpp. "Syntax error" is here to catch this case.
4800 cat >conftest.$ac_ext <<_ACEOF
4801 /* confdefs.h. */
4802 _ACEOF
4803 cat confdefs.h >>conftest.$ac_ext
4804 cat >>conftest.$ac_ext <<_ACEOF
4805 /* end confdefs.h. */
4806 #ifdef __STDC__
4807 # include <limits.h>
4808 #else
4809 # include <assert.h>
4810 #endif
4811 Syntax error
4812 _ACEOF
4813 if { (ac_try="$ac_cpp conftest.$ac_ext"
4814 case "(($ac_try" in
4815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4816 *) ac_try_echo=$ac_try;;
4817 esac
4818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4819 $as_echo "$ac_try_echo") >&5
4820 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4821 ac_status=$?
4822 grep -v '^ *+' conftest.er1 >conftest.err
4823 rm -f conftest.er1
4824 cat conftest.err >&5
4825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826 (exit $ac_status); } >/dev/null && {
4827 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4828 test ! -s conftest.err
4829 }; then
4830 :
4831 else
4832 $as_echo "$as_me: failed program was:" >&5
4833 sed 's/^/| /' conftest.$ac_ext >&5
4834
4835 # Broken: fails on valid input.
4836 continue
4837 fi
4838
4839 rm -f conftest.err conftest.$ac_ext
4840
4841 # OK, works on sane cases. Now check whether nonexistent headers
4842 # can be detected and how.
4843 cat >conftest.$ac_ext <<_ACEOF
4844 /* confdefs.h. */
4845 _ACEOF
4846 cat confdefs.h >>conftest.$ac_ext
4847 cat >>conftest.$ac_ext <<_ACEOF
4848 /* end confdefs.h. */
4849 #include <ac_nonexistent.h>
4850 _ACEOF
4851 if { (ac_try="$ac_cpp conftest.$ac_ext"
4852 case "(($ac_try" in
4853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4854 *) ac_try_echo=$ac_try;;
4855 esac
4856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4857 $as_echo "$ac_try_echo") >&5
4858 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4859 ac_status=$?
4860 grep -v '^ *+' conftest.er1 >conftest.err
4861 rm -f conftest.er1
4862 cat conftest.err >&5
4863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864 (exit $ac_status); } >/dev/null && {
4865 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4866 test ! -s conftest.err
4867 }; then
4868 # Broken: success on invalid input.
4869 continue
4870 else
4871 $as_echo "$as_me: failed program was:" >&5
4872 sed 's/^/| /' conftest.$ac_ext >&5
4873
4874 # Passes both tests.
4875 ac_preproc_ok=:
4876 break
4877 fi
4878
4879 rm -f conftest.err conftest.$ac_ext
4880
4881 done
4882 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4883 rm -f conftest.err conftest.$ac_ext
4884 if $ac_preproc_ok; then
4885 break
4886 fi
4887
4888 done
4889 ac_cv_prog_CPP=$CPP
4890
4891 fi
4892 CPP=$ac_cv_prog_CPP
4893 else
4894 ac_cv_prog_CPP=$CPP
4895 fi
4896 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4897 $as_echo "$CPP" >&6; }
4898 ac_preproc_ok=false
4899 for ac_c_preproc_warn_flag in '' yes
4900 do
4901 # Use a header file that comes with gcc, so configuring glibc
4902 # with a fresh cross-compiler works.
4903 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4904 # <limits.h> exists even on freestanding compilers.
4905 # On the NeXT, cc -E runs the code through the compiler's parser,
4906 # not just through cpp. "Syntax error" is here to catch this case.
4907 cat >conftest.$ac_ext <<_ACEOF
4908 /* confdefs.h. */
4909 _ACEOF
4910 cat confdefs.h >>conftest.$ac_ext
4911 cat >>conftest.$ac_ext <<_ACEOF
4912 /* end confdefs.h. */
4913 #ifdef __STDC__
4914 # include <limits.h>
4915 #else
4916 # include <assert.h>
4917 #endif
4918 Syntax error
4919 _ACEOF
4920 if { (ac_try="$ac_cpp conftest.$ac_ext"
4921 case "(($ac_try" in
4922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4923 *) ac_try_echo=$ac_try;;
4924 esac
4925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4926 $as_echo "$ac_try_echo") >&5
4927 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4928 ac_status=$?
4929 grep -v '^ *+' conftest.er1 >conftest.err
4930 rm -f conftest.er1
4931 cat conftest.err >&5
4932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933 (exit $ac_status); } >/dev/null && {
4934 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4935 test ! -s conftest.err
4936 }; then
4937 :
4938 else
4939 $as_echo "$as_me: failed program was:" >&5
4940 sed 's/^/| /' conftest.$ac_ext >&5
4941
4942 # Broken: fails on valid input.
4943 continue
4944 fi
4945
4946 rm -f conftest.err conftest.$ac_ext
4947
4948 # OK, works on sane cases. Now check whether nonexistent headers
4949 # can be detected and how.
4950 cat >conftest.$ac_ext <<_ACEOF
4951 /* confdefs.h. */
4952 _ACEOF
4953 cat confdefs.h >>conftest.$ac_ext
4954 cat >>conftest.$ac_ext <<_ACEOF
4955 /* end confdefs.h. */
4956 #include <ac_nonexistent.h>
4957 _ACEOF
4958 if { (ac_try="$ac_cpp conftest.$ac_ext"
4959 case "(($ac_try" in
4960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4961 *) ac_try_echo=$ac_try;;
4962 esac
4963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4964 $as_echo "$ac_try_echo") >&5
4965 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4966 ac_status=$?
4967 grep -v '^ *+' conftest.er1 >conftest.err
4968 rm -f conftest.er1
4969 cat conftest.err >&5
4970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971 (exit $ac_status); } >/dev/null && {
4972 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4973 test ! -s conftest.err
4974 }; then
4975 # Broken: success on invalid input.
4976 continue
4977 else
4978 $as_echo "$as_me: failed program was:" >&5
4979 sed 's/^/| /' conftest.$ac_ext >&5
4980
4981 # Passes both tests.
4982 ac_preproc_ok=:
4983 break
4984 fi
4985
4986 rm -f conftest.err conftest.$ac_ext
4987
4988 done
4989 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4990 rm -f conftest.err conftest.$ac_ext
4991 if $ac_preproc_ok; then
4992 :
4993 else
4994 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4995 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4996 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4997 See \`config.log' for more details." >&5
4998 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4999 See \`config.log' for more details." >&2;}
5000 { (exit 1); exit 1; }; }; }
5001 fi
5002
5003 ac_ext=c
5004 ac_cpp='$CPP $CPPFLAGS'
5005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5008
5009
5010 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5011 $as_echo_n "checking for ANSI C header files... " >&6; }
5012 if test "${ac_cv_header_stdc+set}" = set; then
5013 $as_echo_n "(cached) " >&6
5014 else
5015 cat >conftest.$ac_ext <<_ACEOF
5016 /* confdefs.h. */
5017 _ACEOF
5018 cat confdefs.h >>conftest.$ac_ext
5019 cat >>conftest.$ac_ext <<_ACEOF
5020 /* end confdefs.h. */
5021 #include <stdlib.h>
5022 #include <stdarg.h>
5023 #include <string.h>
5024 #include <float.h>
5025
5026 int
5027 main ()
5028 {
5029
5030 ;
5031 return 0;
5032 }
5033 _ACEOF
5034 rm -f conftest.$ac_objext
5035 if { (ac_try="$ac_compile"
5036 case "(($ac_try" in
5037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5038 *) ac_try_echo=$ac_try;;
5039 esac
5040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5041 $as_echo "$ac_try_echo") >&5
5042 (eval "$ac_compile") 2>conftest.er1
5043 ac_status=$?
5044 grep -v '^ *+' conftest.er1 >conftest.err
5045 rm -f conftest.er1
5046 cat conftest.err >&5
5047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048 (exit $ac_status); } && {
5049 test -z "$ac_c_werror_flag" ||
5050 test ! -s conftest.err
5051 } && test -s conftest.$ac_objext; then
5052 ac_cv_header_stdc=yes
5053 else
5054 $as_echo "$as_me: failed program was:" >&5
5055 sed 's/^/| /' conftest.$ac_ext >&5
5056
5057 ac_cv_header_stdc=no
5058 fi
5059
5060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5061
5062 if test $ac_cv_header_stdc = yes; then
5063 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5064 cat >conftest.$ac_ext <<_ACEOF
5065 /* confdefs.h. */
5066 _ACEOF
5067 cat confdefs.h >>conftest.$ac_ext
5068 cat >>conftest.$ac_ext <<_ACEOF
5069 /* end confdefs.h. */
5070 #include <string.h>
5071
5072 _ACEOF
5073 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5074 $EGREP "memchr" >/dev/null 2>&1; then
5075 :
5076 else
5077 ac_cv_header_stdc=no
5078 fi
5079 rm -f conftest*
5080
5081 fi
5082
5083 if test $ac_cv_header_stdc = yes; then
5084 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5085 cat >conftest.$ac_ext <<_ACEOF
5086 /* confdefs.h. */
5087 _ACEOF
5088 cat confdefs.h >>conftest.$ac_ext
5089 cat >>conftest.$ac_ext <<_ACEOF
5090 /* end confdefs.h. */
5091 #include <stdlib.h>
5092
5093 _ACEOF
5094 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5095 $EGREP "free" >/dev/null 2>&1; then
5096 :
5097 else
5098 ac_cv_header_stdc=no
5099 fi
5100 rm -f conftest*
5101
5102 fi
5103
5104 if test $ac_cv_header_stdc = yes; then
5105 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5106 if test "$cross_compiling" = yes; then
5107 :
5108 else
5109 cat >conftest.$ac_ext <<_ACEOF
5110 /* confdefs.h. */
5111 _ACEOF
5112 cat confdefs.h >>conftest.$ac_ext
5113 cat >>conftest.$ac_ext <<_ACEOF
5114 /* end confdefs.h. */
5115 #include <ctype.h>
5116 #include <stdlib.h>
5117 #if ((' ' & 0x0FF) == 0x020)
5118 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5119 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5120 #else
5121 # define ISLOWER(c) \
5122 (('a' <= (c) && (c) <= 'i') \
5123 || ('j' <= (c) && (c) <= 'r') \
5124 || ('s' <= (c) && (c) <= 'z'))
5125 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5126 #endif
5127
5128 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5129 int
5130 main ()
5131 {
5132 int i;
5133 for (i = 0; i < 256; i++)
5134 if (XOR (islower (i), ISLOWER (i))
5135 || toupper (i) != TOUPPER (i))
5136 return 2;
5137 return 0;
5138 }
5139 _ACEOF
5140 rm -f conftest$ac_exeext
5141 if { (ac_try="$ac_link"
5142 case "(($ac_try" in
5143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5144 *) ac_try_echo=$ac_try;;
5145 esac
5146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5147 $as_echo "$ac_try_echo") >&5
5148 (eval "$ac_link") 2>&5
5149 ac_status=$?
5150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5152 { (case "(($ac_try" in
5153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5154 *) ac_try_echo=$ac_try;;
5155 esac
5156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5157 $as_echo "$ac_try_echo") >&5
5158 (eval "$ac_try") 2>&5
5159 ac_status=$?
5160 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5161 (exit $ac_status); }; }; then
5162 :
5163 else
5164 $as_echo "$as_me: program exited with status $ac_status" >&5
5165 $as_echo "$as_me: failed program was:" >&5
5166 sed 's/^/| /' conftest.$ac_ext >&5
5167
5168 ( exit $ac_status )
5169 ac_cv_header_stdc=no
5170 fi
5171 rm -rf conftest.dSYM
5172 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5173 fi
5174
5175
5176 fi
5177 fi
5178 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5179 $as_echo "$ac_cv_header_stdc" >&6; }
5180 if test $ac_cv_header_stdc = yes; then
5181
5182 cat >>confdefs.h <<\_ACEOF
5183 #define STDC_HEADERS 1
5184 _ACEOF
5185
5186 fi
5187
5188 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5199 inttypes.h stdint.h unistd.h
5200 do
5201 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5202 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5203 $as_echo_n "checking for $ac_header... " >&6; }
5204 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5205 $as_echo_n "(cached) " >&6
5206 else
5207 cat >conftest.$ac_ext <<_ACEOF
5208 /* confdefs.h. */
5209 _ACEOF
5210 cat confdefs.h >>conftest.$ac_ext
5211 cat >>conftest.$ac_ext <<_ACEOF
5212 /* end confdefs.h. */
5213 $ac_includes_default
5214
5215 #include <$ac_header>
5216 _ACEOF
5217 rm -f conftest.$ac_objext
5218 if { (ac_try="$ac_compile"
5219 case "(($ac_try" in
5220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5221 *) ac_try_echo=$ac_try;;
5222 esac
5223 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5224 $as_echo "$ac_try_echo") >&5
5225 (eval "$ac_compile") 2>conftest.er1
5226 ac_status=$?
5227 grep -v '^ *+' conftest.er1 >conftest.err
5228 rm -f conftest.er1
5229 cat conftest.err >&5
5230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231 (exit $ac_status); } && {
5232 test -z "$ac_c_werror_flag" ||
5233 test ! -s conftest.err
5234 } && test -s conftest.$ac_objext; then
5235 eval "$as_ac_Header=yes"
5236 else
5237 $as_echo "$as_me: failed program was:" >&5
5238 sed 's/^/| /' conftest.$ac_ext >&5
5239
5240 eval "$as_ac_Header=no"
5241 fi
5242
5243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5244 fi
5245 ac_res=`eval 'as_val=${'$as_ac_Header'}
5246 $as_echo "$as_val"'`
5247 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5248 $as_echo "$ac_res" >&6; }
5249 as_val=`eval 'as_val=${'$as_ac_Header'}
5250 $as_echo "$as_val"'`
5251 if test "x$as_val" = x""yes; then
5252 cat >>confdefs.h <<_ACEOF
5253 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5254 _ACEOF
5255
5256 fi
5257
5258 done
5259
5260
5261
5262 for ac_header in dlfcn.h
5263 do
5264 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5265 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5266 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5267 $as_echo_n "checking for $ac_header... " >&6; }
5268 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5269 $as_echo_n "(cached) " >&6
5270 fi
5271 ac_res=`eval 'as_val=${'$as_ac_Header'}
5272 $as_echo "$as_val"'`
5273 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5274 $as_echo "$ac_res" >&6; }
5275 else
5276 # Is the header compilable?
5277 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5278 $as_echo_n "checking $ac_header usability... " >&6; }
5279 cat >conftest.$ac_ext <<_ACEOF
5280 /* confdefs.h. */
5281 _ACEOF
5282 cat confdefs.h >>conftest.$ac_ext
5283 cat >>conftest.$ac_ext <<_ACEOF
5284 /* end confdefs.h. */
5285 $ac_includes_default
5286 #include <$ac_header>
5287 _ACEOF
5288 rm -f conftest.$ac_objext
5289 if { (ac_try="$ac_compile"
5290 case "(($ac_try" in
5291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5292 *) ac_try_echo=$ac_try;;
5293 esac
5294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5295 $as_echo "$ac_try_echo") >&5
5296 (eval "$ac_compile") 2>conftest.er1
5297 ac_status=$?
5298 grep -v '^ *+' conftest.er1 >conftest.err
5299 rm -f conftest.er1
5300 cat conftest.err >&5
5301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302 (exit $ac_status); } && {
5303 test -z "$ac_c_werror_flag" ||
5304 test ! -s conftest.err
5305 } && test -s conftest.$ac_objext; then
5306 ac_header_compiler=yes
5307 else
5308 $as_echo "$as_me: failed program was:" >&5
5309 sed 's/^/| /' conftest.$ac_ext >&5
5310
5311 ac_header_compiler=no
5312 fi
5313
5314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5315 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5316 $as_echo "$ac_header_compiler" >&6; }
5317
5318 # Is the header present?
5319 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5320 $as_echo_n "checking $ac_header presence... " >&6; }
5321 cat >conftest.$ac_ext <<_ACEOF
5322 /* confdefs.h. */
5323 _ACEOF
5324 cat confdefs.h >>conftest.$ac_ext
5325 cat >>conftest.$ac_ext <<_ACEOF
5326 /* end confdefs.h. */
5327 #include <$ac_header>
5328 _ACEOF
5329 if { (ac_try="$ac_cpp conftest.$ac_ext"
5330 case "(($ac_try" in
5331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5332 *) ac_try_echo=$ac_try;;
5333 esac
5334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5335 $as_echo "$ac_try_echo") >&5
5336 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5337 ac_status=$?
5338 grep -v '^ *+' conftest.er1 >conftest.err
5339 rm -f conftest.er1
5340 cat conftest.err >&5
5341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342 (exit $ac_status); } >/dev/null && {
5343 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5344 test ! -s conftest.err
5345 }; then
5346 ac_header_preproc=yes
5347 else
5348 $as_echo "$as_me: failed program was:" >&5
5349 sed 's/^/| /' conftest.$ac_ext >&5
5350
5351 ac_header_preproc=no
5352 fi
5353
5354 rm -f conftest.err conftest.$ac_ext
5355 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5356 $as_echo "$ac_header_preproc" >&6; }
5357
5358 # So? What about this header?
5359 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5360 yes:no: )
5361 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5362 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5363 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5364 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5365 ac_header_preproc=yes
5366 ;;
5367 no:yes:* )
5368 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5369 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5370 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5371 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5372 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5373 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5374 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5375 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5376 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5377 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5378 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5379 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5380 ( cat <<\_ASBOX
5381 ## ---------------------------------------------------------------------- ##
5382 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
5383 ## ---------------------------------------------------------------------- ##
5384 _ASBOX
5385 ) | sed "s/^/$as_me: WARNING: /" >&2
5386 ;;
5387 esac
5388 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5389 $as_echo_n "checking for $ac_header... " >&6; }
5390 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5391 $as_echo_n "(cached) " >&6
5392 else
5393 eval "$as_ac_Header=\$ac_header_preproc"
5394 fi
5395 ac_res=`eval 'as_val=${'$as_ac_Header'}
5396 $as_echo "$as_val"'`
5397 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5398 $as_echo "$ac_res" >&6; }
5399
5400 fi
5401 as_val=`eval 'as_val=${'$as_ac_Header'}
5402 $as_echo "$as_val"'`
5403 if test "x$as_val" = x""yes; then
5404 cat >>confdefs.h <<_ACEOF
5405 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5406 _ACEOF
5407
5408 fi
5409
5410 done
5411
5412 ac_ext=cpp
5413 ac_cpp='$CXXCPP $CPPFLAGS'
5414 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5415 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5416 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5417 if test -z "$CXX"; then
5418 if test -n "$CCC"; then
5419 CXX=$CCC
5420 else
5421 if test -n "$ac_tool_prefix"; then
5422 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5423 do
5424 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5425 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5426 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5427 $as_echo_n "checking for $ac_word... " >&6; }
5428 if test "${ac_cv_prog_CXX+set}" = set; then
5429 $as_echo_n "(cached) " >&6
5430 else
5431 if test -n "$CXX"; then
5432 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5433 else
5434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5435 for as_dir in $PATH
5436 do
5437 IFS=$as_save_IFS
5438 test -z "$as_dir" && as_dir=.
5439 for ac_exec_ext in '' $ac_executable_extensions; do
5440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5441 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5442 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5443 break 2
5444 fi
5445 done
5446 done
5447 IFS=$as_save_IFS
5448
5449 fi
5450 fi
5451 CXX=$ac_cv_prog_CXX
5452 if test -n "$CXX"; then
5453 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
5454 $as_echo "$CXX" >&6; }
5455 else
5456 { $as_echo "$as_me:$LINENO: result: no" >&5
5457 $as_echo "no" >&6; }
5458 fi
5459
5460
5461 test -n "$CXX" && break
5462 done
5463 fi
5464 if test -z "$CXX"; then
5465 ac_ct_CXX=$CXX
5466 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5467 do
5468 # Extract the first word of "$ac_prog", so it can be a program name with args.
5469 set dummy $ac_prog; ac_word=$2
5470 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5471 $as_echo_n "checking for $ac_word... " >&6; }
5472 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5473 $as_echo_n "(cached) " >&6
5474 else
5475 if test -n "$ac_ct_CXX"; then
5476 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5477 else
5478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5479 for as_dir in $PATH
5480 do
5481 IFS=$as_save_IFS
5482 test -z "$as_dir" && as_dir=.
5483 for ac_exec_ext in '' $ac_executable_extensions; do
5484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5485 ac_cv_prog_ac_ct_CXX="$ac_prog"
5486 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5487 break 2
5488 fi
5489 done
5490 done
5491 IFS=$as_save_IFS
5492
5493 fi
5494 fi
5495 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5496 if test -n "$ac_ct_CXX"; then
5497 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5498 $as_echo "$ac_ct_CXX" >&6; }
5499 else
5500 { $as_echo "$as_me:$LINENO: result: no" >&5
5501 $as_echo "no" >&6; }
5502 fi
5503
5504
5505 test -n "$ac_ct_CXX" && break
5506 done
5507
5508 if test "x$ac_ct_CXX" = x; then
5509 CXX="g++"
5510 else
5511 case $cross_compiling:$ac_tool_warned in
5512 yes:)
5513 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5514 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5515 ac_tool_warned=yes ;;
5516 esac
5517 CXX=$ac_ct_CXX
5518 fi
5519 fi
5520
5521 fi
5522 fi
5523 # Provide some information about the compiler.
5524 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5525 set X $ac_compile
5526 ac_compiler=$2
5527 { (ac_try="$ac_compiler --version >&5"
5528 case "(($ac_try" in
5529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5530 *) ac_try_echo=$ac_try;;
5531 esac
5532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5533 $as_echo "$ac_try_echo") >&5
5534 (eval "$ac_compiler --version >&5") 2>&5
5535 ac_status=$?
5536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537 (exit $ac_status); }
5538 { (ac_try="$ac_compiler -v >&5"
5539 case "(($ac_try" in
5540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5541 *) ac_try_echo=$ac_try;;
5542 esac
5543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5544 $as_echo "$ac_try_echo") >&5
5545 (eval "$ac_compiler -v >&5") 2>&5
5546 ac_status=$?
5547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548 (exit $ac_status); }
5549 { (ac_try="$ac_compiler -V >&5"
5550 case "(($ac_try" in
5551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5552 *) ac_try_echo=$ac_try;;
5553 esac
5554 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5555 $as_echo "$ac_try_echo") >&5
5556 (eval "$ac_compiler -V >&5") 2>&5
5557 ac_status=$?
5558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5559 (exit $ac_status); }
5560
5561 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5562 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5563 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5564 $as_echo_n "(cached) " >&6
5565 else
5566 cat >conftest.$ac_ext <<_ACEOF
5567 /* confdefs.h. */
5568 _ACEOF
5569 cat confdefs.h >>conftest.$ac_ext
5570 cat >>conftest.$ac_ext <<_ACEOF
5571 /* end confdefs.h. */
5572
5573 int
5574 main ()
5575 {
5576 #ifndef __GNUC__
5577 choke me
5578 #endif
5579
5580 ;
5581 return 0;
5582 }
5583 _ACEOF
5584 rm -f conftest.$ac_objext
5585 if { (ac_try="$ac_compile"
5586 case "(($ac_try" in
5587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5588 *) ac_try_echo=$ac_try;;
5589 esac
5590 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5591 $as_echo "$ac_try_echo") >&5
5592 (eval "$ac_compile") 2>conftest.er1
5593 ac_status=$?
5594 grep -v '^ *+' conftest.er1 >conftest.err
5595 rm -f conftest.er1
5596 cat conftest.err >&5
5597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598 (exit $ac_status); } && {
5599 test -z "$ac_cxx_werror_flag" ||
5600 test ! -s conftest.err
5601 } && test -s conftest.$ac_objext; then
5602 ac_compiler_gnu=yes
5603 else
5604 $as_echo "$as_me: failed program was:" >&5
5605 sed 's/^/| /' conftest.$ac_ext >&5
5606
5607 ac_compiler_gnu=no
5608 fi
5609
5610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5611 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5612
5613 fi
5614 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5615 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5616 if test $ac_compiler_gnu = yes; then
5617 GXX=yes
5618 else
5619 GXX=
5620 fi
5621 ac_test_CXXFLAGS=${CXXFLAGS+set}
5622 ac_save_CXXFLAGS=$CXXFLAGS
5623 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5624 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5625 if test "${ac_cv_prog_cxx_g+set}" = set; then
5626 $as_echo_n "(cached) " >&6
5627 else
5628 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5629 ac_cxx_werror_flag=yes
5630 ac_cv_prog_cxx_g=no
5631 CXXFLAGS="-g"
5632 cat >conftest.$ac_ext <<_ACEOF
5633 /* confdefs.h. */
5634 _ACEOF
5635 cat confdefs.h >>conftest.$ac_ext
5636 cat >>conftest.$ac_ext <<_ACEOF
5637 /* end confdefs.h. */
5638
5639 int
5640 main ()
5641 {
5642
5643 ;
5644 return 0;
5645 }
5646 _ACEOF
5647 rm -f conftest.$ac_objext
5648 if { (ac_try="$ac_compile"
5649 case "(($ac_try" in
5650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5651 *) ac_try_echo=$ac_try;;
5652 esac
5653 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5654 $as_echo "$ac_try_echo") >&5
5655 (eval "$ac_compile") 2>conftest.er1
5656 ac_status=$?
5657 grep -v '^ *+' conftest.er1 >conftest.err
5658 rm -f conftest.er1
5659 cat conftest.err >&5
5660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661 (exit $ac_status); } && {
5662 test -z "$ac_cxx_werror_flag" ||
5663 test ! -s conftest.err
5664 } && test -s conftest.$ac_objext; then
5665 ac_cv_prog_cxx_g=yes
5666 else
5667 $as_echo "$as_me: failed program was:" >&5
5668 sed 's/^/| /' conftest.$ac_ext >&5
5669
5670 CXXFLAGS=""
5671 cat >conftest.$ac_ext <<_ACEOF
5672 /* confdefs.h. */
5673 _ACEOF
5674 cat confdefs.h >>conftest.$ac_ext
5675 cat >>conftest.$ac_ext <<_ACEOF
5676 /* end confdefs.h. */
5677
5678 int
5679 main ()
5680 {
5681
5682 ;
5683 return 0;
5684 }
5685 _ACEOF
5686 rm -f conftest.$ac_objext
5687 if { (ac_try="$ac_compile"
5688 case "(($ac_try" in
5689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5690 *) ac_try_echo=$ac_try;;
5691 esac
5692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5693 $as_echo "$ac_try_echo") >&5
5694 (eval "$ac_compile") 2>conftest.er1
5695 ac_status=$?
5696 grep -v '^ *+' conftest.er1 >conftest.err
5697 rm -f conftest.er1
5698 cat conftest.err >&5
5699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700 (exit $ac_status); } && {
5701 test -z "$ac_cxx_werror_flag" ||
5702 test ! -s conftest.err
5703 } && test -s conftest.$ac_objext; then
5704 :
5705 else
5706 $as_echo "$as_me: failed program was:" >&5
5707 sed 's/^/| /' conftest.$ac_ext >&5
5708
5709 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5710 CXXFLAGS="-g"
5711 cat >conftest.$ac_ext <<_ACEOF
5712 /* confdefs.h. */
5713 _ACEOF
5714 cat confdefs.h >>conftest.$ac_ext
5715 cat >>conftest.$ac_ext <<_ACEOF
5716 /* end confdefs.h. */
5717
5718 int
5719 main ()
5720 {
5721
5722 ;
5723 return 0;
5724 }
5725 _ACEOF
5726 rm -f conftest.$ac_objext
5727 if { (ac_try="$ac_compile"
5728 case "(($ac_try" in
5729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5730 *) ac_try_echo=$ac_try;;
5731 esac
5732 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5733 $as_echo "$ac_try_echo") >&5
5734 (eval "$ac_compile") 2>conftest.er1
5735 ac_status=$?
5736 grep -v '^ *+' conftest.er1 >conftest.err
5737 rm -f conftest.er1
5738 cat conftest.err >&5
5739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740 (exit $ac_status); } && {
5741 test -z "$ac_cxx_werror_flag" ||
5742 test ! -s conftest.err
5743 } && test -s conftest.$ac_objext; then
5744 ac_cv_prog_cxx_g=yes
5745 else
5746 $as_echo "$as_me: failed program was:" >&5
5747 sed 's/^/| /' conftest.$ac_ext >&5
5748
5749
5750 fi
5751
5752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5753 fi
5754
5755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5756 fi
5757
5758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5759 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5760 fi
5761 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5762 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5763 if test "$ac_test_CXXFLAGS" = set; then
5764 CXXFLAGS=$ac_save_CXXFLAGS
5765 elif test $ac_cv_prog_cxx_g = yes; then
5766 if test "$GXX" = yes; then
5767 CXXFLAGS="-g -O2"
5768 else
5769 CXXFLAGS="-g"
5770 fi
5771 else
5772 if test "$GXX" = yes; then
5773 CXXFLAGS="-O2"
5774 else
5775 CXXFLAGS=
5776 fi
5777 fi
5778 ac_ext=cpp
5779 ac_cpp='$CXXCPP $CPPFLAGS'
5780 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5781 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5782 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5783
5784 depcc="$CXX" am_compiler_list=
5785
5786 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5787 $as_echo_n "checking dependency style of $depcc... " >&6; }
5788 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5789 $as_echo_n "(cached) " >&6
5790 else
5791 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5792 # We make a subdir and do the tests there. Otherwise we can end up
5793 # making bogus files that we don't know about and never remove. For
5794 # instance it was reported that on HP-UX the gcc test will end up
5795 # making a dummy file named `D' -- because `-MD' means `put the output
5796 # in D'.
5797 mkdir conftest.dir
5798 # Copy depcomp to subdir because otherwise we won't find it if we're
5799 # using a relative directory.
5800 cp "$am_depcomp" conftest.dir
5801 cd conftest.dir
5802 # We will build objects and dependencies in a subdirectory because
5803 # it helps to detect inapplicable dependency modes. For instance
5804 # both Tru64's cc and ICC support -MD to output dependencies as a
5805 # side effect of compilation, but ICC will put the dependencies in
5806 # the current directory while Tru64 will put them in the object
5807 # directory.
5808 mkdir sub
5809
5810 am_cv_CXX_dependencies_compiler_type=none
5811 if test "$am_compiler_list" = ""; then
5812 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5813 fi
5814 am__universal=false
5815 case " $depcc " in #(
5816 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5817 esac
5818
5819 for depmode in $am_compiler_list; do
5820 # Setup a source with many dependencies, because some compilers
5821 # like to wrap large dependency lists on column 80 (with \), and
5822 # we should not choose a depcomp mode which is confused by this.
5823 #
5824 # We need to recreate these files for each test, as the compiler may
5825 # overwrite some of them when testing with obscure command lines.
5826 # This happens at least with the AIX C compiler.
5827 : > sub/conftest.c
5828 for i in 1 2 3 4 5 6; do
5829 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5830 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5831 # Solaris 8's {/usr,}/bin/sh.
5832 touch sub/conftst$i.h
5833 done
5834 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5835
5836 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5837 # mode. It turns out that the SunPro C++ compiler does not properly
5838 # handle `-M -o', and we need to detect this. Also, some Intel
5839 # versions had trouble with output in subdirs
5840 am__obj=sub/conftest.${OBJEXT-o}
5841 am__minus_obj="-o $am__obj"
5842 case $depmode in
5843 gcc)
5844 # This depmode causes a compiler race in universal mode.
5845 test "$am__universal" = false || continue
5846 ;;
5847 nosideeffect)
5848 # after this tag, mechanisms are not by side-effect, so they'll
5849 # only be used when explicitly requested
5850 if test "x$enable_dependency_tracking" = xyes; then
5851 continue
5852 else
5853 break
5854 fi
5855 ;;
5856 msvisualcpp | msvcmsys)
5857 # This compiler won't grok `-c -o', but also, the minuso test has
5858 # not run yet. These depmodes are late enough in the game, and
5859 # so weak that their functioning should not be impacted.
5860 am__obj=conftest.${OBJEXT-o}
5861 am__minus_obj=
5862 ;;
5863 none) break ;;
5864 esac
5865 if depmode=$depmode \
5866 source=sub/conftest.c object=$am__obj \
5867 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5868 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5869 >/dev/null 2>conftest.err &&
5870 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5871 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5872 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5873 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5874 # icc doesn't choke on unknown options, it will just issue warnings
5875 # or remarks (even with -Werror). So we grep stderr for any message
5876 # that says an option was ignored or not supported.
5877 # When given -MP, icc 7.0 and 7.1 complain thusly:
5878 # icc: Command line warning: ignoring option '-M'; no argument required
5879 # The diagnosis changed in icc 8.0:
5880 # icc: Command line remark: option '-MP' not supported
5881 if (grep 'ignoring option' conftest.err ||
5882 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5883 am_cv_CXX_dependencies_compiler_type=$depmode
5884 break
5885 fi
5886 fi
5887 done
5888
5889 cd ..
5890 rm -rf conftest.dir
5891 else
5892 am_cv_CXX_dependencies_compiler_type=none
5893 fi
5894
5895 fi
5896 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5897 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5898 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5899
5900 if
5901 test "x$enable_dependency_tracking" != xno \
5902 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5903 am__fastdepCXX_TRUE=
5904 am__fastdepCXX_FALSE='#'
5905 else
5906 am__fastdepCXX_TRUE='#'
5907 am__fastdepCXX_FALSE=
5908 fi
5909
5910
5911
5912
5913 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5914 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5915 (test "X$CXX" != "Xg++"))) ; then
5916 ac_ext=cpp
5917 ac_cpp='$CXXCPP $CPPFLAGS'
5918 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5919 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5920 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5921 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5922 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5923 if test -z "$CXXCPP"; then
5924 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5925 $as_echo_n "(cached) " >&6
5926 else
5927 # Double quotes because CXXCPP needs to be expanded
5928 for CXXCPP in "$CXX -E" "/lib/cpp"
5929 do
5930 ac_preproc_ok=false
5931 for ac_cxx_preproc_warn_flag in '' yes
5932 do
5933 # Use a header file that comes with gcc, so configuring glibc
5934 # with a fresh cross-compiler works.
5935 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5936 # <limits.h> exists even on freestanding compilers.
5937 # On the NeXT, cc -E runs the code through the compiler's parser,
5938 # not just through cpp. "Syntax error" is here to catch this case.
5939 cat >conftest.$ac_ext <<_ACEOF
5940 /* confdefs.h. */
5941 _ACEOF
5942 cat confdefs.h >>conftest.$ac_ext
5943 cat >>conftest.$ac_ext <<_ACEOF
5944 /* end confdefs.h. */
5945 #ifdef __STDC__
5946 # include <limits.h>
5947 #else
5948 # include <assert.h>
5949 #endif
5950 Syntax error
5951 _ACEOF
5952 if { (ac_try="$ac_cpp conftest.$ac_ext"
5953 case "(($ac_try" in
5954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5955 *) ac_try_echo=$ac_try;;
5956 esac
5957 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5958 $as_echo "$ac_try_echo") >&5
5959 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5960 ac_status=$?
5961 grep -v '^ *+' conftest.er1 >conftest.err
5962 rm -f conftest.er1
5963 cat conftest.err >&5
5964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965 (exit $ac_status); } >/dev/null && {
5966 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5967 test ! -s conftest.err
5968 }; then
5969 :
5970 else
5971 $as_echo "$as_me: failed program was:" >&5
5972 sed 's/^/| /' conftest.$ac_ext >&5
5973
5974 # Broken: fails on valid input.
5975 continue
5976 fi
5977
5978 rm -f conftest.err conftest.$ac_ext
5979
5980 # OK, works on sane cases. Now check whether nonexistent headers
5981 # can be detected and how.
5982 cat >conftest.$ac_ext <<_ACEOF
5983 /* confdefs.h. */
5984 _ACEOF
5985 cat confdefs.h >>conftest.$ac_ext
5986 cat >>conftest.$ac_ext <<_ACEOF
5987 /* end confdefs.h. */
5988 #include <ac_nonexistent.h>
5989 _ACEOF
5990 if { (ac_try="$ac_cpp conftest.$ac_ext"
5991 case "(($ac_try" in
5992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5993 *) ac_try_echo=$ac_try;;
5994 esac
5995 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5996 $as_echo "$ac_try_echo") >&5
5997 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5998 ac_status=$?
5999 grep -v '^ *+' conftest.er1 >conftest.err
6000 rm -f conftest.er1
6001 cat conftest.err >&5
6002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003 (exit $ac_status); } >/dev/null && {
6004 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6005 test ! -s conftest.err
6006 }; then
6007 # Broken: success on invalid input.
6008 continue
6009 else
6010 $as_echo "$as_me: failed program was:" >&5
6011 sed 's/^/| /' conftest.$ac_ext >&5
6012
6013 # Passes both tests.
6014 ac_preproc_ok=:
6015 break
6016 fi
6017
6018 rm -f conftest.err conftest.$ac_ext
6019
6020 done
6021 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6022 rm -f conftest.err conftest.$ac_ext
6023 if $ac_preproc_ok; then
6024 break
6025 fi
6026
6027 done
6028 ac_cv_prog_CXXCPP=$CXXCPP
6029
6030 fi
6031 CXXCPP=$ac_cv_prog_CXXCPP
6032 else
6033 ac_cv_prog_CXXCPP=$CXXCPP
6034 fi
6035 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
6036 $as_echo "$CXXCPP" >&6; }
6037 ac_preproc_ok=false
6038 for ac_cxx_preproc_warn_flag in '' yes
6039 do
6040 # Use a header file that comes with gcc, so configuring glibc
6041 # with a fresh cross-compiler works.
6042 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6043 # <limits.h> exists even on freestanding compilers.
6044 # On the NeXT, cc -E runs the code through the compiler's parser,
6045 # not just through cpp. "Syntax error" is here to catch this case.
6046 cat >conftest.$ac_ext <<_ACEOF
6047 /* confdefs.h. */
6048 _ACEOF
6049 cat confdefs.h >>conftest.$ac_ext
6050 cat >>conftest.$ac_ext <<_ACEOF
6051 /* end confdefs.h. */
6052 #ifdef __STDC__
6053 # include <limits.h>
6054 #else
6055 # include <assert.h>
6056 #endif
6057 Syntax error
6058 _ACEOF
6059 if { (ac_try="$ac_cpp conftest.$ac_ext"
6060 case "(($ac_try" in
6061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6062 *) ac_try_echo=$ac_try;;
6063 esac
6064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6065 $as_echo "$ac_try_echo") >&5
6066 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6067 ac_status=$?
6068 grep -v '^ *+' conftest.er1 >conftest.err
6069 rm -f conftest.er1
6070 cat conftest.err >&5
6071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072 (exit $ac_status); } >/dev/null && {
6073 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6074 test ! -s conftest.err
6075 }; then
6076 :
6077 else
6078 $as_echo "$as_me: failed program was:" >&5
6079 sed 's/^/| /' conftest.$ac_ext >&5
6080
6081 # Broken: fails on valid input.
6082 continue
6083 fi
6084
6085 rm -f conftest.err conftest.$ac_ext
6086
6087 # OK, works on sane cases. Now check whether nonexistent headers
6088 # can be detected and how.
6089 cat >conftest.$ac_ext <<_ACEOF
6090 /* confdefs.h. */
6091 _ACEOF
6092 cat confdefs.h >>conftest.$ac_ext
6093 cat >>conftest.$ac_ext <<_ACEOF
6094 /* end confdefs.h. */
6095 #include <ac_nonexistent.h>
6096 _ACEOF
6097 if { (ac_try="$ac_cpp conftest.$ac_ext"
6098 case "(($ac_try" in
6099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6100 *) ac_try_echo=$ac_try;;
6101 esac
6102 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6103 $as_echo "$ac_try_echo") >&5
6104 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6105 ac_status=$?
6106 grep -v '^ *+' conftest.er1 >conftest.err
6107 rm -f conftest.er1
6108 cat conftest.err >&5
6109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110 (exit $ac_status); } >/dev/null && {
6111 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6112 test ! -s conftest.err
6113 }; then
6114 # Broken: success on invalid input.
6115 continue
6116 else
6117 $as_echo "$as_me: failed program was:" >&5
6118 sed 's/^/| /' conftest.$ac_ext >&5
6119
6120 # Passes both tests.
6121 ac_preproc_ok=:
6122 break
6123 fi
6124
6125 rm -f conftest.err conftest.$ac_ext
6126
6127 done
6128 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6129 rm -f conftest.err conftest.$ac_ext
6130 if $ac_preproc_ok; then
6131 :
6132 else
6133 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6134 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6135 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6136 See \`config.log' for more details." >&5
6137 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6138 See \`config.log' for more details." >&2;}
6139 { (exit 1); exit 1; }; }; }
6140 fi
6141
6142 ac_ext=cpp
6143 ac_cpp='$CXXCPP $CPPFLAGS'
6144 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6145 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6146 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6147
6148 fi
6149
6150
6151 ac_ext=f
6152 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6153 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6154 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6155 if test -n "$ac_tool_prefix"; then
6156 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6157 do
6158 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6159 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6160 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6161 $as_echo_n "checking for $ac_word... " >&6; }
6162 if test "${ac_cv_prog_F77+set}" = set; then
6163 $as_echo_n "(cached) " >&6
6164 else
6165 if test -n "$F77"; then
6166 ac_cv_prog_F77="$F77" # Let the user override the test.
6167 else
6168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6169 for as_dir in $PATH
6170 do
6171 IFS=$as_save_IFS
6172 test -z "$as_dir" && as_dir=.
6173 for ac_exec_ext in '' $ac_executable_extensions; do
6174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6175 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6176 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6177 break 2
6178 fi
6179 done
6180 done
6181 IFS=$as_save_IFS
6182
6183 fi
6184 fi
6185 F77=$ac_cv_prog_F77
6186 if test -n "$F77"; then
6187 { $as_echo "$as_me:$LINENO: result: $F77" >&5
6188 $as_echo "$F77" >&6; }
6189 else
6190 { $as_echo "$as_me:$LINENO: result: no" >&5
6191 $as_echo "no" >&6; }
6192 fi
6193
6194
6195 test -n "$F77" && break
6196 done
6197 fi
6198 if test -z "$F77"; then
6199 ac_ct_F77=$F77
6200 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6201 do
6202 # Extract the first word of "$ac_prog", so it can be a program name with args.
6203 set dummy $ac_prog; ac_word=$2
6204 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6205 $as_echo_n "checking for $ac_word... " >&6; }
6206 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6207 $as_echo_n "(cached) " >&6
6208 else
6209 if test -n "$ac_ct_F77"; then
6210 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6211 else
6212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6213 for as_dir in $PATH
6214 do
6215 IFS=$as_save_IFS
6216 test -z "$as_dir" && as_dir=.
6217 for ac_exec_ext in '' $ac_executable_extensions; do
6218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6219 ac_cv_prog_ac_ct_F77="$ac_prog"
6220 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6221 break 2
6222 fi
6223 done
6224 done
6225 IFS=$as_save_IFS
6226
6227 fi
6228 fi
6229 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6230 if test -n "$ac_ct_F77"; then
6231 { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6232 $as_echo "$ac_ct_F77" >&6; }
6233 else
6234 { $as_echo "$as_me:$LINENO: result: no" >&5
6235 $as_echo "no" >&6; }
6236 fi
6237
6238
6239 test -n "$ac_ct_F77" && break
6240 done
6241
6242 if test "x$ac_ct_F77" = x; then
6243 F77=""
6244 else
6245 case $cross_compiling:$ac_tool_warned in
6246 yes:)
6247 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6248 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6249 ac_tool_warned=yes ;;
6250 esac
6251 F77=$ac_ct_F77
6252 fi
6253 fi
6254
6255
6256 # Provide some information about the compiler.
6257 $as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6258 set X $ac_compile
6259 ac_compiler=$2
6260 { (ac_try="$ac_compiler --version >&5"
6261 case "(($ac_try" in
6262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6263 *) ac_try_echo=$ac_try;;
6264 esac
6265 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6266 $as_echo "$ac_try_echo") >&5
6267 (eval "$ac_compiler --version >&5") 2>&5
6268 ac_status=$?
6269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270 (exit $ac_status); }
6271 { (ac_try="$ac_compiler -v >&5"
6272 case "(($ac_try" in
6273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6274 *) ac_try_echo=$ac_try;;
6275 esac
6276 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6277 $as_echo "$ac_try_echo") >&5
6278 (eval "$ac_compiler -v >&5") 2>&5
6279 ac_status=$?
6280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6281 (exit $ac_status); }
6282 { (ac_try="$ac_compiler -V >&5"
6283 case "(($ac_try" in
6284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6285 *) ac_try_echo=$ac_try;;
6286 esac
6287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6288 $as_echo "$ac_try_echo") >&5
6289 (eval "$ac_compiler -V >&5") 2>&5
6290 ac_status=$?
6291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292 (exit $ac_status); }
6293 rm -f a.out
6294
6295 # If we don't use `.F' as extension, the preprocessor is not run on the
6296 # input file. (Note that this only needs to work for GNU compilers.)
6297 ac_save_ext=$ac_ext
6298 ac_ext=F
6299 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6300 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6301 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6302 $as_echo_n "(cached) " >&6
6303 else
6304 cat >conftest.$ac_ext <<_ACEOF
6305 program main
6306 #ifndef __GNUC__
6307 choke me
6308 #endif
6309
6310 end
6311 _ACEOF
6312 rm -f conftest.$ac_objext
6313 if { (ac_try="$ac_compile"
6314 case "(($ac_try" in
6315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6316 *) ac_try_echo=$ac_try;;
6317 esac
6318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6319 $as_echo "$ac_try_echo") >&5
6320 (eval "$ac_compile") 2>conftest.er1
6321 ac_status=$?
6322 grep -v '^ *+' conftest.er1 >conftest.err
6323 rm -f conftest.er1
6324 cat conftest.err >&5
6325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326 (exit $ac_status); } && {
6327 test -z "$ac_f77_werror_flag" ||
6328 test ! -s conftest.err
6329 } && test -s conftest.$ac_objext; then
6330 ac_compiler_gnu=yes
6331 else
6332 $as_echo "$as_me: failed program was:" >&5
6333 sed 's/^/| /' conftest.$ac_ext >&5
6334
6335 ac_compiler_gnu=no
6336 fi
6337
6338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6339 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6340
6341 fi
6342 { $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6343 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6344 ac_ext=$ac_save_ext
6345 ac_test_FFLAGS=${FFLAGS+set}
6346 ac_save_FFLAGS=$FFLAGS
6347 FFLAGS=
6348 { $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6349 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6350 if test "${ac_cv_prog_f77_g+set}" = set; then
6351 $as_echo_n "(cached) " >&6
6352 else
6353 FFLAGS=-g
6354 cat >conftest.$ac_ext <<_ACEOF
6355 program main
6356
6357 end
6358 _ACEOF
6359 rm -f conftest.$ac_objext
6360 if { (ac_try="$ac_compile"
6361 case "(($ac_try" in
6362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6363 *) ac_try_echo=$ac_try;;
6364 esac
6365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6366 $as_echo "$ac_try_echo") >&5
6367 (eval "$ac_compile") 2>conftest.er1
6368 ac_status=$?
6369 grep -v '^ *+' conftest.er1 >conftest.err
6370 rm -f conftest.er1
6371 cat conftest.err >&5
6372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6373 (exit $ac_status); } && {
6374 test -z "$ac_f77_werror_flag" ||
6375 test ! -s conftest.err
6376 } && test -s conftest.$ac_objext; then
6377 ac_cv_prog_f77_g=yes
6378 else
6379 $as_echo "$as_me: failed program was:" >&5
6380 sed 's/^/| /' conftest.$ac_ext >&5
6381
6382 ac_cv_prog_f77_g=no
6383 fi
6384
6385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6386
6387 fi
6388 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6389 $as_echo "$ac_cv_prog_f77_g" >&6; }
6390 if test "$ac_test_FFLAGS" = set; then
6391 FFLAGS=$ac_save_FFLAGS
6392 elif test $ac_cv_prog_f77_g = yes; then
6393 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6394 FFLAGS="-g -O2"
6395 else
6396 FFLAGS="-g"
6397 fi
6398 else
6399 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6400 FFLAGS="-O2"
6401 else
6402 FFLAGS=
6403 fi
6404 fi
6405
6406 if test $ac_compiler_gnu = yes; then
6407 G77=yes
6408 else
6409 G77=
6410 fi
6411 ac_ext=c
6412 ac_cpp='$CPP $CPPFLAGS'
6413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6416
6417
6418
6419 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6420 # find the maximum length of command line arguments
6421 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6422 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6423 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6424 $as_echo_n "(cached) " >&6
6425 else
6426 i=0
6427 teststring="ABCD"
6428
6429 case $build_os in
6430 msdosdjgpp*)
6431 # On DJGPP, this test can blow up pretty badly due to problems in libc
6432 # (any single argument exceeding 2000 bytes causes a buffer overrun
6433 # during glob expansion). Even if it were fixed, the result of this
6434 # check would be larger than it should be.
6435 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6436 ;;
6437
6438 gnu*)
6439 # Under GNU Hurd, this test is not required because there is
6440 # no limit to the length of command line arguments.
6441 # Libtool will interpret -1 as no limit whatsoever
6442 lt_cv_sys_max_cmd_len=-1;
6443 ;;
6444
6445 cygwin* | mingw*)
6446 # On Win9x/ME, this test blows up -- it succeeds, but takes
6447 # about 5 minutes as the teststring grows exponentially.
6448 # Worse, since 9x/ME are not pre-emptively multitasking,
6449 # you end up with a "frozen" computer, even though with patience
6450 # the test eventually succeeds (with a max line length of 256k).
6451 # Instead, let's just punt: use the minimum linelength reported by
6452 # all of the supported platforms: 8192 (on NT/2K/XP).
6453 lt_cv_sys_max_cmd_len=8192;
6454 ;;
6455
6456 amigaos*)
6457 # On AmigaOS with pdksh, this test takes hours, literally.
6458 # So we just punt and use a minimum line length of 8192.
6459 lt_cv_sys_max_cmd_len=8192;
6460 ;;
6461
6462 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6463 # This has been around since 386BSD, at least. Likely further.
6464 if test -x /sbin/sysctl; then
6465 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6466 elif test -x /usr/sbin/sysctl; then
6467 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6468 else
6469 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6470 fi
6471 # And add a safety zone
6472 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6473 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6474 ;;
6475
6476 interix*)
6477 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6478 lt_cv_sys_max_cmd_len=196608
6479 ;;
6480
6481 osf*)
6482 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6483 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6484 # nice to cause kernel panics so lets avoid the loop below.
6485 # First set a reasonable default.
6486 lt_cv_sys_max_cmd_len=16384
6487 #
6488 if test -x /sbin/sysconfig; then
6489 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6490 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6491 esac
6492 fi
6493 ;;
6494 sco3.2v5*)
6495 lt_cv_sys_max_cmd_len=102400
6496 ;;
6497 sysv5* | sco5v6* | sysv4.2uw2*)
6498 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6499 if test -n "$kargmax"; then
6500 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6501 else
6502 lt_cv_sys_max_cmd_len=32768
6503 fi
6504 ;;
6505 *)
6506 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6507 if test -n "$lt_cv_sys_max_cmd_len"; then
6508 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6509 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6510 else
6511 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6512 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6513 = "XX$teststring") >/dev/null 2>&1 &&
6514 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6515 lt_cv_sys_max_cmd_len=$new_result &&
6516 test $i != 17 # 1/2 MB should be enough
6517 do
6518 i=`expr $i + 1`
6519 teststring=$teststring$teststring
6520 done
6521 teststring=
6522 # Add a significant safety factor because C++ compilers can tack on massive
6523 # amounts of additional arguments before passing them to the linker.
6524 # It appears as though 1/2 is a usable value.
6525 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6526 fi
6527 ;;
6528 esac
6529
6530 fi
6531
6532 if test -n $lt_cv_sys_max_cmd_len ; then
6533 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6534 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6535 else
6536 { $as_echo "$as_me:$LINENO: result: none" >&5
6537 $as_echo "none" >&6; }
6538 fi
6539
6540
6541
6542
6543
6544 # Check for command to grab the raw symbol name followed by C symbol from nm.
6545 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6546 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6547 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6548 $as_echo_n "(cached) " >&6
6549 else
6550
6551 # These are sane defaults that work on at least a few old systems.
6552 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6553
6554 # Character class describing NM global symbol codes.
6555 symcode='[BCDEGRST]'
6556
6557 # Regexp to match symbols that can be accessed directly from C.
6558 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6559
6560 # Transform an extracted symbol line into a proper C declaration
6561 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6562
6563 # Transform an extracted symbol line into symbol name and symbol address
6564 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'"
6565
6566 # Define system-specific variables.
6567 case $host_os in
6568 aix*)
6569 symcode='[BCDT]'
6570 ;;
6571 cygwin* | mingw* | pw32*)
6572 symcode='[ABCDGISTW]'
6573 ;;
6574 hpux*) # Its linker distinguishes data from code symbols
6575 if test "$host_cpu" = ia64; then
6576 symcode='[ABCDEGRST]'
6577 fi
6578 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6579 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'"
6580 ;;
6581 linux* | k*bsd*-gnu)
6582 if test "$host_cpu" = ia64; then
6583 symcode='[ABCDGIRSTW]'
6584 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6585 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'"
6586 fi
6587 ;;
6588 irix* | nonstopux*)
6589 symcode='[BCDEGRST]'
6590 ;;
6591 osf*)
6592 symcode='[BCDEGQRST]'
6593 ;;
6594 solaris*)
6595 symcode='[BDRT]'
6596 ;;
6597 sco3.2v5*)
6598 symcode='[DT]'
6599 ;;
6600 sysv4.2uw2*)
6601 symcode='[DT]'
6602 ;;
6603 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6604 symcode='[ABDT]'
6605 ;;
6606 sysv4)
6607 symcode='[DFNSTU]'
6608 ;;
6609 esac
6610
6611 # Handle CRLF in mingw tool chain
6612 opt_cr=
6613 case $build_os in
6614 mingw*)
6615 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6616 ;;
6617 esac
6618
6619 # If we're using GNU nm, then use its standard symbol codes.
6620 case `$NM -V 2>&1` in
6621 *GNU* | *'with BFD'*)
6622 symcode='[ABCDGIRSTW]' ;;
6623 esac
6624
6625 # Try without a prefix undercore, then with it.
6626 for ac_symprfx in "" "_"; do
6627
6628 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6629 symxfrm="\\1 $ac_symprfx\\2 \\2"
6630
6631 # Write the raw and C identifiers.
6632 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6633
6634 # Check to see that the pipe works correctly.
6635 pipe_works=no
6636
6637 rm -f conftest*
6638 cat > conftest.$ac_ext <<EOF
6639 #ifdef __cplusplus
6640 extern "C" {
6641 #endif
6642 char nm_test_var;
6643 void nm_test_func(){}
6644 #ifdef __cplusplus
6645 }
6646 #endif
6647 int main(){nm_test_var='a';nm_test_func();return(0);}
6648 EOF
6649
6650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6651 (eval $ac_compile) 2>&5
6652 ac_status=$?
6653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654 (exit $ac_status); }; then
6655 # Now try to grab the symbols.
6656 nlist=conftest.nm
6657 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6658 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6659 ac_status=$?
6660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661 (exit $ac_status); } && test -s "$nlist"; then
6662 # Try sorting and uniquifying the output.
6663 if sort "$nlist" | uniq > "$nlist"T; then
6664 mv -f "$nlist"T "$nlist"
6665 else
6666 rm -f "$nlist"T
6667 fi
6668
6669 # Make sure that we snagged all the symbols we need.
6670 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6671 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6672 cat <<EOF > conftest.$ac_ext
6673 #ifdef __cplusplus
6674 extern "C" {
6675 #endif
6676
6677 EOF
6678 # Now generate the symbol file.
6679 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6680
6681 cat <<EOF >> conftest.$ac_ext
6682 #if defined (__STDC__) && __STDC__
6683 # define lt_ptr_t void *
6684 #else
6685 # define lt_ptr_t char *
6686 # define const
6687 #endif
6688
6689 /* The mapping between symbol names and symbols. */
6690 const struct {
6691 const char *name;
6692 lt_ptr_t address;
6693 }
6694 lt_preloaded_symbols[] =
6695 {
6696 EOF
6697 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6698 cat <<\EOF >> conftest.$ac_ext
6699 {0, (lt_ptr_t) 0}
6700 };
6701
6702 #ifdef __cplusplus
6703 }
6704 #endif
6705 EOF
6706 # Now try linking the two files.
6707 mv conftest.$ac_objext conftstm.$ac_objext
6708 lt_save_LIBS="$LIBS"
6709 lt_save_CFLAGS="$CFLAGS"
6710 LIBS="conftstm.$ac_objext"
6711 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6713 (eval $ac_link) 2>&5
6714 ac_status=$?
6715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6717 pipe_works=yes
6718 fi
6719 LIBS="$lt_save_LIBS"
6720 CFLAGS="$lt_save_CFLAGS"
6721 else
6722 echo "cannot find nm_test_func in $nlist" >&5
6723 fi
6724 else
6725 echo "cannot find nm_test_var in $nlist" >&5
6726 fi
6727 else
6728 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6729 fi
6730 else
6731 echo "$progname: failed program was:" >&5
6732 cat conftest.$ac_ext >&5
6733 fi
6734 rm -rf conftest* conftst*
6735
6736 # Do not use the global_symbol_pipe unless it works.
6737 if test "$pipe_works" = yes; then
6738 break
6739 else
6740 lt_cv_sys_global_symbol_pipe=
6741 fi
6742 done
6743
6744 fi
6745
6746 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6747 lt_cv_sys_global_symbol_to_cdecl=
6748 fi
6749 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6750 { $as_echo "$as_me:$LINENO: result: failed" >&5
6751 $as_echo "failed" >&6; }
6752 else
6753 { $as_echo "$as_me:$LINENO: result: ok" >&5
6754 $as_echo "ok" >&6; }
6755 fi
6756
6757 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
6758 $as_echo_n "checking for objdir... " >&6; }
6759 if test "${lt_cv_objdir+set}" = set; then
6760 $as_echo_n "(cached) " >&6
6761 else
6762 rm -f .libs 2>/dev/null
6763 mkdir .libs 2>/dev/null
6764 if test -d .libs; then
6765 lt_cv_objdir=.libs
6766 else
6767 # MS-DOS does not allow filenames that begin with a dot.
6768 lt_cv_objdir=_libs
6769 fi
6770 rmdir .libs 2>/dev/null
6771 fi
6772 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6773 $as_echo "$lt_cv_objdir" >&6; }
6774 objdir=$lt_cv_objdir
6775
6776
6777
6778
6779
6780 case $host_os in
6781 aix3*)
6782 # AIX sometimes has problems with the GCC collect2 program. For some
6783 # reason, if we set the COLLECT_NAMES environment variable, the problems
6784 # vanish in a puff of smoke.
6785 if test "X${COLLECT_NAMES+set}" != Xset; then
6786 COLLECT_NAMES=
6787 export COLLECT_NAMES
6788 fi
6789 ;;
6790 esac
6791
6792 # Sed substitution that helps us do robust quoting. It backslashifies
6793 # metacharacters that are still active within double-quoted strings.
6794 Xsed='sed -e 1s/^X//'
6795 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6796
6797 # Same as above, but do not quote variable references.
6798 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6799
6800 # Sed substitution to delay expansion of an escaped shell variable in a
6801 # double_quote_subst'ed string.
6802 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6803
6804 # Sed substitution to avoid accidental globbing in evaled expressions
6805 no_glob_subst='s/\*/\\\*/g'
6806
6807 # Constants:
6808 rm="rm -f"
6809
6810 # Global variables:
6811 default_ofile=libtool
6812 can_build_shared=yes
6813
6814 # All known linkers require a `.a' archive for static linking (except MSVC,
6815 # which needs '.lib').
6816 libext=a
6817 ltmain="$ac_aux_dir/ltmain.sh"
6818 ofile="$default_ofile"
6819 with_gnu_ld="$lt_cv_prog_gnu_ld"
6820
6821 if test -n "$ac_tool_prefix"; then
6822 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6823 set dummy ${ac_tool_prefix}ar; ac_word=$2
6824 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6825 $as_echo_n "checking for $ac_word... " >&6; }
6826 if test "${ac_cv_prog_AR+set}" = set; then
6827 $as_echo_n "(cached) " >&6
6828 else
6829 if test -n "$AR"; then
6830 ac_cv_prog_AR="$AR" # Let the user override the test.
6831 else
6832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6833 for as_dir in $PATH
6834 do
6835 IFS=$as_save_IFS
6836 test -z "$as_dir" && as_dir=.
6837 for ac_exec_ext in '' $ac_executable_extensions; do
6838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6839 ac_cv_prog_AR="${ac_tool_prefix}ar"
6840 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6841 break 2
6842 fi
6843 done
6844 done
6845 IFS=$as_save_IFS
6846
6847 fi
6848 fi
6849 AR=$ac_cv_prog_AR
6850 if test -n "$AR"; then
6851 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6852 $as_echo "$AR" >&6; }
6853 else
6854 { $as_echo "$as_me:$LINENO: result: no" >&5
6855 $as_echo "no" >&6; }
6856 fi
6857
6858
6859 fi
6860 if test -z "$ac_cv_prog_AR"; then
6861 ac_ct_AR=$AR
6862 # Extract the first word of "ar", so it can be a program name with args.
6863 set dummy ar; ac_word=$2
6864 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6865 $as_echo_n "checking for $ac_word... " >&6; }
6866 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6867 $as_echo_n "(cached) " >&6
6868 else
6869 if test -n "$ac_ct_AR"; then
6870 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6871 else
6872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6873 for as_dir in $PATH
6874 do
6875 IFS=$as_save_IFS
6876 test -z "$as_dir" && as_dir=.
6877 for ac_exec_ext in '' $ac_executable_extensions; do
6878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6879 ac_cv_prog_ac_ct_AR="ar"
6880 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6881 break 2
6882 fi
6883 done
6884 done
6885 IFS=$as_save_IFS
6886
6887 fi
6888 fi
6889 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6890 if test -n "$ac_ct_AR"; then
6891 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6892 $as_echo "$ac_ct_AR" >&6; }
6893 else
6894 { $as_echo "$as_me:$LINENO: result: no" >&5
6895 $as_echo "no" >&6; }
6896 fi
6897
6898 if test "x$ac_ct_AR" = x; then
6899 AR="false"
6900 else
6901 case $cross_compiling:$ac_tool_warned in
6902 yes:)
6903 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6904 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6905 ac_tool_warned=yes ;;
6906 esac
6907 AR=$ac_ct_AR
6908 fi
6909 else
6910 AR="$ac_cv_prog_AR"
6911 fi
6912
6913 if test -n "$ac_tool_prefix"; then
6914 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6915 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6916 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6917 $as_echo_n "checking for $ac_word... " >&6; }
6918 if test "${ac_cv_prog_RANLIB+set}" = set; then
6919 $as_echo_n "(cached) " >&6
6920 else
6921 if test -n "$RANLIB"; then
6922 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6923 else
6924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6925 for as_dir in $PATH
6926 do
6927 IFS=$as_save_IFS
6928 test -z "$as_dir" && as_dir=.
6929 for ac_exec_ext in '' $ac_executable_extensions; do
6930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6931 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6932 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6933 break 2
6934 fi
6935 done
6936 done
6937 IFS=$as_save_IFS
6938
6939 fi
6940 fi
6941 RANLIB=$ac_cv_prog_RANLIB
6942 if test -n "$RANLIB"; then
6943 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6944 $as_echo "$RANLIB" >&6; }
6945 else
6946 { $as_echo "$as_me:$LINENO: result: no" >&5
6947 $as_echo "no" >&6; }
6948 fi
6949
6950
6951 fi
6952 if test -z "$ac_cv_prog_RANLIB"; then
6953 ac_ct_RANLIB=$RANLIB
6954 # Extract the first word of "ranlib", so it can be a program name with args.
6955 set dummy ranlib; ac_word=$2
6956 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6957 $as_echo_n "checking for $ac_word... " >&6; }
6958 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6959 $as_echo_n "(cached) " >&6
6960 else
6961 if test -n "$ac_ct_RANLIB"; then
6962 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6963 else
6964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6965 for as_dir in $PATH
6966 do
6967 IFS=$as_save_IFS
6968 test -z "$as_dir" && as_dir=.
6969 for ac_exec_ext in '' $ac_executable_extensions; do
6970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6971 ac_cv_prog_ac_ct_RANLIB="ranlib"
6972 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6973 break 2
6974 fi
6975 done
6976 done
6977 IFS=$as_save_IFS
6978
6979 fi
6980 fi
6981 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6982 if test -n "$ac_ct_RANLIB"; then
6983 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6984 $as_echo "$ac_ct_RANLIB" >&6; }
6985 else
6986 { $as_echo "$as_me:$LINENO: result: no" >&5
6987 $as_echo "no" >&6; }
6988 fi
6989
6990 if test "x$ac_ct_RANLIB" = x; then
6991 RANLIB=":"
6992 else
6993 case $cross_compiling:$ac_tool_warned in
6994 yes:)
6995 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6996 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6997 ac_tool_warned=yes ;;
6998 esac
6999 RANLIB=$ac_ct_RANLIB
7000 fi
7001 else
7002 RANLIB="$ac_cv_prog_RANLIB"
7003 fi
7004
7005 if test -n "$ac_tool_prefix"; then
7006 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7007 set dummy ${ac_tool_prefix}strip; ac_word=$2
7008 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7009 $as_echo_n "checking for $ac_word... " >&6; }
7010 if test "${ac_cv_prog_STRIP+set}" = set; then
7011 $as_echo_n "(cached) " >&6
7012 else
7013 if test -n "$STRIP"; then
7014 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7015 else
7016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7017 for as_dir in $PATH
7018 do
7019 IFS=$as_save_IFS
7020 test -z "$as_dir" && as_dir=.
7021 for ac_exec_ext in '' $ac_executable_extensions; do
7022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7023 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7024 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7025 break 2
7026 fi
7027 done
7028 done
7029 IFS=$as_save_IFS
7030
7031 fi
7032 fi
7033 STRIP=$ac_cv_prog_STRIP
7034 if test -n "$STRIP"; then
7035 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
7036 $as_echo "$STRIP" >&6; }
7037 else
7038 { $as_echo "$as_me:$LINENO: result: no" >&5
7039 $as_echo "no" >&6; }
7040 fi
7041
7042
7043 fi
7044 if test -z "$ac_cv_prog_STRIP"; then
7045 ac_ct_STRIP=$STRIP
7046 # Extract the first word of "strip", so it can be a program name with args.
7047 set dummy strip; ac_word=$2
7048 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7049 $as_echo_n "checking for $ac_word... " >&6; }
7050 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7051 $as_echo_n "(cached) " >&6
7052 else
7053 if test -n "$ac_ct_STRIP"; then
7054 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7055 else
7056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7057 for as_dir in $PATH
7058 do
7059 IFS=$as_save_IFS
7060 test -z "$as_dir" && as_dir=.
7061 for ac_exec_ext in '' $ac_executable_extensions; do
7062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7063 ac_cv_prog_ac_ct_STRIP="strip"
7064 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7065 break 2
7066 fi
7067 done
7068 done
7069 IFS=$as_save_IFS
7070
7071 fi
7072 fi
7073 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7074 if test -n "$ac_ct_STRIP"; then
7075 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7076 $as_echo "$ac_ct_STRIP" >&6; }
7077 else
7078 { $as_echo "$as_me:$LINENO: result: no" >&5
7079 $as_echo "no" >&6; }
7080 fi
7081
7082 if test "x$ac_ct_STRIP" = x; then
7083 STRIP=":"
7084 else
7085 case $cross_compiling:$ac_tool_warned in
7086 yes:)
7087 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7088 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7089 ac_tool_warned=yes ;;
7090 esac
7091 STRIP=$ac_ct_STRIP
7092 fi
7093 else
7094 STRIP="$ac_cv_prog_STRIP"
7095 fi
7096
7097
7098 old_CC="$CC"
7099 old_CFLAGS="$CFLAGS"
7100
7101 # Set sane defaults for various variables
7102 test -z "$AR" && AR=ar
7103 test -z "$AR_FLAGS" && AR_FLAGS=cru
7104 test -z "$AS" && AS=as
7105 test -z "$CC" && CC=cc
7106 test -z "$LTCC" && LTCC=$CC
7107 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7108 test -z "$DLLTOOL" && DLLTOOL=dlltool
7109 test -z "$LD" && LD=ld
7110 test -z "$LN_S" && LN_S="ln -s"
7111 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7112 test -z "$NM" && NM=nm
7113 test -z "$SED" && SED=sed
7114 test -z "$OBJDUMP" && OBJDUMP=objdump
7115 test -z "$RANLIB" && RANLIB=:
7116 test -z "$STRIP" && STRIP=:
7117 test -z "$ac_objext" && ac_objext=o
7118
7119 # Determine commands to create old-style static archives.
7120 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7121 old_postinstall_cmds='chmod 644 $oldlib'
7122 old_postuninstall_cmds=
7123
7124 if test -n "$RANLIB"; then
7125 case $host_os in
7126 openbsd*)
7127 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7128 ;;
7129 *)
7130 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7131 ;;
7132 esac
7133 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7134 fi
7135
7136 for cc_temp in $compiler""; do
7137 case $cc_temp in
7138 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7139 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7140 \-*) ;;
7141 *) break;;
7142 esac
7143 done
7144 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7145
7146
7147 # Only perform the check for file, if the check method requires it
7148 case $deplibs_check_method in
7149 file_magic*)
7150 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7151 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7152 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7153 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7154 $as_echo_n "(cached) " >&6
7155 else
7156 case $MAGIC_CMD in
7157 [\\/*] | ?:[\\/]*)
7158 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7159 ;;
7160 *)
7161 lt_save_MAGIC_CMD="$MAGIC_CMD"
7162 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7163 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7164 for ac_dir in $ac_dummy; do
7165 IFS="$lt_save_ifs"
7166 test -z "$ac_dir" && ac_dir=.
7167 if test -f $ac_dir/${ac_tool_prefix}file; then
7168 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7169 if test -n "$file_magic_test_file"; then
7170 case $deplibs_check_method in
7171 "file_magic "*)
7172 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7173 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7174 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7175 $EGREP "$file_magic_regex" > /dev/null; then
7176 :
7177 else
7178 cat <<EOF 1>&2
7179
7180 *** Warning: the command libtool uses to detect shared libraries,
7181 *** $file_magic_cmd, produces output that libtool cannot recognize.
7182 *** The result is that libtool may fail to recognize shared libraries
7183 *** as such. This will affect the creation of libtool libraries that
7184 *** depend on shared libraries, but programs linked with such libtool
7185 *** libraries will work regardless of this problem. Nevertheless, you
7186 *** may want to report the problem to your system manager and/or to
7187 *** bug-libtool@gnu.org
7188
7189 EOF
7190 fi ;;
7191 esac
7192 fi
7193 break
7194 fi
7195 done
7196 IFS="$lt_save_ifs"
7197 MAGIC_CMD="$lt_save_MAGIC_CMD"
7198 ;;
7199 esac
7200 fi
7201
7202 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7203 if test -n "$MAGIC_CMD"; then
7204 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7205 $as_echo "$MAGIC_CMD" >&6; }
7206 else
7207 { $as_echo "$as_me:$LINENO: result: no" >&5
7208 $as_echo "no" >&6; }
7209 fi
7210
7211 if test -z "$lt_cv_path_MAGIC_CMD"; then
7212 if test -n "$ac_tool_prefix"; then
7213 { $as_echo "$as_me:$LINENO: checking for file" >&5
7214 $as_echo_n "checking for file... " >&6; }
7215 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7216 $as_echo_n "(cached) " >&6
7217 else
7218 case $MAGIC_CMD in
7219 [\\/*] | ?:[\\/]*)
7220 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7221 ;;
7222 *)
7223 lt_save_MAGIC_CMD="$MAGIC_CMD"
7224 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7225 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7226 for ac_dir in $ac_dummy; do
7227 IFS="$lt_save_ifs"
7228 test -z "$ac_dir" && ac_dir=.
7229 if test -f $ac_dir/file; then
7230 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7231 if test -n "$file_magic_test_file"; then
7232 case $deplibs_check_method in
7233 "file_magic "*)
7234 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7235 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7236 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7237 $EGREP "$file_magic_regex" > /dev/null; then
7238 :
7239 else
7240 cat <<EOF 1>&2
7241
7242 *** Warning: the command libtool uses to detect shared libraries,
7243 *** $file_magic_cmd, produces output that libtool cannot recognize.
7244 *** The result is that libtool may fail to recognize shared libraries
7245 *** as such. This will affect the creation of libtool libraries that
7246 *** depend on shared libraries, but programs linked with such libtool
7247 *** libraries will work regardless of this problem. Nevertheless, you
7248 *** may want to report the problem to your system manager and/or to
7249 *** bug-libtool@gnu.org
7250
7251 EOF
7252 fi ;;
7253 esac
7254 fi
7255 break
7256 fi
7257 done
7258 IFS="$lt_save_ifs"
7259 MAGIC_CMD="$lt_save_MAGIC_CMD"
7260 ;;
7261 esac
7262 fi
7263
7264 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7265 if test -n "$MAGIC_CMD"; then
7266 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7267 $as_echo "$MAGIC_CMD" >&6; }
7268 else
7269 { $as_echo "$as_me:$LINENO: result: no" >&5
7270 $as_echo "no" >&6; }
7271 fi
7272
7273 else
7274 MAGIC_CMD=:
7275 fi
7276 fi
7277
7278 fi
7279 ;;
7280 esac
7281
7282
7283 case $host_os in
7284 rhapsody* | darwin*)
7285 if test -n "$ac_tool_prefix"; then
7286 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7287 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7288 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7289 $as_echo_n "checking for $ac_word... " >&6; }
7290 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7291 $as_echo_n "(cached) " >&6
7292 else
7293 if test -n "$DSYMUTIL"; then
7294 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7295 else
7296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7297 for as_dir in $PATH
7298 do
7299 IFS=$as_save_IFS
7300 test -z "$as_dir" && as_dir=.
7301 for ac_exec_ext in '' $ac_executable_extensions; do
7302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7303 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7304 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7305 break 2
7306 fi
7307 done
7308 done
7309 IFS=$as_save_IFS
7310
7311 fi
7312 fi
7313 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7314 if test -n "$DSYMUTIL"; then
7315 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7316 $as_echo "$DSYMUTIL" >&6; }
7317 else
7318 { $as_echo "$as_me:$LINENO: result: no" >&5
7319 $as_echo "no" >&6; }
7320 fi
7321
7322
7323 fi
7324 if test -z "$ac_cv_prog_DSYMUTIL"; then
7325 ac_ct_DSYMUTIL=$DSYMUTIL
7326 # Extract the first word of "dsymutil", so it can be a program name with args.
7327 set dummy dsymutil; ac_word=$2
7328 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7329 $as_echo_n "checking for $ac_word... " >&6; }
7330 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7331 $as_echo_n "(cached) " >&6
7332 else
7333 if test -n "$ac_ct_DSYMUTIL"; then
7334 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7335 else
7336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7337 for as_dir in $PATH
7338 do
7339 IFS=$as_save_IFS
7340 test -z "$as_dir" && as_dir=.
7341 for ac_exec_ext in '' $ac_executable_extensions; do
7342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7343 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7344 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7345 break 2
7346 fi
7347 done
7348 done
7349 IFS=$as_save_IFS
7350
7351 fi
7352 fi
7353 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7354 if test -n "$ac_ct_DSYMUTIL"; then
7355 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7356 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7357 else
7358 { $as_echo "$as_me:$LINENO: result: no" >&5
7359 $as_echo "no" >&6; }
7360 fi
7361
7362 if test "x$ac_ct_DSYMUTIL" = x; then
7363 DSYMUTIL=":"
7364 else
7365 case $cross_compiling:$ac_tool_warned in
7366 yes:)
7367 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7368 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7369 ac_tool_warned=yes ;;
7370 esac
7371 DSYMUTIL=$ac_ct_DSYMUTIL
7372 fi
7373 else
7374 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7375 fi
7376
7377 if test -n "$ac_tool_prefix"; then
7378 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7379 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7380 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7381 $as_echo_n "checking for $ac_word... " >&6; }
7382 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7383 $as_echo_n "(cached) " >&6
7384 else
7385 if test -n "$NMEDIT"; then
7386 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7387 else
7388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7389 for as_dir in $PATH
7390 do
7391 IFS=$as_save_IFS
7392 test -z "$as_dir" && as_dir=.
7393 for ac_exec_ext in '' $ac_executable_extensions; do
7394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7395 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7396 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7397 break 2
7398 fi
7399 done
7400 done
7401 IFS=$as_save_IFS
7402
7403 fi
7404 fi
7405 NMEDIT=$ac_cv_prog_NMEDIT
7406 if test -n "$NMEDIT"; then
7407 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7408 $as_echo "$NMEDIT" >&6; }
7409 else
7410 { $as_echo "$as_me:$LINENO: result: no" >&5
7411 $as_echo "no" >&6; }
7412 fi
7413
7414
7415 fi
7416 if test -z "$ac_cv_prog_NMEDIT"; then
7417 ac_ct_NMEDIT=$NMEDIT
7418 # Extract the first word of "nmedit", so it can be a program name with args.
7419 set dummy nmedit; ac_word=$2
7420 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7421 $as_echo_n "checking for $ac_word... " >&6; }
7422 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7423 $as_echo_n "(cached) " >&6
7424 else
7425 if test -n "$ac_ct_NMEDIT"; then
7426 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7427 else
7428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7429 for as_dir in $PATH
7430 do
7431 IFS=$as_save_IFS
7432 test -z "$as_dir" && as_dir=.
7433 for ac_exec_ext in '' $ac_executable_extensions; do
7434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7435 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7436 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7437 break 2
7438 fi
7439 done
7440 done
7441 IFS=$as_save_IFS
7442
7443 fi
7444 fi
7445 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7446 if test -n "$ac_ct_NMEDIT"; then
7447 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7448 $as_echo "$ac_ct_NMEDIT" >&6; }
7449 else
7450 { $as_echo "$as_me:$LINENO: result: no" >&5
7451 $as_echo "no" >&6; }
7452 fi
7453
7454 if test "x$ac_ct_NMEDIT" = x; then
7455 NMEDIT=":"
7456 else
7457 case $cross_compiling:$ac_tool_warned in
7458 yes:)
7459 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7460 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7461 ac_tool_warned=yes ;;
7462 esac
7463 NMEDIT=$ac_ct_NMEDIT
7464 fi
7465 else
7466 NMEDIT="$ac_cv_prog_NMEDIT"
7467 fi
7468
7469
7470 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7471 $as_echo_n "checking for -single_module linker flag... " >&6; }
7472 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7473 $as_echo_n "(cached) " >&6
7474 else
7475 lt_cv_apple_cc_single_mod=no
7476 if test -z "${LT_MULTI_MODULE}"; then
7477 # By default we will add the -single_module flag. You can override
7478 # by either setting the environment variable LT_MULTI_MODULE
7479 # non-empty at configure time, or by adding -multi_module to the
7480 # link flags.
7481 echo "int foo(void){return 1;}" > conftest.c
7482 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7483 -dynamiclib ${wl}-single_module conftest.c
7484 if test -f libconftest.dylib; then
7485 lt_cv_apple_cc_single_mod=yes
7486 rm -rf libconftest.dylib*
7487 fi
7488 rm conftest.c
7489 fi
7490 fi
7491 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7492 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7493 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7494 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7495 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7496 $as_echo_n "(cached) " >&6
7497 else
7498 lt_cv_ld_exported_symbols_list=no
7499 save_LDFLAGS=$LDFLAGS
7500 echo "_main" > conftest.sym
7501 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7502 cat >conftest.$ac_ext <<_ACEOF
7503 /* confdefs.h. */
7504 _ACEOF
7505 cat confdefs.h >>conftest.$ac_ext
7506 cat >>conftest.$ac_ext <<_ACEOF
7507 /* end confdefs.h. */
7508
7509 int
7510 main ()
7511 {
7512
7513 ;
7514 return 0;
7515 }
7516 _ACEOF
7517 rm -f conftest.$ac_objext conftest$ac_exeext
7518 if { (ac_try="$ac_link"
7519 case "(($ac_try" in
7520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7521 *) ac_try_echo=$ac_try;;
7522 esac
7523 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7524 $as_echo "$ac_try_echo") >&5
7525 (eval "$ac_link") 2>conftest.er1
7526 ac_status=$?
7527 grep -v '^ *+' conftest.er1 >conftest.err
7528 rm -f conftest.er1
7529 cat conftest.err >&5
7530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7531 (exit $ac_status); } && {
7532 test -z "$ac_c_werror_flag" ||
7533 test ! -s conftest.err
7534 } && test -s conftest$ac_exeext && {
7535 test "$cross_compiling" = yes ||
7536 $as_test_x conftest$ac_exeext
7537 }; then
7538 lt_cv_ld_exported_symbols_list=yes
7539 else
7540 $as_echo "$as_me: failed program was:" >&5
7541 sed 's/^/| /' conftest.$ac_ext >&5
7542
7543 lt_cv_ld_exported_symbols_list=no
7544 fi
7545
7546 rm -rf conftest.dSYM
7547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7548 conftest$ac_exeext conftest.$ac_ext
7549 LDFLAGS="$save_LDFLAGS"
7550
7551 fi
7552 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7553 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7554 case $host_os in
7555 rhapsody* | darwin1.[0123])
7556 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7557 darwin1.*)
7558 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7559 darwin*)
7560 # if running on 10.5 or later, the deployment target defaults
7561 # to the OS version, if on x86, and 10.4, the deployment
7562 # target defaults to 10.4. Don't you love it?
7563 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7564 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7565 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7566 10.[012]*)
7567 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7568 10.*)
7569 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7570 esac
7571 ;;
7572 esac
7573 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7574 _lt_dar_single_mod='$single_module'
7575 fi
7576 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7577 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7578 else
7579 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7580 fi
7581 if test "$DSYMUTIL" != ":"; then
7582 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7583 else
7584 _lt_dsymutil=
7585 fi
7586 ;;
7587 esac
7588
7589
7590 enable_dlopen=no
7591 enable_win32_dll=no
7592
7593 # Check whether --enable-libtool-lock was given.
7594 if test "${enable_libtool_lock+set}" = set; then
7595 enableval=$enable_libtool_lock;
7596 fi
7597
7598 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7599
7600
7601 # Check whether --with-pic was given.
7602 if test "${with_pic+set}" = set; then
7603 withval=$with_pic; pic_mode="$withval"
7604 else
7605 pic_mode=default
7606 fi
7607
7608 test -z "$pic_mode" && pic_mode=default
7609
7610 # Use C for the default configuration in the libtool script
7611 tagname=
7612 lt_save_CC="$CC"
7613 ac_ext=c
7614 ac_cpp='$CPP $CPPFLAGS'
7615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7618
7619
7620 # Source file extension for C test sources.
7621 ac_ext=c
7622
7623 # Object file extension for compiled C test sources.
7624 objext=o
7625 objext=$objext
7626
7627 # Code to be used in simple compile tests
7628 lt_simple_compile_test_code="int some_variable = 0;"
7629
7630 # Code to be used in simple link tests
7631 lt_simple_link_test_code='int main(){return(0);}'
7632
7633
7634 # If no C compiler was specified, use CC.
7635 LTCC=${LTCC-"$CC"}
7636
7637 # If no C compiler flags were specified, use CFLAGS.
7638 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7639
7640 # Allow CC to be a program name with arguments.
7641 compiler=$CC
7642
7643
7644 # save warnings/boilerplate of simple test code
7645 ac_outfile=conftest.$ac_objext
7646 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7647 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7648 _lt_compiler_boilerplate=`cat conftest.err`
7649 $rm conftest*
7650
7651 ac_outfile=conftest.$ac_objext
7652 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7653 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7654 _lt_linker_boilerplate=`cat conftest.err`
7655 $rm -r conftest*
7656
7657
7658
7659 lt_prog_compiler_no_builtin_flag=
7660
7661 if test "$GCC" = yes; then
7662 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7663
7664
7665 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7666 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7667 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7668 $as_echo_n "(cached) " >&6
7669 else
7670 lt_cv_prog_compiler_rtti_exceptions=no
7671 ac_outfile=conftest.$ac_objext
7672 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7673 lt_compiler_flag="-fno-rtti -fno-exceptions"
7674 # Insert the option either (1) after the last *FLAGS variable, or
7675 # (2) before a word containing "conftest.", or (3) at the end.
7676 # Note that $ac_compile itself does not contain backslashes and begins
7677 # with a dollar sign (not a hyphen), so the echo should work correctly.
7678 # The option is referenced via a variable to avoid confusing sed.
7679 lt_compile=`echo "$ac_compile" | $SED \
7680 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7681 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7682 -e 's:$: $lt_compiler_flag:'`
7683 (eval echo "\"\$as_me:7683: $lt_compile\"" >&5)
7684 (eval "$lt_compile" 2>conftest.err)
7685 ac_status=$?
7686 cat conftest.err >&5
7687 echo "$as_me:7687: \$? = $ac_status" >&5
7688 if (exit $ac_status) && test -s "$ac_outfile"; then
7689 # The compiler can only warn and ignore the option if not recognized
7690 # So say no if there are warnings other than the usual output.
7691 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7692 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7693 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7694 lt_cv_prog_compiler_rtti_exceptions=yes
7695 fi
7696 fi
7697 $rm conftest*
7698
7699 fi
7700 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7701 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7702
7703 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7704 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7705 else
7706 :
7707 fi
7708
7709 fi
7710
7711 lt_prog_compiler_wl=
7712 lt_prog_compiler_pic=
7713 lt_prog_compiler_static=
7714
7715 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7716 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7717
7718 if test "$GCC" = yes; then
7719 lt_prog_compiler_wl='-Wl,'
7720 lt_prog_compiler_static='-static'
7721
7722 case $host_os in
7723 aix*)
7724 # All AIX code is PIC.
7725 if test "$host_cpu" = ia64; then
7726 # AIX 5 now supports IA64 processor
7727 lt_prog_compiler_static='-Bstatic'
7728 fi
7729 ;;
7730
7731 amigaos*)
7732 # FIXME: we need at least 68020 code to build shared libraries, but
7733 # adding the `-m68020' flag to GCC prevents building anything better,
7734 # like `-m68040'.
7735 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7736 ;;
7737
7738 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7739 # PIC is the default for these OSes.
7740 ;;
7741
7742 mingw* | cygwin* | pw32* | os2*)
7743 # This hack is so that the source file can tell whether it is being
7744 # built for inclusion in a dll (and should export symbols for example).
7745 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7746 # (--disable-auto-import) libraries
7747 lt_prog_compiler_pic='-DDLL_EXPORT'
7748 ;;
7749
7750 darwin* | rhapsody*)
7751 # PIC is the default on this platform
7752 # Common symbols not allowed in MH_DYLIB files
7753 lt_prog_compiler_pic='-fno-common'
7754 ;;
7755
7756 interix[3-9]*)
7757 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7758 # Instead, we relocate shared libraries at runtime.
7759 ;;
7760
7761 msdosdjgpp*)
7762 # Just because we use GCC doesn't mean we suddenly get shared libraries
7763 # on systems that don't support them.
7764 lt_prog_compiler_can_build_shared=no
7765 enable_shared=no
7766 ;;
7767
7768 sysv4*MP*)
7769 if test -d /usr/nec; then
7770 lt_prog_compiler_pic=-Kconform_pic
7771 fi
7772 ;;
7773
7774 hpux*)
7775 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7776 # not for PA HP-UX.
7777 case $host_cpu in
7778 hppa*64*|ia64*)
7779 # +Z the default
7780 ;;
7781 *)
7782 lt_prog_compiler_pic='-fPIC'
7783 ;;
7784 esac
7785 ;;
7786
7787 *)
7788 lt_prog_compiler_pic='-fPIC'
7789 ;;
7790 esac
7791 else
7792 # PORTME Check for flag to pass linker flags through the system compiler.
7793 case $host_os in
7794 aix*)
7795 lt_prog_compiler_wl='-Wl,'
7796 if test "$host_cpu" = ia64; then
7797 # AIX 5 now supports IA64 processor
7798 lt_prog_compiler_static='-Bstatic'
7799 else
7800 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7801 fi
7802 ;;
7803 darwin*)
7804 # PIC is the default on this platform
7805 # Common symbols not allowed in MH_DYLIB files
7806 case $cc_basename in
7807 xlc*)
7808 lt_prog_compiler_pic='-qnocommon'
7809 lt_prog_compiler_wl='-Wl,'
7810 ;;
7811 esac
7812 ;;
7813
7814 mingw* | cygwin* | pw32* | os2*)
7815 # This hack is so that the source file can tell whether it is being
7816 # built for inclusion in a dll (and should export symbols for example).
7817 lt_prog_compiler_pic='-DDLL_EXPORT'
7818 ;;
7819
7820 hpux9* | hpux10* | hpux11*)
7821 lt_prog_compiler_wl='-Wl,'
7822 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7823 # not for PA HP-UX.
7824 case $host_cpu in
7825 hppa*64*|ia64*)
7826 # +Z the default
7827 ;;
7828 *)
7829 lt_prog_compiler_pic='+Z'
7830 ;;
7831 esac
7832 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7833 lt_prog_compiler_static='${wl}-a ${wl}archive'
7834 ;;
7835
7836 irix5* | irix6* | nonstopux*)
7837 lt_prog_compiler_wl='-Wl,'
7838 # PIC (with -KPIC) is the default.
7839 lt_prog_compiler_static='-non_shared'
7840 ;;
7841
7842 newsos6)
7843 lt_prog_compiler_pic='-KPIC'
7844 lt_prog_compiler_static='-Bstatic'
7845 ;;
7846
7847 linux* | k*bsd*-gnu)
7848 case $cc_basename in
7849 icc* | ecc*)
7850 lt_prog_compiler_wl='-Wl,'
7851 lt_prog_compiler_pic='-KPIC'
7852 lt_prog_compiler_static='-static'
7853 ;;
7854 pgcc* | pgf77* | pgf90* | pgf95*)
7855 # Portland Group compilers (*not* the Pentium gcc compiler,
7856 # which looks to be a dead project)
7857 lt_prog_compiler_wl='-Wl,'
7858 lt_prog_compiler_pic='-fpic'
7859 lt_prog_compiler_static='-Bstatic'
7860 ;;
7861 ccc*)
7862 lt_prog_compiler_wl='-Wl,'
7863 # All Alpha code is PIC.
7864 lt_prog_compiler_static='-non_shared'
7865 ;;
7866 *)
7867 case `$CC -V 2>&1 | sed 5q` in
7868 *Sun\ C*)
7869 # Sun C 5.9
7870 lt_prog_compiler_pic='-KPIC'
7871 lt_prog_compiler_static='-Bstatic'
7872 lt_prog_compiler_wl='-Wl,'
7873 ;;
7874 *Sun\ F*)
7875 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7876 lt_prog_compiler_pic='-KPIC'
7877 lt_prog_compiler_static='-Bstatic'
7878 lt_prog_compiler_wl=''
7879 ;;
7880 esac
7881 ;;
7882 esac
7883 ;;
7884
7885 osf3* | osf4* | osf5*)
7886 lt_prog_compiler_wl='-Wl,'
7887 # All OSF/1 code is PIC.
7888 lt_prog_compiler_static='-non_shared'
7889 ;;
7890
7891 rdos*)
7892 lt_prog_compiler_static='-non_shared'
7893 ;;
7894
7895 solaris*)
7896 lt_prog_compiler_pic='-KPIC'
7897 lt_prog_compiler_static='-Bstatic'
7898 case $cc_basename in
7899 f77* | f90* | f95*)
7900 lt_prog_compiler_wl='-Qoption ld ';;
7901 *)
7902 lt_prog_compiler_wl='-Wl,';;
7903 esac
7904 ;;
7905
7906 sunos4*)
7907 lt_prog_compiler_wl='-Qoption ld '
7908 lt_prog_compiler_pic='-PIC'
7909 lt_prog_compiler_static='-Bstatic'
7910 ;;
7911
7912 sysv4 | sysv4.2uw2* | sysv4.3*)
7913 lt_prog_compiler_wl='-Wl,'
7914 lt_prog_compiler_pic='-KPIC'
7915 lt_prog_compiler_static='-Bstatic'
7916 ;;
7917
7918 sysv4*MP*)
7919 if test -d /usr/nec ;then
7920 lt_prog_compiler_pic='-Kconform_pic'
7921 lt_prog_compiler_static='-Bstatic'
7922 fi
7923 ;;
7924
7925 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7926 lt_prog_compiler_wl='-Wl,'
7927 lt_prog_compiler_pic='-KPIC'
7928 lt_prog_compiler_static='-Bstatic'
7929 ;;
7930
7931 unicos*)
7932 lt_prog_compiler_wl='-Wl,'
7933 lt_prog_compiler_can_build_shared=no
7934 ;;
7935
7936 uts4*)
7937 lt_prog_compiler_pic='-pic'
7938 lt_prog_compiler_static='-Bstatic'
7939 ;;
7940
7941 *)
7942 lt_prog_compiler_can_build_shared=no
7943 ;;
7944 esac
7945 fi
7946
7947 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7948 $as_echo "$lt_prog_compiler_pic" >&6; }
7949
7950 #
7951 # Check to make sure the PIC flag actually works.
7952 #
7953 if test -n "$lt_prog_compiler_pic"; then
7954
7955 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7956 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7957 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7958 $as_echo_n "(cached) " >&6
7959 else
7960 lt_cv_prog_compiler_pic_works=no
7961 ac_outfile=conftest.$ac_objext
7962 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7963 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7964 # Insert the option either (1) after the last *FLAGS variable, or
7965 # (2) before a word containing "conftest.", or (3) at the end.
7966 # Note that $ac_compile itself does not contain backslashes and begins
7967 # with a dollar sign (not a hyphen), so the echo should work correctly.
7968 # The option is referenced via a variable to avoid confusing sed.
7969 lt_compile=`echo "$ac_compile" | $SED \
7970 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7971 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7972 -e 's:$: $lt_compiler_flag:'`
7973 (eval echo "\"\$as_me:7973: $lt_compile\"" >&5)
7974 (eval "$lt_compile" 2>conftest.err)
7975 ac_status=$?
7976 cat conftest.err >&5
7977 echo "$as_me:7977: \$? = $ac_status" >&5
7978 if (exit $ac_status) && test -s "$ac_outfile"; then
7979 # The compiler can only warn and ignore the option if not recognized
7980 # So say no if there are warnings other than the usual output.
7981 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7982 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7983 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7984 lt_cv_prog_compiler_pic_works=yes
7985 fi
7986 fi
7987 $rm conftest*
7988
7989 fi
7990 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7991 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7992
7993 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7994 case $lt_prog_compiler_pic in
7995 "" | " "*) ;;
7996 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7997 esac
7998 else
7999 lt_prog_compiler_pic=
8000 lt_prog_compiler_can_build_shared=no
8001 fi
8002
8003 fi
8004 case $host_os in
8005 # For platforms which do not support PIC, -DPIC is meaningless:
8006 *djgpp*)
8007 lt_prog_compiler_pic=
8008 ;;
8009 *)
8010 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8011 ;;
8012 esac
8013
8014 #
8015 # Check to make sure the static flag actually works.
8016 #
8017 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8018 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8019 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8020 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8021 $as_echo_n "(cached) " >&6
8022 else
8023 lt_cv_prog_compiler_static_works=no
8024 save_LDFLAGS="$LDFLAGS"
8025 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8026 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8027 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8028 # The linker can only warn and ignore the option if not recognized
8029 # So say no if there are warnings
8030 if test -s conftest.err; then
8031 # Append any errors to the config.log.
8032 cat conftest.err 1>&5
8033 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8034 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8035 if diff conftest.exp conftest.er2 >/dev/null; then
8036 lt_cv_prog_compiler_static_works=yes
8037 fi
8038 else
8039 lt_cv_prog_compiler_static_works=yes
8040 fi
8041 fi
8042 $rm -r conftest*
8043 LDFLAGS="$save_LDFLAGS"
8044
8045 fi
8046 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8047 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8048
8049 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8050 :
8051 else
8052 lt_prog_compiler_static=
8053 fi
8054
8055
8056 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8057 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8058 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8059 $as_echo_n "(cached) " >&6
8060 else
8061 lt_cv_prog_compiler_c_o=no
8062 $rm -r conftest 2>/dev/null
8063 mkdir conftest
8064 cd conftest
8065 mkdir out
8066 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8067
8068 lt_compiler_flag="-o out/conftest2.$ac_objext"
8069 # Insert the option either (1) after the last *FLAGS variable, or
8070 # (2) before a word containing "conftest.", or (3) at the end.
8071 # Note that $ac_compile itself does not contain backslashes and begins
8072 # with a dollar sign (not a hyphen), so the echo should work correctly.
8073 lt_compile=`echo "$ac_compile" | $SED \
8074 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8075 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8076 -e 's:$: $lt_compiler_flag:'`
8077 (eval echo "\"\$as_me:8077: $lt_compile\"" >&5)
8078 (eval "$lt_compile" 2>out/conftest.err)
8079 ac_status=$?
8080 cat out/conftest.err >&5
8081 echo "$as_me:8081: \$? = $ac_status" >&5
8082 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8083 then
8084 # The compiler can only warn and ignore the option if not recognized
8085 # So say no if there are warnings
8086 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8087 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8088 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8089 lt_cv_prog_compiler_c_o=yes
8090 fi
8091 fi
8092 chmod u+w . 2>&5
8093 $rm conftest*
8094 # SGI C++ compiler will create directory out/ii_files/ for
8095 # template instantiation
8096 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8097 $rm out/* && rmdir out
8098 cd ..
8099 rmdir conftest
8100 $rm conftest*
8101
8102 fi
8103 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8104 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8105
8106
8107 hard_links="nottested"
8108 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8109 # do not overwrite the value of need_locks provided by the user
8110 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8111 $as_echo_n "checking if we can lock with hard links... " >&6; }
8112 hard_links=yes
8113 $rm conftest*
8114 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8115 touch conftest.a
8116 ln conftest.a conftest.b 2>&5 || hard_links=no
8117 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8118 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8119 $as_echo "$hard_links" >&6; }
8120 if test "$hard_links" = no; then
8121 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8122 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8123 need_locks=warn
8124 fi
8125 else
8126 need_locks=no
8127 fi
8128
8129 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8130 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8131
8132 runpath_var=
8133 allow_undefined_flag=
8134 enable_shared_with_static_runtimes=no
8135 archive_cmds=
8136 archive_expsym_cmds=
8137 old_archive_From_new_cmds=
8138 old_archive_from_expsyms_cmds=
8139 export_dynamic_flag_spec=
8140 whole_archive_flag_spec=
8141 thread_safe_flag_spec=
8142 hardcode_libdir_flag_spec=
8143 hardcode_libdir_flag_spec_ld=
8144 hardcode_libdir_separator=
8145 hardcode_direct=no
8146 hardcode_minus_L=no
8147 hardcode_shlibpath_var=unsupported
8148 link_all_deplibs=unknown
8149 hardcode_automatic=no
8150 module_cmds=
8151 module_expsym_cmds=
8152 always_export_symbols=no
8153 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8154 # include_expsyms should be a list of space-separated symbols to be *always*
8155 # included in the symbol list
8156 include_expsyms=
8157 # exclude_expsyms can be an extended regexp of symbols to exclude
8158 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8159 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8160 # as well as any symbol that contains `d'.
8161 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8162 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8163 # platforms (ab)use it in PIC code, but their linkers get confused if
8164 # the symbol is explicitly referenced. Since portable code cannot
8165 # rely on this symbol name, it's probably fine to never include it in
8166 # preloaded symbol tables.
8167 # Exclude shared library initialization/finalization symbols.
8168 extract_expsyms_cmds=
8169 # Just being paranoid about ensuring that cc_basename is set.
8170 for cc_temp in $compiler""; do
8171 case $cc_temp in
8172 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8173 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8174 \-*) ;;
8175 *) break;;
8176 esac
8177 done
8178 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8179
8180 case $host_os in
8181 cygwin* | mingw* | pw32*)
8182 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8183 # When not using gcc, we currently assume that we are using
8184 # Microsoft Visual C++.
8185 if test "$GCC" != yes; then
8186 with_gnu_ld=no
8187 fi
8188 ;;
8189 interix*)
8190 # we just hope/assume this is gcc and not c89 (= MSVC++)
8191 with_gnu_ld=yes
8192 ;;
8193 openbsd*)
8194 with_gnu_ld=no
8195 ;;
8196 esac
8197
8198 ld_shlibs=yes
8199 if test "$with_gnu_ld" = yes; then
8200 # If archive_cmds runs LD, not CC, wlarc should be empty
8201 wlarc='${wl}'
8202
8203 # Set some defaults for GNU ld with shared library support. These
8204 # are reset later if shared libraries are not supported. Putting them
8205 # here allows them to be overridden if necessary.
8206 runpath_var=LD_RUN_PATH
8207 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8208 export_dynamic_flag_spec='${wl}--export-dynamic'
8209 # ancient GNU ld didn't support --whole-archive et. al.
8210 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8211 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8212 else
8213 whole_archive_flag_spec=
8214 fi
8215 supports_anon_versioning=no
8216 case `$LD -v 2>/dev/null` in
8217 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8218 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8219 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8220 *\ 2.11.*) ;; # other 2.11 versions
8221 *) supports_anon_versioning=yes ;;
8222 esac
8223
8224 # See if GNU ld supports shared libraries.
8225 case $host_os in
8226 aix[3-9]*)
8227 # On AIX/PPC, the GNU linker is very broken
8228 if test "$host_cpu" != ia64; then
8229 ld_shlibs=no
8230 cat <<EOF 1>&2
8231
8232 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8233 *** to be unable to reliably create shared libraries on AIX.
8234 *** Therefore, libtool is disabling shared libraries support. If you
8235 *** really care for shared libraries, you may want to modify your PATH
8236 *** so that a non-GNU linker is found, and then restart.
8237
8238 EOF
8239 fi
8240 ;;
8241
8242 amigaos*)
8243 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)'
8244 hardcode_libdir_flag_spec='-L$libdir'
8245 hardcode_minus_L=yes
8246
8247 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
8248 # that the semantics of dynamic libraries on AmigaOS, at least up
8249 # to version 4, is to share data among multiple programs linked
8250 # with the same dynamic library. Since this doesn't match the
8251 # behavior of shared libraries on other platforms, we can't use
8252 # them.
8253 ld_shlibs=no
8254 ;;
8255
8256 beos*)
8257 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8258 allow_undefined_flag=unsupported
8259 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
8260 # support --undefined. This deserves some investigation. FIXME
8261 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8262 else
8263 ld_shlibs=no
8264 fi
8265 ;;
8266
8267 cygwin* | mingw* | pw32*)
8268 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8269 # as there is no search path for DLLs.
8270 hardcode_libdir_flag_spec='-L$libdir'
8271 allow_undefined_flag=unsupported
8272 always_export_symbols=no
8273 enable_shared_with_static_runtimes=yes
8274 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8275
8276 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8277 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8278 # If the export-symbols file already is a .def file (1st line
8279 # is EXPORTS), use it as is; otherwise, prepend...
8280 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8281 cp $export_symbols $output_objdir/$soname.def;
8282 else
8283 echo EXPORTS > $output_objdir/$soname.def;
8284 cat $export_symbols >> $output_objdir/$soname.def;
8285 fi~
8286 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8287 else
8288 ld_shlibs=no
8289 fi
8290 ;;
8291
8292 interix[3-9]*)
8293 hardcode_direct=no
8294 hardcode_shlibpath_var=no
8295 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8296 export_dynamic_flag_spec='${wl}-E'
8297 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8298 # Instead, shared libraries are loaded at an image base (0x10000000 by
8299 # default) and relocated if they conflict, which is a slow very memory
8300 # consuming and fragmenting process. To avoid this, we pick a random,
8301 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8302 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8303 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8304 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'
8305 ;;
8306
8307 gnu* | linux* | k*bsd*-gnu)
8308 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8309 tmp_addflag=
8310 case $cc_basename,$host_cpu in
8311 pgcc*) # Portland Group C compiler
8312 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'
8313 tmp_addflag=' $pic_flag'
8314 ;;
8315 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8316 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'
8317 tmp_addflag=' $pic_flag -Mnomain' ;;
8318 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8319 tmp_addflag=' -i_dynamic' ;;
8320 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8321 tmp_addflag=' -i_dynamic -nofor_main' ;;
8322 ifc* | ifort*) # Intel Fortran compiler
8323 tmp_addflag=' -nofor_main' ;;
8324 esac
8325 case `$CC -V 2>&1 | sed 5q` in
8326 *Sun\ C*) # Sun C 5.9
8327 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8328 tmp_sharedflag='-G' ;;
8329 *Sun\ F*) # Sun Fortran 8.3
8330 tmp_sharedflag='-G' ;;
8331 *)
8332 tmp_sharedflag='-shared' ;;
8333 esac
8334 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8335
8336 if test $supports_anon_versioning = yes; then
8337 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8338 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8339 $echo "local: *; };" >> $output_objdir/$libname.ver~
8340 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8341 fi
8342 else
8343 ld_shlibs=no
8344 fi
8345 ;;
8346
8347 netbsd*)
8348 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8349 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8350 wlarc=
8351 else
8352 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8353 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8354 fi
8355 ;;
8356
8357 solaris*)
8358 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8359 ld_shlibs=no
8360 cat <<EOF 1>&2
8361
8362 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8363 *** create shared libraries on Solaris systems. Therefore, libtool
8364 *** is disabling shared libraries support. We urge you to upgrade GNU
8365 *** binutils to release 2.9.1 or newer. Another option is to modify
8366 *** your PATH or compiler configuration so that the native linker is
8367 *** used, and then restart.
8368
8369 EOF
8370 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8371 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8372 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8373 else
8374 ld_shlibs=no
8375 fi
8376 ;;
8377
8378 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8379 case `$LD -v 2>&1` in
8380 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8381 ld_shlibs=no
8382 cat <<_LT_EOF 1>&2
8383
8384 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8385 *** reliably create shared libraries on SCO systems. Therefore, libtool
8386 *** is disabling shared libraries support. We urge you to upgrade GNU
8387 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8388 *** your PATH or compiler configuration so that the native linker is
8389 *** used, and then restart.
8390
8391 _LT_EOF
8392 ;;
8393 *)
8394 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8395 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8396 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8397 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8398 else
8399 ld_shlibs=no
8400 fi
8401 ;;
8402 esac
8403 ;;
8404
8405 sunos4*)
8406 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8407 wlarc=
8408 hardcode_direct=yes
8409 hardcode_shlibpath_var=no
8410 ;;
8411
8412 *)
8413 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8414 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8415 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8416 else
8417 ld_shlibs=no
8418 fi
8419 ;;
8420 esac
8421
8422 if test "$ld_shlibs" = no; then
8423 runpath_var=
8424 hardcode_libdir_flag_spec=
8425 export_dynamic_flag_spec=
8426 whole_archive_flag_spec=
8427 fi
8428 else
8429 # PORTME fill in a description of your system's linker (not GNU ld)
8430 case $host_os in
8431 aix3*)
8432 allow_undefined_flag=unsupported
8433 always_export_symbols=yes
8434 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'
8435 # Note: this linker hardcodes the directories in LIBPATH if there
8436 # are no directories specified by -L.
8437 hardcode_minus_L=yes
8438 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8439 # Neither direct hardcoding nor static linking is supported with a
8440 # broken collect2.
8441 hardcode_direct=unsupported
8442 fi
8443 ;;
8444
8445 aix[4-9]*)
8446 if test "$host_cpu" = ia64; then
8447 # On IA64, the linker does run time linking by default, so we don't
8448 # have to do anything special.
8449 aix_use_runtimelinking=no
8450 exp_sym_flag='-Bexport'
8451 no_entry_flag=""
8452 else
8453 # If we're using GNU nm, then we don't want the "-C" option.
8454 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8455 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8456 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'
8457 else
8458 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'
8459 fi
8460 aix_use_runtimelinking=no
8461
8462 # Test if we are trying to use run time linking or normal
8463 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8464 # need to do runtime linking.
8465 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8466 for ld_flag in $LDFLAGS; do
8467 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8468 aix_use_runtimelinking=yes
8469 break
8470 fi
8471 done
8472 ;;
8473 esac
8474
8475 exp_sym_flag='-bexport'
8476 no_entry_flag='-bnoentry'
8477 fi
8478
8479 # When large executables or shared objects are built, AIX ld can
8480 # have problems creating the table of contents. If linking a library
8481 # or program results in "error TOC overflow" add -mminimal-toc to
8482 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8483 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8484
8485 archive_cmds=''
8486 hardcode_direct=yes
8487 hardcode_libdir_separator=':'
8488 link_all_deplibs=yes
8489
8490 if test "$GCC" = yes; then
8491 case $host_os in aix4.[012]|aix4.[012].*)
8492 # We only want to do this on AIX 4.2 and lower, the check
8493 # below for broken collect2 doesn't work under 4.3+
8494 collect2name=`${CC} -print-prog-name=collect2`
8495 if test -f "$collect2name" && \
8496 strings "$collect2name" | grep resolve_lib_name >/dev/null
8497 then
8498 # We have reworked collect2
8499 :
8500 else
8501 # We have old collect2
8502 hardcode_direct=unsupported
8503 # It fails to find uninstalled libraries when the uninstalled
8504 # path is not listed in the libpath. Setting hardcode_minus_L
8505 # to unsupported forces relinking
8506 hardcode_minus_L=yes
8507 hardcode_libdir_flag_spec='-L$libdir'
8508 hardcode_libdir_separator=
8509 fi
8510 ;;
8511 esac
8512 shared_flag='-shared'
8513 if test "$aix_use_runtimelinking" = yes; then
8514 shared_flag="$shared_flag "'${wl}-G'
8515 fi
8516 else
8517 # not using gcc
8518 if test "$host_cpu" = ia64; then
8519 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8520 # chokes on -Wl,-G. The following line is correct:
8521 shared_flag='-G'
8522 else
8523 if test "$aix_use_runtimelinking" = yes; then
8524 shared_flag='${wl}-G'
8525 else
8526 shared_flag='${wl}-bM:SRE'
8527 fi
8528 fi
8529 fi
8530
8531 # It seems that -bexpall does not export symbols beginning with
8532 # underscore (_), so it is better to generate a list of symbols to export.
8533 always_export_symbols=yes
8534 if test "$aix_use_runtimelinking" = yes; then
8535 # Warning - without using the other runtime loading flags (-brtl),
8536 # -berok will link without error, but may produce a broken library.
8537 allow_undefined_flag='-berok'
8538 # Determine the default libpath from the value encoded in an empty executable.
8539 cat >conftest.$ac_ext <<_ACEOF
8540 /* confdefs.h. */
8541 _ACEOF
8542 cat confdefs.h >>conftest.$ac_ext
8543 cat >>conftest.$ac_ext <<_ACEOF
8544 /* end confdefs.h. */
8545
8546 int
8547 main ()
8548 {
8549
8550 ;
8551 return 0;
8552 }
8553 _ACEOF
8554 rm -f conftest.$ac_objext conftest$ac_exeext
8555 if { (ac_try="$ac_link"
8556 case "(($ac_try" in
8557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8558 *) ac_try_echo=$ac_try;;
8559 esac
8560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8561 $as_echo "$ac_try_echo") >&5
8562 (eval "$ac_link") 2>conftest.er1
8563 ac_status=$?
8564 grep -v '^ *+' conftest.er1 >conftest.err
8565 rm -f conftest.er1
8566 cat conftest.err >&5
8567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568 (exit $ac_status); } && {
8569 test -z "$ac_c_werror_flag" ||
8570 test ! -s conftest.err
8571 } && test -s conftest$ac_exeext && {
8572 test "$cross_compiling" = yes ||
8573 $as_test_x conftest$ac_exeext
8574 }; then
8575
8576 lt_aix_libpath_sed='
8577 /Import File Strings/,/^$/ {
8578 /^0/ {
8579 s/^0 *\(.*\)$/\1/
8580 p
8581 }
8582 }'
8583 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8584 # Check for a 64-bit object if we didn't find anything.
8585 if test -z "$aix_libpath"; then
8586 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8587 fi
8588 else
8589 $as_echo "$as_me: failed program was:" >&5
8590 sed 's/^/| /' conftest.$ac_ext >&5
8591
8592
8593 fi
8594
8595 rm -rf conftest.dSYM
8596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8597 conftest$ac_exeext conftest.$ac_ext
8598 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8599
8600 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8601 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"
8602 else
8603 if test "$host_cpu" = ia64; then
8604 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8605 allow_undefined_flag="-z nodefs"
8606 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"
8607 else
8608 # Determine the default libpath from the value encoded in an empty executable.
8609 cat >conftest.$ac_ext <<_ACEOF
8610 /* confdefs.h. */
8611 _ACEOF
8612 cat confdefs.h >>conftest.$ac_ext
8613 cat >>conftest.$ac_ext <<_ACEOF
8614 /* end confdefs.h. */
8615
8616 int
8617 main ()
8618 {
8619
8620 ;
8621 return 0;
8622 }
8623 _ACEOF
8624 rm -f conftest.$ac_objext conftest$ac_exeext
8625 if { (ac_try="$ac_link"
8626 case "(($ac_try" in
8627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8628 *) ac_try_echo=$ac_try;;
8629 esac
8630 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8631 $as_echo "$ac_try_echo") >&5
8632 (eval "$ac_link") 2>conftest.er1
8633 ac_status=$?
8634 grep -v '^ *+' conftest.er1 >conftest.err
8635 rm -f conftest.er1
8636 cat conftest.err >&5
8637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638 (exit $ac_status); } && {
8639 test -z "$ac_c_werror_flag" ||
8640 test ! -s conftest.err
8641 } && test -s conftest$ac_exeext && {
8642 test "$cross_compiling" = yes ||
8643 $as_test_x conftest$ac_exeext
8644 }; then
8645
8646 lt_aix_libpath_sed='
8647 /Import File Strings/,/^$/ {
8648 /^0/ {
8649 s/^0 *\(.*\)$/\1/
8650 p
8651 }
8652 }'
8653 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8654 # Check for a 64-bit object if we didn't find anything.
8655 if test -z "$aix_libpath"; then
8656 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8657 fi
8658 else
8659 $as_echo "$as_me: failed program was:" >&5
8660 sed 's/^/| /' conftest.$ac_ext >&5
8661
8662
8663 fi
8664
8665 rm -rf conftest.dSYM
8666 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8667 conftest$ac_exeext conftest.$ac_ext
8668 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8669
8670 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8671 # Warning - without using the other run time loading flags,
8672 # -berok will link without error, but may produce a broken library.
8673 no_undefined_flag=' ${wl}-bernotok'
8674 allow_undefined_flag=' ${wl}-berok'
8675 # Exported symbols can be pulled into shared objects from archives
8676 whole_archive_flag_spec='$convenience'
8677 archive_cmds_need_lc=yes
8678 # This is similar to how AIX traditionally builds its shared libraries.
8679 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'
8680 fi
8681 fi
8682 ;;
8683
8684 amigaos*)
8685 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)'
8686 hardcode_libdir_flag_spec='-L$libdir'
8687 hardcode_minus_L=yes
8688 # see comment about different semantics on the GNU ld section
8689 ld_shlibs=no
8690 ;;
8691
8692 bsdi[45]*)
8693 export_dynamic_flag_spec=-rdynamic
8694 ;;
8695
8696 cygwin* | mingw* | pw32*)
8697 # When not using gcc, we currently assume that we are using
8698 # Microsoft Visual C++.
8699 # hardcode_libdir_flag_spec is actually meaningless, as there is
8700 # no search path for DLLs.
8701 hardcode_libdir_flag_spec=' '
8702 allow_undefined_flag=unsupported
8703 # Tell ltmain to make .lib files, not .a files.
8704 libext=lib
8705 # Tell ltmain to make .dll files, not .so files.
8706 shrext_cmds=".dll"
8707 # FIXME: Setting linknames here is a bad hack.
8708 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8709 # The linker will automatically build a .lib file if we build a DLL.
8710 old_archive_From_new_cmds='true'
8711 # FIXME: Should let the user specify the lib program.
8712 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8713 fix_srcfile_path='`cygpath -w "$srcfile"`'
8714 enable_shared_with_static_runtimes=yes
8715 ;;
8716
8717 darwin* | rhapsody*)
8718 case $host_os in
8719 rhapsody* | darwin1.[012])
8720 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8721 ;;
8722 *) # Darwin 1.3 on
8723 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8724 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8725 else
8726 case ${MACOSX_DEPLOYMENT_TARGET} in
8727 10.[012])
8728 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8729 ;;
8730 10.*)
8731 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8732 ;;
8733 esac
8734 fi
8735 ;;
8736 esac
8737 archive_cmds_need_lc=no
8738 hardcode_direct=no
8739 hardcode_automatic=yes
8740 hardcode_shlibpath_var=unsupported
8741 whole_archive_flag_spec=''
8742 link_all_deplibs=yes
8743 if test "$GCC" = yes ; then
8744 output_verbose_link_cmd='echo'
8745 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8746 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8747 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8748 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8749 else
8750 case $cc_basename in
8751 xlc*)
8752 output_verbose_link_cmd='echo'
8753 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8754 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8755 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8756 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8757 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}'
8758 ;;
8759 *)
8760 ld_shlibs=no
8761 ;;
8762 esac
8763 fi
8764 ;;
8765
8766 dgux*)
8767 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8768 hardcode_libdir_flag_spec='-L$libdir'
8769 hardcode_shlibpath_var=no
8770 ;;
8771
8772 freebsd1*)
8773 ld_shlibs=no
8774 ;;
8775
8776 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8777 # support. Future versions do this automatically, but an explicit c++rt0.o
8778 # does not break anything, and helps significantly (at the cost of a little
8779 # extra space).
8780 freebsd2.2*)
8781 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8782 hardcode_libdir_flag_spec='-R$libdir'
8783 hardcode_direct=yes
8784 hardcode_shlibpath_var=no
8785 ;;
8786
8787 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8788 freebsd2*)
8789 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8790 hardcode_direct=yes
8791 hardcode_minus_L=yes
8792 hardcode_shlibpath_var=no
8793 ;;
8794
8795 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8796 freebsd* | dragonfly*)
8797 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8798 hardcode_libdir_flag_spec='-R$libdir'
8799 hardcode_direct=yes
8800 hardcode_shlibpath_var=no
8801 ;;
8802
8803 hpux9*)
8804 if test "$GCC" = yes; then
8805 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'
8806 else
8807 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'
8808 fi
8809 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8810 hardcode_libdir_separator=:
8811 hardcode_direct=yes
8812
8813 # hardcode_minus_L: Not really in the search PATH,
8814 # but as the default location of the library.
8815 hardcode_minus_L=yes
8816 export_dynamic_flag_spec='${wl}-E'
8817 ;;
8818
8819 hpux10*)
8820 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8821 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8822 else
8823 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8824 fi
8825 if test "$with_gnu_ld" = no; then
8826 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8827 hardcode_libdir_separator=:
8828
8829 hardcode_direct=yes
8830 export_dynamic_flag_spec='${wl}-E'
8831
8832 # hardcode_minus_L: Not really in the search PATH,
8833 # but as the default location of the library.
8834 hardcode_minus_L=yes
8835 fi
8836 ;;
8837
8838 hpux11*)
8839 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8840 case $host_cpu in
8841 hppa*64*)
8842 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8843 ;;
8844 ia64*)
8845 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8846 ;;
8847 *)
8848 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8849 ;;
8850 esac
8851 else
8852 case $host_cpu in
8853 hppa*64*)
8854 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8855 ;;
8856 ia64*)
8857 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8858 ;;
8859 *)
8860 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8861 ;;
8862 esac
8863 fi
8864 if test "$with_gnu_ld" = no; then
8865 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8866 hardcode_libdir_separator=:
8867
8868 case $host_cpu in
8869 hppa*64*|ia64*)
8870 hardcode_libdir_flag_spec_ld='+b $libdir'
8871 hardcode_direct=no
8872 hardcode_shlibpath_var=no
8873 ;;
8874 *)
8875 hardcode_direct=yes
8876 export_dynamic_flag_spec='${wl}-E'
8877
8878 # hardcode_minus_L: Not really in the search PATH,
8879 # but as the default location of the library.
8880 hardcode_minus_L=yes
8881 ;;
8882 esac
8883 fi
8884 ;;
8885
8886 irix5* | irix6* | nonstopux*)
8887 if test "$GCC" = yes; then
8888 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'
8889 else
8890 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'
8891 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8892 fi
8893 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8894 hardcode_libdir_separator=:
8895 link_all_deplibs=yes
8896 ;;
8897
8898 netbsd*)
8899 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8900 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8901 else
8902 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8903 fi
8904 hardcode_libdir_flag_spec='-R$libdir'
8905 hardcode_direct=yes
8906 hardcode_shlibpath_var=no
8907 ;;
8908
8909 newsos6)
8910 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8911 hardcode_direct=yes
8912 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8913 hardcode_libdir_separator=:
8914 hardcode_shlibpath_var=no
8915 ;;
8916
8917 openbsd*)
8918 if test -f /usr/libexec/ld.so; then
8919 hardcode_direct=yes
8920 hardcode_shlibpath_var=no
8921 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8922 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8923 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8924 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8925 export_dynamic_flag_spec='${wl}-E'
8926 else
8927 case $host_os in
8928 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8929 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8930 hardcode_libdir_flag_spec='-R$libdir'
8931 ;;
8932 *)
8933 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8934 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8935 ;;
8936 esac
8937 fi
8938 else
8939 ld_shlibs=no
8940 fi
8941 ;;
8942
8943 os2*)
8944 hardcode_libdir_flag_spec='-L$libdir'
8945 hardcode_minus_L=yes
8946 allow_undefined_flag=unsupported
8947 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'
8948 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8949 ;;
8950
8951 osf3*)
8952 if test "$GCC" = yes; then
8953 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8954 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'
8955 else
8956 allow_undefined_flag=' -expect_unresolved \*'
8957 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'
8958 fi
8959 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8960 hardcode_libdir_separator=:
8961 ;;
8962
8963 osf4* | osf5*) # as osf3* with the addition of -msym flag
8964 if test "$GCC" = yes; then
8965 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8966 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'
8967 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8968 else
8969 allow_undefined_flag=' -expect_unresolved \*'
8970 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'
8971 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8972 $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'
8973
8974 # Both c and cxx compiler support -rpath directly
8975 hardcode_libdir_flag_spec='-rpath $libdir'
8976 fi
8977 hardcode_libdir_separator=:
8978 ;;
8979
8980 solaris*)
8981 no_undefined_flag=' -z text'
8982 if test "$GCC" = yes; then
8983 wlarc='${wl}'
8984 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8985 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8986 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8987 else
8988 wlarc=''
8989 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8990 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8991 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8992 fi
8993 hardcode_libdir_flag_spec='-R$libdir'
8994 hardcode_shlibpath_var=no
8995 case $host_os in
8996 solaris2.[0-5] | solaris2.[0-5].*) ;;
8997 *)
8998 # The compiler driver will combine and reorder linker options,
8999 # but understands `-z linker_flag'. GCC discards it without `$wl',
9000 # but is careful enough not to reorder.
9001 # Supported since Solaris 2.6 (maybe 2.5.1?)
9002 if test "$GCC" = yes; then
9003 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9004 else
9005 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9006 fi
9007 ;;
9008 esac
9009 link_all_deplibs=yes
9010 ;;
9011
9012 sunos4*)
9013 if test "x$host_vendor" = xsequent; then
9014 # Use $CC to link under sequent, because it throws in some extra .o
9015 # files that make .init and .fini sections work.
9016 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9017 else
9018 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9019 fi
9020 hardcode_libdir_flag_spec='-L$libdir'
9021 hardcode_direct=yes
9022 hardcode_minus_L=yes
9023 hardcode_shlibpath_var=no
9024 ;;
9025
9026 sysv4)
9027 case $host_vendor in
9028 sni)
9029 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9030 hardcode_direct=yes # is this really true???
9031 ;;
9032 siemens)
9033 ## LD is ld it makes a PLAMLIB
9034 ## CC just makes a GrossModule.
9035 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9036 reload_cmds='$CC -r -o $output$reload_objs'
9037 hardcode_direct=no
9038 ;;
9039 motorola)
9040 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9041 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9042 ;;
9043 esac
9044 runpath_var='LD_RUN_PATH'
9045 hardcode_shlibpath_var=no
9046 ;;
9047
9048 sysv4.3*)
9049 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9050 hardcode_shlibpath_var=no
9051 export_dynamic_flag_spec='-Bexport'
9052 ;;
9053
9054 sysv4*MP*)
9055 if test -d /usr/nec; then
9056 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9057 hardcode_shlibpath_var=no
9058 runpath_var=LD_RUN_PATH
9059 hardcode_runpath_var=yes
9060 ld_shlibs=yes
9061 fi
9062 ;;
9063
9064 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9065 no_undefined_flag='${wl}-z,text'
9066 archive_cmds_need_lc=no
9067 hardcode_shlibpath_var=no
9068 runpath_var='LD_RUN_PATH'
9069
9070 if test "$GCC" = yes; then
9071 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9072 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9073 else
9074 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9075 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9076 fi
9077 ;;
9078
9079 sysv5* | sco3.2v5* | sco5v6*)
9080 # Note: We can NOT use -z defs as we might desire, because we do not
9081 # link with -lc, and that would cause any symbols used from libc to
9082 # always be unresolved, which means just about no library would
9083 # ever link correctly. If we're not using GNU ld we use -z text
9084 # though, which does catch some bad symbols but isn't as heavy-handed
9085 # as -z defs.
9086 no_undefined_flag='${wl}-z,text'
9087 allow_undefined_flag='${wl}-z,nodefs'
9088 archive_cmds_need_lc=no
9089 hardcode_shlibpath_var=no
9090 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9091 hardcode_libdir_separator=':'
9092 link_all_deplibs=yes
9093 export_dynamic_flag_spec='${wl}-Bexport'
9094 runpath_var='LD_RUN_PATH'
9095
9096 if test "$GCC" = yes; then
9097 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9098 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9099 else
9100 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9101 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9102 fi
9103 ;;
9104
9105 uts4*)
9106 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9107 hardcode_libdir_flag_spec='-L$libdir'
9108 hardcode_shlibpath_var=no
9109 ;;
9110
9111 *)
9112 ld_shlibs=no
9113 ;;
9114 esac
9115 fi
9116
9117 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9118 $as_echo "$ld_shlibs" >&6; }
9119 test "$ld_shlibs" = no && can_build_shared=no
9120
9121 #
9122 # Do we need to explicitly link libc?
9123 #
9124 case "x$archive_cmds_need_lc" in
9125 x|xyes)
9126 # Assume -lc should be added
9127 archive_cmds_need_lc=yes
9128
9129 if test "$enable_shared" = yes && test "$GCC" = yes; then
9130 case $archive_cmds in
9131 *'~'*)
9132 # FIXME: we may have to deal with multi-command sequences.
9133 ;;
9134 '$CC '*)
9135 # Test whether the compiler implicitly links with -lc since on some
9136 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9137 # to ld, don't add -lc before -lgcc.
9138 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9139 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9140 $rm conftest*
9141 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9142
9143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9144 (eval $ac_compile) 2>&5
9145 ac_status=$?
9146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147 (exit $ac_status); } 2>conftest.err; then
9148 soname=conftest
9149 lib=conftest
9150 libobjs=conftest.$ac_objext
9151 deplibs=
9152 wl=$lt_prog_compiler_wl
9153 pic_flag=$lt_prog_compiler_pic
9154 compiler_flags=-v
9155 linker_flags=-v
9156 verstring=
9157 output_objdir=.
9158 libname=conftest
9159 lt_save_allow_undefined_flag=$allow_undefined_flag
9160 allow_undefined_flag=
9161 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9162 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9163 ac_status=$?
9164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165 (exit $ac_status); }
9166 then
9167 archive_cmds_need_lc=no
9168 else
9169 archive_cmds_need_lc=yes
9170 fi
9171 allow_undefined_flag=$lt_save_allow_undefined_flag
9172 else
9173 cat conftest.err 1>&5
9174 fi
9175 $rm conftest*
9176 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9177 $as_echo "$archive_cmds_need_lc" >&6; }
9178 ;;
9179 esac
9180 fi
9181 ;;
9182 esac
9183
9184 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9185 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9186 library_names_spec=
9187 libname_spec='lib$name'
9188 soname_spec=
9189 shrext_cmds=".so"
9190 postinstall_cmds=
9191 postuninstall_cmds=
9192 finish_cmds=
9193 finish_eval=
9194 shlibpath_var=
9195 shlibpath_overrides_runpath=unknown
9196 version_type=none
9197 dynamic_linker="$host_os ld.so"
9198 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9199
9200 if test "$GCC" = yes; then
9201 case $host_os in
9202 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9203 *) lt_awk_arg="/^libraries:/" ;;
9204 esac
9205 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9206 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9207 # if the path contains ";" then we assume it to be the separator
9208 # otherwise default to the standard path separator (i.e. ":") - it is
9209 # assumed that no part of a normal pathname contains ";" but that should
9210 # okay in the real world where ";" in dirpaths is itself problematic.
9211 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9212 else
9213 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9214 fi
9215 # Ok, now we have the path, separated by spaces, we can step through it
9216 # and add multilib dir if necessary.
9217 lt_tmp_lt_search_path_spec=
9218 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9219 for lt_sys_path in $lt_search_path_spec; do
9220 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9221 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9222 else
9223 test -d "$lt_sys_path" && \
9224 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9225 fi
9226 done
9227 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9228 BEGIN {RS=" "; FS="/|\n";} {
9229 lt_foo="";
9230 lt_count=0;
9231 for (lt_i = NF; lt_i > 0; lt_i--) {
9232 if ($lt_i != "" && $lt_i != ".") {
9233 if ($lt_i == "..") {
9234 lt_count++;
9235 } else {
9236 if (lt_count == 0) {
9237 lt_foo="/" $lt_i lt_foo;
9238 } else {
9239 lt_count--;
9240 }
9241 }
9242 }
9243 }
9244 if (lt_foo != "") { lt_freq[lt_foo]++; }
9245 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9246 }'`
9247 sys_lib_search_path_spec=`echo $lt_search_path_spec`
9248 else
9249 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9250 fi
9251 need_lib_prefix=unknown
9252 hardcode_into_libs=no
9253
9254 # when you set need_version to no, make sure it does not cause -set_version
9255 # flags to be left without arguments
9256 need_version=unknown
9257
9258 case $host_os in
9259 aix3*)
9260 version_type=linux
9261 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9262 shlibpath_var=LIBPATH
9263
9264 # AIX 3 has no versioning support, so we append a major version to the name.
9265 soname_spec='${libname}${release}${shared_ext}$major'
9266 ;;
9267
9268 aix[4-9]*)
9269 version_type=linux
9270 need_lib_prefix=no
9271 need_version=no
9272 hardcode_into_libs=yes
9273 if test "$host_cpu" = ia64; then
9274 # AIX 5 supports IA64
9275 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9276 shlibpath_var=LD_LIBRARY_PATH
9277 else
9278 # With GCC up to 2.95.x, collect2 would create an import file
9279 # for dependence libraries. The import file would start with
9280 # the line `#! .'. This would cause the generated library to
9281 # depend on `.', always an invalid library. This was fixed in
9282 # development snapshots of GCC prior to 3.0.
9283 case $host_os in
9284 aix4 | aix4.[01] | aix4.[01].*)
9285 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9286 echo ' yes '
9287 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9288 :
9289 else
9290 can_build_shared=no
9291 fi
9292 ;;
9293 esac
9294 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9295 # soname into executable. Probably we can add versioning support to
9296 # collect2, so additional links can be useful in future.
9297 if test "$aix_use_runtimelinking" = yes; then
9298 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9299 # instead of lib<name>.a to let people know that these are not
9300 # typical AIX shared libraries.
9301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9302 else
9303 # We preserve .a as extension for shared libraries through AIX4.2
9304 # and later when we are not doing run time linking.
9305 library_names_spec='${libname}${release}.a $libname.a'
9306 soname_spec='${libname}${release}${shared_ext}$major'
9307 fi
9308 shlibpath_var=LIBPATH
9309 fi
9310 ;;
9311
9312 amigaos*)
9313 library_names_spec='$libname.ixlibrary $libname.a'
9314 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9315 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'
9316 ;;
9317
9318 beos*)
9319 library_names_spec='${libname}${shared_ext}'
9320 dynamic_linker="$host_os ld.so"
9321 shlibpath_var=LIBRARY_PATH
9322 ;;
9323
9324 bsdi[45]*)
9325 version_type=linux
9326 need_version=no
9327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9328 soname_spec='${libname}${release}${shared_ext}$major'
9329 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9330 shlibpath_var=LD_LIBRARY_PATH
9331 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9332 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9333 # the default ld.so.conf also contains /usr/contrib/lib and
9334 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9335 # libtool to hard-code these into programs
9336 ;;
9337
9338 cygwin* | mingw* | pw32*)
9339 version_type=windows
9340 shrext_cmds=".dll"
9341 need_version=no
9342 need_lib_prefix=no
9343
9344 case $GCC,$host_os in
9345 yes,cygwin* | yes,mingw* | yes,pw32*)
9346 library_names_spec='$libname.dll.a'
9347 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9348 postinstall_cmds='base_file=`basename \${file}`~
9349 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9350 dldir=$destdir/`dirname \$dlpath`~
9351 test -d \$dldir || mkdir -p \$dldir~
9352 $install_prog $dir/$dlname \$dldir/$dlname~
9353 chmod a+x \$dldir/$dlname'
9354 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9355 dlpath=$dir/\$dldll~
9356 $rm \$dlpath'
9357 shlibpath_overrides_runpath=yes
9358
9359 case $host_os in
9360 cygwin*)
9361 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9362 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9363 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9364 ;;
9365 mingw*)
9366 # MinGW DLLs use traditional 'lib' prefix
9367 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9368 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9369 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9370 # It is most probably a Windows format PATH printed by
9371 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9372 # path with ; separators, and with drive letters. We can handle the
9373 # drive letters (cygwin fileutils understands them), so leave them,
9374 # especially as we might pass files found there to a mingw objdump,
9375 # which wouldn't understand a cygwinified path. Ahh.
9376 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9377 else
9378 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9379 fi
9380 ;;
9381 pw32*)
9382 # pw32 DLLs use 'pw' prefix rather than 'lib'
9383 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9384 ;;
9385 esac
9386 ;;
9387
9388 *)
9389 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9390 ;;
9391 esac
9392 dynamic_linker='Win32 ld.exe'
9393 # FIXME: first we should search . and the directory the executable is in
9394 shlibpath_var=PATH
9395 ;;
9396
9397 darwin* | rhapsody*)
9398 dynamic_linker="$host_os dyld"
9399 version_type=darwin
9400 need_lib_prefix=no
9401 need_version=no
9402 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9403 soname_spec='${libname}${release}${major}$shared_ext'
9404 shlibpath_overrides_runpath=yes
9405 shlibpath_var=DYLD_LIBRARY_PATH
9406 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9407
9408 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9409 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9410 ;;
9411
9412 dgux*)
9413 version_type=linux
9414 need_lib_prefix=no
9415 need_version=no
9416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9417 soname_spec='${libname}${release}${shared_ext}$major'
9418 shlibpath_var=LD_LIBRARY_PATH
9419 ;;
9420
9421 freebsd1*)
9422 dynamic_linker=no
9423 ;;
9424
9425 freebsd* | dragonfly*)
9426 # DragonFly does not have aout. When/if they implement a new
9427 # versioning mechanism, adjust this.
9428 if test -x /usr/bin/objformat; then
9429 objformat=`/usr/bin/objformat`
9430 else
9431 case $host_os in
9432 freebsd[123]*) objformat=aout ;;
9433 *) objformat=elf ;;
9434 esac
9435 fi
9436 version_type=freebsd-$objformat
9437 case $version_type in
9438 freebsd-elf*)
9439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9440 need_version=no
9441 need_lib_prefix=no
9442 ;;
9443 freebsd-*)
9444 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9445 need_version=yes
9446 ;;
9447 esac
9448 shlibpath_var=LD_LIBRARY_PATH
9449 case $host_os in
9450 freebsd2*)
9451 shlibpath_overrides_runpath=yes
9452 ;;
9453 freebsd3.[01]* | freebsdelf3.[01]*)
9454 shlibpath_overrides_runpath=yes
9455 hardcode_into_libs=yes
9456 ;;
9457 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9458 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9459 shlibpath_overrides_runpath=no
9460 hardcode_into_libs=yes
9461 ;;
9462 *) # from 4.6 on, and DragonFly
9463 shlibpath_overrides_runpath=yes
9464 hardcode_into_libs=yes
9465 ;;
9466 esac
9467 ;;
9468
9469 gnu*)
9470 version_type=linux
9471 need_lib_prefix=no
9472 need_version=no
9473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9474 soname_spec='${libname}${release}${shared_ext}$major'
9475 shlibpath_var=LD_LIBRARY_PATH
9476 hardcode_into_libs=yes
9477 ;;
9478
9479 hpux9* | hpux10* | hpux11*)
9480 # Give a soname corresponding to the major version so that dld.sl refuses to
9481 # link against other versions.
9482 version_type=sunos
9483 need_lib_prefix=no
9484 need_version=no
9485 case $host_cpu in
9486 ia64*)
9487 shrext_cmds='.so'
9488 hardcode_into_libs=yes
9489 dynamic_linker="$host_os dld.so"
9490 shlibpath_var=LD_LIBRARY_PATH
9491 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9493 soname_spec='${libname}${release}${shared_ext}$major'
9494 if test "X$HPUX_IA64_MODE" = X32; then
9495 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9496 else
9497 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9498 fi
9499 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9500 ;;
9501 hppa*64*)
9502 shrext_cmds='.sl'
9503 hardcode_into_libs=yes
9504 dynamic_linker="$host_os dld.sl"
9505 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9506 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9508 soname_spec='${libname}${release}${shared_ext}$major'
9509 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9510 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9511 ;;
9512 *)
9513 shrext_cmds='.sl'
9514 dynamic_linker="$host_os dld.sl"
9515 shlibpath_var=SHLIB_PATH
9516 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9518 soname_spec='${libname}${release}${shared_ext}$major'
9519 ;;
9520 esac
9521 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9522 postinstall_cmds='chmod 555 $lib'
9523 ;;
9524
9525 interix[3-9]*)
9526 version_type=linux
9527 need_lib_prefix=no
9528 need_version=no
9529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9530 soname_spec='${libname}${release}${shared_ext}$major'
9531 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9532 shlibpath_var=LD_LIBRARY_PATH
9533 shlibpath_overrides_runpath=no
9534 hardcode_into_libs=yes
9535 ;;
9536
9537 irix5* | irix6* | nonstopux*)
9538 case $host_os in
9539 nonstopux*) version_type=nonstopux ;;
9540 *)
9541 if test "$lt_cv_prog_gnu_ld" = yes; then
9542 version_type=linux
9543 else
9544 version_type=irix
9545 fi ;;
9546 esac
9547 need_lib_prefix=no
9548 need_version=no
9549 soname_spec='${libname}${release}${shared_ext}$major'
9550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9551 case $host_os in
9552 irix5* | nonstopux*)
9553 libsuff= shlibsuff=
9554 ;;
9555 *)
9556 case $LD in # libtool.m4 will add one of these switches to LD
9557 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9558 libsuff= shlibsuff= libmagic=32-bit;;
9559 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9560 libsuff=32 shlibsuff=N32 libmagic=N32;;
9561 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9562 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9563 *) libsuff= shlibsuff= libmagic=never-match;;
9564 esac
9565 ;;
9566 esac
9567 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9568 shlibpath_overrides_runpath=no
9569 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9570 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9571 hardcode_into_libs=yes
9572 ;;
9573
9574 # No shared lib support for Linux oldld, aout, or coff.
9575 linux*oldld* | linux*aout* | linux*coff*)
9576 dynamic_linker=no
9577 ;;
9578
9579 # This must be Linux ELF.
9580 linux* | k*bsd*-gnu)
9581 version_type=linux
9582 need_lib_prefix=no
9583 need_version=no
9584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9585 soname_spec='${libname}${release}${shared_ext}$major'
9586 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9587 shlibpath_var=LD_LIBRARY_PATH
9588 shlibpath_overrides_runpath=no
9589 # This implies no fast_install, which is unacceptable.
9590 # Some rework will be needed to allow for fast_install
9591 # before this can be enabled.
9592 hardcode_into_libs=yes
9593 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9594 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9595
9596 # Append ld.so.conf contents to the search path
9597 if test -f /etc/ld.so.conf; then
9598 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9599 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9600 fi
9601
9602 # We used to test for /lib/ld.so.1 and disable shared libraries on
9603 # powerpc, because MkLinux only supported shared libraries with the
9604 # GNU dynamic linker. Since this was broken with cross compilers,
9605 # most powerpc-linux boxes support dynamic linking these days and
9606 # people can always --disable-shared, the test was removed, and we
9607 # assume the GNU/Linux dynamic linker is in use.
9608 dynamic_linker='GNU/Linux ld.so'
9609 ;;
9610
9611 netbsd*)
9612 version_type=sunos
9613 need_lib_prefix=no
9614 need_version=no
9615 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9617 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9618 dynamic_linker='NetBSD (a.out) ld.so'
9619 else
9620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9621 soname_spec='${libname}${release}${shared_ext}$major'
9622 dynamic_linker='NetBSD ld.elf_so'
9623 fi
9624 shlibpath_var=LD_LIBRARY_PATH
9625 shlibpath_overrides_runpath=yes
9626 hardcode_into_libs=yes
9627 ;;
9628
9629 newsos6)
9630 version_type=linux
9631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9632 shlibpath_var=LD_LIBRARY_PATH
9633 shlibpath_overrides_runpath=yes
9634 ;;
9635
9636 nto-qnx*)
9637 version_type=linux
9638 need_lib_prefix=no
9639 need_version=no
9640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9641 soname_spec='${libname}${release}${shared_ext}$major'
9642 shlibpath_var=LD_LIBRARY_PATH
9643 shlibpath_overrides_runpath=yes
9644 ;;
9645
9646 openbsd*)
9647 version_type=sunos
9648 sys_lib_dlsearch_path_spec="/usr/lib"
9649 need_lib_prefix=no
9650 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9651 case $host_os in
9652 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9653 *) need_version=no ;;
9654 esac
9655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9656 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9657 shlibpath_var=LD_LIBRARY_PATH
9658 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9659 case $host_os in
9660 openbsd2.[89] | openbsd2.[89].*)
9661 shlibpath_overrides_runpath=no
9662 ;;
9663 *)
9664 shlibpath_overrides_runpath=yes
9665 ;;
9666 esac
9667 else
9668 shlibpath_overrides_runpath=yes
9669 fi
9670 ;;
9671
9672 os2*)
9673 libname_spec='$name'
9674 shrext_cmds=".dll"
9675 need_lib_prefix=no
9676 library_names_spec='$libname${shared_ext} $libname.a'
9677 dynamic_linker='OS/2 ld.exe'
9678 shlibpath_var=LIBPATH
9679 ;;
9680
9681 osf3* | osf4* | osf5*)
9682 version_type=osf
9683 need_lib_prefix=no
9684 need_version=no
9685 soname_spec='${libname}${release}${shared_ext}$major'
9686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9687 shlibpath_var=LD_LIBRARY_PATH
9688 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9689 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9690 ;;
9691
9692 rdos*)
9693 dynamic_linker=no
9694 ;;
9695
9696 solaris*)
9697 version_type=linux
9698 need_lib_prefix=no
9699 need_version=no
9700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9701 soname_spec='${libname}${release}${shared_ext}$major'
9702 shlibpath_var=LD_LIBRARY_PATH
9703 shlibpath_overrides_runpath=yes
9704 hardcode_into_libs=yes
9705 # ldd complains unless libraries are executable
9706 postinstall_cmds='chmod +x $lib'
9707 ;;
9708
9709 sunos4*)
9710 version_type=sunos
9711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9712 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9713 shlibpath_var=LD_LIBRARY_PATH
9714 shlibpath_overrides_runpath=yes
9715 if test "$with_gnu_ld" = yes; then
9716 need_lib_prefix=no
9717 fi
9718 need_version=yes
9719 ;;
9720
9721 sysv4 | sysv4.3*)
9722 version_type=linux
9723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9724 soname_spec='${libname}${release}${shared_ext}$major'
9725 shlibpath_var=LD_LIBRARY_PATH
9726 case $host_vendor in
9727 sni)
9728 shlibpath_overrides_runpath=no
9729 need_lib_prefix=no
9730 export_dynamic_flag_spec='${wl}-Blargedynsym'
9731 runpath_var=LD_RUN_PATH
9732 ;;
9733 siemens)
9734 need_lib_prefix=no
9735 ;;
9736 motorola)
9737 need_lib_prefix=no
9738 need_version=no
9739 shlibpath_overrides_runpath=no
9740 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9741 ;;
9742 esac
9743 ;;
9744
9745 sysv4*MP*)
9746 if test -d /usr/nec ;then
9747 version_type=linux
9748 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9749 soname_spec='$libname${shared_ext}.$major'
9750 shlibpath_var=LD_LIBRARY_PATH
9751 fi
9752 ;;
9753
9754 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9755 version_type=freebsd-elf
9756 need_lib_prefix=no
9757 need_version=no
9758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9759 soname_spec='${libname}${release}${shared_ext}$major'
9760 shlibpath_var=LD_LIBRARY_PATH
9761 hardcode_into_libs=yes
9762 if test "$with_gnu_ld" = yes; then
9763 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9764 shlibpath_overrides_runpath=no
9765 else
9766 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9767 shlibpath_overrides_runpath=yes
9768 case $host_os in
9769 sco3.2v5*)
9770 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9771 ;;
9772 esac
9773 fi
9774 sys_lib_dlsearch_path_spec='/usr/lib'
9775 ;;
9776
9777 uts4*)
9778 version_type=linux
9779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9780 soname_spec='${libname}${release}${shared_ext}$major'
9781 shlibpath_var=LD_LIBRARY_PATH
9782 ;;
9783
9784 *)
9785 dynamic_linker=no
9786 ;;
9787 esac
9788 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9789 $as_echo "$dynamic_linker" >&6; }
9790 test "$dynamic_linker" = no && can_build_shared=no
9791
9792 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9793 $as_echo_n "(cached) " >&6
9794 else
9795 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9796 fi
9797
9798 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9799 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9800 $as_echo_n "(cached) " >&6
9801 else
9802 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9803 fi
9804
9805 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9806
9807 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9808 if test "$GCC" = yes; then
9809 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9810 fi
9811
9812 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9813 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9814 hardcode_action=
9815 if test -n "$hardcode_libdir_flag_spec" || \
9816 test -n "$runpath_var" || \
9817 test "X$hardcode_automatic" = "Xyes" ; then
9818
9819 # We can hardcode non-existant directories.
9820 if test "$hardcode_direct" != no &&
9821 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9822 # have to relink, otherwise we might link with an installed library
9823 # when we should be linking with a yet-to-be-installed one
9824 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9825 test "$hardcode_minus_L" != no; then
9826 # Linking always hardcodes the temporary library directory.
9827 hardcode_action=relink
9828 else
9829 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9830 hardcode_action=immediate
9831 fi
9832 else
9833 # We cannot hardcode anything, or else we can only hardcode existing
9834 # directories.
9835 hardcode_action=unsupported
9836 fi
9837 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9838 $as_echo "$hardcode_action" >&6; }
9839
9840 if test "$hardcode_action" = relink; then
9841 # Fast installation is not supported
9842 enable_fast_install=no
9843 elif test "$shlibpath_overrides_runpath" = yes ||
9844 test "$enable_shared" = no; then
9845 # Fast installation is not necessary
9846 enable_fast_install=needless
9847 fi
9848
9849 striplib=
9850 old_striplib=
9851 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9852 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9853 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9854 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9855 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9856 { $as_echo "$as_me:$LINENO: result: yes" >&5
9857 $as_echo "yes" >&6; }
9858 else
9859 # FIXME - insert some real tests, host_os isn't really good enough
9860 case $host_os in
9861 darwin*)
9862 if test -n "$STRIP" ; then
9863 striplib="$STRIP -x"
9864 old_striplib="$STRIP -S"
9865 { $as_echo "$as_me:$LINENO: result: yes" >&5
9866 $as_echo "yes" >&6; }
9867 else
9868 { $as_echo "$as_me:$LINENO: result: no" >&5
9869 $as_echo "no" >&6; }
9870 fi
9871 ;;
9872 *)
9873 { $as_echo "$as_me:$LINENO: result: no" >&5
9874 $as_echo "no" >&6; }
9875 ;;
9876 esac
9877 fi
9878
9879 if test "x$enable_dlopen" != xyes; then
9880 enable_dlopen=unknown
9881 enable_dlopen_self=unknown
9882 enable_dlopen_self_static=unknown
9883 else
9884 lt_cv_dlopen=no
9885 lt_cv_dlopen_libs=
9886
9887 case $host_os in
9888 beos*)
9889 lt_cv_dlopen="load_add_on"
9890 lt_cv_dlopen_libs=
9891 lt_cv_dlopen_self=yes
9892 ;;
9893
9894 mingw* | pw32*)
9895 lt_cv_dlopen="LoadLibrary"
9896 lt_cv_dlopen_libs=
9897 ;;
9898
9899 cygwin*)
9900 lt_cv_dlopen="dlopen"
9901 lt_cv_dlopen_libs=
9902 ;;
9903
9904 darwin*)
9905 # if libdl is installed we need to link against it
9906 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9907 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9908 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9909 $as_echo_n "(cached) " >&6
9910 else
9911 ac_check_lib_save_LIBS=$LIBS
9912 LIBS="-ldl $LIBS"
9913 cat >conftest.$ac_ext <<_ACEOF
9914 /* confdefs.h. */
9915 _ACEOF
9916 cat confdefs.h >>conftest.$ac_ext
9917 cat >>conftest.$ac_ext <<_ACEOF
9918 /* end confdefs.h. */
9919
9920 /* Override any GCC internal prototype to avoid an error.
9921 Use char because int might match the return type of a GCC
9922 builtin and then its argument prototype would still apply. */
9923 #ifdef __cplusplus
9924 extern "C"
9925 #endif
9926 char dlopen ();
9927 int
9928 main ()
9929 {
9930 return dlopen ();
9931 ;
9932 return 0;
9933 }
9934 _ACEOF
9935 rm -f conftest.$ac_objext conftest$ac_exeext
9936 if { (ac_try="$ac_link"
9937 case "(($ac_try" in
9938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9939 *) ac_try_echo=$ac_try;;
9940 esac
9941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9942 $as_echo "$ac_try_echo") >&5
9943 (eval "$ac_link") 2>conftest.er1
9944 ac_status=$?
9945 grep -v '^ *+' conftest.er1 >conftest.err
9946 rm -f conftest.er1
9947 cat conftest.err >&5
9948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9949 (exit $ac_status); } && {
9950 test -z "$ac_c_werror_flag" ||
9951 test ! -s conftest.err
9952 } && test -s conftest$ac_exeext && {
9953 test "$cross_compiling" = yes ||
9954 $as_test_x conftest$ac_exeext
9955 }; then
9956 ac_cv_lib_dl_dlopen=yes
9957 else
9958 $as_echo "$as_me: failed program was:" >&5
9959 sed 's/^/| /' conftest.$ac_ext >&5
9960
9961 ac_cv_lib_dl_dlopen=no
9962 fi
9963
9964 rm -rf conftest.dSYM
9965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9966 conftest$ac_exeext conftest.$ac_ext
9967 LIBS=$ac_check_lib_save_LIBS
9968 fi
9969 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9970 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9971 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
9972 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9973 else
9974
9975 lt_cv_dlopen="dyld"
9976 lt_cv_dlopen_libs=
9977 lt_cv_dlopen_self=yes
9978
9979 fi
9980
9981 ;;
9982
9983 *)
9984 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9985 $as_echo_n "checking for shl_load... " >&6; }
9986 if test "${ac_cv_func_shl_load+set}" = set; then
9987 $as_echo_n "(cached) " >&6
9988 else
9989 cat >conftest.$ac_ext <<_ACEOF
9990 /* confdefs.h. */
9991 _ACEOF
9992 cat confdefs.h >>conftest.$ac_ext
9993 cat >>conftest.$ac_ext <<_ACEOF
9994 /* end confdefs.h. */
9995 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9996 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9997 #define shl_load innocuous_shl_load
9998
9999 /* System header to define __stub macros and hopefully few prototypes,
10000 which can conflict with char shl_load (); below.
10001 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10002 <limits.h> exists even on freestanding compilers. */
10003
10004 #ifdef __STDC__
10005 # include <limits.h>
10006 #else
10007 # include <assert.h>
10008 #endif
10009
10010 #undef shl_load
10011
10012 /* Override any GCC internal prototype to avoid an error.
10013 Use char because int might match the return type of a GCC
10014 builtin and then its argument prototype would still apply. */
10015 #ifdef __cplusplus
10016 extern "C"
10017 #endif
10018 char shl_load ();
10019 /* The GNU C library defines this for functions which it implements
10020 to always fail with ENOSYS. Some functions are actually named
10021 something starting with __ and the normal name is an alias. */
10022 #if defined __stub_shl_load || defined __stub___shl_load
10023 choke me
10024 #endif
10025
10026 int
10027 main ()
10028 {
10029 return shl_load ();
10030 ;
10031 return 0;
10032 }
10033 _ACEOF
10034 rm -f conftest.$ac_objext conftest$ac_exeext
10035 if { (ac_try="$ac_link"
10036 case "(($ac_try" in
10037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10038 *) ac_try_echo=$ac_try;;
10039 esac
10040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10041 $as_echo "$ac_try_echo") >&5
10042 (eval "$ac_link") 2>conftest.er1
10043 ac_status=$?
10044 grep -v '^ *+' conftest.er1 >conftest.err
10045 rm -f conftest.er1
10046 cat conftest.err >&5
10047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10048 (exit $ac_status); } && {
10049 test -z "$ac_c_werror_flag" ||
10050 test ! -s conftest.err
10051 } && test -s conftest$ac_exeext && {
10052 test "$cross_compiling" = yes ||
10053 $as_test_x conftest$ac_exeext
10054 }; then
10055 ac_cv_func_shl_load=yes
10056 else
10057 $as_echo "$as_me: failed program was:" >&5
10058 sed 's/^/| /' conftest.$ac_ext >&5
10059
10060 ac_cv_func_shl_load=no
10061 fi
10062
10063 rm -rf conftest.dSYM
10064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10065 conftest$ac_exeext conftest.$ac_ext
10066 fi
10067 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10068 $as_echo "$ac_cv_func_shl_load" >&6; }
10069 if test "x$ac_cv_func_shl_load" = x""yes; then
10070 lt_cv_dlopen="shl_load"
10071 else
10072 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10073 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10074 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10075 $as_echo_n "(cached) " >&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 shl_load ();
10093 int
10094 main ()
10095 {
10096 return shl_load ();
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10108 $as_echo "$ac_try_echo") >&5
10109 (eval "$ac_link") 2>conftest.er1
10110 ac_status=$?
10111 grep -v '^ *+' conftest.er1 >conftest.err
10112 rm -f conftest.er1
10113 cat conftest.err >&5
10114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115 (exit $ac_status); } && {
10116 test -z "$ac_c_werror_flag" ||
10117 test ! -s conftest.err
10118 } && test -s conftest$ac_exeext && {
10119 test "$cross_compiling" = yes ||
10120 $as_test_x conftest$ac_exeext
10121 }; then
10122 ac_cv_lib_dld_shl_load=yes
10123 else
10124 $as_echo "$as_me: failed program was:" >&5
10125 sed 's/^/| /' conftest.$ac_ext >&5
10126
10127 ac_cv_lib_dld_shl_load=no
10128 fi
10129
10130 rm -rf conftest.dSYM
10131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10132 conftest$ac_exeext conftest.$ac_ext
10133 LIBS=$ac_check_lib_save_LIBS
10134 fi
10135 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10136 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10137 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10138 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10139 else
10140 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10141 $as_echo_n "checking for dlopen... " >&6; }
10142 if test "${ac_cv_func_dlopen+set}" = set; then
10143 $as_echo_n "(cached) " >&6
10144 else
10145 cat >conftest.$ac_ext <<_ACEOF
10146 /* confdefs.h. */
10147 _ACEOF
10148 cat confdefs.h >>conftest.$ac_ext
10149 cat >>conftest.$ac_ext <<_ACEOF
10150 /* end confdefs.h. */
10151 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10152 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10153 #define dlopen innocuous_dlopen
10154
10155 /* System header to define __stub macros and hopefully few prototypes,
10156 which can conflict with char dlopen (); below.
10157 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10158 <limits.h> exists even on freestanding compilers. */
10159
10160 #ifdef __STDC__
10161 # include <limits.h>
10162 #else
10163 # include <assert.h>
10164 #endif
10165
10166 #undef dlopen
10167
10168 /* Override any GCC internal prototype to avoid an error.
10169 Use char because int might match the return type of a GCC
10170 builtin and then its argument prototype would still apply. */
10171 #ifdef __cplusplus
10172 extern "C"
10173 #endif
10174 char dlopen ();
10175 /* The GNU C library defines this for functions which it implements
10176 to always fail with ENOSYS. Some functions are actually named
10177 something starting with __ and the normal name is an alias. */
10178 #if defined __stub_dlopen || defined __stub___dlopen
10179 choke me
10180 #endif
10181
10182 int
10183 main ()
10184 {
10185 return dlopen ();
10186 ;
10187 return 0;
10188 }
10189 _ACEOF
10190 rm -f conftest.$ac_objext conftest$ac_exeext
10191 if { (ac_try="$ac_link"
10192 case "(($ac_try" in
10193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10194 *) ac_try_echo=$ac_try;;
10195 esac
10196 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10197 $as_echo "$ac_try_echo") >&5
10198 (eval "$ac_link") 2>conftest.er1
10199 ac_status=$?
10200 grep -v '^ *+' conftest.er1 >conftest.err
10201 rm -f conftest.er1
10202 cat conftest.err >&5
10203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204 (exit $ac_status); } && {
10205 test -z "$ac_c_werror_flag" ||
10206 test ! -s conftest.err
10207 } && test -s conftest$ac_exeext && {
10208 test "$cross_compiling" = yes ||
10209 $as_test_x conftest$ac_exeext
10210 }; then
10211 ac_cv_func_dlopen=yes
10212 else
10213 $as_echo "$as_me: failed program was:" >&5
10214 sed 's/^/| /' conftest.$ac_ext >&5
10215
10216 ac_cv_func_dlopen=no
10217 fi
10218
10219 rm -rf conftest.dSYM
10220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10221 conftest$ac_exeext conftest.$ac_ext
10222 fi
10223 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10224 $as_echo "$ac_cv_func_dlopen" >&6; }
10225 if test "x$ac_cv_func_dlopen" = x""yes; then
10226 lt_cv_dlopen="dlopen"
10227 else
10228 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10229 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10230 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10231 $as_echo_n "(cached) " >&6
10232 else
10233 ac_check_lib_save_LIBS=$LIBS
10234 LIBS="-ldl $LIBS"
10235 cat >conftest.$ac_ext <<_ACEOF
10236 /* confdefs.h. */
10237 _ACEOF
10238 cat confdefs.h >>conftest.$ac_ext
10239 cat >>conftest.$ac_ext <<_ACEOF
10240 /* end confdefs.h. */
10241
10242 /* Override any GCC internal prototype to avoid an error.
10243 Use char because int might match the return type of a GCC
10244 builtin and then its argument prototype would still apply. */
10245 #ifdef __cplusplus
10246 extern "C"
10247 #endif
10248 char dlopen ();
10249 int
10250 main ()
10251 {
10252 return dlopen ();
10253 ;
10254 return 0;
10255 }
10256 _ACEOF
10257 rm -f conftest.$ac_objext conftest$ac_exeext
10258 if { (ac_try="$ac_link"
10259 case "(($ac_try" in
10260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10261 *) ac_try_echo=$ac_try;;
10262 esac
10263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10264 $as_echo "$ac_try_echo") >&5
10265 (eval "$ac_link") 2>conftest.er1
10266 ac_status=$?
10267 grep -v '^ *+' conftest.er1 >conftest.err
10268 rm -f conftest.er1
10269 cat conftest.err >&5
10270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271 (exit $ac_status); } && {
10272 test -z "$ac_c_werror_flag" ||
10273 test ! -s conftest.err
10274 } && test -s conftest$ac_exeext && {
10275 test "$cross_compiling" = yes ||
10276 $as_test_x conftest$ac_exeext
10277 }; then
10278 ac_cv_lib_dl_dlopen=yes
10279 else
10280 $as_echo "$as_me: failed program was:" >&5
10281 sed 's/^/| /' conftest.$ac_ext >&5
10282
10283 ac_cv_lib_dl_dlopen=no
10284 fi
10285
10286 rm -rf conftest.dSYM
10287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10288 conftest$ac_exeext conftest.$ac_ext
10289 LIBS=$ac_check_lib_save_LIBS
10290 fi
10291 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10292 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10293 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10294 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10295 else
10296 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10297 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10298 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10299 $as_echo_n "(cached) " >&6
10300 else
10301 ac_check_lib_save_LIBS=$LIBS
10302 LIBS="-lsvld $LIBS"
10303 cat >conftest.$ac_ext <<_ACEOF
10304 /* confdefs.h. */
10305 _ACEOF
10306 cat confdefs.h >>conftest.$ac_ext
10307 cat >>conftest.$ac_ext <<_ACEOF
10308 /* end confdefs.h. */
10309
10310 /* Override any GCC internal prototype to avoid an error.
10311 Use char because int might match the return type of a GCC
10312 builtin and then its argument prototype would still apply. */
10313 #ifdef __cplusplus
10314 extern "C"
10315 #endif
10316 char dlopen ();
10317 int
10318 main ()
10319 {
10320 return dlopen ();
10321 ;
10322 return 0;
10323 }
10324 _ACEOF
10325 rm -f conftest.$ac_objext conftest$ac_exeext
10326 if { (ac_try="$ac_link"
10327 case "(($ac_try" in
10328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10329 *) ac_try_echo=$ac_try;;
10330 esac
10331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10332 $as_echo "$ac_try_echo") >&5
10333 (eval "$ac_link") 2>conftest.er1
10334 ac_status=$?
10335 grep -v '^ *+' conftest.er1 >conftest.err
10336 rm -f conftest.er1
10337 cat conftest.err >&5
10338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); } && {
10340 test -z "$ac_c_werror_flag" ||
10341 test ! -s conftest.err
10342 } && test -s conftest$ac_exeext && {
10343 test "$cross_compiling" = yes ||
10344 $as_test_x conftest$ac_exeext
10345 }; then
10346 ac_cv_lib_svld_dlopen=yes
10347 else
10348 $as_echo "$as_me: failed program was:" >&5
10349 sed 's/^/| /' conftest.$ac_ext >&5
10350
10351 ac_cv_lib_svld_dlopen=no
10352 fi
10353
10354 rm -rf conftest.dSYM
10355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10356 conftest$ac_exeext conftest.$ac_ext
10357 LIBS=$ac_check_lib_save_LIBS
10358 fi
10359 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10360 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10361 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10362 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10363 else
10364 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10365 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10366 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10367 $as_echo_n "(cached) " >&6
10368 else
10369 ac_check_lib_save_LIBS=$LIBS
10370 LIBS="-ldld $LIBS"
10371 cat >conftest.$ac_ext <<_ACEOF
10372 /* confdefs.h. */
10373 _ACEOF
10374 cat confdefs.h >>conftest.$ac_ext
10375 cat >>conftest.$ac_ext <<_ACEOF
10376 /* end confdefs.h. */
10377
10378 /* Override any GCC internal prototype to avoid an error.
10379 Use char because int might match the return type of a GCC
10380 builtin and then its argument prototype would still apply. */
10381 #ifdef __cplusplus
10382 extern "C"
10383 #endif
10384 char dld_link ();
10385 int
10386 main ()
10387 {
10388 return dld_link ();
10389 ;
10390 return 0;
10391 }
10392 _ACEOF
10393 rm -f conftest.$ac_objext conftest$ac_exeext
10394 if { (ac_try="$ac_link"
10395 case "(($ac_try" in
10396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10397 *) ac_try_echo=$ac_try;;
10398 esac
10399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10400 $as_echo "$ac_try_echo") >&5
10401 (eval "$ac_link") 2>conftest.er1
10402 ac_status=$?
10403 grep -v '^ *+' conftest.er1 >conftest.err
10404 rm -f conftest.er1
10405 cat conftest.err >&5
10406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10407 (exit $ac_status); } && {
10408 test -z "$ac_c_werror_flag" ||
10409 test ! -s conftest.err
10410 } && test -s conftest$ac_exeext && {
10411 test "$cross_compiling" = yes ||
10412 $as_test_x conftest$ac_exeext
10413 }; then
10414 ac_cv_lib_dld_dld_link=yes
10415 else
10416 $as_echo "$as_me: failed program was:" >&5
10417 sed 's/^/| /' conftest.$ac_ext >&5
10418
10419 ac_cv_lib_dld_dld_link=no
10420 fi
10421
10422 rm -rf conftest.dSYM
10423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10424 conftest$ac_exeext conftest.$ac_ext
10425 LIBS=$ac_check_lib_save_LIBS
10426 fi
10427 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10428 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10429 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10430 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10431 fi
10432
10433
10434 fi
10435
10436
10437 fi
10438
10439
10440 fi
10441
10442
10443 fi
10444
10445
10446 fi
10447
10448 ;;
10449 esac
10450
10451 if test "x$lt_cv_dlopen" != xno; then
10452 enable_dlopen=yes
10453 else
10454 enable_dlopen=no
10455 fi
10456
10457 case $lt_cv_dlopen in
10458 dlopen)
10459 save_CPPFLAGS="$CPPFLAGS"
10460 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10461
10462 save_LDFLAGS="$LDFLAGS"
10463 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10464
10465 save_LIBS="$LIBS"
10466 LIBS="$lt_cv_dlopen_libs $LIBS"
10467
10468 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10469 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10470 if test "${lt_cv_dlopen_self+set}" = set; then
10471 $as_echo_n "(cached) " >&6
10472 else
10473 if test "$cross_compiling" = yes; then :
10474 lt_cv_dlopen_self=cross
10475 else
10476 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10477 lt_status=$lt_dlunknown
10478 cat > conftest.$ac_ext <<EOF
10479 #line 10479 "configure"
10480 #include "confdefs.h"
10481
10482 #if HAVE_DLFCN_H
10483 #include <dlfcn.h>
10484 #endif
10485
10486 #include <stdio.h>
10487
10488 #ifdef RTLD_GLOBAL
10489 # define LT_DLGLOBAL RTLD_GLOBAL
10490 #else
10491 # ifdef DL_GLOBAL
10492 # define LT_DLGLOBAL DL_GLOBAL
10493 # else
10494 # define LT_DLGLOBAL 0
10495 # endif
10496 #endif
10497
10498 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10499 find out it does not work in some platform. */
10500 #ifndef LT_DLLAZY_OR_NOW
10501 # ifdef RTLD_LAZY
10502 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10503 # else
10504 # ifdef DL_LAZY
10505 # define LT_DLLAZY_OR_NOW DL_LAZY
10506 # else
10507 # ifdef RTLD_NOW
10508 # define LT_DLLAZY_OR_NOW RTLD_NOW
10509 # else
10510 # ifdef DL_NOW
10511 # define LT_DLLAZY_OR_NOW DL_NOW
10512 # else
10513 # define LT_DLLAZY_OR_NOW 0
10514 # endif
10515 # endif
10516 # endif
10517 # endif
10518 #endif
10519
10520 #ifdef __cplusplus
10521 extern "C" void exit (int);
10522 #endif
10523
10524 void fnord() { int i=42;}
10525 int main ()
10526 {
10527 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10528 int status = $lt_dlunknown;
10529
10530 if (self)
10531 {
10532 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10533 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10534 /* dlclose (self); */
10535 }
10536 else
10537 puts (dlerror ());
10538
10539 exit (status);
10540 }
10541 EOF
10542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10543 (eval $ac_link) 2>&5
10544 ac_status=$?
10545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10547 (./conftest; exit; ) >&5 2>/dev/null
10548 lt_status=$?
10549 case x$lt_status in
10550 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10551 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10552 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10553 esac
10554 else :
10555 # compilation failed
10556 lt_cv_dlopen_self=no
10557 fi
10558 fi
10559 rm -fr conftest*
10560
10561
10562 fi
10563 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10564 $as_echo "$lt_cv_dlopen_self" >&6; }
10565
10566 if test "x$lt_cv_dlopen_self" = xyes; then
10567 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10568 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10569 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10570 if test "${lt_cv_dlopen_self_static+set}" = set; then
10571 $as_echo_n "(cached) " >&6
10572 else
10573 if test "$cross_compiling" = yes; then :
10574 lt_cv_dlopen_self_static=cross
10575 else
10576 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10577 lt_status=$lt_dlunknown
10578 cat > conftest.$ac_ext <<EOF
10579 #line 10579 "configure"
10580 #include "confdefs.h"
10581
10582 #if HAVE_DLFCN_H
10583 #include <dlfcn.h>
10584 #endif
10585
10586 #include <stdio.h>
10587
10588 #ifdef RTLD_GLOBAL
10589 # define LT_DLGLOBAL RTLD_GLOBAL
10590 #else
10591 # ifdef DL_GLOBAL
10592 # define LT_DLGLOBAL DL_GLOBAL
10593 # else
10594 # define LT_DLGLOBAL 0
10595 # endif
10596 #endif
10597
10598 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10599 find out it does not work in some platform. */
10600 #ifndef LT_DLLAZY_OR_NOW
10601 # ifdef RTLD_LAZY
10602 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10603 # else
10604 # ifdef DL_LAZY
10605 # define LT_DLLAZY_OR_NOW DL_LAZY
10606 # else
10607 # ifdef RTLD_NOW
10608 # define LT_DLLAZY_OR_NOW RTLD_NOW
10609 # else
10610 # ifdef DL_NOW
10611 # define LT_DLLAZY_OR_NOW DL_NOW
10612 # else
10613 # define LT_DLLAZY_OR_NOW 0
10614 # endif
10615 # endif
10616 # endif
10617 # endif
10618 #endif
10619
10620 #ifdef __cplusplus
10621 extern "C" void exit (int);
10622 #endif
10623
10624 void fnord() { int i=42;}
10625 int main ()
10626 {
10627 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10628 int status = $lt_dlunknown;
10629
10630 if (self)
10631 {
10632 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10633 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10634 /* dlclose (self); */
10635 }
10636 else
10637 puts (dlerror ());
10638
10639 exit (status);
10640 }
10641 EOF
10642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10643 (eval $ac_link) 2>&5
10644 ac_status=$?
10645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10646 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10647 (./conftest; exit; ) >&5 2>/dev/null
10648 lt_status=$?
10649 case x$lt_status in
10650 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10651 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10652 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10653 esac
10654 else :
10655 # compilation failed
10656 lt_cv_dlopen_self_static=no
10657 fi
10658 fi
10659 rm -fr conftest*
10660
10661
10662 fi
10663 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10664 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10665 fi
10666
10667 CPPFLAGS="$save_CPPFLAGS"
10668 LDFLAGS="$save_LDFLAGS"
10669 LIBS="$save_LIBS"
10670 ;;
10671 esac
10672
10673 case $lt_cv_dlopen_self in
10674 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10675 *) enable_dlopen_self=unknown ;;
10676 esac
10677
10678 case $lt_cv_dlopen_self_static in
10679 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10680 *) enable_dlopen_self_static=unknown ;;
10681 esac
10682 fi
10683
10684
10685 # Report which library types will actually be built
10686 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10687 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10688 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10689 $as_echo "$can_build_shared" >&6; }
10690
10691 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10692 $as_echo_n "checking whether to build shared libraries... " >&6; }
10693 test "$can_build_shared" = "no" && enable_shared=no
10694
10695 # On AIX, shared libraries and static libraries use the same namespace, and
10696 # are all built from PIC.
10697 case $host_os in
10698 aix3*)
10699 test "$enable_shared" = yes && enable_static=no
10700 if test -n "$RANLIB"; then
10701 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10702 postinstall_cmds='$RANLIB $lib'
10703 fi
10704 ;;
10705
10706 aix[4-9]*)
10707 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10708 test "$enable_shared" = yes && enable_static=no
10709 fi
10710 ;;
10711 esac
10712 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10713 $as_echo "$enable_shared" >&6; }
10714
10715 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10716 $as_echo_n "checking whether to build static libraries... " >&6; }
10717 # Make sure either enable_shared or enable_static is yes.
10718 test "$enable_shared" = yes || enable_static=yes
10719 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10720 $as_echo "$enable_static" >&6; }
10721
10722 # The else clause should only fire when bootstrapping the
10723 # libtool distribution, otherwise you forgot to ship ltmain.sh
10724 # with your package, and you will get complaints that there are
10725 # no rules to generate ltmain.sh.
10726 if test -f "$ltmain"; then
10727 # See if we are running on zsh, and set the options which allow our commands through
10728 # without removal of \ escapes.
10729 if test -n "${ZSH_VERSION+set}" ; then
10730 setopt NO_GLOB_SUBST
10731 fi
10732 # Now quote all the things that may contain metacharacters while being
10733 # careful not to overquote the AC_SUBSTed values. We take copies of the
10734 # variables and quote the copies for generation of the libtool script.
10735 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10736 SED SHELL STRIP \
10737 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10738 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10739 deplibs_check_method reload_flag reload_cmds need_locks \
10740 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10741 lt_cv_sys_global_symbol_to_c_name_address \
10742 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10743 old_postinstall_cmds old_postuninstall_cmds \
10744 compiler \
10745 CC \
10746 LD \
10747 lt_prog_compiler_wl \
10748 lt_prog_compiler_pic \
10749 lt_prog_compiler_static \
10750 lt_prog_compiler_no_builtin_flag \
10751 export_dynamic_flag_spec \
10752 thread_safe_flag_spec \
10753 whole_archive_flag_spec \
10754 enable_shared_with_static_runtimes \
10755 old_archive_cmds \
10756 old_archive_from_new_cmds \
10757 predep_objects \
10758 postdep_objects \
10759 predeps \
10760 postdeps \
10761 compiler_lib_search_path \
10762 compiler_lib_search_dirs \
10763 archive_cmds \
10764 archive_expsym_cmds \
10765 postinstall_cmds \
10766 postuninstall_cmds \
10767 old_archive_from_expsyms_cmds \
10768 allow_undefined_flag \
10769 no_undefined_flag \
10770 export_symbols_cmds \
10771 hardcode_libdir_flag_spec \
10772 hardcode_libdir_flag_spec_ld \
10773 hardcode_libdir_separator \
10774 hardcode_automatic \
10775 module_cmds \
10776 module_expsym_cmds \
10777 lt_cv_prog_compiler_c_o \
10778 fix_srcfile_path \
10779 exclude_expsyms \
10780 include_expsyms; do
10781
10782 case $var in
10783 old_archive_cmds | \
10784 old_archive_from_new_cmds | \
10785 archive_cmds | \
10786 archive_expsym_cmds | \
10787 module_cmds | \
10788 module_expsym_cmds | \
10789 old_archive_from_expsyms_cmds | \
10790 export_symbols_cmds | \
10791 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10792 postinstall_cmds | postuninstall_cmds | \
10793 old_postinstall_cmds | old_postuninstall_cmds | \
10794 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10795 # Double-quote double-evaled strings.
10796 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10797 ;;
10798 *)
10799 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10800 ;;
10801 esac
10802 done
10803
10804 case $lt_echo in
10805 *'\$0 --fallback-echo"')
10806 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10807 ;;
10808 esac
10809
10810 cfgfile="${ofile}T"
10811 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10812 $rm -f "$cfgfile"
10813 { $as_echo "$as_me:$LINENO: creating $ofile" >&5
10814 $as_echo "$as_me: creating $ofile" >&6;}
10815
10816 cat <<__EOF__ >> "$cfgfile"
10817 #! $SHELL
10818
10819 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10820 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10821 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10822 #
10823 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10824 # Free Software Foundation, Inc.
10825 #
10826 # This file is part of GNU Libtool:
10827 # Originally by Gordon Matzigkeit <gord (at] gnu.ai.mit.edu>, 1996
10828 #
10829 # This program is free software; you can redistribute it and/or modify
10830 # it under the terms of the GNU General Public License as published by
10831 # the Free Software Foundation; either version 2 of the License, or
10832 # (at your option) any later version.
10833 #
10834 # This program is distributed in the hope that it will be useful, but
10835 # WITHOUT ANY WARRANTY; without even the implied warranty of
10836 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10837 # General Public License for more details.
10838 #
10839 # You should have received a copy of the GNU General Public License
10840 # along with this program; if not, write to the Free Software
10841 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10842 #
10843 # As a special exception to the GNU General Public License, if you
10844 # distribute this file as part of a program that contains a
10845 # configuration script generated by Autoconf, you may include it under
10846 # the same distribution terms that you use for the rest of that program.
10847
10848 # A sed program that does not truncate output.
10849 SED=$lt_SED
10850
10851 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10852 Xsed="$SED -e 1s/^X//"
10853
10854 # The HP-UX ksh and POSIX shell print the target directory to stdout
10855 # if CDPATH is set.
10856 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10857
10858 # The names of the tagged configurations supported by this script.
10859 available_tags=
10860
10861 # ### BEGIN LIBTOOL CONFIG
10862
10863 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10864
10865 # Shell to use when invoking shell scripts.
10866 SHELL=$lt_SHELL
10867
10868 # Whether or not to build shared libraries.
10869 build_libtool_libs=$enable_shared
10870
10871 # Whether or not to build static libraries.
10872 build_old_libs=$enable_static
10873
10874 # Whether or not to add -lc for building shared libraries.
10875 build_libtool_need_lc=$archive_cmds_need_lc
10876
10877 # Whether or not to disallow shared libs when runtime libs are static
10878 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10879
10880 # Whether or not to optimize for fast installation.
10881 fast_install=$enable_fast_install
10882
10883 # The host system.
10884 host_alias=$host_alias
10885 host=$host
10886 host_os=$host_os
10887
10888 # The build system.
10889 build_alias=$build_alias
10890 build=$build
10891 build_os=$build_os
10892
10893 # An echo program that does not interpret backslashes.
10894 echo=$lt_echo
10895
10896 # The archiver.
10897 AR=$lt_AR
10898 AR_FLAGS=$lt_AR_FLAGS
10899
10900 # A C compiler.
10901 LTCC=$lt_LTCC
10902
10903 # LTCC compiler flags.
10904 LTCFLAGS=$lt_LTCFLAGS
10905
10906 # A language-specific compiler.
10907 CC=$lt_compiler
10908
10909 # Is the compiler the GNU C compiler?
10910 with_gcc=$GCC
10911
10912 # An ERE matcher.
10913 EGREP=$lt_EGREP
10914
10915 # The linker used to build libraries.
10916 LD=$lt_LD
10917
10918 # Whether we need hard or soft links.
10919 LN_S=$lt_LN_S
10920
10921 # A BSD-compatible nm program.
10922 NM=$lt_NM
10923
10924 # A symbol stripping program
10925 STRIP=$lt_STRIP
10926
10927 # Used to examine libraries when file_magic_cmd begins "file"
10928 MAGIC_CMD=$MAGIC_CMD
10929
10930 # Used on cygwin: DLL creation program.
10931 DLLTOOL="$DLLTOOL"
10932
10933 # Used on cygwin: object dumper.
10934 OBJDUMP="$OBJDUMP"
10935
10936 # Used on cygwin: assembler.
10937 AS="$AS"
10938
10939 # The name of the directory that contains temporary libtool files.
10940 objdir=$objdir
10941
10942 # How to create reloadable object files.
10943 reload_flag=$lt_reload_flag
10944 reload_cmds=$lt_reload_cmds
10945
10946 # How to pass a linker flag through the compiler.
10947 wl=$lt_lt_prog_compiler_wl
10948
10949 # Object file suffix (normally "o").
10950 objext="$ac_objext"
10951
10952 # Old archive suffix (normally "a").
10953 libext="$libext"
10954
10955 # Shared library suffix (normally ".so").
10956 shrext_cmds='$shrext_cmds'
10957
10958 # Executable file suffix (normally "").
10959 exeext="$exeext"
10960
10961 # Additional compiler flags for building library objects.
10962 pic_flag=$lt_lt_prog_compiler_pic
10963 pic_mode=$pic_mode
10964
10965 # What is the maximum length of a command?
10966 max_cmd_len=$lt_cv_sys_max_cmd_len
10967
10968 # Does compiler simultaneously support -c and -o options?
10969 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10970
10971 # Must we lock files when doing compilation?
10972 need_locks=$lt_need_locks
10973
10974 # Do we need the lib prefix for modules?
10975 need_lib_prefix=$need_lib_prefix
10976
10977 # Do we need a version for libraries?
10978 need_version=$need_version
10979
10980 # Whether dlopen is supported.
10981 dlopen_support=$enable_dlopen
10982
10983 # Whether dlopen of programs is supported.
10984 dlopen_self=$enable_dlopen_self
10985
10986 # Whether dlopen of statically linked programs is supported.
10987 dlopen_self_static=$enable_dlopen_self_static
10988
10989 # Compiler flag to prevent dynamic linking.
10990 link_static_flag=$lt_lt_prog_compiler_static
10991
10992 # Compiler flag to turn off builtin functions.
10993 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10994
10995 # Compiler flag to allow reflexive dlopens.
10996 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10997
10998 # Compiler flag to generate shared objects directly from archives.
10999 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11000
11001 # Compiler flag to generate thread-safe objects.
11002 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11003
11004 # Library versioning type.
11005 version_type=$version_type
11006
11007 # Format of library name prefix.
11008 libname_spec=$lt_libname_spec
11009
11010 # List of archive names. First name is the real one, the rest are links.
11011 # The last name is the one that the linker finds with -lNAME.
11012 library_names_spec=$lt_library_names_spec
11013
11014 # The coded name of the library, if different from the real name.
11015 soname_spec=$lt_soname_spec
11016
11017 # Commands used to build and install an old-style archive.
11018 RANLIB=$lt_RANLIB
11019 old_archive_cmds=$lt_old_archive_cmds
11020 old_postinstall_cmds=$lt_old_postinstall_cmds
11021 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11022
11023 # Create an old-style archive from a shared archive.
11024 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11025
11026 # Create a temporary old-style archive to link instead of a shared archive.
11027 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11028
11029 # Commands used to build and install a shared archive.
11030 archive_cmds=$lt_archive_cmds
11031 archive_expsym_cmds=$lt_archive_expsym_cmds
11032 postinstall_cmds=$lt_postinstall_cmds
11033 postuninstall_cmds=$lt_postuninstall_cmds
11034
11035 # Commands used to build a loadable module (assumed same as above if empty)
11036 module_cmds=$lt_module_cmds
11037 module_expsym_cmds=$lt_module_expsym_cmds
11038
11039 # Commands to strip libraries.
11040 old_striplib=$lt_old_striplib
11041 striplib=$lt_striplib
11042
11043 # Dependencies to place before the objects being linked to create a
11044 # shared library.
11045 predep_objects=$lt_predep_objects
11046
11047 # Dependencies to place after the objects being linked to create a
11048 # shared library.
11049 postdep_objects=$lt_postdep_objects
11050
11051 # Dependencies to place before the objects being linked to create a
11052 # shared library.
11053 predeps=$lt_predeps
11054
11055 # Dependencies to place after the objects being linked to create a
11056 # shared library.
11057 postdeps=$lt_postdeps
11058
11059 # The directories searched by this compiler when creating a shared
11060 # library
11061 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11062
11063 # The library search path used internally by the compiler when linking
11064 # a shared library.
11065 compiler_lib_search_path=$lt_compiler_lib_search_path
11066
11067 # Method to check whether dependent libraries are shared objects.
11068 deplibs_check_method=$lt_deplibs_check_method
11069
11070 # Command to use when deplibs_check_method == file_magic.
11071 file_magic_cmd=$lt_file_magic_cmd
11072
11073 # Flag that allows shared libraries with undefined symbols to be built.
11074 allow_undefined_flag=$lt_allow_undefined_flag
11075
11076 # Flag that forces no undefined symbols.
11077 no_undefined_flag=$lt_no_undefined_flag
11078
11079 # Commands used to finish a libtool library installation in a directory.
11080 finish_cmds=$lt_finish_cmds
11081
11082 # Same as above, but a single script fragment to be evaled but not shown.
11083 finish_eval=$lt_finish_eval
11084
11085 # Take the output of nm and produce a listing of raw symbols and C names.
11086 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11087
11088 # Transform the output of nm in a proper C declaration
11089 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11090
11091 # Transform the output of nm in a C name address pair
11092 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11093
11094 # This is the shared library runtime path variable.
11095 runpath_var=$runpath_var
11096
11097 # This is the shared library path variable.
11098 shlibpath_var=$shlibpath_var
11099
11100 # Is shlibpath searched before the hard-coded library search path?
11101 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11102
11103 # How to hardcode a shared library path into an executable.
11104 hardcode_action=$hardcode_action
11105
11106 # Whether we should hardcode library paths into libraries.
11107 hardcode_into_libs=$hardcode_into_libs
11108
11109 # Flag to hardcode \$libdir into a binary during linking.
11110 # This must work even if \$libdir does not exist.
11111 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11112
11113 # If ld is used when linking, flag to hardcode \$libdir into
11114 # a binary during linking. This must work even if \$libdir does
11115 # not exist.
11116 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11117
11118 # Whether we need a single -rpath flag with a separated argument.
11119 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11120
11121 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11122 # resulting binary.
11123 hardcode_direct=$hardcode_direct
11124
11125 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11126 # resulting binary.
11127 hardcode_minus_L=$hardcode_minus_L
11128
11129 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11130 # the resulting binary.
11131 hardcode_shlibpath_var=$hardcode_shlibpath_var
11132
11133 # Set to yes if building a shared library automatically hardcodes DIR into the library
11134 # and all subsequent libraries and executables linked against it.
11135 hardcode_automatic=$hardcode_automatic
11136
11137 # Variables whose values should be saved in libtool wrapper scripts and
11138 # restored at relink time.
11139 variables_saved_for_relink="$variables_saved_for_relink"
11140
11141 # Whether libtool must link a program against all its dependency libraries.
11142 link_all_deplibs=$link_all_deplibs
11143
11144 # Compile-time system search path for libraries
11145 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11146
11147 # Run-time system search path for libraries
11148 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11149
11150 # Fix the shell variable \$srcfile for the compiler.
11151 fix_srcfile_path=$lt_fix_srcfile_path
11152
11153 # Set to yes if exported symbols are required.
11154 always_export_symbols=$always_export_symbols
11155
11156 # The commands to list exported symbols.
11157 export_symbols_cmds=$lt_export_symbols_cmds
11158
11159 # The commands to extract the exported symbol list from a shared archive.
11160 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11161
11162 # Symbols that should not be listed in the preloaded symbols.
11163 exclude_expsyms=$lt_exclude_expsyms
11164
11165 # Symbols that must always be exported.
11166 include_expsyms=$lt_include_expsyms
11167
11168 # ### END LIBTOOL CONFIG
11169
11170 __EOF__
11171
11172
11173 case $host_os in
11174 aix3*)
11175 cat <<\EOF >> "$cfgfile"
11176
11177 # AIX sometimes has problems with the GCC collect2 program. For some
11178 # reason, if we set the COLLECT_NAMES environment variable, the problems
11179 # vanish in a puff of smoke.
11180 if test "X${COLLECT_NAMES+set}" != Xset; then
11181 COLLECT_NAMES=
11182 export COLLECT_NAMES
11183 fi
11184 EOF
11185 ;;
11186 esac
11187
11188 # We use sed instead of cat because bash on DJGPP gets confused if
11189 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11190 # text mode, it properly converts lines to CR/LF. This bash problem
11191 # is reportedly fixed, but why not run on old versions too?
11192 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11193
11194 mv -f "$cfgfile" "$ofile" || \
11195 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11196 chmod +x "$ofile"
11197
11198 else
11199 # If there is no Makefile yet, we rely on a make rule to execute
11200 # `config.status --recheck' to rerun these tests and create the
11201 # libtool script then.
11202 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11203 if test -f "$ltmain_in"; then
11204 test -f Makefile && make "$ltmain"
11205 fi
11206 fi
11207
11208
11209 ac_ext=c
11210 ac_cpp='$CPP $CPPFLAGS'
11211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11214
11215 CC="$lt_save_CC"
11216
11217
11218 # Check whether --with-tags was given.
11219 if test "${with_tags+set}" = set; then
11220 withval=$with_tags; tagnames="$withval"
11221 fi
11222
11223
11224 if test -f "$ltmain" && test -n "$tagnames"; then
11225 if test ! -f "${ofile}"; then
11226 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11227 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11228 fi
11229
11230 if test -z "$LTCC"; then
11231 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11232 if test -z "$LTCC"; then
11233 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11234 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11235 else
11236 { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11237 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11238 fi
11239 fi
11240 if test -z "$LTCFLAGS"; then
11241 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11242 fi
11243
11244 # Extract list of available tagged configurations in $ofile.
11245 # Note that this assumes the entire list is on one line.
11246 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11247
11248 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11249 for tagname in $tagnames; do
11250 IFS="$lt_save_ifs"
11251 # Check whether tagname contains only valid characters
11252 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11253 "") ;;
11254 *) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11255 $as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
11256 { (exit 1); exit 1; }; }
11257 ;;
11258 esac
11259
11260 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11261 then
11262 { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11263 $as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11264 { (exit 1); exit 1; }; }
11265 fi
11266
11267 # Update the list of available tags.
11268 if test -n "$tagname"; then
11269 echo appending configuration tag \"$tagname\" to $ofile
11270
11271 case $tagname in
11272 CXX)
11273 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11274 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11275 (test "X$CXX" != "Xg++"))) ; then
11276 ac_ext=cpp
11277 ac_cpp='$CXXCPP $CPPFLAGS'
11278 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11279 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11280 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11281
11282
11283
11284
11285 archive_cmds_need_lc_CXX=no
11286 allow_undefined_flag_CXX=
11287 always_export_symbols_CXX=no
11288 archive_expsym_cmds_CXX=
11289 export_dynamic_flag_spec_CXX=
11290 hardcode_direct_CXX=no
11291 hardcode_libdir_flag_spec_CXX=
11292 hardcode_libdir_flag_spec_ld_CXX=
11293 hardcode_libdir_separator_CXX=
11294 hardcode_minus_L_CXX=no
11295 hardcode_shlibpath_var_CXX=unsupported
11296 hardcode_automatic_CXX=no
11297 module_cmds_CXX=
11298 module_expsym_cmds_CXX=
11299 link_all_deplibs_CXX=unknown
11300 old_archive_cmds_CXX=$old_archive_cmds
11301 no_undefined_flag_CXX=
11302 whole_archive_flag_spec_CXX=
11303 enable_shared_with_static_runtimes_CXX=no
11304
11305 # Dependencies to place before and after the object being linked:
11306 predep_objects_CXX=
11307 postdep_objects_CXX=
11308 predeps_CXX=
11309 postdeps_CXX=
11310 compiler_lib_search_path_CXX=
11311 compiler_lib_search_dirs_CXX=
11312
11313 # Source file extension for C++ test sources.
11314 ac_ext=cpp
11315
11316 # Object file extension for compiled C++ test sources.
11317 objext=o
11318 objext_CXX=$objext
11319
11320 # Code to be used in simple compile tests
11321 lt_simple_compile_test_code="int some_variable = 0;"
11322
11323 # Code to be used in simple link tests
11324 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11325
11326 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11327
11328 # If no C compiler was specified, use CC.
11329 LTCC=${LTCC-"$CC"}
11330
11331 # If no C compiler flags were specified, use CFLAGS.
11332 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11333
11334 # Allow CC to be a program name with arguments.
11335 compiler=$CC
11336
11337
11338 # save warnings/boilerplate of simple test code
11339 ac_outfile=conftest.$ac_objext
11340 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11341 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11342 _lt_compiler_boilerplate=`cat conftest.err`
11343 $rm conftest*
11344
11345 ac_outfile=conftest.$ac_objext
11346 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11347 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11348 _lt_linker_boilerplate=`cat conftest.err`
11349 $rm -r conftest*
11350
11351
11352 # Allow CC to be a program name with arguments.
11353 lt_save_CC=$CC
11354 lt_save_LD=$LD
11355 lt_save_GCC=$GCC
11356 GCC=$GXX
11357 lt_save_with_gnu_ld=$with_gnu_ld
11358 lt_save_path_LD=$lt_cv_path_LD
11359 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11360 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11361 else
11362 $as_unset lt_cv_prog_gnu_ld
11363 fi
11364 if test -n "${lt_cv_path_LDCXX+set}"; then
11365 lt_cv_path_LD=$lt_cv_path_LDCXX
11366 else
11367 $as_unset lt_cv_path_LD
11368 fi
11369 test -z "${LDCXX+set}" || LD=$LDCXX
11370 CC=${CXX-"c++"}
11371 compiler=$CC
11372 compiler_CXX=$CC
11373 for cc_temp in $compiler""; do
11374 case $cc_temp in
11375 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11376 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11377 \-*) ;;
11378 *) break;;
11379 esac
11380 done
11381 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11382
11383
11384 # We don't want -fno-exception wen compiling C++ code, so set the
11385 # no_builtin_flag separately
11386 if test "$GXX" = yes; then
11387 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11388 else
11389 lt_prog_compiler_no_builtin_flag_CXX=
11390 fi
11391
11392 if test "$GXX" = yes; then
11393 # Set up default GNU C++ configuration
11394
11395
11396 # Check whether --with-gnu-ld was given.
11397 if test "${with_gnu_ld+set}" = set; then
11398 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11399 else
11400 with_gnu_ld=no
11401 fi
11402
11403 ac_prog=ld
11404 if test "$GCC" = yes; then
11405 # Check if gcc -print-prog-name=ld gives a path.
11406 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11407 $as_echo_n "checking for ld used by $CC... " >&6; }
11408 case $host in
11409 *-*-mingw*)
11410 # gcc leaves a trailing carriage return which upsets mingw
11411 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11412 *)
11413 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11414 esac
11415 case $ac_prog in
11416 # Accept absolute paths.
11417 [\\/]* | ?:[\\/]*)
11418 re_direlt='/[^/][^/]*/\.\./'
11419 # Canonicalize the pathname of ld
11420 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11421 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11422 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11423 done
11424 test -z "$LD" && LD="$ac_prog"
11425 ;;
11426 "")
11427 # If it fails, then pretend we aren't using GCC.
11428 ac_prog=ld
11429 ;;
11430 *)
11431 # If it is relative, then search for the first ld in PATH.
11432 with_gnu_ld=unknown
11433 ;;
11434 esac
11435 elif test "$with_gnu_ld" = yes; then
11436 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
11437 $as_echo_n "checking for GNU ld... " >&6; }
11438 else
11439 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11440 $as_echo_n "checking for non-GNU ld... " >&6; }
11441 fi
11442 if test "${lt_cv_path_LD+set}" = set; then
11443 $as_echo_n "(cached) " >&6
11444 else
11445 if test -z "$LD"; then
11446 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11447 for ac_dir in $PATH; do
11448 IFS="$lt_save_ifs"
11449 test -z "$ac_dir" && ac_dir=.
11450 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11451 lt_cv_path_LD="$ac_dir/$ac_prog"
11452 # Check to see if the program is GNU ld. I'd rather use --version,
11453 # but apparently some variants of GNU ld only accept -v.
11454 # Break only if it was the GNU/non-GNU ld that we prefer.
11455 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11456 *GNU* | *'with BFD'*)
11457 test "$with_gnu_ld" != no && break
11458 ;;
11459 *)
11460 test "$with_gnu_ld" != yes && break
11461 ;;
11462 esac
11463 fi
11464 done
11465 IFS="$lt_save_ifs"
11466 else
11467 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11468 fi
11469 fi
11470
11471 LD="$lt_cv_path_LD"
11472 if test -n "$LD"; then
11473 { $as_echo "$as_me:$LINENO: result: $LD" >&5
11474 $as_echo "$LD" >&6; }
11475 else
11476 { $as_echo "$as_me:$LINENO: result: no" >&5
11477 $as_echo "no" >&6; }
11478 fi
11479 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11480 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11481 { (exit 1); exit 1; }; }
11482 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11483 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11484 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11485 $as_echo_n "(cached) " >&6
11486 else
11487 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11488 case `$LD -v 2>&1 </dev/null` in
11489 *GNU* | *'with BFD'*)
11490 lt_cv_prog_gnu_ld=yes
11491 ;;
11492 *)
11493 lt_cv_prog_gnu_ld=no
11494 ;;
11495 esac
11496 fi
11497 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11498 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11499 with_gnu_ld=$lt_cv_prog_gnu_ld
11500
11501
11502
11503 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11504 # archiving commands below assume that GNU ld is being used.
11505 if test "$with_gnu_ld" = yes; then
11506 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11507 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'
11508
11509 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11510 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11511
11512 # If archive_cmds runs LD, not CC, wlarc should be empty
11513 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11514 # investigate it a little bit more. (MM)
11515 wlarc='${wl}'
11516
11517 # ancient GNU ld didn't support --whole-archive et. al.
11518 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11519 grep 'no-whole-archive' > /dev/null; then
11520 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11521 else
11522 whole_archive_flag_spec_CXX=
11523 fi
11524 else
11525 with_gnu_ld=no
11526 wlarc=
11527
11528 # A generic and very simple default shared library creation
11529 # command for GNU C++ for the case where it uses the native
11530 # linker, instead of GNU ld. If possible, this setting should
11531 # overridden to take advantage of the native linker features on
11532 # the platform it is being used on.
11533 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11534 fi
11535
11536 # Commands to make compiler produce verbose output that lists
11537 # what "hidden" libraries, object files and flags are used when
11538 # linking a shared library.
11539 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11540
11541 else
11542 GXX=no
11543 with_gnu_ld=no
11544 wlarc=
11545 fi
11546
11547 # PORTME: fill in a description of your system's C++ link characteristics
11548 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11549 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11550 ld_shlibs_CXX=yes
11551 case $host_os in
11552 aix3*)
11553 # FIXME: insert proper C++ library support
11554 ld_shlibs_CXX=no
11555 ;;
11556 aix[4-9]*)
11557 if test "$host_cpu" = ia64; then
11558 # On IA64, the linker does run time linking by default, so we don't
11559 # have to do anything special.
11560 aix_use_runtimelinking=no
11561 exp_sym_flag='-Bexport'
11562 no_entry_flag=""
11563 else
11564 aix_use_runtimelinking=no
11565
11566 # Test if we are trying to use run time linking or normal
11567 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11568 # need to do runtime linking.
11569 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11570 for ld_flag in $LDFLAGS; do
11571 case $ld_flag in
11572 *-brtl*)
11573 aix_use_runtimelinking=yes
11574 break
11575 ;;
11576 esac
11577 done
11578 ;;
11579 esac
11580
11581 exp_sym_flag='-bexport'
11582 no_entry_flag='-bnoentry'
11583 fi
11584
11585 # When large executables or shared objects are built, AIX ld can
11586 # have problems creating the table of contents. If linking a library
11587 # or program results in "error TOC overflow" add -mminimal-toc to
11588 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11589 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11590
11591 archive_cmds_CXX=''
11592 hardcode_direct_CXX=yes
11593 hardcode_libdir_separator_CXX=':'
11594 link_all_deplibs_CXX=yes
11595
11596 if test "$GXX" = yes; then
11597 case $host_os in aix4.[012]|aix4.[012].*)
11598 # We only want to do this on AIX 4.2 and lower, the check
11599 # below for broken collect2 doesn't work under 4.3+
11600 collect2name=`${CC} -print-prog-name=collect2`
11601 if test -f "$collect2name" && \
11602 strings "$collect2name" | grep resolve_lib_name >/dev/null
11603 then
11604 # We have reworked collect2
11605 :
11606 else
11607 # We have old collect2
11608 hardcode_direct_CXX=unsupported
11609 # It fails to find uninstalled libraries when the uninstalled
11610 # path is not listed in the libpath. Setting hardcode_minus_L
11611 # to unsupported forces relinking
11612 hardcode_minus_L_CXX=yes
11613 hardcode_libdir_flag_spec_CXX='-L$libdir'
11614 hardcode_libdir_separator_CXX=
11615 fi
11616 ;;
11617 esac
11618 shared_flag='-shared'
11619 if test "$aix_use_runtimelinking" = yes; then
11620 shared_flag="$shared_flag "'${wl}-G'
11621 fi
11622 else
11623 # not using gcc
11624 if test "$host_cpu" = ia64; then
11625 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11626 # chokes on -Wl,-G. The following line is correct:
11627 shared_flag='-G'
11628 else
11629 if test "$aix_use_runtimelinking" = yes; then
11630 shared_flag='${wl}-G'
11631 else
11632 shared_flag='${wl}-bM:SRE'
11633 fi
11634 fi
11635 fi
11636
11637 # It seems that -bexpall does not export symbols beginning with
11638 # underscore (_), so it is better to generate a list of symbols to export.
11639 always_export_symbols_CXX=yes
11640 if test "$aix_use_runtimelinking" = yes; then
11641 # Warning - without using the other runtime loading flags (-brtl),
11642 # -berok will link without error, but may produce a broken library.
11643 allow_undefined_flag_CXX='-berok'
11644 # Determine the default libpath from the value encoded in an empty executable.
11645 cat >conftest.$ac_ext <<_ACEOF
11646 /* confdefs.h. */
11647 _ACEOF
11648 cat confdefs.h >>conftest.$ac_ext
11649 cat >>conftest.$ac_ext <<_ACEOF
11650 /* end confdefs.h. */
11651
11652 int
11653 main ()
11654 {
11655
11656 ;
11657 return 0;
11658 }
11659 _ACEOF
11660 rm -f conftest.$ac_objext conftest$ac_exeext
11661 if { (ac_try="$ac_link"
11662 case "(($ac_try" in
11663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11664 *) ac_try_echo=$ac_try;;
11665 esac
11666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11667 $as_echo "$ac_try_echo") >&5
11668 (eval "$ac_link") 2>conftest.er1
11669 ac_status=$?
11670 grep -v '^ *+' conftest.er1 >conftest.err
11671 rm -f conftest.er1
11672 cat conftest.err >&5
11673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674 (exit $ac_status); } && {
11675 test -z "$ac_cxx_werror_flag" ||
11676 test ! -s conftest.err
11677 } && test -s conftest$ac_exeext && {
11678 test "$cross_compiling" = yes ||
11679 $as_test_x conftest$ac_exeext
11680 }; then
11681
11682 lt_aix_libpath_sed='
11683 /Import File Strings/,/^$/ {
11684 /^0/ {
11685 s/^0 *\(.*\)$/\1/
11686 p
11687 }
11688 }'
11689 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11690 # Check for a 64-bit object if we didn't find anything.
11691 if test -z "$aix_libpath"; then
11692 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11693 fi
11694 else
11695 $as_echo "$as_me: failed program was:" >&5
11696 sed 's/^/| /' conftest.$ac_ext >&5
11697
11698
11699 fi
11700
11701 rm -rf conftest.dSYM
11702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11703 conftest$ac_exeext conftest.$ac_ext
11704 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11705
11706 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11707
11708 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"
11709 else
11710 if test "$host_cpu" = ia64; then
11711 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11712 allow_undefined_flag_CXX="-z nodefs"
11713 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"
11714 else
11715 # Determine the default libpath from the value encoded in an empty executable.
11716 cat >conftest.$ac_ext <<_ACEOF
11717 /* confdefs.h. */
11718 _ACEOF
11719 cat confdefs.h >>conftest.$ac_ext
11720 cat >>conftest.$ac_ext <<_ACEOF
11721 /* end confdefs.h. */
11722
11723 int
11724 main ()
11725 {
11726
11727 ;
11728 return 0;
11729 }
11730 _ACEOF
11731 rm -f conftest.$ac_objext conftest$ac_exeext
11732 if { (ac_try="$ac_link"
11733 case "(($ac_try" in
11734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11735 *) ac_try_echo=$ac_try;;
11736 esac
11737 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11738 $as_echo "$ac_try_echo") >&5
11739 (eval "$ac_link") 2>conftest.er1
11740 ac_status=$?
11741 grep -v '^ *+' conftest.er1 >conftest.err
11742 rm -f conftest.er1
11743 cat conftest.err >&5
11744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11745 (exit $ac_status); } && {
11746 test -z "$ac_cxx_werror_flag" ||
11747 test ! -s conftest.err
11748 } && test -s conftest$ac_exeext && {
11749 test "$cross_compiling" = yes ||
11750 $as_test_x conftest$ac_exeext
11751 }; then
11752
11753 lt_aix_libpath_sed='
11754 /Import File Strings/,/^$/ {
11755 /^0/ {
11756 s/^0 *\(.*\)$/\1/
11757 p
11758 }
11759 }'
11760 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11761 # Check for a 64-bit object if we didn't find anything.
11762 if test -z "$aix_libpath"; then
11763 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11764 fi
11765 else
11766 $as_echo "$as_me: failed program was:" >&5
11767 sed 's/^/| /' conftest.$ac_ext >&5
11768
11769
11770 fi
11771
11772 rm -rf conftest.dSYM
11773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11774 conftest$ac_exeext conftest.$ac_ext
11775 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11776
11777 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11778 # Warning - without using the other run time loading flags,
11779 # -berok will link without error, but may produce a broken library.
11780 no_undefined_flag_CXX=' ${wl}-bernotok'
11781 allow_undefined_flag_CXX=' ${wl}-berok'
11782 # Exported symbols can be pulled into shared objects from archives
11783 whole_archive_flag_spec_CXX='$convenience'
11784 archive_cmds_need_lc_CXX=yes
11785 # This is similar to how AIX traditionally builds its shared libraries.
11786 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'
11787 fi
11788 fi
11789 ;;
11790
11791 beos*)
11792 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11793 allow_undefined_flag_CXX=unsupported
11794 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
11795 # support --undefined. This deserves some investigation. FIXME
11796 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11797 else
11798 ld_shlibs_CXX=no
11799 fi
11800 ;;
11801
11802 chorus*)
11803 case $cc_basename in
11804 *)
11805 # FIXME: insert proper C++ library support
11806 ld_shlibs_CXX=no
11807 ;;
11808 esac
11809 ;;
11810
11811 cygwin* | mingw* | pw32*)
11812 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11813 # as there is no search path for DLLs.
11814 hardcode_libdir_flag_spec_CXX='-L$libdir'
11815 allow_undefined_flag_CXX=unsupported
11816 always_export_symbols_CXX=no
11817 enable_shared_with_static_runtimes_CXX=yes
11818
11819 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11820 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'
11821 # If the export-symbols file already is a .def file (1st line
11822 # is EXPORTS), use it as is; otherwise, prepend...
11823 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11824 cp $export_symbols $output_objdir/$soname.def;
11825 else
11826 echo EXPORTS > $output_objdir/$soname.def;
11827 cat $export_symbols >> $output_objdir/$soname.def;
11828 fi~
11829 $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'
11830 else
11831 ld_shlibs_CXX=no
11832 fi
11833 ;;
11834 darwin* | rhapsody*)
11835 archive_cmds_need_lc_CXX=no
11836 hardcode_direct_CXX=no
11837 hardcode_automatic_CXX=yes
11838 hardcode_shlibpath_var_CXX=unsupported
11839 whole_archive_flag_spec_CXX=''
11840 link_all_deplibs_CXX=yes
11841 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11842 if test "$GXX" = yes ; then
11843 output_verbose_link_cmd='echo'
11844 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11845 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11846 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11847 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11848 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11849 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${_lt_dsymutil}"
11850 archive_expsym_cmds_CXX="sed '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${_lt_dar_export_syms}${_lt_dsymutil}"
11851 fi
11852 else
11853 case $cc_basename in
11854 xlc*)
11855 output_verbose_link_cmd='echo'
11856 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11857 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11858 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11859 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11860 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}'
11861 ;;
11862 *)
11863 ld_shlibs_CXX=no
11864 ;;
11865 esac
11866 fi
11867 ;;
11868
11869 dgux*)
11870 case $cc_basename in
11871 ec++*)
11872 # FIXME: insert proper C++ library support
11873 ld_shlibs_CXX=no
11874 ;;
11875 ghcx*)
11876 # Green Hills C++ Compiler
11877 # FIXME: insert proper C++ library support
11878 ld_shlibs_CXX=no
11879 ;;
11880 *)
11881 # FIXME: insert proper C++ library support
11882 ld_shlibs_CXX=no
11883 ;;
11884 esac
11885 ;;
11886 freebsd[12]*)
11887 # C++ shared libraries reported to be fairly broken before switch to ELF
11888 ld_shlibs_CXX=no
11889 ;;
11890 freebsd-elf*)
11891 archive_cmds_need_lc_CXX=no
11892 ;;
11893 freebsd* | dragonfly*)
11894 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11895 # conventions
11896 ld_shlibs_CXX=yes
11897 ;;
11898 gnu*)
11899 ;;
11900 hpux9*)
11901 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11902 hardcode_libdir_separator_CXX=:
11903 export_dynamic_flag_spec_CXX='${wl}-E'
11904 hardcode_direct_CXX=yes
11905 hardcode_minus_L_CXX=yes # Not in the search PATH,
11906 # but as the default
11907 # location of the library.
11908
11909 case $cc_basename in
11910 CC*)
11911 # FIXME: insert proper C++ library support
11912 ld_shlibs_CXX=no
11913 ;;
11914 aCC*)
11915 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'
11916 # Commands to make compiler produce verbose output that lists
11917 # what "hidden" libraries, object files and flags are used when
11918 # linking a shared library.
11919 #
11920 # There doesn't appear to be a way to prevent this compiler from
11921 # explicitly linking system object files so we need to strip them
11922 # from the output so that they don't get included in the library
11923 # dependencies.
11924 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'
11925 ;;
11926 *)
11927 if test "$GXX" = yes; then
11928 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'
11929 else
11930 # FIXME: insert proper C++ library support
11931 ld_shlibs_CXX=no
11932 fi
11933 ;;
11934 esac
11935 ;;
11936 hpux10*|hpux11*)
11937 if test $with_gnu_ld = no; then
11938 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11939 hardcode_libdir_separator_CXX=:
11940
11941 case $host_cpu in
11942 hppa*64*|ia64*) ;;
11943 *)
11944 export_dynamic_flag_spec_CXX='${wl}-E'
11945 ;;
11946 esac
11947 fi
11948 case $host_cpu in
11949 hppa*64*|ia64*)
11950 hardcode_direct_CXX=no
11951 hardcode_shlibpath_var_CXX=no
11952 ;;
11953 *)
11954 hardcode_direct_CXX=yes
11955 hardcode_minus_L_CXX=yes # Not in the search PATH,
11956 # but as the default
11957 # location of the library.
11958 ;;
11959 esac
11960
11961 case $cc_basename in
11962 CC*)
11963 # FIXME: insert proper C++ library support
11964 ld_shlibs_CXX=no
11965 ;;
11966 aCC*)
11967 case $host_cpu in
11968 hppa*64*)
11969 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11970 ;;
11971 ia64*)
11972 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11973 ;;
11974 *)
11975 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11976 ;;
11977 esac
11978 # Commands to make compiler produce verbose output that lists
11979 # what "hidden" libraries, object files and flags are used when
11980 # linking a shared library.
11981 #
11982 # There doesn't appear to be a way to prevent this compiler from
11983 # explicitly linking system object files so we need to strip them
11984 # from the output so that they don't get included in the library
11985 # dependencies.
11986 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'
11987 ;;
11988 *)
11989 if test "$GXX" = yes; then
11990 if test $with_gnu_ld = no; then
11991 case $host_cpu in
11992 hppa*64*)
11993 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11994 ;;
11995 ia64*)
11996 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11997 ;;
11998 *)
11999 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'
12000 ;;
12001 esac
12002 fi
12003 else
12004 # FIXME: insert proper C++ library support
12005 ld_shlibs_CXX=no
12006 fi
12007 ;;
12008 esac
12009 ;;
12010 interix[3-9]*)
12011 hardcode_direct_CXX=no
12012 hardcode_shlibpath_var_CXX=no
12013 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12014 export_dynamic_flag_spec_CXX='${wl}-E'
12015 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12016 # Instead, shared libraries are loaded at an image base (0x10000000 by
12017 # default) and relocated if they conflict, which is a slow very memory
12018 # consuming and fragmenting process. To avoid this, we pick a random,
12019 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12020 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12021 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'
12022 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'
12023 ;;
12024 irix5* | irix6*)
12025 case $cc_basename in
12026 CC*)
12027 # SGI C++
12028 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'
12029
12030 # Archives containing C++ object files must be created using
12031 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12032 # necessary to make sure instantiated templates are included
12033 # in the archive.
12034 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12035 ;;
12036 *)
12037 if test "$GXX" = yes; then
12038 if test "$with_gnu_ld" = no; then
12039 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'
12040 else
12041 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'
12042 fi
12043 fi
12044 link_all_deplibs_CXX=yes
12045 ;;
12046 esac
12047 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12048 hardcode_libdir_separator_CXX=:
12049 ;;
12050 linux* | k*bsd*-gnu)
12051 case $cc_basename in
12052 KCC*)
12053 # Kuck and Associates, Inc. (KAI) C++ Compiler
12054
12055 # KCC will only create a shared library if the output file
12056 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12057 # to its proper name (with version) after linking.
12058 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'
12059 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'
12060 # Commands to make compiler produce verbose output that lists
12061 # what "hidden" libraries, object files and flags are used when
12062 # linking a shared library.
12063 #
12064 # There doesn't appear to be a way to prevent this compiler from
12065 # explicitly linking system object files so we need to strip them
12066 # from the output so that they don't get included in the library
12067 # dependencies.
12068 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'
12069
12070 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12071 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12072
12073 # Archives containing C++ object files must be created using
12074 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12075 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12076 ;;
12077 icpc*)
12078 # Intel C++
12079 with_gnu_ld=yes
12080 # version 8.0 and above of icpc choke on multiply defined symbols
12081 # if we add $predep_objects and $postdep_objects, however 7.1 and
12082 # earlier do not add the objects themselves.
12083 case `$CC -V 2>&1` in
12084 *"Version 7."*)
12085 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12086 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'
12087 ;;
12088 *) # Version 8.0 or newer
12089 tmp_idyn=
12090 case $host_cpu in
12091 ia64*) tmp_idyn=' -i_dynamic';;
12092 esac
12093 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12094 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'
12095 ;;
12096 esac
12097 archive_cmds_need_lc_CXX=no
12098 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12099 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12100 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12101 ;;
12102 pgCC* | pgcpp*)
12103 # Portland Group C++ compiler
12104 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12105 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'
12106
12107 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12108 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12109 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'
12110 ;;
12111 cxx*)
12112 # Compaq C++
12113 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12114 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'
12115
12116 runpath_var=LD_RUN_PATH
12117 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12118 hardcode_libdir_separator_CXX=:
12119
12120 # Commands to make compiler produce verbose output that lists
12121 # what "hidden" libraries, object files and flags are used when
12122 # linking a shared library.
12123 #
12124 # There doesn't appear to be a way to prevent this compiler from
12125 # explicitly linking system object files so we need to strip them
12126 # from the output so that they don't get included in the library
12127 # dependencies.
12128 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'
12129 ;;
12130 *)
12131 case `$CC -V 2>&1 | sed 5q` in
12132 *Sun\ C*)
12133 # Sun C++ 5.9
12134 no_undefined_flag_CXX=' -zdefs'
12135 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12136 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12137 hardcode_libdir_flag_spec_CXX='-R$libdir'
12138 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12139
12140 # Not sure whether something based on
12141 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12142 # would be better.
12143 output_verbose_link_cmd='echo'
12144
12145 # Archives containing C++ object files must be created using
12146 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12147 # necessary to make sure instantiated templates are included
12148 # in the archive.
12149 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12150 ;;
12151 esac
12152 ;;
12153 esac
12154 ;;
12155 lynxos*)
12156 # FIXME: insert proper C++ library support
12157 ld_shlibs_CXX=no
12158 ;;
12159 m88k*)
12160 # FIXME: insert proper C++ library support
12161 ld_shlibs_CXX=no
12162 ;;
12163 mvs*)
12164 case $cc_basename in
12165 cxx*)
12166 # FIXME: insert proper C++ library support
12167 ld_shlibs_CXX=no
12168 ;;
12169 *)
12170 # FIXME: insert proper C++ library support
12171 ld_shlibs_CXX=no
12172 ;;
12173 esac
12174 ;;
12175 netbsd*)
12176 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12177 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12178 wlarc=
12179 hardcode_libdir_flag_spec_CXX='-R$libdir'
12180 hardcode_direct_CXX=yes
12181 hardcode_shlibpath_var_CXX=no
12182 fi
12183 # Workaround some broken pre-1.5 toolchains
12184 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12185 ;;
12186 openbsd2*)
12187 # C++ shared libraries are fairly broken
12188 ld_shlibs_CXX=no
12189 ;;
12190 openbsd*)
12191 if test -f /usr/libexec/ld.so; then
12192 hardcode_direct_CXX=yes
12193 hardcode_shlibpath_var_CXX=no
12194 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12195 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12196 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12197 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12198 export_dynamic_flag_spec_CXX='${wl}-E'
12199 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12200 fi
12201 output_verbose_link_cmd='echo'
12202 else
12203 ld_shlibs_CXX=no
12204 fi
12205 ;;
12206 osf3*)
12207 case $cc_basename in
12208 KCC*)
12209 # Kuck and Associates, Inc. (KAI) C++ Compiler
12210
12211 # KCC will only create a shared library if the output file
12212 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12213 # to its proper name (with version) after linking.
12214 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'
12215
12216 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12217 hardcode_libdir_separator_CXX=:
12218
12219 # Archives containing C++ object files must be created using
12220 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12221 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12222
12223 ;;
12224 RCC*)
12225 # Rational C++ 2.4.1
12226 # FIXME: insert proper C++ library support
12227 ld_shlibs_CXX=no
12228 ;;
12229 cxx*)
12230 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12231 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'
12232
12233 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12234 hardcode_libdir_separator_CXX=:
12235
12236 # Commands to make compiler produce verbose output that lists
12237 # what "hidden" libraries, object files and flags are used when
12238 # linking a shared library.
12239 #
12240 # There doesn't appear to be a way to prevent this compiler from
12241 # explicitly linking system object files so we need to strip them
12242 # from the output so that they don't get included in the library
12243 # dependencies.
12244 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'
12245 ;;
12246 *)
12247 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12248 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12249 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'
12250
12251 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12252 hardcode_libdir_separator_CXX=:
12253
12254 # Commands to make compiler produce verbose output that lists
12255 # what "hidden" libraries, object files and flags are used when
12256 # linking a shared library.
12257 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12258
12259 else
12260 # FIXME: insert proper C++ library support
12261 ld_shlibs_CXX=no
12262 fi
12263 ;;
12264 esac
12265 ;;
12266 osf4* | osf5*)
12267 case $cc_basename in
12268 KCC*)
12269 # Kuck and Associates, Inc. (KAI) C++ Compiler
12270
12271 # KCC will only create a shared library if the output file
12272 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12273 # to its proper name (with version) after linking.
12274 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'
12275
12276 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12277 hardcode_libdir_separator_CXX=:
12278
12279 # Archives containing C++ object files must be created using
12280 # the KAI C++ compiler.
12281 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12282 ;;
12283 RCC*)
12284 # Rational C++ 2.4.1
12285 # FIXME: insert proper C++ library support
12286 ld_shlibs_CXX=no
12287 ;;
12288 cxx*)
12289 allow_undefined_flag_CXX=' -expect_unresolved \*'
12290 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'
12291 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12292 echo "-hidden">> $lib.exp~
12293 $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~
12294 $rm $lib.exp'
12295
12296 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12297 hardcode_libdir_separator_CXX=:
12298
12299 # Commands to make compiler produce verbose output that lists
12300 # what "hidden" libraries, object files and flags are used when
12301 # linking a shared library.
12302 #
12303 # There doesn't appear to be a way to prevent this compiler from
12304 # explicitly linking system object files so we need to strip them
12305 # from the output so that they don't get included in the library
12306 # dependencies.
12307 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'
12308 ;;
12309 *)
12310 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12311 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12312 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'
12313
12314 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12315 hardcode_libdir_separator_CXX=:
12316
12317 # Commands to make compiler produce verbose output that lists
12318 # what "hidden" libraries, object files and flags are used when
12319 # linking a shared library.
12320 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12321
12322 else
12323 # FIXME: insert proper C++ library support
12324 ld_shlibs_CXX=no
12325 fi
12326 ;;
12327 esac
12328 ;;
12329 psos*)
12330 # FIXME: insert proper C++ library support
12331 ld_shlibs_CXX=no
12332 ;;
12333 sunos4*)
12334 case $cc_basename in
12335 CC*)
12336 # Sun C++ 4.x
12337 # FIXME: insert proper C++ library support
12338 ld_shlibs_CXX=no
12339 ;;
12340 lcc*)
12341 # Lucid
12342 # FIXME: insert proper C++ library support
12343 ld_shlibs_CXX=no
12344 ;;
12345 *)
12346 # FIXME: insert proper C++ library support
12347 ld_shlibs_CXX=no
12348 ;;
12349 esac
12350 ;;
12351 solaris*)
12352 case $cc_basename in
12353 CC*)
12354 # Sun C++ 4.2, 5.x and Centerline C++
12355 archive_cmds_need_lc_CXX=yes
12356 no_undefined_flag_CXX=' -zdefs'
12357 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12358 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12359 $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'
12360
12361 hardcode_libdir_flag_spec_CXX='-R$libdir'
12362 hardcode_shlibpath_var_CXX=no
12363 case $host_os in
12364 solaris2.[0-5] | solaris2.[0-5].*) ;;
12365 *)
12366 # The compiler driver will combine and reorder linker options,
12367 # but understands `-z linker_flag'.
12368 # Supported since Solaris 2.6 (maybe 2.5.1?)
12369 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12370 ;;
12371 esac
12372 link_all_deplibs_CXX=yes
12373
12374 output_verbose_link_cmd='echo'
12375
12376 # Archives containing C++ object files must be created using
12377 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12378 # necessary to make sure instantiated templates are included
12379 # in the archive.
12380 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12381 ;;
12382 gcx*)
12383 # Green Hills C++ Compiler
12384 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12385
12386 # The C++ compiler must be used to create the archive.
12387 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12388 ;;
12389 *)
12390 # GNU C++ compiler with Solaris linker
12391 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12392 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12393 if $CC --version | grep -v '^2\.7' > /dev/null; then
12394 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12395 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12396 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12397
12398 # Commands to make compiler produce verbose output that lists
12399 # what "hidden" libraries, object files and flags are used when
12400 # linking a shared library.
12401 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12402 else
12403 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12404 # platform.
12405 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12406 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12407 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12408
12409 # Commands to make compiler produce verbose output that lists
12410 # what "hidden" libraries, object files and flags are used when
12411 # linking a shared library.
12412 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12413 fi
12414
12415 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12416 case $host_os in
12417 solaris2.[0-5] | solaris2.[0-5].*) ;;
12418 *)
12419 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12420 ;;
12421 esac
12422 fi
12423 ;;
12424 esac
12425 ;;
12426 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12427 no_undefined_flag_CXX='${wl}-z,text'
12428 archive_cmds_need_lc_CXX=no
12429 hardcode_shlibpath_var_CXX=no
12430 runpath_var='LD_RUN_PATH'
12431
12432 case $cc_basename in
12433 CC*)
12434 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12435 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12436 ;;
12437 *)
12438 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12439 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12440 ;;
12441 esac
12442 ;;
12443 sysv5* | sco3.2v5* | sco5v6*)
12444 # Note: We can NOT use -z defs as we might desire, because we do not
12445 # link with -lc, and that would cause any symbols used from libc to
12446 # always be unresolved, which means just about no library would
12447 # ever link correctly. If we're not using GNU ld we use -z text
12448 # though, which does catch some bad symbols but isn't as heavy-handed
12449 # as -z defs.
12450 # For security reasons, it is highly recommended that you always
12451 # use absolute paths for naming shared libraries, and exclude the
12452 # DT_RUNPATH tag from executables and libraries. But doing so
12453 # requires that you compile everything twice, which is a pain.
12454 # So that behaviour is only enabled if SCOABSPATH is set to a
12455 # non-empty value in the environment. Most likely only useful for
12456 # creating official distributions of packages.
12457 # This is a hack until libtool officially supports absolute path
12458 # names for shared libraries.
12459 no_undefined_flag_CXX='${wl}-z,text'
12460 allow_undefined_flag_CXX='${wl}-z,nodefs'
12461 archive_cmds_need_lc_CXX=no
12462 hardcode_shlibpath_var_CXX=no
12463 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12464 hardcode_libdir_separator_CXX=':'
12465 link_all_deplibs_CXX=yes
12466 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12467 runpath_var='LD_RUN_PATH'
12468
12469 case $cc_basename in
12470 CC*)
12471 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12472 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12473 ;;
12474 *)
12475 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12476 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12477 ;;
12478 esac
12479 ;;
12480 tandem*)
12481 case $cc_basename in
12482 NCC*)
12483 # NonStop-UX NCC 3.20
12484 # FIXME: insert proper C++ library support
12485 ld_shlibs_CXX=no
12486 ;;
12487 *)
12488 # FIXME: insert proper C++ library support
12489 ld_shlibs_CXX=no
12490 ;;
12491 esac
12492 ;;
12493 vxworks*)
12494 # FIXME: insert proper C++ library support
12495 ld_shlibs_CXX=no
12496 ;;
12497 *)
12498 # FIXME: insert proper C++ library support
12499 ld_shlibs_CXX=no
12500 ;;
12501 esac
12502 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12503 $as_echo "$ld_shlibs_CXX" >&6; }
12504 test "$ld_shlibs_CXX" = no && can_build_shared=no
12505
12506 GCC_CXX="$GXX"
12507 LD_CXX="$LD"
12508
12509 cat > conftest.$ac_ext <<EOF
12510 class Foo
12511 {
12512 public:
12513 Foo (void) { a = 0; }
12514 private:
12515 int a;
12516 };
12517 EOF
12518
12519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12520 (eval $ac_compile) 2>&5
12521 ac_status=$?
12522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523 (exit $ac_status); }; then
12524 # Parse the compiler output and extract the necessary
12525 # objects, libraries and library flags.
12526
12527 # Sentinel used to keep track of whether or not we are before
12528 # the conftest object file.
12529 pre_test_object_deps_done=no
12530
12531 # The `*' in the case matches for architectures that use `case' in
12532 # $output_verbose_cmd can trigger glob expansion during the loop
12533 # eval without this substitution.
12534 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12535
12536 for p in `eval $output_verbose_link_cmd`; do
12537 case $p in
12538
12539 -L* | -R* | -l*)
12540 # Some compilers place space between "-{L,R}" and the path.
12541 # Remove the space.
12542 if test $p = "-L" \
12543 || test $p = "-R"; then
12544 prev=$p
12545 continue
12546 else
12547 prev=
12548 fi
12549
12550 if test "$pre_test_object_deps_done" = no; then
12551 case $p in
12552 -L* | -R*)
12553 # Internal compiler library paths should come after those
12554 # provided the user. The postdeps already come after the
12555 # user supplied libs so there is no need to process them.
12556 if test -z "$compiler_lib_search_path_CXX"; then
12557 compiler_lib_search_path_CXX="${prev}${p}"
12558 else
12559 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12560 fi
12561 ;;
12562 # The "-l" case would never come before the object being
12563 # linked, so don't bother handling this case.
12564 esac
12565 else
12566 if test -z "$postdeps_CXX"; then
12567 postdeps_CXX="${prev}${p}"
12568 else
12569 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12570 fi
12571 fi
12572 ;;
12573
12574 *.$objext)
12575 # This assumes that the test object file only shows up
12576 # once in the compiler output.
12577 if test "$p" = "conftest.$objext"; then
12578 pre_test_object_deps_done=yes
12579 continue
12580 fi
12581
12582 if test "$pre_test_object_deps_done" = no; then
12583 if test -z "$predep_objects_CXX"; then
12584 predep_objects_CXX="$p"
12585 else
12586 predep_objects_CXX="$predep_objects_CXX $p"
12587 fi
12588 else
12589 if test -z "$postdep_objects_CXX"; then
12590 postdep_objects_CXX="$p"
12591 else
12592 postdep_objects_CXX="$postdep_objects_CXX $p"
12593 fi
12594 fi
12595 ;;
12596
12597 *) ;; # Ignore the rest.
12598
12599 esac
12600 done
12601
12602 # Clean up.
12603 rm -f a.out a.exe
12604 else
12605 echo "libtool.m4: error: problem compiling CXX test program"
12606 fi
12607
12608 $rm -f confest.$objext
12609
12610 compiler_lib_search_dirs_CXX=
12611 if test -n "$compiler_lib_search_path_CXX"; then
12612 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12613 fi
12614
12615 # PORTME: override above test on systems where it is broken
12616 case $host_os in
12617 interix[3-9]*)
12618 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12619 # hack all around it, let's just trust "g++" to DTRT.
12620 predep_objects_CXX=
12621 postdep_objects_CXX=
12622 postdeps_CXX=
12623 ;;
12624
12625 linux*)
12626 case `$CC -V 2>&1 | sed 5q` in
12627 *Sun\ C*)
12628 # Sun C++ 5.9
12629 #
12630 # The more standards-conforming stlport4 library is
12631 # incompatible with the Cstd library. Avoid specifying
12632 # it if it's in CXXFLAGS. Ignore libCrun as
12633 # -library=stlport4 depends on it.
12634 case " $CXX $CXXFLAGS " in
12635 *" -library=stlport4 "*)
12636 solaris_use_stlport4=yes
12637 ;;
12638 esac
12639 if test "$solaris_use_stlport4" != yes; then
12640 postdeps_CXX='-library=Cstd -library=Crun'
12641 fi
12642 ;;
12643 esac
12644 ;;
12645
12646 solaris*)
12647 case $cc_basename in
12648 CC*)
12649 # The more standards-conforming stlport4 library is
12650 # incompatible with the Cstd library. Avoid specifying
12651 # it if it's in CXXFLAGS. Ignore libCrun as
12652 # -library=stlport4 depends on it.
12653 case " $CXX $CXXFLAGS " in
12654 *" -library=stlport4 "*)
12655 solaris_use_stlport4=yes
12656 ;;
12657 esac
12658
12659 # Adding this requires a known-good setup of shared libraries for
12660 # Sun compiler versions before 5.6, else PIC objects from an old
12661 # archive will be linked into the output, leading to subtle bugs.
12662 if test "$solaris_use_stlport4" != yes; then
12663 postdeps_CXX='-library=Cstd -library=Crun'
12664 fi
12665 ;;
12666 esac
12667 ;;
12668 esac
12669
12670 case " $postdeps_CXX " in
12671 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12672 esac
12673
12674 lt_prog_compiler_wl_CXX=
12675 lt_prog_compiler_pic_CXX=
12676 lt_prog_compiler_static_CXX=
12677
12678 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12679 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12680
12681 # C++ specific cases for pic, static, wl, etc.
12682 if test "$GXX" = yes; then
12683 lt_prog_compiler_wl_CXX='-Wl,'
12684 lt_prog_compiler_static_CXX='-static'
12685
12686 case $host_os in
12687 aix*)
12688 # All AIX code is PIC.
12689 if test "$host_cpu" = ia64; then
12690 # AIX 5 now supports IA64 processor
12691 lt_prog_compiler_static_CXX='-Bstatic'
12692 fi
12693 ;;
12694 amigaos*)
12695 # FIXME: we need at least 68020 code to build shared libraries, but
12696 # adding the `-m68020' flag to GCC prevents building anything better,
12697 # like `-m68040'.
12698 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12699 ;;
12700 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12701 # PIC is the default for these OSes.
12702 ;;
12703 mingw* | cygwin* | os2* | pw32*)
12704 # This hack is so that the source file can tell whether it is being
12705 # built for inclusion in a dll (and should export symbols for example).
12706 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12707 # (--disable-auto-import) libraries
12708 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12709 ;;
12710 darwin* | rhapsody*)
12711 # PIC is the default on this platform
12712 # Common symbols not allowed in MH_DYLIB files
12713 lt_prog_compiler_pic_CXX='-fno-common'
12714 ;;
12715 *djgpp*)
12716 # DJGPP does not support shared libraries at all
12717 lt_prog_compiler_pic_CXX=
12718 ;;
12719 interix[3-9]*)
12720 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12721 # Instead, we relocate shared libraries at runtime.
12722 ;;
12723 sysv4*MP*)
12724 if test -d /usr/nec; then
12725 lt_prog_compiler_pic_CXX=-Kconform_pic
12726 fi
12727 ;;
12728 hpux*)
12729 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12730 # not for PA HP-UX.
12731 case $host_cpu in
12732 hppa*64*|ia64*)
12733 ;;
12734 *)
12735 lt_prog_compiler_pic_CXX='-fPIC'
12736 ;;
12737 esac
12738 ;;
12739 *)
12740 lt_prog_compiler_pic_CXX='-fPIC'
12741 ;;
12742 esac
12743 else
12744 case $host_os in
12745 aix[4-9]*)
12746 # All AIX code is PIC.
12747 if test "$host_cpu" = ia64; then
12748 # AIX 5 now supports IA64 processor
12749 lt_prog_compiler_static_CXX='-Bstatic'
12750 else
12751 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12752 fi
12753 ;;
12754 chorus*)
12755 case $cc_basename in
12756 cxch68*)
12757 # Green Hills C++ Compiler
12758 # _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"
12759 ;;
12760 esac
12761 ;;
12762 darwin*)
12763 # PIC is the default on this platform
12764 # Common symbols not allowed in MH_DYLIB files
12765 case $cc_basename in
12766 xlc*)
12767 lt_prog_compiler_pic_CXX='-qnocommon'
12768 lt_prog_compiler_wl_CXX='-Wl,'
12769 ;;
12770 esac
12771 ;;
12772 dgux*)
12773 case $cc_basename in
12774 ec++*)
12775 lt_prog_compiler_pic_CXX='-KPIC'
12776 ;;
12777 ghcx*)
12778 # Green Hills C++ Compiler
12779 lt_prog_compiler_pic_CXX='-pic'
12780 ;;
12781 *)
12782 ;;
12783 esac
12784 ;;
12785 freebsd* | dragonfly*)
12786 # FreeBSD uses GNU C++
12787 ;;
12788 hpux9* | hpux10* | hpux11*)
12789 case $cc_basename in
12790 CC*)
12791 lt_prog_compiler_wl_CXX='-Wl,'
12792 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12793 if test "$host_cpu" != ia64; then
12794 lt_prog_compiler_pic_CXX='+Z'
12795 fi
12796 ;;
12797 aCC*)
12798 lt_prog_compiler_wl_CXX='-Wl,'
12799 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12800 case $host_cpu in
12801 hppa*64*|ia64*)
12802 # +Z the default
12803 ;;
12804 *)
12805 lt_prog_compiler_pic_CXX='+Z'
12806 ;;
12807 esac
12808 ;;
12809 *)
12810 ;;
12811 esac
12812 ;;
12813 interix*)
12814 # This is c89, which is MS Visual C++ (no shared libs)
12815 # Anyone wants to do a port?
12816 ;;
12817 irix5* | irix6* | nonstopux*)
12818 case $cc_basename in
12819 CC*)
12820 lt_prog_compiler_wl_CXX='-Wl,'
12821 lt_prog_compiler_static_CXX='-non_shared'
12822 # CC pic flag -KPIC is the default.
12823 ;;
12824 *)
12825 ;;
12826 esac
12827 ;;
12828 linux* | k*bsd*-gnu)
12829 case $cc_basename in
12830 KCC*)
12831 # KAI C++ Compiler
12832 lt_prog_compiler_wl_CXX='--backend -Wl,'
12833 lt_prog_compiler_pic_CXX='-fPIC'
12834 ;;
12835 icpc* | ecpc*)
12836 # Intel C++
12837 lt_prog_compiler_wl_CXX='-Wl,'
12838 lt_prog_compiler_pic_CXX='-KPIC'
12839 lt_prog_compiler_static_CXX='-static'
12840 ;;
12841 pgCC* | pgcpp*)
12842 # Portland Group C++ compiler.
12843 lt_prog_compiler_wl_CXX='-Wl,'
12844 lt_prog_compiler_pic_CXX='-fpic'
12845 lt_prog_compiler_static_CXX='-Bstatic'
12846 ;;
12847 cxx*)
12848 # Compaq C++
12849 # Make sure the PIC flag is empty. It appears that all Alpha
12850 # Linux and Compaq Tru64 Unix objects are PIC.
12851 lt_prog_compiler_pic_CXX=
12852 lt_prog_compiler_static_CXX='-non_shared'
12853 ;;
12854 *)
12855 case `$CC -V 2>&1 | sed 5q` in
12856 *Sun\ C*)
12857 # Sun C++ 5.9
12858 lt_prog_compiler_pic_CXX='-KPIC'
12859 lt_prog_compiler_static_CXX='-Bstatic'
12860 lt_prog_compiler_wl_CXX='-Qoption ld '
12861 ;;
12862 esac
12863 ;;
12864 esac
12865 ;;
12866 lynxos*)
12867 ;;
12868 m88k*)
12869 ;;
12870 mvs*)
12871 case $cc_basename in
12872 cxx*)
12873 lt_prog_compiler_pic_CXX='-W c,exportall'
12874 ;;
12875 *)
12876 ;;
12877 esac
12878 ;;
12879 netbsd*)
12880 ;;
12881 osf3* | osf4* | osf5*)
12882 case $cc_basename in
12883 KCC*)
12884 lt_prog_compiler_wl_CXX='--backend -Wl,'
12885 ;;
12886 RCC*)
12887 # Rational C++ 2.4.1
12888 lt_prog_compiler_pic_CXX='-pic'
12889 ;;
12890 cxx*)
12891 # Digital/Compaq C++
12892 lt_prog_compiler_wl_CXX='-Wl,'
12893 # Make sure the PIC flag is empty. It appears that all Alpha
12894 # Linux and Compaq Tru64 Unix objects are PIC.
12895 lt_prog_compiler_pic_CXX=
12896 lt_prog_compiler_static_CXX='-non_shared'
12897 ;;
12898 *)
12899 ;;
12900 esac
12901 ;;
12902 psos*)
12903 ;;
12904 solaris*)
12905 case $cc_basename in
12906 CC*)
12907 # Sun C++ 4.2, 5.x and Centerline C++
12908 lt_prog_compiler_pic_CXX='-KPIC'
12909 lt_prog_compiler_static_CXX='-Bstatic'
12910 lt_prog_compiler_wl_CXX='-Qoption ld '
12911 ;;
12912 gcx*)
12913 # Green Hills C++ Compiler
12914 lt_prog_compiler_pic_CXX='-PIC'
12915 ;;
12916 *)
12917 ;;
12918 esac
12919 ;;
12920 sunos4*)
12921 case $cc_basename in
12922 CC*)
12923 # Sun C++ 4.x
12924 lt_prog_compiler_pic_CXX='-pic'
12925 lt_prog_compiler_static_CXX='-Bstatic'
12926 ;;
12927 lcc*)
12928 # Lucid
12929 lt_prog_compiler_pic_CXX='-pic'
12930 ;;
12931 *)
12932 ;;
12933 esac
12934 ;;
12935 tandem*)
12936 case $cc_basename in
12937 NCC*)
12938 # NonStop-UX NCC 3.20
12939 lt_prog_compiler_pic_CXX='-KPIC'
12940 ;;
12941 *)
12942 ;;
12943 esac
12944 ;;
12945 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12946 case $cc_basename in
12947 CC*)
12948 lt_prog_compiler_wl_CXX='-Wl,'
12949 lt_prog_compiler_pic_CXX='-KPIC'
12950 lt_prog_compiler_static_CXX='-Bstatic'
12951 ;;
12952 esac
12953 ;;
12954 vxworks*)
12955 ;;
12956 *)
12957 lt_prog_compiler_can_build_shared_CXX=no
12958 ;;
12959 esac
12960 fi
12961
12962 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12963 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12964
12965 #
12966 # Check to make sure the PIC flag actually works.
12967 #
12968 if test -n "$lt_prog_compiler_pic_CXX"; then
12969
12970 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12971 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12972 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12973 $as_echo_n "(cached) " >&6
12974 else
12975 lt_cv_prog_compiler_pic_works_CXX=no
12976 ac_outfile=conftest.$ac_objext
12977 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12978 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12979 # Insert the option either (1) after the last *FLAGS variable, or
12980 # (2) before a word containing "conftest.", or (3) at the end.
12981 # Note that $ac_compile itself does not contain backslashes and begins
12982 # with a dollar sign (not a hyphen), so the echo should work correctly.
12983 # The option is referenced via a variable to avoid confusing sed.
12984 lt_compile=`echo "$ac_compile" | $SED \
12985 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12986 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12987 -e 's:$: $lt_compiler_flag:'`
12988 (eval echo "\"\$as_me:12988: $lt_compile\"" >&5)
12989 (eval "$lt_compile" 2>conftest.err)
12990 ac_status=$?
12991 cat conftest.err >&5
12992 echo "$as_me:12992: \$? = $ac_status" >&5
12993 if (exit $ac_status) && test -s "$ac_outfile"; then
12994 # The compiler can only warn and ignore the option if not recognized
12995 # So say no if there are warnings other than the usual output.
12996 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12997 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12998 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12999 lt_cv_prog_compiler_pic_works_CXX=yes
13000 fi
13001 fi
13002 $rm conftest*
13003
13004 fi
13005 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13006 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13007
13008 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13009 case $lt_prog_compiler_pic_CXX in
13010 "" | " "*) ;;
13011 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13012 esac
13013 else
13014 lt_prog_compiler_pic_CXX=
13015 lt_prog_compiler_can_build_shared_CXX=no
13016 fi
13017
13018 fi
13019 case $host_os in
13020 # For platforms which do not support PIC, -DPIC is meaningless:
13021 *djgpp*)
13022 lt_prog_compiler_pic_CXX=
13023 ;;
13024 *)
13025 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13026 ;;
13027 esac
13028
13029 #
13030 # Check to make sure the static flag actually works.
13031 #
13032 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13033 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13034 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13035 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
13036 $as_echo_n "(cached) " >&6
13037 else
13038 lt_cv_prog_compiler_static_works_CXX=no
13039 save_LDFLAGS="$LDFLAGS"
13040 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13041 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13042 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13043 # The linker can only warn and ignore the option if not recognized
13044 # So say no if there are warnings
13045 if test -s conftest.err; then
13046 # Append any errors to the config.log.
13047 cat conftest.err 1>&5
13048 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13049 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13050 if diff conftest.exp conftest.er2 >/dev/null; then
13051 lt_cv_prog_compiler_static_works_CXX=yes
13052 fi
13053 else
13054 lt_cv_prog_compiler_static_works_CXX=yes
13055 fi
13056 fi
13057 $rm -r conftest*
13058 LDFLAGS="$save_LDFLAGS"
13059
13060 fi
13061 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13062 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13063
13064 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13065 :
13066 else
13067 lt_prog_compiler_static_CXX=
13068 fi
13069
13070
13071 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13072 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13073 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13074 $as_echo_n "(cached) " >&6
13075 else
13076 lt_cv_prog_compiler_c_o_CXX=no
13077 $rm -r conftest 2>/dev/null
13078 mkdir conftest
13079 cd conftest
13080 mkdir out
13081 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13082
13083 lt_compiler_flag="-o out/conftest2.$ac_objext"
13084 # Insert the option either (1) after the last *FLAGS variable, or
13085 # (2) before a word containing "conftest.", or (3) at the end.
13086 # Note that $ac_compile itself does not contain backslashes and begins
13087 # with a dollar sign (not a hyphen), so the echo should work correctly.
13088 lt_compile=`echo "$ac_compile" | $SED \
13089 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13090 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13091 -e 's:$: $lt_compiler_flag:'`
13092 (eval echo "\"\$as_me:13092: $lt_compile\"" >&5)
13093 (eval "$lt_compile" 2>out/conftest.err)
13094 ac_status=$?
13095 cat out/conftest.err >&5
13096 echo "$as_me:13096: \$? = $ac_status" >&5
13097 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13098 then
13099 # The compiler can only warn and ignore the option if not recognized
13100 # So say no if there are warnings
13101 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13102 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13103 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13104 lt_cv_prog_compiler_c_o_CXX=yes
13105 fi
13106 fi
13107 chmod u+w . 2>&5
13108 $rm conftest*
13109 # SGI C++ compiler will create directory out/ii_files/ for
13110 # template instantiation
13111 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13112 $rm out/* && rmdir out
13113 cd ..
13114 rmdir conftest
13115 $rm conftest*
13116
13117 fi
13118 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13119 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13120
13121
13122 hard_links="nottested"
13123 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13124 # do not overwrite the value of need_locks provided by the user
13125 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13126 $as_echo_n "checking if we can lock with hard links... " >&6; }
13127 hard_links=yes
13128 $rm conftest*
13129 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13130 touch conftest.a
13131 ln conftest.a conftest.b 2>&5 || hard_links=no
13132 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13133 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
13134 $as_echo "$hard_links" >&6; }
13135 if test "$hard_links" = no; then
13136 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13137 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13138 need_locks=warn
13139 fi
13140 else
13141 need_locks=no
13142 fi
13143
13144 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13145 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13146
13147 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13148 case $host_os in
13149 aix[4-9]*)
13150 # If we're using GNU nm, then we don't want the "-C" option.
13151 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13152 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13153 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'
13154 else
13155 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'
13156 fi
13157 ;;
13158 pw32*)
13159 export_symbols_cmds_CXX="$ltdll_cmds"
13160 ;;
13161 cygwin* | mingw*)
13162 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'
13163 ;;
13164 *)
13165 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13166 ;;
13167 esac
13168 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13169
13170 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13171 $as_echo "$ld_shlibs_CXX" >&6; }
13172 test "$ld_shlibs_CXX" = no && can_build_shared=no
13173
13174 #
13175 # Do we need to explicitly link libc?
13176 #
13177 case "x$archive_cmds_need_lc_CXX" in
13178 x|xyes)
13179 # Assume -lc should be added
13180 archive_cmds_need_lc_CXX=yes
13181
13182 if test "$enable_shared" = yes && test "$GCC" = yes; then
13183 case $archive_cmds_CXX in
13184 *'~'*)
13185 # FIXME: we may have to deal with multi-command sequences.
13186 ;;
13187 '$CC '*)
13188 # Test whether the compiler implicitly links with -lc since on some
13189 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13190 # to ld, don't add -lc before -lgcc.
13191 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13192 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13193 $rm conftest*
13194 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13195
13196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13197 (eval $ac_compile) 2>&5
13198 ac_status=$?
13199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13200 (exit $ac_status); } 2>conftest.err; then
13201 soname=conftest
13202 lib=conftest
13203 libobjs=conftest.$ac_objext
13204 deplibs=
13205 wl=$lt_prog_compiler_wl_CXX
13206 pic_flag=$lt_prog_compiler_pic_CXX
13207 compiler_flags=-v
13208 linker_flags=-v
13209 verstring=
13210 output_objdir=.
13211 libname=conftest
13212 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13213 allow_undefined_flag_CXX=
13214 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13215 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13216 ac_status=$?
13217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13218 (exit $ac_status); }
13219 then
13220 archive_cmds_need_lc_CXX=no
13221 else
13222 archive_cmds_need_lc_CXX=yes
13223 fi
13224 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13225 else
13226 cat conftest.err 1>&5
13227 fi
13228 $rm conftest*
13229 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13230 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
13231 ;;
13232 esac
13233 fi
13234 ;;
13235 esac
13236
13237 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13238 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13239 library_names_spec=
13240 libname_spec='lib$name'
13241 soname_spec=
13242 shrext_cmds=".so"
13243 postinstall_cmds=
13244 postuninstall_cmds=
13245 finish_cmds=
13246 finish_eval=
13247 shlibpath_var=
13248 shlibpath_overrides_runpath=unknown
13249 version_type=none
13250 dynamic_linker="$host_os ld.so"
13251 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13252
13253 need_lib_prefix=unknown
13254 hardcode_into_libs=no
13255
13256 # when you set need_version to no, make sure it does not cause -set_version
13257 # flags to be left without arguments
13258 need_version=unknown
13259
13260 case $host_os in
13261 aix3*)
13262 version_type=linux
13263 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13264 shlibpath_var=LIBPATH
13265
13266 # AIX 3 has no versioning support, so we append a major version to the name.
13267 soname_spec='${libname}${release}${shared_ext}$major'
13268 ;;
13269
13270 aix[4-9]*)
13271 version_type=linux
13272 need_lib_prefix=no
13273 need_version=no
13274 hardcode_into_libs=yes
13275 if test "$host_cpu" = ia64; then
13276 # AIX 5 supports IA64
13277 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13278 shlibpath_var=LD_LIBRARY_PATH
13279 else
13280 # With GCC up to 2.95.x, collect2 would create an import file
13281 # for dependence libraries. The import file would start with
13282 # the line `#! .'. This would cause the generated library to
13283 # depend on `.', always an invalid library. This was fixed in
13284 # development snapshots of GCC prior to 3.0.
13285 case $host_os in
13286 aix4 | aix4.[01] | aix4.[01].*)
13287 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13288 echo ' yes '
13289 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13290 :
13291 else
13292 can_build_shared=no
13293 fi
13294 ;;
13295 esac
13296 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13297 # soname into executable. Probably we can add versioning support to
13298 # collect2, so additional links can be useful in future.
13299 if test "$aix_use_runtimelinking" = yes; then
13300 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13301 # instead of lib<name>.a to let people know that these are not
13302 # typical AIX shared libraries.
13303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13304 else
13305 # We preserve .a as extension for shared libraries through AIX4.2
13306 # and later when we are not doing run time linking.
13307 library_names_spec='${libname}${release}.a $libname.a'
13308 soname_spec='${libname}${release}${shared_ext}$major'
13309 fi
13310 shlibpath_var=LIBPATH
13311 fi
13312 ;;
13313
13314 amigaos*)
13315 library_names_spec='$libname.ixlibrary $libname.a'
13316 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13317 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'
13318 ;;
13319
13320 beos*)
13321 library_names_spec='${libname}${shared_ext}'
13322 dynamic_linker="$host_os ld.so"
13323 shlibpath_var=LIBRARY_PATH
13324 ;;
13325
13326 bsdi[45]*)
13327 version_type=linux
13328 need_version=no
13329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13330 soname_spec='${libname}${release}${shared_ext}$major'
13331 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13332 shlibpath_var=LD_LIBRARY_PATH
13333 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13334 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13335 # the default ld.so.conf also contains /usr/contrib/lib and
13336 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13337 # libtool to hard-code these into programs
13338 ;;
13339
13340 cygwin* | mingw* | pw32*)
13341 version_type=windows
13342 shrext_cmds=".dll"
13343 need_version=no
13344 need_lib_prefix=no
13345
13346 case $GCC,$host_os in
13347 yes,cygwin* | yes,mingw* | yes,pw32*)
13348 library_names_spec='$libname.dll.a'
13349 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13350 postinstall_cmds='base_file=`basename \${file}`~
13351 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13352 dldir=$destdir/`dirname \$dlpath`~
13353 test -d \$dldir || mkdir -p \$dldir~
13354 $install_prog $dir/$dlname \$dldir/$dlname~
13355 chmod a+x \$dldir/$dlname'
13356 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13357 dlpath=$dir/\$dldll~
13358 $rm \$dlpath'
13359 shlibpath_overrides_runpath=yes
13360
13361 case $host_os in
13362 cygwin*)
13363 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13364 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13365 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13366 ;;
13367 mingw*)
13368 # MinGW DLLs use traditional 'lib' prefix
13369 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13370 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13371 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13372 # It is most probably a Windows format PATH printed by
13373 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13374 # path with ; separators, and with drive letters. We can handle the
13375 # drive letters (cygwin fileutils understands them), so leave them,
13376 # especially as we might pass files found there to a mingw objdump,
13377 # which wouldn't understand a cygwinified path. Ahh.
13378 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13379 else
13380 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13381 fi
13382 ;;
13383 pw32*)
13384 # pw32 DLLs use 'pw' prefix rather than 'lib'
13385 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13386 ;;
13387 esac
13388 ;;
13389
13390 *)
13391 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13392 ;;
13393 esac
13394 dynamic_linker='Win32 ld.exe'
13395 # FIXME: first we should search . and the directory the executable is in
13396 shlibpath_var=PATH
13397 ;;
13398
13399 darwin* | rhapsody*)
13400 dynamic_linker="$host_os dyld"
13401 version_type=darwin
13402 need_lib_prefix=no
13403 need_version=no
13404 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13405 soname_spec='${libname}${release}${major}$shared_ext'
13406 shlibpath_overrides_runpath=yes
13407 shlibpath_var=DYLD_LIBRARY_PATH
13408 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13409
13410 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13411 ;;
13412
13413 dgux*)
13414 version_type=linux
13415 need_lib_prefix=no
13416 need_version=no
13417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13418 soname_spec='${libname}${release}${shared_ext}$major'
13419 shlibpath_var=LD_LIBRARY_PATH
13420 ;;
13421
13422 freebsd1*)
13423 dynamic_linker=no
13424 ;;
13425
13426 freebsd* | dragonfly*)
13427 # DragonFly does not have aout. When/if they implement a new
13428 # versioning mechanism, adjust this.
13429 if test -x /usr/bin/objformat; then
13430 objformat=`/usr/bin/objformat`
13431 else
13432 case $host_os in
13433 freebsd[123]*) objformat=aout ;;
13434 *) objformat=elf ;;
13435 esac
13436 fi
13437 version_type=freebsd-$objformat
13438 case $version_type in
13439 freebsd-elf*)
13440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13441 need_version=no
13442 need_lib_prefix=no
13443 ;;
13444 freebsd-*)
13445 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13446 need_version=yes
13447 ;;
13448 esac
13449 shlibpath_var=LD_LIBRARY_PATH
13450 case $host_os in
13451 freebsd2*)
13452 shlibpath_overrides_runpath=yes
13453 ;;
13454 freebsd3.[01]* | freebsdelf3.[01]*)
13455 shlibpath_overrides_runpath=yes
13456 hardcode_into_libs=yes
13457 ;;
13458 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13459 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13460 shlibpath_overrides_runpath=no
13461 hardcode_into_libs=yes
13462 ;;
13463 *) # from 4.6 on, and DragonFly
13464 shlibpath_overrides_runpath=yes
13465 hardcode_into_libs=yes
13466 ;;
13467 esac
13468 ;;
13469
13470 gnu*)
13471 version_type=linux
13472 need_lib_prefix=no
13473 need_version=no
13474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13475 soname_spec='${libname}${release}${shared_ext}$major'
13476 shlibpath_var=LD_LIBRARY_PATH
13477 hardcode_into_libs=yes
13478 ;;
13479
13480 hpux9* | hpux10* | hpux11*)
13481 # Give a soname corresponding to the major version so that dld.sl refuses to
13482 # link against other versions.
13483 version_type=sunos
13484 need_lib_prefix=no
13485 need_version=no
13486 case $host_cpu in
13487 ia64*)
13488 shrext_cmds='.so'
13489 hardcode_into_libs=yes
13490 dynamic_linker="$host_os dld.so"
13491 shlibpath_var=LD_LIBRARY_PATH
13492 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13494 soname_spec='${libname}${release}${shared_ext}$major'
13495 if test "X$HPUX_IA64_MODE" = X32; then
13496 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13497 else
13498 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13499 fi
13500 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13501 ;;
13502 hppa*64*)
13503 shrext_cmds='.sl'
13504 hardcode_into_libs=yes
13505 dynamic_linker="$host_os dld.sl"
13506 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13507 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13509 soname_spec='${libname}${release}${shared_ext}$major'
13510 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13511 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13512 ;;
13513 *)
13514 shrext_cmds='.sl'
13515 dynamic_linker="$host_os dld.sl"
13516 shlibpath_var=SHLIB_PATH
13517 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13519 soname_spec='${libname}${release}${shared_ext}$major'
13520 ;;
13521 esac
13522 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13523 postinstall_cmds='chmod 555 $lib'
13524 ;;
13525
13526 interix[3-9]*)
13527 version_type=linux
13528 need_lib_prefix=no
13529 need_version=no
13530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13531 soname_spec='${libname}${release}${shared_ext}$major'
13532 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13533 shlibpath_var=LD_LIBRARY_PATH
13534 shlibpath_overrides_runpath=no
13535 hardcode_into_libs=yes
13536 ;;
13537
13538 irix5* | irix6* | nonstopux*)
13539 case $host_os in
13540 nonstopux*) version_type=nonstopux ;;
13541 *)
13542 if test "$lt_cv_prog_gnu_ld" = yes; then
13543 version_type=linux
13544 else
13545 version_type=irix
13546 fi ;;
13547 esac
13548 need_lib_prefix=no
13549 need_version=no
13550 soname_spec='${libname}${release}${shared_ext}$major'
13551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13552 case $host_os in
13553 irix5* | nonstopux*)
13554 libsuff= shlibsuff=
13555 ;;
13556 *)
13557 case $LD in # libtool.m4 will add one of these switches to LD
13558 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13559 libsuff= shlibsuff= libmagic=32-bit;;
13560 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13561 libsuff=32 shlibsuff=N32 libmagic=N32;;
13562 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13563 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13564 *) libsuff= shlibsuff= libmagic=never-match;;
13565 esac
13566 ;;
13567 esac
13568 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13569 shlibpath_overrides_runpath=no
13570 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13571 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13572 hardcode_into_libs=yes
13573 ;;
13574
13575 # No shared lib support for Linux oldld, aout, or coff.
13576 linux*oldld* | linux*aout* | linux*coff*)
13577 dynamic_linker=no
13578 ;;
13579
13580 # This must be Linux ELF.
13581 linux* | k*bsd*-gnu)
13582 version_type=linux
13583 need_lib_prefix=no
13584 need_version=no
13585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13586 soname_spec='${libname}${release}${shared_ext}$major'
13587 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13588 shlibpath_var=LD_LIBRARY_PATH
13589 shlibpath_overrides_runpath=no
13590 # This implies no fast_install, which is unacceptable.
13591 # Some rework will be needed to allow for fast_install
13592 # before this can be enabled.
13593 hardcode_into_libs=yes
13594 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13595 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13596
13597 # Append ld.so.conf contents to the search path
13598 if test -f /etc/ld.so.conf; then
13599 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13600 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13601 fi
13602
13603 # We used to test for /lib/ld.so.1 and disable shared libraries on
13604 # powerpc, because MkLinux only supported shared libraries with the
13605 # GNU dynamic linker. Since this was broken with cross compilers,
13606 # most powerpc-linux boxes support dynamic linking these days and
13607 # people can always --disable-shared, the test was removed, and we
13608 # assume the GNU/Linux dynamic linker is in use.
13609 dynamic_linker='GNU/Linux ld.so'
13610 ;;
13611
13612 netbsd*)
13613 version_type=sunos
13614 need_lib_prefix=no
13615 need_version=no
13616 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13618 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13619 dynamic_linker='NetBSD (a.out) ld.so'
13620 else
13621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13622 soname_spec='${libname}${release}${shared_ext}$major'
13623 dynamic_linker='NetBSD ld.elf_so'
13624 fi
13625 shlibpath_var=LD_LIBRARY_PATH
13626 shlibpath_overrides_runpath=yes
13627 hardcode_into_libs=yes
13628 ;;
13629
13630 newsos6)
13631 version_type=linux
13632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13633 shlibpath_var=LD_LIBRARY_PATH
13634 shlibpath_overrides_runpath=yes
13635 ;;
13636
13637 nto-qnx*)
13638 version_type=linux
13639 need_lib_prefix=no
13640 need_version=no
13641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13642 soname_spec='${libname}${release}${shared_ext}$major'
13643 shlibpath_var=LD_LIBRARY_PATH
13644 shlibpath_overrides_runpath=yes
13645 ;;
13646
13647 openbsd*)
13648 version_type=sunos
13649 sys_lib_dlsearch_path_spec="/usr/lib"
13650 need_lib_prefix=no
13651 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13652 case $host_os in
13653 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13654 *) need_version=no ;;
13655 esac
13656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13657 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13658 shlibpath_var=LD_LIBRARY_PATH
13659 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13660 case $host_os in
13661 openbsd2.[89] | openbsd2.[89].*)
13662 shlibpath_overrides_runpath=no
13663 ;;
13664 *)
13665 shlibpath_overrides_runpath=yes
13666 ;;
13667 esac
13668 else
13669 shlibpath_overrides_runpath=yes
13670 fi
13671 ;;
13672
13673 os2*)
13674 libname_spec='$name'
13675 shrext_cmds=".dll"
13676 need_lib_prefix=no
13677 library_names_spec='$libname${shared_ext} $libname.a'
13678 dynamic_linker='OS/2 ld.exe'
13679 shlibpath_var=LIBPATH
13680 ;;
13681
13682 osf3* | osf4* | osf5*)
13683 version_type=osf
13684 need_lib_prefix=no
13685 need_version=no
13686 soname_spec='${libname}${release}${shared_ext}$major'
13687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13688 shlibpath_var=LD_LIBRARY_PATH
13689 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13690 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13691 ;;
13692
13693 rdos*)
13694 dynamic_linker=no
13695 ;;
13696
13697 solaris*)
13698 version_type=linux
13699 need_lib_prefix=no
13700 need_version=no
13701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13702 soname_spec='${libname}${release}${shared_ext}$major'
13703 shlibpath_var=LD_LIBRARY_PATH
13704 shlibpath_overrides_runpath=yes
13705 hardcode_into_libs=yes
13706 # ldd complains unless libraries are executable
13707 postinstall_cmds='chmod +x $lib'
13708 ;;
13709
13710 sunos4*)
13711 version_type=sunos
13712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13713 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13714 shlibpath_var=LD_LIBRARY_PATH
13715 shlibpath_overrides_runpath=yes
13716 if test "$with_gnu_ld" = yes; then
13717 need_lib_prefix=no
13718 fi
13719 need_version=yes
13720 ;;
13721
13722 sysv4 | sysv4.3*)
13723 version_type=linux
13724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13725 soname_spec='${libname}${release}${shared_ext}$major'
13726 shlibpath_var=LD_LIBRARY_PATH
13727 case $host_vendor in
13728 sni)
13729 shlibpath_overrides_runpath=no
13730 need_lib_prefix=no
13731 export_dynamic_flag_spec='${wl}-Blargedynsym'
13732 runpath_var=LD_RUN_PATH
13733 ;;
13734 siemens)
13735 need_lib_prefix=no
13736 ;;
13737 motorola)
13738 need_lib_prefix=no
13739 need_version=no
13740 shlibpath_overrides_runpath=no
13741 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13742 ;;
13743 esac
13744 ;;
13745
13746 sysv4*MP*)
13747 if test -d /usr/nec ;then
13748 version_type=linux
13749 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13750 soname_spec='$libname${shared_ext}.$major'
13751 shlibpath_var=LD_LIBRARY_PATH
13752 fi
13753 ;;
13754
13755 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13756 version_type=freebsd-elf
13757 need_lib_prefix=no
13758 need_version=no
13759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13760 soname_spec='${libname}${release}${shared_ext}$major'
13761 shlibpath_var=LD_LIBRARY_PATH
13762 hardcode_into_libs=yes
13763 if test "$with_gnu_ld" = yes; then
13764 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13765 shlibpath_overrides_runpath=no
13766 else
13767 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13768 shlibpath_overrides_runpath=yes
13769 case $host_os in
13770 sco3.2v5*)
13771 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13772 ;;
13773 esac
13774 fi
13775 sys_lib_dlsearch_path_spec='/usr/lib'
13776 ;;
13777
13778 uts4*)
13779 version_type=linux
13780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13781 soname_spec='${libname}${release}${shared_ext}$major'
13782 shlibpath_var=LD_LIBRARY_PATH
13783 ;;
13784
13785 *)
13786 dynamic_linker=no
13787 ;;
13788 esac
13789 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13790 $as_echo "$dynamic_linker" >&6; }
13791 test "$dynamic_linker" = no && can_build_shared=no
13792
13793 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13794 $as_echo_n "(cached) " >&6
13795 else
13796 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13797 fi
13798
13799 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13800 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13801 $as_echo_n "(cached) " >&6
13802 else
13803 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13804 fi
13805
13806 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13807
13808 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13809 if test "$GCC" = yes; then
13810 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13811 fi
13812
13813 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13814 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13815 hardcode_action_CXX=
13816 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13817 test -n "$runpath_var_CXX" || \
13818 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13819
13820 # We can hardcode non-existant directories.
13821 if test "$hardcode_direct_CXX" != no &&
13822 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13823 # have to relink, otherwise we might link with an installed library
13824 # when we should be linking with a yet-to-be-installed one
13825 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13826 test "$hardcode_minus_L_CXX" != no; then
13827 # Linking always hardcodes the temporary library directory.
13828 hardcode_action_CXX=relink
13829 else
13830 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13831 hardcode_action_CXX=immediate
13832 fi
13833 else
13834 # We cannot hardcode anything, or else we can only hardcode existing
13835 # directories.
13836 hardcode_action_CXX=unsupported
13837 fi
13838 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13839 $as_echo "$hardcode_action_CXX" >&6; }
13840
13841 if test "$hardcode_action_CXX" = relink; then
13842 # Fast installation is not supported
13843 enable_fast_install=no
13844 elif test "$shlibpath_overrides_runpath" = yes ||
13845 test "$enable_shared" = no; then
13846 # Fast installation is not necessary
13847 enable_fast_install=needless
13848 fi
13849
13850
13851 # The else clause should only fire when bootstrapping the
13852 # libtool distribution, otherwise you forgot to ship ltmain.sh
13853 # with your package, and you will get complaints that there are
13854 # no rules to generate ltmain.sh.
13855 if test -f "$ltmain"; then
13856 # See if we are running on zsh, and set the options which allow our commands through
13857 # without removal of \ escapes.
13858 if test -n "${ZSH_VERSION+set}" ; then
13859 setopt NO_GLOB_SUBST
13860 fi
13861 # Now quote all the things that may contain metacharacters while being
13862 # careful not to overquote the AC_SUBSTed values. We take copies of the
13863 # variables and quote the copies for generation of the libtool script.
13864 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13865 SED SHELL STRIP \
13866 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13867 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13868 deplibs_check_method reload_flag reload_cmds need_locks \
13869 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13870 lt_cv_sys_global_symbol_to_c_name_address \
13871 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13872 old_postinstall_cmds old_postuninstall_cmds \
13873 compiler_CXX \
13874 CC_CXX \
13875 LD_CXX \
13876 lt_prog_compiler_wl_CXX \
13877 lt_prog_compiler_pic_CXX \
13878 lt_prog_compiler_static_CXX \
13879 lt_prog_compiler_no_builtin_flag_CXX \
13880 export_dynamic_flag_spec_CXX \
13881 thread_safe_flag_spec_CXX \
13882 whole_archive_flag_spec_CXX \
13883 enable_shared_with_static_runtimes_CXX \
13884 old_archive_cmds_CXX \
13885 old_archive_from_new_cmds_CXX \
13886 predep_objects_CXX \
13887 postdep_objects_CXX \
13888 predeps_CXX \
13889 postdeps_CXX \
13890 compiler_lib_search_path_CXX \
13891 compiler_lib_search_dirs_CXX \
13892 archive_cmds_CXX \
13893 archive_expsym_cmds_CXX \
13894 postinstall_cmds_CXX \
13895 postuninstall_cmds_CXX \
13896 old_archive_from_expsyms_cmds_CXX \
13897 allow_undefined_flag_CXX \
13898 no_undefined_flag_CXX \
13899 export_symbols_cmds_CXX \
13900 hardcode_libdir_flag_spec_CXX \
13901 hardcode_libdir_flag_spec_ld_CXX \
13902 hardcode_libdir_separator_CXX \
13903 hardcode_automatic_CXX \
13904 module_cmds_CXX \
13905 module_expsym_cmds_CXX \
13906 lt_cv_prog_compiler_c_o_CXX \
13907 fix_srcfile_path_CXX \
13908 exclude_expsyms_CXX \
13909 include_expsyms_CXX; do
13910
13911 case $var in
13912 old_archive_cmds_CXX | \
13913 old_archive_from_new_cmds_CXX | \
13914 archive_cmds_CXX | \
13915 archive_expsym_cmds_CXX | \
13916 module_cmds_CXX | \
13917 module_expsym_cmds_CXX | \
13918 old_archive_from_expsyms_cmds_CXX | \
13919 export_symbols_cmds_CXX | \
13920 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13921 postinstall_cmds | postuninstall_cmds | \
13922 old_postinstall_cmds | old_postuninstall_cmds | \
13923 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13924 # Double-quote double-evaled strings.
13925 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13926 ;;
13927 *)
13928 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13929 ;;
13930 esac
13931 done
13932
13933 case $lt_echo in
13934 *'\$0 --fallback-echo"')
13935 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13936 ;;
13937 esac
13938
13939 cfgfile="$ofile"
13940
13941 cat <<__EOF__ >> "$cfgfile"
13942 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13943
13944 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13945
13946 # Shell to use when invoking shell scripts.
13947 SHELL=$lt_SHELL
13948
13949 # Whether or not to build shared libraries.
13950 build_libtool_libs=$enable_shared
13951
13952 # Whether or not to build static libraries.
13953 build_old_libs=$enable_static
13954
13955 # Whether or not to add -lc for building shared libraries.
13956 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13957
13958 # Whether or not to disallow shared libs when runtime libs are static
13959 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13960
13961 # Whether or not to optimize for fast installation.
13962 fast_install=$enable_fast_install
13963
13964 # The host system.
13965 host_alias=$host_alias
13966 host=$host
13967 host_os=$host_os
13968
13969 # The build system.
13970 build_alias=$build_alias
13971 build=$build
13972 build_os=$build_os
13973
13974 # An echo program that does not interpret backslashes.
13975 echo=$lt_echo
13976
13977 # The archiver.
13978 AR=$lt_AR
13979 AR_FLAGS=$lt_AR_FLAGS
13980
13981 # A C compiler.
13982 LTCC=$lt_LTCC
13983
13984 # LTCC compiler flags.
13985 LTCFLAGS=$lt_LTCFLAGS
13986
13987 # A language-specific compiler.
13988 CC=$lt_compiler_CXX
13989
13990 # Is the compiler the GNU C compiler?
13991 with_gcc=$GCC_CXX
13992
13993 # An ERE matcher.
13994 EGREP=$lt_EGREP
13995
13996 # The linker used to build libraries.
13997 LD=$lt_LD_CXX
13998
13999 # Whether we need hard or soft links.
14000 LN_S=$lt_LN_S
14001
14002 # A BSD-compatible nm program.
14003 NM=$lt_NM
14004
14005 # A symbol stripping program
14006 STRIP=$lt_STRIP
14007
14008 # Used to examine libraries when file_magic_cmd begins "file"
14009 MAGIC_CMD=$MAGIC_CMD
14010
14011 # Used on cygwin: DLL creation program.
14012 DLLTOOL="$DLLTOOL"
14013
14014 # Used on cygwin: object dumper.
14015 OBJDUMP="$OBJDUMP"
14016
14017 # Used on cygwin: assembler.
14018 AS="$AS"
14019
14020 # The name of the directory that contains temporary libtool files.
14021 objdir=$objdir
14022
14023 # How to create reloadable object files.
14024 reload_flag=$lt_reload_flag
14025 reload_cmds=$lt_reload_cmds
14026
14027 # How to pass a linker flag through the compiler.
14028 wl=$lt_lt_prog_compiler_wl_CXX
14029
14030 # Object file suffix (normally "o").
14031 objext="$ac_objext"
14032
14033 # Old archive suffix (normally "a").
14034 libext="$libext"
14035
14036 # Shared library suffix (normally ".so").
14037 shrext_cmds='$shrext_cmds'
14038
14039 # Executable file suffix (normally "").
14040 exeext="$exeext"
14041
14042 # Additional compiler flags for building library objects.
14043 pic_flag=$lt_lt_prog_compiler_pic_CXX
14044 pic_mode=$pic_mode
14045
14046 # What is the maximum length of a command?
14047 max_cmd_len=$lt_cv_sys_max_cmd_len
14048
14049 # Does compiler simultaneously support -c and -o options?
14050 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14051
14052 # Must we lock files when doing compilation?
14053 need_locks=$lt_need_locks
14054
14055 # Do we need the lib prefix for modules?
14056 need_lib_prefix=$need_lib_prefix
14057
14058 # Do we need a version for libraries?
14059 need_version=$need_version
14060
14061 # Whether dlopen is supported.
14062 dlopen_support=$enable_dlopen
14063
14064 # Whether dlopen of programs is supported.
14065 dlopen_self=$enable_dlopen_self
14066
14067 # Whether dlopen of statically linked programs is supported.
14068 dlopen_self_static=$enable_dlopen_self_static
14069
14070 # Compiler flag to prevent dynamic linking.
14071 link_static_flag=$lt_lt_prog_compiler_static_CXX
14072
14073 # Compiler flag to turn off builtin functions.
14074 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14075
14076 # Compiler flag to allow reflexive dlopens.
14077 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14078
14079 # Compiler flag to generate shared objects directly from archives.
14080 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14081
14082 # Compiler flag to generate thread-safe objects.
14083 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14084
14085 # Library versioning type.
14086 version_type=$version_type
14087
14088 # Format of library name prefix.
14089 libname_spec=$lt_libname_spec
14090
14091 # List of archive names. First name is the real one, the rest are links.
14092 # The last name is the one that the linker finds with -lNAME.
14093 library_names_spec=$lt_library_names_spec
14094
14095 # The coded name of the library, if different from the real name.
14096 soname_spec=$lt_soname_spec
14097
14098 # Commands used to build and install an old-style archive.
14099 RANLIB=$lt_RANLIB
14100 old_archive_cmds=$lt_old_archive_cmds_CXX
14101 old_postinstall_cmds=$lt_old_postinstall_cmds
14102 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14103
14104 # Create an old-style archive from a shared archive.
14105 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14106
14107 # Create a temporary old-style archive to link instead of a shared archive.
14108 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14109
14110 # Commands used to build and install a shared archive.
14111 archive_cmds=$lt_archive_cmds_CXX
14112 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14113 postinstall_cmds=$lt_postinstall_cmds
14114 postuninstall_cmds=$lt_postuninstall_cmds
14115
14116 # Commands used to build a loadable module (assumed same as above if empty)
14117 module_cmds=$lt_module_cmds_CXX
14118 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14119
14120 # Commands to strip libraries.
14121 old_striplib=$lt_old_striplib
14122 striplib=$lt_striplib
14123
14124 # Dependencies to place before the objects being linked to create a
14125 # shared library.
14126 predep_objects=$lt_predep_objects_CXX
14127
14128 # Dependencies to place after the objects being linked to create a
14129 # shared library.
14130 postdep_objects=$lt_postdep_objects_CXX
14131
14132 # Dependencies to place before the objects being linked to create a
14133 # shared library.
14134 predeps=$lt_predeps_CXX
14135
14136 # Dependencies to place after the objects being linked to create a
14137 # shared library.
14138 postdeps=$lt_postdeps_CXX
14139
14140 # The directories searched by this compiler when creating a shared
14141 # library
14142 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14143
14144 # The library search path used internally by the compiler when linking
14145 # a shared library.
14146 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14147
14148 # Method to check whether dependent libraries are shared objects.
14149 deplibs_check_method=$lt_deplibs_check_method
14150
14151 # Command to use when deplibs_check_method == file_magic.
14152 file_magic_cmd=$lt_file_magic_cmd
14153
14154 # Flag that allows shared libraries with undefined symbols to be built.
14155 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14156
14157 # Flag that forces no undefined symbols.
14158 no_undefined_flag=$lt_no_undefined_flag_CXX
14159
14160 # Commands used to finish a libtool library installation in a directory.
14161 finish_cmds=$lt_finish_cmds
14162
14163 # Same as above, but a single script fragment to be evaled but not shown.
14164 finish_eval=$lt_finish_eval
14165
14166 # Take the output of nm and produce a listing of raw symbols and C names.
14167 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14168
14169 # Transform the output of nm in a proper C declaration
14170 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14171
14172 # Transform the output of nm in a C name address pair
14173 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14174
14175 # This is the shared library runtime path variable.
14176 runpath_var=$runpath_var
14177
14178 # This is the shared library path variable.
14179 shlibpath_var=$shlibpath_var
14180
14181 # Is shlibpath searched before the hard-coded library search path?
14182 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14183
14184 # How to hardcode a shared library path into an executable.
14185 hardcode_action=$hardcode_action_CXX
14186
14187 # Whether we should hardcode library paths into libraries.
14188 hardcode_into_libs=$hardcode_into_libs
14189
14190 # Flag to hardcode \$libdir into a binary during linking.
14191 # This must work even if \$libdir does not exist.
14192 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14193
14194 # If ld is used when linking, flag to hardcode \$libdir into
14195 # a binary during linking. This must work even if \$libdir does
14196 # not exist.
14197 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14198
14199 # Whether we need a single -rpath flag with a separated argument.
14200 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14201
14202 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14203 # resulting binary.
14204 hardcode_direct=$hardcode_direct_CXX
14205
14206 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14207 # resulting binary.
14208 hardcode_minus_L=$hardcode_minus_L_CXX
14209
14210 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14211 # the resulting binary.
14212 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14213
14214 # Set to yes if building a shared library automatically hardcodes DIR into the library
14215 # and all subsequent libraries and executables linked against it.
14216 hardcode_automatic=$hardcode_automatic_CXX
14217
14218 # Variables whose values should be saved in libtool wrapper scripts and
14219 # restored at relink time.
14220 variables_saved_for_relink="$variables_saved_for_relink"
14221
14222 # Whether libtool must link a program against all its dependency libraries.
14223 link_all_deplibs=$link_all_deplibs_CXX
14224
14225 # Compile-time system search path for libraries
14226 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14227
14228 # Run-time system search path for libraries
14229 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14230
14231 # Fix the shell variable \$srcfile for the compiler.
14232 fix_srcfile_path=$lt_fix_srcfile_path
14233
14234 # Set to yes if exported symbols are required.
14235 always_export_symbols=$always_export_symbols_CXX
14236
14237 # The commands to list exported symbols.
14238 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14239
14240 # The commands to extract the exported symbol list from a shared archive.
14241 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14242
14243 # Symbols that should not be listed in the preloaded symbols.
14244 exclude_expsyms=$lt_exclude_expsyms_CXX
14245
14246 # Symbols that must always be exported.
14247 include_expsyms=$lt_include_expsyms_CXX
14248
14249 # ### END LIBTOOL TAG CONFIG: $tagname
14250
14251 __EOF__
14252
14253
14254 else
14255 # If there is no Makefile yet, we rely on a make rule to execute
14256 # `config.status --recheck' to rerun these tests and create the
14257 # libtool script then.
14258 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14259 if test -f "$ltmain_in"; then
14260 test -f Makefile && make "$ltmain"
14261 fi
14262 fi
14263
14264
14265 ac_ext=c
14266 ac_cpp='$CPP $CPPFLAGS'
14267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14270
14271 CC=$lt_save_CC
14272 LDCXX=$LD
14273 LD=$lt_save_LD
14274 GCC=$lt_save_GCC
14275 with_gnu_ldcxx=$with_gnu_ld
14276 with_gnu_ld=$lt_save_with_gnu_ld
14277 lt_cv_path_LDCXX=$lt_cv_path_LD
14278 lt_cv_path_LD=$lt_save_path_LD
14279 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14280 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14281
14282 else
14283 tagname=""
14284 fi
14285 ;;
14286
14287 F77)
14288 if test -n "$F77" && test "X$F77" != "Xno"; then
14289
14290 ac_ext=f
14291 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14292 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14293 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14294
14295
14296 archive_cmds_need_lc_F77=no
14297 allow_undefined_flag_F77=
14298 always_export_symbols_F77=no
14299 archive_expsym_cmds_F77=
14300 export_dynamic_flag_spec_F77=
14301 hardcode_direct_F77=no
14302 hardcode_libdir_flag_spec_F77=
14303 hardcode_libdir_flag_spec_ld_F77=
14304 hardcode_libdir_separator_F77=
14305 hardcode_minus_L_F77=no
14306 hardcode_automatic_F77=no
14307 module_cmds_F77=
14308 module_expsym_cmds_F77=
14309 link_all_deplibs_F77=unknown
14310 old_archive_cmds_F77=$old_archive_cmds
14311 no_undefined_flag_F77=
14312 whole_archive_flag_spec_F77=
14313 enable_shared_with_static_runtimes_F77=no
14314
14315 # Source file extension for f77 test sources.
14316 ac_ext=f
14317
14318 # Object file extension for compiled f77 test sources.
14319 objext=o
14320 objext_F77=$objext
14321
14322 # Code to be used in simple compile tests
14323 lt_simple_compile_test_code="\
14324 subroutine t
14325 return
14326 end
14327 "
14328
14329 # Code to be used in simple link tests
14330 lt_simple_link_test_code="\
14331 program t
14332 end
14333 "
14334
14335 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14336
14337 # If no C compiler was specified, use CC.
14338 LTCC=${LTCC-"$CC"}
14339
14340 # If no C compiler flags were specified, use CFLAGS.
14341 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14342
14343 # Allow CC to be a program name with arguments.
14344 compiler=$CC
14345
14346
14347 # save warnings/boilerplate of simple test code
14348 ac_outfile=conftest.$ac_objext
14349 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14350 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14351 _lt_compiler_boilerplate=`cat conftest.err`
14352 $rm conftest*
14353
14354 ac_outfile=conftest.$ac_objext
14355 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14356 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14357 _lt_linker_boilerplate=`cat conftest.err`
14358 $rm -r conftest*
14359
14360
14361 # Allow CC to be a program name with arguments.
14362 lt_save_CC="$CC"
14363 CC=${F77-"f77"}
14364 compiler=$CC
14365 compiler_F77=$CC
14366 for cc_temp in $compiler""; do
14367 case $cc_temp in
14368 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14369 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14370 \-*) ;;
14371 *) break;;
14372 esac
14373 done
14374 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14375
14376
14377 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14378 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14379 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
14380 $as_echo "$can_build_shared" >&6; }
14381
14382 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14383 $as_echo_n "checking whether to build shared libraries... " >&6; }
14384 test "$can_build_shared" = "no" && enable_shared=no
14385
14386 # On AIX, shared libraries and static libraries use the same namespace, and
14387 # are all built from PIC.
14388 case $host_os in
14389 aix3*)
14390 test "$enable_shared" = yes && enable_static=no
14391 if test -n "$RANLIB"; then
14392 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14393 postinstall_cmds='$RANLIB $lib'
14394 fi
14395 ;;
14396 aix[4-9]*)
14397 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14398 test "$enable_shared" = yes && enable_static=no
14399 fi
14400 ;;
14401 esac
14402 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
14403 $as_echo "$enable_shared" >&6; }
14404
14405 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14406 $as_echo_n "checking whether to build static libraries... " >&6; }
14407 # Make sure either enable_shared or enable_static is yes.
14408 test "$enable_shared" = yes || enable_static=yes
14409 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
14410 $as_echo "$enable_static" >&6; }
14411
14412 GCC_F77="$G77"
14413 LD_F77="$LD"
14414
14415 lt_prog_compiler_wl_F77=
14416 lt_prog_compiler_pic_F77=
14417 lt_prog_compiler_static_F77=
14418
14419 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14420 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14421
14422 if test "$GCC" = yes; then
14423 lt_prog_compiler_wl_F77='-Wl,'
14424 lt_prog_compiler_static_F77='-static'
14425
14426 case $host_os in
14427 aix*)
14428 # All AIX code is PIC.
14429 if test "$host_cpu" = ia64; then
14430 # AIX 5 now supports IA64 processor
14431 lt_prog_compiler_static_F77='-Bstatic'
14432 fi
14433 ;;
14434
14435 amigaos*)
14436 # FIXME: we need at least 68020 code to build shared libraries, but
14437 # adding the `-m68020' flag to GCC prevents building anything better,
14438 # like `-m68040'.
14439 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14440 ;;
14441
14442 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14443 # PIC is the default for these OSes.
14444 ;;
14445
14446 mingw* | cygwin* | pw32* | os2*)
14447 # This hack is so that the source file can tell whether it is being
14448 # built for inclusion in a dll (and should export symbols for example).
14449 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14450 # (--disable-auto-import) libraries
14451 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14452 ;;
14453
14454 darwin* | rhapsody*)
14455 # PIC is the default on this platform
14456 # Common symbols not allowed in MH_DYLIB files
14457 lt_prog_compiler_pic_F77='-fno-common'
14458 ;;
14459
14460 interix[3-9]*)
14461 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14462 # Instead, we relocate shared libraries at runtime.
14463 ;;
14464
14465 msdosdjgpp*)
14466 # Just because we use GCC doesn't mean we suddenly get shared libraries
14467 # on systems that don't support them.
14468 lt_prog_compiler_can_build_shared_F77=no
14469 enable_shared=no
14470 ;;
14471
14472 sysv4*MP*)
14473 if test -d /usr/nec; then
14474 lt_prog_compiler_pic_F77=-Kconform_pic
14475 fi
14476 ;;
14477
14478 hpux*)
14479 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14480 # not for PA HP-UX.
14481 case $host_cpu in
14482 hppa*64*|ia64*)
14483 # +Z the default
14484 ;;
14485 *)
14486 lt_prog_compiler_pic_F77='-fPIC'
14487 ;;
14488 esac
14489 ;;
14490
14491 *)
14492 lt_prog_compiler_pic_F77='-fPIC'
14493 ;;
14494 esac
14495 else
14496 # PORTME Check for flag to pass linker flags through the system compiler.
14497 case $host_os in
14498 aix*)
14499 lt_prog_compiler_wl_F77='-Wl,'
14500 if test "$host_cpu" = ia64; then
14501 # AIX 5 now supports IA64 processor
14502 lt_prog_compiler_static_F77='-Bstatic'
14503 else
14504 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14505 fi
14506 ;;
14507 darwin*)
14508 # PIC is the default on this platform
14509 # Common symbols not allowed in MH_DYLIB files
14510 case $cc_basename in
14511 xlc*)
14512 lt_prog_compiler_pic_F77='-qnocommon'
14513 lt_prog_compiler_wl_F77='-Wl,'
14514 ;;
14515 esac
14516 ;;
14517
14518 mingw* | cygwin* | pw32* | os2*)
14519 # This hack is so that the source file can tell whether it is being
14520 # built for inclusion in a dll (and should export symbols for example).
14521 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14522 ;;
14523
14524 hpux9* | hpux10* | hpux11*)
14525 lt_prog_compiler_wl_F77='-Wl,'
14526 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14527 # not for PA HP-UX.
14528 case $host_cpu in
14529 hppa*64*|ia64*)
14530 # +Z the default
14531 ;;
14532 *)
14533 lt_prog_compiler_pic_F77='+Z'
14534 ;;
14535 esac
14536 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14537 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14538 ;;
14539
14540 irix5* | irix6* | nonstopux*)
14541 lt_prog_compiler_wl_F77='-Wl,'
14542 # PIC (with -KPIC) is the default.
14543 lt_prog_compiler_static_F77='-non_shared'
14544 ;;
14545
14546 newsos6)
14547 lt_prog_compiler_pic_F77='-KPIC'
14548 lt_prog_compiler_static_F77='-Bstatic'
14549 ;;
14550
14551 linux* | k*bsd*-gnu)
14552 case $cc_basename in
14553 icc* | ecc*)
14554 lt_prog_compiler_wl_F77='-Wl,'
14555 lt_prog_compiler_pic_F77='-KPIC'
14556 lt_prog_compiler_static_F77='-static'
14557 ;;
14558 pgcc* | pgf77* | pgf90* | pgf95*)
14559 # Portland Group compilers (*not* the Pentium gcc compiler,
14560 # which looks to be a dead project)
14561 lt_prog_compiler_wl_F77='-Wl,'
14562 lt_prog_compiler_pic_F77='-fpic'
14563 lt_prog_compiler_static_F77='-Bstatic'
14564 ;;
14565 ccc*)
14566 lt_prog_compiler_wl_F77='-Wl,'
14567 # All Alpha code is PIC.
14568 lt_prog_compiler_static_F77='-non_shared'
14569 ;;
14570 *)
14571 case `$CC -V 2>&1 | sed 5q` in
14572 *Sun\ C*)
14573 # Sun C 5.9
14574 lt_prog_compiler_pic_F77='-KPIC'
14575 lt_prog_compiler_static_F77='-Bstatic'
14576 lt_prog_compiler_wl_F77='-Wl,'
14577 ;;
14578 *Sun\ F*)
14579 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14580 lt_prog_compiler_pic_F77='-KPIC'
14581 lt_prog_compiler_static_F77='-Bstatic'
14582 lt_prog_compiler_wl_F77=''
14583 ;;
14584 esac
14585 ;;
14586 esac
14587 ;;
14588
14589 osf3* | osf4* | osf5*)
14590 lt_prog_compiler_wl_F77='-Wl,'
14591 # All OSF/1 code is PIC.
14592 lt_prog_compiler_static_F77='-non_shared'
14593 ;;
14594
14595 rdos*)
14596 lt_prog_compiler_static_F77='-non_shared'
14597 ;;
14598
14599 solaris*)
14600 lt_prog_compiler_pic_F77='-KPIC'
14601 lt_prog_compiler_static_F77='-Bstatic'
14602 case $cc_basename in
14603 f77* | f90* | f95*)
14604 lt_prog_compiler_wl_F77='-Qoption ld ';;
14605 *)
14606 lt_prog_compiler_wl_F77='-Wl,';;
14607 esac
14608 ;;
14609
14610 sunos4*)
14611 lt_prog_compiler_wl_F77='-Qoption ld '
14612 lt_prog_compiler_pic_F77='-PIC'
14613 lt_prog_compiler_static_F77='-Bstatic'
14614 ;;
14615
14616 sysv4 | sysv4.2uw2* | sysv4.3*)
14617 lt_prog_compiler_wl_F77='-Wl,'
14618 lt_prog_compiler_pic_F77='-KPIC'
14619 lt_prog_compiler_static_F77='-Bstatic'
14620 ;;
14621
14622 sysv4*MP*)
14623 if test -d /usr/nec ;then
14624 lt_prog_compiler_pic_F77='-Kconform_pic'
14625 lt_prog_compiler_static_F77='-Bstatic'
14626 fi
14627 ;;
14628
14629 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14630 lt_prog_compiler_wl_F77='-Wl,'
14631 lt_prog_compiler_pic_F77='-KPIC'
14632 lt_prog_compiler_static_F77='-Bstatic'
14633 ;;
14634
14635 unicos*)
14636 lt_prog_compiler_wl_F77='-Wl,'
14637 lt_prog_compiler_can_build_shared_F77=no
14638 ;;
14639
14640 uts4*)
14641 lt_prog_compiler_pic_F77='-pic'
14642 lt_prog_compiler_static_F77='-Bstatic'
14643 ;;
14644
14645 *)
14646 lt_prog_compiler_can_build_shared_F77=no
14647 ;;
14648 esac
14649 fi
14650
14651 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14652 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
14653
14654 #
14655 # Check to make sure the PIC flag actually works.
14656 #
14657 if test -n "$lt_prog_compiler_pic_F77"; then
14658
14659 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14660 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14661 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14662 $as_echo_n "(cached) " >&6
14663 else
14664 lt_cv_prog_compiler_pic_works_F77=no
14665 ac_outfile=conftest.$ac_objext
14666 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14667 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14668 # Insert the option either (1) after the last *FLAGS variable, or
14669 # (2) before a word containing "conftest.", or (3) at the end.
14670 # Note that $ac_compile itself does not contain backslashes and begins
14671 # with a dollar sign (not a hyphen), so the echo should work correctly.
14672 # The option is referenced via a variable to avoid confusing sed.
14673 lt_compile=`echo "$ac_compile" | $SED \
14674 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14675 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14676 -e 's:$: $lt_compiler_flag:'`
14677 (eval echo "\"\$as_me:14677: $lt_compile\"" >&5)
14678 (eval "$lt_compile" 2>conftest.err)
14679 ac_status=$?
14680 cat conftest.err >&5
14681 echo "$as_me:14681: \$? = $ac_status" >&5
14682 if (exit $ac_status) && test -s "$ac_outfile"; then
14683 # The compiler can only warn and ignore the option if not recognized
14684 # So say no if there are warnings other than the usual output.
14685 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14686 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14687 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14688 lt_cv_prog_compiler_pic_works_F77=yes
14689 fi
14690 fi
14691 $rm conftest*
14692
14693 fi
14694 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14695 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
14696
14697 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14698 case $lt_prog_compiler_pic_F77 in
14699 "" | " "*) ;;
14700 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14701 esac
14702 else
14703 lt_prog_compiler_pic_F77=
14704 lt_prog_compiler_can_build_shared_F77=no
14705 fi
14706
14707 fi
14708 case $host_os in
14709 # For platforms which do not support PIC, -DPIC is meaningless:
14710 *djgpp*)
14711 lt_prog_compiler_pic_F77=
14712 ;;
14713 *)
14714 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14715 ;;
14716 esac
14717
14718 #
14719 # Check to make sure the static flag actually works.
14720 #
14721 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14722 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14723 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14724 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14725 $as_echo_n "(cached) " >&6
14726 else
14727 lt_cv_prog_compiler_static_works_F77=no
14728 save_LDFLAGS="$LDFLAGS"
14729 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14730 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14731 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14732 # The linker can only warn and ignore the option if not recognized
14733 # So say no if there are warnings
14734 if test -s conftest.err; then
14735 # Append any errors to the config.log.
14736 cat conftest.err 1>&5
14737 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14738 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14739 if diff conftest.exp conftest.er2 >/dev/null; then
14740 lt_cv_prog_compiler_static_works_F77=yes
14741 fi
14742 else
14743 lt_cv_prog_compiler_static_works_F77=yes
14744 fi
14745 fi
14746 $rm -r conftest*
14747 LDFLAGS="$save_LDFLAGS"
14748
14749 fi
14750 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14751 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
14752
14753 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14754 :
14755 else
14756 lt_prog_compiler_static_F77=
14757 fi
14758
14759
14760 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14761 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14762 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14763 $as_echo_n "(cached) " >&6
14764 else
14765 lt_cv_prog_compiler_c_o_F77=no
14766 $rm -r conftest 2>/dev/null
14767 mkdir conftest
14768 cd conftest
14769 mkdir out
14770 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14771
14772 lt_compiler_flag="-o out/conftest2.$ac_objext"
14773 # Insert the option either (1) after the last *FLAGS variable, or
14774 # (2) before a word containing "conftest.", or (3) at the end.
14775 # Note that $ac_compile itself does not contain backslashes and begins
14776 # with a dollar sign (not a hyphen), so the echo should work correctly.
14777 lt_compile=`echo "$ac_compile" | $SED \
14778 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14779 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14780 -e 's:$: $lt_compiler_flag:'`
14781 (eval echo "\"\$as_me:14781: $lt_compile\"" >&5)
14782 (eval "$lt_compile" 2>out/conftest.err)
14783 ac_status=$?
14784 cat out/conftest.err >&5
14785 echo "$as_me:14785: \$? = $ac_status" >&5
14786 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14787 then
14788 # The compiler can only warn and ignore the option if not recognized
14789 # So say no if there are warnings
14790 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14791 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14792 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14793 lt_cv_prog_compiler_c_o_F77=yes
14794 fi
14795 fi
14796 chmod u+w . 2>&5
14797 $rm conftest*
14798 # SGI C++ compiler will create directory out/ii_files/ for
14799 # template instantiation
14800 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14801 $rm out/* && rmdir out
14802 cd ..
14803 rmdir conftest
14804 $rm conftest*
14805
14806 fi
14807 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14808 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14809
14810
14811 hard_links="nottested"
14812 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14813 # do not overwrite the value of need_locks provided by the user
14814 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14815 $as_echo_n "checking if we can lock with hard links... " >&6; }
14816 hard_links=yes
14817 $rm conftest*
14818 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14819 touch conftest.a
14820 ln conftest.a conftest.b 2>&5 || hard_links=no
14821 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14822 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
14823 $as_echo "$hard_links" >&6; }
14824 if test "$hard_links" = no; then
14825 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14826 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14827 need_locks=warn
14828 fi
14829 else
14830 need_locks=no
14831 fi
14832
14833 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14834 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14835
14836 runpath_var=
14837 allow_undefined_flag_F77=
14838 enable_shared_with_static_runtimes_F77=no
14839 archive_cmds_F77=
14840 archive_expsym_cmds_F77=
14841 old_archive_From_new_cmds_F77=
14842 old_archive_from_expsyms_cmds_F77=
14843 export_dynamic_flag_spec_F77=
14844 whole_archive_flag_spec_F77=
14845 thread_safe_flag_spec_F77=
14846 hardcode_libdir_flag_spec_F77=
14847 hardcode_libdir_flag_spec_ld_F77=
14848 hardcode_libdir_separator_F77=
14849 hardcode_direct_F77=no
14850 hardcode_minus_L_F77=no
14851 hardcode_shlibpath_var_F77=unsupported
14852 link_all_deplibs_F77=unknown
14853 hardcode_automatic_F77=no
14854 module_cmds_F77=
14855 module_expsym_cmds_F77=
14856 always_export_symbols_F77=no
14857 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14858 # include_expsyms should be a list of space-separated symbols to be *always*
14859 # included in the symbol list
14860 include_expsyms_F77=
14861 # exclude_expsyms can be an extended regexp of symbols to exclude
14862 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14863 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14864 # as well as any symbol that contains `d'.
14865 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14866 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14867 # platforms (ab)use it in PIC code, but their linkers get confused if
14868 # the symbol is explicitly referenced. Since portable code cannot
14869 # rely on this symbol name, it's probably fine to never include it in
14870 # preloaded symbol tables.
14871 # Exclude shared library initialization/finalization symbols.
14872 extract_expsyms_cmds=
14873 # Just being paranoid about ensuring that cc_basename is set.
14874 for cc_temp in $compiler""; do
14875 case $cc_temp in
14876 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14877 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14878 \-*) ;;
14879 *) break;;
14880 esac
14881 done
14882 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14883
14884 case $host_os in
14885 cygwin* | mingw* | pw32*)
14886 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14887 # When not using gcc, we currently assume that we are using
14888 # Microsoft Visual C++.
14889 if test "$GCC" != yes; then
14890 with_gnu_ld=no
14891 fi
14892 ;;
14893 interix*)
14894 # we just hope/assume this is gcc and not c89 (= MSVC++)
14895 with_gnu_ld=yes
14896 ;;
14897 openbsd*)
14898 with_gnu_ld=no
14899 ;;
14900 esac
14901
14902 ld_shlibs_F77=yes
14903 if test "$with_gnu_ld" = yes; then
14904 # If archive_cmds runs LD, not CC, wlarc should be empty
14905 wlarc='${wl}'
14906
14907 # Set some defaults for GNU ld with shared library support. These
14908 # are reset later if shared libraries are not supported. Putting them
14909 # here allows them to be overridden if necessary.
14910 runpath_var=LD_RUN_PATH
14911 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14912 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14913 # ancient GNU ld didn't support --whole-archive et. al.
14914 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14915 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14916 else
14917 whole_archive_flag_spec_F77=
14918 fi
14919 supports_anon_versioning=no
14920 case `$LD -v 2>/dev/null` in
14921 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14922 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14923 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14924 *\ 2.11.*) ;; # other 2.11 versions
14925 *) supports_anon_versioning=yes ;;
14926 esac
14927
14928 # See if GNU ld supports shared libraries.
14929 case $host_os in
14930 aix[3-9]*)
14931 # On AIX/PPC, the GNU linker is very broken
14932 if test "$host_cpu" != ia64; then
14933 ld_shlibs_F77=no
14934 cat <<EOF 1>&2
14935
14936 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14937 *** to be unable to reliably create shared libraries on AIX.
14938 *** Therefore, libtool is disabling shared libraries support. If you
14939 *** really care for shared libraries, you may want to modify your PATH
14940 *** so that a non-GNU linker is found, and then restart.
14941
14942 EOF
14943 fi
14944 ;;
14945
14946 amigaos*)
14947 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)'
14948 hardcode_libdir_flag_spec_F77='-L$libdir'
14949 hardcode_minus_L_F77=yes
14950
14951 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
14952 # that the semantics of dynamic libraries on AmigaOS, at least up
14953 # to version 4, is to share data among multiple programs linked
14954 # with the same dynamic library. Since this doesn't match the
14955 # behavior of shared libraries on other platforms, we can't use
14956 # them.
14957 ld_shlibs_F77=no
14958 ;;
14959
14960 beos*)
14961 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14962 allow_undefined_flag_F77=unsupported
14963 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
14964 # support --undefined. This deserves some investigation. FIXME
14965 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14966 else
14967 ld_shlibs_F77=no
14968 fi
14969 ;;
14970
14971 cygwin* | mingw* | pw32*)
14972 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14973 # as there is no search path for DLLs.
14974 hardcode_libdir_flag_spec_F77='-L$libdir'
14975 allow_undefined_flag_F77=unsupported
14976 always_export_symbols_F77=no
14977 enable_shared_with_static_runtimes_F77=yes
14978 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14979
14980 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14981 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14982 # If the export-symbols file already is a .def file (1st line
14983 # is EXPORTS), use it as is; otherwise, prepend...
14984 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14985 cp $export_symbols $output_objdir/$soname.def;
14986 else
14987 echo EXPORTS > $output_objdir/$soname.def;
14988 cat $export_symbols >> $output_objdir/$soname.def;
14989 fi~
14990 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14991 else
14992 ld_shlibs_F77=no
14993 fi
14994 ;;
14995
14996 interix[3-9]*)
14997 hardcode_direct_F77=no
14998 hardcode_shlibpath_var_F77=no
14999 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15000 export_dynamic_flag_spec_F77='${wl}-E'
15001 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15002 # Instead, shared libraries are loaded at an image base (0x10000000 by
15003 # default) and relocated if they conflict, which is a slow very memory
15004 # consuming and fragmenting process. To avoid this, we pick a random,
15005 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15006 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15007 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'
15008 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'
15009 ;;
15010
15011 gnu* | linux* | k*bsd*-gnu)
15012 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15013 tmp_addflag=
15014 case $cc_basename,$host_cpu in
15015 pgcc*) # Portland Group C compiler
15016 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'
15017 tmp_addflag=' $pic_flag'
15018 ;;
15019 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15020 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'
15021 tmp_addflag=' $pic_flag -Mnomain' ;;
15022 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15023 tmp_addflag=' -i_dynamic' ;;
15024 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15025 tmp_addflag=' -i_dynamic -nofor_main' ;;
15026 ifc* | ifort*) # Intel Fortran compiler
15027 tmp_addflag=' -nofor_main' ;;
15028 esac
15029 case `$CC -V 2>&1 | sed 5q` in
15030 *Sun\ C*) # Sun C 5.9
15031 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15032 tmp_sharedflag='-G' ;;
15033 *Sun\ F*) # Sun Fortran 8.3
15034 tmp_sharedflag='-G' ;;
15035 *)
15036 tmp_sharedflag='-shared' ;;
15037 esac
15038 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15039
15040 if test $supports_anon_versioning = yes; then
15041 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15042 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15043 $echo "local: *; };" >> $output_objdir/$libname.ver~
15044 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15045 fi
15046 else
15047 ld_shlibs_F77=no
15048 fi
15049 ;;
15050
15051 netbsd*)
15052 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15053 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15054 wlarc=
15055 else
15056 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15057 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15058 fi
15059 ;;
15060
15061 solaris*)
15062 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15063 ld_shlibs_F77=no
15064 cat <<EOF 1>&2
15065
15066 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15067 *** create shared libraries on Solaris systems. Therefore, libtool
15068 *** is disabling shared libraries support. We urge you to upgrade GNU
15069 *** binutils to release 2.9.1 or newer. Another option is to modify
15070 *** your PATH or compiler configuration so that the native linker is
15071 *** used, and then restart.
15072
15073 EOF
15074 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15075 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15076 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15077 else
15078 ld_shlibs_F77=no
15079 fi
15080 ;;
15081
15082 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15083 case `$LD -v 2>&1` in
15084 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15085 ld_shlibs_F77=no
15086 cat <<_LT_EOF 1>&2
15087
15088 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15089 *** reliably create shared libraries on SCO systems. Therefore, libtool
15090 *** is disabling shared libraries support. We urge you to upgrade GNU
15091 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15092 *** your PATH or compiler configuration so that the native linker is
15093 *** used, and then restart.
15094
15095 _LT_EOF
15096 ;;
15097 *)
15098 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15099 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15100 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15101 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15102 else
15103 ld_shlibs_F77=no
15104 fi
15105 ;;
15106 esac
15107 ;;
15108
15109 sunos4*)
15110 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15111 wlarc=
15112 hardcode_direct_F77=yes
15113 hardcode_shlibpath_var_F77=no
15114 ;;
15115
15116 *)
15117 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15118 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15119 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15120 else
15121 ld_shlibs_F77=no
15122 fi
15123 ;;
15124 esac
15125
15126 if test "$ld_shlibs_F77" = no; then
15127 runpath_var=
15128 hardcode_libdir_flag_spec_F77=
15129 export_dynamic_flag_spec_F77=
15130 whole_archive_flag_spec_F77=
15131 fi
15132 else
15133 # PORTME fill in a description of your system's linker (not GNU ld)
15134 case $host_os in
15135 aix3*)
15136 allow_undefined_flag_F77=unsupported
15137 always_export_symbols_F77=yes
15138 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'
15139 # Note: this linker hardcodes the directories in LIBPATH if there
15140 # are no directories specified by -L.
15141 hardcode_minus_L_F77=yes
15142 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15143 # Neither direct hardcoding nor static linking is supported with a
15144 # broken collect2.
15145 hardcode_direct_F77=unsupported
15146 fi
15147 ;;
15148
15149 aix[4-9]*)
15150 if test "$host_cpu" = ia64; then
15151 # On IA64, the linker does run time linking by default, so we don't
15152 # have to do anything special.
15153 aix_use_runtimelinking=no
15154 exp_sym_flag='-Bexport'
15155 no_entry_flag=""
15156 else
15157 # If we're using GNU nm, then we don't want the "-C" option.
15158 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15159 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15160 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'
15161 else
15162 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'
15163 fi
15164 aix_use_runtimelinking=no
15165
15166 # Test if we are trying to use run time linking or normal
15167 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15168 # need to do runtime linking.
15169 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15170 for ld_flag in $LDFLAGS; do
15171 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15172 aix_use_runtimelinking=yes
15173 break
15174 fi
15175 done
15176 ;;
15177 esac
15178
15179 exp_sym_flag='-bexport'
15180 no_entry_flag='-bnoentry'
15181 fi
15182
15183 # When large executables or shared objects are built, AIX ld can
15184 # have problems creating the table of contents. If linking a library
15185 # or program results in "error TOC overflow" add -mminimal-toc to
15186 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15187 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15188
15189 archive_cmds_F77=''
15190 hardcode_direct_F77=yes
15191 hardcode_libdir_separator_F77=':'
15192 link_all_deplibs_F77=yes
15193
15194 if test "$GCC" = yes; then
15195 case $host_os in aix4.[012]|aix4.[012].*)
15196 # We only want to do this on AIX 4.2 and lower, the check
15197 # below for broken collect2 doesn't work under 4.3+
15198 collect2name=`${CC} -print-prog-name=collect2`
15199 if test -f "$collect2name" && \
15200 strings "$collect2name" | grep resolve_lib_name >/dev/null
15201 then
15202 # We have reworked collect2
15203 :
15204 else
15205 # We have old collect2
15206 hardcode_direct_F77=unsupported
15207 # It fails to find uninstalled libraries when the uninstalled
15208 # path is not listed in the libpath. Setting hardcode_minus_L
15209 # to unsupported forces relinking
15210 hardcode_minus_L_F77=yes
15211 hardcode_libdir_flag_spec_F77='-L$libdir'
15212 hardcode_libdir_separator_F77=
15213 fi
15214 ;;
15215 esac
15216 shared_flag='-shared'
15217 if test "$aix_use_runtimelinking" = yes; then
15218 shared_flag="$shared_flag "'${wl}-G'
15219 fi
15220 else
15221 # not using gcc
15222 if test "$host_cpu" = ia64; then
15223 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15224 # chokes on -Wl,-G. The following line is correct:
15225 shared_flag='-G'
15226 else
15227 if test "$aix_use_runtimelinking" = yes; then
15228 shared_flag='${wl}-G'
15229 else
15230 shared_flag='${wl}-bM:SRE'
15231 fi
15232 fi
15233 fi
15234
15235 # It seems that -bexpall does not export symbols beginning with
15236 # underscore (_), so it is better to generate a list of symbols to export.
15237 always_export_symbols_F77=yes
15238 if test "$aix_use_runtimelinking" = yes; then
15239 # Warning - without using the other runtime loading flags (-brtl),
15240 # -berok will link without error, but may produce a broken library.
15241 allow_undefined_flag_F77='-berok'
15242 # Determine the default libpath from the value encoded in an empty executable.
15243 cat >conftest.$ac_ext <<_ACEOF
15244 program main
15245
15246 end
15247 _ACEOF
15248 rm -f conftest.$ac_objext conftest$ac_exeext
15249 if { (ac_try="$ac_link"
15250 case "(($ac_try" in
15251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15252 *) ac_try_echo=$ac_try;;
15253 esac
15254 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15255 $as_echo "$ac_try_echo") >&5
15256 (eval "$ac_link") 2>conftest.er1
15257 ac_status=$?
15258 grep -v '^ *+' conftest.er1 >conftest.err
15259 rm -f conftest.er1
15260 cat conftest.err >&5
15261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262 (exit $ac_status); } && {
15263 test -z "$ac_f77_werror_flag" ||
15264 test ! -s conftest.err
15265 } && test -s conftest$ac_exeext && {
15266 test "$cross_compiling" = yes ||
15267 $as_test_x conftest$ac_exeext
15268 }; then
15269
15270 lt_aix_libpath_sed='
15271 /Import File Strings/,/^$/ {
15272 /^0/ {
15273 s/^0 *\(.*\)$/\1/
15274 p
15275 }
15276 }'
15277 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15278 # Check for a 64-bit object if we didn't find anything.
15279 if test -z "$aix_libpath"; then
15280 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15281 fi
15282 else
15283 $as_echo "$as_me: failed program was:" >&5
15284 sed 's/^/| /' conftest.$ac_ext >&5
15285
15286
15287 fi
15288
15289 rm -rf conftest.dSYM
15290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15291 conftest$ac_exeext conftest.$ac_ext
15292 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15293
15294 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15295 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"
15296 else
15297 if test "$host_cpu" = ia64; then
15298 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15299 allow_undefined_flag_F77="-z nodefs"
15300 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"
15301 else
15302 # Determine the default libpath from the value encoded in an empty executable.
15303 cat >conftest.$ac_ext <<_ACEOF
15304 program main
15305
15306 end
15307 _ACEOF
15308 rm -f conftest.$ac_objext conftest$ac_exeext
15309 if { (ac_try="$ac_link"
15310 case "(($ac_try" in
15311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15312 *) ac_try_echo=$ac_try;;
15313 esac
15314 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15315 $as_echo "$ac_try_echo") >&5
15316 (eval "$ac_link") 2>conftest.er1
15317 ac_status=$?
15318 grep -v '^ *+' conftest.er1 >conftest.err
15319 rm -f conftest.er1
15320 cat conftest.err >&5
15321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15322 (exit $ac_status); } && {
15323 test -z "$ac_f77_werror_flag" ||
15324 test ! -s conftest.err
15325 } && test -s conftest$ac_exeext && {
15326 test "$cross_compiling" = yes ||
15327 $as_test_x conftest$ac_exeext
15328 }; then
15329
15330 lt_aix_libpath_sed='
15331 /Import File Strings/,/^$/ {
15332 /^0/ {
15333 s/^0 *\(.*\)$/\1/
15334 p
15335 }
15336 }'
15337 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15338 # Check for a 64-bit object if we didn't find anything.
15339 if test -z "$aix_libpath"; then
15340 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15341 fi
15342 else
15343 $as_echo "$as_me: failed program was:" >&5
15344 sed 's/^/| /' conftest.$ac_ext >&5
15345
15346
15347 fi
15348
15349 rm -rf conftest.dSYM
15350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15351 conftest$ac_exeext conftest.$ac_ext
15352 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15353
15354 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15355 # Warning - without using the other run time loading flags,
15356 # -berok will link without error, but may produce a broken library.
15357 no_undefined_flag_F77=' ${wl}-bernotok'
15358 allow_undefined_flag_F77=' ${wl}-berok'
15359 # Exported symbols can be pulled into shared objects from archives
15360 whole_archive_flag_spec_F77='$convenience'
15361 archive_cmds_need_lc_F77=yes
15362 # This is similar to how AIX traditionally builds its shared libraries.
15363 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'
15364 fi
15365 fi
15366 ;;
15367
15368 amigaos*)
15369 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)'
15370 hardcode_libdir_flag_spec_F77='-L$libdir'
15371 hardcode_minus_L_F77=yes
15372 # see comment about different semantics on the GNU ld section
15373 ld_shlibs_F77=no
15374 ;;
15375
15376 bsdi[45]*)
15377 export_dynamic_flag_spec_F77=-rdynamic
15378 ;;
15379
15380 cygwin* | mingw* | pw32*)
15381 # When not using gcc, we currently assume that we are using
15382 # Microsoft Visual C++.
15383 # hardcode_libdir_flag_spec is actually meaningless, as there is
15384 # no search path for DLLs.
15385 hardcode_libdir_flag_spec_F77=' '
15386 allow_undefined_flag_F77=unsupported
15387 # Tell ltmain to make .lib files, not .a files.
15388 libext=lib
15389 # Tell ltmain to make .dll files, not .so files.
15390 shrext_cmds=".dll"
15391 # FIXME: Setting linknames here is a bad hack.
15392 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15393 # The linker will automatically build a .lib file if we build a DLL.
15394 old_archive_From_new_cmds_F77='true'
15395 # FIXME: Should let the user specify the lib program.
15396 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15397 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15398 enable_shared_with_static_runtimes_F77=yes
15399 ;;
15400
15401 darwin* | rhapsody*)
15402 case $host_os in
15403 rhapsody* | darwin1.[012])
15404 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15405 ;;
15406 *) # Darwin 1.3 on
15407 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15408 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15409 else
15410 case ${MACOSX_DEPLOYMENT_TARGET} in
15411 10.[012])
15412 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15413 ;;
15414 10.*)
15415 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15416 ;;
15417 esac
15418 fi
15419 ;;
15420 esac
15421 archive_cmds_need_lc_F77=no
15422 hardcode_direct_F77=no
15423 hardcode_automatic_F77=yes
15424 hardcode_shlibpath_var_F77=unsupported
15425 whole_archive_flag_spec_F77=''
15426 link_all_deplibs_F77=yes
15427 if test "$GCC" = yes ; then
15428 output_verbose_link_cmd='echo'
15429 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15430 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15431 archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15432 module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15433 else
15434 case $cc_basename in
15435 xlc*)
15436 output_verbose_link_cmd='echo'
15437 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15438 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15439 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15440 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15441 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}'
15442 ;;
15443 *)
15444 ld_shlibs_F77=no
15445 ;;
15446 esac
15447 fi
15448 ;;
15449
15450 dgux*)
15451 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15452 hardcode_libdir_flag_spec_F77='-L$libdir'
15453 hardcode_shlibpath_var_F77=no
15454 ;;
15455
15456 freebsd1*)
15457 ld_shlibs_F77=no
15458 ;;
15459
15460 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15461 # support. Future versions do this automatically, but an explicit c++rt0.o
15462 # does not break anything, and helps significantly (at the cost of a little
15463 # extra space).
15464 freebsd2.2*)
15465 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15466 hardcode_libdir_flag_spec_F77='-R$libdir'
15467 hardcode_direct_F77=yes
15468 hardcode_shlibpath_var_F77=no
15469 ;;
15470
15471 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15472 freebsd2*)
15473 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15474 hardcode_direct_F77=yes
15475 hardcode_minus_L_F77=yes
15476 hardcode_shlibpath_var_F77=no
15477 ;;
15478
15479 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15480 freebsd* | dragonfly*)
15481 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15482 hardcode_libdir_flag_spec_F77='-R$libdir'
15483 hardcode_direct_F77=yes
15484 hardcode_shlibpath_var_F77=no
15485 ;;
15486
15487 hpux9*)
15488 if test "$GCC" = yes; then
15489 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'
15490 else
15491 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'
15492 fi
15493 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15494 hardcode_libdir_separator_F77=:
15495 hardcode_direct_F77=yes
15496
15497 # hardcode_minus_L: Not really in the search PATH,
15498 # but as the default location of the library.
15499 hardcode_minus_L_F77=yes
15500 export_dynamic_flag_spec_F77='${wl}-E'
15501 ;;
15502
15503 hpux10*)
15504 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15505 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15506 else
15507 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15508 fi
15509 if test "$with_gnu_ld" = no; then
15510 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15511 hardcode_libdir_separator_F77=:
15512
15513 hardcode_direct_F77=yes
15514 export_dynamic_flag_spec_F77='${wl}-E'
15515
15516 # hardcode_minus_L: Not really in the search PATH,
15517 # but as the default location of the library.
15518 hardcode_minus_L_F77=yes
15519 fi
15520 ;;
15521
15522 hpux11*)
15523 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15524 case $host_cpu in
15525 hppa*64*)
15526 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15527 ;;
15528 ia64*)
15529 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15530 ;;
15531 *)
15532 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15533 ;;
15534 esac
15535 else
15536 case $host_cpu in
15537 hppa*64*)
15538 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15539 ;;
15540 ia64*)
15541 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15542 ;;
15543 *)
15544 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15545 ;;
15546 esac
15547 fi
15548 if test "$with_gnu_ld" = no; then
15549 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15550 hardcode_libdir_separator_F77=:
15551
15552 case $host_cpu in
15553 hppa*64*|ia64*)
15554 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15555 hardcode_direct_F77=no
15556 hardcode_shlibpath_var_F77=no
15557 ;;
15558 *)
15559 hardcode_direct_F77=yes
15560 export_dynamic_flag_spec_F77='${wl}-E'
15561
15562 # hardcode_minus_L: Not really in the search PATH,
15563 # but as the default location of the library.
15564 hardcode_minus_L_F77=yes
15565 ;;
15566 esac
15567 fi
15568 ;;
15569
15570 irix5* | irix6* | nonstopux*)
15571 if test "$GCC" = yes; then
15572 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'
15573 else
15574 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'
15575 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15576 fi
15577 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15578 hardcode_libdir_separator_F77=:
15579 link_all_deplibs_F77=yes
15580 ;;
15581
15582 netbsd*)
15583 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15584 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15585 else
15586 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15587 fi
15588 hardcode_libdir_flag_spec_F77='-R$libdir'
15589 hardcode_direct_F77=yes
15590 hardcode_shlibpath_var_F77=no
15591 ;;
15592
15593 newsos6)
15594 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15595 hardcode_direct_F77=yes
15596 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15597 hardcode_libdir_separator_F77=:
15598 hardcode_shlibpath_var_F77=no
15599 ;;
15600
15601 openbsd*)
15602 if test -f /usr/libexec/ld.so; then
15603 hardcode_direct_F77=yes
15604 hardcode_shlibpath_var_F77=no
15605 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15606 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15607 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15608 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15609 export_dynamic_flag_spec_F77='${wl}-E'
15610 else
15611 case $host_os in
15612 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15613 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15614 hardcode_libdir_flag_spec_F77='-R$libdir'
15615 ;;
15616 *)
15617 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15618 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15619 ;;
15620 esac
15621 fi
15622 else
15623 ld_shlibs_F77=no
15624 fi
15625 ;;
15626
15627 os2*)
15628 hardcode_libdir_flag_spec_F77='-L$libdir'
15629 hardcode_minus_L_F77=yes
15630 allow_undefined_flag_F77=unsupported
15631 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'
15632 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15633 ;;
15634
15635 osf3*)
15636 if test "$GCC" = yes; then
15637 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15638 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'
15639 else
15640 allow_undefined_flag_F77=' -expect_unresolved \*'
15641 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'
15642 fi
15643 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15644 hardcode_libdir_separator_F77=:
15645 ;;
15646
15647 osf4* | osf5*) # as osf3* with the addition of -msym flag
15648 if test "$GCC" = yes; then
15649 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15650 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'
15651 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15652 else
15653 allow_undefined_flag_F77=' -expect_unresolved \*'
15654 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'
15655 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~
15656 $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'
15657
15658 # Both c and cxx compiler support -rpath directly
15659 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15660 fi
15661 hardcode_libdir_separator_F77=:
15662 ;;
15663
15664 solaris*)
15665 no_undefined_flag_F77=' -z text'
15666 if test "$GCC" = yes; then
15667 wlarc='${wl}'
15668 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15669 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15670 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15671 else
15672 wlarc=''
15673 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15674 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15675 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15676 fi
15677 hardcode_libdir_flag_spec_F77='-R$libdir'
15678 hardcode_shlibpath_var_F77=no
15679 case $host_os in
15680 solaris2.[0-5] | solaris2.[0-5].*) ;;
15681 *)
15682 # The compiler driver will combine and reorder linker options,
15683 # but understands `-z linker_flag'. GCC discards it without `$wl',
15684 # but is careful enough not to reorder.
15685 # Supported since Solaris 2.6 (maybe 2.5.1?)
15686 if test "$GCC" = yes; then
15687 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15688 else
15689 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15690 fi
15691 ;;
15692 esac
15693 link_all_deplibs_F77=yes
15694 ;;
15695
15696 sunos4*)
15697 if test "x$host_vendor" = xsequent; then
15698 # Use $CC to link under sequent, because it throws in some extra .o
15699 # files that make .init and .fini sections work.
15700 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15701 else
15702 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15703 fi
15704 hardcode_libdir_flag_spec_F77='-L$libdir'
15705 hardcode_direct_F77=yes
15706 hardcode_minus_L_F77=yes
15707 hardcode_shlibpath_var_F77=no
15708 ;;
15709
15710 sysv4)
15711 case $host_vendor in
15712 sni)
15713 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15714 hardcode_direct_F77=yes # is this really true???
15715 ;;
15716 siemens)
15717 ## LD is ld it makes a PLAMLIB
15718 ## CC just makes a GrossModule.
15719 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15720 reload_cmds_F77='$CC -r -o $output$reload_objs'
15721 hardcode_direct_F77=no
15722 ;;
15723 motorola)
15724 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15725 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15726 ;;
15727 esac
15728 runpath_var='LD_RUN_PATH'
15729 hardcode_shlibpath_var_F77=no
15730 ;;
15731
15732 sysv4.3*)
15733 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15734 hardcode_shlibpath_var_F77=no
15735 export_dynamic_flag_spec_F77='-Bexport'
15736 ;;
15737
15738 sysv4*MP*)
15739 if test -d /usr/nec; then
15740 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15741 hardcode_shlibpath_var_F77=no
15742 runpath_var=LD_RUN_PATH
15743 hardcode_runpath_var=yes
15744 ld_shlibs_F77=yes
15745 fi
15746 ;;
15747
15748 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15749 no_undefined_flag_F77='${wl}-z,text'
15750 archive_cmds_need_lc_F77=no
15751 hardcode_shlibpath_var_F77=no
15752 runpath_var='LD_RUN_PATH'
15753
15754 if test "$GCC" = yes; then
15755 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15756 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15757 else
15758 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15759 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15760 fi
15761 ;;
15762
15763 sysv5* | sco3.2v5* | sco5v6*)
15764 # Note: We can NOT use -z defs as we might desire, because we do not
15765 # link with -lc, and that would cause any symbols used from libc to
15766 # always be unresolved, which means just about no library would
15767 # ever link correctly. If we're not using GNU ld we use -z text
15768 # though, which does catch some bad symbols but isn't as heavy-handed
15769 # as -z defs.
15770 no_undefined_flag_F77='${wl}-z,text'
15771 allow_undefined_flag_F77='${wl}-z,nodefs'
15772 archive_cmds_need_lc_F77=no
15773 hardcode_shlibpath_var_F77=no
15774 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15775 hardcode_libdir_separator_F77=':'
15776 link_all_deplibs_F77=yes
15777 export_dynamic_flag_spec_F77='${wl}-Bexport'
15778 runpath_var='LD_RUN_PATH'
15779
15780 if test "$GCC" = yes; then
15781 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15782 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15783 else
15784 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15785 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15786 fi
15787 ;;
15788
15789 uts4*)
15790 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15791 hardcode_libdir_flag_spec_F77='-L$libdir'
15792 hardcode_shlibpath_var_F77=no
15793 ;;
15794
15795 *)
15796 ld_shlibs_F77=no
15797 ;;
15798 esac
15799 fi
15800
15801 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15802 $as_echo "$ld_shlibs_F77" >&6; }
15803 test "$ld_shlibs_F77" = no && can_build_shared=no
15804
15805 #
15806 # Do we need to explicitly link libc?
15807 #
15808 case "x$archive_cmds_need_lc_F77" in
15809 x|xyes)
15810 # Assume -lc should be added
15811 archive_cmds_need_lc_F77=yes
15812
15813 if test "$enable_shared" = yes && test "$GCC" = yes; then
15814 case $archive_cmds_F77 in
15815 *'~'*)
15816 # FIXME: we may have to deal with multi-command sequences.
15817 ;;
15818 '$CC '*)
15819 # Test whether the compiler implicitly links with -lc since on some
15820 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15821 # to ld, don't add -lc before -lgcc.
15822 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15823 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15824 $rm conftest*
15825 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15826
15827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15828 (eval $ac_compile) 2>&5
15829 ac_status=$?
15830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15831 (exit $ac_status); } 2>conftest.err; then
15832 soname=conftest
15833 lib=conftest
15834 libobjs=conftest.$ac_objext
15835 deplibs=
15836 wl=$lt_prog_compiler_wl_F77
15837 pic_flag=$lt_prog_compiler_pic_F77
15838 compiler_flags=-v
15839 linker_flags=-v
15840 verstring=
15841 output_objdir=.
15842 libname=conftest
15843 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15844 allow_undefined_flag_F77=
15845 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15846 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15847 ac_status=$?
15848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15849 (exit $ac_status); }
15850 then
15851 archive_cmds_need_lc_F77=no
15852 else
15853 archive_cmds_need_lc_F77=yes
15854 fi
15855 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15856 else
15857 cat conftest.err 1>&5
15858 fi
15859 $rm conftest*
15860 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15861 $as_echo "$archive_cmds_need_lc_F77" >&6; }
15862 ;;
15863 esac
15864 fi
15865 ;;
15866 esac
15867
15868 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15869 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15870 library_names_spec=
15871 libname_spec='lib$name'
15872 soname_spec=
15873 shrext_cmds=".so"
15874 postinstall_cmds=
15875 postuninstall_cmds=
15876 finish_cmds=
15877 finish_eval=
15878 shlibpath_var=
15879 shlibpath_overrides_runpath=unknown
15880 version_type=none
15881 dynamic_linker="$host_os ld.so"
15882 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15883
15884 need_lib_prefix=unknown
15885 hardcode_into_libs=no
15886
15887 # when you set need_version to no, make sure it does not cause -set_version
15888 # flags to be left without arguments
15889 need_version=unknown
15890
15891 case $host_os in
15892 aix3*)
15893 version_type=linux
15894 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15895 shlibpath_var=LIBPATH
15896
15897 # AIX 3 has no versioning support, so we append a major version to the name.
15898 soname_spec='${libname}${release}${shared_ext}$major'
15899 ;;
15900
15901 aix[4-9]*)
15902 version_type=linux
15903 need_lib_prefix=no
15904 need_version=no
15905 hardcode_into_libs=yes
15906 if test "$host_cpu" = ia64; then
15907 # AIX 5 supports IA64
15908 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15909 shlibpath_var=LD_LIBRARY_PATH
15910 else
15911 # With GCC up to 2.95.x, collect2 would create an import file
15912 # for dependence libraries. The import file would start with
15913 # the line `#! .'. This would cause the generated library to
15914 # depend on `.', always an invalid library. This was fixed in
15915 # development snapshots of GCC prior to 3.0.
15916 case $host_os in
15917 aix4 | aix4.[01] | aix4.[01].*)
15918 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15919 echo ' yes '
15920 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15921 :
15922 else
15923 can_build_shared=no
15924 fi
15925 ;;
15926 esac
15927 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15928 # soname into executable. Probably we can add versioning support to
15929 # collect2, so additional links can be useful in future.
15930 if test "$aix_use_runtimelinking" = yes; then
15931 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15932 # instead of lib<name>.a to let people know that these are not
15933 # typical AIX shared libraries.
15934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15935 else
15936 # We preserve .a as extension for shared libraries through AIX4.2
15937 # and later when we are not doing run time linking.
15938 library_names_spec='${libname}${release}.a $libname.a'
15939 soname_spec='${libname}${release}${shared_ext}$major'
15940 fi
15941 shlibpath_var=LIBPATH
15942 fi
15943 ;;
15944
15945 amigaos*)
15946 library_names_spec='$libname.ixlibrary $libname.a'
15947 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15948 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'
15949 ;;
15950
15951 beos*)
15952 library_names_spec='${libname}${shared_ext}'
15953 dynamic_linker="$host_os ld.so"
15954 shlibpath_var=LIBRARY_PATH
15955 ;;
15956
15957 bsdi[45]*)
15958 version_type=linux
15959 need_version=no
15960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15961 soname_spec='${libname}${release}${shared_ext}$major'
15962 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15963 shlibpath_var=LD_LIBRARY_PATH
15964 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15965 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15966 # the default ld.so.conf also contains /usr/contrib/lib and
15967 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15968 # libtool to hard-code these into programs
15969 ;;
15970
15971 cygwin* | mingw* | pw32*)
15972 version_type=windows
15973 shrext_cmds=".dll"
15974 need_version=no
15975 need_lib_prefix=no
15976
15977 case $GCC,$host_os in
15978 yes,cygwin* | yes,mingw* | yes,pw32*)
15979 library_names_spec='$libname.dll.a'
15980 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15981 postinstall_cmds='base_file=`basename \${file}`~
15982 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15983 dldir=$destdir/`dirname \$dlpath`~
15984 test -d \$dldir || mkdir -p \$dldir~
15985 $install_prog $dir/$dlname \$dldir/$dlname~
15986 chmod a+x \$dldir/$dlname'
15987 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15988 dlpath=$dir/\$dldll~
15989 $rm \$dlpath'
15990 shlibpath_overrides_runpath=yes
15991
15992 case $host_os in
15993 cygwin*)
15994 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15995 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15996 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15997 ;;
15998 mingw*)
15999 # MinGW DLLs use traditional 'lib' prefix
16000 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16001 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16002 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16003 # It is most probably a Windows format PATH printed by
16004 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16005 # path with ; separators, and with drive letters. We can handle the
16006 # drive letters (cygwin fileutils understands them), so leave them,
16007 # especially as we might pass files found there to a mingw objdump,
16008 # which wouldn't understand a cygwinified path. Ahh.
16009 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16010 else
16011 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16012 fi
16013 ;;
16014 pw32*)
16015 # pw32 DLLs use 'pw' prefix rather than 'lib'
16016 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16017 ;;
16018 esac
16019 ;;
16020
16021 *)
16022 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16023 ;;
16024 esac
16025 dynamic_linker='Win32 ld.exe'
16026 # FIXME: first we should search . and the directory the executable is in
16027 shlibpath_var=PATH
16028 ;;
16029
16030 darwin* | rhapsody*)
16031 dynamic_linker="$host_os dyld"
16032 version_type=darwin
16033 need_lib_prefix=no
16034 need_version=no
16035 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16036 soname_spec='${libname}${release}${major}$shared_ext'
16037 shlibpath_overrides_runpath=yes
16038 shlibpath_var=DYLD_LIBRARY_PATH
16039 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16040
16041 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16042 ;;
16043
16044 dgux*)
16045 version_type=linux
16046 need_lib_prefix=no
16047 need_version=no
16048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16049 soname_spec='${libname}${release}${shared_ext}$major'
16050 shlibpath_var=LD_LIBRARY_PATH
16051 ;;
16052
16053 freebsd1*)
16054 dynamic_linker=no
16055 ;;
16056
16057 freebsd* | dragonfly*)
16058 # DragonFly does not have aout. When/if they implement a new
16059 # versioning mechanism, adjust this.
16060 if test -x /usr/bin/objformat; then
16061 objformat=`/usr/bin/objformat`
16062 else
16063 case $host_os in
16064 freebsd[123]*) objformat=aout ;;
16065 *) objformat=elf ;;
16066 esac
16067 fi
16068 version_type=freebsd-$objformat
16069 case $version_type in
16070 freebsd-elf*)
16071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16072 need_version=no
16073 need_lib_prefix=no
16074 ;;
16075 freebsd-*)
16076 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16077 need_version=yes
16078 ;;
16079 esac
16080 shlibpath_var=LD_LIBRARY_PATH
16081 case $host_os in
16082 freebsd2*)
16083 shlibpath_overrides_runpath=yes
16084 ;;
16085 freebsd3.[01]* | freebsdelf3.[01]*)
16086 shlibpath_overrides_runpath=yes
16087 hardcode_into_libs=yes
16088 ;;
16089 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16090 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16091 shlibpath_overrides_runpath=no
16092 hardcode_into_libs=yes
16093 ;;
16094 *) # from 4.6 on, and DragonFly
16095 shlibpath_overrides_runpath=yes
16096 hardcode_into_libs=yes
16097 ;;
16098 esac
16099 ;;
16100
16101 gnu*)
16102 version_type=linux
16103 need_lib_prefix=no
16104 need_version=no
16105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16106 soname_spec='${libname}${release}${shared_ext}$major'
16107 shlibpath_var=LD_LIBRARY_PATH
16108 hardcode_into_libs=yes
16109 ;;
16110
16111 hpux9* | hpux10* | hpux11*)
16112 # Give a soname corresponding to the major version so that dld.sl refuses to
16113 # link against other versions.
16114 version_type=sunos
16115 need_lib_prefix=no
16116 need_version=no
16117 case $host_cpu in
16118 ia64*)
16119 shrext_cmds='.so'
16120 hardcode_into_libs=yes
16121 dynamic_linker="$host_os dld.so"
16122 shlibpath_var=LD_LIBRARY_PATH
16123 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16125 soname_spec='${libname}${release}${shared_ext}$major'
16126 if test "X$HPUX_IA64_MODE" = X32; then
16127 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16128 else
16129 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16130 fi
16131 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16132 ;;
16133 hppa*64*)
16134 shrext_cmds='.sl'
16135 hardcode_into_libs=yes
16136 dynamic_linker="$host_os dld.sl"
16137 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16138 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16140 soname_spec='${libname}${release}${shared_ext}$major'
16141 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16142 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16143 ;;
16144 *)
16145 shrext_cmds='.sl'
16146 dynamic_linker="$host_os dld.sl"
16147 shlibpath_var=SHLIB_PATH
16148 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16150 soname_spec='${libname}${release}${shared_ext}$major'
16151 ;;
16152 esac
16153 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16154 postinstall_cmds='chmod 555 $lib'
16155 ;;
16156
16157 interix[3-9]*)
16158 version_type=linux
16159 need_lib_prefix=no
16160 need_version=no
16161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16162 soname_spec='${libname}${release}${shared_ext}$major'
16163 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16164 shlibpath_var=LD_LIBRARY_PATH
16165 shlibpath_overrides_runpath=no
16166 hardcode_into_libs=yes
16167 ;;
16168
16169 irix5* | irix6* | nonstopux*)
16170 case $host_os in
16171 nonstopux*) version_type=nonstopux ;;
16172 *)
16173 if test "$lt_cv_prog_gnu_ld" = yes; then
16174 version_type=linux
16175 else
16176 version_type=irix
16177 fi ;;
16178 esac
16179 need_lib_prefix=no
16180 need_version=no
16181 soname_spec='${libname}${release}${shared_ext}$major'
16182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16183 case $host_os in
16184 irix5* | nonstopux*)
16185 libsuff= shlibsuff=
16186 ;;
16187 *)
16188 case $LD in # libtool.m4 will add one of these switches to LD
16189 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16190 libsuff= shlibsuff= libmagic=32-bit;;
16191 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16192 libsuff=32 shlibsuff=N32 libmagic=N32;;
16193 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16194 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16195 *) libsuff= shlibsuff= libmagic=never-match;;
16196 esac
16197 ;;
16198 esac
16199 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16200 shlibpath_overrides_runpath=no
16201 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16202 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16203 hardcode_into_libs=yes
16204 ;;
16205
16206 # No shared lib support for Linux oldld, aout, or coff.
16207 linux*oldld* | linux*aout* | linux*coff*)
16208 dynamic_linker=no
16209 ;;
16210
16211 # This must be Linux ELF.
16212 linux* | k*bsd*-gnu)
16213 version_type=linux
16214 need_lib_prefix=no
16215 need_version=no
16216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16217 soname_spec='${libname}${release}${shared_ext}$major'
16218 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16219 shlibpath_var=LD_LIBRARY_PATH
16220 shlibpath_overrides_runpath=no
16221 # This implies no fast_install, which is unacceptable.
16222 # Some rework will be needed to allow for fast_install
16223 # before this can be enabled.
16224 hardcode_into_libs=yes
16225 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16226 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16227
16228 # Append ld.so.conf contents to the search path
16229 if test -f /etc/ld.so.conf; then
16230 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16231 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16232 fi
16233
16234 # We used to test for /lib/ld.so.1 and disable shared libraries on
16235 # powerpc, because MkLinux only supported shared libraries with the
16236 # GNU dynamic linker. Since this was broken with cross compilers,
16237 # most powerpc-linux boxes support dynamic linking these days and
16238 # people can always --disable-shared, the test was removed, and we
16239 # assume the GNU/Linux dynamic linker is in use.
16240 dynamic_linker='GNU/Linux ld.so'
16241 ;;
16242
16243 netbsd*)
16244 version_type=sunos
16245 need_lib_prefix=no
16246 need_version=no
16247 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16249 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16250 dynamic_linker='NetBSD (a.out) ld.so'
16251 else
16252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16253 soname_spec='${libname}${release}${shared_ext}$major'
16254 dynamic_linker='NetBSD ld.elf_so'
16255 fi
16256 shlibpath_var=LD_LIBRARY_PATH
16257 shlibpath_overrides_runpath=yes
16258 hardcode_into_libs=yes
16259 ;;
16260
16261 newsos6)
16262 version_type=linux
16263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16264 shlibpath_var=LD_LIBRARY_PATH
16265 shlibpath_overrides_runpath=yes
16266 ;;
16267
16268 nto-qnx*)
16269 version_type=linux
16270 need_lib_prefix=no
16271 need_version=no
16272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16273 soname_spec='${libname}${release}${shared_ext}$major'
16274 shlibpath_var=LD_LIBRARY_PATH
16275 shlibpath_overrides_runpath=yes
16276 ;;
16277
16278 openbsd*)
16279 version_type=sunos
16280 sys_lib_dlsearch_path_spec="/usr/lib"
16281 need_lib_prefix=no
16282 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16283 case $host_os in
16284 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16285 *) need_version=no ;;
16286 esac
16287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16288 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16289 shlibpath_var=LD_LIBRARY_PATH
16290 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16291 case $host_os in
16292 openbsd2.[89] | openbsd2.[89].*)
16293 shlibpath_overrides_runpath=no
16294 ;;
16295 *)
16296 shlibpath_overrides_runpath=yes
16297 ;;
16298 esac
16299 else
16300 shlibpath_overrides_runpath=yes
16301 fi
16302 ;;
16303
16304 os2*)
16305 libname_spec='$name'
16306 shrext_cmds=".dll"
16307 need_lib_prefix=no
16308 library_names_spec='$libname${shared_ext} $libname.a'
16309 dynamic_linker='OS/2 ld.exe'
16310 shlibpath_var=LIBPATH
16311 ;;
16312
16313 osf3* | osf4* | osf5*)
16314 version_type=osf
16315 need_lib_prefix=no
16316 need_version=no
16317 soname_spec='${libname}${release}${shared_ext}$major'
16318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16319 shlibpath_var=LD_LIBRARY_PATH
16320 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16321 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16322 ;;
16323
16324 rdos*)
16325 dynamic_linker=no
16326 ;;
16327
16328 solaris*)
16329 version_type=linux
16330 need_lib_prefix=no
16331 need_version=no
16332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16333 soname_spec='${libname}${release}${shared_ext}$major'
16334 shlibpath_var=LD_LIBRARY_PATH
16335 shlibpath_overrides_runpath=yes
16336 hardcode_into_libs=yes
16337 # ldd complains unless libraries are executable
16338 postinstall_cmds='chmod +x $lib'
16339 ;;
16340
16341 sunos4*)
16342 version_type=sunos
16343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16344 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16345 shlibpath_var=LD_LIBRARY_PATH
16346 shlibpath_overrides_runpath=yes
16347 if test "$with_gnu_ld" = yes; then
16348 need_lib_prefix=no
16349 fi
16350 need_version=yes
16351 ;;
16352
16353 sysv4 | sysv4.3*)
16354 version_type=linux
16355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16356 soname_spec='${libname}${release}${shared_ext}$major'
16357 shlibpath_var=LD_LIBRARY_PATH
16358 case $host_vendor in
16359 sni)
16360 shlibpath_overrides_runpath=no
16361 need_lib_prefix=no
16362 export_dynamic_flag_spec='${wl}-Blargedynsym'
16363 runpath_var=LD_RUN_PATH
16364 ;;
16365 siemens)
16366 need_lib_prefix=no
16367 ;;
16368 motorola)
16369 need_lib_prefix=no
16370 need_version=no
16371 shlibpath_overrides_runpath=no
16372 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16373 ;;
16374 esac
16375 ;;
16376
16377 sysv4*MP*)
16378 if test -d /usr/nec ;then
16379 version_type=linux
16380 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16381 soname_spec='$libname${shared_ext}.$major'
16382 shlibpath_var=LD_LIBRARY_PATH
16383 fi
16384 ;;
16385
16386 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16387 version_type=freebsd-elf
16388 need_lib_prefix=no
16389 need_version=no
16390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16391 soname_spec='${libname}${release}${shared_ext}$major'
16392 shlibpath_var=LD_LIBRARY_PATH
16393 hardcode_into_libs=yes
16394 if test "$with_gnu_ld" = yes; then
16395 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16396 shlibpath_overrides_runpath=no
16397 else
16398 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16399 shlibpath_overrides_runpath=yes
16400 case $host_os in
16401 sco3.2v5*)
16402 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16403 ;;
16404 esac
16405 fi
16406 sys_lib_dlsearch_path_spec='/usr/lib'
16407 ;;
16408
16409 uts4*)
16410 version_type=linux
16411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16412 soname_spec='${libname}${release}${shared_ext}$major'
16413 shlibpath_var=LD_LIBRARY_PATH
16414 ;;
16415
16416 *)
16417 dynamic_linker=no
16418 ;;
16419 esac
16420 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16421 $as_echo "$dynamic_linker" >&6; }
16422 test "$dynamic_linker" = no && can_build_shared=no
16423
16424 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16425 $as_echo_n "(cached) " >&6
16426 else
16427 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16428 fi
16429
16430 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16431 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16432 $as_echo_n "(cached) " >&6
16433 else
16434 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16435 fi
16436
16437 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16438
16439 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16440 if test "$GCC" = yes; then
16441 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16442 fi
16443
16444 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16445 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16446 hardcode_action_F77=
16447 if test -n "$hardcode_libdir_flag_spec_F77" || \
16448 test -n "$runpath_var_F77" || \
16449 test "X$hardcode_automatic_F77" = "Xyes" ; then
16450
16451 # We can hardcode non-existant directories.
16452 if test "$hardcode_direct_F77" != no &&
16453 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16454 # have to relink, otherwise we might link with an installed library
16455 # when we should be linking with a yet-to-be-installed one
16456 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16457 test "$hardcode_minus_L_F77" != no; then
16458 # Linking always hardcodes the temporary library directory.
16459 hardcode_action_F77=relink
16460 else
16461 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16462 hardcode_action_F77=immediate
16463 fi
16464 else
16465 # We cannot hardcode anything, or else we can only hardcode existing
16466 # directories.
16467 hardcode_action_F77=unsupported
16468 fi
16469 { $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16470 $as_echo "$hardcode_action_F77" >&6; }
16471
16472 if test "$hardcode_action_F77" = relink; then
16473 # Fast installation is not supported
16474 enable_fast_install=no
16475 elif test "$shlibpath_overrides_runpath" = yes ||
16476 test "$enable_shared" = no; then
16477 # Fast installation is not necessary
16478 enable_fast_install=needless
16479 fi
16480
16481
16482 # The else clause should only fire when bootstrapping the
16483 # libtool distribution, otherwise you forgot to ship ltmain.sh
16484 # with your package, and you will get complaints that there are
16485 # no rules to generate ltmain.sh.
16486 if test -f "$ltmain"; then
16487 # See if we are running on zsh, and set the options which allow our commands through
16488 # without removal of \ escapes.
16489 if test -n "${ZSH_VERSION+set}" ; then
16490 setopt NO_GLOB_SUBST
16491 fi
16492 # Now quote all the things that may contain metacharacters while being
16493 # careful not to overquote the AC_SUBSTed values. We take copies of the
16494 # variables and quote the copies for generation of the libtool script.
16495 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16496 SED SHELL STRIP \
16497 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16498 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16499 deplibs_check_method reload_flag reload_cmds need_locks \
16500 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16501 lt_cv_sys_global_symbol_to_c_name_address \
16502 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16503 old_postinstall_cmds old_postuninstall_cmds \
16504 compiler_F77 \
16505 CC_F77 \
16506 LD_F77 \
16507 lt_prog_compiler_wl_F77 \
16508 lt_prog_compiler_pic_F77 \
16509 lt_prog_compiler_static_F77 \
16510 lt_prog_compiler_no_builtin_flag_F77 \
16511 export_dynamic_flag_spec_F77 \
16512 thread_safe_flag_spec_F77 \
16513 whole_archive_flag_spec_F77 \
16514 enable_shared_with_static_runtimes_F77 \
16515 old_archive_cmds_F77 \
16516 old_archive_from_new_cmds_F77 \
16517 predep_objects_F77 \
16518 postdep_objects_F77 \
16519 predeps_F77 \
16520 postdeps_F77 \
16521 compiler_lib_search_path_F77 \
16522 compiler_lib_search_dirs_F77 \
16523 archive_cmds_F77 \
16524 archive_expsym_cmds_F77 \
16525 postinstall_cmds_F77 \
16526 postuninstall_cmds_F77 \
16527 old_archive_from_expsyms_cmds_F77 \
16528 allow_undefined_flag_F77 \
16529 no_undefined_flag_F77 \
16530 export_symbols_cmds_F77 \
16531 hardcode_libdir_flag_spec_F77 \
16532 hardcode_libdir_flag_spec_ld_F77 \
16533 hardcode_libdir_separator_F77 \
16534 hardcode_automatic_F77 \
16535 module_cmds_F77 \
16536 module_expsym_cmds_F77 \
16537 lt_cv_prog_compiler_c_o_F77 \
16538 fix_srcfile_path_F77 \
16539 exclude_expsyms_F77 \
16540 include_expsyms_F77; do
16541
16542 case $var in
16543 old_archive_cmds_F77 | \
16544 old_archive_from_new_cmds_F77 | \
16545 archive_cmds_F77 | \
16546 archive_expsym_cmds_F77 | \
16547 module_cmds_F77 | \
16548 module_expsym_cmds_F77 | \
16549 old_archive_from_expsyms_cmds_F77 | \
16550 export_symbols_cmds_F77 | \
16551 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16552 postinstall_cmds | postuninstall_cmds | \
16553 old_postinstall_cmds | old_postuninstall_cmds | \
16554 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16555 # Double-quote double-evaled strings.
16556 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16557 ;;
16558 *)
16559 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16560 ;;
16561 esac
16562 done
16563
16564 case $lt_echo in
16565 *'\$0 --fallback-echo"')
16566 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16567 ;;
16568 esac
16569
16570 cfgfile="$ofile"
16571
16572 cat <<__EOF__ >> "$cfgfile"
16573 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16574
16575 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16576
16577 # Shell to use when invoking shell scripts.
16578 SHELL=$lt_SHELL
16579
16580 # Whether or not to build shared libraries.
16581 build_libtool_libs=$enable_shared
16582
16583 # Whether or not to build static libraries.
16584 build_old_libs=$enable_static
16585
16586 # Whether or not to add -lc for building shared libraries.
16587 build_libtool_need_lc=$archive_cmds_need_lc_F77
16588
16589 # Whether or not to disallow shared libs when runtime libs are static
16590 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16591
16592 # Whether or not to optimize for fast installation.
16593 fast_install=$enable_fast_install
16594
16595 # The host system.
16596 host_alias=$host_alias
16597 host=$host
16598 host_os=$host_os
16599
16600 # The build system.
16601 build_alias=$build_alias
16602 build=$build
16603 build_os=$build_os
16604
16605 # An echo program that does not interpret backslashes.
16606 echo=$lt_echo
16607
16608 # The archiver.
16609 AR=$lt_AR
16610 AR_FLAGS=$lt_AR_FLAGS
16611
16612 # A C compiler.
16613 LTCC=$lt_LTCC
16614
16615 # LTCC compiler flags.
16616 LTCFLAGS=$lt_LTCFLAGS
16617
16618 # A language-specific compiler.
16619 CC=$lt_compiler_F77
16620
16621 # Is the compiler the GNU C compiler?
16622 with_gcc=$GCC_F77
16623
16624 # An ERE matcher.
16625 EGREP=$lt_EGREP
16626
16627 # The linker used to build libraries.
16628 LD=$lt_LD_F77
16629
16630 # Whether we need hard or soft links.
16631 LN_S=$lt_LN_S
16632
16633 # A BSD-compatible nm program.
16634 NM=$lt_NM
16635
16636 # A symbol stripping program
16637 STRIP=$lt_STRIP
16638
16639 # Used to examine libraries when file_magic_cmd begins "file"
16640 MAGIC_CMD=$MAGIC_CMD
16641
16642 # Used on cygwin: DLL creation program.
16643 DLLTOOL="$DLLTOOL"
16644
16645 # Used on cygwin: object dumper.
16646 OBJDUMP="$OBJDUMP"
16647
16648 # Used on cygwin: assembler.
16649 AS="$AS"
16650
16651 # The name of the directory that contains temporary libtool files.
16652 objdir=$objdir
16653
16654 # How to create reloadable object files.
16655 reload_flag=$lt_reload_flag
16656 reload_cmds=$lt_reload_cmds
16657
16658 # How to pass a linker flag through the compiler.
16659 wl=$lt_lt_prog_compiler_wl_F77
16660
16661 # Object file suffix (normally "o").
16662 objext="$ac_objext"
16663
16664 # Old archive suffix (normally "a").
16665 libext="$libext"
16666
16667 # Shared library suffix (normally ".so").
16668 shrext_cmds='$shrext_cmds'
16669
16670 # Executable file suffix (normally "").
16671 exeext="$exeext"
16672
16673 # Additional compiler flags for building library objects.
16674 pic_flag=$lt_lt_prog_compiler_pic_F77
16675 pic_mode=$pic_mode
16676
16677 # What is the maximum length of a command?
16678 max_cmd_len=$lt_cv_sys_max_cmd_len
16679
16680 # Does compiler simultaneously support -c and -o options?
16681 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16682
16683 # Must we lock files when doing compilation?
16684 need_locks=$lt_need_locks
16685
16686 # Do we need the lib prefix for modules?
16687 need_lib_prefix=$need_lib_prefix
16688
16689 # Do we need a version for libraries?
16690 need_version=$need_version
16691
16692 # Whether dlopen is supported.
16693 dlopen_support=$enable_dlopen
16694
16695 # Whether dlopen of programs is supported.
16696 dlopen_self=$enable_dlopen_self
16697
16698 # Whether dlopen of statically linked programs is supported.
16699 dlopen_self_static=$enable_dlopen_self_static
16700
16701 # Compiler flag to prevent dynamic linking.
16702 link_static_flag=$lt_lt_prog_compiler_static_F77
16703
16704 # Compiler flag to turn off builtin functions.
16705 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16706
16707 # Compiler flag to allow reflexive dlopens.
16708 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16709
16710 # Compiler flag to generate shared objects directly from archives.
16711 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16712
16713 # Compiler flag to generate thread-safe objects.
16714 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16715
16716 # Library versioning type.
16717 version_type=$version_type
16718
16719 # Format of library name prefix.
16720 libname_spec=$lt_libname_spec
16721
16722 # List of archive names. First name is the real one, the rest are links.
16723 # The last name is the one that the linker finds with -lNAME.
16724 library_names_spec=$lt_library_names_spec
16725
16726 # The coded name of the library, if different from the real name.
16727 soname_spec=$lt_soname_spec
16728
16729 # Commands used to build and install an old-style archive.
16730 RANLIB=$lt_RANLIB
16731 old_archive_cmds=$lt_old_archive_cmds_F77
16732 old_postinstall_cmds=$lt_old_postinstall_cmds
16733 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16734
16735 # Create an old-style archive from a shared archive.
16736 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16737
16738 # Create a temporary old-style archive to link instead of a shared archive.
16739 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16740
16741 # Commands used to build and install a shared archive.
16742 archive_cmds=$lt_archive_cmds_F77
16743 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16744 postinstall_cmds=$lt_postinstall_cmds
16745 postuninstall_cmds=$lt_postuninstall_cmds
16746
16747 # Commands used to build a loadable module (assumed same as above if empty)
16748 module_cmds=$lt_module_cmds_F77
16749 module_expsym_cmds=$lt_module_expsym_cmds_F77
16750
16751 # Commands to strip libraries.
16752 old_striplib=$lt_old_striplib
16753 striplib=$lt_striplib
16754
16755 # Dependencies to place before the objects being linked to create a
16756 # shared library.
16757 predep_objects=$lt_predep_objects_F77
16758
16759 # Dependencies to place after the objects being linked to create a
16760 # shared library.
16761 postdep_objects=$lt_postdep_objects_F77
16762
16763 # Dependencies to place before the objects being linked to create a
16764 # shared library.
16765 predeps=$lt_predeps_F77
16766
16767 # Dependencies to place after the objects being linked to create a
16768 # shared library.
16769 postdeps=$lt_postdeps_F77
16770
16771 # The directories searched by this compiler when creating a shared
16772 # library
16773 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16774
16775 # The library search path used internally by the compiler when linking
16776 # a shared library.
16777 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16778
16779 # Method to check whether dependent libraries are shared objects.
16780 deplibs_check_method=$lt_deplibs_check_method
16781
16782 # Command to use when deplibs_check_method == file_magic.
16783 file_magic_cmd=$lt_file_magic_cmd
16784
16785 # Flag that allows shared libraries with undefined symbols to be built.
16786 allow_undefined_flag=$lt_allow_undefined_flag_F77
16787
16788 # Flag that forces no undefined symbols.
16789 no_undefined_flag=$lt_no_undefined_flag_F77
16790
16791 # Commands used to finish a libtool library installation in a directory.
16792 finish_cmds=$lt_finish_cmds
16793
16794 # Same as above, but a single script fragment to be evaled but not shown.
16795 finish_eval=$lt_finish_eval
16796
16797 # Take the output of nm and produce a listing of raw symbols and C names.
16798 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16799
16800 # Transform the output of nm in a proper C declaration
16801 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16802
16803 # Transform the output of nm in a C name address pair
16804 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16805
16806 # This is the shared library runtime path variable.
16807 runpath_var=$runpath_var
16808
16809 # This is the shared library path variable.
16810 shlibpath_var=$shlibpath_var
16811
16812 # Is shlibpath searched before the hard-coded library search path?
16813 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16814
16815 # How to hardcode a shared library path into an executable.
16816 hardcode_action=$hardcode_action_F77
16817
16818 # Whether we should hardcode library paths into libraries.
16819 hardcode_into_libs=$hardcode_into_libs
16820
16821 # Flag to hardcode \$libdir into a binary during linking.
16822 # This must work even if \$libdir does not exist.
16823 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16824
16825 # If ld is used when linking, flag to hardcode \$libdir into
16826 # a binary during linking. This must work even if \$libdir does
16827 # not exist.
16828 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16829
16830 # Whether we need a single -rpath flag with a separated argument.
16831 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16832
16833 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16834 # resulting binary.
16835 hardcode_direct=$hardcode_direct_F77
16836
16837 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16838 # resulting binary.
16839 hardcode_minus_L=$hardcode_minus_L_F77
16840
16841 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16842 # the resulting binary.
16843 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16844
16845 # Set to yes if building a shared library automatically hardcodes DIR into the library
16846 # and all subsequent libraries and executables linked against it.
16847 hardcode_automatic=$hardcode_automatic_F77
16848
16849 # Variables whose values should be saved in libtool wrapper scripts and
16850 # restored at relink time.
16851 variables_saved_for_relink="$variables_saved_for_relink"
16852
16853 # Whether libtool must link a program against all its dependency libraries.
16854 link_all_deplibs=$link_all_deplibs_F77
16855
16856 # Compile-time system search path for libraries
16857 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16858
16859 # Run-time system search path for libraries
16860 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16861
16862 # Fix the shell variable \$srcfile for the compiler.
16863 fix_srcfile_path=$lt_fix_srcfile_path
16864
16865 # Set to yes if exported symbols are required.
16866 always_export_symbols=$always_export_symbols_F77
16867
16868 # The commands to list exported symbols.
16869 export_symbols_cmds=$lt_export_symbols_cmds_F77
16870
16871 # The commands to extract the exported symbol list from a shared archive.
16872 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16873
16874 # Symbols that should not be listed in the preloaded symbols.
16875 exclude_expsyms=$lt_exclude_expsyms_F77
16876
16877 # Symbols that must always be exported.
16878 include_expsyms=$lt_include_expsyms_F77
16879
16880 # ### END LIBTOOL TAG CONFIG: $tagname
16881
16882 __EOF__
16883
16884
16885 else
16886 # If there is no Makefile yet, we rely on a make rule to execute
16887 # `config.status --recheck' to rerun these tests and create the
16888 # libtool script then.
16889 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16890 if test -f "$ltmain_in"; then
16891 test -f Makefile && make "$ltmain"
16892 fi
16893 fi
16894
16895
16896 ac_ext=c
16897 ac_cpp='$CPP $CPPFLAGS'
16898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16901
16902 CC="$lt_save_CC"
16903
16904 else
16905 tagname=""
16906 fi
16907 ;;
16908
16909 GCJ)
16910 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16911
16912
16913 # Source file extension for Java test sources.
16914 ac_ext=java
16915
16916 # Object file extension for compiled Java test sources.
16917 objext=o
16918 objext_GCJ=$objext
16919
16920 # Code to be used in simple compile tests
16921 lt_simple_compile_test_code="class foo {}"
16922
16923 # Code to be used in simple link tests
16924 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16925
16926 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16927
16928 # If no C compiler was specified, use CC.
16929 LTCC=${LTCC-"$CC"}
16930
16931 # If no C compiler flags were specified, use CFLAGS.
16932 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16933
16934 # Allow CC to be a program name with arguments.
16935 compiler=$CC
16936
16937
16938 # save warnings/boilerplate of simple test code
16939 ac_outfile=conftest.$ac_objext
16940 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16941 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16942 _lt_compiler_boilerplate=`cat conftest.err`
16943 $rm conftest*
16944
16945 ac_outfile=conftest.$ac_objext
16946 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16947 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16948 _lt_linker_boilerplate=`cat conftest.err`
16949 $rm -r conftest*
16950
16951
16952 # Allow CC to be a program name with arguments.
16953 lt_save_CC="$CC"
16954 CC=${GCJ-"gcj"}
16955 compiler=$CC
16956 compiler_GCJ=$CC
16957 for cc_temp in $compiler""; do
16958 case $cc_temp in
16959 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16960 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16961 \-*) ;;
16962 *) break;;
16963 esac
16964 done
16965 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16966
16967
16968 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16969 archive_cmds_need_lc_GCJ=no
16970
16971 old_archive_cmds_GCJ=$old_archive_cmds
16972
16973
16974 lt_prog_compiler_no_builtin_flag_GCJ=
16975
16976 if test "$GCC" = yes; then
16977 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16978
16979
16980 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16981 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16982 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16983 $as_echo_n "(cached) " >&6
16984 else
16985 lt_cv_prog_compiler_rtti_exceptions=no
16986 ac_outfile=conftest.$ac_objext
16987 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16988 lt_compiler_flag="-fno-rtti -fno-exceptions"
16989 # Insert the option either (1) after the last *FLAGS variable, or
16990 # (2) before a word containing "conftest.", or (3) at the end.
16991 # Note that $ac_compile itself does not contain backslashes and begins
16992 # with a dollar sign (not a hyphen), so the echo should work correctly.
16993 # The option is referenced via a variable to avoid confusing sed.
16994 lt_compile=`echo "$ac_compile" | $SED \
16995 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16996 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16997 -e 's:$: $lt_compiler_flag:'`
16998 (eval echo "\"\$as_me:16998: $lt_compile\"" >&5)
16999 (eval "$lt_compile" 2>conftest.err)
17000 ac_status=$?
17001 cat conftest.err >&5
17002 echo "$as_me:17002: \$? = $ac_status" >&5
17003 if (exit $ac_status) && test -s "$ac_outfile"; then
17004 # The compiler can only warn and ignore the option if not recognized
17005 # So say no if there are warnings other than the usual output.
17006 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17007 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17008 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17009 lt_cv_prog_compiler_rtti_exceptions=yes
17010 fi
17011 fi
17012 $rm conftest*
17013
17014 fi
17015 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17016 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17017
17018 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17019 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17020 else
17021 :
17022 fi
17023
17024 fi
17025
17026 lt_prog_compiler_wl_GCJ=
17027 lt_prog_compiler_pic_GCJ=
17028 lt_prog_compiler_static_GCJ=
17029
17030 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17031 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17032
17033 if test "$GCC" = yes; then
17034 lt_prog_compiler_wl_GCJ='-Wl,'
17035 lt_prog_compiler_static_GCJ='-static'
17036
17037 case $host_os in
17038 aix*)
17039 # All AIX code is PIC.
17040 if test "$host_cpu" = ia64; then
17041 # AIX 5 now supports IA64 processor
17042 lt_prog_compiler_static_GCJ='-Bstatic'
17043 fi
17044 ;;
17045
17046 amigaos*)
17047 # FIXME: we need at least 68020 code to build shared libraries, but
17048 # adding the `-m68020' flag to GCC prevents building anything better,
17049 # like `-m68040'.
17050 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17051 ;;
17052
17053 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17054 # PIC is the default for these OSes.
17055 ;;
17056
17057 mingw* | cygwin* | pw32* | os2*)
17058 # This hack is so that the source file can tell whether it is being
17059 # built for inclusion in a dll (and should export symbols for example).
17060 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17061 # (--disable-auto-import) libraries
17062
17063 ;;
17064
17065 darwin* | rhapsody*)
17066 # PIC is the default on this platform
17067 # Common symbols not allowed in MH_DYLIB files
17068 lt_prog_compiler_pic_GCJ='-fno-common'
17069 ;;
17070
17071 interix[3-9]*)
17072 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17073 # Instead, we relocate shared libraries at runtime.
17074 ;;
17075
17076 msdosdjgpp*)
17077 # Just because we use GCC doesn't mean we suddenly get shared libraries
17078 # on systems that don't support them.
17079 lt_prog_compiler_can_build_shared_GCJ=no
17080 enable_shared=no
17081 ;;
17082
17083 sysv4*MP*)
17084 if test -d /usr/nec; then
17085 lt_prog_compiler_pic_GCJ=-Kconform_pic
17086 fi
17087 ;;
17088
17089 hpux*)
17090 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17091 # not for PA HP-UX.
17092 case $host_cpu in
17093 hppa*64*|ia64*)
17094 # +Z the default
17095 ;;
17096 *)
17097 lt_prog_compiler_pic_GCJ='-fPIC'
17098 ;;
17099 esac
17100 ;;
17101
17102 *)
17103 lt_prog_compiler_pic_GCJ='-fPIC'
17104 ;;
17105 esac
17106 else
17107 # PORTME Check for flag to pass linker flags through the system compiler.
17108 case $host_os in
17109 aix*)
17110 lt_prog_compiler_wl_GCJ='-Wl,'
17111 if test "$host_cpu" = ia64; then
17112 # AIX 5 now supports IA64 processor
17113 lt_prog_compiler_static_GCJ='-Bstatic'
17114 else
17115 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17116 fi
17117 ;;
17118 darwin*)
17119 # PIC is the default on this platform
17120 # Common symbols not allowed in MH_DYLIB files
17121 case $cc_basename in
17122 xlc*)
17123 lt_prog_compiler_pic_GCJ='-qnocommon'
17124 lt_prog_compiler_wl_GCJ='-Wl,'
17125 ;;
17126 esac
17127 ;;
17128
17129 mingw* | cygwin* | pw32* | os2*)
17130 # This hack is so that the source file can tell whether it is being
17131 # built for inclusion in a dll (and should export symbols for example).
17132
17133 ;;
17134
17135 hpux9* | hpux10* | hpux11*)
17136 lt_prog_compiler_wl_GCJ='-Wl,'
17137 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17138 # not for PA HP-UX.
17139 case $host_cpu in
17140 hppa*64*|ia64*)
17141 # +Z the default
17142 ;;
17143 *)
17144 lt_prog_compiler_pic_GCJ='+Z'
17145 ;;
17146 esac
17147 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17148 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17149 ;;
17150
17151 irix5* | irix6* | nonstopux*)
17152 lt_prog_compiler_wl_GCJ='-Wl,'
17153 # PIC (with -KPIC) is the default.
17154 lt_prog_compiler_static_GCJ='-non_shared'
17155 ;;
17156
17157 newsos6)
17158 lt_prog_compiler_pic_GCJ='-KPIC'
17159 lt_prog_compiler_static_GCJ='-Bstatic'
17160 ;;
17161
17162 linux* | k*bsd*-gnu)
17163 case $cc_basename in
17164 icc* | ecc*)
17165 lt_prog_compiler_wl_GCJ='-Wl,'
17166 lt_prog_compiler_pic_GCJ='-KPIC'
17167 lt_prog_compiler_static_GCJ='-static'
17168 ;;
17169 pgcc* | pgf77* | pgf90* | pgf95*)
17170 # Portland Group compilers (*not* the Pentium gcc compiler,
17171 # which looks to be a dead project)
17172 lt_prog_compiler_wl_GCJ='-Wl,'
17173 lt_prog_compiler_pic_GCJ='-fpic'
17174 lt_prog_compiler_static_GCJ='-Bstatic'
17175 ;;
17176 ccc*)
17177 lt_prog_compiler_wl_GCJ='-Wl,'
17178 # All Alpha code is PIC.
17179 lt_prog_compiler_static_GCJ='-non_shared'
17180 ;;
17181 *)
17182 case `$CC -V 2>&1 | sed 5q` in
17183 *Sun\ C*)
17184 # Sun C 5.9
17185 lt_prog_compiler_pic_GCJ='-KPIC'
17186 lt_prog_compiler_static_GCJ='-Bstatic'
17187 lt_prog_compiler_wl_GCJ='-Wl,'
17188 ;;
17189 *Sun\ F*)
17190 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17191 lt_prog_compiler_pic_GCJ='-KPIC'
17192 lt_prog_compiler_static_GCJ='-Bstatic'
17193 lt_prog_compiler_wl_GCJ=''
17194 ;;
17195 esac
17196 ;;
17197 esac
17198 ;;
17199
17200 osf3* | osf4* | osf5*)
17201 lt_prog_compiler_wl_GCJ='-Wl,'
17202 # All OSF/1 code is PIC.
17203 lt_prog_compiler_static_GCJ='-non_shared'
17204 ;;
17205
17206 rdos*)
17207 lt_prog_compiler_static_GCJ='-non_shared'
17208 ;;
17209
17210 solaris*)
17211 lt_prog_compiler_pic_GCJ='-KPIC'
17212 lt_prog_compiler_static_GCJ='-Bstatic'
17213 case $cc_basename in
17214 f77* | f90* | f95*)
17215 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17216 *)
17217 lt_prog_compiler_wl_GCJ='-Wl,';;
17218 esac
17219 ;;
17220
17221 sunos4*)
17222 lt_prog_compiler_wl_GCJ='-Qoption ld '
17223 lt_prog_compiler_pic_GCJ='-PIC'
17224 lt_prog_compiler_static_GCJ='-Bstatic'
17225 ;;
17226
17227 sysv4 | sysv4.2uw2* | sysv4.3*)
17228 lt_prog_compiler_wl_GCJ='-Wl,'
17229 lt_prog_compiler_pic_GCJ='-KPIC'
17230 lt_prog_compiler_static_GCJ='-Bstatic'
17231 ;;
17232
17233 sysv4*MP*)
17234 if test -d /usr/nec ;then
17235 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17236 lt_prog_compiler_static_GCJ='-Bstatic'
17237 fi
17238 ;;
17239
17240 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17241 lt_prog_compiler_wl_GCJ='-Wl,'
17242 lt_prog_compiler_pic_GCJ='-KPIC'
17243 lt_prog_compiler_static_GCJ='-Bstatic'
17244 ;;
17245
17246 unicos*)
17247 lt_prog_compiler_wl_GCJ='-Wl,'
17248 lt_prog_compiler_can_build_shared_GCJ=no
17249 ;;
17250
17251 uts4*)
17252 lt_prog_compiler_pic_GCJ='-pic'
17253 lt_prog_compiler_static_GCJ='-Bstatic'
17254 ;;
17255
17256 *)
17257 lt_prog_compiler_can_build_shared_GCJ=no
17258 ;;
17259 esac
17260 fi
17261
17262 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17263 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17264
17265 #
17266 # Check to make sure the PIC flag actually works.
17267 #
17268 if test -n "$lt_prog_compiler_pic_GCJ"; then
17269
17270 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17271 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17272 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17273 $as_echo_n "(cached) " >&6
17274 else
17275 lt_cv_prog_compiler_pic_works_GCJ=no
17276 ac_outfile=conftest.$ac_objext
17277 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17278 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17279 # Insert the option either (1) after the last *FLAGS variable, or
17280 # (2) before a word containing "conftest.", or (3) at the end.
17281 # Note that $ac_compile itself does not contain backslashes and begins
17282 # with a dollar sign (not a hyphen), so the echo should work correctly.
17283 # The option is referenced via a variable to avoid confusing sed.
17284 lt_compile=`echo "$ac_compile" | $SED \
17285 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17286 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17287 -e 's:$: $lt_compiler_flag:'`
17288 (eval echo "\"\$as_me:17288: $lt_compile\"" >&5)
17289 (eval "$lt_compile" 2>conftest.err)
17290 ac_status=$?
17291 cat conftest.err >&5
17292 echo "$as_me:17292: \$? = $ac_status" >&5
17293 if (exit $ac_status) && test -s "$ac_outfile"; then
17294 # The compiler can only warn and ignore the option if not recognized
17295 # So say no if there are warnings other than the usual output.
17296 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17297 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17298 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17299 lt_cv_prog_compiler_pic_works_GCJ=yes
17300 fi
17301 fi
17302 $rm conftest*
17303
17304 fi
17305 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17306 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17307
17308 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17309 case $lt_prog_compiler_pic_GCJ in
17310 "" | " "*) ;;
17311 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17312 esac
17313 else
17314 lt_prog_compiler_pic_GCJ=
17315 lt_prog_compiler_can_build_shared_GCJ=no
17316 fi
17317
17318 fi
17319 case $host_os in
17320 # For platforms which do not support PIC, -DPIC is meaningless:
17321 *djgpp*)
17322 lt_prog_compiler_pic_GCJ=
17323 ;;
17324 *)
17325 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17326 ;;
17327 esac
17328
17329 #
17330 # Check to make sure the static flag actually works.
17331 #
17332 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17333 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17334 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17335 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17336 $as_echo_n "(cached) " >&6
17337 else
17338 lt_cv_prog_compiler_static_works_GCJ=no
17339 save_LDFLAGS="$LDFLAGS"
17340 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17341 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17342 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17343 # The linker can only warn and ignore the option if not recognized
17344 # So say no if there are warnings
17345 if test -s conftest.err; then
17346 # Append any errors to the config.log.
17347 cat conftest.err 1>&5
17348 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17349 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17350 if diff conftest.exp conftest.er2 >/dev/null; then
17351 lt_cv_prog_compiler_static_works_GCJ=yes
17352 fi
17353 else
17354 lt_cv_prog_compiler_static_works_GCJ=yes
17355 fi
17356 fi
17357 $rm -r conftest*
17358 LDFLAGS="$save_LDFLAGS"
17359
17360 fi
17361 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17362 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17363
17364 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17365 :
17366 else
17367 lt_prog_compiler_static_GCJ=
17368 fi
17369
17370
17371 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17372 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17373 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17374 $as_echo_n "(cached) " >&6
17375 else
17376 lt_cv_prog_compiler_c_o_GCJ=no
17377 $rm -r conftest 2>/dev/null
17378 mkdir conftest
17379 cd conftest
17380 mkdir out
17381 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17382
17383 lt_compiler_flag="-o out/conftest2.$ac_objext"
17384 # Insert the option either (1) after the last *FLAGS variable, or
17385 # (2) before a word containing "conftest.", or (3) at the end.
17386 # Note that $ac_compile itself does not contain backslashes and begins
17387 # with a dollar sign (not a hyphen), so the echo should work correctly.
17388 lt_compile=`echo "$ac_compile" | $SED \
17389 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17390 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17391 -e 's:$: $lt_compiler_flag:'`
17392 (eval echo "\"\$as_me:17392: $lt_compile\"" >&5)
17393 (eval "$lt_compile" 2>out/conftest.err)
17394 ac_status=$?
17395 cat out/conftest.err >&5
17396 echo "$as_me:17396: \$? = $ac_status" >&5
17397 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17398 then
17399 # The compiler can only warn and ignore the option if not recognized
17400 # So say no if there are warnings
17401 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17402 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17403 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17404 lt_cv_prog_compiler_c_o_GCJ=yes
17405 fi
17406 fi
17407 chmod u+w . 2>&5
17408 $rm conftest*
17409 # SGI C++ compiler will create directory out/ii_files/ for
17410 # template instantiation
17411 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17412 $rm out/* && rmdir out
17413 cd ..
17414 rmdir conftest
17415 $rm conftest*
17416
17417 fi
17418 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17419 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17420
17421
17422 hard_links="nottested"
17423 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17424 # do not overwrite the value of need_locks provided by the user
17425 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17426 $as_echo_n "checking if we can lock with hard links... " >&6; }
17427 hard_links=yes
17428 $rm conftest*
17429 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17430 touch conftest.a
17431 ln conftest.a conftest.b 2>&5 || hard_links=no
17432 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17433 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
17434 $as_echo "$hard_links" >&6; }
17435 if test "$hard_links" = no; then
17436 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17437 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17438 need_locks=warn
17439 fi
17440 else
17441 need_locks=no
17442 fi
17443
17444 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17445 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17446
17447 runpath_var=
17448 allow_undefined_flag_GCJ=
17449 enable_shared_with_static_runtimes_GCJ=no
17450 archive_cmds_GCJ=
17451 archive_expsym_cmds_GCJ=
17452 old_archive_From_new_cmds_GCJ=
17453 old_archive_from_expsyms_cmds_GCJ=
17454 export_dynamic_flag_spec_GCJ=
17455 whole_archive_flag_spec_GCJ=
17456 thread_safe_flag_spec_GCJ=
17457 hardcode_libdir_flag_spec_GCJ=
17458 hardcode_libdir_flag_spec_ld_GCJ=
17459 hardcode_libdir_separator_GCJ=
17460 hardcode_direct_GCJ=no
17461 hardcode_minus_L_GCJ=no
17462 hardcode_shlibpath_var_GCJ=unsupported
17463 link_all_deplibs_GCJ=unknown
17464 hardcode_automatic_GCJ=no
17465 module_cmds_GCJ=
17466 module_expsym_cmds_GCJ=
17467 always_export_symbols_GCJ=no
17468 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17469 # include_expsyms should be a list of space-separated symbols to be *always*
17470 # included in the symbol list
17471 include_expsyms_GCJ=
17472 # exclude_expsyms can be an extended regexp of symbols to exclude
17473 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17474 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17475 # as well as any symbol that contains `d'.
17476 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17477 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17478 # platforms (ab)use it in PIC code, but their linkers get confused if
17479 # the symbol is explicitly referenced. Since portable code cannot
17480 # rely on this symbol name, it's probably fine to never include it in
17481 # preloaded symbol tables.
17482 # Exclude shared library initialization/finalization symbols.
17483 extract_expsyms_cmds=
17484 # Just being paranoid about ensuring that cc_basename is set.
17485 for cc_temp in $compiler""; do
17486 case $cc_temp in
17487 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17488 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17489 \-*) ;;
17490 *) break;;
17491 esac
17492 done
17493 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17494
17495 case $host_os in
17496 cygwin* | mingw* | pw32*)
17497 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17498 # When not using gcc, we currently assume that we are using
17499 # Microsoft Visual C++.
17500 if test "$GCC" != yes; then
17501 with_gnu_ld=no
17502 fi
17503 ;;
17504 interix*)
17505 # we just hope/assume this is gcc and not c89 (= MSVC++)
17506 with_gnu_ld=yes
17507 ;;
17508 openbsd*)
17509 with_gnu_ld=no
17510 ;;
17511 esac
17512
17513 ld_shlibs_GCJ=yes
17514 if test "$with_gnu_ld" = yes; then
17515 # If archive_cmds runs LD, not CC, wlarc should be empty
17516 wlarc='${wl}'
17517
17518 # Set some defaults for GNU ld with shared library support. These
17519 # are reset later if shared libraries are not supported. Putting them
17520 # here allows them to be overridden if necessary.
17521 runpath_var=LD_RUN_PATH
17522 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17523 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17524 # ancient GNU ld didn't support --whole-archive et. al.
17525 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17526 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17527 else
17528 whole_archive_flag_spec_GCJ=
17529 fi
17530 supports_anon_versioning=no
17531 case `$LD -v 2>/dev/null` in
17532 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17533 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17534 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17535 *\ 2.11.*) ;; # other 2.11 versions
17536 *) supports_anon_versioning=yes ;;
17537 esac
17538
17539 # See if GNU ld supports shared libraries.
17540 case $host_os in
17541 aix[3-9]*)
17542 # On AIX/PPC, the GNU linker is very broken
17543 if test "$host_cpu" != ia64; then
17544 ld_shlibs_GCJ=no
17545 cat <<EOF 1>&2
17546
17547 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17548 *** to be unable to reliably create shared libraries on AIX.
17549 *** Therefore, libtool is disabling shared libraries support. If you
17550 *** really care for shared libraries, you may want to modify your PATH
17551 *** so that a non-GNU linker is found, and then restart.
17552
17553 EOF
17554 fi
17555 ;;
17556
17557 amigaos*)
17558 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)'
17559 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17560 hardcode_minus_L_GCJ=yes
17561
17562 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
17563 # that the semantics of dynamic libraries on AmigaOS, at least up
17564 # to version 4, is to share data among multiple programs linked
17565 # with the same dynamic library. Since this doesn't match the
17566 # behavior of shared libraries on other platforms, we can't use
17567 # them.
17568 ld_shlibs_GCJ=no
17569 ;;
17570
17571 beos*)
17572 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17573 allow_undefined_flag_GCJ=unsupported
17574 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
17575 # support --undefined. This deserves some investigation. FIXME
17576 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17577 else
17578 ld_shlibs_GCJ=no
17579 fi
17580 ;;
17581
17582 cygwin* | mingw* | pw32*)
17583 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17584 # as there is no search path for DLLs.
17585 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17586 allow_undefined_flag_GCJ=unsupported
17587 always_export_symbols_GCJ=no
17588 enable_shared_with_static_runtimes_GCJ=yes
17589 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17590
17591 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17592 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17593 # If the export-symbols file already is a .def file (1st line
17594 # is EXPORTS), use it as is; otherwise, prepend...
17595 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17596 cp $export_symbols $output_objdir/$soname.def;
17597 else
17598 echo EXPORTS > $output_objdir/$soname.def;
17599 cat $export_symbols >> $output_objdir/$soname.def;
17600 fi~
17601 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17602 else
17603 ld_shlibs_GCJ=no
17604 fi
17605 ;;
17606
17607 interix[3-9]*)
17608 hardcode_direct_GCJ=no
17609 hardcode_shlibpath_var_GCJ=no
17610 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17611 export_dynamic_flag_spec_GCJ='${wl}-E'
17612 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17613 # Instead, shared libraries are loaded at an image base (0x10000000 by
17614 # default) and relocated if they conflict, which is a slow very memory
17615 # consuming and fragmenting process. To avoid this, we pick a random,
17616 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17617 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17618 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'
17619 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'
17620 ;;
17621
17622 gnu* | linux* | k*bsd*-gnu)
17623 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17624 tmp_addflag=
17625 case $cc_basename,$host_cpu in
17626 pgcc*) # Portland Group C compiler
17627 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'
17628 tmp_addflag=' $pic_flag'
17629 ;;
17630 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17631 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'
17632 tmp_addflag=' $pic_flag -Mnomain' ;;
17633 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17634 tmp_addflag=' -i_dynamic' ;;
17635 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17636 tmp_addflag=' -i_dynamic -nofor_main' ;;
17637 ifc* | ifort*) # Intel Fortran compiler
17638 tmp_addflag=' -nofor_main' ;;
17639 esac
17640 case `$CC -V 2>&1 | sed 5q` in
17641 *Sun\ C*) # Sun C 5.9
17642 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17643 tmp_sharedflag='-G' ;;
17644 *Sun\ F*) # Sun Fortran 8.3
17645 tmp_sharedflag='-G' ;;
17646 *)
17647 tmp_sharedflag='-shared' ;;
17648 esac
17649 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17650
17651 if test $supports_anon_versioning = yes; then
17652 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17653 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17654 $echo "local: *; };" >> $output_objdir/$libname.ver~
17655 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17656 fi
17657 else
17658 ld_shlibs_GCJ=no
17659 fi
17660 ;;
17661
17662 netbsd*)
17663 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17664 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17665 wlarc=
17666 else
17667 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17668 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17669 fi
17670 ;;
17671
17672 solaris*)
17673 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17674 ld_shlibs_GCJ=no
17675 cat <<EOF 1>&2
17676
17677 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17678 *** create shared libraries on Solaris systems. Therefore, libtool
17679 *** is disabling shared libraries support. We urge you to upgrade GNU
17680 *** binutils to release 2.9.1 or newer. Another option is to modify
17681 *** your PATH or compiler configuration so that the native linker is
17682 *** used, and then restart.
17683
17684 EOF
17685 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17686 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17687 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17688 else
17689 ld_shlibs_GCJ=no
17690 fi
17691 ;;
17692
17693 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17694 case `$LD -v 2>&1` in
17695 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17696 ld_shlibs_GCJ=no
17697 cat <<_LT_EOF 1>&2
17698
17699 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17700 *** reliably create shared libraries on SCO systems. Therefore, libtool
17701 *** is disabling shared libraries support. We urge you to upgrade GNU
17702 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17703 *** your PATH or compiler configuration so that the native linker is
17704 *** used, and then restart.
17705
17706 _LT_EOF
17707 ;;
17708 *)
17709 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17710 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17711 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17712 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17713 else
17714 ld_shlibs_GCJ=no
17715 fi
17716 ;;
17717 esac
17718 ;;
17719
17720 sunos4*)
17721 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17722 wlarc=
17723 hardcode_direct_GCJ=yes
17724 hardcode_shlibpath_var_GCJ=no
17725 ;;
17726
17727 *)
17728 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17729 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17730 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17731 else
17732 ld_shlibs_GCJ=no
17733 fi
17734 ;;
17735 esac
17736
17737 if test "$ld_shlibs_GCJ" = no; then
17738 runpath_var=
17739 hardcode_libdir_flag_spec_GCJ=
17740 export_dynamic_flag_spec_GCJ=
17741 whole_archive_flag_spec_GCJ=
17742 fi
17743 else
17744 # PORTME fill in a description of your system's linker (not GNU ld)
17745 case $host_os in
17746 aix3*)
17747 allow_undefined_flag_GCJ=unsupported
17748 always_export_symbols_GCJ=yes
17749 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'
17750 # Note: this linker hardcodes the directories in LIBPATH if there
17751 # are no directories specified by -L.
17752 hardcode_minus_L_GCJ=yes
17753 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17754 # Neither direct hardcoding nor static linking is supported with a
17755 # broken collect2.
17756 hardcode_direct_GCJ=unsupported
17757 fi
17758 ;;
17759
17760 aix[4-9]*)
17761 if test "$host_cpu" = ia64; then
17762 # On IA64, the linker does run time linking by default, so we don't
17763 # have to do anything special.
17764 aix_use_runtimelinking=no
17765 exp_sym_flag='-Bexport'
17766 no_entry_flag=""
17767 else
17768 # If we're using GNU nm, then we don't want the "-C" option.
17769 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17770 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17771 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'
17772 else
17773 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'
17774 fi
17775 aix_use_runtimelinking=no
17776
17777 # Test if we are trying to use run time linking or normal
17778 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17779 # need to do runtime linking.
17780 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17781 for ld_flag in $LDFLAGS; do
17782 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17783 aix_use_runtimelinking=yes
17784 break
17785 fi
17786 done
17787 ;;
17788 esac
17789
17790 exp_sym_flag='-bexport'
17791 no_entry_flag='-bnoentry'
17792 fi
17793
17794 # When large executables or shared objects are built, AIX ld can
17795 # have problems creating the table of contents. If linking a library
17796 # or program results in "error TOC overflow" add -mminimal-toc to
17797 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17798 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17799
17800 archive_cmds_GCJ=''
17801 hardcode_direct_GCJ=yes
17802 hardcode_libdir_separator_GCJ=':'
17803 link_all_deplibs_GCJ=yes
17804
17805 if test "$GCC" = yes; then
17806 case $host_os in aix4.[012]|aix4.[012].*)
17807 # We only want to do this on AIX 4.2 and lower, the check
17808 # below for broken collect2 doesn't work under 4.3+
17809 collect2name=`${CC} -print-prog-name=collect2`
17810 if test -f "$collect2name" && \
17811 strings "$collect2name" | grep resolve_lib_name >/dev/null
17812 then
17813 # We have reworked collect2
17814 :
17815 else
17816 # We have old collect2
17817 hardcode_direct_GCJ=unsupported
17818 # It fails to find uninstalled libraries when the uninstalled
17819 # path is not listed in the libpath. Setting hardcode_minus_L
17820 # to unsupported forces relinking
17821 hardcode_minus_L_GCJ=yes
17822 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17823 hardcode_libdir_separator_GCJ=
17824 fi
17825 ;;
17826 esac
17827 shared_flag='-shared'
17828 if test "$aix_use_runtimelinking" = yes; then
17829 shared_flag="$shared_flag "'${wl}-G'
17830 fi
17831 else
17832 # not using gcc
17833 if test "$host_cpu" = ia64; then
17834 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17835 # chokes on -Wl,-G. The following line is correct:
17836 shared_flag='-G'
17837 else
17838 if test "$aix_use_runtimelinking" = yes; then
17839 shared_flag='${wl}-G'
17840 else
17841 shared_flag='${wl}-bM:SRE'
17842 fi
17843 fi
17844 fi
17845
17846 # It seems that -bexpall does not export symbols beginning with
17847 # underscore (_), so it is better to generate a list of symbols to export.
17848 always_export_symbols_GCJ=yes
17849 if test "$aix_use_runtimelinking" = yes; then
17850 # Warning - without using the other runtime loading flags (-brtl),
17851 # -berok will link without error, but may produce a broken library.
17852 allow_undefined_flag_GCJ='-berok'
17853 # Determine the default libpath from the value encoded in an empty executable.
17854 cat >conftest.$ac_ext <<_ACEOF
17855 /* confdefs.h. */
17856 _ACEOF
17857 cat confdefs.h >>conftest.$ac_ext
17858 cat >>conftest.$ac_ext <<_ACEOF
17859 /* end confdefs.h. */
17860
17861 int
17862 main ()
17863 {
17864
17865 ;
17866 return 0;
17867 }
17868 _ACEOF
17869 rm -f conftest.$ac_objext conftest$ac_exeext
17870 if { (ac_try="$ac_link"
17871 case "(($ac_try" in
17872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17873 *) ac_try_echo=$ac_try;;
17874 esac
17875 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17876 $as_echo "$ac_try_echo") >&5
17877 (eval "$ac_link") 2>conftest.er1
17878 ac_status=$?
17879 grep -v '^ *+' conftest.er1 >conftest.err
17880 rm -f conftest.er1
17881 cat conftest.err >&5
17882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17883 (exit $ac_status); } && {
17884 test -z "$ac_c_werror_flag" ||
17885 test ! -s conftest.err
17886 } && test -s conftest$ac_exeext && {
17887 test "$cross_compiling" = yes ||
17888 $as_test_x conftest$ac_exeext
17889 }; then
17890
17891 lt_aix_libpath_sed='
17892 /Import File Strings/,/^$/ {
17893 /^0/ {
17894 s/^0 *\(.*\)$/\1/
17895 p
17896 }
17897 }'
17898 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17899 # Check for a 64-bit object if we didn't find anything.
17900 if test -z "$aix_libpath"; then
17901 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17902 fi
17903 else
17904 $as_echo "$as_me: failed program was:" >&5
17905 sed 's/^/| /' conftest.$ac_ext >&5
17906
17907
17908 fi
17909
17910 rm -rf conftest.dSYM
17911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17912 conftest$ac_exeext conftest.$ac_ext
17913 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17914
17915 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17916 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"
17917 else
17918 if test "$host_cpu" = ia64; then
17919 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17920 allow_undefined_flag_GCJ="-z nodefs"
17921 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"
17922 else
17923 # Determine the default libpath from the value encoded in an empty executable.
17924 cat >conftest.$ac_ext <<_ACEOF
17925 /* confdefs.h. */
17926 _ACEOF
17927 cat confdefs.h >>conftest.$ac_ext
17928 cat >>conftest.$ac_ext <<_ACEOF
17929 /* end confdefs.h. */
17930
17931 int
17932 main ()
17933 {
17934
17935 ;
17936 return 0;
17937 }
17938 _ACEOF
17939 rm -f conftest.$ac_objext conftest$ac_exeext
17940 if { (ac_try="$ac_link"
17941 case "(($ac_try" in
17942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17943 *) ac_try_echo=$ac_try;;
17944 esac
17945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17946 $as_echo "$ac_try_echo") >&5
17947 (eval "$ac_link") 2>conftest.er1
17948 ac_status=$?
17949 grep -v '^ *+' conftest.er1 >conftest.err
17950 rm -f conftest.er1
17951 cat conftest.err >&5
17952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17953 (exit $ac_status); } && {
17954 test -z "$ac_c_werror_flag" ||
17955 test ! -s conftest.err
17956 } && test -s conftest$ac_exeext && {
17957 test "$cross_compiling" = yes ||
17958 $as_test_x conftest$ac_exeext
17959 }; then
17960
17961 lt_aix_libpath_sed='
17962 /Import File Strings/,/^$/ {
17963 /^0/ {
17964 s/^0 *\(.*\)$/\1/
17965 p
17966 }
17967 }'
17968 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17969 # Check for a 64-bit object if we didn't find anything.
17970 if test -z "$aix_libpath"; then
17971 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17972 fi
17973 else
17974 $as_echo "$as_me: failed program was:" >&5
17975 sed 's/^/| /' conftest.$ac_ext >&5
17976
17977
17978 fi
17979
17980 rm -rf conftest.dSYM
17981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17982 conftest$ac_exeext conftest.$ac_ext
17983 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17984
17985 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17986 # Warning - without using the other run time loading flags,
17987 # -berok will link without error, but may produce a broken library.
17988 no_undefined_flag_GCJ=' ${wl}-bernotok'
17989 allow_undefined_flag_GCJ=' ${wl}-berok'
17990 # Exported symbols can be pulled into shared objects from archives
17991 whole_archive_flag_spec_GCJ='$convenience'
17992 archive_cmds_need_lc_GCJ=yes
17993 # This is similar to how AIX traditionally builds its shared libraries.
17994 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'
17995 fi
17996 fi
17997 ;;
17998
17999 amigaos*)
18000 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)'
18001 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18002 hardcode_minus_L_GCJ=yes
18003 # see comment about different semantics on the GNU ld section
18004 ld_shlibs_GCJ=no
18005 ;;
18006
18007 bsdi[45]*)
18008 export_dynamic_flag_spec_GCJ=-rdynamic
18009 ;;
18010
18011 cygwin* | mingw* | pw32*)
18012 # When not using gcc, we currently assume that we are using
18013 # Microsoft Visual C++.
18014 # hardcode_libdir_flag_spec is actually meaningless, as there is
18015 # no search path for DLLs.
18016 hardcode_libdir_flag_spec_GCJ=' '
18017 allow_undefined_flag_GCJ=unsupported
18018 # Tell ltmain to make .lib files, not .a files.
18019 libext=lib
18020 # Tell ltmain to make .dll files, not .so files.
18021 shrext_cmds=".dll"
18022 # FIXME: Setting linknames here is a bad hack.
18023 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18024 # The linker will automatically build a .lib file if we build a DLL.
18025 old_archive_From_new_cmds_GCJ='true'
18026 # FIXME: Should let the user specify the lib program.
18027 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18028 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18029 enable_shared_with_static_runtimes_GCJ=yes
18030 ;;
18031
18032 darwin* | rhapsody*)
18033 case $host_os in
18034 rhapsody* | darwin1.[012])
18035 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18036 ;;
18037 *) # Darwin 1.3 on
18038 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18039 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18040 else
18041 case ${MACOSX_DEPLOYMENT_TARGET} in
18042 10.[012])
18043 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18044 ;;
18045 10.*)
18046 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18047 ;;
18048 esac
18049 fi
18050 ;;
18051 esac
18052 archive_cmds_need_lc_GCJ=no
18053 hardcode_direct_GCJ=no
18054 hardcode_automatic_GCJ=yes
18055 hardcode_shlibpath_var_GCJ=unsupported
18056 whole_archive_flag_spec_GCJ=''
18057 link_all_deplibs_GCJ=yes
18058 if test "$GCC" = yes ; then
18059 output_verbose_link_cmd='echo'
18060 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18061 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18062 archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
18063 module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
18064 else
18065 case $cc_basename in
18066 xlc*)
18067 output_verbose_link_cmd='echo'
18068 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18069 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18070 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18071 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18072 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}'
18073 ;;
18074 *)
18075 ld_shlibs_GCJ=no
18076 ;;
18077 esac
18078 fi
18079 ;;
18080
18081 dgux*)
18082 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18083 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18084 hardcode_shlibpath_var_GCJ=no
18085 ;;
18086
18087 freebsd1*)
18088 ld_shlibs_GCJ=no
18089 ;;
18090
18091 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18092 # support. Future versions do this automatically, but an explicit c++rt0.o
18093 # does not break anything, and helps significantly (at the cost of a little
18094 # extra space).
18095 freebsd2.2*)
18096 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18097 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18098 hardcode_direct_GCJ=yes
18099 hardcode_shlibpath_var_GCJ=no
18100 ;;
18101
18102 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18103 freebsd2*)
18104 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18105 hardcode_direct_GCJ=yes
18106 hardcode_minus_L_GCJ=yes
18107 hardcode_shlibpath_var_GCJ=no
18108 ;;
18109
18110 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18111 freebsd* | dragonfly*)
18112 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18113 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18114 hardcode_direct_GCJ=yes
18115 hardcode_shlibpath_var_GCJ=no
18116 ;;
18117
18118 hpux9*)
18119 if test "$GCC" = yes; then
18120 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'
18121 else
18122 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'
18123 fi
18124 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18125 hardcode_libdir_separator_GCJ=:
18126 hardcode_direct_GCJ=yes
18127
18128 # hardcode_minus_L: Not really in the search PATH,
18129 # but as the default location of the library.
18130 hardcode_minus_L_GCJ=yes
18131 export_dynamic_flag_spec_GCJ='${wl}-E'
18132 ;;
18133
18134 hpux10*)
18135 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18136 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18137 else
18138 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18139 fi
18140 if test "$with_gnu_ld" = no; then
18141 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18142 hardcode_libdir_separator_GCJ=:
18143
18144 hardcode_direct_GCJ=yes
18145 export_dynamic_flag_spec_GCJ='${wl}-E'
18146
18147 # hardcode_minus_L: Not really in the search PATH,
18148 # but as the default location of the library.
18149 hardcode_minus_L_GCJ=yes
18150 fi
18151 ;;
18152
18153 hpux11*)
18154 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18155 case $host_cpu in
18156 hppa*64*)
18157 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18158 ;;
18159 ia64*)
18160 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18161 ;;
18162 *)
18163 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18164 ;;
18165 esac
18166 else
18167 case $host_cpu in
18168 hppa*64*)
18169 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18170 ;;
18171 ia64*)
18172 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18173 ;;
18174 *)
18175 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18176 ;;
18177 esac
18178 fi
18179 if test "$with_gnu_ld" = no; then
18180 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18181 hardcode_libdir_separator_GCJ=:
18182
18183 case $host_cpu in
18184 hppa*64*|ia64*)
18185 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18186 hardcode_direct_GCJ=no
18187 hardcode_shlibpath_var_GCJ=no
18188 ;;
18189 *)
18190 hardcode_direct_GCJ=yes
18191 export_dynamic_flag_spec_GCJ='${wl}-E'
18192
18193 # hardcode_minus_L: Not really in the search PATH,
18194 # but as the default location of the library.
18195 hardcode_minus_L_GCJ=yes
18196 ;;
18197 esac
18198 fi
18199 ;;
18200
18201 irix5* | irix6* | nonstopux*)
18202 if test "$GCC" = yes; then
18203 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'
18204 else
18205 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'
18206 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18207 fi
18208 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18209 hardcode_libdir_separator_GCJ=:
18210 link_all_deplibs_GCJ=yes
18211 ;;
18212
18213 netbsd*)
18214 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18215 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18216 else
18217 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18218 fi
18219 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18220 hardcode_direct_GCJ=yes
18221 hardcode_shlibpath_var_GCJ=no
18222 ;;
18223
18224 newsos6)
18225 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18226 hardcode_direct_GCJ=yes
18227 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18228 hardcode_libdir_separator_GCJ=:
18229 hardcode_shlibpath_var_GCJ=no
18230 ;;
18231
18232 openbsd*)
18233 if test -f /usr/libexec/ld.so; then
18234 hardcode_direct_GCJ=yes
18235 hardcode_shlibpath_var_GCJ=no
18236 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18237 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18238 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18239 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18240 export_dynamic_flag_spec_GCJ='${wl}-E'
18241 else
18242 case $host_os in
18243 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18244 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18245 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18246 ;;
18247 *)
18248 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18249 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18250 ;;
18251 esac
18252 fi
18253 else
18254 ld_shlibs_GCJ=no
18255 fi
18256 ;;
18257
18258 os2*)
18259 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18260 hardcode_minus_L_GCJ=yes
18261 allow_undefined_flag_GCJ=unsupported
18262 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'
18263 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18264 ;;
18265
18266 osf3*)
18267 if test "$GCC" = yes; then
18268 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18269 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'
18270 else
18271 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18272 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'
18273 fi
18274 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18275 hardcode_libdir_separator_GCJ=:
18276 ;;
18277
18278 osf4* | osf5*) # as osf3* with the addition of -msym flag
18279 if test "$GCC" = yes; then
18280 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18281 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'
18282 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18283 else
18284 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18285 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'
18286 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~
18287 $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'
18288
18289 # Both c and cxx compiler support -rpath directly
18290 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18291 fi
18292 hardcode_libdir_separator_GCJ=:
18293 ;;
18294
18295 solaris*)
18296 no_undefined_flag_GCJ=' -z text'
18297 if test "$GCC" = yes; then
18298 wlarc='${wl}'
18299 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18300 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18301 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18302 else
18303 wlarc=''
18304 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18305 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18306 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18307 fi
18308 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18309 hardcode_shlibpath_var_GCJ=no
18310 case $host_os in
18311 solaris2.[0-5] | solaris2.[0-5].*) ;;
18312 *)
18313 # The compiler driver will combine and reorder linker options,
18314 # but understands `-z linker_flag'. GCC discards it without `$wl',
18315 # but is careful enough not to reorder.
18316 # Supported since Solaris 2.6 (maybe 2.5.1?)
18317 if test "$GCC" = yes; then
18318 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18319 else
18320 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18321 fi
18322 ;;
18323 esac
18324 link_all_deplibs_GCJ=yes
18325 ;;
18326
18327 sunos4*)
18328 if test "x$host_vendor" = xsequent; then
18329 # Use $CC to link under sequent, because it throws in some extra .o
18330 # files that make .init and .fini sections work.
18331 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18332 else
18333 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18334 fi
18335 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18336 hardcode_direct_GCJ=yes
18337 hardcode_minus_L_GCJ=yes
18338 hardcode_shlibpath_var_GCJ=no
18339 ;;
18340
18341 sysv4)
18342 case $host_vendor in
18343 sni)
18344 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18345 hardcode_direct_GCJ=yes # is this really true???
18346 ;;
18347 siemens)
18348 ## LD is ld it makes a PLAMLIB
18349 ## CC just makes a GrossModule.
18350 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18351 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18352 hardcode_direct_GCJ=no
18353 ;;
18354 motorola)
18355 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18356 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18357 ;;
18358 esac
18359 runpath_var='LD_RUN_PATH'
18360 hardcode_shlibpath_var_GCJ=no
18361 ;;
18362
18363 sysv4.3*)
18364 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18365 hardcode_shlibpath_var_GCJ=no
18366 export_dynamic_flag_spec_GCJ='-Bexport'
18367 ;;
18368
18369 sysv4*MP*)
18370 if test -d /usr/nec; then
18371 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18372 hardcode_shlibpath_var_GCJ=no
18373 runpath_var=LD_RUN_PATH
18374 hardcode_runpath_var=yes
18375 ld_shlibs_GCJ=yes
18376 fi
18377 ;;
18378
18379 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18380 no_undefined_flag_GCJ='${wl}-z,text'
18381 archive_cmds_need_lc_GCJ=no
18382 hardcode_shlibpath_var_GCJ=no
18383 runpath_var='LD_RUN_PATH'
18384
18385 if test "$GCC" = yes; then
18386 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18387 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18388 else
18389 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18390 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18391 fi
18392 ;;
18393
18394 sysv5* | sco3.2v5* | sco5v6*)
18395 # Note: We can NOT use -z defs as we might desire, because we do not
18396 # link with -lc, and that would cause any symbols used from libc to
18397 # always be unresolved, which means just about no library would
18398 # ever link correctly. If we're not using GNU ld we use -z text
18399 # though, which does catch some bad symbols but isn't as heavy-handed
18400 # as -z defs.
18401 no_undefined_flag_GCJ='${wl}-z,text'
18402 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18403 archive_cmds_need_lc_GCJ=no
18404 hardcode_shlibpath_var_GCJ=no
18405 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18406 hardcode_libdir_separator_GCJ=':'
18407 link_all_deplibs_GCJ=yes
18408 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18409 runpath_var='LD_RUN_PATH'
18410
18411 if test "$GCC" = yes; then
18412 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18413 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18414 else
18415 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18416 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18417 fi
18418 ;;
18419
18420 uts4*)
18421 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18422 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18423 hardcode_shlibpath_var_GCJ=no
18424 ;;
18425
18426 *)
18427 ld_shlibs_GCJ=no
18428 ;;
18429 esac
18430 fi
18431
18432 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18433 $as_echo "$ld_shlibs_GCJ" >&6; }
18434 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18435
18436 #
18437 # Do we need to explicitly link libc?
18438 #
18439 case "x$archive_cmds_need_lc_GCJ" in
18440 x|xyes)
18441 # Assume -lc should be added
18442 archive_cmds_need_lc_GCJ=yes
18443
18444 if test "$enable_shared" = yes && test "$GCC" = yes; then
18445 case $archive_cmds_GCJ in
18446 *'~'*)
18447 # FIXME: we may have to deal with multi-command sequences.
18448 ;;
18449 '$CC '*)
18450 # Test whether the compiler implicitly links with -lc since on some
18451 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18452 # to ld, don't add -lc before -lgcc.
18453 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18454 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18455 $rm conftest*
18456 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18457
18458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18459 (eval $ac_compile) 2>&5
18460 ac_status=$?
18461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18462 (exit $ac_status); } 2>conftest.err; then
18463 soname=conftest
18464 lib=conftest
18465 libobjs=conftest.$ac_objext
18466 deplibs=
18467 wl=$lt_prog_compiler_wl_GCJ
18468 pic_flag=$lt_prog_compiler_pic_GCJ
18469 compiler_flags=-v
18470 linker_flags=-v
18471 verstring=
18472 output_objdir=.
18473 libname=conftest
18474 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18475 allow_undefined_flag_GCJ=
18476 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18477 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18478 ac_status=$?
18479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18480 (exit $ac_status); }
18481 then
18482 archive_cmds_need_lc_GCJ=no
18483 else
18484 archive_cmds_need_lc_GCJ=yes
18485 fi
18486 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18487 else
18488 cat conftest.err 1>&5
18489 fi
18490 $rm conftest*
18491 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18492 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
18493 ;;
18494 esac
18495 fi
18496 ;;
18497 esac
18498
18499 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18500 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18501 library_names_spec=
18502 libname_spec='lib$name'
18503 soname_spec=
18504 shrext_cmds=".so"
18505 postinstall_cmds=
18506 postuninstall_cmds=
18507 finish_cmds=
18508 finish_eval=
18509 shlibpath_var=
18510 shlibpath_overrides_runpath=unknown
18511 version_type=none
18512 dynamic_linker="$host_os ld.so"
18513 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18514
18515 need_lib_prefix=unknown
18516 hardcode_into_libs=no
18517
18518 # when you set need_version to no, make sure it does not cause -set_version
18519 # flags to be left without arguments
18520 need_version=unknown
18521
18522 case $host_os in
18523 aix3*)
18524 version_type=linux
18525 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18526 shlibpath_var=LIBPATH
18527
18528 # AIX 3 has no versioning support, so we append a major version to the name.
18529 soname_spec='${libname}${release}${shared_ext}$major'
18530 ;;
18531
18532 aix[4-9]*)
18533 version_type=linux
18534 need_lib_prefix=no
18535 need_version=no
18536 hardcode_into_libs=yes
18537 if test "$host_cpu" = ia64; then
18538 # AIX 5 supports IA64
18539 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18540 shlibpath_var=LD_LIBRARY_PATH
18541 else
18542 # With GCC up to 2.95.x, collect2 would create an import file
18543 # for dependence libraries. The import file would start with
18544 # the line `#! .'. This would cause the generated library to
18545 # depend on `.', always an invalid library. This was fixed in
18546 # development snapshots of GCC prior to 3.0.
18547 case $host_os in
18548 aix4 | aix4.[01] | aix4.[01].*)
18549 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18550 echo ' yes '
18551 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18552 :
18553 else
18554 can_build_shared=no
18555 fi
18556 ;;
18557 esac
18558 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18559 # soname into executable. Probably we can add versioning support to
18560 # collect2, so additional links can be useful in future.
18561 if test "$aix_use_runtimelinking" = yes; then
18562 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18563 # instead of lib<name>.a to let people know that these are not
18564 # typical AIX shared libraries.
18565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18566 else
18567 # We preserve .a as extension for shared libraries through AIX4.2
18568 # and later when we are not doing run time linking.
18569 library_names_spec='${libname}${release}.a $libname.a'
18570 soname_spec='${libname}${release}${shared_ext}$major'
18571 fi
18572 shlibpath_var=LIBPATH
18573 fi
18574 ;;
18575
18576 amigaos*)
18577 library_names_spec='$libname.ixlibrary $libname.a'
18578 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18579 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'
18580 ;;
18581
18582 beos*)
18583 library_names_spec='${libname}${shared_ext}'
18584 dynamic_linker="$host_os ld.so"
18585 shlibpath_var=LIBRARY_PATH
18586 ;;
18587
18588 bsdi[45]*)
18589 version_type=linux
18590 need_version=no
18591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18592 soname_spec='${libname}${release}${shared_ext}$major'
18593 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18594 shlibpath_var=LD_LIBRARY_PATH
18595 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18596 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18597 # the default ld.so.conf also contains /usr/contrib/lib and
18598 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18599 # libtool to hard-code these into programs
18600 ;;
18601
18602 cygwin* | mingw* | pw32*)
18603 version_type=windows
18604 shrext_cmds=".dll"
18605 need_version=no
18606 need_lib_prefix=no
18607
18608 case $GCC,$host_os in
18609 yes,cygwin* | yes,mingw* | yes,pw32*)
18610 library_names_spec='$libname.dll.a'
18611 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18612 postinstall_cmds='base_file=`basename \${file}`~
18613 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18614 dldir=$destdir/`dirname \$dlpath`~
18615 test -d \$dldir || mkdir -p \$dldir~
18616 $install_prog $dir/$dlname \$dldir/$dlname~
18617 chmod a+x \$dldir/$dlname'
18618 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18619 dlpath=$dir/\$dldll~
18620 $rm \$dlpath'
18621 shlibpath_overrides_runpath=yes
18622
18623 case $host_os in
18624 cygwin*)
18625 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18626 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18627 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18628 ;;
18629 mingw*)
18630 # MinGW DLLs use traditional 'lib' prefix
18631 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18632 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18633 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18634 # It is most probably a Windows format PATH printed by
18635 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18636 # path with ; separators, and with drive letters. We can handle the
18637 # drive letters (cygwin fileutils understands them), so leave them,
18638 # especially as we might pass files found there to a mingw objdump,
18639 # which wouldn't understand a cygwinified path. Ahh.
18640 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18641 else
18642 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18643 fi
18644 ;;
18645 pw32*)
18646 # pw32 DLLs use 'pw' prefix rather than 'lib'
18647 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18648 ;;
18649 esac
18650 ;;
18651
18652 *)
18653 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18654 ;;
18655 esac
18656 dynamic_linker='Win32 ld.exe'
18657 # FIXME: first we should search . and the directory the executable is in
18658 shlibpath_var=PATH
18659 ;;
18660
18661 darwin* | rhapsody*)
18662 dynamic_linker="$host_os dyld"
18663 version_type=darwin
18664 need_lib_prefix=no
18665 need_version=no
18666 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18667 soname_spec='${libname}${release}${major}$shared_ext'
18668 shlibpath_overrides_runpath=yes
18669 shlibpath_var=DYLD_LIBRARY_PATH
18670 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18671
18672 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18673 ;;
18674
18675 dgux*)
18676 version_type=linux
18677 need_lib_prefix=no
18678 need_version=no
18679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18680 soname_spec='${libname}${release}${shared_ext}$major'
18681 shlibpath_var=LD_LIBRARY_PATH
18682 ;;
18683
18684 freebsd1*)
18685 dynamic_linker=no
18686 ;;
18687
18688 freebsd* | dragonfly*)
18689 # DragonFly does not have aout. When/if they implement a new
18690 # versioning mechanism, adjust this.
18691 if test -x /usr/bin/objformat; then
18692 objformat=`/usr/bin/objformat`
18693 else
18694 case $host_os in
18695 freebsd[123]*) objformat=aout ;;
18696 *) objformat=elf ;;
18697 esac
18698 fi
18699 version_type=freebsd-$objformat
18700 case $version_type in
18701 freebsd-elf*)
18702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18703 need_version=no
18704 need_lib_prefix=no
18705 ;;
18706 freebsd-*)
18707 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18708 need_version=yes
18709 ;;
18710 esac
18711 shlibpath_var=LD_LIBRARY_PATH
18712 case $host_os in
18713 freebsd2*)
18714 shlibpath_overrides_runpath=yes
18715 ;;
18716 freebsd3.[01]* | freebsdelf3.[01]*)
18717 shlibpath_overrides_runpath=yes
18718 hardcode_into_libs=yes
18719 ;;
18720 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18721 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18722 shlibpath_overrides_runpath=no
18723 hardcode_into_libs=yes
18724 ;;
18725 *) # from 4.6 on, and DragonFly
18726 shlibpath_overrides_runpath=yes
18727 hardcode_into_libs=yes
18728 ;;
18729 esac
18730 ;;
18731
18732 gnu*)
18733 version_type=linux
18734 need_lib_prefix=no
18735 need_version=no
18736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18737 soname_spec='${libname}${release}${shared_ext}$major'
18738 shlibpath_var=LD_LIBRARY_PATH
18739 hardcode_into_libs=yes
18740 ;;
18741
18742 hpux9* | hpux10* | hpux11*)
18743 # Give a soname corresponding to the major version so that dld.sl refuses to
18744 # link against other versions.
18745 version_type=sunos
18746 need_lib_prefix=no
18747 need_version=no
18748 case $host_cpu in
18749 ia64*)
18750 shrext_cmds='.so'
18751 hardcode_into_libs=yes
18752 dynamic_linker="$host_os dld.so"
18753 shlibpath_var=LD_LIBRARY_PATH
18754 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18756 soname_spec='${libname}${release}${shared_ext}$major'
18757 if test "X$HPUX_IA64_MODE" = X32; then
18758 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18759 else
18760 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18761 fi
18762 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18763 ;;
18764 hppa*64*)
18765 shrext_cmds='.sl'
18766 hardcode_into_libs=yes
18767 dynamic_linker="$host_os dld.sl"
18768 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18769 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18771 soname_spec='${libname}${release}${shared_ext}$major'
18772 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18773 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18774 ;;
18775 *)
18776 shrext_cmds='.sl'
18777 dynamic_linker="$host_os dld.sl"
18778 shlibpath_var=SHLIB_PATH
18779 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18781 soname_spec='${libname}${release}${shared_ext}$major'
18782 ;;
18783 esac
18784 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18785 postinstall_cmds='chmod 555 $lib'
18786 ;;
18787
18788 interix[3-9]*)
18789 version_type=linux
18790 need_lib_prefix=no
18791 need_version=no
18792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18793 soname_spec='${libname}${release}${shared_ext}$major'
18794 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18795 shlibpath_var=LD_LIBRARY_PATH
18796 shlibpath_overrides_runpath=no
18797 hardcode_into_libs=yes
18798 ;;
18799
18800 irix5* | irix6* | nonstopux*)
18801 case $host_os in
18802 nonstopux*) version_type=nonstopux ;;
18803 *)
18804 if test "$lt_cv_prog_gnu_ld" = yes; then
18805 version_type=linux
18806 else
18807 version_type=irix
18808 fi ;;
18809 esac
18810 need_lib_prefix=no
18811 need_version=no
18812 soname_spec='${libname}${release}${shared_ext}$major'
18813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18814 case $host_os in
18815 irix5* | nonstopux*)
18816 libsuff= shlibsuff=
18817 ;;
18818 *)
18819 case $LD in # libtool.m4 will add one of these switches to LD
18820 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18821 libsuff= shlibsuff= libmagic=32-bit;;
18822 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18823 libsuff=32 shlibsuff=N32 libmagic=N32;;
18824 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18825 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18826 *) libsuff= shlibsuff= libmagic=never-match;;
18827 esac
18828 ;;
18829 esac
18830 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18831 shlibpath_overrides_runpath=no
18832 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18833 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18834 hardcode_into_libs=yes
18835 ;;
18836
18837 # No shared lib support for Linux oldld, aout, or coff.
18838 linux*oldld* | linux*aout* | linux*coff*)
18839 dynamic_linker=no
18840 ;;
18841
18842 # This must be Linux ELF.
18843 linux* | k*bsd*-gnu)
18844 version_type=linux
18845 need_lib_prefix=no
18846 need_version=no
18847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18848 soname_spec='${libname}${release}${shared_ext}$major'
18849 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18850 shlibpath_var=LD_LIBRARY_PATH
18851 shlibpath_overrides_runpath=no
18852 # This implies no fast_install, which is unacceptable.
18853 # Some rework will be needed to allow for fast_install
18854 # before this can be enabled.
18855 hardcode_into_libs=yes
18856 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18857 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18858
18859 # Append ld.so.conf contents to the search path
18860 if test -f /etc/ld.so.conf; then
18861 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18862 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18863 fi
18864
18865 # We used to test for /lib/ld.so.1 and disable shared libraries on
18866 # powerpc, because MkLinux only supported shared libraries with the
18867 # GNU dynamic linker. Since this was broken with cross compilers,
18868 # most powerpc-linux boxes support dynamic linking these days and
18869 # people can always --disable-shared, the test was removed, and we
18870 # assume the GNU/Linux dynamic linker is in use.
18871 dynamic_linker='GNU/Linux ld.so'
18872 ;;
18873
18874 netbsd*)
18875 version_type=sunos
18876 need_lib_prefix=no
18877 need_version=no
18878 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18880 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18881 dynamic_linker='NetBSD (a.out) ld.so'
18882 else
18883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18884 soname_spec='${libname}${release}${shared_ext}$major'
18885 dynamic_linker='NetBSD ld.elf_so'
18886 fi
18887 shlibpath_var=LD_LIBRARY_PATH
18888 shlibpath_overrides_runpath=yes
18889 hardcode_into_libs=yes
18890 ;;
18891
18892 newsos6)
18893 version_type=linux
18894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18895 shlibpath_var=LD_LIBRARY_PATH
18896 shlibpath_overrides_runpath=yes
18897 ;;
18898
18899 nto-qnx*)
18900 version_type=linux
18901 need_lib_prefix=no
18902 need_version=no
18903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18904 soname_spec='${libname}${release}${shared_ext}$major'
18905 shlibpath_var=LD_LIBRARY_PATH
18906 shlibpath_overrides_runpath=yes
18907 ;;
18908
18909 openbsd*)
18910 version_type=sunos
18911 sys_lib_dlsearch_path_spec="/usr/lib"
18912 need_lib_prefix=no
18913 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18914 case $host_os in
18915 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18916 *) need_version=no ;;
18917 esac
18918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18919 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18920 shlibpath_var=LD_LIBRARY_PATH
18921 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18922 case $host_os in
18923 openbsd2.[89] | openbsd2.[89].*)
18924 shlibpath_overrides_runpath=no
18925 ;;
18926 *)
18927 shlibpath_overrides_runpath=yes
18928 ;;
18929 esac
18930 else
18931 shlibpath_overrides_runpath=yes
18932 fi
18933 ;;
18934
18935 os2*)
18936 libname_spec='$name'
18937 shrext_cmds=".dll"
18938 need_lib_prefix=no
18939 library_names_spec='$libname${shared_ext} $libname.a'
18940 dynamic_linker='OS/2 ld.exe'
18941 shlibpath_var=LIBPATH
18942 ;;
18943
18944 osf3* | osf4* | osf5*)
18945 version_type=osf
18946 need_lib_prefix=no
18947 need_version=no
18948 soname_spec='${libname}${release}${shared_ext}$major'
18949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18950 shlibpath_var=LD_LIBRARY_PATH
18951 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18952 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18953 ;;
18954
18955 rdos*)
18956 dynamic_linker=no
18957 ;;
18958
18959 solaris*)
18960 version_type=linux
18961 need_lib_prefix=no
18962 need_version=no
18963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18964 soname_spec='${libname}${release}${shared_ext}$major'
18965 shlibpath_var=LD_LIBRARY_PATH
18966 shlibpath_overrides_runpath=yes
18967 hardcode_into_libs=yes
18968 # ldd complains unless libraries are executable
18969 postinstall_cmds='chmod +x $lib'
18970 ;;
18971
18972 sunos4*)
18973 version_type=sunos
18974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18975 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18976 shlibpath_var=LD_LIBRARY_PATH
18977 shlibpath_overrides_runpath=yes
18978 if test "$with_gnu_ld" = yes; then
18979 need_lib_prefix=no
18980 fi
18981 need_version=yes
18982 ;;
18983
18984 sysv4 | sysv4.3*)
18985 version_type=linux
18986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18987 soname_spec='${libname}${release}${shared_ext}$major'
18988 shlibpath_var=LD_LIBRARY_PATH
18989 case $host_vendor in
18990 sni)
18991 shlibpath_overrides_runpath=no
18992 need_lib_prefix=no
18993 export_dynamic_flag_spec='${wl}-Blargedynsym'
18994 runpath_var=LD_RUN_PATH
18995 ;;
18996 siemens)
18997 need_lib_prefix=no
18998 ;;
18999 motorola)
19000 need_lib_prefix=no
19001 need_version=no
19002 shlibpath_overrides_runpath=no
19003 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19004 ;;
19005 esac
19006 ;;
19007
19008 sysv4*MP*)
19009 if test -d /usr/nec ;then
19010 version_type=linux
19011 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19012 soname_spec='$libname${shared_ext}.$major'
19013 shlibpath_var=LD_LIBRARY_PATH
19014 fi
19015 ;;
19016
19017 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19018 version_type=freebsd-elf
19019 need_lib_prefix=no
19020 need_version=no
19021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19022 soname_spec='${libname}${release}${shared_ext}$major'
19023 shlibpath_var=LD_LIBRARY_PATH
19024 hardcode_into_libs=yes
19025 if test "$with_gnu_ld" = yes; then
19026 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19027 shlibpath_overrides_runpath=no
19028 else
19029 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19030 shlibpath_overrides_runpath=yes
19031 case $host_os in
19032 sco3.2v5*)
19033 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19034 ;;
19035 esac
19036 fi
19037 sys_lib_dlsearch_path_spec='/usr/lib'
19038 ;;
19039
19040 uts4*)
19041 version_type=linux
19042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19043 soname_spec='${libname}${release}${shared_ext}$major'
19044 shlibpath_var=LD_LIBRARY_PATH
19045 ;;
19046
19047 *)
19048 dynamic_linker=no
19049 ;;
19050 esac
19051 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19052 $as_echo "$dynamic_linker" >&6; }
19053 test "$dynamic_linker" = no && can_build_shared=no
19054
19055 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19056 $as_echo_n "(cached) " >&6
19057 else
19058 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19059 fi
19060
19061 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19062 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19063 $as_echo_n "(cached) " >&6
19064 else
19065 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19066 fi
19067
19068 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19069
19070 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19071 if test "$GCC" = yes; then
19072 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19073 fi
19074
19075 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19076 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19077 hardcode_action_GCJ=
19078 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19079 test -n "$runpath_var_GCJ" || \
19080 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19081
19082 # We can hardcode non-existant directories.
19083 if test "$hardcode_direct_GCJ" != no &&
19084 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19085 # have to relink, otherwise we might link with an installed library
19086 # when we should be linking with a yet-to-be-installed one
19087 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19088 test "$hardcode_minus_L_GCJ" != no; then
19089 # Linking always hardcodes the temporary library directory.
19090 hardcode_action_GCJ=relink
19091 else
19092 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19093 hardcode_action_GCJ=immediate
19094 fi
19095 else
19096 # We cannot hardcode anything, or else we can only hardcode existing
19097 # directories.
19098 hardcode_action_GCJ=unsupported
19099 fi
19100 { $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19101 $as_echo "$hardcode_action_GCJ" >&6; }
19102
19103 if test "$hardcode_action_GCJ" = relink; then
19104 # Fast installation is not supported
19105 enable_fast_install=no
19106 elif test "$shlibpath_overrides_runpath" = yes ||
19107 test "$enable_shared" = no; then
19108 # Fast installation is not necessary
19109 enable_fast_install=needless
19110 fi
19111
19112
19113 # The else clause should only fire when bootstrapping the
19114 # libtool distribution, otherwise you forgot to ship ltmain.sh
19115 # with your package, and you will get complaints that there are
19116 # no rules to generate ltmain.sh.
19117 if test -f "$ltmain"; then
19118 # See if we are running on zsh, and set the options which allow our commands through
19119 # without removal of \ escapes.
19120 if test -n "${ZSH_VERSION+set}" ; then
19121 setopt NO_GLOB_SUBST
19122 fi
19123 # Now quote all the things that may contain metacharacters while being
19124 # careful not to overquote the AC_SUBSTed values. We take copies of the
19125 # variables and quote the copies for generation of the libtool script.
19126 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19127 SED SHELL STRIP \
19128 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19129 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19130 deplibs_check_method reload_flag reload_cmds need_locks \
19131 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19132 lt_cv_sys_global_symbol_to_c_name_address \
19133 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19134 old_postinstall_cmds old_postuninstall_cmds \
19135 compiler_GCJ \
19136 CC_GCJ \
19137 LD_GCJ \
19138 lt_prog_compiler_wl_GCJ \
19139 lt_prog_compiler_pic_GCJ \
19140 lt_prog_compiler_static_GCJ \
19141 lt_prog_compiler_no_builtin_flag_GCJ \
19142 export_dynamic_flag_spec_GCJ \
19143 thread_safe_flag_spec_GCJ \
19144 whole_archive_flag_spec_GCJ \
19145 enable_shared_with_static_runtimes_GCJ \
19146 old_archive_cmds_GCJ \
19147 old_archive_from_new_cmds_GCJ \
19148 predep_objects_GCJ \
19149 postdep_objects_GCJ \
19150 predeps_GCJ \
19151 postdeps_GCJ \
19152 compiler_lib_search_path_GCJ \
19153 compiler_lib_search_dirs_GCJ \
19154 archive_cmds_GCJ \
19155 archive_expsym_cmds_GCJ \
19156 postinstall_cmds_GCJ \
19157 postuninstall_cmds_GCJ \
19158 old_archive_from_expsyms_cmds_GCJ \
19159 allow_undefined_flag_GCJ \
19160 no_undefined_flag_GCJ \
19161 export_symbols_cmds_GCJ \
19162 hardcode_libdir_flag_spec_GCJ \
19163 hardcode_libdir_flag_spec_ld_GCJ \
19164 hardcode_libdir_separator_GCJ \
19165 hardcode_automatic_GCJ \
19166 module_cmds_GCJ \
19167 module_expsym_cmds_GCJ \
19168 lt_cv_prog_compiler_c_o_GCJ \
19169 fix_srcfile_path_GCJ \
19170 exclude_expsyms_GCJ \
19171 include_expsyms_GCJ; do
19172
19173 case $var in
19174 old_archive_cmds_GCJ | \
19175 old_archive_from_new_cmds_GCJ | \
19176 archive_cmds_GCJ | \
19177 archive_expsym_cmds_GCJ | \
19178 module_cmds_GCJ | \
19179 module_expsym_cmds_GCJ | \
19180 old_archive_from_expsyms_cmds_GCJ | \
19181 export_symbols_cmds_GCJ | \
19182 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19183 postinstall_cmds | postuninstall_cmds | \
19184 old_postinstall_cmds | old_postuninstall_cmds | \
19185 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19186 # Double-quote double-evaled strings.
19187 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19188 ;;
19189 *)
19190 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19191 ;;
19192 esac
19193 done
19194
19195 case $lt_echo in
19196 *'\$0 --fallback-echo"')
19197 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19198 ;;
19199 esac
19200
19201 cfgfile="$ofile"
19202
19203 cat <<__EOF__ >> "$cfgfile"
19204 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19205
19206 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19207
19208 # Shell to use when invoking shell scripts.
19209 SHELL=$lt_SHELL
19210
19211 # Whether or not to build shared libraries.
19212 build_libtool_libs=$enable_shared
19213
19214 # Whether or not to build static libraries.
19215 build_old_libs=$enable_static
19216
19217 # Whether or not to add -lc for building shared libraries.
19218 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19219
19220 # Whether or not to disallow shared libs when runtime libs are static
19221 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19222
19223 # Whether or not to optimize for fast installation.
19224 fast_install=$enable_fast_install
19225
19226 # The host system.
19227 host_alias=$host_alias
19228 host=$host
19229 host_os=$host_os
19230
19231 # The build system.
19232 build_alias=$build_alias
19233 build=$build
19234 build_os=$build_os
19235
19236 # An echo program that does not interpret backslashes.
19237 echo=$lt_echo
19238
19239 # The archiver.
19240 AR=$lt_AR
19241 AR_FLAGS=$lt_AR_FLAGS
19242
19243 # A C compiler.
19244 LTCC=$lt_LTCC
19245
19246 # LTCC compiler flags.
19247 LTCFLAGS=$lt_LTCFLAGS
19248
19249 # A language-specific compiler.
19250 CC=$lt_compiler_GCJ
19251
19252 # Is the compiler the GNU C compiler?
19253 with_gcc=$GCC_GCJ
19254
19255 # An ERE matcher.
19256 EGREP=$lt_EGREP
19257
19258 # The linker used to build libraries.
19259 LD=$lt_LD_GCJ
19260
19261 # Whether we need hard or soft links.
19262 LN_S=$lt_LN_S
19263
19264 # A BSD-compatible nm program.
19265 NM=$lt_NM
19266
19267 # A symbol stripping program
19268 STRIP=$lt_STRIP
19269
19270 # Used to examine libraries when file_magic_cmd begins "file"
19271 MAGIC_CMD=$MAGIC_CMD
19272
19273 # Used on cygwin: DLL creation program.
19274 DLLTOOL="$DLLTOOL"
19275
19276 # Used on cygwin: object dumper.
19277 OBJDUMP="$OBJDUMP"
19278
19279 # Used on cygwin: assembler.
19280 AS="$AS"
19281
19282 # The name of the directory that contains temporary libtool files.
19283 objdir=$objdir
19284
19285 # How to create reloadable object files.
19286 reload_flag=$lt_reload_flag
19287 reload_cmds=$lt_reload_cmds
19288
19289 # How to pass a linker flag through the compiler.
19290 wl=$lt_lt_prog_compiler_wl_GCJ
19291
19292 # Object file suffix (normally "o").
19293 objext="$ac_objext"
19294
19295 # Old archive suffix (normally "a").
19296 libext="$libext"
19297
19298 # Shared library suffix (normally ".so").
19299 shrext_cmds='$shrext_cmds'
19300
19301 # Executable file suffix (normally "").
19302 exeext="$exeext"
19303
19304 # Additional compiler flags for building library objects.
19305 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19306 pic_mode=$pic_mode
19307
19308 # What is the maximum length of a command?
19309 max_cmd_len=$lt_cv_sys_max_cmd_len
19310
19311 # Does compiler simultaneously support -c and -o options?
19312 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19313
19314 # Must we lock files when doing compilation?
19315 need_locks=$lt_need_locks
19316
19317 # Do we need the lib prefix for modules?
19318 need_lib_prefix=$need_lib_prefix
19319
19320 # Do we need a version for libraries?
19321 need_version=$need_version
19322
19323 # Whether dlopen is supported.
19324 dlopen_support=$enable_dlopen
19325
19326 # Whether dlopen of programs is supported.
19327 dlopen_self=$enable_dlopen_self
19328
19329 # Whether dlopen of statically linked programs is supported.
19330 dlopen_self_static=$enable_dlopen_self_static
19331
19332 # Compiler flag to prevent dynamic linking.
19333 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19334
19335 # Compiler flag to turn off builtin functions.
19336 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19337
19338 # Compiler flag to allow reflexive dlopens.
19339 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19340
19341 # Compiler flag to generate shared objects directly from archives.
19342 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19343
19344 # Compiler flag to generate thread-safe objects.
19345 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19346
19347 # Library versioning type.
19348 version_type=$version_type
19349
19350 # Format of library name prefix.
19351 libname_spec=$lt_libname_spec
19352
19353 # List of archive names. First name is the real one, the rest are links.
19354 # The last name is the one that the linker finds with -lNAME.
19355 library_names_spec=$lt_library_names_spec
19356
19357 # The coded name of the library, if different from the real name.
19358 soname_spec=$lt_soname_spec
19359
19360 # Commands used to build and install an old-style archive.
19361 RANLIB=$lt_RANLIB
19362 old_archive_cmds=$lt_old_archive_cmds_GCJ
19363 old_postinstall_cmds=$lt_old_postinstall_cmds
19364 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19365
19366 # Create an old-style archive from a shared archive.
19367 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19368
19369 # Create a temporary old-style archive to link instead of a shared archive.
19370 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19371
19372 # Commands used to build and install a shared archive.
19373 archive_cmds=$lt_archive_cmds_GCJ
19374 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19375 postinstall_cmds=$lt_postinstall_cmds
19376 postuninstall_cmds=$lt_postuninstall_cmds
19377
19378 # Commands used to build a loadable module (assumed same as above if empty)
19379 module_cmds=$lt_module_cmds_GCJ
19380 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19381
19382 # Commands to strip libraries.
19383 old_striplib=$lt_old_striplib
19384 striplib=$lt_striplib
19385
19386 # Dependencies to place before the objects being linked to create a
19387 # shared library.
19388 predep_objects=$lt_predep_objects_GCJ
19389
19390 # Dependencies to place after the objects being linked to create a
19391 # shared library.
19392 postdep_objects=$lt_postdep_objects_GCJ
19393
19394 # Dependencies to place before the objects being linked to create a
19395 # shared library.
19396 predeps=$lt_predeps_GCJ
19397
19398 # Dependencies to place after the objects being linked to create a
19399 # shared library.
19400 postdeps=$lt_postdeps_GCJ
19401
19402 # The directories searched by this compiler when creating a shared
19403 # library
19404 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19405
19406 # The library search path used internally by the compiler when linking
19407 # a shared library.
19408 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19409
19410 # Method to check whether dependent libraries are shared objects.
19411 deplibs_check_method=$lt_deplibs_check_method
19412
19413 # Command to use when deplibs_check_method == file_magic.
19414 file_magic_cmd=$lt_file_magic_cmd
19415
19416 # Flag that allows shared libraries with undefined symbols to be built.
19417 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19418
19419 # Flag that forces no undefined symbols.
19420 no_undefined_flag=$lt_no_undefined_flag_GCJ
19421
19422 # Commands used to finish a libtool library installation in a directory.
19423 finish_cmds=$lt_finish_cmds
19424
19425 # Same as above, but a single script fragment to be evaled but not shown.
19426 finish_eval=$lt_finish_eval
19427
19428 # Take the output of nm and produce a listing of raw symbols and C names.
19429 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19430
19431 # Transform the output of nm in a proper C declaration
19432 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19433
19434 # Transform the output of nm in a C name address pair
19435 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19436
19437 # This is the shared library runtime path variable.
19438 runpath_var=$runpath_var
19439
19440 # This is the shared library path variable.
19441 shlibpath_var=$shlibpath_var
19442
19443 # Is shlibpath searched before the hard-coded library search path?
19444 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19445
19446 # How to hardcode a shared library path into an executable.
19447 hardcode_action=$hardcode_action_GCJ
19448
19449 # Whether we should hardcode library paths into libraries.
19450 hardcode_into_libs=$hardcode_into_libs
19451
19452 # Flag to hardcode \$libdir into a binary during linking.
19453 # This must work even if \$libdir does not exist.
19454 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19455
19456 # If ld is used when linking, flag to hardcode \$libdir into
19457 # a binary during linking. This must work even if \$libdir does
19458 # not exist.
19459 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19460
19461 # Whether we need a single -rpath flag with a separated argument.
19462 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19463
19464 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19465 # resulting binary.
19466 hardcode_direct=$hardcode_direct_GCJ
19467
19468 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19469 # resulting binary.
19470 hardcode_minus_L=$hardcode_minus_L_GCJ
19471
19472 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19473 # the resulting binary.
19474 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19475
19476 # Set to yes if building a shared library automatically hardcodes DIR into the library
19477 # and all subsequent libraries and executables linked against it.
19478 hardcode_automatic=$hardcode_automatic_GCJ
19479
19480 # Variables whose values should be saved in libtool wrapper scripts and
19481 # restored at relink time.
19482 variables_saved_for_relink="$variables_saved_for_relink"
19483
19484 # Whether libtool must link a program against all its dependency libraries.
19485 link_all_deplibs=$link_all_deplibs_GCJ
19486
19487 # Compile-time system search path for libraries
19488 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19489
19490 # Run-time system search path for libraries
19491 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19492
19493 # Fix the shell variable \$srcfile for the compiler.
19494 fix_srcfile_path=$lt_fix_srcfile_path
19495
19496 # Set to yes if exported symbols are required.
19497 always_export_symbols=$always_export_symbols_GCJ
19498
19499 # The commands to list exported symbols.
19500 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19501
19502 # The commands to extract the exported symbol list from a shared archive.
19503 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19504
19505 # Symbols that should not be listed in the preloaded symbols.
19506 exclude_expsyms=$lt_exclude_expsyms_GCJ
19507
19508 # Symbols that must always be exported.
19509 include_expsyms=$lt_include_expsyms_GCJ
19510
19511 # ### END LIBTOOL TAG CONFIG: $tagname
19512
19513 __EOF__
19514
19515
19516 else
19517 # If there is no Makefile yet, we rely on a make rule to execute
19518 # `config.status --recheck' to rerun these tests and create the
19519 # libtool script then.
19520 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19521 if test -f "$ltmain_in"; then
19522 test -f Makefile && make "$ltmain"
19523 fi
19524 fi
19525
19526
19527 ac_ext=c
19528 ac_cpp='$CPP $CPPFLAGS'
19529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19532
19533 CC="$lt_save_CC"
19534
19535 else
19536 tagname=""
19537 fi
19538 ;;
19539
19540 RC)
19541
19542
19543 # Source file extension for RC test sources.
19544 ac_ext=rc
19545
19546 # Object file extension for compiled RC test sources.
19547 objext=o
19548 objext_RC=$objext
19549
19550 # Code to be used in simple compile tests
19551 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19552
19553 # Code to be used in simple link tests
19554 lt_simple_link_test_code="$lt_simple_compile_test_code"
19555
19556 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19557
19558 # If no C compiler was specified, use CC.
19559 LTCC=${LTCC-"$CC"}
19560
19561 # If no C compiler flags were specified, use CFLAGS.
19562 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19563
19564 # Allow CC to be a program name with arguments.
19565 compiler=$CC
19566
19567
19568 # save warnings/boilerplate of simple test code
19569 ac_outfile=conftest.$ac_objext
19570 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19571 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19572 _lt_compiler_boilerplate=`cat conftest.err`
19573 $rm conftest*
19574
19575 ac_outfile=conftest.$ac_objext
19576 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19577 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19578 _lt_linker_boilerplate=`cat conftest.err`
19579 $rm -r conftest*
19580
19581
19582 # Allow CC to be a program name with arguments.
19583 lt_save_CC="$CC"
19584 CC=${RC-"windres"}
19585 compiler=$CC
19586 compiler_RC=$CC
19587 for cc_temp in $compiler""; do
19588 case $cc_temp in
19589 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19590 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19591 \-*) ;;
19592 *) break;;
19593 esac
19594 done
19595 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19596
19597 lt_cv_prog_compiler_c_o_RC=yes
19598
19599 # The else clause should only fire when bootstrapping the
19600 # libtool distribution, otherwise you forgot to ship ltmain.sh
19601 # with your package, and you will get complaints that there are
19602 # no rules to generate ltmain.sh.
19603 if test -f "$ltmain"; then
19604 # See if we are running on zsh, and set the options which allow our commands through
19605 # without removal of \ escapes.
19606 if test -n "${ZSH_VERSION+set}" ; then
19607 setopt NO_GLOB_SUBST
19608 fi
19609 # Now quote all the things that may contain metacharacters while being
19610 # careful not to overquote the AC_SUBSTed values. We take copies of the
19611 # variables and quote the copies for generation of the libtool script.
19612 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19613 SED SHELL STRIP \
19614 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19615 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19616 deplibs_check_method reload_flag reload_cmds need_locks \
19617 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19618 lt_cv_sys_global_symbol_to_c_name_address \
19619 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19620 old_postinstall_cmds old_postuninstall_cmds \
19621 compiler_RC \
19622 CC_RC \
19623 LD_RC \
19624 lt_prog_compiler_wl_RC \
19625 lt_prog_compiler_pic_RC \
19626 lt_prog_compiler_static_RC \
19627 lt_prog_compiler_no_builtin_flag_RC \
19628 export_dynamic_flag_spec_RC \
19629 thread_safe_flag_spec_RC \
19630 whole_archive_flag_spec_RC \
19631 enable_shared_with_static_runtimes_RC \
19632 old_archive_cmds_RC \
19633 old_archive_from_new_cmds_RC \
19634 predep_objects_RC \
19635 postdep_objects_RC \
19636 predeps_RC \
19637 postdeps_RC \
19638 compiler_lib_search_path_RC \
19639 compiler_lib_search_dirs_RC \
19640 archive_cmds_RC \
19641 archive_expsym_cmds_RC \
19642 postinstall_cmds_RC \
19643 postuninstall_cmds_RC \
19644 old_archive_from_expsyms_cmds_RC \
19645 allow_undefined_flag_RC \
19646 no_undefined_flag_RC \
19647 export_symbols_cmds_RC \
19648 hardcode_libdir_flag_spec_RC \
19649 hardcode_libdir_flag_spec_ld_RC \
19650 hardcode_libdir_separator_RC \
19651 hardcode_automatic_RC \
19652 module_cmds_RC \
19653 module_expsym_cmds_RC \
19654 lt_cv_prog_compiler_c_o_RC \
19655 fix_srcfile_path_RC \
19656 exclude_expsyms_RC \
19657 include_expsyms_RC; do
19658
19659 case $var in
19660 old_archive_cmds_RC | \
19661 old_archive_from_new_cmds_RC | \
19662 archive_cmds_RC | \
19663 archive_expsym_cmds_RC | \
19664 module_cmds_RC | \
19665 module_expsym_cmds_RC | \
19666 old_archive_from_expsyms_cmds_RC | \
19667 export_symbols_cmds_RC | \
19668 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19669 postinstall_cmds | postuninstall_cmds | \
19670 old_postinstall_cmds | old_postuninstall_cmds | \
19671 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19672 # Double-quote double-evaled strings.
19673 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19674 ;;
19675 *)
19676 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19677 ;;
19678 esac
19679 done
19680
19681 case $lt_echo in
19682 *'\$0 --fallback-echo"')
19683 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19684 ;;
19685 esac
19686
19687 cfgfile="$ofile"
19688
19689 cat <<__EOF__ >> "$cfgfile"
19690 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19691
19692 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19693
19694 # Shell to use when invoking shell scripts.
19695 SHELL=$lt_SHELL
19696
19697 # Whether or not to build shared libraries.
19698 build_libtool_libs=$enable_shared
19699
19700 # Whether or not to build static libraries.
19701 build_old_libs=$enable_static
19702
19703 # Whether or not to add -lc for building shared libraries.
19704 build_libtool_need_lc=$archive_cmds_need_lc_RC
19705
19706 # Whether or not to disallow shared libs when runtime libs are static
19707 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19708
19709 # Whether or not to optimize for fast installation.
19710 fast_install=$enable_fast_install
19711
19712 # The host system.
19713 host_alias=$host_alias
19714 host=$host
19715 host_os=$host_os
19716
19717 # The build system.
19718 build_alias=$build_alias
19719 build=$build
19720 build_os=$build_os
19721
19722 # An echo program that does not interpret backslashes.
19723 echo=$lt_echo
19724
19725 # The archiver.
19726 AR=$lt_AR
19727 AR_FLAGS=$lt_AR_FLAGS
19728
19729 # A C compiler.
19730 LTCC=$lt_LTCC
19731
19732 # LTCC compiler flags.
19733 LTCFLAGS=$lt_LTCFLAGS
19734
19735 # A language-specific compiler.
19736 CC=$lt_compiler_RC
19737
19738 # Is the compiler the GNU C compiler?
19739 with_gcc=$GCC_RC
19740
19741 # An ERE matcher.
19742 EGREP=$lt_EGREP
19743
19744 # The linker used to build libraries.
19745 LD=$lt_LD_RC
19746
19747 # Whether we need hard or soft links.
19748 LN_S=$lt_LN_S
19749
19750 # A BSD-compatible nm program.
19751 NM=$lt_NM
19752
19753 # A symbol stripping program
19754 STRIP=$lt_STRIP
19755
19756 # Used to examine libraries when file_magic_cmd begins "file"
19757 MAGIC_CMD=$MAGIC_CMD
19758
19759 # Used on cygwin: DLL creation program.
19760 DLLTOOL="$DLLTOOL"
19761
19762 # Used on cygwin: object dumper.
19763 OBJDUMP="$OBJDUMP"
19764
19765 # Used on cygwin: assembler.
19766 AS="$AS"
19767
19768 # The name of the directory that contains temporary libtool files.
19769 objdir=$objdir
19770
19771 # How to create reloadable object files.
19772 reload_flag=$lt_reload_flag
19773 reload_cmds=$lt_reload_cmds
19774
19775 # How to pass a linker flag through the compiler.
19776 wl=$lt_lt_prog_compiler_wl_RC
19777
19778 # Object file suffix (normally "o").
19779 objext="$ac_objext"
19780
19781 # Old archive suffix (normally "a").
19782 libext="$libext"
19783
19784 # Shared library suffix (normally ".so").
19785 shrext_cmds='$shrext_cmds'
19786
19787 # Executable file suffix (normally "").
19788 exeext="$exeext"
19789
19790 # Additional compiler flags for building library objects.
19791 pic_flag=$lt_lt_prog_compiler_pic_RC
19792 pic_mode=$pic_mode
19793
19794 # What is the maximum length of a command?
19795 max_cmd_len=$lt_cv_sys_max_cmd_len
19796
19797 # Does compiler simultaneously support -c and -o options?
19798 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19799
19800 # Must we lock files when doing compilation?
19801 need_locks=$lt_need_locks
19802
19803 # Do we need the lib prefix for modules?
19804 need_lib_prefix=$need_lib_prefix
19805
19806 # Do we need a version for libraries?
19807 need_version=$need_version
19808
19809 # Whether dlopen is supported.
19810 dlopen_support=$enable_dlopen
19811
19812 # Whether dlopen of programs is supported.
19813 dlopen_self=$enable_dlopen_self
19814
19815 # Whether dlopen of statically linked programs is supported.
19816 dlopen_self_static=$enable_dlopen_self_static
19817
19818 # Compiler flag to prevent dynamic linking.
19819 link_static_flag=$lt_lt_prog_compiler_static_RC
19820
19821 # Compiler flag to turn off builtin functions.
19822 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19823
19824 # Compiler flag to allow reflexive dlopens.
19825 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19826
19827 # Compiler flag to generate shared objects directly from archives.
19828 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19829
19830 # Compiler flag to generate thread-safe objects.
19831 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19832
19833 # Library versioning type.
19834 version_type=$version_type
19835
19836 # Format of library name prefix.
19837 libname_spec=$lt_libname_spec
19838
19839 # List of archive names. First name is the real one, the rest are links.
19840 # The last name is the one that the linker finds with -lNAME.
19841 library_names_spec=$lt_library_names_spec
19842
19843 # The coded name of the library, if different from the real name.
19844 soname_spec=$lt_soname_spec
19845
19846 # Commands used to build and install an old-style archive.
19847 RANLIB=$lt_RANLIB
19848 old_archive_cmds=$lt_old_archive_cmds_RC
19849 old_postinstall_cmds=$lt_old_postinstall_cmds
19850 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19851
19852 # Create an old-style archive from a shared archive.
19853 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19854
19855 # Create a temporary old-style archive to link instead of a shared archive.
19856 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19857
19858 # Commands used to build and install a shared archive.
19859 archive_cmds=$lt_archive_cmds_RC
19860 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19861 postinstall_cmds=$lt_postinstall_cmds
19862 postuninstall_cmds=$lt_postuninstall_cmds
19863
19864 # Commands used to build a loadable module (assumed same as above if empty)
19865 module_cmds=$lt_module_cmds_RC
19866 module_expsym_cmds=$lt_module_expsym_cmds_RC
19867
19868 # Commands to strip libraries.
19869 old_striplib=$lt_old_striplib
19870 striplib=$lt_striplib
19871
19872 # Dependencies to place before the objects being linked to create a
19873 # shared library.
19874 predep_objects=$lt_predep_objects_RC
19875
19876 # Dependencies to place after the objects being linked to create a
19877 # shared library.
19878 postdep_objects=$lt_postdep_objects_RC
19879
19880 # Dependencies to place before the objects being linked to create a
19881 # shared library.
19882 predeps=$lt_predeps_RC
19883
19884 # Dependencies to place after the objects being linked to create a
19885 # shared library.
19886 postdeps=$lt_postdeps_RC
19887
19888 # The directories searched by this compiler when creating a shared
19889 # library
19890 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19891
19892 # The library search path used internally by the compiler when linking
19893 # a shared library.
19894 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19895
19896 # Method to check whether dependent libraries are shared objects.
19897 deplibs_check_method=$lt_deplibs_check_method
19898
19899 # Command to use when deplibs_check_method == file_magic.
19900 file_magic_cmd=$lt_file_magic_cmd
19901
19902 # Flag that allows shared libraries with undefined symbols to be built.
19903 allow_undefined_flag=$lt_allow_undefined_flag_RC
19904
19905 # Flag that forces no undefined symbols.
19906 no_undefined_flag=$lt_no_undefined_flag_RC
19907
19908 # Commands used to finish a libtool library installation in a directory.
19909 finish_cmds=$lt_finish_cmds
19910
19911 # Same as above, but a single script fragment to be evaled but not shown.
19912 finish_eval=$lt_finish_eval
19913
19914 # Take the output of nm and produce a listing of raw symbols and C names.
19915 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19916
19917 # Transform the output of nm in a proper C declaration
19918 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19919
19920 # Transform the output of nm in a C name address pair
19921 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19922
19923 # This is the shared library runtime path variable.
19924 runpath_var=$runpath_var
19925
19926 # This is the shared library path variable.
19927 shlibpath_var=$shlibpath_var
19928
19929 # Is shlibpath searched before the hard-coded library search path?
19930 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19931
19932 # How to hardcode a shared library path into an executable.
19933 hardcode_action=$hardcode_action_RC
19934
19935 # Whether we should hardcode library paths into libraries.
19936 hardcode_into_libs=$hardcode_into_libs
19937
19938 # Flag to hardcode \$libdir into a binary during linking.
19939 # This must work even if \$libdir does not exist.
19940 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19941
19942 # If ld is used when linking, flag to hardcode \$libdir into
19943 # a binary during linking. This must work even if \$libdir does
19944 # not exist.
19945 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19946
19947 # Whether we need a single -rpath flag with a separated argument.
19948 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19949
19950 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19951 # resulting binary.
19952 hardcode_direct=$hardcode_direct_RC
19953
19954 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19955 # resulting binary.
19956 hardcode_minus_L=$hardcode_minus_L_RC
19957
19958 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19959 # the resulting binary.
19960 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19961
19962 # Set to yes if building a shared library automatically hardcodes DIR into the library
19963 # and all subsequent libraries and executables linked against it.
19964 hardcode_automatic=$hardcode_automatic_RC
19965
19966 # Variables whose values should be saved in libtool wrapper scripts and
19967 # restored at relink time.
19968 variables_saved_for_relink="$variables_saved_for_relink"
19969
19970 # Whether libtool must link a program against all its dependency libraries.
19971 link_all_deplibs=$link_all_deplibs_RC
19972
19973 # Compile-time system search path for libraries
19974 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19975
19976 # Run-time system search path for libraries
19977 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19978
19979 # Fix the shell variable \$srcfile for the compiler.
19980 fix_srcfile_path=$lt_fix_srcfile_path
19981
19982 # Set to yes if exported symbols are required.
19983 always_export_symbols=$always_export_symbols_RC
19984
19985 # The commands to list exported symbols.
19986 export_symbols_cmds=$lt_export_symbols_cmds_RC
19987
19988 # The commands to extract the exported symbol list from a shared archive.
19989 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19990
19991 # Symbols that should not be listed in the preloaded symbols.
19992 exclude_expsyms=$lt_exclude_expsyms_RC
19993
19994 # Symbols that must always be exported.
19995 include_expsyms=$lt_include_expsyms_RC
19996
19997 # ### END LIBTOOL TAG CONFIG: $tagname
19998
19999 __EOF__
20000
20001
20002 else
20003 # If there is no Makefile yet, we rely on a make rule to execute
20004 # `config.status --recheck' to rerun these tests and create the
20005 # libtool script then.
20006 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20007 if test -f "$ltmain_in"; then
20008 test -f Makefile && make "$ltmain"
20009 fi
20010 fi
20011
20012
20013 ac_ext=c
20014 ac_cpp='$CPP $CPPFLAGS'
20015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20018
20019 CC="$lt_save_CC"
20020
20021 ;;
20022
20023 *)
20024 { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20025 $as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20026 { (exit 1); exit 1; }; }
20027 ;;
20028 esac
20029
20030 # Append the new tag name to the list of available tags.
20031 if test -n "$tagname" ; then
20032 available_tags="$available_tags $tagname"
20033 fi
20034 fi
20035 done
20036 IFS="$lt_save_ifs"
20037
20038 # Now substitute the updated list of available tags.
20039 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20040 mv "${ofile}T" "$ofile"
20041 chmod +x "$ofile"
20042 else
20043 rm -f "${ofile}T"
20044 { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20045 $as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20046 { (exit 1); exit 1; }; }
20047 fi
20048 fi
20049
20050
20051
20052 # This can be used to rebuild libtool when needed
20053 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20054
20055 # Always use our own libtool.
20056 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20057
20058 # Prevent multiple expansion
20059
20060
20061
20062
20063
20064
20065
20066
20067
20068
20069
20070
20071
20072
20073
20074
20075
20076
20077
20078
20079 ac_ext=c
20080 ac_cpp='$CPP $CPPFLAGS'
20081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20084 if test -n "$ac_tool_prefix"; then
20085 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
20086 set dummy ${ac_tool_prefix}gcc; ac_word=$2
20087 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20088 $as_echo_n "checking for $ac_word... " >&6; }
20089 if test "${ac_cv_prog_CC+set}" = set; then
20090 $as_echo_n "(cached) " >&6
20091 else
20092 if test -n "$CC"; then
20093 ac_cv_prog_CC="$CC" # Let the user override the test.
20094 else
20095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20096 for as_dir in $PATH
20097 do
20098 IFS=$as_save_IFS
20099 test -z "$as_dir" && as_dir=.
20100 for ac_exec_ext in '' $ac_executable_extensions; do
20101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20102 ac_cv_prog_CC="${ac_tool_prefix}gcc"
20103 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20104 break 2
20105 fi
20106 done
20107 done
20108 IFS=$as_save_IFS
20109
20110 fi
20111 fi
20112 CC=$ac_cv_prog_CC
20113 if test -n "$CC"; then
20114 { $as_echo "$as_me:$LINENO: result: $CC" >&5
20115 $as_echo "$CC" >&6; }
20116 else
20117 { $as_echo "$as_me:$LINENO: result: no" >&5
20118 $as_echo "no" >&6; }
20119 fi
20120
20121
20122 fi
20123 if test -z "$ac_cv_prog_CC"; then
20124 ac_ct_CC=$CC
20125 # Extract the first word of "gcc", so it can be a program name with args.
20126 set dummy gcc; ac_word=$2
20127 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20128 $as_echo_n "checking for $ac_word... " >&6; }
20129 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20130 $as_echo_n "(cached) " >&6
20131 else
20132 if test -n "$ac_ct_CC"; then
20133 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20134 else
20135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20136 for as_dir in $PATH
20137 do
20138 IFS=$as_save_IFS
20139 test -z "$as_dir" && as_dir=.
20140 for ac_exec_ext in '' $ac_executable_extensions; do
20141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20142 ac_cv_prog_ac_ct_CC="gcc"
20143 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20144 break 2
20145 fi
20146 done
20147 done
20148 IFS=$as_save_IFS
20149
20150 fi
20151 fi
20152 ac_ct_CC=$ac_cv_prog_ac_ct_CC
20153 if test -n "$ac_ct_CC"; then
20154 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20155 $as_echo "$ac_ct_CC" >&6; }
20156 else
20157 { $as_echo "$as_me:$LINENO: result: no" >&5
20158 $as_echo "no" >&6; }
20159 fi
20160
20161 if test "x$ac_ct_CC" = x; then
20162 CC=""
20163 else
20164 case $cross_compiling:$ac_tool_warned in
20165 yes:)
20166 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
20167 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20168 ac_tool_warned=yes ;;
20169 esac
20170 CC=$ac_ct_CC
20171 fi
20172 else
20173 CC="$ac_cv_prog_CC"
20174 fi
20175
20176 if test -z "$CC"; then
20177 if test -n "$ac_tool_prefix"; then
20178 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
20179 set dummy ${ac_tool_prefix}cc; ac_word=$2
20180 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20181 $as_echo_n "checking for $ac_word... " >&6; }
20182 if test "${ac_cv_prog_CC+set}" = set; then
20183 $as_echo_n "(cached) " >&6
20184 else
20185 if test -n "$CC"; then
20186 ac_cv_prog_CC="$CC" # Let the user override the test.
20187 else
20188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20189 for as_dir in $PATH
20190 do
20191 IFS=$as_save_IFS
20192 test -z "$as_dir" && as_dir=.
20193 for ac_exec_ext in '' $ac_executable_extensions; do
20194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20195 ac_cv_prog_CC="${ac_tool_prefix}cc"
20196 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20197 break 2
20198 fi
20199 done
20200 done
20201 IFS=$as_save_IFS
20202
20203 fi
20204 fi
20205 CC=$ac_cv_prog_CC
20206 if test -n "$CC"; then
20207 { $as_echo "$as_me:$LINENO: result: $CC" >&5
20208 $as_echo "$CC" >&6; }
20209 else
20210 { $as_echo "$as_me:$LINENO: result: no" >&5
20211 $as_echo "no" >&6; }
20212 fi
20213
20214
20215 fi
20216 fi
20217 if test -z "$CC"; then
20218 # Extract the first word of "cc", so it can be a program name with args.
20219 set dummy cc; ac_word=$2
20220 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20221 $as_echo_n "checking for $ac_word... " >&6; }
20222 if test "${ac_cv_prog_CC+set}" = set; then
20223 $as_echo_n "(cached) " >&6
20224 else
20225 if test -n "$CC"; then
20226 ac_cv_prog_CC="$CC" # Let the user override the test.
20227 else
20228 ac_prog_rejected=no
20229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20230 for as_dir in $PATH
20231 do
20232 IFS=$as_save_IFS
20233 test -z "$as_dir" && as_dir=.
20234 for ac_exec_ext in '' $ac_executable_extensions; do
20235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20236 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
20237 ac_prog_rejected=yes
20238 continue
20239 fi
20240 ac_cv_prog_CC="cc"
20241 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20242 break 2
20243 fi
20244 done
20245 done
20246 IFS=$as_save_IFS
20247
20248 if test $ac_prog_rejected = yes; then
20249 # We found a bogon in the path, so make sure we never use it.
20250 set dummy $ac_cv_prog_CC
20251 shift
20252 if test $# != 0; then
20253 # We chose a different compiler from the bogus one.
20254 # However, it has the same basename, so the bogon will be chosen
20255 # first if we set CC to just the basename; use the full file name.
20256 shift
20257 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
20258 fi
20259 fi
20260 fi
20261 fi
20262 CC=$ac_cv_prog_CC
20263 if test -n "$CC"; then
20264 { $as_echo "$as_me:$LINENO: result: $CC" >&5
20265 $as_echo "$CC" >&6; }
20266 else
20267 { $as_echo "$as_me:$LINENO: result: no" >&5
20268 $as_echo "no" >&6; }
20269 fi
20270
20271
20272 fi
20273 if test -z "$CC"; then
20274 if test -n "$ac_tool_prefix"; then
20275 for ac_prog in cl.exe
20276 do
20277 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20278 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20279 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20280 $as_echo_n "checking for $ac_word... " >&6; }
20281 if test "${ac_cv_prog_CC+set}" = set; then
20282 $as_echo_n "(cached) " >&6
20283 else
20284 if test -n "$CC"; then
20285 ac_cv_prog_CC="$CC" # Let the user override the test.
20286 else
20287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20288 for as_dir in $PATH
20289 do
20290 IFS=$as_save_IFS
20291 test -z "$as_dir" && as_dir=.
20292 for ac_exec_ext in '' $ac_executable_extensions; do
20293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20294 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
20295 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20296 break 2
20297 fi
20298 done
20299 done
20300 IFS=$as_save_IFS
20301
20302 fi
20303 fi
20304 CC=$ac_cv_prog_CC
20305 if test -n "$CC"; then
20306 { $as_echo "$as_me:$LINENO: result: $CC" >&5
20307 $as_echo "$CC" >&6; }
20308 else
20309 { $as_echo "$as_me:$LINENO: result: no" >&5
20310 $as_echo "no" >&6; }
20311 fi
20312
20313
20314 test -n "$CC" && break
20315 done
20316 fi
20317 if test -z "$CC"; then
20318 ac_ct_CC=$CC
20319 for ac_prog in cl.exe
20320 do
20321 # Extract the first word of "$ac_prog", so it can be a program name with args.
20322 set dummy $ac_prog; ac_word=$2
20323 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20324 $as_echo_n "checking for $ac_word... " >&6; }
20325 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20326 $as_echo_n "(cached) " >&6
20327 else
20328 if test -n "$ac_ct_CC"; then
20329 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20330 else
20331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20332 for as_dir in $PATH
20333 do
20334 IFS=$as_save_IFS
20335 test -z "$as_dir" && as_dir=.
20336 for ac_exec_ext in '' $ac_executable_extensions; do
20337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20338 ac_cv_prog_ac_ct_CC="$ac_prog"
20339 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20340 break 2
20341 fi
20342 done
20343 done
20344 IFS=$as_save_IFS
20345
20346 fi
20347 fi
20348 ac_ct_CC=$ac_cv_prog_ac_ct_CC
20349 if test -n "$ac_ct_CC"; then
20350 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20351 $as_echo "$ac_ct_CC" >&6; }
20352 else
20353 { $as_echo "$as_me:$LINENO: result: no" >&5
20354 $as_echo "no" >&6; }
20355 fi
20356
20357
20358 test -n "$ac_ct_CC" && break
20359 done
20360
20361 if test "x$ac_ct_CC" = x; then
20362 CC=""
20363 else
20364 case $cross_compiling:$ac_tool_warned in
20365 yes:)
20366 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
20367 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20368 ac_tool_warned=yes ;;
20369 esac
20370 CC=$ac_ct_CC
20371 fi
20372 fi
20373
20374 fi
20375
20376
20377 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20378 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20379 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
20380 See \`config.log' for more details." >&5
20381 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
20382 See \`config.log' for more details." >&2;}
20383 { (exit 1); exit 1; }; }; }
20384
20385 # Provide some information about the compiler.
20386 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
20387 set X $ac_compile
20388 ac_compiler=$2
20389 { (ac_try="$ac_compiler --version >&5"
20390 case "(($ac_try" in
20391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20392 *) ac_try_echo=$ac_try;;
20393 esac
20394 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20395 $as_echo "$ac_try_echo") >&5
20396 (eval "$ac_compiler --version >&5") 2>&5
20397 ac_status=$?
20398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20399 (exit $ac_status); }
20400 { (ac_try="$ac_compiler -v >&5"
20401 case "(($ac_try" in
20402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20403 *) ac_try_echo=$ac_try;;
20404 esac
20405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20406 $as_echo "$ac_try_echo") >&5
20407 (eval "$ac_compiler -v >&5") 2>&5
20408 ac_status=$?
20409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20410 (exit $ac_status); }
20411 { (ac_try="$ac_compiler -V >&5"
20412 case "(($ac_try" in
20413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20414 *) ac_try_echo=$ac_try;;
20415 esac
20416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20417 $as_echo "$ac_try_echo") >&5
20418 (eval "$ac_compiler -V >&5") 2>&5
20419 ac_status=$?
20420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20421 (exit $ac_status); }
20422
20423 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
20424 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
20425 if test "${ac_cv_c_compiler_gnu+set}" = set; then
20426 $as_echo_n "(cached) " >&6
20427 else
20428 cat >conftest.$ac_ext <<_ACEOF
20429 /* confdefs.h. */
20430 _ACEOF
20431 cat confdefs.h >>conftest.$ac_ext
20432 cat >>conftest.$ac_ext <<_ACEOF
20433 /* end confdefs.h. */
20434
20435 int
20436 main ()
20437 {
20438 #ifndef __GNUC__
20439 choke me
20440 #endif
20441
20442 ;
20443 return 0;
20444 }
20445 _ACEOF
20446 rm -f conftest.$ac_objext
20447 if { (ac_try="$ac_compile"
20448 case "(($ac_try" in
20449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20450 *) ac_try_echo=$ac_try;;
20451 esac
20452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20453 $as_echo "$ac_try_echo") >&5
20454 (eval "$ac_compile") 2>conftest.er1
20455 ac_status=$?
20456 grep -v '^ *+' conftest.er1 >conftest.err
20457 rm -f conftest.er1
20458 cat conftest.err >&5
20459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20460 (exit $ac_status); } && {
20461 test -z "$ac_c_werror_flag" ||
20462 test ! -s conftest.err
20463 } && test -s conftest.$ac_objext; then
20464 ac_compiler_gnu=yes
20465 else
20466 $as_echo "$as_me: failed program was:" >&5
20467 sed 's/^/| /' conftest.$ac_ext >&5
20468
20469 ac_compiler_gnu=no
20470 fi
20471
20472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20473 ac_cv_c_compiler_gnu=$ac_compiler_gnu
20474
20475 fi
20476 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
20477 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
20478 if test $ac_compiler_gnu = yes; then
20479 GCC=yes
20480 else
20481 GCC=
20482 fi
20483 ac_test_CFLAGS=${CFLAGS+set}
20484 ac_save_CFLAGS=$CFLAGS
20485 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
20486 $as_echo_n "checking whether $CC accepts -g... " >&6; }
20487 if test "${ac_cv_prog_cc_g+set}" = set; then
20488 $as_echo_n "(cached) " >&6
20489 else
20490 ac_save_c_werror_flag=$ac_c_werror_flag
20491 ac_c_werror_flag=yes
20492 ac_cv_prog_cc_g=no
20493 CFLAGS="-g"
20494 cat >conftest.$ac_ext <<_ACEOF
20495 /* confdefs.h. */
20496 _ACEOF
20497 cat confdefs.h >>conftest.$ac_ext
20498 cat >>conftest.$ac_ext <<_ACEOF
20499 /* end confdefs.h. */
20500
20501 int
20502 main ()
20503 {
20504
20505 ;
20506 return 0;
20507 }
20508 _ACEOF
20509 rm -f conftest.$ac_objext
20510 if { (ac_try="$ac_compile"
20511 case "(($ac_try" in
20512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20513 *) ac_try_echo=$ac_try;;
20514 esac
20515 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20516 $as_echo "$ac_try_echo") >&5
20517 (eval "$ac_compile") 2>conftest.er1
20518 ac_status=$?
20519 grep -v '^ *+' conftest.er1 >conftest.err
20520 rm -f conftest.er1
20521 cat conftest.err >&5
20522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20523 (exit $ac_status); } && {
20524 test -z "$ac_c_werror_flag" ||
20525 test ! -s conftest.err
20526 } && test -s conftest.$ac_objext; then
20527 ac_cv_prog_cc_g=yes
20528 else
20529 $as_echo "$as_me: failed program was:" >&5
20530 sed 's/^/| /' conftest.$ac_ext >&5
20531
20532 CFLAGS=""
20533 cat >conftest.$ac_ext <<_ACEOF
20534 /* confdefs.h. */
20535 _ACEOF
20536 cat confdefs.h >>conftest.$ac_ext
20537 cat >>conftest.$ac_ext <<_ACEOF
20538 /* end confdefs.h. */
20539
20540 int
20541 main ()
20542 {
20543
20544 ;
20545 return 0;
20546 }
20547 _ACEOF
20548 rm -f conftest.$ac_objext
20549 if { (ac_try="$ac_compile"
20550 case "(($ac_try" in
20551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20552 *) ac_try_echo=$ac_try;;
20553 esac
20554 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20555 $as_echo "$ac_try_echo") >&5
20556 (eval "$ac_compile") 2>conftest.er1
20557 ac_status=$?
20558 grep -v '^ *+' conftest.er1 >conftest.err
20559 rm -f conftest.er1
20560 cat conftest.err >&5
20561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20562 (exit $ac_status); } && {
20563 test -z "$ac_c_werror_flag" ||
20564 test ! -s conftest.err
20565 } && test -s conftest.$ac_objext; then
20566 :
20567 else
20568 $as_echo "$as_me: failed program was:" >&5
20569 sed 's/^/| /' conftest.$ac_ext >&5
20570
20571 ac_c_werror_flag=$ac_save_c_werror_flag
20572 CFLAGS="-g"
20573 cat >conftest.$ac_ext <<_ACEOF
20574 /* confdefs.h. */
20575 _ACEOF
20576 cat confdefs.h >>conftest.$ac_ext
20577 cat >>conftest.$ac_ext <<_ACEOF
20578 /* end confdefs.h. */
20579
20580 int
20581 main ()
20582 {
20583
20584 ;
20585 return 0;
20586 }
20587 _ACEOF
20588 rm -f conftest.$ac_objext
20589 if { (ac_try="$ac_compile"
20590 case "(($ac_try" in
20591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20592 *) ac_try_echo=$ac_try;;
20593 esac
20594 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20595 $as_echo "$ac_try_echo") >&5
20596 (eval "$ac_compile") 2>conftest.er1
20597 ac_status=$?
20598 grep -v '^ *+' conftest.er1 >conftest.err
20599 rm -f conftest.er1
20600 cat conftest.err >&5
20601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20602 (exit $ac_status); } && {
20603 test -z "$ac_c_werror_flag" ||
20604 test ! -s conftest.err
20605 } && test -s conftest.$ac_objext; then
20606 ac_cv_prog_cc_g=yes
20607 else
20608 $as_echo "$as_me: failed program was:" >&5
20609 sed 's/^/| /' conftest.$ac_ext >&5
20610
20611
20612 fi
20613
20614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20615 fi
20616
20617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20618 fi
20619
20620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20621 ac_c_werror_flag=$ac_save_c_werror_flag
20622 fi
20623 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
20624 $as_echo "$ac_cv_prog_cc_g" >&6; }
20625 if test "$ac_test_CFLAGS" = set; then
20626 CFLAGS=$ac_save_CFLAGS
20627 elif test $ac_cv_prog_cc_g = yes; then
20628 if test "$GCC" = yes; then
20629 CFLAGS="-g -O2"
20630 else
20631 CFLAGS="-g"
20632 fi
20633 else
20634 if test "$GCC" = yes; then
20635 CFLAGS="-O2"
20636 else
20637 CFLAGS=
20638 fi
20639 fi
20640 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
20641 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
20642 if test "${ac_cv_prog_cc_c89+set}" = set; then
20643 $as_echo_n "(cached) " >&6
20644 else
20645 ac_cv_prog_cc_c89=no
20646 ac_save_CC=$CC
20647 cat >conftest.$ac_ext <<_ACEOF
20648 /* confdefs.h. */
20649 _ACEOF
20650 cat confdefs.h >>conftest.$ac_ext
20651 cat >>conftest.$ac_ext <<_ACEOF
20652 /* end confdefs.h. */
20653 #include <stdarg.h>
20654 #include <stdio.h>
20655 #include <sys/types.h>
20656 #include <sys/stat.h>
20657 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
20658 struct buf { int x; };
20659 FILE * (*rcsopen) (struct buf *, struct stat *, int);
20660 static char *e (p, i)
20661 char **p;
20662 int i;
20663 {
20664 return p[i];
20665 }
20666 static char *f (char * (*g) (char **, int), char **p, ...)
20667 {
20668 char *s;
20669 va_list v;
20670 va_start (v,p);
20671 s = g (p, va_arg (v,int));
20672 va_end (v);
20673 return s;
20674 }
20675
20676 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
20677 function prototypes and stuff, but not '\xHH' hex character constants.
20678 These don't provoke an error unfortunately, instead are silently treated
20679 as 'x'. The following induces an error, until -std is added to get
20680 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
20681 array size at least. It's necessary to write '\x00'==0 to get something
20682 that's true only with -std. */
20683 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20684
20685 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20686 inside strings and character constants. */
20687 #define FOO(x) 'x'
20688 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20689
20690 int test (int i, double x);
20691 struct s1 {int (*f) (int a);};
20692 struct s2 {int (*f) (double a);};
20693 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20694 int argc;
20695 char **argv;
20696 int
20697 main ()
20698 {
20699 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
20700 ;
20701 return 0;
20702 }
20703 _ACEOF
20704 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20705 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20706 do
20707 CC="$ac_save_CC $ac_arg"
20708 rm -f conftest.$ac_objext
20709 if { (ac_try="$ac_compile"
20710 case "(($ac_try" in
20711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20712 *) ac_try_echo=$ac_try;;
20713 esac
20714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20715 $as_echo "$ac_try_echo") >&5
20716 (eval "$ac_compile") 2>conftest.er1
20717 ac_status=$?
20718 grep -v '^ *+' conftest.er1 >conftest.err
20719 rm -f conftest.er1
20720 cat conftest.err >&5
20721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20722 (exit $ac_status); } && {
20723 test -z "$ac_c_werror_flag" ||
20724 test ! -s conftest.err
20725 } && test -s conftest.$ac_objext; then
20726 ac_cv_prog_cc_c89=$ac_arg
20727 else
20728 $as_echo "$as_me: failed program was:" >&5
20729 sed 's/^/| /' conftest.$ac_ext >&5
20730
20731
20732 fi
20733
20734 rm -f core conftest.err conftest.$ac_objext
20735 test "x$ac_cv_prog_cc_c89" != "xno" && break
20736 done
20737 rm -f conftest.$ac_ext
20738 CC=$ac_save_CC
20739
20740 fi
20741 # AC_CACHE_VAL
20742 case "x$ac_cv_prog_cc_c89" in
20743 x)
20744 { $as_echo "$as_me:$LINENO: result: none needed" >&5
20745 $as_echo "none needed" >&6; } ;;
20746 xno)
20747 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
20748 $as_echo "unsupported" >&6; } ;;
20749 *)
20750 CC="$CC $ac_cv_prog_cc_c89"
20751 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20752 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
20753 esac
20754
20755
20756 ac_ext=c
20757 ac_cpp='$CPP $CPPFLAGS'
20758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20761
20762 depcc="$CC" am_compiler_list=
20763
20764 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20765 $as_echo_n "checking dependency style of $depcc... " >&6; }
20766 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20767 $as_echo_n "(cached) " >&6
20768 else
20769 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20770 # We make a subdir and do the tests there. Otherwise we can end up
20771 # making bogus files that we don't know about and never remove. For
20772 # instance it was reported that on HP-UX the gcc test will end up
20773 # making a dummy file named `D' -- because `-MD' means `put the output
20774 # in D'.
20775 mkdir conftest.dir
20776 # Copy depcomp to subdir because otherwise we won't find it if we're
20777 # using a relative directory.
20778 cp "$am_depcomp" conftest.dir
20779 cd conftest.dir
20780 # We will build objects and dependencies in a subdirectory because
20781 # it helps to detect inapplicable dependency modes. For instance
20782 # both Tru64's cc and ICC support -MD to output dependencies as a
20783 # side effect of compilation, but ICC will put the dependencies in
20784 # the current directory while Tru64 will put them in the object
20785 # directory.
20786 mkdir sub
20787
20788 am_cv_CC_dependencies_compiler_type=none
20789 if test "$am_compiler_list" = ""; then
20790 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20791 fi
20792 am__universal=false
20793 case " $depcc " in #(
20794 *\ -arch\ *\ -arch\ *) am__universal=true ;;
20795 esac
20796
20797 for depmode in $am_compiler_list; do
20798 # Setup a source with many dependencies, because some compilers
20799 # like to wrap large dependency lists on column 80 (with \), and
20800 # we should not choose a depcomp mode which is confused by this.
20801 #
20802 # We need to recreate these files for each test, as the compiler may
20803 # overwrite some of them when testing with obscure command lines.
20804 # This happens at least with the AIX C compiler.
20805 : > sub/conftest.c
20806 for i in 1 2 3 4 5 6; do
20807 echo '#include "conftst'$i'.h"' >> sub/conftest.c
20808 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20809 # Solaris 8's {/usr,}/bin/sh.
20810 touch sub/conftst$i.h
20811 done
20812 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20813
20814 # We check with `-c' and `-o' for the sake of the "dashmstdout"
20815 # mode. It turns out that the SunPro C++ compiler does not properly
20816 # handle `-M -o', and we need to detect this. Also, some Intel
20817 # versions had trouble with output in subdirs
20818 am__obj=sub/conftest.${OBJEXT-o}
20819 am__minus_obj="-o $am__obj"
20820 case $depmode in
20821 gcc)
20822 # This depmode causes a compiler race in universal mode.
20823 test "$am__universal" = false || continue
20824 ;;
20825 nosideeffect)
20826 # after this tag, mechanisms are not by side-effect, so they'll
20827 # only be used when explicitly requested
20828 if test "x$enable_dependency_tracking" = xyes; then
20829 continue
20830 else
20831 break
20832 fi
20833 ;;
20834 msvisualcpp | msvcmsys)
20835 # This compiler won't grok `-c -o', but also, the minuso test has
20836 # not run yet. These depmodes are late enough in the game, and
20837 # so weak that their functioning should not be impacted.
20838 am__obj=conftest.${OBJEXT-o}
20839 am__minus_obj=
20840 ;;
20841 none) break ;;
20842 esac
20843 if depmode=$depmode \
20844 source=sub/conftest.c object=$am__obj \
20845 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20846 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
20847 >/dev/null 2>conftest.err &&
20848 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
20849 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20850 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
20851 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20852 # icc doesn't choke on unknown options, it will just issue warnings
20853 # or remarks (even with -Werror). So we grep stderr for any message
20854 # that says an option was ignored or not supported.
20855 # When given -MP, icc 7.0 and 7.1 complain thusly:
20856 # icc: Command line warning: ignoring option '-M'; no argument required
20857 # The diagnosis changed in icc 8.0:
20858 # icc: Command line remark: option '-MP' not supported
20859 if (grep 'ignoring option' conftest.err ||
20860 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20861 am_cv_CC_dependencies_compiler_type=$depmode
20862 break
20863 fi
20864 fi
20865 done
20866
20867 cd ..
20868 rm -rf conftest.dir
20869 else
20870 am_cv_CC_dependencies_compiler_type=none
20871 fi
20872
20873 fi
20874 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20875 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
20876 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20877
20878 if
20879 test "x$enable_dependency_tracking" != xno \
20880 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20881 am__fastdepCC_TRUE=
20882 am__fastdepCC_FALSE='#'
20883 else
20884 am__fastdepCC_TRUE='#'
20885 am__fastdepCC_FALSE=
20886 fi
20887
20888
20889
20890 if test "x$GCC" = "xyes"; then
20891 CPPFLAGS="$CPPFLAGS -Wall"
20892 fi
20893
20894
20895
20896
20897
20898 # Check whether --with-xorg-module-dir was given.
20899 if test "${with_xorg_module_dir+set}" = set; then
20900 withval=$with_xorg_module_dir; moduledir="$withval"
20901 else
20902 moduledir="$libdir/xorg/modules"
20903 fi
20904
20905
20906 # Check whether --enable-dri was given.
20907 if test "${enable_dri+set}" = set; then
20908 enableval=$enable_dri; DRI="$enableval"
20909 else
20910 DRI=auto
20911 fi
20912
20913
20914 # Check whether --enable-exa was given.
20915 if test "${enable_exa+set}" = set; then
20916 enableval=$enable_exa; EXA="$enableval"
20917 else
20918 EXA=yes
20919 fi
20920
20921
20922
20923 # Check whether --with-xserver-source was given.
20924 if test "${with_xserver_source+set}" = set; then
20925 withval=$with_xserver_source; XSERVER_SOURCE="$withval"
20926 else
20927 XSERVER_SOURCE=""
20928 fi
20929
20930
20931 # Checks for extensions
20932
20933 SAVE_CFLAGS="$CFLAGS"
20934 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20935 cat >conftest.$ac_ext <<_ACEOF
20936 /* confdefs.h. */
20937 _ACEOF
20938 cat confdefs.h >>conftest.$ac_ext
20939 cat >>conftest.$ac_ext <<_ACEOF
20940 /* end confdefs.h. */
20941
20942 #include "xorg-server.h"
20943 #if !defined XINERAMA
20944 #error XINERAMA not defined
20945 #endif
20946
20947 int
20948 main ()
20949 {
20950
20951 ;
20952 return 0;
20953 }
20954 _ACEOF
20955 rm -f conftest.$ac_objext
20956 if { (ac_try="$ac_compile"
20957 case "(($ac_try" in
20958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20959 *) ac_try_echo=$ac_try;;
20960 esac
20961 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20962 $as_echo "$ac_try_echo") >&5
20963 (eval "$ac_compile") 2>conftest.er1
20964 ac_status=$?
20965 grep -v '^ *+' conftest.er1 >conftest.err
20966 rm -f conftest.er1
20967 cat conftest.err >&5
20968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20969 (exit $ac_status); } && {
20970 test -z "$ac_c_werror_flag" ||
20971 test ! -s conftest.err
20972 } && test -s conftest.$ac_objext; then
20973 _EXT_CHECK=yes
20974 else
20975 $as_echo "$as_me: failed program was:" >&5
20976 sed 's/^/| /' conftest.$ac_ext >&5
20977
20978 _EXT_CHECK=no
20979 fi
20980
20981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20982 CFLAGS="$SAVE_CFLAGS"
20983 { $as_echo "$as_me:$LINENO: checking if XINERAMA is defined" >&5
20984 $as_echo_n "checking if XINERAMA is defined... " >&6; }
20985 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
20986 $as_echo "$_EXT_CHECK" >&6; }
20987 if test "$_EXT_CHECK" != no; then
20988 REQUIRED_MODULES="$REQUIRED_MODULES xineramaproto"
20989 fi
20990
20991
20992 SAVE_CFLAGS="$CFLAGS"
20993 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20994 cat >conftest.$ac_ext <<_ACEOF
20995 /* confdefs.h. */
20996 _ACEOF
20997 cat confdefs.h >>conftest.$ac_ext
20998 cat >>conftest.$ac_ext <<_ACEOF
20999 /* end confdefs.h. */
21000
21001 #include "xorg-server.h"
21002 #if !defined RANDR
21003 #error RANDR not defined
21004 #endif
21005
21006 int
21007 main ()
21008 {
21009
21010 ;
21011 return 0;
21012 }
21013 _ACEOF
21014 rm -f conftest.$ac_objext
21015 if { (ac_try="$ac_compile"
21016 case "(($ac_try" in
21017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21018 *) ac_try_echo=$ac_try;;
21019 esac
21020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21021 $as_echo "$ac_try_echo") >&5
21022 (eval "$ac_compile") 2>conftest.er1
21023 ac_status=$?
21024 grep -v '^ *+' conftest.er1 >conftest.err
21025 rm -f conftest.er1
21026 cat conftest.err >&5
21027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028 (exit $ac_status); } && {
21029 test -z "$ac_c_werror_flag" ||
21030 test ! -s conftest.err
21031 } && test -s conftest.$ac_objext; then
21032 _EXT_CHECK=yes
21033 else
21034 $as_echo "$as_me: failed program was:" >&5
21035 sed 's/^/| /' conftest.$ac_ext >&5
21036
21037 _EXT_CHECK=no
21038 fi
21039
21040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21041 CFLAGS="$SAVE_CFLAGS"
21042 { $as_echo "$as_me:$LINENO: checking if RANDR is defined" >&5
21043 $as_echo_n "checking if RANDR is defined... " >&6; }
21044 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
21045 $as_echo "$_EXT_CHECK" >&6; }
21046 if test "$_EXT_CHECK" != no; then
21047 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
21048 fi
21049
21050
21051 SAVE_CFLAGS="$CFLAGS"
21052 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
21053 cat >conftest.$ac_ext <<_ACEOF
21054 /* confdefs.h. */
21055 _ACEOF
21056 cat confdefs.h >>conftest.$ac_ext
21057 cat >>conftest.$ac_ext <<_ACEOF
21058 /* end confdefs.h. */
21059
21060 #include "xorg-server.h"
21061 #if !defined RENDER
21062 #error RENDER not defined
21063 #endif
21064
21065 int
21066 main ()
21067 {
21068
21069 ;
21070 return 0;
21071 }
21072 _ACEOF
21073 rm -f conftest.$ac_objext
21074 if { (ac_try="$ac_compile"
21075 case "(($ac_try" in
21076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21077 *) ac_try_echo=$ac_try;;
21078 esac
21079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21080 $as_echo "$ac_try_echo") >&5
21081 (eval "$ac_compile") 2>conftest.er1
21082 ac_status=$?
21083 grep -v '^ *+' conftest.er1 >conftest.err
21084 rm -f conftest.er1
21085 cat conftest.err >&5
21086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21087 (exit $ac_status); } && {
21088 test -z "$ac_c_werror_flag" ||
21089 test ! -s conftest.err
21090 } && test -s conftest.$ac_objext; then
21091 _EXT_CHECK=yes
21092 else
21093 $as_echo "$as_me: failed program was:" >&5
21094 sed 's/^/| /' conftest.$ac_ext >&5
21095
21096 _EXT_CHECK=no
21097 fi
21098
21099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21100 CFLAGS="$SAVE_CFLAGS"
21101 { $as_echo "$as_me:$LINENO: checking if RENDER is defined" >&5
21102 $as_echo_n "checking if RENDER is defined... " >&6; }
21103 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
21104 $as_echo "$_EXT_CHECK" >&6; }
21105 if test "$_EXT_CHECK" != no; then
21106 REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
21107 fi
21108
21109
21110 SAVE_CFLAGS="$CFLAGS"
21111 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
21112 cat >conftest.$ac_ext <<_ACEOF
21113 /* confdefs.h. */
21114 _ACEOF
21115 cat confdefs.h >>conftest.$ac_ext
21116 cat >>conftest.$ac_ext <<_ACEOF
21117 /* end confdefs.h. */
21118
21119 #include "xorg-server.h"
21120 #if !defined XV
21121 #error XV not defined
21122 #endif
21123
21124 int
21125 main ()
21126 {
21127
21128 ;
21129 return 0;
21130 }
21131 _ACEOF
21132 rm -f conftest.$ac_objext
21133 if { (ac_try="$ac_compile"
21134 case "(($ac_try" in
21135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21136 *) ac_try_echo=$ac_try;;
21137 esac
21138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21139 $as_echo "$ac_try_echo") >&5
21140 (eval "$ac_compile") 2>conftest.er1
21141 ac_status=$?
21142 grep -v '^ *+' conftest.er1 >conftest.err
21143 rm -f conftest.er1
21144 cat conftest.err >&5
21145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21146 (exit $ac_status); } && {
21147 test -z "$ac_c_werror_flag" ||
21148 test ! -s conftest.err
21149 } && test -s conftest.$ac_objext; then
21150 _EXT_CHECK=yes
21151 else
21152 $as_echo "$as_me: failed program was:" >&5
21153 sed 's/^/| /' conftest.$ac_ext >&5
21154
21155 _EXT_CHECK=no
21156 fi
21157
21158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21159 CFLAGS="$SAVE_CFLAGS"
21160 { $as_echo "$as_me:$LINENO: checking if XV is defined" >&5
21161 $as_echo_n "checking if XV is defined... " >&6; }
21162 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
21163 $as_echo "$_EXT_CHECK" >&6; }
21164 if test "$_EXT_CHECK" != no; then
21165 REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
21166 fi
21167
21168
21169 SAVE_CFLAGS="$CFLAGS"
21170 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
21171 cat >conftest.$ac_ext <<_ACEOF
21172 /* confdefs.h. */
21173 _ACEOF
21174 cat confdefs.h >>conftest.$ac_ext
21175 cat >>conftest.$ac_ext <<_ACEOF
21176 /* end confdefs.h. */
21177
21178 #include "xorg-server.h"
21179 #if !defined DPMSExtension
21180 #error DPMSExtension not defined
21181 #endif
21182
21183 int
21184 main ()
21185 {
21186
21187 ;
21188 return 0;
21189 }
21190 _ACEOF
21191 rm -f conftest.$ac_objext
21192 if { (ac_try="$ac_compile"
21193 case "(($ac_try" in
21194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21195 *) ac_try_echo=$ac_try;;
21196 esac
21197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21198 $as_echo "$ac_try_echo") >&5
21199 (eval "$ac_compile") 2>conftest.er1
21200 ac_status=$?
21201 grep -v '^ *+' conftest.er1 >conftest.err
21202 rm -f conftest.er1
21203 cat conftest.err >&5
21204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21205 (exit $ac_status); } && {
21206 test -z "$ac_c_werror_flag" ||
21207 test ! -s conftest.err
21208 } && test -s conftest.$ac_objext; then
21209 _EXT_CHECK=yes
21210 else
21211 $as_echo "$as_me: failed program was:" >&5
21212 sed 's/^/| /' conftest.$ac_ext >&5
21213
21214 _EXT_CHECK=no
21215 fi
21216
21217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21218 CFLAGS="$SAVE_CFLAGS"
21219 { $as_echo "$as_me:$LINENO: checking if DPMSExtension is defined" >&5
21220 $as_echo_n "checking if DPMSExtension is defined... " >&6; }
21221 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
21222 $as_echo "$_EXT_CHECK" >&6; }
21223 if test "$_EXT_CHECK" != no; then
21224 REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
21225 fi
21226
21227
21228 # Checks for pkg-config packages
21229
21230
21231 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
21232 if test -n "$ac_tool_prefix"; then
21233 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21234 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21235 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21236 $as_echo_n "checking for $ac_word... " >&6; }
21237 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21238 $as_echo_n "(cached) " >&6
21239 else
21240 case $PKG_CONFIG in
21241 [\\/]* | ?:[\\/]*)
21242 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21243 ;;
21244 *)
21245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21246 for as_dir in $PATH
21247 do
21248 IFS=$as_save_IFS
21249 test -z "$as_dir" && as_dir=.
21250 for ac_exec_ext in '' $ac_executable_extensions; do
21251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21252 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21253 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21254 break 2
21255 fi
21256 done
21257 done
21258 IFS=$as_save_IFS
21259
21260 ;;
21261 esac
21262 fi
21263 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21264 if test -n "$PKG_CONFIG"; then
21265 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21266 $as_echo "$PKG_CONFIG" >&6; }
21267 else
21268 { $as_echo "$as_me:$LINENO: result: no" >&5
21269 $as_echo "no" >&6; }
21270 fi
21271
21272
21273 fi
21274 if test -z "$ac_cv_path_PKG_CONFIG"; then
21275 ac_pt_PKG_CONFIG=$PKG_CONFIG
21276 # Extract the first word of "pkg-config", so it can be a program name with args.
21277 set dummy pkg-config; ac_word=$2
21278 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21279 $as_echo_n "checking for $ac_word... " >&6; }
21280 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
21281 $as_echo_n "(cached) " >&6
21282 else
21283 case $ac_pt_PKG_CONFIG in
21284 [\\/]* | ?:[\\/]*)
21285 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21286 ;;
21287 *)
21288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21289 for as_dir in $PATH
21290 do
21291 IFS=$as_save_IFS
21292 test -z "$as_dir" && as_dir=.
21293 for ac_exec_ext in '' $ac_executable_extensions; do
21294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21295 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21296 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21297 break 2
21298 fi
21299 done
21300 done
21301 IFS=$as_save_IFS
21302
21303 ;;
21304 esac
21305 fi
21306 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21307 if test -n "$ac_pt_PKG_CONFIG"; then
21308 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
21309 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
21310 else
21311 { $as_echo "$as_me:$LINENO: result: no" >&5
21312 $as_echo "no" >&6; }
21313 fi
21314
21315 if test "x$ac_pt_PKG_CONFIG" = x; then
21316 PKG_CONFIG=""
21317 else
21318 case $cross_compiling:$ac_tool_warned in
21319 yes:)
21320 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
21321 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21322 ac_tool_warned=yes ;;
21323 esac
21324 PKG_CONFIG=$ac_pt_PKG_CONFIG
21325 fi
21326 else
21327 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21328 fi
21329
21330 fi
21331 if test -n "$PKG_CONFIG"; then
21332 _pkg_min_version=0.9.0
21333 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
21334 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
21335 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21336 { $as_echo "$as_me:$LINENO: result: yes" >&5
21337 $as_echo "yes" >&6; }
21338 else
21339 { $as_echo "$as_me:$LINENO: result: no" >&5
21340 $as_echo "no" >&6; }
21341 PKG_CONFIG=""
21342 fi
21343
21344 fi
21345
21346 pkg_failed=no
21347 { $as_echo "$as_me:$LINENO: checking for XORG" >&5
21348 $as_echo_n "checking for XORG... " >&6; }
21349
21350 if test -n "$XORG_CFLAGS"; then
21351 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
21352 elif test -n "$PKG_CONFIG"; then
21353 if test -n "$PKG_CONFIG" && \
21354 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.2 xproto fontsproto \$REQUIRED_MODULES\"") >&5
21355 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES") 2>&5
21356 ac_status=$?
21357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21358 (exit $ac_status); }; then
21359 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
21360 else
21361 pkg_failed=yes
21362 fi
21363 else
21364 pkg_failed=untried
21365 fi
21366 if test -n "$XORG_LIBS"; then
21367 pkg_cv_XORG_LIBS="$XORG_LIBS"
21368 elif test -n "$PKG_CONFIG"; then
21369 if test -n "$PKG_CONFIG" && \
21370 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.2 xproto fontsproto \$REQUIRED_MODULES\"") >&5
21371 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES") 2>&5
21372 ac_status=$?
21373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21374 (exit $ac_status); }; then
21375 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
21376 else
21377 pkg_failed=yes
21378 fi
21379 else
21380 pkg_failed=untried
21381 fi
21382
21383
21384
21385 if test $pkg_failed = yes; then
21386
21387 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21388 _pkg_short_errors_supported=yes
21389 else
21390 _pkg_short_errors_supported=no
21391 fi
21392 if test $_pkg_short_errors_supported = yes; then
21393 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES" 2>&1`
21394 else
21395 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES" 2>&1`
21396 fi
21397 # Put the nasty error message in config.log where it belongs
21398 echo "$XORG_PKG_ERRORS" >&5
21399
21400 { { $as_echo "$as_me:$LINENO: error: Package requirements (xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES) were not met:
21401
21402 $XORG_PKG_ERRORS
21403
21404 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21405 installed software in a non-standard prefix.
21406
21407 Alternatively, you may set the environment variables XORG_CFLAGS
21408 and XORG_LIBS to avoid the need to call pkg-config.
21409 See the pkg-config man page for more details.
21410 " >&5
21411 $as_echo "$as_me: error: Package requirements (xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES) were not met:
21412
21413 $XORG_PKG_ERRORS
21414
21415 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21416 installed software in a non-standard prefix.
21417
21418 Alternatively, you may set the environment variables XORG_CFLAGS
21419 and XORG_LIBS to avoid the need to call pkg-config.
21420 See the pkg-config man page for more details.
21421 " >&2;}
21422 { (exit 1); exit 1; }; }
21423 elif test $pkg_failed = untried; then
21424 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21425 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21426 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
21427 is in your PATH or set the PKG_CONFIG environment variable to the full
21428 path to pkg-config.
21429
21430 Alternatively, you may set the environment variables XORG_CFLAGS
21431 and XORG_LIBS to avoid the need to call pkg-config.
21432 See the pkg-config man page for more details.
21433
21434 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21435 See \`config.log' for more details." >&5
21436 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
21437 is in your PATH or set the PKG_CONFIG environment variable to the full
21438 path to pkg-config.
21439
21440 Alternatively, you may set the environment variables XORG_CFLAGS
21441 and XORG_LIBS to avoid the need to call pkg-config.
21442 See the pkg-config man page for more details.
21443
21444 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21445 See \`config.log' for more details." >&2;}
21446 { (exit 1); exit 1; }; }; }
21447 else
21448 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
21449 XORG_LIBS=$pkg_cv_XORG_LIBS
21450 { $as_echo "$as_me:$LINENO: result: yes" >&5
21451 $as_echo "yes" >&6; }
21452 :
21453 fi
21454
21455 pkg_failed=no
21456 { $as_echo "$as_me:$LINENO: checking for XEXT" >&5
21457 $as_echo_n "checking for XEXT... " >&6; }
21458
21459 if test -n "$XEXT_CFLAGS"; then
21460 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
21461 elif test -n "$PKG_CONFIG"; then
21462 if test -n "$PKG_CONFIG" && \
21463 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\"") >&5
21464 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
21465 ac_status=$?
21466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21467 (exit $ac_status); }; then
21468 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null`
21469 else
21470 pkg_failed=yes
21471 fi
21472 else
21473 pkg_failed=untried
21474 fi
21475 if test -n "$XEXT_LIBS"; then
21476 pkg_cv_XEXT_LIBS="$XEXT_LIBS"
21477 elif test -n "$PKG_CONFIG"; then
21478 if test -n "$PKG_CONFIG" && \
21479 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\"") >&5
21480 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
21481 ac_status=$?
21482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21483 (exit $ac_status); }; then
21484 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null`
21485 else
21486 pkg_failed=yes
21487 fi
21488 else
21489 pkg_failed=untried
21490 fi
21491
21492
21493
21494 if test $pkg_failed = yes; then
21495
21496 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21497 _pkg_short_errors_supported=yes
21498 else
21499 _pkg_short_errors_supported=no
21500 fi
21501 if test $_pkg_short_errors_supported = yes; then
21502 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xextproto >= 7.0.99.1" 2>&1`
21503 else
21504 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xextproto >= 7.0.99.1" 2>&1`
21505 fi
21506 # Put the nasty error message in config.log where it belongs
21507 echo "$XEXT_PKG_ERRORS" >&5
21508
21509 { $as_echo "$as_me:$LINENO: result: no" >&5
21510 $as_echo "no" >&6; }
21511 HAVE_XEXTPROTO_71="no"
21512 elif test $pkg_failed = untried; then
21513 HAVE_XEXTPROTO_71="no"
21514 else
21515 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
21516 XEXT_LIBS=$pkg_cv_XEXT_LIBS
21517 { $as_echo "$as_me:$LINENO: result: yes" >&5
21518 $as_echo "yes" >&6; }
21519 HAVE_XEXTPROTO_71="yes";
21520 cat >>confdefs.h <<\_ACEOF
21521 #define HAVE_XEXTPROTO_71 1
21522 _ACEOF
21523
21524 fi
21525 if test "$HAVE_XEXTPROTO_71" = "yes" ; then
21526 HAVE_XEXTPROTO_71_TRUE=
21527 HAVE_XEXTPROTO_71_FALSE='#'
21528 else
21529 HAVE_XEXTPROTO_71_TRUE='#'
21530 HAVE_XEXTPROTO_71_FALSE=
21531 fi
21532
21533 sdkdir=$(pkg-config --variable=sdkdir xorg-server)
21534
21535 # Checks for libraries.
21536
21537 # Checks for header files.
21538 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21539 $as_echo_n "checking for ANSI C header files... " >&6; }
21540 if test "${ac_cv_header_stdc+set}" = set; then
21541 $as_echo_n "(cached) " >&6
21542 else
21543 cat >conftest.$ac_ext <<_ACEOF
21544 /* confdefs.h. */
21545 _ACEOF
21546 cat confdefs.h >>conftest.$ac_ext
21547 cat >>conftest.$ac_ext <<_ACEOF
21548 /* end confdefs.h. */
21549 #include <stdlib.h>
21550 #include <stdarg.h>
21551 #include <string.h>
21552 #include <float.h>
21553
21554 int
21555 main ()
21556 {
21557
21558 ;
21559 return 0;
21560 }
21561 _ACEOF
21562 rm -f conftest.$ac_objext
21563 if { (ac_try="$ac_compile"
21564 case "(($ac_try" in
21565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21566 *) ac_try_echo=$ac_try;;
21567 esac
21568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21569 $as_echo "$ac_try_echo") >&5
21570 (eval "$ac_compile") 2>conftest.er1
21571 ac_status=$?
21572 grep -v '^ *+' conftest.er1 >conftest.err
21573 rm -f conftest.er1
21574 cat conftest.err >&5
21575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21576 (exit $ac_status); } && {
21577 test -z "$ac_c_werror_flag" ||
21578 test ! -s conftest.err
21579 } && test -s conftest.$ac_objext; then
21580 ac_cv_header_stdc=yes
21581 else
21582 $as_echo "$as_me: failed program was:" >&5
21583 sed 's/^/| /' conftest.$ac_ext >&5
21584
21585 ac_cv_header_stdc=no
21586 fi
21587
21588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21589
21590 if test $ac_cv_header_stdc = yes; then
21591 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21592 cat >conftest.$ac_ext <<_ACEOF
21593 /* confdefs.h. */
21594 _ACEOF
21595 cat confdefs.h >>conftest.$ac_ext
21596 cat >>conftest.$ac_ext <<_ACEOF
21597 /* end confdefs.h. */
21598 #include <string.h>
21599
21600 _ACEOF
21601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21602 $EGREP "memchr" >/dev/null 2>&1; then
21603 :
21604 else
21605 ac_cv_header_stdc=no
21606 fi
21607 rm -f conftest*
21608
21609 fi
21610
21611 if test $ac_cv_header_stdc = yes; then
21612 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21613 cat >conftest.$ac_ext <<_ACEOF
21614 /* confdefs.h. */
21615 _ACEOF
21616 cat confdefs.h >>conftest.$ac_ext
21617 cat >>conftest.$ac_ext <<_ACEOF
21618 /* end confdefs.h. */
21619 #include <stdlib.h>
21620
21621 _ACEOF
21622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21623 $EGREP "free" >/dev/null 2>&1; then
21624 :
21625 else
21626 ac_cv_header_stdc=no
21627 fi
21628 rm -f conftest*
21629
21630 fi
21631
21632 if test $ac_cv_header_stdc = yes; then
21633 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21634 if test "$cross_compiling" = yes; then
21635 :
21636 else
21637 cat >conftest.$ac_ext <<_ACEOF
21638 /* confdefs.h. */
21639 _ACEOF
21640 cat confdefs.h >>conftest.$ac_ext
21641 cat >>conftest.$ac_ext <<_ACEOF
21642 /* end confdefs.h. */
21643 #include <ctype.h>
21644 #include <stdlib.h>
21645 #if ((' ' & 0x0FF) == 0x020)
21646 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21647 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21648 #else
21649 # define ISLOWER(c) \
21650 (('a' <= (c) && (c) <= 'i') \
21651 || ('j' <= (c) && (c) <= 'r') \
21652 || ('s' <= (c) && (c) <= 'z'))
21653 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21654 #endif
21655
21656 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21657 int
21658 main ()
21659 {
21660 int i;
21661 for (i = 0; i < 256; i++)
21662 if (XOR (islower (i), ISLOWER (i))
21663 || toupper (i) != TOUPPER (i))
21664 return 2;
21665 return 0;
21666 }
21667 _ACEOF
21668 rm -f conftest$ac_exeext
21669 if { (ac_try="$ac_link"
21670 case "(($ac_try" in
21671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21672 *) ac_try_echo=$ac_try;;
21673 esac
21674 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21675 $as_echo "$ac_try_echo") >&5
21676 (eval "$ac_link") 2>&5
21677 ac_status=$?
21678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21679 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21680 { (case "(($ac_try" in
21681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21682 *) ac_try_echo=$ac_try;;
21683 esac
21684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21685 $as_echo "$ac_try_echo") >&5
21686 (eval "$ac_try") 2>&5
21687 ac_status=$?
21688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21689 (exit $ac_status); }; }; then
21690 :
21691 else
21692 $as_echo "$as_me: program exited with status $ac_status" >&5
21693 $as_echo "$as_me: failed program was:" >&5
21694 sed 's/^/| /' conftest.$ac_ext >&5
21695
21696 ( exit $ac_status )
21697 ac_cv_header_stdc=no
21698 fi
21699 rm -rf conftest.dSYM
21700 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21701 fi
21702
21703
21704 fi
21705 fi
21706 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21707 $as_echo "$ac_cv_header_stdc" >&6; }
21708 if test $ac_cv_header_stdc = yes; then
21709
21710 cat >>confdefs.h <<\_ACEOF
21711 #define STDC_HEADERS 1
21712 _ACEOF
21713
21714 fi
21715
21716
21717 if test "$DRI" != no; then
21718 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dri.h" | $as_tr_sh`
21719 { $as_echo "$as_me:$LINENO: checking for ${sdkdir}/dri.h" >&5
21720 $as_echo_n "checking for ${sdkdir}/dri.h... " >&6; }
21721 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
21722 $as_echo_n "(cached) " >&6
21723 else
21724 test "$cross_compiling" = yes &&
21725 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
21726 $as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
21727 { (exit 1); exit 1; }; }
21728 if test -r "${sdkdir}/dri.h"; then
21729 eval "$as_ac_File=yes"
21730 else
21731 eval "$as_ac_File=no"
21732 fi
21733 fi
21734 ac_res=`eval 'as_val=${'$as_ac_File'}
21735 $as_echo "$as_val"'`
21736 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21737 $as_echo "$ac_res" >&6; }
21738 as_val=`eval 'as_val=${'$as_ac_File'}
21739 $as_echo "$as_val"'`
21740 if test "x$as_val" = x""yes; then
21741 have_dri_h="yes"
21742 else
21743 have_dri_h="no"
21744 fi
21745
21746 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/sarea.h" | $as_tr_sh`
21747 { $as_echo "$as_me:$LINENO: checking for ${sdkdir}/sarea.h" >&5
21748 $as_echo_n "checking for ${sdkdir}/sarea.h... " >&6; }
21749 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
21750 $as_echo_n "(cached) " >&6
21751 else
21752 test "$cross_compiling" = yes &&
21753 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
21754 $as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
21755 { (exit 1); exit 1; }; }
21756 if test -r "${sdkdir}/sarea.h"; then
21757 eval "$as_ac_File=yes"
21758 else
21759 eval "$as_ac_File=no"
21760 fi
21761 fi
21762 ac_res=`eval 'as_val=${'$as_ac_File'}
21763 $as_echo "$as_val"'`
21764 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21765 $as_echo "$ac_res" >&6; }
21766 as_val=`eval 'as_val=${'$as_ac_File'}
21767 $as_echo "$as_val"'`
21768 if test "x$as_val" = x""yes; then
21769 have_sarea_h="yes"
21770 else
21771 have_sarea_h="no"
21772 fi
21773
21774 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dristruct.h" | $as_tr_sh`
21775 { $as_echo "$as_me:$LINENO: checking for ${sdkdir}/dristruct.h" >&5
21776 $as_echo_n "checking for ${sdkdir}/dristruct.h... " >&6; }
21777 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
21778 $as_echo_n "(cached) " >&6
21779 else
21780 test "$cross_compiling" = yes &&
21781 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
21782 $as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
21783 { (exit 1); exit 1; }; }
21784 if test -r "${sdkdir}/dristruct.h"; then
21785 eval "$as_ac_File=yes"
21786 else
21787 eval "$as_ac_File=no"
21788 fi
21789 fi
21790 ac_res=`eval 'as_val=${'$as_ac_File'}
21791 $as_echo "$as_val"'`
21792 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21793 $as_echo "$ac_res" >&6; }
21794 as_val=`eval 'as_val=${'$as_ac_File'}
21795 $as_echo "$as_val"'`
21796 if test "x$as_val" = x""yes; then
21797 have_dristruct_h="yes"
21798 else
21799 have_dristruct_h="no"
21800 fi
21801
21802 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/damage.h" | $as_tr_sh`
21803 { $as_echo "$as_me:$LINENO: checking for ${sdkdir}/damage.h" >&5
21804 $as_echo_n "checking for ${sdkdir}/damage.h... " >&6; }
21805 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
21806 $as_echo_n "(cached) " >&6
21807 else
21808 test "$cross_compiling" = yes &&
21809 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
21810 $as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
21811 { (exit 1); exit 1; }; }
21812 if test -r "${sdkdir}/damage.h"; then
21813 eval "$as_ac_File=yes"
21814 else
21815 eval "$as_ac_File=no"
21816 fi
21817 fi
21818 ac_res=`eval 'as_val=${'$as_ac_File'}
21819 $as_echo "$as_val"'`
21820 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21821 $as_echo "$ac_res" >&6; }
21822 as_val=`eval 'as_val=${'$as_ac_File'}
21823 $as_echo "$as_val"'`
21824 if test "x$as_val" = x""yes; then
21825 have_damage_h="yes"
21826 else
21827 have_damage_h="no"
21828 fi
21829
21830 fi
21831
21832 { $as_echo "$as_me:$LINENO: checking whether to include DRI support" >&5
21833 $as_echo_n "checking whether to include DRI support... " >&6; }
21834 if test x$DRI = xauto; then
21835 if test "$have_dri_h" = yes -a \
21836 "$have_sarea_h" = yes -a \
21837 "$have_dristruct_h" = yes; then
21838 DRI="yes"
21839 else
21840 DRI="no"
21841 fi
21842 fi
21843 { $as_echo "$as_me:$LINENO: result: $DRI" >&5
21844 $as_echo "$DRI" >&6; }
21845
21846 if test x$DRI = xyes; then
21847 DRI_TRUE=
21848 DRI_FALSE='#'
21849 else
21850 DRI_TRUE='#'
21851 DRI_FALSE=
21852 fi
21853
21854 if test "$DRI" = yes; then
21855
21856 pkg_failed=no
21857 { $as_echo "$as_me:$LINENO: checking for DRI" >&5
21858 $as_echo_n "checking for DRI... " >&6; }
21859
21860 if test -n "$DRI_CFLAGS"; then
21861 pkg_cv_DRI_CFLAGS="$DRI_CFLAGS"
21862 elif test -n "$PKG_CONFIG"; then
21863 if test -n "$PKG_CONFIG" && \
21864 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.2 xf86driproto\"") >&5
21865 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.2 xf86driproto") 2>&5
21866 ac_status=$?
21867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21868 (exit $ac_status); }; then
21869 pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.2 xf86driproto" 2>/dev/null`
21870 else
21871 pkg_failed=yes
21872 fi
21873 else
21874 pkg_failed=untried
21875 fi
21876 if test -n "$DRI_LIBS"; then
21877 pkg_cv_DRI_LIBS="$DRI_LIBS"
21878 elif test -n "$PKG_CONFIG"; then
21879 if test -n "$PKG_CONFIG" && \
21880 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.2 xf86driproto\"") >&5
21881 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.2 xf86driproto") 2>&5
21882 ac_status=$?
21883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21884 (exit $ac_status); }; then
21885 pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.2 xf86driproto" 2>/dev/null`
21886 else
21887 pkg_failed=yes
21888 fi
21889 else
21890 pkg_failed=untried
21891 fi
21892
21893
21894
21895 if test $pkg_failed = yes; then
21896
21897 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21898 _pkg_short_errors_supported=yes
21899 else
21900 _pkg_short_errors_supported=no
21901 fi
21902 if test $_pkg_short_errors_supported = yes; then
21903 DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdrm >= 2.2 xf86driproto" 2>&1`
21904 else
21905 DRI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdrm >= 2.2 xf86driproto" 2>&1`
21906 fi
21907 # Put the nasty error message in config.log where it belongs
21908 echo "$DRI_PKG_ERRORS" >&5
21909
21910 { { $as_echo "$as_me:$LINENO: error: Package requirements (libdrm >= 2.2 xf86driproto) were not met:
21911
21912 $DRI_PKG_ERRORS
21913
21914 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21915 installed software in a non-standard prefix.
21916
21917 Alternatively, you may set the environment variables DRI_CFLAGS
21918 and DRI_LIBS to avoid the need to call pkg-config.
21919 See the pkg-config man page for more details.
21920 " >&5
21921 $as_echo "$as_me: error: Package requirements (libdrm >= 2.2 xf86driproto) were not met:
21922
21923 $DRI_PKG_ERRORS
21924
21925 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21926 installed software in a non-standard prefix.
21927
21928 Alternatively, you may set the environment variables DRI_CFLAGS
21929 and DRI_LIBS to avoid the need to call pkg-config.
21930 See the pkg-config man page for more details.
21931 " >&2;}
21932 { (exit 1); exit 1; }; }
21933 elif test $pkg_failed = untried; then
21934 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21935 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21936 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
21937 is in your PATH or set the PKG_CONFIG environment variable to the full
21938 path to pkg-config.
21939
21940 Alternatively, you may set the environment variables DRI_CFLAGS
21941 and DRI_LIBS to avoid the need to call pkg-config.
21942 See the pkg-config man page for more details.
21943
21944 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21945 See \`config.log' for more details." >&5
21946 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
21947 is in your PATH or set the PKG_CONFIG environment variable to the full
21948 path to pkg-config.
21949
21950 Alternatively, you may set the environment variables DRI_CFLAGS
21951 and DRI_LIBS to avoid the need to call pkg-config.
21952 See the pkg-config man page for more details.
21953
21954 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21955 See \`config.log' for more details." >&2;}
21956 { (exit 1); exit 1; }; }; }
21957 else
21958 DRI_CFLAGS=$pkg_cv_DRI_CFLAGS
21959 DRI_LIBS=$pkg_cv_DRI_LIBS
21960 { $as_echo "$as_me:$LINENO: result: yes" >&5
21961 $as_echo "yes" >&6; }
21962 :
21963 fi
21964
21965 cat >>confdefs.h <<\_ACEOF
21966 #define XF86DRI 1
21967 _ACEOF
21968
21969
21970 cat >>confdefs.h <<\_ACEOF
21971 #define XF86DRI_DEVEL 1
21972 _ACEOF
21973
21974 if test "$have_damage_h" = yes; then
21975
21976 cat >>confdefs.h <<\_ACEOF
21977 #define DAMAGE 1
21978 _ACEOF
21979
21980 fi
21981 fi
21982
21983 save_CFLAGS="$CFLAGS"
21984 CFLAGS="$XORG_CFLAGS"
21985 { $as_echo "$as_me:$LINENO: checking for xf86Modes.h" >&5
21986 $as_echo_n "checking for xf86Modes.h... " >&6; }
21987 if test "${ac_cv_header_xf86Modes_h+set}" = set; then
21988 $as_echo_n "(cached) " >&6
21989 else
21990 cat >conftest.$ac_ext <<_ACEOF
21991 /* confdefs.h. */
21992 _ACEOF
21993 cat confdefs.h >>conftest.$ac_ext
21994 cat >>conftest.$ac_ext <<_ACEOF
21995 /* end confdefs.h. */
21996 #include "xorg-server.h"
21997
21998 #include <xf86Modes.h>
21999 _ACEOF
22000 rm -f conftest.$ac_objext
22001 if { (ac_try="$ac_compile"
22002 case "(($ac_try" in
22003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22004 *) ac_try_echo=$ac_try;;
22005 esac
22006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22007 $as_echo "$ac_try_echo") >&5
22008 (eval "$ac_compile") 2>conftest.er1
22009 ac_status=$?
22010 grep -v '^ *+' conftest.er1 >conftest.err
22011 rm -f conftest.er1
22012 cat conftest.err >&5
22013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22014 (exit $ac_status); } && {
22015 test -z "$ac_c_werror_flag" ||
22016 test ! -s conftest.err
22017 } && test -s conftest.$ac_objext; then
22018 ac_cv_header_xf86Modes_h=yes
22019 else
22020 $as_echo "$as_me: failed program was:" >&5
22021 sed 's/^/| /' conftest.$ac_ext >&5
22022
22023 ac_cv_header_xf86Modes_h=no
22024 fi
22025
22026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22027 fi
22028 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_xf86Modes_h" >&5
22029 $as_echo "$ac_cv_header_xf86Modes_h" >&6; }
22030 if test "x$ac_cv_header_xf86Modes_h" = x""yes; then
22031 XMODES=yes
22032 else
22033 XMODES=no
22034 fi
22035
22036
22037 CFLAGS="$save_CFLAGS"
22038
22039
22040 cat >>confdefs.h <<\_ACEOF
22041 #define USE_XAA 1
22042 _ACEOF
22043
22044
22045 # Properly handle EXA.
22046 { $as_echo "$as_me:$LINENO: checking whether to enable EXA support" >&5
22047 $as_echo_n "checking whether to enable EXA support... " >&6; }
22048 if test "x$EXA" = xyes; then
22049 { $as_echo "$as_me:$LINENO: result: yes" >&5
22050 $as_echo "yes" >&6; }
22051
22052 SAVE_CPPFLAGS="$CPPFLAGS"
22053 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
22054 if test "${ac_cv_header_exa_h+set}" = set; then
22055 { $as_echo "$as_me:$LINENO: checking for exa.h" >&5
22056 $as_echo_n "checking for exa.h... " >&6; }
22057 if test "${ac_cv_header_exa_h+set}" = set; then
22058 $as_echo_n "(cached) " >&6
22059 fi
22060 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_exa_h" >&5
22061 $as_echo "$ac_cv_header_exa_h" >&6; }
22062 else
22063 # Is the header compilable?
22064 { $as_echo "$as_me:$LINENO: checking exa.h usability" >&5
22065 $as_echo_n "checking exa.h usability... " >&6; }
22066 cat >conftest.$ac_ext <<_ACEOF
22067 /* confdefs.h. */
22068 _ACEOF
22069 cat confdefs.h >>conftest.$ac_ext
22070 cat >>conftest.$ac_ext <<_ACEOF
22071 /* end confdefs.h. */
22072 $ac_includes_default
22073 #include <exa.h>
22074 _ACEOF
22075 rm -f conftest.$ac_objext
22076 if { (ac_try="$ac_compile"
22077 case "(($ac_try" in
22078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22079 *) ac_try_echo=$ac_try;;
22080 esac
22081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22082 $as_echo "$ac_try_echo") >&5
22083 (eval "$ac_compile") 2>conftest.er1
22084 ac_status=$?
22085 grep -v '^ *+' conftest.er1 >conftest.err
22086 rm -f conftest.er1
22087 cat conftest.err >&5
22088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22089 (exit $ac_status); } && {
22090 test -z "$ac_c_werror_flag" ||
22091 test ! -s conftest.err
22092 } && test -s conftest.$ac_objext; then
22093 ac_header_compiler=yes
22094 else
22095 $as_echo "$as_me: failed program was:" >&5
22096 sed 's/^/| /' conftest.$ac_ext >&5
22097
22098 ac_header_compiler=no
22099 fi
22100
22101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22102 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22103 $as_echo "$ac_header_compiler" >&6; }
22104
22105 # Is the header present?
22106 { $as_echo "$as_me:$LINENO: checking exa.h presence" >&5
22107 $as_echo_n "checking exa.h presence... " >&6; }
22108 cat >conftest.$ac_ext <<_ACEOF
22109 /* confdefs.h. */
22110 _ACEOF
22111 cat confdefs.h >>conftest.$ac_ext
22112 cat >>conftest.$ac_ext <<_ACEOF
22113 /* end confdefs.h. */
22114 #include <exa.h>
22115 _ACEOF
22116 if { (ac_try="$ac_cpp conftest.$ac_ext"
22117 case "(($ac_try" in
22118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22119 *) ac_try_echo=$ac_try;;
22120 esac
22121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22122 $as_echo "$ac_try_echo") >&5
22123 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22124 ac_status=$?
22125 grep -v '^ *+' conftest.er1 >conftest.err
22126 rm -f conftest.er1
22127 cat conftest.err >&5
22128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22129 (exit $ac_status); } >/dev/null && {
22130 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22131 test ! -s conftest.err
22132 }; then
22133 ac_header_preproc=yes
22134 else
22135 $as_echo "$as_me: failed program was:" >&5
22136 sed 's/^/| /' conftest.$ac_ext >&5
22137
22138 ac_header_preproc=no
22139 fi
22140
22141 rm -f conftest.err conftest.$ac_ext
22142 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22143 $as_echo "$ac_header_preproc" >&6; }
22144
22145 # So? What about this header?
22146 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22147 yes:no: )
22148 { $as_echo "$as_me:$LINENO: WARNING: exa.h: accepted by the compiler, rejected by the preprocessor!" >&5
22149 $as_echo "$as_me: WARNING: exa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22150 { $as_echo "$as_me:$LINENO: WARNING: exa.h: proceeding with the compiler's result" >&5
22151 $as_echo "$as_me: WARNING: exa.h: proceeding with the compiler's result" >&2;}
22152 ac_header_preproc=yes
22153 ;;
22154 no:yes:* )
22155 { $as_echo "$as_me:$LINENO: WARNING: exa.h: present but cannot be compiled" >&5
22156 $as_echo "$as_me: WARNING: exa.h: present but cannot be compiled" >&2;}
22157 { $as_echo "$as_me:$LINENO: WARNING: exa.h: check for missing prerequisite headers?" >&5
22158 $as_echo "$as_me: WARNING: exa.h: check for missing prerequisite headers?" >&2;}
22159 { $as_echo "$as_me:$LINENO: WARNING: exa.h: see the Autoconf documentation" >&5
22160 $as_echo "$as_me: WARNING: exa.h: see the Autoconf documentation" >&2;}
22161 { $as_echo "$as_me:$LINENO: WARNING: exa.h: section \"Present But Cannot Be Compiled\"" >&5
22162 $as_echo "$as_me: WARNING: exa.h: section \"Present But Cannot Be Compiled\"" >&2;}
22163 { $as_echo "$as_me:$LINENO: WARNING: exa.h: proceeding with the preprocessor's result" >&5
22164 $as_echo "$as_me: WARNING: exa.h: proceeding with the preprocessor's result" >&2;}
22165 { $as_echo "$as_me:$LINENO: WARNING: exa.h: in the future, the compiler will take precedence" >&5
22166 $as_echo "$as_me: WARNING: exa.h: in the future, the compiler will take precedence" >&2;}
22167 ( cat <<\_ASBOX
22168 ## ---------------------------------------------------------------------- ##
22169 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
22170 ## ---------------------------------------------------------------------- ##
22171 _ASBOX
22172 ) | sed "s/^/$as_me: WARNING: /" >&2
22173 ;;
22174 esac
22175 { $as_echo "$as_me:$LINENO: checking for exa.h" >&5
22176 $as_echo_n "checking for exa.h... " >&6; }
22177 if test "${ac_cv_header_exa_h+set}" = set; then
22178 $as_echo_n "(cached) " >&6
22179 else
22180 ac_cv_header_exa_h=$ac_header_preproc
22181 fi
22182 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_exa_h" >&5
22183 $as_echo "$ac_cv_header_exa_h" >&6; }
22184
22185 fi
22186 if test "x$ac_cv_header_exa_h" = x""yes; then
22187 have_exa_h="yes"
22188 else
22189 have_exa_h="no"
22190 fi
22191
22192
22193 CPPFLAGS="$SAVE_CPPFLAGS"
22194 else
22195 { $as_echo "$as_me:$LINENO: result: no" >&5
22196 $as_echo "no" >&6; }
22197 fi
22198
22199 SAVE_CPPFLAGS="$CPPFLAGS"
22200 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
22201 if test "x$have_exa_h" = xyes; then
22202 { $as_echo "$as_me:$LINENO: checking whether EXA version is at least 2.0.0" >&5
22203 $as_echo_n "checking whether EXA version is at least 2.0.0... " >&6; }
22204 cat >conftest.$ac_ext <<_ACEOF
22205 /* confdefs.h. */
22206 _ACEOF
22207 cat confdefs.h >>conftest.$ac_ext
22208 cat >>conftest.$ac_ext <<_ACEOF
22209 /* end confdefs.h. */
22210
22211 #include "exa.h"
22212 #if EXA_VERSION_MAJOR < 2
22213 #error OLD EXA!
22214 #endif
22215
22216 int
22217 main ()
22218 {
22219
22220 ;
22221 return 0;
22222 }
22223 _ACEOF
22224 if { (ac_try="$ac_cpp conftest.$ac_ext"
22225 case "(($ac_try" in
22226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22227 *) ac_try_echo=$ac_try;;
22228 esac
22229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22230 $as_echo "$ac_try_echo") >&5
22231 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22232 ac_status=$?
22233 grep -v '^ *+' conftest.er1 >conftest.err
22234 rm -f conftest.er1
22235 cat conftest.err >&5
22236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22237 (exit $ac_status); } >/dev/null && {
22238 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22239 test ! -s conftest.err
22240 }; then
22241 USE_EXA=yes
22242 else
22243 $as_echo "$as_me: failed program was:" >&5
22244 sed 's/^/| /' conftest.$ac_ext >&5
22245
22246 USE_EXA=no
22247 fi
22248
22249 rm -f conftest.err conftest.$ac_ext
22250 { $as_echo "$as_me:$LINENO: result: $USE_EXA" >&5
22251 $as_echo "$USE_EXA" >&6; }
22252
22253 if test "x$USE_EXA" = xyes; then
22254
22255 cat >>confdefs.h <<\_ACEOF
22256 #define USE_EXA 1
22257 _ACEOF
22258
22259 fi
22260 fi
22261
22262 { $as_echo "$as_me:$LINENO: checking whether xf86XVFillKeyHelperDrawable is declared" >&5
22263 $as_echo_n "checking whether xf86XVFillKeyHelperDrawable is declared... " >&6; }
22264 if test "${ac_cv_have_decl_xf86XVFillKeyHelperDrawable+set}" = set; then
22265 $as_echo_n "(cached) " >&6
22266 else
22267 cat >conftest.$ac_ext <<_ACEOF
22268 /* confdefs.h. */
22269 _ACEOF
22270 cat confdefs.h >>conftest.$ac_ext
22271 cat >>conftest.$ac_ext <<_ACEOF
22272 /* end confdefs.h. */
22273 #include <xf86xv.h>
22274
22275 int
22276 main ()
22277 {
22278 #ifndef xf86XVFillKeyHelperDrawable
22279 (void) xf86XVFillKeyHelperDrawable;
22280 #endif
22281
22282 ;
22283 return 0;
22284 }
22285 _ACEOF
22286 rm -f conftest.$ac_objext
22287 if { (ac_try="$ac_compile"
22288 case "(($ac_try" in
22289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22290 *) ac_try_echo=$ac_try;;
22291 esac
22292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22293 $as_echo "$ac_try_echo") >&5
22294 (eval "$ac_compile") 2>conftest.er1
22295 ac_status=$?
22296 grep -v '^ *+' conftest.er1 >conftest.err
22297 rm -f conftest.er1
22298 cat conftest.err >&5
22299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22300 (exit $ac_status); } && {
22301 test -z "$ac_c_werror_flag" ||
22302 test ! -s conftest.err
22303 } && test -s conftest.$ac_objext; then
22304 ac_cv_have_decl_xf86XVFillKeyHelperDrawable=yes
22305 else
22306 $as_echo "$as_me: failed program was:" >&5
22307 sed 's/^/| /' conftest.$ac_ext >&5
22308
22309 ac_cv_have_decl_xf86XVFillKeyHelperDrawable=no
22310 fi
22311
22312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22313 fi
22314 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_xf86XVFillKeyHelperDrawable" >&5
22315 $as_echo "$ac_cv_have_decl_xf86XVFillKeyHelperDrawable" >&6; }
22316 if test "x$ac_cv_have_decl_xf86XVFillKeyHelperDrawable" = x""yes; then
22317
22318 cat >>confdefs.h <<\_ACEOF
22319 #define HAVE_XV_DRAWABLE_HELPER 1
22320 _ACEOF
22321
22322 fi
22323
22324
22325 { $as_echo "$as_me:$LINENO: checking whether xf86ModeBandwidth is declared" >&5
22326 $as_echo_n "checking whether xf86ModeBandwidth is declared... " >&6; }
22327 if test "${ac_cv_have_decl_xf86ModeBandwidth+set}" = set; then
22328 $as_echo_n "(cached) " >&6
22329 else
22330 cat >conftest.$ac_ext <<_ACEOF
22331 /* confdefs.h. */
22332 _ACEOF
22333 cat confdefs.h >>conftest.$ac_ext
22334 cat >>conftest.$ac_ext <<_ACEOF
22335 /* end confdefs.h. */
22336 #include "xorg-server.h"
22337 #include "xf86Modes.h"
22338
22339 int
22340 main ()
22341 {
22342 #ifndef xf86ModeBandwidth
22343 (void) xf86ModeBandwidth;
22344 #endif
22345
22346 ;
22347 return 0;
22348 }
22349 _ACEOF
22350 rm -f conftest.$ac_objext
22351 if { (ac_try="$ac_compile"
22352 case "(($ac_try" in
22353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22354 *) ac_try_echo=$ac_try;;
22355 esac
22356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22357 $as_echo "$ac_try_echo") >&5
22358 (eval "$ac_compile") 2>conftest.er1
22359 ac_status=$?
22360 grep -v '^ *+' conftest.er1 >conftest.err
22361 rm -f conftest.er1
22362 cat conftest.err >&5
22363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22364 (exit $ac_status); } && {
22365 test -z "$ac_c_werror_flag" ||
22366 test ! -s conftest.err
22367 } && test -s conftest.$ac_objext; then
22368 ac_cv_have_decl_xf86ModeBandwidth=yes
22369 else
22370 $as_echo "$as_me: failed program was:" >&5
22371 sed 's/^/| /' conftest.$ac_ext >&5
22372
22373 ac_cv_have_decl_xf86ModeBandwidth=no
22374 fi
22375
22376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22377 fi
22378 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_xf86ModeBandwidth" >&5
22379 $as_echo "$ac_cv_have_decl_xf86ModeBandwidth" >&6; }
22380 if test "x$ac_cv_have_decl_xf86ModeBandwidth" = x""yes; then
22381
22382 cat >>confdefs.h <<\_ACEOF
22383 #define HAVE_XF86MODEBANDWIDTH 1
22384 _ACEOF
22385
22386 fi
22387
22388
22389 { $as_echo "$as_me:$LINENO: checking whether xf86_crtc_clip_video_helper is declared" >&5
22390 $as_echo_n "checking whether xf86_crtc_clip_video_helper is declared... " >&6; }
22391 if test "${ac_cv_have_decl_xf86_crtc_clip_video_helper+set}" = set; then
22392 $as_echo_n "(cached) " >&6
22393 else
22394 cat >conftest.$ac_ext <<_ACEOF
22395 /* confdefs.h. */
22396 _ACEOF
22397 cat confdefs.h >>conftest.$ac_ext
22398 cat >>conftest.$ac_ext <<_ACEOF
22399 /* end confdefs.h. */
22400 #include <X11/Xmd.h>
22401 #include "xorg-server.h"
22402 #include "xf86i2c.h"
22403 #include "xf86Crtc.h"
22404
22405 int
22406 main ()
22407 {
22408 #ifndef xf86_crtc_clip_video_helper
22409 (void) xf86_crtc_clip_video_helper;
22410 #endif
22411
22412 ;
22413 return 0;
22414 }
22415 _ACEOF
22416 rm -f conftest.$ac_objext
22417 if { (ac_try="$ac_compile"
22418 case "(($ac_try" in
22419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22420 *) ac_try_echo=$ac_try;;
22421 esac
22422 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22423 $as_echo "$ac_try_echo") >&5
22424 (eval "$ac_compile") 2>conftest.er1
22425 ac_status=$?
22426 grep -v '^ *+' conftest.er1 >conftest.err
22427 rm -f conftest.er1
22428 cat conftest.err >&5
22429 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22430 (exit $ac_status); } && {
22431 test -z "$ac_c_werror_flag" ||
22432 test ! -s conftest.err
22433 } && test -s conftest.$ac_objext; then
22434 ac_cv_have_decl_xf86_crtc_clip_video_helper=yes
22435 else
22436 $as_echo "$as_me: failed program was:" >&5
22437 sed 's/^/| /' conftest.$ac_ext >&5
22438
22439 ac_cv_have_decl_xf86_crtc_clip_video_helper=no
22440 fi
22441
22442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22443 fi
22444 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_xf86_crtc_clip_video_helper" >&5
22445 $as_echo "$ac_cv_have_decl_xf86_crtc_clip_video_helper" >&6; }
22446 if test "x$ac_cv_have_decl_xf86_crtc_clip_video_helper" = x""yes; then
22447
22448 cat >>confdefs.h <<\_ACEOF
22449 #define HAVE_XF86CRTCCLIPVIDEOHELPER 1
22450 _ACEOF
22451
22452 fi
22453
22454
22455 { $as_echo "$as_me:$LINENO: checking whether xf86RotateFreeShadow is declared" >&5
22456 $as_echo_n "checking whether xf86RotateFreeShadow is declared... " >&6; }
22457 if test "${ac_cv_have_decl_xf86RotateFreeShadow+set}" = set; then
22458 $as_echo_n "(cached) " >&6
22459 else
22460 cat >conftest.$ac_ext <<_ACEOF
22461 /* confdefs.h. */
22462 _ACEOF
22463 cat confdefs.h >>conftest.$ac_ext
22464 cat >>conftest.$ac_ext <<_ACEOF
22465 /* end confdefs.h. */
22466 #include <xorg-server.h>
22467 #include <windowstr.h>
22468 #include <xf86Crtc.h>
22469
22470 int
22471 main ()
22472 {
22473 #ifndef xf86RotateFreeShadow
22474 (void) xf86RotateFreeShadow;
22475 #endif
22476
22477 ;
22478 return 0;
22479 }
22480 _ACEOF
22481 rm -f conftest.$ac_objext
22482 if { (ac_try="$ac_compile"
22483 case "(($ac_try" in
22484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22485 *) ac_try_echo=$ac_try;;
22486 esac
22487 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22488 $as_echo "$ac_try_echo") >&5
22489 (eval "$ac_compile") 2>conftest.er1
22490 ac_status=$?
22491 grep -v '^ *+' conftest.er1 >conftest.err
22492 rm -f conftest.er1
22493 cat conftest.err >&5
22494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22495 (exit $ac_status); } && {
22496 test -z "$ac_c_werror_flag" ||
22497 test ! -s conftest.err
22498 } && test -s conftest.$ac_objext; then
22499 ac_cv_have_decl_xf86RotateFreeShadow=yes
22500 else
22501 $as_echo "$as_me: failed program was:" >&5
22502 sed 's/^/| /' conftest.$ac_ext >&5
22503
22504 ac_cv_have_decl_xf86RotateFreeShadow=no
22505 fi
22506
22507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22508 fi
22509 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_xf86RotateFreeShadow" >&5
22510 $as_echo "$ac_cv_have_decl_xf86RotateFreeShadow" >&6; }
22511 if test "x$ac_cv_have_decl_xf86RotateFreeShadow" = x""yes; then
22512
22513 cat >>confdefs.h <<\_ACEOF
22514 #define HAVE_FREE_SHADOW 1
22515 _ACEOF
22516
22517 fi
22518
22519
22520 { $as_echo "$as_me:$LINENO: checking whether pci_device_enable is declared" >&5
22521 $as_echo_n "checking whether pci_device_enable is declared... " >&6; }
22522 if test "${ac_cv_have_decl_pci_device_enable+set}" = set; then
22523 $as_echo_n "(cached) " >&6
22524 else
22525 cat >conftest.$ac_ext <<_ACEOF
22526 /* confdefs.h. */
22527 _ACEOF
22528 cat confdefs.h >>conftest.$ac_ext
22529 cat >>conftest.$ac_ext <<_ACEOF
22530 /* end confdefs.h. */
22531 #include <pciaccess.h>
22532
22533 int
22534 main ()
22535 {
22536 #ifndef pci_device_enable
22537 (void) pci_device_enable;
22538 #endif
22539
22540 ;
22541 return 0;
22542 }
22543 _ACEOF
22544 rm -f conftest.$ac_objext
22545 if { (ac_try="$ac_compile"
22546 case "(($ac_try" in
22547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22548 *) ac_try_echo=$ac_try;;
22549 esac
22550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22551 $as_echo "$ac_try_echo") >&5
22552 (eval "$ac_compile") 2>conftest.er1
22553 ac_status=$?
22554 grep -v '^ *+' conftest.er1 >conftest.err
22555 rm -f conftest.er1
22556 cat conftest.err >&5
22557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22558 (exit $ac_status); } && {
22559 test -z "$ac_c_werror_flag" ||
22560 test ! -s conftest.err
22561 } && test -s conftest.$ac_objext; then
22562 ac_cv_have_decl_pci_device_enable=yes
22563 else
22564 $as_echo "$as_me: failed program was:" >&5
22565 sed 's/^/| /' conftest.$ac_ext >&5
22566
22567 ac_cv_have_decl_pci_device_enable=no
22568 fi
22569
22570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22571 fi
22572 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_pci_device_enable" >&5
22573 $as_echo "$ac_cv_have_decl_pci_device_enable" >&6; }
22574 if test "x$ac_cv_have_decl_pci_device_enable" = x""yes; then
22575
22576 cat >>confdefs.h <<\_ACEOF
22577 #define HAVE_PCI_DEVICE_ENABLE 1
22578 _ACEOF
22579
22580 fi
22581
22582
22583 { $as_echo "$as_me:$LINENO: checking whether XSERVER_LIBPCIACCESS is declared" >&5
22584 $as_echo_n "checking whether XSERVER_LIBPCIACCESS is declared... " >&6; }
22585 if test "${ac_cv_have_decl_XSERVER_LIBPCIACCESS+set}" = set; then
22586 $as_echo_n "(cached) " >&6
22587 else
22588 cat >conftest.$ac_ext <<_ACEOF
22589 /* confdefs.h. */
22590 _ACEOF
22591 cat confdefs.h >>conftest.$ac_ext
22592 cat >>conftest.$ac_ext <<_ACEOF
22593 /* end confdefs.h. */
22594 #include "xorg-server.h"
22595
22596 int
22597 main ()
22598 {
22599 #ifndef XSERVER_LIBPCIACCESS
22600 (void) XSERVER_LIBPCIACCESS;
22601 #endif
22602
22603 ;
22604 return 0;
22605 }
22606 _ACEOF
22607 rm -f conftest.$ac_objext
22608 if { (ac_try="$ac_compile"
22609 case "(($ac_try" in
22610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22611 *) ac_try_echo=$ac_try;;
22612 esac
22613 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22614 $as_echo "$ac_try_echo") >&5
22615 (eval "$ac_compile") 2>conftest.er1
22616 ac_status=$?
22617 grep -v '^ *+' conftest.er1 >conftest.err
22618 rm -f conftest.er1
22619 cat conftest.err >&5
22620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22621 (exit $ac_status); } && {
22622 test -z "$ac_c_werror_flag" ||
22623 test ! -s conftest.err
22624 } && test -s conftest.$ac_objext; then
22625 ac_cv_have_decl_XSERVER_LIBPCIACCESS=yes
22626 else
22627 $as_echo "$as_me: failed program was:" >&5
22628 sed 's/^/| /' conftest.$ac_ext >&5
22629
22630 ac_cv_have_decl_XSERVER_LIBPCIACCESS=no
22631 fi
22632
22633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22634 fi
22635 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&5
22636 $as_echo "$ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&6; }
22637 if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = x""yes; then
22638 XSERVER_LIBPCIACCESS=yes
22639 else
22640 XSERVER_LIBPCIACCESS=no
22641 fi
22642
22643
22644 if test "x$XMODES" = xno; then
22645 XMODES_TRUE=
22646 XMODES_FALSE='#'
22647 else
22648 XMODES_TRUE='#'
22649 XMODES_FALSE=
22650 fi
22651
22652
22653 if test "x$XSERVER_SOURCE" = x; then
22654 if test -d ../../xserver; then
22655 XSERVER_SOURCE="`cd ../../xserver && pwd`"
22656 fi
22657 fi
22658
22659 if test -d "$XSERVER_SOURCE"; then
22660 case "$XSERVER_SOURCE" in
22661 /*)
22662 ;;
22663 *)
22664 XSERVER_SOURCE="`cd $XSERVER_SOURCE && pwd`"
22665 esac
22666 if test -f src/modes/xf86Modes.h; then
22667 :
22668 else
22669 ln -sf $XSERVER_SOURCE/hw/xfree86/modes src/modes
22670 fi
22671
22672 if test -f src/parser/xf86Parser.h; then
22673 :
22674 else
22675 ln -sf $XSERVER_SOURCE/hw/xfree86/parser src/parser
22676 fi
22677 fi
22678 if test "x$XMODES" = xyes; then
22679 { $as_echo "$as_me:$LINENO: X server has new mode code" >&5
22680 $as_echo "$as_me: X server has new mode code" >&6;}
22681
22682 cat >>confdefs.h <<\_ACEOF
22683 #define XMODES 1
22684 _ACEOF
22685
22686 XMODES_CFLAGS=
22687 else
22688 if test -f src/modes/xf86Modes.h -a -f src/parser/xf86Parser.h; then
22689 { $as_echo "$as_me:$LINENO: X server is missing new mode code, using local copy" >&5
22690 $as_echo "$as_me: X server is missing new mode code, using local copy" >&6;}
22691 else
22692 { { $as_echo "$as_me:$LINENO: error: Must have X server >= 1.3 source tree for mode setting code. Please specify --with-xserver-source" >&5
22693 $as_echo "$as_me: error: Must have X server >= 1.3 source tree for mode setting code. Please specify --with-xserver-source" >&2;}
22694 { (exit 1); exit 1; }; }
22695 fi
22696 XMODES_CFLAGS='-DXF86_MODES_RENAME -I$(top_srcdir)/src -I$(top_srcdir)/src/modes -I$(top_srcdir)/src/parser'
22697 fi
22698
22699
22700
22701 CPPFLAGS="$SAVE_CPPFLAGS"
22702
22703 if test "x$USE_EXA" = xyes; then
22704 USE_EXA_TRUE=
22705 USE_EXA_FALSE='#'
22706 else
22707 USE_EXA_TRUE='#'
22708 USE_EXA_FALSE=
22709 fi
22710
22711
22712 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
22713
22714 pkg_failed=no
22715 { $as_echo "$as_me:$LINENO: checking for PCIACCESS" >&5
22716 $as_echo_n "checking for PCIACCESS... " >&6; }
22717
22718 if test -n "$PCIACCESS_CFLAGS"; then
22719 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
22720 elif test -n "$PKG_CONFIG"; then
22721 if test -n "$PKG_CONFIG" && \
22722 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5
22723 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
22724 ac_status=$?
22725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22726 (exit $ac_status); }; then
22727 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
22728 else
22729 pkg_failed=yes
22730 fi
22731 else
22732 pkg_failed=untried
22733 fi
22734 if test -n "$PCIACCESS_LIBS"; then
22735 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
22736 elif test -n "$PKG_CONFIG"; then
22737 if test -n "$PKG_CONFIG" && \
22738 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5
22739 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
22740 ac_status=$?
22741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22742 (exit $ac_status); }; then
22743 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
22744 else
22745 pkg_failed=yes
22746 fi
22747 else
22748 pkg_failed=untried
22749 fi
22750
22751
22752
22753 if test $pkg_failed = yes; then
22754
22755 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22756 _pkg_short_errors_supported=yes
22757 else
22758 _pkg_short_errors_supported=no
22759 fi
22760 if test $_pkg_short_errors_supported = yes; then
22761 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.8.0" 2>&1`
22762 else
22763 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.8.0" 2>&1`
22764 fi
22765 # Put the nasty error message in config.log where it belongs
22766 echo "$PCIACCESS_PKG_ERRORS" >&5
22767
22768 { { $as_echo "$as_me:$LINENO: error: Package requirements (pciaccess >= 0.8.0) were not met:
22769
22770 $PCIACCESS_PKG_ERRORS
22771
22772 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22773 installed software in a non-standard prefix.
22774
22775 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
22776 and PCIACCESS_LIBS to avoid the need to call pkg-config.
22777 See the pkg-config man page for more details.
22778 " >&5
22779 $as_echo "$as_me: error: Package requirements (pciaccess >= 0.8.0) were not met:
22780
22781 $PCIACCESS_PKG_ERRORS
22782
22783 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22784 installed software in a non-standard prefix.
22785
22786 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
22787 and PCIACCESS_LIBS to avoid the need to call pkg-config.
22788 See the pkg-config man page for more details.
22789 " >&2;}
22790 { (exit 1); exit 1; }; }
22791 elif test $pkg_failed = untried; then
22792 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22793 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22794 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
22795 is in your PATH or set the PKG_CONFIG environment variable to the full
22796 path to pkg-config.
22797
22798 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
22799 and PCIACCESS_LIBS to avoid the need to call pkg-config.
22800 See the pkg-config man page for more details.
22801
22802 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22803 See \`config.log' for more details." >&5
22804 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
22805 is in your PATH or set the PKG_CONFIG environment variable to the full
22806 path to pkg-config.
22807
22808 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
22809 and PCIACCESS_LIBS to avoid the need to call pkg-config.
22810 See the pkg-config man page for more details.
22811
22812 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22813 See \`config.log' for more details." >&2;}
22814 { (exit 1); exit 1; }; }; }
22815 else
22816 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
22817 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
22818 { $as_echo "$as_me:$LINENO: result: yes" >&5
22819 $as_echo "yes" >&6; }
22820 :
22821 fi
22822 XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
22823 fi
22824 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
22825 XSERVER_LIBPCIACCESS_TRUE=
22826 XSERVER_LIBPCIACCESS_FALSE='#'
22827 else
22828 XSERVER_LIBPCIACCESS_TRUE='#'
22829 XSERVER_LIBPCIACCESS_FALSE=
22830 fi
22831
22832
22833 # Checks for headers/macros for byte swapping
22834 # Known variants:
22835 # <byteswap.h> bswap_16, bswap_32, bswap_64 (glibc)
22836 # <sys/endian.h> __swap16, __swap32, __swap64 (OpenBSD)
22837 # <sys/endian.h> bswap16, bswap32, bswap64 (other BSD's)
22838 # and a fallback to local macros if none of the above are found
22839
22840 # if <byteswap.h> is found, assume it's the correct version
22841
22842 for ac_header in byteswap.h
22843 do
22844 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22845 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22846 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22847 $as_echo_n "checking for $ac_header... " >&6; }
22848 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22849 $as_echo_n "(cached) " >&6
22850 fi
22851 ac_res=`eval 'as_val=${'$as_ac_Header'}
22852 $as_echo "$as_val"'`
22853 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22854 $as_echo "$ac_res" >&6; }
22855 else
22856 # Is the header compilable?
22857 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22858 $as_echo_n "checking $ac_header usability... " >&6; }
22859 cat >conftest.$ac_ext <<_ACEOF
22860 /* confdefs.h. */
22861 _ACEOF
22862 cat confdefs.h >>conftest.$ac_ext
22863 cat >>conftest.$ac_ext <<_ACEOF
22864 /* end confdefs.h. */
22865 $ac_includes_default
22866 #include <$ac_header>
22867 _ACEOF
22868 rm -f conftest.$ac_objext
22869 if { (ac_try="$ac_compile"
22870 case "(($ac_try" in
22871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22872 *) ac_try_echo=$ac_try;;
22873 esac
22874 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22875 $as_echo "$ac_try_echo") >&5
22876 (eval "$ac_compile") 2>conftest.er1
22877 ac_status=$?
22878 grep -v '^ *+' conftest.er1 >conftest.err
22879 rm -f conftest.er1
22880 cat conftest.err >&5
22881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22882 (exit $ac_status); } && {
22883 test -z "$ac_c_werror_flag" ||
22884 test ! -s conftest.err
22885 } && test -s conftest.$ac_objext; then
22886 ac_header_compiler=yes
22887 else
22888 $as_echo "$as_me: failed program was:" >&5
22889 sed 's/^/| /' conftest.$ac_ext >&5
22890
22891 ac_header_compiler=no
22892 fi
22893
22894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22895 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22896 $as_echo "$ac_header_compiler" >&6; }
22897
22898 # Is the header present?
22899 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22900 $as_echo_n "checking $ac_header presence... " >&6; }
22901 cat >conftest.$ac_ext <<_ACEOF
22902 /* confdefs.h. */
22903 _ACEOF
22904 cat confdefs.h >>conftest.$ac_ext
22905 cat >>conftest.$ac_ext <<_ACEOF
22906 /* end confdefs.h. */
22907 #include <$ac_header>
22908 _ACEOF
22909 if { (ac_try="$ac_cpp conftest.$ac_ext"
22910 case "(($ac_try" in
22911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22912 *) ac_try_echo=$ac_try;;
22913 esac
22914 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22915 $as_echo "$ac_try_echo") >&5
22916 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22917 ac_status=$?
22918 grep -v '^ *+' conftest.er1 >conftest.err
22919 rm -f conftest.er1
22920 cat conftest.err >&5
22921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22922 (exit $ac_status); } >/dev/null && {
22923 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22924 test ! -s conftest.err
22925 }; then
22926 ac_header_preproc=yes
22927 else
22928 $as_echo "$as_me: failed program was:" >&5
22929 sed 's/^/| /' conftest.$ac_ext >&5
22930
22931 ac_header_preproc=no
22932 fi
22933
22934 rm -f conftest.err conftest.$ac_ext
22935 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22936 $as_echo "$ac_header_preproc" >&6; }
22937
22938 # So? What about this header?
22939 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22940 yes:no: )
22941 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22942 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22943 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22944 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22945 ac_header_preproc=yes
22946 ;;
22947 no:yes:* )
22948 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22949 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22950 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22951 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22952 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22953 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22954 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22955 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22956 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22957 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22958 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22959 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22960 ( cat <<\_ASBOX
22961 ## ---------------------------------------------------------------------- ##
22962 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
22963 ## ---------------------------------------------------------------------- ##
22964 _ASBOX
22965 ) | sed "s/^/$as_me: WARNING: /" >&2
22966 ;;
22967 esac
22968 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22969 $as_echo_n "checking for $ac_header... " >&6; }
22970 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22971 $as_echo_n "(cached) " >&6
22972 else
22973 eval "$as_ac_Header=\$ac_header_preproc"
22974 fi
22975 ac_res=`eval 'as_val=${'$as_ac_Header'}
22976 $as_echo "$as_val"'`
22977 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22978 $as_echo "$ac_res" >&6; }
22979
22980 fi
22981 as_val=`eval 'as_val=${'$as_ac_Header'}
22982 $as_echo "$as_val"'`
22983 if test "x$as_val" = x""yes; then
22984 cat >>confdefs.h <<_ACEOF
22985 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22986 _ACEOF
22987
22988 fi
22989
22990 done
22991
22992
22993 # if <sys/endian.h> is found, have to check which version
22994 if test "${ac_cv_header_sys_endian_h+set}" = set; then
22995 { $as_echo "$as_me:$LINENO: checking for sys/endian.h" >&5
22996 $as_echo_n "checking for sys/endian.h... " >&6; }
22997 if test "${ac_cv_header_sys_endian_h+set}" = set; then
22998 $as_echo_n "(cached) " >&6
22999 fi
23000 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_endian_h" >&5
23001 $as_echo "$ac_cv_header_sys_endian_h" >&6; }
23002 else
23003 # Is the header compilable?
23004 { $as_echo "$as_me:$LINENO: checking sys/endian.h usability" >&5
23005 $as_echo_n "checking sys/endian.h usability... " >&6; }
23006 cat >conftest.$ac_ext <<_ACEOF
23007 /* confdefs.h. */
23008 _ACEOF
23009 cat confdefs.h >>conftest.$ac_ext
23010 cat >>conftest.$ac_ext <<_ACEOF
23011 /* end confdefs.h. */
23012 $ac_includes_default
23013 #include <sys/endian.h>
23014 _ACEOF
23015 rm -f conftest.$ac_objext
23016 if { (ac_try="$ac_compile"
23017 case "(($ac_try" in
23018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23019 *) ac_try_echo=$ac_try;;
23020 esac
23021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23022 $as_echo "$ac_try_echo") >&5
23023 (eval "$ac_compile") 2>conftest.er1
23024 ac_status=$?
23025 grep -v '^ *+' conftest.er1 >conftest.err
23026 rm -f conftest.er1
23027 cat conftest.err >&5
23028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23029 (exit $ac_status); } && {
23030 test -z "$ac_c_werror_flag" ||
23031 test ! -s conftest.err
23032 } && test -s conftest.$ac_objext; then
23033 ac_header_compiler=yes
23034 else
23035 $as_echo "$as_me: failed program was:" >&5
23036 sed 's/^/| /' conftest.$ac_ext >&5
23037
23038 ac_header_compiler=no
23039 fi
23040
23041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23042 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23043 $as_echo "$ac_header_compiler" >&6; }
23044
23045 # Is the header present?
23046 { $as_echo "$as_me:$LINENO: checking sys/endian.h presence" >&5
23047 $as_echo_n "checking sys/endian.h presence... " >&6; }
23048 cat >conftest.$ac_ext <<_ACEOF
23049 /* confdefs.h. */
23050 _ACEOF
23051 cat confdefs.h >>conftest.$ac_ext
23052 cat >>conftest.$ac_ext <<_ACEOF
23053 /* end confdefs.h. */
23054 #include <sys/endian.h>
23055 _ACEOF
23056 if { (ac_try="$ac_cpp conftest.$ac_ext"
23057 case "(($ac_try" in
23058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23059 *) ac_try_echo=$ac_try;;
23060 esac
23061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23062 $as_echo "$ac_try_echo") >&5
23063 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23064 ac_status=$?
23065 grep -v '^ *+' conftest.er1 >conftest.err
23066 rm -f conftest.er1
23067 cat conftest.err >&5
23068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23069 (exit $ac_status); } >/dev/null && {
23070 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23071 test ! -s conftest.err
23072 }; then
23073 ac_header_preproc=yes
23074 else
23075 $as_echo "$as_me: failed program was:" >&5
23076 sed 's/^/| /' conftest.$ac_ext >&5
23077
23078 ac_header_preproc=no
23079 fi
23080
23081 rm -f conftest.err conftest.$ac_ext
23082 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23083 $as_echo "$ac_header_preproc" >&6; }
23084
23085 # So? What about this header?
23086 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23087 yes:no: )
23088 { $as_echo "$as_me:$LINENO: WARNING: sys/endian.h: accepted by the compiler, rejected by the preprocessor!" >&5
23089 $as_echo "$as_me: WARNING: sys/endian.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23090 { $as_echo "$as_me:$LINENO: WARNING: sys/endian.h: proceeding with the compiler's result" >&5
23091 $as_echo "$as_me: WARNING: sys/endian.h: proceeding with the compiler's result" >&2;}
23092 ac_header_preproc=yes
23093 ;;
23094 no:yes:* )
23095 { $as_echo "$as_me:$LINENO: WARNING: sys/endian.h: present but cannot be compiled" >&5
23096 $as_echo "$as_me: WARNING: sys/endian.h: present but cannot be compiled" >&2;}
23097 { $as_echo "$as_me:$LINENO: WARNING: sys/endian.h: check for missing prerequisite headers?" >&5
23098 $as_echo "$as_me: WARNING: sys/endian.h: check for missing prerequisite headers?" >&2;}
23099 { $as_echo "$as_me:$LINENO: WARNING: sys/endian.h: see the Autoconf documentation" >&5
23100 $as_echo "$as_me: WARNING: sys/endian.h: see the Autoconf documentation" >&2;}
23101 { $as_echo "$as_me:$LINENO: WARNING: sys/endian.h: section \"Present But Cannot Be Compiled\"" >&5
23102 $as_echo "$as_me: WARNING: sys/endian.h: section \"Present But Cannot Be Compiled\"" >&2;}
23103 { $as_echo "$as_me:$LINENO: WARNING: sys/endian.h: proceeding with the preprocessor's result" >&5
23104 $as_echo "$as_me: WARNING: sys/endian.h: proceeding with the preprocessor's result" >&2;}
23105 { $as_echo "$as_me:$LINENO: WARNING: sys/endian.h: in the future, the compiler will take precedence" >&5
23106 $as_echo "$as_me: WARNING: sys/endian.h: in the future, the compiler will take precedence" >&2;}
23107 ( cat <<\_ASBOX
23108 ## ---------------------------------------------------------------------- ##
23109 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
23110 ## ---------------------------------------------------------------------- ##
23111 _ASBOX
23112 ) | sed "s/^/$as_me: WARNING: /" >&2
23113 ;;
23114 esac
23115 { $as_echo "$as_me:$LINENO: checking for sys/endian.h" >&5
23116 $as_echo_n "checking for sys/endian.h... " >&6; }
23117 if test "${ac_cv_header_sys_endian_h+set}" = set; then
23118 $as_echo_n "(cached) " >&6
23119 else
23120 ac_cv_header_sys_endian_h=$ac_header_preproc
23121 fi
23122 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_endian_h" >&5
23123 $as_echo "$ac_cv_header_sys_endian_h" >&6; }
23124
23125 fi
23126 if test "x$ac_cv_header_sys_endian_h" = x""yes; then
23127 HAVE_SYS_ENDIAN_H="yes"
23128 else
23129 HAVE_SYS_ENDIAN_H="no"
23130 fi
23131
23132
23133
23134 if test "x$HAVE_SYS_ENDIAN_H" = "xyes" ; then
23135 { $as_echo "$as_me:$LINENO: checking for __swap16 variant of <sys/endian.h> byteswapping macros" >&5
23136 $as_echo_n "checking for __swap16 variant of <sys/endian.h> byteswapping macros... " >&6; }
23137 cat >conftest.$ac_ext <<_ACEOF
23138 /* confdefs.h. */
23139 _ACEOF
23140 cat confdefs.h >>conftest.$ac_ext
23141 cat >>conftest.$ac_ext <<_ACEOF
23142 /* end confdefs.h. */
23143
23144 #include <sys/types.h>
23145 #include <sys/endian.h>
23146
23147 int
23148 main ()
23149 {
23150
23151 int a = 1, b;
23152 b = __swap16(a);
23153
23154 ;
23155 return 0;
23156 }
23157
23158 _ACEOF
23159 rm -f conftest.$ac_objext conftest$ac_exeext
23160 if { (ac_try="$ac_link"
23161 case "(($ac_try" in
23162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23163 *) ac_try_echo=$ac_try;;
23164 esac
23165 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23166 $as_echo "$ac_try_echo") >&5
23167 (eval "$ac_link") 2>conftest.er1
23168 ac_status=$?
23169 grep -v '^ *+' conftest.er1 >conftest.err
23170 rm -f conftest.er1
23171 cat conftest.err >&5
23172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23173 (exit $ac_status); } && {
23174 test -z "$ac_c_werror_flag" ||
23175 test ! -s conftest.err
23176 } && test -s conftest$ac_exeext && {
23177 test "$cross_compiling" = yes ||
23178 $as_test_x conftest$ac_exeext
23179 }; then
23180 SYS_ENDIAN__SWAP='yes'
23181 else
23182 $as_echo "$as_me: failed program was:" >&5
23183 sed 's/^/| /' conftest.$ac_ext >&5
23184
23185 SYS_ENDIAN__SWAP='no'
23186 fi
23187
23188 rm -rf conftest.dSYM
23189 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23190 conftest$ac_exeext conftest.$ac_ext
23191 { $as_echo "$as_me:$LINENO: result: $SYS_ENDIAN__SWAP" >&5
23192 $as_echo "$SYS_ENDIAN__SWAP" >&6; }
23193
23194 { $as_echo "$as_me:$LINENO: checking for bswap16 variant of <sys/endian.h> byteswapping macros" >&5
23195 $as_echo_n "checking for bswap16 variant of <sys/endian.h> byteswapping macros... " >&6; }
23196 cat >conftest.$ac_ext <<_ACEOF
23197 /* confdefs.h. */
23198 _ACEOF
23199 cat confdefs.h >>conftest.$ac_ext
23200 cat >>conftest.$ac_ext <<_ACEOF
23201 /* end confdefs.h. */
23202
23203 #include <sys/types.h>
23204 #include <sys/endian.h>
23205
23206 int
23207 main ()
23208 {
23209
23210 int a = 1, b;
23211 b = bswap16(a);
23212
23213 ;
23214 return 0;
23215 }
23216
23217 _ACEOF
23218 rm -f conftest.$ac_objext conftest$ac_exeext
23219 if { (ac_try="$ac_link"
23220 case "(($ac_try" in
23221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23222 *) ac_try_echo=$ac_try;;
23223 esac
23224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23225 $as_echo "$ac_try_echo") >&5
23226 (eval "$ac_link") 2>conftest.er1
23227 ac_status=$?
23228 grep -v '^ *+' conftest.er1 >conftest.err
23229 rm -f conftest.er1
23230 cat conftest.err >&5
23231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23232 (exit $ac_status); } && {
23233 test -z "$ac_c_werror_flag" ||
23234 test ! -s conftest.err
23235 } && test -s conftest$ac_exeext && {
23236 test "$cross_compiling" = yes ||
23237 $as_test_x conftest$ac_exeext
23238 }; then
23239 SYS_ENDIAN_BSWAP='yes'
23240 else
23241 $as_echo "$as_me: failed program was:" >&5
23242 sed 's/^/| /' conftest.$ac_ext >&5
23243
23244 SYS_ENDIAN_BSWAP='no'
23245 fi
23246
23247 rm -rf conftest.dSYM
23248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23249 conftest$ac_exeext conftest.$ac_ext
23250 { $as_echo "$as_me:$LINENO: result: $SYS_ENDIAN_BSWAP" >&5
23251 $as_echo "$SYS_ENDIAN_BSWAP" >&6; }
23252
23253 if test "$SYS_ENDIAN_BSWAP" = "yes" ; then
23254 USE_SYS_ENDIAN_H=yes
23255 BSWAP=bswap
23256 else
23257 if test "$SYS_ENDIAN__SWAP" = "yes" ; then
23258 USE_SYS_ENDIAN_H=yes
23259 BSWAP=__swap
23260 else
23261 USE_SYS_ENDIAN_H=no
23262 fi
23263 fi
23264
23265 if test "$USE_SYS_ENDIAN_H" = "yes" ; then
23266
23267 cat >>confdefs.h <<\_ACEOF
23268 #define USE_SYS_ENDIAN_H 1
23269 _ACEOF
23270
23271
23272 cat >>confdefs.h <<_ACEOF
23273 #define bswap_16 ${BSWAP}16
23274 _ACEOF
23275
23276
23277 cat >>confdefs.h <<_ACEOF
23278 #define bswap_32 ${BSWAP}32
23279 _ACEOF
23280
23281
23282 cat >>confdefs.h <<_ACEOF
23283 #define bswap_64 ${BSWAP}64
23284 _ACEOF
23285
23286 fi
23287 fi
23288
23289 case $host_os in
23290 *linux*)
23291
23292 cat >>confdefs.h <<\_ACEOF
23293 #define FGL_LINUX 1
23294 _ACEOF
23295 ;;
23296 esac
23297
23298
23299
23300
23301
23302 DRIVER_NAME=ati
23303
23304
23305
23306
23307
23308 if test x$APP_MAN_SUFFIX = x ; then
23309 APP_MAN_SUFFIX=1
23310 fi
23311 if test x$APP_MAN_DIR = x ; then
23312 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
23313 fi
23314
23315 if test x$LIB_MAN_SUFFIX = x ; then
23316 LIB_MAN_SUFFIX=3
23317 fi
23318 if test x$LIB_MAN_DIR = x ; then
23319 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
23320 fi
23321
23322 if test x$FILE_MAN_SUFFIX = x ; then
23323 case $host_os in
23324 solaris*) FILE_MAN_SUFFIX=4 ;;
23325 *) FILE_MAN_SUFFIX=5 ;;
23326 esac
23327 fi
23328 if test x$FILE_MAN_DIR = x ; then
23329 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
23330 fi
23331
23332 if test x$MISC_MAN_SUFFIX = x ; then
23333 case $host_os in
23334 solaris*) MISC_MAN_SUFFIX=5 ;;
23335 *) MISC_MAN_SUFFIX=7 ;;
23336 esac
23337 fi
23338 if test x$MISC_MAN_DIR = x ; then
23339 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
23340 fi
23341
23342 if test x$DRIVER_MAN_SUFFIX = x ; then
23343 case $host_os in
23344 solaris*) DRIVER_MAN_SUFFIX=7 ;;
23345 *) DRIVER_MAN_SUFFIX=4 ;;
23346 esac
23347 fi
23348 if test x$DRIVER_MAN_DIR = x ; then
23349 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
23350 fi
23351
23352 if test x$ADMIN_MAN_SUFFIX = x ; then
23353 case $host_os in
23354 solaris*) ADMIN_MAN_SUFFIX=1m ;;
23355 *) ADMIN_MAN_SUFFIX=8 ;;
23356 esac
23357 fi
23358 if test x$ADMIN_MAN_DIR = x ; then
23359 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
23360 fi
23361
23362
23363
23364
23365
23366
23367
23368
23369
23370
23371
23372
23373
23374
23375
23376
23377
23378 # Check whether --with-release-version was given.
23379 if test "${with_release_version+set}" = set; then
23380 withval=$with_release_version; RELEASE_VERSION="$withval"
23381 else
23382 RELEASE_VERSION=""
23383 fi
23384
23385 if test "x$RELEASE_VERSION" != "x"; then
23386 PACKAGE="$PACKAGE-$RELEASE_VERSION"
23387 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
23388 { $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
23389 $as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
23390 fi
23391
23392 cat >>confdefs.h <<_ACEOF
23393 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
23394 _ACEOF
23395
23396 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
23397 if test "x$PVM" = "x"; then
23398 PVM="0"
23399 fi
23400
23401 cat >>confdefs.h <<_ACEOF
23402 #define PACKAGE_VERSION_MINOR $PVM
23403 _ACEOF
23404
23405 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
23406 if test "x$PVP" = "x"; then
23407 PVP="0"
23408 fi
23409
23410 cat >>confdefs.h <<_ACEOF
23411 #define PACKAGE_VERSION_PATCHLEVEL $PVP
23412 _ACEOF
23413
23414
23415
23416 if test x$XORG_SGML_PATH = x ; then
23417 XORG_SGML_PATH=$prefix/share/sgml
23418 fi
23419 HAVE_DEFS_ENT=
23420
23421 if test x"$cross_compiling" = x"yes" ; then
23422 HAVE_DEFS_ENT=no
23423 else
23424 as_ac_File=`$as_echo "ac_cv_file_$XORG_SGML_PATH/X11/defs.ent" | $as_tr_sh`
23425 { $as_echo "$as_me:$LINENO: checking for $XORG_SGML_PATH/X11/defs.ent" >&5
23426 $as_echo_n "checking for $XORG_SGML_PATH/X11/defs.ent... " >&6; }
23427 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
23428 $as_echo_n "(cached) " >&6
23429 else
23430 test "$cross_compiling" = yes &&
23431 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23432 $as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23433 { (exit 1); exit 1; }; }
23434 if test -r "$XORG_SGML_PATH/X11/defs.ent"; then
23435 eval "$as_ac_File=yes"
23436 else
23437 eval "$as_ac_File=no"
23438 fi
23439 fi
23440 ac_res=`eval 'as_val=${'$as_ac_File'}
23441 $as_echo "$as_val"'`
23442 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23443 $as_echo "$ac_res" >&6; }
23444 as_val=`eval 'as_val=${'$as_ac_File'}
23445 $as_echo "$as_val"'`
23446 if test "x$as_val" = x""yes; then
23447 HAVE_DEFS_ENT=yes
23448 fi
23449
23450 fi
23451
23452 # Extract the first word of "linuxdoc", so it can be a program name with args.
23453 set dummy linuxdoc; ac_word=$2
23454 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23455 $as_echo_n "checking for $ac_word... " >&6; }
23456 if test "${ac_cv_path_LINUXDOC+set}" = set; then
23457 $as_echo_n "(cached) " >&6
23458 else
23459 case $LINUXDOC in
23460 [\\/]* | ?:[\\/]*)
23461 ac_cv_path_LINUXDOC="$LINUXDOC" # Let the user override the test with a path.
23462 ;;
23463 *)
23464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23465 for as_dir in $PATH
23466 do
23467 IFS=$as_save_IFS
23468 test -z "$as_dir" && as_dir=.
23469 for ac_exec_ext in '' $ac_executable_extensions; do
23470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23471 ac_cv_path_LINUXDOC="$as_dir/$ac_word$ac_exec_ext"
23472 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23473 break 2
23474 fi
23475 done
23476 done
23477 IFS=$as_save_IFS
23478
23479 ;;
23480 esac
23481 fi
23482 LINUXDOC=$ac_cv_path_LINUXDOC
23483 if test -n "$LINUXDOC"; then
23484 { $as_echo "$as_me:$LINENO: result: $LINUXDOC" >&5
23485 $as_echo "$LINUXDOC" >&6; }
23486 else
23487 { $as_echo "$as_me:$LINENO: result: no" >&5
23488 $as_echo "no" >&6; }
23489 fi
23490
23491
23492 # Extract the first word of "ps2pdf", so it can be a program name with args.
23493 set dummy ps2pdf; ac_word=$2
23494 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23495 $as_echo_n "checking for $ac_word... " >&6; }
23496 if test "${ac_cv_path_PS2PDF+set}" = set; then
23497 $as_echo_n "(cached) " >&6
23498 else
23499 case $PS2PDF in
23500 [\\/]* | ?:[\\/]*)
23501 ac_cv_path_PS2PDF="$PS2PDF" # Let the user override the test with a path.
23502 ;;
23503 *)
23504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23505 for as_dir in $PATH
23506 do
23507 IFS=$as_save_IFS
23508 test -z "$as_dir" && as_dir=.
23509 for ac_exec_ext in '' $ac_executable_extensions; do
23510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23511 ac_cv_path_PS2PDF="$as_dir/$ac_word$ac_exec_ext"
23512 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23513 break 2
23514 fi
23515 done
23516 done
23517 IFS=$as_save_IFS
23518
23519 ;;
23520 esac
23521 fi
23522 PS2PDF=$ac_cv_path_PS2PDF
23523 if test -n "$PS2PDF"; then
23524 { $as_echo "$as_me:$LINENO: result: $PS2PDF" >&5
23525 $as_echo "$PS2PDF" >&6; }
23526 else
23527 { $as_echo "$as_me:$LINENO: result: no" >&5
23528 $as_echo "no" >&6; }
23529 fi
23530
23531
23532
23533 { $as_echo "$as_me:$LINENO: checking Whether to build documentation" >&5
23534 $as_echo_n "checking Whether to build documentation... " >&6; }
23535
23536 if test x$HAVE_DEFS_ENT != x && test x$LINUXDOC != x ; then
23537 BUILDDOC=yes
23538 else
23539 BUILDDOC=no
23540 fi
23541
23542 if test x$BUILDDOC = xyes; then
23543 BUILD_LINUXDOC_TRUE=
23544 BUILD_LINUXDOC_FALSE='#'
23545 else
23546 BUILD_LINUXDOC_TRUE='#'
23547 BUILD_LINUXDOC_FALSE=
23548 fi
23549
23550
23551 { $as_echo "$as_me:$LINENO: result: $BUILDDOC" >&5
23552 $as_echo "$BUILDDOC" >&6; }
23553
23554 { $as_echo "$as_me:$LINENO: checking Whether to build pdf documentation" >&5
23555 $as_echo_n "checking Whether to build pdf documentation... " >&6; }
23556
23557 if test x$PS2PDF != x && test x$BUILD_PDFDOC != xno; then
23558 BUILDPDFDOC=yes
23559 else
23560 BUILDPDFDOC=no
23561 fi
23562
23563 if test x$BUILDPDFDOC = xyes; then
23564 BUILD_PDFDOC_TRUE=
23565 BUILD_PDFDOC_FALSE='#'
23566 else
23567 BUILD_PDFDOC_TRUE='#'
23568 BUILD_PDFDOC_FALSE=
23569 fi
23570
23571
23572 { $as_echo "$as_me:$LINENO: result: $BUILDPDFDOC" >&5
23573 $as_echo "$BUILDPDFDOC" >&6; }
23574
23575 MAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH GROFF_NO_SGR=y $LINUXDOC -B txt"
23576 MAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B latex --papersize=letter --output=ps"
23577 MAKE_PDF="$PS2PDF"
23578 MAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B html --split=0"
23579
23580
23581
23582
23583
23584
23585
23586 { $as_echo "$as_me:$LINENO: The atimisc sub-driver has been split out to xf86-video-mach64:
23587 git://anongit.freedesktop.org/git/xorg/driver/xf86-video-mach64
23588 Please install that driver as well for mach64-based cards.
23589 " >&5
23590 $as_echo "$as_me: The atimisc sub-driver has been split out to xf86-video-mach64:
23591 git://anongit.freedesktop.org/git/xorg/driver/xf86-video-mach64
23592 Please install that driver as well for mach64-based cards.
23593 " >&6;}
23594
23595 { $as_echo "$as_me:$LINENO: The r128 sub-driver has been split out to xf86-video-r128:
23596 git://anongit.freedesktop.org/git/xorg/driver/xf86-video-r128
23597 Please install that driver as well for rage128-based cards.
23598 " >&5
23599 $as_echo "$as_me: The r128 sub-driver has been split out to xf86-video-r128:
23600 git://anongit.freedesktop.org/git/xorg/driver/xf86-video-r128
23601 Please install that driver as well for rage128-based cards.
23602 " >&6;}
23603
23604 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
23605
23606 cat >confcache <<\_ACEOF
23607 # This file is a shell script that caches the results of configure
23608 # tests run on this system so they can be shared between configure
23609 # scripts and configure runs, see configure's option --config-cache.
23610 # It is not useful on other systems. If it contains results you don't
23611 # want to keep, you may remove or edit it.
23612 #
23613 # config.status only pays attention to the cache file if you give it
23614 # the --recheck option to rerun configure.
23615 #
23616 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23617 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23618 # following values.
23619
23620 _ACEOF
23621
23622 # The following way of writing the cache mishandles newlines in values,
23623 # but we know of no workaround that is simple, portable, and efficient.
23624 # So, we kill variables containing newlines.
23625 # Ultrix sh set writes to stderr and can't be redirected directly,
23626 # and sets the high bit in the cache file unless we assign to the vars.
23627 (
23628 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23629 eval ac_val=\$$ac_var
23630 case $ac_val in #(
23631 *${as_nl}*)
23632 case $ac_var in #(
23633 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
23634 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
23635 esac
23636 case $ac_var in #(
23637 _ | IFS | as_nl) ;; #(
23638 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
23639 *) $as_unset $ac_var ;;
23640 esac ;;
23641 esac
23642 done
23643
23644 (set) 2>&1 |
23645 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23646 *${as_nl}ac_space=\ *)
23647 # `set' does not quote correctly, so add quotes (double-quote
23648 # substitution turns \\\\ into \\, and sed turns \\ into \).
23649 sed -n \
23650 "s/'/'\\\\''/g;
23651 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23652 ;; #(
23653 *)
23654 # `set' quotes correctly as required by POSIX, so do not add quotes.
23655 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23656 ;;
23657 esac |
23658 sort
23659 ) |
23660 sed '
23661 /^ac_cv_env_/b end
23662 t clear
23663 :clear
23664 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23665 t end
23666 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23667 :end' >>confcache
23668 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23669 if test -w "$cache_file"; then
23670 test "x$cache_file" != "x/dev/null" &&
23671 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
23672 $as_echo "$as_me: updating cache $cache_file" >&6;}
23673 cat confcache >$cache_file
23674 else
23675 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23676 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23677 fi
23678 fi
23679 rm -f confcache
23680
23681 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23682 # Let make expand exec_prefix.
23683 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23684
23685 DEFS=-DHAVE_CONFIG_H
23686
23687 ac_libobjs=
23688 ac_ltlibobjs=
23689 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23690 # 1. Remove the extension, and $U if already installed.
23691 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23692 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
23693 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23694 # will be set to the directory where LIBOBJS objects are built.
23695 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23696 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23697 done
23698 LIBOBJS=$ac_libobjs
23699
23700 LTLIBOBJS=$ac_ltlibobjs
23701
23702
23703 if test -n "$EXEEXT"; then
23704 am__EXEEXT_TRUE=
23705 am__EXEEXT_FALSE='#'
23706 else
23707 am__EXEEXT_TRUE='#'
23708 am__EXEEXT_FALSE=
23709 fi
23710
23711 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23712 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
23713 Usually this means the macro was only invoked conditionally." >&5
23714 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
23715 Usually this means the macro was only invoked conditionally." >&2;}
23716 { (exit 1); exit 1; }; }
23717 fi
23718 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23719 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23720 Usually this means the macro was only invoked conditionally." >&5
23721 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
23722 Usually this means the macro was only invoked conditionally." >&2;}
23723 { (exit 1); exit 1; }; }
23724 fi
23725 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23726 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23727 Usually this means the macro was only invoked conditionally." >&5
23728 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23729 Usually this means the macro was only invoked conditionally." >&2;}
23730 { (exit 1); exit 1; }; }
23731 fi
23732 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23733 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23734 Usually this means the macro was only invoked conditionally." >&5
23735 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23736 Usually this means the macro was only invoked conditionally." >&2;}
23737 { (exit 1); exit 1; }; }
23738 fi
23739 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23740 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23741 Usually this means the macro was only invoked conditionally." >&5
23742 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23743 Usually this means the macro was only invoked conditionally." >&2;}
23744 { (exit 1); exit 1; }; }
23745 fi
23746 if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then
23747 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_XEXTPROTO_71\" was never defined.
23748 Usually this means the macro was only invoked conditionally." >&5
23749 $as_echo "$as_me: error: conditional \"HAVE_XEXTPROTO_71\" was never defined.
23750 Usually this means the macro was only invoked conditionally." >&2;}
23751 { (exit 1); exit 1; }; }
23752 fi
23753 if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then
23754 { { $as_echo "$as_me:$LINENO: error: conditional \"DRI\" was never defined.
23755 Usually this means the macro was only invoked conditionally." >&5
23756 $as_echo "$as_me: error: conditional \"DRI\" was never defined.
23757 Usually this means the macro was only invoked conditionally." >&2;}
23758 { (exit 1); exit 1; }; }
23759 fi
23760 if test -z "${XMODES_TRUE}" && test -z "${XMODES_FALSE}"; then
23761 { { $as_echo "$as_me:$LINENO: error: conditional \"XMODES\" was never defined.
23762 Usually this means the macro was only invoked conditionally." >&5
23763 $as_echo "$as_me: error: conditional \"XMODES\" was never defined.
23764 Usually this means the macro was only invoked conditionally." >&2;}
23765 { (exit 1); exit 1; }; }
23766 fi
23767 if test -z "${USE_EXA_TRUE}" && test -z "${USE_EXA_FALSE}"; then
23768 { { $as_echo "$as_me:$LINENO: error: conditional \"USE_EXA\" was never defined.
23769 Usually this means the macro was only invoked conditionally." >&5
23770 $as_echo "$as_me: error: conditional \"USE_EXA\" was never defined.
23771 Usually this means the macro was only invoked conditionally." >&2;}
23772 { (exit 1); exit 1; }; }
23773 fi
23774 if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
23775 { { $as_echo "$as_me:$LINENO: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined.
23776 Usually this means the macro was only invoked conditionally." >&5
23777 $as_echo "$as_me: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined.
23778 Usually this means the macro was only invoked conditionally." >&2;}
23779 { (exit 1); exit 1; }; }
23780 fi
23781 if test -z "${BUILD_LINUXDOC_TRUE}" && test -z "${BUILD_LINUXDOC_FALSE}"; then
23782 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_LINUXDOC\" was never defined.
23783 Usually this means the macro was only invoked conditionally." >&5
23784 $as_echo "$as_me: error: conditional \"BUILD_LINUXDOC\" was never defined.
23785 Usually this means the macro was only invoked conditionally." >&2;}
23786 { (exit 1); exit 1; }; }
23787 fi
23788 if test -z "${BUILD_PDFDOC_TRUE}" && test -z "${BUILD_PDFDOC_FALSE}"; then
23789 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_PDFDOC\" was never defined.
23790 Usually this means the macro was only invoked conditionally." >&5
23791 $as_echo "$as_me: error: conditional \"BUILD_PDFDOC\" was never defined.
23792 Usually this means the macro was only invoked conditionally." >&2;}
23793 { (exit 1); exit 1; }; }
23794 fi
23795
23796 : ${CONFIG_STATUS=./config.status}
23797 ac_write_fail=0
23798 ac_clean_files_save=$ac_clean_files
23799 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23800 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23801 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
23802 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23803 #! $SHELL
23804 # Generated by $as_me.
23805 # Run this file to recreate the current configuration.
23806 # Compiler output produced by configure, useful for debugging
23807 # configure, is in config.log if it exists.
23808
23809 debug=false
23810 ac_cs_recheck=false
23811 ac_cs_silent=false
23812 SHELL=\${CONFIG_SHELL-$SHELL}
23813 _ACEOF
23814
23815 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23816 ## --------------------- ##
23817 ## M4sh Initialization. ##
23818 ## --------------------- ##
23819
23820 # Be more Bourne compatible
23821 DUALCASE=1; export DUALCASE # for MKS sh
23822 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23823 emulate sh
23824 NULLCMD=:
23825 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23826 # is contrary to our usage. Disable this feature.
23827 alias -g '${1+"$@"}'='"$@"'
23828 setopt NO_GLOB_SUBST
23829 else
23830 case `(set -o) 2>/dev/null` in
23831 *posix*) set -o posix ;;
23832 esac
23833
23834 fi
23835
23836
23837
23838
23839 # PATH needs CR
23840 # Avoid depending upon Character Ranges.
23841 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23842 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23843 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23844 as_cr_digits='0123456789'
23845 as_cr_alnum=$as_cr_Letters$as_cr_digits
23846
23847 as_nl='
23848 '
23849 export as_nl
23850 # Printing a long string crashes Solaris 7 /usr/bin/printf.
23851 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
23852 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
23853 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
23854 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
23855 as_echo='printf %s\n'
23856 as_echo_n='printf %s'
23857 else
23858 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
23859 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
23860 as_echo_n='/usr/ucb/echo -n'
23861 else
23862 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
23863 as_echo_n_body='eval
23864 arg=$1;
23865 case $arg in
23866 *"$as_nl"*)
23867 expr "X$arg" : "X\\(.*\\)$as_nl";
23868 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
23869 esac;
23870 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
23871 '
23872 export as_echo_n_body
23873 as_echo_n='sh -c $as_echo_n_body as_echo'
23874 fi
23875 export as_echo_body
23876 as_echo='sh -c $as_echo_body as_echo'
23877 fi
23878
23879 # The user is always right.
23880 if test "${PATH_SEPARATOR+set}" != set; then
23881 PATH_SEPARATOR=:
23882 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
23883 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
23884 PATH_SEPARATOR=';'
23885 }
23886 fi
23887
23888 # Support unset when possible.
23889 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23890 as_unset=unset
23891 else
23892 as_unset=false
23893 fi
23894
23895
23896 # IFS
23897 # We need space, tab and new line, in precisely that order. Quoting is
23898 # there to prevent editors from complaining about space-tab.
23899 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23900 # splitting by setting IFS to empty value.)
23901 IFS=" "" $as_nl"
23902
23903 # Find who we are. Look in the path if we contain no directory separator.
23904 case $0 in
23905 *[\\/]* ) as_myself=$0 ;;
23906 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23907 for as_dir in $PATH
23908 do
23909 IFS=$as_save_IFS
23910 test -z "$as_dir" && as_dir=.
23911 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23912 done
23913 IFS=$as_save_IFS
23914
23915 ;;
23916 esac
23917 # We did not find ourselves, most probably we were run as `sh COMMAND'
23918 # in which case we are not to be found in the path.
23919 if test "x$as_myself" = x; then
23920 as_myself=$0
23921 fi
23922 if test ! -f "$as_myself"; then
23923 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23924 { (exit 1); exit 1; }
23925 fi
23926
23927 # Work around bugs in pre-3.0 UWIN ksh.
23928 for as_var in ENV MAIL MAILPATH
23929 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23930 done
23931 PS1='$ '
23932 PS2='> '
23933 PS4='+ '
23934
23935 # NLS nuisances.
23936 LC_ALL=C
23937 export LC_ALL
23938 LANGUAGE=C
23939 export LANGUAGE
23940
23941 # Required to use basename.
23942 if expr a : '\(a\)' >/dev/null 2>&1 &&
23943 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23944 as_expr=expr
23945 else
23946 as_expr=false
23947 fi
23948
23949 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23950 as_basename=basename
23951 else
23952 as_basename=false
23953 fi
23954
23955
23956 # Name of the executable.
23957 as_me=`$as_basename -- "$0" ||
23958 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23959 X"$0" : 'X\(//\)$' \| \
23960 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23961 $as_echo X/"$0" |
23962 sed '/^.*\/\([^/][^/]*\)\/*$/{
23963 s//\1/
23964 q
23965 }
23966 /^X\/\(\/\/\)$/{
23967 s//\1/
23968 q
23969 }
23970 /^X\/\(\/\).*/{
23971 s//\1/
23972 q
23973 }
23974 s/.*/./; q'`
23975
23976 # CDPATH.
23977 $as_unset CDPATH
23978
23979
23980
23981 as_lineno_1=$LINENO
23982 as_lineno_2=$LINENO
23983 test "x$as_lineno_1" != "x$as_lineno_2" &&
23984 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23985
23986 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23987 # uniformly replaced by the line number. The first 'sed' inserts a
23988 # line-number line after each line using $LINENO; the second 'sed'
23989 # does the real work. The second script uses 'N' to pair each
23990 # line-number line with the line containing $LINENO, and appends
23991 # trailing '-' during substitution so that $LINENO is not a special
23992 # case at line end.
23993 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23994 # scripts with optimization help from Paolo Bonzini. Blame Lee
23995 # E. McMahon (1931-1989) for sed's syntax. :-)
23996 sed -n '
23997 p
23998 /[$]LINENO/=
23999 ' <$as_myself |
24000 sed '
24001 s/[$]LINENO.*/&-/
24002 t lineno
24003 b
24004 :lineno
24005 N
24006 :loop
24007 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24008 t loop
24009 s/-\n.*//
24010 ' >$as_me.lineno &&
24011 chmod +x "$as_me.lineno" ||
24012 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24013 { (exit 1); exit 1; }; }
24014
24015 # Don't try to exec as it changes $[0], causing all sort of problems
24016 # (the dirname of $[0] is not the place where we might find the
24017 # original and so on. Autoconf is especially sensitive to this).
24018 . "./$as_me.lineno"
24019 # Exit status is that of the last command.
24020 exit
24021 }
24022
24023
24024 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24025 as_dirname=dirname
24026 else
24027 as_dirname=false
24028 fi
24029
24030 ECHO_C= ECHO_N= ECHO_T=
24031 case `echo -n x` in
24032 -n*)
24033 case `echo 'x\c'` in
24034 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24035 *) ECHO_C='\c';;
24036 esac;;
24037 *)
24038 ECHO_N='-n';;
24039 esac
24040 if expr a : '\(a\)' >/dev/null 2>&1 &&
24041 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24042 as_expr=expr
24043 else
24044 as_expr=false
24045 fi
24046
24047 rm -f conf$$ conf$$.exe conf$$.file
24048 if test -d conf$$.dir; then
24049 rm -f conf$$.dir/conf$$.file
24050 else
24051 rm -f conf$$.dir
24052 mkdir conf$$.dir 2>/dev/null
24053 fi
24054 if (echo >conf$$.file) 2>/dev/null; then
24055 if ln -s conf$$.file conf$$ 2>/dev/null; then
24056 as_ln_s='ln -s'
24057 # ... but there are two gotchas:
24058 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24059 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24060 # In both cases, we have to default to `cp -p'.
24061 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24062 as_ln_s='cp -p'
24063 elif ln conf$$.file conf$$ 2>/dev/null; then
24064 as_ln_s=ln
24065 else
24066 as_ln_s='cp -p'
24067 fi
24068 else
24069 as_ln_s='cp -p'
24070 fi
24071 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24072 rmdir conf$$.dir 2>/dev/null
24073
24074 if mkdir -p . 2>/dev/null; then
24075 as_mkdir_p=:
24076 else
24077 test -d ./-p && rmdir ./-p
24078 as_mkdir_p=false
24079 fi
24080
24081 if test -x / >/dev/null 2>&1; then
24082 as_test_x='test -x'
24083 else
24084 if ls -dL / >/dev/null 2>&1; then
24085 as_ls_L_option=L
24086 else
24087 as_ls_L_option=
24088 fi
24089 as_test_x='
24090 eval sh -c '\''
24091 if test -d "$1"; then
24092 test -d "$1/.";
24093 else
24094 case $1 in
24095 -*)set "./$1";;
24096 esac;
24097 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24098 ???[sx]*):;;*)false;;esac;fi
24099 '\'' sh
24100 '
24101 fi
24102 as_executable_p=$as_test_x
24103
24104 # Sed expression to map a string onto a valid CPP name.
24105 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24106
24107 # Sed expression to map a string onto a valid variable name.
24108 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24109
24110
24111 exec 6>&1
24112
24113 # Save the log message, to keep $[0] and so on meaningful, and to
24114 # report actual input values of CONFIG_FILES etc. instead of their
24115 # values after options handling.
24116 ac_log="
24117 This file was extended by xf86-video-ati $as_me 6.12.4, which was
24118 generated by GNU Autoconf 2.63. Invocation command line was
24119
24120 CONFIG_FILES = $CONFIG_FILES
24121 CONFIG_HEADERS = $CONFIG_HEADERS
24122 CONFIG_LINKS = $CONFIG_LINKS
24123 CONFIG_COMMANDS = $CONFIG_COMMANDS
24124 $ $0 $@
24125
24126 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24127 "
24128
24129 _ACEOF
24130
24131 case $ac_config_files in *"
24132 "*) set x $ac_config_files; shift; ac_config_files=$*;;
24133 esac
24134
24135 case $ac_config_headers in *"
24136 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
24137 esac
24138
24139
24140 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24141 # Files that config.status was made for.
24142 config_files="$ac_config_files"
24143 config_headers="$ac_config_headers"
24144 config_commands="$ac_config_commands"
24145
24146 _ACEOF
24147
24148 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24149 ac_cs_usage="\
24150 \`$as_me' instantiates files from templates according to the
24151 current configuration.
24152
24153 Usage: $0 [OPTION]... [FILE]...
24154
24155 -h, --help print this help, then exit
24156 -V, --version print version number and configuration settings, then exit
24157 -q, --quiet, --silent
24158 do not print progress messages
24159 -d, --debug don't remove temporary files
24160 --recheck update $as_me by reconfiguring in the same conditions
24161 --file=FILE[:TEMPLATE]
24162 instantiate the configuration file FILE
24163 --header=FILE[:TEMPLATE]
24164 instantiate the configuration header FILE
24165
24166 Configuration files:
24167 $config_files
24168
24169 Configuration headers:
24170 $config_headers
24171
24172 Configuration commands:
24173 $config_commands
24174
24175 Report bugs to <bug-autoconf (at] gnu.org>."
24176
24177 _ACEOF
24178 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24179 ac_cs_version="\\
24180 xf86-video-ati config.status 6.12.4
24181 configured by $0, generated by GNU Autoconf 2.63,
24182 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24183
24184 Copyright (C) 2008 Free Software Foundation, Inc.
24185 This config.status script is free software; the Free Software Foundation
24186 gives unlimited permission to copy, distribute and modify it."
24187
24188 ac_pwd='$ac_pwd'
24189 srcdir='$srcdir'
24190 INSTALL='$INSTALL'
24191 MKDIR_P='$MKDIR_P'
24192 AWK='$AWK'
24193 test -n "\$AWK" || AWK=awk
24194 _ACEOF
24195
24196 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24197 # The default lists apply if the user does not specify any file.
24198 ac_need_defaults=:
24199 while test $# != 0
24200 do
24201 case $1 in
24202 --*=*)
24203 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24204 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24205 ac_shift=:
24206 ;;
24207 *)
24208 ac_option=$1
24209 ac_optarg=$2
24210 ac_shift=shift
24211 ;;
24212 esac
24213
24214 case $ac_option in
24215 # Handling of the options.
24216 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24217 ac_cs_recheck=: ;;
24218 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24219 $as_echo "$ac_cs_version"; exit ;;
24220 --debug | --debu | --deb | --de | --d | -d )
24221 debug=: ;;
24222 --file | --fil | --fi | --f )
24223 $ac_shift
24224 case $ac_optarg in
24225 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24226 esac
24227 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
24228 ac_need_defaults=false;;
24229 --header | --heade | --head | --hea )
24230 $ac_shift
24231 case $ac_optarg in
24232 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24233 esac
24234 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
24235 ac_need_defaults=false;;
24236 --he | --h)
24237 # Conflict between --help and --header
24238 { $as_echo "$as_me: error: ambiguous option: $1
24239 Try \`$0 --help' for more information." >&2
24240 { (exit 1); exit 1; }; };;
24241 --help | --hel | -h )
24242 $as_echo "$ac_cs_usage"; exit ;;
24243 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24244 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24245 ac_cs_silent=: ;;
24246
24247 # This is an error.
24248 -*) { $as_echo "$as_me: error: unrecognized option: $1
24249 Try \`$0 --help' for more information." >&2
24250 { (exit 1); exit 1; }; } ;;
24251
24252 *) ac_config_targets="$ac_config_targets $1"
24253 ac_need_defaults=false ;;
24254
24255 esac
24256 shift
24257 done
24258
24259 ac_configure_extra_args=
24260
24261 if $ac_cs_silent; then
24262 exec 6>/dev/null
24263 ac_configure_extra_args="$ac_configure_extra_args --silent"
24264 fi
24265
24266 _ACEOF
24267 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24268 if \$ac_cs_recheck; then
24269 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24270 shift
24271 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
24272 CONFIG_SHELL='$SHELL'
24273 export CONFIG_SHELL
24274 exec "\$@"
24275 fi
24276
24277 _ACEOF
24278 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24279 exec 5>>config.log
24280 {
24281 echo
24282 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24283 ## Running $as_me. ##
24284 _ASBOX
24285 $as_echo "$ac_log"
24286 } >&5
24287
24288 _ACEOF
24289 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24290 #
24291 # INIT-COMMANDS
24292 #
24293 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24294
24295 _ACEOF
24296
24297 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24298
24299 # Handling of arguments.
24300 for ac_config_target in $ac_config_targets
24301 do
24302 case $ac_config_target in
24303 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
24304 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24305 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24306 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
24307 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
24308
24309 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24310 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24311 { (exit 1); exit 1; }; };;
24312 esac
24313 done
24314
24315
24316 # If the user did not use the arguments to specify the items to instantiate,
24317 # then the envvar interface is used. Set only those that are not.
24318 # We use the long form for the default assignment because of an extremely
24319 # bizarre bug on SunOS 4.1.3.
24320 if $ac_need_defaults; then
24321 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24322 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24323 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24324 fi
24325
24326 # Have a temporary directory for convenience. Make it in the build tree
24327 # simply because there is no reason against having it here, and in addition,
24328 # creating and moving files from /tmp can sometimes cause problems.
24329 # Hook for its removal unless debugging.
24330 # Note that there is a small window in which the directory will not be cleaned:
24331 # after its creation but before its name has been assigned to `$tmp'.
24332 $debug ||
24333 {
24334 tmp=
24335 trap 'exit_status=$?
24336 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24337 ' 0
24338 trap '{ (exit 1); exit 1; }' 1 2 13 15
24339 }
24340 # Create a (secure) tmp directory for tmp files.
24341
24342 {
24343 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24344 test -n "$tmp" && test -d "$tmp"
24345 } ||
24346 {
24347 tmp=./conf$$-$RANDOM
24348 (umask 077 && mkdir "$tmp")
24349 } ||
24350 {
24351 $as_echo "$as_me: cannot create a temporary directory in ." >&2
24352 { (exit 1); exit 1; }
24353 }
24354
24355 # Set up the scripts for CONFIG_FILES section.
24356 # No need to generate them if there are no CONFIG_FILES.
24357 # This happens for instance with `./config.status config.h'.
24358 if test -n "$CONFIG_FILES"; then
24359
24360
24361 ac_cr='
'
24363 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
24364 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
24365 ac_cs_awk_cr='\\r'
24366 else
24367 ac_cs_awk_cr=$ac_cr
24368 fi
24369
24370 echo 'BEGIN {' >"$tmp/subs1.awk" &&
24371 _ACEOF
24372
24373
24374 {
24375 echo "cat >conf$$subs.awk <<_ACEOF" &&
24376 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
24377 echo "_ACEOF"
24378 } >conf$$subs.sh ||
24379 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24380 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24381 { (exit 1); exit 1; }; }
24382 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
24383 ac_delim='%!_!# '
24384 for ac_last_try in false false false false false :; do
24385 . ./conf$$subs.sh ||
24386 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24387 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24388 { (exit 1); exit 1; }; }
24389
24390 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
24391 if test $ac_delim_n = $ac_delim_num; then
24392 break
24393 elif $ac_last_try; then
24394 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24395 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24396 { (exit 1); exit 1; }; }
24397 else
24398 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24399 fi
24400 done
24401 rm -f conf$$subs.sh
24402
24403 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24404 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
24405 _ACEOF
24406 sed -n '
24407 h
24408 s/^/S["/; s/!.*/"]=/
24409 p
24410 g
24411 s/^[^!]*!//
24412 :repl
24413 t repl
24414 s/'"$ac_delim"'$//
24415 t delim
24416 :nl
24417 h
24418 s/\(.\{148\}\).*/\1/
24419 t more1
24420 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
24421 p
24422 n
24423 b repl
24424 :more1
24425 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24426 p
24427 g
24428 s/.\{148\}//
24429 t nl
24430 :delim
24431 h
24432 s/\(.\{148\}\).*/\1/
24433 t more2
24434 s/["\\]/\\&/g; s/^/"/; s/$/"/
24435 p
24436 b
24437 :more2
24438 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24439 p
24440 g
24441 s/.\{148\}//
24442 t delim
24443 ' <conf$$subs.awk | sed '
24444 /^[^""]/{
24445 N
24446 s/\n//
24447 }
24448 ' >>$CONFIG_STATUS || ac_write_fail=1
24449 rm -f conf$$subs.awk
24450 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24451 _ACAWK
24452 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
24453 for (key in S) S_is_set[key] = 1
24454 FS = ""
24455
24456 }
24457 {
24458 line = $ 0
24459 nfields = split(line, field, "@")
24460 substed = 0
24461 len = length(field[1])
24462 for (i = 2; i < nfields; i++) {
24463 key = field[i]
24464 keylen = length(key)
24465 if (S_is_set[key]) {
24466 value = S[key]
24467 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
24468 len += length(value) + length(field[++i])
24469 substed = 1
24470 } else
24471 len += 1 + keylen
24472 }
24473
24474 print line
24475 }
24476
24477 _ACAWK
24478 _ACEOF
24479 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24480 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
24481 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
24482 else
24483 cat
24484 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
24485 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
24486 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
24487 { (exit 1); exit 1; }; }
24488 _ACEOF
24489
24490 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24491 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24492 # trailing colons and then remove the whole line if VPATH becomes empty
24493 # (actually we leave an empty line to preserve line numbers).
24494 if test "x$srcdir" = x.; then
24495 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24496 s/:*\$(srcdir):*/:/
24497 s/:*\${srcdir}:*/:/
24498 s/:*@srcdir@:*/:/
24499 s/^\([^=]*=[ ]*\):*/\1/
24500 s/:*$//
24501 s/^[^=]*=[ ]*$//
24502 }'
24503 fi
24504
24505 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24506 fi # test -n "$CONFIG_FILES"
24507
24508 # Set up the scripts for CONFIG_HEADERS section.
24509 # No need to generate them if there are no CONFIG_HEADERS.
24510 # This happens for instance with `./config.status Makefile'.
24511 if test -n "$CONFIG_HEADERS"; then
24512 cat >"$tmp/defines.awk" <<\_ACAWK ||
24513 BEGIN {
24514 _ACEOF
24515
24516 # Transform confdefs.h into an awk script `defines.awk', embedded as
24517 # here-document in config.status, that substitutes the proper values into
24518 # config.h.in to produce config.h.
24519
24520 # Create a delimiter string that does not exist in confdefs.h, to ease
24521 # handling of long lines.
24522 ac_delim='%!_!# '
24523 for ac_last_try in false false :; do
24524 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
24525 if test -z "$ac_t"; then
24526 break
24527 elif $ac_last_try; then
24528 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
24529 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
24530 { (exit 1); exit 1; }; }
24531 else
24532 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24533 fi
24534 done
24535
24536 # For the awk script, D is an array of macro values keyed by name,
24537 # likewise P contains macro parameters if any. Preserve backslash
24538 # newline sequences.
24539
24540 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24541 sed -n '
24542 s/.\{148\}/&'"$ac_delim"'/g
24543 t rset
24544 :rset
24545 s/^[ ]*#[ ]*define[ ][ ]*/ /
24546 t def
24547 d
24548 :def
24549 s/\\$//
24550 t bsnl
24551 s/["\\]/\\&/g
24552 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24553 D["\1"]=" \3"/p
24554 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
24555 d
24556 :bsnl
24557 s/["\\]/\\&/g
24558 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24559 D["\1"]=" \3\\\\\\n"\\/p
24560 t cont
24561 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
24562 t cont
24563 d
24564 :cont
24565 n
24566 s/.\{148\}/&'"$ac_delim"'/g
24567 t clear
24568 :clear
24569 s/\\$//
24570 t bsnlc
24571 s/["\\]/\\&/g; s/^/"/; s/$/"/p
24572 d
24573 :bsnlc
24574 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
24575 b cont
24576 ' <confdefs.h | sed '
24577 s/'"$ac_delim"'/"\\\
24578 "/g' >>$CONFIG_STATUS || ac_write_fail=1
24579
24580 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24581 for (key in D) D_is_set[key] = 1
24582 FS = ""
24583 }
24584 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
24585 line = \$ 0
24586 split(line, arg, " ")
24587 if (arg[1] == "#") {
24588 defundef = arg[2]
24589 mac1 = arg[3]
24590 } else {
24591 defundef = substr(arg[1], 2)
24592 mac1 = arg[2]
24593 }
24594 split(mac1, mac2, "(") #)
24595 macro = mac2[1]
24596 prefix = substr(line, 1, index(line, defundef) - 1)
24597 if (D_is_set[macro]) {
24598 # Preserve the white space surrounding the "#".
24599 print prefix "define", macro P[macro] D[macro]
24600 next
24601 } else {
24602 # Replace #undef with comments. This is necessary, for example,
24603 # in the case of _POSIX_SOURCE, which is predefined and required
24604 # on some systems where configure will not decide to define it.
24605 if (defundef == "undef") {
24606 print "/*", prefix defundef, macro, "*/"
24607 next
24608 }
24609 }
24610 }
24611 { print }
24612 _ACAWK
24613 _ACEOF
24614 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24615 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
24616 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
24617 { (exit 1); exit 1; }; }
24618 fi # test -n "$CONFIG_HEADERS"
24619
24620
24621 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
24622 shift
24623 for ac_tag
24624 do
24625 case $ac_tag in
24626 :[FHLC]) ac_mode=$ac_tag; continue;;
24627 esac
24628 case $ac_mode$ac_tag in
24629 :[FHL]*:*);;
24630 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
24631 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
24632 { (exit 1); exit 1; }; };;
24633 :[FH]-) ac_tag=-:-;;
24634 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24635 esac
24636 ac_save_IFS=$IFS
24637 IFS=:
24638 set x $ac_tag
24639 IFS=$ac_save_IFS
24640 shift
24641 ac_file=$1
24642 shift
24643
24644 case $ac_mode in
24645 :L) ac_source=$1;;
24646 :[FH])
24647 ac_file_inputs=
24648 for ac_f
24649 do
24650 case $ac_f in
24651 -) ac_f="$tmp/stdin";;
24652 *) # Look for the file first in the build tree, then in the source tree
24653 # (if the path is not absolute). The absolute path cannot be DOS-style,
24654 # because $ac_f cannot contain `:'.
24655 test -f "$ac_f" ||
24656 case $ac_f in
24657 [\\/$]*) false;;
24658 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24659 esac ||
24660 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24661 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24662 { (exit 1); exit 1; }; };;
24663 esac
24664 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
24665 ac_file_inputs="$ac_file_inputs '$ac_f'"
24666 done
24667
24668 # Let's still pretend it is `configure' which instantiates (i.e., don't
24669 # use $as_me), people would be surprised to read:
24670 # /* config.h. Generated by config.status. */
24671 configure_input='Generated from '`
24672 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
24673 `' by configure.'
24674 if test x"$ac_file" != x-; then
24675 configure_input="$ac_file. $configure_input"
24676 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
24677 $as_echo "$as_me: creating $ac_file" >&6;}
24678 fi
24679 # Neutralize special characters interpreted by sed in replacement strings.
24680 case $configure_input in #(
24681 *\&* | *\|* | *\\* )
24682 ac_sed_conf_input=`$as_echo "$configure_input" |
24683 sed 's/[\\\\&|]/\\\\&/g'`;; #(
24684 *) ac_sed_conf_input=$configure_input;;
24685 esac
24686
24687 case $ac_tag in
24688 *:-:* | *:-) cat >"$tmp/stdin" \
24689 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
24690 $as_echo "$as_me: error: could not create $ac_file" >&2;}
24691 { (exit 1); exit 1; }; } ;;
24692 esac
24693 ;;
24694 esac
24695
24696 ac_dir=`$as_dirname -- "$ac_file" ||
24697 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24698 X"$ac_file" : 'X\(//\)[^/]' \| \
24699 X"$ac_file" : 'X\(//\)$' \| \
24700 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24701 $as_echo X"$ac_file" |
24702 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24703 s//\1/
24704 q
24705 }
24706 /^X\(\/\/\)[^/].*/{
24707 s//\1/
24708 q
24709 }
24710 /^X\(\/\/\)$/{
24711 s//\1/
24712 q
24713 }
24714 /^X\(\/\).*/{
24715 s//\1/
24716 q
24717 }
24718 s/.*/./; q'`
24719 { as_dir="$ac_dir"
24720 case $as_dir in #(
24721 -*) as_dir=./$as_dir;;
24722 esac
24723 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24724 as_dirs=
24725 while :; do
24726 case $as_dir in #(
24727 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24728 *) as_qdir=$as_dir;;
24729 esac
24730 as_dirs="'$as_qdir' $as_dirs"
24731 as_dir=`$as_dirname -- "$as_dir" ||
24732 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24733 X"$as_dir" : 'X\(//\)[^/]' \| \
24734 X"$as_dir" : 'X\(//\)$' \| \
24735 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24736 $as_echo X"$as_dir" |
24737 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24738 s//\1/
24739 q
24740 }
24741 /^X\(\/\/\)[^/].*/{
24742 s//\1/
24743 q
24744 }
24745 /^X\(\/\/\)$/{
24746 s//\1/
24747 q
24748 }
24749 /^X\(\/\).*/{
24750 s//\1/
24751 q
24752 }
24753 s/.*/./; q'`
24754 test -d "$as_dir" && break
24755 done
24756 test -z "$as_dirs" || eval "mkdir $as_dirs"
24757 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24758 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
24759 { (exit 1); exit 1; }; }; }
24760 ac_builddir=.
24761
24762 case "$ac_dir" in
24763 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24764 *)
24765 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
24766 # A ".." for each directory in $ac_dir_suffix.
24767 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24768 case $ac_top_builddir_sub in
24769 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24770 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24771 esac ;;
24772 esac
24773 ac_abs_top_builddir=$ac_pwd
24774 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24775 # for backward compatibility:
24776 ac_top_builddir=$ac_top_build_prefix
24777
24778 case $srcdir in
24779 .) # We are building in place.
24780 ac_srcdir=.
24781 ac_top_srcdir=$ac_top_builddir_sub
24782 ac_abs_top_srcdir=$ac_pwd ;;
24783 [\\/]* | ?:[\\/]* ) # Absolute name.
24784 ac_srcdir=$srcdir$ac_dir_suffix;
24785 ac_top_srcdir=$srcdir
24786 ac_abs_top_srcdir=$srcdir ;;
24787 *) # Relative name.
24788 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24789 ac_top_srcdir=$ac_top_build_prefix$srcdir
24790 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24791 esac
24792 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24793
24794
24795 case $ac_mode in
24796 :F)
24797 #
24798 # CONFIG_FILE
24799 #
24800
24801 case $INSTALL in
24802 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24803 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24804 esac
24805 ac_MKDIR_P=$MKDIR_P
24806 case $MKDIR_P in
24807 [\\/$]* | ?:[\\/]* ) ;;
24808 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24809 esac
24810 _ACEOF
24811
24812 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24813 # If the template does not know about datarootdir, expand it.
24814 # FIXME: This hack should be removed a few years after 2.60.
24815 ac_datarootdir_hack=; ac_datarootdir_seen=
24816
24817 ac_sed_dataroot='
24818 /datarootdir/ {
24819 p
24820 q
24821 }
24822 /@datadir@/p
24823 /@docdir@/p
24824 /@infodir@/p
24825 /@localedir@/p
24826 /@mandir@/p
24827 '
24828 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24829 *datarootdir*) ac_datarootdir_seen=yes;;
24830 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24831 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24832 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24833 _ACEOF
24834 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24835 ac_datarootdir_hack='
24836 s&@datadir@&$datadir&g
24837 s&@docdir@&$docdir&g
24838 s&@infodir@&$infodir&g
24839 s&@localedir@&$localedir&g
24840 s&@mandir@&$mandir&g
24841 s&\\\${datarootdir}&$datarootdir&g' ;;
24842 esac
24843 _ACEOF
24844
24845 # Neutralize VPATH when `$srcdir' = `.'.
24846 # Shell code in configure.ac might set extrasub.
24847 # FIXME: do we really want to maintain this feature?
24848 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24849 ac_sed_extra="$ac_vpsub
24850 $extrasub
24851 _ACEOF
24852 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24853 :t
24854 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24855 s|@configure_input@|$ac_sed_conf_input|;t t
24856 s&@top_builddir@&$ac_top_builddir_sub&;t t
24857 s&@top_build_prefix@&$ac_top_build_prefix&;t t
24858 s&@srcdir@&$ac_srcdir&;t t
24859 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24860 s&@top_srcdir@&$ac_top_srcdir&;t t
24861 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24862 s&@builddir@&$ac_builddir&;t t
24863 s&@abs_builddir@&$ac_abs_builddir&;t t
24864 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24865 s&@INSTALL@&$ac_INSTALL&;t t
24866 s&@MKDIR_P@&$ac_MKDIR_P&;t t
24867 $ac_datarootdir_hack
24868 "
24869 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
24870 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
24871 $as_echo "$as_me: error: could not create $ac_file" >&2;}
24872 { (exit 1); exit 1; }; }
24873
24874 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24875 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24876 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24877 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24878 which seems to be undefined. Please make sure it is defined." >&5
24879 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24880 which seems to be undefined. Please make sure it is defined." >&2;}
24881
24882 rm -f "$tmp/stdin"
24883 case $ac_file in
24884 -) cat "$tmp/out" && rm -f "$tmp/out";;
24885 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
24886 esac \
24887 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
24888 $as_echo "$as_me: error: could not create $ac_file" >&2;}
24889 { (exit 1); exit 1; }; }
24890 ;;
24891 :H)
24892 #
24893 # CONFIG_HEADER
24894 #
24895 if test x"$ac_file" != x-; then
24896 {
24897 $as_echo "/* $configure_input */" \
24898 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
24899 } >"$tmp/config.h" \
24900 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
24901 $as_echo "$as_me: error: could not create $ac_file" >&2;}
24902 { (exit 1); exit 1; }; }
24903 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
24904 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24905 $as_echo "$as_me: $ac_file is unchanged" >&6;}
24906 else
24907 rm -f "$ac_file"
24908 mv "$tmp/config.h" "$ac_file" \
24909 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
24910 $as_echo "$as_me: error: could not create $ac_file" >&2;}
24911 { (exit 1); exit 1; }; }
24912 fi
24913 else
24914 $as_echo "/* $configure_input */" \
24915 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
24916 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
24917 $as_echo "$as_me: error: could not create -" >&2;}
24918 { (exit 1); exit 1; }; }
24919 fi
24920 # Compute "$ac_file"'s index in $config_headers.
24921 _am_arg="$ac_file"
24922 _am_stamp_count=1
24923 for _am_header in $config_headers :; do
24924 case $_am_header in
24925 $_am_arg | $_am_arg:* )
24926 break ;;
24927 * )
24928 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24929 esac
24930 done
24931 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24932 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24933 X"$_am_arg" : 'X\(//\)[^/]' \| \
24934 X"$_am_arg" : 'X\(//\)$' \| \
24935 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24936 $as_echo X"$_am_arg" |
24937 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24938 s//\1/
24939 q
24940 }
24941 /^X\(\/\/\)[^/].*/{
24942 s//\1/
24943 q
24944 }
24945 /^X\(\/\/\)$/{
24946 s//\1/
24947 q
24948 }
24949 /^X\(\/\).*/{
24950 s//\1/
24951 q
24952 }
24953 s/.*/./; q'`/stamp-h$_am_stamp_count
24954 ;;
24955
24956 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
24957 $as_echo "$as_me: executing $ac_file commands" >&6;}
24958 ;;
24959 esac
24960
24961
24962 case $ac_file$ac_mode in
24963 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
24964 # Autoconf 2.62 quotes --file arguments for eval, but not when files
24965 # are listed without --file. Let's play safe and only enable the eval
24966 # if we detect the quoting.
24967 case $CONFIG_FILES in
24968 *\'*) eval set x "$CONFIG_FILES" ;;
24969 *) set x $CONFIG_FILES ;;
24970 esac
24971 shift
24972 for mf
24973 do
24974 # Strip MF so we end up with the name of the file.
24975 mf=`echo "$mf" | sed -e 's/:.*$//'`
24976 # Check whether this is an Automake generated Makefile or not.
24977 # We used to match only the files named `Makefile.in', but
24978 # some people rename them; so instead we look at the file content.
24979 # Grep'ing the first line is not enough: some people post-process
24980 # each Makefile.in and add a new line on top of each file to say so.
24981 # Grep'ing the whole file is not good either: AIX grep has a line
24982 # limit of 2048, but all sed's we know have understand at least 4000.
24983 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
24984 dirpart=`$as_dirname -- "$mf" ||
24985 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24986 X"$mf" : 'X\(//\)[^/]' \| \
24987 X"$mf" : 'X\(//\)$' \| \
24988 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24989 $as_echo X"$mf" |
24990 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24991 s//\1/
24992 q
24993 }
24994 /^X\(\/\/\)[^/].*/{
24995 s//\1/
24996 q
24997 }
24998 /^X\(\/\/\)$/{
24999 s//\1/
25000 q
25001 }
25002 /^X\(\/\).*/{
25003 s//\1/
25004 q
25005 }
25006 s/.*/./; q'`
25007 else
25008 continue
25009 fi
25010 # Extract the definition of DEPDIR, am__include, and am__quote
25011 # from the Makefile without running `make'.
25012 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25013 test -z "$DEPDIR" && continue
25014 am__include=`sed -n 's/^am__include = //p' < "$mf"`
25015 test -z "am__include" && continue
25016 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25017 # When using ansi2knr, U may be empty or an underscore; expand it
25018 U=`sed -n 's/^U = //p' < "$mf"`
25019 # Find all dependency output files, they are included files with
25020 # $(DEPDIR) in their names. We invoke sed twice because it is the
25021 # simplest approach to changing $(DEPDIR) to its actual value in the
25022 # expansion.
25023 for file in `sed -n "
25024 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25025 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25026 # Make sure the directory exists.
25027 test -f "$dirpart/$file" && continue
25028 fdir=`$as_dirname -- "$file" ||
25029 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25030 X"$file" : 'X\(//\)[^/]' \| \
25031 X"$file" : 'X\(//\)$' \| \
25032 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
25033 $as_echo X"$file" |
25034 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25035 s//\1/
25036 q
25037 }
25038 /^X\(\/\/\)[^/].*/{
25039 s//\1/
25040 q
25041 }
25042 /^X\(\/\/\)$/{
25043 s//\1/
25044 q
25045 }
25046 /^X\(\/\).*/{
25047 s//\1/
25048 q
25049 }
25050 s/.*/./; q'`
25051 { as_dir=$dirpart/$fdir
25052 case $as_dir in #(
25053 -*) as_dir=./$as_dir;;
25054 esac
25055 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25056 as_dirs=
25057 while :; do
25058 case $as_dir in #(
25059 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25060 *) as_qdir=$as_dir;;
25061 esac
25062 as_dirs="'$as_qdir' $as_dirs"
25063 as_dir=`$as_dirname -- "$as_dir" ||
25064 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25065 X"$as_dir" : 'X\(//\)[^/]' \| \
25066 X"$as_dir" : 'X\(//\)$' \| \
25067 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25068 $as_echo X"$as_dir" |
25069 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25070 s//\1/
25071 q
25072 }
25073 /^X\(\/\/\)[^/].*/{
25074 s//\1/
25075 q
25076 }
25077 /^X\(\/\/\)$/{
25078 s//\1/
25079 q
25080 }
25081 /^X\(\/\).*/{
25082 s//\1/
25083 q
25084 }
25085 s/.*/./; q'`
25086 test -d "$as_dir" && break
25087 done
25088 test -z "$as_dirs" || eval "mkdir $as_dirs"
25089 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25090 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
25091 { (exit 1); exit 1; }; }; }
25092 # echo "creating $dirpart/$file"
25093 echo '# dummy' > "$dirpart/$file"
25094 done
25095 done
25096 }
25097 ;;
25098
25099 esac
25100 done # for ac_tag
25101
25102
25103 { (exit 0); exit 0; }
25104 _ACEOF
25105 chmod +x $CONFIG_STATUS
25106 ac_clean_files=$ac_clean_files_save
25107
25108 test $ac_write_fail = 0 ||
25109 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
25110 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
25111 { (exit 1); exit 1; }; }
25112
25113
25114 # configure is writing to config.log, and then calls config.status.
25115 # config.status does its own redirection, appending to config.log.
25116 # Unfortunately, on DOS this fails, as config.log is still kept open
25117 # by configure, so config.status won't be able to write to it; its
25118 # output is simply discarded. So we exec the FD to /dev/null,
25119 # effectively closing config.log, so it can be properly (re)opened and
25120 # appended to by config.status. When coming back to configure, we
25121 # need to make the FD available again.
25122 if test "$no_create" != yes; then
25123 ac_cs_success=:
25124 ac_config_status_args=
25125 test "$silent" = yes &&
25126 ac_config_status_args="$ac_config_status_args --quiet"
25127 exec 5>/dev/null
25128 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25129 exec 5>>config.log
25130 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25131 # would make configure fail if this is the last instruction.
25132 $ac_cs_success || { (exit 1); exit 1; }
25133 fi
25134 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
25135 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
25136 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
25137 fi
25138
25139