configure revision 1.1.1.9 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.14.2.
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$lt_ECHO in
581 X*--fallback-echo)
582 # Remove one level of quotation (which was required for Make).
583 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
584 ;;
585 esac
586
587 ECHO=${lt_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 <<_LT_EOF
606 $*
607 _LT_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 "$lt_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 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
622 then
623 break
624 fi
625 done
626 fi
627
628 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
629 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
630 test "X$echo_testing_string" = "X$echo_test_string"; then
631 :
632 else
633 # The Solaris, AIX, and Digital Unix default echo programs unquote
634 # backslashes. This makes it impossible to quote backslashes using
635 # echo "$something" | sed 's/\\/\\\\/g'
636 #
637 # So, first we look for a working echo in the user's PATH.
638
639 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
640 for dir in $PATH /usr/ucb; do
641 IFS="$lt_save_ifs"
642 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
643 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
644 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
645 test "X$echo_testing_string" = "X$echo_test_string"; then
646 ECHO="$dir/echo"
647 break
648 fi
649 done
650 IFS="$lt_save_ifs"
651
652 if test "X$ECHO" = Xecho; then
653 # We didn't find a better echo, so look for alternatives.
654 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
655 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
656 test "X$echo_testing_string" = "X$echo_test_string"; then
657 # This shell has a builtin print -r that does the trick.
658 ECHO='print -r'
659 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
660 test "X$CONFIG_SHELL" != X/bin/ksh; then
661 # If we have ksh, try running configure again with it.
662 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
663 export ORIGINAL_CONFIG_SHELL
664 CONFIG_SHELL=/bin/ksh
665 export CONFIG_SHELL
666 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
667 else
668 # Try using printf.
669 ECHO='printf %s\n'
670 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
671 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
672 test "X$echo_testing_string" = "X$echo_test_string"; then
673 # Cool, printf works
674 :
675 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
676 test "X$echo_testing_string" = 'X\t' &&
677 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
678 test "X$echo_testing_string" = "X$echo_test_string"; then
679 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
680 export CONFIG_SHELL
681 SHELL="$CONFIG_SHELL"
682 export SHELL
683 ECHO="$CONFIG_SHELL $0 --fallback-echo"
684 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
685 test "X$echo_testing_string" = 'X\t' &&
686 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
687 test "X$echo_testing_string" = "X$echo_test_string"; then
688 ECHO="$CONFIG_SHELL $0 --fallback-echo"
689 else
690 # maybe with a smaller string...
691 prev=:
692
693 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
694 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
695 then
696 break
697 fi
698 prev="$cmd"
699 done
700
701 if test "$prev" != 'sed 50q "$0"'; then
702 echo_test_string=`eval $prev`
703 export echo_test_string
704 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
705 else
706 # Oops. We lost completely, so just stick with echo.
707 ECHO=echo
708 fi
709 fi
710 fi
711 fi
712 fi
713 fi
714
715 # Copy echo and quote the copy suitably for passing to libtool from
716 # the Makefile, instead of quoting the original, which is used later.
717 lt_ECHO=$ECHO
718 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
719 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
720 fi
721
722
723
724
725 exec 7<&0 </dev/null 6>&1
726
727 # Name of the host.
728 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
729 # so uname gets run too.
730 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
731
732 #
733 # Initializations.
734 #
735 ac_default_prefix=/usr/local
736 ac_clean_files=
737 ac_config_libobj_dir=.
738 LIBOBJS=
739 cross_compiling=no
740 subdirs=
741 MFLAGS=
742 MAKEFLAGS=
743 SHELL=${CONFIG_SHELL-/bin/sh}
744
745 # Identity of this package.
746 PACKAGE_NAME='xf86-video-ati'
747 PACKAGE_TARNAME='xf86-video-ati'
748 PACKAGE_VERSION='6.14.2'
749 PACKAGE_STRING='xf86-video-ati 6.14.2'
750 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
751
752 ac_unique_file="Makefile.am"
753 # Factoring default headers for most tests.
754 ac_includes_default="\
755 #include <stdio.h>
756 #ifdef HAVE_SYS_TYPES_H
757 # include <sys/types.h>
758 #endif
759 #ifdef HAVE_SYS_STAT_H
760 # include <sys/stat.h>
761 #endif
762 #ifdef STDC_HEADERS
763 # include <stdlib.h>
764 # include <stddef.h>
765 #else
766 # ifdef HAVE_STDLIB_H
767 # include <stdlib.h>
768 # endif
769 #endif
770 #ifdef HAVE_STRING_H
771 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
772 # include <memory.h>
773 # endif
774 # include <string.h>
775 #endif
776 #ifdef HAVE_STRINGS_H
777 # include <strings.h>
778 #endif
779 #ifdef HAVE_INTTYPES_H
780 # include <inttypes.h>
781 #endif
782 #ifdef HAVE_STDINT_H
783 # include <stdint.h>
784 #endif
785 #ifdef HAVE_UNISTD_H
786 # include <unistd.h>
787 #endif"
788
789 ac_subst_vars='am__EXEEXT_FALSE
790 am__EXEEXT_TRUE
791 LTLIBOBJS
792 LIBOBJS
793 DRIVER_NAME
794 moduledir
795 XSERVER_LIBPCIACCESS_FALSE
796 XSERVER_LIBPCIACCESS_TRUE
797 PCIACCESS_LIBS
798 PCIACCESS_CFLAGS
799 XF86DRM_MODE_FALSE
800 XF86DRM_MODE_TRUE
801 USE_EXA_FALSE
802 USE_EXA_TRUE
803 LIBUDEV_FALSE
804 LIBUDEV_TRUE
805 DRM_MODE_FALSE
806 DRM_MODE_TRUE
807 LIBUDEV_LIBS
808 LIBUDEV_CFLAGS
809 LIBDRM_RADEON_LIBS
810 LIBDRM_RADEON_CFLAGS
811 DRI_FALSE
812 DRI_TRUE
813 DRI_LIBS
814 DRI_CFLAGS
815 HAVE_XEXTPROTO_71_FALSE
816 HAVE_XEXTPROTO_71_TRUE
817 XEXT_LIBS
818 XEXT_CFLAGS
819 XORG_LIBS
820 XORG_CFLAGS
821 OTOOL64
822 OTOOL
823 LIPO
824 NMEDIT
825 DSYMUTIL
826 lt_ECHO
827 RANLIB
828 AR
829 OBJDUMP
830 LN_S
831 NM
832 ac_ct_DUMPBIN
833 DUMPBIN
834 LD
835 FGREP
836 LIBTOOL
837 MAINT
838 MAINTAINER_MODE_FALSE
839 MAINTAINER_MODE_TRUE
840 am__fastdepCC_FALSE
841 am__fastdepCC_TRUE
842 CCDEPMODE
843 AMDEPBACKSLASH
844 AMDEP_FALSE
845 AMDEP_TRUE
846 am__quote
847 am__include
848 DEPDIR
849 am__untar
850 am__tar
851 AMTAR
852 am__leading_dot
853 SET_MAKE
854 AWK
855 mkdir_p
856 MKDIR_P
857 INSTALL_STRIP_PROGRAM
858 STRIP
859 install_sh
860 MAKEINFO
861 AUTOHEADER
862 AUTOMAKE
863 AUTOCONF
864 ACLOCAL
865 VERSION
866 PACKAGE
867 CYGPATH_W
868 am__isrc
869 AM_BACKSLASH
870 AM_DEFAULT_VERBOSITY
871 MAN_SUBSTS
872 XORG_MAN_PAGE
873 ADMIN_MAN_DIR
874 DRIVER_MAN_DIR
875 MISC_MAN_DIR
876 FILE_MAN_DIR
877 LIB_MAN_DIR
878 APP_MAN_DIR
879 ADMIN_MAN_SUFFIX
880 DRIVER_MAN_SUFFIX
881 MISC_MAN_SUFFIX
882 FILE_MAN_SUFFIX
883 LIB_MAN_SUFFIX
884 APP_MAN_SUFFIX
885 SED
886 host_os
887 host_vendor
888 host_cpu
889 host
890 build_os
891 build_vendor
892 build_cpu
893 build
894 INSTALL_CMD
895 PKG_CONFIG
896 CHANGELOG_CMD
897 CWARNFLAGS
898 EGREP
899 GREP
900 CPP
901 OBJEXT
902 EXEEXT
903 ac_ct_CC
904 CPPFLAGS
905 LDFLAGS
906 CFLAGS
907 CC
908 INSTALL_DATA
909 INSTALL_SCRIPT
910 INSTALL_PROGRAM
911 target_alias
912 host_alias
913 build_alias
914 LIBS
915 ECHO_T
916 ECHO_N
917 ECHO_C
918 DEFS
919 mandir
920 localedir
921 libdir
922 psdir
923 pdfdir
924 dvidir
925 htmldir
926 infodir
927 docdir
928 oldincludedir
929 includedir
930 localstatedir
931 sharedstatedir
932 sysconfdir
933 datadir
934 datarootdir
935 libexecdir
936 sbindir
937 bindir
938 program_transform_name
939 prefix
940 exec_prefix
941 PACKAGE_BUGREPORT
942 PACKAGE_STRING
943 PACKAGE_VERSION
944 PACKAGE_TARNAME
945 PACKAGE_NAME
946 PATH_SEPARATOR
947 SHELL'
948 ac_subst_files=''
949 ac_user_opts='
950 enable_option_checking
951 enable_strict_compilation
952 enable_silent_rules
953 enable_dependency_tracking
954 enable_largefile
955 enable_maintainer_mode
956 enable_static
957 enable_shared
958 with_pic
959 enable_fast_install
960 with_gnu_ld
961 enable_libtool_lock
962 with_xorg_module_dir
963 enable_dri
964 enable_exa
965 enable_kms
966 '
967 ac_precious_vars='build_alias
968 host_alias
969 target_alias
970 CC
971 CFLAGS
972 LDFLAGS
973 LIBS
974 CPPFLAGS
975 CPP
976 PKG_CONFIG
977 XORG_CFLAGS
978 XORG_LIBS
979 XEXT_CFLAGS
980 XEXT_LIBS
981 DRI_CFLAGS
982 DRI_LIBS
983 LIBDRM_RADEON_CFLAGS
984 LIBDRM_RADEON_LIBS
985 LIBUDEV_CFLAGS
986 LIBUDEV_LIBS
987 PCIACCESS_CFLAGS
988 PCIACCESS_LIBS'
989
990
991 # Initialize some variables set by options.
992 ac_init_help=
993 ac_init_version=false
994 ac_unrecognized_opts=
995 ac_unrecognized_sep=
996 # The variables have the same names as the options, with
997 # dashes changed to underlines.
998 cache_file=/dev/null
999 exec_prefix=NONE
1000 no_create=
1001 no_recursion=
1002 prefix=NONE
1003 program_prefix=NONE
1004 program_suffix=NONE
1005 program_transform_name=s,x,x,
1006 silent=
1007 site=
1008 srcdir=
1009 verbose=
1010 x_includes=NONE
1011 x_libraries=NONE
1012
1013 # Installation directory options.
1014 # These are left unexpanded so users can "make install exec_prefix=/foo"
1015 # and all the variables that are supposed to be based on exec_prefix
1016 # by default will actually change.
1017 # Use braces instead of parens because sh, perl, etc. also accept them.
1018 # (The list follows the same order as the GNU Coding Standards.)
1019 bindir='${exec_prefix}/bin'
1020 sbindir='${exec_prefix}/sbin'
1021 libexecdir='${exec_prefix}/libexec'
1022 datarootdir='${prefix}/share'
1023 datadir='${datarootdir}'
1024 sysconfdir='${prefix}/etc'
1025 sharedstatedir='${prefix}/com'
1026 localstatedir='${prefix}/var'
1027 includedir='${prefix}/include'
1028 oldincludedir='/usr/include'
1029 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1030 infodir='${datarootdir}/info'
1031 htmldir='${docdir}'
1032 dvidir='${docdir}'
1033 pdfdir='${docdir}'
1034 psdir='${docdir}'
1035 libdir='${exec_prefix}/lib'
1036 localedir='${datarootdir}/locale'
1037 mandir='${datarootdir}/man'
1038
1039 ac_prev=
1040 ac_dashdash=
1041 for ac_option
1042 do
1043 # If the previous option needs an argument, assign it.
1044 if test -n "$ac_prev"; then
1045 eval $ac_prev=\$ac_option
1046 ac_prev=
1047 continue
1048 fi
1049
1050 case $ac_option in
1051 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1052 *) ac_optarg=yes ;;
1053 esac
1054
1055 # Accept the important Cygnus configure options, so we can diagnose typos.
1056
1057 case $ac_dashdash$ac_option in
1058 --)
1059 ac_dashdash=yes ;;
1060
1061 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1062 ac_prev=bindir ;;
1063 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1064 bindir=$ac_optarg ;;
1065
1066 -build | --build | --buil | --bui | --bu)
1067 ac_prev=build_alias ;;
1068 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1069 build_alias=$ac_optarg ;;
1070
1071 -cache-file | --cache-file | --cache-fil | --cache-fi \
1072 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1073 ac_prev=cache_file ;;
1074 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1075 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1076 cache_file=$ac_optarg ;;
1077
1078 --config-cache | -C)
1079 cache_file=config.cache ;;
1080
1081 -datadir | --datadir | --datadi | --datad)
1082 ac_prev=datadir ;;
1083 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1084 datadir=$ac_optarg ;;
1085
1086 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1087 | --dataroo | --dataro | --datar)
1088 ac_prev=datarootdir ;;
1089 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1090 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1091 datarootdir=$ac_optarg ;;
1092
1093 -disable-* | --disable-*)
1094 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1095 # Reject names that are not valid shell variable names.
1096 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1097 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1098 { (exit 1); exit 1; }; }
1099 ac_useropt_orig=$ac_useropt
1100 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1101 case $ac_user_opts in
1102 *"
1103 "enable_$ac_useropt"
1104 "*) ;;
1105 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1106 ac_unrecognized_sep=', ';;
1107 esac
1108 eval enable_$ac_useropt=no ;;
1109
1110 -docdir | --docdir | --docdi | --doc | --do)
1111 ac_prev=docdir ;;
1112 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1113 docdir=$ac_optarg ;;
1114
1115 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1116 ac_prev=dvidir ;;
1117 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1118 dvidir=$ac_optarg ;;
1119
1120 -enable-* | --enable-*)
1121 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1122 # Reject names that are not valid shell variable names.
1123 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1124 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1125 { (exit 1); exit 1; }; }
1126 ac_useropt_orig=$ac_useropt
1127 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1128 case $ac_user_opts in
1129 *"
1130 "enable_$ac_useropt"
1131 "*) ;;
1132 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1133 ac_unrecognized_sep=', ';;
1134 esac
1135 eval enable_$ac_useropt=\$ac_optarg ;;
1136
1137 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1138 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1139 | --exec | --exe | --ex)
1140 ac_prev=exec_prefix ;;
1141 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1142 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1143 | --exec=* | --exe=* | --ex=*)
1144 exec_prefix=$ac_optarg ;;
1145
1146 -gas | --gas | --ga | --g)
1147 # Obsolete; use --with-gas.
1148 with_gas=yes ;;
1149
1150 -help | --help | --hel | --he | -h)
1151 ac_init_help=long ;;
1152 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1153 ac_init_help=recursive ;;
1154 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1155 ac_init_help=short ;;
1156
1157 -host | --host | --hos | --ho)
1158 ac_prev=host_alias ;;
1159 -host=* | --host=* | --hos=* | --ho=*)
1160 host_alias=$ac_optarg ;;
1161
1162 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1163 ac_prev=htmldir ;;
1164 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1165 | --ht=*)
1166 htmldir=$ac_optarg ;;
1167
1168 -includedir | --includedir | --includedi | --included | --include \
1169 | --includ | --inclu | --incl | --inc)
1170 ac_prev=includedir ;;
1171 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1172 | --includ=* | --inclu=* | --incl=* | --inc=*)
1173 includedir=$ac_optarg ;;
1174
1175 -infodir | --infodir | --infodi | --infod | --info | --inf)
1176 ac_prev=infodir ;;
1177 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1178 infodir=$ac_optarg ;;
1179
1180 -libdir | --libdir | --libdi | --libd)
1181 ac_prev=libdir ;;
1182 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1183 libdir=$ac_optarg ;;
1184
1185 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1186 | --libexe | --libex | --libe)
1187 ac_prev=libexecdir ;;
1188 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1189 | --libexe=* | --libex=* | --libe=*)
1190 libexecdir=$ac_optarg ;;
1191
1192 -localedir | --localedir | --localedi | --localed | --locale)
1193 ac_prev=localedir ;;
1194 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1195 localedir=$ac_optarg ;;
1196
1197 -localstatedir | --localstatedir | --localstatedi | --localstated \
1198 | --localstate | --localstat | --localsta | --localst | --locals)
1199 ac_prev=localstatedir ;;
1200 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1201 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1202 localstatedir=$ac_optarg ;;
1203
1204 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1205 ac_prev=mandir ;;
1206 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1207 mandir=$ac_optarg ;;
1208
1209 -nfp | --nfp | --nf)
1210 # Obsolete; use --without-fp.
1211 with_fp=no ;;
1212
1213 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1214 | --no-cr | --no-c | -n)
1215 no_create=yes ;;
1216
1217 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1218 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1219 no_recursion=yes ;;
1220
1221 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1222 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1223 | --oldin | --oldi | --old | --ol | --o)
1224 ac_prev=oldincludedir ;;
1225 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1226 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1227 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1228 oldincludedir=$ac_optarg ;;
1229
1230 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1231 ac_prev=prefix ;;
1232 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1233 prefix=$ac_optarg ;;
1234
1235 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1236 | --program-pre | --program-pr | --program-p)
1237 ac_prev=program_prefix ;;
1238 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1239 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1240 program_prefix=$ac_optarg ;;
1241
1242 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1243 | --program-suf | --program-su | --program-s)
1244 ac_prev=program_suffix ;;
1245 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1246 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1247 program_suffix=$ac_optarg ;;
1248
1249 -program-transform-name | --program-transform-name \
1250 | --program-transform-nam | --program-transform-na \
1251 | --program-transform-n | --program-transform- \
1252 | --program-transform | --program-transfor \
1253 | --program-transfo | --program-transf \
1254 | --program-trans | --program-tran \
1255 | --progr-tra | --program-tr | --program-t)
1256 ac_prev=program_transform_name ;;
1257 -program-transform-name=* | --program-transform-name=* \
1258 | --program-transform-nam=* | --program-transform-na=* \
1259 | --program-transform-n=* | --program-transform-=* \
1260 | --program-transform=* | --program-transfor=* \
1261 | --program-transfo=* | --program-transf=* \
1262 | --program-trans=* | --program-tran=* \
1263 | --progr-tra=* | --program-tr=* | --program-t=*)
1264 program_transform_name=$ac_optarg ;;
1265
1266 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1267 ac_prev=pdfdir ;;
1268 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1269 pdfdir=$ac_optarg ;;
1270
1271 -psdir | --psdir | --psdi | --psd | --ps)
1272 ac_prev=psdir ;;
1273 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1274 psdir=$ac_optarg ;;
1275
1276 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1277 | -silent | --silent | --silen | --sile | --sil)
1278 silent=yes ;;
1279
1280 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1281 ac_prev=sbindir ;;
1282 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1283 | --sbi=* | --sb=*)
1284 sbindir=$ac_optarg ;;
1285
1286 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1287 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1288 | --sharedst | --shareds | --shared | --share | --shar \
1289 | --sha | --sh)
1290 ac_prev=sharedstatedir ;;
1291 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1292 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1293 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1294 | --sha=* | --sh=*)
1295 sharedstatedir=$ac_optarg ;;
1296
1297 -site | --site | --sit)
1298 ac_prev=site ;;
1299 -site=* | --site=* | --sit=*)
1300 site=$ac_optarg ;;
1301
1302 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1303 ac_prev=srcdir ;;
1304 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1305 srcdir=$ac_optarg ;;
1306
1307 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1308 | --syscon | --sysco | --sysc | --sys | --sy)
1309 ac_prev=sysconfdir ;;
1310 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1311 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1312 sysconfdir=$ac_optarg ;;
1313
1314 -target | --target | --targe | --targ | --tar | --ta | --t)
1315 ac_prev=target_alias ;;
1316 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1317 target_alias=$ac_optarg ;;
1318
1319 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1320 verbose=yes ;;
1321
1322 -version | --version | --versio | --versi | --vers | -V)
1323 ac_init_version=: ;;
1324
1325 -with-* | --with-*)
1326 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1327 # Reject names that are not valid shell variable names.
1328 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1329 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1330 { (exit 1); exit 1; }; }
1331 ac_useropt_orig=$ac_useropt
1332 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1333 case $ac_user_opts in
1334 *"
1335 "with_$ac_useropt"
1336 "*) ;;
1337 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1338 ac_unrecognized_sep=', ';;
1339 esac
1340 eval with_$ac_useropt=\$ac_optarg ;;
1341
1342 -without-* | --without-*)
1343 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1344 # Reject names that are not valid shell variable names.
1345 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1346 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1347 { (exit 1); exit 1; }; }
1348 ac_useropt_orig=$ac_useropt
1349 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1350 case $ac_user_opts in
1351 *"
1352 "with_$ac_useropt"
1353 "*) ;;
1354 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1355 ac_unrecognized_sep=', ';;
1356 esac
1357 eval with_$ac_useropt=no ;;
1358
1359 --x)
1360 # Obsolete; use --with-x.
1361 with_x=yes ;;
1362
1363 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1364 | --x-incl | --x-inc | --x-in | --x-i)
1365 ac_prev=x_includes ;;
1366 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1367 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1368 x_includes=$ac_optarg ;;
1369
1370 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1371 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1372 ac_prev=x_libraries ;;
1373 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1374 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1375 x_libraries=$ac_optarg ;;
1376
1377 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1378 Try \`$0 --help' for more information." >&2
1379 { (exit 1); exit 1; }; }
1380 ;;
1381
1382 *=*)
1383 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1384 # Reject names that are not valid shell variable names.
1385 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1386 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1387 { (exit 1); exit 1; }; }
1388 eval $ac_envvar=\$ac_optarg
1389 export $ac_envvar ;;
1390
1391 *)
1392 # FIXME: should be removed in autoconf 3.0.
1393 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1394 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1395 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1396 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1397 ;;
1398
1399 esac
1400 done
1401
1402 if test -n "$ac_prev"; then
1403 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1404 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1405 { (exit 1); exit 1; }; }
1406 fi
1407
1408 if test -n "$ac_unrecognized_opts"; then
1409 case $enable_option_checking in
1410 no) ;;
1411 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1412 { (exit 1); exit 1; }; } ;;
1413 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1414 esac
1415 fi
1416
1417 # Check all directory arguments for consistency.
1418 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1419 datadir sysconfdir sharedstatedir localstatedir includedir \
1420 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1421 libdir localedir mandir
1422 do
1423 eval ac_val=\$$ac_var
1424 # Remove trailing slashes.
1425 case $ac_val in
1426 */ )
1427 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1428 eval $ac_var=\$ac_val;;
1429 esac
1430 # Be sure to have absolute directory names.
1431 case $ac_val in
1432 [\\/$]* | ?:[\\/]* ) continue;;
1433 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1434 esac
1435 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1436 { (exit 1); exit 1; }; }
1437 done
1438
1439 # There might be people who depend on the old broken behavior: `$host'
1440 # used to hold the argument of --host etc.
1441 # FIXME: To remove some day.
1442 build=$build_alias
1443 host=$host_alias
1444 target=$target_alias
1445
1446 # FIXME: To remove some day.
1447 if test "x$host_alias" != x; then
1448 if test "x$build_alias" = x; then
1449 cross_compiling=maybe
1450 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1451 If a cross compiler is detected then cross compile mode will be used." >&2
1452 elif test "x$build_alias" != "x$host_alias"; then
1453 cross_compiling=yes
1454 fi
1455 fi
1456
1457 ac_tool_prefix=
1458 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1459
1460 test "$silent" = yes && exec 6>/dev/null
1461
1462
1463 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1464 ac_ls_di=`ls -di .` &&
1465 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1466 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1467 { (exit 1); exit 1; }; }
1468 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1469 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1470 { (exit 1); exit 1; }; }
1471
1472
1473 # Find the source files, if location was not specified.
1474 if test -z "$srcdir"; then
1475 ac_srcdir_defaulted=yes
1476 # Try the directory containing this script, then the parent directory.
1477 ac_confdir=`$as_dirname -- "$as_myself" ||
1478 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1479 X"$as_myself" : 'X\(//\)[^/]' \| \
1480 X"$as_myself" : 'X\(//\)$' \| \
1481 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1482 $as_echo X"$as_myself" |
1483 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1484 s//\1/
1485 q
1486 }
1487 /^X\(\/\/\)[^/].*/{
1488 s//\1/
1489 q
1490 }
1491 /^X\(\/\/\)$/{
1492 s//\1/
1493 q
1494 }
1495 /^X\(\/\).*/{
1496 s//\1/
1497 q
1498 }
1499 s/.*/./; q'`
1500 srcdir=$ac_confdir
1501 if test ! -r "$srcdir/$ac_unique_file"; then
1502 srcdir=..
1503 fi
1504 else
1505 ac_srcdir_defaulted=no
1506 fi
1507 if test ! -r "$srcdir/$ac_unique_file"; then
1508 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1509 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1510 { (exit 1); exit 1; }; }
1511 fi
1512 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1513 ac_abs_confdir=`(
1514 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1515 { (exit 1); exit 1; }; }
1516 pwd)`
1517 # When building in place, set srcdir=.
1518 if test "$ac_abs_confdir" = "$ac_pwd"; then
1519 srcdir=.
1520 fi
1521 # Remove unnecessary trailing slashes from srcdir.
1522 # Double slashes in file names in object file debugging info
1523 # mess up M-x gdb in Emacs.
1524 case $srcdir in
1525 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1526 esac
1527 for ac_var in $ac_precious_vars; do
1528 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1529 eval ac_env_${ac_var}_value=\$${ac_var}
1530 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1531 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1532 done
1533
1534 #
1535 # Report the --help message.
1536 #
1537 if test "$ac_init_help" = "long"; then
1538 # Omit some internal or obsolete options to make the list less imposing.
1539 # This message is too long to be a string in the A/UX 3.1 sh.
1540 cat <<_ACEOF
1541 \`configure' configures xf86-video-ati 6.14.2 to adapt to many kinds of systems.
1542
1543 Usage: $0 [OPTION]... [VAR=VALUE]...
1544
1545 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1546 VAR=VALUE. See below for descriptions of some of the useful variables.
1547
1548 Defaults for the options are specified in brackets.
1549
1550 Configuration:
1551 -h, --help display this help and exit
1552 --help=short display options specific to this package
1553 --help=recursive display the short help of all the included packages
1554 -V, --version display version information and exit
1555 -q, --quiet, --silent do not print \`checking...' messages
1556 --cache-file=FILE cache test results in FILE [disabled]
1557 -C, --config-cache alias for \`--cache-file=config.cache'
1558 -n, --no-create do not create output files
1559 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1560
1561 Installation directories:
1562 --prefix=PREFIX install architecture-independent files in PREFIX
1563 [$ac_default_prefix]
1564 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1565 [PREFIX]
1566
1567 By default, \`make install' will install all the files in
1568 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1569 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1570 for instance \`--prefix=\$HOME'.
1571
1572 For better control, use the options below.
1573
1574 Fine tuning of the installation directories:
1575 --bindir=DIR user executables [EPREFIX/bin]
1576 --sbindir=DIR system admin executables [EPREFIX/sbin]
1577 --libexecdir=DIR program executables [EPREFIX/libexec]
1578 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1579 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1580 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1581 --libdir=DIR object code libraries [EPREFIX/lib]
1582 --includedir=DIR C header files [PREFIX/include]
1583 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1584 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1585 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1586 --infodir=DIR info documentation [DATAROOTDIR/info]
1587 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1588 --mandir=DIR man documentation [DATAROOTDIR/man]
1589 --docdir=DIR documentation root [DATAROOTDIR/doc/xf86-video-ati]
1590 --htmldir=DIR html documentation [DOCDIR]
1591 --dvidir=DIR dvi documentation [DOCDIR]
1592 --pdfdir=DIR pdf documentation [DOCDIR]
1593 --psdir=DIR ps documentation [DOCDIR]
1594 _ACEOF
1595
1596 cat <<\_ACEOF
1597
1598 Program names:
1599 --program-prefix=PREFIX prepend PREFIX to installed program names
1600 --program-suffix=SUFFIX append SUFFIX to installed program names
1601 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1602
1603 System types:
1604 --build=BUILD configure for building on BUILD [guessed]
1605 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1606 _ACEOF
1607 fi
1608
1609 if test -n "$ac_init_help"; then
1610 case $ac_init_help in
1611 short | recursive ) echo "Configuration of xf86-video-ati 6.14.2:";;
1612 esac
1613 cat <<\_ACEOF
1614
1615 Optional Features:
1616 --disable-option-checking ignore unrecognized --enable/--with options
1617 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1618 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1619 --enable-strict-compilation
1620 Enable all warnings from compiler and make them
1621 errors (default: disabled)
1622 --enable-silent-rules less verbose build output (undo: `make V=1')
1623 --disable-silent-rules verbose build output (undo: `make V=0')
1624 --disable-dependency-tracking speeds up one-time build
1625 --enable-dependency-tracking do not reject slow dependency extractors
1626 --disable-largefile omit support for large files
1627 --enable-maintainer-mode enable make rules and dependencies not useful
1628 (and sometimes confusing) to the casual installer
1629 --enable-static[=PKGS] build static libraries [default=no]
1630 --enable-shared[=PKGS] build shared libraries [default=yes]
1631 --enable-fast-install[=PKGS]
1632 optimize for fast installation [default=yes]
1633 --disable-libtool-lock avoid locking (might break parallel builds)
1634 --disable-dri Disable DRI support [default=auto]
1635 --disable-exa Disable EXA support [default=enabled]
1636 --disable-kms Disable KMS support [default=enabled]
1637
1638 Optional Packages:
1639 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1640 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1641 --with-pic try to use only PIC/non-PIC objects [default=use
1642 both]
1643 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1644 --with-xorg-module-dir=DIR
1645 Default xorg module directory
1646 [default=$libdir/xorg/modules]
1647
1648 Some influential environment variables:
1649 CC C compiler command
1650 CFLAGS C compiler flags
1651 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1652 nonstandard directory <lib dir>
1653 LIBS libraries to pass to the linker, e.g. -l<library>
1654 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1655 you have headers in a nonstandard directory <include dir>
1656 CPP C preprocessor
1657 PKG_CONFIG path to pkg-config utility
1658 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1659 XORG_LIBS linker flags for XORG, overriding pkg-config
1660 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1661 XEXT_LIBS linker flags for XEXT, overriding pkg-config
1662 DRI_CFLAGS C compiler flags for DRI, overriding pkg-config
1663 DRI_LIBS linker flags for DRI, overriding pkg-config
1664 LIBDRM_RADEON_CFLAGS
1665 C compiler flags for LIBDRM_RADEON, overriding pkg-config
1666 LIBDRM_RADEON_LIBS
1667 linker flags for LIBDRM_RADEON, overriding pkg-config
1668 LIBUDEV_CFLAGS
1669 C compiler flags for LIBUDEV, overriding pkg-config
1670 LIBUDEV_LIBS
1671 linker flags for LIBUDEV, overriding pkg-config
1672 PCIACCESS_CFLAGS
1673 C compiler flags for PCIACCESS, overriding pkg-config
1674 PCIACCESS_LIBS
1675 linker flags for PCIACCESS, overriding pkg-config
1676
1677 Use these variables to override the choices made by `configure' or to help
1678 it to find libraries and programs with nonstandard names/locations.
1679
1680 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1681 _ACEOF
1682 ac_status=$?
1683 fi
1684
1685 if test "$ac_init_help" = "recursive"; then
1686 # If there are subdirs, report their specific --help.
1687 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1688 test -d "$ac_dir" ||
1689 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1690 continue
1691 ac_builddir=.
1692
1693 case "$ac_dir" in
1694 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1695 *)
1696 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1697 # A ".." for each directory in $ac_dir_suffix.
1698 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1699 case $ac_top_builddir_sub in
1700 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1701 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1702 esac ;;
1703 esac
1704 ac_abs_top_builddir=$ac_pwd
1705 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1706 # for backward compatibility:
1707 ac_top_builddir=$ac_top_build_prefix
1708
1709 case $srcdir in
1710 .) # We are building in place.
1711 ac_srcdir=.
1712 ac_top_srcdir=$ac_top_builddir_sub
1713 ac_abs_top_srcdir=$ac_pwd ;;
1714 [\\/]* | ?:[\\/]* ) # Absolute name.
1715 ac_srcdir=$srcdir$ac_dir_suffix;
1716 ac_top_srcdir=$srcdir
1717 ac_abs_top_srcdir=$srcdir ;;
1718 *) # Relative name.
1719 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1720 ac_top_srcdir=$ac_top_build_prefix$srcdir
1721 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1722 esac
1723 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1724
1725 cd "$ac_dir" || { ac_status=$?; continue; }
1726 # Check for guested configure.
1727 if test -f "$ac_srcdir/configure.gnu"; then
1728 echo &&
1729 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1730 elif test -f "$ac_srcdir/configure"; then
1731 echo &&
1732 $SHELL "$ac_srcdir/configure" --help=recursive
1733 else
1734 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1735 fi || ac_status=$?
1736 cd "$ac_pwd" || { ac_status=$?; break; }
1737 done
1738 fi
1739
1740 test -n "$ac_init_help" && exit $ac_status
1741 if $ac_init_version; then
1742 cat <<\_ACEOF
1743 xf86-video-ati configure 6.14.2
1744 generated by GNU Autoconf 2.63
1745
1746 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1747 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1748 This configure script is free software; the Free Software Foundation
1749 gives unlimited permission to copy, distribute and modify it.
1750 _ACEOF
1751 exit
1752 fi
1753 cat >config.log <<_ACEOF
1754 This file contains any messages produced by compilers while
1755 running configure, to aid debugging if configure makes a mistake.
1756
1757 It was created by xf86-video-ati $as_me 6.14.2, which was
1758 generated by GNU Autoconf 2.63. Invocation command line was
1759
1760 $ $0 $@
1761
1762 _ACEOF
1763 exec 5>>config.log
1764 {
1765 cat <<_ASUNAME
1766 ## --------- ##
1767 ## Platform. ##
1768 ## --------- ##
1769
1770 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1771 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1772 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1773 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1774 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1775
1776 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1777 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1778
1779 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1780 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1781 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1782 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1783 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1784 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1785 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1786
1787 _ASUNAME
1788
1789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1790 for as_dir in $PATH
1791 do
1792 IFS=$as_save_IFS
1793 test -z "$as_dir" && as_dir=.
1794 $as_echo "PATH: $as_dir"
1795 done
1796 IFS=$as_save_IFS
1797
1798 } >&5
1799
1800 cat >&5 <<_ACEOF
1801
1802
1803 ## ----------- ##
1804 ## Core tests. ##
1805 ## ----------- ##
1806
1807 _ACEOF
1808
1809
1810 # Keep a trace of the command line.
1811 # Strip out --no-create and --no-recursion so they do not pile up.
1812 # Strip out --silent because we don't want to record it for future runs.
1813 # Also quote any args containing shell meta-characters.
1814 # Make two passes to allow for proper duplicate-argument suppression.
1815 ac_configure_args=
1816 ac_configure_args0=
1817 ac_configure_args1=
1818 ac_must_keep_next=false
1819 for ac_pass in 1 2
1820 do
1821 for ac_arg
1822 do
1823 case $ac_arg in
1824 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1825 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1826 | -silent | --silent | --silen | --sile | --sil)
1827 continue ;;
1828 *\'*)
1829 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1830 esac
1831 case $ac_pass in
1832 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1833 2)
1834 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1835 if test $ac_must_keep_next = true; then
1836 ac_must_keep_next=false # Got value, back to normal.
1837 else
1838 case $ac_arg in
1839 *=* | --config-cache | -C | -disable-* | --disable-* \
1840 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1841 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1842 | -with-* | --with-* | -without-* | --without-* | --x)
1843 case "$ac_configure_args0 " in
1844 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1845 esac
1846 ;;
1847 -* ) ac_must_keep_next=true ;;
1848 esac
1849 fi
1850 ac_configure_args="$ac_configure_args '$ac_arg'"
1851 ;;
1852 esac
1853 done
1854 done
1855 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1856 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1857
1858 # When interrupted or exit'd, cleanup temporary files, and complete
1859 # config.log. We remove comments because anyway the quotes in there
1860 # would cause problems or look ugly.
1861 # WARNING: Use '\'' to represent an apostrophe within the trap.
1862 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1863 trap 'exit_status=$?
1864 # Save into config.log some information that might help in debugging.
1865 {
1866 echo
1867
1868 cat <<\_ASBOX
1869 ## ---------------- ##
1870 ## Cache variables. ##
1871 ## ---------------- ##
1872 _ASBOX
1873 echo
1874 # The following way of writing the cache mishandles newlines in values,
1875 (
1876 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1877 eval ac_val=\$$ac_var
1878 case $ac_val in #(
1879 *${as_nl}*)
1880 case $ac_var in #(
1881 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1882 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1883 esac
1884 case $ac_var in #(
1885 _ | IFS | as_nl) ;; #(
1886 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1887 *) $as_unset $ac_var ;;
1888 esac ;;
1889 esac
1890 done
1891 (set) 2>&1 |
1892 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1893 *${as_nl}ac_space=\ *)
1894 sed -n \
1895 "s/'\''/'\''\\\\'\'''\''/g;
1896 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1897 ;; #(
1898 *)
1899 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1900 ;;
1901 esac |
1902 sort
1903 )
1904 echo
1905
1906 cat <<\_ASBOX
1907 ## ----------------- ##
1908 ## Output variables. ##
1909 ## ----------------- ##
1910 _ASBOX
1911 echo
1912 for ac_var in $ac_subst_vars
1913 do
1914 eval ac_val=\$$ac_var
1915 case $ac_val in
1916 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1917 esac
1918 $as_echo "$ac_var='\''$ac_val'\''"
1919 done | sort
1920 echo
1921
1922 if test -n "$ac_subst_files"; then
1923 cat <<\_ASBOX
1924 ## ------------------- ##
1925 ## File substitutions. ##
1926 ## ------------------- ##
1927 _ASBOX
1928 echo
1929 for ac_var in $ac_subst_files
1930 do
1931 eval ac_val=\$$ac_var
1932 case $ac_val in
1933 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1934 esac
1935 $as_echo "$ac_var='\''$ac_val'\''"
1936 done | sort
1937 echo
1938 fi
1939
1940 if test -s confdefs.h; then
1941 cat <<\_ASBOX
1942 ## ----------- ##
1943 ## confdefs.h. ##
1944 ## ----------- ##
1945 _ASBOX
1946 echo
1947 cat confdefs.h
1948 echo
1949 fi
1950 test "$ac_signal" != 0 &&
1951 $as_echo "$as_me: caught signal $ac_signal"
1952 $as_echo "$as_me: exit $exit_status"
1953 } >&5
1954 rm -f core *.core core.conftest.* &&
1955 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1956 exit $exit_status
1957 ' 0
1958 for ac_signal in 1 2 13 15; do
1959 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1960 done
1961 ac_signal=0
1962
1963 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1964 rm -f -r conftest* confdefs.h
1965
1966 # Predefined preprocessor variables.
1967
1968 cat >>confdefs.h <<_ACEOF
1969 #define PACKAGE_NAME "$PACKAGE_NAME"
1970 _ACEOF
1971
1972
1973 cat >>confdefs.h <<_ACEOF
1974 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1975 _ACEOF
1976
1977
1978 cat >>confdefs.h <<_ACEOF
1979 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1980 _ACEOF
1981
1982
1983 cat >>confdefs.h <<_ACEOF
1984 #define PACKAGE_STRING "$PACKAGE_STRING"
1985 _ACEOF
1986
1987
1988 cat >>confdefs.h <<_ACEOF
1989 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1990 _ACEOF
1991
1992
1993 # Let the site file select an alternate cache file if it wants to.
1994 # Prefer an explicitly selected file to automatically selected ones.
1995 ac_site_file1=NONE
1996 ac_site_file2=NONE
1997 if test -n "$CONFIG_SITE"; then
1998 ac_site_file1=$CONFIG_SITE
1999 elif test "x$prefix" != xNONE; then
2000 ac_site_file1=$prefix/share/config.site
2001 ac_site_file2=$prefix/etc/config.site
2002 else
2003 ac_site_file1=$ac_default_prefix/share/config.site
2004 ac_site_file2=$ac_default_prefix/etc/config.site
2005 fi
2006 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2007 do
2008 test "x$ac_site_file" = xNONE && continue
2009 if test -r "$ac_site_file"; then
2010 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2011 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2012 sed 's/^/| /' "$ac_site_file" >&5
2013 . "$ac_site_file"
2014 fi
2015 done
2016
2017 if test -r "$cache_file"; then
2018 # Some versions of bash will fail to source /dev/null (special
2019 # files actually), so we avoid doing that.
2020 if test -f "$cache_file"; then
2021 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2022 $as_echo "$as_me: loading cache $cache_file" >&6;}
2023 case $cache_file in
2024 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2025 *) . "./$cache_file";;
2026 esac
2027 fi
2028 else
2029 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2030 $as_echo "$as_me: creating cache $cache_file" >&6;}
2031 >$cache_file
2032 fi
2033
2034 # Check that the precious variables saved in the cache have kept the same
2035 # value.
2036 ac_cache_corrupted=false
2037 for ac_var in $ac_precious_vars; do
2038 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2039 eval ac_new_set=\$ac_env_${ac_var}_set
2040 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2041 eval ac_new_val=\$ac_env_${ac_var}_value
2042 case $ac_old_set,$ac_new_set in
2043 set,)
2044 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2045 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2046 ac_cache_corrupted=: ;;
2047 ,set)
2048 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2049 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2050 ac_cache_corrupted=: ;;
2051 ,);;
2052 *)
2053 if test "x$ac_old_val" != "x$ac_new_val"; then
2054 # differences in whitespace do not lead to failure.
2055 ac_old_val_w=`echo x $ac_old_val`
2056 ac_new_val_w=`echo x $ac_new_val`
2057 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2058 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2059 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2060 ac_cache_corrupted=:
2061 else
2062 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2063 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2064 eval $ac_var=\$ac_old_val
2065 fi
2066 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2067 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2068 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2069 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2070 fi;;
2071 esac
2072 # Pass precious variables to config.status.
2073 if test "$ac_new_set" = set; then
2074 case $ac_new_val in
2075 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2076 *) ac_arg=$ac_var=$ac_new_val ;;
2077 esac
2078 case " $ac_configure_args " in
2079 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2080 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2081 esac
2082 fi
2083 done
2084 if $ac_cache_corrupted; then
2085 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2086 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2087 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2088 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2089 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2090 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2091 { (exit 1); exit 1; }; }
2092 fi
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118 ac_ext=c
2119 ac_cpp='$CPP $CPPFLAGS'
2120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2123
2124
2125
2126
2127 ac_config_headers="$ac_config_headers config.h"
2128
2129
2130 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142 ac_aux_dir=
2143 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2144 if test -f "$ac_dir/install-sh"; then
2145 ac_aux_dir=$ac_dir
2146 ac_install_sh="$ac_aux_dir/install-sh -c"
2147 break
2148 elif test -f "$ac_dir/install.sh"; then
2149 ac_aux_dir=$ac_dir
2150 ac_install_sh="$ac_aux_dir/install.sh -c"
2151 break
2152 elif test -f "$ac_dir/shtool"; then
2153 ac_aux_dir=$ac_dir
2154 ac_install_sh="$ac_aux_dir/shtool install -c"
2155 break
2156 fi
2157 done
2158 if test -z "$ac_aux_dir"; then
2159 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2160 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2161 { (exit 1); exit 1; }; }
2162 fi
2163
2164 # These three variables are undocumented and unsupported,
2165 # and are intended to be withdrawn in a future Autoconf release.
2166 # They can cause serious problems if a builder's source tree is in a directory
2167 # whose full name contains unusual characters.
2168 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2169 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2170 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2171
2172
2173 # Find a good install program. We prefer a C program (faster),
2174 # so one script is as good as another. But avoid the broken or
2175 # incompatible versions:
2176 # SysV /etc/install, /usr/sbin/install
2177 # SunOS /usr/etc/install
2178 # IRIX /sbin/install
2179 # AIX /bin/install
2180 # AmigaOS /C/install, which installs bootblocks on floppy discs
2181 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2182 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2183 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2184 # OS/2's system install, which has a completely different semantic
2185 # ./install, which can be erroneously created by make from ./install.sh.
2186 # Reject install programs that cannot install multiple files.
2187 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2188 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2189 if test -z "$INSTALL"; then
2190 if test "${ac_cv_path_install+set}" = set; then
2191 $as_echo_n "(cached) " >&6
2192 else
2193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2194 for as_dir in $PATH
2195 do
2196 IFS=$as_save_IFS
2197 test -z "$as_dir" && as_dir=.
2198 # Account for people who put trailing slashes in PATH elements.
2199 case $as_dir/ in
2200 ./ | .// | /cC/* | \
2201 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2202 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2203 /usr/ucb/* ) ;;
2204 *)
2205 # OSF1 and SCO ODT 3.0 have their own names for install.
2206 # Don't use installbsd from OSF since it installs stuff as root
2207 # by default.
2208 for ac_prog in ginstall scoinst install; do
2209 for ac_exec_ext in '' $ac_executable_extensions; do
2210 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2211 if test $ac_prog = install &&
2212 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2213 # AIX install. It has an incompatible calling convention.
2214 :
2215 elif test $ac_prog = install &&
2216 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2217 # program-specific install script used by HP pwplus--don't use.
2218 :
2219 else
2220 rm -rf conftest.one conftest.two conftest.dir
2221 echo one > conftest.one
2222 echo two > conftest.two
2223 mkdir conftest.dir
2224 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2225 test -s conftest.one && test -s conftest.two &&
2226 test -s conftest.dir/conftest.one &&
2227 test -s conftest.dir/conftest.two
2228 then
2229 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2230 break 3
2231 fi
2232 fi
2233 fi
2234 done
2235 done
2236 ;;
2237 esac
2238
2239 done
2240 IFS=$as_save_IFS
2241
2242 rm -rf conftest.one conftest.two conftest.dir
2243
2244 fi
2245 if test "${ac_cv_path_install+set}" = set; then
2246 INSTALL=$ac_cv_path_install
2247 else
2248 # As a last resort, use the slow shell script. Don't cache a
2249 # value for INSTALL within a source directory, because that will
2250 # break other packages using the cache if that directory is
2251 # removed, or if the value is a relative name.
2252 INSTALL=$ac_install_sh
2253 fi
2254 fi
2255 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2256 $as_echo "$INSTALL" >&6; }
2257
2258 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2259 # It thinks the first close brace ends the variable substitution.
2260 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2261
2262 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2263
2264 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2265
2266 ac_ext=c
2267 ac_cpp='$CPP $CPPFLAGS'
2268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2271 if test -n "$ac_tool_prefix"; then
2272 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2273 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2274 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2275 $as_echo_n "checking for $ac_word... " >&6; }
2276 if test "${ac_cv_prog_CC+set}" = set; then
2277 $as_echo_n "(cached) " >&6
2278 else
2279 if test -n "$CC"; then
2280 ac_cv_prog_CC="$CC" # Let the user override the test.
2281 else
2282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2283 for as_dir in $PATH
2284 do
2285 IFS=$as_save_IFS
2286 test -z "$as_dir" && as_dir=.
2287 for ac_exec_ext in '' $ac_executable_extensions; do
2288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2289 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2290 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2291 break 2
2292 fi
2293 done
2294 done
2295 IFS=$as_save_IFS
2296
2297 fi
2298 fi
2299 CC=$ac_cv_prog_CC
2300 if test -n "$CC"; then
2301 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2302 $as_echo "$CC" >&6; }
2303 else
2304 { $as_echo "$as_me:$LINENO: result: no" >&5
2305 $as_echo "no" >&6; }
2306 fi
2307
2308
2309 fi
2310 if test -z "$ac_cv_prog_CC"; then
2311 ac_ct_CC=$CC
2312 # Extract the first word of "gcc", so it can be a program name with args.
2313 set dummy gcc; ac_word=$2
2314 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2315 $as_echo_n "checking for $ac_word... " >&6; }
2316 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2317 $as_echo_n "(cached) " >&6
2318 else
2319 if test -n "$ac_ct_CC"; then
2320 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2321 else
2322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2323 for as_dir in $PATH
2324 do
2325 IFS=$as_save_IFS
2326 test -z "$as_dir" && as_dir=.
2327 for ac_exec_ext in '' $ac_executable_extensions; do
2328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2329 ac_cv_prog_ac_ct_CC="gcc"
2330 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2331 break 2
2332 fi
2333 done
2334 done
2335 IFS=$as_save_IFS
2336
2337 fi
2338 fi
2339 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2340 if test -n "$ac_ct_CC"; then
2341 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2342 $as_echo "$ac_ct_CC" >&6; }
2343 else
2344 { $as_echo "$as_me:$LINENO: result: no" >&5
2345 $as_echo "no" >&6; }
2346 fi
2347
2348 if test "x$ac_ct_CC" = x; then
2349 CC=""
2350 else
2351 case $cross_compiling:$ac_tool_warned in
2352 yes:)
2353 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2354 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2355 ac_tool_warned=yes ;;
2356 esac
2357 CC=$ac_ct_CC
2358 fi
2359 else
2360 CC="$ac_cv_prog_CC"
2361 fi
2362
2363 if test -z "$CC"; then
2364 if test -n "$ac_tool_prefix"; then
2365 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2366 set dummy ${ac_tool_prefix}cc; ac_word=$2
2367 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2368 $as_echo_n "checking for $ac_word... " >&6; }
2369 if test "${ac_cv_prog_CC+set}" = set; then
2370 $as_echo_n "(cached) " >&6
2371 else
2372 if test -n "$CC"; then
2373 ac_cv_prog_CC="$CC" # Let the user override the test.
2374 else
2375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2376 for as_dir in $PATH
2377 do
2378 IFS=$as_save_IFS
2379 test -z "$as_dir" && as_dir=.
2380 for ac_exec_ext in '' $ac_executable_extensions; do
2381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2382 ac_cv_prog_CC="${ac_tool_prefix}cc"
2383 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2384 break 2
2385 fi
2386 done
2387 done
2388 IFS=$as_save_IFS
2389
2390 fi
2391 fi
2392 CC=$ac_cv_prog_CC
2393 if test -n "$CC"; then
2394 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2395 $as_echo "$CC" >&6; }
2396 else
2397 { $as_echo "$as_me:$LINENO: result: no" >&5
2398 $as_echo "no" >&6; }
2399 fi
2400
2401
2402 fi
2403 fi
2404 if test -z "$CC"; then
2405 # Extract the first word of "cc", so it can be a program name with args.
2406 set dummy cc; ac_word=$2
2407 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2408 $as_echo_n "checking for $ac_word... " >&6; }
2409 if test "${ac_cv_prog_CC+set}" = set; then
2410 $as_echo_n "(cached) " >&6
2411 else
2412 if test -n "$CC"; then
2413 ac_cv_prog_CC="$CC" # Let the user override the test.
2414 else
2415 ac_prog_rejected=no
2416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2417 for as_dir in $PATH
2418 do
2419 IFS=$as_save_IFS
2420 test -z "$as_dir" && as_dir=.
2421 for ac_exec_ext in '' $ac_executable_extensions; do
2422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2423 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2424 ac_prog_rejected=yes
2425 continue
2426 fi
2427 ac_cv_prog_CC="cc"
2428 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2429 break 2
2430 fi
2431 done
2432 done
2433 IFS=$as_save_IFS
2434
2435 if test $ac_prog_rejected = yes; then
2436 # We found a bogon in the path, so make sure we never use it.
2437 set dummy $ac_cv_prog_CC
2438 shift
2439 if test $# != 0; then
2440 # We chose a different compiler from the bogus one.
2441 # However, it has the same basename, so the bogon will be chosen
2442 # first if we set CC to just the basename; use the full file name.
2443 shift
2444 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2445 fi
2446 fi
2447 fi
2448 fi
2449 CC=$ac_cv_prog_CC
2450 if test -n "$CC"; then
2451 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2452 $as_echo "$CC" >&6; }
2453 else
2454 { $as_echo "$as_me:$LINENO: result: no" >&5
2455 $as_echo "no" >&6; }
2456 fi
2457
2458
2459 fi
2460 if test -z "$CC"; then
2461 if test -n "$ac_tool_prefix"; then
2462 for ac_prog in cl.exe
2463 do
2464 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2465 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2466 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2467 $as_echo_n "checking for $ac_word... " >&6; }
2468 if test "${ac_cv_prog_CC+set}" = set; then
2469 $as_echo_n "(cached) " >&6
2470 else
2471 if test -n "$CC"; then
2472 ac_cv_prog_CC="$CC" # Let the user override the test.
2473 else
2474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2475 for as_dir in $PATH
2476 do
2477 IFS=$as_save_IFS
2478 test -z "$as_dir" && as_dir=.
2479 for ac_exec_ext in '' $ac_executable_extensions; do
2480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2481 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2482 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2483 break 2
2484 fi
2485 done
2486 done
2487 IFS=$as_save_IFS
2488
2489 fi
2490 fi
2491 CC=$ac_cv_prog_CC
2492 if test -n "$CC"; then
2493 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2494 $as_echo "$CC" >&6; }
2495 else
2496 { $as_echo "$as_me:$LINENO: result: no" >&5
2497 $as_echo "no" >&6; }
2498 fi
2499
2500
2501 test -n "$CC" && break
2502 done
2503 fi
2504 if test -z "$CC"; then
2505 ac_ct_CC=$CC
2506 for ac_prog in cl.exe
2507 do
2508 # Extract the first word of "$ac_prog", so it can be a program name with args.
2509 set dummy $ac_prog; ac_word=$2
2510 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2511 $as_echo_n "checking for $ac_word... " >&6; }
2512 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2513 $as_echo_n "(cached) " >&6
2514 else
2515 if test -n "$ac_ct_CC"; then
2516 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2517 else
2518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2519 for as_dir in $PATH
2520 do
2521 IFS=$as_save_IFS
2522 test -z "$as_dir" && as_dir=.
2523 for ac_exec_ext in '' $ac_executable_extensions; do
2524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2525 ac_cv_prog_ac_ct_CC="$ac_prog"
2526 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2527 break 2
2528 fi
2529 done
2530 done
2531 IFS=$as_save_IFS
2532
2533 fi
2534 fi
2535 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2536 if test -n "$ac_ct_CC"; then
2537 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2538 $as_echo "$ac_ct_CC" >&6; }
2539 else
2540 { $as_echo "$as_me:$LINENO: result: no" >&5
2541 $as_echo "no" >&6; }
2542 fi
2543
2544
2545 test -n "$ac_ct_CC" && break
2546 done
2547
2548 if test "x$ac_ct_CC" = x; then
2549 CC=""
2550 else
2551 case $cross_compiling:$ac_tool_warned in
2552 yes:)
2553 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2554 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2555 ac_tool_warned=yes ;;
2556 esac
2557 CC=$ac_ct_CC
2558 fi
2559 fi
2560
2561 fi
2562
2563
2564 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2565 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2566 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2567 See \`config.log' for more details." >&5
2568 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2569 See \`config.log' for more details." >&2;}
2570 { (exit 1); exit 1; }; }; }
2571
2572 # Provide some information about the compiler.
2573 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2574 set X $ac_compile
2575 ac_compiler=$2
2576 { (ac_try="$ac_compiler --version >&5"
2577 case "(($ac_try" in
2578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2579 *) ac_try_echo=$ac_try;;
2580 esac
2581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2582 $as_echo "$ac_try_echo") >&5
2583 (eval "$ac_compiler --version >&5") 2>&5
2584 ac_status=$?
2585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); }
2587 { (ac_try="$ac_compiler -v >&5"
2588 case "(($ac_try" in
2589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2590 *) ac_try_echo=$ac_try;;
2591 esac
2592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2593 $as_echo "$ac_try_echo") >&5
2594 (eval "$ac_compiler -v >&5") 2>&5
2595 ac_status=$?
2596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597 (exit $ac_status); }
2598 { (ac_try="$ac_compiler -V >&5"
2599 case "(($ac_try" in
2600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2601 *) ac_try_echo=$ac_try;;
2602 esac
2603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2604 $as_echo "$ac_try_echo") >&5
2605 (eval "$ac_compiler -V >&5") 2>&5
2606 ac_status=$?
2607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608 (exit $ac_status); }
2609
2610 cat >conftest.$ac_ext <<_ACEOF
2611 /* confdefs.h. */
2612 _ACEOF
2613 cat confdefs.h >>conftest.$ac_ext
2614 cat >>conftest.$ac_ext <<_ACEOF
2615 /* end confdefs.h. */
2616
2617 int
2618 main ()
2619 {
2620
2621 ;
2622 return 0;
2623 }
2624 _ACEOF
2625 ac_clean_files_save=$ac_clean_files
2626 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2627 # Try to create an executable without -o first, disregard a.out.
2628 # It will help us diagnose broken compilers, and finding out an intuition
2629 # of exeext.
2630 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2631 $as_echo_n "checking for C compiler default output file name... " >&6; }
2632 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2633
2634 # The possible output files:
2635 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2636
2637 ac_rmfiles=
2638 for ac_file in $ac_files
2639 do
2640 case $ac_file in
2641 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2642 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2643 esac
2644 done
2645 rm -f $ac_rmfiles
2646
2647 if { (ac_try="$ac_link_default"
2648 case "(($ac_try" in
2649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2650 *) ac_try_echo=$ac_try;;
2651 esac
2652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2653 $as_echo "$ac_try_echo") >&5
2654 (eval "$ac_link_default") 2>&5
2655 ac_status=$?
2656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657 (exit $ac_status); }; then
2658 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2659 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2660 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2661 # so that the user can short-circuit this test for compilers unknown to
2662 # Autoconf.
2663 for ac_file in $ac_files ''
2664 do
2665 test -f "$ac_file" || continue
2666 case $ac_file in
2667 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2668 ;;
2669 [ab].out )
2670 # We found the default executable, but exeext='' is most
2671 # certainly right.
2672 break;;
2673 *.* )
2674 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2675 then :; else
2676 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2677 fi
2678 # We set ac_cv_exeext here because the later test for it is not
2679 # safe: cross compilers may not add the suffix if given an `-o'
2680 # argument, so we may need to know it at that point already.
2681 # Even if this section looks crufty: it has the advantage of
2682 # actually working.
2683 break;;
2684 * )
2685 break;;
2686 esac
2687 done
2688 test "$ac_cv_exeext" = no && ac_cv_exeext=
2689
2690 else
2691 ac_file=''
2692 fi
2693
2694 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2695 $as_echo "$ac_file" >&6; }
2696 if test -z "$ac_file"; then
2697 $as_echo "$as_me: failed program was:" >&5
2698 sed 's/^/| /' conftest.$ac_ext >&5
2699
2700 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2701 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2702 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2703 See \`config.log' for more details." >&5
2704 $as_echo "$as_me: error: C compiler cannot create executables
2705 See \`config.log' for more details." >&2;}
2706 { (exit 77); exit 77; }; }; }
2707 fi
2708
2709 ac_exeext=$ac_cv_exeext
2710
2711 # Check that the compiler produces executables we can run. If not, either
2712 # the compiler is broken, or we cross compile.
2713 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2714 $as_echo_n "checking whether the C compiler works... " >&6; }
2715 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2716 # If not cross compiling, check that we can run a simple program.
2717 if test "$cross_compiling" != yes; then
2718 if { ac_try='./$ac_file'
2719 { (case "(($ac_try" in
2720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2721 *) ac_try_echo=$ac_try;;
2722 esac
2723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2724 $as_echo "$ac_try_echo") >&5
2725 (eval "$ac_try") 2>&5
2726 ac_status=$?
2727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728 (exit $ac_status); }; }; then
2729 cross_compiling=no
2730 else
2731 if test "$cross_compiling" = maybe; then
2732 cross_compiling=yes
2733 else
2734 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2735 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2736 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2737 If you meant to cross compile, use \`--host'.
2738 See \`config.log' for more details." >&5
2739 $as_echo "$as_me: error: cannot run C compiled programs.
2740 If you meant to cross compile, use \`--host'.
2741 See \`config.log' for more details." >&2;}
2742 { (exit 1); exit 1; }; }; }
2743 fi
2744 fi
2745 fi
2746 { $as_echo "$as_me:$LINENO: result: yes" >&5
2747 $as_echo "yes" >&6; }
2748
2749 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2750 ac_clean_files=$ac_clean_files_save
2751 # Check that the compiler produces executables we can run. If not, either
2752 # the compiler is broken, or we cross compile.
2753 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2754 $as_echo_n "checking whether we are cross compiling... " >&6; }
2755 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2756 $as_echo "$cross_compiling" >&6; }
2757
2758 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2759 $as_echo_n "checking for suffix of executables... " >&6; }
2760 if { (ac_try="$ac_link"
2761 case "(($ac_try" in
2762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2763 *) ac_try_echo=$ac_try;;
2764 esac
2765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2766 $as_echo "$ac_try_echo") >&5
2767 (eval "$ac_link") 2>&5
2768 ac_status=$?
2769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770 (exit $ac_status); }; then
2771 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2772 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2773 # work properly (i.e., refer to `conftest.exe'), while it won't with
2774 # `rm'.
2775 for ac_file in conftest.exe conftest conftest.*; do
2776 test -f "$ac_file" || continue
2777 case $ac_file in
2778 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2779 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2780 break;;
2781 * ) break;;
2782 esac
2783 done
2784 else
2785 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2786 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2787 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2788 See \`config.log' for more details." >&5
2789 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2790 See \`config.log' for more details." >&2;}
2791 { (exit 1); exit 1; }; }; }
2792 fi
2793
2794 rm -f conftest$ac_cv_exeext
2795 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2796 $as_echo "$ac_cv_exeext" >&6; }
2797
2798 rm -f conftest.$ac_ext
2799 EXEEXT=$ac_cv_exeext
2800 ac_exeext=$EXEEXT
2801 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2802 $as_echo_n "checking for suffix of object files... " >&6; }
2803 if test "${ac_cv_objext+set}" = set; then
2804 $as_echo_n "(cached) " >&6
2805 else
2806 cat >conftest.$ac_ext <<_ACEOF
2807 /* confdefs.h. */
2808 _ACEOF
2809 cat confdefs.h >>conftest.$ac_ext
2810 cat >>conftest.$ac_ext <<_ACEOF
2811 /* end confdefs.h. */
2812
2813 int
2814 main ()
2815 {
2816
2817 ;
2818 return 0;
2819 }
2820 _ACEOF
2821 rm -f conftest.o conftest.obj
2822 if { (ac_try="$ac_compile"
2823 case "(($ac_try" in
2824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2825 *) ac_try_echo=$ac_try;;
2826 esac
2827 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2828 $as_echo "$ac_try_echo") >&5
2829 (eval "$ac_compile") 2>&5
2830 ac_status=$?
2831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832 (exit $ac_status); }; then
2833 for ac_file in conftest.o conftest.obj conftest.*; do
2834 test -f "$ac_file" || continue;
2835 case $ac_file in
2836 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2837 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2838 break;;
2839 esac
2840 done
2841 else
2842 $as_echo "$as_me: failed program was:" >&5
2843 sed 's/^/| /' conftest.$ac_ext >&5
2844
2845 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2846 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2847 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2848 See \`config.log' for more details." >&5
2849 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2850 See \`config.log' for more details." >&2;}
2851 { (exit 1); exit 1; }; }; }
2852 fi
2853
2854 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2855 fi
2856 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2857 $as_echo "$ac_cv_objext" >&6; }
2858 OBJEXT=$ac_cv_objext
2859 ac_objext=$OBJEXT
2860 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2861 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2862 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2863 $as_echo_n "(cached) " >&6
2864 else
2865 cat >conftest.$ac_ext <<_ACEOF
2866 /* confdefs.h. */
2867 _ACEOF
2868 cat confdefs.h >>conftest.$ac_ext
2869 cat >>conftest.$ac_ext <<_ACEOF
2870 /* end confdefs.h. */
2871
2872 int
2873 main ()
2874 {
2875 #ifndef __GNUC__
2876 choke me
2877 #endif
2878
2879 ;
2880 return 0;
2881 }
2882 _ACEOF
2883 rm -f conftest.$ac_objext
2884 if { (ac_try="$ac_compile"
2885 case "(($ac_try" in
2886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2887 *) ac_try_echo=$ac_try;;
2888 esac
2889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2890 $as_echo "$ac_try_echo") >&5
2891 (eval "$ac_compile") 2>conftest.er1
2892 ac_status=$?
2893 grep -v '^ *+' conftest.er1 >conftest.err
2894 rm -f conftest.er1
2895 cat conftest.err >&5
2896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897 (exit $ac_status); } && {
2898 test -z "$ac_c_werror_flag" ||
2899 test ! -s conftest.err
2900 } && test -s conftest.$ac_objext; then
2901 ac_compiler_gnu=yes
2902 else
2903 $as_echo "$as_me: failed program was:" >&5
2904 sed 's/^/| /' conftest.$ac_ext >&5
2905
2906 ac_compiler_gnu=no
2907 fi
2908
2909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2910 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2911
2912 fi
2913 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2914 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2915 if test $ac_compiler_gnu = yes; then
2916 GCC=yes
2917 else
2918 GCC=
2919 fi
2920 ac_test_CFLAGS=${CFLAGS+set}
2921 ac_save_CFLAGS=$CFLAGS
2922 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2923 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2924 if test "${ac_cv_prog_cc_g+set}" = set; then
2925 $as_echo_n "(cached) " >&6
2926 else
2927 ac_save_c_werror_flag=$ac_c_werror_flag
2928 ac_c_werror_flag=yes
2929 ac_cv_prog_cc_g=no
2930 CFLAGS="-g"
2931 cat >conftest.$ac_ext <<_ACEOF
2932 /* confdefs.h. */
2933 _ACEOF
2934 cat confdefs.h >>conftest.$ac_ext
2935 cat >>conftest.$ac_ext <<_ACEOF
2936 /* end confdefs.h. */
2937
2938 int
2939 main ()
2940 {
2941
2942 ;
2943 return 0;
2944 }
2945 _ACEOF
2946 rm -f conftest.$ac_objext
2947 if { (ac_try="$ac_compile"
2948 case "(($ac_try" in
2949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950 *) ac_try_echo=$ac_try;;
2951 esac
2952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2953 $as_echo "$ac_try_echo") >&5
2954 (eval "$ac_compile") 2>conftest.er1
2955 ac_status=$?
2956 grep -v '^ *+' conftest.er1 >conftest.err
2957 rm -f conftest.er1
2958 cat conftest.err >&5
2959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960 (exit $ac_status); } && {
2961 test -z "$ac_c_werror_flag" ||
2962 test ! -s conftest.err
2963 } && test -s conftest.$ac_objext; then
2964 ac_cv_prog_cc_g=yes
2965 else
2966 $as_echo "$as_me: failed program was:" >&5
2967 sed 's/^/| /' conftest.$ac_ext >&5
2968
2969 CFLAGS=""
2970 cat >conftest.$ac_ext <<_ACEOF
2971 /* confdefs.h. */
2972 _ACEOF
2973 cat confdefs.h >>conftest.$ac_ext
2974 cat >>conftest.$ac_ext <<_ACEOF
2975 /* end confdefs.h. */
2976
2977 int
2978 main ()
2979 {
2980
2981 ;
2982 return 0;
2983 }
2984 _ACEOF
2985 rm -f conftest.$ac_objext
2986 if { (ac_try="$ac_compile"
2987 case "(($ac_try" in
2988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2989 *) ac_try_echo=$ac_try;;
2990 esac
2991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2992 $as_echo "$ac_try_echo") >&5
2993 (eval "$ac_compile") 2>conftest.er1
2994 ac_status=$?
2995 grep -v '^ *+' conftest.er1 >conftest.err
2996 rm -f conftest.er1
2997 cat conftest.err >&5
2998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999 (exit $ac_status); } && {
3000 test -z "$ac_c_werror_flag" ||
3001 test ! -s conftest.err
3002 } && test -s conftest.$ac_objext; then
3003 :
3004 else
3005 $as_echo "$as_me: failed program was:" >&5
3006 sed 's/^/| /' conftest.$ac_ext >&5
3007
3008 ac_c_werror_flag=$ac_save_c_werror_flag
3009 CFLAGS="-g"
3010 cat >conftest.$ac_ext <<_ACEOF
3011 /* confdefs.h. */
3012 _ACEOF
3013 cat confdefs.h >>conftest.$ac_ext
3014 cat >>conftest.$ac_ext <<_ACEOF
3015 /* end confdefs.h. */
3016
3017 int
3018 main ()
3019 {
3020
3021 ;
3022 return 0;
3023 }
3024 _ACEOF
3025 rm -f conftest.$ac_objext
3026 if { (ac_try="$ac_compile"
3027 case "(($ac_try" in
3028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3029 *) ac_try_echo=$ac_try;;
3030 esac
3031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3032 $as_echo "$ac_try_echo") >&5
3033 (eval "$ac_compile") 2>conftest.er1
3034 ac_status=$?
3035 grep -v '^ *+' conftest.er1 >conftest.err
3036 rm -f conftest.er1
3037 cat conftest.err >&5
3038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039 (exit $ac_status); } && {
3040 test -z "$ac_c_werror_flag" ||
3041 test ! -s conftest.err
3042 } && test -s conftest.$ac_objext; then
3043 ac_cv_prog_cc_g=yes
3044 else
3045 $as_echo "$as_me: failed program was:" >&5
3046 sed 's/^/| /' conftest.$ac_ext >&5
3047
3048
3049 fi
3050
3051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3052 fi
3053
3054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3055 fi
3056
3057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3058 ac_c_werror_flag=$ac_save_c_werror_flag
3059 fi
3060 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3061 $as_echo "$ac_cv_prog_cc_g" >&6; }
3062 if test "$ac_test_CFLAGS" = set; then
3063 CFLAGS=$ac_save_CFLAGS
3064 elif test $ac_cv_prog_cc_g = yes; then
3065 if test "$GCC" = yes; then
3066 CFLAGS="-g -O2"
3067 else
3068 CFLAGS="-g"
3069 fi
3070 else
3071 if test "$GCC" = yes; then
3072 CFLAGS="-O2"
3073 else
3074 CFLAGS=
3075 fi
3076 fi
3077 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3078 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3079 if test "${ac_cv_prog_cc_c89+set}" = set; then
3080 $as_echo_n "(cached) " >&6
3081 else
3082 ac_cv_prog_cc_c89=no
3083 ac_save_CC=$CC
3084 cat >conftest.$ac_ext <<_ACEOF
3085 /* confdefs.h. */
3086 _ACEOF
3087 cat confdefs.h >>conftest.$ac_ext
3088 cat >>conftest.$ac_ext <<_ACEOF
3089 /* end confdefs.h. */
3090 #include <stdarg.h>
3091 #include <stdio.h>
3092 #include <sys/types.h>
3093 #include <sys/stat.h>
3094 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3095 struct buf { int x; };
3096 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3097 static char *e (p, i)
3098 char **p;
3099 int i;
3100 {
3101 return p[i];
3102 }
3103 static char *f (char * (*g) (char **, int), char **p, ...)
3104 {
3105 char *s;
3106 va_list v;
3107 va_start (v,p);
3108 s = g (p, va_arg (v,int));
3109 va_end (v);
3110 return s;
3111 }
3112
3113 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3114 function prototypes and stuff, but not '\xHH' hex character constants.
3115 These don't provoke an error unfortunately, instead are silently treated
3116 as 'x'. The following induces an error, until -std is added to get
3117 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3118 array size at least. It's necessary to write '\x00'==0 to get something
3119 that's true only with -std. */
3120 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3121
3122 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3123 inside strings and character constants. */
3124 #define FOO(x) 'x'
3125 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3126
3127 int test (int i, double x);
3128 struct s1 {int (*f) (int a);};
3129 struct s2 {int (*f) (double a);};
3130 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3131 int argc;
3132 char **argv;
3133 int
3134 main ()
3135 {
3136 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3137 ;
3138 return 0;
3139 }
3140 _ACEOF
3141 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3142 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3143 do
3144 CC="$ac_save_CC $ac_arg"
3145 rm -f conftest.$ac_objext
3146 if { (ac_try="$ac_compile"
3147 case "(($ac_try" in
3148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149 *) ac_try_echo=$ac_try;;
3150 esac
3151 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3152 $as_echo "$ac_try_echo") >&5
3153 (eval "$ac_compile") 2>conftest.er1
3154 ac_status=$?
3155 grep -v '^ *+' conftest.er1 >conftest.err
3156 rm -f conftest.er1
3157 cat conftest.err >&5
3158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 (exit $ac_status); } && {
3160 test -z "$ac_c_werror_flag" ||
3161 test ! -s conftest.err
3162 } && test -s conftest.$ac_objext; then
3163 ac_cv_prog_cc_c89=$ac_arg
3164 else
3165 $as_echo "$as_me: failed program was:" >&5
3166 sed 's/^/| /' conftest.$ac_ext >&5
3167
3168
3169 fi
3170
3171 rm -f core conftest.err conftest.$ac_objext
3172 test "x$ac_cv_prog_cc_c89" != "xno" && break
3173 done
3174 rm -f conftest.$ac_ext
3175 CC=$ac_save_CC
3176
3177 fi
3178 # AC_CACHE_VAL
3179 case "x$ac_cv_prog_cc_c89" in
3180 x)
3181 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3182 $as_echo "none needed" >&6; } ;;
3183 xno)
3184 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3185 $as_echo "unsupported" >&6; } ;;
3186 *)
3187 CC="$CC $ac_cv_prog_cc_c89"
3188 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3189 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3190 esac
3191
3192
3193 ac_ext=c
3194 ac_cpp='$CPP $CPPFLAGS'
3195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3198
3199 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
3200 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3201 if test "${ac_cv_prog_cc_c99+set}" = set; then
3202 $as_echo_n "(cached) " >&6
3203 else
3204 ac_cv_prog_cc_c99=no
3205 ac_save_CC=$CC
3206 cat >conftest.$ac_ext <<_ACEOF
3207 /* confdefs.h. */
3208 _ACEOF
3209 cat confdefs.h >>conftest.$ac_ext
3210 cat >>conftest.$ac_ext <<_ACEOF
3211 /* end confdefs.h. */
3212 #include <stdarg.h>
3213 #include <stdbool.h>
3214 #include <stdlib.h>
3215 #include <wchar.h>
3216 #include <stdio.h>
3217
3218 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3219 #define debug(...) fprintf (stderr, __VA_ARGS__)
3220 #define showlist(...) puts (#__VA_ARGS__)
3221 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3222 static void
3223 test_varargs_macros (void)
3224 {
3225 int x = 1234;
3226 int y = 5678;
3227 debug ("Flag");
3228 debug ("X = %d\n", x);
3229 showlist (The first, second, and third items.);
3230 report (x>y, "x is %d but y is %d", x, y);
3231 }
3232
3233 // Check long long types.
3234 #define BIG64 18446744073709551615ull
3235 #define BIG32 4294967295ul
3236 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3237 #if !BIG_OK
3238 your preprocessor is broken;
3239 #endif
3240 #if BIG_OK
3241 #else
3242 your preprocessor is broken;
3243 #endif
3244 static long long int bignum = -9223372036854775807LL;
3245 static unsigned long long int ubignum = BIG64;
3246
3247 struct incomplete_array
3248 {
3249 int datasize;
3250 double data[];
3251 };
3252
3253 struct named_init {
3254 int number;
3255 const wchar_t *name;
3256 double average;
3257 };
3258
3259 typedef const char *ccp;
3260
3261 static inline int
3262 test_restrict (ccp restrict text)
3263 {
3264 // See if C++-style comments work.
3265 // Iterate through items via the restricted pointer.
3266 // Also check for declarations in for loops.
3267 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3268 continue;
3269 return 0;
3270 }
3271
3272 // Check varargs and va_copy.
3273 static void
3274 test_varargs (const char *format, ...)
3275 {
3276 va_list args;
3277 va_start (args, format);
3278 va_list args_copy;
3279 va_copy (args_copy, args);
3280
3281 const char *str;
3282 int number;
3283 float fnumber;
3284
3285 while (*format)
3286 {
3287 switch (*format++)
3288 {
3289 case 's': // string
3290 str = va_arg (args_copy, const char *);
3291 break;
3292 case 'd': // int
3293 number = va_arg (args_copy, int);
3294 break;
3295 case 'f': // float
3296 fnumber = va_arg (args_copy, double);
3297 break;
3298 default:
3299 break;
3300 }
3301 }
3302 va_end (args_copy);
3303 va_end (args);
3304 }
3305
3306 int
3307 main ()
3308 {
3309
3310 // Check bool.
3311 _Bool success = false;
3312
3313 // Check restrict.
3314 if (test_restrict ("String literal") == 0)
3315 success = true;
3316 char *restrict newvar = "Another string";
3317
3318 // Check varargs.
3319 test_varargs ("s, d' f .", "string", 65, 34.234);
3320 test_varargs_macros ();
3321
3322 // Check flexible array members.
3323 struct incomplete_array *ia =
3324 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3325 ia->datasize = 10;
3326 for (int i = 0; i < ia->datasize; ++i)
3327 ia->data[i] = i * 1.234;
3328
3329 // Check named initializers.
3330 struct named_init ni = {
3331 .number = 34,
3332 .name = L"Test wide string",
3333 .average = 543.34343,
3334 };
3335
3336 ni.number = 58;
3337
3338 int dynamic_array[ni.number];
3339 dynamic_array[ni.number - 1] = 543;
3340
3341 // work around unused variable warnings
3342 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3343 || dynamic_array[ni.number - 1] != 543);
3344
3345 ;
3346 return 0;
3347 }
3348 _ACEOF
3349 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3350 do
3351 CC="$ac_save_CC $ac_arg"
3352 rm -f conftest.$ac_objext
3353 if { (ac_try="$ac_compile"
3354 case "(($ac_try" in
3355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3356 *) ac_try_echo=$ac_try;;
3357 esac
3358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3359 $as_echo "$ac_try_echo") >&5
3360 (eval "$ac_compile") 2>conftest.er1
3361 ac_status=$?
3362 grep -v '^ *+' conftest.er1 >conftest.err
3363 rm -f conftest.er1
3364 cat conftest.err >&5
3365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366 (exit $ac_status); } && {
3367 test -z "$ac_c_werror_flag" ||
3368 test ! -s conftest.err
3369 } && test -s conftest.$ac_objext; then
3370 ac_cv_prog_cc_c99=$ac_arg
3371 else
3372 $as_echo "$as_me: failed program was:" >&5
3373 sed 's/^/| /' conftest.$ac_ext >&5
3374
3375
3376 fi
3377
3378 rm -f core conftest.err conftest.$ac_objext
3379 test "x$ac_cv_prog_cc_c99" != "xno" && break
3380 done
3381 rm -f conftest.$ac_ext
3382 CC=$ac_save_CC
3383
3384 fi
3385 # AC_CACHE_VAL
3386 case "x$ac_cv_prog_cc_c99" in
3387 x)
3388 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3389 $as_echo "none needed" >&6; } ;;
3390 xno)
3391 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3392 $as_echo "unsupported" >&6; } ;;
3393 *)
3394 CC="$CC $ac_cv_prog_cc_c99"
3395 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
3396 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3397 esac
3398
3399
3400
3401
3402 ac_ext=c
3403 ac_cpp='$CPP $CPPFLAGS'
3404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3407 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3408 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3409 # On Suns, sometimes $CPP names a directory.
3410 if test -n "$CPP" && test -d "$CPP"; then
3411 CPP=
3412 fi
3413 if test -z "$CPP"; then
3414 if test "${ac_cv_prog_CPP+set}" = set; then
3415 $as_echo_n "(cached) " >&6
3416 else
3417 # Double quotes because CPP needs to be expanded
3418 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3419 do
3420 ac_preproc_ok=false
3421 for ac_c_preproc_warn_flag in '' yes
3422 do
3423 # Use a header file that comes with gcc, so configuring glibc
3424 # with a fresh cross-compiler works.
3425 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3426 # <limits.h> exists even on freestanding compilers.
3427 # On the NeXT, cc -E runs the code through the compiler's parser,
3428 # not just through cpp. "Syntax error" is here to catch this case.
3429 cat >conftest.$ac_ext <<_ACEOF
3430 /* confdefs.h. */
3431 _ACEOF
3432 cat confdefs.h >>conftest.$ac_ext
3433 cat >>conftest.$ac_ext <<_ACEOF
3434 /* end confdefs.h. */
3435 #ifdef __STDC__
3436 # include <limits.h>
3437 #else
3438 # include <assert.h>
3439 #endif
3440 Syntax error
3441 _ACEOF
3442 if { (ac_try="$ac_cpp conftest.$ac_ext"
3443 case "(($ac_try" in
3444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445 *) ac_try_echo=$ac_try;;
3446 esac
3447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3448 $as_echo "$ac_try_echo") >&5
3449 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3450 ac_status=$?
3451 grep -v '^ *+' conftest.er1 >conftest.err
3452 rm -f conftest.er1
3453 cat conftest.err >&5
3454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3455 (exit $ac_status); } >/dev/null && {
3456 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3457 test ! -s conftest.err
3458 }; then
3459 :
3460 else
3461 $as_echo "$as_me: failed program was:" >&5
3462 sed 's/^/| /' conftest.$ac_ext >&5
3463
3464 # Broken: fails on valid input.
3465 continue
3466 fi
3467
3468 rm -f conftest.err conftest.$ac_ext
3469
3470 # OK, works on sane cases. Now check whether nonexistent headers
3471 # can be detected and how.
3472 cat >conftest.$ac_ext <<_ACEOF
3473 /* confdefs.h. */
3474 _ACEOF
3475 cat confdefs.h >>conftest.$ac_ext
3476 cat >>conftest.$ac_ext <<_ACEOF
3477 /* end confdefs.h. */
3478 #include <ac_nonexistent.h>
3479 _ACEOF
3480 if { (ac_try="$ac_cpp conftest.$ac_ext"
3481 case "(($ac_try" in
3482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3483 *) ac_try_echo=$ac_try;;
3484 esac
3485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3486 $as_echo "$ac_try_echo") >&5
3487 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3488 ac_status=$?
3489 grep -v '^ *+' conftest.er1 >conftest.err
3490 rm -f conftest.er1
3491 cat conftest.err >&5
3492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493 (exit $ac_status); } >/dev/null && {
3494 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3495 test ! -s conftest.err
3496 }; then
3497 # Broken: success on invalid input.
3498 continue
3499 else
3500 $as_echo "$as_me: failed program was:" >&5
3501 sed 's/^/| /' conftest.$ac_ext >&5
3502
3503 # Passes both tests.
3504 ac_preproc_ok=:
3505 break
3506 fi
3507
3508 rm -f conftest.err conftest.$ac_ext
3509
3510 done
3511 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3512 rm -f conftest.err conftest.$ac_ext
3513 if $ac_preproc_ok; then
3514 break
3515 fi
3516
3517 done
3518 ac_cv_prog_CPP=$CPP
3519
3520 fi
3521 CPP=$ac_cv_prog_CPP
3522 else
3523 ac_cv_prog_CPP=$CPP
3524 fi
3525 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3526 $as_echo "$CPP" >&6; }
3527 ac_preproc_ok=false
3528 for ac_c_preproc_warn_flag in '' yes
3529 do
3530 # Use a header file that comes with gcc, so configuring glibc
3531 # with a fresh cross-compiler works.
3532 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3533 # <limits.h> exists even on freestanding compilers.
3534 # On the NeXT, cc -E runs the code through the compiler's parser,
3535 # not just through cpp. "Syntax error" is here to catch this case.
3536 cat >conftest.$ac_ext <<_ACEOF
3537 /* confdefs.h. */
3538 _ACEOF
3539 cat confdefs.h >>conftest.$ac_ext
3540 cat >>conftest.$ac_ext <<_ACEOF
3541 /* end confdefs.h. */
3542 #ifdef __STDC__
3543 # include <limits.h>
3544 #else
3545 # include <assert.h>
3546 #endif
3547 Syntax error
3548 _ACEOF
3549 if { (ac_try="$ac_cpp conftest.$ac_ext"
3550 case "(($ac_try" in
3551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3552 *) ac_try_echo=$ac_try;;
3553 esac
3554 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3555 $as_echo "$ac_try_echo") >&5
3556 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3557 ac_status=$?
3558 grep -v '^ *+' conftest.er1 >conftest.err
3559 rm -f conftest.er1
3560 cat conftest.err >&5
3561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562 (exit $ac_status); } >/dev/null && {
3563 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3564 test ! -s conftest.err
3565 }; then
3566 :
3567 else
3568 $as_echo "$as_me: failed program was:" >&5
3569 sed 's/^/| /' conftest.$ac_ext >&5
3570
3571 # Broken: fails on valid input.
3572 continue
3573 fi
3574
3575 rm -f conftest.err conftest.$ac_ext
3576
3577 # OK, works on sane cases. Now check whether nonexistent headers
3578 # can be detected and how.
3579 cat >conftest.$ac_ext <<_ACEOF
3580 /* confdefs.h. */
3581 _ACEOF
3582 cat confdefs.h >>conftest.$ac_ext
3583 cat >>conftest.$ac_ext <<_ACEOF
3584 /* end confdefs.h. */
3585 #include <ac_nonexistent.h>
3586 _ACEOF
3587 if { (ac_try="$ac_cpp conftest.$ac_ext"
3588 case "(($ac_try" in
3589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3590 *) ac_try_echo=$ac_try;;
3591 esac
3592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3593 $as_echo "$ac_try_echo") >&5
3594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3595 ac_status=$?
3596 grep -v '^ *+' conftest.er1 >conftest.err
3597 rm -f conftest.er1
3598 cat conftest.err >&5
3599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600 (exit $ac_status); } >/dev/null && {
3601 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3602 test ! -s conftest.err
3603 }; then
3604 # Broken: success on invalid input.
3605 continue
3606 else
3607 $as_echo "$as_me: failed program was:" >&5
3608 sed 's/^/| /' conftest.$ac_ext >&5
3609
3610 # Passes both tests.
3611 ac_preproc_ok=:
3612 break
3613 fi
3614
3615 rm -f conftest.err conftest.$ac_ext
3616
3617 done
3618 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3619 rm -f conftest.err conftest.$ac_ext
3620 if $ac_preproc_ok; then
3621 :
3622 else
3623 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3624 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3625 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3626 See \`config.log' for more details." >&5
3627 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3628 See \`config.log' for more details." >&2;}
3629 { (exit 1); exit 1; }; }; }
3630 fi
3631
3632 ac_ext=c
3633 ac_cpp='$CPP $CPPFLAGS'
3634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3637
3638
3639 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3640 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3641 if test "${ac_cv_path_GREP+set}" = set; then
3642 $as_echo_n "(cached) " >&6
3643 else
3644 if test -z "$GREP"; then
3645 ac_path_GREP_found=false
3646 # Loop through the user's path and test for each of PROGNAME-LIST
3647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3648 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3649 do
3650 IFS=$as_save_IFS
3651 test -z "$as_dir" && as_dir=.
3652 for ac_prog in grep ggrep; do
3653 for ac_exec_ext in '' $ac_executable_extensions; do
3654 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3655 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3656 # Check for GNU ac_path_GREP and select it if it is found.
3657 # Check for GNU $ac_path_GREP
3658 case `"$ac_path_GREP" --version 2>&1` in
3659 *GNU*)
3660 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3661 *)
3662 ac_count=0
3663 $as_echo_n 0123456789 >"conftest.in"
3664 while :
3665 do
3666 cat "conftest.in" "conftest.in" >"conftest.tmp"
3667 mv "conftest.tmp" "conftest.in"
3668 cp "conftest.in" "conftest.nl"
3669 $as_echo 'GREP' >> "conftest.nl"
3670 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3671 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3672 ac_count=`expr $ac_count + 1`
3673 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3674 # Best one so far, save it but keep looking for a better one
3675 ac_cv_path_GREP="$ac_path_GREP"
3676 ac_path_GREP_max=$ac_count
3677 fi
3678 # 10*(2^10) chars as input seems more than enough
3679 test $ac_count -gt 10 && break
3680 done
3681 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3682 esac
3683
3684 $ac_path_GREP_found && break 3
3685 done
3686 done
3687 done
3688 IFS=$as_save_IFS
3689 if test -z "$ac_cv_path_GREP"; then
3690 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3691 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3692 { (exit 1); exit 1; }; }
3693 fi
3694 else
3695 ac_cv_path_GREP=$GREP
3696 fi
3697
3698 fi
3699 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3700 $as_echo "$ac_cv_path_GREP" >&6; }
3701 GREP="$ac_cv_path_GREP"
3702
3703
3704 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3705 $as_echo_n "checking for egrep... " >&6; }
3706 if test "${ac_cv_path_EGREP+set}" = set; then
3707 $as_echo_n "(cached) " >&6
3708 else
3709 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3710 then ac_cv_path_EGREP="$GREP -E"
3711 else
3712 if test -z "$EGREP"; then
3713 ac_path_EGREP_found=false
3714 # Loop through the user's path and test for each of PROGNAME-LIST
3715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3716 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3717 do
3718 IFS=$as_save_IFS
3719 test -z "$as_dir" && as_dir=.
3720 for ac_prog in egrep; do
3721 for ac_exec_ext in '' $ac_executable_extensions; do
3722 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3723 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3724 # Check for GNU ac_path_EGREP and select it if it is found.
3725 # Check for GNU $ac_path_EGREP
3726 case `"$ac_path_EGREP" --version 2>&1` in
3727 *GNU*)
3728 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3729 *)
3730 ac_count=0
3731 $as_echo_n 0123456789 >"conftest.in"
3732 while :
3733 do
3734 cat "conftest.in" "conftest.in" >"conftest.tmp"
3735 mv "conftest.tmp" "conftest.in"
3736 cp "conftest.in" "conftest.nl"
3737 $as_echo 'EGREP' >> "conftest.nl"
3738 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3739 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3740 ac_count=`expr $ac_count + 1`
3741 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3742 # Best one so far, save it but keep looking for a better one
3743 ac_cv_path_EGREP="$ac_path_EGREP"
3744 ac_path_EGREP_max=$ac_count
3745 fi
3746 # 10*(2^10) chars as input seems more than enough
3747 test $ac_count -gt 10 && break
3748 done
3749 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3750 esac
3751
3752 $ac_path_EGREP_found && break 3
3753 done
3754 done
3755 done
3756 IFS=$as_save_IFS
3757 if test -z "$ac_cv_path_EGREP"; then
3758 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3759 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3760 { (exit 1); exit 1; }; }
3761 fi
3762 else
3763 ac_cv_path_EGREP=$EGREP
3764 fi
3765
3766 fi
3767 fi
3768 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3769 $as_echo "$ac_cv_path_EGREP" >&6; }
3770 EGREP="$ac_cv_path_EGREP"
3771
3772
3773 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3774 $as_echo_n "checking for ANSI C header files... " >&6; }
3775 if test "${ac_cv_header_stdc+set}" = set; then
3776 $as_echo_n "(cached) " >&6
3777 else
3778 cat >conftest.$ac_ext <<_ACEOF
3779 /* confdefs.h. */
3780 _ACEOF
3781 cat confdefs.h >>conftest.$ac_ext
3782 cat >>conftest.$ac_ext <<_ACEOF
3783 /* end confdefs.h. */
3784 #include <stdlib.h>
3785 #include <stdarg.h>
3786 #include <string.h>
3787 #include <float.h>
3788
3789 int
3790 main ()
3791 {
3792
3793 ;
3794 return 0;
3795 }
3796 _ACEOF
3797 rm -f conftest.$ac_objext
3798 if { (ac_try="$ac_compile"
3799 case "(($ac_try" in
3800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3801 *) ac_try_echo=$ac_try;;
3802 esac
3803 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3804 $as_echo "$ac_try_echo") >&5
3805 (eval "$ac_compile") 2>conftest.er1
3806 ac_status=$?
3807 grep -v '^ *+' conftest.er1 >conftest.err
3808 rm -f conftest.er1
3809 cat conftest.err >&5
3810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3811 (exit $ac_status); } && {
3812 test -z "$ac_c_werror_flag" ||
3813 test ! -s conftest.err
3814 } && test -s conftest.$ac_objext; then
3815 ac_cv_header_stdc=yes
3816 else
3817 $as_echo "$as_me: failed program was:" >&5
3818 sed 's/^/| /' conftest.$ac_ext >&5
3819
3820 ac_cv_header_stdc=no
3821 fi
3822
3823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3824
3825 if test $ac_cv_header_stdc = yes; then
3826 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3827 cat >conftest.$ac_ext <<_ACEOF
3828 /* confdefs.h. */
3829 _ACEOF
3830 cat confdefs.h >>conftest.$ac_ext
3831 cat >>conftest.$ac_ext <<_ACEOF
3832 /* end confdefs.h. */
3833 #include <string.h>
3834
3835 _ACEOF
3836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3837 $EGREP "memchr" >/dev/null 2>&1; then
3838 :
3839 else
3840 ac_cv_header_stdc=no
3841 fi
3842 rm -f conftest*
3843
3844 fi
3845
3846 if test $ac_cv_header_stdc = yes; then
3847 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3848 cat >conftest.$ac_ext <<_ACEOF
3849 /* confdefs.h. */
3850 _ACEOF
3851 cat confdefs.h >>conftest.$ac_ext
3852 cat >>conftest.$ac_ext <<_ACEOF
3853 /* end confdefs.h. */
3854 #include <stdlib.h>
3855
3856 _ACEOF
3857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3858 $EGREP "free" >/dev/null 2>&1; then
3859 :
3860 else
3861 ac_cv_header_stdc=no
3862 fi
3863 rm -f conftest*
3864
3865 fi
3866
3867 if test $ac_cv_header_stdc = yes; then
3868 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3869 if test "$cross_compiling" = yes; then
3870 :
3871 else
3872 cat >conftest.$ac_ext <<_ACEOF
3873 /* confdefs.h. */
3874 _ACEOF
3875 cat confdefs.h >>conftest.$ac_ext
3876 cat >>conftest.$ac_ext <<_ACEOF
3877 /* end confdefs.h. */
3878 #include <ctype.h>
3879 #include <stdlib.h>
3880 #if ((' ' & 0x0FF) == 0x020)
3881 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3882 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3883 #else
3884 # define ISLOWER(c) \
3885 (('a' <= (c) && (c) <= 'i') \
3886 || ('j' <= (c) && (c) <= 'r') \
3887 || ('s' <= (c) && (c) <= 'z'))
3888 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3889 #endif
3890
3891 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3892 int
3893 main ()
3894 {
3895 int i;
3896 for (i = 0; i < 256; i++)
3897 if (XOR (islower (i), ISLOWER (i))
3898 || toupper (i) != TOUPPER (i))
3899 return 2;
3900 return 0;
3901 }
3902 _ACEOF
3903 rm -f conftest$ac_exeext
3904 if { (ac_try="$ac_link"
3905 case "(($ac_try" in
3906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3907 *) ac_try_echo=$ac_try;;
3908 esac
3909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3910 $as_echo "$ac_try_echo") >&5
3911 (eval "$ac_link") 2>&5
3912 ac_status=$?
3913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3914 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3915 { (case "(($ac_try" in
3916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3917 *) ac_try_echo=$ac_try;;
3918 esac
3919 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3920 $as_echo "$ac_try_echo") >&5
3921 (eval "$ac_try") 2>&5
3922 ac_status=$?
3923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924 (exit $ac_status); }; }; then
3925 :
3926 else
3927 $as_echo "$as_me: program exited with status $ac_status" >&5
3928 $as_echo "$as_me: failed program was:" >&5
3929 sed 's/^/| /' conftest.$ac_ext >&5
3930
3931 ( exit $ac_status )
3932 ac_cv_header_stdc=no
3933 fi
3934 rm -rf conftest.dSYM
3935 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3936 fi
3937
3938
3939 fi
3940 fi
3941 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3942 $as_echo "$ac_cv_header_stdc" >&6; }
3943 if test $ac_cv_header_stdc = yes; then
3944
3945 cat >>confdefs.h <<\_ACEOF
3946 #define STDC_HEADERS 1
3947 _ACEOF
3948
3949 fi
3950
3951 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3962 inttypes.h stdint.h unistd.h
3963 do
3964 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3965 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3966 $as_echo_n "checking for $ac_header... " >&6; }
3967 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3968 $as_echo_n "(cached) " >&6
3969 else
3970 cat >conftest.$ac_ext <<_ACEOF
3971 /* confdefs.h. */
3972 _ACEOF
3973 cat confdefs.h >>conftest.$ac_ext
3974 cat >>conftest.$ac_ext <<_ACEOF
3975 /* end confdefs.h. */
3976 $ac_includes_default
3977
3978 #include <$ac_header>
3979 _ACEOF
3980 rm -f conftest.$ac_objext
3981 if { (ac_try="$ac_compile"
3982 case "(($ac_try" in
3983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3984 *) ac_try_echo=$ac_try;;
3985 esac
3986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3987 $as_echo "$ac_try_echo") >&5
3988 (eval "$ac_compile") 2>conftest.er1
3989 ac_status=$?
3990 grep -v '^ *+' conftest.er1 >conftest.err
3991 rm -f conftest.er1
3992 cat conftest.err >&5
3993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994 (exit $ac_status); } && {
3995 test -z "$ac_c_werror_flag" ||
3996 test ! -s conftest.err
3997 } && test -s conftest.$ac_objext; then
3998 eval "$as_ac_Header=yes"
3999 else
4000 $as_echo "$as_me: failed program was:" >&5
4001 sed 's/^/| /' conftest.$ac_ext >&5
4002
4003 eval "$as_ac_Header=no"
4004 fi
4005
4006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4007 fi
4008 ac_res=`eval 'as_val=${'$as_ac_Header'}
4009 $as_echo "$as_val"'`
4010 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4011 $as_echo "$ac_res" >&6; }
4012 as_val=`eval 'as_val=${'$as_ac_Header'}
4013 $as_echo "$as_val"'`
4014 if test "x$as_val" = x""yes; then
4015 cat >>confdefs.h <<_ACEOF
4016 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4017 _ACEOF
4018
4019 fi
4020
4021 done
4022
4023
4024
4025
4026 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4027 if test -n "$ac_tool_prefix"; then
4028 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4029 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4030 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4031 $as_echo_n "checking for $ac_word... " >&6; }
4032 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4033 $as_echo_n "(cached) " >&6
4034 else
4035 case $PKG_CONFIG in
4036 [\\/]* | ?:[\\/]*)
4037 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4038 ;;
4039 *)
4040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4041 for as_dir in $PATH
4042 do
4043 IFS=$as_save_IFS
4044 test -z "$as_dir" && as_dir=.
4045 for ac_exec_ext in '' $ac_executable_extensions; do
4046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4047 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4048 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4049 break 2
4050 fi
4051 done
4052 done
4053 IFS=$as_save_IFS
4054
4055 ;;
4056 esac
4057 fi
4058 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4059 if test -n "$PKG_CONFIG"; then
4060 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4061 $as_echo "$PKG_CONFIG" >&6; }
4062 else
4063 { $as_echo "$as_me:$LINENO: result: no" >&5
4064 $as_echo "no" >&6; }
4065 fi
4066
4067
4068 fi
4069 if test -z "$ac_cv_path_PKG_CONFIG"; then
4070 ac_pt_PKG_CONFIG=$PKG_CONFIG
4071 # Extract the first word of "pkg-config", so it can be a program name with args.
4072 set dummy pkg-config; ac_word=$2
4073 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4074 $as_echo_n "checking for $ac_word... " >&6; }
4075 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4076 $as_echo_n "(cached) " >&6
4077 else
4078 case $ac_pt_PKG_CONFIG in
4079 [\\/]* | ?:[\\/]*)
4080 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4081 ;;
4082 *)
4083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4084 for as_dir in $PATH
4085 do
4086 IFS=$as_save_IFS
4087 test -z "$as_dir" && as_dir=.
4088 for ac_exec_ext in '' $ac_executable_extensions; do
4089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4090 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4091 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4092 break 2
4093 fi
4094 done
4095 done
4096 IFS=$as_save_IFS
4097
4098 ;;
4099 esac
4100 fi
4101 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4102 if test -n "$ac_pt_PKG_CONFIG"; then
4103 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4104 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4105 else
4106 { $as_echo "$as_me:$LINENO: result: no" >&5
4107 $as_echo "no" >&6; }
4108 fi
4109
4110 if test "x$ac_pt_PKG_CONFIG" = x; then
4111 PKG_CONFIG=""
4112 else
4113 case $cross_compiling:$ac_tool_warned in
4114 yes:)
4115 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4116 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4117 ac_tool_warned=yes ;;
4118 esac
4119 PKG_CONFIG=$ac_pt_PKG_CONFIG
4120 fi
4121 else
4122 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4123 fi
4124
4125 fi
4126 if test -n "$PKG_CONFIG"; then
4127 _pkg_min_version=0.9.0
4128 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4129 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4130 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4131 { $as_echo "$as_me:$LINENO: result: yes" >&5
4132 $as_echo "yes" >&6; }
4133 else
4134 { $as_echo "$as_me:$LINENO: result: no" >&5
4135 $as_echo "no" >&6; }
4136 PKG_CONFIG=""
4137 fi
4138
4139 fi
4140 # Make sure we can run config.sub.
4141 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4142 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4143 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4144 { (exit 1); exit 1; }; }
4145
4146 { $as_echo "$as_me:$LINENO: checking build system type" >&5
4147 $as_echo_n "checking build system type... " >&6; }
4148 if test "${ac_cv_build+set}" = set; then
4149 $as_echo_n "(cached) " >&6
4150 else
4151 ac_build_alias=$build_alias
4152 test "x$ac_build_alias" = x &&
4153 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4154 test "x$ac_build_alias" = x &&
4155 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4156 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4157 { (exit 1); exit 1; }; }
4158 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4159 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4160 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4161 { (exit 1); exit 1; }; }
4162
4163 fi
4164 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4165 $as_echo "$ac_cv_build" >&6; }
4166 case $ac_cv_build in
4167 *-*-*) ;;
4168 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4169 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
4170 { (exit 1); exit 1; }; };;
4171 esac
4172 build=$ac_cv_build
4173 ac_save_IFS=$IFS; IFS='-'
4174 set x $ac_cv_build
4175 shift
4176 build_cpu=$1
4177 build_vendor=$2
4178 shift; shift
4179 # Remember, the first character of IFS is used to create $*,
4180 # except with old shells:
4181 build_os=$*
4182 IFS=$ac_save_IFS
4183 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4184
4185
4186 { $as_echo "$as_me:$LINENO: checking host system type" >&5
4187 $as_echo_n "checking host system type... " >&6; }
4188 if test "${ac_cv_host+set}" = set; then
4189 $as_echo_n "(cached) " >&6
4190 else
4191 if test "x$host_alias" = x; then
4192 ac_cv_host=$ac_cv_build
4193 else
4194 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4195 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4196 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4197 { (exit 1); exit 1; }; }
4198 fi
4199
4200 fi
4201 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4202 $as_echo "$ac_cv_host" >&6; }
4203 case $ac_cv_host in
4204 *-*-*) ;;
4205 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4206 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
4207 { (exit 1); exit 1; }; };;
4208 esac
4209 host=$ac_cv_host
4210 ac_save_IFS=$IFS; IFS='-'
4211 set x $ac_cv_host
4212 shift
4213 host_cpu=$1
4214 host_vendor=$2
4215 shift; shift
4216 # Remember, the first character of IFS is used to create $*,
4217 # except with old shells:
4218 host_os=$*
4219 IFS=$ac_save_IFS
4220 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4221
4222
4223 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4224 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4225 if test "${ac_cv_path_SED+set}" = set; then
4226 $as_echo_n "(cached) " >&6
4227 else
4228 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4229 for ac_i in 1 2 3 4 5 6 7; do
4230 ac_script="$ac_script$as_nl$ac_script"
4231 done
4232 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4233 $as_unset ac_script || ac_script=
4234 if test -z "$SED"; then
4235 ac_path_SED_found=false
4236 # Loop through the user's path and test for each of PROGNAME-LIST
4237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4238 for as_dir in $PATH
4239 do
4240 IFS=$as_save_IFS
4241 test -z "$as_dir" && as_dir=.
4242 for ac_prog in sed gsed; do
4243 for ac_exec_ext in '' $ac_executable_extensions; do
4244 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4245 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4246 # Check for GNU ac_path_SED and select it if it is found.
4247 # Check for GNU $ac_path_SED
4248 case `"$ac_path_SED" --version 2>&1` in
4249 *GNU*)
4250 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4251 *)
4252 ac_count=0
4253 $as_echo_n 0123456789 >"conftest.in"
4254 while :
4255 do
4256 cat "conftest.in" "conftest.in" >"conftest.tmp"
4257 mv "conftest.tmp" "conftest.in"
4258 cp "conftest.in" "conftest.nl"
4259 $as_echo '' >> "conftest.nl"
4260 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4261 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4262 ac_count=`expr $ac_count + 1`
4263 if test $ac_count -gt ${ac_path_SED_max-0}; then
4264 # Best one so far, save it but keep looking for a better one
4265 ac_cv_path_SED="$ac_path_SED"
4266 ac_path_SED_max=$ac_count
4267 fi
4268 # 10*(2^10) chars as input seems more than enough
4269 test $ac_count -gt 10 && break
4270 done
4271 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4272 esac
4273
4274 $ac_path_SED_found && break 3
4275 done
4276 done
4277 done
4278 IFS=$as_save_IFS
4279 if test -z "$ac_cv_path_SED"; then
4280 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4281 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4282 { (exit 1); exit 1; }; }
4283 fi
4284 else
4285 ac_cv_path_SED=$SED
4286 fi
4287
4288 fi
4289 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4290 $as_echo "$ac_cv_path_SED" >&6; }
4291 SED="$ac_cv_path_SED"
4292 rm -f conftest.sed
4293
4294
4295
4296
4297
4298 if test "x$GCC" = xyes ; then
4299 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
4300 -Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
4301 -Wbad-function-cast -Wformat=2"
4302 case `$CC -dumpversion` in
4303 3.4.* | 4.*)
4304 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
4305 ;;
4306 esac
4307 else
4308 { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
4309 $as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
4310 if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
4311 $as_echo_n "(cached) " >&6
4312 else
4313 cat >conftest.$ac_ext <<_ACEOF
4314 /* confdefs.h. */
4315 _ACEOF
4316 cat confdefs.h >>conftest.$ac_ext
4317 cat >>conftest.$ac_ext <<_ACEOF
4318 /* end confdefs.h. */
4319 $ac_includes_default
4320 int
4321 main ()
4322 {
4323 #ifndef __SUNPRO_C
4324 (void) __SUNPRO_C;
4325 #endif
4326
4327 ;
4328 return 0;
4329 }
4330 _ACEOF
4331 rm -f conftest.$ac_objext
4332 if { (ac_try="$ac_compile"
4333 case "(($ac_try" in
4334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4335 *) ac_try_echo=$ac_try;;
4336 esac
4337 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4338 $as_echo "$ac_try_echo") >&5
4339 (eval "$ac_compile") 2>conftest.er1
4340 ac_status=$?
4341 grep -v '^ *+' conftest.er1 >conftest.err
4342 rm -f conftest.er1
4343 cat conftest.err >&5
4344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345 (exit $ac_status); } && {
4346 test -z "$ac_c_werror_flag" ||
4347 test ! -s conftest.err
4348 } && test -s conftest.$ac_objext; then
4349 ac_cv_have_decl___SUNPRO_C=yes
4350 else
4351 $as_echo "$as_me: failed program was:" >&5
4352 sed 's/^/| /' conftest.$ac_ext >&5
4353
4354 ac_cv_have_decl___SUNPRO_C=no
4355 fi
4356
4357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4358 fi
4359 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
4360 $as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
4361 if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
4362 SUNCC="yes"
4363 else
4364 SUNCC="no"
4365 fi
4366
4367 if test "x$SUNCC" = "xyes"; then
4368 CWARNFLAGS="-v"
4369 fi
4370 fi
4371
4372
4373
4374 # If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
4375
4376
4377
4378 # Check whether --enable-strict-compilation was given.
4379 if test "${enable_strict_compilation+set}" = set; then
4380 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
4381 else
4382 STRICT_COMPILE=no
4383 fi
4384
4385 if test "x$STRICT_COMPILE" = "xyes"; then
4386 { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
4387 $as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
4388 if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
4389 $as_echo_n "(cached) " >&6
4390 else
4391 cat >conftest.$ac_ext <<_ACEOF
4392 /* confdefs.h. */
4393 _ACEOF
4394 cat confdefs.h >>conftest.$ac_ext
4395 cat >>conftest.$ac_ext <<_ACEOF
4396 /* end confdefs.h. */
4397 $ac_includes_default
4398 int
4399 main ()
4400 {
4401 #ifndef __SUNPRO_C
4402 (void) __SUNPRO_C;
4403 #endif
4404
4405 ;
4406 return 0;
4407 }
4408 _ACEOF
4409 rm -f conftest.$ac_objext
4410 if { (ac_try="$ac_compile"
4411 case "(($ac_try" in
4412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4413 *) ac_try_echo=$ac_try;;
4414 esac
4415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4416 $as_echo "$ac_try_echo") >&5
4417 (eval "$ac_compile") 2>conftest.er1
4418 ac_status=$?
4419 grep -v '^ *+' conftest.er1 >conftest.err
4420 rm -f conftest.er1
4421 cat conftest.err >&5
4422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423 (exit $ac_status); } && {
4424 test -z "$ac_c_werror_flag" ||
4425 test ! -s conftest.err
4426 } && test -s conftest.$ac_objext; then
4427 ac_cv_have_decl___SUNPRO_C=yes
4428 else
4429 $as_echo "$as_me: failed program was:" >&5
4430 sed 's/^/| /' conftest.$ac_ext >&5
4431
4432 ac_cv_have_decl___SUNPRO_C=no
4433 fi
4434
4435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4436 fi
4437 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
4438 $as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
4439 if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
4440 SUNCC="yes"
4441 else
4442 SUNCC="no"
4443 fi
4444
4445 { $as_echo "$as_me:$LINENO: checking whether __INTEL_COMPILER is declared" >&5
4446 $as_echo_n "checking whether __INTEL_COMPILER is declared... " >&6; }
4447 if test "${ac_cv_have_decl___INTEL_COMPILER+set}" = set; then
4448 $as_echo_n "(cached) " >&6
4449 else
4450 cat >conftest.$ac_ext <<_ACEOF
4451 /* confdefs.h. */
4452 _ACEOF
4453 cat confdefs.h >>conftest.$ac_ext
4454 cat >>conftest.$ac_ext <<_ACEOF
4455 /* end confdefs.h. */
4456 $ac_includes_default
4457 int
4458 main ()
4459 {
4460 #ifndef __INTEL_COMPILER
4461 (void) __INTEL_COMPILER;
4462 #endif
4463
4464 ;
4465 return 0;
4466 }
4467 _ACEOF
4468 rm -f conftest.$ac_objext
4469 if { (ac_try="$ac_compile"
4470 case "(($ac_try" in
4471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4472 *) ac_try_echo=$ac_try;;
4473 esac
4474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4475 $as_echo "$ac_try_echo") >&5
4476 (eval "$ac_compile") 2>conftest.er1
4477 ac_status=$?
4478 grep -v '^ *+' conftest.er1 >conftest.err
4479 rm -f conftest.er1
4480 cat conftest.err >&5
4481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482 (exit $ac_status); } && {
4483 test -z "$ac_c_werror_flag" ||
4484 test ! -s conftest.err
4485 } && test -s conftest.$ac_objext; then
4486 ac_cv_have_decl___INTEL_COMPILER=yes
4487 else
4488 $as_echo "$as_me: failed program was:" >&5
4489 sed 's/^/| /' conftest.$ac_ext >&5
4490
4491 ac_cv_have_decl___INTEL_COMPILER=no
4492 fi
4493
4494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4495 fi
4496 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___INTEL_COMPILER" >&5
4497 $as_echo "$ac_cv_have_decl___INTEL_COMPILER" >&6; }
4498 if test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then
4499 INTELCC="yes"
4500 else
4501 INTELCC="no"
4502 fi
4503
4504 if test "x$GCC" = xyes ; then
4505 STRICT_CFLAGS="-pedantic -Werror"
4506 elif test "x$SUNCC" = "xyes"; then
4507 STRICT_CFLAGS="-errwarn"
4508 elif test "x$INTELCC" = "xyes"; then
4509 STRICT_CFLAGS="-Werror"
4510 fi
4511 fi
4512 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
4513
4514
4515
4516
4517 cat >>confdefs.h <<_ACEOF
4518 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
4519 _ACEOF
4520
4521 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
4522 if test "x$PVM" = "x"; then
4523 PVM="0"
4524 fi
4525
4526 cat >>confdefs.h <<_ACEOF
4527 #define PACKAGE_VERSION_MINOR $PVM
4528 _ACEOF
4529
4530 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
4531 if test "x$PVP" = "x"; then
4532 PVP="0"
4533 fi
4534
4535 cat >>confdefs.h <<_ACEOF
4536 #define PACKAGE_VERSION_PATCHLEVEL $PVP
4537 _ACEOF
4538
4539
4540
4541 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
4542 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
4543 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
4544 echo 'git directory not found: installing possibly empty changelog.' >&2)"
4545
4546
4547
4548
4549 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
4550 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
4551 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
4552 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
4553 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
4554
4555
4556
4557
4558
4559
4560 if test x$APP_MAN_SUFFIX = x ; then
4561 APP_MAN_SUFFIX=1
4562 fi
4563 if test x$APP_MAN_DIR = x ; then
4564 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
4565 fi
4566
4567 if test x$LIB_MAN_SUFFIX = x ; then
4568 LIB_MAN_SUFFIX=3
4569 fi
4570 if test x$LIB_MAN_DIR = x ; then
4571 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
4572 fi
4573
4574 if test x$FILE_MAN_SUFFIX = x ; then
4575 case $host_os in
4576 solaris*) FILE_MAN_SUFFIX=4 ;;
4577 *) FILE_MAN_SUFFIX=5 ;;
4578 esac
4579 fi
4580 if test x$FILE_MAN_DIR = x ; then
4581 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
4582 fi
4583
4584 if test x$MISC_MAN_SUFFIX = x ; then
4585 case $host_os in
4586 solaris*) MISC_MAN_SUFFIX=5 ;;
4587 *) MISC_MAN_SUFFIX=7 ;;
4588 esac
4589 fi
4590 if test x$MISC_MAN_DIR = x ; then
4591 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
4592 fi
4593
4594 if test x$DRIVER_MAN_SUFFIX = x ; then
4595 case $host_os in
4596 solaris*) DRIVER_MAN_SUFFIX=7 ;;
4597 *) DRIVER_MAN_SUFFIX=4 ;;
4598 esac
4599 fi
4600 if test x$DRIVER_MAN_DIR = x ; then
4601 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
4602 fi
4603
4604 if test x$ADMIN_MAN_SUFFIX = x ; then
4605 case $host_os in
4606 solaris*) ADMIN_MAN_SUFFIX=1m ;;
4607 *) ADMIN_MAN_SUFFIX=8 ;;
4608 esac
4609 fi
4610 if test x$ADMIN_MAN_DIR = x ; then
4611 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
4612 fi
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628 XORG_MAN_PAGE="X Version 11"
4629
4630 MAN_SUBSTS="\
4631 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4632 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4633 -e 's|__xservername__|Xorg|g' \
4634 -e 's|__xconfigfile__|xorg.conf|g' \
4635 -e 's|__projectroot__|\$(prefix)|g' \
4636 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
4637 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
4638 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
4639 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
4640 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
4641 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
4642
4643
4644
4645 # Check whether --enable-silent-rules was given.
4646 if test "${enable_silent_rules+set}" = set; then
4647 enableval=$enable_silent_rules;
4648 fi
4649
4650 case $enable_silent_rules in
4651 yes) AM_DEFAULT_VERBOSITY=0;;
4652 no) AM_DEFAULT_VERBOSITY=1;;
4653 *) AM_DEFAULT_VERBOSITY=0;;
4654 esac
4655 AM_BACKSLASH='\'
4656
4657
4658
4659 ac_aux_dir=
4660 for ac_dir in . "$srcdir"/.; do
4661 if test -f "$ac_dir/install-sh"; then
4662 ac_aux_dir=$ac_dir
4663 ac_install_sh="$ac_aux_dir/install-sh -c"
4664 break
4665 elif test -f "$ac_dir/install.sh"; then
4666 ac_aux_dir=$ac_dir
4667 ac_install_sh="$ac_aux_dir/install.sh -c"
4668 break
4669 elif test -f "$ac_dir/shtool"; then
4670 ac_aux_dir=$ac_dir
4671 ac_install_sh="$ac_aux_dir/shtool install -c"
4672 break
4673 fi
4674 done
4675 if test -z "$ac_aux_dir"; then
4676 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
4677 $as_echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
4678 { (exit 1); exit 1; }; }
4679 fi
4680
4681 # These three variables are undocumented and unsupported,
4682 # and are intended to be withdrawn in a future Autoconf release.
4683 # They can cause serious problems if a builder's source tree is in a directory
4684 # whose full name contains unusual characters.
4685 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4686 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4687 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4688
4689
4690
4691 # Initialize Automake
4692 am__api_version='1.11'
4693
4694 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4695 $as_echo_n "checking whether build environment is sane... " >&6; }
4696 # Just in case
4697 sleep 1
4698 echo timestamp > conftest.file
4699 # Reject unsafe characters in $srcdir or the absolute working directory
4700 # name. Accept space and tab only in the latter.
4701 am_lf='
4702 '
4703 case `pwd` in
4704 *[\\\"\#\$\&\'\`$am_lf]*)
4705 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
4706 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
4707 { (exit 1); exit 1; }; };;
4708 esac
4709 case $srcdir in
4710 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4711 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
4712 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
4713 { (exit 1); exit 1; }; };;
4714 esac
4715
4716 # Do `set' in a subshell so we don't clobber the current shell's
4717 # arguments. Must try -L first in case configure is actually a
4718 # symlink; some systems play weird games with the mod time of symlinks
4719 # (eg FreeBSD returns the mod time of the symlink's containing
4720 # directory).
4721 if (
4722 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4723 if test "$*" = "X"; then
4724 # -L didn't work.
4725 set X `ls -t "$srcdir/configure" conftest.file`
4726 fi
4727 rm -f conftest.file
4728 if test "$*" != "X $srcdir/configure conftest.file" \
4729 && test "$*" != "X conftest.file $srcdir/configure"; then
4730
4731 # If neither matched, then we have a broken ls. This can happen
4732 # if, for instance, CONFIG_SHELL is bash and it inherits a
4733 # broken ls alias from the environment. This has actually
4734 # happened. Such a system could not be considered "sane".
4735 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
4736 alias in your environment" >&5
4737 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
4738 alias in your environment" >&2;}
4739 { (exit 1); exit 1; }; }
4740 fi
4741
4742 test "$2" = conftest.file
4743 )
4744 then
4745 # Ok.
4746 :
4747 else
4748 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4749 Check your system clock" >&5
4750 $as_echo "$as_me: error: newly created file is older than distributed files!
4751 Check your system clock" >&2;}
4752 { (exit 1); exit 1; }; }
4753 fi
4754 { $as_echo "$as_me:$LINENO: result: yes" >&5
4755 $as_echo "yes" >&6; }
4756 test "$program_prefix" != NONE &&
4757 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4758 # Use a double $ so make ignores it.
4759 test "$program_suffix" != NONE &&
4760 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4761 # Double any \ or $.
4762 # By default was `s,x,x', remove it if useless.
4763 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4764 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4765
4766 # expand $ac_aux_dir to an absolute path
4767 am_aux_dir=`cd $ac_aux_dir && pwd`
4768
4769 if test x"${MISSING+set}" != xset; then
4770 case $am_aux_dir in
4771 *\ * | *\ *)
4772 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4773 *)
4774 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4775 esac
4776 fi
4777 # Use eval to expand $SHELL
4778 if eval "$MISSING --run true"; then
4779 am_missing_run="$MISSING --run "
4780 else
4781 am_missing_run=
4782 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4783 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4784 fi
4785
4786 if test x"${install_sh}" != xset; then
4787 case $am_aux_dir in
4788 *\ * | *\ *)
4789 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4790 *)
4791 install_sh="\${SHELL} $am_aux_dir/install-sh"
4792 esac
4793 fi
4794
4795 # Installed binaries are usually stripped using `strip' when the user
4796 # run `make install-strip'. However `strip' might not be the right
4797 # tool to use in cross-compilation environments, therefore Automake
4798 # will honor the `STRIP' environment variable to overrule this program.
4799 if test "$cross_compiling" != no; then
4800 if test -n "$ac_tool_prefix"; then
4801 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4802 set dummy ${ac_tool_prefix}strip; ac_word=$2
4803 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4804 $as_echo_n "checking for $ac_word... " >&6; }
4805 if test "${ac_cv_prog_STRIP+set}" = set; then
4806 $as_echo_n "(cached) " >&6
4807 else
4808 if test -n "$STRIP"; then
4809 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4810 else
4811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4812 for as_dir in $PATH
4813 do
4814 IFS=$as_save_IFS
4815 test -z "$as_dir" && as_dir=.
4816 for ac_exec_ext in '' $ac_executable_extensions; do
4817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4818 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4819 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4820 break 2
4821 fi
4822 done
4823 done
4824 IFS=$as_save_IFS
4825
4826 fi
4827 fi
4828 STRIP=$ac_cv_prog_STRIP
4829 if test -n "$STRIP"; then
4830 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
4831 $as_echo "$STRIP" >&6; }
4832 else
4833 { $as_echo "$as_me:$LINENO: result: no" >&5
4834 $as_echo "no" >&6; }
4835 fi
4836
4837
4838 fi
4839 if test -z "$ac_cv_prog_STRIP"; then
4840 ac_ct_STRIP=$STRIP
4841 # Extract the first word of "strip", so it can be a program name with args.
4842 set dummy strip; ac_word=$2
4843 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4844 $as_echo_n "checking for $ac_word... " >&6; }
4845 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4846 $as_echo_n "(cached) " >&6
4847 else
4848 if test -n "$ac_ct_STRIP"; then
4849 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4850 else
4851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4852 for as_dir in $PATH
4853 do
4854 IFS=$as_save_IFS
4855 test -z "$as_dir" && as_dir=.
4856 for ac_exec_ext in '' $ac_executable_extensions; do
4857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4858 ac_cv_prog_ac_ct_STRIP="strip"
4859 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4860 break 2
4861 fi
4862 done
4863 done
4864 IFS=$as_save_IFS
4865
4866 fi
4867 fi
4868 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4869 if test -n "$ac_ct_STRIP"; then
4870 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4871 $as_echo "$ac_ct_STRIP" >&6; }
4872 else
4873 { $as_echo "$as_me:$LINENO: result: no" >&5
4874 $as_echo "no" >&6; }
4875 fi
4876
4877 if test "x$ac_ct_STRIP" = x; then
4878 STRIP=":"
4879 else
4880 case $cross_compiling:$ac_tool_warned in
4881 yes:)
4882 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4883 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4884 ac_tool_warned=yes ;;
4885 esac
4886 STRIP=$ac_ct_STRIP
4887 fi
4888 else
4889 STRIP="$ac_cv_prog_STRIP"
4890 fi
4891
4892 fi
4893 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4894
4895 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
4896 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4897 if test -z "$MKDIR_P"; then
4898 if test "${ac_cv_path_mkdir+set}" = set; then
4899 $as_echo_n "(cached) " >&6
4900 else
4901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4902 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4903 do
4904 IFS=$as_save_IFS
4905 test -z "$as_dir" && as_dir=.
4906 for ac_prog in mkdir gmkdir; do
4907 for ac_exec_ext in '' $ac_executable_extensions; do
4908 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4909 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4910 'mkdir (GNU coreutils) '* | \
4911 'mkdir (coreutils) '* | \
4912 'mkdir (fileutils) '4.1*)
4913 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4914 break 3;;
4915 esac
4916 done
4917 done
4918 done
4919 IFS=$as_save_IFS
4920
4921 fi
4922
4923 if test "${ac_cv_path_mkdir+set}" = set; then
4924 MKDIR_P="$ac_cv_path_mkdir -p"
4925 else
4926 # As a last resort, use the slow shell script. Don't cache a
4927 # value for MKDIR_P within a source directory, because that will
4928 # break other packages using the cache if that directory is
4929 # removed, or if the value is a relative name.
4930 test -d ./--version && rmdir ./--version
4931 MKDIR_P="$ac_install_sh -d"
4932 fi
4933 fi
4934 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
4935 $as_echo "$MKDIR_P" >&6; }
4936
4937 mkdir_p="$MKDIR_P"
4938 case $mkdir_p in
4939 [\\/$]* | ?:[\\/]*) ;;
4940 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4941 esac
4942
4943 for ac_prog in gawk mawk nawk awk
4944 do
4945 # Extract the first word of "$ac_prog", so it can be a program name with args.
4946 set dummy $ac_prog; ac_word=$2
4947 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4948 $as_echo_n "checking for $ac_word... " >&6; }
4949 if test "${ac_cv_prog_AWK+set}" = set; then
4950 $as_echo_n "(cached) " >&6
4951 else
4952 if test -n "$AWK"; then
4953 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4954 else
4955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4956 for as_dir in $PATH
4957 do
4958 IFS=$as_save_IFS
4959 test -z "$as_dir" && as_dir=.
4960 for ac_exec_ext in '' $ac_executable_extensions; do
4961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4962 ac_cv_prog_AWK="$ac_prog"
4963 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4964 break 2
4965 fi
4966 done
4967 done
4968 IFS=$as_save_IFS
4969
4970 fi
4971 fi
4972 AWK=$ac_cv_prog_AWK
4973 if test -n "$AWK"; then
4974 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
4975 $as_echo "$AWK" >&6; }
4976 else
4977 { $as_echo "$as_me:$LINENO: result: no" >&5
4978 $as_echo "no" >&6; }
4979 fi
4980
4981
4982 test -n "$AWK" && break
4983 done
4984
4985 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4986 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4987 set x ${MAKE-make}
4988 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4989 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4990 $as_echo_n "(cached) " >&6
4991 else
4992 cat >conftest.make <<\_ACEOF
4993 SHELL = /bin/sh
4994 all:
4995 @echo '@@@%%%=$(MAKE)=@@@%%%'
4996 _ACEOF
4997 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4998 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4999 *@@@%%%=?*=@@@%%%*)
5000 eval ac_cv_prog_make_${ac_make}_set=yes;;
5001 *)
5002 eval ac_cv_prog_make_${ac_make}_set=no;;
5003 esac
5004 rm -f conftest.make
5005 fi
5006 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5007 { $as_echo "$as_me:$LINENO: result: yes" >&5
5008 $as_echo "yes" >&6; }
5009 SET_MAKE=
5010 else
5011 { $as_echo "$as_me:$LINENO: result: no" >&5
5012 $as_echo "no" >&6; }
5013 SET_MAKE="MAKE=${MAKE-make}"
5014 fi
5015
5016 rm -rf .tst 2>/dev/null
5017 mkdir .tst 2>/dev/null
5018 if test -d .tst; then
5019 am__leading_dot=.
5020 else
5021 am__leading_dot=_
5022 fi
5023 rmdir .tst 2>/dev/null
5024
5025 DEPDIR="${am__leading_dot}deps"
5026
5027 ac_config_commands="$ac_config_commands depfiles"
5028
5029
5030 am_make=${MAKE-make}
5031 cat > confinc << 'END'
5032 am__doit:
5033 @echo this is the am__doit target
5034 .PHONY: am__doit
5035 END
5036 # If we don't find an include directive, just comment out the code.
5037 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
5038 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5039 am__include="#"
5040 am__quote=
5041 _am_result=none
5042 # First try GNU make style include.
5043 echo "include confinc" > confmf
5044 # Ignore all kinds of additional output from `make'.
5045 case `$am_make -s -f confmf 2> /dev/null` in #(
5046 *the\ am__doit\ target*)
5047 am__include=include
5048 am__quote=
5049 _am_result=GNU
5050 ;;
5051 esac
5052 # Now try BSD make style include.
5053 if test "$am__include" = "#"; then
5054 echo '.include "confinc"' > confmf
5055 case `$am_make -s -f confmf 2> /dev/null` in #(
5056 *the\ am__doit\ target*)
5057 am__include=.include
5058 am__quote="\""
5059 _am_result=BSD
5060 ;;
5061 esac
5062 fi
5063
5064
5065 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
5066 $as_echo "$_am_result" >&6; }
5067 rm -f confinc confmf
5068
5069 # Check whether --enable-dependency-tracking was given.
5070 if test "${enable_dependency_tracking+set}" = set; then
5071 enableval=$enable_dependency_tracking;
5072 fi
5073
5074 if test "x$enable_dependency_tracking" != xno; then
5075 am_depcomp="$ac_aux_dir/depcomp"
5076 AMDEPBACKSLASH='\'
5077 fi
5078 if test "x$enable_dependency_tracking" != xno; then
5079 AMDEP_TRUE=
5080 AMDEP_FALSE='#'
5081 else
5082 AMDEP_TRUE='#'
5083 AMDEP_FALSE=
5084 fi
5085
5086
5087 if test "`cd $srcdir && pwd`" != "`pwd`"; then
5088 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5089 # is not polluted with repeated "-I."
5090 am__isrc=' -I$(srcdir)'
5091 # test to see if srcdir already configured
5092 if test -f $srcdir/config.status; then
5093 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5094 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5095 { (exit 1); exit 1; }; }
5096 fi
5097 fi
5098
5099 # test whether we have cygpath
5100 if test -z "$CYGPATH_W"; then
5101 if (cygpath --version) >/dev/null 2>/dev/null; then
5102 CYGPATH_W='cygpath -w'
5103 else
5104 CYGPATH_W=echo
5105 fi
5106 fi
5107
5108
5109 # Define the identity of the package.
5110 PACKAGE='xf86-video-ati'
5111 VERSION='6.14.2'
5112
5113
5114 cat >>confdefs.h <<_ACEOF
5115 #define PACKAGE "$PACKAGE"
5116 _ACEOF
5117
5118
5119 cat >>confdefs.h <<_ACEOF
5120 #define VERSION "$VERSION"
5121 _ACEOF
5122
5123 # Some tools Automake needs.
5124
5125 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5126
5127
5128 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5129
5130
5131 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5132
5133
5134 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5135
5136
5137 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5138
5139 # We need awk for the "check" target. The system "awk" is bad on
5140 # some platforms.
5141 # Always define AMTAR for backward compatibility.
5142
5143 AMTAR=${AMTAR-"${am_missing_run}tar"}
5144
5145 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5146
5147
5148
5149
5150 depcc="$CC" am_compiler_list=
5151
5152 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5153 $as_echo_n "checking dependency style of $depcc... " >&6; }
5154 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5155 $as_echo_n "(cached) " >&6
5156 else
5157 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5158 # We make a subdir and do the tests there. Otherwise we can end up
5159 # making bogus files that we don't know about and never remove. For
5160 # instance it was reported that on HP-UX the gcc test will end up
5161 # making a dummy file named `D' -- because `-MD' means `put the output
5162 # in D'.
5163 mkdir conftest.dir
5164 # Copy depcomp to subdir because otherwise we won't find it if we're
5165 # using a relative directory.
5166 cp "$am_depcomp" conftest.dir
5167 cd conftest.dir
5168 # We will build objects and dependencies in a subdirectory because
5169 # it helps to detect inapplicable dependency modes. For instance
5170 # both Tru64's cc and ICC support -MD to output dependencies as a
5171 # side effect of compilation, but ICC will put the dependencies in
5172 # the current directory while Tru64 will put them in the object
5173 # directory.
5174 mkdir sub
5175
5176 am_cv_CC_dependencies_compiler_type=none
5177 if test "$am_compiler_list" = ""; then
5178 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5179 fi
5180 am__universal=false
5181 case " $depcc " in #(
5182 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5183 esac
5184
5185 for depmode in $am_compiler_list; do
5186 # Setup a source with many dependencies, because some compilers
5187 # like to wrap large dependency lists on column 80 (with \), and
5188 # we should not choose a depcomp mode which is confused by this.
5189 #
5190 # We need to recreate these files for each test, as the compiler may
5191 # overwrite some of them when testing with obscure command lines.
5192 # This happens at least with the AIX C compiler.
5193 : > sub/conftest.c
5194 for i in 1 2 3 4 5 6; do
5195 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5196 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5197 # Solaris 8's {/usr,}/bin/sh.
5198 touch sub/conftst$i.h
5199 done
5200 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5201
5202 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5203 # mode. It turns out that the SunPro C++ compiler does not properly
5204 # handle `-M -o', and we need to detect this. Also, some Intel
5205 # versions had trouble with output in subdirs
5206 am__obj=sub/conftest.${OBJEXT-o}
5207 am__minus_obj="-o $am__obj"
5208 case $depmode in
5209 gcc)
5210 # This depmode causes a compiler race in universal mode.
5211 test "$am__universal" = false || continue
5212 ;;
5213 nosideeffect)
5214 # after this tag, mechanisms are not by side-effect, so they'll
5215 # only be used when explicitly requested
5216 if test "x$enable_dependency_tracking" = xyes; then
5217 continue
5218 else
5219 break
5220 fi
5221 ;;
5222 msvisualcpp | msvcmsys)
5223 # This compiler won't grok `-c -o', but also, the minuso test has
5224 # not run yet. These depmodes are late enough in the game, and
5225 # so weak that their functioning should not be impacted.
5226 am__obj=conftest.${OBJEXT-o}
5227 am__minus_obj=
5228 ;;
5229 none) break ;;
5230 esac
5231 if depmode=$depmode \
5232 source=sub/conftest.c object=$am__obj \
5233 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5234 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5235 >/dev/null 2>conftest.err &&
5236 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5237 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5238 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5239 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5240 # icc doesn't choke on unknown options, it will just issue warnings
5241 # or remarks (even with -Werror). So we grep stderr for any message
5242 # that says an option was ignored or not supported.
5243 # When given -MP, icc 7.0 and 7.1 complain thusly:
5244 # icc: Command line warning: ignoring option '-M'; no argument required
5245 # The diagnosis changed in icc 8.0:
5246 # icc: Command line remark: option '-MP' not supported
5247 if (grep 'ignoring option' conftest.err ||
5248 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5249 am_cv_CC_dependencies_compiler_type=$depmode
5250 break
5251 fi
5252 fi
5253 done
5254
5255 cd ..
5256 rm -rf conftest.dir
5257 else
5258 am_cv_CC_dependencies_compiler_type=none
5259 fi
5260
5261 fi
5262 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5263 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5264 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5265
5266 if
5267 test "x$enable_dependency_tracking" != xno \
5268 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5269 am__fastdepCC_TRUE=
5270 am__fastdepCC_FALSE='#'
5271 else
5272 am__fastdepCC_TRUE='#'
5273 am__fastdepCC_FALSE=
5274 fi
5275
5276
5277
5278 # Check whether --enable-largefile was given.
5279 if test "${enable_largefile+set}" = set; then
5280 enableval=$enable_largefile;
5281 fi
5282
5283 if test "$enable_largefile" != no; then
5284
5285 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5286 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5287 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5288 $as_echo_n "(cached) " >&6
5289 else
5290 ac_cv_sys_largefile_CC=no
5291 if test "$GCC" != yes; then
5292 ac_save_CC=$CC
5293 while :; do
5294 # IRIX 6.2 and later do not support large files by default,
5295 # so use the C compiler's -n32 option if that helps.
5296 cat >conftest.$ac_ext <<_ACEOF
5297 /* confdefs.h. */
5298 _ACEOF
5299 cat confdefs.h >>conftest.$ac_ext
5300 cat >>conftest.$ac_ext <<_ACEOF
5301 /* end confdefs.h. */
5302 #include <sys/types.h>
5303 /* Check that off_t can represent 2**63 - 1 correctly.
5304 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5305 since some C++ compilers masquerading as C compilers
5306 incorrectly reject 9223372036854775807. */
5307 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5308 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5309 && LARGE_OFF_T % 2147483647 == 1)
5310 ? 1 : -1];
5311 int
5312 main ()
5313 {
5314
5315 ;
5316 return 0;
5317 }
5318 _ACEOF
5319 rm -f conftest.$ac_objext
5320 if { (ac_try="$ac_compile"
5321 case "(($ac_try" in
5322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5323 *) ac_try_echo=$ac_try;;
5324 esac
5325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5326 $as_echo "$ac_try_echo") >&5
5327 (eval "$ac_compile") 2>conftest.er1
5328 ac_status=$?
5329 grep -v '^ *+' conftest.er1 >conftest.err
5330 rm -f conftest.er1
5331 cat conftest.err >&5
5332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333 (exit $ac_status); } && {
5334 test -z "$ac_c_werror_flag" ||
5335 test ! -s conftest.err
5336 } && test -s conftest.$ac_objext; then
5337 break
5338 else
5339 $as_echo "$as_me: failed program was:" >&5
5340 sed 's/^/| /' conftest.$ac_ext >&5
5341
5342
5343 fi
5344
5345 rm -f core conftest.err conftest.$ac_objext
5346 CC="$CC -n32"
5347 rm -f conftest.$ac_objext
5348 if { (ac_try="$ac_compile"
5349 case "(($ac_try" in
5350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5351 *) ac_try_echo=$ac_try;;
5352 esac
5353 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5354 $as_echo "$ac_try_echo") >&5
5355 (eval "$ac_compile") 2>conftest.er1
5356 ac_status=$?
5357 grep -v '^ *+' conftest.er1 >conftest.err
5358 rm -f conftest.er1
5359 cat conftest.err >&5
5360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361 (exit $ac_status); } && {
5362 test -z "$ac_c_werror_flag" ||
5363 test ! -s conftest.err
5364 } && test -s conftest.$ac_objext; then
5365 ac_cv_sys_largefile_CC=' -n32'; break
5366 else
5367 $as_echo "$as_me: failed program was:" >&5
5368 sed 's/^/| /' conftest.$ac_ext >&5
5369
5370
5371 fi
5372
5373 rm -f core conftest.err conftest.$ac_objext
5374 break
5375 done
5376 CC=$ac_save_CC
5377 rm -f conftest.$ac_ext
5378 fi
5379 fi
5380 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5381 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5382 if test "$ac_cv_sys_largefile_CC" != no; then
5383 CC=$CC$ac_cv_sys_largefile_CC
5384 fi
5385
5386 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5387 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5388 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5389 $as_echo_n "(cached) " >&6
5390 else
5391 while :; do
5392 cat >conftest.$ac_ext <<_ACEOF
5393 /* confdefs.h. */
5394 _ACEOF
5395 cat confdefs.h >>conftest.$ac_ext
5396 cat >>conftest.$ac_ext <<_ACEOF
5397 /* end confdefs.h. */
5398 #include <sys/types.h>
5399 /* Check that off_t can represent 2**63 - 1 correctly.
5400 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5401 since some C++ compilers masquerading as C compilers
5402 incorrectly reject 9223372036854775807. */
5403 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5404 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5405 && LARGE_OFF_T % 2147483647 == 1)
5406 ? 1 : -1];
5407 int
5408 main ()
5409 {
5410
5411 ;
5412 return 0;
5413 }
5414 _ACEOF
5415 rm -f conftest.$ac_objext
5416 if { (ac_try="$ac_compile"
5417 case "(($ac_try" in
5418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5419 *) ac_try_echo=$ac_try;;
5420 esac
5421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5422 $as_echo "$ac_try_echo") >&5
5423 (eval "$ac_compile") 2>conftest.er1
5424 ac_status=$?
5425 grep -v '^ *+' conftest.er1 >conftest.err
5426 rm -f conftest.er1
5427 cat conftest.err >&5
5428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5429 (exit $ac_status); } && {
5430 test -z "$ac_c_werror_flag" ||
5431 test ! -s conftest.err
5432 } && test -s conftest.$ac_objext; then
5433 ac_cv_sys_file_offset_bits=no; break
5434 else
5435 $as_echo "$as_me: failed program was:" >&5
5436 sed 's/^/| /' conftest.$ac_ext >&5
5437
5438
5439 fi
5440
5441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5442 cat >conftest.$ac_ext <<_ACEOF
5443 /* confdefs.h. */
5444 _ACEOF
5445 cat confdefs.h >>conftest.$ac_ext
5446 cat >>conftest.$ac_ext <<_ACEOF
5447 /* end confdefs.h. */
5448 #define _FILE_OFFSET_BITS 64
5449 #include <sys/types.h>
5450 /* Check that off_t can represent 2**63 - 1 correctly.
5451 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5452 since some C++ compilers masquerading as C compilers
5453 incorrectly reject 9223372036854775807. */
5454 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5455 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5456 && LARGE_OFF_T % 2147483647 == 1)
5457 ? 1 : -1];
5458 int
5459 main ()
5460 {
5461
5462 ;
5463 return 0;
5464 }
5465 _ACEOF
5466 rm -f conftest.$ac_objext
5467 if { (ac_try="$ac_compile"
5468 case "(($ac_try" in
5469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5470 *) ac_try_echo=$ac_try;;
5471 esac
5472 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5473 $as_echo "$ac_try_echo") >&5
5474 (eval "$ac_compile") 2>conftest.er1
5475 ac_status=$?
5476 grep -v '^ *+' conftest.er1 >conftest.err
5477 rm -f conftest.er1
5478 cat conftest.err >&5
5479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5480 (exit $ac_status); } && {
5481 test -z "$ac_c_werror_flag" ||
5482 test ! -s conftest.err
5483 } && test -s conftest.$ac_objext; then
5484 ac_cv_sys_file_offset_bits=64; break
5485 else
5486 $as_echo "$as_me: failed program was:" >&5
5487 sed 's/^/| /' conftest.$ac_ext >&5
5488
5489
5490 fi
5491
5492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5493 ac_cv_sys_file_offset_bits=unknown
5494 break
5495 done
5496 fi
5497 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5498 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5499 case $ac_cv_sys_file_offset_bits in #(
5500 no | unknown) ;;
5501 *)
5502 cat >>confdefs.h <<_ACEOF
5503 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5504 _ACEOF
5505 ;;
5506 esac
5507 rm -rf conftest*
5508 if test $ac_cv_sys_file_offset_bits = unknown; then
5509 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5510 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5511 if test "${ac_cv_sys_large_files+set}" = set; then
5512 $as_echo_n "(cached) " >&6
5513 else
5514 while :; do
5515 cat >conftest.$ac_ext <<_ACEOF
5516 /* confdefs.h. */
5517 _ACEOF
5518 cat confdefs.h >>conftest.$ac_ext
5519 cat >>conftest.$ac_ext <<_ACEOF
5520 /* end confdefs.h. */
5521 #include <sys/types.h>
5522 /* Check that off_t can represent 2**63 - 1 correctly.
5523 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5524 since some C++ compilers masquerading as C compilers
5525 incorrectly reject 9223372036854775807. */
5526 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5527 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5528 && LARGE_OFF_T % 2147483647 == 1)
5529 ? 1 : -1];
5530 int
5531 main ()
5532 {
5533
5534 ;
5535 return 0;
5536 }
5537 _ACEOF
5538 rm -f conftest.$ac_objext
5539 if { (ac_try="$ac_compile"
5540 case "(($ac_try" in
5541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5542 *) ac_try_echo=$ac_try;;
5543 esac
5544 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5545 $as_echo "$ac_try_echo") >&5
5546 (eval "$ac_compile") 2>conftest.er1
5547 ac_status=$?
5548 grep -v '^ *+' conftest.er1 >conftest.err
5549 rm -f conftest.er1
5550 cat conftest.err >&5
5551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552 (exit $ac_status); } && {
5553 test -z "$ac_c_werror_flag" ||
5554 test ! -s conftest.err
5555 } && test -s conftest.$ac_objext; then
5556 ac_cv_sys_large_files=no; break
5557 else
5558 $as_echo "$as_me: failed program was:" >&5
5559 sed 's/^/| /' conftest.$ac_ext >&5
5560
5561
5562 fi
5563
5564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5565 cat >conftest.$ac_ext <<_ACEOF
5566 /* confdefs.h. */
5567 _ACEOF
5568 cat confdefs.h >>conftest.$ac_ext
5569 cat >>conftest.$ac_ext <<_ACEOF
5570 /* end confdefs.h. */
5571 #define _LARGE_FILES 1
5572 #include <sys/types.h>
5573 /* Check that off_t can represent 2**63 - 1 correctly.
5574 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5575 since some C++ compilers masquerading as C compilers
5576 incorrectly reject 9223372036854775807. */
5577 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5578 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5579 && LARGE_OFF_T % 2147483647 == 1)
5580 ? 1 : -1];
5581 int
5582 main ()
5583 {
5584
5585 ;
5586 return 0;
5587 }
5588 _ACEOF
5589 rm -f conftest.$ac_objext
5590 if { (ac_try="$ac_compile"
5591 case "(($ac_try" in
5592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5593 *) ac_try_echo=$ac_try;;
5594 esac
5595 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5596 $as_echo "$ac_try_echo") >&5
5597 (eval "$ac_compile") 2>conftest.er1
5598 ac_status=$?
5599 grep -v '^ *+' conftest.er1 >conftest.err
5600 rm -f conftest.er1
5601 cat conftest.err >&5
5602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603 (exit $ac_status); } && {
5604 test -z "$ac_c_werror_flag" ||
5605 test ! -s conftest.err
5606 } && test -s conftest.$ac_objext; then
5607 ac_cv_sys_large_files=1; break
5608 else
5609 $as_echo "$as_me: failed program was:" >&5
5610 sed 's/^/| /' conftest.$ac_ext >&5
5611
5612
5613 fi
5614
5615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5616 ac_cv_sys_large_files=unknown
5617 break
5618 done
5619 fi
5620 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5621 $as_echo "$ac_cv_sys_large_files" >&6; }
5622 case $ac_cv_sys_large_files in #(
5623 no | unknown) ;;
5624 *)
5625 cat >>confdefs.h <<_ACEOF
5626 #define _LARGE_FILES $ac_cv_sys_large_files
5627 _ACEOF
5628 ;;
5629 esac
5630 rm -rf conftest*
5631 fi
5632 fi
5633
5634
5635
5636 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5637 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5638 # Check whether --enable-maintainer-mode was given.
5639 if test "${enable_maintainer_mode+set}" = set; then
5640 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5641 else
5642 USE_MAINTAINER_MODE=no
5643 fi
5644
5645 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5646 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5647 if test $USE_MAINTAINER_MODE = yes; then
5648 MAINTAINER_MODE_TRUE=
5649 MAINTAINER_MODE_FALSE='#'
5650 else
5651 MAINTAINER_MODE_TRUE='#'
5652 MAINTAINER_MODE_FALSE=
5653 fi
5654
5655 MAINT=$MAINTAINER_MODE_TRUE
5656
5657
5658
5659 # Initialize libtool
5660 # Check whether --enable-static was given.
5661 if test "${enable_static+set}" = set; then
5662 enableval=$enable_static; p=${PACKAGE-default}
5663 case $enableval in
5664 yes) enable_static=yes ;;
5665 no) enable_static=no ;;
5666 *)
5667 enable_static=no
5668 # Look at the argument we got. We use all the common list separators.
5669 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5670 for pkg in $enableval; do
5671 IFS="$lt_save_ifs"
5672 if test "X$pkg" = "X$p"; then
5673 enable_static=yes
5674 fi
5675 done
5676 IFS="$lt_save_ifs"
5677 ;;
5678 esac
5679 else
5680 enable_static=no
5681 fi
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691 case `pwd` in
5692 *\ * | *\ *)
5693 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5694 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5695 esac
5696
5697
5698
5699 macro_version='2.2.6b'
5700 macro_revision='1.3017'
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714 ltmain="$ac_aux_dir/ltmain.sh"
5715
5716 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5717 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5718 if test "${ac_cv_path_SED+set}" = set; then
5719 $as_echo_n "(cached) " >&6
5720 else
5721 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5722 for ac_i in 1 2 3 4 5 6 7; do
5723 ac_script="$ac_script$as_nl$ac_script"
5724 done
5725 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5726 $as_unset ac_script || ac_script=
5727 if test -z "$SED"; then
5728 ac_path_SED_found=false
5729 # Loop through the user's path and test for each of PROGNAME-LIST
5730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5731 for as_dir in $PATH
5732 do
5733 IFS=$as_save_IFS
5734 test -z "$as_dir" && as_dir=.
5735 for ac_prog in sed gsed; do
5736 for ac_exec_ext in '' $ac_executable_extensions; do
5737 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5738 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5739 # Check for GNU ac_path_SED and select it if it is found.
5740 # Check for GNU $ac_path_SED
5741 case `"$ac_path_SED" --version 2>&1` in
5742 *GNU*)
5743 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5744 *)
5745 ac_count=0
5746 $as_echo_n 0123456789 >"conftest.in"
5747 while :
5748 do
5749 cat "conftest.in" "conftest.in" >"conftest.tmp"
5750 mv "conftest.tmp" "conftest.in"
5751 cp "conftest.in" "conftest.nl"
5752 $as_echo '' >> "conftest.nl"
5753 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5754 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5755 ac_count=`expr $ac_count + 1`
5756 if test $ac_count -gt ${ac_path_SED_max-0}; then
5757 # Best one so far, save it but keep looking for a better one
5758 ac_cv_path_SED="$ac_path_SED"
5759 ac_path_SED_max=$ac_count
5760 fi
5761 # 10*(2^10) chars as input seems more than enough
5762 test $ac_count -gt 10 && break
5763 done
5764 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5765 esac
5766
5767 $ac_path_SED_found && break 3
5768 done
5769 done
5770 done
5771 IFS=$as_save_IFS
5772 if test -z "$ac_cv_path_SED"; then
5773 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
5774 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5775 { (exit 1); exit 1; }; }
5776 fi
5777 else
5778 ac_cv_path_SED=$SED
5779 fi
5780
5781 fi
5782 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5783 $as_echo "$ac_cv_path_SED" >&6; }
5784 SED="$ac_cv_path_SED"
5785 rm -f conftest.sed
5786
5787 test -z "$SED" && SED=sed
5788 Xsed="$SED -e 1s/^X//"
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
5801 $as_echo_n "checking for fgrep... " >&6; }
5802 if test "${ac_cv_path_FGREP+set}" = set; then
5803 $as_echo_n "(cached) " >&6
5804 else
5805 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5806 then ac_cv_path_FGREP="$GREP -F"
5807 else
5808 if test -z "$FGREP"; then
5809 ac_path_FGREP_found=false
5810 # Loop through the user's path and test for each of PROGNAME-LIST
5811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5812 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5813 do
5814 IFS=$as_save_IFS
5815 test -z "$as_dir" && as_dir=.
5816 for ac_prog in fgrep; do
5817 for ac_exec_ext in '' $ac_executable_extensions; do
5818 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5819 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5820 # Check for GNU ac_path_FGREP and select it if it is found.
5821 # Check for GNU $ac_path_FGREP
5822 case `"$ac_path_FGREP" --version 2>&1` in
5823 *GNU*)
5824 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5825 *)
5826 ac_count=0
5827 $as_echo_n 0123456789 >"conftest.in"
5828 while :
5829 do
5830 cat "conftest.in" "conftest.in" >"conftest.tmp"
5831 mv "conftest.tmp" "conftest.in"
5832 cp "conftest.in" "conftest.nl"
5833 $as_echo 'FGREP' >> "conftest.nl"
5834 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5835 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5836 ac_count=`expr $ac_count + 1`
5837 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5838 # Best one so far, save it but keep looking for a better one
5839 ac_cv_path_FGREP="$ac_path_FGREP"
5840 ac_path_FGREP_max=$ac_count
5841 fi
5842 # 10*(2^10) chars as input seems more than enough
5843 test $ac_count -gt 10 && break
5844 done
5845 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5846 esac
5847
5848 $ac_path_FGREP_found && break 3
5849 done
5850 done
5851 done
5852 IFS=$as_save_IFS
5853 if test -z "$ac_cv_path_FGREP"; then
5854 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5855 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5856 { (exit 1); exit 1; }; }
5857 fi
5858 else
5859 ac_cv_path_FGREP=$FGREP
5860 fi
5861
5862 fi
5863 fi
5864 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5865 $as_echo "$ac_cv_path_FGREP" >&6; }
5866 FGREP="$ac_cv_path_FGREP"
5867
5868
5869 test -z "$GREP" && GREP=grep
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889 # Check whether --with-gnu-ld was given.
5890 if test "${with_gnu_ld+set}" = set; then
5891 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5892 else
5893 with_gnu_ld=no
5894 fi
5895
5896 ac_prog=ld
5897 if test "$GCC" = yes; then
5898 # Check if gcc -print-prog-name=ld gives a path.
5899 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5900 $as_echo_n "checking for ld used by $CC... " >&6; }
5901 case $host in
5902 *-*-mingw*)
5903 # gcc leaves a trailing carriage return which upsets mingw
5904 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5905 *)
5906 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5907 esac
5908 case $ac_prog in
5909 # Accept absolute paths.
5910 [\\/]* | ?:[\\/]*)
5911 re_direlt='/[^/][^/]*/\.\./'
5912 # Canonicalize the pathname of ld
5913 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5914 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5915 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5916 done
5917 test -z "$LD" && LD="$ac_prog"
5918 ;;
5919 "")
5920 # If it fails, then pretend we aren't using GCC.
5921 ac_prog=ld
5922 ;;
5923 *)
5924 # If it is relative, then search for the first ld in PATH.
5925 with_gnu_ld=unknown
5926 ;;
5927 esac
5928 elif test "$with_gnu_ld" = yes; then
5929 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5930 $as_echo_n "checking for GNU ld... " >&6; }
5931 else
5932 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5933 $as_echo_n "checking for non-GNU ld... " >&6; }
5934 fi
5935 if test "${lt_cv_path_LD+set}" = set; then
5936 $as_echo_n "(cached) " >&6
5937 else
5938 if test -z "$LD"; then
5939 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5940 for ac_dir in $PATH; do
5941 IFS="$lt_save_ifs"
5942 test -z "$ac_dir" && ac_dir=.
5943 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5944 lt_cv_path_LD="$ac_dir/$ac_prog"
5945 # Check to see if the program is GNU ld. I'd rather use --version,
5946 # but apparently some variants of GNU ld only accept -v.
5947 # Break only if it was the GNU/non-GNU ld that we prefer.
5948 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5949 *GNU* | *'with BFD'*)
5950 test "$with_gnu_ld" != no && break
5951 ;;
5952 *)
5953 test "$with_gnu_ld" != yes && break
5954 ;;
5955 esac
5956 fi
5957 done
5958 IFS="$lt_save_ifs"
5959 else
5960 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5961 fi
5962 fi
5963
5964 LD="$lt_cv_path_LD"
5965 if test -n "$LD"; then
5966 { $as_echo "$as_me:$LINENO: result: $LD" >&5
5967 $as_echo "$LD" >&6; }
5968 else
5969 { $as_echo "$as_me:$LINENO: result: no" >&5
5970 $as_echo "no" >&6; }
5971 fi
5972 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5973 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5974 { (exit 1); exit 1; }; }
5975 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5976 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5977 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5978 $as_echo_n "(cached) " >&6
5979 else
5980 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5981 case `$LD -v 2>&1 </dev/null` in
5982 *GNU* | *'with BFD'*)
5983 lt_cv_prog_gnu_ld=yes
5984 ;;
5985 *)
5986 lt_cv_prog_gnu_ld=no
5987 ;;
5988 esac
5989 fi
5990 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5991 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5992 with_gnu_ld=$lt_cv_prog_gnu_ld
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
6003 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6004 if test "${lt_cv_path_NM+set}" = set; then
6005 $as_echo_n "(cached) " >&6
6006 else
6007 if test -n "$NM"; then
6008 # Let the user override the test.
6009 lt_cv_path_NM="$NM"
6010 else
6011 lt_nm_to_check="${ac_tool_prefix}nm"
6012 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6013 lt_nm_to_check="$lt_nm_to_check nm"
6014 fi
6015 for lt_tmp_nm in $lt_nm_to_check; do
6016 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6017 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6018 IFS="$lt_save_ifs"
6019 test -z "$ac_dir" && ac_dir=.
6020 tmp_nm="$ac_dir/$lt_tmp_nm"
6021 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6022 # Check to see if the nm accepts a BSD-compat flag.
6023 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6024 # nm: unknown option "B" ignored
6025 # Tru64's nm complains that /dev/null is an invalid object file
6026 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6027 */dev/null* | *'Invalid file or object type'*)
6028 lt_cv_path_NM="$tmp_nm -B"
6029 break
6030 ;;
6031 *)
6032 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6033 */dev/null*)
6034 lt_cv_path_NM="$tmp_nm -p"
6035 break
6036 ;;
6037 *)
6038 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6039 continue # so that we can try to find one that supports BSD flags
6040 ;;
6041 esac
6042 ;;
6043 esac
6044 fi
6045 done
6046 IFS="$lt_save_ifs"
6047 done
6048 : ${lt_cv_path_NM=no}
6049 fi
6050 fi
6051 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6052 $as_echo "$lt_cv_path_NM" >&6; }
6053 if test "$lt_cv_path_NM" != "no"; then
6054 NM="$lt_cv_path_NM"
6055 else
6056 # Didn't find any BSD compatible name lister, look for dumpbin.
6057 if test -n "$ac_tool_prefix"; then
6058 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6059 do
6060 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6061 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6062 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6063 $as_echo_n "checking for $ac_word... " >&6; }
6064 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
6065 $as_echo_n "(cached) " >&6
6066 else
6067 if test -n "$DUMPBIN"; then
6068 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6069 else
6070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6071 for as_dir in $PATH
6072 do
6073 IFS=$as_save_IFS
6074 test -z "$as_dir" && as_dir=.
6075 for ac_exec_ext in '' $ac_executable_extensions; do
6076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6077 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6078 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6079 break 2
6080 fi
6081 done
6082 done
6083 IFS=$as_save_IFS
6084
6085 fi
6086 fi
6087 DUMPBIN=$ac_cv_prog_DUMPBIN
6088 if test -n "$DUMPBIN"; then
6089 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
6090 $as_echo "$DUMPBIN" >&6; }
6091 else
6092 { $as_echo "$as_me:$LINENO: result: no" >&5
6093 $as_echo "no" >&6; }
6094 fi
6095
6096
6097 test -n "$DUMPBIN" && break
6098 done
6099 fi
6100 if test -z "$DUMPBIN"; then
6101 ac_ct_DUMPBIN=$DUMPBIN
6102 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6103 do
6104 # Extract the first word of "$ac_prog", so it can be a program name with args.
6105 set dummy $ac_prog; ac_word=$2
6106 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6107 $as_echo_n "checking for $ac_word... " >&6; }
6108 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
6109 $as_echo_n "(cached) " >&6
6110 else
6111 if test -n "$ac_ct_DUMPBIN"; then
6112 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6113 else
6114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6115 for as_dir in $PATH
6116 do
6117 IFS=$as_save_IFS
6118 test -z "$as_dir" && as_dir=.
6119 for ac_exec_ext in '' $ac_executable_extensions; do
6120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6121 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6122 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6123 break 2
6124 fi
6125 done
6126 done
6127 IFS=$as_save_IFS
6128
6129 fi
6130 fi
6131 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6132 if test -n "$ac_ct_DUMPBIN"; then
6133 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
6134 $as_echo "$ac_ct_DUMPBIN" >&6; }
6135 else
6136 { $as_echo "$as_me:$LINENO: result: no" >&5
6137 $as_echo "no" >&6; }
6138 fi
6139
6140
6141 test -n "$ac_ct_DUMPBIN" && break
6142 done
6143
6144 if test "x$ac_ct_DUMPBIN" = x; then
6145 DUMPBIN=":"
6146 else
6147 case $cross_compiling:$ac_tool_warned in
6148 yes:)
6149 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6150 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6151 ac_tool_warned=yes ;;
6152 esac
6153 DUMPBIN=$ac_ct_DUMPBIN
6154 fi
6155 fi
6156
6157
6158 if test "$DUMPBIN" != ":"; then
6159 NM="$DUMPBIN"
6160 fi
6161 fi
6162 test -z "$NM" && NM=nm
6163
6164
6165
6166
6167
6168
6169 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
6170 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6171 if test "${lt_cv_nm_interface+set}" = set; then
6172 $as_echo_n "(cached) " >&6
6173 else
6174 lt_cv_nm_interface="BSD nm"
6175 echo "int some_variable = 0;" > conftest.$ac_ext
6176 (eval echo "\"\$as_me:6176: $ac_compile\"" >&5)
6177 (eval "$ac_compile" 2>conftest.err)
6178 cat conftest.err >&5
6179 (eval echo "\"\$as_me:6179: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6180 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6181 cat conftest.err >&5
6182 (eval echo "\"\$as_me:6182: output\"" >&5)
6183 cat conftest.out >&5
6184 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6185 lt_cv_nm_interface="MS dumpbin"
6186 fi
6187 rm -f conftest*
6188 fi
6189 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
6190 $as_echo "$lt_cv_nm_interface" >&6; }
6191
6192 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6193 $as_echo_n "checking whether ln -s works... " >&6; }
6194 LN_S=$as_ln_s
6195 if test "$LN_S" = "ln -s"; then
6196 { $as_echo "$as_me:$LINENO: result: yes" >&5
6197 $as_echo "yes" >&6; }
6198 else
6199 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6200 $as_echo "no, using $LN_S" >&6; }
6201 fi
6202
6203 # find the maximum length of command line arguments
6204 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6205 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6206 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6207 $as_echo_n "(cached) " >&6
6208 else
6209 i=0
6210 teststring="ABCD"
6211
6212 case $build_os in
6213 msdosdjgpp*)
6214 # On DJGPP, this test can blow up pretty badly due to problems in libc
6215 # (any single argument exceeding 2000 bytes causes a buffer overrun
6216 # during glob expansion). Even if it were fixed, the result of this
6217 # check would be larger than it should be.
6218 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6219 ;;
6220
6221 gnu*)
6222 # Under GNU Hurd, this test is not required because there is
6223 # no limit to the length of command line arguments.
6224 # Libtool will interpret -1 as no limit whatsoever
6225 lt_cv_sys_max_cmd_len=-1;
6226 ;;
6227
6228 cygwin* | mingw* | cegcc*)
6229 # On Win9x/ME, this test blows up -- it succeeds, but takes
6230 # about 5 minutes as the teststring grows exponentially.
6231 # Worse, since 9x/ME are not pre-emptively multitasking,
6232 # you end up with a "frozen" computer, even though with patience
6233 # the test eventually succeeds (with a max line length of 256k).
6234 # Instead, let's just punt: use the minimum linelength reported by
6235 # all of the supported platforms: 8192 (on NT/2K/XP).
6236 lt_cv_sys_max_cmd_len=8192;
6237 ;;
6238
6239 amigaos*)
6240 # On AmigaOS with pdksh, this test takes hours, literally.
6241 # So we just punt and use a minimum line length of 8192.
6242 lt_cv_sys_max_cmd_len=8192;
6243 ;;
6244
6245 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6246 # This has been around since 386BSD, at least. Likely further.
6247 if test -x /sbin/sysctl; then
6248 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6249 elif test -x /usr/sbin/sysctl; then
6250 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6251 else
6252 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6253 fi
6254 # And add a safety zone
6255 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6256 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6257 ;;
6258
6259 interix*)
6260 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6261 lt_cv_sys_max_cmd_len=196608
6262 ;;
6263
6264 osf*)
6265 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6266 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6267 # nice to cause kernel panics so lets avoid the loop below.
6268 # First set a reasonable default.
6269 lt_cv_sys_max_cmd_len=16384
6270 #
6271 if test -x /sbin/sysconfig; then
6272 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6273 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6274 esac
6275 fi
6276 ;;
6277 sco3.2v5*)
6278 lt_cv_sys_max_cmd_len=102400
6279 ;;
6280 sysv5* | sco5v6* | sysv4.2uw2*)
6281 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6282 if test -n "$kargmax"; then
6283 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6284 else
6285 lt_cv_sys_max_cmd_len=32768
6286 fi
6287 ;;
6288 *)
6289 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6290 if test -n "$lt_cv_sys_max_cmd_len"; then
6291 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6292 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6293 else
6294 # Make teststring a little bigger before we do anything with it.
6295 # a 1K string should be a reasonable start.
6296 for i in 1 2 3 4 5 6 7 8 ; do
6297 teststring=$teststring$teststring
6298 done
6299 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6300 # If test is not a shell built-in, we'll probably end up computing a
6301 # maximum length that is only half of the actual maximum length, but
6302 # we can't tell.
6303 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6304 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6305 test $i != 17 # 1/2 MB should be enough
6306 do
6307 i=`expr $i + 1`
6308 teststring=$teststring$teststring
6309 done
6310 # Only check the string length outside the loop.
6311 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6312 teststring=
6313 # Add a significant safety factor because C++ compilers can tack on
6314 # massive amounts of additional arguments before passing them to the
6315 # linker. It appears as though 1/2 is a usable value.
6316 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6317 fi
6318 ;;
6319 esac
6320
6321 fi
6322
6323 if test -n $lt_cv_sys_max_cmd_len ; then
6324 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6325 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6326 else
6327 { $as_echo "$as_me:$LINENO: result: none" >&5
6328 $as_echo "none" >&6; }
6329 fi
6330 max_cmd_len=$lt_cv_sys_max_cmd_len
6331
6332
6333
6334
6335
6336
6337 : ${CP="cp -f"}
6338 : ${MV="mv -f"}
6339 : ${RM="rm -f"}
6340
6341 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6342 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6343 # Try some XSI features
6344 xsi_shell=no
6345 ( _lt_dummy="a/b/c"
6346 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6347 = c,a/b,, \
6348 && eval 'test $(( 1 + 1 )) -eq 2 \
6349 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6350 && xsi_shell=yes
6351 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
6352 $as_echo "$xsi_shell" >&6; }
6353
6354
6355 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6356 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6357 lt_shell_append=no
6358 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6359 >/dev/null 2>&1 \
6360 && lt_shell_append=yes
6361 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6362 $as_echo "$lt_shell_append" >&6; }
6363
6364
6365 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6366 lt_unset=unset
6367 else
6368 lt_unset=false
6369 fi
6370
6371
6372
6373
6374
6375 # test EBCDIC or ASCII
6376 case `echo X|tr X '\101'` in
6377 A) # ASCII based system
6378 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6379 lt_SP2NL='tr \040 \012'
6380 lt_NL2SP='tr \015\012 \040\040'
6381 ;;
6382 *) # EBCDIC based system
6383 lt_SP2NL='tr \100 \n'
6384 lt_NL2SP='tr \r\n \100\100'
6385 ;;
6386 esac
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6397 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6398 if test "${lt_cv_ld_reload_flag+set}" = set; then
6399 $as_echo_n "(cached) " >&6
6400 else
6401 lt_cv_ld_reload_flag='-r'
6402 fi
6403 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6404 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6405 reload_flag=$lt_cv_ld_reload_flag
6406 case $reload_flag in
6407 "" | " "*) ;;
6408 *) reload_flag=" $reload_flag" ;;
6409 esac
6410 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6411 case $host_os in
6412 darwin*)
6413 if test "$GCC" = yes; then
6414 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6415 else
6416 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6417 fi
6418 ;;
6419 esac
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429 if test -n "$ac_tool_prefix"; then
6430 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6431 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6432 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6433 $as_echo_n "checking for $ac_word... " >&6; }
6434 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6435 $as_echo_n "(cached) " >&6
6436 else
6437 if test -n "$OBJDUMP"; then
6438 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6439 else
6440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6441 for as_dir in $PATH
6442 do
6443 IFS=$as_save_IFS
6444 test -z "$as_dir" && as_dir=.
6445 for ac_exec_ext in '' $ac_executable_extensions; do
6446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6447 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6448 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6449 break 2
6450 fi
6451 done
6452 done
6453 IFS=$as_save_IFS
6454
6455 fi
6456 fi
6457 OBJDUMP=$ac_cv_prog_OBJDUMP
6458 if test -n "$OBJDUMP"; then
6459 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6460 $as_echo "$OBJDUMP" >&6; }
6461 else
6462 { $as_echo "$as_me:$LINENO: result: no" >&5
6463 $as_echo "no" >&6; }
6464 fi
6465
6466
6467 fi
6468 if test -z "$ac_cv_prog_OBJDUMP"; then
6469 ac_ct_OBJDUMP=$OBJDUMP
6470 # Extract the first word of "objdump", so it can be a program name with args.
6471 set dummy objdump; ac_word=$2
6472 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6473 $as_echo_n "checking for $ac_word... " >&6; }
6474 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6475 $as_echo_n "(cached) " >&6
6476 else
6477 if test -n "$ac_ct_OBJDUMP"; then
6478 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6479 else
6480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6481 for as_dir in $PATH
6482 do
6483 IFS=$as_save_IFS
6484 test -z "$as_dir" && as_dir=.
6485 for ac_exec_ext in '' $ac_executable_extensions; do
6486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6487 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6488 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6489 break 2
6490 fi
6491 done
6492 done
6493 IFS=$as_save_IFS
6494
6495 fi
6496 fi
6497 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6498 if test -n "$ac_ct_OBJDUMP"; then
6499 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6500 $as_echo "$ac_ct_OBJDUMP" >&6; }
6501 else
6502 { $as_echo "$as_me:$LINENO: result: no" >&5
6503 $as_echo "no" >&6; }
6504 fi
6505
6506 if test "x$ac_ct_OBJDUMP" = x; then
6507 OBJDUMP="false"
6508 else
6509 case $cross_compiling:$ac_tool_warned in
6510 yes:)
6511 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6512 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6513 ac_tool_warned=yes ;;
6514 esac
6515 OBJDUMP=$ac_ct_OBJDUMP
6516 fi
6517 else
6518 OBJDUMP="$ac_cv_prog_OBJDUMP"
6519 fi
6520
6521 test -z "$OBJDUMP" && OBJDUMP=objdump
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6532 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6533 if test "${lt_cv_deplibs_check_method+set}" = set; then
6534 $as_echo_n "(cached) " >&6
6535 else
6536 lt_cv_file_magic_cmd='$MAGIC_CMD'
6537 lt_cv_file_magic_test_file=
6538 lt_cv_deplibs_check_method='unknown'
6539 # Need to set the preceding variable on all platforms that support
6540 # interlibrary dependencies.
6541 # 'none' -- dependencies not supported.
6542 # `unknown' -- same as none, but documents that we really don't know.
6543 # 'pass_all' -- all dependencies passed with no checks.
6544 # 'test_compile' -- check by making test program.
6545 # 'file_magic [[regex]]' -- check by looking for files in library path
6546 # which responds to the $file_magic_cmd with a given extended regex.
6547 # If you have `file' or equivalent on your system and you're not sure
6548 # whether `pass_all' will *always* work, you probably want this one.
6549
6550 case $host_os in
6551 aix[4-9]*)
6552 lt_cv_deplibs_check_method=pass_all
6553 ;;
6554
6555 beos*)
6556 lt_cv_deplibs_check_method=pass_all
6557 ;;
6558
6559 bsdi[45]*)
6560 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6561 lt_cv_file_magic_cmd='/usr/bin/file -L'
6562 lt_cv_file_magic_test_file=/shlib/libc.so
6563 ;;
6564
6565 cygwin*)
6566 # func_win32_libid is a shell function defined in ltmain.sh
6567 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6568 lt_cv_file_magic_cmd='func_win32_libid'
6569 ;;
6570
6571 mingw* | pw32*)
6572 # Base MSYS/MinGW do not provide the 'file' command needed by
6573 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6574 # unless we find 'file', for example because we are cross-compiling.
6575 if ( file / ) >/dev/null 2>&1; then
6576 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6577 lt_cv_file_magic_cmd='func_win32_libid'
6578 else
6579 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6580 lt_cv_file_magic_cmd='$OBJDUMP -f'
6581 fi
6582 ;;
6583
6584 cegcc)
6585 # use the weaker test based on 'objdump'. See mingw*.
6586 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6587 lt_cv_file_magic_cmd='$OBJDUMP -f'
6588 ;;
6589
6590 darwin* | rhapsody*)
6591 lt_cv_deplibs_check_method=pass_all
6592 ;;
6593
6594 freebsd* | dragonfly*)
6595 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6596 case $host_cpu in
6597 i*86 )
6598 # Not sure whether the presence of OpenBSD here was a mistake.
6599 # Let's accept both of them until this is cleared up.
6600 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6601 lt_cv_file_magic_cmd=/usr/bin/file
6602 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6603 ;;
6604 esac
6605 else
6606 lt_cv_deplibs_check_method=pass_all
6607 fi
6608 ;;
6609
6610 gnu*)
6611 lt_cv_deplibs_check_method=pass_all
6612 ;;
6613
6614 hpux10.20* | hpux11*)
6615 lt_cv_file_magic_cmd=/usr/bin/file
6616 case $host_cpu in
6617 ia64*)
6618 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6619 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6620 ;;
6621 hppa*64*)
6622 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]'
6623 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6624 ;;
6625 *)
6626 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6627 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6628 ;;
6629 esac
6630 ;;
6631
6632 interix[3-9]*)
6633 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6634 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6635 ;;
6636
6637 irix5* | irix6* | nonstopux*)
6638 case $LD in
6639 *-32|*"-32 ") libmagic=32-bit;;
6640 *-n32|*"-n32 ") libmagic=N32;;
6641 *-64|*"-64 ") libmagic=64-bit;;
6642 *) libmagic=never-match;;
6643 esac
6644 lt_cv_deplibs_check_method=pass_all
6645 ;;
6646
6647 # This must be Linux ELF.
6648 linux* | k*bsd*-gnu)
6649 lt_cv_deplibs_check_method=pass_all
6650 ;;
6651
6652 netbsd*)
6653 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6654 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6655 else
6656 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6657 fi
6658 ;;
6659
6660 newos6*)
6661 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6662 lt_cv_file_magic_cmd=/usr/bin/file
6663 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6664 ;;
6665
6666 *nto* | *qnx*)
6667 lt_cv_deplibs_check_method=pass_all
6668 ;;
6669
6670 openbsd*)
6671 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6672 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6673 else
6674 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6675 fi
6676 ;;
6677
6678 osf3* | osf4* | osf5*)
6679 lt_cv_deplibs_check_method=pass_all
6680 ;;
6681
6682 rdos*)
6683 lt_cv_deplibs_check_method=pass_all
6684 ;;
6685
6686 solaris*)
6687 lt_cv_deplibs_check_method=pass_all
6688 ;;
6689
6690 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6691 lt_cv_deplibs_check_method=pass_all
6692 ;;
6693
6694 sysv4 | sysv4.3*)
6695 case $host_vendor in
6696 motorola)
6697 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]'
6698 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6699 ;;
6700 ncr)
6701 lt_cv_deplibs_check_method=pass_all
6702 ;;
6703 sequent)
6704 lt_cv_file_magic_cmd='/bin/file'
6705 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6706 ;;
6707 sni)
6708 lt_cv_file_magic_cmd='/bin/file'
6709 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6710 lt_cv_file_magic_test_file=/lib/libc.so
6711 ;;
6712 siemens)
6713 lt_cv_deplibs_check_method=pass_all
6714 ;;
6715 pc)
6716 lt_cv_deplibs_check_method=pass_all
6717 ;;
6718 esac
6719 ;;
6720
6721 tpf*)
6722 lt_cv_deplibs_check_method=pass_all
6723 ;;
6724 esac
6725
6726 fi
6727 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6728 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6729 file_magic_cmd=$lt_cv_file_magic_cmd
6730 deplibs_check_method=$lt_cv_deplibs_check_method
6731 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744 if test -n "$ac_tool_prefix"; then
6745 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6746 set dummy ${ac_tool_prefix}ar; ac_word=$2
6747 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6748 $as_echo_n "checking for $ac_word... " >&6; }
6749 if test "${ac_cv_prog_AR+set}" = set; then
6750 $as_echo_n "(cached) " >&6
6751 else
6752 if test -n "$AR"; then
6753 ac_cv_prog_AR="$AR" # Let the user override the test.
6754 else
6755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6756 for as_dir in $PATH
6757 do
6758 IFS=$as_save_IFS
6759 test -z "$as_dir" && as_dir=.
6760 for ac_exec_ext in '' $ac_executable_extensions; do
6761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6762 ac_cv_prog_AR="${ac_tool_prefix}ar"
6763 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6764 break 2
6765 fi
6766 done
6767 done
6768 IFS=$as_save_IFS
6769
6770 fi
6771 fi
6772 AR=$ac_cv_prog_AR
6773 if test -n "$AR"; then
6774 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6775 $as_echo "$AR" >&6; }
6776 else
6777 { $as_echo "$as_me:$LINENO: result: no" >&5
6778 $as_echo "no" >&6; }
6779 fi
6780
6781
6782 fi
6783 if test -z "$ac_cv_prog_AR"; then
6784 ac_ct_AR=$AR
6785 # Extract the first word of "ar", so it can be a program name with args.
6786 set dummy ar; ac_word=$2
6787 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6788 $as_echo_n "checking for $ac_word... " >&6; }
6789 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6790 $as_echo_n "(cached) " >&6
6791 else
6792 if test -n "$ac_ct_AR"; then
6793 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6794 else
6795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6796 for as_dir in $PATH
6797 do
6798 IFS=$as_save_IFS
6799 test -z "$as_dir" && as_dir=.
6800 for ac_exec_ext in '' $ac_executable_extensions; do
6801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6802 ac_cv_prog_ac_ct_AR="ar"
6803 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6804 break 2
6805 fi
6806 done
6807 done
6808 IFS=$as_save_IFS
6809
6810 fi
6811 fi
6812 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6813 if test -n "$ac_ct_AR"; then
6814 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6815 $as_echo "$ac_ct_AR" >&6; }
6816 else
6817 { $as_echo "$as_me:$LINENO: result: no" >&5
6818 $as_echo "no" >&6; }
6819 fi
6820
6821 if test "x$ac_ct_AR" = x; then
6822 AR="false"
6823 else
6824 case $cross_compiling:$ac_tool_warned in
6825 yes:)
6826 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6827 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6828 ac_tool_warned=yes ;;
6829 esac
6830 AR=$ac_ct_AR
6831 fi
6832 else
6833 AR="$ac_cv_prog_AR"
6834 fi
6835
6836 test -z "$AR" && AR=ar
6837 test -z "$AR_FLAGS" && AR_FLAGS=cru
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849 if test -n "$ac_tool_prefix"; then
6850 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6851 set dummy ${ac_tool_prefix}strip; ac_word=$2
6852 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6853 $as_echo_n "checking for $ac_word... " >&6; }
6854 if test "${ac_cv_prog_STRIP+set}" = set; then
6855 $as_echo_n "(cached) " >&6
6856 else
6857 if test -n "$STRIP"; then
6858 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6859 else
6860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6861 for as_dir in $PATH
6862 do
6863 IFS=$as_save_IFS
6864 test -z "$as_dir" && as_dir=.
6865 for ac_exec_ext in '' $ac_executable_extensions; do
6866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6867 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6868 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6869 break 2
6870 fi
6871 done
6872 done
6873 IFS=$as_save_IFS
6874
6875 fi
6876 fi
6877 STRIP=$ac_cv_prog_STRIP
6878 if test -n "$STRIP"; then
6879 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6880 $as_echo "$STRIP" >&6; }
6881 else
6882 { $as_echo "$as_me:$LINENO: result: no" >&5
6883 $as_echo "no" >&6; }
6884 fi
6885
6886
6887 fi
6888 if test -z "$ac_cv_prog_STRIP"; then
6889 ac_ct_STRIP=$STRIP
6890 # Extract the first word of "strip", so it can be a program name with args.
6891 set dummy strip; ac_word=$2
6892 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6893 $as_echo_n "checking for $ac_word... " >&6; }
6894 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6895 $as_echo_n "(cached) " >&6
6896 else
6897 if test -n "$ac_ct_STRIP"; then
6898 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6899 else
6900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6901 for as_dir in $PATH
6902 do
6903 IFS=$as_save_IFS
6904 test -z "$as_dir" && as_dir=.
6905 for ac_exec_ext in '' $ac_executable_extensions; do
6906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6907 ac_cv_prog_ac_ct_STRIP="strip"
6908 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6909 break 2
6910 fi
6911 done
6912 done
6913 IFS=$as_save_IFS
6914
6915 fi
6916 fi
6917 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6918 if test -n "$ac_ct_STRIP"; then
6919 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6920 $as_echo "$ac_ct_STRIP" >&6; }
6921 else
6922 { $as_echo "$as_me:$LINENO: result: no" >&5
6923 $as_echo "no" >&6; }
6924 fi
6925
6926 if test "x$ac_ct_STRIP" = x; then
6927 STRIP=":"
6928 else
6929 case $cross_compiling:$ac_tool_warned in
6930 yes:)
6931 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6932 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6933 ac_tool_warned=yes ;;
6934 esac
6935 STRIP=$ac_ct_STRIP
6936 fi
6937 else
6938 STRIP="$ac_cv_prog_STRIP"
6939 fi
6940
6941 test -z "$STRIP" && STRIP=:
6942
6943
6944
6945
6946
6947
6948 if test -n "$ac_tool_prefix"; then
6949 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6950 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6951 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6952 $as_echo_n "checking for $ac_word... " >&6; }
6953 if test "${ac_cv_prog_RANLIB+set}" = set; then
6954 $as_echo_n "(cached) " >&6
6955 else
6956 if test -n "$RANLIB"; then
6957 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6958 else
6959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6960 for as_dir in $PATH
6961 do
6962 IFS=$as_save_IFS
6963 test -z "$as_dir" && as_dir=.
6964 for ac_exec_ext in '' $ac_executable_extensions; do
6965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6966 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6967 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6968 break 2
6969 fi
6970 done
6971 done
6972 IFS=$as_save_IFS
6973
6974 fi
6975 fi
6976 RANLIB=$ac_cv_prog_RANLIB
6977 if test -n "$RANLIB"; then
6978 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6979 $as_echo "$RANLIB" >&6; }
6980 else
6981 { $as_echo "$as_me:$LINENO: result: no" >&5
6982 $as_echo "no" >&6; }
6983 fi
6984
6985
6986 fi
6987 if test -z "$ac_cv_prog_RANLIB"; then
6988 ac_ct_RANLIB=$RANLIB
6989 # Extract the first word of "ranlib", so it can be a program name with args.
6990 set dummy ranlib; ac_word=$2
6991 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6992 $as_echo_n "checking for $ac_word... " >&6; }
6993 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6994 $as_echo_n "(cached) " >&6
6995 else
6996 if test -n "$ac_ct_RANLIB"; then
6997 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6998 else
6999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7000 for as_dir in $PATH
7001 do
7002 IFS=$as_save_IFS
7003 test -z "$as_dir" && as_dir=.
7004 for ac_exec_ext in '' $ac_executable_extensions; do
7005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7006 ac_cv_prog_ac_ct_RANLIB="ranlib"
7007 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7008 break 2
7009 fi
7010 done
7011 done
7012 IFS=$as_save_IFS
7013
7014 fi
7015 fi
7016 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7017 if test -n "$ac_ct_RANLIB"; then
7018 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7019 $as_echo "$ac_ct_RANLIB" >&6; }
7020 else
7021 { $as_echo "$as_me:$LINENO: result: no" >&5
7022 $as_echo "no" >&6; }
7023 fi
7024
7025 if test "x$ac_ct_RANLIB" = x; then
7026 RANLIB=":"
7027 else
7028 case $cross_compiling:$ac_tool_warned in
7029 yes:)
7030 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7031 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7032 ac_tool_warned=yes ;;
7033 esac
7034 RANLIB=$ac_ct_RANLIB
7035 fi
7036 else
7037 RANLIB="$ac_cv_prog_RANLIB"
7038 fi
7039
7040 test -z "$RANLIB" && RANLIB=:
7041
7042
7043
7044
7045
7046
7047 # Determine commands to create old-style static archives.
7048 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7049 old_postinstall_cmds='chmod 644 $oldlib'
7050 old_postuninstall_cmds=
7051
7052 if test -n "$RANLIB"; then
7053 case $host_os in
7054 openbsd*)
7055 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7056 ;;
7057 *)
7058 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7059 ;;
7060 esac
7061 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7062 fi
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097 # If no C compiler was specified, use CC.
7098 LTCC=${LTCC-"$CC"}
7099
7100 # If no C compiler flags were specified, use CFLAGS.
7101 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7102
7103 # Allow CC to be a program name with arguments.
7104 compiler=$CC
7105
7106
7107 # Check for command to grab the raw symbol name followed by C symbol from nm.
7108 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7109 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7110 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7111 $as_echo_n "(cached) " >&6
7112 else
7113
7114 # These are sane defaults that work on at least a few old systems.
7115 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7116
7117 # Character class describing NM global symbol codes.
7118 symcode='[BCDEGRST]'
7119
7120 # Regexp to match symbols that can be accessed directly from C.
7121 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7122
7123 # Define system-specific variables.
7124 case $host_os in
7125 aix*)
7126 symcode='[BCDT]'
7127 ;;
7128 cygwin* | mingw* | pw32* | cegcc*)
7129 symcode='[ABCDGISTW]'
7130 ;;
7131 hpux*)
7132 if test "$host_cpu" = ia64; then
7133 symcode='[ABCDEGRST]'
7134 fi
7135 ;;
7136 irix* | nonstopux*)
7137 symcode='[BCDEGRST]'
7138 ;;
7139 osf*)
7140 symcode='[BCDEGQRST]'
7141 ;;
7142 solaris*)
7143 symcode='[BDRT]'
7144 ;;
7145 sco3.2v5*)
7146 symcode='[DT]'
7147 ;;
7148 sysv4.2uw2*)
7149 symcode='[DT]'
7150 ;;
7151 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7152 symcode='[ABDT]'
7153 ;;
7154 sysv4)
7155 symcode='[DFNSTU]'
7156 ;;
7157 esac
7158
7159 # If we're using GNU nm, then use its standard symbol codes.
7160 case `$NM -V 2>&1` in
7161 *GNU* | *'with BFD'*)
7162 symcode='[ABCDGIRSTW]' ;;
7163 esac
7164
7165 # Transform an extracted symbol line into a proper C declaration.
7166 # Some systems (esp. on ia64) link data and code symbols differently,
7167 # so use this general approach.
7168 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7169
7170 # Transform an extracted symbol line into symbol name and symbol address
7171 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7172 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
7173
7174 # Handle CRLF in mingw tool chain
7175 opt_cr=
7176 case $build_os in
7177 mingw*)
7178 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7179 ;;
7180 esac
7181
7182 # Try without a prefix underscore, then with it.
7183 for ac_symprfx in "" "_"; do
7184
7185 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7186 symxfrm="\\1 $ac_symprfx\\2 \\2"
7187
7188 # Write the raw and C identifiers.
7189 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7190 # Fake it for dumpbin and say T for any non-static function
7191 # and D for any global variable.
7192 # Also find C++ and __fastcall symbols from MSVC++,
7193 # which start with @ or ?.
7194 lt_cv_sys_global_symbol_pipe="$AWK '"\
7195 " {last_section=section; section=\$ 3};"\
7196 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7197 " \$ 0!~/External *\|/{next};"\
7198 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7199 " {if(hide[section]) next};"\
7200 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7201 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7202 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7203 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7204 " ' prfx=^$ac_symprfx"
7205 else
7206 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7207 fi
7208
7209 # Check to see that the pipe works correctly.
7210 pipe_works=no
7211
7212 rm -f conftest*
7213 cat > conftest.$ac_ext <<_LT_EOF
7214 #ifdef __cplusplus
7215 extern "C" {
7216 #endif
7217 char nm_test_var;
7218 void nm_test_func(void);
7219 void nm_test_func(void){}
7220 #ifdef __cplusplus
7221 }
7222 #endif
7223 int main(){nm_test_var='a';nm_test_func();return(0);}
7224 _LT_EOF
7225
7226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7227 (eval $ac_compile) 2>&5
7228 ac_status=$?
7229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7230 (exit $ac_status); }; then
7231 # Now try to grab the symbols.
7232 nlist=conftest.nm
7233 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7234 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7235 ac_status=$?
7236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7237 (exit $ac_status); } && test -s "$nlist"; then
7238 # Try sorting and uniquifying the output.
7239 if sort "$nlist" | uniq > "$nlist"T; then
7240 mv -f "$nlist"T "$nlist"
7241 else
7242 rm -f "$nlist"T
7243 fi
7244
7245 # Make sure that we snagged all the symbols we need.
7246 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7247 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7248 cat <<_LT_EOF > conftest.$ac_ext
7249 #ifdef __cplusplus
7250 extern "C" {
7251 #endif
7252
7253 _LT_EOF
7254 # Now generate the symbol file.
7255 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7256
7257 cat <<_LT_EOF >> conftest.$ac_ext
7258
7259 /* The mapping between symbol names and symbols. */
7260 const struct {
7261 const char *name;
7262 void *address;
7263 }
7264 lt__PROGRAM__LTX_preloaded_symbols[] =
7265 {
7266 { "@PROGRAM@", (void *) 0 },
7267 _LT_EOF
7268 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7269 cat <<\_LT_EOF >> conftest.$ac_ext
7270 {0, (void *) 0}
7271 };
7272
7273 /* This works around a problem in FreeBSD linker */
7274 #ifdef FREEBSD_WORKAROUND
7275 static const void *lt_preloaded_setup() {
7276 return lt__PROGRAM__LTX_preloaded_symbols;
7277 }
7278 #endif
7279
7280 #ifdef __cplusplus
7281 }
7282 #endif
7283 _LT_EOF
7284 # Now try linking the two files.
7285 mv conftest.$ac_objext conftstm.$ac_objext
7286 lt_save_LIBS="$LIBS"
7287 lt_save_CFLAGS="$CFLAGS"
7288 LIBS="conftstm.$ac_objext"
7289 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7291 (eval $ac_link) 2>&5
7292 ac_status=$?
7293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7295 pipe_works=yes
7296 fi
7297 LIBS="$lt_save_LIBS"
7298 CFLAGS="$lt_save_CFLAGS"
7299 else
7300 echo "cannot find nm_test_func in $nlist" >&5
7301 fi
7302 else
7303 echo "cannot find nm_test_var in $nlist" >&5
7304 fi
7305 else
7306 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7307 fi
7308 else
7309 echo "$progname: failed program was:" >&5
7310 cat conftest.$ac_ext >&5
7311 fi
7312 rm -rf conftest* conftst*
7313
7314 # Do not use the global_symbol_pipe unless it works.
7315 if test "$pipe_works" = yes; then
7316 break
7317 else
7318 lt_cv_sys_global_symbol_pipe=
7319 fi
7320 done
7321
7322 fi
7323
7324 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7325 lt_cv_sys_global_symbol_to_cdecl=
7326 fi
7327 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7328 { $as_echo "$as_me:$LINENO: result: failed" >&5
7329 $as_echo "failed" >&6; }
7330 else
7331 { $as_echo "$as_me:$LINENO: result: ok" >&5
7332 $as_echo "ok" >&6; }
7333 fi
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356 # Check whether --enable-libtool-lock was given.
7357 if test "${enable_libtool_lock+set}" = set; then
7358 enableval=$enable_libtool_lock;
7359 fi
7360
7361 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7362
7363 # Some flags need to be propagated to the compiler or linker for good
7364 # libtool support.
7365 case $host in
7366 ia64-*-hpux*)
7367 # Find out which ABI we are using.
7368 echo 'int i;' > conftest.$ac_ext
7369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7370 (eval $ac_compile) 2>&5
7371 ac_status=$?
7372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7373 (exit $ac_status); }; then
7374 case `/usr/bin/file conftest.$ac_objext` in
7375 *ELF-32*)
7376 HPUX_IA64_MODE="32"
7377 ;;
7378 *ELF-64*)
7379 HPUX_IA64_MODE="64"
7380 ;;
7381 esac
7382 fi
7383 rm -rf conftest*
7384 ;;
7385 *-*-irix6*)
7386 # Find out which ABI we are using.
7387 echo '#line 7387 "configure"' > conftest.$ac_ext
7388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7389 (eval $ac_compile) 2>&5
7390 ac_status=$?
7391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7392 (exit $ac_status); }; then
7393 if test "$lt_cv_prog_gnu_ld" = yes; then
7394 case `/usr/bin/file conftest.$ac_objext` in
7395 *32-bit*)
7396 LD="${LD-ld} -melf32bsmip"
7397 ;;
7398 *N32*)
7399 LD="${LD-ld} -melf32bmipn32"
7400 ;;
7401 *64-bit*)
7402 LD="${LD-ld} -melf64bmip"
7403 ;;
7404 esac
7405 else
7406 case `/usr/bin/file conftest.$ac_objext` in
7407 *32-bit*)
7408 LD="${LD-ld} -32"
7409 ;;
7410 *N32*)
7411 LD="${LD-ld} -n32"
7412 ;;
7413 *64-bit*)
7414 LD="${LD-ld} -64"
7415 ;;
7416 esac
7417 fi
7418 fi
7419 rm -rf conftest*
7420 ;;
7421
7422 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7423 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7424 # Find out which ABI we are using.
7425 echo 'int i;' > conftest.$ac_ext
7426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7427 (eval $ac_compile) 2>&5
7428 ac_status=$?
7429 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7430 (exit $ac_status); }; then
7431 case `/usr/bin/file conftest.o` in
7432 *32-bit*)
7433 case $host in
7434 x86_64-*kfreebsd*-gnu)
7435 LD="${LD-ld} -m elf_i386_fbsd"
7436 ;;
7437 x86_64-*linux*)
7438 LD="${LD-ld} -m elf_i386"
7439 ;;
7440 ppc64-*linux*|powerpc64-*linux*)
7441 LD="${LD-ld} -m elf32ppclinux"
7442 ;;
7443 s390x-*linux*)
7444 LD="${LD-ld} -m elf_s390"
7445 ;;
7446 sparc64-*linux*)
7447 LD="${LD-ld} -m elf32_sparc"
7448 ;;
7449 esac
7450 ;;
7451 *64-bit*)
7452 case $host in
7453 x86_64-*kfreebsd*-gnu)
7454 LD="${LD-ld} -m elf_x86_64_fbsd"
7455 ;;
7456 x86_64-*linux*)
7457 LD="${LD-ld} -m elf_x86_64"
7458 ;;
7459 ppc*-*linux*|powerpc*-*linux*)
7460 LD="${LD-ld} -m elf64ppc"
7461 ;;
7462 s390*-*linux*|s390*-*tpf*)
7463 LD="${LD-ld} -m elf64_s390"
7464 ;;
7465 sparc*-*linux*)
7466 LD="${LD-ld} -m elf64_sparc"
7467 ;;
7468 esac
7469 ;;
7470 esac
7471 fi
7472 rm -rf conftest*
7473 ;;
7474
7475 *-*-sco3.2v5*)
7476 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7477 SAVE_CFLAGS="$CFLAGS"
7478 CFLAGS="$CFLAGS -belf"
7479 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7480 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7481 if test "${lt_cv_cc_needs_belf+set}" = set; then
7482 $as_echo_n "(cached) " >&6
7483 else
7484 ac_ext=c
7485 ac_cpp='$CPP $CPPFLAGS'
7486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7489
7490 cat >conftest.$ac_ext <<_ACEOF
7491 /* confdefs.h. */
7492 _ACEOF
7493 cat confdefs.h >>conftest.$ac_ext
7494 cat >>conftest.$ac_ext <<_ACEOF
7495 /* end confdefs.h. */
7496
7497 int
7498 main ()
7499 {
7500
7501 ;
7502 return 0;
7503 }
7504 _ACEOF
7505 rm -f conftest.$ac_objext conftest$ac_exeext
7506 if { (ac_try="$ac_link"
7507 case "(($ac_try" in
7508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7509 *) ac_try_echo=$ac_try;;
7510 esac
7511 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7512 $as_echo "$ac_try_echo") >&5
7513 (eval "$ac_link") 2>conftest.er1
7514 ac_status=$?
7515 grep -v '^ *+' conftest.er1 >conftest.err
7516 rm -f conftest.er1
7517 cat conftest.err >&5
7518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7519 (exit $ac_status); } && {
7520 test -z "$ac_c_werror_flag" ||
7521 test ! -s conftest.err
7522 } && test -s conftest$ac_exeext && {
7523 test "$cross_compiling" = yes ||
7524 $as_test_x conftest$ac_exeext
7525 }; then
7526 lt_cv_cc_needs_belf=yes
7527 else
7528 $as_echo "$as_me: failed program was:" >&5
7529 sed 's/^/| /' conftest.$ac_ext >&5
7530
7531 lt_cv_cc_needs_belf=no
7532 fi
7533
7534 rm -rf conftest.dSYM
7535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7536 conftest$ac_exeext conftest.$ac_ext
7537 ac_ext=c
7538 ac_cpp='$CPP $CPPFLAGS'
7539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7542
7543 fi
7544 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7545 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7546 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7547 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7548 CFLAGS="$SAVE_CFLAGS"
7549 fi
7550 ;;
7551 sparc*-*solaris*)
7552 # Find out which ABI we are using.
7553 echo 'int i;' > conftest.$ac_ext
7554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7555 (eval $ac_compile) 2>&5
7556 ac_status=$?
7557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7558 (exit $ac_status); }; then
7559 case `/usr/bin/file conftest.o` in
7560 *64-bit*)
7561 case $lt_cv_prog_gnu_ld in
7562 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7563 *)
7564 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7565 LD="${LD-ld} -64"
7566 fi
7567 ;;
7568 esac
7569 ;;
7570 esac
7571 fi
7572 rm -rf conftest*
7573 ;;
7574 esac
7575
7576 need_locks="$enable_libtool_lock"
7577
7578
7579 case $host_os in
7580 rhapsody* | darwin*)
7581 if test -n "$ac_tool_prefix"; then
7582 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7583 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7584 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7585 $as_echo_n "checking for $ac_word... " >&6; }
7586 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7587 $as_echo_n "(cached) " >&6
7588 else
7589 if test -n "$DSYMUTIL"; then
7590 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7591 else
7592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7593 for as_dir in $PATH
7594 do
7595 IFS=$as_save_IFS
7596 test -z "$as_dir" && as_dir=.
7597 for ac_exec_ext in '' $ac_executable_extensions; do
7598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7599 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7600 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7601 break 2
7602 fi
7603 done
7604 done
7605 IFS=$as_save_IFS
7606
7607 fi
7608 fi
7609 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7610 if test -n "$DSYMUTIL"; then
7611 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7612 $as_echo "$DSYMUTIL" >&6; }
7613 else
7614 { $as_echo "$as_me:$LINENO: result: no" >&5
7615 $as_echo "no" >&6; }
7616 fi
7617
7618
7619 fi
7620 if test -z "$ac_cv_prog_DSYMUTIL"; then
7621 ac_ct_DSYMUTIL=$DSYMUTIL
7622 # Extract the first word of "dsymutil", so it can be a program name with args.
7623 set dummy dsymutil; ac_word=$2
7624 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7625 $as_echo_n "checking for $ac_word... " >&6; }
7626 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7627 $as_echo_n "(cached) " >&6
7628 else
7629 if test -n "$ac_ct_DSYMUTIL"; then
7630 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7631 else
7632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7633 for as_dir in $PATH
7634 do
7635 IFS=$as_save_IFS
7636 test -z "$as_dir" && as_dir=.
7637 for ac_exec_ext in '' $ac_executable_extensions; do
7638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7639 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7640 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7641 break 2
7642 fi
7643 done
7644 done
7645 IFS=$as_save_IFS
7646
7647 fi
7648 fi
7649 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7650 if test -n "$ac_ct_DSYMUTIL"; then
7651 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7652 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7653 else
7654 { $as_echo "$as_me:$LINENO: result: no" >&5
7655 $as_echo "no" >&6; }
7656 fi
7657
7658 if test "x$ac_ct_DSYMUTIL" = x; then
7659 DSYMUTIL=":"
7660 else
7661 case $cross_compiling:$ac_tool_warned in
7662 yes:)
7663 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7664 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7665 ac_tool_warned=yes ;;
7666 esac
7667 DSYMUTIL=$ac_ct_DSYMUTIL
7668 fi
7669 else
7670 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7671 fi
7672
7673 if test -n "$ac_tool_prefix"; then
7674 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7675 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7676 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7677 $as_echo_n "checking for $ac_word... " >&6; }
7678 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7679 $as_echo_n "(cached) " >&6
7680 else
7681 if test -n "$NMEDIT"; then
7682 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7683 else
7684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7685 for as_dir in $PATH
7686 do
7687 IFS=$as_save_IFS
7688 test -z "$as_dir" && as_dir=.
7689 for ac_exec_ext in '' $ac_executable_extensions; do
7690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7691 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7692 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7693 break 2
7694 fi
7695 done
7696 done
7697 IFS=$as_save_IFS
7698
7699 fi
7700 fi
7701 NMEDIT=$ac_cv_prog_NMEDIT
7702 if test -n "$NMEDIT"; then
7703 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7704 $as_echo "$NMEDIT" >&6; }
7705 else
7706 { $as_echo "$as_me:$LINENO: result: no" >&5
7707 $as_echo "no" >&6; }
7708 fi
7709
7710
7711 fi
7712 if test -z "$ac_cv_prog_NMEDIT"; then
7713 ac_ct_NMEDIT=$NMEDIT
7714 # Extract the first word of "nmedit", so it can be a program name with args.
7715 set dummy nmedit; ac_word=$2
7716 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7717 $as_echo_n "checking for $ac_word... " >&6; }
7718 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7719 $as_echo_n "(cached) " >&6
7720 else
7721 if test -n "$ac_ct_NMEDIT"; then
7722 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7723 else
7724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7725 for as_dir in $PATH
7726 do
7727 IFS=$as_save_IFS
7728 test -z "$as_dir" && as_dir=.
7729 for ac_exec_ext in '' $ac_executable_extensions; do
7730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7731 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7732 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7733 break 2
7734 fi
7735 done
7736 done
7737 IFS=$as_save_IFS
7738
7739 fi
7740 fi
7741 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7742 if test -n "$ac_ct_NMEDIT"; then
7743 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7744 $as_echo "$ac_ct_NMEDIT" >&6; }
7745 else
7746 { $as_echo "$as_me:$LINENO: result: no" >&5
7747 $as_echo "no" >&6; }
7748 fi
7749
7750 if test "x$ac_ct_NMEDIT" = x; then
7751 NMEDIT=":"
7752 else
7753 case $cross_compiling:$ac_tool_warned in
7754 yes:)
7755 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7756 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7757 ac_tool_warned=yes ;;
7758 esac
7759 NMEDIT=$ac_ct_NMEDIT
7760 fi
7761 else
7762 NMEDIT="$ac_cv_prog_NMEDIT"
7763 fi
7764
7765 if test -n "$ac_tool_prefix"; then
7766 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7767 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7768 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7769 $as_echo_n "checking for $ac_word... " >&6; }
7770 if test "${ac_cv_prog_LIPO+set}" = set; then
7771 $as_echo_n "(cached) " >&6
7772 else
7773 if test -n "$LIPO"; then
7774 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7775 else
7776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7777 for as_dir in $PATH
7778 do
7779 IFS=$as_save_IFS
7780 test -z "$as_dir" && as_dir=.
7781 for ac_exec_ext in '' $ac_executable_extensions; do
7782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7783 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7784 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7785 break 2
7786 fi
7787 done
7788 done
7789 IFS=$as_save_IFS
7790
7791 fi
7792 fi
7793 LIPO=$ac_cv_prog_LIPO
7794 if test -n "$LIPO"; then
7795 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
7796 $as_echo "$LIPO" >&6; }
7797 else
7798 { $as_echo "$as_me:$LINENO: result: no" >&5
7799 $as_echo "no" >&6; }
7800 fi
7801
7802
7803 fi
7804 if test -z "$ac_cv_prog_LIPO"; then
7805 ac_ct_LIPO=$LIPO
7806 # Extract the first word of "lipo", so it can be a program name with args.
7807 set dummy lipo; ac_word=$2
7808 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7809 $as_echo_n "checking for $ac_word... " >&6; }
7810 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7811 $as_echo_n "(cached) " >&6
7812 else
7813 if test -n "$ac_ct_LIPO"; then
7814 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7815 else
7816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7817 for as_dir in $PATH
7818 do
7819 IFS=$as_save_IFS
7820 test -z "$as_dir" && as_dir=.
7821 for ac_exec_ext in '' $ac_executable_extensions; do
7822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7823 ac_cv_prog_ac_ct_LIPO="lipo"
7824 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7825 break 2
7826 fi
7827 done
7828 done
7829 IFS=$as_save_IFS
7830
7831 fi
7832 fi
7833 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7834 if test -n "$ac_ct_LIPO"; then
7835 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7836 $as_echo "$ac_ct_LIPO" >&6; }
7837 else
7838 { $as_echo "$as_me:$LINENO: result: no" >&5
7839 $as_echo "no" >&6; }
7840 fi
7841
7842 if test "x$ac_ct_LIPO" = x; then
7843 LIPO=":"
7844 else
7845 case $cross_compiling:$ac_tool_warned in
7846 yes:)
7847 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7848 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7849 ac_tool_warned=yes ;;
7850 esac
7851 LIPO=$ac_ct_LIPO
7852 fi
7853 else
7854 LIPO="$ac_cv_prog_LIPO"
7855 fi
7856
7857 if test -n "$ac_tool_prefix"; then
7858 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7859 set dummy ${ac_tool_prefix}otool; ac_word=$2
7860 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7861 $as_echo_n "checking for $ac_word... " >&6; }
7862 if test "${ac_cv_prog_OTOOL+set}" = set; then
7863 $as_echo_n "(cached) " >&6
7864 else
7865 if test -n "$OTOOL"; then
7866 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7867 else
7868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7869 for as_dir in $PATH
7870 do
7871 IFS=$as_save_IFS
7872 test -z "$as_dir" && as_dir=.
7873 for ac_exec_ext in '' $ac_executable_extensions; do
7874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7875 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7876 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7877 break 2
7878 fi
7879 done
7880 done
7881 IFS=$as_save_IFS
7882
7883 fi
7884 fi
7885 OTOOL=$ac_cv_prog_OTOOL
7886 if test -n "$OTOOL"; then
7887 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
7888 $as_echo "$OTOOL" >&6; }
7889 else
7890 { $as_echo "$as_me:$LINENO: result: no" >&5
7891 $as_echo "no" >&6; }
7892 fi
7893
7894
7895 fi
7896 if test -z "$ac_cv_prog_OTOOL"; then
7897 ac_ct_OTOOL=$OTOOL
7898 # Extract the first word of "otool", so it can be a program name with args.
7899 set dummy otool; ac_word=$2
7900 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7901 $as_echo_n "checking for $ac_word... " >&6; }
7902 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7903 $as_echo_n "(cached) " >&6
7904 else
7905 if test -n "$ac_ct_OTOOL"; then
7906 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7907 else
7908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7909 for as_dir in $PATH
7910 do
7911 IFS=$as_save_IFS
7912 test -z "$as_dir" && as_dir=.
7913 for ac_exec_ext in '' $ac_executable_extensions; do
7914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7915 ac_cv_prog_ac_ct_OTOOL="otool"
7916 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7917 break 2
7918 fi
7919 done
7920 done
7921 IFS=$as_save_IFS
7922
7923 fi
7924 fi
7925 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7926 if test -n "$ac_ct_OTOOL"; then
7927 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7928 $as_echo "$ac_ct_OTOOL" >&6; }
7929 else
7930 { $as_echo "$as_me:$LINENO: result: no" >&5
7931 $as_echo "no" >&6; }
7932 fi
7933
7934 if test "x$ac_ct_OTOOL" = x; then
7935 OTOOL=":"
7936 else
7937 case $cross_compiling:$ac_tool_warned in
7938 yes:)
7939 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7940 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7941 ac_tool_warned=yes ;;
7942 esac
7943 OTOOL=$ac_ct_OTOOL
7944 fi
7945 else
7946 OTOOL="$ac_cv_prog_OTOOL"
7947 fi
7948
7949 if test -n "$ac_tool_prefix"; then
7950 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7951 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7952 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7953 $as_echo_n "checking for $ac_word... " >&6; }
7954 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7955 $as_echo_n "(cached) " >&6
7956 else
7957 if test -n "$OTOOL64"; then
7958 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7959 else
7960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7961 for as_dir in $PATH
7962 do
7963 IFS=$as_save_IFS
7964 test -z "$as_dir" && as_dir=.
7965 for ac_exec_ext in '' $ac_executable_extensions; do
7966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7967 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7968 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7969 break 2
7970 fi
7971 done
7972 done
7973 IFS=$as_save_IFS
7974
7975 fi
7976 fi
7977 OTOOL64=$ac_cv_prog_OTOOL64
7978 if test -n "$OTOOL64"; then
7979 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
7980 $as_echo "$OTOOL64" >&6; }
7981 else
7982 { $as_echo "$as_me:$LINENO: result: no" >&5
7983 $as_echo "no" >&6; }
7984 fi
7985
7986
7987 fi
7988 if test -z "$ac_cv_prog_OTOOL64"; then
7989 ac_ct_OTOOL64=$OTOOL64
7990 # Extract the first word of "otool64", so it can be a program name with args.
7991 set dummy otool64; ac_word=$2
7992 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7993 $as_echo_n "checking for $ac_word... " >&6; }
7994 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7995 $as_echo_n "(cached) " >&6
7996 else
7997 if test -n "$ac_ct_OTOOL64"; then
7998 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7999 else
8000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8001 for as_dir in $PATH
8002 do
8003 IFS=$as_save_IFS
8004 test -z "$as_dir" && as_dir=.
8005 for ac_exec_ext in '' $ac_executable_extensions; do
8006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8007 ac_cv_prog_ac_ct_OTOOL64="otool64"
8008 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8009 break 2
8010 fi
8011 done
8012 done
8013 IFS=$as_save_IFS
8014
8015 fi
8016 fi
8017 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8018 if test -n "$ac_ct_OTOOL64"; then
8019 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
8020 $as_echo "$ac_ct_OTOOL64" >&6; }
8021 else
8022 { $as_echo "$as_me:$LINENO: result: no" >&5
8023 $as_echo "no" >&6; }
8024 fi
8025
8026 if test "x$ac_ct_OTOOL64" = x; then
8027 OTOOL64=":"
8028 else
8029 case $cross_compiling:$ac_tool_warned in
8030 yes:)
8031 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8032 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8033 ac_tool_warned=yes ;;
8034 esac
8035 OTOOL64=$ac_ct_OTOOL64
8036 fi
8037 else
8038 OTOOL64="$ac_cv_prog_OTOOL64"
8039 fi
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
8068 $as_echo_n "checking for -single_module linker flag... " >&6; }
8069 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8070 $as_echo_n "(cached) " >&6
8071 else
8072 lt_cv_apple_cc_single_mod=no
8073 if test -z "${LT_MULTI_MODULE}"; then
8074 # By default we will add the -single_module flag. You can override
8075 # by either setting the environment variable LT_MULTI_MODULE
8076 # non-empty at configure time, or by adding -multi_module to the
8077 # link flags.
8078 rm -rf libconftest.dylib*
8079 echo "int foo(void){return 1;}" > conftest.c
8080 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8081 -dynamiclib -Wl,-single_module conftest.c" >&5
8082 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8083 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8084 _lt_result=$?
8085 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8086 lt_cv_apple_cc_single_mod=yes
8087 else
8088 cat conftest.err >&5
8089 fi
8090 rm -rf libconftest.dylib*
8091 rm -f conftest.*
8092 fi
8093 fi
8094 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
8095 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8096 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
8097 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8098 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
8099 $as_echo_n "(cached) " >&6
8100 else
8101 lt_cv_ld_exported_symbols_list=no
8102 save_LDFLAGS=$LDFLAGS
8103 echo "_main" > conftest.sym
8104 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8105 cat >conftest.$ac_ext <<_ACEOF
8106 /* confdefs.h. */
8107 _ACEOF
8108 cat confdefs.h >>conftest.$ac_ext
8109 cat >>conftest.$ac_ext <<_ACEOF
8110 /* end confdefs.h. */
8111
8112 int
8113 main ()
8114 {
8115
8116 ;
8117 return 0;
8118 }
8119 _ACEOF
8120 rm -f conftest.$ac_objext conftest$ac_exeext
8121 if { (ac_try="$ac_link"
8122 case "(($ac_try" in
8123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8124 *) ac_try_echo=$ac_try;;
8125 esac
8126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8127 $as_echo "$ac_try_echo") >&5
8128 (eval "$ac_link") 2>conftest.er1
8129 ac_status=$?
8130 grep -v '^ *+' conftest.er1 >conftest.err
8131 rm -f conftest.er1
8132 cat conftest.err >&5
8133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134 (exit $ac_status); } && {
8135 test -z "$ac_c_werror_flag" ||
8136 test ! -s conftest.err
8137 } && test -s conftest$ac_exeext && {
8138 test "$cross_compiling" = yes ||
8139 $as_test_x conftest$ac_exeext
8140 }; then
8141 lt_cv_ld_exported_symbols_list=yes
8142 else
8143 $as_echo "$as_me: failed program was:" >&5
8144 sed 's/^/| /' conftest.$ac_ext >&5
8145
8146 lt_cv_ld_exported_symbols_list=no
8147 fi
8148
8149 rm -rf conftest.dSYM
8150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8151 conftest$ac_exeext conftest.$ac_ext
8152 LDFLAGS="$save_LDFLAGS"
8153
8154 fi
8155 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
8156 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8157 case $host_os in
8158 rhapsody* | darwin1.[012])
8159 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8160 darwin1.*)
8161 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8162 darwin*) # darwin 5.x on
8163 # if running on 10.5 or later, the deployment target defaults
8164 # to the OS version, if on x86, and 10.4, the deployment
8165 # target defaults to 10.4. Don't you love it?
8166 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8167 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8168 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8169 10.[012]*)
8170 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8171 10.*)
8172 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8173 esac
8174 ;;
8175 esac
8176 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8177 _lt_dar_single_mod='$single_module'
8178 fi
8179 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8180 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8181 else
8182 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8183 fi
8184 if test "$DSYMUTIL" != ":"; then
8185 _lt_dsymutil='~$DSYMUTIL $lib || :'
8186 else
8187 _lt_dsymutil=
8188 fi
8189 ;;
8190 esac
8191
8192
8193 for ac_header in dlfcn.h
8194 do
8195 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8196 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8197 $as_echo_n "checking for $ac_header... " >&6; }
8198 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8199 $as_echo_n "(cached) " >&6
8200 else
8201 cat >conftest.$ac_ext <<_ACEOF
8202 /* confdefs.h. */
8203 _ACEOF
8204 cat confdefs.h >>conftest.$ac_ext
8205 cat >>conftest.$ac_ext <<_ACEOF
8206 /* end confdefs.h. */
8207 $ac_includes_default
8208
8209 #include <$ac_header>
8210 _ACEOF
8211 rm -f conftest.$ac_objext
8212 if { (ac_try="$ac_compile"
8213 case "(($ac_try" in
8214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8215 *) ac_try_echo=$ac_try;;
8216 esac
8217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8218 $as_echo "$ac_try_echo") >&5
8219 (eval "$ac_compile") 2>conftest.er1
8220 ac_status=$?
8221 grep -v '^ *+' conftest.er1 >conftest.err
8222 rm -f conftest.er1
8223 cat conftest.err >&5
8224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8225 (exit $ac_status); } && {
8226 test -z "$ac_c_werror_flag" ||
8227 test ! -s conftest.err
8228 } && test -s conftest.$ac_objext; then
8229 eval "$as_ac_Header=yes"
8230 else
8231 $as_echo "$as_me: failed program was:" >&5
8232 sed 's/^/| /' conftest.$ac_ext >&5
8233
8234 eval "$as_ac_Header=no"
8235 fi
8236
8237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8238 fi
8239 ac_res=`eval 'as_val=${'$as_ac_Header'}
8240 $as_echo "$as_val"'`
8241 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8242 $as_echo "$ac_res" >&6; }
8243 as_val=`eval 'as_val=${'$as_ac_Header'}
8244 $as_echo "$as_val"'`
8245 if test "x$as_val" = x""yes; then
8246 cat >>confdefs.h <<_ACEOF
8247 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8248 _ACEOF
8249
8250 fi
8251
8252 done
8253
8254
8255
8256 # Set options
8257
8258
8259
8260 enable_dlopen=no
8261
8262
8263 enable_win32_dll=no
8264
8265
8266 # Check whether --enable-shared was given.
8267 if test "${enable_shared+set}" = set; then
8268 enableval=$enable_shared; p=${PACKAGE-default}
8269 case $enableval in
8270 yes) enable_shared=yes ;;
8271 no) enable_shared=no ;;
8272 *)
8273 enable_shared=no
8274 # Look at the argument we got. We use all the common list separators.
8275 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8276 for pkg in $enableval; do
8277 IFS="$lt_save_ifs"
8278 if test "X$pkg" = "X$p"; then
8279 enable_shared=yes
8280 fi
8281 done
8282 IFS="$lt_save_ifs"
8283 ;;
8284 esac
8285 else
8286 enable_shared=yes
8287 fi
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299 # Check whether --with-pic was given.
8300 if test "${with_pic+set}" = set; then
8301 withval=$with_pic; pic_mode="$withval"
8302 else
8303 pic_mode=default
8304 fi
8305
8306
8307 test -z "$pic_mode" && pic_mode=default
8308
8309
8310
8311
8312
8313
8314
8315 # Check whether --enable-fast-install was given.
8316 if test "${enable_fast_install+set}" = set; then
8317 enableval=$enable_fast_install; p=${PACKAGE-default}
8318 case $enableval in
8319 yes) enable_fast_install=yes ;;
8320 no) enable_fast_install=no ;;
8321 *)
8322 enable_fast_install=no
8323 # Look at the argument we got. We use all the common list separators.
8324 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8325 for pkg in $enableval; do
8326 IFS="$lt_save_ifs"
8327 if test "X$pkg" = "X$p"; then
8328 enable_fast_install=yes
8329 fi
8330 done
8331 IFS="$lt_save_ifs"
8332 ;;
8333 esac
8334 else
8335 enable_fast_install=yes
8336 fi
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348 # This can be used to rebuild libtool when needed
8349 LIBTOOL_DEPS="$ltmain"
8350
8351 # Always use our own libtool.
8352 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378 test -z "$LN_S" && LN_S="ln -s"
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393 if test -n "${ZSH_VERSION+set}" ; then
8394 setopt NO_GLOB_SUBST
8395 fi
8396
8397 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
8398 $as_echo_n "checking for objdir... " >&6; }
8399 if test "${lt_cv_objdir+set}" = set; then
8400 $as_echo_n "(cached) " >&6
8401 else
8402 rm -f .libs 2>/dev/null
8403 mkdir .libs 2>/dev/null
8404 if test -d .libs; then
8405 lt_cv_objdir=.libs
8406 else
8407 # MS-DOS does not allow filenames that begin with a dot.
8408 lt_cv_objdir=_libs
8409 fi
8410 rmdir .libs 2>/dev/null
8411 fi
8412 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8413 $as_echo "$lt_cv_objdir" >&6; }
8414 objdir=$lt_cv_objdir
8415
8416
8417
8418
8419
8420 cat >>confdefs.h <<_ACEOF
8421 #define LT_OBJDIR "$lt_cv_objdir/"
8422 _ACEOF
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440 case $host_os in
8441 aix3*)
8442 # AIX sometimes has problems with the GCC collect2 program. For some
8443 # reason, if we set the COLLECT_NAMES environment variable, the problems
8444 # vanish in a puff of smoke.
8445 if test "X${COLLECT_NAMES+set}" != Xset; then
8446 COLLECT_NAMES=
8447 export COLLECT_NAMES
8448 fi
8449 ;;
8450 esac
8451
8452 # Sed substitution that helps us do robust quoting. It backslashifies
8453 # metacharacters that are still active within double-quoted strings.
8454 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8455
8456 # Same as above, but do not quote variable references.
8457 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8458
8459 # Sed substitution to delay expansion of an escaped shell variable in a
8460 # double_quote_subst'ed string.
8461 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8462
8463 # Sed substitution to delay expansion of an escaped single quote.
8464 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8465
8466 # Sed substitution to avoid accidental globbing in evaled expressions
8467 no_glob_subst='s/\*/\\\*/g'
8468
8469 # Global variables:
8470 ofile=libtool
8471 can_build_shared=yes
8472
8473 # All known linkers require a `.a' archive for static linking (except MSVC,
8474 # which needs '.lib').
8475 libext=a
8476
8477 with_gnu_ld="$lt_cv_prog_gnu_ld"
8478
8479 old_CC="$CC"
8480 old_CFLAGS="$CFLAGS"
8481
8482 # Set sane defaults for various variables
8483 test -z "$CC" && CC=cc
8484 test -z "$LTCC" && LTCC=$CC
8485 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8486 test -z "$LD" && LD=ld
8487 test -z "$ac_objext" && ac_objext=o
8488
8489 for cc_temp in $compiler""; do
8490 case $cc_temp in
8491 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8492 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8493 \-*) ;;
8494 *) break;;
8495 esac
8496 done
8497 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8498
8499
8500 # Only perform the check for file, if the check method requires it
8501 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8502 case $deplibs_check_method in
8503 file_magic*)
8504 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8505 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8506 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8507 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8508 $as_echo_n "(cached) " >&6
8509 else
8510 case $MAGIC_CMD in
8511 [\\/*] | ?:[\\/]*)
8512 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8513 ;;
8514 *)
8515 lt_save_MAGIC_CMD="$MAGIC_CMD"
8516 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8517 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8518 for ac_dir in $ac_dummy; do
8519 IFS="$lt_save_ifs"
8520 test -z "$ac_dir" && ac_dir=.
8521 if test -f $ac_dir/${ac_tool_prefix}file; then
8522 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8523 if test -n "$file_magic_test_file"; then
8524 case $deplibs_check_method in
8525 "file_magic "*)
8526 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8527 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8528 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8529 $EGREP "$file_magic_regex" > /dev/null; then
8530 :
8531 else
8532 cat <<_LT_EOF 1>&2
8533
8534 *** Warning: the command libtool uses to detect shared libraries,
8535 *** $file_magic_cmd, produces output that libtool cannot recognize.
8536 *** The result is that libtool may fail to recognize shared libraries
8537 *** as such. This will affect the creation of libtool libraries that
8538 *** depend on shared libraries, but programs linked with such libtool
8539 *** libraries will work regardless of this problem. Nevertheless, you
8540 *** may want to report the problem to your system manager and/or to
8541 *** bug-libtool@gnu.org
8542
8543 _LT_EOF
8544 fi ;;
8545 esac
8546 fi
8547 break
8548 fi
8549 done
8550 IFS="$lt_save_ifs"
8551 MAGIC_CMD="$lt_save_MAGIC_CMD"
8552 ;;
8553 esac
8554 fi
8555
8556 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8557 if test -n "$MAGIC_CMD"; then
8558 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8559 $as_echo "$MAGIC_CMD" >&6; }
8560 else
8561 { $as_echo "$as_me:$LINENO: result: no" >&5
8562 $as_echo "no" >&6; }
8563 fi
8564
8565
8566
8567
8568
8569 if test -z "$lt_cv_path_MAGIC_CMD"; then
8570 if test -n "$ac_tool_prefix"; then
8571 { $as_echo "$as_me:$LINENO: checking for file" >&5
8572 $as_echo_n "checking for file... " >&6; }
8573 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8574 $as_echo_n "(cached) " >&6
8575 else
8576 case $MAGIC_CMD in
8577 [\\/*] | ?:[\\/]*)
8578 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8579 ;;
8580 *)
8581 lt_save_MAGIC_CMD="$MAGIC_CMD"
8582 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8583 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8584 for ac_dir in $ac_dummy; do
8585 IFS="$lt_save_ifs"
8586 test -z "$ac_dir" && ac_dir=.
8587 if test -f $ac_dir/file; then
8588 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8589 if test -n "$file_magic_test_file"; then
8590 case $deplibs_check_method in
8591 "file_magic "*)
8592 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8593 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8594 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8595 $EGREP "$file_magic_regex" > /dev/null; then
8596 :
8597 else
8598 cat <<_LT_EOF 1>&2
8599
8600 *** Warning: the command libtool uses to detect shared libraries,
8601 *** $file_magic_cmd, produces output that libtool cannot recognize.
8602 *** The result is that libtool may fail to recognize shared libraries
8603 *** as such. This will affect the creation of libtool libraries that
8604 *** depend on shared libraries, but programs linked with such libtool
8605 *** libraries will work regardless of this problem. Nevertheless, you
8606 *** may want to report the problem to your system manager and/or to
8607 *** bug-libtool@gnu.org
8608
8609 _LT_EOF
8610 fi ;;
8611 esac
8612 fi
8613 break
8614 fi
8615 done
8616 IFS="$lt_save_ifs"
8617 MAGIC_CMD="$lt_save_MAGIC_CMD"
8618 ;;
8619 esac
8620 fi
8621
8622 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8623 if test -n "$MAGIC_CMD"; then
8624 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8625 $as_echo "$MAGIC_CMD" >&6; }
8626 else
8627 { $as_echo "$as_me:$LINENO: result: no" >&5
8628 $as_echo "no" >&6; }
8629 fi
8630
8631
8632 else
8633 MAGIC_CMD=:
8634 fi
8635 fi
8636
8637 fi
8638 ;;
8639 esac
8640
8641 # Use C for the default configuration in the libtool script
8642
8643 lt_save_CC="$CC"
8644 ac_ext=c
8645 ac_cpp='$CPP $CPPFLAGS'
8646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8649
8650
8651 # Source file extension for C test sources.
8652 ac_ext=c
8653
8654 # Object file extension for compiled C test sources.
8655 objext=o
8656 objext=$objext
8657
8658 # Code to be used in simple compile tests
8659 lt_simple_compile_test_code="int some_variable = 0;"
8660
8661 # Code to be used in simple link tests
8662 lt_simple_link_test_code='int main(){return(0);}'
8663
8664
8665
8666
8667
8668
8669
8670 # If no C compiler was specified, use CC.
8671 LTCC=${LTCC-"$CC"}
8672
8673 # If no C compiler flags were specified, use CFLAGS.
8674 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8675
8676 # Allow CC to be a program name with arguments.
8677 compiler=$CC
8678
8679 # Save the default compiler, since it gets overwritten when the other
8680 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8681 compiler_DEFAULT=$CC
8682
8683 # save warnings/boilerplate of simple test code
8684 ac_outfile=conftest.$ac_objext
8685 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8686 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8687 _lt_compiler_boilerplate=`cat conftest.err`
8688 $RM conftest*
8689
8690 ac_outfile=conftest.$ac_objext
8691 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8692 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8693 _lt_linker_boilerplate=`cat conftest.err`
8694 $RM -r conftest*
8695
8696
8697 if test -n "$compiler"; then
8698
8699 lt_prog_compiler_no_builtin_flag=
8700
8701 if test "$GCC" = yes; then
8702 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8703
8704 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8705 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8706 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8707 $as_echo_n "(cached) " >&6
8708 else
8709 lt_cv_prog_compiler_rtti_exceptions=no
8710 ac_outfile=conftest.$ac_objext
8711 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8712 lt_compiler_flag="-fno-rtti -fno-exceptions"
8713 # Insert the option either (1) after the last *FLAGS variable, or
8714 # (2) before a word containing "conftest.", or (3) at the end.
8715 # Note that $ac_compile itself does not contain backslashes and begins
8716 # with a dollar sign (not a hyphen), so the echo should work correctly.
8717 # The option is referenced via a variable to avoid confusing sed.
8718 lt_compile=`echo "$ac_compile" | $SED \
8719 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8720 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8721 -e 's:$: $lt_compiler_flag:'`
8722 (eval echo "\"\$as_me:8722: $lt_compile\"" >&5)
8723 (eval "$lt_compile" 2>conftest.err)
8724 ac_status=$?
8725 cat conftest.err >&5
8726 echo "$as_me:8726: \$? = $ac_status" >&5
8727 if (exit $ac_status) && test -s "$ac_outfile"; then
8728 # The compiler can only warn and ignore the option if not recognized
8729 # So say no if there are warnings other than the usual output.
8730 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8731 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8732 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8733 lt_cv_prog_compiler_rtti_exceptions=yes
8734 fi
8735 fi
8736 $RM conftest*
8737
8738 fi
8739 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8740 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8741
8742 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8743 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8744 else
8745 :
8746 fi
8747
8748 fi
8749
8750
8751
8752
8753
8754
8755 lt_prog_compiler_wl=
8756 lt_prog_compiler_pic=
8757 lt_prog_compiler_static=
8758
8759 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8760 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8761
8762 if test "$GCC" = yes; then
8763 lt_prog_compiler_wl='-Wl,'
8764 lt_prog_compiler_static='-static'
8765
8766 case $host_os in
8767 aix*)
8768 # All AIX code is PIC.
8769 if test "$host_cpu" = ia64; then
8770 # AIX 5 now supports IA64 processor
8771 lt_prog_compiler_static='-Bstatic'
8772 fi
8773 ;;
8774
8775 amigaos*)
8776 case $host_cpu in
8777 powerpc)
8778 # see comment about AmigaOS4 .so support
8779 lt_prog_compiler_pic='-fPIC'
8780 ;;
8781 m68k)
8782 # FIXME: we need at least 68020 code to build shared libraries, but
8783 # adding the `-m68020' flag to GCC prevents building anything better,
8784 # like `-m68040'.
8785 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8786 ;;
8787 esac
8788 ;;
8789
8790 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8791 # PIC is the default for these OSes.
8792 ;;
8793
8794 mingw* | cygwin* | pw32* | os2* | cegcc*)
8795 # This hack is so that the source file can tell whether it is being
8796 # built for inclusion in a dll (and should export symbols for example).
8797 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8798 # (--disable-auto-import) libraries
8799 lt_prog_compiler_pic='-DDLL_EXPORT'
8800 ;;
8801
8802 darwin* | rhapsody*)
8803 # PIC is the default on this platform
8804 # Common symbols not allowed in MH_DYLIB files
8805 lt_prog_compiler_pic='-fno-common'
8806 ;;
8807
8808 hpux*)
8809 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8810 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8811 # sets the default TLS model and affects inlining.
8812 case $host_cpu in
8813 hppa*64*)
8814 # +Z the default
8815 ;;
8816 *)
8817 lt_prog_compiler_pic='-fPIC'
8818 ;;
8819 esac
8820 ;;
8821
8822 interix[3-9]*)
8823 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8824 # Instead, we relocate shared libraries at runtime.
8825 ;;
8826
8827 msdosdjgpp*)
8828 # Just because we use GCC doesn't mean we suddenly get shared libraries
8829 # on systems that don't support them.
8830 lt_prog_compiler_can_build_shared=no
8831 enable_shared=no
8832 ;;
8833
8834 *nto* | *qnx*)
8835 # QNX uses GNU C++, but need to define -shared option too, otherwise
8836 # it will coredump.
8837 lt_prog_compiler_pic='-fPIC -shared'
8838 ;;
8839
8840 sysv4*MP*)
8841 if test -d /usr/nec; then
8842 lt_prog_compiler_pic=-Kconform_pic
8843 fi
8844 ;;
8845
8846 *)
8847 lt_prog_compiler_pic='-fPIC'
8848 ;;
8849 esac
8850 else
8851 # PORTME Check for flag to pass linker flags through the system compiler.
8852 case $host_os in
8853 aix*)
8854 lt_prog_compiler_wl='-Wl,'
8855 if test "$host_cpu" = ia64; then
8856 # AIX 5 now supports IA64 processor
8857 lt_prog_compiler_static='-Bstatic'
8858 else
8859 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8860 fi
8861 ;;
8862
8863 mingw* | cygwin* | pw32* | os2* | cegcc*)
8864 # This hack is so that the source file can tell whether it is being
8865 # built for inclusion in a dll (and should export symbols for example).
8866 lt_prog_compiler_pic='-DDLL_EXPORT'
8867 ;;
8868
8869 hpux9* | hpux10* | hpux11*)
8870 lt_prog_compiler_wl='-Wl,'
8871 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8872 # not for PA HP-UX.
8873 case $host_cpu in
8874 hppa*64*|ia64*)
8875 # +Z the default
8876 ;;
8877 *)
8878 lt_prog_compiler_pic='+Z'
8879 ;;
8880 esac
8881 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8882 lt_prog_compiler_static='${wl}-a ${wl}archive'
8883 ;;
8884
8885 irix5* | irix6* | nonstopux*)
8886 lt_prog_compiler_wl='-Wl,'
8887 # PIC (with -KPIC) is the default.
8888 lt_prog_compiler_static='-non_shared'
8889 ;;
8890
8891 linux* | k*bsd*-gnu)
8892 case $cc_basename in
8893 # old Intel for x86_64 which still supported -KPIC.
8894 ecc*)
8895 lt_prog_compiler_wl='-Wl,'
8896 lt_prog_compiler_pic='-KPIC'
8897 lt_prog_compiler_static='-static'
8898 ;;
8899 # icc used to be incompatible with GCC.
8900 # ICC 10 doesn't accept -KPIC any more.
8901 icc* | ifort*)
8902 lt_prog_compiler_wl='-Wl,'
8903 lt_prog_compiler_pic='-fPIC'
8904 lt_prog_compiler_static='-static'
8905 ;;
8906 # Lahey Fortran 8.1.
8907 lf95*)
8908 lt_prog_compiler_wl='-Wl,'
8909 lt_prog_compiler_pic='--shared'
8910 lt_prog_compiler_static='--static'
8911 ;;
8912 pgcc* | pgf77* | pgf90* | pgf95*)
8913 # Portland Group compilers (*not* the Pentium gcc compiler,
8914 # which looks to be a dead project)
8915 lt_prog_compiler_wl='-Wl,'
8916 lt_prog_compiler_pic='-fpic'
8917 lt_prog_compiler_static='-Bstatic'
8918 ;;
8919 ccc*)
8920 lt_prog_compiler_wl='-Wl,'
8921 # All Alpha code is PIC.
8922 lt_prog_compiler_static='-non_shared'
8923 ;;
8924 xl*)
8925 # IBM XL C 8.0/Fortran 10.1 on PPC
8926 lt_prog_compiler_wl='-Wl,'
8927 lt_prog_compiler_pic='-qpic'
8928 lt_prog_compiler_static='-qstaticlink'
8929 ;;
8930 *)
8931 case `$CC -V 2>&1 | sed 5q` in
8932 *Sun\ C*)
8933 # Sun C 5.9
8934 lt_prog_compiler_pic='-KPIC'
8935 lt_prog_compiler_static='-Bstatic'
8936 lt_prog_compiler_wl='-Wl,'
8937 ;;
8938 *Sun\ F*)
8939 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8940 lt_prog_compiler_pic='-KPIC'
8941 lt_prog_compiler_static='-Bstatic'
8942 lt_prog_compiler_wl=''
8943 ;;
8944 esac
8945 ;;
8946 esac
8947 ;;
8948
8949 newsos6)
8950 lt_prog_compiler_pic='-KPIC'
8951 lt_prog_compiler_static='-Bstatic'
8952 ;;
8953
8954 *nto* | *qnx*)
8955 # QNX uses GNU C++, but need to define -shared option too, otherwise
8956 # it will coredump.
8957 lt_prog_compiler_pic='-fPIC -shared'
8958 ;;
8959
8960 osf3* | osf4* | osf5*)
8961 lt_prog_compiler_wl='-Wl,'
8962 # All OSF/1 code is PIC.
8963 lt_prog_compiler_static='-non_shared'
8964 ;;
8965
8966 rdos*)
8967 lt_prog_compiler_static='-non_shared'
8968 ;;
8969
8970 solaris*)
8971 lt_prog_compiler_pic='-KPIC'
8972 lt_prog_compiler_static='-Bstatic'
8973 case $cc_basename in
8974 f77* | f90* | f95*)
8975 lt_prog_compiler_wl='-Qoption ld ';;
8976 *)
8977 lt_prog_compiler_wl='-Wl,';;
8978 esac
8979 ;;
8980
8981 sunos4*)
8982 lt_prog_compiler_wl='-Qoption ld '
8983 lt_prog_compiler_pic='-PIC'
8984 lt_prog_compiler_static='-Bstatic'
8985 ;;
8986
8987 sysv4 | sysv4.2uw2* | sysv4.3*)
8988 lt_prog_compiler_wl='-Wl,'
8989 lt_prog_compiler_pic='-KPIC'
8990 lt_prog_compiler_static='-Bstatic'
8991 ;;
8992
8993 sysv4*MP*)
8994 if test -d /usr/nec ;then
8995 lt_prog_compiler_pic='-Kconform_pic'
8996 lt_prog_compiler_static='-Bstatic'
8997 fi
8998 ;;
8999
9000 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9001 lt_prog_compiler_wl='-Wl,'
9002 lt_prog_compiler_pic='-KPIC'
9003 lt_prog_compiler_static='-Bstatic'
9004 ;;
9005
9006 unicos*)
9007 lt_prog_compiler_wl='-Wl,'
9008 lt_prog_compiler_can_build_shared=no
9009 ;;
9010
9011 uts4*)
9012 lt_prog_compiler_pic='-pic'
9013 lt_prog_compiler_static='-Bstatic'
9014 ;;
9015
9016 *)
9017 lt_prog_compiler_can_build_shared=no
9018 ;;
9019 esac
9020 fi
9021
9022 case $host_os in
9023 # For platforms which do not support PIC, -DPIC is meaningless:
9024 *djgpp*)
9025 lt_prog_compiler_pic=
9026 ;;
9027 *)
9028 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9029 ;;
9030 esac
9031 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9032 $as_echo "$lt_prog_compiler_pic" >&6; }
9033
9034
9035
9036
9037
9038
9039 #
9040 # Check to make sure the PIC flag actually works.
9041 #
9042 if test -n "$lt_prog_compiler_pic"; then
9043 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9044 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9045 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9046 $as_echo_n "(cached) " >&6
9047 else
9048 lt_cv_prog_compiler_pic_works=no
9049 ac_outfile=conftest.$ac_objext
9050 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9051 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9052 # Insert the option either (1) after the last *FLAGS variable, or
9053 # (2) before a word containing "conftest.", or (3) at the end.
9054 # Note that $ac_compile itself does not contain backslashes and begins
9055 # with a dollar sign (not a hyphen), so the echo should work correctly.
9056 # The option is referenced via a variable to avoid confusing sed.
9057 lt_compile=`echo "$ac_compile" | $SED \
9058 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9059 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9060 -e 's:$: $lt_compiler_flag:'`
9061 (eval echo "\"\$as_me:9061: $lt_compile\"" >&5)
9062 (eval "$lt_compile" 2>conftest.err)
9063 ac_status=$?
9064 cat conftest.err >&5
9065 echo "$as_me:9065: \$? = $ac_status" >&5
9066 if (exit $ac_status) && test -s "$ac_outfile"; then
9067 # The compiler can only warn and ignore the option if not recognized
9068 # So say no if there are warnings other than the usual output.
9069 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9070 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9071 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9072 lt_cv_prog_compiler_pic_works=yes
9073 fi
9074 fi
9075 $RM conftest*
9076
9077 fi
9078 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9079 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9080
9081 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9082 case $lt_prog_compiler_pic in
9083 "" | " "*) ;;
9084 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9085 esac
9086 else
9087 lt_prog_compiler_pic=
9088 lt_prog_compiler_can_build_shared=no
9089 fi
9090
9091 fi
9092
9093
9094
9095
9096
9097
9098 #
9099 # Check to make sure the static flag actually works.
9100 #
9101 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9102 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9103 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9104 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9105 $as_echo_n "(cached) " >&6
9106 else
9107 lt_cv_prog_compiler_static_works=no
9108 save_LDFLAGS="$LDFLAGS"
9109 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9110 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9111 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9112 # The linker can only warn and ignore the option if not recognized
9113 # So say no if there are warnings
9114 if test -s conftest.err; then
9115 # Append any errors to the config.log.
9116 cat conftest.err 1>&5
9117 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9118 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9119 if diff conftest.exp conftest.er2 >/dev/null; then
9120 lt_cv_prog_compiler_static_works=yes
9121 fi
9122 else
9123 lt_cv_prog_compiler_static_works=yes
9124 fi
9125 fi
9126 $RM -r conftest*
9127 LDFLAGS="$save_LDFLAGS"
9128
9129 fi
9130 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9131 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9132
9133 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9134 :
9135 else
9136 lt_prog_compiler_static=
9137 fi
9138
9139
9140
9141
9142
9143
9144
9145 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9146 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9147 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9148 $as_echo_n "(cached) " >&6
9149 else
9150 lt_cv_prog_compiler_c_o=no
9151 $RM -r conftest 2>/dev/null
9152 mkdir conftest
9153 cd conftest
9154 mkdir out
9155 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9156
9157 lt_compiler_flag="-o out/conftest2.$ac_objext"
9158 # Insert the option either (1) after the last *FLAGS variable, or
9159 # (2) before a word containing "conftest.", or (3) at the end.
9160 # Note that $ac_compile itself does not contain backslashes and begins
9161 # with a dollar sign (not a hyphen), so the echo should work correctly.
9162 lt_compile=`echo "$ac_compile" | $SED \
9163 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9164 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9165 -e 's:$: $lt_compiler_flag:'`
9166 (eval echo "\"\$as_me:9166: $lt_compile\"" >&5)
9167 (eval "$lt_compile" 2>out/conftest.err)
9168 ac_status=$?
9169 cat out/conftest.err >&5
9170 echo "$as_me:9170: \$? = $ac_status" >&5
9171 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9172 then
9173 # The compiler can only warn and ignore the option if not recognized
9174 # So say no if there are warnings
9175 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9176 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9177 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9178 lt_cv_prog_compiler_c_o=yes
9179 fi
9180 fi
9181 chmod u+w . 2>&5
9182 $RM conftest*
9183 # SGI C++ compiler will create directory out/ii_files/ for
9184 # template instantiation
9185 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9186 $RM out/* && rmdir out
9187 cd ..
9188 $RM -r conftest
9189 $RM conftest*
9190
9191 fi
9192 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9193 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9194
9195
9196
9197
9198
9199
9200 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9201 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9202 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9203 $as_echo_n "(cached) " >&6
9204 else
9205 lt_cv_prog_compiler_c_o=no
9206 $RM -r conftest 2>/dev/null
9207 mkdir conftest
9208 cd conftest
9209 mkdir out
9210 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9211
9212 lt_compiler_flag="-o out/conftest2.$ac_objext"
9213 # Insert the option either (1) after the last *FLAGS variable, or
9214 # (2) before a word containing "conftest.", or (3) at the end.
9215 # Note that $ac_compile itself does not contain backslashes and begins
9216 # with a dollar sign (not a hyphen), so the echo should work correctly.
9217 lt_compile=`echo "$ac_compile" | $SED \
9218 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9219 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9220 -e 's:$: $lt_compiler_flag:'`
9221 (eval echo "\"\$as_me:9221: $lt_compile\"" >&5)
9222 (eval "$lt_compile" 2>out/conftest.err)
9223 ac_status=$?
9224 cat out/conftest.err >&5
9225 echo "$as_me:9225: \$? = $ac_status" >&5
9226 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9227 then
9228 # The compiler can only warn and ignore the option if not recognized
9229 # So say no if there are warnings
9230 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9231 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9232 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9233 lt_cv_prog_compiler_c_o=yes
9234 fi
9235 fi
9236 chmod u+w . 2>&5
9237 $RM conftest*
9238 # SGI C++ compiler will create directory out/ii_files/ for
9239 # template instantiation
9240 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9241 $RM out/* && rmdir out
9242 cd ..
9243 $RM -r conftest
9244 $RM conftest*
9245
9246 fi
9247 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9248 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9249
9250
9251
9252
9253 hard_links="nottested"
9254 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9255 # do not overwrite the value of need_locks provided by the user
9256 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9257 $as_echo_n "checking if we can lock with hard links... " >&6; }
9258 hard_links=yes
9259 $RM conftest*
9260 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9261 touch conftest.a
9262 ln conftest.a conftest.b 2>&5 || hard_links=no
9263 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9264 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
9265 $as_echo "$hard_links" >&6; }
9266 if test "$hard_links" = no; then
9267 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9268 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9269 need_locks=warn
9270 fi
9271 else
9272 need_locks=no
9273 fi
9274
9275
9276
9277
9278
9279
9280 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9281 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9282
9283 runpath_var=
9284 allow_undefined_flag=
9285 always_export_symbols=no
9286 archive_cmds=
9287 archive_expsym_cmds=
9288 compiler_needs_object=no
9289 enable_shared_with_static_runtimes=no
9290 export_dynamic_flag_spec=
9291 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9292 hardcode_automatic=no
9293 hardcode_direct=no
9294 hardcode_direct_absolute=no
9295 hardcode_libdir_flag_spec=
9296 hardcode_libdir_flag_spec_ld=
9297 hardcode_libdir_separator=
9298 hardcode_minus_L=no
9299 hardcode_shlibpath_var=unsupported
9300 inherit_rpath=no
9301 link_all_deplibs=unknown
9302 module_cmds=
9303 module_expsym_cmds=
9304 old_archive_from_new_cmds=
9305 old_archive_from_expsyms_cmds=
9306 thread_safe_flag_spec=
9307 whole_archive_flag_spec=
9308 # include_expsyms should be a list of space-separated symbols to be *always*
9309 # included in the symbol list
9310 include_expsyms=
9311 # exclude_expsyms can be an extended regexp of symbols to exclude
9312 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9313 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9314 # as well as any symbol that contains `d'.
9315 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9316 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9317 # platforms (ab)use it in PIC code, but their linkers get confused if
9318 # the symbol is explicitly referenced. Since portable code cannot
9319 # rely on this symbol name, it's probably fine to never include it in
9320 # preloaded symbol tables.
9321 # Exclude shared library initialization/finalization symbols.
9322 extract_expsyms_cmds=
9323
9324 case $host_os in
9325 cygwin* | mingw* | pw32* | cegcc*)
9326 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9327 # When not using gcc, we currently assume that we are using
9328 # Microsoft Visual C++.
9329 if test "$GCC" != yes; then
9330 with_gnu_ld=no
9331 fi
9332 ;;
9333 interix*)
9334 # we just hope/assume this is gcc and not c89 (= MSVC++)
9335 with_gnu_ld=yes
9336 ;;
9337 openbsd*)
9338 with_gnu_ld=no
9339 ;;
9340 esac
9341
9342 ld_shlibs=yes
9343 if test "$with_gnu_ld" = yes; then
9344 # If archive_cmds runs LD, not CC, wlarc should be empty
9345 wlarc='${wl}'
9346
9347 # Set some defaults for GNU ld with shared library support. These
9348 # are reset later if shared libraries are not supported. Putting them
9349 # here allows them to be overridden if necessary.
9350 runpath_var=LD_RUN_PATH
9351 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9352 export_dynamic_flag_spec='${wl}--export-dynamic'
9353 # ancient GNU ld didn't support --whole-archive et. al.
9354 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9355 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9356 else
9357 whole_archive_flag_spec=
9358 fi
9359 supports_anon_versioning=no
9360 case `$LD -v 2>&1` in
9361 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9362 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9363 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9364 *\ 2.11.*) ;; # other 2.11 versions
9365 *) supports_anon_versioning=yes ;;
9366 esac
9367
9368 # See if GNU ld supports shared libraries.
9369 case $host_os in
9370 aix[3-9]*)
9371 # On AIX/PPC, the GNU linker is very broken
9372 if test "$host_cpu" != ia64; then
9373 ld_shlibs=no
9374 cat <<_LT_EOF 1>&2
9375
9376 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9377 *** to be unable to reliably create shared libraries on AIX.
9378 *** Therefore, libtool is disabling shared libraries support. If you
9379 *** really care for shared libraries, you may want to modify your PATH
9380 *** so that a non-GNU linker is found, and then restart.
9381
9382 _LT_EOF
9383 fi
9384 ;;
9385
9386 amigaos*)
9387 case $host_cpu in
9388 powerpc)
9389 # see comment about AmigaOS4 .so support
9390 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9391 archive_expsym_cmds=''
9392 ;;
9393 m68k)
9394 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)'
9395 hardcode_libdir_flag_spec='-L$libdir'
9396 hardcode_minus_L=yes
9397 ;;
9398 esac
9399 ;;
9400
9401 beos*)
9402 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9403 allow_undefined_flag=unsupported
9404 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
9405 # support --undefined. This deserves some investigation. FIXME
9406 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9407 else
9408 ld_shlibs=no
9409 fi
9410 ;;
9411
9412 cygwin* | mingw* | pw32* | cegcc*)
9413 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9414 # as there is no search path for DLLs.
9415 hardcode_libdir_flag_spec='-L$libdir'
9416 allow_undefined_flag=unsupported
9417 always_export_symbols=no
9418 enable_shared_with_static_runtimes=yes
9419 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9420
9421 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9422 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9423 # If the export-symbols file already is a .def file (1st line
9424 # is EXPORTS), use it as is; otherwise, prepend...
9425 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9426 cp $export_symbols $output_objdir/$soname.def;
9427 else
9428 echo EXPORTS > $output_objdir/$soname.def;
9429 cat $export_symbols >> $output_objdir/$soname.def;
9430 fi~
9431 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9432 else
9433 ld_shlibs=no
9434 fi
9435 ;;
9436
9437 interix[3-9]*)
9438 hardcode_direct=no
9439 hardcode_shlibpath_var=no
9440 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9441 export_dynamic_flag_spec='${wl}-E'
9442 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9443 # Instead, shared libraries are loaded at an image base (0x10000000 by
9444 # default) and relocated if they conflict, which is a slow very memory
9445 # consuming and fragmenting process. To avoid this, we pick a random,
9446 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9447 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9448 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9449 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'
9450 ;;
9451
9452 gnu* | linux* | tpf* | k*bsd*-gnu)
9453 tmp_diet=no
9454 if test "$host_os" = linux-dietlibc; then
9455 case $cc_basename in
9456 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9457 esac
9458 fi
9459 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9460 && test "$tmp_diet" = no
9461 then
9462 tmp_addflag=
9463 tmp_sharedflag='-shared'
9464 case $cc_basename,$host_cpu in
9465 pgcc*) # Portland Group C compiler
9466 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'
9467 tmp_addflag=' $pic_flag'
9468 ;;
9469 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9470 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'
9471 tmp_addflag=' $pic_flag -Mnomain' ;;
9472 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9473 tmp_addflag=' -i_dynamic' ;;
9474 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9475 tmp_addflag=' -i_dynamic -nofor_main' ;;
9476 ifc* | ifort*) # Intel Fortran compiler
9477 tmp_addflag=' -nofor_main' ;;
9478 lf95*) # Lahey Fortran 8.1
9479 whole_archive_flag_spec=
9480 tmp_sharedflag='--shared' ;;
9481 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9482 tmp_sharedflag='-qmkshrobj'
9483 tmp_addflag= ;;
9484 esac
9485 case `$CC -V 2>&1 | sed 5q` in
9486 *Sun\ C*) # Sun C 5.9
9487 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'
9488 compiler_needs_object=yes
9489 tmp_sharedflag='-G' ;;
9490 *Sun\ F*) # Sun Fortran 8.3
9491 tmp_sharedflag='-G' ;;
9492 esac
9493 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9494
9495 if test "x$supports_anon_versioning" = xyes; then
9496 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9497 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9498 echo "local: *; };" >> $output_objdir/$libname.ver~
9499 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9500 fi
9501
9502 case $cc_basename in
9503 xlf*)
9504 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9505 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9506 hardcode_libdir_flag_spec=
9507 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9508 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9509 if test "x$supports_anon_versioning" = xyes; then
9510 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9511 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9512 echo "local: *; };" >> $output_objdir/$libname.ver~
9513 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9514 fi
9515 ;;
9516 esac
9517 else
9518 ld_shlibs=no
9519 fi
9520 ;;
9521
9522 netbsd*)
9523 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9524 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9525 wlarc=
9526 else
9527 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9528 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9529 fi
9530 ;;
9531
9532 solaris*)
9533 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9534 ld_shlibs=no
9535 cat <<_LT_EOF 1>&2
9536
9537 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9538 *** create shared libraries on Solaris systems. Therefore, libtool
9539 *** is disabling shared libraries support. We urge you to upgrade GNU
9540 *** binutils to release 2.9.1 or newer. Another option is to modify
9541 *** your PATH or compiler configuration so that the native linker is
9542 *** used, and then restart.
9543
9544 _LT_EOF
9545 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9546 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9547 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9548 else
9549 ld_shlibs=no
9550 fi
9551 ;;
9552
9553 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9554 case `$LD -v 2>&1` in
9555 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9556 ld_shlibs=no
9557 cat <<_LT_EOF 1>&2
9558
9559 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9560 *** reliably create shared libraries on SCO systems. Therefore, libtool
9561 *** is disabling shared libraries support. We urge you to upgrade GNU
9562 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9563 *** your PATH or compiler configuration so that the native linker is
9564 *** used, and then restart.
9565
9566 _LT_EOF
9567 ;;
9568 *)
9569 # For security reasons, it is highly recommended that you always
9570 # use absolute paths for naming shared libraries, and exclude the
9571 # DT_RUNPATH tag from executables and libraries. But doing so
9572 # requires that you compile everything twice, which is a pain.
9573 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9574 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9575 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9576 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9577 else
9578 ld_shlibs=no
9579 fi
9580 ;;
9581 esac
9582 ;;
9583
9584 sunos4*)
9585 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9586 wlarc=
9587 hardcode_direct=yes
9588 hardcode_shlibpath_var=no
9589 ;;
9590
9591 *)
9592 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9593 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9594 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9595 else
9596 ld_shlibs=no
9597 fi
9598 ;;
9599 esac
9600
9601 if test "$ld_shlibs" = no; then
9602 runpath_var=
9603 hardcode_libdir_flag_spec=
9604 export_dynamic_flag_spec=
9605 whole_archive_flag_spec=
9606 fi
9607 else
9608 # PORTME fill in a description of your system's linker (not GNU ld)
9609 case $host_os in
9610 aix3*)
9611 allow_undefined_flag=unsupported
9612 always_export_symbols=yes
9613 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'
9614 # Note: this linker hardcodes the directories in LIBPATH if there
9615 # are no directories specified by -L.
9616 hardcode_minus_L=yes
9617 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9618 # Neither direct hardcoding nor static linking is supported with a
9619 # broken collect2.
9620 hardcode_direct=unsupported
9621 fi
9622 ;;
9623
9624 aix[4-9]*)
9625 if test "$host_cpu" = ia64; then
9626 # On IA64, the linker does run time linking by default, so we don't
9627 # have to do anything special.
9628 aix_use_runtimelinking=no
9629 exp_sym_flag='-Bexport'
9630 no_entry_flag=""
9631 else
9632 # If we're using GNU nm, then we don't want the "-C" option.
9633 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9634 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9635 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'
9636 else
9637 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'
9638 fi
9639 aix_use_runtimelinking=no
9640
9641 # Test if we are trying to use run time linking or normal
9642 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9643 # need to do runtime linking.
9644 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9645 for ld_flag in $LDFLAGS; do
9646 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9647 aix_use_runtimelinking=yes
9648 break
9649 fi
9650 done
9651 ;;
9652 esac
9653
9654 exp_sym_flag='-bexport'
9655 no_entry_flag='-bnoentry'
9656 fi
9657
9658 # When large executables or shared objects are built, AIX ld can
9659 # have problems creating the table of contents. If linking a library
9660 # or program results in "error TOC overflow" add -mminimal-toc to
9661 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9662 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9663
9664 archive_cmds=''
9665 hardcode_direct=yes
9666 hardcode_direct_absolute=yes
9667 hardcode_libdir_separator=':'
9668 link_all_deplibs=yes
9669 file_list_spec='${wl}-f,'
9670
9671 if test "$GCC" = yes; then
9672 case $host_os in aix4.[012]|aix4.[012].*)
9673 # We only want to do this on AIX 4.2 and lower, the check
9674 # below for broken collect2 doesn't work under 4.3+
9675 collect2name=`${CC} -print-prog-name=collect2`
9676 if test -f "$collect2name" &&
9677 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9678 then
9679 # We have reworked collect2
9680 :
9681 else
9682 # We have old collect2
9683 hardcode_direct=unsupported
9684 # It fails to find uninstalled libraries when the uninstalled
9685 # path is not listed in the libpath. Setting hardcode_minus_L
9686 # to unsupported forces relinking
9687 hardcode_minus_L=yes
9688 hardcode_libdir_flag_spec='-L$libdir'
9689 hardcode_libdir_separator=
9690 fi
9691 ;;
9692 esac
9693 shared_flag='-shared'
9694 if test "$aix_use_runtimelinking" = yes; then
9695 shared_flag="$shared_flag "'${wl}-G'
9696 fi
9697 else
9698 # not using gcc
9699 if test "$host_cpu" = ia64; then
9700 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9701 # chokes on -Wl,-G. The following line is correct:
9702 shared_flag='-G'
9703 else
9704 if test "$aix_use_runtimelinking" = yes; then
9705 shared_flag='${wl}-G'
9706 else
9707 shared_flag='${wl}-bM:SRE'
9708 fi
9709 fi
9710 fi
9711
9712 export_dynamic_flag_spec='${wl}-bexpall'
9713 # It seems that -bexpall does not export symbols beginning with
9714 # underscore (_), so it is better to generate a list of symbols to export.
9715 always_export_symbols=yes
9716 if test "$aix_use_runtimelinking" = yes; then
9717 # Warning - without using the other runtime loading flags (-brtl),
9718 # -berok will link without error, but may produce a broken library.
9719 allow_undefined_flag='-berok'
9720 # Determine the default libpath from the value encoded in an
9721 # empty executable.
9722 cat >conftest.$ac_ext <<_ACEOF
9723 /* confdefs.h. */
9724 _ACEOF
9725 cat confdefs.h >>conftest.$ac_ext
9726 cat >>conftest.$ac_ext <<_ACEOF
9727 /* end confdefs.h. */
9728
9729 int
9730 main ()
9731 {
9732
9733 ;
9734 return 0;
9735 }
9736 _ACEOF
9737 rm -f conftest.$ac_objext conftest$ac_exeext
9738 if { (ac_try="$ac_link"
9739 case "(($ac_try" in
9740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9741 *) ac_try_echo=$ac_try;;
9742 esac
9743 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9744 $as_echo "$ac_try_echo") >&5
9745 (eval "$ac_link") 2>conftest.er1
9746 ac_status=$?
9747 grep -v '^ *+' conftest.er1 >conftest.err
9748 rm -f conftest.er1
9749 cat conftest.err >&5
9750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751 (exit $ac_status); } && {
9752 test -z "$ac_c_werror_flag" ||
9753 test ! -s conftest.err
9754 } && test -s conftest$ac_exeext && {
9755 test "$cross_compiling" = yes ||
9756 $as_test_x conftest$ac_exeext
9757 }; then
9758
9759 lt_aix_libpath_sed='
9760 /Import File Strings/,/^$/ {
9761 /^0/ {
9762 s/^0 *\(.*\)$/\1/
9763 p
9764 }
9765 }'
9766 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9767 # Check for a 64-bit object if we didn't find anything.
9768 if test -z "$aix_libpath"; then
9769 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9770 fi
9771 else
9772 $as_echo "$as_me: failed program was:" >&5
9773 sed 's/^/| /' conftest.$ac_ext >&5
9774
9775
9776 fi
9777
9778 rm -rf conftest.dSYM
9779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9780 conftest$ac_exeext conftest.$ac_ext
9781 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9782
9783 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9784 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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9785 else
9786 if test "$host_cpu" = ia64; then
9787 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9788 allow_undefined_flag="-z nodefs"
9789 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"
9790 else
9791 # Determine the default libpath from the value encoded in an
9792 # empty executable.
9793 cat >conftest.$ac_ext <<_ACEOF
9794 /* confdefs.h. */
9795 _ACEOF
9796 cat confdefs.h >>conftest.$ac_ext
9797 cat >>conftest.$ac_ext <<_ACEOF
9798 /* end confdefs.h. */
9799
9800 int
9801 main ()
9802 {
9803
9804 ;
9805 return 0;
9806 }
9807 _ACEOF
9808 rm -f conftest.$ac_objext conftest$ac_exeext
9809 if { (ac_try="$ac_link"
9810 case "(($ac_try" in
9811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9812 *) ac_try_echo=$ac_try;;
9813 esac
9814 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9815 $as_echo "$ac_try_echo") >&5
9816 (eval "$ac_link") 2>conftest.er1
9817 ac_status=$?
9818 grep -v '^ *+' conftest.er1 >conftest.err
9819 rm -f conftest.er1
9820 cat conftest.err >&5
9821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822 (exit $ac_status); } && {
9823 test -z "$ac_c_werror_flag" ||
9824 test ! -s conftest.err
9825 } && test -s conftest$ac_exeext && {
9826 test "$cross_compiling" = yes ||
9827 $as_test_x conftest$ac_exeext
9828 }; then
9829
9830 lt_aix_libpath_sed='
9831 /Import File Strings/,/^$/ {
9832 /^0/ {
9833 s/^0 *\(.*\)$/\1/
9834 p
9835 }
9836 }'
9837 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9838 # Check for a 64-bit object if we didn't find anything.
9839 if test -z "$aix_libpath"; then
9840 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9841 fi
9842 else
9843 $as_echo "$as_me: failed program was:" >&5
9844 sed 's/^/| /' conftest.$ac_ext >&5
9845
9846
9847 fi
9848
9849 rm -rf conftest.dSYM
9850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9851 conftest$ac_exeext conftest.$ac_ext
9852 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9853
9854 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9855 # Warning - without using the other run time loading flags,
9856 # -berok will link without error, but may produce a broken library.
9857 no_undefined_flag=' ${wl}-bernotok'
9858 allow_undefined_flag=' ${wl}-berok'
9859 # Exported symbols can be pulled into shared objects from archives
9860 whole_archive_flag_spec='$convenience'
9861 archive_cmds_need_lc=yes
9862 # This is similar to how AIX traditionally builds its shared libraries.
9863 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'
9864 fi
9865 fi
9866 ;;
9867
9868 amigaos*)
9869 case $host_cpu in
9870 powerpc)
9871 # see comment about AmigaOS4 .so support
9872 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9873 archive_expsym_cmds=''
9874 ;;
9875 m68k)
9876 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)'
9877 hardcode_libdir_flag_spec='-L$libdir'
9878 hardcode_minus_L=yes
9879 ;;
9880 esac
9881 ;;
9882
9883 bsdi[45]*)
9884 export_dynamic_flag_spec=-rdynamic
9885 ;;
9886
9887 cygwin* | mingw* | pw32* | cegcc*)
9888 # When not using gcc, we currently assume that we are using
9889 # Microsoft Visual C++.
9890 # hardcode_libdir_flag_spec is actually meaningless, as there is
9891 # no search path for DLLs.
9892 hardcode_libdir_flag_spec=' '
9893 allow_undefined_flag=unsupported
9894 # Tell ltmain to make .lib files, not .a files.
9895 libext=lib
9896 # Tell ltmain to make .dll files, not .so files.
9897 shrext_cmds=".dll"
9898 # FIXME: Setting linknames here is a bad hack.
9899 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9900 # The linker will automatically build a .lib file if we build a DLL.
9901 old_archive_from_new_cmds='true'
9902 # FIXME: Should let the user specify the lib program.
9903 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9904 fix_srcfile_path='`cygpath -w "$srcfile"`'
9905 enable_shared_with_static_runtimes=yes
9906 ;;
9907
9908 darwin* | rhapsody*)
9909
9910
9911 archive_cmds_need_lc=no
9912 hardcode_direct=no
9913 hardcode_automatic=yes
9914 hardcode_shlibpath_var=unsupported
9915 whole_archive_flag_spec=''
9916 link_all_deplibs=yes
9917 allow_undefined_flag="$_lt_dar_allow_undefined"
9918 case $cc_basename in
9919 ifort*) _lt_dar_can_shared=yes ;;
9920 *) _lt_dar_can_shared=$GCC ;;
9921 esac
9922 if test "$_lt_dar_can_shared" = "yes"; then
9923 output_verbose_link_cmd=echo
9924 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9925 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9926 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}"
9927 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}"
9928
9929 else
9930 ld_shlibs=no
9931 fi
9932
9933 ;;
9934
9935 dgux*)
9936 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9937 hardcode_libdir_flag_spec='-L$libdir'
9938 hardcode_shlibpath_var=no
9939 ;;
9940
9941 freebsd1*)
9942 ld_shlibs=no
9943 ;;
9944
9945 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9946 # support. Future versions do this automatically, but an explicit c++rt0.o
9947 # does not break anything, and helps significantly (at the cost of a little
9948 # extra space).
9949 freebsd2.2*)
9950 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9951 hardcode_libdir_flag_spec='-R$libdir'
9952 hardcode_direct=yes
9953 hardcode_shlibpath_var=no
9954 ;;
9955
9956 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9957 freebsd2*)
9958 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9959 hardcode_direct=yes
9960 hardcode_minus_L=yes
9961 hardcode_shlibpath_var=no
9962 ;;
9963
9964 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9965 freebsd* | dragonfly*)
9966 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9967 hardcode_libdir_flag_spec='-R$libdir'
9968 hardcode_direct=yes
9969 hardcode_shlibpath_var=no
9970 ;;
9971
9972 hpux9*)
9973 if test "$GCC" = yes; then
9974 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'
9975 else
9976 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'
9977 fi
9978 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9979 hardcode_libdir_separator=:
9980 hardcode_direct=yes
9981
9982 # hardcode_minus_L: Not really in the search PATH,
9983 # but as the default location of the library.
9984 hardcode_minus_L=yes
9985 export_dynamic_flag_spec='${wl}-E'
9986 ;;
9987
9988 hpux10*)
9989 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9990 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9991 else
9992 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9993 fi
9994 if test "$with_gnu_ld" = no; then
9995 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9996 hardcode_libdir_flag_spec_ld='+b $libdir'
9997 hardcode_libdir_separator=:
9998 hardcode_direct=yes
9999 hardcode_direct_absolute=yes
10000 export_dynamic_flag_spec='${wl}-E'
10001 # hardcode_minus_L: Not really in the search PATH,
10002 # but as the default location of the library.
10003 hardcode_minus_L=yes
10004 fi
10005 ;;
10006
10007 hpux11*)
10008 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10009 case $host_cpu in
10010 hppa*64*)
10011 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10012 ;;
10013 ia64*)
10014 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10015 ;;
10016 *)
10017 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10018 ;;
10019 esac
10020 else
10021 case $host_cpu in
10022 hppa*64*)
10023 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10024 ;;
10025 ia64*)
10026 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10027 ;;
10028 *)
10029 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10030 ;;
10031 esac
10032 fi
10033 if test "$with_gnu_ld" = no; then
10034 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10035 hardcode_libdir_separator=:
10036
10037 case $host_cpu in
10038 hppa*64*|ia64*)
10039 hardcode_direct=no
10040 hardcode_shlibpath_var=no
10041 ;;
10042 *)
10043 hardcode_direct=yes
10044 hardcode_direct_absolute=yes
10045 export_dynamic_flag_spec='${wl}-E'
10046
10047 # hardcode_minus_L: Not really in the search PATH,
10048 # but as the default location of the library.
10049 hardcode_minus_L=yes
10050 ;;
10051 esac
10052 fi
10053 ;;
10054
10055 irix5* | irix6* | nonstopux*)
10056 if test "$GCC" = yes; then
10057 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10058 # Try to use the -exported_symbol ld option, if it does not
10059 # work, assume that -exports_file does not work either and
10060 # implicitly export all symbols.
10061 save_LDFLAGS="$LDFLAGS"
10062 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10063 cat >conftest.$ac_ext <<_ACEOF
10064 int foo(void) {}
10065 _ACEOF
10066 rm -f conftest.$ac_objext conftest$ac_exeext
10067 if { (ac_try="$ac_link"
10068 case "(($ac_try" in
10069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10070 *) ac_try_echo=$ac_try;;
10071 esac
10072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10073 $as_echo "$ac_try_echo") >&5
10074 (eval "$ac_link") 2>conftest.er1
10075 ac_status=$?
10076 grep -v '^ *+' conftest.er1 >conftest.err
10077 rm -f conftest.er1
10078 cat conftest.err >&5
10079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080 (exit $ac_status); } && {
10081 test -z "$ac_c_werror_flag" ||
10082 test ! -s conftest.err
10083 } && test -s conftest$ac_exeext && {
10084 test "$cross_compiling" = yes ||
10085 $as_test_x conftest$ac_exeext
10086 }; then
10087 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10088
10089 else
10090 $as_echo "$as_me: failed program was:" >&5
10091 sed 's/^/| /' conftest.$ac_ext >&5
10092
10093
10094 fi
10095
10096 rm -rf conftest.dSYM
10097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10098 conftest$ac_exeext conftest.$ac_ext
10099 LDFLAGS="$save_LDFLAGS"
10100 else
10101 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10102 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10103 fi
10104 archive_cmds_need_lc='no'
10105 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10106 hardcode_libdir_separator=:
10107 inherit_rpath=yes
10108 link_all_deplibs=yes
10109 ;;
10110
10111 netbsd*)
10112 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10113 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10114 else
10115 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10116 fi
10117 hardcode_libdir_flag_spec='-R$libdir'
10118 hardcode_direct=yes
10119 hardcode_shlibpath_var=no
10120 ;;
10121
10122 newsos6)
10123 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10124 hardcode_direct=yes
10125 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10126 hardcode_libdir_separator=:
10127 hardcode_shlibpath_var=no
10128 ;;
10129
10130 *nto* | *qnx*)
10131 ;;
10132
10133 openbsd*)
10134 if test -f /usr/libexec/ld.so; then
10135 hardcode_direct=yes
10136 hardcode_shlibpath_var=no
10137 hardcode_direct_absolute=yes
10138 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10139 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10140 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10141 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10142 export_dynamic_flag_spec='${wl}-E'
10143 else
10144 case $host_os in
10145 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10146 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10147 hardcode_libdir_flag_spec='-R$libdir'
10148 ;;
10149 *)
10150 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10151 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10152 ;;
10153 esac
10154 fi
10155 else
10156 ld_shlibs=no
10157 fi
10158 ;;
10159
10160 os2*)
10161 hardcode_libdir_flag_spec='-L$libdir'
10162 hardcode_minus_L=yes
10163 allow_undefined_flag=unsupported
10164 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'
10165 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10166 ;;
10167
10168 osf3*)
10169 if test "$GCC" = yes; then
10170 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10171 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10172 else
10173 allow_undefined_flag=' -expect_unresolved \*'
10174 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10175 fi
10176 archive_cmds_need_lc='no'
10177 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10178 hardcode_libdir_separator=:
10179 ;;
10180
10181 osf4* | osf5*) # as osf3* with the addition of -msym flag
10182 if test "$GCC" = yes; then
10183 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10184 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10185 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10186 else
10187 allow_undefined_flag=' -expect_unresolved \*'
10188 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10189 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10190 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10191
10192 # Both c and cxx compiler support -rpath directly
10193 hardcode_libdir_flag_spec='-rpath $libdir'
10194 fi
10195 archive_cmds_need_lc='no'
10196 hardcode_libdir_separator=:
10197 ;;
10198
10199 solaris*)
10200 no_undefined_flag=' -z defs'
10201 if test "$GCC" = yes; then
10202 wlarc='${wl}'
10203 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10204 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10205 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10206 else
10207 case `$CC -V 2>&1` in
10208 *"Compilers 5.0"*)
10209 wlarc=''
10210 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10211 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10212 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10213 ;;
10214 *)
10215 wlarc='${wl}'
10216 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10217 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10218 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10219 ;;
10220 esac
10221 fi
10222 hardcode_libdir_flag_spec='-R$libdir'
10223 hardcode_shlibpath_var=no
10224 case $host_os in
10225 solaris2.[0-5] | solaris2.[0-5].*) ;;
10226 *)
10227 # The compiler driver will combine and reorder linker options,
10228 # but understands `-z linker_flag'. GCC discards it without `$wl',
10229 # but is careful enough not to reorder.
10230 # Supported since Solaris 2.6 (maybe 2.5.1?)
10231 if test "$GCC" = yes; then
10232 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10233 else
10234 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10235 fi
10236 ;;
10237 esac
10238 link_all_deplibs=yes
10239 ;;
10240
10241 sunos4*)
10242 if test "x$host_vendor" = xsequent; then
10243 # Use $CC to link under sequent, because it throws in some extra .o
10244 # files that make .init and .fini sections work.
10245 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10246 else
10247 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10248 fi
10249 hardcode_libdir_flag_spec='-L$libdir'
10250 hardcode_direct=yes
10251 hardcode_minus_L=yes
10252 hardcode_shlibpath_var=no
10253 ;;
10254
10255 sysv4)
10256 case $host_vendor in
10257 sni)
10258 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10259 hardcode_direct=yes # is this really true???
10260 ;;
10261 siemens)
10262 ## LD is ld it makes a PLAMLIB
10263 ## CC just makes a GrossModule.
10264 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10265 reload_cmds='$CC -r -o $output$reload_objs'
10266 hardcode_direct=no
10267 ;;
10268 motorola)
10269 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10270 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10271 ;;
10272 esac
10273 runpath_var='LD_RUN_PATH'
10274 hardcode_shlibpath_var=no
10275 ;;
10276
10277 sysv4.3*)
10278 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10279 hardcode_shlibpath_var=no
10280 export_dynamic_flag_spec='-Bexport'
10281 ;;
10282
10283 sysv4*MP*)
10284 if test -d /usr/nec; then
10285 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10286 hardcode_shlibpath_var=no
10287 runpath_var=LD_RUN_PATH
10288 hardcode_runpath_var=yes
10289 ld_shlibs=yes
10290 fi
10291 ;;
10292
10293 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10294 no_undefined_flag='${wl}-z,text'
10295 archive_cmds_need_lc=no
10296 hardcode_shlibpath_var=no
10297 runpath_var='LD_RUN_PATH'
10298
10299 if test "$GCC" = yes; then
10300 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10301 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10302 else
10303 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10304 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10305 fi
10306 ;;
10307
10308 sysv5* | sco3.2v5* | sco5v6*)
10309 # Note: We can NOT use -z defs as we might desire, because we do not
10310 # link with -lc, and that would cause any symbols used from libc to
10311 # always be unresolved, which means just about no library would
10312 # ever link correctly. If we're not using GNU ld we use -z text
10313 # though, which does catch some bad symbols but isn't as heavy-handed
10314 # as -z defs.
10315 no_undefined_flag='${wl}-z,text'
10316 allow_undefined_flag='${wl}-z,nodefs'
10317 archive_cmds_need_lc=no
10318 hardcode_shlibpath_var=no
10319 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10320 hardcode_libdir_separator=':'
10321 link_all_deplibs=yes
10322 export_dynamic_flag_spec='${wl}-Bexport'
10323 runpath_var='LD_RUN_PATH'
10324
10325 if test "$GCC" = yes; then
10326 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10327 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10328 else
10329 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10330 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10331 fi
10332 ;;
10333
10334 uts4*)
10335 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10336 hardcode_libdir_flag_spec='-L$libdir'
10337 hardcode_shlibpath_var=no
10338 ;;
10339
10340 *)
10341 ld_shlibs=no
10342 ;;
10343 esac
10344
10345 if test x$host_vendor = xsni; then
10346 case $host in
10347 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10348 export_dynamic_flag_spec='${wl}-Blargedynsym'
10349 ;;
10350 esac
10351 fi
10352 fi
10353
10354 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10355 $as_echo "$ld_shlibs" >&6; }
10356 test "$ld_shlibs" = no && can_build_shared=no
10357
10358 with_gnu_ld=$with_gnu_ld
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374 #
10375 # Do we need to explicitly link libc?
10376 #
10377 case "x$archive_cmds_need_lc" in
10378 x|xyes)
10379 # Assume -lc should be added
10380 archive_cmds_need_lc=yes
10381
10382 if test "$enable_shared" = yes && test "$GCC" = yes; then
10383 case $archive_cmds in
10384 *'~'*)
10385 # FIXME: we may have to deal with multi-command sequences.
10386 ;;
10387 '$CC '*)
10388 # Test whether the compiler implicitly links with -lc since on some
10389 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10390 # to ld, don't add -lc before -lgcc.
10391 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10392 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10393 $RM conftest*
10394 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10395
10396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10397 (eval $ac_compile) 2>&5
10398 ac_status=$?
10399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10400 (exit $ac_status); } 2>conftest.err; then
10401 soname=conftest
10402 lib=conftest
10403 libobjs=conftest.$ac_objext
10404 deplibs=
10405 wl=$lt_prog_compiler_wl
10406 pic_flag=$lt_prog_compiler_pic
10407 compiler_flags=-v
10408 linker_flags=-v
10409 verstring=
10410 output_objdir=.
10411 libname=conftest
10412 lt_save_allow_undefined_flag=$allow_undefined_flag
10413 allow_undefined_flag=
10414 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
10415 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10416 ac_status=$?
10417 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10418 (exit $ac_status); }
10419 then
10420 archive_cmds_need_lc=no
10421 else
10422 archive_cmds_need_lc=yes
10423 fi
10424 allow_undefined_flag=$lt_save_allow_undefined_flag
10425 else
10426 cat conftest.err 1>&5
10427 fi
10428 $RM conftest*
10429 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10430 $as_echo "$archive_cmds_need_lc" >&6; }
10431 ;;
10432 esac
10433 fi
10434 ;;
10435 esac
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10594 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10595
10596 if test "$GCC" = yes; then
10597 case $host_os in
10598 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10599 *) lt_awk_arg="/^libraries:/" ;;
10600 esac
10601 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10602 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10603 # if the path contains ";" then we assume it to be the separator
10604 # otherwise default to the standard path separator (i.e. ":") - it is
10605 # assumed that no part of a normal pathname contains ";" but that should
10606 # okay in the real world where ";" in dirpaths is itself problematic.
10607 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10608 else
10609 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10610 fi
10611 # Ok, now we have the path, separated by spaces, we can step through it
10612 # and add multilib dir if necessary.
10613 lt_tmp_lt_search_path_spec=
10614 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10615 for lt_sys_path in $lt_search_path_spec; do
10616 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10617 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10618 else
10619 test -d "$lt_sys_path" && \
10620 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10621 fi
10622 done
10623 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10624 BEGIN {RS=" "; FS="/|\n";} {
10625 lt_foo="";
10626 lt_count=0;
10627 for (lt_i = NF; lt_i > 0; lt_i--) {
10628 if ($lt_i != "" && $lt_i != ".") {
10629 if ($lt_i == "..") {
10630 lt_count++;
10631 } else {
10632 if (lt_count == 0) {
10633 lt_foo="/" $lt_i lt_foo;
10634 } else {
10635 lt_count--;
10636 }
10637 }
10638 }
10639 }
10640 if (lt_foo != "") { lt_freq[lt_foo]++; }
10641 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10642 }'`
10643 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10644 else
10645 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10646 fi
10647 library_names_spec=
10648 libname_spec='lib$name'
10649 soname_spec=
10650 shrext_cmds=".so"
10651 postinstall_cmds=
10652 postuninstall_cmds=
10653 finish_cmds=
10654 finish_eval=
10655 shlibpath_var=
10656 shlibpath_overrides_runpath=unknown
10657 version_type=none
10658 dynamic_linker="$host_os ld.so"
10659 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10660 need_lib_prefix=unknown
10661 hardcode_into_libs=no
10662
10663 # when you set need_version to no, make sure it does not cause -set_version
10664 # flags to be left without arguments
10665 need_version=unknown
10666
10667 case $host_os in
10668 aix3*)
10669 version_type=linux
10670 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10671 shlibpath_var=LIBPATH
10672
10673 # AIX 3 has no versioning support, so we append a major version to the name.
10674 soname_spec='${libname}${release}${shared_ext}$major'
10675 ;;
10676
10677 aix[4-9]*)
10678 version_type=linux
10679 need_lib_prefix=no
10680 need_version=no
10681 hardcode_into_libs=yes
10682 if test "$host_cpu" = ia64; then
10683 # AIX 5 supports IA64
10684 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10685 shlibpath_var=LD_LIBRARY_PATH
10686 else
10687 # With GCC up to 2.95.x, collect2 would create an import file
10688 # for dependence libraries. The import file would start with
10689 # the line `#! .'. This would cause the generated library to
10690 # depend on `.', always an invalid library. This was fixed in
10691 # development snapshots of GCC prior to 3.0.
10692 case $host_os in
10693 aix4 | aix4.[01] | aix4.[01].*)
10694 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10695 echo ' yes '
10696 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10697 :
10698 else
10699 can_build_shared=no
10700 fi
10701 ;;
10702 esac
10703 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10704 # soname into executable. Probably we can add versioning support to
10705 # collect2, so additional links can be useful in future.
10706 if test "$aix_use_runtimelinking" = yes; then
10707 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10708 # instead of lib<name>.a to let people know that these are not
10709 # typical AIX shared libraries.
10710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10711 else
10712 # We preserve .a as extension for shared libraries through AIX4.2
10713 # and later when we are not doing run time linking.
10714 library_names_spec='${libname}${release}.a $libname.a'
10715 soname_spec='${libname}${release}${shared_ext}$major'
10716 fi
10717 shlibpath_var=LIBPATH
10718 fi
10719 ;;
10720
10721 amigaos*)
10722 case $host_cpu in
10723 powerpc)
10724 # Since July 2007 AmigaOS4 officially supports .so libraries.
10725 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10727 ;;
10728 m68k)
10729 library_names_spec='$libname.ixlibrary $libname.a'
10730 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10731 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'
10732 ;;
10733 esac
10734 ;;
10735
10736 beos*)
10737 library_names_spec='${libname}${shared_ext}'
10738 dynamic_linker="$host_os ld.so"
10739 shlibpath_var=LIBRARY_PATH
10740 ;;
10741
10742 bsdi[45]*)
10743 version_type=linux
10744 need_version=no
10745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10746 soname_spec='${libname}${release}${shared_ext}$major'
10747 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10748 shlibpath_var=LD_LIBRARY_PATH
10749 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10750 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10751 # the default ld.so.conf also contains /usr/contrib/lib and
10752 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10753 # libtool to hard-code these into programs
10754 ;;
10755
10756 cygwin* | mingw* | pw32* | cegcc*)
10757 version_type=windows
10758 shrext_cmds=".dll"
10759 need_version=no
10760 need_lib_prefix=no
10761
10762 case $GCC,$host_os in
10763 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10764 library_names_spec='$libname.dll.a'
10765 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10766 postinstall_cmds='base_file=`basename \${file}`~
10767 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10768 dldir=$destdir/`dirname \$dlpath`~
10769 test -d \$dldir || mkdir -p \$dldir~
10770 $install_prog $dir/$dlname \$dldir/$dlname~
10771 chmod a+x \$dldir/$dlname~
10772 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10773 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10774 fi'
10775 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10776 dlpath=$dir/\$dldll~
10777 $RM \$dlpath'
10778 shlibpath_overrides_runpath=yes
10779
10780 case $host_os in
10781 cygwin*)
10782 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10783 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10784 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10785 ;;
10786 mingw* | cegcc*)
10787 # MinGW DLLs use traditional 'lib' prefix
10788 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10789 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10790 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10791 # It is most probably a Windows format PATH printed by
10792 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10793 # path with ; separators, and with drive letters. We can handle the
10794 # drive letters (cygwin fileutils understands them), so leave them,
10795 # especially as we might pass files found there to a mingw objdump,
10796 # which wouldn't understand a cygwinified path. Ahh.
10797 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10798 else
10799 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10800 fi
10801 ;;
10802 pw32*)
10803 # pw32 DLLs use 'pw' prefix rather than 'lib'
10804 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10805 ;;
10806 esac
10807 ;;
10808
10809 *)
10810 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10811 ;;
10812 esac
10813 dynamic_linker='Win32 ld.exe'
10814 # FIXME: first we should search . and the directory the executable is in
10815 shlibpath_var=PATH
10816 ;;
10817
10818 darwin* | rhapsody*)
10819 dynamic_linker="$host_os dyld"
10820 version_type=darwin
10821 need_lib_prefix=no
10822 need_version=no
10823 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10824 soname_spec='${libname}${release}${major}$shared_ext'
10825 shlibpath_overrides_runpath=yes
10826 shlibpath_var=DYLD_LIBRARY_PATH
10827 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10828
10829 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10830 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10831 ;;
10832
10833 dgux*)
10834 version_type=linux
10835 need_lib_prefix=no
10836 need_version=no
10837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10838 soname_spec='${libname}${release}${shared_ext}$major'
10839 shlibpath_var=LD_LIBRARY_PATH
10840 ;;
10841
10842 freebsd1*)
10843 dynamic_linker=no
10844 ;;
10845
10846 freebsd* | dragonfly*)
10847 # DragonFly does not have aout. When/if they implement a new
10848 # versioning mechanism, adjust this.
10849 if test -x /usr/bin/objformat; then
10850 objformat=`/usr/bin/objformat`
10851 else
10852 case $host_os in
10853 freebsd[123]*) objformat=aout ;;
10854 *) objformat=elf ;;
10855 esac
10856 fi
10857 version_type=freebsd-$objformat
10858 case $version_type in
10859 freebsd-elf*)
10860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10861 need_version=no
10862 need_lib_prefix=no
10863 ;;
10864 freebsd-*)
10865 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10866 need_version=yes
10867 ;;
10868 esac
10869 shlibpath_var=LD_LIBRARY_PATH
10870 case $host_os in
10871 freebsd2*)
10872 shlibpath_overrides_runpath=yes
10873 ;;
10874 freebsd3.[01]* | freebsdelf3.[01]*)
10875 shlibpath_overrides_runpath=yes
10876 hardcode_into_libs=yes
10877 ;;
10878 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10879 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10880 shlibpath_overrides_runpath=no
10881 hardcode_into_libs=yes
10882 ;;
10883 *) # from 4.6 on, and DragonFly
10884 shlibpath_overrides_runpath=yes
10885 hardcode_into_libs=yes
10886 ;;
10887 esac
10888 ;;
10889
10890 gnu*)
10891 version_type=linux
10892 need_lib_prefix=no
10893 need_version=no
10894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10895 soname_spec='${libname}${release}${shared_ext}$major'
10896 shlibpath_var=LD_LIBRARY_PATH
10897 hardcode_into_libs=yes
10898 ;;
10899
10900 hpux9* | hpux10* | hpux11*)
10901 # Give a soname corresponding to the major version so that dld.sl refuses to
10902 # link against other versions.
10903 version_type=sunos
10904 need_lib_prefix=no
10905 need_version=no
10906 case $host_cpu in
10907 ia64*)
10908 shrext_cmds='.so'
10909 hardcode_into_libs=yes
10910 dynamic_linker="$host_os dld.so"
10911 shlibpath_var=LD_LIBRARY_PATH
10912 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10914 soname_spec='${libname}${release}${shared_ext}$major'
10915 if test "X$HPUX_IA64_MODE" = X32; then
10916 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10917 else
10918 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10919 fi
10920 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10921 ;;
10922 hppa*64*)
10923 shrext_cmds='.sl'
10924 hardcode_into_libs=yes
10925 dynamic_linker="$host_os dld.sl"
10926 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10927 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10929 soname_spec='${libname}${release}${shared_ext}$major'
10930 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10931 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10932 ;;
10933 *)
10934 shrext_cmds='.sl'
10935 dynamic_linker="$host_os dld.sl"
10936 shlibpath_var=SHLIB_PATH
10937 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10939 soname_spec='${libname}${release}${shared_ext}$major'
10940 ;;
10941 esac
10942 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10943 postinstall_cmds='chmod 555 $lib'
10944 ;;
10945
10946 interix[3-9]*)
10947 version_type=linux
10948 need_lib_prefix=no
10949 need_version=no
10950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10951 soname_spec='${libname}${release}${shared_ext}$major'
10952 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10953 shlibpath_var=LD_LIBRARY_PATH
10954 shlibpath_overrides_runpath=no
10955 hardcode_into_libs=yes
10956 ;;
10957
10958 irix5* | irix6* | nonstopux*)
10959 case $host_os in
10960 nonstopux*) version_type=nonstopux ;;
10961 *)
10962 if test "$lt_cv_prog_gnu_ld" = yes; then
10963 version_type=linux
10964 else
10965 version_type=irix
10966 fi ;;
10967 esac
10968 need_lib_prefix=no
10969 need_version=no
10970 soname_spec='${libname}${release}${shared_ext}$major'
10971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10972 case $host_os in
10973 irix5* | nonstopux*)
10974 libsuff= shlibsuff=
10975 ;;
10976 *)
10977 case $LD in # libtool.m4 will add one of these switches to LD
10978 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10979 libsuff= shlibsuff= libmagic=32-bit;;
10980 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10981 libsuff=32 shlibsuff=N32 libmagic=N32;;
10982 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10983 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10984 *) libsuff= shlibsuff= libmagic=never-match;;
10985 esac
10986 ;;
10987 esac
10988 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10989 shlibpath_overrides_runpath=no
10990 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10991 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10992 hardcode_into_libs=yes
10993 ;;
10994
10995 # No shared lib support for Linux oldld, aout, or coff.
10996 linux*oldld* | linux*aout* | linux*coff*)
10997 dynamic_linker=no
10998 ;;
10999
11000 # This must be Linux ELF.
11001 linux* | k*bsd*-gnu)
11002 version_type=linux
11003 need_lib_prefix=no
11004 need_version=no
11005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11006 soname_spec='${libname}${release}${shared_ext}$major'
11007 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11008 shlibpath_var=LD_LIBRARY_PATH
11009 shlibpath_overrides_runpath=no
11010 # Some binutils ld are patched to set DT_RUNPATH
11011 save_LDFLAGS=$LDFLAGS
11012 save_libdir=$libdir
11013 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11014 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11015 cat >conftest.$ac_ext <<_ACEOF
11016 /* confdefs.h. */
11017 _ACEOF
11018 cat confdefs.h >>conftest.$ac_ext
11019 cat >>conftest.$ac_ext <<_ACEOF
11020 /* end confdefs.h. */
11021
11022 int
11023 main ()
11024 {
11025
11026 ;
11027 return 0;
11028 }
11029 _ACEOF
11030 rm -f conftest.$ac_objext conftest$ac_exeext
11031 if { (ac_try="$ac_link"
11032 case "(($ac_try" in
11033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11034 *) ac_try_echo=$ac_try;;
11035 esac
11036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11037 $as_echo "$ac_try_echo") >&5
11038 (eval "$ac_link") 2>conftest.er1
11039 ac_status=$?
11040 grep -v '^ *+' conftest.er1 >conftest.err
11041 rm -f conftest.er1
11042 cat conftest.err >&5
11043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044 (exit $ac_status); } && {
11045 test -z "$ac_c_werror_flag" ||
11046 test ! -s conftest.err
11047 } && test -s conftest$ac_exeext && {
11048 test "$cross_compiling" = yes ||
11049 $as_test_x conftest$ac_exeext
11050 }; then
11051 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11052 shlibpath_overrides_runpath=yes
11053 fi
11054
11055 else
11056 $as_echo "$as_me: failed program was:" >&5
11057 sed 's/^/| /' conftest.$ac_ext >&5
11058
11059
11060 fi
11061
11062 rm -rf conftest.dSYM
11063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11064 conftest$ac_exeext conftest.$ac_ext
11065 LDFLAGS=$save_LDFLAGS
11066 libdir=$save_libdir
11067
11068 # This implies no fast_install, which is unacceptable.
11069 # Some rework will be needed to allow for fast_install
11070 # before this can be enabled.
11071 hardcode_into_libs=yes
11072
11073 # Add ABI-specific directories to the system library path.
11074 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11075
11076 # Append ld.so.conf contents to the search path
11077 if test -f /etc/ld.so.conf; then
11078 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' ' '`
11079 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11080 fi
11081
11082 # We used to test for /lib/ld.so.1 and disable shared libraries on
11083 # powerpc, because MkLinux only supported shared libraries with the
11084 # GNU dynamic linker. Since this was broken with cross compilers,
11085 # most powerpc-linux boxes support dynamic linking these days and
11086 # people can always --disable-shared, the test was removed, and we
11087 # assume the GNU/Linux dynamic linker is in use.
11088 dynamic_linker='GNU/Linux ld.so'
11089 ;;
11090
11091 netbsd*)
11092 version_type=sunos
11093 need_lib_prefix=no
11094 need_version=no
11095 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11097 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11098 dynamic_linker='NetBSD (a.out) ld.so'
11099 else
11100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11101 soname_spec='${libname}${release}${shared_ext}$major'
11102 dynamic_linker='NetBSD ld.elf_so'
11103 fi
11104 shlibpath_var=LD_LIBRARY_PATH
11105 shlibpath_overrides_runpath=yes
11106 hardcode_into_libs=yes
11107 ;;
11108
11109 newsos6)
11110 version_type=linux
11111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11112 shlibpath_var=LD_LIBRARY_PATH
11113 shlibpath_overrides_runpath=yes
11114 ;;
11115
11116 *nto* | *qnx*)
11117 version_type=qnx
11118 need_lib_prefix=no
11119 need_version=no
11120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11121 soname_spec='${libname}${release}${shared_ext}$major'
11122 shlibpath_var=LD_LIBRARY_PATH
11123 shlibpath_overrides_runpath=no
11124 hardcode_into_libs=yes
11125 dynamic_linker='ldqnx.so'
11126 ;;
11127
11128 openbsd*)
11129 version_type=sunos
11130 sys_lib_dlsearch_path_spec="/usr/lib"
11131 need_lib_prefix=no
11132 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11133 case $host_os in
11134 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11135 *) need_version=no ;;
11136 esac
11137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11138 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11139 shlibpath_var=LD_LIBRARY_PATH
11140 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11141 case $host_os in
11142 openbsd2.[89] | openbsd2.[89].*)
11143 shlibpath_overrides_runpath=no
11144 ;;
11145 *)
11146 shlibpath_overrides_runpath=yes
11147 ;;
11148 esac
11149 else
11150 shlibpath_overrides_runpath=yes
11151 fi
11152 ;;
11153
11154 os2*)
11155 libname_spec='$name'
11156 shrext_cmds=".dll"
11157 need_lib_prefix=no
11158 library_names_spec='$libname${shared_ext} $libname.a'
11159 dynamic_linker='OS/2 ld.exe'
11160 shlibpath_var=LIBPATH
11161 ;;
11162
11163 osf3* | osf4* | osf5*)
11164 version_type=osf
11165 need_lib_prefix=no
11166 need_version=no
11167 soname_spec='${libname}${release}${shared_ext}$major'
11168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11169 shlibpath_var=LD_LIBRARY_PATH
11170 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11171 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11172 ;;
11173
11174 rdos*)
11175 dynamic_linker=no
11176 ;;
11177
11178 solaris*)
11179 version_type=linux
11180 need_lib_prefix=no
11181 need_version=no
11182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11183 soname_spec='${libname}${release}${shared_ext}$major'
11184 shlibpath_var=LD_LIBRARY_PATH
11185 shlibpath_overrides_runpath=yes
11186 hardcode_into_libs=yes
11187 # ldd complains unless libraries are executable
11188 postinstall_cmds='chmod +x $lib'
11189 ;;
11190
11191 sunos4*)
11192 version_type=sunos
11193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11194 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11195 shlibpath_var=LD_LIBRARY_PATH
11196 shlibpath_overrides_runpath=yes
11197 if test "$with_gnu_ld" = yes; then
11198 need_lib_prefix=no
11199 fi
11200 need_version=yes
11201 ;;
11202
11203 sysv4 | sysv4.3*)
11204 version_type=linux
11205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11206 soname_spec='${libname}${release}${shared_ext}$major'
11207 shlibpath_var=LD_LIBRARY_PATH
11208 case $host_vendor in
11209 sni)
11210 shlibpath_overrides_runpath=no
11211 need_lib_prefix=no
11212 runpath_var=LD_RUN_PATH
11213 ;;
11214 siemens)
11215 need_lib_prefix=no
11216 ;;
11217 motorola)
11218 need_lib_prefix=no
11219 need_version=no
11220 shlibpath_overrides_runpath=no
11221 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11222 ;;
11223 esac
11224 ;;
11225
11226 sysv4*MP*)
11227 if test -d /usr/nec ;then
11228 version_type=linux
11229 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11230 soname_spec='$libname${shared_ext}.$major'
11231 shlibpath_var=LD_LIBRARY_PATH
11232 fi
11233 ;;
11234
11235 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11236 version_type=freebsd-elf
11237 need_lib_prefix=no
11238 need_version=no
11239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11240 soname_spec='${libname}${release}${shared_ext}$major'
11241 shlibpath_var=LD_LIBRARY_PATH
11242 shlibpath_overrides_runpath=yes
11243 hardcode_into_libs=yes
11244 if test "$with_gnu_ld" = yes; then
11245 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11246 else
11247 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11248 case $host_os in
11249 sco3.2v5*)
11250 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11251 ;;
11252 esac
11253 fi
11254 sys_lib_dlsearch_path_spec='/usr/lib'
11255 ;;
11256
11257 tpf*)
11258 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11259 version_type=linux
11260 need_lib_prefix=no
11261 need_version=no
11262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11263 shlibpath_var=LD_LIBRARY_PATH
11264 shlibpath_overrides_runpath=no
11265 hardcode_into_libs=yes
11266 ;;
11267
11268 uts4*)
11269 version_type=linux
11270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11271 soname_spec='${libname}${release}${shared_ext}$major'
11272 shlibpath_var=LD_LIBRARY_PATH
11273 ;;
11274
11275 *)
11276 dynamic_linker=no
11277 ;;
11278 esac
11279 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11280 $as_echo "$dynamic_linker" >&6; }
11281 test "$dynamic_linker" = no && can_build_shared=no
11282
11283 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11284 if test "$GCC" = yes; then
11285 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11286 fi
11287
11288 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11289 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11290 fi
11291 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11292 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11293 fi
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11382 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11383 hardcode_action=
11384 if test -n "$hardcode_libdir_flag_spec" ||
11385 test -n "$runpath_var" ||
11386 test "X$hardcode_automatic" = "Xyes" ; then
11387
11388 # We can hardcode non-existent directories.
11389 if test "$hardcode_direct" != no &&
11390 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11391 # have to relink, otherwise we might link with an installed library
11392 # when we should be linking with a yet-to-be-installed one
11393 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11394 test "$hardcode_minus_L" != no; then
11395 # Linking always hardcodes the temporary library directory.
11396 hardcode_action=relink
11397 else
11398 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11399 hardcode_action=immediate
11400 fi
11401 else
11402 # We cannot hardcode anything, or else we can only hardcode existing
11403 # directories.
11404 hardcode_action=unsupported
11405 fi
11406 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
11407 $as_echo "$hardcode_action" >&6; }
11408
11409 if test "$hardcode_action" = relink ||
11410 test "$inherit_rpath" = yes; then
11411 # Fast installation is not supported
11412 enable_fast_install=no
11413 elif test "$shlibpath_overrides_runpath" = yes ||
11414 test "$enable_shared" = no; then
11415 # Fast installation is not necessary
11416 enable_fast_install=needless
11417 fi
11418
11419
11420
11421
11422
11423
11424 if test "x$enable_dlopen" != xyes; then
11425 enable_dlopen=unknown
11426 enable_dlopen_self=unknown
11427 enable_dlopen_self_static=unknown
11428 else
11429 lt_cv_dlopen=no
11430 lt_cv_dlopen_libs=
11431
11432 case $host_os in
11433 beos*)
11434 lt_cv_dlopen="load_add_on"
11435 lt_cv_dlopen_libs=
11436 lt_cv_dlopen_self=yes
11437 ;;
11438
11439 mingw* | pw32* | cegcc*)
11440 lt_cv_dlopen="LoadLibrary"
11441 lt_cv_dlopen_libs=
11442 ;;
11443
11444 cygwin*)
11445 lt_cv_dlopen="dlopen"
11446 lt_cv_dlopen_libs=
11447 ;;
11448
11449 darwin*)
11450 # if libdl is installed we need to link against it
11451 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11452 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11453 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11454 $as_echo_n "(cached) " >&6
11455 else
11456 ac_check_lib_save_LIBS=$LIBS
11457 LIBS="-ldl $LIBS"
11458 cat >conftest.$ac_ext <<_ACEOF
11459 /* confdefs.h. */
11460 _ACEOF
11461 cat confdefs.h >>conftest.$ac_ext
11462 cat >>conftest.$ac_ext <<_ACEOF
11463 /* end confdefs.h. */
11464
11465 /* Override any GCC internal prototype to avoid an error.
11466 Use char because int might match the return type of a GCC
11467 builtin and then its argument prototype would still apply. */
11468 #ifdef __cplusplus
11469 extern "C"
11470 #endif
11471 char dlopen ();
11472 int
11473 main ()
11474 {
11475 return dlopen ();
11476 ;
11477 return 0;
11478 }
11479 _ACEOF
11480 rm -f conftest.$ac_objext conftest$ac_exeext
11481 if { (ac_try="$ac_link"
11482 case "(($ac_try" in
11483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11484 *) ac_try_echo=$ac_try;;
11485 esac
11486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11487 $as_echo "$ac_try_echo") >&5
11488 (eval "$ac_link") 2>conftest.er1
11489 ac_status=$?
11490 grep -v '^ *+' conftest.er1 >conftest.err
11491 rm -f conftest.er1
11492 cat conftest.err >&5
11493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11494 (exit $ac_status); } && {
11495 test -z "$ac_c_werror_flag" ||
11496 test ! -s conftest.err
11497 } && test -s conftest$ac_exeext && {
11498 test "$cross_compiling" = yes ||
11499 $as_test_x conftest$ac_exeext
11500 }; then
11501 ac_cv_lib_dl_dlopen=yes
11502 else
11503 $as_echo "$as_me: failed program was:" >&5
11504 sed 's/^/| /' conftest.$ac_ext >&5
11505
11506 ac_cv_lib_dl_dlopen=no
11507 fi
11508
11509 rm -rf conftest.dSYM
11510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11511 conftest$ac_exeext conftest.$ac_ext
11512 LIBS=$ac_check_lib_save_LIBS
11513 fi
11514 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11515 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11516 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11517 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11518 else
11519
11520 lt_cv_dlopen="dyld"
11521 lt_cv_dlopen_libs=
11522 lt_cv_dlopen_self=yes
11523
11524 fi
11525
11526 ;;
11527
11528 *)
11529 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
11530 $as_echo_n "checking for shl_load... " >&6; }
11531 if test "${ac_cv_func_shl_load+set}" = set; then
11532 $as_echo_n "(cached) " >&6
11533 else
11534 cat >conftest.$ac_ext <<_ACEOF
11535 /* confdefs.h. */
11536 _ACEOF
11537 cat confdefs.h >>conftest.$ac_ext
11538 cat >>conftest.$ac_ext <<_ACEOF
11539 /* end confdefs.h. */
11540 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11541 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11542 #define shl_load innocuous_shl_load
11543
11544 /* System header to define __stub macros and hopefully few prototypes,
11545 which can conflict with char shl_load (); below.
11546 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11547 <limits.h> exists even on freestanding compilers. */
11548
11549 #ifdef __STDC__
11550 # include <limits.h>
11551 #else
11552 # include <assert.h>
11553 #endif
11554
11555 #undef shl_load
11556
11557 /* Override any GCC internal prototype to avoid an error.
11558 Use char because int might match the return type of a GCC
11559 builtin and then its argument prototype would still apply. */
11560 #ifdef __cplusplus
11561 extern "C"
11562 #endif
11563 char shl_load ();
11564 /* The GNU C library defines this for functions which it implements
11565 to always fail with ENOSYS. Some functions are actually named
11566 something starting with __ and the normal name is an alias. */
11567 #if defined __stub_shl_load || defined __stub___shl_load
11568 choke me
11569 #endif
11570
11571 int
11572 main ()
11573 {
11574 return shl_load ();
11575 ;
11576 return 0;
11577 }
11578 _ACEOF
11579 rm -f conftest.$ac_objext conftest$ac_exeext
11580 if { (ac_try="$ac_link"
11581 case "(($ac_try" in
11582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11583 *) ac_try_echo=$ac_try;;
11584 esac
11585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11586 $as_echo "$ac_try_echo") >&5
11587 (eval "$ac_link") 2>conftest.er1
11588 ac_status=$?
11589 grep -v '^ *+' conftest.er1 >conftest.err
11590 rm -f conftest.er1
11591 cat conftest.err >&5
11592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11593 (exit $ac_status); } && {
11594 test -z "$ac_c_werror_flag" ||
11595 test ! -s conftest.err
11596 } && test -s conftest$ac_exeext && {
11597 test "$cross_compiling" = yes ||
11598 $as_test_x conftest$ac_exeext
11599 }; then
11600 ac_cv_func_shl_load=yes
11601 else
11602 $as_echo "$as_me: failed program was:" >&5
11603 sed 's/^/| /' conftest.$ac_ext >&5
11604
11605 ac_cv_func_shl_load=no
11606 fi
11607
11608 rm -rf conftest.dSYM
11609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11610 conftest$ac_exeext conftest.$ac_ext
11611 fi
11612 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11613 $as_echo "$ac_cv_func_shl_load" >&6; }
11614 if test "x$ac_cv_func_shl_load" = x""yes; then
11615 lt_cv_dlopen="shl_load"
11616 else
11617 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11618 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11619 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11620 $as_echo_n "(cached) " >&6
11621 else
11622 ac_check_lib_save_LIBS=$LIBS
11623 LIBS="-ldld $LIBS"
11624 cat >conftest.$ac_ext <<_ACEOF
11625 /* confdefs.h. */
11626 _ACEOF
11627 cat confdefs.h >>conftest.$ac_ext
11628 cat >>conftest.$ac_ext <<_ACEOF
11629 /* end confdefs.h. */
11630
11631 /* Override any GCC internal prototype to avoid an error.
11632 Use char because int might match the return type of a GCC
11633 builtin and then its argument prototype would still apply. */
11634 #ifdef __cplusplus
11635 extern "C"
11636 #endif
11637 char shl_load ();
11638 int
11639 main ()
11640 {
11641 return shl_load ();
11642 ;
11643 return 0;
11644 }
11645 _ACEOF
11646 rm -f conftest.$ac_objext conftest$ac_exeext
11647 if { (ac_try="$ac_link"
11648 case "(($ac_try" in
11649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11650 *) ac_try_echo=$ac_try;;
11651 esac
11652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11653 $as_echo "$ac_try_echo") >&5
11654 (eval "$ac_link") 2>conftest.er1
11655 ac_status=$?
11656 grep -v '^ *+' conftest.er1 >conftest.err
11657 rm -f conftest.er1
11658 cat conftest.err >&5
11659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660 (exit $ac_status); } && {
11661 test -z "$ac_c_werror_flag" ||
11662 test ! -s conftest.err
11663 } && test -s conftest$ac_exeext && {
11664 test "$cross_compiling" = yes ||
11665 $as_test_x conftest$ac_exeext
11666 }; then
11667 ac_cv_lib_dld_shl_load=yes
11668 else
11669 $as_echo "$as_me: failed program was:" >&5
11670 sed 's/^/| /' conftest.$ac_ext >&5
11671
11672 ac_cv_lib_dld_shl_load=no
11673 fi
11674
11675 rm -rf conftest.dSYM
11676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11677 conftest$ac_exeext conftest.$ac_ext
11678 LIBS=$ac_check_lib_save_LIBS
11679 fi
11680 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11681 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11682 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
11683 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11684 else
11685 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
11686 $as_echo_n "checking for dlopen... " >&6; }
11687 if test "${ac_cv_func_dlopen+set}" = set; then
11688 $as_echo_n "(cached) " >&6
11689 else
11690 cat >conftest.$ac_ext <<_ACEOF
11691 /* confdefs.h. */
11692 _ACEOF
11693 cat confdefs.h >>conftest.$ac_ext
11694 cat >>conftest.$ac_ext <<_ACEOF
11695 /* end confdefs.h. */
11696 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11697 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11698 #define dlopen innocuous_dlopen
11699
11700 /* System header to define __stub macros and hopefully few prototypes,
11701 which can conflict with char dlopen (); below.
11702 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11703 <limits.h> exists even on freestanding compilers. */
11704
11705 #ifdef __STDC__
11706 # include <limits.h>
11707 #else
11708 # include <assert.h>
11709 #endif
11710
11711 #undef dlopen
11712
11713 /* Override any GCC internal prototype to avoid an error.
11714 Use char because int might match the return type of a GCC
11715 builtin and then its argument prototype would still apply. */
11716 #ifdef __cplusplus
11717 extern "C"
11718 #endif
11719 char dlopen ();
11720 /* The GNU C library defines this for functions which it implements
11721 to always fail with ENOSYS. Some functions are actually named
11722 something starting with __ and the normal name is an alias. */
11723 #if defined __stub_dlopen || defined __stub___dlopen
11724 choke me
11725 #endif
11726
11727 int
11728 main ()
11729 {
11730 return dlopen ();
11731 ;
11732 return 0;
11733 }
11734 _ACEOF
11735 rm -f conftest.$ac_objext conftest$ac_exeext
11736 if { (ac_try="$ac_link"
11737 case "(($ac_try" in
11738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11739 *) ac_try_echo=$ac_try;;
11740 esac
11741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11742 $as_echo "$ac_try_echo") >&5
11743 (eval "$ac_link") 2>conftest.er1
11744 ac_status=$?
11745 grep -v '^ *+' conftest.er1 >conftest.err
11746 rm -f conftest.er1
11747 cat conftest.err >&5
11748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11749 (exit $ac_status); } && {
11750 test -z "$ac_c_werror_flag" ||
11751 test ! -s conftest.err
11752 } && test -s conftest$ac_exeext && {
11753 test "$cross_compiling" = yes ||
11754 $as_test_x conftest$ac_exeext
11755 }; then
11756 ac_cv_func_dlopen=yes
11757 else
11758 $as_echo "$as_me: failed program was:" >&5
11759 sed 's/^/| /' conftest.$ac_ext >&5
11760
11761 ac_cv_func_dlopen=no
11762 fi
11763
11764 rm -rf conftest.dSYM
11765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11766 conftest$ac_exeext conftest.$ac_ext
11767 fi
11768 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11769 $as_echo "$ac_cv_func_dlopen" >&6; }
11770 if test "x$ac_cv_func_dlopen" = x""yes; then
11771 lt_cv_dlopen="dlopen"
11772 else
11773 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11774 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11775 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11776 $as_echo_n "(cached) " >&6
11777 else
11778 ac_check_lib_save_LIBS=$LIBS
11779 LIBS="-ldl $LIBS"
11780 cat >conftest.$ac_ext <<_ACEOF
11781 /* confdefs.h. */
11782 _ACEOF
11783 cat confdefs.h >>conftest.$ac_ext
11784 cat >>conftest.$ac_ext <<_ACEOF
11785 /* end confdefs.h. */
11786
11787 /* Override any GCC internal prototype to avoid an error.
11788 Use char because int might match the return type of a GCC
11789 builtin and then its argument prototype would still apply. */
11790 #ifdef __cplusplus
11791 extern "C"
11792 #endif
11793 char dlopen ();
11794 int
11795 main ()
11796 {
11797 return dlopen ();
11798 ;
11799 return 0;
11800 }
11801 _ACEOF
11802 rm -f conftest.$ac_objext conftest$ac_exeext
11803 if { (ac_try="$ac_link"
11804 case "(($ac_try" in
11805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11806 *) ac_try_echo=$ac_try;;
11807 esac
11808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11809 $as_echo "$ac_try_echo") >&5
11810 (eval "$ac_link") 2>conftest.er1
11811 ac_status=$?
11812 grep -v '^ *+' conftest.er1 >conftest.err
11813 rm -f conftest.er1
11814 cat conftest.err >&5
11815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11816 (exit $ac_status); } && {
11817 test -z "$ac_c_werror_flag" ||
11818 test ! -s conftest.err
11819 } && test -s conftest$ac_exeext && {
11820 test "$cross_compiling" = yes ||
11821 $as_test_x conftest$ac_exeext
11822 }; then
11823 ac_cv_lib_dl_dlopen=yes
11824 else
11825 $as_echo "$as_me: failed program was:" >&5
11826 sed 's/^/| /' conftest.$ac_ext >&5
11827
11828 ac_cv_lib_dl_dlopen=no
11829 fi
11830
11831 rm -rf conftest.dSYM
11832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11833 conftest$ac_exeext conftest.$ac_ext
11834 LIBS=$ac_check_lib_save_LIBS
11835 fi
11836 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11837 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11838 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11839 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11840 else
11841 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11842 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11843 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11844 $as_echo_n "(cached) " >&6
11845 else
11846 ac_check_lib_save_LIBS=$LIBS
11847 LIBS="-lsvld $LIBS"
11848 cat >conftest.$ac_ext <<_ACEOF
11849 /* confdefs.h. */
11850 _ACEOF
11851 cat confdefs.h >>conftest.$ac_ext
11852 cat >>conftest.$ac_ext <<_ACEOF
11853 /* end confdefs.h. */
11854
11855 /* Override any GCC internal prototype to avoid an error.
11856 Use char because int might match the return type of a GCC
11857 builtin and then its argument prototype would still apply. */
11858 #ifdef __cplusplus
11859 extern "C"
11860 #endif
11861 char dlopen ();
11862 int
11863 main ()
11864 {
11865 return dlopen ();
11866 ;
11867 return 0;
11868 }
11869 _ACEOF
11870 rm -f conftest.$ac_objext conftest$ac_exeext
11871 if { (ac_try="$ac_link"
11872 case "(($ac_try" in
11873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11874 *) ac_try_echo=$ac_try;;
11875 esac
11876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11877 $as_echo "$ac_try_echo") >&5
11878 (eval "$ac_link") 2>conftest.er1
11879 ac_status=$?
11880 grep -v '^ *+' conftest.er1 >conftest.err
11881 rm -f conftest.er1
11882 cat conftest.err >&5
11883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884 (exit $ac_status); } && {
11885 test -z "$ac_c_werror_flag" ||
11886 test ! -s conftest.err
11887 } && test -s conftest$ac_exeext && {
11888 test "$cross_compiling" = yes ||
11889 $as_test_x conftest$ac_exeext
11890 }; then
11891 ac_cv_lib_svld_dlopen=yes
11892 else
11893 $as_echo "$as_me: failed program was:" >&5
11894 sed 's/^/| /' conftest.$ac_ext >&5
11895
11896 ac_cv_lib_svld_dlopen=no
11897 fi
11898
11899 rm -rf conftest.dSYM
11900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11901 conftest$ac_exeext conftest.$ac_ext
11902 LIBS=$ac_check_lib_save_LIBS
11903 fi
11904 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11905 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11906 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11907 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11908 else
11909 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11910 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11911 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11912 $as_echo_n "(cached) " >&6
11913 else
11914 ac_check_lib_save_LIBS=$LIBS
11915 LIBS="-ldld $LIBS"
11916 cat >conftest.$ac_ext <<_ACEOF
11917 /* confdefs.h. */
11918 _ACEOF
11919 cat confdefs.h >>conftest.$ac_ext
11920 cat >>conftest.$ac_ext <<_ACEOF
11921 /* end confdefs.h. */
11922
11923 /* Override any GCC internal prototype to avoid an error.
11924 Use char because int might match the return type of a GCC
11925 builtin and then its argument prototype would still apply. */
11926 #ifdef __cplusplus
11927 extern "C"
11928 #endif
11929 char dld_link ();
11930 int
11931 main ()
11932 {
11933 return dld_link ();
11934 ;
11935 return 0;
11936 }
11937 _ACEOF
11938 rm -f conftest.$ac_objext conftest$ac_exeext
11939 if { (ac_try="$ac_link"
11940 case "(($ac_try" in
11941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11942 *) ac_try_echo=$ac_try;;
11943 esac
11944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11945 $as_echo "$ac_try_echo") >&5
11946 (eval "$ac_link") 2>conftest.er1
11947 ac_status=$?
11948 grep -v '^ *+' conftest.er1 >conftest.err
11949 rm -f conftest.er1
11950 cat conftest.err >&5
11951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952 (exit $ac_status); } && {
11953 test -z "$ac_c_werror_flag" ||
11954 test ! -s conftest.err
11955 } && test -s conftest$ac_exeext && {
11956 test "$cross_compiling" = yes ||
11957 $as_test_x conftest$ac_exeext
11958 }; then
11959 ac_cv_lib_dld_dld_link=yes
11960 else
11961 $as_echo "$as_me: failed program was:" >&5
11962 sed 's/^/| /' conftest.$ac_ext >&5
11963
11964 ac_cv_lib_dld_dld_link=no
11965 fi
11966
11967 rm -rf conftest.dSYM
11968 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11969 conftest$ac_exeext conftest.$ac_ext
11970 LIBS=$ac_check_lib_save_LIBS
11971 fi
11972 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11973 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11974 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11975 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11976 fi
11977
11978
11979 fi
11980
11981
11982 fi
11983
11984
11985 fi
11986
11987
11988 fi
11989
11990
11991 fi
11992
11993 ;;
11994 esac
11995
11996 if test "x$lt_cv_dlopen" != xno; then
11997 enable_dlopen=yes
11998 else
11999 enable_dlopen=no
12000 fi
12001
12002 case $lt_cv_dlopen in
12003 dlopen)
12004 save_CPPFLAGS="$CPPFLAGS"
12005 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12006
12007 save_LDFLAGS="$LDFLAGS"
12008 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12009
12010 save_LIBS="$LIBS"
12011 LIBS="$lt_cv_dlopen_libs $LIBS"
12012
12013 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12014 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12015 if test "${lt_cv_dlopen_self+set}" = set; then
12016 $as_echo_n "(cached) " >&6
12017 else
12018 if test "$cross_compiling" = yes; then :
12019 lt_cv_dlopen_self=cross
12020 else
12021 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12022 lt_status=$lt_dlunknown
12023 cat > conftest.$ac_ext <<_LT_EOF
12024 #line 12024 "configure"
12025 #include "confdefs.h"
12026
12027 #if HAVE_DLFCN_H
12028 #include <dlfcn.h>
12029 #endif
12030
12031 #include <stdio.h>
12032
12033 #ifdef RTLD_GLOBAL
12034 # define LT_DLGLOBAL RTLD_GLOBAL
12035 #else
12036 # ifdef DL_GLOBAL
12037 # define LT_DLGLOBAL DL_GLOBAL
12038 # else
12039 # define LT_DLGLOBAL 0
12040 # endif
12041 #endif
12042
12043 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12044 find out it does not work in some platform. */
12045 #ifndef LT_DLLAZY_OR_NOW
12046 # ifdef RTLD_LAZY
12047 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12048 # else
12049 # ifdef DL_LAZY
12050 # define LT_DLLAZY_OR_NOW DL_LAZY
12051 # else
12052 # ifdef RTLD_NOW
12053 # define LT_DLLAZY_OR_NOW RTLD_NOW
12054 # else
12055 # ifdef DL_NOW
12056 # define LT_DLLAZY_OR_NOW DL_NOW
12057 # else
12058 # define LT_DLLAZY_OR_NOW 0
12059 # endif
12060 # endif
12061 # endif
12062 # endif
12063 #endif
12064
12065 void fnord() { int i=42;}
12066 int main ()
12067 {
12068 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12069 int status = $lt_dlunknown;
12070
12071 if (self)
12072 {
12073 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12074 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12075 /* dlclose (self); */
12076 }
12077 else
12078 puts (dlerror ());
12079
12080 return status;
12081 }
12082 _LT_EOF
12083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12084 (eval $ac_link) 2>&5
12085 ac_status=$?
12086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12087 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12088 (./conftest; exit; ) >&5 2>/dev/null
12089 lt_status=$?
12090 case x$lt_status in
12091 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12092 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12093 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12094 esac
12095 else :
12096 # compilation failed
12097 lt_cv_dlopen_self=no
12098 fi
12099 fi
12100 rm -fr conftest*
12101
12102
12103 fi
12104 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12105 $as_echo "$lt_cv_dlopen_self" >&6; }
12106
12107 if test "x$lt_cv_dlopen_self" = xyes; then
12108 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12109 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12110 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12111 if test "${lt_cv_dlopen_self_static+set}" = set; then
12112 $as_echo_n "(cached) " >&6
12113 else
12114 if test "$cross_compiling" = yes; then :
12115 lt_cv_dlopen_self_static=cross
12116 else
12117 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12118 lt_status=$lt_dlunknown
12119 cat > conftest.$ac_ext <<_LT_EOF
12120 #line 12120 "configure"
12121 #include "confdefs.h"
12122
12123 #if HAVE_DLFCN_H
12124 #include <dlfcn.h>
12125 #endif
12126
12127 #include <stdio.h>
12128
12129 #ifdef RTLD_GLOBAL
12130 # define LT_DLGLOBAL RTLD_GLOBAL
12131 #else
12132 # ifdef DL_GLOBAL
12133 # define LT_DLGLOBAL DL_GLOBAL
12134 # else
12135 # define LT_DLGLOBAL 0
12136 # endif
12137 #endif
12138
12139 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12140 find out it does not work in some platform. */
12141 #ifndef LT_DLLAZY_OR_NOW
12142 # ifdef RTLD_LAZY
12143 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12144 # else
12145 # ifdef DL_LAZY
12146 # define LT_DLLAZY_OR_NOW DL_LAZY
12147 # else
12148 # ifdef RTLD_NOW
12149 # define LT_DLLAZY_OR_NOW RTLD_NOW
12150 # else
12151 # ifdef DL_NOW
12152 # define LT_DLLAZY_OR_NOW DL_NOW
12153 # else
12154 # define LT_DLLAZY_OR_NOW 0
12155 # endif
12156 # endif
12157 # endif
12158 # endif
12159 #endif
12160
12161 void fnord() { int i=42;}
12162 int main ()
12163 {
12164 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12165 int status = $lt_dlunknown;
12166
12167 if (self)
12168 {
12169 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12170 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12171 /* dlclose (self); */
12172 }
12173 else
12174 puts (dlerror ());
12175
12176 return status;
12177 }
12178 _LT_EOF
12179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12180 (eval $ac_link) 2>&5
12181 ac_status=$?
12182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12184 (./conftest; exit; ) >&5 2>/dev/null
12185 lt_status=$?
12186 case x$lt_status in
12187 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12188 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12189 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12190 esac
12191 else :
12192 # compilation failed
12193 lt_cv_dlopen_self_static=no
12194 fi
12195 fi
12196 rm -fr conftest*
12197
12198
12199 fi
12200 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12201 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12202 fi
12203
12204 CPPFLAGS="$save_CPPFLAGS"
12205 LDFLAGS="$save_LDFLAGS"
12206 LIBS="$save_LIBS"
12207 ;;
12208 esac
12209
12210 case $lt_cv_dlopen_self in
12211 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12212 *) enable_dlopen_self=unknown ;;
12213 esac
12214
12215 case $lt_cv_dlopen_self_static in
12216 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12217 *) enable_dlopen_self_static=unknown ;;
12218 esac
12219 fi
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237 striplib=
12238 old_striplib=
12239 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12240 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12241 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12242 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12243 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12244 { $as_echo "$as_me:$LINENO: result: yes" >&5
12245 $as_echo "yes" >&6; }
12246 else
12247 # FIXME - insert some real tests, host_os isn't really good enough
12248 case $host_os in
12249 darwin*)
12250 if test -n "$STRIP" ; then
12251 striplib="$STRIP -x"
12252 old_striplib="$STRIP -S"
12253 { $as_echo "$as_me:$LINENO: result: yes" >&5
12254 $as_echo "yes" >&6; }
12255 else
12256 { $as_echo "$as_me:$LINENO: result: no" >&5
12257 $as_echo "no" >&6; }
12258 fi
12259 ;;
12260 *)
12261 { $as_echo "$as_me:$LINENO: result: no" >&5
12262 $as_echo "no" >&6; }
12263 ;;
12264 esac
12265 fi
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278 # Report which library types will actually be built
12279 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12280 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12281 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
12282 $as_echo "$can_build_shared" >&6; }
12283
12284 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12285 $as_echo_n "checking whether to build shared libraries... " >&6; }
12286 test "$can_build_shared" = "no" && enable_shared=no
12287
12288 # On AIX, shared libraries and static libraries use the same namespace, and
12289 # are all built from PIC.
12290 case $host_os in
12291 aix3*)
12292 test "$enable_shared" = yes && enable_static=no
12293 if test -n "$RANLIB"; then
12294 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12295 postinstall_cmds='$RANLIB $lib'
12296 fi
12297 ;;
12298
12299 aix[4-9]*)
12300 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12301 test "$enable_shared" = yes && enable_static=no
12302 fi
12303 ;;
12304 esac
12305 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
12306 $as_echo "$enable_shared" >&6; }
12307
12308 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12309 $as_echo_n "checking whether to build static libraries... " >&6; }
12310 # Make sure either enable_shared or enable_static is yes.
12311 test "$enable_shared" = yes || enable_static=yes
12312 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
12313 $as_echo "$enable_static" >&6; }
12314
12315
12316
12317
12318 fi
12319 ac_ext=c
12320 ac_cpp='$CPP $CPPFLAGS'
12321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12324
12325 CC="$lt_save_CC"
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339 ac_config_commands="$ac_config_commands libtool"
12340
12341
12342
12343
12344 # Only expand once:
12345
12346
12347
12348 # Checks for programs.
12349 if test "x$CC" != xcc; then
12350 { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
12351 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
12352 else
12353 { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
12354 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
12355 fi
12356 set dummy $CC; ac_cc=`$as_echo "$2" |
12357 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12358 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
12359 $as_echo_n "(cached) " >&6
12360 else
12361 cat >conftest.$ac_ext <<_ACEOF
12362 /* confdefs.h. */
12363 _ACEOF
12364 cat confdefs.h >>conftest.$ac_ext
12365 cat >>conftest.$ac_ext <<_ACEOF
12366 /* end confdefs.h. */
12367
12368 int
12369 main ()
12370 {
12371
12372 ;
12373 return 0;
12374 }
12375 _ACEOF
12376 # Make sure it works both with $CC and with simple cc.
12377 # We do the test twice because some compilers refuse to overwrite an
12378 # existing .o file with -o, though they will create one.
12379 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12380 rm -f conftest2.*
12381 if { (case "(($ac_try" in
12382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12383 *) ac_try_echo=$ac_try;;
12384 esac
12385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12386 $as_echo "$ac_try_echo") >&5
12387 (eval "$ac_try") 2>&5
12388 ac_status=$?
12389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12390 (exit $ac_status); } &&
12391 test -f conftest2.$ac_objext && { (case "(($ac_try" in
12392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12393 *) ac_try_echo=$ac_try;;
12394 esac
12395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12396 $as_echo "$ac_try_echo") >&5
12397 (eval "$ac_try") 2>&5
12398 ac_status=$?
12399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400 (exit $ac_status); };
12401 then
12402 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
12403 if test "x$CC" != xcc; then
12404 # Test first that cc exists at all.
12405 if { ac_try='cc -c conftest.$ac_ext >&5'
12406 { (case "(($ac_try" in
12407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12408 *) ac_try_echo=$ac_try;;
12409 esac
12410 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12411 $as_echo "$ac_try_echo") >&5
12412 (eval "$ac_try") 2>&5
12413 ac_status=$?
12414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415 (exit $ac_status); }; }; then
12416 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12417 rm -f conftest2.*
12418 if { (case "(($ac_try" in
12419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12420 *) ac_try_echo=$ac_try;;
12421 esac
12422 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12423 $as_echo "$ac_try_echo") >&5
12424 (eval "$ac_try") 2>&5
12425 ac_status=$?
12426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427 (exit $ac_status); } &&
12428 test -f conftest2.$ac_objext && { (case "(($ac_try" in
12429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12430 *) ac_try_echo=$ac_try;;
12431 esac
12432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12433 $as_echo "$ac_try_echo") >&5
12434 (eval "$ac_try") 2>&5
12435 ac_status=$?
12436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437 (exit $ac_status); };
12438 then
12439 # cc works too.
12440 :
12441 else
12442 # cc exists but doesn't like -o.
12443 eval ac_cv_prog_cc_${ac_cc}_c_o=no
12444 fi
12445 fi
12446 fi
12447 else
12448 eval ac_cv_prog_cc_${ac_cc}_c_o=no
12449 fi
12450 rm -f core conftest*
12451
12452 fi
12453 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
12454 { $as_echo "$as_me:$LINENO: result: yes" >&5
12455 $as_echo "yes" >&6; }
12456 else
12457 { $as_echo "$as_me:$LINENO: result: no" >&5
12458 $as_echo "no" >&6; }
12459
12460 cat >>confdefs.h <<\_ACEOF
12461 #define NO_MINUS_C_MINUS_O 1
12462 _ACEOF
12463
12464 fi
12465
12466 # FIXME: we rely on the cache variable name because
12467 # there is no other way.
12468 set dummy $CC
12469 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12470 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
12471 if test "$am_t" != yes; then
12472 # Losing compiler, so override with the script.
12473 # FIXME: It is wrong to rewrite CC.
12474 # But if we don't then we get into trouble of one sort or another.
12475 # A longer-term fix would be to have automake use am__CC in this case,
12476 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12477 CC="$am_aux_dir/compile $CC"
12478 fi
12479
12480
12481
12482 if test "x$GCC" = "xyes"; then
12483 CPPFLAGS="$CPPFLAGS -Wall"
12484 fi
12485
12486
12487
12488
12489 # Define a configure option for an alternate module directory
12490
12491 # Check whether --with-xorg-module-dir was given.
12492 if test "${with_xorg_module_dir+set}" = set; then
12493 withval=$with_xorg_module_dir; moduledir="$withval"
12494 else
12495 moduledir="$libdir/xorg/modules"
12496 fi
12497
12498
12499 # Check whether --enable-dri was given.
12500 if test "${enable_dri+set}" = set; then
12501 enableval=$enable_dri; DRI="$enableval"
12502 else
12503 DRI=auto
12504 fi
12505
12506
12507 # Check whether --enable-exa was given.
12508 if test "${enable_exa+set}" = set; then
12509 enableval=$enable_exa; EXA="$enableval"
12510 else
12511 EXA=yes
12512 fi
12513
12514
12515 # Check whether --enable-kms was given.
12516 if test "${enable_kms+set}" = set; then
12517 enableval=$enable_kms; DRM_MODE="$enableval"
12518 else
12519 DRM_MODE=yes
12520 fi
12521
12522
12523 # Store the list of server defined optional extensions in REQUIRED_MODULES
12524
12525
12526 SAVE_CFLAGS="$CFLAGS"
12527 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
12528 cat >conftest.$ac_ext <<_ACEOF
12529 /* confdefs.h. */
12530 _ACEOF
12531 cat confdefs.h >>conftest.$ac_ext
12532 cat >>conftest.$ac_ext <<_ACEOF
12533 /* end confdefs.h. */
12534
12535 #include "xorg-server.h"
12536 #if !defined RANDR
12537 #error RANDR not defined
12538 #endif
12539
12540 int
12541 main ()
12542 {
12543
12544 ;
12545 return 0;
12546 }
12547 _ACEOF
12548 rm -f conftest.$ac_objext
12549 if { (ac_try="$ac_compile"
12550 case "(($ac_try" in
12551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12552 *) ac_try_echo=$ac_try;;
12553 esac
12554 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12555 $as_echo "$ac_try_echo") >&5
12556 (eval "$ac_compile") 2>conftest.er1
12557 ac_status=$?
12558 grep -v '^ *+' conftest.er1 >conftest.err
12559 rm -f conftest.er1
12560 cat conftest.err >&5
12561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); } && {
12563 test -z "$ac_c_werror_flag" ||
12564 test ! -s conftest.err
12565 } && test -s conftest.$ac_objext; then
12566 _EXT_CHECK=yes
12567 else
12568 $as_echo "$as_me: failed program was:" >&5
12569 sed 's/^/| /' conftest.$ac_ext >&5
12570
12571 _EXT_CHECK=no
12572 fi
12573
12574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12575 CFLAGS="$SAVE_CFLAGS"
12576 { $as_echo "$as_me:$LINENO: checking if RANDR is defined" >&5
12577 $as_echo_n "checking if RANDR is defined... " >&6; }
12578 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
12579 $as_echo "$_EXT_CHECK" >&6; }
12580 if test "$_EXT_CHECK" != no; then
12581 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
12582 fi
12583
12584
12585
12586 SAVE_CFLAGS="$CFLAGS"
12587 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
12588 cat >conftest.$ac_ext <<_ACEOF
12589 /* confdefs.h. */
12590 _ACEOF
12591 cat confdefs.h >>conftest.$ac_ext
12592 cat >>conftest.$ac_ext <<_ACEOF
12593 /* end confdefs.h. */
12594
12595 #include "xorg-server.h"
12596 #if !defined RENDER
12597 #error RENDER not defined
12598 #endif
12599
12600 int
12601 main ()
12602 {
12603
12604 ;
12605 return 0;
12606 }
12607 _ACEOF
12608 rm -f conftest.$ac_objext
12609 if { (ac_try="$ac_compile"
12610 case "(($ac_try" in
12611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12612 *) ac_try_echo=$ac_try;;
12613 esac
12614 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12615 $as_echo "$ac_try_echo") >&5
12616 (eval "$ac_compile") 2>conftest.er1
12617 ac_status=$?
12618 grep -v '^ *+' conftest.er1 >conftest.err
12619 rm -f conftest.er1
12620 cat conftest.err >&5
12621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622 (exit $ac_status); } && {
12623 test -z "$ac_c_werror_flag" ||
12624 test ! -s conftest.err
12625 } && test -s conftest.$ac_objext; then
12626 _EXT_CHECK=yes
12627 else
12628 $as_echo "$as_me: failed program was:" >&5
12629 sed 's/^/| /' conftest.$ac_ext >&5
12630
12631 _EXT_CHECK=no
12632 fi
12633
12634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12635 CFLAGS="$SAVE_CFLAGS"
12636 { $as_echo "$as_me:$LINENO: checking if RENDER is defined" >&5
12637 $as_echo_n "checking if RENDER is defined... " >&6; }
12638 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
12639 $as_echo "$_EXT_CHECK" >&6; }
12640 if test "$_EXT_CHECK" != no; then
12641 REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
12642 fi
12643
12644
12645
12646 SAVE_CFLAGS="$CFLAGS"
12647 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
12648 cat >conftest.$ac_ext <<_ACEOF
12649 /* confdefs.h. */
12650 _ACEOF
12651 cat confdefs.h >>conftest.$ac_ext
12652 cat >>conftest.$ac_ext <<_ACEOF
12653 /* end confdefs.h. */
12654
12655 #include "xorg-server.h"
12656 #if !defined XV
12657 #error XV not defined
12658 #endif
12659
12660 int
12661 main ()
12662 {
12663
12664 ;
12665 return 0;
12666 }
12667 _ACEOF
12668 rm -f conftest.$ac_objext
12669 if { (ac_try="$ac_compile"
12670 case "(($ac_try" in
12671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12672 *) ac_try_echo=$ac_try;;
12673 esac
12674 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12675 $as_echo "$ac_try_echo") >&5
12676 (eval "$ac_compile") 2>conftest.er1
12677 ac_status=$?
12678 grep -v '^ *+' conftest.er1 >conftest.err
12679 rm -f conftest.er1
12680 cat conftest.err >&5
12681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12682 (exit $ac_status); } && {
12683 test -z "$ac_c_werror_flag" ||
12684 test ! -s conftest.err
12685 } && test -s conftest.$ac_objext; then
12686 _EXT_CHECK=yes
12687 else
12688 $as_echo "$as_me: failed program was:" >&5
12689 sed 's/^/| /' conftest.$ac_ext >&5
12690
12691 _EXT_CHECK=no
12692 fi
12693
12694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12695 CFLAGS="$SAVE_CFLAGS"
12696 { $as_echo "$as_me:$LINENO: checking if XV is defined" >&5
12697 $as_echo_n "checking if XV is defined... " >&6; }
12698 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
12699 $as_echo "$_EXT_CHECK" >&6; }
12700 if test "$_EXT_CHECK" != no; then
12701 REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
12702 fi
12703
12704
12705
12706 SAVE_CFLAGS="$CFLAGS"
12707 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
12708 cat >conftest.$ac_ext <<_ACEOF
12709 /* confdefs.h. */
12710 _ACEOF
12711 cat confdefs.h >>conftest.$ac_ext
12712 cat >>conftest.$ac_ext <<_ACEOF
12713 /* end confdefs.h. */
12714
12715 #include "xorg-server.h"
12716 #if !defined DPMSExtension
12717 #error DPMSExtension not defined
12718 #endif
12719
12720 int
12721 main ()
12722 {
12723
12724 ;
12725 return 0;
12726 }
12727 _ACEOF
12728 rm -f conftest.$ac_objext
12729 if { (ac_try="$ac_compile"
12730 case "(($ac_try" in
12731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12732 *) ac_try_echo=$ac_try;;
12733 esac
12734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12735 $as_echo "$ac_try_echo") >&5
12736 (eval "$ac_compile") 2>conftest.er1
12737 ac_status=$?
12738 grep -v '^ *+' conftest.er1 >conftest.err
12739 rm -f conftest.er1
12740 cat conftest.err >&5
12741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742 (exit $ac_status); } && {
12743 test -z "$ac_c_werror_flag" ||
12744 test ! -s conftest.err
12745 } && test -s conftest.$ac_objext; then
12746 _EXT_CHECK=yes
12747 else
12748 $as_echo "$as_me: failed program was:" >&5
12749 sed 's/^/| /' conftest.$ac_ext >&5
12750
12751 _EXT_CHECK=no
12752 fi
12753
12754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12755 CFLAGS="$SAVE_CFLAGS"
12756 { $as_echo "$as_me:$LINENO: checking if DPMSExtension is defined" >&5
12757 $as_echo_n "checking if DPMSExtension is defined... " >&6; }
12758 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
12759 $as_echo "$_EXT_CHECK" >&6; }
12760 if test "$_EXT_CHECK" != no; then
12761 REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
12762 fi
12763
12764
12765 # Obtain compiler/linker options for the driver dependencies
12766
12767 pkg_failed=no
12768 { $as_echo "$as_me:$LINENO: checking for XORG" >&5
12769 $as_echo_n "checking for XORG... " >&6; }
12770
12771 if test -n "$XORG_CFLAGS"; then
12772 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
12773 elif test -n "$PKG_CONFIG"; then
12774 if test -n "$PKG_CONFIG" && \
12775 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.3 xproto fontsproto \$REQUIRED_MODULES\"") >&5
12776 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES") 2>&5
12777 ac_status=$?
12778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12779 (exit $ac_status); }; then
12780 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
12781 else
12782 pkg_failed=yes
12783 fi
12784 else
12785 pkg_failed=untried
12786 fi
12787 if test -n "$XORG_LIBS"; then
12788 pkg_cv_XORG_LIBS="$XORG_LIBS"
12789 elif test -n "$PKG_CONFIG"; then
12790 if test -n "$PKG_CONFIG" && \
12791 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.3 xproto fontsproto \$REQUIRED_MODULES\"") >&5
12792 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES") 2>&5
12793 ac_status=$?
12794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795 (exit $ac_status); }; then
12796 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
12797 else
12798 pkg_failed=yes
12799 fi
12800 else
12801 pkg_failed=untried
12802 fi
12803
12804
12805
12806 if test $pkg_failed = yes; then
12807
12808 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12809 _pkg_short_errors_supported=yes
12810 else
12811 _pkg_short_errors_supported=no
12812 fi
12813 if test $_pkg_short_errors_supported = yes; then
12814 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES" 2>&1`
12815 else
12816 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES" 2>&1`
12817 fi
12818 # Put the nasty error message in config.log where it belongs
12819 echo "$XORG_PKG_ERRORS" >&5
12820
12821 { { $as_echo "$as_me:$LINENO: error: Package requirements (xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES) were not met:
12822
12823 $XORG_PKG_ERRORS
12824
12825 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12826 installed software in a non-standard prefix.
12827
12828 Alternatively, you may set the environment variables XORG_CFLAGS
12829 and XORG_LIBS to avoid the need to call pkg-config.
12830 See the pkg-config man page for more details.
12831 " >&5
12832 $as_echo "$as_me: error: Package requirements (xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES) were not met:
12833
12834 $XORG_PKG_ERRORS
12835
12836 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12837 installed software in a non-standard prefix.
12838
12839 Alternatively, you may set the environment variables XORG_CFLAGS
12840 and XORG_LIBS to avoid the need to call pkg-config.
12841 See the pkg-config man page for more details.
12842 " >&2;}
12843 { (exit 1); exit 1; }; }
12844 elif test $pkg_failed = untried; then
12845 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12846 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12847 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
12848 is in your PATH or set the PKG_CONFIG environment variable to the full
12849 path to pkg-config.
12850
12851 Alternatively, you may set the environment variables XORG_CFLAGS
12852 and XORG_LIBS to avoid the need to call pkg-config.
12853 See the pkg-config man page for more details.
12854
12855 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12856 See \`config.log' for more details." >&5
12857 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
12858 is in your PATH or set the PKG_CONFIG environment variable to the full
12859 path to pkg-config.
12860
12861 Alternatively, you may set the environment variables XORG_CFLAGS
12862 and XORG_LIBS to avoid the need to call pkg-config.
12863 See the pkg-config man page for more details.
12864
12865 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12866 See \`config.log' for more details." >&2;}
12867 { (exit 1); exit 1; }; }; }
12868 else
12869 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
12870 XORG_LIBS=$pkg_cv_XORG_LIBS
12871 { $as_echo "$as_me:$LINENO: result: yes" >&5
12872 $as_echo "yes" >&6; }
12873 :
12874 fi
12875
12876 pkg_failed=no
12877 { $as_echo "$as_me:$LINENO: checking for XEXT" >&5
12878 $as_echo_n "checking for XEXT... " >&6; }
12879
12880 if test -n "$XEXT_CFLAGS"; then
12881 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
12882 elif test -n "$PKG_CONFIG"; then
12883 if test -n "$PKG_CONFIG" && \
12884 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\"") >&5
12885 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
12886 ac_status=$?
12887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12888 (exit $ac_status); }; then
12889 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null`
12890 else
12891 pkg_failed=yes
12892 fi
12893 else
12894 pkg_failed=untried
12895 fi
12896 if test -n "$XEXT_LIBS"; then
12897 pkg_cv_XEXT_LIBS="$XEXT_LIBS"
12898 elif test -n "$PKG_CONFIG"; then
12899 if test -n "$PKG_CONFIG" && \
12900 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\"") >&5
12901 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
12902 ac_status=$?
12903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12904 (exit $ac_status); }; then
12905 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null`
12906 else
12907 pkg_failed=yes
12908 fi
12909 else
12910 pkg_failed=untried
12911 fi
12912
12913
12914
12915 if test $pkg_failed = yes; then
12916
12917 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12918 _pkg_short_errors_supported=yes
12919 else
12920 _pkg_short_errors_supported=no
12921 fi
12922 if test $_pkg_short_errors_supported = yes; then
12923 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xextproto >= 7.0.99.1" 2>&1`
12924 else
12925 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xextproto >= 7.0.99.1" 2>&1`
12926 fi
12927 # Put the nasty error message in config.log where it belongs
12928 echo "$XEXT_PKG_ERRORS" >&5
12929
12930 { $as_echo "$as_me:$LINENO: result: no" >&5
12931 $as_echo "no" >&6; }
12932 HAVE_XEXTPROTO_71="no"
12933 elif test $pkg_failed = untried; then
12934 HAVE_XEXTPROTO_71="no"
12935 else
12936 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
12937 XEXT_LIBS=$pkg_cv_XEXT_LIBS
12938 { $as_echo "$as_me:$LINENO: result: yes" >&5
12939 $as_echo "yes" >&6; }
12940 HAVE_XEXTPROTO_71="yes";
12941 cat >>confdefs.h <<\_ACEOF
12942 #define HAVE_XEXTPROTO_71 1
12943 _ACEOF
12944
12945 fi
12946 if test "$HAVE_XEXTPROTO_71" = "yes" ; then
12947 HAVE_XEXTPROTO_71_TRUE=
12948 HAVE_XEXTPROTO_71_FALSE='#'
12949 else
12950 HAVE_XEXTPROTO_71_TRUE='#'
12951 HAVE_XEXTPROTO_71_FALSE=
12952 fi
12953
12954
12955 # Checks for libraries.
12956
12957
12958 if test "$DRI" != no; then
12959
12960 pkg_failed=no
12961 { $as_echo "$as_me:$LINENO: checking for DRI" >&5
12962 $as_echo_n "checking for DRI... " >&6; }
12963
12964 if test -n "$DRI_CFLAGS"; then
12965 pkg_cv_DRI_CFLAGS="$DRI_CFLAGS"
12966 elif test -n "$PKG_CONFIG"; then
12967 if test -n "$PKG_CONFIG" && \
12968 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.2 xf86driproto\"") >&5
12969 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.2 xf86driproto") 2>&5
12970 ac_status=$?
12971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12972 (exit $ac_status); }; then
12973 pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.2 xf86driproto" 2>/dev/null`
12974 else
12975 pkg_failed=yes
12976 fi
12977 else
12978 pkg_failed=untried
12979 fi
12980 if test -n "$DRI_LIBS"; then
12981 pkg_cv_DRI_LIBS="$DRI_LIBS"
12982 elif test -n "$PKG_CONFIG"; then
12983 if test -n "$PKG_CONFIG" && \
12984 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.2 xf86driproto\"") >&5
12985 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.2 xf86driproto") 2>&5
12986 ac_status=$?
12987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12988 (exit $ac_status); }; then
12989 pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.2 xf86driproto" 2>/dev/null`
12990 else
12991 pkg_failed=yes
12992 fi
12993 else
12994 pkg_failed=untried
12995 fi
12996
12997
12998
12999 if test $pkg_failed = yes; then
13000
13001 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13002 _pkg_short_errors_supported=yes
13003 else
13004 _pkg_short_errors_supported=no
13005 fi
13006 if test $_pkg_short_errors_supported = yes; then
13007 DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdrm >= 2.2 xf86driproto" 2>&1`
13008 else
13009 DRI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdrm >= 2.2 xf86driproto" 2>&1`
13010 fi
13011 # Put the nasty error message in config.log where it belongs
13012 echo "$DRI_PKG_ERRORS" >&5
13013
13014 { { $as_echo "$as_me:$LINENO: error: Package requirements (libdrm >= 2.2 xf86driproto) were not met:
13015
13016 $DRI_PKG_ERRORS
13017
13018 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13019 installed software in a non-standard prefix.
13020
13021 Alternatively, you may set the environment variables DRI_CFLAGS
13022 and DRI_LIBS to avoid the need to call pkg-config.
13023 See the pkg-config man page for more details.
13024 " >&5
13025 $as_echo "$as_me: error: Package requirements (libdrm >= 2.2 xf86driproto) were not met:
13026
13027 $DRI_PKG_ERRORS
13028
13029 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13030 installed software in a non-standard prefix.
13031
13032 Alternatively, you may set the environment variables DRI_CFLAGS
13033 and DRI_LIBS to avoid the need to call pkg-config.
13034 See the pkg-config man page for more details.
13035 " >&2;}
13036 { (exit 1); exit 1; }; }
13037 elif test $pkg_failed = untried; then
13038 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13039 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13040 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
13041 is in your PATH or set the PKG_CONFIG environment variable to the full
13042 path to pkg-config.
13043
13044 Alternatively, you may set the environment variables DRI_CFLAGS
13045 and DRI_LIBS to avoid the need to call pkg-config.
13046 See the pkg-config man page for more details.
13047
13048 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13049 See \`config.log' for more details." >&5
13050 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
13051 is in your PATH or set the PKG_CONFIG environment variable to the full
13052 path to pkg-config.
13053
13054 Alternatively, you may set the environment variables DRI_CFLAGS
13055 and DRI_LIBS to avoid the need to call pkg-config.
13056 See the pkg-config man page for more details.
13057
13058 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13059 See \`config.log' for more details." >&2;}
13060 { (exit 1); exit 1; }; }; }
13061 else
13062 DRI_CFLAGS=$pkg_cv_DRI_CFLAGS
13063 DRI_LIBS=$pkg_cv_DRI_LIBS
13064 { $as_echo "$as_me:$LINENO: result: yes" >&5
13065 $as_echo "yes" >&6; }
13066 :
13067 fi
13068 save_CPPFLAGS="$CPPFLAGS"
13069 CPPFLAGS="$XORG_CFLAGS $DRI_CFLAGS"
13070 { $as_echo "$as_me:$LINENO: checking for dri.h" >&5
13071 $as_echo_n "checking for dri.h... " >&6; }
13072 if test "${ac_cv_header_dri_h+set}" = set; then
13073 $as_echo_n "(cached) " >&6
13074 else
13075 cat >conftest.$ac_ext <<_ACEOF
13076 /* confdefs.h. */
13077 _ACEOF
13078 cat confdefs.h >>conftest.$ac_ext
13079 cat >>conftest.$ac_ext <<_ACEOF
13080 /* end confdefs.h. */
13081 #include <dri.h>
13082 _ACEOF
13083 if { (ac_try="$ac_cpp conftest.$ac_ext"
13084 case "(($ac_try" in
13085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13086 *) ac_try_echo=$ac_try;;
13087 esac
13088 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13089 $as_echo "$ac_try_echo") >&5
13090 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13091 ac_status=$?
13092 grep -v '^ *+' conftest.er1 >conftest.err
13093 rm -f conftest.er1
13094 cat conftest.err >&5
13095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096 (exit $ac_status); } >/dev/null && {
13097 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13098 test ! -s conftest.err
13099 }; then
13100 ac_cv_header_dri_h=yes
13101 else
13102 $as_echo "$as_me: failed program was:" >&5
13103 sed 's/^/| /' conftest.$ac_ext >&5
13104
13105 ac_cv_header_dri_h=no
13106 fi
13107
13108 rm -f conftest.err conftest.$ac_ext
13109 fi
13110 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dri_h" >&5
13111 $as_echo "$ac_cv_header_dri_h" >&6; }
13112 if test "x$ac_cv_header_dri_h" = x""yes; then
13113 have_dri_h="yes"
13114 else
13115 have_dri_h="no"
13116 fi
13117
13118
13119 { $as_echo "$as_me:$LINENO: checking for sarea.h" >&5
13120 $as_echo_n "checking for sarea.h... " >&6; }
13121 if test "${ac_cv_header_sarea_h+set}" = set; then
13122 $as_echo_n "(cached) " >&6
13123 else
13124 cat >conftest.$ac_ext <<_ACEOF
13125 /* confdefs.h. */
13126 _ACEOF
13127 cat confdefs.h >>conftest.$ac_ext
13128 cat >>conftest.$ac_ext <<_ACEOF
13129 /* end confdefs.h. */
13130 #include <sarea.h>
13131 _ACEOF
13132 if { (ac_try="$ac_cpp conftest.$ac_ext"
13133 case "(($ac_try" in
13134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13135 *) ac_try_echo=$ac_try;;
13136 esac
13137 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13138 $as_echo "$ac_try_echo") >&5
13139 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13140 ac_status=$?
13141 grep -v '^ *+' conftest.er1 >conftest.err
13142 rm -f conftest.er1
13143 cat conftest.err >&5
13144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13145 (exit $ac_status); } >/dev/null && {
13146 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13147 test ! -s conftest.err
13148 }; then
13149 ac_cv_header_sarea_h=yes
13150 else
13151 $as_echo "$as_me: failed program was:" >&5
13152 sed 's/^/| /' conftest.$ac_ext >&5
13153
13154 ac_cv_header_sarea_h=no
13155 fi
13156
13157 rm -f conftest.err conftest.$ac_ext
13158 fi
13159 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sarea_h" >&5
13160 $as_echo "$ac_cv_header_sarea_h" >&6; }
13161 if test "x$ac_cv_header_sarea_h" = x""yes; then
13162 have_sarea_h="yes"
13163 else
13164 have_sarea_h="no"
13165 fi
13166
13167
13168 cat >conftest.$ac_ext <<_ACEOF
13169 /* confdefs.h. */
13170 _ACEOF
13171 cat confdefs.h >>conftest.$ac_ext
13172 cat >>conftest.$ac_ext <<_ACEOF
13173 /* end confdefs.h. */
13174
13175 #include <xorg-server.h>
13176 #include <dristruct.h>
13177
13178 int
13179 main ()
13180 {
13181
13182 ;
13183 return 0;
13184 }
13185 _ACEOF
13186 if { (ac_try="$ac_cpp conftest.$ac_ext"
13187 case "(($ac_try" in
13188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13189 *) ac_try_echo=$ac_try;;
13190 esac
13191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13192 $as_echo "$ac_try_echo") >&5
13193 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13194 ac_status=$?
13195 grep -v '^ *+' conftest.er1 >conftest.err
13196 rm -f conftest.er1
13197 cat conftest.err >&5
13198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13199 (exit $ac_status); } >/dev/null && {
13200 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13201 test ! -s conftest.err
13202 }; then
13203 have_dristruct_h="yes"
13204 else
13205 $as_echo "$as_me: failed program was:" >&5
13206 sed 's/^/| /' conftest.$ac_ext >&5
13207
13208 have_dristruct_h="no"
13209 fi
13210
13211 rm -f conftest.err conftest.$ac_ext
13212 { $as_echo "$as_me:$LINENO: checking for damage.h" >&5
13213 $as_echo_n "checking for damage.h... " >&6; }
13214 if test "${ac_cv_header_damage_h+set}" = set; then
13215 $as_echo_n "(cached) " >&6
13216 else
13217 cat >conftest.$ac_ext <<_ACEOF
13218 /* confdefs.h. */
13219 _ACEOF
13220 cat confdefs.h >>conftest.$ac_ext
13221 cat >>conftest.$ac_ext <<_ACEOF
13222 /* end confdefs.h. */
13223 #include <damage.h>
13224 _ACEOF
13225 if { (ac_try="$ac_cpp conftest.$ac_ext"
13226 case "(($ac_try" in
13227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13228 *) ac_try_echo=$ac_try;;
13229 esac
13230 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13231 $as_echo "$ac_try_echo") >&5
13232 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13233 ac_status=$?
13234 grep -v '^ *+' conftest.er1 >conftest.err
13235 rm -f conftest.er1
13236 cat conftest.err >&5
13237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13238 (exit $ac_status); } >/dev/null && {
13239 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13240 test ! -s conftest.err
13241 }; then
13242 ac_cv_header_damage_h=yes
13243 else
13244 $as_echo "$as_me: failed program was:" >&5
13245 sed 's/^/| /' conftest.$ac_ext >&5
13246
13247 ac_cv_header_damage_h=no
13248 fi
13249
13250 rm -f conftest.err conftest.$ac_ext
13251 fi
13252 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_damage_h" >&5
13253 $as_echo "$ac_cv_header_damage_h" >&6; }
13254 if test "x$ac_cv_header_damage_h" = x""yes; then
13255 have_damage_h="yes"
13256 else
13257 have_damage_h="no"
13258 fi
13259
13260
13261 CPPFLAGS="$save_CPPFLAGS"
13262 fi
13263
13264 { $as_echo "$as_me:$LINENO: checking whether to include DRI support" >&5
13265 $as_echo_n "checking whether to include DRI support... " >&6; }
13266 if test x$DRI = xauto; then
13267 if test "$have_dri_h" = yes -a \
13268 "$have_sarea_h" = yes -a \
13269 "$have_dristruct_h" = yes; then
13270 DRI="yes"
13271 else
13272 DRI="no"
13273 fi
13274 fi
13275 { $as_echo "$as_me:$LINENO: result: $DRI" >&5
13276 $as_echo "$DRI" >&6; }
13277
13278 if test x$DRI = xyes; then
13279 DRI_TRUE=
13280 DRI_FALSE='#'
13281 else
13282 DRI_TRUE='#'
13283 DRI_FALSE=
13284 fi
13285
13286 if test "$DRI" = yes; then
13287
13288 cat >>confdefs.h <<\_ACEOF
13289 #define XF86DRI 1
13290 _ACEOF
13291
13292
13293 cat >>confdefs.h <<\_ACEOF
13294 #define XF86DRI_DEVEL 1
13295 _ACEOF
13296
13297 if test "$have_damage_h" = yes; then
13298
13299 cat >>confdefs.h <<\_ACEOF
13300 #define DAMAGE 1
13301 _ACEOF
13302
13303 fi
13304
13305 save_CFLAGS="$CFLAGS"
13306 CFLAGS="$XORG_CFLAGS $DRI_CFLAGS $CFLAGS"
13307 if test "$DRM_MODE" = yes; then
13308 { $as_echo "$as_me:$LINENO: checking for xf86drmMode.h" >&5
13309 $as_echo_n "checking for xf86drmMode.h... " >&6; }
13310 if test "${ac_cv_header_xf86drmMode_h+set}" = set; then
13311 $as_echo_n "(cached) " >&6
13312 else
13313 cat >conftest.$ac_ext <<_ACEOF
13314 /* confdefs.h. */
13315 _ACEOF
13316 cat confdefs.h >>conftest.$ac_ext
13317 cat >>conftest.$ac_ext <<_ACEOF
13318 /* end confdefs.h. */
13319 #include <stdint.h>
13320 #include <stdlib.h>
13321
13322 #include <xf86drmMode.h>
13323 _ACEOF
13324 rm -f conftest.$ac_objext
13325 if { (ac_try="$ac_compile"
13326 case "(($ac_try" in
13327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13328 *) ac_try_echo=$ac_try;;
13329 esac
13330 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13331 $as_echo "$ac_try_echo") >&5
13332 (eval "$ac_compile") 2>conftest.er1
13333 ac_status=$?
13334 grep -v '^ *+' conftest.er1 >conftest.err
13335 rm -f conftest.er1
13336 cat conftest.err >&5
13337 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13338 (exit $ac_status); } && {
13339 test -z "$ac_c_werror_flag" ||
13340 test ! -s conftest.err
13341 } && test -s conftest.$ac_objext; then
13342 ac_cv_header_xf86drmMode_h=yes
13343 else
13344 $as_echo "$as_me: failed program was:" >&5
13345 sed 's/^/| /' conftest.$ac_ext >&5
13346
13347 ac_cv_header_xf86drmMode_h=no
13348 fi
13349
13350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13351 fi
13352 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_xf86drmMode_h" >&5
13353 $as_echo "$ac_cv_header_xf86drmMode_h" >&6; }
13354 if test "x$ac_cv_header_xf86drmMode_h" = x""yes; then
13355 DRM_MODE=yes
13356 else
13357 DRM_MODE=no
13358 fi
13359
13360
13361 if test "x$DRM_MODE" = xyes; then
13362
13363 pkg_failed=no
13364 { $as_echo "$as_me:$LINENO: checking for LIBDRM_RADEON" >&5
13365 $as_echo_n "checking for LIBDRM_RADEON... " >&6; }
13366
13367 if test -n "$LIBDRM_RADEON_CFLAGS"; then
13368 pkg_cv_LIBDRM_RADEON_CFLAGS="$LIBDRM_RADEON_CFLAGS"
13369 elif test -n "$PKG_CONFIG"; then
13370 if test -n "$PKG_CONFIG" && \
13371 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.6.2 libdrm_radeon\"") >&5
13372 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.6.2 libdrm_radeon") 2>&5
13373 ac_status=$?
13374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375 (exit $ac_status); }; then
13376 pkg_cv_LIBDRM_RADEON_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.6.2 libdrm_radeon" 2>/dev/null`
13377 else
13378 pkg_failed=yes
13379 fi
13380 else
13381 pkg_failed=untried
13382 fi
13383 if test -n "$LIBDRM_RADEON_LIBS"; then
13384 pkg_cv_LIBDRM_RADEON_LIBS="$LIBDRM_RADEON_LIBS"
13385 elif test -n "$PKG_CONFIG"; then
13386 if test -n "$PKG_CONFIG" && \
13387 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.6.2 libdrm_radeon\"") >&5
13388 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.6.2 libdrm_radeon") 2>&5
13389 ac_status=$?
13390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391 (exit $ac_status); }; then
13392 pkg_cv_LIBDRM_RADEON_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.6.2 libdrm_radeon" 2>/dev/null`
13393 else
13394 pkg_failed=yes
13395 fi
13396 else
13397 pkg_failed=untried
13398 fi
13399
13400
13401
13402 if test $pkg_failed = yes; then
13403
13404 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13405 _pkg_short_errors_supported=yes
13406 else
13407 _pkg_short_errors_supported=no
13408 fi
13409 if test $_pkg_short_errors_supported = yes; then
13410 LIBDRM_RADEON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.6.2 libdrm_radeon" 2>&1`
13411 else
13412 LIBDRM_RADEON_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.6.2 libdrm_radeon" 2>&1`
13413 fi
13414 # Put the nasty error message in config.log where it belongs
13415 echo "$LIBDRM_RADEON_PKG_ERRORS" >&5
13416
13417 { $as_echo "$as_me:$LINENO: result: no" >&5
13418 $as_echo "no" >&6; }
13419 LIBDRM_RADEON=no
13420 elif test $pkg_failed = untried; then
13421 LIBDRM_RADEON=no
13422 else
13423 LIBDRM_RADEON_CFLAGS=$pkg_cv_LIBDRM_RADEON_CFLAGS
13424 LIBDRM_RADEON_LIBS=$pkg_cv_LIBDRM_RADEON_LIBS
13425 { $as_echo "$as_me:$LINENO: result: yes" >&5
13426 $as_echo "yes" >&6; }
13427 LIBDRM_RADEON=yes
13428 fi
13429
13430 if test "x$LIBDRM_RADEON" = xyes; then
13431
13432 cat >>confdefs.h <<\_ACEOF
13433 #define XF86DRM_MODE 1
13434 _ACEOF
13435
13436
13437 cat >>confdefs.h <<\_ACEOF
13438 #define RADEON_DRI2 1
13439 _ACEOF
13440
13441 else
13442 DRM_MODE=no
13443 fi
13444
13445 pkg_failed=no
13446 { $as_echo "$as_me:$LINENO: checking for LIBUDEV" >&5
13447 $as_echo_n "checking for LIBUDEV... " >&6; }
13448
13449 if test -n "$LIBUDEV_CFLAGS"; then
13450 pkg_cv_LIBUDEV_CFLAGS="$LIBUDEV_CFLAGS"
13451 elif test -n "$PKG_CONFIG"; then
13452 if test -n "$PKG_CONFIG" && \
13453 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libudev\"") >&5
13454 ($PKG_CONFIG --exists --print-errors "libudev") 2>&5
13455 ac_status=$?
13456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13457 (exit $ac_status); }; then
13458 pkg_cv_LIBUDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev" 2>/dev/null`
13459 else
13460 pkg_failed=yes
13461 fi
13462 else
13463 pkg_failed=untried
13464 fi
13465 if test -n "$LIBUDEV_LIBS"; then
13466 pkg_cv_LIBUDEV_LIBS="$LIBUDEV_LIBS"
13467 elif test -n "$PKG_CONFIG"; then
13468 if test -n "$PKG_CONFIG" && \
13469 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libudev\"") >&5
13470 ($PKG_CONFIG --exists --print-errors "libudev") 2>&5
13471 ac_status=$?
13472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473 (exit $ac_status); }; then
13474 pkg_cv_LIBUDEV_LIBS=`$PKG_CONFIG --libs "libudev" 2>/dev/null`
13475 else
13476 pkg_failed=yes
13477 fi
13478 else
13479 pkg_failed=untried
13480 fi
13481
13482
13483
13484 if test $pkg_failed = yes; then
13485
13486 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13487 _pkg_short_errors_supported=yes
13488 else
13489 _pkg_short_errors_supported=no
13490 fi
13491 if test $_pkg_short_errors_supported = yes; then
13492 LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libudev" 2>&1`
13493 else
13494 LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors "libudev" 2>&1`
13495 fi
13496 # Put the nasty error message in config.log where it belongs
13497 echo "$LIBUDEV_PKG_ERRORS" >&5
13498
13499 { $as_echo "$as_me:$LINENO: result: no" >&5
13500 $as_echo "no" >&6; }
13501 LIBUDEV=no
13502 elif test $pkg_failed = untried; then
13503 LIBUDEV=no
13504 else
13505 LIBUDEV_CFLAGS=$pkg_cv_LIBUDEV_CFLAGS
13506 LIBUDEV_LIBS=$pkg_cv_LIBUDEV_LIBS
13507 { $as_echo "$as_me:$LINENO: result: yes" >&5
13508 $as_echo "yes" >&6; }
13509 LIBUDEV=yes
13510 fi
13511 if test "x$LIBUDEV" = xyes; then
13512
13513 cat >>confdefs.h <<\_ACEOF
13514 #define HAVE_LIBUDEV 1
13515 _ACEOF
13516
13517 fi
13518 fi
13519 fi
13520 CFLAGS="$save_CFLAGS"
13521 else
13522 DRM_MODE=no
13523 fi
13524 if test x$DRM_MODE = xyes; then
13525 DRM_MODE_TRUE=
13526 DRM_MODE_FALSE='#'
13527 else
13528 DRM_MODE_TRUE='#'
13529 DRM_MODE_FALSE=
13530 fi
13531
13532 if test x$LIBUDEV = xyes; then
13533 LIBUDEV_TRUE=
13534 LIBUDEV_FALSE='#'
13535 else
13536 LIBUDEV_TRUE='#'
13537 LIBUDEV_FALSE=
13538 fi
13539
13540
13541
13542 cat >>confdefs.h <<\_ACEOF
13543 #define USE_XAA 1
13544 _ACEOF
13545
13546
13547 # Properly handle EXA.
13548 { $as_echo "$as_me:$LINENO: checking whether to enable EXA support" >&5
13549 $as_echo_n "checking whether to enable EXA support... " >&6; }
13550 if test "x$EXA" = xyes; then
13551 { $as_echo "$as_me:$LINENO: result: yes" >&5
13552 $as_echo "yes" >&6; }
13553
13554 SAVE_CPPFLAGS="$CPPFLAGS"
13555 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
13556 if test "${ac_cv_header_exa_h+set}" = set; then
13557 { $as_echo "$as_me:$LINENO: checking for exa.h" >&5
13558 $as_echo_n "checking for exa.h... " >&6; }
13559 if test "${ac_cv_header_exa_h+set}" = set; then
13560 $as_echo_n "(cached) " >&6
13561 fi
13562 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_exa_h" >&5
13563 $as_echo "$ac_cv_header_exa_h" >&6; }
13564 else
13565 # Is the header compilable?
13566 { $as_echo "$as_me:$LINENO: checking exa.h usability" >&5
13567 $as_echo_n "checking exa.h usability... " >&6; }
13568 cat >conftest.$ac_ext <<_ACEOF
13569 /* confdefs.h. */
13570 _ACEOF
13571 cat confdefs.h >>conftest.$ac_ext
13572 cat >>conftest.$ac_ext <<_ACEOF
13573 /* end confdefs.h. */
13574 $ac_includes_default
13575 #include <exa.h>
13576 _ACEOF
13577 rm -f conftest.$ac_objext
13578 if { (ac_try="$ac_compile"
13579 case "(($ac_try" in
13580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13581 *) ac_try_echo=$ac_try;;
13582 esac
13583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13584 $as_echo "$ac_try_echo") >&5
13585 (eval "$ac_compile") 2>conftest.er1
13586 ac_status=$?
13587 grep -v '^ *+' conftest.er1 >conftest.err
13588 rm -f conftest.er1
13589 cat conftest.err >&5
13590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13591 (exit $ac_status); } && {
13592 test -z "$ac_c_werror_flag" ||
13593 test ! -s conftest.err
13594 } && test -s conftest.$ac_objext; then
13595 ac_header_compiler=yes
13596 else
13597 $as_echo "$as_me: failed program was:" >&5
13598 sed 's/^/| /' conftest.$ac_ext >&5
13599
13600 ac_header_compiler=no
13601 fi
13602
13603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13604 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13605 $as_echo "$ac_header_compiler" >&6; }
13606
13607 # Is the header present?
13608 { $as_echo "$as_me:$LINENO: checking exa.h presence" >&5
13609 $as_echo_n "checking exa.h presence... " >&6; }
13610 cat >conftest.$ac_ext <<_ACEOF
13611 /* confdefs.h. */
13612 _ACEOF
13613 cat confdefs.h >>conftest.$ac_ext
13614 cat >>conftest.$ac_ext <<_ACEOF
13615 /* end confdefs.h. */
13616 #include <exa.h>
13617 _ACEOF
13618 if { (ac_try="$ac_cpp conftest.$ac_ext"
13619 case "(($ac_try" in
13620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13621 *) ac_try_echo=$ac_try;;
13622 esac
13623 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13624 $as_echo "$ac_try_echo") >&5
13625 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13626 ac_status=$?
13627 grep -v '^ *+' conftest.er1 >conftest.err
13628 rm -f conftest.er1
13629 cat conftest.err >&5
13630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13631 (exit $ac_status); } >/dev/null && {
13632 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13633 test ! -s conftest.err
13634 }; then
13635 ac_header_preproc=yes
13636 else
13637 $as_echo "$as_me: failed program was:" >&5
13638 sed 's/^/| /' conftest.$ac_ext >&5
13639
13640 ac_header_preproc=no
13641 fi
13642
13643 rm -f conftest.err conftest.$ac_ext
13644 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13645 $as_echo "$ac_header_preproc" >&6; }
13646
13647 # So? What about this header?
13648 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13649 yes:no: )
13650 { $as_echo "$as_me:$LINENO: WARNING: exa.h: accepted by the compiler, rejected by the preprocessor!" >&5
13651 $as_echo "$as_me: WARNING: exa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13652 { $as_echo "$as_me:$LINENO: WARNING: exa.h: proceeding with the compiler's result" >&5
13653 $as_echo "$as_me: WARNING: exa.h: proceeding with the compiler's result" >&2;}
13654 ac_header_preproc=yes
13655 ;;
13656 no:yes:* )
13657 { $as_echo "$as_me:$LINENO: WARNING: exa.h: present but cannot be compiled" >&5
13658 $as_echo "$as_me: WARNING: exa.h: present but cannot be compiled" >&2;}
13659 { $as_echo "$as_me:$LINENO: WARNING: exa.h: check for missing prerequisite headers?" >&5
13660 $as_echo "$as_me: WARNING: exa.h: check for missing prerequisite headers?" >&2;}
13661 { $as_echo "$as_me:$LINENO: WARNING: exa.h: see the Autoconf documentation" >&5
13662 $as_echo "$as_me: WARNING: exa.h: see the Autoconf documentation" >&2;}
13663 { $as_echo "$as_me:$LINENO: WARNING: exa.h: section \"Present But Cannot Be Compiled\"" >&5
13664 $as_echo "$as_me: WARNING: exa.h: section \"Present But Cannot Be Compiled\"" >&2;}
13665 { $as_echo "$as_me:$LINENO: WARNING: exa.h: proceeding with the preprocessor's result" >&5
13666 $as_echo "$as_me: WARNING: exa.h: proceeding with the preprocessor's result" >&2;}
13667 { $as_echo "$as_me:$LINENO: WARNING: exa.h: in the future, the compiler will take precedence" >&5
13668 $as_echo "$as_me: WARNING: exa.h: in the future, the compiler will take precedence" >&2;}
13669 ( cat <<\_ASBOX
13670 ## ---------------------------------------------------------------------- ##
13671 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
13672 ## ---------------------------------------------------------------------- ##
13673 _ASBOX
13674 ) | sed "s/^/$as_me: WARNING: /" >&2
13675 ;;
13676 esac
13677 { $as_echo "$as_me:$LINENO: checking for exa.h" >&5
13678 $as_echo_n "checking for exa.h... " >&6; }
13679 if test "${ac_cv_header_exa_h+set}" = set; then
13680 $as_echo_n "(cached) " >&6
13681 else
13682 ac_cv_header_exa_h=$ac_header_preproc
13683 fi
13684 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_exa_h" >&5
13685 $as_echo "$ac_cv_header_exa_h" >&6; }
13686
13687 fi
13688 if test "x$ac_cv_header_exa_h" = x""yes; then
13689 have_exa_h="yes"
13690 else
13691 have_exa_h="no"
13692 fi
13693
13694
13695 CPPFLAGS="$SAVE_CPPFLAGS"
13696 else
13697 { $as_echo "$as_me:$LINENO: result: no" >&5
13698 $as_echo "no" >&6; }
13699 fi
13700
13701 SAVE_CPPFLAGS="$CPPFLAGS"
13702 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
13703 if test "x$have_exa_h" = xyes; then
13704 { $as_echo "$as_me:$LINENO: checking whether EXA version is at least 2.0.0" >&5
13705 $as_echo_n "checking whether EXA version is at least 2.0.0... " >&6; }
13706 cat >conftest.$ac_ext <<_ACEOF
13707 /* confdefs.h. */
13708 _ACEOF
13709 cat confdefs.h >>conftest.$ac_ext
13710 cat >>conftest.$ac_ext <<_ACEOF
13711 /* end confdefs.h. */
13712
13713 #include "exa.h"
13714 #if EXA_VERSION_MAJOR < 2
13715 #error OLD EXA!
13716 #endif
13717
13718 int
13719 main ()
13720 {
13721
13722 ;
13723 return 0;
13724 }
13725 _ACEOF
13726 if { (ac_try="$ac_cpp conftest.$ac_ext"
13727 case "(($ac_try" in
13728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13729 *) ac_try_echo=$ac_try;;
13730 esac
13731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13732 $as_echo "$ac_try_echo") >&5
13733 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13734 ac_status=$?
13735 grep -v '^ *+' conftest.er1 >conftest.err
13736 rm -f conftest.er1
13737 cat conftest.err >&5
13738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13739 (exit $ac_status); } >/dev/null && {
13740 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13741 test ! -s conftest.err
13742 }; then
13743 USE_EXA=yes
13744 else
13745 $as_echo "$as_me: failed program was:" >&5
13746 sed 's/^/| /' conftest.$ac_ext >&5
13747
13748 USE_EXA=no
13749 fi
13750
13751 rm -f conftest.err conftest.$ac_ext
13752 { $as_echo "$as_me:$LINENO: result: $USE_EXA" >&5
13753 $as_echo "$USE_EXA" >&6; }
13754
13755 if test "x$USE_EXA" = xyes; then
13756
13757 cat >>confdefs.h <<\_ACEOF
13758 #define USE_EXA 1
13759 _ACEOF
13760
13761 fi
13762 fi
13763
13764 { $as_echo "$as_me:$LINENO: checking whether xf86XVFillKeyHelperDrawable is declared" >&5
13765 $as_echo_n "checking whether xf86XVFillKeyHelperDrawable is declared... " >&6; }
13766 if test "${ac_cv_have_decl_xf86XVFillKeyHelperDrawable+set}" = set; then
13767 $as_echo_n "(cached) " >&6
13768 else
13769 cat >conftest.$ac_ext <<_ACEOF
13770 /* confdefs.h. */
13771 _ACEOF
13772 cat confdefs.h >>conftest.$ac_ext
13773 cat >>conftest.$ac_ext <<_ACEOF
13774 /* end confdefs.h. */
13775 #include <xf86xv.h>
13776
13777 int
13778 main ()
13779 {
13780 #ifndef xf86XVFillKeyHelperDrawable
13781 (void) xf86XVFillKeyHelperDrawable;
13782 #endif
13783
13784 ;
13785 return 0;
13786 }
13787 _ACEOF
13788 rm -f conftest.$ac_objext
13789 if { (ac_try="$ac_compile"
13790 case "(($ac_try" in
13791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13792 *) ac_try_echo=$ac_try;;
13793 esac
13794 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13795 $as_echo "$ac_try_echo") >&5
13796 (eval "$ac_compile") 2>conftest.er1
13797 ac_status=$?
13798 grep -v '^ *+' conftest.er1 >conftest.err
13799 rm -f conftest.er1
13800 cat conftest.err >&5
13801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13802 (exit $ac_status); } && {
13803 test -z "$ac_c_werror_flag" ||
13804 test ! -s conftest.err
13805 } && test -s conftest.$ac_objext; then
13806 ac_cv_have_decl_xf86XVFillKeyHelperDrawable=yes
13807 else
13808 $as_echo "$as_me: failed program was:" >&5
13809 sed 's/^/| /' conftest.$ac_ext >&5
13810
13811 ac_cv_have_decl_xf86XVFillKeyHelperDrawable=no
13812 fi
13813
13814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13815 fi
13816 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_xf86XVFillKeyHelperDrawable" >&5
13817 $as_echo "$ac_cv_have_decl_xf86XVFillKeyHelperDrawable" >&6; }
13818 if test "x$ac_cv_have_decl_xf86XVFillKeyHelperDrawable" = x""yes; then
13819
13820 cat >>confdefs.h <<\_ACEOF
13821 #define HAVE_XV_DRAWABLE_HELPER 1
13822 _ACEOF
13823
13824 fi
13825
13826
13827 { $as_echo "$as_me:$LINENO: checking whether xf86ModeBandwidth is declared" >&5
13828 $as_echo_n "checking whether xf86ModeBandwidth is declared... " >&6; }
13829 if test "${ac_cv_have_decl_xf86ModeBandwidth+set}" = set; then
13830 $as_echo_n "(cached) " >&6
13831 else
13832 cat >conftest.$ac_ext <<_ACEOF
13833 /* confdefs.h. */
13834 _ACEOF
13835 cat confdefs.h >>conftest.$ac_ext
13836 cat >>conftest.$ac_ext <<_ACEOF
13837 /* end confdefs.h. */
13838 #include "xorg-server.h"
13839 #include "xf86Modes.h"
13840
13841 int
13842 main ()
13843 {
13844 #ifndef xf86ModeBandwidth
13845 (void) xf86ModeBandwidth;
13846 #endif
13847
13848 ;
13849 return 0;
13850 }
13851 _ACEOF
13852 rm -f conftest.$ac_objext
13853 if { (ac_try="$ac_compile"
13854 case "(($ac_try" in
13855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13856 *) ac_try_echo=$ac_try;;
13857 esac
13858 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13859 $as_echo "$ac_try_echo") >&5
13860 (eval "$ac_compile") 2>conftest.er1
13861 ac_status=$?
13862 grep -v '^ *+' conftest.er1 >conftest.err
13863 rm -f conftest.er1
13864 cat conftest.err >&5
13865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13866 (exit $ac_status); } && {
13867 test -z "$ac_c_werror_flag" ||
13868 test ! -s conftest.err
13869 } && test -s conftest.$ac_objext; then
13870 ac_cv_have_decl_xf86ModeBandwidth=yes
13871 else
13872 $as_echo "$as_me: failed program was:" >&5
13873 sed 's/^/| /' conftest.$ac_ext >&5
13874
13875 ac_cv_have_decl_xf86ModeBandwidth=no
13876 fi
13877
13878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13879 fi
13880 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_xf86ModeBandwidth" >&5
13881 $as_echo "$ac_cv_have_decl_xf86ModeBandwidth" >&6; }
13882 if test "x$ac_cv_have_decl_xf86ModeBandwidth" = x""yes; then
13883
13884 cat >>confdefs.h <<\_ACEOF
13885 #define HAVE_XF86MODEBANDWIDTH 1
13886 _ACEOF
13887
13888 fi
13889
13890
13891 { $as_echo "$as_me:$LINENO: checking whether xf86_crtc_clip_video_helper is declared" >&5
13892 $as_echo_n "checking whether xf86_crtc_clip_video_helper is declared... " >&6; }
13893 if test "${ac_cv_have_decl_xf86_crtc_clip_video_helper+set}" = set; then
13894 $as_echo_n "(cached) " >&6
13895 else
13896 cat >conftest.$ac_ext <<_ACEOF
13897 /* confdefs.h. */
13898 _ACEOF
13899 cat confdefs.h >>conftest.$ac_ext
13900 cat >>conftest.$ac_ext <<_ACEOF
13901 /* end confdefs.h. */
13902 #include <X11/Xmd.h>
13903 #include "xorg-server.h"
13904 #include "xf86i2c.h"
13905 #include "xf86Crtc.h"
13906
13907 int
13908 main ()
13909 {
13910 #ifndef xf86_crtc_clip_video_helper
13911 (void) xf86_crtc_clip_video_helper;
13912 #endif
13913
13914 ;
13915 return 0;
13916 }
13917 _ACEOF
13918 rm -f conftest.$ac_objext
13919 if { (ac_try="$ac_compile"
13920 case "(($ac_try" in
13921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13922 *) ac_try_echo=$ac_try;;
13923 esac
13924 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13925 $as_echo "$ac_try_echo") >&5
13926 (eval "$ac_compile") 2>conftest.er1
13927 ac_status=$?
13928 grep -v '^ *+' conftest.er1 >conftest.err
13929 rm -f conftest.er1
13930 cat conftest.err >&5
13931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932 (exit $ac_status); } && {
13933 test -z "$ac_c_werror_flag" ||
13934 test ! -s conftest.err
13935 } && test -s conftest.$ac_objext; then
13936 ac_cv_have_decl_xf86_crtc_clip_video_helper=yes
13937 else
13938 $as_echo "$as_me: failed program was:" >&5
13939 sed 's/^/| /' conftest.$ac_ext >&5
13940
13941 ac_cv_have_decl_xf86_crtc_clip_video_helper=no
13942 fi
13943
13944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13945 fi
13946 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_xf86_crtc_clip_video_helper" >&5
13947 $as_echo "$ac_cv_have_decl_xf86_crtc_clip_video_helper" >&6; }
13948 if test "x$ac_cv_have_decl_xf86_crtc_clip_video_helper" = x""yes; then
13949
13950 cat >>confdefs.h <<\_ACEOF
13951 #define HAVE_XF86CRTCCLIPVIDEOHELPER 1
13952 _ACEOF
13953
13954 fi
13955
13956
13957 { $as_echo "$as_me:$LINENO: checking whether xf86RotateFreeShadow is declared" >&5
13958 $as_echo_n "checking whether xf86RotateFreeShadow is declared... " >&6; }
13959 if test "${ac_cv_have_decl_xf86RotateFreeShadow+set}" = set; then
13960 $as_echo_n "(cached) " >&6
13961 else
13962 cat >conftest.$ac_ext <<_ACEOF
13963 /* confdefs.h. */
13964 _ACEOF
13965 cat confdefs.h >>conftest.$ac_ext
13966 cat >>conftest.$ac_ext <<_ACEOF
13967 /* end confdefs.h. */
13968 #include <xorg-server.h>
13969 #include <windowstr.h>
13970 #include <xf86Crtc.h>
13971
13972 int
13973 main ()
13974 {
13975 #ifndef xf86RotateFreeShadow
13976 (void) xf86RotateFreeShadow;
13977 #endif
13978
13979 ;
13980 return 0;
13981 }
13982 _ACEOF
13983 rm -f conftest.$ac_objext
13984 if { (ac_try="$ac_compile"
13985 case "(($ac_try" in
13986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13987 *) ac_try_echo=$ac_try;;
13988 esac
13989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13990 $as_echo "$ac_try_echo") >&5
13991 (eval "$ac_compile") 2>conftest.er1
13992 ac_status=$?
13993 grep -v '^ *+' conftest.er1 >conftest.err
13994 rm -f conftest.er1
13995 cat conftest.err >&5
13996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13997 (exit $ac_status); } && {
13998 test -z "$ac_c_werror_flag" ||
13999 test ! -s conftest.err
14000 } && test -s conftest.$ac_objext; then
14001 ac_cv_have_decl_xf86RotateFreeShadow=yes
14002 else
14003 $as_echo "$as_me: failed program was:" >&5
14004 sed 's/^/| /' conftest.$ac_ext >&5
14005
14006 ac_cv_have_decl_xf86RotateFreeShadow=no
14007 fi
14008
14009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14010 fi
14011 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_xf86RotateFreeShadow" >&5
14012 $as_echo "$ac_cv_have_decl_xf86RotateFreeShadow" >&6; }
14013 if test "x$ac_cv_have_decl_xf86RotateFreeShadow" = x""yes; then
14014
14015 cat >>confdefs.h <<\_ACEOF
14016 #define HAVE_FREE_SHADOW 1
14017 _ACEOF
14018
14019 fi
14020
14021
14022 { $as_echo "$as_me:$LINENO: checking whether pci_device_enable is declared" >&5
14023 $as_echo_n "checking whether pci_device_enable is declared... " >&6; }
14024 if test "${ac_cv_have_decl_pci_device_enable+set}" = set; then
14025 $as_echo_n "(cached) " >&6
14026 else
14027 cat >conftest.$ac_ext <<_ACEOF
14028 /* confdefs.h. */
14029 _ACEOF
14030 cat confdefs.h >>conftest.$ac_ext
14031 cat >>conftest.$ac_ext <<_ACEOF
14032 /* end confdefs.h. */
14033 #include <pciaccess.h>
14034
14035 int
14036 main ()
14037 {
14038 #ifndef pci_device_enable
14039 (void) pci_device_enable;
14040 #endif
14041
14042 ;
14043 return 0;
14044 }
14045 _ACEOF
14046 rm -f conftest.$ac_objext
14047 if { (ac_try="$ac_compile"
14048 case "(($ac_try" in
14049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14050 *) ac_try_echo=$ac_try;;
14051 esac
14052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14053 $as_echo "$ac_try_echo") >&5
14054 (eval "$ac_compile") 2>conftest.er1
14055 ac_status=$?
14056 grep -v '^ *+' conftest.er1 >conftest.err
14057 rm -f conftest.er1
14058 cat conftest.err >&5
14059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14060 (exit $ac_status); } && {
14061 test -z "$ac_c_werror_flag" ||
14062 test ! -s conftest.err
14063 } && test -s conftest.$ac_objext; then
14064 ac_cv_have_decl_pci_device_enable=yes
14065 else
14066 $as_echo "$as_me: failed program was:" >&5
14067 sed 's/^/| /' conftest.$ac_ext >&5
14068
14069 ac_cv_have_decl_pci_device_enable=no
14070 fi
14071
14072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14073 fi
14074 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_pci_device_enable" >&5
14075 $as_echo "$ac_cv_have_decl_pci_device_enable" >&6; }
14076 if test "x$ac_cv_have_decl_pci_device_enable" = x""yes; then
14077
14078 cat >>confdefs.h <<\_ACEOF
14079 #define HAVE_PCI_DEVICE_ENABLE 1
14080 _ACEOF
14081
14082 fi
14083
14084
14085 { $as_echo "$as_me:$LINENO: checking whether XSERVER_LIBPCIACCESS is declared" >&5
14086 $as_echo_n "checking whether XSERVER_LIBPCIACCESS is declared... " >&6; }
14087 if test "${ac_cv_have_decl_XSERVER_LIBPCIACCESS+set}" = set; then
14088 $as_echo_n "(cached) " >&6
14089 else
14090 cat >conftest.$ac_ext <<_ACEOF
14091 /* confdefs.h. */
14092 _ACEOF
14093 cat confdefs.h >>conftest.$ac_ext
14094 cat >>conftest.$ac_ext <<_ACEOF
14095 /* end confdefs.h. */
14096 #include "xorg-server.h"
14097
14098 int
14099 main ()
14100 {
14101 #ifndef XSERVER_LIBPCIACCESS
14102 (void) XSERVER_LIBPCIACCESS;
14103 #endif
14104
14105 ;
14106 return 0;
14107 }
14108 _ACEOF
14109 rm -f conftest.$ac_objext
14110 if { (ac_try="$ac_compile"
14111 case "(($ac_try" in
14112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14113 *) ac_try_echo=$ac_try;;
14114 esac
14115 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14116 $as_echo "$ac_try_echo") >&5
14117 (eval "$ac_compile") 2>conftest.er1
14118 ac_status=$?
14119 grep -v '^ *+' conftest.er1 >conftest.err
14120 rm -f conftest.er1
14121 cat conftest.err >&5
14122 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123 (exit $ac_status); } && {
14124 test -z "$ac_c_werror_flag" ||
14125 test ! -s conftest.err
14126 } && test -s conftest.$ac_objext; then
14127 ac_cv_have_decl_XSERVER_LIBPCIACCESS=yes
14128 else
14129 $as_echo "$as_me: failed program was:" >&5
14130 sed 's/^/| /' conftest.$ac_ext >&5
14131
14132 ac_cv_have_decl_XSERVER_LIBPCIACCESS=no
14133 fi
14134
14135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14136 fi
14137 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&5
14138 $as_echo "$ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&6; }
14139 if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = x""yes; then
14140 XSERVER_LIBPCIACCESS=yes
14141 else
14142 XSERVER_LIBPCIACCESS=no
14143 fi
14144
14145
14146
14147 for ac_header in list.h
14148 do
14149 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14150 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14151 $as_echo_n "checking for $ac_header... " >&6; }
14152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14153 $as_echo_n "(cached) " >&6
14154 else
14155 cat >conftest.$ac_ext <<_ACEOF
14156 /* confdefs.h. */
14157 _ACEOF
14158 cat confdefs.h >>conftest.$ac_ext
14159 cat >>conftest.$ac_ext <<_ACEOF
14160 /* end confdefs.h. */
14161 #include <X11/Xdefs.h>
14162 #include "xorg-server.h"
14163
14164 #include <$ac_header>
14165 _ACEOF
14166 rm -f conftest.$ac_objext
14167 if { (ac_try="$ac_compile"
14168 case "(($ac_try" in
14169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14170 *) ac_try_echo=$ac_try;;
14171 esac
14172 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14173 $as_echo "$ac_try_echo") >&5
14174 (eval "$ac_compile") 2>conftest.er1
14175 ac_status=$?
14176 grep -v '^ *+' conftest.er1 >conftest.err
14177 rm -f conftest.er1
14178 cat conftest.err >&5
14179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14180 (exit $ac_status); } && {
14181 test -z "$ac_c_werror_flag" ||
14182 test ! -s conftest.err
14183 } && test -s conftest.$ac_objext; then
14184 eval "$as_ac_Header=yes"
14185 else
14186 $as_echo "$as_me: failed program was:" >&5
14187 sed 's/^/| /' conftest.$ac_ext >&5
14188
14189 eval "$as_ac_Header=no"
14190 fi
14191
14192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14193 fi
14194 ac_res=`eval 'as_val=${'$as_ac_Header'}
14195 $as_echo "$as_val"'`
14196 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14197 $as_echo "$ac_res" >&6; }
14198 as_val=`eval 'as_val=${'$as_ac_Header'}
14199 $as_echo "$as_val"'`
14200 if test "x$as_val" = x""yes; then
14201 cat >>confdefs.h <<_ACEOF
14202 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14203 _ACEOF
14204
14205 fi
14206
14207 done
14208
14209
14210 CPPFLAGS="$SAVE_CPPFLAGS"
14211
14212 if test "x$USE_EXA" = xyes; then
14213 USE_EXA_TRUE=
14214 USE_EXA_FALSE='#'
14215 else
14216 USE_EXA_TRUE='#'
14217 USE_EXA_FALSE=
14218 fi
14219
14220
14221 if test "x$LIBDRM_RADEON" = xyes; then
14222 XF86DRM_MODE_TRUE=
14223 XF86DRM_MODE_FALSE='#'
14224 else
14225 XF86DRM_MODE_TRUE='#'
14226 XF86DRM_MODE_FALSE=
14227 fi
14228
14229
14230 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
14231
14232 pkg_failed=no
14233 { $as_echo "$as_me:$LINENO: checking for PCIACCESS" >&5
14234 $as_echo_n "checking for PCIACCESS... " >&6; }
14235
14236 if test -n "$PCIACCESS_CFLAGS"; then
14237 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
14238 elif test -n "$PKG_CONFIG"; then
14239 if test -n "$PKG_CONFIG" && \
14240 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5
14241 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
14242 ac_status=$?
14243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14244 (exit $ac_status); }; then
14245 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
14246 else
14247 pkg_failed=yes
14248 fi
14249 else
14250 pkg_failed=untried
14251 fi
14252 if test -n "$PCIACCESS_LIBS"; then
14253 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
14254 elif test -n "$PKG_CONFIG"; then
14255 if test -n "$PKG_CONFIG" && \
14256 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5
14257 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
14258 ac_status=$?
14259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260 (exit $ac_status); }; then
14261 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
14262 else
14263 pkg_failed=yes
14264 fi
14265 else
14266 pkg_failed=untried
14267 fi
14268
14269
14270
14271 if test $pkg_failed = yes; then
14272
14273 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14274 _pkg_short_errors_supported=yes
14275 else
14276 _pkg_short_errors_supported=no
14277 fi
14278 if test $_pkg_short_errors_supported = yes; then
14279 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.8.0" 2>&1`
14280 else
14281 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.8.0" 2>&1`
14282 fi
14283 # Put the nasty error message in config.log where it belongs
14284 echo "$PCIACCESS_PKG_ERRORS" >&5
14285
14286 { { $as_echo "$as_me:$LINENO: error: Package requirements (pciaccess >= 0.8.0) were not met:
14287
14288 $PCIACCESS_PKG_ERRORS
14289
14290 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14291 installed software in a non-standard prefix.
14292
14293 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
14294 and PCIACCESS_LIBS to avoid the need to call pkg-config.
14295 See the pkg-config man page for more details.
14296 " >&5
14297 $as_echo "$as_me: error: Package requirements (pciaccess >= 0.8.0) were not met:
14298
14299 $PCIACCESS_PKG_ERRORS
14300
14301 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14302 installed software in a non-standard prefix.
14303
14304 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
14305 and PCIACCESS_LIBS to avoid the need to call pkg-config.
14306 See the pkg-config man page for more details.
14307 " >&2;}
14308 { (exit 1); exit 1; }; }
14309 elif test $pkg_failed = untried; then
14310 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14311 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14312 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
14313 is in your PATH or set the PKG_CONFIG environment variable to the full
14314 path to pkg-config.
14315
14316 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
14317 and PCIACCESS_LIBS to avoid the need to call pkg-config.
14318 See the pkg-config man page for more details.
14319
14320 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14321 See \`config.log' for more details." >&5
14322 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
14323 is in your PATH or set the PKG_CONFIG environment variable to the full
14324 path to pkg-config.
14325
14326 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
14327 and PCIACCESS_LIBS to avoid the need to call pkg-config.
14328 See the pkg-config man page for more details.
14329
14330 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14331 See \`config.log' for more details." >&2;}
14332 { (exit 1); exit 1; }; }; }
14333 else
14334 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
14335 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
14336 { $as_echo "$as_me:$LINENO: result: yes" >&5
14337 $as_echo "yes" >&6; }
14338 :
14339 fi
14340 XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
14341 fi
14342 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
14343 XSERVER_LIBPCIACCESS_TRUE=
14344 XSERVER_LIBPCIACCESS_FALSE='#'
14345 else
14346 XSERVER_LIBPCIACCESS_TRUE='#'
14347 XSERVER_LIBPCIACCESS_FALSE=
14348 fi
14349
14350
14351 # Checks for headers/macros for byte swapping
14352 # Known variants:
14353 # <byteswap.h> bswap_16, bswap_32, bswap_64 (glibc)
14354 # <sys/endian.h> __swap16, __swap32, __swap64 (OpenBSD)
14355 # <sys/endian.h> bswap16, bswap32, bswap64 (other BSD's)
14356 # and a fallback to local macros if none of the above are found
14357
14358 # if <byteswap.h> is found, assume it's the correct version
14359
14360 for ac_header in byteswap.h
14361 do
14362 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14363 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14364 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14365 $as_echo_n "checking for $ac_header... " >&6; }
14366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14367 $as_echo_n "(cached) " >&6
14368 fi
14369 ac_res=`eval 'as_val=${'$as_ac_Header'}
14370 $as_echo "$as_val"'`
14371 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14372 $as_echo "$ac_res" >&6; }
14373 else
14374 # Is the header compilable?
14375 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14376 $as_echo_n "checking $ac_header usability... " >&6; }
14377 cat >conftest.$ac_ext <<_ACEOF
14378 /* confdefs.h. */
14379 _ACEOF
14380 cat confdefs.h >>conftest.$ac_ext
14381 cat >>conftest.$ac_ext <<_ACEOF
14382 /* end confdefs.h. */
14383 $ac_includes_default
14384 #include <$ac_header>
14385 _ACEOF
14386 rm -f conftest.$ac_objext
14387 if { (ac_try="$ac_compile"
14388 case "(($ac_try" in
14389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14390 *) ac_try_echo=$ac_try;;
14391 esac
14392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14393 $as_echo "$ac_try_echo") >&5
14394 (eval "$ac_compile") 2>conftest.er1
14395 ac_status=$?
14396 grep -v '^ *+' conftest.er1 >conftest.err
14397 rm -f conftest.er1
14398 cat conftest.err >&5
14399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14400 (exit $ac_status); } && {
14401 test -z "$ac_c_werror_flag" ||
14402 test ! -s conftest.err
14403 } && test -s conftest.$ac_objext; then
14404 ac_header_compiler=yes
14405 else
14406 $as_echo "$as_me: failed program was:" >&5
14407 sed 's/^/| /' conftest.$ac_ext >&5
14408
14409 ac_header_compiler=no
14410 fi
14411
14412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14413 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14414 $as_echo "$ac_header_compiler" >&6; }
14415
14416 # Is the header present?
14417 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14418 $as_echo_n "checking $ac_header presence... " >&6; }
14419 cat >conftest.$ac_ext <<_ACEOF
14420 /* confdefs.h. */
14421 _ACEOF
14422 cat confdefs.h >>conftest.$ac_ext
14423 cat >>conftest.$ac_ext <<_ACEOF
14424 /* end confdefs.h. */
14425 #include <$ac_header>
14426 _ACEOF
14427 if { (ac_try="$ac_cpp conftest.$ac_ext"
14428 case "(($ac_try" in
14429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14430 *) ac_try_echo=$ac_try;;
14431 esac
14432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14433 $as_echo "$ac_try_echo") >&5
14434 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14435 ac_status=$?
14436 grep -v '^ *+' conftest.er1 >conftest.err
14437 rm -f conftest.er1
14438 cat conftest.err >&5
14439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440 (exit $ac_status); } >/dev/null && {
14441 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14442 test ! -s conftest.err
14443 }; then
14444 ac_header_preproc=yes
14445 else
14446 $as_echo "$as_me: failed program was:" >&5
14447 sed 's/^/| /' conftest.$ac_ext >&5
14448
14449 ac_header_preproc=no
14450 fi
14451
14452 rm -f conftest.err conftest.$ac_ext
14453 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14454 $as_echo "$ac_header_preproc" >&6; }
14455
14456 # So? What about this header?
14457 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14458 yes:no: )
14459 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14460 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14461 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14462 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14463 ac_header_preproc=yes
14464 ;;
14465 no:yes:* )
14466 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14467 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14468 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14469 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14470 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14471 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14472 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14473 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14474 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14475 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14476 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14477 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14478 ( cat <<\_ASBOX
14479 ## ---------------------------------------------------------------------- ##
14480 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
14481 ## ---------------------------------------------------------------------- ##
14482 _ASBOX
14483 ) | sed "s/^/$as_me: WARNING: /" >&2
14484 ;;
14485 esac
14486 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14487 $as_echo_n "checking for $ac_header... " >&6; }
14488 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14489 $as_echo_n "(cached) " >&6
14490 else
14491 eval "$as_ac_Header=\$ac_header_preproc"
14492 fi
14493 ac_res=`eval 'as_val=${'$as_ac_Header'}
14494 $as_echo "$as_val"'`
14495 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14496 $as_echo "$ac_res" >&6; }
14497
14498 fi
14499 as_val=`eval 'as_val=${'$as_ac_Header'}
14500 $as_echo "$as_val"'`
14501 if test "x$as_val" = x""yes; then
14502 cat >>confdefs.h <<_ACEOF
14503 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14504 _ACEOF
14505
14506 fi
14507
14508 done
14509
14510
14511 # if <sys/endian.h> is found, have to check which version
14512 if test "${ac_cv_header_sys_endian_h+set}" = set; then
14513 { $as_echo "$as_me:$LINENO: checking for sys/endian.h" >&5
14514 $as_echo_n "checking for sys/endian.h... " >&6; }
14515 if test "${ac_cv_header_sys_endian_h+set}" = set; then
14516 $as_echo_n "(cached) " >&6
14517 fi
14518 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_endian_h" >&5
14519 $as_echo "$ac_cv_header_sys_endian_h" >&6; }
14520 else
14521 # Is the header compilable?
14522 { $as_echo "$as_me:$LINENO: checking sys/endian.h usability" >&5
14523 $as_echo_n "checking sys/endian.h usability... " >&6; }
14524 cat >conftest.$ac_ext <<_ACEOF
14525 /* confdefs.h. */
14526 _ACEOF
14527 cat confdefs.h >>conftest.$ac_ext
14528 cat >>conftest.$ac_ext <<_ACEOF
14529 /* end confdefs.h. */
14530 $ac_includes_default
14531 #include <sys/endian.h>
14532 _ACEOF
14533 rm -f conftest.$ac_objext
14534 if { (ac_try="$ac_compile"
14535 case "(($ac_try" in
14536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14537 *) ac_try_echo=$ac_try;;
14538 esac
14539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14540 $as_echo "$ac_try_echo") >&5
14541 (eval "$ac_compile") 2>conftest.er1
14542 ac_status=$?
14543 grep -v '^ *+' conftest.er1 >conftest.err
14544 rm -f conftest.er1
14545 cat conftest.err >&5
14546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14547 (exit $ac_status); } && {
14548 test -z "$ac_c_werror_flag" ||
14549 test ! -s conftest.err
14550 } && test -s conftest.$ac_objext; then
14551 ac_header_compiler=yes
14552 else
14553 $as_echo "$as_me: failed program was:" >&5
14554 sed 's/^/| /' conftest.$ac_ext >&5
14555
14556 ac_header_compiler=no
14557 fi
14558
14559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14560 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14561 $as_echo "$ac_header_compiler" >&6; }
14562
14563 # Is the header present?
14564 { $as_echo "$as_me:$LINENO: checking sys/endian.h presence" >&5
14565 $as_echo_n "checking sys/endian.h presence... " >&6; }
14566 cat >conftest.$ac_ext <<_ACEOF
14567 /* confdefs.h. */
14568 _ACEOF
14569 cat confdefs.h >>conftest.$ac_ext
14570 cat >>conftest.$ac_ext <<_ACEOF
14571 /* end confdefs.h. */
14572 #include <sys/endian.h>
14573 _ACEOF
14574 if { (ac_try="$ac_cpp conftest.$ac_ext"
14575 case "(($ac_try" in
14576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14577 *) ac_try_echo=$ac_try;;
14578 esac
14579 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14580 $as_echo "$ac_try_echo") >&5
14581 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14582 ac_status=$?
14583 grep -v '^ *+' conftest.er1 >conftest.err
14584 rm -f conftest.er1
14585 cat conftest.err >&5
14586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587 (exit $ac_status); } >/dev/null && {
14588 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14589 test ! -s conftest.err
14590 }; then
14591 ac_header_preproc=yes
14592 else
14593 $as_echo "$as_me: failed program was:" >&5
14594 sed 's/^/| /' conftest.$ac_ext >&5
14595
14596 ac_header_preproc=no
14597 fi
14598
14599 rm -f conftest.err conftest.$ac_ext
14600 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14601 $as_echo "$ac_header_preproc" >&6; }
14602
14603 # So? What about this header?
14604 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14605 yes:no: )
14606 { $as_echo "$as_me:$LINENO: WARNING: sys/endian.h: accepted by the compiler, rejected by the preprocessor!" >&5
14607 $as_echo "$as_me: WARNING: sys/endian.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14608 { $as_echo "$as_me:$LINENO: WARNING: sys/endian.h: proceeding with the compiler's result" >&5
14609 $as_echo "$as_me: WARNING: sys/endian.h: proceeding with the compiler's result" >&2;}
14610 ac_header_preproc=yes
14611 ;;
14612 no:yes:* )
14613 { $as_echo "$as_me:$LINENO: WARNING: sys/endian.h: present but cannot be compiled" >&5
14614 $as_echo "$as_me: WARNING: sys/endian.h: present but cannot be compiled" >&2;}
14615 { $as_echo "$as_me:$LINENO: WARNING: sys/endian.h: check for missing prerequisite headers?" >&5
14616 $as_echo "$as_me: WARNING: sys/endian.h: check for missing prerequisite headers?" >&2;}
14617 { $as_echo "$as_me:$LINENO: WARNING: sys/endian.h: see the Autoconf documentation" >&5
14618 $as_echo "$as_me: WARNING: sys/endian.h: see the Autoconf documentation" >&2;}
14619 { $as_echo "$as_me:$LINENO: WARNING: sys/endian.h: section \"Present But Cannot Be Compiled\"" >&5
14620 $as_echo "$as_me: WARNING: sys/endian.h: section \"Present But Cannot Be Compiled\"" >&2;}
14621 { $as_echo "$as_me:$LINENO: WARNING: sys/endian.h: proceeding with the preprocessor's result" >&5
14622 $as_echo "$as_me: WARNING: sys/endian.h: proceeding with the preprocessor's result" >&2;}
14623 { $as_echo "$as_me:$LINENO: WARNING: sys/endian.h: in the future, the compiler will take precedence" >&5
14624 $as_echo "$as_me: WARNING: sys/endian.h: in the future, the compiler will take precedence" >&2;}
14625 ( cat <<\_ASBOX
14626 ## ---------------------------------------------------------------------- ##
14627 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
14628 ## ---------------------------------------------------------------------- ##
14629 _ASBOX
14630 ) | sed "s/^/$as_me: WARNING: /" >&2
14631 ;;
14632 esac
14633 { $as_echo "$as_me:$LINENO: checking for sys/endian.h" >&5
14634 $as_echo_n "checking for sys/endian.h... " >&6; }
14635 if test "${ac_cv_header_sys_endian_h+set}" = set; then
14636 $as_echo_n "(cached) " >&6
14637 else
14638 ac_cv_header_sys_endian_h=$ac_header_preproc
14639 fi
14640 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_endian_h" >&5
14641 $as_echo "$ac_cv_header_sys_endian_h" >&6; }
14642
14643 fi
14644 if test "x$ac_cv_header_sys_endian_h" = x""yes; then
14645 HAVE_SYS_ENDIAN_H="yes"
14646 else
14647 HAVE_SYS_ENDIAN_H="no"
14648 fi
14649
14650
14651
14652 if test "x$HAVE_SYS_ENDIAN_H" = "xyes" ; then
14653 { $as_echo "$as_me:$LINENO: checking for __swap16 variant of <sys/endian.h> byteswapping macros" >&5
14654 $as_echo_n "checking for __swap16 variant of <sys/endian.h> byteswapping macros... " >&6; }
14655 cat >conftest.$ac_ext <<_ACEOF
14656 /* confdefs.h. */
14657 _ACEOF
14658 cat confdefs.h >>conftest.$ac_ext
14659 cat >>conftest.$ac_ext <<_ACEOF
14660 /* end confdefs.h. */
14661
14662 #include <sys/types.h>
14663 #include <sys/endian.h>
14664
14665 int
14666 main ()
14667 {
14668
14669 int a = 1, b;
14670 b = __swap16(a);
14671
14672 ;
14673 return 0;
14674 }
14675
14676 _ACEOF
14677 rm -f conftest.$ac_objext conftest$ac_exeext
14678 if { (ac_try="$ac_link"
14679 case "(($ac_try" in
14680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14681 *) ac_try_echo=$ac_try;;
14682 esac
14683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14684 $as_echo "$ac_try_echo") >&5
14685 (eval "$ac_link") 2>conftest.er1
14686 ac_status=$?
14687 grep -v '^ *+' conftest.er1 >conftest.err
14688 rm -f conftest.er1
14689 cat conftest.err >&5
14690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14691 (exit $ac_status); } && {
14692 test -z "$ac_c_werror_flag" ||
14693 test ! -s conftest.err
14694 } && test -s conftest$ac_exeext && {
14695 test "$cross_compiling" = yes ||
14696 $as_test_x conftest$ac_exeext
14697 }; then
14698 SYS_ENDIAN__SWAP='yes'
14699 else
14700 $as_echo "$as_me: failed program was:" >&5
14701 sed 's/^/| /' conftest.$ac_ext >&5
14702
14703 SYS_ENDIAN__SWAP='no'
14704 fi
14705
14706 rm -rf conftest.dSYM
14707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14708 conftest$ac_exeext conftest.$ac_ext
14709 { $as_echo "$as_me:$LINENO: result: $SYS_ENDIAN__SWAP" >&5
14710 $as_echo "$SYS_ENDIAN__SWAP" >&6; }
14711
14712 { $as_echo "$as_me:$LINENO: checking for bswap16 variant of <sys/endian.h> byteswapping macros" >&5
14713 $as_echo_n "checking for bswap16 variant of <sys/endian.h> byteswapping macros... " >&6; }
14714 cat >conftest.$ac_ext <<_ACEOF
14715 /* confdefs.h. */
14716 _ACEOF
14717 cat confdefs.h >>conftest.$ac_ext
14718 cat >>conftest.$ac_ext <<_ACEOF
14719 /* end confdefs.h. */
14720
14721 #include <sys/types.h>
14722 #include <sys/endian.h>
14723
14724 int
14725 main ()
14726 {
14727
14728 int a = 1, b;
14729 b = bswap16(a);
14730
14731 ;
14732 return 0;
14733 }
14734
14735 _ACEOF
14736 rm -f conftest.$ac_objext conftest$ac_exeext
14737 if { (ac_try="$ac_link"
14738 case "(($ac_try" in
14739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14740 *) ac_try_echo=$ac_try;;
14741 esac
14742 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14743 $as_echo "$ac_try_echo") >&5
14744 (eval "$ac_link") 2>conftest.er1
14745 ac_status=$?
14746 grep -v '^ *+' conftest.er1 >conftest.err
14747 rm -f conftest.er1
14748 cat conftest.err >&5
14749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750 (exit $ac_status); } && {
14751 test -z "$ac_c_werror_flag" ||
14752 test ! -s conftest.err
14753 } && test -s conftest$ac_exeext && {
14754 test "$cross_compiling" = yes ||
14755 $as_test_x conftest$ac_exeext
14756 }; then
14757 SYS_ENDIAN_BSWAP='yes'
14758 else
14759 $as_echo "$as_me: failed program was:" >&5
14760 sed 's/^/| /' conftest.$ac_ext >&5
14761
14762 SYS_ENDIAN_BSWAP='no'
14763 fi
14764
14765 rm -rf conftest.dSYM
14766 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14767 conftest$ac_exeext conftest.$ac_ext
14768 { $as_echo "$as_me:$LINENO: result: $SYS_ENDIAN_BSWAP" >&5
14769 $as_echo "$SYS_ENDIAN_BSWAP" >&6; }
14770
14771 if test "$SYS_ENDIAN_BSWAP" = "yes" ; then
14772 USE_SYS_ENDIAN_H=yes
14773 BSWAP=bswap
14774 else
14775 if test "$SYS_ENDIAN__SWAP" = "yes" ; then
14776 USE_SYS_ENDIAN_H=yes
14777 BSWAP=__swap
14778 else
14779 USE_SYS_ENDIAN_H=no
14780 fi
14781 fi
14782
14783 if test "$USE_SYS_ENDIAN_H" = "yes" ; then
14784
14785 cat >>confdefs.h <<\_ACEOF
14786 #define USE_SYS_ENDIAN_H 1
14787 _ACEOF
14788
14789
14790 cat >>confdefs.h <<_ACEOF
14791 #define bswap_16 ${BSWAP}16
14792 _ACEOF
14793
14794
14795 cat >>confdefs.h <<_ACEOF
14796 #define bswap_32 ${BSWAP}32
14797 _ACEOF
14798
14799
14800 cat >>confdefs.h <<_ACEOF
14801 #define bswap_64 ${BSWAP}64
14802 _ACEOF
14803
14804 fi
14805 fi
14806
14807 case $host_os in
14808 *linux*)
14809
14810 cat >>confdefs.h <<\_ACEOF
14811 #define FGL_LINUX 1
14812 _ACEOF
14813 ;;
14814 esac
14815
14816
14817
14818 DRIVER_NAME=ati
14819
14820
14821 { $as_echo "$as_me:$LINENO: The atimisc sub-driver has been split out to xf86-video-mach64:
14822 git://anongit.freedesktop.org/git/xorg/driver/xf86-video-mach64
14823 Please install that driver as well for mach64-based cards.
14824 " >&5
14825 $as_echo "$as_me: The atimisc sub-driver has been split out to xf86-video-mach64:
14826 git://anongit.freedesktop.org/git/xorg/driver/xf86-video-mach64
14827 Please install that driver as well for mach64-based cards.
14828 " >&6;}
14829
14830 { $as_echo "$as_me:$LINENO: The r128 sub-driver has been split out to xf86-video-r128:
14831 git://anongit.freedesktop.org/git/xorg/driver/xf86-video-r128
14832 Please install that driver as well for rage128-based cards.
14833 " >&5
14834 $as_echo "$as_me: The r128 sub-driver has been split out to xf86-video-r128:
14835 git://anongit.freedesktop.org/git/xorg/driver/xf86-video-r128
14836 Please install that driver as well for rage128-based cards.
14837 " >&6;}
14838
14839 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
14840
14841 cat >confcache <<\_ACEOF
14842 # This file is a shell script that caches the results of configure
14843 # tests run on this system so they can be shared between configure
14844 # scripts and configure runs, see configure's option --config-cache.
14845 # It is not useful on other systems. If it contains results you don't
14846 # want to keep, you may remove or edit it.
14847 #
14848 # config.status only pays attention to the cache file if you give it
14849 # the --recheck option to rerun configure.
14850 #
14851 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14852 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14853 # following values.
14854
14855 _ACEOF
14856
14857 # The following way of writing the cache mishandles newlines in values,
14858 # but we know of no workaround that is simple, portable, and efficient.
14859 # So, we kill variables containing newlines.
14860 # Ultrix sh set writes to stderr and can't be redirected directly,
14861 # and sets the high bit in the cache file unless we assign to the vars.
14862 (
14863 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14864 eval ac_val=\$$ac_var
14865 case $ac_val in #(
14866 *${as_nl}*)
14867 case $ac_var in #(
14868 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
14869 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14870 esac
14871 case $ac_var in #(
14872 _ | IFS | as_nl) ;; #(
14873 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14874 *) $as_unset $ac_var ;;
14875 esac ;;
14876 esac
14877 done
14878
14879 (set) 2>&1 |
14880 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14881 *${as_nl}ac_space=\ *)
14882 # `set' does not quote correctly, so add quotes (double-quote
14883 # substitution turns \\\\ into \\, and sed turns \\ into \).
14884 sed -n \
14885 "s/'/'\\\\''/g;
14886 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14887 ;; #(
14888 *)
14889 # `set' quotes correctly as required by POSIX, so do not add quotes.
14890 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14891 ;;
14892 esac |
14893 sort
14894 ) |
14895 sed '
14896 /^ac_cv_env_/b end
14897 t clear
14898 :clear
14899 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14900 t end
14901 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14902 :end' >>confcache
14903 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14904 if test -w "$cache_file"; then
14905 test "x$cache_file" != "x/dev/null" &&
14906 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
14907 $as_echo "$as_me: updating cache $cache_file" >&6;}
14908 cat confcache >$cache_file
14909 else
14910 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
14911 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14912 fi
14913 fi
14914 rm -f confcache
14915
14916 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14917 # Let make expand exec_prefix.
14918 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14919
14920 DEFS=-DHAVE_CONFIG_H
14921
14922 ac_libobjs=
14923 ac_ltlibobjs=
14924 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14925 # 1. Remove the extension, and $U if already installed.
14926 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14927 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14928 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14929 # will be set to the directory where LIBOBJS objects are built.
14930 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14931 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
14932 done
14933 LIBOBJS=$ac_libobjs
14934
14935 LTLIBOBJS=$ac_ltlibobjs
14936
14937
14938 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14939 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
14940 Usually this means the macro was only invoked conditionally." >&5
14941 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
14942 Usually this means the macro was only invoked conditionally." >&2;}
14943 { (exit 1); exit 1; }; }
14944 fi
14945 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14946 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
14947 Usually this means the macro was only invoked conditionally." >&5
14948 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
14949 Usually this means the macro was only invoked conditionally." >&2;}
14950 { (exit 1); exit 1; }; }
14951 fi
14952 if test -n "$EXEEXT"; then
14953 am__EXEEXT_TRUE=
14954 am__EXEEXT_FALSE='#'
14955 else
14956 am__EXEEXT_TRUE='#'
14957 am__EXEEXT_FALSE=
14958 fi
14959
14960 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14961 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
14962 Usually this means the macro was only invoked conditionally." >&5
14963 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
14964 Usually this means the macro was only invoked conditionally." >&2;}
14965 { (exit 1); exit 1; }; }
14966 fi
14967 if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then
14968 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_XEXTPROTO_71\" was never defined.
14969 Usually this means the macro was only invoked conditionally." >&5
14970 $as_echo "$as_me: error: conditional \"HAVE_XEXTPROTO_71\" was never defined.
14971 Usually this means the macro was only invoked conditionally." >&2;}
14972 { (exit 1); exit 1; }; }
14973 fi
14974 if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then
14975 { { $as_echo "$as_me:$LINENO: error: conditional \"DRI\" was never defined.
14976 Usually this means the macro was only invoked conditionally." >&5
14977 $as_echo "$as_me: error: conditional \"DRI\" was never defined.
14978 Usually this means the macro was only invoked conditionally." >&2;}
14979 { (exit 1); exit 1; }; }
14980 fi
14981 if test -z "${DRM_MODE_TRUE}" && test -z "${DRM_MODE_FALSE}"; then
14982 { { $as_echo "$as_me:$LINENO: error: conditional \"DRM_MODE\" was never defined.
14983 Usually this means the macro was only invoked conditionally." >&5
14984 $as_echo "$as_me: error: conditional \"DRM_MODE\" was never defined.
14985 Usually this means the macro was only invoked conditionally." >&2;}
14986 { (exit 1); exit 1; }; }
14987 fi
14988 if test -z "${LIBUDEV_TRUE}" && test -z "${LIBUDEV_FALSE}"; then
14989 { { $as_echo "$as_me:$LINENO: error: conditional \"LIBUDEV\" was never defined.
14990 Usually this means the macro was only invoked conditionally." >&5
14991 $as_echo "$as_me: error: conditional \"LIBUDEV\" was never defined.
14992 Usually this means the macro was only invoked conditionally." >&2;}
14993 { (exit 1); exit 1; }; }
14994 fi
14995 if test -z "${USE_EXA_TRUE}" && test -z "${USE_EXA_FALSE}"; then
14996 { { $as_echo "$as_me:$LINENO: error: conditional \"USE_EXA\" was never defined.
14997 Usually this means the macro was only invoked conditionally." >&5
14998 $as_echo "$as_me: error: conditional \"USE_EXA\" was never defined.
14999 Usually this means the macro was only invoked conditionally." >&2;}
15000 { (exit 1); exit 1; }; }
15001 fi
15002 if test -z "${XF86DRM_MODE_TRUE}" && test -z "${XF86DRM_MODE_FALSE}"; then
15003 { { $as_echo "$as_me:$LINENO: error: conditional \"XF86DRM_MODE\" was never defined.
15004 Usually this means the macro was only invoked conditionally." >&5
15005 $as_echo "$as_me: error: conditional \"XF86DRM_MODE\" was never defined.
15006 Usually this means the macro was only invoked conditionally." >&2;}
15007 { (exit 1); exit 1; }; }
15008 fi
15009 if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
15010 { { $as_echo "$as_me:$LINENO: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined.
15011 Usually this means the macro was only invoked conditionally." >&5
15012 $as_echo "$as_me: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined.
15013 Usually this means the macro was only invoked conditionally." >&2;}
15014 { (exit 1); exit 1; }; }
15015 fi
15016
15017 : ${CONFIG_STATUS=./config.status}
15018 ac_write_fail=0
15019 ac_clean_files_save=$ac_clean_files
15020 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15021 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15022 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15023 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15024 #! $SHELL
15025 # Generated by $as_me.
15026 # Run this file to recreate the current configuration.
15027 # Compiler output produced by configure, useful for debugging
15028 # configure, is in config.log if it exists.
15029
15030 debug=false
15031 ac_cs_recheck=false
15032 ac_cs_silent=false
15033 SHELL=\${CONFIG_SHELL-$SHELL}
15034 _ACEOF
15035
15036 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15037 ## --------------------- ##
15038 ## M4sh Initialization. ##
15039 ## --------------------- ##
15040
15041 # Be more Bourne compatible
15042 DUALCASE=1; export DUALCASE # for MKS sh
15043 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15044 emulate sh
15045 NULLCMD=:
15046 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15047 # is contrary to our usage. Disable this feature.
15048 alias -g '${1+"$@"}'='"$@"'
15049 setopt NO_GLOB_SUBST
15050 else
15051 case `(set -o) 2>/dev/null` in
15052 *posix*) set -o posix ;;
15053 esac
15054
15055 fi
15056
15057
15058
15059
15060 # PATH needs CR
15061 # Avoid depending upon Character Ranges.
15062 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15063 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15064 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15065 as_cr_digits='0123456789'
15066 as_cr_alnum=$as_cr_Letters$as_cr_digits
15067
15068 as_nl='
15069 '
15070 export as_nl
15071 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15072 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15073 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15074 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15075 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15076 as_echo='printf %s\n'
15077 as_echo_n='printf %s'
15078 else
15079 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15080 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15081 as_echo_n='/usr/ucb/echo -n'
15082 else
15083 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15084 as_echo_n_body='eval
15085 arg=$1;
15086 case $arg in
15087 *"$as_nl"*)
15088 expr "X$arg" : "X\\(.*\\)$as_nl";
15089 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15090 esac;
15091 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15092 '
15093 export as_echo_n_body
15094 as_echo_n='sh -c $as_echo_n_body as_echo'
15095 fi
15096 export as_echo_body
15097 as_echo='sh -c $as_echo_body as_echo'
15098 fi
15099
15100 # The user is always right.
15101 if test "${PATH_SEPARATOR+set}" != set; then
15102 PATH_SEPARATOR=:
15103 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15104 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15105 PATH_SEPARATOR=';'
15106 }
15107 fi
15108
15109 # Support unset when possible.
15110 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15111 as_unset=unset
15112 else
15113 as_unset=false
15114 fi
15115
15116
15117 # IFS
15118 # We need space, tab and new line, in precisely that order. Quoting is
15119 # there to prevent editors from complaining about space-tab.
15120 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15121 # splitting by setting IFS to empty value.)
15122 IFS=" "" $as_nl"
15123
15124 # Find who we are. Look in the path if we contain no directory separator.
15125 case $0 in
15126 *[\\/]* ) as_myself=$0 ;;
15127 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15128 for as_dir in $PATH
15129 do
15130 IFS=$as_save_IFS
15131 test -z "$as_dir" && as_dir=.
15132 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15133 done
15134 IFS=$as_save_IFS
15135
15136 ;;
15137 esac
15138 # We did not find ourselves, most probably we were run as `sh COMMAND'
15139 # in which case we are not to be found in the path.
15140 if test "x$as_myself" = x; then
15141 as_myself=$0
15142 fi
15143 if test ! -f "$as_myself"; then
15144 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15145 { (exit 1); exit 1; }
15146 fi
15147
15148 # Work around bugs in pre-3.0 UWIN ksh.
15149 for as_var in ENV MAIL MAILPATH
15150 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15151 done
15152 PS1='$ '
15153 PS2='> '
15154 PS4='+ '
15155
15156 # NLS nuisances.
15157 LC_ALL=C
15158 export LC_ALL
15159 LANGUAGE=C
15160 export LANGUAGE
15161
15162 # Required to use basename.
15163 if expr a : '\(a\)' >/dev/null 2>&1 &&
15164 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15165 as_expr=expr
15166 else
15167 as_expr=false
15168 fi
15169
15170 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15171 as_basename=basename
15172 else
15173 as_basename=false
15174 fi
15175
15176
15177 # Name of the executable.
15178 as_me=`$as_basename -- "$0" ||
15179 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15180 X"$0" : 'X\(//\)$' \| \
15181 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15182 $as_echo X/"$0" |
15183 sed '/^.*\/\([^/][^/]*\)\/*$/{
15184 s//\1/
15185 q
15186 }
15187 /^X\/\(\/\/\)$/{
15188 s//\1/
15189 q
15190 }
15191 /^X\/\(\/\).*/{
15192 s//\1/
15193 q
15194 }
15195 s/.*/./; q'`
15196
15197 # CDPATH.
15198 $as_unset CDPATH
15199
15200
15201
15202 as_lineno_1=$LINENO
15203 as_lineno_2=$LINENO
15204 test "x$as_lineno_1" != "x$as_lineno_2" &&
15205 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
15206
15207 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15208 # uniformly replaced by the line number. The first 'sed' inserts a
15209 # line-number line after each line using $LINENO; the second 'sed'
15210 # does the real work. The second script uses 'N' to pair each
15211 # line-number line with the line containing $LINENO, and appends
15212 # trailing '-' during substitution so that $LINENO is not a special
15213 # case at line end.
15214 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15215 # scripts with optimization help from Paolo Bonzini. Blame Lee
15216 # E. McMahon (1931-1989) for sed's syntax. :-)
15217 sed -n '
15218 p
15219 /[$]LINENO/=
15220 ' <$as_myself |
15221 sed '
15222 s/[$]LINENO.*/&-/
15223 t lineno
15224 b
15225 :lineno
15226 N
15227 :loop
15228 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
15229 t loop
15230 s/-\n.*//
15231 ' >$as_me.lineno &&
15232 chmod +x "$as_me.lineno" ||
15233 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
15234 { (exit 1); exit 1; }; }
15235
15236 # Don't try to exec as it changes $[0], causing all sort of problems
15237 # (the dirname of $[0] is not the place where we might find the
15238 # original and so on. Autoconf is especially sensitive to this).
15239 . "./$as_me.lineno"
15240 # Exit status is that of the last command.
15241 exit
15242 }
15243
15244
15245 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15246 as_dirname=dirname
15247 else
15248 as_dirname=false
15249 fi
15250
15251 ECHO_C= ECHO_N= ECHO_T=
15252 case `echo -n x` in
15253 -n*)
15254 case `echo 'x\c'` in
15255 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15256 *) ECHO_C='\c';;
15257 esac;;
15258 *)
15259 ECHO_N='-n';;
15260 esac
15261 if expr a : '\(a\)' >/dev/null 2>&1 &&
15262 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15263 as_expr=expr
15264 else
15265 as_expr=false
15266 fi
15267
15268 rm -f conf$$ conf$$.exe conf$$.file
15269 if test -d conf$$.dir; then
15270 rm -f conf$$.dir/conf$$.file
15271 else
15272 rm -f conf$$.dir
15273 mkdir conf$$.dir 2>/dev/null
15274 fi
15275 if (echo >conf$$.file) 2>/dev/null; then
15276 if ln -s conf$$.file conf$$ 2>/dev/null; then
15277 as_ln_s='ln -s'
15278 # ... but there are two gotchas:
15279 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15280 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15281 # In both cases, we have to default to `cp -p'.
15282 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15283 as_ln_s='cp -p'
15284 elif ln conf$$.file conf$$ 2>/dev/null; then
15285 as_ln_s=ln
15286 else
15287 as_ln_s='cp -p'
15288 fi
15289 else
15290 as_ln_s='cp -p'
15291 fi
15292 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15293 rmdir conf$$.dir 2>/dev/null
15294
15295 if mkdir -p . 2>/dev/null; then
15296 as_mkdir_p=:
15297 else
15298 test -d ./-p && rmdir ./-p
15299 as_mkdir_p=false
15300 fi
15301
15302 if test -x / >/dev/null 2>&1; then
15303 as_test_x='test -x'
15304 else
15305 if ls -dL / >/dev/null 2>&1; then
15306 as_ls_L_option=L
15307 else
15308 as_ls_L_option=
15309 fi
15310 as_test_x='
15311 eval sh -c '\''
15312 if test -d "$1"; then
15313 test -d "$1/.";
15314 else
15315 case $1 in
15316 -*)set "./$1";;
15317 esac;
15318 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15319 ???[sx]*):;;*)false;;esac;fi
15320 '\'' sh
15321 '
15322 fi
15323 as_executable_p=$as_test_x
15324
15325 # Sed expression to map a string onto a valid CPP name.
15326 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15327
15328 # Sed expression to map a string onto a valid variable name.
15329 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15330
15331
15332 exec 6>&1
15333
15334 # Save the log message, to keep $[0] and so on meaningful, and to
15335 # report actual input values of CONFIG_FILES etc. instead of their
15336 # values after options handling.
15337 ac_log="
15338 This file was extended by xf86-video-ati $as_me 6.14.2, which was
15339 generated by GNU Autoconf 2.63. Invocation command line was
15340
15341 CONFIG_FILES = $CONFIG_FILES
15342 CONFIG_HEADERS = $CONFIG_HEADERS
15343 CONFIG_LINKS = $CONFIG_LINKS
15344 CONFIG_COMMANDS = $CONFIG_COMMANDS
15345 $ $0 $@
15346
15347 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15348 "
15349
15350 _ACEOF
15351
15352 case $ac_config_files in *"
15353 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15354 esac
15355
15356 case $ac_config_headers in *"
15357 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15358 esac
15359
15360
15361 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15362 # Files that config.status was made for.
15363 config_files="$ac_config_files"
15364 config_headers="$ac_config_headers"
15365 config_commands="$ac_config_commands"
15366
15367 _ACEOF
15368
15369 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15370 ac_cs_usage="\
15371 \`$as_me' instantiates files from templates according to the
15372 current configuration.
15373
15374 Usage: $0 [OPTION]... [FILE]...
15375
15376 -h, --help print this help, then exit
15377 -V, --version print version number and configuration settings, then exit
15378 -q, --quiet, --silent
15379 do not print progress messages
15380 -d, --debug don't remove temporary files
15381 --recheck update $as_me by reconfiguring in the same conditions
15382 --file=FILE[:TEMPLATE]
15383 instantiate the configuration file FILE
15384 --header=FILE[:TEMPLATE]
15385 instantiate the configuration header FILE
15386
15387 Configuration files:
15388 $config_files
15389
15390 Configuration headers:
15391 $config_headers
15392
15393 Configuration commands:
15394 $config_commands
15395
15396 Report bugs to <bug-autoconf (at] gnu.org>."
15397
15398 _ACEOF
15399 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15400 ac_cs_version="\\
15401 xf86-video-ati config.status 6.14.2
15402 configured by $0, generated by GNU Autoconf 2.63,
15403 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15404
15405 Copyright (C) 2008 Free Software Foundation, Inc.
15406 This config.status script is free software; the Free Software Foundation
15407 gives unlimited permission to copy, distribute and modify it."
15408
15409 ac_pwd='$ac_pwd'
15410 srcdir='$srcdir'
15411 INSTALL='$INSTALL'
15412 MKDIR_P='$MKDIR_P'
15413 AWK='$AWK'
15414 test -n "\$AWK" || AWK=awk
15415 _ACEOF
15416
15417 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15418 # The default lists apply if the user does not specify any file.
15419 ac_need_defaults=:
15420 while test $# != 0
15421 do
15422 case $1 in
15423 --*=*)
15424 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15425 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15426 ac_shift=:
15427 ;;
15428 *)
15429 ac_option=$1
15430 ac_optarg=$2
15431 ac_shift=shift
15432 ;;
15433 esac
15434
15435 case $ac_option in
15436 # Handling of the options.
15437 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15438 ac_cs_recheck=: ;;
15439 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15440 $as_echo "$ac_cs_version"; exit ;;
15441 --debug | --debu | --deb | --de | --d | -d )
15442 debug=: ;;
15443 --file | --fil | --fi | --f )
15444 $ac_shift
15445 case $ac_optarg in
15446 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15447 esac
15448 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
15449 ac_need_defaults=false;;
15450 --header | --heade | --head | --hea )
15451 $ac_shift
15452 case $ac_optarg in
15453 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15454 esac
15455 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
15456 ac_need_defaults=false;;
15457 --he | --h)
15458 # Conflict between --help and --header
15459 { $as_echo "$as_me: error: ambiguous option: $1
15460 Try \`$0 --help' for more information." >&2
15461 { (exit 1); exit 1; }; };;
15462 --help | --hel | -h )
15463 $as_echo "$ac_cs_usage"; exit ;;
15464 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15465 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15466 ac_cs_silent=: ;;
15467
15468 # This is an error.
15469 -*) { $as_echo "$as_me: error: unrecognized option: $1
15470 Try \`$0 --help' for more information." >&2
15471 { (exit 1); exit 1; }; } ;;
15472
15473 *) ac_config_targets="$ac_config_targets $1"
15474 ac_need_defaults=false ;;
15475
15476 esac
15477 shift
15478 done
15479
15480 ac_configure_extra_args=
15481
15482 if $ac_cs_silent; then
15483 exec 6>/dev/null
15484 ac_configure_extra_args="$ac_configure_extra_args --silent"
15485 fi
15486
15487 _ACEOF
15488 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15489 if \$ac_cs_recheck; then
15490 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15491 shift
15492 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15493 CONFIG_SHELL='$SHELL'
15494 export CONFIG_SHELL
15495 exec "\$@"
15496 fi
15497
15498 _ACEOF
15499 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15500 exec 5>>config.log
15501 {
15502 echo
15503 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15504 ## Running $as_me. ##
15505 _ASBOX
15506 $as_echo "$ac_log"
15507 } >&5
15508
15509 _ACEOF
15510 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15511 #
15512 # INIT-COMMANDS
15513 #
15514 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15515
15516
15517 # The HP-UX ksh and POSIX shell print the target directory to stdout
15518 # if CDPATH is set.
15519 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15520
15521 sed_quote_subst='$sed_quote_subst'
15522 double_quote_subst='$double_quote_subst'
15523 delay_variable_subst='$delay_variable_subst'
15524 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
15525 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
15526 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
15527 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
15528 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
15529 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
15530 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
15531 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
15532 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
15533 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
15534 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
15535 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
15536 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
15537 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
15538 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
15539 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
15540 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
15541 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
15542 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
15543 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
15544 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
15545 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
15546 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
15547 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
15548 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
15549 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
15550 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
15551 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15552 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
15553 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
15554 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
15555 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
15556 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15557 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
15558 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
15559 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15560 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15561 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15562 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
15563 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15564 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
15565 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
15566 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
15567 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
15568 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
15569 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15570 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
15571 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
15572 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
15573 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
15574 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
15575 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
15576 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
15577 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
15578 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
15579 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
15580 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
15581 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
15582 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
15583 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
15584 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
15585 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
15586 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15587 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15588 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
15589 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
15590 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15591 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15592 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
15593 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15594 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15595 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15596 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15597 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15598 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15599 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
15600 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15601 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15602 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15603 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
15604 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
15605 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
15606 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
15607 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
15608 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15609 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
15610 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
15611 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
15612 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
15613 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
15614 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15615 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15616 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15617 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15618 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
15619 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
15620 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15621 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
15622 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
15623 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15624 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15625 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
15626 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15627 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
15628 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15629 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15630 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15631 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15632 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
15633 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
15634 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15635 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15636 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
15637 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
15638 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
15639 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
15640 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
15641 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
15642
15643 LTCC='$LTCC'
15644 LTCFLAGS='$LTCFLAGS'
15645 compiler='$compiler_DEFAULT'
15646
15647 # Quote evaled strings.
15648 for var in SED \
15649 GREP \
15650 EGREP \
15651 FGREP \
15652 LD \
15653 NM \
15654 LN_S \
15655 lt_SP2NL \
15656 lt_NL2SP \
15657 reload_flag \
15658 OBJDUMP \
15659 deplibs_check_method \
15660 file_magic_cmd \
15661 AR \
15662 AR_FLAGS \
15663 STRIP \
15664 RANLIB \
15665 CC \
15666 CFLAGS \
15667 compiler \
15668 lt_cv_sys_global_symbol_pipe \
15669 lt_cv_sys_global_symbol_to_cdecl \
15670 lt_cv_sys_global_symbol_to_c_name_address \
15671 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15672 SHELL \
15673 ECHO \
15674 lt_prog_compiler_no_builtin_flag \
15675 lt_prog_compiler_wl \
15676 lt_prog_compiler_pic \
15677 lt_prog_compiler_static \
15678 lt_cv_prog_compiler_c_o \
15679 need_locks \
15680 DSYMUTIL \
15681 NMEDIT \
15682 LIPO \
15683 OTOOL \
15684 OTOOL64 \
15685 shrext_cmds \
15686 export_dynamic_flag_spec \
15687 whole_archive_flag_spec \
15688 compiler_needs_object \
15689 with_gnu_ld \
15690 allow_undefined_flag \
15691 no_undefined_flag \
15692 hardcode_libdir_flag_spec \
15693 hardcode_libdir_flag_spec_ld \
15694 hardcode_libdir_separator \
15695 fix_srcfile_path \
15696 exclude_expsyms \
15697 include_expsyms \
15698 file_list_spec \
15699 variables_saved_for_relink \
15700 libname_spec \
15701 library_names_spec \
15702 soname_spec \
15703 finish_eval \
15704 old_striplib \
15705 striplib; do
15706 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15707 *[\\\\\\\`\\"\\\$]*)
15708 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15709 ;;
15710 *)
15711 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15712 ;;
15713 esac
15714 done
15715
15716 # Double-quote double-evaled strings.
15717 for var in reload_cmds \
15718 old_postinstall_cmds \
15719 old_postuninstall_cmds \
15720 old_archive_cmds \
15721 extract_expsyms_cmds \
15722 old_archive_from_new_cmds \
15723 old_archive_from_expsyms_cmds \
15724 archive_cmds \
15725 archive_expsym_cmds \
15726 module_cmds \
15727 module_expsym_cmds \
15728 export_symbols_cmds \
15729 prelink_cmds \
15730 postinstall_cmds \
15731 postuninstall_cmds \
15732 finish_cmds \
15733 sys_lib_search_path_spec \
15734 sys_lib_dlsearch_path_spec; do
15735 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15736 *[\\\\\\\`\\"\\\$]*)
15737 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15738 ;;
15739 *)
15740 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15741 ;;
15742 esac
15743 done
15744
15745 # Fix-up fallback echo if it was mangled by the above quoting rules.
15746 case \$lt_ECHO in
15747 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
15748 ;;
15749 esac
15750
15751 ac_aux_dir='$ac_aux_dir'
15752 xsi_shell='$xsi_shell'
15753 lt_shell_append='$lt_shell_append'
15754
15755 # See if we are running on zsh, and set the options which allow our
15756 # commands through without removal of \ escapes INIT.
15757 if test -n "\${ZSH_VERSION+set}" ; then
15758 setopt NO_GLOB_SUBST
15759 fi
15760
15761
15762 PACKAGE='$PACKAGE'
15763 VERSION='$VERSION'
15764 TIMESTAMP='$TIMESTAMP'
15765 RM='$RM'
15766 ofile='$ofile'
15767
15768
15769
15770
15771 _ACEOF
15772
15773 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15774
15775 # Handling of arguments.
15776 for ac_config_target in $ac_config_targets
15777 do
15778 case $ac_config_target in
15779 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15780 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15781 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15782 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15783 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15784 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
15785
15786 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15787 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15788 { (exit 1); exit 1; }; };;
15789 esac
15790 done
15791
15792
15793 # If the user did not use the arguments to specify the items to instantiate,
15794 # then the envvar interface is used. Set only those that are not.
15795 # We use the long form for the default assignment because of an extremely
15796 # bizarre bug on SunOS 4.1.3.
15797 if $ac_need_defaults; then
15798 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15799 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15800 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15801 fi
15802
15803 # Have a temporary directory for convenience. Make it in the build tree
15804 # simply because there is no reason against having it here, and in addition,
15805 # creating and moving files from /tmp can sometimes cause problems.
15806 # Hook for its removal unless debugging.
15807 # Note that there is a small window in which the directory will not be cleaned:
15808 # after its creation but before its name has been assigned to `$tmp'.
15809 $debug ||
15810 {
15811 tmp=
15812 trap 'exit_status=$?
15813 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15814 ' 0
15815 trap '{ (exit 1); exit 1; }' 1 2 13 15
15816 }
15817 # Create a (secure) tmp directory for tmp files.
15818
15819 {
15820 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15821 test -n "$tmp" && test -d "$tmp"
15822 } ||
15823 {
15824 tmp=./conf$$-$RANDOM
15825 (umask 077 && mkdir "$tmp")
15826 } ||
15827 {
15828 $as_echo "$as_me: cannot create a temporary directory in ." >&2
15829 { (exit 1); exit 1; }
15830 }
15831
15832 # Set up the scripts for CONFIG_FILES section.
15833 # No need to generate them if there are no CONFIG_FILES.
15834 # This happens for instance with `./config.status config.h'.
15835 if test -n "$CONFIG_FILES"; then
15836
15837
15838 ac_cr='
'
15840 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15841 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15842 ac_cs_awk_cr='\\r'
15843 else
15844 ac_cs_awk_cr=$ac_cr
15845 fi
15846
15847 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15848 _ACEOF
15849
15850
15851 {
15852 echo "cat >conf$$subs.awk <<_ACEOF" &&
15853 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15854 echo "_ACEOF"
15855 } >conf$$subs.sh ||
15856 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15857 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15858 { (exit 1); exit 1; }; }
15859 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15860 ac_delim='%!_!# '
15861 for ac_last_try in false false false false false :; do
15862 . ./conf$$subs.sh ||
15863 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15864 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15865 { (exit 1); exit 1; }; }
15866
15867 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15868 if test $ac_delim_n = $ac_delim_num; then
15869 break
15870 elif $ac_last_try; then
15871 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15872 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15873 { (exit 1); exit 1; }; }
15874 else
15875 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15876 fi
15877 done
15878 rm -f conf$$subs.sh
15879
15880 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15881 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15882 _ACEOF
15883 sed -n '
15884 h
15885 s/^/S["/; s/!.*/"]=/
15886 p
15887 g
15888 s/^[^!]*!//
15889 :repl
15890 t repl
15891 s/'"$ac_delim"'$//
15892 t delim
15893 :nl
15894 h
15895 s/\(.\{148\}\).*/\1/
15896 t more1
15897 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15898 p
15899 n
15900 b repl
15901 :more1
15902 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15903 p
15904 g
15905 s/.\{148\}//
15906 t nl
15907 :delim
15908 h
15909 s/\(.\{148\}\).*/\1/
15910 t more2
15911 s/["\\]/\\&/g; s/^/"/; s/$/"/
15912 p
15913 b
15914 :more2
15915 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15916 p
15917 g
15918 s/.\{148\}//
15919 t delim
15920 ' <conf$$subs.awk | sed '
15921 /^[^""]/{
15922 N
15923 s/\n//
15924 }
15925 ' >>$CONFIG_STATUS || ac_write_fail=1
15926 rm -f conf$$subs.awk
15927 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15928 _ACAWK
15929 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15930 for (key in S) S_is_set[key] = 1
15931 FS = ""
15932
15933 }
15934 {
15935 line = $ 0
15936 nfields = split(line, field, "@")
15937 substed = 0
15938 len = length(field[1])
15939 for (i = 2; i < nfields; i++) {
15940 key = field[i]
15941 keylen = length(key)
15942 if (S_is_set[key]) {
15943 value = S[key]
15944 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15945 len += length(value) + length(field[++i])
15946 substed = 1
15947 } else
15948 len += 1 + keylen
15949 }
15950
15951 print line
15952 }
15953
15954 _ACAWK
15955 _ACEOF
15956 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15957 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15958 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15959 else
15960 cat
15961 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15962 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
15963 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
15964 { (exit 1); exit 1; }; }
15965 _ACEOF
15966
15967 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15968 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15969 # trailing colons and then remove the whole line if VPATH becomes empty
15970 # (actually we leave an empty line to preserve line numbers).
15971 if test "x$srcdir" = x.; then
15972 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15973 s/:*\$(srcdir):*/:/
15974 s/:*\${srcdir}:*/:/
15975 s/:*@srcdir@:*/:/
15976 s/^\([^=]*=[ ]*\):*/\1/
15977 s/:*$//
15978 s/^[^=]*=[ ]*$//
15979 }'
15980 fi
15981
15982 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15983 fi # test -n "$CONFIG_FILES"
15984
15985 # Set up the scripts for CONFIG_HEADERS section.
15986 # No need to generate them if there are no CONFIG_HEADERS.
15987 # This happens for instance with `./config.status Makefile'.
15988 if test -n "$CONFIG_HEADERS"; then
15989 cat >"$tmp/defines.awk" <<\_ACAWK ||
15990 BEGIN {
15991 _ACEOF
15992
15993 # Transform confdefs.h into an awk script `defines.awk', embedded as
15994 # here-document in config.status, that substitutes the proper values into
15995 # config.h.in to produce config.h.
15996
15997 # Create a delimiter string that does not exist in confdefs.h, to ease
15998 # handling of long lines.
15999 ac_delim='%!_!# '
16000 for ac_last_try in false false :; do
16001 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16002 if test -z "$ac_t"; then
16003 break
16004 elif $ac_last_try; then
16005 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
16006 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
16007 { (exit 1); exit 1; }; }
16008 else
16009 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16010 fi
16011 done
16012
16013 # For the awk script, D is an array of macro values keyed by name,
16014 # likewise P contains macro parameters if any. Preserve backslash
16015 # newline sequences.
16016
16017 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16018 sed -n '
16019 s/.\{148\}/&'"$ac_delim"'/g
16020 t rset
16021 :rset
16022 s/^[ ]*#[ ]*define[ ][ ]*/ /
16023 t def
16024 d
16025 :def
16026 s/\\$//
16027 t bsnl
16028 s/["\\]/\\&/g
16029 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16030 D["\1"]=" \3"/p
16031 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16032 d
16033 :bsnl
16034 s/["\\]/\\&/g
16035 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16036 D["\1"]=" \3\\\\\\n"\\/p
16037 t cont
16038 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16039 t cont
16040 d
16041 :cont
16042 n
16043 s/.\{148\}/&'"$ac_delim"'/g
16044 t clear
16045 :clear
16046 s/\\$//
16047 t bsnlc
16048 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16049 d
16050 :bsnlc
16051 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16052 b cont
16053 ' <confdefs.h | sed '
16054 s/'"$ac_delim"'/"\\\
16055 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16056
16057 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16058 for (key in D) D_is_set[key] = 1
16059 FS = ""
16060 }
16061 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16062 line = \$ 0
16063 split(line, arg, " ")
16064 if (arg[1] == "#") {
16065 defundef = arg[2]
16066 mac1 = arg[3]
16067 } else {
16068 defundef = substr(arg[1], 2)
16069 mac1 = arg[2]
16070 }
16071 split(mac1, mac2, "(") #)
16072 macro = mac2[1]
16073 prefix = substr(line, 1, index(line, defundef) - 1)
16074 if (D_is_set[macro]) {
16075 # Preserve the white space surrounding the "#".
16076 print prefix "define", macro P[macro] D[macro]
16077 next
16078 } else {
16079 # Replace #undef with comments. This is necessary, for example,
16080 # in the case of _POSIX_SOURCE, which is predefined and required
16081 # on some systems where configure will not decide to define it.
16082 if (defundef == "undef") {
16083 print "/*", prefix defundef, macro, "*/"
16084 next
16085 }
16086 }
16087 }
16088 { print }
16089 _ACAWK
16090 _ACEOF
16091 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16092 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
16093 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
16094 { (exit 1); exit 1; }; }
16095 fi # test -n "$CONFIG_HEADERS"
16096
16097
16098 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16099 shift
16100 for ac_tag
16101 do
16102 case $ac_tag in
16103 :[FHLC]) ac_mode=$ac_tag; continue;;
16104 esac
16105 case $ac_mode$ac_tag in
16106 :[FHL]*:*);;
16107 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
16108 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
16109 { (exit 1); exit 1; }; };;
16110 :[FH]-) ac_tag=-:-;;
16111 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16112 esac
16113 ac_save_IFS=$IFS
16114 IFS=:
16115 set x $ac_tag
16116 IFS=$ac_save_IFS
16117 shift
16118 ac_file=$1
16119 shift
16120
16121 case $ac_mode in
16122 :L) ac_source=$1;;
16123 :[FH])
16124 ac_file_inputs=
16125 for ac_f
16126 do
16127 case $ac_f in
16128 -) ac_f="$tmp/stdin";;
16129 *) # Look for the file first in the build tree, then in the source tree
16130 # (if the path is not absolute). The absolute path cannot be DOS-style,
16131 # because $ac_f cannot contain `:'.
16132 test -f "$ac_f" ||
16133 case $ac_f in
16134 [\\/$]*) false;;
16135 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16136 esac ||
16137 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16138 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16139 { (exit 1); exit 1; }; };;
16140 esac
16141 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16142 ac_file_inputs="$ac_file_inputs '$ac_f'"
16143 done
16144
16145 # Let's still pretend it is `configure' which instantiates (i.e., don't
16146 # use $as_me), people would be surprised to read:
16147 # /* config.h. Generated by config.status. */
16148 configure_input='Generated from '`
16149 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16150 `' by configure.'
16151 if test x"$ac_file" != x-; then
16152 configure_input="$ac_file. $configure_input"
16153 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
16154 $as_echo "$as_me: creating $ac_file" >&6;}
16155 fi
16156 # Neutralize special characters interpreted by sed in replacement strings.
16157 case $configure_input in #(
16158 *\&* | *\|* | *\\* )
16159 ac_sed_conf_input=`$as_echo "$configure_input" |
16160 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16161 *) ac_sed_conf_input=$configure_input;;
16162 esac
16163
16164 case $ac_tag in
16165 *:-:* | *:-) cat >"$tmp/stdin" \
16166 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16167 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16168 { (exit 1); exit 1; }; } ;;
16169 esac
16170 ;;
16171 esac
16172
16173 ac_dir=`$as_dirname -- "$ac_file" ||
16174 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16175 X"$ac_file" : 'X\(//\)[^/]' \| \
16176 X"$ac_file" : 'X\(//\)$' \| \
16177 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16178 $as_echo X"$ac_file" |
16179 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16180 s//\1/
16181 q
16182 }
16183 /^X\(\/\/\)[^/].*/{
16184 s//\1/
16185 q
16186 }
16187 /^X\(\/\/\)$/{
16188 s//\1/
16189 q
16190 }
16191 /^X\(\/\).*/{
16192 s//\1/
16193 q
16194 }
16195 s/.*/./; q'`
16196 { as_dir="$ac_dir"
16197 case $as_dir in #(
16198 -*) as_dir=./$as_dir;;
16199 esac
16200 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16201 as_dirs=
16202 while :; do
16203 case $as_dir in #(
16204 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16205 *) as_qdir=$as_dir;;
16206 esac
16207 as_dirs="'$as_qdir' $as_dirs"
16208 as_dir=`$as_dirname -- "$as_dir" ||
16209 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16210 X"$as_dir" : 'X\(//\)[^/]' \| \
16211 X"$as_dir" : 'X\(//\)$' \| \
16212 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16213 $as_echo X"$as_dir" |
16214 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16215 s//\1/
16216 q
16217 }
16218 /^X\(\/\/\)[^/].*/{
16219 s//\1/
16220 q
16221 }
16222 /^X\(\/\/\)$/{
16223 s//\1/
16224 q
16225 }
16226 /^X\(\/\).*/{
16227 s//\1/
16228 q
16229 }
16230 s/.*/./; q'`
16231 test -d "$as_dir" && break
16232 done
16233 test -z "$as_dirs" || eval "mkdir $as_dirs"
16234 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16235 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
16236 { (exit 1); exit 1; }; }; }
16237 ac_builddir=.
16238
16239 case "$ac_dir" in
16240 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16241 *)
16242 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16243 # A ".." for each directory in $ac_dir_suffix.
16244 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16245 case $ac_top_builddir_sub in
16246 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16247 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16248 esac ;;
16249 esac
16250 ac_abs_top_builddir=$ac_pwd
16251 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16252 # for backward compatibility:
16253 ac_top_builddir=$ac_top_build_prefix
16254
16255 case $srcdir in
16256 .) # We are building in place.
16257 ac_srcdir=.
16258 ac_top_srcdir=$ac_top_builddir_sub
16259 ac_abs_top_srcdir=$ac_pwd ;;
16260 [\\/]* | ?:[\\/]* ) # Absolute name.
16261 ac_srcdir=$srcdir$ac_dir_suffix;
16262 ac_top_srcdir=$srcdir
16263 ac_abs_top_srcdir=$srcdir ;;
16264 *) # Relative name.
16265 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16266 ac_top_srcdir=$ac_top_build_prefix$srcdir
16267 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16268 esac
16269 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16270
16271
16272 case $ac_mode in
16273 :F)
16274 #
16275 # CONFIG_FILE
16276 #
16277
16278 case $INSTALL in
16279 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16280 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16281 esac
16282 ac_MKDIR_P=$MKDIR_P
16283 case $MKDIR_P in
16284 [\\/$]* | ?:[\\/]* ) ;;
16285 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16286 esac
16287 _ACEOF
16288
16289 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16290 # If the template does not know about datarootdir, expand it.
16291 # FIXME: This hack should be removed a few years after 2.60.
16292 ac_datarootdir_hack=; ac_datarootdir_seen=
16293
16294 ac_sed_dataroot='
16295 /datarootdir/ {
16296 p
16297 q
16298 }
16299 /@datadir@/p
16300 /@docdir@/p
16301 /@infodir@/p
16302 /@localedir@/p
16303 /@mandir@/p
16304 '
16305 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16306 *datarootdir*) ac_datarootdir_seen=yes;;
16307 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16308 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16309 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16310 _ACEOF
16311 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16312 ac_datarootdir_hack='
16313 s&@datadir@&$datadir&g
16314 s&@docdir@&$docdir&g
16315 s&@infodir@&$infodir&g
16316 s&@localedir@&$localedir&g
16317 s&@mandir@&$mandir&g
16318 s&\\\${datarootdir}&$datarootdir&g' ;;
16319 esac
16320 _ACEOF
16321
16322 # Neutralize VPATH when `$srcdir' = `.'.
16323 # Shell code in configure.ac might set extrasub.
16324 # FIXME: do we really want to maintain this feature?
16325 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16326 ac_sed_extra="$ac_vpsub
16327 $extrasub
16328 _ACEOF
16329 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16330 :t
16331 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16332 s|@configure_input@|$ac_sed_conf_input|;t t
16333 s&@top_builddir@&$ac_top_builddir_sub&;t t
16334 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16335 s&@srcdir@&$ac_srcdir&;t t
16336 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16337 s&@top_srcdir@&$ac_top_srcdir&;t t
16338 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16339 s&@builddir@&$ac_builddir&;t t
16340 s&@abs_builddir@&$ac_abs_builddir&;t t
16341 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16342 s&@INSTALL@&$ac_INSTALL&;t t
16343 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16344 $ac_datarootdir_hack
16345 "
16346 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16347 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16348 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16349 { (exit 1); exit 1; }; }
16350
16351 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16352 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16353 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16354 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16355 which seems to be undefined. Please make sure it is defined." >&5
16356 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16357 which seems to be undefined. Please make sure it is defined." >&2;}
16358
16359 rm -f "$tmp/stdin"
16360 case $ac_file in
16361 -) cat "$tmp/out" && rm -f "$tmp/out";;
16362 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16363 esac \
16364 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16365 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16366 { (exit 1); exit 1; }; }
16367 ;;
16368 :H)
16369 #
16370 # CONFIG_HEADER
16371 #
16372 if test x"$ac_file" != x-; then
16373 {
16374 $as_echo "/* $configure_input */" \
16375 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16376 } >"$tmp/config.h" \
16377 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16378 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16379 { (exit 1); exit 1; }; }
16380 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16381 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16382 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16383 else
16384 rm -f "$ac_file"
16385 mv "$tmp/config.h" "$ac_file" \
16386 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16387 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16388 { (exit 1); exit 1; }; }
16389 fi
16390 else
16391 $as_echo "/* $configure_input */" \
16392 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16393 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
16394 $as_echo "$as_me: error: could not create -" >&2;}
16395 { (exit 1); exit 1; }; }
16396 fi
16397 # Compute "$ac_file"'s index in $config_headers.
16398 _am_arg="$ac_file"
16399 _am_stamp_count=1
16400 for _am_header in $config_headers :; do
16401 case $_am_header in
16402 $_am_arg | $_am_arg:* )
16403 break ;;
16404 * )
16405 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16406 esac
16407 done
16408 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16409 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16410 X"$_am_arg" : 'X\(//\)[^/]' \| \
16411 X"$_am_arg" : 'X\(//\)$' \| \
16412 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16413 $as_echo X"$_am_arg" |
16414 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16415 s//\1/
16416 q
16417 }
16418 /^X\(\/\/\)[^/].*/{
16419 s//\1/
16420 q
16421 }
16422 /^X\(\/\/\)$/{
16423 s//\1/
16424 q
16425 }
16426 /^X\(\/\).*/{
16427 s//\1/
16428 q
16429 }
16430 s/.*/./; q'`/stamp-h$_am_stamp_count
16431 ;;
16432
16433 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
16434 $as_echo "$as_me: executing $ac_file commands" >&6;}
16435 ;;
16436 esac
16437
16438
16439 case $ac_file$ac_mode in
16440 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16441 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16442 # are listed without --file. Let's play safe and only enable the eval
16443 # if we detect the quoting.
16444 case $CONFIG_FILES in
16445 *\'*) eval set x "$CONFIG_FILES" ;;
16446 *) set x $CONFIG_FILES ;;
16447 esac
16448 shift
16449 for mf
16450 do
16451 # Strip MF so we end up with the name of the file.
16452 mf=`echo "$mf" | sed -e 's/:.*$//'`
16453 # Check whether this is an Automake generated Makefile or not.
16454 # We used to match only the files named `Makefile.in', but
16455 # some people rename them; so instead we look at the file content.
16456 # Grep'ing the first line is not enough: some people post-process
16457 # each Makefile.in and add a new line on top of each file to say so.
16458 # Grep'ing the whole file is not good either: AIX grep has a line
16459 # limit of 2048, but all sed's we know have understand at least 4000.
16460 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16461 dirpart=`$as_dirname -- "$mf" ||
16462 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16463 X"$mf" : 'X\(//\)[^/]' \| \
16464 X"$mf" : 'X\(//\)$' \| \
16465 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16466 $as_echo X"$mf" |
16467 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16468 s//\1/
16469 q
16470 }
16471 /^X\(\/\/\)[^/].*/{
16472 s//\1/
16473 q
16474 }
16475 /^X\(\/\/\)$/{
16476 s//\1/
16477 q
16478 }
16479 /^X\(\/\).*/{
16480 s//\1/
16481 q
16482 }
16483 s/.*/./; q'`
16484 else
16485 continue
16486 fi
16487 # Extract the definition of DEPDIR, am__include, and am__quote
16488 # from the Makefile without running `make'.
16489 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16490 test -z "$DEPDIR" && continue
16491 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16492 test -z "am__include" && continue
16493 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16494 # When using ansi2knr, U may be empty or an underscore; expand it
16495 U=`sed -n 's/^U = //p' < "$mf"`
16496 # Find all dependency output files, they are included files with
16497 # $(DEPDIR) in their names. We invoke sed twice because it is the
16498 # simplest approach to changing $(DEPDIR) to its actual value in the
16499 # expansion.
16500 for file in `sed -n "
16501 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16502 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16503 # Make sure the directory exists.
16504 test -f "$dirpart/$file" && continue
16505 fdir=`$as_dirname -- "$file" ||
16506 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16507 X"$file" : 'X\(//\)[^/]' \| \
16508 X"$file" : 'X\(//\)$' \| \
16509 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16510 $as_echo X"$file" |
16511 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16512 s//\1/
16513 q
16514 }
16515 /^X\(\/\/\)[^/].*/{
16516 s//\1/
16517 q
16518 }
16519 /^X\(\/\/\)$/{
16520 s//\1/
16521 q
16522 }
16523 /^X\(\/\).*/{
16524 s//\1/
16525 q
16526 }
16527 s/.*/./; q'`
16528 { as_dir=$dirpart/$fdir
16529 case $as_dir in #(
16530 -*) as_dir=./$as_dir;;
16531 esac
16532 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16533 as_dirs=
16534 while :; do
16535 case $as_dir in #(
16536 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16537 *) as_qdir=$as_dir;;
16538 esac
16539 as_dirs="'$as_qdir' $as_dirs"
16540 as_dir=`$as_dirname -- "$as_dir" ||
16541 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16542 X"$as_dir" : 'X\(//\)[^/]' \| \
16543 X"$as_dir" : 'X\(//\)$' \| \
16544 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16545 $as_echo X"$as_dir" |
16546 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16547 s//\1/
16548 q
16549 }
16550 /^X\(\/\/\)[^/].*/{
16551 s//\1/
16552 q
16553 }
16554 /^X\(\/\/\)$/{
16555 s//\1/
16556 q
16557 }
16558 /^X\(\/\).*/{
16559 s//\1/
16560 q
16561 }
16562 s/.*/./; q'`
16563 test -d "$as_dir" && break
16564 done
16565 test -z "$as_dirs" || eval "mkdir $as_dirs"
16566 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16567 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
16568 { (exit 1); exit 1; }; }; }
16569 # echo "creating $dirpart/$file"
16570 echo '# dummy' > "$dirpart/$file"
16571 done
16572 done
16573 }
16574 ;;
16575 "libtool":C)
16576
16577 # See if we are running on zsh, and set the options which allow our
16578 # commands through without removal of \ escapes.
16579 if test -n "${ZSH_VERSION+set}" ; then
16580 setopt NO_GLOB_SUBST
16581 fi
16582
16583 cfgfile="${ofile}T"
16584 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16585 $RM "$cfgfile"
16586
16587 cat <<_LT_EOF >> "$cfgfile"
16588 #! $SHELL
16589
16590 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16591 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16592 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16593 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16594 #
16595 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16596 # 2006, 2007, 2008 Free Software Foundation, Inc.
16597 # Written by Gordon Matzigkeit, 1996
16598 #
16599 # This file is part of GNU Libtool.
16600 #
16601 # GNU Libtool is free software; you can redistribute it and/or
16602 # modify it under the terms of the GNU General Public License as
16603 # published by the Free Software Foundation; either version 2 of
16604 # the License, or (at your option) any later version.
16605 #
16606 # As a special exception to the GNU General Public License,
16607 # if you distribute this file as part of a program or library that
16608 # is built using GNU Libtool, you may include this file under the
16609 # same distribution terms that you use for the rest of that program.
16610 #
16611 # GNU Libtool is distributed in the hope that it will be useful,
16612 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16613 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16614 # GNU General Public License for more details.
16615 #
16616 # You should have received a copy of the GNU General Public License
16617 # along with GNU Libtool; see the file COPYING. If not, a copy
16618 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16619 # obtained by writing to the Free Software Foundation, Inc.,
16620 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16621
16622
16623 # The names of the tagged configurations supported by this script.
16624 available_tags=""
16625
16626 # ### BEGIN LIBTOOL CONFIG
16627
16628 # Whether or not to build static libraries.
16629 build_old_libs=$enable_static
16630
16631 # Which release of libtool.m4 was used?
16632 macro_version=$macro_version
16633 macro_revision=$macro_revision
16634
16635 # Whether or not to build shared libraries.
16636 build_libtool_libs=$enable_shared
16637
16638 # What type of objects to build.
16639 pic_mode=$pic_mode
16640
16641 # Whether or not to optimize for fast installation.
16642 fast_install=$enable_fast_install
16643
16644 # The host system.
16645 host_alias=$host_alias
16646 host=$host
16647 host_os=$host_os
16648
16649 # The build system.
16650 build_alias=$build_alias
16651 build=$build
16652 build_os=$build_os
16653
16654 # A sed program that does not truncate output.
16655 SED=$lt_SED
16656
16657 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16658 Xsed="\$SED -e 1s/^X//"
16659
16660 # A grep program that handles long lines.
16661 GREP=$lt_GREP
16662
16663 # An ERE matcher.
16664 EGREP=$lt_EGREP
16665
16666 # A literal string matcher.
16667 FGREP=$lt_FGREP
16668
16669 # A BSD- or MS-compatible name lister.
16670 NM=$lt_NM
16671
16672 # Whether we need soft or hard links.
16673 LN_S=$lt_LN_S
16674
16675 # What is the maximum length of a command?
16676 max_cmd_len=$max_cmd_len
16677
16678 # Object file suffix (normally "o").
16679 objext=$ac_objext
16680
16681 # Executable file suffix (normally "").
16682 exeext=$exeext
16683
16684 # whether the shell understands "unset".
16685 lt_unset=$lt_unset
16686
16687 # turn spaces into newlines.
16688 SP2NL=$lt_lt_SP2NL
16689
16690 # turn newlines into spaces.
16691 NL2SP=$lt_lt_NL2SP
16692
16693 # How to create reloadable object files.
16694 reload_flag=$lt_reload_flag
16695 reload_cmds=$lt_reload_cmds
16696
16697 # An object symbol dumper.
16698 OBJDUMP=$lt_OBJDUMP
16699
16700 # Method to check whether dependent libraries are shared objects.
16701 deplibs_check_method=$lt_deplibs_check_method
16702
16703 # Command to use when deplibs_check_method == "file_magic".
16704 file_magic_cmd=$lt_file_magic_cmd
16705
16706 # The archiver.
16707 AR=$lt_AR
16708 AR_FLAGS=$lt_AR_FLAGS
16709
16710 # A symbol stripping program.
16711 STRIP=$lt_STRIP
16712
16713 # Commands used to install an old-style archive.
16714 RANLIB=$lt_RANLIB
16715 old_postinstall_cmds=$lt_old_postinstall_cmds
16716 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16717
16718 # A C compiler.
16719 LTCC=$lt_CC
16720
16721 # LTCC compiler flags.
16722 LTCFLAGS=$lt_CFLAGS
16723
16724 # Take the output of nm and produce a listing of raw symbols and C names.
16725 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16726
16727 # Transform the output of nm in a proper C declaration.
16728 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16729
16730 # Transform the output of nm in a C name address pair.
16731 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16732
16733 # Transform the output of nm in a C name address pair when lib prefix is needed.
16734 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16735
16736 # The name of the directory that contains temporary libtool files.
16737 objdir=$objdir
16738
16739 # Shell to use when invoking shell scripts.
16740 SHELL=$lt_SHELL
16741
16742 # An echo program that does not interpret backslashes.
16743 ECHO=$lt_ECHO
16744
16745 # Used to examine libraries when file_magic_cmd begins with "file".
16746 MAGIC_CMD=$MAGIC_CMD
16747
16748 # Must we lock files when doing compilation?
16749 need_locks=$lt_need_locks
16750
16751 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16752 DSYMUTIL=$lt_DSYMUTIL
16753
16754 # Tool to change global to local symbols on Mac OS X.
16755 NMEDIT=$lt_NMEDIT
16756
16757 # Tool to manipulate fat objects and archives on Mac OS X.
16758 LIPO=$lt_LIPO
16759
16760 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16761 OTOOL=$lt_OTOOL
16762
16763 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16764 OTOOL64=$lt_OTOOL64
16765
16766 # Old archive suffix (normally "a").
16767 libext=$libext
16768
16769 # Shared library suffix (normally ".so").
16770 shrext_cmds=$lt_shrext_cmds
16771
16772 # The commands to extract the exported symbol list from a shared archive.
16773 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16774
16775 # Variables whose values should be saved in libtool wrapper scripts and
16776 # restored at link time.
16777 variables_saved_for_relink=$lt_variables_saved_for_relink
16778
16779 # Do we need the "lib" prefix for modules?
16780 need_lib_prefix=$need_lib_prefix
16781
16782 # Do we need a version for libraries?
16783 need_version=$need_version
16784
16785 # Library versioning type.
16786 version_type=$version_type
16787
16788 # Shared library runtime path variable.
16789 runpath_var=$runpath_var
16790
16791 # Shared library path variable.
16792 shlibpath_var=$shlibpath_var
16793
16794 # Is shlibpath searched before the hard-coded library search path?
16795 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16796
16797 # Format of library name prefix.
16798 libname_spec=$lt_libname_spec
16799
16800 # List of archive names. First name is the real one, the rest are links.
16801 # The last name is the one that the linker finds with -lNAME
16802 library_names_spec=$lt_library_names_spec
16803
16804 # The coded name of the library, if different from the real name.
16805 soname_spec=$lt_soname_spec
16806
16807 # Command to use after installation of a shared archive.
16808 postinstall_cmds=$lt_postinstall_cmds
16809
16810 # Command to use after uninstallation of a shared archive.
16811 postuninstall_cmds=$lt_postuninstall_cmds
16812
16813 # Commands used to finish a libtool library installation in a directory.
16814 finish_cmds=$lt_finish_cmds
16815
16816 # As "finish_cmds", except a single script fragment to be evaled but
16817 # not shown.
16818 finish_eval=$lt_finish_eval
16819
16820 # Whether we should hardcode library paths into libraries.
16821 hardcode_into_libs=$hardcode_into_libs
16822
16823 # Compile-time system search path for libraries.
16824 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16825
16826 # Run-time system search path for libraries.
16827 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16828
16829 # Whether dlopen is supported.
16830 dlopen_support=$enable_dlopen
16831
16832 # Whether dlopen of programs is supported.
16833 dlopen_self=$enable_dlopen_self
16834
16835 # Whether dlopen of statically linked programs is supported.
16836 dlopen_self_static=$enable_dlopen_self_static
16837
16838 # Commands to strip libraries.
16839 old_striplib=$lt_old_striplib
16840 striplib=$lt_striplib
16841
16842
16843 # The linker used to build libraries.
16844 LD=$lt_LD
16845
16846 # Commands used to build an old-style archive.
16847 old_archive_cmds=$lt_old_archive_cmds
16848
16849 # A language specific compiler.
16850 CC=$lt_compiler
16851
16852 # Is the compiler the GNU compiler?
16853 with_gcc=$GCC
16854
16855 # Compiler flag to turn off builtin functions.
16856 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16857
16858 # How to pass a linker flag through the compiler.
16859 wl=$lt_lt_prog_compiler_wl
16860
16861 # Additional compiler flags for building library objects.
16862 pic_flag=$lt_lt_prog_compiler_pic
16863
16864 # Compiler flag to prevent dynamic linking.
16865 link_static_flag=$lt_lt_prog_compiler_static
16866
16867 # Does compiler simultaneously support -c and -o options?
16868 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16869
16870 # Whether or not to add -lc for building shared libraries.
16871 build_libtool_need_lc=$archive_cmds_need_lc
16872
16873 # Whether or not to disallow shared libs when runtime libs are static.
16874 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16875
16876 # Compiler flag to allow reflexive dlopens.
16877 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16878
16879 # Compiler flag to generate shared objects directly from archives.
16880 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16881
16882 # Whether the compiler copes with passing no objects directly.
16883 compiler_needs_object=$lt_compiler_needs_object
16884
16885 # Create an old-style archive from a shared archive.
16886 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16887
16888 # Create a temporary old-style archive to link instead of a shared archive.
16889 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16890
16891 # Commands used to build a shared archive.
16892 archive_cmds=$lt_archive_cmds
16893 archive_expsym_cmds=$lt_archive_expsym_cmds
16894
16895 # Commands used to build a loadable module if different from building
16896 # a shared archive.
16897 module_cmds=$lt_module_cmds
16898 module_expsym_cmds=$lt_module_expsym_cmds
16899
16900 # Whether we are building with GNU ld or not.
16901 with_gnu_ld=$lt_with_gnu_ld
16902
16903 # Flag that allows shared libraries with undefined symbols to be built.
16904 allow_undefined_flag=$lt_allow_undefined_flag
16905
16906 # Flag that enforces no undefined symbols.
16907 no_undefined_flag=$lt_no_undefined_flag
16908
16909 # Flag to hardcode \$libdir into a binary during linking.
16910 # This must work even if \$libdir does not exist
16911 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16912
16913 # If ld is used when linking, flag to hardcode \$libdir into a binary
16914 # during linking. This must work even if \$libdir does not exist.
16915 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16916
16917 # Whether we need a single "-rpath" flag with a separated argument.
16918 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16919
16920 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16921 # DIR into the resulting binary.
16922 hardcode_direct=$hardcode_direct
16923
16924 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16925 # DIR into the resulting binary and the resulting library dependency is
16926 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16927 # library is relocated.
16928 hardcode_direct_absolute=$hardcode_direct_absolute
16929
16930 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16931 # into the resulting binary.
16932 hardcode_minus_L=$hardcode_minus_L
16933
16934 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16935 # into the resulting binary.
16936 hardcode_shlibpath_var=$hardcode_shlibpath_var
16937
16938 # Set to "yes" if building a shared library automatically hardcodes DIR
16939 # into the library and all subsequent libraries and executables linked
16940 # against it.
16941 hardcode_automatic=$hardcode_automatic
16942
16943 # Set to yes if linker adds runtime paths of dependent libraries
16944 # to runtime path list.
16945 inherit_rpath=$inherit_rpath
16946
16947 # Whether libtool must link a program against all its dependency libraries.
16948 link_all_deplibs=$link_all_deplibs
16949
16950 # Fix the shell variable \$srcfile for the compiler.
16951 fix_srcfile_path=$lt_fix_srcfile_path
16952
16953 # Set to "yes" if exported symbols are required.
16954 always_export_symbols=$always_export_symbols
16955
16956 # The commands to list exported symbols.
16957 export_symbols_cmds=$lt_export_symbols_cmds
16958
16959 # Symbols that should not be listed in the preloaded symbols.
16960 exclude_expsyms=$lt_exclude_expsyms
16961
16962 # Symbols that must always be exported.
16963 include_expsyms=$lt_include_expsyms
16964
16965 # Commands necessary for linking programs (against libraries) with templates.
16966 prelink_cmds=$lt_prelink_cmds
16967
16968 # Specify filename containing input files.
16969 file_list_spec=$lt_file_list_spec
16970
16971 # How to hardcode a shared library path into an executable.
16972 hardcode_action=$hardcode_action
16973
16974 # ### END LIBTOOL CONFIG
16975
16976 _LT_EOF
16977
16978 case $host_os in
16979 aix3*)
16980 cat <<\_LT_EOF >> "$cfgfile"
16981 # AIX sometimes has problems with the GCC collect2 program. For some
16982 # reason, if we set the COLLECT_NAMES environment variable, the problems
16983 # vanish in a puff of smoke.
16984 if test "X${COLLECT_NAMES+set}" != Xset; then
16985 COLLECT_NAMES=
16986 export COLLECT_NAMES
16987 fi
16988 _LT_EOF
16989 ;;
16990 esac
16991
16992
16993 ltmain="$ac_aux_dir/ltmain.sh"
16994
16995
16996 # We use sed instead of cat because bash on DJGPP gets confused if
16997 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16998 # text mode, it properly converts lines to CR/LF. This bash problem
16999 # is reportedly fixed, but why not run on old versions too?
17000 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17001 || (rm -f "$cfgfile"; exit 1)
17002
17003 case $xsi_shell in
17004 yes)
17005 cat << \_LT_EOF >> "$cfgfile"
17006
17007 # func_dirname file append nondir_replacement
17008 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17009 # otherwise set result to NONDIR_REPLACEMENT.
17010 func_dirname ()
17011 {
17012 case ${1} in
17013 */*) func_dirname_result="${1%/*}${2}" ;;
17014 * ) func_dirname_result="${3}" ;;
17015 esac
17016 }
17017
17018 # func_basename file
17019 func_basename ()
17020 {
17021 func_basename_result="${1##*/}"
17022 }
17023
17024 # func_dirname_and_basename file append nondir_replacement
17025 # perform func_basename and func_dirname in a single function
17026 # call:
17027 # dirname: Compute the dirname of FILE. If nonempty,
17028 # add APPEND to the result, otherwise set result
17029 # to NONDIR_REPLACEMENT.
17030 # value returned in "$func_dirname_result"
17031 # basename: Compute filename of FILE.
17032 # value retuned in "$func_basename_result"
17033 # Implementation must be kept synchronized with func_dirname
17034 # and func_basename. For efficiency, we do not delegate to
17035 # those functions but instead duplicate the functionality here.
17036 func_dirname_and_basename ()
17037 {
17038 case ${1} in
17039 */*) func_dirname_result="${1%/*}${2}" ;;
17040 * ) func_dirname_result="${3}" ;;
17041 esac
17042 func_basename_result="${1##*/}"
17043 }
17044
17045 # func_stripname prefix suffix name
17046 # strip PREFIX and SUFFIX off of NAME.
17047 # PREFIX and SUFFIX must not contain globbing or regex special
17048 # characters, hashes, percent signs, but SUFFIX may contain a leading
17049 # dot (in which case that matches only a dot).
17050 func_stripname ()
17051 {
17052 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17053 # positional parameters, so assign one to ordinary parameter first.
17054 func_stripname_result=${3}
17055 func_stripname_result=${func_stripname_result#"${1}"}
17056 func_stripname_result=${func_stripname_result%"${2}"}
17057 }
17058
17059 # func_opt_split
17060 func_opt_split ()
17061 {
17062 func_opt_split_opt=${1%%=*}
17063 func_opt_split_arg=${1#*=}
17064 }
17065
17066 # func_lo2o object
17067 func_lo2o ()
17068 {
17069 case ${1} in
17070 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17071 *) func_lo2o_result=${1} ;;
17072 esac
17073 }
17074
17075 # func_xform libobj-or-source
17076 func_xform ()
17077 {
17078 func_xform_result=${1%.*}.lo
17079 }
17080
17081 # func_arith arithmetic-term...
17082 func_arith ()
17083 {
17084 func_arith_result=$(( $* ))
17085 }
17086
17087 # func_len string
17088 # STRING may not start with a hyphen.
17089 func_len ()
17090 {
17091 func_len_result=${#1}
17092 }
17093
17094 _LT_EOF
17095 ;;
17096 *) # Bourne compatible functions.
17097 cat << \_LT_EOF >> "$cfgfile"
17098
17099 # func_dirname file append nondir_replacement
17100 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17101 # otherwise set result to NONDIR_REPLACEMENT.
17102 func_dirname ()
17103 {
17104 # Extract subdirectory from the argument.
17105 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
17106 if test "X$func_dirname_result" = "X${1}"; then
17107 func_dirname_result="${3}"
17108 else
17109 func_dirname_result="$func_dirname_result${2}"
17110 fi
17111 }
17112
17113 # func_basename file
17114 func_basename ()
17115 {
17116 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
17117 }
17118
17119
17120 # func_stripname prefix suffix name
17121 # strip PREFIX and SUFFIX off of NAME.
17122 # PREFIX and SUFFIX must not contain globbing or regex special
17123 # characters, hashes, percent signs, but SUFFIX may contain a leading
17124 # dot (in which case that matches only a dot).
17125 # func_strip_suffix prefix name
17126 func_stripname ()
17127 {
17128 case ${2} in
17129 .*) func_stripname_result=`$ECHO "X${3}" \
17130 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
17131 *) func_stripname_result=`$ECHO "X${3}" \
17132 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
17133 esac
17134 }
17135
17136 # sed scripts:
17137 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17138 my_sed_long_arg='1s/^-[^=]*=//'
17139
17140 # func_opt_split
17141 func_opt_split ()
17142 {
17143 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
17144 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
17145 }
17146
17147 # func_lo2o object
17148 func_lo2o ()
17149 {
17150 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
17151 }
17152
17153 # func_xform libobj-or-source
17154 func_xform ()
17155 {
17156 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
17157 }
17158
17159 # func_arith arithmetic-term...
17160 func_arith ()
17161 {
17162 func_arith_result=`expr "$@"`
17163 }
17164
17165 # func_len string
17166 # STRING may not start with a hyphen.
17167 func_len ()
17168 {
17169 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17170 }
17171
17172 _LT_EOF
17173 esac
17174
17175 case $lt_shell_append in
17176 yes)
17177 cat << \_LT_EOF >> "$cfgfile"
17178
17179 # func_append var value
17180 # Append VALUE to the end of shell variable VAR.
17181 func_append ()
17182 {
17183 eval "$1+=\$2"
17184 }
17185 _LT_EOF
17186 ;;
17187 *)
17188 cat << \_LT_EOF >> "$cfgfile"
17189
17190 # func_append var value
17191 # Append VALUE to the end of shell variable VAR.
17192 func_append ()
17193 {
17194 eval "$1=\$$1\$2"
17195 }
17196
17197 _LT_EOF
17198 ;;
17199 esac
17200
17201
17202 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17203 || (rm -f "$cfgfile"; exit 1)
17204
17205 mv -f "$cfgfile" "$ofile" ||
17206 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17207 chmod +x "$ofile"
17208
17209 ;;
17210
17211 esac
17212 done # for ac_tag
17213
17214
17215 { (exit 0); exit 0; }
17216 _ACEOF
17217 chmod +x $CONFIG_STATUS
17218 ac_clean_files=$ac_clean_files_save
17219
17220 test $ac_write_fail = 0 ||
17221 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
17222 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
17223 { (exit 1); exit 1; }; }
17224
17225
17226 # configure is writing to config.log, and then calls config.status.
17227 # config.status does its own redirection, appending to config.log.
17228 # Unfortunately, on DOS this fails, as config.log is still kept open
17229 # by configure, so config.status won't be able to write to it; its
17230 # output is simply discarded. So we exec the FD to /dev/null,
17231 # effectively closing config.log, so it can be properly (re)opened and
17232 # appended to by config.status. When coming back to configure, we
17233 # need to make the FD available again.
17234 if test "$no_create" != yes; then
17235 ac_cs_success=:
17236 ac_config_status_args=
17237 test "$silent" = yes &&
17238 ac_config_status_args="$ac_config_status_args --quiet"
17239 exec 5>/dev/null
17240 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17241 exec 5>>config.log
17242 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17243 # would make configure fail if this is the last instruction.
17244 $ac_cs_success || { (exit 1); exit 1; }
17245 fi
17246 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17247 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17248 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17249 fi
17250
17251
17252 echo ""
17253 echo " prefix: $prefix"
17254 echo " exec_prefix: $exec_prefix"
17255 echo " libdir: $libdir"
17256 echo " includedir: $includedir"
17257
17258
17259 echo ""
17260 echo " Kernel modesetting: $DRM_MODE"
17261
17262 echo ""
17263 echo " CFLAGS: $CFLAGS"
17264 echo " CXXFLAGS: $CXXFLAGS"
17265 echo " Macros: $DEFINES"
17266
17267 echo ""
17268 echo " Run '${MAKE-make}' to build xf86-video-ati"
17269 echo ""
17270